From 855682e4816df5da4b5f4246a04e75e385a5d61f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 3 Sep 2025 16:51:20 +0000 Subject: [PATCH] ## Typescript SDK Changes Detected: * `vercel.marketplace.updateInvoice()`: * `request.requestBody` **Changed** **Breaking** :warning: * `error.status[409]` **Added** * `vercel.integrations.getConfigurationProducts()`: `response.products.[].metadataSchema.properties.{}` **Changed** **Breaking** :warning: * `vercel.user.listUserEvents()`: `response.events.[].payload` **Changed** **Breaking** :warning: * `vercel.deployments.getDeployment()`: `response.[1]` **Changed** * `vercel.projects.getProjects()`: * `request.sortByElasticConcurrency` **Added** * `vercel.domains.checkDomainPrice()`: `error.status[500]` **Added** * `vercel.deployments.createDeployment()`: `response` **Changed** * `vercel.deployments.cancelDeployment()`: `response` **Changed** * `vercel.integrations.connectIntegrationResourceToProject()`: **Added** * `vercel.integrations.createIntegrationStoreDirect()`: **Added** * `vercel.projects.acceptProjectTransferRequest()`: * `request.requestBody.acceptedPolicies` **Added** * `vercel.marketplace.submitInvoice()`: `error.status[409]` **Added** * `vercel.get/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans()`: **Added** * `vercel.marketplace.exchangeSsoToken()`: `error.status[403]` **Added** * `vercel.authentication.exchangeSsoToken()`: `error.status[403]` **Added** * `vercel.teams.getTeamMembers()`: `response.emailinvitecodes.[]` **Changed** * `vercel.teams.getTeam()`: `response` **Changed** * `vercel.teams.patchTeam()`: * `request.requestBody.defaultExpirationSettings` **Added** * `response` **Changed** * `vercel.teams.getTeams()`: `response.teams.[].[team]` **Changed** --- .speakeasy/gen.lock | 398 +- .speakeasy/gen.yaml | 2 +- .speakeasy/tests.arazzo.yaml | 96 + .speakeasy/workflow.lock | 14 +- README.md | 103 +- RELEASES.md | 12 +- docs/models/acceptedpolicies.md | 20 + ...acceptprojecttransferrequestrequestbody.md | 9 +- docs/models/actions.md | 19 + ...{atbrandat447943.md => atbrandat502540.md} | 6 +- docs/models/atbrandat7822.md | 14 + docs/models/canceldeploymentconfig.md | 4 +- .../canceldeploymentdeploymentsreadystate.md | 2 +- .../canceldeploymentdeploymentsstatus.md | 4 +- .../canceldeploymentfunctionmemorytype.md | 2 +- docs/models/canceldeploymentfunctions.md | 3 +- docs/models/canceldeploymentfunctiontype.md | 4 +- docs/models/canceldeploymentgitrepo.md | 6 +- docs/models/canceldeploymentgitrepo1.md | 2 +- docs/models/canceldeploymentgitrepo2.md | 2 +- docs/models/canceldeploymentgitrepo3.md | 2 +- ...eldeploymentgitrepodeploymentsownertype.md | 4 +- ...mentgitrepodeploymentsresponseownertype.md | 4 +- .../canceldeploymentgitrepoownertype.md | 4 +- docs/models/canceldeploymentintegrations.md | 2 +- .../models/canceldeploymentmicrofrontends1.md | 14 +- .../models/canceldeploymentmicrofrontends2.md | 17 +- docs/models/canceldeploymentroutes.md | 2 +- docs/models/canceldeploymentroutes2.md | 2 +- docs/models/canceldeploymentteam.md | 4 +- docs/models/config.md | 4 +- ...nectintegrationresourcetoprojectrequest.md | 24 + ...integrationresourcetoprojectrequestbody.md | 17 + docs/models/created.md | 4 +- docs/models/created1.md | 2 +- docs/models/created2.md | 2 +- .../createdeploymentdeploymentsstatus.md | 4 +- .../createdeploymentgitrepoownertype.md | 4 +- .../models/createdeploymentmicrofrontends1.md | 14 +- .../models/createdeploymentmicrofrontends2.md | 17 +- ...atedeploymentmicrofrontendsapplications.md | 2 +- docs/models/createdeploymentreadystate.md | 4 +- docs/models/createdeploymentresponsebody.md | 14 +- docs/models/createdeploymentroutesop.md | 2 +- docs/models/createdtype.md | 4 +- .../createintegrationstoredirectactions.md | 17 + ...createintegrationstoredirectbillingplan.md | 38 + ...createintegrationstoredirectdeployments.md | 24 + .../createintegrationstoredirectdetails.md | 18 + .../createintegrationstoredirectdisabled2.md | 17 + .../createintegrationstoredirectdisabled3.md | 15 + ...grationstoredirectdisabledintegrations2.md | 17 + ...grationstoredirectdisabledintegrations3.md | 15 + ...toredirectdisabledintegrationsresponse2.md | 17 + ...edirectdisabledintegrationsresponse2002.md | 17 + ...edirectdisabledintegrationsresponse2003.md | 16 + ...integrationsresponse200applicationjson2.md | 19 + ...integrationsresponse200applicationjson3.md | 17 + ...toredirectdisabledintegrationsresponse3.md | 15 + ...reateintegrationstoredirectenvironments.md | 15 + ...teintegrationstoredirectexperimentation.md | 17 + .../createintegrationstoredirectframework.md | 15 + .../createintegrationstoredirecthidden2.md | 17 + .../createintegrationstoredirecthidden3.md | 15 + ...tegrationstoredirecthiddenintegrations2.md | 17 + ...tegrationstoredirecthiddenintegrations3.md | 15 + ...nstoredirecthiddenintegrationsresponse2.md | 17 + ...oredirecthiddenintegrationsresponse2002.md | 17 + ...oredirecthiddenintegrationsresponse2003.md | 16 + ...integrationsresponse200applicationjson2.md | 18 + ...integrationsresponse200applicationjson3.md | 17 + ...nstoredirecthiddenintegrationsresponse3.md | 15 + ...ntegrationstoredirecthighlighteddetails.md | 18 + ...tionstoredirectintegrationsenvironments.md | 15 + ...tionstoredirectintegrationsresponsetype.md | 16 + ...eintegrationstoredirectintegrationstype.md | 15 + .../createintegrationstoredirectlevel.md | 15 + .../createintegrationstoredirectmetadata.md | 42 + ...ateintegrationstoredirectmetadataschema.md | 20 + ...reateintegrationstoredirectnotification.md | 21 + .../createintegrationstoredirectproperties.md | 97 + ...createintegrationstoredirectproperties1.md | 32 + ...createintegrationstoredirectproperties2.md | 32 + ...createintegrationstoredirectproperties3.md | 27 + ...createintegrationstoredirectproperties4.md | 39 + ...createintegrationstoredirectproperties5.md | 39 + ...createintegrationstoredirectproperties6.md | 37 + ...createintegrationstoredirectproperties7.md | 34 + ...createintegrationstoredirectproperties8.md | 21 + ...ationstoredirectpropertiesatbrandat7822.md | 14 + ...ntegrationstoredirectpropertiesdisabled.md | 25 + ...eintegrationstoredirectpropertieshidden.md | 25 + ...rectpropertiesintegrationsatbrandat7822.md | 14 + ...oredirectpropertiesintegrationsdisabled.md | 26 + ...storedirectpropertiesintegrationshidden.md | 25 + ...nstoredirectpropertiesintegrationsitems.md | 23 + ...redirectpropertiesintegrationsmaxlength.md | 17 + ...redirectpropertiesintegrationsminlength.md | 17 + ...toredirectpropertiesintegrationspattern.md | 17 + ...response200applicationjsonatbrandat7822.md | 18 + ...pplicationjsonresponsebodyatbrandat7822.md | 18 + ...ationjsonresponsebodystoreatbrandat7822.md | 18 + ...onresponsebodystoreproductatbrandat7822.md | 18 + ...toreproductmetadataschema6atbrandat7822.md | 18 + ...roductmetadataschema6itemsatbrandat7822.md | 18 + ...adataschema6itemsmaxlengthatbrandat7822.md | 18 + ...storeproductmetadataschemaatbrandat7822.md | 18 + ...ponsebodystoreproductmetadataschematype.md | 19 + ...icationjsonresponsebodystoreproducttype.md | 19 + ...200applicationjsonresponsebodystoretype.md | 19 + ...plicationjsonresponsebodystoreuicontrol.md | 19 + ...ationjsonresponsebodystoreuidescription.md | 21 + ...licationjsonresponsebodystoreuidisabled.md | 29 + ...onjsonresponsebodystoreuiformattedvalue.md | 21 + ...pplicationjsonresponsebodystoreuihidden.md | 29 + ...licationjsonresponsebodystoreuireadonly.md | 29 + ...ponse200applicationjsonresponsebodytype.md | 19 + ...200applicationjsonresponsebodyuicontrol.md | 19 + ...pplicationjsonresponsebodyuidescription.md | 21 + ...00applicationjsonresponsebodyuidisabled.md | 29 + ...icationjsonresponsebodyuiformattedvalue.md | 21 + ...e200applicationjsonresponsebodyuihidden.md | 29 + ...00applicationjsonresponsebodyuireadonly.md | 29 + ...egrationsresponse200applicationjsontype.md | 17 + ...ionsresponse200applicationjsonuicontrol.md | 19 + ...response200applicationjsonuidescription.md | 21 + ...onsresponse200applicationjsonuidisabled.md | 29 + ...ponse200applicationjsonuiformattedvalue.md | 21 + ...tionsresponse200applicationjsonuihidden.md | 29 + ...onsresponse200applicationjsonuireadonly.md | 29 + ...iesintegrationsresponse200atbrandat7822.md | 16 + ...pertiesintegrationsresponse200maxlength.md | 18 + ...pertiesintegrationsresponse200minlength.md | 18 + ...ropertiesintegrationsresponse200pattern.md | 18 + ...ctpropertiesintegrationsresponse200type.md | 16 + ...pertiesintegrationsresponse200uicontrol.md | 17 + ...iesintegrationsresponse200uidescription.md | 20 + ...ertiesintegrationsresponse200uidisabled.md | 28 + ...integrationsresponse200uiformattedvalue.md | 19 + ...opertiesintegrationsresponse200uihidden.md | 28 + ...ertiesintegrationsresponse200uireadonly.md | 28 + ...ertiesintegrationsresponseatbrandat7822.md | 15 + ...tpropertiesintegrationsresponsedisabled.md | 27 + ...ectpropertiesintegrationsresponsehidden.md | 26 + ...propertiesintegrationsresponsemaxlength.md | 18 + ...propertiesintegrationsresponseminlength.md | 18 + ...ctpropertiesintegrationsresponsepattern.md | 17 + ...irectpropertiesintegrationsresponsetype.md | 16 + ...propertiesintegrationsresponseuicontrol.md | 16 + ...ertiesintegrationsresponseuidescription.md | 20 + ...ropertiesintegrationsresponseuidisabled.md | 27 + ...iesintegrationsresponseuiformattedvalue.md | 18 + ...tpropertiesintegrationsresponseuihidden.md | 27 + ...propertiesintegrationsresponseuioptions.md | 32 + ...ropertiesintegrationsresponseuireadonly.md | 27 + ...onstoredirectpropertiesintegrationstype.md | 15 + ...redirectpropertiesintegrationsuicontrol.md | 16 + ...rectpropertiesintegrationsuidescription.md | 19 + ...edirectpropertiesintegrationsuidisabled.md | 26 + ...tpropertiesintegrationsuiformattedvalue.md | 18 + ...oredirectpropertiesintegrationsuihidden.md | 26 + ...redirectpropertiesintegrationsuioptions.md | 21 + ...edirectpropertiesintegrationsuireadonly.md | 26 + ...teintegrationstoredirectpropertiesitems.md | 23 + ...tegrationstoredirectpropertiesmaxlength.md | 17 + ...tegrationstoredirectpropertiesminlength.md | 17 + ...integrationstoredirectpropertiespattern.md | 17 + ...ateintegrationstoredirectpropertiestype.md | 15 + ...tegrationstoredirectpropertiesuicontrol.md | 15 + ...ationstoredirectpropertiesuidescription.md | 19 + ...egrationstoredirectpropertiesuidisabled.md | 25 + ...onstoredirectpropertiesuiformattedvalue.md | 17 + ...ntegrationstoredirectpropertiesuihidden.md | 25 + ...tegrationstoredirectpropertiesuioptions.md | 21 + ...egrationstoredirectpropertiesuireadonly.md | 25 + ...teintegrationstoredirectpropertiesvalue.md | 17 + ...eintegrationstoredirectprotocolsettings.md | 15 + .../createintegrationstoredirectquote.md | 19 + .../createintegrationstoredirectrequest.md | 20 + ...createintegrationstoredirectrequestbody.md | 46 + ...reateintegrationstoredirectresponsebody.md | 28 + .../createintegrationstoredirectscope.md | 15 + ...=> createintegrationstoredirectsecrets.md} | 12 +- .../createintegrationstoredirectstatus.md | 15 + .../createintegrationstoredirectstore.md | 42 + .../createintegrationstoredirecttype.md | 15 + ...ateintegrationstoredirectuidescription2.md | 17 + ...onstoredirectuidescriptionintegrations2.md | 17 + ...irectuidescriptionintegrationsresponse2.md | 17 + ...ctuidescriptionintegrationsresponse2002.md | 17 + ...integrationsresponse200applicationjson2.md | 19 + ...response200applicationjsonresponsebody2.md | 21 + ...nse200applicationjsonresponsebodystore2.md | 21 + ...createintegrationstoredirectuidisabled2.md | 17 + ...createintegrationstoredirectuidisabled3.md | 15 + ...ationstoredirectuidisabledintegrations2.md | 17 + ...ationstoredirectuidisabledintegrations3.md | 15 + ...redirectuidisabledintegrationsresponse2.md | 17 + ...irectuidisabledintegrationsresponse2002.md | 17 + ...irectuidisabledintegrationsresponse2003.md | 16 + ...integrationsresponse200applicationjson2.md | 19 + ...integrationsresponse200applicationjson3.md | 17 + ...response200applicationjsonresponsebody2.md | 21 + ...response200applicationjsonresponsebody3.md | 19 + ...nse200applicationjsonresponsebodystore2.md | 21 + ...nse200applicationjsonresponsebodystore3.md | 19 + ...redirectuidisabledintegrationsresponse3.md | 16 + .../createintegrationstoredirectuihidden2.md | 17 + .../createintegrationstoredirectuihidden3.md | 15 + ...grationstoredirectuihiddenintegrations2.md | 17 + ...grationstoredirectuihiddenintegrations3.md | 15 + ...toredirectuihiddenintegrationsresponse2.md | 17 + ...edirectuihiddenintegrationsresponse2002.md | 17 + ...edirectuihiddenintegrationsresponse2003.md | 16 + ...integrationsresponse200applicationjson2.md | 19 + ...integrationsresponse200applicationjson3.md | 17 + ...response200applicationjsonresponsebody2.md | 21 + ...response200applicationjsonresponsebody3.md | 19 + ...nse200applicationjsonresponsebodystore2.md | 21 + ...nse200applicationjsonresponsebodystore3.md | 19 + ...toredirectuihiddenintegrationsresponse3.md | 15 + .../createintegrationstoredirectuioptions1.md | 21 + .../createintegrationstoredirectuioptions2.md | 17 + .../createintegrationstoredirectuioptions3.md | 21 + ...rationstoredirectuioptionsatbrandat7822.md | 14 + ...integrationstoredirectuioptionsdisabled.md | 29 + ...teintegrationstoredirectuioptionshidden.md | 29 + ...toredirectuioptionsintegrationsdisabled.md | 28 + ...nstoredirectuioptionsintegrationshidden.md | 27 + ...ateintegrationstoredirectuioptionsvalue.md | 17 + ...createintegrationstoredirectuireadonly2.md | 17 + ...createintegrationstoredirectuireadonly3.md | 15 + ...ationstoredirectuireadonlyintegrations2.md | 17 + ...ationstoredirectuireadonlyintegrations3.md | 15 + ...redirectuireadonlyintegrationsresponse2.md | 17 + ...irectuireadonlyintegrationsresponse2002.md | 17 + ...irectuireadonlyintegrationsresponse2003.md | 16 + ...integrationsresponse200applicationjson2.md | 19 + ...integrationsresponse200applicationjson3.md | 17 + ...response200applicationjsonresponsebody2.md | 21 + ...response200applicationjsonresponsebody3.md | 19 + ...nse200applicationjsonresponsebodystore2.md | 21 + ...nse200applicationjsonresponsebodystore3.md | 19 + ...redirectuireadonlyintegrationsresponse3.md | 16 + .../createintegrationstoredirectvalue.md | 17 + .../createprojectdefaultresourceconfig.md | 2 +- .../createprojectdeploymentexpiration.md | 16 +- docs/models/createprojectenv.md | 2 +- docs/models/createprojectenvcreatedtype.md | 4 +- docs/models/createprojectenvresponsebody.md | 2 +- docs/models/createprojectlink2.md | 6 +- docs/models/createprojectpermissions.md | 136 +- .../createprojectprojectsdeploymenttype.md | 2 +- .../createprojectprojectsresourceconfig.md | 2 +- .../createprojectprojectsresponsetype.md | 4 +- docs/models/createprojectresponsebody.md | 152 +- docs/models/createprojecttrustedips.md | 4 +- docs/models/createprojecttrustedips1.md | 2 +- docs/models/createprojecttrustedips2.md | 2 +- .../createprojecttrustedipsdeploymenttype.md | 4 +- ...projecttrustedipsprojectsdeploymenttype.md | 5 +- docs/models/createwebhookevents.md | 2 +- docs/models/default.md | 4 +- docs/models/defaultexpirationsettings.md | 20 + docs/models/deploymentexpiration.md | 16 +- docs/models/disabled2.md | 2 +- docs/models/disabled3.md | 2 +- docs/models/editprojectenvresponsebodytype.md | 4 +- docs/models/emailinvitecodes.md | 2 + docs/models/envs.md | 2 +- docs/models/events.md | 2 +- docs/models/example.md | 4 +- docs/models/expiration.md | 17 + docs/models/expirationcanceled.md | 17 + docs/models/expirationerrored.md | 17 + docs/models/expirationproduction.md | 17 + docs/models/externalresourcestatus.md | 15 + docs/models/filterprojectenvsresponsebody.md | 2 +- docs/models/filterprojectenvsresponsebody1.md | 2 +- ...envsresponsebodyprojectsresponse200type.md | 2 +- ...ectenvsresponsebodyprojectsresponsetype.md | 2 +- .../filterprojectenvsresponsebodytype.md | 4 +- docs/models/functionmemorytype.md | 4 +- docs/models/functions.md | 3 +- docs/models/functiontype.md | 4 +- ...200applicationjsonresponsebodyproducts2.md | 21 + ...200applicationjsonresponsebodyproducts3.md | 19 + ...200applicationjsonresponsebodyproducts2.md | 21 + ...200applicationjsonresponsebodyproducts3.md | 19 + ...ationproductspropertiesatbrandat502540.md} | 6 +- ...spropertiesintegrationsatbrandat502540.md} | 6 +- ...nproductspropertiesintegrationsdisabled.md | 26 + ...ionproductspropertiesintegrationshidden.md | 26 + ...productspropertiesintegrationsmaxlength.md | 4 +- ...productspropertiesintegrationsminlength.md | 4 +- ...onproductspropertiesintegrationspattern.md | 4 +- ...ponse200applicationjsonatbrandat502540.md} | 6 +- ...icationjsonresponsebodyatbrandat502540.md} | 6 +- ...sonresponsebodyproductsatbrandat502540.md} | 6 +- ...productsmetadataschema6atbrandat502540.md} | 6 +- ...uctsmetadataschema6itemsatbrandat447943.md | 18 - ...uctsmetadataschema6itemsatbrandat502540.md | 18 + ...taschema6itemsminlengthatbrandat502540.md} | 6 +- ...yproductsmetadataschema8atbrandat447943.md | 18 - ...yproductsmetadataschema8atbrandat502540.md | 18 + ...uctsmetadataschema8itemsatbrandat447943.md | 18 - ...uctsmetadataschema8itemsatbrandat502540.md | 18 + ...taschema8itemsminlengthatbrandat502540.md} | 6 +- ...dataschema8itemspatternatbrandat502540.md} | 6 +- ...yproductsmetadataschema9atbrandat447943.md | 18 - ...yproductsmetadataschema9atbrandat502540.md | 18 + ...yproductsmetadataschemaatbrandat502540.md} | 6 +- ...integrationsresponse200atbrandat502540.md} | 6 +- ...iesintegrationsresponseatbrandat502540.md} | 6 +- ...propertiesintegrationsresponsemaxlength.md | 4 +- ...propertiesintegrationsresponseminlength.md | 4 +- ...tspropertiesintegrationsresponsepattern.md | 4 +- ...productspropertiesintegrationsuioptions.md | 4 +- ...onfigurationproductspropertiesmaxlength.md | 4 +- ...onfigurationproductspropertiesminlength.md | 4 +- ...tconfigurationproductspropertiespattern.md | 4 +- ...onfigurationproductspropertiesuioptions.md | 4 +- docs/models/getconfigurationproductsrepl.md | 20 + .../getconfigurationproductsuioptions2.md | 4 +- .../getconfigurationproductsuioptions3.md | 2 +- ...rationproductsuioptionsatbrandat502540.md} | 6 +- ...tconfigurationproductsuioptionsdisabled.md | 17 +- ...getconfigurationproductsuioptionshidden.md | 17 +- ...tsuioptionsintegrationsatbrandat502540.md} | 6 +- ...onsintegrationsresponseatbrandat502540.md} | 6 +- .../getconfigurationproductsuioptionsvalue.md | 4 +- ...igurationresponsebodyintegrationssource.md | 2 +- .../getconfigurationresponsebodysource.md | 2 +- ...gurationsresponsebodyintegrationssource.md | 2 +- .../getconfigurationsresponsebodysource.md | 2 +- docs/models/getdeploymentmicrofrontends1.md | 14 +- docs/models/getdeploymentmicrofrontends2.md | 17 +- ...getdeploymentmicrofrontendsapplications.md | 2 +- ...ymentmicrofrontendsmfeconfiguploadstate.md | 17 + docs/models/getintegrationresourcemetadata.md | 42 + .../getintegrationresourceresponsebody.md | 2 +- .../models/getprojectsdeploymentexpiration.md | 16 +- docs/models/getprojectsprojects.md | 152 +- docs/models/getprojectsrequest.md | 2 + docs/models/getteammembersorigin.md | 2 +- docs/models/getteammembersteampermissions.md | 15 + docs/models/getteammembersteamroles.md | 15 + docs/models/getteamsteams.md | 1 + ...slugproductsproductidorslugplansdetails.md | 22 + ...slugproductsproductidorslugplansrequest.md | 24 + ...roductsproductidorslugplansresponsebody.md | 30 + ...orslugproductsproductidorslugplansscope.md | 17 + ...dorslugproductsproductidorslugplanstype.md | 17 + docs/models/getwebhookevents.md | 2 +- docs/models/getwebhooksresponsebody1.md | 20 +- docs/models/getwebhooksresponsebodyevents.md | 2 +- docs/models/gitrepo.md | 6 +- docs/models/gitrepo1.md | 2 +- docs/models/gitrepo2.md | 2 +- docs/models/gitrepo3.md | 2 +- docs/models/gitrepoownertype.md | 4 +- docs/models/guides.md | 21 + docs/models/handle.md | 4 +- docs/models/hidden2.md | 2 +- docs/models/hidden3.md | 2 +- docs/models/highlighteddetails.md | 18 + docs/models/importflowgitprovider.md | 2 +- docs/models/integrations.md | 2 +- .../models/inviteusertoteamteampermissions.md | 2 +- docs/models/listusereventsresponsebody.md | 4 +- docs/models/maxlength.md | 4 +- docs/models/mfeconfiguploadstate.md | 17 + docs/models/microfrontendsapplications.md | 2 +- .../microfrontendsmfeconfiguploadstate.md | 17 + docs/models/minlength.md | 4 +- docs/models/onehundredandfifty.md | 10 +- docs/models/onehundredandfiftyeight.md | 31 +- docs/models/onehundredandfiftyfive.md | 24 +- docs/models/onehundredandfiftyfour.md | 4 +- docs/models/onehundredandfiftynine.md | 30 + docs/models/onehundredandfiftyone.md | 12 +- docs/models/onehundredandfiftyseven.md | 22 +- docs/models/onehundredandfiftysix.md | 20 +- docs/models/onehundredandfiftythree.md | 6 +- docs/models/onehundredandfiftytwo.md | 4 +- docs/models/onehundredandforty.md | 13 +- docs/models/onehundredandfortyeight.md | 25 +- docs/models/onehundredandfortyfive.md | 19 +- docs/models/onehundredandfortyfour.md | 12 +- docs/models/onehundredandfortynine.md | 12 +- docs/models/onehundredandfortyone.md | 14 +- docs/models/onehundredandfortyseven.md | 6 +- docs/models/onehundredandfortysix.md | 20 +- docs/models/onehundredandfortythree.md | 12 +- docs/models/onehundredandfortytwo.md | 16 +- docs/models/onehundredandsixty.md | 31 + docs/models/onehundredandsixtyone.md | 28 + docs/models/onehundredandtwelve.md | 5 +- docs/models/ownertype.md | 4 +- .../patchteamdefaultexpirationsettings.md | 23 + docs/models/patchteamrequest.md | 6 + docs/models/patchteamrequestbody.md | 9 +- docs/models/pattern.md | 4 +- docs/models/payload.md | 108 +- docs/models/payloadprev.md | 2 +- docs/models/payloadteampermissions.md | 2 +- docs/models/plans.md | 38 + docs/models/product.md | 34 + docs/models/projectconnectionscopes.md | 15 + docs/models/projectsmetadata.md | 26 +- docs/models/properties.md | 2 +- docs/models/properties9.md | 6 +- ...447943.md => propertiesatbrandat502540.md} | 6 +- docs/models/propertiesatbrandat7822.md | 14 + docs/models/propertiesmaxlength.md | 4 +- docs/models/propertiesminlength.md | 4 +- docs/models/propertiespattern.md | 4 +- docs/models/propertiesuioptions.md | 12 +- docs/models/propertiesvalue.md | 4 +- docs/models/quote.md | 19 + docs/models/removeprojectenvresponsebody.md | 4 +- docs/models/removeprojectenvresponsebody1.md | 2 +- docs/models/removeprojectenvresponsebody2.md | 2 +- docs/models/removeprojectenvresponsebody3.md | 2 +- ...jectenvresponsebodyprojectsresponsetype.md | 2 +- ...emoveprojectenvresponsebodyprojectstype.md | 4 +- .../removeprojectenvresponsebodytype.md | 2 +- docs/models/repl.md | 2 +- docs/models/requestbodyaction.md | 6 +- docs/models/resourcelinks.md | 19 + docs/models/responsebodyenvs.md | 2 +- docs/models/responsebodyevents.md | 2 +- docs/models/responsebodyfunctions.md | 3 +- docs/models/responsebodyprojectsmetadata.md | 21 + docs/models/routes.md | 2 +- docs/models/routes2.md | 2 +- docs/models/routeshandle.md | 2 +- docs/models/routesop.md | 4 +- docs/models/routestransforms.md | 2 +- docs/models/sortbyelasticconcurrency.md | 17 + docs/models/steps.md | 20 + docs/models/storage.md | 2 +- docs/models/tags.md | 15 + docs/models/team.md | 3 + docs/models/teamlimitedteampermissions.md | 4 +- docs/models/teampermissions.md | 4 +- docs/models/transforms.md | 2 +- docs/models/uioptions2.md | 4 +- docs/models/uioptions3.md | 2 +- ...t447943.md => uioptionsatbrandat502540.md} | 6 +- docs/models/uioptionsatbrandat7822.md | 14 + docs/models/uioptionsvalue.md | 4 +- .../updatefirewallconfigrequestbody1.md | 10 +- .../updatefirewallconfigrequestbody2.md | 10 +- .../updatefirewallconfigrequestbody3.md | 10 +- .../updatefirewallconfigrequestbody4.md | 10 +- .../updatefirewallconfigrequestbodyaction.md | 4 +- ...firewallconfigrequestbodysecurityaction.md | 4 +- ...configrequestbodysecurityrequest4action.md | 16 + ...lconfigrequestbodysecurityrequestaction.md | 4 +- docs/models/updateinvoiceaction.md | 15 - docs/models/updateinvoicerequest.md | 10 +- docs/models/updateinvoicerequestbody.md | 16 +- docs/models/updateinvoicerequestbody1.md | 21 + .../updateprojectdatacacheresponsebody.md | 152 +- .../updateprojectdeploymentexpiration.md | 16 +- docs/models/updateprojectresponsebody.md | 152 +- docs/models/userevent.md | 9 +- docs/models/usereventpayload143action.md | 15 - docs/models/usereventpayload144action.md | 15 + docs/models/usereventpayload147project.md | 9 +- ...t.md => usereventpayload148prevproject.md} | 6 +- docs/models/usereventpayload148project.md | 20 + ...md => usereventpayload158configuration.md} | 6 +- ...d156team.md => usereventpayload158team.md} | 6 +- ...md => usereventpayload159configuration.md} | 6 +- ...d157team.md => usereventpayload159team.md} | 6 +- ...md => usereventpayload160configuration.md} | 6 +- ...d155team.md => usereventpayload160team.md} | 6 +- docs/sdks/integrations/README.md | 209 + docs/sdks/projects/README.md | 2 + docs/sdks/teams/README.md | 12 + docs/sdks/vercel/README.md | 74 + examples/package-lock.json | 2 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/__tests__/accessgroups.test.ts | 4 +- src/__tests__/edgeconfig.test.ts | 12 +- src/__tests__/integrations.test.ts | 65 + .../internal/handler/generated_handlers.go | 2 + .../pathgetv1edgeconfigedgeconfigid.go | 4 +- ...etv1integrationsconfigurationidproducts.go | 2 +- ...ionidorslugproductsproductidorslugplans.go | 68 + ...v1projectsidornamerollingreleasebilling.go | 12 +- .../pathgetv1securityfirewallbypass.go | 8 +- .../handler/pathgetv6domainsdomainconfig.go | 17 +- ...athpostv1storagestoresintegrationdirect.go | 93 + .../pathputv1edgeconfigedgeconfigid.go | 4 +- .../sdk/models/components/authtoken.go | 49 +- .../sdk/models/components/authuser.go | 194 +- .../sdk/models/components/authuserlimited.go | 15 + .../models/components/edgeconfigitemvalue.go | 10 +- .../sdk/models/components/flagjsonvalue.go | 10 +- .../sdk/models/components/pagination.go | 15 + .../internal/sdk/models/components/team.go | 251 +- .../sdk/models/components/teamlimited.go | 84 +- .../sdk/models/components/userevent.go | 5856 +++++- .../acceptprojecttransferrequest.go | 133 +- .../sdk/models/operations/addbypassip.go | 86 +- .../sdk/models/operations/addprojectmember.go | 39 +- .../sdk/models/operations/artifactquery.go | 49 +- .../sdk/models/operations/assignalias.go | 2 +- .../sdk/models/operations/canceldeployment.go | 910 +- .../connectintegrationresourcetoproject.go | 74 + .../sdk/models/operations/createdeployment.go | 1465 +- .../sdk/models/operations/createedgeconfig.go | 26 +- .../sdk/models/operations/createevent.go | 38 +- .../createintegrationstoredirect.go | 9445 ++++++++++ .../operations/createortransferdomain.go | 51 +- .../sdk/models/operations/createproject.go | 1683 +- .../sdk/models/operations/createprojectenv.go | 618 +- .../sdk/models/operations/createrecord.go | 226 +- .../sdk/models/operations/createwebhook.go | 12 + .../sdk/models/operations/editprojectenv.go | 302 +- .../models/operations/filterprojectenvs.go | 865 +- .../operations/getactiveattackstatus.go | 82 +- .../sdk/models/operations/getalias.go | 117 +- .../sdk/models/operations/getauthuser.go | 16 +- .../sdk/models/operations/getconfiguration.go | 142 +- .../operations/getconfigurationproducts.go | 7218 ++++--- .../models/operations/getconfigurations.go | 59 +- .../sdk/models/operations/getdeployment.go | 1569 +- .../models/operations/getdeploymentevents.go | 170 +- .../sdk/models/operations/getdeployments.go | 4 +- .../sdk/models/operations/getedgeconfig.go | 26 +- .../models/operations/getedgeconfigbackup.go | 126 +- .../models/operations/getfirewallconfig.go | 6 +- .../operations/getintegrationresource.go | 10 +- .../operations/getintegrationresources.go | 10 +- .../models/operations/getprojectdomains.go | 83 +- .../sdk/models/operations/getprojectenv.go | 825 +- .../models/operations/getprojectmembers.go | 60 +- .../sdk/models/operations/getprojects.go | 619 +- .../sdk/models/operations/getrecords.go | 62 +- .../getrollingreleasebillingstatus.go | 64 +- .../models/operations/getteamaccessrequest.go | 4 +- .../sdk/models/operations/getteammembers.go | 143 +- .../sdk/models/operations/getteams.go | 16 +- ...ionidorslugproductsproductidorslugplans.go | 314 + .../sdk/models/operations/getwebhook.go | 6 + .../sdk/models/operations/getwebhooks.go | 63 +- .../sdk/models/operations/importresource.go | 30 +- .../sdk/models/operations/inviteusertoteam.go | 37 +- .../sdk/models/operations/listaccessgroups.go | 60 +- .../sdk/models/operations/listaliases.go | 121 +- .../operations/listdeploymentaliases.go | 78 +- .../models/operations/listpromotealiases.go | 49 +- .../sdk/models/operations/patchdomain.go | 89 +- .../models/operations/patchedgeconfigitems.go | 53 +- .../sdk/models/operations/patchteam.go | 256 +- .../operations/patchurlprotectionbypass.go | 87 +- .../models/operations/putfirewallconfig.go | 402 +- .../sdk/models/operations/removebypassip.go | 26 +- .../sdk/models/operations/removeprojectenv.go | 843 +- .../models/operations/requestaccesstoteam.go | 8 +- .../models/operations/submitbillingdata.go | 25 +- .../sdk/models/operations/submitinvoice.go | 8 +- .../operations/submitprepaymentbalances.go | 2 +- .../sdk/models/operations/updateedgeconfig.go | 26 +- .../models/operations/updatefirewallconfig.go | 486 +- .../updateintegrationdeploymentaction.go | 24 +- .../sdk/models/operations/updateinvoice.go | 62 +- .../sdk/models/operations/updateproject.go | 600 +- .../operations/updateprojectdatacache.go | 583 +- .../updateprojectprotectionbypass.go | 38 +- .../operations/updaterollingreleaseconfig.go | 48 +- .../sdk/models/operations/updateteammember.go | 2 +- .../sdk/models/operations/uploadfile.go | 38 +- .../mockserver/internal/sdk/utils/json.go | 64 +- src/__tests__/rollingrelease.test.ts | 8 +- src/__tests__/security.test.ts | 12 +- src/__tests__/vercel.test.ts | 37 +- src/funcs/domainsCheckDomainPrice.ts | 4 +- ...ionIdOrSlugProductsProductIdOrSlugPlans.ts | 207 + ...ionsConnectIntegrationResourceToProject.ts | 213 + ...ntegrationsCreateIntegrationStoreDirect.ts | 207 + src/funcs/marketplaceExchangeSsoToken.ts | 4 +- src/funcs/marketplaceSubmitInvoice.ts | 4 +- src/funcs/marketplaceUpdateInvoice.ts | 4 +- src/funcs/projectsGetProjects.ts | 1 + src/lib/config.ts | 6 +- src/mcp-server/mcp-server.ts | 2 +- src/mcp-server/server.ts | 10 +- ...ionIdOrSlugProductsProductIdOrSlugPlans.ts | 41 + ...ionsConnectIntegrationResourceToProject.ts | 37 + ...ntegrationsCreateIntegrationStoreDirect.ts | 39 + src/models/acceptprojecttransferrequestop.ts | 89 +- src/models/authuser.ts | 2 +- src/models/canceldeploymentop.ts | 95 +- .../connectintegrationresourcetoprojectop.ts | 185 + src/models/createdeploymentop.ts | 1048 +- src/models/createintegrationstoredirectop.ts | 15739 ++++++++++++++++ src/models/createprojectenvop.ts | 4 +- src/models/createprojectop.ts | 707 +- src/models/createwebhookop.ts | 4 + src/models/editprojectenvop.ts | 2 +- src/models/filterprojectenvsop.ts | 6 +- src/models/getconfigurationop.ts | 2 + src/models/getconfigurationproductsop.ts | 2489 +-- src/models/getconfigurationsop.ts | 2 + src/models/getdeploymentop.ts | 68 +- src/models/getintegrationresourceop.ts | 46 +- src/models/getprojectsop.ts | 63 + src/models/getteammembersop.ts | 87 +- ...nidorslugproductsproductidorslugplansop.ts | 575 + src/models/getwebhookop.ts | 2 + src/models/getwebhooksop.ts | 56 +- src/models/inviteusertoteamop.ts | 1 + src/models/patchteamop.ts | 254 + src/models/removeprojectenvop.ts | 6 +- src/models/team.ts | 92 + src/models/teamlimited.ts | 1 + src/models/updatefirewallconfigop.ts | 142 +- src/models/updateinvoiceop.ts | 105 +- src/models/updateprojectdatacacheop.ts | 21 + src/models/updateprojectop.ts | 21 + src/models/userevent.ts | 1600 +- src/sdk/integrations.ts | 41 + src/sdk/sdk.ts | 24 +- vercel-spec.json | 5399 ++++-- 631 files changed, 64630 insertions(+), 12289 deletions(-) create mode 100644 docs/models/acceptedpolicies.md create mode 100644 docs/models/actions.md rename docs/models/{atbrandat447943.md => atbrandat502540.md} (61%) create mode 100644 docs/models/atbrandat7822.md create mode 100644 docs/models/connectintegrationresourcetoprojectrequest.md create mode 100644 docs/models/connectintegrationresourcetoprojectrequestbody.md create mode 100644 docs/models/createintegrationstoredirectactions.md create mode 100644 docs/models/createintegrationstoredirectbillingplan.md create mode 100644 docs/models/createintegrationstoredirectdeployments.md create mode 100644 docs/models/createintegrationstoredirectdetails.md create mode 100644 docs/models/createintegrationstoredirectdisabled2.md create mode 100644 docs/models/createintegrationstoredirectdisabled3.md create mode 100644 docs/models/createintegrationstoredirectdisabledintegrations2.md create mode 100644 docs/models/createintegrationstoredirectdisabledintegrations3.md create mode 100644 docs/models/createintegrationstoredirectdisabledintegrationsresponse2.md create mode 100644 docs/models/createintegrationstoredirectdisabledintegrationsresponse2002.md create mode 100644 docs/models/createintegrationstoredirectdisabledintegrationsresponse2003.md create mode 100644 docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson2.md create mode 100644 docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson3.md create mode 100644 docs/models/createintegrationstoredirectdisabledintegrationsresponse3.md create mode 100644 docs/models/createintegrationstoredirectenvironments.md create mode 100644 docs/models/createintegrationstoredirectexperimentation.md create mode 100644 docs/models/createintegrationstoredirectframework.md create mode 100644 docs/models/createintegrationstoredirecthidden2.md create mode 100644 docs/models/createintegrationstoredirecthidden3.md create mode 100644 docs/models/createintegrationstoredirecthiddenintegrations2.md create mode 100644 docs/models/createintegrationstoredirecthiddenintegrations3.md create mode 100644 docs/models/createintegrationstoredirecthiddenintegrationsresponse2.md create mode 100644 docs/models/createintegrationstoredirecthiddenintegrationsresponse2002.md create mode 100644 docs/models/createintegrationstoredirecthiddenintegrationsresponse2003.md create mode 100644 docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson2.md create mode 100644 docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson3.md create mode 100644 docs/models/createintegrationstoredirecthiddenintegrationsresponse3.md create mode 100644 docs/models/createintegrationstoredirecthighlighteddetails.md create mode 100644 docs/models/createintegrationstoredirectintegrationsenvironments.md create mode 100644 docs/models/createintegrationstoredirectintegrationsresponsetype.md create mode 100644 docs/models/createintegrationstoredirectintegrationstype.md create mode 100644 docs/models/createintegrationstoredirectlevel.md create mode 100644 docs/models/createintegrationstoredirectmetadata.md create mode 100644 docs/models/createintegrationstoredirectmetadataschema.md create mode 100644 docs/models/createintegrationstoredirectnotification.md create mode 100644 docs/models/createintegrationstoredirectproperties.md create mode 100644 docs/models/createintegrationstoredirectproperties1.md create mode 100644 docs/models/createintegrationstoredirectproperties2.md create mode 100644 docs/models/createintegrationstoredirectproperties3.md create mode 100644 docs/models/createintegrationstoredirectproperties4.md create mode 100644 docs/models/createintegrationstoredirectproperties5.md create mode 100644 docs/models/createintegrationstoredirectproperties6.md create mode 100644 docs/models/createintegrationstoredirectproperties7.md create mode 100644 docs/models/createintegrationstoredirectproperties8.md create mode 100644 docs/models/createintegrationstoredirectpropertiesatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesdisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertieshidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsdisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationshidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsitems.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsmaxlength.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsminlength.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationspattern.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6atbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsmaxlengthatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschemaatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschematype.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproducttype.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoretype.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuicontrol.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidescription.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuiformattedvalue.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuihidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuireadonly.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodytype.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuicontrol.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidescription.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuiformattedvalue.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuihidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuireadonly.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsontype.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuicontrol.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidescription.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuiformattedvalue.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuihidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuireadonly.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200atbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200maxlength.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200minlength.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200pattern.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200type.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uicontrol.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidescription.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uiformattedvalue.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uihidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uireadonly.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponsedisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponsehidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponsemaxlength.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseminlength.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponsepattern.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponsetype.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseuicontrol.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidescription.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseuiformattedvalue.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseuihidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseuioptions.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsresponseuireadonly.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationstype.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsuicontrol.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsuidescription.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsuidisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsuiformattedvalue.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsuihidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsuioptions.md create mode 100644 docs/models/createintegrationstoredirectpropertiesintegrationsuireadonly.md create mode 100644 docs/models/createintegrationstoredirectpropertiesitems.md create mode 100644 docs/models/createintegrationstoredirectpropertiesmaxlength.md create mode 100644 docs/models/createintegrationstoredirectpropertiesminlength.md create mode 100644 docs/models/createintegrationstoredirectpropertiespattern.md create mode 100644 docs/models/createintegrationstoredirectpropertiestype.md create mode 100644 docs/models/createintegrationstoredirectpropertiesuicontrol.md create mode 100644 docs/models/createintegrationstoredirectpropertiesuidescription.md create mode 100644 docs/models/createintegrationstoredirectpropertiesuidisabled.md create mode 100644 docs/models/createintegrationstoredirectpropertiesuiformattedvalue.md create mode 100644 docs/models/createintegrationstoredirectpropertiesuihidden.md create mode 100644 docs/models/createintegrationstoredirectpropertiesuioptions.md create mode 100644 docs/models/createintegrationstoredirectpropertiesuireadonly.md create mode 100644 docs/models/createintegrationstoredirectpropertiesvalue.md create mode 100644 docs/models/createintegrationstoredirectprotocolsettings.md create mode 100644 docs/models/createintegrationstoredirectquote.md create mode 100644 docs/models/createintegrationstoredirectrequest.md create mode 100644 docs/models/createintegrationstoredirectrequestbody.md create mode 100644 docs/models/createintegrationstoredirectresponsebody.md create mode 100644 docs/models/createintegrationstoredirectscope.md rename docs/models/{usereventpayload146project.md => createintegrationstoredirectsecrets.md} (55%) create mode 100644 docs/models/createintegrationstoredirectstatus.md create mode 100644 docs/models/createintegrationstoredirectstore.md create mode 100644 docs/models/createintegrationstoredirecttype.md create mode 100644 docs/models/createintegrationstoredirectuidescription2.md create mode 100644 docs/models/createintegrationstoredirectuidescriptionintegrations2.md create mode 100644 docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2.md create mode 100644 docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2002.md create mode 100644 docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjson2.md create mode 100644 docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebody2.md create mode 100644 docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebodystore2.md create mode 100644 docs/models/createintegrationstoredirectuidisabled2.md create mode 100644 docs/models/createintegrationstoredirectuidisabled3.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrations2.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrations3.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse2.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse2002.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse2003.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson2.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson3.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody2.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody3.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore2.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore3.md create mode 100644 docs/models/createintegrationstoredirectuidisabledintegrationsresponse3.md create mode 100644 docs/models/createintegrationstoredirectuihidden2.md create mode 100644 docs/models/createintegrationstoredirectuihidden3.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrations2.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrations3.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse2.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse2002.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse2003.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson2.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson3.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody2.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody3.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore2.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore3.md create mode 100644 docs/models/createintegrationstoredirectuihiddenintegrationsresponse3.md create mode 100644 docs/models/createintegrationstoredirectuioptions1.md create mode 100644 docs/models/createintegrationstoredirectuioptions2.md create mode 100644 docs/models/createintegrationstoredirectuioptions3.md create mode 100644 docs/models/createintegrationstoredirectuioptionsatbrandat7822.md create mode 100644 docs/models/createintegrationstoredirectuioptionsdisabled.md create mode 100644 docs/models/createintegrationstoredirectuioptionshidden.md create mode 100644 docs/models/createintegrationstoredirectuioptionsintegrationsdisabled.md create mode 100644 docs/models/createintegrationstoredirectuioptionsintegrationshidden.md create mode 100644 docs/models/createintegrationstoredirectuioptionsvalue.md create mode 100644 docs/models/createintegrationstoredirectuireadonly2.md create mode 100644 docs/models/createintegrationstoredirectuireadonly3.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrations2.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrations3.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2002.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2003.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson2.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson3.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody2.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody3.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore2.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore3.md create mode 100644 docs/models/createintegrationstoredirectuireadonlyintegrationsresponse3.md create mode 100644 docs/models/createintegrationstoredirectvalue.md create mode 100644 docs/models/defaultexpirationsettings.md create mode 100644 docs/models/expiration.md create mode 100644 docs/models/expirationcanceled.md create mode 100644 docs/models/expirationerrored.md create mode 100644 docs/models/expirationproduction.md create mode 100644 docs/models/externalresourcestatus.md create mode 100644 docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts2.md create mode 100644 docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts3.md create mode 100644 docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts2.md create mode 100644 docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts3.md rename docs/models/{getconfigurationproductspropertiesatbrandat447943.md => getconfigurationproductspropertiesatbrandat502540.md} (55%) rename docs/models/{getconfigurationproductspropertiesintegrationsatbrandat447943.md => getconfigurationproductspropertiesintegrationsatbrandat502540.md} (67%) create mode 100644 docs/models/getconfigurationproductspropertiesintegrationsdisabled.md create mode 100644 docs/models/getconfigurationproductspropertiesintegrationshidden.md rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat502540.md} (84%) rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat502540.md} (79%) rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat502540.md} (75%) rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat502540.md} (70%) delete mode 100644 docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat447943.md create mode 100644 docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat502540.md rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat502540.md} (94%) delete mode 100644 docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat447943.md create mode 100644 docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat502540.md delete mode 100644 docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat447943.md create mode 100644 docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat502540.md rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat502540.md} (94%) rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat502540.md} (95%) delete mode 100644 docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat447943.md create mode 100644 docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat502540.md rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat502540.md} (70%) rename docs/models/{getconfigurationproductspropertiesintegrationsresponse200atbrandat447943.md => getconfigurationproductspropertiesintegrationsresponse200atbrandat502540.md} (80%) rename docs/models/{getconfigurationproductspropertiesintegrationsresponseatbrandat447943.md => getconfigurationproductspropertiesintegrationsresponseatbrandat502540.md} (81%) create mode 100644 docs/models/getconfigurationproductsrepl.md rename docs/models/{getconfigurationproductsuioptionsatbrandat447943.md => getconfigurationproductsuioptionsatbrandat502540.md} (55%) rename docs/models/{getconfigurationproductsuioptionsintegrationsatbrandat447943.md => getconfigurationproductsuioptionsintegrationsatbrandat502540.md} (52%) rename docs/models/{getconfigurationproductsuioptionsintegrationsresponseatbrandat447943.md => getconfigurationproductsuioptionsintegrationsresponseatbrandat502540.md} (81%) create mode 100644 docs/models/getdeploymentmicrofrontendsmfeconfiguploadstate.md create mode 100644 docs/models/getintegrationresourcemetadata.md create mode 100644 docs/models/getteammembersteampermissions.md create mode 100644 docs/models/getteammembersteamroles.md create mode 100644 docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansdetails.md create mode 100644 docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansrequest.md create mode 100644 docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansresponsebody.md create mode 100644 docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansscope.md create mode 100644 docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplanstype.md create mode 100644 docs/models/guides.md create mode 100644 docs/models/highlighteddetails.md create mode 100644 docs/models/mfeconfiguploadstate.md create mode 100644 docs/models/microfrontendsmfeconfiguploadstate.md create mode 100644 docs/models/onehundredandfiftynine.md create mode 100644 docs/models/onehundredandsixty.md create mode 100644 docs/models/onehundredandsixtyone.md create mode 100644 docs/models/patchteamdefaultexpirationsettings.md create mode 100644 docs/models/plans.md create mode 100644 docs/models/product.md create mode 100644 docs/models/projectconnectionscopes.md rename docs/models/{propertiesatbrandat447943.md => propertiesatbrandat502540.md} (59%) create mode 100644 docs/models/propertiesatbrandat7822.md create mode 100644 docs/models/quote.md create mode 100644 docs/models/resourcelinks.md create mode 100644 docs/models/responsebodyprojectsmetadata.md create mode 100644 docs/models/sortbyelasticconcurrency.md create mode 100644 docs/models/steps.md create mode 100644 docs/models/tags.md rename docs/models/{uioptionsatbrandat447943.md => uioptionsatbrandat502540.md} (59%) create mode 100644 docs/models/uioptionsatbrandat7822.md create mode 100644 docs/models/updatefirewallconfigrequestbodysecurityrequest4action.md delete mode 100644 docs/models/updateinvoiceaction.md create mode 100644 docs/models/updateinvoicerequestbody1.md delete mode 100644 docs/models/usereventpayload143action.md create mode 100644 docs/models/usereventpayload144action.md rename docs/models/{usereventpayload147prevproject.md => usereventpayload148prevproject.md} (76%) create mode 100644 docs/models/usereventpayload148project.md rename docs/models/{usereventpayload157configuration.md => usereventpayload158configuration.md} (74%) rename docs/models/{usereventpayload156team.md => usereventpayload158team.md} (77%) rename docs/models/{usereventpayload156configuration.md => usereventpayload159configuration.md} (74%) rename docs/models/{usereventpayload157team.md => usereventpayload159team.md} (77%) rename docs/models/{usereventpayload155configuration.md => usereventpayload160configuration.md} (74%) rename docs/models/{usereventpayload155team.md => usereventpayload160team.md} (77%) create mode 100644 src/__tests__/mockserver/internal/handler/pathgetv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go create mode 100644 src/__tests__/mockserver/internal/handler/pathpostv1storagestoresintegrationdirect.go create mode 100644 src/__tests__/mockserver/internal/sdk/models/operations/connectintegrationresourcetoproject.go create mode 100644 src/__tests__/mockserver/internal/sdk/models/operations/createintegrationstoredirect.go create mode 100644 src/__tests__/mockserver/internal/sdk/models/operations/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go create mode 100644 src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts create mode 100644 src/funcs/integrationsConnectIntegrationResourceToProject.ts create mode 100644 src/funcs/integrationsCreateIntegrationStoreDirect.ts create mode 100644 src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts create mode 100644 src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts create mode 100644 src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts create mode 100644 src/models/connectintegrationresourcetoprojectop.ts create mode 100644 src/models/createintegrationstoredirectop.ts create mode 100644 src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 403faeb4..fbc4fb8b 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 79567c4a-05f9-4d65-864d-dfe107aa4e9d management: - docChecksum: c216dbce89e93c5bc361443c43d9a93f + docChecksum: ea12d32ce469bf3696a37e4267f3a09d docVersion: 0.0.1 - speakeasyVersion: 1.606.3 - generationVersion: 2.687.1 - releaseVersion: 1.10.6 - configChecksum: d7cbceb2942e0acce3d39694b76048d3 + speakeasyVersion: 1.609.0 + generationVersion: 2.692.0 + releaseVersion: 1.10.7 + configChecksum: 246e4a0d8b7ebc6f295c8722d24a5fa4 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.1 constsAndDefaults: 0.1.12 - core: 3.21.20 + core: 3.21.22 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 devContainers: 2.90.0 @@ -51,6 +51,7 @@ generatedFiles: - docs/lib/utils/retryconfig.md - docs/models/abuse.md - docs/models/acceptedchallenges.md + - docs/models/acceptedpolicies.md - docs/models/acceptprojecttransferrequestrequest.md - docs/models/acceptprojecttransferrequestrequestbody.md - docs/models/acceptprojecttransferrequestresponsebody.md @@ -66,6 +67,7 @@ generatedFiles: - docs/models/aclaction.md - docs/models/action.md - docs/models/action1.md + - docs/models/actions.md - docs/models/active.md - docs/models/activedashboardviews.md - docs/models/activestage.md @@ -135,7 +137,8 @@ generatedFiles: - docs/models/assignaliasrequest.md - docs/models/assignaliasrequestbody.md - docs/models/assignaliasresponsebody.md - - docs/models/atbrandat447943.md + - docs/models/atbrandat502540.md + - docs/models/atbrandat7822.md - docs/models/attribution.md - docs/models/authentication.md - docs/models/authmethod.md @@ -358,6 +361,8 @@ generatedFiles: - docs/models/connectconfigurations.md - docs/models/connectconfigurations1.md - docs/models/connectdatatransfer.md + - docs/models/connectintegrationresourcetoprojectrequest.md + - docs/models/connectintegrationresourcetoprojectrequestbody.md - docs/models/connection.md - docs/models/contact.md - docs/models/contentdispositiontype.md @@ -521,6 +526,206 @@ generatedFiles: - docs/models/createeventeventtype.md - docs/models/createeventrequest.md - docs/models/createeventrequestbody.md + - docs/models/createintegrationstoredirectactions.md + - docs/models/createintegrationstoredirectbillingplan.md + - docs/models/createintegrationstoredirectdeployments.md + - docs/models/createintegrationstoredirectdetails.md + - docs/models/createintegrationstoredirectdisabled2.md + - docs/models/createintegrationstoredirectdisabled3.md + - docs/models/createintegrationstoredirectdisabledintegrations2.md + - docs/models/createintegrationstoredirectdisabledintegrations3.md + - docs/models/createintegrationstoredirectdisabledintegrationsresponse2.md + - docs/models/createintegrationstoredirectdisabledintegrationsresponse2002.md + - docs/models/createintegrationstoredirectdisabledintegrationsresponse2003.md + - docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson2.md + - docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson3.md + - docs/models/createintegrationstoredirectdisabledintegrationsresponse3.md + - docs/models/createintegrationstoredirectenvironments.md + - docs/models/createintegrationstoredirectexperimentation.md + - docs/models/createintegrationstoredirectframework.md + - docs/models/createintegrationstoredirecthidden2.md + - docs/models/createintegrationstoredirecthidden3.md + - docs/models/createintegrationstoredirecthiddenintegrations2.md + - docs/models/createintegrationstoredirecthiddenintegrations3.md + - docs/models/createintegrationstoredirecthiddenintegrationsresponse2.md + - docs/models/createintegrationstoredirecthiddenintegrationsresponse2002.md + - docs/models/createintegrationstoredirecthiddenintegrationsresponse2003.md + - docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson2.md + - docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson3.md + - docs/models/createintegrationstoredirecthiddenintegrationsresponse3.md + - docs/models/createintegrationstoredirecthighlighteddetails.md + - docs/models/createintegrationstoredirectintegrationsenvironments.md + - docs/models/createintegrationstoredirectintegrationsresponsetype.md + - docs/models/createintegrationstoredirectintegrationstype.md + - docs/models/createintegrationstoredirectlevel.md + - docs/models/createintegrationstoredirectmetadata.md + - docs/models/createintegrationstoredirectmetadataschema.md + - docs/models/createintegrationstoredirectnotification.md + - docs/models/createintegrationstoredirectproperties.md + - docs/models/createintegrationstoredirectproperties1.md + - docs/models/createintegrationstoredirectproperties2.md + - docs/models/createintegrationstoredirectproperties3.md + - docs/models/createintegrationstoredirectproperties4.md + - docs/models/createintegrationstoredirectproperties5.md + - docs/models/createintegrationstoredirectproperties6.md + - docs/models/createintegrationstoredirectproperties7.md + - docs/models/createintegrationstoredirectproperties8.md + - docs/models/createintegrationstoredirectpropertiesatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesdisabled.md + - docs/models/createintegrationstoredirectpropertieshidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsdisabled.md + - docs/models/createintegrationstoredirectpropertiesintegrationshidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsitems.md + - docs/models/createintegrationstoredirectpropertiesintegrationsmaxlength.md + - docs/models/createintegrationstoredirectpropertiesintegrationsminlength.md + - docs/models/createintegrationstoredirectpropertiesintegrationspattern.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6atbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsmaxlengthatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschemaatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschematype.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproducttype.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoretype.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuicontrol.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidescription.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidisabled.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuiformattedvalue.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuihidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuireadonly.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodytype.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuicontrol.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidescription.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidisabled.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuiformattedvalue.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuihidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuireadonly.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsontype.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuicontrol.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidescription.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidisabled.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuiformattedvalue.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuihidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuireadonly.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200atbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200maxlength.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200minlength.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200pattern.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200type.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uicontrol.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidescription.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidisabled.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uiformattedvalue.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uihidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uireadonly.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseatbrandat7822.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponsedisabled.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponsehidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponsemaxlength.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseminlength.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponsepattern.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponsetype.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseuicontrol.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidescription.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidisabled.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseuiformattedvalue.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseuihidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseuioptions.md + - docs/models/createintegrationstoredirectpropertiesintegrationsresponseuireadonly.md + - docs/models/createintegrationstoredirectpropertiesintegrationstype.md + - docs/models/createintegrationstoredirectpropertiesintegrationsuicontrol.md + - docs/models/createintegrationstoredirectpropertiesintegrationsuidescription.md + - docs/models/createintegrationstoredirectpropertiesintegrationsuidisabled.md + - docs/models/createintegrationstoredirectpropertiesintegrationsuiformattedvalue.md + - docs/models/createintegrationstoredirectpropertiesintegrationsuihidden.md + - docs/models/createintegrationstoredirectpropertiesintegrationsuioptions.md + - docs/models/createintegrationstoredirectpropertiesintegrationsuireadonly.md + - docs/models/createintegrationstoredirectpropertiesitems.md + - docs/models/createintegrationstoredirectpropertiesmaxlength.md + - docs/models/createintegrationstoredirectpropertiesminlength.md + - docs/models/createintegrationstoredirectpropertiespattern.md + - docs/models/createintegrationstoredirectpropertiestype.md + - docs/models/createintegrationstoredirectpropertiesuicontrol.md + - docs/models/createintegrationstoredirectpropertiesuidescription.md + - docs/models/createintegrationstoredirectpropertiesuidisabled.md + - docs/models/createintegrationstoredirectpropertiesuiformattedvalue.md + - docs/models/createintegrationstoredirectpropertiesuihidden.md + - docs/models/createintegrationstoredirectpropertiesuioptions.md + - docs/models/createintegrationstoredirectpropertiesuireadonly.md + - docs/models/createintegrationstoredirectpropertiesvalue.md + - docs/models/createintegrationstoredirectprotocolsettings.md + - docs/models/createintegrationstoredirectquote.md + - docs/models/createintegrationstoredirectrequest.md + - docs/models/createintegrationstoredirectrequestbody.md + - docs/models/createintegrationstoredirectresponsebody.md + - docs/models/createintegrationstoredirectscope.md + - docs/models/createintegrationstoredirectsecrets.md + - docs/models/createintegrationstoredirectstatus.md + - docs/models/createintegrationstoredirectstore.md + - docs/models/createintegrationstoredirecttype.md + - docs/models/createintegrationstoredirectuidescription2.md + - docs/models/createintegrationstoredirectuidescriptionintegrations2.md + - docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2.md + - docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2002.md + - docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjson2.md + - docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebody2.md + - docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebodystore2.md + - docs/models/createintegrationstoredirectuidisabled2.md + - docs/models/createintegrationstoredirectuidisabled3.md + - docs/models/createintegrationstoredirectuidisabledintegrations2.md + - docs/models/createintegrationstoredirectuidisabledintegrations3.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse2.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse2002.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse2003.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson2.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson3.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody2.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody3.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore2.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore3.md + - docs/models/createintegrationstoredirectuidisabledintegrationsresponse3.md + - docs/models/createintegrationstoredirectuihidden2.md + - docs/models/createintegrationstoredirectuihidden3.md + - docs/models/createintegrationstoredirectuihiddenintegrations2.md + - docs/models/createintegrationstoredirectuihiddenintegrations3.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse2.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse2002.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse2003.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson2.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson3.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody2.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody3.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore2.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore3.md + - docs/models/createintegrationstoredirectuihiddenintegrationsresponse3.md + - docs/models/createintegrationstoredirectuioptions1.md + - docs/models/createintegrationstoredirectuioptions2.md + - docs/models/createintegrationstoredirectuioptions3.md + - docs/models/createintegrationstoredirectuioptionsatbrandat7822.md + - docs/models/createintegrationstoredirectuioptionsdisabled.md + - docs/models/createintegrationstoredirectuioptionshidden.md + - docs/models/createintegrationstoredirectuioptionsintegrationsdisabled.md + - docs/models/createintegrationstoredirectuioptionsintegrationshidden.md + - docs/models/createintegrationstoredirectuioptionsvalue.md + - docs/models/createintegrationstoredirectuireadonly2.md + - docs/models/createintegrationstoredirectuireadonly3.md + - docs/models/createintegrationstoredirectuireadonlyintegrations2.md + - docs/models/createintegrationstoredirectuireadonlyintegrations3.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2002.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2003.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson2.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson3.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody2.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody3.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore2.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore3.md + - docs/models/createintegrationstoredirectuireadonlyintegrationsresponse3.md + - docs/models/createintegrationstoredirectvalue.md - docs/models/createlogdraincreatedfrom.md - docs/models/createlogdraindeliveryformat.md - docs/models/createlogdrainenvironments.md @@ -828,6 +1033,7 @@ generatedFiles: - docs/models/default.md - docs/models/defaultapp.md - docs/models/defaultdeploymentprotection.md + - docs/models/defaultexpirationsettings.md - docs/models/defaultredirecturi.md - docs/models/defaultresourceconfig.md - docs/models/definitions.md @@ -979,6 +1185,11 @@ generatedFiles: - docs/models/exchangessotokenresponsebody.md - docs/models/experimentaltriggers.md - docs/models/experimentation.md + - docs/models/expiration.md + - docs/models/expirationcanceled.md + - docs/models/expirationerrored.md + - docs/models/expirationproduction.md + - docs/models/externalresourcestatus.md - docs/models/failed.md - docs/models/fastdatatransfer.md - docs/models/fastorigintransfer.md @@ -1222,6 +1433,8 @@ generatedFiles: - docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjson3.md - docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebody2.md - docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebody3.md + - docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts2.md + - docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts3.md - docs/models/getconfigurationproductsdisabledintegrationsresponse3.md - docs/models/getconfigurationproductsexperimentation.md - docs/models/getconfigurationproductshidden2.md @@ -1235,6 +1448,8 @@ generatedFiles: - docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjson3.md - docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebody2.md - docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebody3.md + - docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts2.md + - docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts3.md - docs/models/getconfigurationproductshiddenintegrationsresponse3.md - docs/models/getconfigurationproductsintegrationsresponse200applicationjsonresponsebodyproductsprotocolslogdrainstatus.md - docs/models/getconfigurationproductsintegrationsresponse200applicationjsonresponsebodyproductsprotocolsmessagingstatus.md @@ -1246,28 +1461,30 @@ generatedFiles: - docs/models/getconfigurationproductsintegrationsresponse200status.md - docs/models/getconfigurationproductsintegrationsresponsestatus.md - docs/models/getconfigurationproductsintegrationsstatus.md - - docs/models/getconfigurationproductspropertiesatbrandat447943.md + - docs/models/getconfigurationproductspropertiesatbrandat502540.md - docs/models/getconfigurationproductspropertiesdisabled.md - docs/models/getconfigurationproductspropertieshidden.md - - docs/models/getconfigurationproductspropertiesintegrationsatbrandat447943.md + - docs/models/getconfigurationproductspropertiesintegrationsatbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsdisabled.md + - docs/models/getconfigurationproductspropertiesintegrationshidden.md - docs/models/getconfigurationproductspropertiesintegrationsitems.md - docs/models/getconfigurationproductspropertiesintegrationsmaxlength.md - docs/models/getconfigurationproductspropertiesintegrationsminlength.md - docs/models/getconfigurationproductspropertiesintegrationspattern.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat447943.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat502540.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6type.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat447943.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat502540.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8type.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat447943.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat447943.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat502540.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat502540.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschematype.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductstype.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodytype.md @@ -1284,7 +1501,7 @@ generatedFiles: - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonuiformattedvalue.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonuihidden.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonuireadonly.md - - docs/models/getconfigurationproductspropertiesintegrationsresponse200atbrandat447943.md + - docs/models/getconfigurationproductspropertiesintegrationsresponse200atbrandat502540.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200type.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200uicontrol.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200uidescription.md @@ -1292,7 +1509,7 @@ generatedFiles: - docs/models/getconfigurationproductspropertiesintegrationsresponse200uiformattedvalue.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200uihidden.md - docs/models/getconfigurationproductspropertiesintegrationsresponse200uireadonly.md - - docs/models/getconfigurationproductspropertiesintegrationsresponseatbrandat447943.md + - docs/models/getconfigurationproductspropertiesintegrationsresponseatbrandat502540.md - docs/models/getconfigurationproductspropertiesintegrationsresponsemaxlength.md - docs/models/getconfigurationproductspropertiesintegrationsresponseminlength.md - docs/models/getconfigurationproductspropertiesintegrationsresponsepattern.md @@ -1323,6 +1540,7 @@ generatedFiles: - docs/models/getconfigurationproductspropertiesuihidden.md - docs/models/getconfigurationproductspropertiesuioptions.md - docs/models/getconfigurationproductspropertiesuireadonly.md + - docs/models/getconfigurationproductsrepl.md - docs/models/getconfigurationproductsrequest.md - docs/models/getconfigurationproductsresponsebody.md - docs/models/getconfigurationproductsstatus.md @@ -1365,13 +1583,13 @@ generatedFiles: - docs/models/getconfigurationproductsuioptions1.md - docs/models/getconfigurationproductsuioptions2.md - docs/models/getconfigurationproductsuioptions3.md - - docs/models/getconfigurationproductsuioptionsatbrandat447943.md + - docs/models/getconfigurationproductsuioptionsatbrandat502540.md - docs/models/getconfigurationproductsuioptionsdisabled.md - docs/models/getconfigurationproductsuioptionshidden.md - - docs/models/getconfigurationproductsuioptionsintegrationsatbrandat447943.md + - docs/models/getconfigurationproductsuioptionsintegrationsatbrandat502540.md - docs/models/getconfigurationproductsuioptionsintegrationsdisabled.md - docs/models/getconfigurationproductsuioptionsintegrationshidden.md - - docs/models/getconfigurationproductsuioptionsintegrationsresponseatbrandat447943.md + - docs/models/getconfigurationproductsuioptionsintegrationsresponseatbrandat502540.md - docs/models/getconfigurationproductsuioptionsintegrationsresponsedisabled.md - docs/models/getconfigurationproductsuioptionsintegrationsresponsehidden.md - docs/models/getconfigurationproductsuioptionsvalue.md @@ -1540,6 +1758,7 @@ generatedFiles: - docs/models/getdeploymentmicrofrontends1.md - docs/models/getdeploymentmicrofrontends2.md - docs/models/getdeploymentmicrofrontendsapplications.md + - docs/models/getdeploymentmicrofrontendsmfeconfiguploadstate.md - docs/models/getdeploymentmissing1.md - docs/models/getdeploymentmissing2.md - docs/models/getdeploymentmissingdeploymentstype.md @@ -1713,6 +1932,7 @@ generatedFiles: - docs/models/getintegrationlogdrainsresponsebody.md - docs/models/getintegrationlogdrainssources.md - docs/models/getintegrationresourcelevel.md + - docs/models/getintegrationresourcemetadata.md - docs/models/getintegrationresourcenotification.md - docs/models/getintegrationresourcerequest.md - docs/models/getintegrationresourceresponsebody.md @@ -2069,6 +2289,8 @@ generatedFiles: - docs/models/getteammembersrequest.md - docs/models/getteammembersresponsebody.md - docs/models/getteammembersrole.md + - docs/models/getteammembersteampermissions.md + - docs/models/getteammembersteamroles.md - docs/models/getteammembersteamsprojects.md - docs/models/getteammembersteamsresponserole.md - docs/models/getteammembersteamsrole.md @@ -2076,6 +2298,11 @@ generatedFiles: - docs/models/getteamsrequest.md - docs/models/getteamsresponsebody.md - docs/models/getteamsteams.md + - docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansdetails.md + - docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansrequest.md + - docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansresponsebody.md + - docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansscope.md + - docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplanstype.md - docs/models/getv9projectsidornamecustomenvironmentsbranchmatcher.md - docs/models/getv9projectsidornamecustomenvironmentsdomains.md - docs/models/getv9projectsidornamecustomenvironmentsenvironments.md @@ -2129,6 +2356,7 @@ generatedFiles: - docs/models/gituserid.md - docs/models/granttype.md - docs/models/group.md + - docs/models/guides.md - docs/models/handle.md - docs/models/has.md - docs/models/has1.md @@ -2141,6 +2369,7 @@ generatedFiles: - docs/models/hidden.md - docs/models/hidden2.md - docs/models/hidden3.md + - docs/models/highlighteddetails.md - docs/models/history.md - docs/models/https.md - docs/models/id.md @@ -2276,10 +2505,12 @@ generatedFiles: - docs/models/metadataschema.md - docs/models/metrics.md - docs/models/mfaconfiguration.md + - docs/models/mfeconfiguploadstate.md - docs/models/microfrontends.md - docs/models/microfrontends1.md - docs/models/microfrontends2.md - docs/models/microfrontendsapplications.md + - docs/models/microfrontendsmfeconfiguploadstate.md - docs/models/minlength.md - docs/models/missing.md - docs/models/missing1.md @@ -2357,6 +2588,7 @@ generatedFiles: - docs/models/onehundredandfiftyeight.md - docs/models/onehundredandfiftyfive.md - docs/models/onehundredandfiftyfour.md + - docs/models/onehundredandfiftynine.md - docs/models/onehundredandfiftyone.md - docs/models/onehundredandfiftyseven.md - docs/models/onehundredandfiftysix.md @@ -2382,6 +2614,8 @@ generatedFiles: - docs/models/onehundredandseventeen.md - docs/models/onehundredandsix.md - docs/models/onehundredandsixteen.md + - docs/models/onehundredandsixty.md + - docs/models/onehundredandsixtyone.md - docs/models/onehundredandten.md - docs/models/onehundredandthirteen.md - docs/models/onehundredandthirty.md @@ -2452,6 +2686,7 @@ generatedFiles: - docs/models/patchedgeconfigschemarequestbody.md - docs/models/patchedgeconfigschemaresponsebody.md - docs/models/patchteamdefaultdeploymentprotection.md + - docs/models/patchteamdefaultexpirationsettings.md - docs/models/patchteamdeploymenttype.md - docs/models/patchteampasswordprotection.md - docs/models/patchteamremotecaching.md @@ -2548,6 +2783,7 @@ generatedFiles: - docs/models/permissions.md - docs/models/php.md - docs/models/plan.md + - docs/models/plans.md - docs/models/postgres.md - docs/models/postv1installationsintegrationconfigurationidresourcesresourceidexperimentationitemsitems.md - docs/models/postv1installationsintegrationconfigurationidresourcesresourceidexperimentationitemsrequest.md @@ -2564,10 +2800,12 @@ generatedFiles: - docs/models/primaryprotocol.md - docs/models/principal.md - docs/models/principaltype.md + - docs/models/product.md - docs/models/production.md - docs/models/products.md - docs/models/project.md - docs/models/projectanalytics.md + - docs/models/projectconnectionscopes.md - docs/models/projectid.md - docs/models/projectmembership.md - docs/models/projects.md @@ -2585,7 +2823,8 @@ generatedFiles: - docs/models/properties7.md - docs/models/properties8.md - docs/models/properties9.md - - docs/models/propertiesatbrandat447943.md + - docs/models/propertiesatbrandat502540.md + - docs/models/propertiesatbrandat7822.md - docs/models/propertiesdisabled.md - docs/models/propertieshidden.md - docs/models/propertiesitems.md @@ -2689,6 +2928,7 @@ generatedFiles: - docs/models/queryparamrole.md - docs/models/queryparamtarget.md - docs/models/queryparamtype.md + - docs/models/quote.md - docs/models/ratelimit.md - docs/models/ratelimit1.md - docs/models/ratelimitaction.md @@ -2909,6 +3149,7 @@ generatedFiles: - docs/models/rerequestcheckresponsebody.md - docs/models/resourceconfig.md - docs/models/resourcelimits.md + - docs/models/resourcelinks.md - docs/models/resources.md - docs/models/resourcetransfererrors.md - docs/models/responsebody.md @@ -2972,6 +3213,7 @@ generatedFiles: - docs/models/responsebodyplan.md - docs/models/responsebodyproject.md - docs/models/responsebodyprojectsettings.md + - docs/models/responsebodyprojectsmetadata.md - docs/models/responsebodyprotocol.md - docs/models/responsebodyproxy.md - docs/models/responsebodyreadystate.md @@ -3074,6 +3316,7 @@ generatedFiles: - docs/models/sixtytwo.md - docs/models/skipautodetectionconfirmation.md - docs/models/softblock.md + - docs/models/sortbyelasticconcurrency.md - docs/models/source.md - docs/models/sourceimages.md - docs/models/sources.md @@ -3090,6 +3333,7 @@ generatedFiles: - docs/models/statusrequest.md - docs/models/statusresponsebody.md - docs/models/statusstatus.md + - docs/models/steps.md - docs/models/storage.md - docs/models/store.md - docs/models/storetype.md @@ -3108,6 +3352,7 @@ generatedFiles: - docs/models/submitprepaymentbalancesrequestbody.md - docs/models/sudo.md - docs/models/tagids.md + - docs/models/tags.md - docs/models/target.md - docs/models/target1.md - docs/models/target2.md @@ -3194,7 +3439,8 @@ generatedFiles: - docs/models/uioptions1.md - docs/models/uioptions2.md - docs/models/uioptions3.md - - docs/models/uioptionsatbrandat447943.md + - docs/models/uioptionsatbrandat502540.md + - docs/models/uioptionsatbrandat7822.md - docs/models/uioptionsdisabled.md - docs/models/uioptionshidden.md - docs/models/uioptionsvalue.md @@ -3301,6 +3547,7 @@ generatedFiles: - docs/models/updatefirewallconfigrequestbodysecurityrequest3action.md - docs/models/updatefirewallconfigrequestbodysecurityrequest3value.md - docs/models/updatefirewallconfigrequestbodysecurityrequest3valueaction.md + - docs/models/updatefirewallconfigrequestbodysecurityrequest4action.md - docs/models/updatefirewallconfigrequestbodysecurityrequest5action.md - docs/models/updatefirewallconfigrequestbodysecurityrequest6action.md - docs/models/updatefirewallconfigrequestbodysecurityrequest6valueaction.md @@ -3320,9 +3567,9 @@ generatedFiles: - docs/models/updateintegrationdeploymentactionrequest.md - docs/models/updateintegrationdeploymentactionrequestbody.md - docs/models/updateintegrationdeploymentactionstatus.md - - docs/models/updateinvoiceaction.md - docs/models/updateinvoicerequest.md - docs/models/updateinvoicerequestbody.md + - docs/models/updateinvoicerequestbody1.md - docs/models/updateprojectaction.md - docs/models/updateprojectaibots.md - docs/models/updateprojectaliasassigned.md @@ -3651,16 +3898,16 @@ generatedFiles: - docs/models/usereventpayload137role.md - docs/models/usereventpayload138project.md - docs/models/usereventpayload138role.md - - docs/models/usereventpayload143action.md - - docs/models/usereventpayload146project.md - - docs/models/usereventpayload147prevproject.md + - docs/models/usereventpayload144action.md - docs/models/usereventpayload147project.md - - docs/models/usereventpayload155configuration.md - - docs/models/usereventpayload155team.md - - docs/models/usereventpayload156configuration.md - - docs/models/usereventpayload156team.md - - docs/models/usereventpayload157configuration.md - - docs/models/usereventpayload157team.md + - docs/models/usereventpayload148prevproject.md + - docs/models/usereventpayload148project.md + - docs/models/usereventpayload158configuration.md + - docs/models/usereventpayload158team.md + - docs/models/usereventpayload159configuration.md + - docs/models/usereventpayload159team.md + - docs/models/usereventpayload160configuration.md + - docs/models/usereventpayload160team.md - docs/models/usereventpayload29team.md - docs/models/usereventpayload31project.md - docs/models/usereventpayload32configuration.md @@ -3859,6 +4106,7 @@ generatedFiles: - src/__tests__/mockserver/internal/handler/pathgetv1installationsintegrationconfigurationidresourcesresourceid.go - src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationid.go - src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationidproducts.go + - src/__tests__/mockserver/internal/handler/pathgetv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go - src/__tests__/mockserver/internal/handler/pathgetv1projectsidornameenvid.go - src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingrelease.go - src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go @@ -3942,6 +4190,7 @@ generatedFiles: - src/__tests__/mockserver/internal/handler/pathpostv1projectsprojectidunpause.go - src/__tests__/mockserver/internal/handler/pathpostv1securityattackmode.go - src/__tests__/mockserver/internal/handler/pathpostv1securityfirewallbypass.go + - src/__tests__/mockserver/internal/handler/pathpostv1storagestoresintegrationdirect.go - src/__tests__/mockserver/internal/handler/pathpostv1teams.go - src/__tests__/mockserver/internal/handler/pathpostv1teamsteamidmembersteamsjoin.go - src/__tests__/mockserver/internal/handler/pathpostv1teamsteamidrequest.go @@ -4006,6 +4255,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/operations/checkdomainprice.go - src/__tests__/mockserver/internal/sdk/models/operations/checkdomainstatus.go - src/__tests__/mockserver/internal/sdk/models/operations/completerollingrelease.go + - src/__tests__/mockserver/internal/sdk/models/operations/connectintegrationresourcetoproject.go - src/__tests__/mockserver/internal/sdk/models/operations/createaccessgroup.go - src/__tests__/mockserver/internal/sdk/models/operations/createaccessgroupproject.go - src/__tests__/mockserver/internal/sdk/models/operations/createauthtoken.go @@ -4015,6 +4265,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go - src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfigtoken.go - src/__tests__/mockserver/internal/sdk/models/operations/createevent.go + - src/__tests__/mockserver/internal/sdk/models/operations/createintegrationstoredirect.go - src/__tests__/mockserver/internal/sdk/models/operations/createlogdrain.go - src/__tests__/mockserver/internal/sdk/models/operations/createortransferdomain.go - src/__tests__/mockserver/internal/sdk/models/operations/createproject.go @@ -4095,6 +4346,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/operations/getteamaccessrequest.go - src/__tests__/mockserver/internal/sdk/models/operations/getteammembers.go - src/__tests__/mockserver/internal/sdk/models/operations/getteams.go + - src/__tests__/mockserver/internal/sdk/models/operations/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go - src/__tests__/mockserver/internal/sdk/models/operations/getv9projectsidornamecustomenvironments.go - src/__tests__/mockserver/internal/sdk/models/operations/getwebhook.go - src/__tests__/mockserver/internal/sdk/models/operations/getwebhooks.go @@ -4280,6 +4532,9 @@ generatedFiles: - src/funcs/environmentGetV9ProjectsIdOrNameCustomEnvironments.ts - src/funcs/environmentRemoveCustomEnvironment.ts - src/funcs/environmentUpdateCustomEnvironment.ts + - src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts + - src/funcs/integrationsConnectIntegrationResourceToProject.ts + - src/funcs/integrationsCreateIntegrationStoreDirect.ts - src/funcs/integrationsDeleteConfiguration.ts - src/funcs/integrationsGetConfiguration.ts - src/funcs/integrationsGetConfigurationProducts.ts @@ -4483,6 +4738,9 @@ generatedFiles: - src/mcp-server/tools/environmentGetV9ProjectsIdOrNameCustomEnvironments.ts - src/mcp-server/tools/environmentRemoveCustomEnvironment.ts - src/mcp-server/tools/environmentUpdateCustomEnvironment.ts + - src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts + - src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts + - src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts - src/mcp-server/tools/integrationsDeleteConfiguration.ts - src/mcp-server/tools/integrationsGetConfiguration.ts - src/mcp-server/tools/integrationsGetConfigurationProducts.ts @@ -4590,6 +4848,7 @@ generatedFiles: - src/models/checkdomainpriceop.ts - src/models/checkdomainstatusop.ts - src/models/completerollingreleaseop.ts + - src/models/connectintegrationresourcetoprojectop.ts - src/models/createaccessgroupop.ts - src/models/createaccessgroupprojectop.ts - src/models/createauthtokenop.ts @@ -4599,6 +4858,7 @@ generatedFiles: - src/models/createedgeconfigop.ts - src/models/createedgeconfigtokenop.ts - src/models/createeventop.ts + - src/models/createintegrationstoredirectop.ts - src/models/createlogdrainop.ts - src/models/createortransferdomainop.ts - src/models/createprojectenvop.ts @@ -4684,6 +4944,7 @@ generatedFiles: - src/models/getteammembersop.ts - src/models/getteamop.ts - src/models/getteamsop.ts + - src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts - src/models/getv9projectsidornamecustomenvironmentsop.ts - src/models/getwebhookop.ts - src/models/getwebhooksop.ts @@ -5452,6 +5713,7 @@ examples: teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l" slug: "my-team-url-slug" elasticConcurrencyEnabled: "1" + sortByElasticConcurrency: "desc" responses: "200": application/json: {"projects": [{"accountId": "", "crons": {"enabledAt": 5254.53, "disabledAt": null, "updatedAt": 514.35, "deploymentId": "", "definitions": [{"host": "vercel.com", "path": "/api/crons/sync-something?hello=world", "schedule": "0 0 * * *"}]}, "directoryListing": false, "id": "", "latestDeployments": [{"id": "", "createdAt": 6310.4, "createdIn": "", "creator": {"email": "Howell_Metz@gmail.com", "uid": "", "username": "Mohammed_Bechtelar67"}, "deploymentHostname": "", "name": "", "plan": "pro", "previewCommentsEnabled": false, "private": true, "readyState": "ERROR", "type": "LAMBDAS", "url": "https://monthly-numeracy.net/", "userId": ""}, {"id": "", "createdAt": 6310.4, "createdIn": "", "creator": {"email": "Howell_Metz@gmail.com", "uid": "", "username": "Mohammed_Bechtelar67"}, "deploymentHostname": "", "name": "", "plan": "pro", "previewCommentsEnabled": false, "private": true, "readyState": "ERROR", "type": "LAMBDAS", "url": "https://monthly-numeracy.net/", "userId": ""}], "name": "", "nodeVersion": "14.x", "resourceConfig": {"functionDefaultRegions": ["", ""]}, "defaultResourceConfig": {"functionDefaultRegions": ["", ""]}, "targets": {"key": {"id": "", "createdAt": 3954.3, "createdIn": "", "creator": {"email": "Tavares_Hills95@gmail.com", "uid": "", "username": "Dariana_Hand"}, "deploymentHostname": "", "name": "", "plan": "hobby", "previewCommentsEnabled": false, "private": false, "readyState": "ERROR", "type": "LAMBDAS", "url": "https://obedient-mentor.org/", "userId": ""}}}, {"accountId": "", "crons": {"enabledAt": 5254.53, "disabledAt": null, "updatedAt": 514.35, "deploymentId": "", "definitions": [{"host": "vercel.com", "path": "/api/crons/sync-something?hello=world", "schedule": "0 0 * * *"}]}, "directoryListing": false, "id": "", "latestDeployments": [{"id": "", "createdAt": 6310.4, "createdIn": "", "creator": {"email": "Howell_Metz@gmail.com", "uid": "", "username": "Mohammed_Bechtelar67"}, "deploymentHostname": "", "name": "", "plan": "pro", "previewCommentsEnabled": false, "private": true, "readyState": "ERROR", "type": "LAMBDAS", "url": "https://monthly-numeracy.net/", "userId": ""}, {"id": "", "createdAt": 6310.4, "createdIn": "", "creator": {"email": "Howell_Metz@gmail.com", "uid": "", "username": "Mohammed_Bechtelar67"}, "deploymentHostname": "", "name": "", "plan": "pro", "previewCommentsEnabled": false, "private": true, "readyState": "ERROR", "type": "LAMBDAS", "url": "https://monthly-numeracy.net/", "userId": ""}], "name": "", "nodeVersion": "14.x", "resourceConfig": {"functionDefaultRegions": ["", ""]}, "defaultResourceConfig": {"functionDefaultRegions": ["", ""]}, "targets": {"key": {"id": "", "createdAt": 3954.3, "createdIn": "", "creator": {"email": "Tavares_Hills95@gmail.com", "uid": "", "username": "Dariana_Hand"}, "deploymentHostname": "", "name": "", "plan": "hobby", "previewCommentsEnabled": false, "private": false, "readyState": "ERROR", "type": "LAMBDAS", "url": "https://obedient-mentor.org/", "userId": ""}}}], "pagination": {"count": 20, "next": 1540095775951, "prev": 1540095775951}} @@ -7361,7 +7623,7 @@ examples: slug: "my-team-url-slug" responses: "200": - application/json: {"creatorId": "R6efeCJQ2HKXywuasPDc0fOWB", "updatedAt": 1611796915677, "emailDomain": "example.com", "saml": {"connection": {"type": "OktaSAML", "status": "linked", "state": "active", "connectedAt": 1611796915677, "lastReceivedWebhookEvent": 1611796915677}, "directory": {"type": "OktaSAML", "state": "active", "connectedAt": 1611796915677, "lastReceivedWebhookEvent": 1611796915677}, "enforced": true}, "inviteCode": "hasihf9e89", "description": "Our mission is to make cloud computing accessible to everyone.", "stagingPrefix": "", "previewDeploymentSuffix": "example.dev", "id": "team_nllPyCtREAqxxdyFKbbMDlxd", "slug": "my-team", "name": "My Team", "avatar": "6eb07268bcfadd309905ffb1579354084c24655c", "membership": {"confirmed": false, "role": "SECURITY", "createdAt": 1519.81, "created": 619.38}, "createdAt": 1630748523395} + application/json: {"creatorId": "R6efeCJQ2HKXywuasPDc0fOWB", "updatedAt": 1611796915677, "emailDomain": "example.com", "saml": {"connection": {"type": "OktaSAML", "status": "linked", "state": "active", "connectedAt": 1611796915677, "lastReceivedWebhookEvent": 1611796915677}, "directory": {"type": "OktaSAML", "state": "active", "connectedAt": 1611796915677, "lastReceivedWebhookEvent": 1611796915677}, "enforced": true}, "inviteCode": "hasihf9e89", "description": "Our mission is to make cloud computing accessible to everyone.", "stagingPrefix": "", "previewDeploymentSuffix": "example.dev", "platform": true, "id": "team_nllPyCtREAqxxdyFKbbMDlxd", "slug": "my-team", "name": "My Team", "avatar": "6eb07268bcfadd309905ffb1579354084c24655c", "membership": {"confirmed": false, "role": "SECURITY", "createdAt": 1519.81, "created": 619.38}, "createdAt": 1630748523395} "400": application/json: {"error": {"code": "", "message": ""}} "401": @@ -7376,10 +7638,10 @@ examples: query: slug: "my-team-url-slug" requestBody: - application/json: {"description": "Our mission is to make cloud computing accessible to everyone", "emailDomain": "example.com", "name": "My Team", "previewDeploymentSuffix": "example.dev", "regenerateInviteCode": true, "saml": {"enforced": true}, "slug": "my-team", "enablePreviewFeedback": "on", "enableProductionFeedback": "on", "sensitiveEnvironmentVariablePolicy": "on", "remoteCaching": {"enabled": true}, "hideIpAddresses": false, "hideIpAddressesInLogDrains": false} + application/json: {"description": "Our mission is to make cloud computing accessible to everyone", "emailDomain": "example.com", "name": "My Team", "previewDeploymentSuffix": "example.dev", "regenerateInviteCode": true, "saml": {"enforced": true}, "slug": "my-team", "enablePreviewFeedback": "on", "enableProductionFeedback": "on", "sensitiveEnvironmentVariablePolicy": "on", "remoteCaching": {"enabled": true}, "hideIpAddresses": false, "hideIpAddressesInLogDrains": false, "defaultExpirationSettings": {"expiration": "1y", "expirationProduction": "1y", "expirationCanceled": "1y", "expirationErrored": "1y"}} responses: "200": - application/json: {"creatorId": "R6efeCJQ2HKXywuasPDc0fOWB", "updatedAt": 1611796915677, "emailDomain": "example.com", "saml": {"connection": {"type": "OktaSAML", "status": "linked", "state": "active", "connectedAt": 1611796915677, "lastReceivedWebhookEvent": 1611796915677}, "directory": {"type": "OktaSAML", "state": "active", "connectedAt": 1611796915677, "lastReceivedWebhookEvent": 1611796915677}, "enforced": true}, "inviteCode": "hasihf9e89", "description": "Our mission is to make cloud computing accessible to everyone.", "stagingPrefix": "", "previewDeploymentSuffix": "example.dev", "id": "team_nllPyCtREAqxxdyFKbbMDlxd", "slug": "my-team", "name": "My Team", "avatar": "6eb07268bcfadd309905ffb1579354084c24655c", "membership": {"confirmed": true, "role": "CONTRIBUTOR", "createdAt": 6209.44, "created": 5994.92}, "createdAt": 1630748523395} + application/json: {"creatorId": "R6efeCJQ2HKXywuasPDc0fOWB", "updatedAt": 1611796915677, "emailDomain": "example.com", "saml": {"connection": {"type": "OktaSAML", "status": "linked", "state": "active", "connectedAt": 1611796915677, "lastReceivedWebhookEvent": 1611796915677}, "directory": {"type": "OktaSAML", "state": "active", "connectedAt": 1611796915677, "lastReceivedWebhookEvent": 1611796915677}, "enforced": true}, "inviteCode": "hasihf9e89", "description": "Our mission is to make cloud computing accessible to everyone.", "stagingPrefix": "", "previewDeploymentSuffix": "example.dev", "platform": true, "id": "team_nllPyCtREAqxxdyFKbbMDlxd", "slug": "my-team", "name": "My Team", "avatar": "6eb07268bcfadd309905ffb1579354084c24655c", "membership": {"confirmed": true, "role": "CONTRIBUTOR", "createdAt": 6209.44, "created": 5994.92}, "createdAt": 1630748523395} "400": application/json: {"error": {"code": "", "message": ""}} "401": @@ -7930,6 +8192,56 @@ examples: application/json: {"error": {"code": "", "message": ""}} "404": application/json: {"error": {"code": "", "message": ""}} + get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans: + speakeasy-default-get-/v1-/integrations/integration/{integration-id-or-slug}/products/{product-id-or-slug}/plans: + parameters: + path: + integrationIdOrSlug: "" + productIdOrSlug: "" + responses: + "200": + application/json: {"plans": [{"type": "prepayment", "id": "", "name": "", "scope": "resource", "description": "cope unless hierarchy versus ouch more regarding tabulate", "paymentMethodRequired": false}]} + "400": + application/json: {"error": {"code": "", "message": ""}} + "401": + application/json: {"error": {"code": "", "message": ""}} + "404": + application/json: {"error": {"code": "", "message": ""}} + connectIntegrationResourceToProject: + speakeasy-default-connect-integration-resource-to-project: + parameters: + path: + integrationConfigurationId: "" + resourceId: "" + query: + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l" + slug: "my-team-url-slug" + responses: + "400": + application/json: {"error": {"code": "", "message": ""}} + "401": + application/json: {"error": {"code": "", "message": ""}} + "404": + application/json: {"error": {"code": "", "message": ""}} + createIntegrationStoreDirect: + speakeasy-default-create-integration-store-direct: + parameters: + query: + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l" + slug: "my-team-url-slug" + requestBody: + application/json: {"name": "my-dev-database", "integrationConfigurationId": "icfg_cuwj0AdCdH3BwWT4LPijCC7t", "integrationProductIdOrSlug": "iap_postgres_db", "metadata": {"environment": "development", "project": "my-app", "tags": ["database", "postgres"]}, "externalId": "dev-db-001", "protocolSettings": {"experimentation": {"edgeConfigSyncingEnabled": true}}, "source": "api", "billingPlanId": "bp_abc123def456", "paymentMethodId": "pm_1AbcDefGhiJklMno", "prepaymentAmountCents": 5000} + responses: + "200": + application/json: {"store": {"projectsMetadata": [{"id": "", "projectId": "", "name": "", "environments": [], "envVarPrefix": "", "environmentVariables": ["", ""]}], "usageQuotaExceeded": true, "status": "available", "externalResourceId": "", "product": {"value": {"__@BRAND@7822": {}}}, "secrets": []}} + "400": + application/json: {"error": {"code": "", "message": ""}} + "401": + application/json: {"error": {"code": "", "message": ""}} + "404": + application/json: {"error": {"code": "", "message": ""}} + "429": + application/json: {"error": {"code": "", "message": ""}} examplesVersion: 1.0.2 generatedTests: readAccessGroup: "2025-04-29T14:51:46-05:00" @@ -8099,4 +8411,6 @@ generatedTests: get-integration-resources: "2025-07-11T17:15:09Z" get-integration-resource: "2025-07-11T17:15:09Z" getConfigurationProducts: "2025-08-21T23:02:56Z" -releaseNotes: "## SDK Changes Detected:\n* `vercel.integrations.getConfigurationProducts()`: `response.products.[].metadataSchema.properties.{}` **Changed** **Breaking** :warning:\n* `vercel.projects.updateProjectDataCache()`: `response` **Changed**\n* `vercel.projects.getProjects()`: \n * `request.elasticConcurrencyEnabled` **Added**\n * `response.projects.[]` **Changed**\n* `vercel.projects.createProject()`: \n * `request.requestBody.resourceConfig.isNsnbDisabled` **Added**\n * `response` **Changed**\n* `vercel.projects.updateProject()`: \n * `request.requestBody.resourceConfig.isNsnbDisabled` **Added**\n * `response` **Changed**\n" + get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans: "2025-09-03T16:44:43Z" + createIntegrationStoreDirect: "2025-09-03T16:44:43Z" +releaseNotes: "## Typescript SDK Changes Detected:\n* `vercel.marketplace.updateInvoice()`: \n * `request.requestBody` **Changed** **Breaking** :warning:\n * `error.status[409]` **Added**\n* `vercel.integrations.getConfigurationProducts()`: `response.products.[].metadataSchema.properties.{}` **Changed** **Breaking** :warning:\n* `vercel.user.listUserEvents()`: `response.events.[].payload` **Changed** **Breaking** :warning:\n* `vercel.deployments.getDeployment()`: `response.[1]` **Changed**\n* `vercel.projects.getProjects()`: \n * `request.sortByElasticConcurrency` **Added**\n* `vercel.domains.checkDomainPrice()`: `error.status[500]` **Added**\n* `vercel.deployments.createDeployment()`: `response` **Changed**\n* `vercel.deployments.cancelDeployment()`: `response` **Changed**\n* `vercel.integrations.connectIntegrationResourceToProject()`: **Added**\n* `vercel.integrations.createIntegrationStoreDirect()`: **Added**\n* `vercel.projects.acceptProjectTransferRequest()`: \n * `request.requestBody.acceptedPolicies` **Added**\n* `vercel.marketplace.submitInvoice()`: `error.status[409]` **Added**\n* `vercel.get/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans()`: **Added**\n* `vercel.marketplace.exchangeSsoToken()`: `error.status[403]` **Added**\n* `vercel.authentication.exchangeSsoToken()`: `error.status[403]` **Added**\n* `vercel.teams.getTeamMembers()`: `response.emailinvitecodes.[]` **Changed**\n* `vercel.teams.getTeam()`: `response` **Changed**\n* `vercel.teams.patchTeam()`: \n * `request.requestBody.defaultExpirationSettings` **Added**\n * `response` **Changed**\n* `vercel.teams.getTeams()`: `response.teams.[].[team]` **Changed**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5a994c91..554f4cf3 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -24,7 +24,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 1.10.6 + version: 1.10.7 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index c7c95a9f..0f523333 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -6296,3 +6296,99 @@ workflows: type: simple x-speakeasy-test-group: integrations x-speakeasy-test-rebuild: true + - workflowId: get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans + steps: + - stepId: test + operationId: get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans + parameters: + - name: integrationIdOrSlug + in: path + value: + - name: productIdOrSlug + in: path + value: + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + { + "plans": [ + { + "type": "prepayment", + "id": "\u003cid\u003e", + "name": "\u003cvalue\u003e", + "scope": "resource", + "description": "cope unless hierarchy versus ouch more regarding tabulate", + "paymentMethodRequired": false + } + ] + } + type: simple + x-speakeasy-test-group: Vercel + x-speakeasy-test-rebuild: true + - workflowId: createIntegrationStoreDirect + steps: + - stepId: test + operationId: createIntegrationStoreDirect + parameters: + - name: teamId + in: query + value: team_1a2b3c4d5e6f7g8h9i0j1k2l + - name: slug + in: query + value: my-team-url-slug + requestBody: + contentType: application/json + payload: + billingPlanId: bp_abc123def456 + externalId: dev-db-001 + integrationConfigurationId: icfg_cuwj0AdCdH3BwWT4LPijCC7t + integrationProductIdOrSlug: iap_postgres_db + metadata: + environment: development + project: my-app + tags: + - database + - postgres + name: my-dev-database + paymentMethodId: pm_1AbcDefGhiJklMno + prepaymentAmountCents: 5000 + protocolSettings: + experimentation: + edgeConfigSyncingEnabled: true + source: api + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + { + "store": { + "projectsMetadata": [ + { + "id": "\u003cid\u003e", + "projectId": "\u003cid\u003e", + "name": "\u003cvalue\u003e", + "environments": [], + "envVarPrefix": "\u003cvalue\u003e", + "environmentVariables": [ + "\u003cvalue 1\u003e", + "\u003cvalue 2\u003e" + ] + } + ], + "usageQuotaExceeded": true, + "status": "available", + "externalResourceId": "\u003cid\u003e", + "product": { + "value": { + "__@BRAND@7822": {} + } + }, + "secrets": [] + } + } + type: simple + x-speakeasy-test-group: integrations + x-speakeasy-test-rebuild: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index b33b8976..a561907b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.606.3 +speakeasyVersion: 1.609.0 sources: vercel-OAS: sourceNamespace: vercel-oas - sourceRevisionDigest: sha256:262c42fd38ac0c6bc1257cac0868585776324bca611424aad7d10ee9c48b488e - sourceBlobDigest: sha256:efe36ab1258fc06ae255530750f948652c36774e9bac9ca4b1216ad3116f91f1 + sourceRevisionDigest: sha256:863c453ea7e270c6702f66a8bb0efabc4a124931a789ac0a0db09eb08fc5a3b7 + sourceBlobDigest: sha256:e6b3f049c2eaacc334c581863343420a97a0e0ef9a9987c40417339658a030b4 tags: - latest - - speakeasy-sdk-regen-1755907635 + - speakeasy-sdk-regen-1756917845 - 0.0.1 targets: vercel: source: vercel-OAS sourceNamespace: vercel-oas - sourceRevisionDigest: sha256:262c42fd38ac0c6bc1257cac0868585776324bca611424aad7d10ee9c48b488e - sourceBlobDigest: sha256:efe36ab1258fc06ae255530750f948652c36774e9bac9ca4b1216ad3116f91f1 + sourceRevisionDigest: sha256:863c453ea7e270c6702f66a8bb0efabc4a124931a789ac0a0db09eb08fc5a3b7 + sourceBlobDigest: sha256:e6b3f049c2eaacc334c581863343420a97a0e0ef9a9987c40417339658a030b4 codeSamplesNamespace: vercel-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:500af4532c8a6ea5ebb2f1e744ebd83023c173477daad578cdd5532fef623654 + codeSamplesRevisionDigest: sha256:2c3a2906b6aac9ee2807d438bebc972bb81a151e70cf7fadf633f252aab53787 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 9c20f364..95902e22 100644 --- a/README.md +++ b/README.md @@ -198,11 +198,13 @@ const vercel = new Vercel({ }); async function run() { - const result = await vercel.accessGroups.readAccessGroup({ - idOrName: "ag_1a2b3c4d5e6f7g8h9i0j", - teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", - slug: "my-team-url-slug", - }); + const result = await vercel + .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + { + integrationIdOrSlug: "", + productIdOrSlug: "", + }, + ); console.log(result); } @@ -403,10 +405,12 @@ run(); ### [integrations](docs/sdks/integrations/README.md) * [updateIntegrationDeploymentAction](docs/sdks/integrations/README.md#updateintegrationdeploymentaction) - Update deployment integration action +* [connectIntegrationResourceToProject](docs/sdks/integrations/README.md#connectintegrationresourcetoproject) - Connect integration resource to project * [getConfigurations](docs/sdks/integrations/README.md#getconfigurations) - Get configurations for the authenticated user or team * [getConfiguration](docs/sdks/integrations/README.md#getconfiguration) - Retrieve an integration configuration * [deleteConfiguration](docs/sdks/integrations/README.md#deleteconfiguration) - Delete an integration configuration * [getConfigurationProducts](docs/sdks/integrations/README.md#getconfigurationproducts) - List products for integration configuration +* [createIntegrationStoreDirect](docs/sdks/integrations/README.md#createintegrationstoredirect) - Create integration store (free and paid plans) ### [logDrains](docs/sdks/logdrains/README.md) @@ -517,6 +521,9 @@ run(); * [getAuthUser](docs/sdks/user/README.md#getauthuser) - Get the User * [requestDelete](docs/sdks/user/README.md#requestdelete) - Delete User Account +### [Vercel SDK](docs/sdks/vercel/README.md) + +* [getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans](docs/sdks/vercel/README.md#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans) ### [webhooks](docs/sdks/webhooks/README.md) @@ -626,6 +633,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`environmentGetV9ProjectsIdOrNameCustomEnvironments`](docs/sdks/environment/README.md#getv9projectsidornamecustomenvironments) - Retrieve custom environments - [`environmentRemoveCustomEnvironment`](docs/sdks/environment/README.md#removecustomenvironment) - Remove a custom environment - [`environmentUpdateCustomEnvironment`](docs/sdks/environment/README.md#updatecustomenvironment) - Update a custom environment +- [`getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans`](docs/sdks/vercel/README.md#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans) +- [`integrationsConnectIntegrationResourceToProject`](docs/sdks/integrations/README.md#connectintegrationresourcetoproject) - Connect integration resource to project +- [`integrationsCreateIntegrationStoreDirect`](docs/sdks/integrations/README.md#createintegrationstoredirect) - Create integration store (free and paid plans) - [`integrationsDeleteConfiguration`](docs/sdks/integrations/README.md#deleteconfiguration) - Delete an integration configuration - [`integrationsGetConfiguration`](docs/sdks/integrations/README.md#getconfiguration) - Retrieve an integration configuration - [`integrationsGetConfigurationProducts`](docs/sdks/integrations/README.md#getconfigurationproducts) - List products for integration configuration @@ -773,27 +783,28 @@ To change the default retry strategy for a single API call, simply provide a ret ```typescript import { Vercel } from "@vercel/sdk"; -const vercel = new Vercel({ - bearerToken: "", -}); +const vercel = new Vercel(); async function run() { - const result = await vercel.accessGroups.readAccessGroup({ - idOrName: "ag_1a2b3c4d5e6f7g8h9i0j", - teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", - slug: "my-team-url-slug", - }, { - retries: { - strategy: "backoff", - backoff: { - initialInterval: 1, - maxInterval: 50, - exponent: 1.1, - maxElapsedTime: 100, + const result = await vercel + .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + { + integrationIdOrSlug: "", + productIdOrSlug: "", }, - retryConnectionErrors: false, - }, - }); + { + retries: { + strategy: "backoff", + backoff: { + initialInterval: 1, + maxInterval: 50, + exponent: 1.1, + maxElapsedTime: 100, + }, + retryConnectionErrors: false, + }, + }, + ); console.log(result); } @@ -817,15 +828,16 @@ const vercel = new Vercel({ }, retryConnectionErrors: false, }, - bearerToken: "", }); async function run() { - const result = await vercel.accessGroups.readAccessGroup({ - idOrName: "ag_1a2b3c4d5e6f7g8h9i0j", - teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", - slug: "my-team-url-slug", - }); + const result = await vercel + .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + { + integrationIdOrSlug: "", + productIdOrSlug: "", + }, + ); console.log(result); } @@ -855,17 +867,17 @@ import { Vercel } from "@vercel/sdk"; import { VercelBadRequestError } from "@vercel/sdk/models/vercelbadrequesterror.js"; import { VercelError } from "@vercel/sdk/models/vercelerror.js.js"; -const vercel = new Vercel({ - bearerToken: "", -}); +const vercel = new Vercel(); async function run() { try { - const result = await vercel.accessGroups.readAccessGroup({ - idOrName: "ag_1a2b3c4d5e6f7g8h9i0j", - teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", - slug: "my-team-url-slug", - }); + const result = await vercel + .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + { + integrationIdOrSlug: "", + productIdOrSlug: "", + }, + ); console.log(result); } catch (error) { @@ -907,8 +919,8 @@ run(); **Inherit from [`VercelError`](./src/models/vercelerror.ts)**: -* [`VercelNotFoundError`](./src/models/vercelnotfounderror.ts): Status code `404`. Applicable to 106 of 174 methods.* -* [`VercelRateLimitError`](./src/models/vercelratelimiterror.ts): . Status code `429`. Applicable to 4 of 174 methods.* +* [`VercelNotFoundError`](./src/models/vercelnotfounderror.ts): Status code `404`. Applicable to 109 of 177 methods.* +* [`VercelRateLimitError`](./src/models/vercelratelimiterror.ts): . Status code `429`. Applicable to 5 of 177 methods.* * [`ResponseValidationError`](./src/models/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. @@ -927,15 +939,16 @@ import { Vercel } from "@vercel/sdk"; const vercel = new Vercel({ serverURL: "https://api.vercel.com", - bearerToken: "", }); async function run() { - const result = await vercel.accessGroups.readAccessGroup({ - idOrName: "ag_1a2b3c4d5e6f7g8h9i0j", - teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", - slug: "my-team-url-slug", - }); + const result = await vercel + .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + { + integrationIdOrSlug: "", + productIdOrSlug: "", + }, + ); console.log(result); } diff --git a/RELEASES.md b/RELEASES.md index 28b6579e..08e90efb 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -508,4 +508,14 @@ Based on: ### Generated - [typescript v1.10.6] . ### Releases -- [NPM v1.10.6] https://www.npmjs.com/package/@vercel/sdk/v/1.10.6 - . \ No newline at end of file +- [NPM v1.10.6] https://www.npmjs.com/package/@vercel/sdk/v/1.10.6 - . + +## 2025-09-03 16:43:39 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.609.0 (2.692.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.10.7] . +### Releases +- [NPM v1.10.7] https://www.npmjs.com/package/@vercel/sdk/v/1.10.7 - . \ No newline at end of file diff --git a/docs/models/acceptedpolicies.md b/docs/models/acceptedpolicies.md new file mode 100644 index 00000000..a2813045 --- /dev/null +++ b/docs/models/acceptedpolicies.md @@ -0,0 +1,20 @@ +# AcceptedPolicies + +## Example Usage + +```typescript +import { AcceptedPolicies } from "@vercel/sdk/models/acceptprojecttransferrequestop.js"; + +let value: AcceptedPolicies = { + eula: new Date("2024-03-17T08:03:51.448Z"), + privacy: new Date("2025-01-02T10:20:13.120Z"), +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `eula` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | +| `privacy` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | +| `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/acceptprojecttransferrequestrequestbody.md b/docs/models/acceptprojecttransferrequestrequestbody.md index 21aef535..c0b22c67 100644 --- a/docs/models/acceptprojecttransferrequestrequestbody.md +++ b/docs/models/acceptprojecttransferrequestrequestbody.md @@ -12,7 +12,8 @@ let value: AcceptProjectTransferRequestRequestBody = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `newProjectName` | *string* | :heavy_minus_sign: | The desired name for the project | a-project-name | -| `paidFeatures` | [models.PaidFeatures](../models/paidfeatures.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `newProjectName` | *string* | :heavy_minus_sign: | The desired name for the project | a-project-name | +| `paidFeatures` | [models.PaidFeatures](../models/paidfeatures.md) | :heavy_minus_sign: | N/A | | +| `acceptedPolicies` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/actions.md b/docs/models/actions.md new file mode 100644 index 00000000..655830b3 --- /dev/null +++ b/docs/models/actions.md @@ -0,0 +1,19 @@ +# Actions + +## Example Usage + +```typescript +import { Actions } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: Actions = { + slug: "", + environments: [], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `slug` | *string* | :heavy_check_mark: | N/A | +| `environments` | [models.CreateIntegrationStoreDirectIntegrationsEnvironments](../models/createintegrationstoredirectintegrationsenvironments.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/atbrandat447943.md b/docs/models/atbrandat502540.md similarity index 61% rename from docs/models/atbrandat447943.md rename to docs/models/atbrandat502540.md index 51cbe2b6..382ea575 100644 --- a/docs/models/atbrandat447943.md +++ b/docs/models/atbrandat502540.md @@ -1,11 +1,11 @@ -# AtBRANDAt447943 +# AtBRANDAt502540 ## Example Usage ```typescript -import { AtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { AtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; -let value: AtBRANDAt447943 = {}; +let value: AtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/atbrandat7822.md b/docs/models/atbrandat7822.md new file mode 100644 index 00000000..0a01783a --- /dev/null +++ b/docs/models/atbrandat7822.md @@ -0,0 +1,14 @@ +# AtBRANDAt7822 + +## Example Usage + +```typescript +import { AtBRANDAt7822 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: AtBRANDAt7822 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/canceldeploymentconfig.md b/docs/models/canceldeploymentconfig.md index 925e0393..7bdfc019 100644 --- a/docs/models/canceldeploymentconfig.md +++ b/docs/models/canceldeploymentconfig.md @@ -8,8 +8,8 @@ Since February 2025 the configuration must include snapshot data at the time of import { CancelDeploymentConfig } from "@vercel/sdk/models/canceldeploymentop.js"; let value: CancelDeploymentConfig = { - functionType: "fluid", - functionMemoryType: "standard_legacy", + functionType: "standard", + functionMemoryType: "standard", functionTimeout: 1334.35, secureComputePrimaryRegion: "", secureComputeFallbackRegion: "", diff --git a/docs/models/canceldeploymentdeploymentsreadystate.md b/docs/models/canceldeploymentdeploymentsreadystate.md index 207a685a..85963cef 100644 --- a/docs/models/canceldeploymentdeploymentsreadystate.md +++ b/docs/models/canceldeploymentdeploymentsreadystate.md @@ -11,5 +11,5 @@ let value: CancelDeploymentDeploymentsReadyState = "INITIALIZING"; ## Values ```typescript -"ERROR" | "BUILDING" | "INITIALIZING" | "READY" +"BUILDING" | "ERROR" | "INITIALIZING" | "READY" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentdeploymentsstatus.md b/docs/models/canceldeploymentdeploymentsstatus.md index bdca4266..4eeaf55c 100644 --- a/docs/models/canceldeploymentdeploymentsstatus.md +++ b/docs/models/canceldeploymentdeploymentsstatus.md @@ -5,11 +5,11 @@ ```typescript import { CancelDeploymentDeploymentsStatus } from "@vercel/sdk/models/canceldeploymentop.js"; -let value: CancelDeploymentDeploymentsStatus = "ready"; +let value: CancelDeploymentDeploymentsStatus = "timeout"; ``` ## Values ```typescript -"error" | "timeout" | "skipped" | "pending" | "ready" +"skipped" | "pending" | "ready" | "error" | "timeout" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentfunctionmemorytype.md b/docs/models/canceldeploymentfunctionmemorytype.md index 13b70448..02def7c1 100644 --- a/docs/models/canceldeploymentfunctionmemorytype.md +++ b/docs/models/canceldeploymentfunctionmemorytype.md @@ -11,5 +11,5 @@ let value: CancelDeploymentFunctionMemoryType = "performance"; ## Values ```typescript -"standard_legacy" | "standard" | "performance" +"standard" | "standard_legacy" | "performance" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentfunctions.md b/docs/models/canceldeploymentfunctions.md index b157034f..48df897b 100644 --- a/docs/models/canceldeploymentfunctions.md +++ b/docs/models/canceldeploymentfunctions.md @@ -18,4 +18,5 @@ let value: CancelDeploymentFunctions = {}; | `runtime` | *string* | :heavy_minus_sign: | N/A | | `includeFiles` | *string* | :heavy_minus_sign: | N/A | | `excludeFiles` | *string* | :heavy_minus_sign: | N/A | -| `experimentalTriggers` | [models.CancelDeploymentExperimentalTriggers](../models/canceldeploymentexperimentaltriggers.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `experimentalTriggers` | [models.CancelDeploymentExperimentalTriggers](../models/canceldeploymentexperimentaltriggers.md)[] | :heavy_minus_sign: | N/A | +| `supportsCancellation` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/canceldeploymentfunctiontype.md b/docs/models/canceldeploymentfunctiontype.md index b1d5b6a6..5eef4505 100644 --- a/docs/models/canceldeploymentfunctiontype.md +++ b/docs/models/canceldeploymentfunctiontype.md @@ -5,11 +5,11 @@ ```typescript import { CancelDeploymentFunctionType } from "@vercel/sdk/models/canceldeploymentop.js"; -let value: CancelDeploymentFunctionType = "fluid"; +let value: CancelDeploymentFunctionType = "standard"; ``` ## Values ```typescript -"standard" | "fluid" +"fluid" | "standard" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentgitrepo.md b/docs/models/canceldeploymentgitrepo.md index 6f2e8756..65d989c8 100644 --- a/docs/models/canceldeploymentgitrepo.md +++ b/docs/models/canceldeploymentgitrepo.md @@ -15,7 +15,7 @@ const value: models.CancelDeploymentGitRepo1 = { defaultBranch: "", name: "", private: true, - ownerType: "user", + ownerType: "team", }; ``` @@ -32,7 +32,7 @@ const value: models.CancelDeploymentGitRepo2 = { defaultBranch: "", name: "", private: false, - ownerType: "team", + ownerType: "user", }; ``` @@ -49,7 +49,7 @@ const value: models.CancelDeploymentGitRepo3 = { defaultBranch: "", name: "", private: true, - ownerType: "user", + ownerType: "team", }; ``` diff --git a/docs/models/canceldeploymentgitrepo1.md b/docs/models/canceldeploymentgitrepo1.md index 2448186e..14388cd7 100644 --- a/docs/models/canceldeploymentgitrepo1.md +++ b/docs/models/canceldeploymentgitrepo1.md @@ -14,7 +14,7 @@ let value: CancelDeploymentGitRepo1 = { defaultBranch: "", name: "", private: true, - ownerType: "user", + ownerType: "team", }; ``` diff --git a/docs/models/canceldeploymentgitrepo2.md b/docs/models/canceldeploymentgitrepo2.md index 280ceabf..5aa32a62 100644 --- a/docs/models/canceldeploymentgitrepo2.md +++ b/docs/models/canceldeploymentgitrepo2.md @@ -15,7 +15,7 @@ let value: CancelDeploymentGitRepo2 = { defaultBranch: "", name: "", private: false, - ownerType: "team", + ownerType: "user", }; ``` diff --git a/docs/models/canceldeploymentgitrepo3.md b/docs/models/canceldeploymentgitrepo3.md index 48e0e25f..83b2c373 100644 --- a/docs/models/canceldeploymentgitrepo3.md +++ b/docs/models/canceldeploymentgitrepo3.md @@ -15,7 +15,7 @@ let value: CancelDeploymentGitRepo3 = { defaultBranch: "", name: "", private: true, - ownerType: "user", + ownerType: "team", }; ``` diff --git a/docs/models/canceldeploymentgitrepodeploymentsownertype.md b/docs/models/canceldeploymentgitrepodeploymentsownertype.md index 8361aff2..411f121b 100644 --- a/docs/models/canceldeploymentgitrepodeploymentsownertype.md +++ b/docs/models/canceldeploymentgitrepodeploymentsownertype.md @@ -5,11 +5,11 @@ ```typescript import { CancelDeploymentGitRepoDeploymentsOwnerType } from "@vercel/sdk/models/canceldeploymentop.js"; -let value: CancelDeploymentGitRepoDeploymentsOwnerType = "user"; +let value: CancelDeploymentGitRepoDeploymentsOwnerType = "team"; ``` ## Values ```typescript -"user" | "team" +"team" | "user" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentgitrepodeploymentsresponseownertype.md b/docs/models/canceldeploymentgitrepodeploymentsresponseownertype.md index 4cc66af0..9eace0d2 100644 --- a/docs/models/canceldeploymentgitrepodeploymentsresponseownertype.md +++ b/docs/models/canceldeploymentgitrepodeploymentsresponseownertype.md @@ -5,11 +5,11 @@ ```typescript import { CancelDeploymentGitRepoDeploymentsResponseOwnerType } from "@vercel/sdk/models/canceldeploymentop.js"; -let value: CancelDeploymentGitRepoDeploymentsResponseOwnerType = "user"; +let value: CancelDeploymentGitRepoDeploymentsResponseOwnerType = "team"; ``` ## Values ```typescript -"user" | "team" +"team" | "user" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentgitrepoownertype.md b/docs/models/canceldeploymentgitrepoownertype.md index 8894f95e..85f25a08 100644 --- a/docs/models/canceldeploymentgitrepoownertype.md +++ b/docs/models/canceldeploymentgitrepoownertype.md @@ -5,11 +5,11 @@ ```typescript import { CancelDeploymentGitRepoOwnerType } from "@vercel/sdk/models/canceldeploymentop.js"; -let value: CancelDeploymentGitRepoOwnerType = "team"; +let value: CancelDeploymentGitRepoOwnerType = "user"; ``` ## Values ```typescript -"user" | "team" +"team" | "user" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentintegrations.md b/docs/models/canceldeploymentintegrations.md index cf246c14..9c14c795 100644 --- a/docs/models/canceldeploymentintegrations.md +++ b/docs/models/canceldeploymentintegrations.md @@ -6,7 +6,7 @@ import { CancelDeploymentIntegrations } from "@vercel/sdk/models/canceldeploymentop.js"; let value: CancelDeploymentIntegrations = { - status: "skipped", + status: "ready", startedAt: 8045.81, }; ``` diff --git a/docs/models/canceldeploymentmicrofrontends1.md b/docs/models/canceldeploymentmicrofrontends1.md index 0e12cfda..e83c3a31 100644 --- a/docs/models/canceldeploymentmicrofrontends1.md +++ b/docs/models/canceldeploymentmicrofrontends1.md @@ -15,10 +15,10 @@ let value: CancelDeploymentMicrofrontends1 = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `isDefaultApp` | *boolean* | :heavy_minus_sign: | Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. | -| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | -| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | -| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | -| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `isDefaultApp` | *boolean* | :heavy_minus_sign: | N/A | +| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | +| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | +| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | +| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file diff --git a/docs/models/canceldeploymentmicrofrontends2.md b/docs/models/canceldeploymentmicrofrontends2.md index e4c4d447..e3cd0bbc 100644 --- a/docs/models/canceldeploymentmicrofrontends2.md +++ b/docs/models/canceldeploymentmicrofrontends2.md @@ -16,11 +16,12 @@ let value: CancelDeploymentMicrofrontends2 = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `applications` | Record | :heavy_minus_sign: | A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. | -| `isDefaultApp` | *boolean* | :heavy_check_mark: | N/A | -| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | -| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | -| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | -| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `isDefaultApp` | *boolean* | :heavy_check_mark: | N/A | +| `applications` | Record | :heavy_minus_sign: | A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. | +| `mfeConfigUploadState` | [models.MicrofrontendsMfeConfigUploadState](../models/microfrontendsmfeconfiguploadstate.md) | :heavy_minus_sign: | The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. | +| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | +| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | +| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | +| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file diff --git a/docs/models/canceldeploymentroutes.md b/docs/models/canceldeploymentroutes.md index ef28b726..ad91d027 100644 --- a/docs/models/canceldeploymentroutes.md +++ b/docs/models/canceldeploymentroutes.md @@ -15,7 +15,7 @@ const value: models.CancelDeploymentRoutes1 = { ```typescript const value: models.CancelDeploymentRoutes2 = { - handle: "rewrite", + handle: "resource", }; ``` diff --git a/docs/models/canceldeploymentroutes2.md b/docs/models/canceldeploymentroutes2.md index 041a061c..2e0233ac 100644 --- a/docs/models/canceldeploymentroutes2.md +++ b/docs/models/canceldeploymentroutes2.md @@ -6,7 +6,7 @@ import { CancelDeploymentRoutes2 } from "@vercel/sdk/models/canceldeploymentop.js"; let value: CancelDeploymentRoutes2 = { - handle: "rewrite", + handle: "resource", }; ``` diff --git a/docs/models/canceldeploymentteam.md b/docs/models/canceldeploymentteam.md index af2f3303..e03a5eb2 100644 --- a/docs/models/canceldeploymentteam.md +++ b/docs/models/canceldeploymentteam.md @@ -18,5 +18,5 @@ let value: CancelDeploymentTeam = { | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *string* | :heavy_check_mark: | N/A | | `name` | *string* | :heavy_check_mark: | N/A | -| `slug` | *string* | :heavy_check_mark: | N/A | -| `avatar` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `avatar` | *string* | :heavy_minus_sign: | N/A | +| `slug` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/config.md b/docs/models/config.md index 4283acc9..d705ece2 100644 --- a/docs/models/config.md +++ b/docs/models/config.md @@ -8,8 +8,8 @@ Since February 2025 the configuration must include snapshot data at the time of import { Config } from "@vercel/sdk/models/createdeploymentop.js"; let value: Config = { - functionType: "fluid", - functionMemoryType: "standard", + functionType: "standard", + functionMemoryType: "standard_legacy", functionTimeout: 8491.2, secureComputePrimaryRegion: "", secureComputeFallbackRegion: null, diff --git a/docs/models/connectintegrationresourcetoprojectrequest.md b/docs/models/connectintegrationresourcetoprojectrequest.md new file mode 100644 index 00000000..a211cf8c --- /dev/null +++ b/docs/models/connectintegrationresourcetoprojectrequest.md @@ -0,0 +1,24 @@ +# ConnectIntegrationResourceToProjectRequest + +## Example Usage + +```typescript +import { ConnectIntegrationResourceToProjectRequest } from "@vercel/sdk/models/connectintegrationresourcetoprojectop.js"; + +let value: ConnectIntegrationResourceToProjectRequest = { + integrationConfigurationId: "", + resourceId: "", + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", + slug: "my-team-url-slug", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | | +| `resourceId` | *string* | :heavy_check_mark: | N/A | | +| `teamId` | *string* | :heavy_minus_sign: | The Team identifier to perform the request on behalf of. | team_1a2b3c4d5e6f7g8h9i0j1k2l | +| `slug` | *string* | :heavy_minus_sign: | The Team slug to perform the request on behalf of. | my-team-url-slug | +| `requestBody` | [models.ConnectIntegrationResourceToProjectRequestBody](../models/connectintegrationresourcetoprojectrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/connectintegrationresourcetoprojectrequestbody.md b/docs/models/connectintegrationresourcetoprojectrequestbody.md new file mode 100644 index 00000000..95deb5c5 --- /dev/null +++ b/docs/models/connectintegrationresourcetoprojectrequestbody.md @@ -0,0 +1,17 @@ +# ConnectIntegrationResourceToProjectRequestBody + +## Example Usage + +```typescript +import { ConnectIntegrationResourceToProjectRequestBody } from "@vercel/sdk/models/connectintegrationresourcetoprojectop.js"; + +let value: ConnectIntegrationResourceToProjectRequestBody = { + projectId: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `projectId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/created.md b/docs/models/created.md index 9fbb4c1a..6e748a36 100644 --- a/docs/models/created.md +++ b/docs/models/created.md @@ -7,7 +7,7 @@ ```typescript const value: models.Created1 = { - type: "sensitive", + type: "secret", value: "", key: "", }; @@ -18,7 +18,7 @@ const value: models.Created1 = { ```typescript const value: models.Created2[] = [ { - type: "plain", + type: "sensitive", value: "", key: "", }, diff --git a/docs/models/created1.md b/docs/models/created1.md index 8ffa6813..8f7c98c4 100644 --- a/docs/models/created1.md +++ b/docs/models/created1.md @@ -6,7 +6,7 @@ import { Created1 } from "@vercel/sdk/models/createprojectenvop.js"; let value: Created1 = { - type: "sensitive", + type: "secret", value: "", key: "", }; diff --git a/docs/models/created2.md b/docs/models/created2.md index cd29c04c..69bccea8 100644 --- a/docs/models/created2.md +++ b/docs/models/created2.md @@ -6,7 +6,7 @@ import { Created2 } from "@vercel/sdk/models/createprojectenvop.js"; let value: Created2 = { - type: "encrypted", + type: "plain", value: "", key: "", }; diff --git a/docs/models/createdeploymentdeploymentsstatus.md b/docs/models/createdeploymentdeploymentsstatus.md index 018ce6b4..0ba7f859 100644 --- a/docs/models/createdeploymentdeploymentsstatus.md +++ b/docs/models/createdeploymentdeploymentsstatus.md @@ -5,11 +5,11 @@ ```typescript import { CreateDeploymentDeploymentsStatus } from "@vercel/sdk/models/createdeploymentop.js"; -let value: CreateDeploymentDeploymentsStatus = "ready"; +let value: CreateDeploymentDeploymentsStatus = "timeout"; ``` ## Values ```typescript -"error" | "timeout" | "skipped" | "pending" | "ready" +"skipped" | "pending" | "ready" | "error" | "timeout" ``` \ No newline at end of file diff --git a/docs/models/createdeploymentgitrepoownertype.md b/docs/models/createdeploymentgitrepoownertype.md index 6d1f395f..e709af50 100644 --- a/docs/models/createdeploymentgitrepoownertype.md +++ b/docs/models/createdeploymentgitrepoownertype.md @@ -5,11 +5,11 @@ ```typescript import { CreateDeploymentGitRepoOwnerType } from "@vercel/sdk/models/createdeploymentop.js"; -let value: CreateDeploymentGitRepoOwnerType = "user"; +let value: CreateDeploymentGitRepoOwnerType = "team"; ``` ## Values ```typescript -"user" | "team" +"team" | "user" ``` \ No newline at end of file diff --git a/docs/models/createdeploymentmicrofrontends1.md b/docs/models/createdeploymentmicrofrontends1.md index 2c70ee29..e6652044 100644 --- a/docs/models/createdeploymentmicrofrontends1.md +++ b/docs/models/createdeploymentmicrofrontends1.md @@ -16,10 +16,10 @@ let value: CreateDeploymentMicrofrontends1 = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `isDefaultApp` | *boolean* | :heavy_minus_sign: | Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. | -| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | -| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | -| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | -| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `isDefaultApp` | *boolean* | :heavy_minus_sign: | N/A | +| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | +| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | +| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | +| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file diff --git a/docs/models/createdeploymentmicrofrontends2.md b/docs/models/createdeploymentmicrofrontends2.md index 255c495d..09258049 100644 --- a/docs/models/createdeploymentmicrofrontends2.md +++ b/docs/models/createdeploymentmicrofrontends2.md @@ -14,11 +14,12 @@ let value: CreateDeploymentMicrofrontends2 = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `applications` | Record | :heavy_minus_sign: | A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. | -| `isDefaultApp` | *boolean* | :heavy_check_mark: | N/A | -| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | -| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | -| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | -| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `isDefaultApp` | *boolean* | :heavy_check_mark: | N/A | +| `applications` | Record | :heavy_minus_sign: | A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. | +| `mfeConfigUploadState` | [models.MfeConfigUploadState](../models/mfeconfiguploadstate.md) | :heavy_minus_sign: | The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. | +| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | +| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | +| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | +| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file diff --git a/docs/models/createdeploymentmicrofrontendsapplications.md b/docs/models/createdeploymentmicrofrontendsapplications.md index 59b340dc..a730f93f 100644 --- a/docs/models/createdeploymentmicrofrontendsapplications.md +++ b/docs/models/createdeploymentmicrofrontendsapplications.md @@ -1,6 +1,6 @@ # CreateDeploymentMicrofrontendsApplications -A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. +A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. ## Example Usage diff --git a/docs/models/createdeploymentreadystate.md b/docs/models/createdeploymentreadystate.md index a8f2c4cd..1bc8f7c1 100644 --- a/docs/models/createdeploymentreadystate.md +++ b/docs/models/createdeploymentreadystate.md @@ -5,11 +5,11 @@ ```typescript import { CreateDeploymentReadyState } from "@vercel/sdk/models/createdeploymentop.js"; -let value: CreateDeploymentReadyState = "BUILDING"; +let value: CreateDeploymentReadyState = "ERROR"; ``` ## Values ```typescript -"ERROR" | "BUILDING" | "INITIALIZING" | "READY" +"BUILDING" | "ERROR" | "INITIALIZING" | "READY" ``` \ No newline at end of file diff --git a/docs/models/createdeploymentresponsebody.md b/docs/models/createdeploymentresponsebody.md index 0d80a7bb..ea63aca5 100644 --- a/docs/models/createdeploymentresponsebody.md +++ b/docs/models/createdeploymentresponsebody.md @@ -42,7 +42,7 @@ let value: CreateDeploymentResponseBody = { plan: "hobby", routes: [ { - handle: "resource", + handle: "rewrite", }, ], createdIn: "", @@ -102,24 +102,24 @@ let value: CreateDeploymentResponseBody = { | `errorMessage` | *string* | :heavy_minus_sign: | N/A | | `passiveRegions` | *string*[] | :heavy_minus_sign: | Since November 2023 this field defines a set of regions that we will deploy the lambda to passively Lambdas will be deployed to these regions but only invoked if all of the primary `regions` are marked as out of service | | `regions` | *string*[] | :heavy_check_mark: | N/A | -| `aliasWarning` | [models.AliasWarning](../models/aliaswarning.md) | :heavy_minus_sign: | N/A | | `aliasError` | [models.AliasError](../models/aliaserror.md) | :heavy_minus_sign: | N/A | | `aliasFinal` | *string* | :heavy_minus_sign: | N/A | +| `aliasWarning` | [models.AliasWarning](../models/aliaswarning.md) | :heavy_minus_sign: | N/A | | `automaticAliases` | *string*[] | :heavy_minus_sign: | N/A | | `buildErrorAt` | *number* | :heavy_minus_sign: | N/A | -| `checksState` | [models.ChecksState](../models/checksstate.md) | :heavy_minus_sign: | N/A | +| `canceledAt` | *number* | :heavy_minus_sign: | N/A | | `checksConclusion` | [models.ChecksConclusion](../models/checksconclusion.md) | :heavy_minus_sign: | N/A | +| `checksState` | [models.ChecksState](../models/checksstate.md) | :heavy_minus_sign: | N/A | | `defaultRoute` | *string* | :heavy_minus_sign: | Computed field that is only available for deployments with a microfrontend configuration. | -| `canceledAt` | *number* | :heavy_minus_sign: | N/A | | `errorCode` | *string* | :heavy_minus_sign: | N/A | | `errorLink` | *string* | :heavy_minus_sign: | N/A | | `errorStep` | *string* | :heavy_minus_sign: | N/A | | `originCacheRegion` | *string* | :heavy_minus_sign: | N/A | +| `oidcTokenClaims` | [models.OidcTokenClaims](../models/oidctokenclaims.md) | :heavy_minus_sign: | N/A | | `readySubstate` | [models.ReadySubstate](../models/readysubstate.md) | :heavy_minus_sign: | Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic | | `softDeletedByRetention` | *boolean* | :heavy_minus_sign: | N/A | | `undeletedAt` | *number* | :heavy_minus_sign: | N/A | | `url` | *string* | :heavy_check_mark: | N/A | -| `oidcTokenClaims` | [models.OidcTokenClaims](../models/oidctokenclaims.md) | :heavy_minus_sign: | N/A | | `projectId` | *string* | :heavy_check_mark: | N/A | | `ownerId` | *string* | :heavy_check_mark: | N/A | | `monorepoManager` | *string* | :heavy_minus_sign: | N/A | @@ -134,5 +134,5 @@ let value: CreateDeploymentResponseBody = { | `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | | `createdIn` | *string* | :heavy_check_mark: | N/A | | `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | Since November 2023 this field defines a Secure Compute network that will only be used to deploy passive lambdas to (as in passiveRegions) | -| `gitRepo` | *models.GitRepo* | :heavy_minus_sign: | N/A | -| `flags` | *models.Flags* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `flags` | *models.Flags* | :heavy_minus_sign: | N/A | +| `gitRepo` | *models.GitRepo* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createdeploymentroutesop.md b/docs/models/createdeploymentroutesop.md index bcac6b41..0efc07e5 100644 --- a/docs/models/createdeploymentroutesop.md +++ b/docs/models/createdeploymentroutesop.md @@ -11,5 +11,5 @@ let value: CreateDeploymentRoutesOp = "delete"; ## Values ```typescript -"set" | "append" | "delete" +"append" | "set" | "delete" ``` \ No newline at end of file diff --git a/docs/models/createdtype.md b/docs/models/createdtype.md index d2ec1a88..31c30ac6 100644 --- a/docs/models/createdtype.md +++ b/docs/models/createdtype.md @@ -5,11 +5,11 @@ ```typescript import { CreatedType } from "@vercel/sdk/models/createprojectenvop.js"; -let value: CreatedType = "sensitive"; +let value: CreatedType = "secret"; ``` ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectactions.md b/docs/models/createintegrationstoredirectactions.md new file mode 100644 index 00000000..6b4db414 --- /dev/null +++ b/docs/models/createintegrationstoredirectactions.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectActions + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectActions } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectActions = { + type: "connect_to_project", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectIntegrationsResponseType](../models/createintegrationstoredirectintegrationsresponsetype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectbillingplan.md b/docs/models/createintegrationstoredirectbillingplan.md new file mode 100644 index 00000000..a14342a3 --- /dev/null +++ b/docs/models/createintegrationstoredirectbillingplan.md @@ -0,0 +1,38 @@ +# CreateIntegrationStoreDirectBillingPlan + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectBillingPlan } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectBillingPlan = { + type: "subscription", + description: "comestible fuzzy sternly ha", + id: "", + name: "", + scope: "resource", + paymentMethodRequired: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectType](../models/createintegrationstoredirecttype.md) | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `scope` | [models.CreateIntegrationStoreDirectScope](../models/createintegrationstoredirectscope.md) | :heavy_check_mark: | N/A | +| `paymentMethodRequired` | *boolean* | :heavy_check_mark: | N/A | +| `preauthorizationAmount` | *number* | :heavy_minus_sign: | N/A | +| `initialCharge` | *string* | :heavy_minus_sign: | N/A | +| `minimumAmount` | *string* | :heavy_minus_sign: | N/A | +| `maximumAmount` | *string* | :heavy_minus_sign: | N/A | +| `maximumAmountAutoPurchasePerPeriod` | *string* | :heavy_minus_sign: | N/A | +| `cost` | *string* | :heavy_minus_sign: | N/A | +| `details` | [models.CreateIntegrationStoreDirectDetails](../models/createintegrationstoredirectdetails.md)[] | :heavy_minus_sign: | N/A | +| `highlightedDetails` | [models.CreateIntegrationStoreDirectHighlightedDetails](../models/createintegrationstoredirecthighlighteddetails.md)[] | :heavy_minus_sign: | N/A | +| `quote` | [models.CreateIntegrationStoreDirectQuote](../models/createintegrationstoredirectquote.md)[] | :heavy_minus_sign: | N/A | +| `effectiveDate` | *string* | :heavy_minus_sign: | N/A | +| `disabled` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdeployments.md b/docs/models/createintegrationstoredirectdeployments.md new file mode 100644 index 00000000..7c7f902b --- /dev/null +++ b/docs/models/createintegrationstoredirectdeployments.md @@ -0,0 +1,24 @@ +# CreateIntegrationStoreDirectDeployments + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDeployments } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDeployments = { + required: false, + actions: [ + { + slug: "", + environments: [], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `required` | *boolean* | :heavy_check_mark: | N/A | +| `actions` | [models.Actions](../models/actions.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdetails.md b/docs/models/createintegrationstoredirectdetails.md new file mode 100644 index 00000000..9c1bcedf --- /dev/null +++ b/docs/models/createintegrationstoredirectdetails.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectDetails + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDetails } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDetails = { + label: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `label` | *string* | :heavy_check_mark: | N/A | +| `value` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabled2.md b/docs/models/createintegrationstoredirectdisabled2.md new file mode 100644 index 00000000..1d2a8b1a --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabled2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectDisabled2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabled2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDisabled2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabled3.md b/docs/models/createintegrationstoredirectdisabled3.md new file mode 100644 index 00000000..2daf452e --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabled3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectDisabled3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabled3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDisabled3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabledintegrations2.md b/docs/models/createintegrationstoredirectdisabledintegrations2.md new file mode 100644 index 00000000..e367d075 --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabledintegrations2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectDisabledIntegrations2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabledIntegrations2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDisabledIntegrations2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabledintegrations3.md b/docs/models/createintegrationstoredirectdisabledintegrations3.md new file mode 100644 index 00000000..cbc605d3 --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabledintegrations3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectDisabledIntegrations3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabledIntegrations3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDisabledIntegrations3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabledintegrationsresponse2.md b/docs/models/createintegrationstoredirectdisabledintegrationsresponse2.md new file mode 100644 index 00000000..95180896 --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabledintegrationsresponse2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectDisabledIntegrationsResponse2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabledIntegrationsResponse2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDisabledIntegrationsResponse2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabledintegrationsresponse2002.md b/docs/models/createintegrationstoredirectdisabledintegrationsresponse2002.md new file mode 100644 index 00000000..99d393fe --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabledintegrationsresponse2002.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectDisabledIntegrationsResponse2002 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabledIntegrationsResponse2002 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDisabledIntegrationsResponse2002 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabledintegrationsresponse2003.md b/docs/models/createintegrationstoredirectdisabledintegrationsresponse2003.md new file mode 100644 index 00000000..23da3e11 --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabledintegrationsresponse2003.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson2.md b/docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson2.md new file mode 100644 index 00000000..be7ea489 --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson2.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson3.md b/docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson3.md new file mode 100644 index 00000000..c32d4395 --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabledintegrationsresponse200applicationjson3.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectdisabledintegrationsresponse3.md b/docs/models/createintegrationstoredirectdisabledintegrationsresponse3.md new file mode 100644 index 00000000..66cae5d5 --- /dev/null +++ b/docs/models/createintegrationstoredirectdisabledintegrationsresponse3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectDisabledIntegrationsResponse3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectDisabledIntegrationsResponse3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectDisabledIntegrationsResponse3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectenvironments.md b/docs/models/createintegrationstoredirectenvironments.md new file mode 100644 index 00000000..944183d9 --- /dev/null +++ b/docs/models/createintegrationstoredirectenvironments.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectEnvironments + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectEnvironments } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectEnvironments = "development"; +``` + +## Values + +```typescript +"production" | "preview" | "development" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectexperimentation.md b/docs/models/createintegrationstoredirectexperimentation.md new file mode 100644 index 00000000..94673996 --- /dev/null +++ b/docs/models/createintegrationstoredirectexperimentation.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectExperimentation + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectExperimentation } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectExperimentation = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `edgeConfigSyncingEnabled` | *boolean* | :heavy_minus_sign: | N/A | +| `edgeConfigId` | *string* | :heavy_minus_sign: | N/A | +| `edgeConfigTokenId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectframework.md b/docs/models/createintegrationstoredirectframework.md new file mode 100644 index 00000000..4ad43210 --- /dev/null +++ b/docs/models/createintegrationstoredirectframework.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectFramework + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectFramework } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectFramework = "create-react-app"; +``` + +## Values + +```typescript +"blitzjs" | "nextjs" | "gatsby" | "remix" | "react-router" | "astro" | "hexo" | "eleventy" | "docusaurus-2" | "docusaurus" | "preact" | "solidstart-1" | "solidstart" | "dojo" | "ember" | "vue" | "scully" | "ionic-angular" | "angular" | "polymer" | "svelte" | "sveltekit" | "sveltekit-1" | "ionic-react" | "create-react-app" | "gridsome" | "umijs" | "sapper" | "saber" | "stencil" | "nuxtjs" | "redwoodjs" | "hugo" | "jekyll" | "brunch" | "middleman" | "zola" | "hydrogen" | "vite" | "vitepress" | "vuepress" | "parcel" | "fasthtml" | "sanity-v3" | "sanity" | "storybook" | "nitro" | "hono" | "express" | "xmcp" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthidden2.md b/docs/models/createintegrationstoredirecthidden2.md new file mode 100644 index 00000000..296007ef --- /dev/null +++ b/docs/models/createintegrationstoredirecthidden2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectHidden2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHidden2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHidden2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthidden3.md b/docs/models/createintegrationstoredirecthidden3.md new file mode 100644 index 00000000..44a288b1 --- /dev/null +++ b/docs/models/createintegrationstoredirecthidden3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectHidden3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHidden3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHidden3 = "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthiddenintegrations2.md b/docs/models/createintegrationstoredirecthiddenintegrations2.md new file mode 100644 index 00000000..754c6798 --- /dev/null +++ b/docs/models/createintegrationstoredirecthiddenintegrations2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectHiddenIntegrations2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHiddenIntegrations2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHiddenIntegrations2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthiddenintegrations3.md b/docs/models/createintegrationstoredirecthiddenintegrations3.md new file mode 100644 index 00000000..e00587b7 --- /dev/null +++ b/docs/models/createintegrationstoredirecthiddenintegrations3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectHiddenIntegrations3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHiddenIntegrations3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHiddenIntegrations3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthiddenintegrationsresponse2.md b/docs/models/createintegrationstoredirecthiddenintegrationsresponse2.md new file mode 100644 index 00000000..4aea06ca --- /dev/null +++ b/docs/models/createintegrationstoredirecthiddenintegrationsresponse2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectHiddenIntegrationsResponse2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHiddenIntegrationsResponse2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHiddenIntegrationsResponse2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthiddenintegrationsresponse2002.md b/docs/models/createintegrationstoredirecthiddenintegrationsresponse2002.md new file mode 100644 index 00000000..98178947 --- /dev/null +++ b/docs/models/createintegrationstoredirecthiddenintegrationsresponse2002.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectHiddenIntegrationsResponse2002 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHiddenIntegrationsResponse2002 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHiddenIntegrationsResponse2002 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthiddenintegrationsresponse2003.md b/docs/models/createintegrationstoredirecthiddenintegrationsresponse2003.md new file mode 100644 index 00000000..29f2745f --- /dev/null +++ b/docs/models/createintegrationstoredirecthiddenintegrationsresponse2003.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson2.md b/docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson2.md new file mode 100644 index 00000000..8f8a6541 --- /dev/null +++ b/docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson2.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2 = { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson3.md b/docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson3.md new file mode 100644 index 00000000..7215ad18 --- /dev/null +++ b/docs/models/createintegrationstoredirecthiddenintegrationsresponse200applicationjson3.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthiddenintegrationsresponse3.md b/docs/models/createintegrationstoredirecthiddenintegrationsresponse3.md new file mode 100644 index 00000000..24551a92 --- /dev/null +++ b/docs/models/createintegrationstoredirecthiddenintegrationsresponse3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectHiddenIntegrationsResponse3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHiddenIntegrationsResponse3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHiddenIntegrationsResponse3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecthighlighteddetails.md b/docs/models/createintegrationstoredirecthighlighteddetails.md new file mode 100644 index 00000000..5f1804a9 --- /dev/null +++ b/docs/models/createintegrationstoredirecthighlighteddetails.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectHighlightedDetails + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectHighlightedDetails } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectHighlightedDetails = { + label: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `label` | *string* | :heavy_check_mark: | N/A | +| `value` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectintegrationsenvironments.md b/docs/models/createintegrationstoredirectintegrationsenvironments.md new file mode 100644 index 00000000..d6c5cb27 --- /dev/null +++ b/docs/models/createintegrationstoredirectintegrationsenvironments.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectIntegrationsEnvironments + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectIntegrationsEnvironments } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectIntegrationsEnvironments = "production"; +``` + +## Values + +```typescript +"production" | "preview" | "development" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectintegrationsresponsetype.md b/docs/models/createintegrationstoredirectintegrationsresponsetype.md new file mode 100644 index 00000000..e1279e4f --- /dev/null +++ b/docs/models/createintegrationstoredirectintegrationsresponsetype.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectIntegrationsResponseType + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectIntegrationsResponseType } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectIntegrationsResponseType = + "connect_to_project"; +``` + +## Values + +```typescript +"connect_to_project" | "configure_project_connections" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectintegrationstype.md b/docs/models/createintegrationstoredirectintegrationstype.md new file mode 100644 index 00000000..2fc54d12 --- /dev/null +++ b/docs/models/createintegrationstoredirectintegrationstype.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectIntegrationsType + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectIntegrationsType } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectIntegrationsType = "object"; +``` + +## Values + +```typescript +"object" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectlevel.md b/docs/models/createintegrationstoredirectlevel.md new file mode 100644 index 00000000..83ea7f83 --- /dev/null +++ b/docs/models/createintegrationstoredirectlevel.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectLevel + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectLevel } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectLevel = "info"; +``` + +## Values + +```typescript +"error" | "info" | "warn" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectmetadata.md b/docs/models/createintegrationstoredirectmetadata.md new file mode 100644 index 00000000..40be0189 --- /dev/null +++ b/docs/models/createintegrationstoredirectmetadata.md @@ -0,0 +1,42 @@ +# CreateIntegrationStoreDirectMetadata + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `number` + +```typescript +const value: number = 1284.03; +``` + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + +### `number[]` + +```typescript +const value: number[] = [ + 3390.48, + 1336.21, + 9437.99, +]; +``` + diff --git a/docs/models/createintegrationstoredirectmetadataschema.md b/docs/models/createintegrationstoredirectmetadataschema.md new file mode 100644 index 00000000..8bb2048b --- /dev/null +++ b/docs/models/createintegrationstoredirectmetadataschema.md @@ -0,0 +1,20 @@ +# CreateIntegrationStoreDirectMetadataSchema + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectMetadataSchema } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectMetadataSchema = { + type: "object", + properties: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectIntegrationsType](../models/createintegrationstoredirectintegrationstype.md) | :heavy_check_mark: | N/A | +| `properties` | Record | :heavy_check_mark: | N/A | +| `required` | *string*[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectnotification.md b/docs/models/createintegrationstoredirectnotification.md new file mode 100644 index 00000000..abc38925 --- /dev/null +++ b/docs/models/createintegrationstoredirectnotification.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectNotification + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectNotification } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectNotification = { + title: "", + level: "warn", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `title` | *string* | :heavy_check_mark: | N/A | +| `level` | [models.CreateIntegrationStoreDirectLevel](../models/createintegrationstoredirectlevel.md) | :heavy_check_mark: | N/A | +| `message` | *string* | :heavy_minus_sign: | N/A | +| `href` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectproperties.md b/docs/models/createintegrationstoredirectproperties.md new file mode 100644 index 00000000..e15b74e3 --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties.md @@ -0,0 +1,97 @@ +# CreateIntegrationStoreDirectProperties + + +## Supported Types + +### `models.CreateIntegrationStoreDirectProperties1` + +```typescript +const value: models.CreateIntegrationStoreDirectProperties1 = { + type: "string", + uiControl: "input", +}; +``` + +### `models.CreateIntegrationStoreDirectProperties2` + +```typescript +const value: models.CreateIntegrationStoreDirectProperties2 = { + type: "number", + uiControl: "input", +}; +``` + +### `models.CreateIntegrationStoreDirectProperties3` + +```typescript +const value: models.CreateIntegrationStoreDirectProperties3 = { + type: "boolean", + uiControl: "toggle", +}; +``` + +### `models.CreateIntegrationStoreDirectProperties4` + +```typescript +const value: models.CreateIntegrationStoreDirectProperties4 = { + type: "array", + items: { + type: "number", + }, + uiControl: "slider", + uiSteps: [ + 6115.85, + 5722.67, + 6757.97, + ], +}; +``` + +### `models.CreateIntegrationStoreDirectProperties5` + +```typescript +const value: models.CreateIntegrationStoreDirectProperties5 = { + type: "string", + uiControl: "select", + uiOptions: [ + { + value: "", + label: "", + }, + ], +}; +``` + +### `models.CreateIntegrationStoreDirectProperties6` + +```typescript +const value: models.CreateIntegrationStoreDirectProperties6 = { + type: "array", + items: { + type: "string", + }, + uiControl: "multi-select", + uiOptions: [], +}; +``` + +### `models.CreateIntegrationStoreDirectProperties7` + +```typescript +const value: models.CreateIntegrationStoreDirectProperties7 = { + type: "string", + uiControl: "vercel-region", + uiOptions: [], +}; +``` + +### `models.CreateIntegrationStoreDirectProperties8` + +```typescript +const value: models.CreateIntegrationStoreDirectProperties8 = { + value: { + atBRANDAt7822: {}, + }, +}; +``` + diff --git a/docs/models/createintegrationstoredirectproperties1.md b/docs/models/createintegrationstoredirectproperties1.md new file mode 100644 index 00000000..e8f5c282 --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties1.md @@ -0,0 +1,32 @@ +# CreateIntegrationStoreDirectProperties1 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProperties1 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProperties1 = { + type: "string", + uiControl: "input", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `type` | [models.CreateIntegrationStoreDirectPropertiesType](../models/createintegrationstoredirectpropertiestype.md) | :heavy_check_mark: | N/A | +| `uiControl` | [models.CreateIntegrationStoreDirectPropertiesUiControl](../models/createintegrationstoredirectpropertiesuicontrol.md) | :heavy_check_mark: | N/A | +| `enum` | *string*[] | :heavy_minus_sign: | N/A | +| `maxLength` | [models.CreateIntegrationStoreDirectPropertiesMaxLength](../models/createintegrationstoredirectpropertiesmaxlength.md) | :heavy_minus_sign: | N/A | +| `minLength` | [models.CreateIntegrationStoreDirectPropertiesMinLength](../models/createintegrationstoredirectpropertiesminlength.md) | :heavy_minus_sign: | N/A | +| `pattern` | [models.CreateIntegrationStoreDirectPropertiesPattern](../models/createintegrationstoredirectpropertiespattern.md) | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `default` | *string* | :heavy_minus_sign: | N/A | +| `uiLabel` | *string* | :heavy_minus_sign: | N/A | +| `uiReadOnly` | *models.CreateIntegrationStoreDirectPropertiesUiReadOnly* | :heavy_minus_sign: | N/A | +| `uiHidden` | *models.CreateIntegrationStoreDirectPropertiesUiHidden* | :heavy_minus_sign: | N/A | +| `uiDisabled` | *models.CreateIntegrationStoreDirectPropertiesUiDisabled* | :heavy_minus_sign: | N/A | +| `uiDescription` | *models.CreateIntegrationStoreDirectPropertiesUiDescription* | :heavy_minus_sign: | N/A | +| `uiFormattedValue` | [models.CreateIntegrationStoreDirectPropertiesUiFormattedValue](../models/createintegrationstoredirectpropertiesuiformattedvalue.md) | :heavy_minus_sign: | N/A | +| `uiPlaceholder` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectproperties2.md b/docs/models/createintegrationstoredirectproperties2.md new file mode 100644 index 00000000..761073ec --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties2.md @@ -0,0 +1,32 @@ +# CreateIntegrationStoreDirectProperties2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProperties2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProperties2 = { + type: "number", + uiControl: "input", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `type` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsType](../models/createintegrationstoredirectpropertiesintegrationstype.md) | :heavy_check_mark: | N/A | +| `uiControl` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsUiControl](../models/createintegrationstoredirectpropertiesintegrationsuicontrol.md) | :heavy_check_mark: | N/A | +| `maximum` | *number* | :heavy_minus_sign: | N/A | +| `exclusiveMaximum` | *number* | :heavy_minus_sign: | N/A | +| `minimum` | *number* | :heavy_minus_sign: | N/A | +| `exclusiveMinimum` | *number* | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `default` | *number* | :heavy_minus_sign: | N/A | +| `uiLabel` | *string* | :heavy_minus_sign: | N/A | +| `uiReadOnly` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly* | :heavy_minus_sign: | N/A | +| `uiHidden` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden* | :heavy_minus_sign: | N/A | +| `uiDisabled` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled* | :heavy_minus_sign: | N/A | +| `uiDescription` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription* | :heavy_minus_sign: | N/A | +| `uiFormattedValue` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue](../models/createintegrationstoredirectpropertiesintegrationsuiformattedvalue.md) | :heavy_minus_sign: | N/A | +| `uiPlaceholder` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectproperties3.md b/docs/models/createintegrationstoredirectproperties3.md new file mode 100644 index 00000000..ad1797cb --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties3.md @@ -0,0 +1,27 @@ +# CreateIntegrationStoreDirectProperties3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProperties3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProperties3 = { + type: "boolean", + uiControl: "toggle", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseType](../models/createintegrationstoredirectpropertiesintegrationsresponsetype.md) | :heavy_check_mark: | N/A | +| `uiControl` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl](../models/createintegrationstoredirectpropertiesintegrationsresponseuicontrol.md) | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `default` | *boolean* | :heavy_minus_sign: | N/A | +| `uiLabel` | *string* | :heavy_minus_sign: | N/A | +| `uiReadOnly` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly* | :heavy_minus_sign: | N/A | +| `uiHidden` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden* | :heavy_minus_sign: | N/A | +| `uiDisabled` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled* | :heavy_minus_sign: | N/A | +| `uiDescription` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription* | :heavy_minus_sign: | N/A | +| `uiFormattedValue` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue](../models/createintegrationstoredirectpropertiesintegrationsresponseuiformattedvalue.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectproperties4.md b/docs/models/createintegrationstoredirectproperties4.md new file mode 100644 index 00000000..68dd1524 --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties4.md @@ -0,0 +1,39 @@ +# CreateIntegrationStoreDirectProperties4 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProperties4 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProperties4 = { + type: "array", + items: { + type: "number", + }, + uiControl: "slider", + uiSteps: [ + 6115.85, + 5722.67, + 6757.97, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type](../models/createintegrationstoredirectpropertiesintegrationsresponse200type.md) | :heavy_check_mark: | N/A | +| `items` | [models.CreateIntegrationStoreDirectPropertiesItems](../models/createintegrationstoredirectpropertiesitems.md) | :heavy_check_mark: | N/A | +| `uiControl` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl](../models/createintegrationstoredirectpropertiesintegrationsresponse200uicontrol.md) | :heavy_check_mark: | N/A | +| `uiSteps` | *number*[] | :heavy_check_mark: | N/A | +| `maxItems` | *number* | :heavy_minus_sign: | N/A | +| `minItems` | *number* | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `uiLabel` | *string* | :heavy_minus_sign: | N/A | +| `uiReadOnly` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly* | :heavy_minus_sign: | N/A | +| `uiHidden` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden* | :heavy_minus_sign: | N/A | +| `uiDisabled` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled* | :heavy_minus_sign: | N/A | +| `uiDescription` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription* | :heavy_minus_sign: | N/A | +| `uiFormattedValue` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue](../models/createintegrationstoredirectpropertiesintegrationsresponse200uiformattedvalue.md) | :heavy_minus_sign: | N/A | +| `default` | *number*[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectproperties5.md b/docs/models/createintegrationstoredirectproperties5.md new file mode 100644 index 00000000..2b6604b3 --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties5.md @@ -0,0 +1,39 @@ +# CreateIntegrationStoreDirectProperties5 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProperties5 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProperties5 = { + type: "string", + uiControl: "select", + uiOptions: [ + { + value: "", + label: "", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsontype.md) | :heavy_check_mark: | N/A | +| `uiControl` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuicontrol.md) | :heavy_check_mark: | N/A | +| `uiOptions` | [models.CreateIntegrationStoreDirectPropertiesUiOptions](../models/createintegrationstoredirectpropertiesuioptions.md)[] | :heavy_check_mark: | N/A | +| `enum` | *string*[] | :heavy_minus_sign: | N/A | +| `maxLength` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength](../models/createintegrationstoredirectpropertiesintegrationsmaxlength.md) | :heavy_minus_sign: | N/A | +| `minLength` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsMinLength](../models/createintegrationstoredirectpropertiesintegrationsminlength.md) | :heavy_minus_sign: | N/A | +| `pattern` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsPattern](../models/createintegrationstoredirectpropertiesintegrationspattern.md) | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `default` | *string* | :heavy_minus_sign: | N/A | +| `uiLabel` | *string* | :heavy_minus_sign: | N/A | +| `uiReadOnly` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly* | :heavy_minus_sign: | N/A | +| `uiHidden` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden* | :heavy_minus_sign: | N/A | +| `uiDisabled` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled* | :heavy_minus_sign: | N/A | +| `uiDescription` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription* | :heavy_minus_sign: | N/A | +| `uiFormattedValue` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuiformattedvalue.md) | :heavy_minus_sign: | N/A | +| `uiPlaceholder` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectproperties6.md b/docs/models/createintegrationstoredirectproperties6.md new file mode 100644 index 00000000..c78b672a --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties6.md @@ -0,0 +1,37 @@ +# CreateIntegrationStoreDirectProperties6 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProperties6 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProperties6 = { + type: "array", + items: { + type: "string", + }, + uiControl: "multi-select", + uiOptions: [], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodytype.md) | :heavy_check_mark: | N/A | +| `items` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsItems](../models/createintegrationstoredirectpropertiesintegrationsitems.md) | :heavy_check_mark: | N/A | +| `uiControl` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuicontrol.md) | :heavy_check_mark: | N/A | +| `uiOptions` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions](../models/createintegrationstoredirectpropertiesintegrationsuioptions.md)[] | :heavy_check_mark: | N/A | +| `maxItems` | *number* | :heavy_minus_sign: | N/A | +| `minItems` | *number* | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `uiLabel` | *string* | :heavy_minus_sign: | N/A | +| `uiReadOnly` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly* | :heavy_minus_sign: | N/A | +| `uiHidden` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden* | :heavy_minus_sign: | N/A | +| `uiDisabled` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled* | :heavy_minus_sign: | N/A | +| `uiDescription` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription* | :heavy_minus_sign: | N/A | +| `uiFormattedValue` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuiformattedvalue.md) | :heavy_minus_sign: | N/A | +| `uiPlaceholder` | *string* | :heavy_minus_sign: | N/A | +| `default` | *string*[] | :heavy_minus_sign: | N/A | +| `example` | *string*[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectproperties7.md b/docs/models/createintegrationstoredirectproperties7.md new file mode 100644 index 00000000..6e902acf --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties7.md @@ -0,0 +1,34 @@ +# CreateIntegrationStoreDirectProperties7 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProperties7 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProperties7 = { + type: "string", + uiControl: "vercel-region", + uiOptions: [], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoretype.md) | :heavy_check_mark: | N/A | +| `uiControl` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuicontrol.md) | :heavy_check_mark: | N/A | +| `uiOptions` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions*[] | :heavy_check_mark: | N/A | +| `enum` | *string*[] | :heavy_minus_sign: | N/A | +| `maxLength` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength](../models/createintegrationstoredirectpropertiesintegrationsresponsemaxlength.md) | :heavy_minus_sign: | N/A | +| `minLength` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength](../models/createintegrationstoredirectpropertiesintegrationsresponseminlength.md) | :heavy_minus_sign: | N/A | +| `pattern` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern](../models/createintegrationstoredirectpropertiesintegrationsresponsepattern.md) | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `default` | *string* | :heavy_minus_sign: | N/A | +| `uiLabel` | *string* | :heavy_minus_sign: | N/A | +| `uiReadOnly` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly* | :heavy_minus_sign: | N/A | +| `uiHidden` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden* | :heavy_minus_sign: | N/A | +| `uiDisabled` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled* | :heavy_minus_sign: | N/A | +| `uiDescription` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription* | :heavy_minus_sign: | N/A | +| `uiFormattedValue` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuiformattedvalue.md) | :heavy_minus_sign: | N/A | +| `uiPlaceholder` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectproperties8.md b/docs/models/createintegrationstoredirectproperties8.md new file mode 100644 index 00000000..561fa1f6 --- /dev/null +++ b/docs/models/createintegrationstoredirectproperties8.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectProperties8 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProperties8 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProperties8 = { + value: { + atBRANDAt7822: {}, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `value` | [models.CreateIntegrationStoreDirectPropertiesValue](../models/createintegrationstoredirectpropertiesvalue.md) | :heavy_check_mark: | N/A | +| `disabled` | *models.CreateIntegrationStoreDirectPropertiesDisabled* | :heavy_minus_sign: | N/A | +| `hidden` | *models.CreateIntegrationStoreDirectPropertiesHidden* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesatbrandat7822.md new file mode 100644 index 00000000..36428582 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesatbrandat7822.md @@ -0,0 +1,14 @@ +# CreateIntegrationStoreDirectPropertiesAtBRANDAt7822 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesAtBRANDAt7822 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesAtBRANDAt7822 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesdisabled.md b/docs/models/createintegrationstoredirectpropertiesdisabled.md new file mode 100644 index 00000000..8728f6ec --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesdisabled.md @@ -0,0 +1,25 @@ +# CreateIntegrationStoreDirectPropertiesDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectDisabled2` + +```typescript +const value: models.CreateIntegrationStoreDirectDisabled2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectDisabled3` + +```typescript +const value: models.CreateIntegrationStoreDirectDisabled3 = "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertieshidden.md b/docs/models/createintegrationstoredirectpropertieshidden.md new file mode 100644 index 00000000..7941779c --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertieshidden.md @@ -0,0 +1,25 @@ +# CreateIntegrationStoreDirectPropertiesHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectHidden2` + +```typescript +const value: models.CreateIntegrationStoreDirectHidden2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectHidden3` + +```typescript +const value: models.CreateIntegrationStoreDirectHidden3 = "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsatbrandat7822.md new file mode 100644 index 00000000..232b971f --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsatbrandat7822.md @@ -0,0 +1,14 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsdisabled.md b/docs/models/createintegrationstoredirectpropertiesintegrationsdisabled.md new file mode 100644 index 00000000..f5490dac --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsdisabled.md @@ -0,0 +1,26 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectDisabledIntegrations2` + +```typescript +const value: models.CreateIntegrationStoreDirectDisabledIntegrations2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectDisabledIntegrations3` + +```typescript +const value: models.CreateIntegrationStoreDirectDisabledIntegrations3 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationshidden.md b/docs/models/createintegrationstoredirectpropertiesintegrationshidden.md new file mode 100644 index 00000000..69965939 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationshidden.md @@ -0,0 +1,25 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectHiddenIntegrations2` + +```typescript +const value: models.CreateIntegrationStoreDirectHiddenIntegrations2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectHiddenIntegrations3` + +```typescript +const value: models.CreateIntegrationStoreDirectHiddenIntegrations3 = "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsitems.md b/docs/models/createintegrationstoredirectpropertiesintegrationsitems.md new file mode 100644 index 00000000..17cad559 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsitems.md @@ -0,0 +1,23 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsItems + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsItems } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsItems = { + type: "string", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproducttype.md) | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `minLength` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength](../models/createintegrationstoredirectpropertiesintegrationsresponse200minlength.md) | :heavy_minus_sign: | N/A | +| `maxLength` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength](../models/createintegrationstoredirectpropertiesintegrationsresponse200maxlength.md) | :heavy_minus_sign: | N/A | +| `pattern` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern](../models/createintegrationstoredirectpropertiesintegrationsresponse200pattern.md) | :heavy_minus_sign: | N/A | +| `default` | *string* | :heavy_minus_sign: | N/A | +| `enum` | *string*[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsmaxlength.md b/docs/models/createintegrationstoredirectpropertiesintegrationsmaxlength.md new file mode 100644 index 00000000..a866b91c --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsmaxlength.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsminlength.md b/docs/models/createintegrationstoredirectpropertiesintegrationsminlength.md new file mode 100644 index 00000000..d1dfb984 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsminlength.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsMinLength + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsMinLength } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsMinLength = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponseatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationspattern.md b/docs/models/createintegrationstoredirectpropertiesintegrationspattern.md new file mode 100644 index 00000000..767fec1f --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationspattern.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsPattern + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsPattern } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsPattern = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200atbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonatbrandat7822.md new file mode 100644 index 00000000..70b8ba0e --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonatbrandat7822.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat7822.md new file mode 100644 index 00000000..9b511b79 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat7822.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreatbrandat7822.md new file mode 100644 index 00000000..74af5f5b --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreatbrandat7822.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductatbrandat7822.md new file mode 100644 index 00000000..a2ae505e --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductatbrandat7822.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6atbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6atbrandat7822.md new file mode 100644 index 00000000..000fc103 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6atbrandat7822.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsatbrandat7822.md new file mode 100644 index 00000000..a3dc74bc --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsatbrandat7822.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsmaxlengthatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsmaxlengthatbrandat7822.md new file mode 100644 index 00000000..7386eb79 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsmaxlengthatbrandat7822.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschemaatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschemaatbrandat7822.md new file mode 100644 index 00000000..9bbcbce8 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschemaatbrandat7822.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschematype.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschematype.md new file mode 100644 index 00000000..6542e878 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschematype.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType = + "number"; +``` + +## Values + +```typescript +"number" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproducttype.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproducttype.md new file mode 100644 index 00000000..e5d0b7ef --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproducttype.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType = + "string"; +``` + +## Values + +```typescript +"string" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoretype.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoretype.md new file mode 100644 index 00000000..42bc3a03 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoretype.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType = + "string"; +``` + +## Values + +```typescript +"string" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuicontrol.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuicontrol.md new file mode 100644 index 00000000..0152ae60 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuicontrol.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl = + "vercel-region"; +``` + +## Values + +```typescript +"vercel-region" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidescription.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidescription.md new file mode 100644 index 00000000..b84ab3d0 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidescription.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: "", + }; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidisabled.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidisabled.md new file mode 100644 index 00000000..3ce81dfc --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuidisabled.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuiformattedvalue.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuiformattedvalue.md new file mode 100644 index 00000000..1f374003 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuiformattedvalue.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuihidden.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuihidden.md new file mode 100644 index 00000000..7e445967 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuihidden.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuireadonly.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuireadonly.md new file mode 100644 index 00000000..68de0a5b --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreuireadonly.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodytype.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodytype.md new file mode 100644 index 00000000..ee90b584 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodytype.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType = + "array"; +``` + +## Values + +```typescript +"array" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuicontrol.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuicontrol.md new file mode 100644 index 00000000..fde443df --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuicontrol.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl = + "multi-select"; +``` + +## Values + +```typescript +"multi-select" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidescription.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidescription.md new file mode 100644 index 00000000..0d143f20 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidescription.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: "", + }; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidisabled.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidisabled.md new file mode 100644 index 00000000..38c031d3 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuidisabled.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuiformattedvalue.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuiformattedvalue.md new file mode 100644 index 00000000..d5750ea5 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuiformattedvalue.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuihidden.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuihidden.md new file mode 100644 index 00000000..7fc741f4 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuihidden.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuireadonly.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuireadonly.md new file mode 100644 index 00000000..184b9c91 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyuireadonly.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsontype.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsontype.md new file mode 100644 index 00000000..54dc1ef1 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsontype.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType = + "string"; +``` + +## Values + +```typescript +"string" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuicontrol.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuicontrol.md new file mode 100644 index 00000000..e3d3b4df --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuicontrol.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl = + "select"; +``` + +## Values + +```typescript +"select" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidescription.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidescription.md new file mode 100644 index 00000000..6400c8a5 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidescription.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidisabled.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidisabled.md new file mode 100644 index 00000000..879f8714 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuidisabled.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuiformattedvalue.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuiformattedvalue.md new file mode 100644 index 00000000..a59907ad --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuiformattedvalue.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuihidden.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuihidden.md new file mode 100644 index 00000000..b7e95c7c --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuihidden.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuireadonly.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuireadonly.md new file mode 100644 index 00000000..9bb76f08 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonuireadonly.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200atbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200atbrandat7822.md new file mode 100644 index 00000000..2301d05c --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200atbrandat7822.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200maxlength.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200maxlength.md new file mode 100644 index 00000000..f13818b3 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200maxlength.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength = { + atBRANDAt7822: {}, + }; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsmaxlengthatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200minlength.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200minlength.md new file mode 100644 index 00000000..39543d91 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200minlength.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength = { + atBRANDAt7822: {}, + }; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6itemsatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200pattern.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200pattern.md new file mode 100644 index 00000000..45e32880 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200pattern.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern = { + atBRANDAt7822: {}, + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschema6atbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200type.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200type.md new file mode 100644 index 00000000..c9b7b38e --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200type.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type = + "array"; +``` + +## Values + +```typescript +"array" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uicontrol.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uicontrol.md new file mode 100644 index 00000000..39ffcfc8 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uicontrol.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl = + "slider"; +``` + +## Values + +```typescript +"slider" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidescription.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidescription.md new file mode 100644 index 00000000..04a8da64 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidescription.md @@ -0,0 +1,20 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 = { + expr: "", + }; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidisabled.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidisabled.md new file mode 100644 index 00000000..3199c246 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uidisabled.md @@ -0,0 +1,28 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002 = { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uiformattedvalue.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uiformattedvalue.md new file mode 100644 index 00000000..3ce99496 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uiformattedvalue.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uihidden.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uihidden.md new file mode 100644 index 00000000..96a4e710 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uihidden.md @@ -0,0 +1,28 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002 = { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uireadonly.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uireadonly.md new file mode 100644 index 00000000..2c158857 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponse200uireadonly.md @@ -0,0 +1,28 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002 = { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseatbrandat7822.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseatbrandat7822.md new file mode 100644 index 00000000..a4db17d6 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseatbrandat7822.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponsedisabled.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsedisabled.md new file mode 100644 index 00000000..e487e51f --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsedisabled.md @@ -0,0 +1,27 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectDisabledIntegrationsResponse2` + +```typescript +const value: models.CreateIntegrationStoreDirectDisabledIntegrationsResponse2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectDisabledIntegrationsResponse3` + +```typescript +const value: models.CreateIntegrationStoreDirectDisabledIntegrationsResponse3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponsehidden.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsehidden.md new file mode 100644 index 00000000..74aeecbb --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsehidden.md @@ -0,0 +1,26 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectHiddenIntegrationsResponse2` + +```typescript +const value: models.CreateIntegrationStoreDirectHiddenIntegrationsResponse2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectHiddenIntegrationsResponse3` + +```typescript +const value: models.CreateIntegrationStoreDirectHiddenIntegrationsResponse3 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponsemaxlength.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsemaxlength.md new file mode 100644 index 00000000..3f226504 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsemaxlength.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength = + { + atBRANDAt7822: {}, + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseminlength.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseminlength.md new file mode 100644 index 00000000..469aeda2 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseminlength.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength = + { + atBRANDAt7822: {}, + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponsepattern.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsepattern.md new file mode 100644 index 00000000..623acb2b --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsepattern.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponsetype.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsetype.md new file mode 100644 index 00000000..bb56ce1a --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponsetype.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseType + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponseType } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsResponseType = + "boolean"; +``` + +## Values + +```typescript +"boolean" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuicontrol.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuicontrol.md new file mode 100644 index 00000000..1898fc25 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuicontrol.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl = + "toggle"; +``` + +## Values + +```typescript +"toggle" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidescription.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidescription.md new file mode 100644 index 00000000..c7cfd233 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidescription.md @@ -0,0 +1,20 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 = { + expr: "", + }; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidisabled.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidisabled.md new file mode 100644 index 00000000..543bab0b --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuidisabled.md @@ -0,0 +1,27 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2 = { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 = "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuiformattedvalue.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuiformattedvalue.md new file mode 100644 index 00000000..f88b921d --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuiformattedvalue.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue = { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuihidden.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuihidden.md new file mode 100644 index 00000000..f70caf09 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuihidden.md @@ -0,0 +1,27 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3` + +```typescript +const value: models.CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuioptions.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuioptions.md new file mode 100644 index 00000000..6a7d5bdd --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuioptions.md @@ -0,0 +1,32 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions + + +## Supported Types + +### `models.CreateIntegrationStoreDirectUiOptions1` + +```typescript +const value: models.CreateIntegrationStoreDirectUiOptions1 = { + value: "", + label: "", +}; +``` + +### `models.CreateIntegrationStoreDirectUiOptions2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiOptions2 = { + atBRANDAt7822: {}, +}; +``` + +### `models.CreateIntegrationStoreDirectUiOptions3` + +```typescript +const value: models.CreateIntegrationStoreDirectUiOptions3 = { + value: { + atBRANDAt7822: {}, + }, +}; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuireadonly.md b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuireadonly.md new file mode 100644 index 00000000..7605c15b --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsresponseuireadonly.md @@ -0,0 +1,27 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2 = { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3` + +```typescript +const value: + models.CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 = "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationstype.md b/docs/models/createintegrationstoredirectpropertiesintegrationstype.md new file mode 100644 index 00000000..ca3a022a --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationstype.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsType + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsType } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsType = "number"; +``` + +## Values + +```typescript +"number" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsuicontrol.md b/docs/models/createintegrationstoredirectpropertiesintegrationsuicontrol.md new file mode 100644 index 00000000..02176991 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsuicontrol.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsUiControl + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsUiControl } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsUiControl = + "input"; +``` + +## Values + +```typescript +"input" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsuidescription.md b/docs/models/createintegrationstoredirectpropertiesintegrationsuidescription.md new file mode 100644 index 00000000..e2931e17 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsuidescription.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `models.CreateIntegrationStoreDirectUiDescriptionIntegrations2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiDescriptionIntegrations2 = { + expr: "", +}; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsuidisabled.md b/docs/models/createintegrationstoredirectpropertiesintegrationsuidisabled.md new file mode 100644 index 00000000..f40e3915 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsuidisabled.md @@ -0,0 +1,26 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrations2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiDisabledIntegrations2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectUiDisabledIntegrations3` + +```typescript +const value: models.CreateIntegrationStoreDirectUiDisabledIntegrations3 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsuiformattedvalue.md b/docs/models/createintegrationstoredirectpropertiesintegrationsuiformattedvalue.md new file mode 100644 index 00000000..102091e5 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsuiformattedvalue.md @@ -0,0 +1,18 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsuihidden.md b/docs/models/createintegrationstoredirectpropertiesintegrationsuihidden.md new file mode 100644 index 00000000..5e45444e --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsuihidden.md @@ -0,0 +1,26 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrations2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiHiddenIntegrations2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectUiHiddenIntegrations3` + +```typescript +const value: models.CreateIntegrationStoreDirectUiHiddenIntegrations3 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsuioptions.md b/docs/models/createintegrationstoredirectpropertiesintegrationsuioptions.md new file mode 100644 index 00000000..58dc7e0c --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsuioptions.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions = { + value: "", + label: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `value` | *string* | :heavy_check_mark: | N/A | +| `label` | *string* | :heavy_check_mark: | N/A | +| `disabled` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsDisabled* | :heavy_minus_sign: | N/A | +| `hidden` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsHidden* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesintegrationsuireadonly.md b/docs/models/createintegrationstoredirectpropertiesintegrationsuireadonly.md new file mode 100644 index 00000000..9a57fab9 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesintegrationsuireadonly.md @@ -0,0 +1,26 @@ +# CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrations2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiReadOnlyIntegrations2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnlyIntegrations3` + +```typescript +const value: models.CreateIntegrationStoreDirectUiReadOnlyIntegrations3 = + "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesitems.md b/docs/models/createintegrationstoredirectpropertiesitems.md new file mode 100644 index 00000000..a011005e --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesitems.md @@ -0,0 +1,23 @@ +# CreateIntegrationStoreDirectPropertiesItems + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesItems } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesItems = { + type: "number", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschematype.md) | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `minimum` | *number* | :heavy_minus_sign: | N/A | +| `exclusiveMinimum` | *number* | :heavy_minus_sign: | N/A | +| `maximum` | *number* | :heavy_minus_sign: | N/A | +| `exclusiveMaximum` | *number* | :heavy_minus_sign: | N/A | +| `default` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesmaxlength.md b/docs/models/createintegrationstoredirectpropertiesmaxlength.md new file mode 100644 index 00000000..0b601692 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesmaxlength.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesMaxLength + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesMaxLength } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesMaxLength = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductmetadataschemaatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesminlength.md b/docs/models/createintegrationstoredirectpropertiesminlength.md new file mode 100644 index 00000000..ead38081 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesminlength.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesMinLength + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesMinLength } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesMinLength = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.PropertiesAtBRANDAt7822](../models/propertiesatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiespattern.md b/docs/models/createintegrationstoredirectpropertiespattern.md new file mode 100644 index 00000000..61652761 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiespattern.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesPattern + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesPattern } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesPattern = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesAtBRANDAt7822](../models/createintegrationstoredirectpropertiesatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiestype.md b/docs/models/createintegrationstoredirectpropertiestype.md new file mode 100644 index 00000000..eddba2c6 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiestype.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectPropertiesType + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesType } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesType = "string"; +``` + +## Values + +```typescript +"string" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesuicontrol.md b/docs/models/createintegrationstoredirectpropertiesuicontrol.md new file mode 100644 index 00000000..491d5f2c --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesuicontrol.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectPropertiesUiControl + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesUiControl } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesUiControl = "input"; +``` + +## Values + +```typescript +"input" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesuidescription.md b/docs/models/createintegrationstoredirectpropertiesuidescription.md new file mode 100644 index 00000000..58a82ae0 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesuidescription.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectPropertiesUiDescription + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `models.CreateIntegrationStoreDirectUiDescription2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiDescription2 = { + expr: "", +}; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesuidisabled.md b/docs/models/createintegrationstoredirectpropertiesuidisabled.md new file mode 100644 index 00000000..a80de565 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesuidisabled.md @@ -0,0 +1,25 @@ +# CreateIntegrationStoreDirectPropertiesUiDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiDisabled2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiDisabled2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectUiDisabled3` + +```typescript +const value: models.CreateIntegrationStoreDirectUiDisabled3 = "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesuiformattedvalue.md b/docs/models/createintegrationstoredirectpropertiesuiformattedvalue.md new file mode 100644 index 00000000..4cc66a69 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesuiformattedvalue.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesUiFormattedValue + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesUiFormattedValue } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesUiFormattedValue = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesuihidden.md b/docs/models/createintegrationstoredirectpropertiesuihidden.md new file mode 100644 index 00000000..ac29b66f --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesuihidden.md @@ -0,0 +1,25 @@ +# CreateIntegrationStoreDirectPropertiesUiHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiHidden2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiHidden2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectUiHidden3` + +```typescript +const value: models.CreateIntegrationStoreDirectUiHidden3 = "create"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesuioptions.md b/docs/models/createintegrationstoredirectpropertiesuioptions.md new file mode 100644 index 00000000..91b6805a --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesuioptions.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectPropertiesUiOptions + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesUiOptions } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesUiOptions = { + value: "", + label: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `value` | *string* | :heavy_check_mark: | N/A | +| `label` | *string* | :heavy_check_mark: | N/A | +| `disabled` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled* | :heavy_minus_sign: | N/A | +| `hidden` | *models.CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectpropertiesuireadonly.md b/docs/models/createintegrationstoredirectpropertiesuireadonly.md new file mode 100644 index 00000000..610e151f --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesuireadonly.md @@ -0,0 +1,25 @@ +# CreateIntegrationStoreDirectPropertiesUiReadOnly + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnly2` + +```typescript +const value: models.CreateIntegrationStoreDirectUiReadOnly2 = { + expr: "", +}; +``` + +### `models.CreateIntegrationStoreDirectUiReadOnly3` + +```typescript +const value: models.CreateIntegrationStoreDirectUiReadOnly3 = "update"; +``` + diff --git a/docs/models/createintegrationstoredirectpropertiesvalue.md b/docs/models/createintegrationstoredirectpropertiesvalue.md new file mode 100644 index 00000000..ca9b8c34 --- /dev/null +++ b/docs/models/createintegrationstoredirectpropertiesvalue.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectPropertiesValue + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectPropertiesValue } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectPropertiesValue = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822](../models/createintegrationstoredirectpropertiesintegrationsresponse200applicationjsonresponsebodystoreproductatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectprotocolsettings.md b/docs/models/createintegrationstoredirectprotocolsettings.md new file mode 100644 index 00000000..e85d8229 --- /dev/null +++ b/docs/models/createintegrationstoredirectprotocolsettings.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectProtocolSettings + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectProtocolSettings } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectProtocolSettings = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `experimentation` | [models.CreateIntegrationStoreDirectExperimentation](../models/createintegrationstoredirectexperimentation.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectquote.md b/docs/models/createintegrationstoredirectquote.md new file mode 100644 index 00000000..85ad9380 --- /dev/null +++ b/docs/models/createintegrationstoredirectquote.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectQuote + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectQuote } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectQuote = { + line: "", + amount: "718.56", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `line` | *string* | :heavy_check_mark: | N/A | +| `amount` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectrequest.md b/docs/models/createintegrationstoredirectrequest.md new file mode 100644 index 00000000..b628e056 --- /dev/null +++ b/docs/models/createintegrationstoredirectrequest.md @@ -0,0 +1,20 @@ +# CreateIntegrationStoreDirectRequest + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectRequest } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectRequest = { + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", + slug: "my-team-url-slug", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `teamId` | *string* | :heavy_minus_sign: | The Team identifier to perform the request on behalf of. | team_1a2b3c4d5e6f7g8h9i0j1k2l | +| `slug` | *string* | :heavy_minus_sign: | The Team slug to perform the request on behalf of. | my-team-url-slug | +| `requestBody` | [models.CreateIntegrationStoreDirectRequestBody](../models/createintegrationstoredirectrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectrequestbody.md b/docs/models/createintegrationstoredirectrequestbody.md new file mode 100644 index 00000000..f7663a1e --- /dev/null +++ b/docs/models/createintegrationstoredirectrequestbody.md @@ -0,0 +1,46 @@ +# CreateIntegrationStoreDirectRequestBody + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectRequestBody } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectRequestBody = { + name: "my-dev-database", + integrationConfigurationId: "icfg_cuwj0AdCdH3BwWT4LPijCC7t", + integrationProductIdOrSlug: "iap_postgres_db", + metadata: { + "environment": "development", + "project": "my-app", + "tags": [ + "database", + "postgres", + ], + }, + externalId: "dev-db-001", + protocolSettings: { + "experimentation": { + "edgeConfigSyncingEnabled": true, + }, + }, + source: "api", + billingPlanId: "bp_abc123def456", + paymentMethodId: "pm_1AbcDefGhiJklMno", + prepaymentAmountCents: 5000, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *string* | :heavy_check_mark: | Human-readable name for the storage resource | my-dev-database | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | ID of your integration configuration. Get this from GET /v1/integrations/configurations | icfg_cuwj0AdCdH3BwWT4LPijCC7t | +| `integrationProductIdOrSlug` | *any* | :heavy_check_mark: | ID or slug of the integration product. Get available products from GET /v1/integrations/configuration/{id}/products | | +| `metadata` | Record | :heavy_minus_sign: | Optional key-value pairs for resource metadata | {
"environment": "development",
"project": "my-app",
"tags": [
"database",
"postgres"
]
} | +| `externalId` | *string* | :heavy_minus_sign: | Optional external identifier for tracking purposes | dev-db-001 | +| `protocolSettings` | Record | :heavy_minus_sign: | Protocol-specific configuration settings | {
"experimentation": {
"edgeConfigSyncingEnabled": true
}
} | +| `source` | *string* | :heavy_minus_sign: | Source of the store creation request | api | +| `billingPlanId` | *string* | :heavy_minus_sign: | ID of the billing plan for paid resources. Get available plans from GET /integrations/integration/{id}/products/{productId}/plans. If not provided, automatically discovers free billing plans. | bp_abc123def456 | +| `paymentMethodId` | *string* | :heavy_minus_sign: | Payment method ID for paid resources. Optional - uses default payment method if not provided. | pm_1AbcDefGhiJklMno | +| `prepaymentAmountCents` | *number* | :heavy_minus_sign: | Amount in cents for prepayment billing plans. Required only for prepayment plans with variable amounts. | 5000 | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectresponsebody.md b/docs/models/createintegrationstoredirectresponsebody.md new file mode 100644 index 00000000..e5f660f8 --- /dev/null +++ b/docs/models/createintegrationstoredirectresponsebody.md @@ -0,0 +1,28 @@ +# CreateIntegrationStoreDirectResponseBody + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectResponseBody } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectResponseBody = { + store: { + projectsMetadata: [], + usageQuotaExceeded: true, + status: "uninstalled", + externalResourceId: "", + product: { + value: { + atBRANDAt7822: {}, + }, + }, + secrets: [], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `store` | [models.CreateIntegrationStoreDirectStore](../models/createintegrationstoredirectstore.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectscope.md b/docs/models/createintegrationstoredirectscope.md new file mode 100644 index 00000000..b4211dd5 --- /dev/null +++ b/docs/models/createintegrationstoredirectscope.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectScope + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectScope } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectScope = "resource"; +``` + +## Values + +```typescript +"installation" | "resource" +``` \ No newline at end of file diff --git a/docs/models/usereventpayload146project.md b/docs/models/createintegrationstoredirectsecrets.md similarity index 55% rename from docs/models/usereventpayload146project.md rename to docs/models/createintegrationstoredirectsecrets.md index 106762cc..5a5ea99d 100644 --- a/docs/models/usereventpayload146project.md +++ b/docs/models/createintegrationstoredirectsecrets.md @@ -1,13 +1,13 @@ -# UserEventPayload146Project +# CreateIntegrationStoreDirectSecrets ## Example Usage ```typescript -import { UserEventPayload146Project } from "@vercel/sdk/models/userevent.js"; +import { CreateIntegrationStoreDirectSecrets } from "@vercel/sdk/models/createintegrationstoredirectop.js"; -let value: UserEventPayload146Project = { - id: "", +let value: CreateIntegrationStoreDirectSecrets = { name: "", + length: 1973.38, }; ``` @@ -15,5 +15,5 @@ let value: UserEventPayload146Project = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `name` | *string* | :heavy_check_mark: | N/A | +| `length` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectstatus.md b/docs/models/createintegrationstoredirectstatus.md new file mode 100644 index 00000000..ff11f181 --- /dev/null +++ b/docs/models/createintegrationstoredirectstatus.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectStatus + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectStatus } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectStatus = "limits-exceeded-suspended"; +``` + +## Values + +```typescript +"available" | "error" | "suspended" | "limits-exceeded-suspended" | "limits-exceeded-suspended-store-count" | "initializing" | "uninstalled" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectstore.md b/docs/models/createintegrationstoredirectstore.md new file mode 100644 index 00000000..25de8f44 --- /dev/null +++ b/docs/models/createintegrationstoredirectstore.md @@ -0,0 +1,42 @@ +# CreateIntegrationStoreDirectStore + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectStore } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectStore = { + projectsMetadata: [], + usageQuotaExceeded: true, + status: "limits-exceeded-suspended", + externalResourceId: "", + product: { + value: { + atBRANDAt7822: {}, + }, + }, + secrets: [ + { + name: "", + length: 96.14, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `projectsMetadata` | [models.ProjectsMetadata](../models/projectsmetadata.md)[] | :heavy_check_mark: | N/A | +| `totalConnectedProjects` | *number* | :heavy_minus_sign: | N/A | +| `usageQuotaExceeded` | *boolean* | :heavy_check_mark: | N/A | +| `status` | [models.CreateIntegrationStoreDirectStatus](../models/createintegrationstoredirectstatus.md) | :heavy_check_mark: | N/A | +| `metadata` | Record | :heavy_minus_sign: | N/A | +| `externalResourceId` | *string* | :heavy_check_mark: | N/A | +| `externalResourceStatus` | [models.ExternalResourceStatus](../models/externalresourcestatus.md) | :heavy_minus_sign: | N/A | +| `product` | [models.Product](../models/product.md) | :heavy_check_mark: | N/A | +| `protocolSettings` | [models.CreateIntegrationStoreDirectProtocolSettings](../models/createintegrationstoredirectprotocolsettings.md) | :heavy_minus_sign: | N/A | +| `notification` | [models.CreateIntegrationStoreDirectNotification](../models/createintegrationstoredirectnotification.md) | :heavy_minus_sign: | N/A | +| `secrets` | [models.CreateIntegrationStoreDirectSecrets](../models/createintegrationstoredirectsecrets.md)[] | :heavy_check_mark: | N/A | +| `billingPlan` | [models.CreateIntegrationStoreDirectBillingPlan](../models/createintegrationstoredirectbillingplan.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirecttype.md b/docs/models/createintegrationstoredirecttype.md new file mode 100644 index 00000000..743d1c88 --- /dev/null +++ b/docs/models/createintegrationstoredirecttype.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectType + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectType } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectType = "subscription"; +``` + +## Values + +```typescript +"prepayment" | "subscription" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidescription2.md b/docs/models/createintegrationstoredirectuidescription2.md new file mode 100644 index 00000000..5ac5773f --- /dev/null +++ b/docs/models/createintegrationstoredirectuidescription2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDescription2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDescription2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDescription2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidescriptionintegrations2.md b/docs/models/createintegrationstoredirectuidescriptionintegrations2.md new file mode 100644 index 00000000..9a0539aa --- /dev/null +++ b/docs/models/createintegrationstoredirectuidescriptionintegrations2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDescriptionIntegrations2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDescriptionIntegrations2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDescriptionIntegrations2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2.md b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2.md new file mode 100644 index 00000000..35e56f7c --- /dev/null +++ b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2002.md b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2002.md new file mode 100644 index 00000000..c3a3084d --- /dev/null +++ b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse2002.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjson2.md b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjson2.md new file mode 100644 index 00000000..572cfff4 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjson2.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebody2.md b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebody2.md new file mode 100644 index 00000000..f366fdd7 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebody2.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebodystore2.md b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebodystore2.md new file mode 100644 index 00000000..102f72a0 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidescriptionintegrationsresponse200applicationjsonresponsebodystore2.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabled2.md b/docs/models/createintegrationstoredirectuidisabled2.md new file mode 100644 index 00000000..1bbd0d25 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabled2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDisabled2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabled2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDisabled2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabled3.md b/docs/models/createintegrationstoredirectuidisabled3.md new file mode 100644 index 00000000..8f6aa831 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabled3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectUiDisabled3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabled3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDisabled3 = "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrations2.md b/docs/models/createintegrationstoredirectuidisabledintegrations2.md new file mode 100644 index 00000000..d2404abd --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrations2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrations2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabledIntegrations2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDisabledIntegrations2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrations3.md b/docs/models/createintegrationstoredirectuidisabledintegrations3.md new file mode 100644 index 00000000..b361a977 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrations3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrations3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabledIntegrations3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDisabledIntegrations3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2.md new file mode 100644 index 00000000..fd0ff67b --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2002.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2002.md new file mode 100644 index 00000000..3119bc35 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2002.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2003.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2003.md new file mode 100644 index 00000000..e755a8f6 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse2003.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson2.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson2.md new file mode 100644 index 00000000..bfd705e0 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson2.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson3.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson3.md new file mode 100644 index 00000000..89b5d28b --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjson3.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody2.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody2.md new file mode 100644 index 00000000..cf5558ec --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody2.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody3.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody3.md new file mode 100644 index 00000000..fb67d1b8 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebody3.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore2.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore2.md new file mode 100644 index 00000000..9e065c09 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore2.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore3.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore3.md new file mode 100644 index 00000000..407b9bb2 --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse200applicationjsonresponsebodystore3.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuidisabledintegrationsresponse3.md b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse3.md new file mode 100644 index 00000000..cd56f6bc --- /dev/null +++ b/docs/models/createintegrationstoredirectuidisabledintegrationsresponse3.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihidden2.md b/docs/models/createintegrationstoredirectuihidden2.md new file mode 100644 index 00000000..30502e75 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihidden2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiHidden2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHidden2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiHidden2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihidden3.md b/docs/models/createintegrationstoredirectuihidden3.md new file mode 100644 index 00000000..09a9ceb2 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihidden3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectUiHidden3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHidden3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiHidden3 = "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrations2.md b/docs/models/createintegrationstoredirectuihiddenintegrations2.md new file mode 100644 index 00000000..b6ef7ef3 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrations2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrations2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHiddenIntegrations2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiHiddenIntegrations2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrations3.md b/docs/models/createintegrationstoredirectuihiddenintegrations3.md new file mode 100644 index 00000000..3620e282 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrations3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrations3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHiddenIntegrations3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiHiddenIntegrations3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2.md new file mode 100644 index 00000000..9c385b6c --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2002.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2002.md new file mode 100644 index 00000000..7960adb8 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2002.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2003.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2003.md new file mode 100644 index 00000000..bc102b96 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse2003.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson2.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson2.md new file mode 100644 index 00000000..d32b9fbe --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson2.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson3.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson3.md new file mode 100644 index 00000000..d59af8f8 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjson3.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody2.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody2.md new file mode 100644 index 00000000..351c1424 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody2.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody3.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody3.md new file mode 100644 index 00000000..e31e8af7 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebody3.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore2.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore2.md new file mode 100644 index 00000000..880661fc --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore2.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore3.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore3.md new file mode 100644 index 00000000..42a1caea --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse200applicationjsonresponsebodystore3.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuihiddenintegrationsresponse3.md b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse3.md new file mode 100644 index 00000000..f8c5d051 --- /dev/null +++ b/docs/models/createintegrationstoredirectuihiddenintegrationsresponse3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuioptions1.md b/docs/models/createintegrationstoredirectuioptions1.md new file mode 100644 index 00000000..60001721 --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptions1.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiOptions1 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiOptions1 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiOptions1 = { + value: "", + label: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `value` | *string* | :heavy_check_mark: | N/A | +| `label` | *string* | :heavy_check_mark: | N/A | +| `disabled` | *models.CreateIntegrationStoreDirectUiOptionsDisabled* | :heavy_minus_sign: | N/A | +| `hidden` | *models.CreateIntegrationStoreDirectUiOptionsHidden* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuioptions2.md b/docs/models/createintegrationstoredirectuioptions2.md new file mode 100644 index 00000000..2a57b5a5 --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptions2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiOptions2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiOptions2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiOptions2 = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.UiOptionsAtBRANDAt7822](../models/uioptionsatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuioptions3.md b/docs/models/createintegrationstoredirectuioptions3.md new file mode 100644 index 00000000..f89c2b9d --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptions3.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiOptions3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiOptions3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiOptions3 = { + value: { + atBRANDAt7822: {}, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `value` | [models.CreateIntegrationStoreDirectUiOptionsValue](../models/createintegrationstoredirectuioptionsvalue.md) | :heavy_check_mark: | N/A | +| `disabled` | *models.CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled* | :heavy_minus_sign: | N/A | +| `hidden` | *models.CreateIntegrationStoreDirectUiOptionsIntegrationsHidden* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuioptionsatbrandat7822.md b/docs/models/createintegrationstoredirectuioptionsatbrandat7822.md new file mode 100644 index 00000000..b99af74d --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptionsatbrandat7822.md @@ -0,0 +1,14 @@ +# CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuioptionsdisabled.md b/docs/models/createintegrationstoredirectuioptionsdisabled.md new file mode 100644 index 00000000..e6165bdd --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptionsdisabled.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectUiOptionsDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2` + +```typescript +const value: + models.CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3` + +```typescript +const value: + models.CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectuioptionshidden.md b/docs/models/createintegrationstoredirectuioptionshidden.md new file mode 100644 index 00000000..6e378ef7 --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptionshidden.md @@ -0,0 +1,29 @@ +# CreateIntegrationStoreDirectUiOptionsHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2` + +```typescript +const value: + models.CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3` + +```typescript +const value: + models.CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectuioptionsintegrationsdisabled.md b/docs/models/createintegrationstoredirectuioptionsintegrationsdisabled.md new file mode 100644 index 00000000..5b906f2f --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptionsintegrationsdisabled.md @@ -0,0 +1,28 @@ +# CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectDisabledIntegrationsResponse2002` + +```typescript +const value: + models.CreateIntegrationStoreDirectDisabledIntegrationsResponse2002 = { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectDisabledIntegrationsResponse2003` + +```typescript +const value: + models.CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectuioptionsintegrationshidden.md b/docs/models/createintegrationstoredirectuioptionsintegrationshidden.md new file mode 100644 index 00000000..38f62eed --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptionsintegrationshidden.md @@ -0,0 +1,27 @@ +# CreateIntegrationStoreDirectUiOptionsIntegrationsHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.CreateIntegrationStoreDirectHiddenIntegrationsResponse2002` + +```typescript +const value: models.CreateIntegrationStoreDirectHiddenIntegrationsResponse2002 = + { + expr: "", + }; +``` + +### `models.CreateIntegrationStoreDirectHiddenIntegrationsResponse2003` + +```typescript +const value: models.CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 = + "create"; +``` + diff --git a/docs/models/createintegrationstoredirectuioptionsvalue.md b/docs/models/createintegrationstoredirectuioptionsvalue.md new file mode 100644 index 00000000..efa8ea9b --- /dev/null +++ b/docs/models/createintegrationstoredirectuioptionsvalue.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiOptionsValue + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiOptionsValue } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiOptionsValue = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `atBRANDAt7822` | [models.CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822](../models/createintegrationstoredirectuioptionsatbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonly2.md b/docs/models/createintegrationstoredirectuireadonly2.md new file mode 100644 index 00000000..6b4a5e4e --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonly2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiReadOnly2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnly2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiReadOnly2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonly3.md b/docs/models/createintegrationstoredirectuireadonly3.md new file mode 100644 index 00000000..1ac154c2 --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonly3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectUiReadOnly3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnly3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiReadOnly3 = "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrations2.md b/docs/models/createintegrationstoredirectuireadonlyintegrations2.md new file mode 100644 index 00000000..416843ae --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrations2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrations2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnlyIntegrations2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiReadOnlyIntegrations2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrations3.md b/docs/models/createintegrationstoredirectuireadonlyintegrations3.md new file mode 100644 index 00000000..5179fd60 --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrations3.md @@ -0,0 +1,15 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrations3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnlyIntegrations3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiReadOnlyIntegrations3 = "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2.md new file mode 100644 index 00000000..176cf040 --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2002.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2002.md new file mode 100644 index 00000000..59340564 --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2002.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002 = { + expr: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2003.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2003.md new file mode 100644 index 00000000..f3f766c6 --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse2003.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson2.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson2.md new file mode 100644 index 00000000..b1825f6f --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson2.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson3.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson3.md new file mode 100644 index 00000000..0aca16a9 --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjson3.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody2.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody2.md new file mode 100644 index 00000000..39080be0 --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody2.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody3.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody3.md new file mode 100644 index 00000000..531dfb1b --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebody3.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore2.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore2.md new file mode 100644 index 00000000..a6bb740a --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore2.md @@ -0,0 +1,21 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore3.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore3.md new file mode 100644 index 00000000..0ee8fbff --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse200applicationjsonresponsebodystore3.md @@ -0,0 +1,19 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 + +## Example Usage + +```typescript +import { + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3, +} from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse3.md b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse3.md new file mode 100644 index 00000000..dcb93b5e --- /dev/null +++ b/docs/models/createintegrationstoredirectuireadonlyintegrationsresponse3.md @@ -0,0 +1,16 @@ +# CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/createintegrationstoredirectvalue.md b/docs/models/createintegrationstoredirectvalue.md new file mode 100644 index 00000000..d9a56317 --- /dev/null +++ b/docs/models/createintegrationstoredirectvalue.md @@ -0,0 +1,17 @@ +# CreateIntegrationStoreDirectValue + +## Example Usage + +```typescript +import { CreateIntegrationStoreDirectValue } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: CreateIntegrationStoreDirectValue = { + atBRANDAt7822: {}, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `atBRANDAt7822` | [models.AtBRANDAt7822](../models/atbrandat7822.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectdefaultresourceconfig.md b/docs/models/createprojectdefaultresourceconfig.md index 14361931..6cbded15 100644 --- a/docs/models/createprojectdefaultresourceconfig.md +++ b/docs/models/createprojectdefaultresourceconfig.md @@ -16,11 +16,11 @@ let value: CreateProjectDefaultResourceConfig = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `elasticConcurrencyEnabled` | *boolean* | :heavy_minus_sign: | N/A | | `fluid` | *boolean* | :heavy_minus_sign: | N/A | | `functionDefaultRegions` | *string*[] | :heavy_check_mark: | N/A | | `functionDefaultTimeout` | *number* | :heavy_minus_sign: | N/A | | `functionDefaultMemoryType` | [models.CreateProjectProjectsFunctionDefaultMemoryType](../models/createprojectprojectsfunctiondefaultmemorytype.md) | :heavy_minus_sign: | N/A | | `functionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | -| `elasticConcurrencyEnabled` | *boolean* | :heavy_minus_sign: | N/A | | `buildMachineType` | [models.CreateProjectProjectsBuildMachineType](../models/createprojectprojectsbuildmachinetype.md) | :heavy_minus_sign: | N/A | | `isNSNBDisabled` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectdeploymentexpiration.md b/docs/models/createprojectdeploymentexpiration.md index d4b95222..27e98343 100644 --- a/docs/models/createprojectdeploymentexpiration.md +++ b/docs/models/createprojectdeploymentexpiration.md @@ -1,5 +1,7 @@ # CreateProjectDeploymentExpiration +Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + ## Example Usage ```typescript @@ -10,10 +12,10 @@ let value: CreateProjectDeploymentExpiration = {}; ## Fields -| Field | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `expirationDays` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysProduction` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysCanceled` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysErrored` | *number* | :heavy_minus_sign: | N/A | -| `deploymentsToKeep` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `expirationDays` | *number* | :heavy_minus_sign: | Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. | +| `expirationDaysProduction` | *number* | :heavy_minus_sign: | Number of days to keep production deployments before soft deletion. | +| `expirationDaysCanceled` | *number* | :heavy_minus_sign: | Number of days to keep canceled deployments before soft deletion. | +| `expirationDaysErrored` | *number* | :heavy_minus_sign: | Number of days to keep errored deployments before soft deletion. | +| `deploymentsToKeep` | *number* | :heavy_minus_sign: | Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. | \ No newline at end of file diff --git a/docs/models/createprojectenv.md b/docs/models/createprojectenv.md index 0df06dea..40578bc2 100644 --- a/docs/models/createprojectenv.md +++ b/docs/models/createprojectenv.md @@ -6,7 +6,7 @@ import { CreateProjectEnv } from "@vercel/sdk/models/createprojectop.js"; let value: CreateProjectEnv = { - type: "encrypted", + type: "plain", value: "", key: "", }; diff --git a/docs/models/createprojectenvcreatedtype.md b/docs/models/createprojectenvcreatedtype.md index 405a9786..1bf3ed15 100644 --- a/docs/models/createprojectenvcreatedtype.md +++ b/docs/models/createprojectenvcreatedtype.md @@ -5,11 +5,11 @@ ```typescript import { CreateProjectEnvCreatedType } from "@vercel/sdk/models/createprojectenvop.js"; -let value: CreateProjectEnvCreatedType = "plain"; +let value: CreateProjectEnvCreatedType = "sensitive"; ``` ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/createprojectenvresponsebody.md b/docs/models/createprojectenvresponsebody.md index 23ec13ee..d127f514 100644 --- a/docs/models/createprojectenvresponsebody.md +++ b/docs/models/createprojectenvresponsebody.md @@ -9,7 +9,7 @@ import { CreateProjectEnvResponseBody } from "@vercel/sdk/models/createprojecten let value: CreateProjectEnvResponseBody = { created: { - type: "plain", + type: "sensitive", value: "", key: "", }, diff --git a/docs/models/createprojectlink2.md b/docs/models/createprojectlink2.md index a023e783..36600972 100644 --- a/docs/models/createprojectlink2.md +++ b/docs/models/createprojectlink2.md @@ -26,13 +26,13 @@ let value: CreateProjectLink2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `type` | [models.CreateProjectLinkProjectsType](../models/createprojectlinkprojectstype.md) | :heavy_check_mark: | N/A | +| `repo` | *string* | :heavy_minus_sign: | N/A | +| `repoId` | *number* | :heavy_minus_sign: | N/A | | `updatedAt` | *number* | :heavy_minus_sign: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | -| `repo` | *string* | :heavy_minus_sign: | N/A | -| `sourceless` | *boolean* | :heavy_minus_sign: | N/A | | `org` | *string* | :heavy_check_mark: | N/A | | `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. | -| `repoId` | *number* | :heavy_minus_sign: | N/A | | `deployHooks` | [models.CreateProjectLinkProjectsDeployHooks](../models/createprojectlinkprojectsdeployhooks.md)[] | :heavy_check_mark: | N/A | | `gitCredentialId` | *string* | :heavy_check_mark: | N/A | +| `sourceless` | *boolean* | :heavy_minus_sign: | N/A | | `productionBranch` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectpermissions.md b/docs/models/createprojectpermissions.md index 6c63c279..6dfe24c1 100644 --- a/docs/models/createprojectpermissions.md +++ b/docs/models/createprojectpermissions.md @@ -12,6 +12,73 @@ let value: CreateProjectPermissions = {}; | Field | Type | Required | Description | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `aliasProject` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `aliasProtectionBypass` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `buildMachine` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `productionAliasProtectionBypass` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `connectConfigurationLink` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `dataCacheNamespace` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deployment` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentBuildLogs` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentCheck` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentCheckPreview` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentCheckReRunFromProductionBranch` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentProductionGit` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentV0` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentPreview` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentPrivate` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentPromote` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `deploymentRollback` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `edgeCacheNamespace` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `environments` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `logs` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `logsPreset` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `passwordProtection` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `optionsAllowlist` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `job` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `observabilityData` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `onDemandBuild` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `onDemandConcurrency` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `project` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectFromV0` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectAccessGroup` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectAnalyticsSampling` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectCheck` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectCheckRun` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectDeploymentHook` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectDomain` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectDomainMove` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectDomainCheckConfig` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectEnvVars` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectEnvVarsProduction` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectEnvVarsUnownedByIntegration` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectFlags` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectId` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectIntegrationConfiguration` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectLink` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectMember` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectMonitoring` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectPermissions` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectProductionBranch` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectTransfer` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectTransferOut` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectProtectionBypass` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectUsage` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectAnalyticsUsage` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectSupportCase` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectSupportCaseComment` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectDeploymentExpiration` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectRollingRelease` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectTier` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `projectOIDCToken` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `seawallConfig` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `skewProtection` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `analytics` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `trustedIps` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `v0Chat` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `webAnalytics` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `sharedEnvVarConnection` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | +| `sonar` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | | `oauth2Connection` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | | `user` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | | `userConnection` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | @@ -156,71 +223,4 @@ let value: CreateProjectPermissions = {}; | `vercelRun` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | | `vercelRunExec` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | | `apiKey` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `apiKeyOwnedBySelf` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `aliasProject` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `aliasProtectionBypass` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `buildMachine` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `productionAliasProtectionBypass` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `connectConfigurationLink` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `dataCacheNamespace` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deployment` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentBuildLogs` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentCheck` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentCheckPreview` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentCheckReRunFromProductionBranch` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentProductionGit` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentV0` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentPreview` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentPrivate` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentPromote` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `deploymentRollback` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `edgeCacheNamespace` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `environments` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `logs` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `logsPreset` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `passwordProtection` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `optionsAllowlist` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `job` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `observabilityData` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `onDemandBuild` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `onDemandConcurrency` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `project` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectFromV0` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectAccessGroup` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectAnalyticsSampling` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectCheck` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectCheckRun` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectDeploymentHook` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectDomain` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectDomainMove` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectDomainCheckConfig` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectEnvVars` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectEnvVarsProduction` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectEnvVarsUnownedByIntegration` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectFlags` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectId` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectIntegrationConfiguration` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectLink` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectMember` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectMonitoring` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectPermissions` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectProductionBranch` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectTransfer` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectTransferOut` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectProtectionBypass` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectUsage` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectAnalyticsUsage` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectSupportCase` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectSupportCaseComment` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectDeploymentExpiration` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectRollingRelease` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectTier` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `projectOIDCToken` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `seawallConfig` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `skewProtection` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `analytics` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `trustedIps` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `v0Chat` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `webAnalytics` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `sharedEnvVarConnection` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | -| `sonar` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `apiKeyOwnedBySelf` | [models.ACLAction](../models/aclaction.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectprojectsdeploymenttype.md b/docs/models/createprojectprojectsdeploymenttype.md index 991e561c..a715f464 100644 --- a/docs/models/createprojectprojectsdeploymenttype.md +++ b/docs/models/createprojectprojectsdeploymenttype.md @@ -11,5 +11,5 @@ let value: CreateProjectProjectsDeploymentType = "all_except_custom_domains"; ## Values ```typescript -"all" | "preview" | "prod_deployment_urls_and_all_previews" | "all_except_custom_domains" +"preview" | "all" | "prod_deployment_urls_and_all_previews" | "all_except_custom_domains" ``` \ No newline at end of file diff --git a/docs/models/createprojectprojectsresourceconfig.md b/docs/models/createprojectprojectsresourceconfig.md index 9bb4c02b..897d71c8 100644 --- a/docs/models/createprojectprojectsresourceconfig.md +++ b/docs/models/createprojectprojectsresourceconfig.md @@ -14,11 +14,11 @@ let value: CreateProjectProjectsResourceConfig = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `elasticConcurrencyEnabled` | *boolean* | :heavy_minus_sign: | N/A | | `fluid` | *boolean* | :heavy_minus_sign: | N/A | | `functionDefaultRegions` | *string*[] | :heavy_check_mark: | N/A | | `functionDefaultTimeout` | *number* | :heavy_minus_sign: | N/A | | `functionDefaultMemoryType` | [models.CreateProjectFunctionDefaultMemoryType](../models/createprojectfunctiondefaultmemorytype.md) | :heavy_minus_sign: | N/A | | `functionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | -| `elasticConcurrencyEnabled` | *boolean* | :heavy_minus_sign: | N/A | | `buildMachineType` | [models.CreateProjectBuildMachineType](../models/createprojectbuildmachinetype.md) | :heavy_minus_sign: | N/A | | `isNSNBDisabled` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createprojectprojectsresponsetype.md b/docs/models/createprojectprojectsresponsetype.md index 2f3a0466..7bde91ae 100644 --- a/docs/models/createprojectprojectsresponsetype.md +++ b/docs/models/createprojectprojectsresponsetype.md @@ -5,11 +5,11 @@ ```typescript import { CreateProjectProjectsResponseType } from "@vercel/sdk/models/createprojectop.js"; -let value: CreateProjectProjectsResponseType = "plain"; +let value: CreateProjectProjectsResponseType = "sensitive"; ``` ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/createprojectresponsebody.md b/docs/models/createprojectresponsebody.md index e3a57df6..336fc04b 100644 --- a/docs/models/createprojectresponsebody.md +++ b/docs/models/createprojectresponsebody.md @@ -84,79 +84,79 @@ let value: CreateProjectResponseBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `accountId` | *string* | :heavy_check_mark: | N/A | -| `analytics` | [models.CreateProjectAnalytics](../models/createprojectanalytics.md) | :heavy_minus_sign: | N/A | -| `speedInsights` | [models.CreateProjectSpeedInsights](../models/createprojectspeedinsights.md) | :heavy_minus_sign: | N/A | -| `autoExposeSystemEnvs` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAssignCustomDomains` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAssignCustomDomainsUpdatedBy` | *string* | :heavy_minus_sign: | N/A | -| `buildCommand` | *string* | :heavy_minus_sign: | N/A | -| `commandForIgnoringBuildStep` | *string* | :heavy_minus_sign: | N/A | -| `connectConfigurations` | [models.CreateProjectConnectConfigurations](../models/createprojectconnectconfigurations.md)[] | :heavy_minus_sign: | N/A | -| `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | -| `connectBuildsEnabled` | *boolean* | :heavy_minus_sign: | N/A | -| `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_minus_sign: | N/A | -| `customerSupportCodeVisibility` | *boolean* | :heavy_minus_sign: | N/A | -| `crons` | [models.CreateProjectCrons](../models/createprojectcrons.md) | :heavy_minus_sign: | N/A | -| `dataCache` | [models.CreateProjectDataCache](../models/createprojectdatacache.md) | :heavy_minus_sign: | N/A | -| `deploymentExpiration` | [models.CreateProjectDeploymentExpiration](../models/createprojectdeploymentexpiration.md) | :heavy_minus_sign: | N/A | -| `devCommand` | *string* | :heavy_minus_sign: | N/A | -| `directoryListing` | *boolean* | :heavy_check_mark: | N/A | -| `installCommand` | *string* | :heavy_minus_sign: | N/A | -| `env` | [models.CreateProjectEnv](../models/createprojectenv.md)[] | :heavy_minus_sign: | N/A | -| `customEnvironments` | [models.CreateProjectCustomEnvironments](../models/createprojectcustomenvironments.md)[] | :heavy_minus_sign: | N/A | -| `framework` | [models.CreateProjectProjectsFramework](../models/createprojectprojectsframework.md) | :heavy_minus_sign: | N/A | -| `gitForkProtection` | *boolean* | :heavy_minus_sign: | N/A | -| `gitLFS` | *boolean* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_check_mark: | N/A | -| `ipBuckets` | [models.CreateProjectIpBuckets](../models/createprojectipbuckets.md)[] | :heavy_minus_sign: | N/A | -| `latestDeployments` | [models.CreateProjectLatestDeployments](../models/createprojectlatestdeployments.md)[] | :heavy_minus_sign: | N/A | -| `link` | *models.CreateProjectLink* | :heavy_minus_sign: | N/A | -| `microfrontends` | *models.CreateProjectMicrofrontends* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `nodeVersion` | [models.CreateProjectNodeVersion](../models/createprojectnodeversion.md) | :heavy_check_mark: | N/A | -| `optionsAllowlist` | [models.CreateProjectOptionsAllowlist](../models/createprojectoptionsallowlist.md) | :heavy_minus_sign: | N/A | -| `outputDirectory` | *string* | :heavy_minus_sign: | N/A | -| `passwordProtection` | [models.CreateProjectPasswordProtection](../models/createprojectpasswordprotection.md) | :heavy_minus_sign: | N/A | -| `productionDeploymentsFastLane` | *boolean* | :heavy_minus_sign: | N/A | -| `publicSource` | *boolean* | :heavy_minus_sign: | N/A | -| `resourceConfig` | [models.CreateProjectProjectsResourceConfig](../models/createprojectprojectsresourceconfig.md) | :heavy_check_mark: | N/A | -| `rollbackDescription` | [models.CreateProjectRollbackDescription](../models/createprojectrollbackdescription.md) | :heavy_minus_sign: | Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. | -| `rollingRelease` | [models.CreateProjectRollingRelease](../models/createprojectrollingrelease.md) | :heavy_minus_sign: | Project-level rolling release configuration that defines how deployments should be gradually rolled out | -| `defaultResourceConfig` | [models.CreateProjectDefaultResourceConfig](../models/createprojectdefaultresourceconfig.md) | :heavy_check_mark: | N/A | -| `rootDirectory` | *string* | :heavy_minus_sign: | N/A | -| `serverlessFunctionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | -| `skewProtectionBoundaryAt` | *number* | :heavy_minus_sign: | N/A | -| `skewProtectionMaxAge` | *number* | :heavy_minus_sign: | N/A | -| `skipGitConnectDuringLink` | *boolean* | :heavy_minus_sign: | N/A | -| `sourceFilesOutsideRootDirectory` | *boolean* | :heavy_minus_sign: | N/A | -| `enableAffectedProjectsDeployments` | *boolean* | :heavy_minus_sign: | N/A | -| `ssoProtection` | [models.CreateProjectProjectsSsoProtection](../models/createprojectprojectsssoprotection.md) | :heavy_minus_sign: | N/A | -| `targets` | Record | :heavy_minus_sign: | N/A | -| `transferCompletedAt` | *number* | :heavy_minus_sign: | N/A | -| `transferStartedAt` | *number* | :heavy_minus_sign: | N/A | -| `transferToAccountId` | *string* | :heavy_minus_sign: | N/A | -| `transferredFromAccountId` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *number* | :heavy_minus_sign: | N/A | -| `live` | *boolean* | :heavy_minus_sign: | N/A | -| `enablePreviewFeedback` | *boolean* | :heavy_minus_sign: | N/A | -| `enableProductionFeedback` | *boolean* | :heavy_minus_sign: | N/A | -| `permissions` | [models.CreateProjectPermissions](../models/createprojectpermissions.md) | :heavy_minus_sign: | N/A | -| `lastRollbackTarget` | [models.CreateProjectLastRollbackTarget](../models/createprojectlastrollbacktarget.md) | :heavy_minus_sign: | N/A | -| `lastAliasRequest` | [models.CreateProjectLastAliasRequest](../models/createprojectlastaliasrequest.md) | :heavy_minus_sign: | N/A | -| `protectionBypass` | Record | :heavy_minus_sign: | N/A | -| `hasActiveBranches` | *boolean* | :heavy_minus_sign: | N/A | -| `trustedIps` | *models.CreateProjectTrustedIps* | :heavy_minus_sign: | N/A | -| `gitComments` | [models.CreateProjectGitComments](../models/createprojectgitcomments.md) | :heavy_minus_sign: | N/A | -| `gitProviderOptions` | [models.CreateProjectGitProviderOptions](../models/createprojectgitprovideroptions.md) | :heavy_minus_sign: | N/A | -| `paused` | *boolean* | :heavy_minus_sign: | N/A | -| `concurrencyBucketName` | *string* | :heavy_minus_sign: | N/A | -| `webAnalytics` | [models.CreateProjectWebAnalytics](../models/createprojectwebanalytics.md) | :heavy_minus_sign: | N/A | -| `security` | [models.CreateProjectSecurity](../models/createprojectsecurity.md) | :heavy_minus_sign: | N/A | -| `oidcTokenConfig` | [models.CreateProjectOidcTokenConfig](../models/createprojectoidctokenconfig.md) | :heavy_minus_sign: | N/A | -| `tier` | [models.CreateProjectTier](../models/createprojecttier.md) | :heavy_minus_sign: | N/A | -| `features` | [models.CreateProjectFeatures](../models/createprojectfeatures.md) | :heavy_minus_sign: | N/A | -| `v0` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accountId` | *string* | :heavy_check_mark: | N/A | +| `analytics` | [models.CreateProjectAnalytics](../models/createprojectanalytics.md) | :heavy_minus_sign: | N/A | +| `speedInsights` | [models.CreateProjectSpeedInsights](../models/createprojectspeedinsights.md) | :heavy_minus_sign: | N/A | +| `autoExposeSystemEnvs` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAssignCustomDomains` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAssignCustomDomainsUpdatedBy` | *string* | :heavy_minus_sign: | N/A | +| `buildCommand` | *string* | :heavy_minus_sign: | N/A | +| `commandForIgnoringBuildStep` | *string* | :heavy_minus_sign: | N/A | +| `connectConfigurations` | [models.CreateProjectConnectConfigurations](../models/createprojectconnectconfigurations.md)[] | :heavy_minus_sign: | N/A | +| `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | +| `connectBuildsEnabled` | *boolean* | :heavy_minus_sign: | N/A | +| `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_minus_sign: | N/A | +| `customerSupportCodeVisibility` | *boolean* | :heavy_minus_sign: | N/A | +| `crons` | [models.CreateProjectCrons](../models/createprojectcrons.md) | :heavy_minus_sign: | N/A | +| `dataCache` | [models.CreateProjectDataCache](../models/createprojectdatacache.md) | :heavy_minus_sign: | N/A | +| `deploymentExpiration` | [models.CreateProjectDeploymentExpiration](../models/createprojectdeploymentexpiration.md) | :heavy_minus_sign: | Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. | +| `devCommand` | *string* | :heavy_minus_sign: | N/A | +| `directoryListing` | *boolean* | :heavy_check_mark: | N/A | +| `installCommand` | *string* | :heavy_minus_sign: | N/A | +| `env` | [models.CreateProjectEnv](../models/createprojectenv.md)[] | :heavy_minus_sign: | N/A | +| `customEnvironments` | [models.CreateProjectCustomEnvironments](../models/createprojectcustomenvironments.md)[] | :heavy_minus_sign: | N/A | +| `framework` | [models.CreateProjectProjectsFramework](../models/createprojectprojectsframework.md) | :heavy_minus_sign: | N/A | +| `gitForkProtection` | *boolean* | :heavy_minus_sign: | N/A | +| `gitLFS` | *boolean* | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `ipBuckets` | [models.CreateProjectIpBuckets](../models/createprojectipbuckets.md)[] | :heavy_minus_sign: | N/A | +| `latestDeployments` | [models.CreateProjectLatestDeployments](../models/createprojectlatestdeployments.md)[] | :heavy_minus_sign: | N/A | +| `link` | *models.CreateProjectLink* | :heavy_minus_sign: | N/A | +| `microfrontends` | *models.CreateProjectMicrofrontends* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `nodeVersion` | [models.CreateProjectNodeVersion](../models/createprojectnodeversion.md) | :heavy_check_mark: | N/A | +| `optionsAllowlist` | [models.CreateProjectOptionsAllowlist](../models/createprojectoptionsallowlist.md) | :heavy_minus_sign: | N/A | +| `outputDirectory` | *string* | :heavy_minus_sign: | N/A | +| `passwordProtection` | [models.CreateProjectPasswordProtection](../models/createprojectpasswordprotection.md) | :heavy_minus_sign: | N/A | +| `productionDeploymentsFastLane` | *boolean* | :heavy_minus_sign: | N/A | +| `publicSource` | *boolean* | :heavy_minus_sign: | N/A | +| `resourceConfig` | [models.CreateProjectProjectsResourceConfig](../models/createprojectprojectsresourceconfig.md) | :heavy_check_mark: | N/A | +| `rollbackDescription` | [models.CreateProjectRollbackDescription](../models/createprojectrollbackdescription.md) | :heavy_minus_sign: | Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. | +| `rollingRelease` | [models.CreateProjectRollingRelease](../models/createprojectrollingrelease.md) | :heavy_minus_sign: | Project-level rolling release configuration that defines how deployments should be gradually rolled out | +| `defaultResourceConfig` | [models.CreateProjectDefaultResourceConfig](../models/createprojectdefaultresourceconfig.md) | :heavy_check_mark: | N/A | +| `rootDirectory` | *string* | :heavy_minus_sign: | N/A | +| `serverlessFunctionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | +| `skewProtectionBoundaryAt` | *number* | :heavy_minus_sign: | N/A | +| `skewProtectionMaxAge` | *number* | :heavy_minus_sign: | N/A | +| `skipGitConnectDuringLink` | *boolean* | :heavy_minus_sign: | N/A | +| `sourceFilesOutsideRootDirectory` | *boolean* | :heavy_minus_sign: | N/A | +| `enableAffectedProjectsDeployments` | *boolean* | :heavy_minus_sign: | N/A | +| `ssoProtection` | [models.CreateProjectProjectsSsoProtection](../models/createprojectprojectsssoprotection.md) | :heavy_minus_sign: | N/A | +| `targets` | Record | :heavy_minus_sign: | N/A | +| `transferCompletedAt` | *number* | :heavy_minus_sign: | N/A | +| `transferStartedAt` | *number* | :heavy_minus_sign: | N/A | +| `transferToAccountId` | *string* | :heavy_minus_sign: | N/A | +| `transferredFromAccountId` | *string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *number* | :heavy_minus_sign: | N/A | +| `live` | *boolean* | :heavy_minus_sign: | N/A | +| `enablePreviewFeedback` | *boolean* | :heavy_minus_sign: | N/A | +| `enableProductionFeedback` | *boolean* | :heavy_minus_sign: | N/A | +| `permissions` | [models.CreateProjectPermissions](../models/createprojectpermissions.md) | :heavy_minus_sign: | N/A | +| `lastRollbackTarget` | [models.CreateProjectLastRollbackTarget](../models/createprojectlastrollbacktarget.md) | :heavy_minus_sign: | N/A | +| `lastAliasRequest` | [models.CreateProjectLastAliasRequest](../models/createprojectlastaliasrequest.md) | :heavy_minus_sign: | N/A | +| `protectionBypass` | Record | :heavy_minus_sign: | N/A | +| `hasActiveBranches` | *boolean* | :heavy_minus_sign: | N/A | +| `trustedIps` | *models.CreateProjectTrustedIps* | :heavy_minus_sign: | N/A | +| `gitComments` | [models.CreateProjectGitComments](../models/createprojectgitcomments.md) | :heavy_minus_sign: | N/A | +| `gitProviderOptions` | [models.CreateProjectGitProviderOptions](../models/createprojectgitprovideroptions.md) | :heavy_minus_sign: | N/A | +| `paused` | *boolean* | :heavy_minus_sign: | N/A | +| `concurrencyBucketName` | *string* | :heavy_minus_sign: | N/A | +| `webAnalytics` | [models.CreateProjectWebAnalytics](../models/createprojectwebanalytics.md) | :heavy_minus_sign: | N/A | +| `security` | [models.CreateProjectSecurity](../models/createprojectsecurity.md) | :heavy_minus_sign: | N/A | +| `oidcTokenConfig` | [models.CreateProjectOidcTokenConfig](../models/createprojectoidctokenconfig.md) | :heavy_minus_sign: | N/A | +| `tier` | [models.CreateProjectTier](../models/createprojecttier.md) | :heavy_minus_sign: | N/A | +| `features` | [models.CreateProjectFeatures](../models/createprojectfeatures.md) | :heavy_minus_sign: | N/A | +| `v0` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createprojecttrustedips.md b/docs/models/createprojecttrustedips.md index 298cc6ac..804e5d6e 100644 --- a/docs/models/createprojecttrustedips.md +++ b/docs/models/createprojecttrustedips.md @@ -7,7 +7,7 @@ ```typescript const value: models.CreateProjectTrustedIps1 = { - deploymentType: "all_except_custom_domains", + deploymentType: "prod_deployment_urls_and_all_previews", addresses: [ { value: "", @@ -21,7 +21,7 @@ const value: models.CreateProjectTrustedIps1 = { ```typescript const value: models.CreateProjectTrustedIps2 = { - deploymentType: "preview", + deploymentType: "production", }; ``` diff --git a/docs/models/createprojecttrustedips1.md b/docs/models/createprojecttrustedips1.md index 19b7f4e3..2dee1e48 100644 --- a/docs/models/createprojecttrustedips1.md +++ b/docs/models/createprojecttrustedips1.md @@ -6,7 +6,7 @@ import { CreateProjectTrustedIps1 } from "@vercel/sdk/models/createprojectop.js"; let value: CreateProjectTrustedIps1 = { - deploymentType: "all_except_custom_domains", + deploymentType: "prod_deployment_urls_and_all_previews", addresses: [ { value: "", diff --git a/docs/models/createprojecttrustedips2.md b/docs/models/createprojecttrustedips2.md index 79bf8003..c366bec0 100644 --- a/docs/models/createprojecttrustedips2.md +++ b/docs/models/createprojecttrustedips2.md @@ -6,7 +6,7 @@ import { CreateProjectTrustedIps2 } from "@vercel/sdk/models/createprojectop.js"; let value: CreateProjectTrustedIps2 = { - deploymentType: "preview", + deploymentType: "production", }; ``` diff --git a/docs/models/createprojecttrustedipsdeploymenttype.md b/docs/models/createprojecttrustedipsdeploymenttype.md index ef20bb11..3984bd61 100644 --- a/docs/models/createprojecttrustedipsdeploymenttype.md +++ b/docs/models/createprojecttrustedipsdeploymenttype.md @@ -5,11 +5,11 @@ ```typescript import { CreateProjectTrustedIpsDeploymentType } from "@vercel/sdk/models/createprojectop.js"; -let value: CreateProjectTrustedIpsDeploymentType = "production"; +let value: CreateProjectTrustedIpsDeploymentType = "all_except_custom_domains"; ``` ## Values ```typescript -"all" | "preview" | "prod_deployment_urls_and_all_previews" | "all_except_custom_domains" | "production" +"preview" | "production" | "all" | "prod_deployment_urls_and_all_previews" | "all_except_custom_domains" ``` \ No newline at end of file diff --git a/docs/models/createprojecttrustedipsprojectsdeploymenttype.md b/docs/models/createprojecttrustedipsprojectsdeploymenttype.md index 372fdb1d..563d9ed3 100644 --- a/docs/models/createprojecttrustedipsprojectsdeploymenttype.md +++ b/docs/models/createprojecttrustedipsprojectsdeploymenttype.md @@ -5,11 +5,12 @@ ```typescript import { CreateProjectTrustedIpsProjectsDeploymentType } from "@vercel/sdk/models/createprojectop.js"; -let value: CreateProjectTrustedIpsProjectsDeploymentType = "production"; +let value: CreateProjectTrustedIpsProjectsDeploymentType = + "all_except_custom_domains"; ``` ## Values ```typescript -"all" | "preview" | "prod_deployment_urls_and_all_previews" | "all_except_custom_domains" | "production" +"preview" | "production" | "all" | "prod_deployment_urls_and_all_previews" | "all_except_custom_domains" ``` \ No newline at end of file diff --git a/docs/models/createwebhookevents.md b/docs/models/createwebhookevents.md index 86d91761..238bb6bb 100644 --- a/docs/models/createwebhookevents.md +++ b/docs/models/createwebhookevents.md @@ -13,5 +13,5 @@ let value: CreateWebhookEvents = "deployment.created"; ## Values ```typescript -"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "test-webhook" +"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.cleanup" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "observability.anomaly-error" | "test-webhook" ``` \ No newline at end of file diff --git a/docs/models/default.md b/docs/models/default.md index 73e4f248..311f63a2 100644 --- a/docs/models/default.md +++ b/docs/models/default.md @@ -6,7 +6,7 @@ import { Default } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: Default = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: Default = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/defaultexpirationsettings.md b/docs/models/defaultexpirationsettings.md new file mode 100644 index 00000000..cdb99066 --- /dev/null +++ b/docs/models/defaultexpirationsettings.md @@ -0,0 +1,20 @@ +# DefaultExpirationSettings + +Default deployment expiration settings for this team + +## Example Usage + +```typescript +import { DefaultExpirationSettings } from "@vercel/sdk/models/team.js"; + +let value: DefaultExpirationSettings = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `expiration` | *string* | :heavy_minus_sign: | N/A | +| `expirationProduction` | *string* | :heavy_minus_sign: | N/A | +| `expirationCanceled` | *string* | :heavy_minus_sign: | N/A | +| `expirationErrored` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/deploymentexpiration.md b/docs/models/deploymentexpiration.md index a19b515a..0621f25b 100644 --- a/docs/models/deploymentexpiration.md +++ b/docs/models/deploymentexpiration.md @@ -1,5 +1,7 @@ # DeploymentExpiration +Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + ## Example Usage ```typescript @@ -10,10 +12,10 @@ let value: DeploymentExpiration = {}; ## Fields -| Field | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `expirationDays` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysProduction` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysCanceled` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysErrored` | *number* | :heavy_minus_sign: | N/A | -| `deploymentsToKeep` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `expirationDays` | *number* | :heavy_minus_sign: | Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. | +| `expirationDaysProduction` | *number* | :heavy_minus_sign: | Number of days to keep production deployments before soft deletion. | +| `expirationDaysCanceled` | *number* | :heavy_minus_sign: | Number of days to keep canceled deployments before soft deletion. | +| `expirationDaysErrored` | *number* | :heavy_minus_sign: | Number of days to keep errored deployments before soft deletion. | +| `deploymentsToKeep` | *number* | :heavy_minus_sign: | Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. | \ No newline at end of file diff --git a/docs/models/disabled2.md b/docs/models/disabled2.md index f32b9cfb..d4d87711 100644 --- a/docs/models/disabled2.md +++ b/docs/models/disabled2.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Disabled2 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { Disabled2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; let value: Disabled2 = { expr: "", diff --git a/docs/models/disabled3.md b/docs/models/disabled3.md index 62df075c..0f5d51f9 100644 --- a/docs/models/disabled3.md +++ b/docs/models/disabled3.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Disabled3 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { Disabled3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; let value: Disabled3 = "create"; ``` diff --git a/docs/models/editprojectenvresponsebodytype.md b/docs/models/editprojectenvresponsebodytype.md index 56672562..106c79ee 100644 --- a/docs/models/editprojectenvresponsebodytype.md +++ b/docs/models/editprojectenvresponsebodytype.md @@ -5,11 +5,11 @@ ```typescript import { EditProjectEnvResponseBodyType } from "@vercel/sdk/models/editprojectenvop.js"; -let value: EditProjectEnvResponseBodyType = "encrypted"; +let value: EditProjectEnvResponseBodyType = "plain"; ``` ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/emailinvitecodes.md b/docs/models/emailinvitecodes.md index a6332f4e..dd25a2e5 100644 --- a/docs/models/emailinvitecodes.md +++ b/docs/models/emailinvitecodes.md @@ -19,6 +19,8 @@ let value: EmailInviteCodes = { | `id` | *string* | :heavy_check_mark: | N/A | | `email` | *string* | :heavy_minus_sign: | N/A | | `role` | [models.GetTeamMembersTeamsRole](../models/getteammembersteamsrole.md) | :heavy_minus_sign: | N/A | +| `teamRoles` | [models.GetTeamMembersTeamRoles](../models/getteammembersteamroles.md)[] | :heavy_minus_sign: | N/A | +| `teamPermissions` | [models.GetTeamMembersTeamPermissions](../models/getteammembersteampermissions.md)[] | :heavy_minus_sign: | N/A | | `isDSyncUser` | *boolean* | :heavy_check_mark: | N/A | | `createdAt` | *number* | :heavy_minus_sign: | N/A | | `expired` | *boolean* | :heavy_minus_sign: | N/A | diff --git a/docs/models/envs.md b/docs/models/envs.md index 80294b10..fdf05db5 100644 --- a/docs/models/envs.md +++ b/docs/models/envs.md @@ -6,7 +6,7 @@ import { Envs } from "@vercel/sdk/models/filterprojectenvsop.js"; let value: Envs = { - type: "encrypted", + type: "plain", value: "", key: "", }; diff --git a/docs/models/events.md b/docs/models/events.md index 909d3426..98b35c4b 100644 --- a/docs/models/events.md +++ b/docs/models/events.md @@ -11,5 +11,5 @@ let value: Events = "project-removed"; ## Values ```typescript -"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "test-webhook" +"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.cleanup" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "observability.anomaly-error" | "test-webhook" ``` \ No newline at end of file diff --git a/docs/models/example.md b/docs/models/example.md index 61ae9989..18ee546d 100644 --- a/docs/models/example.md +++ b/docs/models/example.md @@ -6,7 +6,7 @@ import { Example } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: Example = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: Example = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/expiration.md b/docs/models/expiration.md new file mode 100644 index 00000000..a116e93c --- /dev/null +++ b/docs/models/expiration.md @@ -0,0 +1,17 @@ +# Expiration + +The time period to keep non-production deployments for + +## Example Usage + +```typescript +import { Expiration } from "@vercel/sdk/models/patchteamop.js"; + +let value: Expiration = "1y"; +``` + +## Values + +```typescript +"1y" | "6m" | "3m" | "2m" | "1m" | "2w" | "1w" | "1d" | "unlimited" +``` \ No newline at end of file diff --git a/docs/models/expirationcanceled.md b/docs/models/expirationcanceled.md new file mode 100644 index 00000000..3d6f1636 --- /dev/null +++ b/docs/models/expirationcanceled.md @@ -0,0 +1,17 @@ +# ExpirationCanceled + +The time period to keep canceled deployments for + +## Example Usage + +```typescript +import { ExpirationCanceled } from "@vercel/sdk/models/patchteamop.js"; + +let value: ExpirationCanceled = "1y"; +``` + +## Values + +```typescript +"1y" | "6m" | "3m" | "2m" | "1m" | "2w" | "1w" | "1d" | "unlimited" +``` \ No newline at end of file diff --git a/docs/models/expirationerrored.md b/docs/models/expirationerrored.md new file mode 100644 index 00000000..113bb2d9 --- /dev/null +++ b/docs/models/expirationerrored.md @@ -0,0 +1,17 @@ +# ExpirationErrored + +The time period to keep errored deployments for + +## Example Usage + +```typescript +import { ExpirationErrored } from "@vercel/sdk/models/patchteamop.js"; + +let value: ExpirationErrored = "1y"; +``` + +## Values + +```typescript +"1y" | "6m" | "3m" | "2m" | "1m" | "2w" | "1w" | "1d" | "unlimited" +``` \ No newline at end of file diff --git a/docs/models/expirationproduction.md b/docs/models/expirationproduction.md new file mode 100644 index 00000000..e98ffe82 --- /dev/null +++ b/docs/models/expirationproduction.md @@ -0,0 +1,17 @@ +# ExpirationProduction + +The time period to keep production deployments for + +## Example Usage + +```typescript +import { ExpirationProduction } from "@vercel/sdk/models/patchteamop.js"; + +let value: ExpirationProduction = "1y"; +``` + +## Values + +```typescript +"1y" | "6m" | "3m" | "2m" | "1m" | "2w" | "1w" | "1d" | "unlimited" +``` \ No newline at end of file diff --git a/docs/models/externalresourcestatus.md b/docs/models/externalresourcestatus.md new file mode 100644 index 00000000..c7f5ce66 --- /dev/null +++ b/docs/models/externalresourcestatus.md @@ -0,0 +1,15 @@ +# ExternalResourceStatus + +## Example Usage + +```typescript +import { ExternalResourceStatus } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: ExternalResourceStatus = "pending"; +``` + +## Values + +```typescript +"error" | "suspended" | "uninstalled" | "ready" | "pending" | "resumed" +``` \ No newline at end of file diff --git a/docs/models/filterprojectenvsresponsebody.md b/docs/models/filterprojectenvsresponsebody.md index ede68981..04cb9aeb 100644 --- a/docs/models/filterprojectenvsresponsebody.md +++ b/docs/models/filterprojectenvsresponsebody.md @@ -9,7 +9,7 @@ The list of environment variables for the given project ```typescript const value: models.FilterProjectEnvsResponseBody1 = { - type: "plain", + type: "sensitive", value: "", key: "", }; diff --git a/docs/models/filterprojectenvsresponsebody1.md b/docs/models/filterprojectenvsresponsebody1.md index 09bb1a46..c79b4783 100644 --- a/docs/models/filterprojectenvsresponsebody1.md +++ b/docs/models/filterprojectenvsresponsebody1.md @@ -6,7 +6,7 @@ import { FilterProjectEnvsResponseBody1 } from "@vercel/sdk/models/filterprojectenvsop.js"; let value: FilterProjectEnvsResponseBody1 = { - type: "plain", + type: "sensitive", value: "", key: "", }; diff --git a/docs/models/filterprojectenvsresponsebodyprojectsresponse200type.md b/docs/models/filterprojectenvsresponsebodyprojectsresponse200type.md index ece84427..bf6d4c6f 100644 --- a/docs/models/filterprojectenvsresponsebodyprojectsresponse200type.md +++ b/docs/models/filterprojectenvsresponsebodyprojectsresponse200type.md @@ -11,5 +11,5 @@ let value: FilterProjectEnvsResponseBodyProjectsResponse200Type = "system"; ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/filterprojectenvsresponsebodyprojectsresponsetype.md b/docs/models/filterprojectenvsresponsebodyprojectsresponsetype.md index d4756c12..d4b251d8 100644 --- a/docs/models/filterprojectenvsresponsebodyprojectsresponsetype.md +++ b/docs/models/filterprojectenvsresponsebodyprojectsresponsetype.md @@ -11,5 +11,5 @@ let value: FilterProjectEnvsResponseBodyProjectsResponseType = "system"; ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/filterprojectenvsresponsebodytype.md b/docs/models/filterprojectenvsresponsebodytype.md index b275bf0d..9e75a1e0 100644 --- a/docs/models/filterprojectenvsresponsebodytype.md +++ b/docs/models/filterprojectenvsresponsebodytype.md @@ -5,11 +5,11 @@ ```typescript import { FilterProjectEnvsResponseBodyType } from "@vercel/sdk/models/filterprojectenvsop.js"; -let value: FilterProjectEnvsResponseBodyType = "sensitive"; +let value: FilterProjectEnvsResponseBodyType = "secret"; ``` ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/functionmemorytype.md b/docs/models/functionmemorytype.md index a1bf3fc5..72a15c51 100644 --- a/docs/models/functionmemorytype.md +++ b/docs/models/functionmemorytype.md @@ -5,11 +5,11 @@ ```typescript import { FunctionMemoryType } from "@vercel/sdk/models/createdeploymentop.js"; -let value: FunctionMemoryType = "standard"; +let value: FunctionMemoryType = "standard_legacy"; ``` ## Values ```typescript -"standard_legacy" | "standard" | "performance" +"standard" | "standard_legacy" | "performance" ``` \ No newline at end of file diff --git a/docs/models/functions.md b/docs/models/functions.md index 20242645..bc0fa41f 100644 --- a/docs/models/functions.md +++ b/docs/models/functions.md @@ -18,4 +18,5 @@ let value: Functions = {}; | `runtime` | *string* | :heavy_minus_sign: | N/A | | `includeFiles` | *string* | :heavy_minus_sign: | N/A | | `excludeFiles` | *string* | :heavy_minus_sign: | N/A | -| `experimentalTriggers` | [models.ExperimentalTriggers](../models/experimentaltriggers.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `experimentalTriggers` | [models.ExperimentalTriggers](../models/experimentaltriggers.md)[] | :heavy_minus_sign: | N/A | +| `supportsCancellation` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/functiontype.md b/docs/models/functiontype.md index f1fecd3c..a73d7713 100644 --- a/docs/models/functiontype.md +++ b/docs/models/functiontype.md @@ -5,11 +5,11 @@ ```typescript import { FunctionType } from "@vercel/sdk/models/createdeploymentop.js"; -let value: FunctionType = "standard"; +let value: FunctionType = "fluid"; ``` ## Values ```typescript -"standard" | "fluid" +"fluid" | "standard" ``` \ No newline at end of file diff --git a/docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts2.md b/docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts2.md new file mode 100644 index 00000000..a58914ef --- /dev/null +++ b/docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts2.md @@ -0,0 +1,21 @@ +# GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2 + +## Example Usage + +```typescript +import { + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2, +} from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts3.md b/docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts3.md new file mode 100644 index 00000000..82d3ba2a --- /dev/null +++ b/docs/models/getconfigurationproductsdisabledintegrationsresponse200applicationjsonresponsebodyproducts3.md @@ -0,0 +1,19 @@ +# GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 + +## Example Usage + +```typescript +import { + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3, +} from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 = + "create"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts2.md b/docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts2.md new file mode 100644 index 00000000..06910f23 --- /dev/null +++ b/docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts2.md @@ -0,0 +1,21 @@ +# GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2 + +## Example Usage + +```typescript +import { + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2, +} from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2 = + { + expr: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `expr` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts3.md b/docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts3.md new file mode 100644 index 00000000..52b8ec0b --- /dev/null +++ b/docs/models/getconfigurationproductshiddenintegrationsresponse200applicationjsonresponsebodyproducts3.md @@ -0,0 +1,19 @@ +# GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 + +## Example Usage + +```typescript +import { + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3, +} from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 = + "update"; +``` + +## Values + +```typescript +"update" | "create" +``` \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesatbrandat447943.md b/docs/models/getconfigurationproductspropertiesatbrandat502540.md similarity index 55% rename from docs/models/getconfigurationproductspropertiesatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesatbrandat502540.md index 14747280..19c282d3 100644 --- a/docs/models/getconfigurationproductspropertiesatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesatbrandat502540.md @@ -1,11 +1,11 @@ -# GetConfigurationProductsPropertiesAtBRANDAt447943 +# GetConfigurationProductsPropertiesAtBRANDAt502540 ## Example Usage ```typescript -import { GetConfigurationProductsPropertiesAtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { GetConfigurationProductsPropertiesAtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; -let value: GetConfigurationProductsPropertiesAtBRANDAt447943 = {}; +let value: GetConfigurationProductsPropertiesAtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/getconfigurationproductspropertiesintegrationsatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsatbrandat502540.md similarity index 67% rename from docs/models/getconfigurationproductspropertiesintegrationsatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsatbrandat502540.md index 55a3f4fc..9254b807 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsatbrandat502540.md @@ -1,11 +1,11 @@ -# GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540 ## Example Usage ```typescript -import { GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; -let value: GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943 = {}; +let value: GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/getconfigurationproductspropertiesintegrationsdisabled.md b/docs/models/getconfigurationproductspropertiesintegrationsdisabled.md new file mode 100644 index 00000000..7f1df2a5 --- /dev/null +++ b/docs/models/getconfigurationproductspropertiesintegrationsdisabled.md @@ -0,0 +1,26 @@ +# GetConfigurationProductsPropertiesIntegrationsDisabled + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.GetConfigurationProductsDisabledIntegrationsResponse2` + +```typescript +const value: models.GetConfigurationProductsDisabledIntegrationsResponse2 = { + expr: "", +}; +``` + +### `models.GetConfigurationProductsDisabledIntegrationsResponse3` + +```typescript +const value: models.GetConfigurationProductsDisabledIntegrationsResponse3 = + "create"; +``` + diff --git a/docs/models/getconfigurationproductspropertiesintegrationshidden.md b/docs/models/getconfigurationproductspropertiesintegrationshidden.md new file mode 100644 index 00000000..bf855672 --- /dev/null +++ b/docs/models/getconfigurationproductspropertiesintegrationshidden.md @@ -0,0 +1,26 @@ +# GetConfigurationProductsPropertiesIntegrationsHidden + + +## Supported Types + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `models.GetConfigurationProductsHiddenIntegrationsResponse2` + +```typescript +const value: models.GetConfigurationProductsHiddenIntegrationsResponse2 = { + expr: "", +}; +``` + +### `models.GetConfigurationProductsHiddenIntegrationsResponse3` + +```typescript +const value: models.GetConfigurationProductsHiddenIntegrationsResponse3 = + "update"; +``` + diff --git a/docs/models/getconfigurationproductspropertiesintegrationsmaxlength.md b/docs/models/getconfigurationproductspropertiesintegrationsmaxlength.md index efe959aa..92dc61f3 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsmaxlength.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsmaxlength.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesIntegrationsMaxLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesIntegrationsMaxLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesIntegrationsMaxLength = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsminlength.md b/docs/models/getconfigurationproductspropertiesintegrationsminlength.md index ff10a0f9..c60e5a5b 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsminlength.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsminlength.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesIntegrationsMinLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesIntegrationsMinLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesIntegrationsMinLength = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationspattern.md b/docs/models/getconfigurationproductspropertiesintegrationspattern.md index f7020671..300bb930 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationspattern.md +++ b/docs/models/getconfigurationproductspropertiesintegrationspattern.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesIntegrationsPattern } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesIntegrationsPattern = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesIntegrationsPattern = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat502540.md similarity index 84% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat502540.md index e5afd427..2f994f8b 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat502540.md @@ -1,14 +1,14 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540 ## Example Usage ```typescript import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540, } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943 = + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540 = {}; ``` diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat502540.md similarity index 79% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat502540.md index bfb73d98..f7dc6b31 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat502540.md @@ -1,14 +1,14 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540 ## Example Usage ```typescript import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540, } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943 = + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540 = {}; ``` diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat502540.md similarity index 75% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat502540.md index cdd54057..00e7cc61 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat502540.md @@ -1,14 +1,14 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540 ## Example Usage ```typescript import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540, } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943 = + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540 = {}; ``` diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat502540.md similarity index 70% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat502540.md index 5ed3c9ba..063d6e4f 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6atbrandat502540.md @@ -1,14 +1,14 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540 ## Example Usage ```typescript import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540, } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943 = + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540 = {}; ``` diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat447943.md deleted file mode 100644 index a385b98a..00000000 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat447943.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943 - -## Example Usage - -```typescript -import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943, -} from "@vercel/sdk/models/getconfigurationproductsop.js"; - -let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943 = - {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat502540.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat502540.md new file mode 100644 index 00000000..f9fbe696 --- /dev/null +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsatbrandat502540.md @@ -0,0 +1,18 @@ +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540 + +## Example Usage + +```typescript +import { + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540, +} from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat502540.md similarity index 94% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat502540.md index 49edbdf6..a3529e7b 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema6itemsminlengthatbrandat502540.md @@ -1,14 +1,14 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540 ## Example Usage ```typescript import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540, } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943 = + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540 = {}; ``` diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat447943.md deleted file mode 100644 index f1340079..00000000 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat447943.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943 - -## Example Usage - -```typescript -import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943, -} from "@vercel/sdk/models/getconfigurationproductsop.js"; - -let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943 = - {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat502540.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat502540.md new file mode 100644 index 00000000..9ceea728 --- /dev/null +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8atbrandat502540.md @@ -0,0 +1,18 @@ +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540 + +## Example Usage + +```typescript +import { + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540, +} from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat447943.md deleted file mode 100644 index 51caacbc..00000000 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat447943.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943 - -## Example Usage - -```typescript -import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943, -} from "@vercel/sdk/models/getconfigurationproductsop.js"; - -let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943 = - {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat502540.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat502540.md new file mode 100644 index 00000000..99f86339 --- /dev/null +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat502540.md @@ -0,0 +1,18 @@ +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540 + +## Example Usage + +```typescript +import { + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540, +} from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat502540.md similarity index 94% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat502540.md index 2a072c8d..10107383 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat502540.md @@ -1,14 +1,14 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540 ## Example Usage ```typescript import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540, } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943 = + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540 = {}; ``` diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat502540.md similarity index 95% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat502540.md index 1cc0fdd6..e38fabe5 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat502540.md @@ -1,14 +1,14 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540 ## Example Usage ```typescript import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540, } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943 = + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540 = {}; ``` diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat447943.md deleted file mode 100644 index 9eb2db89..00000000 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat447943.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943 - -## Example Usage - -```typescript -import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943, -} from "@vercel/sdk/models/getconfigurationproductsop.js"; - -let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943 = - {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat502540.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat502540.md new file mode 100644 index 00000000..756538e1 --- /dev/null +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat502540.md @@ -0,0 +1,18 @@ +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540 + +## Example Usage + +```typescript +import { + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540, +} from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540 = + {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat502540.md similarity index 70% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat502540.md index 89abfb84..eb226dfc 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschemaatbrandat502540.md @@ -1,14 +1,14 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540 ## Example Usage ```typescript import { - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540, } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943 = + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540 = {}; ``` diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponse200atbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponse200atbrandat502540.md similarity index 80% rename from docs/models/getconfigurationproductspropertiesintegrationsresponse200atbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponse200atbrandat502540.md index 4d4956da..09a9b706 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponse200atbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponse200atbrandat502540.md @@ -1,12 +1,12 @@ -# GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540 ## Example Usage ```typescript -import { GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943 = {}; + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponseatbrandat447943.md b/docs/models/getconfigurationproductspropertiesintegrationsresponseatbrandat502540.md similarity index 81% rename from docs/models/getconfigurationproductspropertiesintegrationsresponseatbrandat447943.md rename to docs/models/getconfigurationproductspropertiesintegrationsresponseatbrandat502540.md index a15a0727..54a4c015 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponseatbrandat447943.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponseatbrandat502540.md @@ -1,12 +1,12 @@ -# GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943 +# GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540 ## Example Usage ```typescript -import { GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943 = {}; + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponsemaxlength.md b/docs/models/getconfigurationproductspropertiesintegrationsresponsemaxlength.md index 044762cc..ae588e11 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponsemaxlength.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponsemaxlength.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesIntegrationsResponseMaxLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesIntegrationsResponseMaxLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesIntegrationsResponseMaxLength = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponseminlength.md b/docs/models/getconfigurationproductspropertiesintegrationsresponseminlength.md index 382a590d..6ecdcea0 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponseminlength.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponseminlength.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesIntegrationsResponseMinLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesIntegrationsResponseMinLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesIntegrationsResponseMinLength = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemsminlengthatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsresponsepattern.md b/docs/models/getconfigurationproductspropertiesintegrationsresponsepattern.md index edec7c97..b68f96ff 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsresponsepattern.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsresponsepattern.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesIntegrationsResponsePattern } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesIntegrationsResponsePattern = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesIntegrationsResponsePattern = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema8itemspatternatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesintegrationsuioptions.md b/docs/models/getconfigurationproductspropertiesintegrationsuioptions.md index 3ad7b317..1c05f381 100644 --- a/docs/models/getconfigurationproductspropertiesintegrationsuioptions.md +++ b/docs/models/getconfigurationproductspropertiesintegrationsuioptions.md @@ -16,7 +16,7 @@ const value: models.GetConfigurationProductsUiOptions1 = { ```typescript const value: models.GetConfigurationProductsUiOptions2 = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -25,7 +25,7 @@ const value: models.GetConfigurationProductsUiOptions2 = { ```typescript const value: models.GetConfigurationProductsUiOptions3 = { value: { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }, }; ``` diff --git a/docs/models/getconfigurationproductspropertiesmaxlength.md b/docs/models/getconfigurationproductspropertiesmaxlength.md index 10fe9f0f..ffc3100c 100644 --- a/docs/models/getconfigurationproductspropertiesmaxlength.md +++ b/docs/models/getconfigurationproductspropertiesmaxlength.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesMaxLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesMaxLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesMaxLength = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesminlength.md b/docs/models/getconfigurationproductspropertiesminlength.md index 1ed173aa..5bad6588 100644 --- a/docs/models/getconfigurationproductspropertiesminlength.md +++ b/docs/models/getconfigurationproductspropertiesminlength.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesMinLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesMinLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesMinLength = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiespattern.md b/docs/models/getconfigurationproductspropertiespattern.md index a8d33f9e..a107f6a9 100644 --- a/docs/models/getconfigurationproductspropertiespattern.md +++ b/docs/models/getconfigurationproductspropertiespattern.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsPropertiesPattern } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsPropertiesPattern = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsPropertiesPattern = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductspropertiesuioptions.md b/docs/models/getconfigurationproductspropertiesuioptions.md index 552de246..1932d841 100644 --- a/docs/models/getconfigurationproductspropertiesuioptions.md +++ b/docs/models/getconfigurationproductspropertiesuioptions.md @@ -16,7 +16,7 @@ const value: models.UiOptions1 = { ```typescript const value: models.UiOptions2 = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -25,7 +25,7 @@ const value: models.UiOptions2 = { ```typescript const value: models.UiOptions3 = { value: { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }, }; ``` diff --git a/docs/models/getconfigurationproductsrepl.md b/docs/models/getconfigurationproductsrepl.md new file mode 100644 index 00000000..a0a8b9cd --- /dev/null +++ b/docs/models/getconfigurationproductsrepl.md @@ -0,0 +1,20 @@ +# GetConfigurationProductsRepl + +## Example Usage + +```typescript +import { GetConfigurationProductsRepl } from "@vercel/sdk/models/getconfigurationproductsop.js"; + +let value: GetConfigurationProductsRepl = { + enabled: true, + supportsReadOnlyMode: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `enabled` | *boolean* | :heavy_check_mark: | N/A | +| `supportsReadOnlyMode` | *boolean* | :heavy_check_mark: | N/A | +| `welcomeMessage` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductsuioptions2.md b/docs/models/getconfigurationproductsuioptions2.md index 24951290..8b21febc 100644 --- a/docs/models/getconfigurationproductsuioptions2.md +++ b/docs/models/getconfigurationproductsuioptions2.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsUiOptions2 } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsUiOptions2 = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsUiOptions2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `atBRANDAt447943` | [models.GetConfigurationProductsUiOptionsAtBRANDAt447943](../models/getconfigurationproductsuioptionsatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsUiOptionsAtBRANDAt502540](../models/getconfigurationproductsuioptionsatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationproductsuioptions3.md b/docs/models/getconfigurationproductsuioptions3.md index c374733f..b9a3f616 100644 --- a/docs/models/getconfigurationproductsuioptions3.md +++ b/docs/models/getconfigurationproductsuioptions3.md @@ -7,7 +7,7 @@ import { GetConfigurationProductsUiOptions3 } from "@vercel/sdk/models/getconfig let value: GetConfigurationProductsUiOptions3 = { value: { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }, }; ``` diff --git a/docs/models/getconfigurationproductsuioptionsatbrandat447943.md b/docs/models/getconfigurationproductsuioptionsatbrandat502540.md similarity index 55% rename from docs/models/getconfigurationproductsuioptionsatbrandat447943.md rename to docs/models/getconfigurationproductsuioptionsatbrandat502540.md index 69e8e174..5efead19 100644 --- a/docs/models/getconfigurationproductsuioptionsatbrandat447943.md +++ b/docs/models/getconfigurationproductsuioptionsatbrandat502540.md @@ -1,11 +1,11 @@ -# GetConfigurationProductsUiOptionsAtBRANDAt447943 +# GetConfigurationProductsUiOptionsAtBRANDAt502540 ## Example Usage ```typescript -import { GetConfigurationProductsUiOptionsAtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { GetConfigurationProductsUiOptionsAtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; -let value: GetConfigurationProductsUiOptionsAtBRANDAt447943 = {}; +let value: GetConfigurationProductsUiOptionsAtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/getconfigurationproductsuioptionsdisabled.md b/docs/models/getconfigurationproductsuioptionsdisabled.md index e8239284..e610ea82 100644 --- a/docs/models/getconfigurationproductsuioptionsdisabled.md +++ b/docs/models/getconfigurationproductsuioptionsdisabled.md @@ -9,18 +9,21 @@ const value: boolean = true; ``` -### `models.GetConfigurationProductsDisabledIntegrationsResponse2` +### `models.GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2` ```typescript -const value: models.GetConfigurationProductsDisabledIntegrationsResponse2 = { - expr: "", -}; +const value: + models.GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2 = + { + expr: "", + }; ``` -### `models.GetConfigurationProductsDisabledIntegrationsResponse3` +### `models.GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3` ```typescript -const value: models.GetConfigurationProductsDisabledIntegrationsResponse3 = - "create"; +const value: + models.GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 = + "update"; ``` diff --git a/docs/models/getconfigurationproductsuioptionshidden.md b/docs/models/getconfigurationproductsuioptionshidden.md index ebbcac64..7fdba111 100644 --- a/docs/models/getconfigurationproductsuioptionshidden.md +++ b/docs/models/getconfigurationproductsuioptionshidden.md @@ -9,18 +9,21 @@ const value: boolean = true; ``` -### `models.GetConfigurationProductsHiddenIntegrationsResponse2` +### `models.GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2` ```typescript -const value: models.GetConfigurationProductsHiddenIntegrationsResponse2 = { - expr: "", -}; +const value: + models.GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2 = + { + expr: "", + }; ``` -### `models.GetConfigurationProductsHiddenIntegrationsResponse3` +### `models.GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3` ```typescript -const value: models.GetConfigurationProductsHiddenIntegrationsResponse3 = - "update"; +const value: + models.GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 = + "update"; ``` diff --git a/docs/models/getconfigurationproductsuioptionsintegrationsatbrandat447943.md b/docs/models/getconfigurationproductsuioptionsintegrationsatbrandat502540.md similarity index 52% rename from docs/models/getconfigurationproductsuioptionsintegrationsatbrandat447943.md rename to docs/models/getconfigurationproductsuioptionsintegrationsatbrandat502540.md index ed1610d4..b1682f6d 100644 --- a/docs/models/getconfigurationproductsuioptionsintegrationsatbrandat447943.md +++ b/docs/models/getconfigurationproductsuioptionsintegrationsatbrandat502540.md @@ -1,11 +1,11 @@ -# GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943 +# GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540 ## Example Usage ```typescript -import { GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; -let value: GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943 = {}; +let value: GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/getconfigurationproductsuioptionsintegrationsresponseatbrandat447943.md b/docs/models/getconfigurationproductsuioptionsintegrationsresponseatbrandat502540.md similarity index 81% rename from docs/models/getconfigurationproductsuioptionsintegrationsresponseatbrandat447943.md rename to docs/models/getconfigurationproductsuioptionsintegrationsresponseatbrandat502540.md index 1270a200..bce3f1ba 100644 --- a/docs/models/getconfigurationproductsuioptionsintegrationsresponseatbrandat447943.md +++ b/docs/models/getconfigurationproductsuioptionsintegrationsresponseatbrandat502540.md @@ -1,12 +1,12 @@ -# GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943 +# GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540 ## Example Usage ```typescript -import { GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943 = {}; + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/getconfigurationproductsuioptionsvalue.md b/docs/models/getconfigurationproductsuioptionsvalue.md index 891a73fc..f2d69fb1 100644 --- a/docs/models/getconfigurationproductsuioptionsvalue.md +++ b/docs/models/getconfigurationproductsuioptionsvalue.md @@ -6,7 +6,7 @@ import { GetConfigurationProductsUiOptionsValue } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: GetConfigurationProductsUiOptionsValue = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: GetConfigurationProductsUiOptionsValue = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943](../models/getconfigurationproductsuioptionsintegrationsresponseatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540](../models/getconfigurationproductsuioptionsintegrationsresponseatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getconfigurationresponsebodyintegrationssource.md b/docs/models/getconfigurationresponsebodyintegrationssource.md index 5b178d57..d123e839 100644 --- a/docs/models/getconfigurationresponsebodyintegrationssource.md +++ b/docs/models/getconfigurationresponsebodyintegrationssource.md @@ -13,5 +13,5 @@ let value: GetConfigurationResponseBodyIntegrationsSource = "marketplace"; ## Values ```typescript -"marketplace" | "deploy-button" | "external" | "v0" +"marketplace" | "deploy-button" | "external" | "v0" | "resource-claims" ``` \ No newline at end of file diff --git a/docs/models/getconfigurationresponsebodysource.md b/docs/models/getconfigurationresponsebodysource.md index 67de5999..32f5fd12 100644 --- a/docs/models/getconfigurationresponsebodysource.md +++ b/docs/models/getconfigurationresponsebodysource.md @@ -13,5 +13,5 @@ let value: GetConfigurationResponseBodySource = "marketplace"; ## Values ```typescript -"marketplace" | "deploy-button" | "external" | "v0" +"marketplace" | "deploy-button" | "external" | "v0" | "resource-claims" ``` \ No newline at end of file diff --git a/docs/models/getconfigurationsresponsebodyintegrationssource.md b/docs/models/getconfigurationsresponsebodyintegrationssource.md index fd810afd..7c56288d 100644 --- a/docs/models/getconfigurationsresponsebodyintegrationssource.md +++ b/docs/models/getconfigurationsresponsebodyintegrationssource.md @@ -13,5 +13,5 @@ let value: GetConfigurationsResponseBodyIntegrationsSource = "marketplace"; ## Values ```typescript -"marketplace" | "deploy-button" | "external" | "v0" +"marketplace" | "deploy-button" | "external" | "v0" | "resource-claims" ``` \ No newline at end of file diff --git a/docs/models/getconfigurationsresponsebodysource.md b/docs/models/getconfigurationsresponsebodysource.md index 3a91a7be..4702f51d 100644 --- a/docs/models/getconfigurationsresponsebodysource.md +++ b/docs/models/getconfigurationsresponsebodysource.md @@ -13,5 +13,5 @@ let value: GetConfigurationsResponseBodySource = "marketplace"; ## Values ```typescript -"marketplace" | "deploy-button" | "external" | "v0" +"marketplace" | "deploy-button" | "external" | "v0" | "resource-claims" ``` \ No newline at end of file diff --git a/docs/models/getdeploymentmicrofrontends1.md b/docs/models/getdeploymentmicrofrontends1.md index b35a6efb..fbbb40f5 100644 --- a/docs/models/getdeploymentmicrofrontends1.md +++ b/docs/models/getdeploymentmicrofrontends1.md @@ -17,10 +17,10 @@ let value: GetDeploymentMicrofrontends1 = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `isDefaultApp` | *boolean* | :heavy_minus_sign: | Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. | -| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | -| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | -| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | -| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `isDefaultApp` | *boolean* | :heavy_minus_sign: | N/A | +| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | +| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | +| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | +| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file diff --git a/docs/models/getdeploymentmicrofrontends2.md b/docs/models/getdeploymentmicrofrontends2.md index f6f93acc..2f6ef799 100644 --- a/docs/models/getdeploymentmicrofrontends2.md +++ b/docs/models/getdeploymentmicrofrontends2.md @@ -17,11 +17,12 @@ let value: GetDeploymentMicrofrontends2 = { ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `applications` | Record | :heavy_minus_sign: | A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. | -| `isDefaultApp` | *boolean* | :heavy_check_mark: | N/A | -| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | -| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | -| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | -| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `isDefaultApp` | *boolean* | :heavy_check_mark: | N/A | +| `applications` | Record | :heavy_minus_sign: | A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. | +| `mfeConfigUploadState` | [models.GetDeploymentMicrofrontendsMfeConfigUploadState](../models/getdeploymentmicrofrontendsmfeconfiguploadstate.md) | :heavy_minus_sign: | The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. | +| `defaultAppProjectName` | *string* | :heavy_check_mark: | The project name of the default app of this deployment's microfrontends group. | +| `defaultRoute` | *string* | :heavy_minus_sign: | A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. | +| `groupIds` | *string*[] | :heavy_check_mark: | The group of microfrontends that this project belongs to. Each microfrontend project must belong to a microfrontends group that is the set of microfrontends that are used together. | +| `microfrontendsAlias2Enabled` | *boolean* | :heavy_minus_sign: | Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not. | \ No newline at end of file diff --git a/docs/models/getdeploymentmicrofrontendsapplications.md b/docs/models/getdeploymentmicrofrontendsapplications.md index d029d214..c594e8ce 100644 --- a/docs/models/getdeploymentmicrofrontendsapplications.md +++ b/docs/models/getdeploymentmicrofrontendsapplications.md @@ -1,6 +1,6 @@ # GetDeploymentMicrofrontendsApplications -A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. +A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. ## Example Usage diff --git a/docs/models/getdeploymentmicrofrontendsmfeconfiguploadstate.md b/docs/models/getdeploymentmicrofrontendsmfeconfiguploadstate.md new file mode 100644 index 00000000..ea5d56d0 --- /dev/null +++ b/docs/models/getdeploymentmicrofrontendsmfeconfiguploadstate.md @@ -0,0 +1,17 @@ +# GetDeploymentMicrofrontendsMfeConfigUploadState + +The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + +## Example Usage + +```typescript +import { GetDeploymentMicrofrontendsMfeConfigUploadState } from "@vercel/sdk/models/getdeploymentop.js"; + +let value: GetDeploymentMicrofrontendsMfeConfigUploadState = "error"; +``` + +## Values + +```typescript +"error" | "success" | "no_config" +``` \ No newline at end of file diff --git a/docs/models/getintegrationresourcemetadata.md b/docs/models/getintegrationresourcemetadata.md new file mode 100644 index 00000000..ae05f39b --- /dev/null +++ b/docs/models/getintegrationresourcemetadata.md @@ -0,0 +1,42 @@ +# GetIntegrationResourceMetadata + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `number` + +```typescript +const value: number = 1284.03; +``` + +### `boolean` + +```typescript +const value: boolean = true; +``` + +### `string[]` + +```typescript +const value: string[] = [ + "", + "", +]; +``` + +### `number[]` + +```typescript +const value: number[] = [ + 3390.48, + 1336.21, + 9437.99, +]; +``` + diff --git a/docs/models/getintegrationresourceresponsebody.md b/docs/models/getintegrationresourceresponsebody.md index d4f2a2a7..d92f02e5 100644 --- a/docs/models/getintegrationresourceresponsebody.md +++ b/docs/models/getintegrationresourceresponsebody.md @@ -25,4 +25,4 @@ let value: GetIntegrationResourceResponseBody = { | `protocolSettings` | [models.ProtocolSettings](../models/protocolsettings.md) | :heavy_minus_sign: | Any settings provided for the resource to support its product's protocols | | `notification` | [models.GetIntegrationResourceNotification](../models/getintegrationresourcenotification.md) | :heavy_minus_sign: | The notification, if set, displayed to the user when viewing the resource in Vercel | | `billingPlanId` | *string* | :heavy_minus_sign: | The ID of the billing plan the resource is subscribed to, if applicable | -| `metadata` | Record | :heavy_minus_sign: | The configured metadata for the resource as defined by its product's Metadata Schema | \ No newline at end of file +| `metadata` | Record | :heavy_minus_sign: | The configured metadata for the resource as defined by its product's Metadata Schema | \ No newline at end of file diff --git a/docs/models/getprojectsdeploymentexpiration.md b/docs/models/getprojectsdeploymentexpiration.md index 475dde62..4a0566c3 100644 --- a/docs/models/getprojectsdeploymentexpiration.md +++ b/docs/models/getprojectsdeploymentexpiration.md @@ -1,5 +1,7 @@ # GetProjectsDeploymentExpiration +Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + ## Example Usage ```typescript @@ -10,10 +12,10 @@ let value: GetProjectsDeploymentExpiration = {}; ## Fields -| Field | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `expirationDays` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysProduction` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysCanceled` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysErrored` | *number* | :heavy_minus_sign: | N/A | -| `deploymentsToKeep` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `expirationDays` | *number* | :heavy_minus_sign: | Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. | +| `expirationDaysProduction` | *number* | :heavy_minus_sign: | Number of days to keep production deployments before soft deletion. | +| `expirationDaysCanceled` | *number* | :heavy_minus_sign: | Number of days to keep canceled deployments before soft deletion. | +| `expirationDaysErrored` | *number* | :heavy_minus_sign: | Number of days to keep errored deployments before soft deletion. | +| `deploymentsToKeep` | *number* | :heavy_minus_sign: | Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. | \ No newline at end of file diff --git a/docs/models/getprojectsprojects.md b/docs/models/getprojectsprojects.md index c602c866..d17e9837 100644 --- a/docs/models/getprojectsprojects.md +++ b/docs/models/getprojectsprojects.md @@ -87,79 +87,79 @@ let value: GetProjectsProjects = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `accountId` | *string* | :heavy_check_mark: | N/A | -| `analytics` | [models.GetProjectsAnalytics](../models/getprojectsanalytics.md) | :heavy_minus_sign: | N/A | -| `speedInsights` | [models.GetProjectsSpeedInsights](../models/getprojectsspeedinsights.md) | :heavy_minus_sign: | N/A | -| `autoExposeSystemEnvs` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAssignCustomDomains` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAssignCustomDomainsUpdatedBy` | *string* | :heavy_minus_sign: | N/A | -| `buildCommand` | *string* | :heavy_minus_sign: | N/A | -| `commandForIgnoringBuildStep` | *string* | :heavy_minus_sign: | N/A | -| `connectConfigurations` | [models.GetProjectsConnectConfigurations](../models/getprojectsconnectconfigurations.md)[] | :heavy_minus_sign: | N/A | -| `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | -| `connectBuildsEnabled` | *boolean* | :heavy_minus_sign: | N/A | -| `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_minus_sign: | N/A | -| `customerSupportCodeVisibility` | *boolean* | :heavy_minus_sign: | N/A | -| `crons` | [models.GetProjectsCrons](../models/getprojectscrons.md) | :heavy_minus_sign: | N/A | -| `dataCache` | [models.GetProjectsDataCache](../models/getprojectsdatacache.md) | :heavy_minus_sign: | N/A | -| `deploymentExpiration` | [models.GetProjectsDeploymentExpiration](../models/getprojectsdeploymentexpiration.md) | :heavy_minus_sign: | N/A | -| `devCommand` | *string* | :heavy_minus_sign: | N/A | -| `directoryListing` | *boolean* | :heavy_check_mark: | N/A | -| `installCommand` | *string* | :heavy_minus_sign: | N/A | -| `env` | [models.GetProjectsEnv](../models/getprojectsenv.md)[] | :heavy_minus_sign: | N/A | -| `customEnvironments` | [models.GetProjectsCustomEnvironments](../models/getprojectscustomenvironments.md)[] | :heavy_minus_sign: | N/A | -| `framework` | [models.GetProjectsFramework](../models/getprojectsframework.md) | :heavy_minus_sign: | N/A | -| `gitForkProtection` | *boolean* | :heavy_minus_sign: | N/A | -| `gitLFS` | *boolean* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_check_mark: | N/A | -| `ipBuckets` | [models.GetProjectsIpBuckets](../models/getprojectsipbuckets.md)[] | :heavy_minus_sign: | N/A | -| `latestDeployments` | [models.GetProjectsLatestDeployments](../models/getprojectslatestdeployments.md)[] | :heavy_minus_sign: | N/A | -| `link` | *models.GetProjectsLink* | :heavy_minus_sign: | N/A | -| `microfrontends` | *models.GetProjectsMicrofrontends* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `nodeVersion` | [models.GetProjectsNodeVersion](../models/getprojectsnodeversion.md) | :heavy_check_mark: | N/A | -| `optionsAllowlist` | [models.GetProjectsOptionsAllowlist](../models/getprojectsoptionsallowlist.md) | :heavy_minus_sign: | N/A | -| `outputDirectory` | *string* | :heavy_minus_sign: | N/A | -| `passwordProtection` | [models.GetProjectsPasswordProtection](../models/getprojectspasswordprotection.md) | :heavy_minus_sign: | N/A | -| `productionDeploymentsFastLane` | *boolean* | :heavy_minus_sign: | N/A | -| `publicSource` | *boolean* | :heavy_minus_sign: | N/A | -| `resourceConfig` | [models.GetProjectsResourceConfig](../models/getprojectsresourceconfig.md) | :heavy_check_mark: | N/A | -| `rollbackDescription` | [models.GetProjectsRollbackDescription](../models/getprojectsrollbackdescription.md) | :heavy_minus_sign: | Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. | -| `rollingRelease` | [models.GetProjectsRollingRelease](../models/getprojectsrollingrelease.md) | :heavy_minus_sign: | Project-level rolling release configuration that defines how deployments should be gradually rolled out | -| `defaultResourceConfig` | [models.GetProjectsDefaultResourceConfig](../models/getprojectsdefaultresourceconfig.md) | :heavy_check_mark: | N/A | -| `rootDirectory` | *string* | :heavy_minus_sign: | N/A | -| `serverlessFunctionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | -| `skewProtectionBoundaryAt` | *number* | :heavy_minus_sign: | N/A | -| `skewProtectionMaxAge` | *number* | :heavy_minus_sign: | N/A | -| `skipGitConnectDuringLink` | *boolean* | :heavy_minus_sign: | N/A | -| `sourceFilesOutsideRootDirectory` | *boolean* | :heavy_minus_sign: | N/A | -| `enableAffectedProjectsDeployments` | *boolean* | :heavy_minus_sign: | N/A | -| `ssoProtection` | [models.GetProjectsSsoProtection](../models/getprojectsssoprotection.md) | :heavy_minus_sign: | N/A | -| `targets` | Record | :heavy_minus_sign: | N/A | -| `transferCompletedAt` | *number* | :heavy_minus_sign: | N/A | -| `transferStartedAt` | *number* | :heavy_minus_sign: | N/A | -| `transferToAccountId` | *string* | :heavy_minus_sign: | N/A | -| `transferredFromAccountId` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *number* | :heavy_minus_sign: | N/A | -| `live` | *boolean* | :heavy_minus_sign: | N/A | -| `enablePreviewFeedback` | *boolean* | :heavy_minus_sign: | N/A | -| `enableProductionFeedback` | *boolean* | :heavy_minus_sign: | N/A | -| `permissions` | [models.GetProjectsPermissions](../models/getprojectspermissions.md) | :heavy_minus_sign: | N/A | -| `lastRollbackTarget` | [models.GetProjectsLastRollbackTarget](../models/getprojectslastrollbacktarget.md) | :heavy_minus_sign: | N/A | -| `lastAliasRequest` | [models.GetProjectsLastAliasRequest](../models/getprojectslastaliasrequest.md) | :heavy_minus_sign: | N/A | -| `protectionBypass` | Record | :heavy_minus_sign: | N/A | -| `hasActiveBranches` | *boolean* | :heavy_minus_sign: | N/A | -| `trustedIps` | *models.GetProjectsTrustedIps* | :heavy_minus_sign: | N/A | -| `gitComments` | [models.GetProjectsGitComments](../models/getprojectsgitcomments.md) | :heavy_minus_sign: | N/A | -| `gitProviderOptions` | [models.GetProjectsGitProviderOptions](../models/getprojectsgitprovideroptions.md) | :heavy_minus_sign: | N/A | -| `paused` | *boolean* | :heavy_minus_sign: | N/A | -| `concurrencyBucketName` | *string* | :heavy_minus_sign: | N/A | -| `webAnalytics` | [models.GetProjectsWebAnalytics](../models/getprojectswebanalytics.md) | :heavy_minus_sign: | N/A | -| `security` | [models.GetProjectsSecurity](../models/getprojectssecurity.md) | :heavy_minus_sign: | N/A | -| `oidcTokenConfig` | [models.GetProjectsOidcTokenConfig](../models/getprojectsoidctokenconfig.md) | :heavy_minus_sign: | N/A | -| `tier` | [models.GetProjectsTier](../models/getprojectstier.md) | :heavy_minus_sign: | N/A | -| `features` | [models.GetProjectsFeatures](../models/getprojectsfeatures.md) | :heavy_minus_sign: | N/A | -| `v0` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accountId` | *string* | :heavy_check_mark: | N/A | +| `analytics` | [models.GetProjectsAnalytics](../models/getprojectsanalytics.md) | :heavy_minus_sign: | N/A | +| `speedInsights` | [models.GetProjectsSpeedInsights](../models/getprojectsspeedinsights.md) | :heavy_minus_sign: | N/A | +| `autoExposeSystemEnvs` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAssignCustomDomains` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAssignCustomDomainsUpdatedBy` | *string* | :heavy_minus_sign: | N/A | +| `buildCommand` | *string* | :heavy_minus_sign: | N/A | +| `commandForIgnoringBuildStep` | *string* | :heavy_minus_sign: | N/A | +| `connectConfigurations` | [models.GetProjectsConnectConfigurations](../models/getprojectsconnectconfigurations.md)[] | :heavy_minus_sign: | N/A | +| `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | +| `connectBuildsEnabled` | *boolean* | :heavy_minus_sign: | N/A | +| `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_minus_sign: | N/A | +| `customerSupportCodeVisibility` | *boolean* | :heavy_minus_sign: | N/A | +| `crons` | [models.GetProjectsCrons](../models/getprojectscrons.md) | :heavy_minus_sign: | N/A | +| `dataCache` | [models.GetProjectsDataCache](../models/getprojectsdatacache.md) | :heavy_minus_sign: | N/A | +| `deploymentExpiration` | [models.GetProjectsDeploymentExpiration](../models/getprojectsdeploymentexpiration.md) | :heavy_minus_sign: | Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. | +| `devCommand` | *string* | :heavy_minus_sign: | N/A | +| `directoryListing` | *boolean* | :heavy_check_mark: | N/A | +| `installCommand` | *string* | :heavy_minus_sign: | N/A | +| `env` | [models.GetProjectsEnv](../models/getprojectsenv.md)[] | :heavy_minus_sign: | N/A | +| `customEnvironments` | [models.GetProjectsCustomEnvironments](../models/getprojectscustomenvironments.md)[] | :heavy_minus_sign: | N/A | +| `framework` | [models.GetProjectsFramework](../models/getprojectsframework.md) | :heavy_minus_sign: | N/A | +| `gitForkProtection` | *boolean* | :heavy_minus_sign: | N/A | +| `gitLFS` | *boolean* | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `ipBuckets` | [models.GetProjectsIpBuckets](../models/getprojectsipbuckets.md)[] | :heavy_minus_sign: | N/A | +| `latestDeployments` | [models.GetProjectsLatestDeployments](../models/getprojectslatestdeployments.md)[] | :heavy_minus_sign: | N/A | +| `link` | *models.GetProjectsLink* | :heavy_minus_sign: | N/A | +| `microfrontends` | *models.GetProjectsMicrofrontends* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `nodeVersion` | [models.GetProjectsNodeVersion](../models/getprojectsnodeversion.md) | :heavy_check_mark: | N/A | +| `optionsAllowlist` | [models.GetProjectsOptionsAllowlist](../models/getprojectsoptionsallowlist.md) | :heavy_minus_sign: | N/A | +| `outputDirectory` | *string* | :heavy_minus_sign: | N/A | +| `passwordProtection` | [models.GetProjectsPasswordProtection](../models/getprojectspasswordprotection.md) | :heavy_minus_sign: | N/A | +| `productionDeploymentsFastLane` | *boolean* | :heavy_minus_sign: | N/A | +| `publicSource` | *boolean* | :heavy_minus_sign: | N/A | +| `resourceConfig` | [models.GetProjectsResourceConfig](../models/getprojectsresourceconfig.md) | :heavy_check_mark: | N/A | +| `rollbackDescription` | [models.GetProjectsRollbackDescription](../models/getprojectsrollbackdescription.md) | :heavy_minus_sign: | Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. | +| `rollingRelease` | [models.GetProjectsRollingRelease](../models/getprojectsrollingrelease.md) | :heavy_minus_sign: | Project-level rolling release configuration that defines how deployments should be gradually rolled out | +| `defaultResourceConfig` | [models.GetProjectsDefaultResourceConfig](../models/getprojectsdefaultresourceconfig.md) | :heavy_check_mark: | N/A | +| `rootDirectory` | *string* | :heavy_minus_sign: | N/A | +| `serverlessFunctionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | +| `skewProtectionBoundaryAt` | *number* | :heavy_minus_sign: | N/A | +| `skewProtectionMaxAge` | *number* | :heavy_minus_sign: | N/A | +| `skipGitConnectDuringLink` | *boolean* | :heavy_minus_sign: | N/A | +| `sourceFilesOutsideRootDirectory` | *boolean* | :heavy_minus_sign: | N/A | +| `enableAffectedProjectsDeployments` | *boolean* | :heavy_minus_sign: | N/A | +| `ssoProtection` | [models.GetProjectsSsoProtection](../models/getprojectsssoprotection.md) | :heavy_minus_sign: | N/A | +| `targets` | Record | :heavy_minus_sign: | N/A | +| `transferCompletedAt` | *number* | :heavy_minus_sign: | N/A | +| `transferStartedAt` | *number* | :heavy_minus_sign: | N/A | +| `transferToAccountId` | *string* | :heavy_minus_sign: | N/A | +| `transferredFromAccountId` | *string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *number* | :heavy_minus_sign: | N/A | +| `live` | *boolean* | :heavy_minus_sign: | N/A | +| `enablePreviewFeedback` | *boolean* | :heavy_minus_sign: | N/A | +| `enableProductionFeedback` | *boolean* | :heavy_minus_sign: | N/A | +| `permissions` | [models.GetProjectsPermissions](../models/getprojectspermissions.md) | :heavy_minus_sign: | N/A | +| `lastRollbackTarget` | [models.GetProjectsLastRollbackTarget](../models/getprojectslastrollbacktarget.md) | :heavy_minus_sign: | N/A | +| `lastAliasRequest` | [models.GetProjectsLastAliasRequest](../models/getprojectslastaliasrequest.md) | :heavy_minus_sign: | N/A | +| `protectionBypass` | Record | :heavy_minus_sign: | N/A | +| `hasActiveBranches` | *boolean* | :heavy_minus_sign: | N/A | +| `trustedIps` | *models.GetProjectsTrustedIps* | :heavy_minus_sign: | N/A | +| `gitComments` | [models.GetProjectsGitComments](../models/getprojectsgitcomments.md) | :heavy_minus_sign: | N/A | +| `gitProviderOptions` | [models.GetProjectsGitProviderOptions](../models/getprojectsgitprovideroptions.md) | :heavy_minus_sign: | N/A | +| `paused` | *boolean* | :heavy_minus_sign: | N/A | +| `concurrencyBucketName` | *string* | :heavy_minus_sign: | N/A | +| `webAnalytics` | [models.GetProjectsWebAnalytics](../models/getprojectswebanalytics.md) | :heavy_minus_sign: | N/A | +| `security` | [models.GetProjectsSecurity](../models/getprojectssecurity.md) | :heavy_minus_sign: | N/A | +| `oidcTokenConfig` | [models.GetProjectsOidcTokenConfig](../models/getprojectsoidctokenconfig.md) | :heavy_minus_sign: | N/A | +| `tier` | [models.GetProjectsTier](../models/getprojectstier.md) | :heavy_minus_sign: | N/A | +| `features` | [models.GetProjectsFeatures](../models/getprojectsfeatures.md) | :heavy_minus_sign: | N/A | +| `v0` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getprojectsrequest.md b/docs/models/getprojectsrequest.md index a7fa0bfc..c450c3db 100644 --- a/docs/models/getprojectsrequest.md +++ b/docs/models/getprojectsrequest.md @@ -9,6 +9,7 @@ let value: GetProjectsRequest = { gitForkProtection: "1", repoUrl: "https://github.com/vercel/next.js", elasticConcurrencyEnabled: "1", + sortByElasticConcurrency: "desc", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }; @@ -30,5 +31,6 @@ let value: GetProjectsRequest = { | `edgeConfigTokenId` | *string* | :heavy_minus_sign: | Filter results by connected Edge Config Token ID | | | `deprecated` | *boolean* | :heavy_minus_sign: | N/A | | | `elasticConcurrencyEnabled` | [models.ElasticConcurrencyEnabled](../models/elasticconcurrencyenabled.md) | :heavy_minus_sign: | Filter results by projects with elastic concurrency enabled | 1 | +| `sortByElasticConcurrency` | [models.SortByElasticConcurrency](../models/sortbyelasticconcurrency.md) | :heavy_minus_sign: | Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first | desc | | `teamId` | *string* | :heavy_minus_sign: | The Team identifier to perform the request on behalf of. | team_1a2b3c4d5e6f7g8h9i0j1k2l | | `slug` | *string* | :heavy_minus_sign: | The Team slug to perform the request on behalf of. | my-team-url-slug | \ No newline at end of file diff --git a/docs/models/getteammembersorigin.md b/docs/models/getteammembersorigin.md index f4aa6bff..62c427b1 100644 --- a/docs/models/getteammembersorigin.md +++ b/docs/models/getteammembersorigin.md @@ -11,5 +11,5 @@ let value: GetTeamMembersOrigin = "teams"; ## Values ```typescript -"teams" | "link" | "saml" | "github" | "gitlab" | "bitbucket" | "mail" | "import" | "dsync" | "feedback" | "organization-teams" +"teams" | "link" | "mail" | "import" | "github" | "gitlab" | "bitbucket" | "saml" | "dsync" | "feedback" | "organization-teams" ``` \ No newline at end of file diff --git a/docs/models/getteammembersteampermissions.md b/docs/models/getteammembersteampermissions.md new file mode 100644 index 00000000..fd5715b0 --- /dev/null +++ b/docs/models/getteammembersteampermissions.md @@ -0,0 +1,15 @@ +# GetTeamMembersTeamPermissions + +## Example Usage + +```typescript +import { GetTeamMembersTeamPermissions } from "@vercel/sdk/models/getteammembersop.js"; + +let value: GetTeamMembersTeamPermissions = "UsageViewer"; +``` + +## Values + +```typescript +"IntegrationManager" | "CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" +``` \ No newline at end of file diff --git a/docs/models/getteammembersteamroles.md b/docs/models/getteammembersteamroles.md new file mode 100644 index 00000000..9eb3d214 --- /dev/null +++ b/docs/models/getteammembersteamroles.md @@ -0,0 +1,15 @@ +# GetTeamMembersTeamRoles + +## Example Usage + +```typescript +import { GetTeamMembersTeamRoles } from "@vercel/sdk/models/getteammembersop.js"; + +let value: GetTeamMembersTeamRoles = "DEVELOPER"; +``` + +## Values + +```typescript +"OWNER" | "MEMBER" | "DEVELOPER" | "VIEWER" | "BILLING" | "CONTRIBUTOR" | "SECURITY" | "VIEWER_FOR_PLUS" +``` \ No newline at end of file diff --git a/docs/models/getteamsteams.md b/docs/models/getteamsteams.md index afc03841..24d39be0 100644 --- a/docs/models/getteamsteams.md +++ b/docs/models/getteamsteams.md @@ -30,6 +30,7 @@ const value: models.Team = { description: "Our mission is to make cloud computing accessible to everyone.", stagingPrefix: "", previewDeploymentSuffix: "example.dev", + platform: true, id: "team_nllPyCtREAqxxdyFKbbMDlxd", slug: "my-team", name: "My Team", diff --git a/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansdetails.md b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansdetails.md new file mode 100644 index 00000000..338cc123 --- /dev/null +++ b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansdetails.md @@ -0,0 +1,22 @@ +# GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails + +## Example Usage + +```typescript +import { + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails, +} from "@vercel/sdk/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; + +let value: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails = + { + label: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `label` | *string* | :heavy_check_mark: | N/A | +| `value` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansrequest.md b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansrequest.md new file mode 100644 index 00000000..e7d63d8a --- /dev/null +++ b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansrequest.md @@ -0,0 +1,24 @@ +# GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest + +## Example Usage + +```typescript +import { + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, +} from "@vercel/sdk/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; + +let value: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest = + { + integrationIdOrSlug: "", + productIdOrSlug: "", + }; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `integrationIdOrSlug` | *string* | :heavy_check_mark: | N/A | +| `productIdOrSlug` | *string* | :heavy_check_mark: | N/A | +| `metadata` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansresponsebody.md b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansresponsebody.md new file mode 100644 index 00000000..8bb5e1a8 --- /dev/null +++ b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansresponsebody.md @@ -0,0 +1,30 @@ +# GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody + +## Example Usage + +```typescript +import { + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, +} from "@vercel/sdk/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; + +let value: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody = + { + plans: [ + { + type: "subscription", + id: "", + name: "", + scope: "installation", + description: "delightfully buzzing opposite carefully", + paymentMethodRequired: true, + }, + ], + }; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `plans` | [models.Plans](../models/plans.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansscope.md b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansscope.md new file mode 100644 index 00000000..44493772 --- /dev/null +++ b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansscope.md @@ -0,0 +1,17 @@ +# GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope + +## Example Usage + +```typescript +import { GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope } from "@vercel/sdk/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; + +let value: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope = + "installation"; +``` + +## Values + +```typescript +"installation" | "resource" +``` \ No newline at end of file diff --git a/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplanstype.md b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplanstype.md new file mode 100644 index 00000000..7cdf1563 --- /dev/null +++ b/docs/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplanstype.md @@ -0,0 +1,17 @@ +# GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType + +## Example Usage + +```typescript +import { GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType } from "@vercel/sdk/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; + +let value: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType = + "prepayment"; +``` + +## Values + +```typescript +"prepayment" | "subscription" +``` \ No newline at end of file diff --git a/docs/models/getwebhookevents.md b/docs/models/getwebhookevents.md index f7a8ed50..45f1478e 100644 --- a/docs/models/getwebhookevents.md +++ b/docs/models/getwebhookevents.md @@ -13,5 +13,5 @@ let value: GetWebhookEvents = "deployment.created"; ## Values ```typescript -"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "test-webhook" +"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.cleanup" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "observability.anomaly-error" | "test-webhook" ``` \ No newline at end of file diff --git a/docs/models/getwebhooksresponsebody1.md b/docs/models/getwebhooksresponsebody1.md index 45475b89..2add5753 100644 --- a/docs/models/getwebhooksresponsebody1.md +++ b/docs/models/getwebhooksresponsebody1.md @@ -23,13 +23,13 @@ let value: GetWebhooksResponseBody1 = { ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `projectsMetadata` | [models.ProjectsMetadata](../models/projectsmetadata.md)[] | :heavy_check_mark: | N/A | | -| `events` | [models.ResponseBodyEvents](../models/responsebodyevents.md)[] | :heavy_check_mark: | The webhooks events | deployment.created | -| `id` | *string* | :heavy_check_mark: | The webhook id | account_hook_GflD6EYyo7F4ViYS | -| `url` | *string* | :heavy_check_mark: | A string with the URL of the webhook | https://my-webhook.com | -| `ownerId` | *string* | :heavy_check_mark: | The unique ID of the team the webhook belongs to | ZspSRT4ljIEEmMHgoDwKWDei | -| `createdAt` | *number* | :heavy_check_mark: | A number containing the date when the webhook was created in in milliseconds | 1567024758130 | -| `updatedAt` | *number* | :heavy_check_mark: | A number containing the date when the webhook was updated in in milliseconds | 1567024758130 | -| `projectIds` | *string*[] | :heavy_minus_sign: | The ID of the projects the webhook is associated with | [
"prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `projectsMetadata` | [models.ResponseBodyProjectsMetadata](../models/responsebodyprojectsmetadata.md)[] | :heavy_check_mark: | N/A | | +| `events` | [models.ResponseBodyEvents](../models/responsebodyevents.md)[] | :heavy_check_mark: | The webhooks events | deployment.created | +| `id` | *string* | :heavy_check_mark: | The webhook id | account_hook_GflD6EYyo7F4ViYS | +| `url` | *string* | :heavy_check_mark: | A string with the URL of the webhook | https://my-webhook.com | +| `ownerId` | *string* | :heavy_check_mark: | The unique ID of the team the webhook belongs to | ZspSRT4ljIEEmMHgoDwKWDei | +| `createdAt` | *number* | :heavy_check_mark: | A number containing the date when the webhook was created in in milliseconds | 1567024758130 | +| `updatedAt` | *number* | :heavy_check_mark: | A number containing the date when the webhook was updated in in milliseconds | 1567024758130 | +| `projectIds` | *string*[] | :heavy_minus_sign: | The ID of the projects the webhook is associated with | [
"prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
] | \ No newline at end of file diff --git a/docs/models/getwebhooksresponsebodyevents.md b/docs/models/getwebhooksresponsebodyevents.md index 19152d7a..63a1872b 100644 --- a/docs/models/getwebhooksresponsebodyevents.md +++ b/docs/models/getwebhooksresponsebodyevents.md @@ -13,5 +13,5 @@ let value: GetWebhooksResponseBodyEvents = "deployment.created"; ## Values ```typescript -"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "test-webhook" +"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.cleanup" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "observability.anomaly-error" | "test-webhook" ``` \ No newline at end of file diff --git a/docs/models/gitrepo.md b/docs/models/gitrepo.md index cea04c63..d6e47fa2 100644 --- a/docs/models/gitrepo.md +++ b/docs/models/gitrepo.md @@ -15,7 +15,7 @@ const value: models.GitRepo1 = { defaultBranch: "", name: "", private: false, - ownerType: "team", + ownerType: "user", }; ``` @@ -32,7 +32,7 @@ const value: models.GitRepo2 = { defaultBranch: "", name: "", private: true, - ownerType: "user", + ownerType: "team", }; ``` @@ -49,7 +49,7 @@ const value: models.GitRepo3 = { defaultBranch: "", name: "", private: false, - ownerType: "user", + ownerType: "team", }; ``` diff --git a/docs/models/gitrepo1.md b/docs/models/gitrepo1.md index f9ee40a2..0e82bc77 100644 --- a/docs/models/gitrepo1.md +++ b/docs/models/gitrepo1.md @@ -14,7 +14,7 @@ let value: GitRepo1 = { defaultBranch: "", name: "", private: false, - ownerType: "team", + ownerType: "user", }; ``` diff --git a/docs/models/gitrepo2.md b/docs/models/gitrepo2.md index 236a317e..50808b03 100644 --- a/docs/models/gitrepo2.md +++ b/docs/models/gitrepo2.md @@ -15,7 +15,7 @@ let value: GitRepo2 = { defaultBranch: "", name: "", private: true, - ownerType: "user", + ownerType: "team", }; ``` diff --git a/docs/models/gitrepo3.md b/docs/models/gitrepo3.md index 90c59f1c..3e77255d 100644 --- a/docs/models/gitrepo3.md +++ b/docs/models/gitrepo3.md @@ -15,7 +15,7 @@ let value: GitRepo3 = { defaultBranch: "", name: "", private: false, - ownerType: "user", + ownerType: "team", }; ``` diff --git a/docs/models/gitrepoownertype.md b/docs/models/gitrepoownertype.md index 1c51740e..807fbdea 100644 --- a/docs/models/gitrepoownertype.md +++ b/docs/models/gitrepoownertype.md @@ -5,11 +5,11 @@ ```typescript import { GitRepoOwnerType } from "@vercel/sdk/models/createdeploymentop.js"; -let value: GitRepoOwnerType = "user"; +let value: GitRepoOwnerType = "team"; ``` ## Values ```typescript -"user" | "team" +"team" | "user" ``` \ No newline at end of file diff --git a/docs/models/guides.md b/docs/models/guides.md new file mode 100644 index 00000000..3ca728b0 --- /dev/null +++ b/docs/models/guides.md @@ -0,0 +1,21 @@ +# Guides + +## Example Usage + +```typescript +import { Guides } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: Guides = { + framework: "", + title: "", + steps: [], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `framework` | *string* | :heavy_check_mark: | N/A | +| `title` | *string* | :heavy_check_mark: | N/A | +| `steps` | [models.Steps](../models/steps.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/handle.md b/docs/models/handle.md index 8a5e9fa4..5b3421d7 100644 --- a/docs/models/handle.md +++ b/docs/models/handle.md @@ -5,11 +5,11 @@ ```typescript import { Handle } from "@vercel/sdk/models/createdeploymentop.js"; -let value: Handle = "rewrite"; +let value: Handle = "resource"; ``` ## Values ```typescript -"filesystem" | "error" | "hit" | "miss" | "resource" | "rewrite" +"error" | "filesystem" | "hit" | "miss" | "rewrite" | "resource" ``` \ No newline at end of file diff --git a/docs/models/hidden2.md b/docs/models/hidden2.md index 1d2dadcb..3769c1f5 100644 --- a/docs/models/hidden2.md +++ b/docs/models/hidden2.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Hidden2 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { Hidden2 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; let value: Hidden2 = { expr: "", diff --git a/docs/models/hidden3.md b/docs/models/hidden3.md index f02bc685..1c9ed22b 100644 --- a/docs/models/hidden3.md +++ b/docs/models/hidden3.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Hidden3 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { Hidden3 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; let value: Hidden3 = "update"; ``` diff --git a/docs/models/highlighteddetails.md b/docs/models/highlighteddetails.md new file mode 100644 index 00000000..5197bcfe --- /dev/null +++ b/docs/models/highlighteddetails.md @@ -0,0 +1,18 @@ +# HighlightedDetails + +## Example Usage + +```typescript +import { HighlightedDetails } from "@vercel/sdk/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; + +let value: HighlightedDetails = { + label: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `label` | *string* | :heavy_check_mark: | N/A | +| `value` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/importflowgitprovider.md b/docs/models/importflowgitprovider.md index c9020e35..d6b4a817 100644 --- a/docs/models/importflowgitprovider.md +++ b/docs/models/importflowgitprovider.md @@ -11,5 +11,5 @@ let value: ImportFlowGitProvider = "github-limited"; ## Values ```typescript -"github" | "gitlab" | "bitbucket" | "github-limited" | "github-custom-host" +"gitlab" | "bitbucket" | "github" | "github-limited" | "github-custom-host" ``` \ No newline at end of file diff --git a/docs/models/integrations.md b/docs/models/integrations.md index ec080d8c..699f24c5 100644 --- a/docs/models/integrations.md +++ b/docs/models/integrations.md @@ -6,7 +6,7 @@ import { Integrations } from "@vercel/sdk/models/createdeploymentop.js"; let value: Integrations = { - status: "ready", + status: "timeout", startedAt: 2472.7, }; ``` diff --git a/docs/models/inviteusertoteamteampermissions.md b/docs/models/inviteusertoteamteampermissions.md index 69720243..500ace07 100644 --- a/docs/models/inviteusertoteamteampermissions.md +++ b/docs/models/inviteusertoteamteampermissions.md @@ -13,5 +13,5 @@ let value: InviteUserToTeamTeamPermissions = "CreateProject"; ## Values ```typescript -"CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" +"IntegrationManager" | "CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" ``` \ No newline at end of file diff --git a/docs/models/listusereventsresponsebody.md b/docs/models/listusereventsresponsebody.md index 63baa0bc..d79b35cd 100644 --- a/docs/models/listusereventsresponsebody.md +++ b/docs/models/listusereventsresponsebody.md @@ -22,9 +22,7 @@ let value: ListUserEventsResponseBody = { createdAt: 1632859321020, userId: "zTuNVUXEAvvnNN3IaqinkyMw", principalId: "", - payload: { - id: "", - }, + payload: {}, }, ], }; diff --git a/docs/models/maxlength.md b/docs/models/maxlength.md index d7fb6298..0ba7857e 100644 --- a/docs/models/maxlength.md +++ b/docs/models/maxlength.md @@ -6,7 +6,7 @@ import { MaxLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: MaxLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: MaxLength = { | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.PropertiesAtBRANDAt447943](../models/propertiesatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.PropertiesAtBRANDAt502540](../models/propertiesatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/mfeconfiguploadstate.md b/docs/models/mfeconfiguploadstate.md new file mode 100644 index 00000000..5392d3af --- /dev/null +++ b/docs/models/mfeconfiguploadstate.md @@ -0,0 +1,17 @@ +# MfeConfigUploadState + +The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + +## Example Usage + +```typescript +import { MfeConfigUploadState } from "@vercel/sdk/models/createdeploymentop.js"; + +let value: MfeConfigUploadState = "error"; +``` + +## Values + +```typescript +"error" | "success" | "no_config" +``` \ No newline at end of file diff --git a/docs/models/microfrontendsapplications.md b/docs/models/microfrontendsapplications.md index 2b30f7a9..630680ac 100644 --- a/docs/models/microfrontendsapplications.md +++ b/docs/models/microfrontendsapplications.md @@ -1,6 +1,6 @@ # MicrofrontendsApplications -A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. +A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. ## Example Usage diff --git a/docs/models/microfrontendsmfeconfiguploadstate.md b/docs/models/microfrontendsmfeconfiguploadstate.md new file mode 100644 index 00000000..3207d18a --- /dev/null +++ b/docs/models/microfrontendsmfeconfiguploadstate.md @@ -0,0 +1,17 @@ +# MicrofrontendsMfeConfigUploadState + +The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + +## Example Usage + +```typescript +import { MicrofrontendsMfeConfigUploadState } from "@vercel/sdk/models/canceldeploymentop.js"; + +let value: MicrofrontendsMfeConfigUploadState = "error"; +``` + +## Values + +```typescript +"error" | "success" | "no_config" +``` \ No newline at end of file diff --git a/docs/models/minlength.md b/docs/models/minlength.md index 87be4f74..3359f929 100644 --- a/docs/models/minlength.md +++ b/docs/models/minlength.md @@ -6,7 +6,7 @@ import { MinLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: MinLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: MinLength = { | Field | Type | Required | Description | | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `atBRANDAt447943` | [models.AtBRANDAt447943](../models/atbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.AtBRANDAt502540](../models/atbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfifty.md b/docs/models/onehundredandfifty.md index f4c68aba..ca3bf89d 100644 --- a/docs/models/onehundredandfifty.md +++ b/docs/models/onehundredandfifty.md @@ -8,14 +8,12 @@ The payload of the event, if requested. import { OneHundredAndFifty } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFifty = { - oldName: "", - newName: "", + tier: "pro", }; ``` ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `oldName` | *string* | :heavy_check_mark: | N/A | -| `newName` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `tier` | [models.Tier](../models/tier.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftyeight.md b/docs/models/onehundredandfiftyeight.md index 3fc5a704..044ac90e 100644 --- a/docs/models/onehundredandfiftyeight.md +++ b/docs/models/onehundredandfiftyeight.md @@ -8,21 +8,26 @@ The payload of the event, if requested. import { OneHundredAndFiftyEight } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFiftyEight = { - grantType: "authorization_code", - appName: "", - atTTL: 4957.29, - scope: "", - authMethod: "gitlab", + team: { + id: "", + name: "", + }, + configuration: { + id: "", + }, + peering: { + id: "", + accountId: "", + region: "", + vpcId: "", + }, }; ``` ## Fields -| Field | Type | Required | Description | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| `grantType` | [models.GrantType](../models/granttype.md) | :heavy_check_mark: | N/A | -| `appName` | *string* | :heavy_check_mark: | N/A | -| `atTTL` | *number* | :heavy_check_mark: | access_token TTL | -| `rtTTL` | *number* | :heavy_minus_sign: | refresh_token TTL | -| `scope` | *string* | :heavy_check_mark: | N/A | -| `authMethod` | [models.AuthMethod](../models/authmethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `team` | [models.UserEventPayload158Team](../models/usereventpayload158team.md) | :heavy_check_mark: | N/A | +| `configuration` | [models.UserEventPayload158Configuration](../models/usereventpayload158configuration.md) | :heavy_check_mark: | N/A | +| `peering` | [models.Peering](../models/peering.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftyfive.md b/docs/models/onehundredandfiftyfive.md index ffd51511..03c2e71a 100644 --- a/docs/models/onehundredandfiftyfive.md +++ b/docs/models/onehundredandfiftyfive.md @@ -8,26 +8,14 @@ The payload of the event, if requested. import { OneHundredAndFiftyFive } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFiftyFive = { - team: { - id: "", - name: "", - }, - configuration: { - id: "", - }, - peering: { - id: "", - accountId: "", - region: "", - vpcId: "", - }, + appName: "", + appId: "", }; ``` ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `team` | [models.UserEventPayload155Team](../models/usereventpayload155team.md) | :heavy_check_mark: | N/A | -| `configuration` | [models.UserEventPayload155Configuration](../models/usereventpayload155configuration.md) | :heavy_check_mark: | N/A | -| `peering` | [models.Peering](../models/peering.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `appName` | *string* | :heavy_check_mark: | N/A | +| `appId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftyfour.md b/docs/models/onehundredandfiftyfour.md index b41f3ee5..05d4063a 100644 --- a/docs/models/onehundredandfiftyfour.md +++ b/docs/models/onehundredandfiftyfour.md @@ -9,7 +9,6 @@ import { OneHundredAndFiftyFour } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFiftyFour = { appName: "", - appId: "", }; ``` @@ -17,5 +16,4 @@ let value: OneHundredAndFiftyFour = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `appName` | *string* | :heavy_check_mark: | N/A | -| `appId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `appName` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftynine.md b/docs/models/onehundredandfiftynine.md new file mode 100644 index 00000000..7ef18a28 --- /dev/null +++ b/docs/models/onehundredandfiftynine.md @@ -0,0 +1,30 @@ +# OneHundredAndFiftyNine + +The payload of the event, if requested. + +## Example Usage + +```typescript +import { OneHundredAndFiftyNine } from "@vercel/sdk/models/userevent.js"; + +let value: OneHundredAndFiftyNine = { + team: { + id: "", + name: "", + }, + configuration: { + id: "", + }, + peering: { + id: "", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `team` | [models.UserEventPayload159Team](../models/usereventpayload159team.md) | :heavy_check_mark: | N/A | +| `configuration` | [models.UserEventPayload159Configuration](../models/usereventpayload159configuration.md) | :heavy_check_mark: | N/A | +| `peering` | [models.PayloadPeering](../models/payloadpeering.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftyone.md b/docs/models/onehundredandfiftyone.md index 394a3108..15db40b3 100644 --- a/docs/models/onehundredandfiftyone.md +++ b/docs/models/onehundredandfiftyone.md @@ -8,12 +8,8 @@ The payload of the event, if requested. import { OneHundredAndFiftyOne } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFiftyOne = { - appName: "", - scopes: [ - "", - "", - "", - ], + oldName: "", + newName: "", }; ``` @@ -21,5 +17,5 @@ let value: OneHundredAndFiftyOne = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `appName` | *string* | :heavy_check_mark: | N/A | -| `scopes` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| `oldName` | *string* | :heavy_check_mark: | N/A | +| `newName` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftyseven.md b/docs/models/onehundredandfiftyseven.md index 4bee4761..a3bdb50f 100644 --- a/docs/models/onehundredandfiftyseven.md +++ b/docs/models/onehundredandfiftyseven.md @@ -8,24 +8,14 @@ The payload of the event, if requested. import { OneHundredAndFiftySeven } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFiftySeven = { - team: { - id: "", - name: "", - }, - configuration: { - id: "", - }, - peering: { - id: "", - }, + appName: "", }; ``` ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `team` | [models.UserEventPayload157Team](../models/usereventpayload157team.md) | :heavy_check_mark: | N/A | -| `configuration` | [models.UserEventPayload157Configuration](../models/usereventpayload157configuration.md) | :heavy_check_mark: | N/A | -| `peering` | [models.UserEventPayloadPeering](../models/usereventpayloadpeering.md) | :heavy_check_mark: | N/A | -| `newName` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `appName` | *string* | :heavy_check_mark: | N/A | +| `appId` | *string* | :heavy_minus_sign: | N/A | +| `installationId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftysix.md b/docs/models/onehundredandfiftysix.md index 2e9b895e..40f17e03 100644 --- a/docs/models/onehundredandfiftysix.md +++ b/docs/models/onehundredandfiftysix.md @@ -8,23 +8,13 @@ The payload of the event, if requested. import { OneHundredAndFiftySix } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFiftySix = { - team: { - id: "", - name: "", - }, - configuration: { - id: "", - }, - peering: { - id: "", - }, + appName: "", }; ``` ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `team` | [models.UserEventPayload156Team](../models/usereventpayload156team.md) | :heavy_check_mark: | N/A | -| `configuration` | [models.UserEventPayload156Configuration](../models/usereventpayload156configuration.md) | :heavy_check_mark: | N/A | -| `peering` | [models.PayloadPeering](../models/payloadpeering.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `appName` | *string* | :heavy_check_mark: | N/A | +| `appId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftythree.md b/docs/models/onehundredandfiftythree.md index 538c8636..321abedf 100644 --- a/docs/models/onehundredandfiftythree.md +++ b/docs/models/onehundredandfiftythree.md @@ -9,6 +9,9 @@ import { OneHundredAndFiftyThree } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFiftyThree = { appName: "", + nextScopes: [ + "", + ], }; ``` @@ -16,4 +19,5 @@ let value: OneHundredAndFiftyThree = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `appName` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `appName` | *string* | :heavy_check_mark: | N/A | +| `nextScopes` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfiftytwo.md b/docs/models/onehundredandfiftytwo.md index c9e43bed..76fc2528 100644 --- a/docs/models/onehundredandfiftytwo.md +++ b/docs/models/onehundredandfiftytwo.md @@ -9,7 +9,7 @@ import { OneHundredAndFiftyTwo } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFiftyTwo = { appName: "", - nextScopes: [ + scopes: [ "", "", ], @@ -21,4 +21,4 @@ let value: OneHundredAndFiftyTwo = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `appName` | *string* | :heavy_check_mark: | N/A | -| `nextScopes` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| `scopes` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandforty.md b/docs/models/onehundredandforty.md index 9ef550c7..6968f81a 100644 --- a/docs/models/onehundredandforty.md +++ b/docs/models/onehundredandforty.md @@ -8,9 +8,11 @@ The payload of the event, if requested. import { OneHundredAndForty } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndForty = { - edgeConfigId: "", - edgeConfigSlug: "", - edgeConfigDigest: "", + projectName: "", + urls: [ + "", + "", + ], }; ``` @@ -18,6 +20,5 @@ let value: OneHundredAndForty = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `edgeConfigId` | *string* | :heavy_check_mark: | N/A | -| `edgeConfigSlug` | *string* | :heavy_check_mark: | N/A | -| `edgeConfigDigest` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `projectName` | *string* | :heavy_check_mark: | N/A | +| `urls` | *string*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfortyeight.md b/docs/models/onehundredandfortyeight.md index ac79fa97..3ded602a 100644 --- a/docs/models/onehundredandfortyeight.md +++ b/docs/models/onehundredandfortyeight.md @@ -8,16 +8,25 @@ The payload of the event, if requested. import { OneHundredAndFortyEight } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFortyEight = { - projectId: "", - projectName: "", + project: { + id: "", + name: "", + }, + prev: { + project: {}, + }, + group: { + id: "", + slug: "", + name: "", + }, }; ``` ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `projectId` | *string* | :heavy_check_mark: | N/A | -| `projectName` | *string* | :heavy_check_mark: | N/A | -| `projectWebAnalytics` | [models.ProjectWebAnalytics](../models/projectwebanalytics.md) | :heavy_minus_sign: | N/A | -| `prevProjectWebAnalytics` | [models.PrevProjectWebAnalytics](../models/prevprojectwebanalytics.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `project` | [models.UserEventPayload148Project](../models/usereventpayload148project.md) | :heavy_check_mark: | N/A | +| `prev` | [models.PayloadPrev](../models/payloadprev.md) | :heavy_check_mark: | N/A | +| `group` | [models.PayloadGroup](../models/payloadgroup.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfortyfive.md b/docs/models/onehundredandfortyfive.md index c754d22f..d6d06c84 100644 --- a/docs/models/onehundredandfortyfive.md +++ b/docs/models/onehundredandfortyfive.md @@ -9,20 +9,15 @@ import { OneHundredAndFortyFive } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFortyFive = { id: "", - prev: { - name: "", - slug: "", - fallbackEnvironment: "", - }, + slug: "", + name: "", }; ``` ## Fields -| Field | Type | Required | Description | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | -| `slug` | *string* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `fallbackEnvironment` | *string* | :heavy_minus_sign: | N/A | -| `prev` | [models.Prev](../models/prev.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *string* | :heavy_check_mark: | N/A | +| `slug` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfortyfour.md b/docs/models/onehundredandfortyfour.md index b4ec6fe7..5ad2d23a 100644 --- a/docs/models/onehundredandfortyfour.md +++ b/docs/models/onehundredandfortyfour.md @@ -8,16 +8,12 @@ The payload of the event, if requested. import { OneHundredAndFortyFour } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFortyFour = { - id: "", - slug: "", - name: "", + action: "enable", }; ``` ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | -| `slug` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `action` | [models.UserEventPayload144Action](../models/usereventpayload144action.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfortynine.md b/docs/models/onehundredandfortynine.md index bd710c85..6118f3f2 100644 --- a/docs/models/onehundredandfortynine.md +++ b/docs/models/onehundredandfortynine.md @@ -8,12 +8,16 @@ The payload of the event, if requested. import { OneHundredAndFortyNine } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFortyNine = { - tier: "pro", + projectId: "", + projectName: "", }; ``` ## Fields -| Field | Type | Required | Description | -| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -| `tier` | [models.Tier](../models/tier.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `projectId` | *string* | :heavy_check_mark: | N/A | +| `projectName` | *string* | :heavy_check_mark: | N/A | +| `projectWebAnalytics` | [models.ProjectWebAnalytics](../models/projectwebanalytics.md) | :heavy_minus_sign: | N/A | +| `prevProjectWebAnalytics` | [models.PrevProjectWebAnalytics](../models/prevprojectwebanalytics.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfortyone.md b/docs/models/onehundredandfortyone.md index b5b36544..0dafe8a5 100644 --- a/docs/models/onehundredandfortyone.md +++ b/docs/models/onehundredandfortyone.md @@ -10,16 +10,14 @@ import { OneHundredAndFortyOne } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFortyOne = { edgeConfigId: "", edgeConfigSlug: "", - edgeConfigTokenId: "", - label: "", + edgeConfigDigest: "", }; ``` ## Fields -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `edgeConfigId` | *string* | :heavy_check_mark: | N/A | -| `edgeConfigSlug` | *string* | :heavy_check_mark: | N/A | -| `edgeConfigTokenId` | *string* | :heavy_check_mark: | N/A | -| `label` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `edgeConfigId` | *string* | :heavy_check_mark: | N/A | +| `edgeConfigSlug` | *string* | :heavy_check_mark: | N/A | +| `edgeConfigDigest` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfortyseven.md b/docs/models/onehundredandfortyseven.md index 37939927..7ff8daab 100644 --- a/docs/models/onehundredandfortyseven.md +++ b/docs/models/onehundredandfortyseven.md @@ -12,9 +12,6 @@ let value: OneHundredAndFortySeven = { id: "", name: "", }, - prev: { - project: {}, - }, group: { id: "", slug: "", @@ -28,5 +25,4 @@ let value: OneHundredAndFortySeven = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | `project` | [models.UserEventPayload147Project](../models/usereventpayload147project.md) | :heavy_check_mark: | N/A | -| `prev` | [models.PayloadPrev](../models/payloadprev.md) | :heavy_check_mark: | N/A | -| `group` | [models.PayloadGroup](../models/payloadgroup.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `group` | [models.Group](../models/group.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfortysix.md b/docs/models/onehundredandfortysix.md index 10439077..78694863 100644 --- a/docs/models/onehundredandfortysix.md +++ b/docs/models/onehundredandfortysix.md @@ -8,21 +8,21 @@ The payload of the event, if requested. import { OneHundredAndFortySix } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFortySix = { - project: { - id: "", + id: "", + prev: { name: "", - }, - group: { - id: "", slug: "", - name: "", + fallbackEnvironment: "", }, }; ``` ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `project` | [models.UserEventPayload146Project](../models/usereventpayload146project.md) | :heavy_check_mark: | N/A | -| `group` | [models.Group](../models/group.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | +| `id` | *string* | :heavy_check_mark: | N/A | +| `slug` | *string* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `fallbackEnvironment` | *string* | :heavy_minus_sign: | N/A | +| `prev` | [models.Prev](../models/prev.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandfortythree.md b/docs/models/onehundredandfortythree.md index b2c644df..4d8890d8 100644 --- a/docs/models/onehundredandfortythree.md +++ b/docs/models/onehundredandfortythree.md @@ -8,12 +8,16 @@ The payload of the event, if requested. import { OneHundredAndFortyThree } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFortyThree = { - action: "enable", + edgeConfigId: "", + edgeConfigSlug: "", + edgeConfigTokenIds: [], }; ``` ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `action` | [models.UserEventPayload143Action](../models/usereventpayload143action.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `edgeConfigId` | *string* | :heavy_check_mark: | N/A | +| `edgeConfigSlug` | *string* | :heavy_check_mark: | N/A | +| `edgeConfigTokenIds` | *string*[] | :heavy_check_mark: | ids of deleted tokens | \ No newline at end of file diff --git a/docs/models/onehundredandfortytwo.md b/docs/models/onehundredandfortytwo.md index e61e3902..b98055b3 100644 --- a/docs/models/onehundredandfortytwo.md +++ b/docs/models/onehundredandfortytwo.md @@ -10,16 +10,16 @@ import { OneHundredAndFortyTwo } from "@vercel/sdk/models/userevent.js"; let value: OneHundredAndFortyTwo = { edgeConfigId: "", edgeConfigSlug: "", - edgeConfigTokenIds: [ - "", - ], + edgeConfigTokenId: "", + label: "", }; ``` ## Fields -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `edgeConfigId` | *string* | :heavy_check_mark: | N/A | -| `edgeConfigSlug` | *string* | :heavy_check_mark: | N/A | -| `edgeConfigTokenIds` | *string*[] | :heavy_check_mark: | ids of deleted tokens | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `edgeConfigId` | *string* | :heavy_check_mark: | N/A | +| `edgeConfigSlug` | *string* | :heavy_check_mark: | N/A | +| `edgeConfigTokenId` | *string* | :heavy_check_mark: | N/A | +| `label` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandsixty.md b/docs/models/onehundredandsixty.md new file mode 100644 index 00000000..9ee67a4e --- /dev/null +++ b/docs/models/onehundredandsixty.md @@ -0,0 +1,31 @@ +# OneHundredAndSixty + +The payload of the event, if requested. + +## Example Usage + +```typescript +import { OneHundredAndSixty } from "@vercel/sdk/models/userevent.js"; + +let value: OneHundredAndSixty = { + team: { + id: "", + name: "", + }, + configuration: { + id: "", + }, + peering: { + id: "", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `team` | [models.UserEventPayload160Team](../models/usereventpayload160team.md) | :heavy_check_mark: | N/A | +| `configuration` | [models.UserEventPayload160Configuration](../models/usereventpayload160configuration.md) | :heavy_check_mark: | N/A | +| `peering` | [models.UserEventPayloadPeering](../models/usereventpayloadpeering.md) | :heavy_check_mark: | N/A | +| `newName` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandsixtyone.md b/docs/models/onehundredandsixtyone.md new file mode 100644 index 00000000..e4c55a73 --- /dev/null +++ b/docs/models/onehundredandsixtyone.md @@ -0,0 +1,28 @@ +# OneHundredAndSixtyOne + +The payload of the event, if requested. + +## Example Usage + +```typescript +import { OneHundredAndSixtyOne } from "@vercel/sdk/models/userevent.js"; + +let value: OneHundredAndSixtyOne = { + grantType: "client_credentials", + appName: "", + atTTL: 3352.56, + scope: "", + authMethod: "passkey", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `grantType` | [models.GrantType](../models/granttype.md) | :heavy_check_mark: | N/A | +| `appName` | *string* | :heavy_check_mark: | N/A | +| `atTTL` | *number* | :heavy_check_mark: | access_token TTL | +| `rtTTL` | *number* | :heavy_minus_sign: | refresh_token TTL | +| `scope` | *string* | :heavy_check_mark: | N/A | +| `authMethod` | [models.AuthMethod](../models/authmethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/onehundredandtwelve.md b/docs/models/onehundredandtwelve.md index 69fd9b97..82c8437c 100644 --- a/docs/models/onehundredandtwelve.md +++ b/docs/models/onehundredandtwelve.md @@ -18,4 +18,7 @@ let value: OneHundredAndTwelve = { | ------------------ | ------------------ | ------------------ | ------------------ | | `role` | *string* | :heavy_minus_sign: | N/A | | `uid` | *string* | :heavy_check_mark: | N/A | -| `origin` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `origin` | *string* | :heavy_minus_sign: | N/A | +| `teamRoles` | *string*[] | :heavy_minus_sign: | N/A | +| `teamPermissions` | *string*[] | :heavy_minus_sign: | N/A | +| `entitlements` | *string*[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/ownertype.md b/docs/models/ownertype.md index e3809919..27931f42 100644 --- a/docs/models/ownertype.md +++ b/docs/models/ownertype.md @@ -5,11 +5,11 @@ ```typescript import { OwnerType } from "@vercel/sdk/models/createdeploymentop.js"; -let value: OwnerType = "team"; +let value: OwnerType = "user"; ``` ## Values ```typescript -"user" | "team" +"team" | "user" ``` \ No newline at end of file diff --git a/docs/models/patchteamdefaultexpirationsettings.md b/docs/models/patchteamdefaultexpirationsettings.md new file mode 100644 index 00000000..4a25f83f --- /dev/null +++ b/docs/models/patchteamdefaultexpirationsettings.md @@ -0,0 +1,23 @@ +# PatchTeamDefaultExpirationSettings + +## Example Usage + +```typescript +import { PatchTeamDefaultExpirationSettings } from "@vercel/sdk/models/patchteamop.js"; + +let value: PatchTeamDefaultExpirationSettings = { + expiration: "1y", + expirationProduction: "1y", + expirationCanceled: "1y", + expirationErrored: "1y", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `expiration` | [models.Expiration](../models/expiration.md) | :heavy_minus_sign: | The time period to keep non-production deployments for | 1y | +| `expirationProduction` | [models.ExpirationProduction](../models/expirationproduction.md) | :heavy_minus_sign: | The time period to keep production deployments for | 1y | +| `expirationCanceled` | [models.ExpirationCanceled](../models/expirationcanceled.md) | :heavy_minus_sign: | The time period to keep canceled deployments for | 1y | +| `expirationErrored` | [models.ExpirationErrored](../models/expirationerrored.md) | :heavy_minus_sign: | The time period to keep errored deployments for | 1y | \ No newline at end of file diff --git a/docs/models/patchteamrequest.md b/docs/models/patchteamrequest.md index d4c820a0..c79f5b55 100644 --- a/docs/models/patchteamrequest.md +++ b/docs/models/patchteamrequest.md @@ -27,6 +27,12 @@ let value: PatchTeamRequest = { }, hideIpAddresses: false, hideIpAddressesInLogDrains: false, + defaultExpirationSettings: { + expiration: "1y", + expirationProduction: "1y", + expirationCanceled: "1y", + expirationErrored: "1y", + }, }, }; ``` diff --git a/docs/models/patchteamrequestbody.md b/docs/models/patchteamrequestbody.md index 6b7a3bb0..89a8fcb6 100644 --- a/docs/models/patchteamrequestbody.md +++ b/docs/models/patchteamrequestbody.md @@ -23,6 +23,12 @@ let value: PatchTeamRequestBody = { }, hideIpAddresses: false, hideIpAddressesInLogDrains: false, + defaultExpirationSettings: { + expiration: "1y", + expirationProduction: "1y", + expirationCanceled: "1y", + expirationErrored: "1y", + }, }; ``` @@ -44,4 +50,5 @@ let value: PatchTeamRequestBody = { | `remoteCaching` | [models.PatchTeamRemoteCaching](../models/patchteamremotecaching.md) | :heavy_minus_sign: | Whether or not remote caching is enabled for the team | | | `hideIpAddresses` | *boolean* | :heavy_minus_sign: | Display or hide IP addresses in Monitoring queries. | false | | `hideIpAddressesInLogDrains` | *boolean* | :heavy_minus_sign: | Display or hide IP addresses in Log Drains. | false | -| `defaultDeploymentProtection` | [models.PatchTeamDefaultDeploymentProtection](../models/patchteamdefaultdeploymentprotection.md) | :heavy_minus_sign: | Default deployment protection settings for new projects. | | \ No newline at end of file +| `defaultDeploymentProtection` | [models.PatchTeamDefaultDeploymentProtection](../models/patchteamdefaultdeploymentprotection.md) | :heavy_minus_sign: | Default deployment protection settings for new projects. | | +| `defaultExpirationSettings` | [models.PatchTeamDefaultExpirationSettings](../models/patchteamdefaultexpirationsettings.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/pattern.md b/docs/models/pattern.md index e953b360..051b6b75 100644 --- a/docs/models/pattern.md +++ b/docs/models/pattern.md @@ -6,7 +6,7 @@ import { Pattern } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: Pattern = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: Pattern = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesAtBRANDAt447943](../models/getconfigurationproductspropertiesatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesAtBRANDAt502540](../models/getconfigurationproductspropertiesatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payload.md b/docs/models/payload.md index f1ad199a..803df511 100644 --- a/docs/models/payload.md +++ b/docs/models/payload.md @@ -1462,9 +1462,11 @@ const value: models.OneHundredAndThirtyNine = { ```typescript const value: models.OneHundredAndForty = { - edgeConfigId: "", - edgeConfigSlug: "", - edgeConfigDigest: "", + projectName: "", + urls: [ + "", + "", + ], }; ``` @@ -1474,8 +1476,7 @@ const value: models.OneHundredAndForty = { const value: models.OneHundredAndFortyOne = { edgeConfigId: "", edgeConfigSlug: "", - edgeConfigTokenId: "", - label: "", + edgeConfigDigest: "", }; ``` @@ -1485,9 +1486,8 @@ const value: models.OneHundredAndFortyOne = { const value: models.OneHundredAndFortyTwo = { edgeConfigId: "", edgeConfigSlug: "", - edgeConfigTokenIds: [ - "", - ], + edgeConfigTokenId: "", + label: "", }; ``` @@ -1495,7 +1495,9 @@ const value: models.OneHundredAndFortyTwo = { ```typescript const value: models.OneHundredAndFortyThree = { - action: "enable", + edgeConfigId: "", + edgeConfigSlug: "", + edgeConfigTokenIds: [], }; ``` @@ -1503,16 +1505,24 @@ const value: models.OneHundredAndFortyThree = { ```typescript const value: models.OneHundredAndFortyFour = { + action: "enable", +}; +``` + +### `models.OneHundredAndFortyFive` + +```typescript +const value: models.OneHundredAndFortyFive = { id: "", slug: "", name: "", }; ``` -### `models.OneHundredAndFortyFive` +### `models.OneHundredAndFortySix` ```typescript -const value: models.OneHundredAndFortyFive = { +const value: models.OneHundredAndFortySix = { id: "", prev: { name: "", @@ -1522,10 +1532,10 @@ const value: models.OneHundredAndFortyFive = { }; ``` -### `models.OneHundredAndFortySix` +### `models.OneHundredAndFortySeven` ```typescript -const value: models.OneHundredAndFortySix = { +const value: models.OneHundredAndFortySeven = { project: { id: "", name: "", @@ -1538,10 +1548,10 @@ const value: models.OneHundredAndFortySix = { }; ``` -### `models.OneHundredAndFortySeven` +### `models.OneHundredAndFortyEight` ```typescript -const value: models.OneHundredAndFortySeven = { +const value: models.OneHundredAndFortyEight = { project: { id: "", name: "", @@ -1557,78 +1567,92 @@ const value: models.OneHundredAndFortySeven = { }; ``` -### `models.OneHundredAndFortyEight` +### `models.OneHundredAndFortyNine` ```typescript -const value: models.OneHundredAndFortyEight = { +const value: models.OneHundredAndFortyNine = { projectId: "", projectName: "", }; ``` -### `models.OneHundredAndFortyNine` +### `models.OneHundredAndFifty` ```typescript -const value: models.OneHundredAndFortyNine = { +const value: models.OneHundredAndFifty = { tier: "pro", }; ``` -### `models.OneHundredAndFifty` +### `models.OneHundredAndFiftyOne` ```typescript -const value: models.OneHundredAndFifty = { +const value: models.OneHundredAndFiftyOne = { oldName: "", newName: "", }; ``` -### `models.OneHundredAndFiftyOne` +### `models.OneHundredAndFiftyTwo` ```typescript -const value: models.OneHundredAndFiftyOne = { +const value: models.OneHundredAndFiftyTwo = { appName: "", scopes: [ "", "", - "", ], }; ``` -### `models.OneHundredAndFiftyTwo` +### `models.OneHundredAndFiftyThree` ```typescript -const value: models.OneHundredAndFiftyTwo = { +const value: models.OneHundredAndFiftyThree = { appName: "", nextScopes: [ "", - "", ], }; ``` -### `models.OneHundredAndFiftyThree` +### `models.OneHundredAndFiftyFour` ```typescript -const value: models.OneHundredAndFiftyThree = { +const value: models.OneHundredAndFiftyFour = { appName: "", }; ``` -### `models.OneHundredAndFiftyFour` +### `models.OneHundredAndFiftyFive` ```typescript -const value: models.OneHundredAndFiftyFour = { +const value: models.OneHundredAndFiftyFive = { appName: "", appId: "", }; ``` -### `models.OneHundredAndFiftyFive` +### `models.OneHundredAndFiftySix` ```typescript -const value: models.OneHundredAndFiftyFive = { +const value: models.OneHundredAndFiftySix = { + appName: "", +}; +``` + +### `models.OneHundredAndFiftySeven` + +```typescript +const value: models.OneHundredAndFiftySeven = { + appName: "", +}; +``` + +### `models.OneHundredAndFiftyEight` + +```typescript +const value: models.OneHundredAndFiftyEight = { team: { id: "", name: "", @@ -1645,10 +1669,10 @@ const value: models.OneHundredAndFiftyFive = { }; ``` -### `models.OneHundredAndFiftySix` +### `models.OneHundredAndFiftyNine` ```typescript -const value: models.OneHundredAndFiftySix = { +const value: models.OneHundredAndFiftyNine = { team: { id: "", name: "", @@ -1662,10 +1686,10 @@ const value: models.OneHundredAndFiftySix = { }; ``` -### `models.OneHundredAndFiftySeven` +### `models.OneHundredAndSixty` ```typescript -const value: models.OneHundredAndFiftySeven = { +const value: models.OneHundredAndSixty = { team: { id: "", name: "", @@ -1679,15 +1703,15 @@ const value: models.OneHundredAndFiftySeven = { }; ``` -### `models.OneHundredAndFiftyEight` +### `models.OneHundredAndSixtyOne` ```typescript -const value: models.OneHundredAndFiftyEight = { - grantType: "authorization_code", +const value: models.OneHundredAndSixtyOne = { + grantType: "client_credentials", appName: "", - atTTL: 4957.29, + atTTL: 3352.56, scope: "", - authMethod: "gitlab", + authMethod: "passkey", }; ``` diff --git a/docs/models/payloadprev.md b/docs/models/payloadprev.md index ad796e25..69c3d28e 100644 --- a/docs/models/payloadprev.md +++ b/docs/models/payloadprev.md @@ -14,4 +14,4 @@ let value: PayloadPrev = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `project` | [models.UserEventPayload147PrevProject](../models/usereventpayload147prevproject.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `project` | [models.UserEventPayload148PrevProject](../models/usereventpayload148prevproject.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payloadteampermissions.md b/docs/models/payloadteampermissions.md index dc4e7b00..e1d138cf 100644 --- a/docs/models/payloadteampermissions.md +++ b/docs/models/payloadteampermissions.md @@ -11,5 +11,5 @@ let value: PayloadTeamPermissions = "V0Chatter"; ## Values ```typescript -"CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" +"IntegrationManager" | "CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" ``` \ No newline at end of file diff --git a/docs/models/plans.md b/docs/models/plans.md new file mode 100644 index 00000000..c60c22f6 --- /dev/null +++ b/docs/models/plans.md @@ -0,0 +1,38 @@ +# Plans + +## Example Usage + +```typescript +import { Plans } from "@vercel/sdk/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; + +let value: Plans = { + type: "subscription", + id: "", + name: "", + scope: "installation", + description: "delightfully buzzing opposite carefully", + paymentMethodRequired: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `type` | [models.GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType](../models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplanstype.md) | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `scope` | [models.GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope](../models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansscope.md) | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_check_mark: | N/A | +| `paymentMethodRequired` | *boolean* | :heavy_check_mark: | N/A | +| `preauthorizationAmount` | *number* | :heavy_minus_sign: | N/A | +| `initialCharge` | *string* | :heavy_minus_sign: | N/A | +| `minimumAmount` | *string* | :heavy_minus_sign: | N/A | +| `maximumAmount` | *string* | :heavy_minus_sign: | N/A | +| `maximumAmountAutoPurchasePerPeriod` | *string* | :heavy_minus_sign: | N/A | +| `cost` | *string* | :heavy_minus_sign: | N/A | +| `details` | [models.GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails](../models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansdetails.md)[] | :heavy_minus_sign: | N/A | +| `highlightedDetails` | [models.HighlightedDetails](../models/highlighteddetails.md)[] | :heavy_minus_sign: | N/A | +| `quote` | [models.Quote](../models/quote.md)[] | :heavy_minus_sign: | N/A | +| `effectiveDate` | *string* | :heavy_minus_sign: | N/A | +| `disabled` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/product.md b/docs/models/product.md new file mode 100644 index 00000000..2bdf6e24 --- /dev/null +++ b/docs/models/product.md @@ -0,0 +1,34 @@ +# Product + +## Example Usage + +```typescript +import { Product } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: Product = { + value: { + atBRANDAt7822: {}, + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `slug` | *string* | :heavy_minus_sign: | N/A | +| `iconUrl` | *string* | :heavy_minus_sign: | N/A | +| `shortDescription` | *string* | :heavy_minus_sign: | N/A | +| `metadataSchema` | [models.CreateIntegrationStoreDirectMetadataSchema](../models/createintegrationstoredirectmetadataschema.md) | :heavy_minus_sign: | N/A | +| `resourceLinks` | [models.ResourceLinks](../models/resourcelinks.md)[] | :heavy_minus_sign: | N/A | +| `tags` | [models.Tags](../models/tags.md)[] | :heavy_minus_sign: | N/A | +| `projectConnectionScopes` | [models.ProjectConnectionScopes](../models/projectconnectionscopes.md)[] | :heavy_minus_sign: | N/A | +| `showSSOLinkOnProjectConnection` | *boolean* | :heavy_minus_sign: | N/A | +| `disableResourceRenaming` | *boolean* | :heavy_minus_sign: | N/A | +| `repl` | [models.Repl](../models/repl.md) | :heavy_minus_sign: | N/A | +| `guides` | [models.Guides](../models/guides.md)[] | :heavy_minus_sign: | N/A | +| `value` | [models.CreateIntegrationStoreDirectValue](../models/createintegrationstoredirectvalue.md) | :heavy_check_mark: | N/A | +| `disabled` | *models.Disabled* | :heavy_minus_sign: | N/A | +| `hidden` | *models.Hidden* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/projectconnectionscopes.md b/docs/models/projectconnectionscopes.md new file mode 100644 index 00000000..4ca17287 --- /dev/null +++ b/docs/models/projectconnectionscopes.md @@ -0,0 +1,15 @@ +# ProjectConnectionScopes + +## Example Usage + +```typescript +import { ProjectConnectionScopes } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: ProjectConnectionScopes = "read:domain"; +``` + +## Values + +```typescript +"read:deployment" | "read:domain" | "read:project" | "read-write:deployment" | "read-write:deployment-check" | "read-write:domain" | "read-write:global-project-env-vars" | "read-write:integration-deployment-action" | "read-write:log-drain" | "read-write:project-env-vars" | "read-write:project-protection-bypass" +``` \ No newline at end of file diff --git a/docs/models/projectsmetadata.md b/docs/models/projectsmetadata.md index 1b445191..1336229a 100644 --- a/docs/models/projectsmetadata.md +++ b/docs/models/projectsmetadata.md @@ -3,19 +3,31 @@ ## Example Usage ```typescript -import { ProjectsMetadata } from "@vercel/sdk/models/getwebhooksop.js"; +import { ProjectsMetadata } from "@vercel/sdk/models/createintegrationstoredirectop.js"; let value: ProjectsMetadata = { id: "", + projectId: "", name: "", + environments: [], + envVarPrefix: "", + environmentVariables: [ + "", + "", + ], }; ``` ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `framework` | [models.GetWebhooksResponseBodyFramework](../models/getwebhooksresponsebodyframework.md) | :heavy_minus_sign: | N/A | -| `latestDeployment` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | N/A | +| `projectId` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `framework` | [models.CreateIntegrationStoreDirectFramework](../models/createintegrationstoredirectframework.md) | :heavy_minus_sign: | N/A | +| `latestDeployment` | *string* | :heavy_minus_sign: | N/A | +| `environments` | [models.CreateIntegrationStoreDirectEnvironments](../models/createintegrationstoredirectenvironments.md)[] | :heavy_check_mark: | N/A | +| `envVarPrefix` | *string* | :heavy_check_mark: | N/A | +| `environmentVariables` | *string*[] | :heavy_check_mark: | N/A | +| `deployments` | [models.CreateIntegrationStoreDirectDeployments](../models/createintegrationstoredirectdeployments.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/properties.md b/docs/models/properties.md index 742862f6..32940cf2 100644 --- a/docs/models/properties.md +++ b/docs/models/properties.md @@ -103,7 +103,7 @@ const value: models.Properties8 = { ```typescript const value: models.Properties9 = { value: { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }, }; ``` diff --git a/docs/models/properties9.md b/docs/models/properties9.md index 78ae9016..20b1ded1 100644 --- a/docs/models/properties9.md +++ b/docs/models/properties9.md @@ -7,7 +7,7 @@ import { Properties9 } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: Properties9 = { value: { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }, }; ``` @@ -17,5 +17,5 @@ let value: Properties9 = { | Field | Type | Required | Description | | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | | `value` | [models.PropertiesValue](../models/propertiesvalue.md) | :heavy_check_mark: | N/A | -| `disabled` | *models.Disabled* | :heavy_minus_sign: | N/A | -| `hidden` | *models.Hidden* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `disabled` | *models.PropertiesDisabled* | :heavy_minus_sign: | N/A | +| `hidden` | *models.PropertiesHidden* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/propertiesatbrandat447943.md b/docs/models/propertiesatbrandat502540.md similarity index 59% rename from docs/models/propertiesatbrandat447943.md rename to docs/models/propertiesatbrandat502540.md index f3d9c300..acdf7c47 100644 --- a/docs/models/propertiesatbrandat447943.md +++ b/docs/models/propertiesatbrandat502540.md @@ -1,11 +1,11 @@ -# PropertiesAtBRANDAt447943 +# PropertiesAtBRANDAt502540 ## Example Usage ```typescript -import { PropertiesAtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { PropertiesAtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; -let value: PropertiesAtBRANDAt447943 = {}; +let value: PropertiesAtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/propertiesatbrandat7822.md b/docs/models/propertiesatbrandat7822.md new file mode 100644 index 00000000..68dd00da --- /dev/null +++ b/docs/models/propertiesatbrandat7822.md @@ -0,0 +1,14 @@ +# PropertiesAtBRANDAt7822 + +## Example Usage + +```typescript +import { PropertiesAtBRANDAt7822 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: PropertiesAtBRANDAt7822 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/propertiesmaxlength.md b/docs/models/propertiesmaxlength.md index 3a15e486..279426d5 100644 --- a/docs/models/propertiesmaxlength.md +++ b/docs/models/propertiesmaxlength.md @@ -6,7 +6,7 @@ import { PropertiesMaxLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: PropertiesMaxLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: PropertiesMaxLength = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponseatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponseatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/propertiesminlength.md b/docs/models/propertiesminlength.md index 486aaedb..803d72e5 100644 --- a/docs/models/propertiesminlength.md +++ b/docs/models/propertiesminlength.md @@ -6,7 +6,7 @@ import { PropertiesMinLength } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: PropertiesMinLength = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: PropertiesMinLength = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/propertiespattern.md b/docs/models/propertiespattern.md index 1e732564..d315e51b 100644 --- a/docs/models/propertiespattern.md +++ b/docs/models/propertiespattern.md @@ -6,7 +6,7 @@ import { PropertiesPattern } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: PropertiesPattern = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: PropertiesPattern = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200atbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200atbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/propertiesuioptions.md b/docs/models/propertiesuioptions.md index ec60fc4e..702ee1b3 100644 --- a/docs/models/propertiesuioptions.md +++ b/docs/models/propertiesuioptions.md @@ -13,9 +13,9 @@ let value: PropertiesUiOptions = { ## Fields -| Field | Type | Required | Description | -| --------------------------- | --------------------------- | --------------------------- | --------------------------- | -| `value` | *string* | :heavy_check_mark: | N/A | -| `label` | *string* | :heavy_check_mark: | N/A | -| `disabled` | *models.PropertiesDisabled* | :heavy_minus_sign: | N/A | -| `hidden` | *models.PropertiesHidden* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `value` | *string* | :heavy_check_mark: | N/A | +| `label` | *string* | :heavy_check_mark: | N/A | +| `disabled` | *models.GetConfigurationProductsPropertiesIntegrationsDisabled* | :heavy_minus_sign: | N/A | +| `hidden` | *models.GetConfigurationProductsPropertiesIntegrationsHidden* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/propertiesvalue.md b/docs/models/propertiesvalue.md index 3bc06043..d3c801c7 100644 --- a/docs/models/propertiesvalue.md +++ b/docs/models/propertiesvalue.md @@ -6,7 +6,7 @@ import { PropertiesValue } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: PropertiesValue = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: PropertiesValue = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `atBRANDAt447943` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540](../models/getconfigurationproductspropertiesintegrationsresponse200applicationjsonresponsebodyproductsmetadataschema9atbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/quote.md b/docs/models/quote.md new file mode 100644 index 00000000..47ee1b7c --- /dev/null +++ b/docs/models/quote.md @@ -0,0 +1,19 @@ +# Quote + +## Example Usage + +```typescript +import { Quote } from "@vercel/sdk/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; + +let value: Quote = { + line: "", + amount: "739.50", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `line` | *string* | :heavy_check_mark: | N/A | +| `amount` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/removeprojectenvresponsebody.md b/docs/models/removeprojectenvresponsebody.md index 55a33c45..b97a48c4 100644 --- a/docs/models/removeprojectenvresponsebody.md +++ b/docs/models/removeprojectenvresponsebody.md @@ -15,7 +15,7 @@ const value: models.RemoveProjectEnvResponseBody1[] = []; ```typescript const value: models.RemoveProjectEnvResponseBody2 = { - type: "encrypted", + type: "plain", value: "", key: "", }; @@ -25,7 +25,7 @@ const value: models.RemoveProjectEnvResponseBody2 = { ```typescript const value: models.RemoveProjectEnvResponseBody3 = { - type: "sensitive", + type: "secret", value: "", key: "", }; diff --git a/docs/models/removeprojectenvresponsebody1.md b/docs/models/removeprojectenvresponsebody1.md index 15bcb25c..bb8d1c31 100644 --- a/docs/models/removeprojectenvresponsebody1.md +++ b/docs/models/removeprojectenvresponsebody1.md @@ -6,7 +6,7 @@ import { RemoveProjectEnvResponseBody1 } from "@vercel/sdk/models/removeprojectenvop.js"; let value: RemoveProjectEnvResponseBody1 = { - type: "plain", + type: "sensitive", value: "", key: "", }; diff --git a/docs/models/removeprojectenvresponsebody2.md b/docs/models/removeprojectenvresponsebody2.md index 2666f894..2c57d7ef 100644 --- a/docs/models/removeprojectenvresponsebody2.md +++ b/docs/models/removeprojectenvresponsebody2.md @@ -6,7 +6,7 @@ import { RemoveProjectEnvResponseBody2 } from "@vercel/sdk/models/removeprojectenvop.js"; let value: RemoveProjectEnvResponseBody2 = { - type: "encrypted", + type: "plain", value: "", key: "", }; diff --git a/docs/models/removeprojectenvresponsebody3.md b/docs/models/removeprojectenvresponsebody3.md index e3be13fa..3f674f54 100644 --- a/docs/models/removeprojectenvresponsebody3.md +++ b/docs/models/removeprojectenvresponsebody3.md @@ -6,7 +6,7 @@ import { RemoveProjectEnvResponseBody3 } from "@vercel/sdk/models/removeprojectenvop.js"; let value: RemoveProjectEnvResponseBody3 = { - type: "sensitive", + type: "secret", value: "", key: "", }; diff --git a/docs/models/removeprojectenvresponsebodyprojectsresponsetype.md b/docs/models/removeprojectenvresponsebodyprojectsresponsetype.md index 9faa955f..66daebc3 100644 --- a/docs/models/removeprojectenvresponsebodyprojectsresponsetype.md +++ b/docs/models/removeprojectenvresponsebodyprojectsresponsetype.md @@ -11,5 +11,5 @@ let value: RemoveProjectEnvResponseBodyProjectsResponseType = "system"; ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/removeprojectenvresponsebodyprojectstype.md b/docs/models/removeprojectenvresponsebodyprojectstype.md index 78d3fd70..93a9ef92 100644 --- a/docs/models/removeprojectenvresponsebodyprojectstype.md +++ b/docs/models/removeprojectenvresponsebodyprojectstype.md @@ -5,11 +5,11 @@ ```typescript import { RemoveProjectEnvResponseBodyProjectsType } from "@vercel/sdk/models/removeprojectenvop.js"; -let value: RemoveProjectEnvResponseBodyProjectsType = "sensitive"; +let value: RemoveProjectEnvResponseBodyProjectsType = "secret"; ``` ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/removeprojectenvresponsebodytype.md b/docs/models/removeprojectenvresponsebodytype.md index 8a3725fa..eeaccf8d 100644 --- a/docs/models/removeprojectenvresponsebodytype.md +++ b/docs/models/removeprojectenvresponsebodytype.md @@ -11,5 +11,5 @@ let value: RemoveProjectEnvResponseBodyType = "system"; ## Values ```typescript -"system" | "secret" | "encrypted" | "plain" | "sensitive" +"system" | "encrypted" | "plain" | "sensitive" | "secret" ``` \ No newline at end of file diff --git a/docs/models/repl.md b/docs/models/repl.md index 31b1af3a..94189f95 100644 --- a/docs/models/repl.md +++ b/docs/models/repl.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Repl } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { Repl } from "@vercel/sdk/models/createintegrationstoredirectop.js"; let value: Repl = { enabled: true, diff --git a/docs/models/requestbodyaction.md b/docs/models/requestbodyaction.md index df3a416c..c843bb94 100644 --- a/docs/models/requestbodyaction.md +++ b/docs/models/requestbodyaction.md @@ -3,13 +3,13 @@ ## Example Usage ```typescript -import { RequestBodyAction } from "@vercel/sdk/models/updatefirewallconfigop.js"; +import { RequestBodyAction } from "@vercel/sdk/models/updateinvoiceop.js"; -let value: RequestBodyAction = "firewallEnabled"; +let value: RequestBodyAction = "refund"; ``` ## Values ```typescript -"firewallEnabled" +"refund" ``` \ No newline at end of file diff --git a/docs/models/resourcelinks.md b/docs/models/resourcelinks.md new file mode 100644 index 00000000..cd735459 --- /dev/null +++ b/docs/models/resourcelinks.md @@ -0,0 +1,19 @@ +# ResourceLinks + +## Example Usage + +```typescript +import { ResourceLinks } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: ResourceLinks = { + href: "", + title: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `href` | *string* | :heavy_check_mark: | N/A | +| `title` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/responsebodyenvs.md b/docs/models/responsebodyenvs.md index 6bf0a63c..434739b8 100644 --- a/docs/models/responsebodyenvs.md +++ b/docs/models/responsebodyenvs.md @@ -6,7 +6,7 @@ import { ResponseBodyEnvs } from "@vercel/sdk/models/filterprojectenvsop.js"; let value: ResponseBodyEnvs = { - type: "encrypted", + type: "plain", value: "", key: "", }; diff --git a/docs/models/responsebodyevents.md b/docs/models/responsebodyevents.md index 4202e310..8b7a8f41 100644 --- a/docs/models/responsebodyevents.md +++ b/docs/models/responsebodyevents.md @@ -13,5 +13,5 @@ let value: ResponseBodyEvents = "deployment.created"; ## Values ```typescript -"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "test-webhook" +"budget.reached" | "budget.reset" | "domain.created" | "domain.dns.records.changed" | "domain.transfer-in.started" | "domain.transfer-in.completed" | "domain.transfer-in.failed" | "domain.certificate.add" | "domain.certificate.add.failed" | "domain.certificate.renew" | "domain.certificate.renew.failed" | "domain.certificate.deleted" | "domain.renewal" | "domain.renewal.failed" | "domain.auto-renew.changed" | "deployment.created" | "deployment.cleanup" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "deployment.promoted" | "deployment.integration.action.start" | "deployment.integration.action.cancel" | "deployment.integration.action.cleanup" | "deployment.checkrun.start" | "deployment.checkrun.cancel" | "edge-config.created" | "edge-config.deleted" | "edge-config.items.updated" | "firewall.attack" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "integration-resource.project-connected" | "integration-resource.project-disconnected" | "project.created" | "project.removed" | "project.domain.created" | "project.domain.updated" | "project.domain.deleted" | "project.domain.verified" | "project.domain.unverified" | "project.domain.moved" | "project.rolling-release.started" | "project.rolling-release.aborted" | "project.rolling-release.completed" | "project.rolling-release.approved" | "deployment.checks.failed" | "deployment.checks.succeeded" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "marketplace.invoice.created" | "marketplace.invoice.paid" | "marketplace.invoice.notpaid" | "marketplace.invoice.refunded" | "observability.anomaly" | "observability.anomaly-error" | "test-webhook" ``` \ No newline at end of file diff --git a/docs/models/responsebodyfunctions.md b/docs/models/responsebodyfunctions.md index 08de2686..0551a1ca 100644 --- a/docs/models/responsebodyfunctions.md +++ b/docs/models/responsebodyfunctions.md @@ -18,4 +18,5 @@ let value: ResponseBodyFunctions = {}; | `runtime` | *string* | :heavy_minus_sign: | N/A | | `includeFiles` | *string* | :heavy_minus_sign: | N/A | | `excludeFiles` | *string* | :heavy_minus_sign: | N/A | -| `experimentalTriggers` | [models.ResponseBodyExperimentalTriggers](../models/responsebodyexperimentaltriggers.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `experimentalTriggers` | [models.ResponseBodyExperimentalTriggers](../models/responsebodyexperimentaltriggers.md)[] | :heavy_minus_sign: | N/A | +| `supportsCancellation` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/responsebodyprojectsmetadata.md b/docs/models/responsebodyprojectsmetadata.md new file mode 100644 index 00000000..8461d699 --- /dev/null +++ b/docs/models/responsebodyprojectsmetadata.md @@ -0,0 +1,21 @@ +# ResponseBodyProjectsMetadata + +## Example Usage + +```typescript +import { ResponseBodyProjectsMetadata } from "@vercel/sdk/models/getwebhooksop.js"; + +let value: ResponseBodyProjectsMetadata = { + id: "", + name: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `framework` | [models.GetWebhooksResponseBodyFramework](../models/getwebhooksresponsebodyframework.md) | :heavy_minus_sign: | N/A | +| `latestDeployment` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/routes.md b/docs/models/routes.md index 1db0eb69..da233784 100644 --- a/docs/models/routes.md +++ b/docs/models/routes.md @@ -15,7 +15,7 @@ const value: models.Routes1 = { ```typescript const value: models.Routes2 = { - handle: "rewrite", + handle: "resource", }; ``` diff --git a/docs/models/routes2.md b/docs/models/routes2.md index 9cb213fc..f6b74512 100644 --- a/docs/models/routes2.md +++ b/docs/models/routes2.md @@ -6,7 +6,7 @@ import { Routes2 } from "@vercel/sdk/models/createdeploymentop.js"; let value: Routes2 = { - handle: "rewrite", + handle: "resource", }; ``` diff --git a/docs/models/routeshandle.md b/docs/models/routeshandle.md index 446b7f99..7e08d2bb 100644 --- a/docs/models/routeshandle.md +++ b/docs/models/routeshandle.md @@ -11,5 +11,5 @@ let value: RoutesHandle = "hit"; ## Values ```typescript -"filesystem" | "error" | "hit" | "miss" | "resource" | "rewrite" +"error" | "filesystem" | "hit" | "miss" | "rewrite" | "resource" ``` \ No newline at end of file diff --git a/docs/models/routesop.md b/docs/models/routesop.md index 856d1a7e..a0c020cb 100644 --- a/docs/models/routesop.md +++ b/docs/models/routesop.md @@ -5,11 +5,11 @@ ```typescript import { RoutesOp } from "@vercel/sdk/models/canceldeploymentop.js"; -let value: RoutesOp = "append"; +let value: RoutesOp = "set"; ``` ## Values ```typescript -"set" | "append" | "delete" +"append" | "set" | "delete" ``` \ No newline at end of file diff --git a/docs/models/routestransforms.md b/docs/models/routestransforms.md index d1a1add6..7dae2027 100644 --- a/docs/models/routestransforms.md +++ b/docs/models/routestransforms.md @@ -7,7 +7,7 @@ import { RoutesTransforms } from "@vercel/sdk/models/canceldeploymentop.js"; let value: RoutesTransforms = { type: "response.headers", - op: "set", + op: "append", target: { key: "", }, diff --git a/docs/models/sortbyelasticconcurrency.md b/docs/models/sortbyelasticconcurrency.md new file mode 100644 index 00000000..1a735a61 --- /dev/null +++ b/docs/models/sortbyelasticconcurrency.md @@ -0,0 +1,17 @@ +# SortByElasticConcurrency + +Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first + +## Example Usage + +```typescript +import { SortByElasticConcurrency } from "@vercel/sdk/models/getprojectsop.js"; + +let value: SortByElasticConcurrency = "desc"; +``` + +## Values + +```typescript +"desc" | "asc" +``` \ No newline at end of file diff --git a/docs/models/steps.md b/docs/models/steps.md new file mode 100644 index 00000000..b0c29211 --- /dev/null +++ b/docs/models/steps.md @@ -0,0 +1,20 @@ +# Steps + +## Example Usage + +```typescript +import { Steps } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: Steps = { + title: "", + content: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `title` | *string* | :heavy_check_mark: | N/A | +| `content` | *string* | :heavy_check_mark: | N/A | +| `actions` | [models.CreateIntegrationStoreDirectActions](../models/createintegrationstoredirectactions.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/storage.md b/docs/models/storage.md index 4bc857bb..231b1e11 100644 --- a/docs/models/storage.md +++ b/docs/models/storage.md @@ -15,4 +15,4 @@ let value: Storage = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | | `status` | [models.GetConfigurationProductsStatus](../models/getconfigurationproductsstatus.md) | :heavy_check_mark: | N/A | -| `repl` | [models.Repl](../models/repl.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `repl` | [models.GetConfigurationProductsRepl](../models/getconfigurationproductsrepl.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/tags.md b/docs/models/tags.md new file mode 100644 index 00000000..e2786226 --- /dev/null +++ b/docs/models/tags.md @@ -0,0 +1,15 @@ +# Tags + +## Example Usage + +```typescript +import { Tags } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: Tags = "tag_logging"; +``` + +## Values + +```typescript +"edge-config" | "redis" | "postgres" | "blob" | "checks" | "experimentation" | "storage" | "ai" | "observability" | "video" | "authentication" | "workflow" | "logDrain" | "messaging" | "other" | "mysql" | "vector" | "tag_ai" | "tag_analytics" | "tag_authentication" | "tag_cms" | "tag_code_repository" | "tag_commerce" | "tag_databases" | "tag_dev_tools" | "tag_experimentation" | "tag_flags" | "tag_logging" | "tag_messaging" | "tag_monitoring" | "tag_observability" | "tag_performance" | "tag_productivity" | "tag_searching" | "tag_security" | "tag_testing" | "tag_video" | "tag_workflow" | "tag_checks" | "tag_storage" | "tag_logDrain" | "tag_other" +``` \ No newline at end of file diff --git a/docs/models/team.md b/docs/models/team.md index 58ba34aa..4e9ae1a0 100644 --- a/docs/models/team.md +++ b/docs/models/team.md @@ -31,6 +31,7 @@ let value: Team = { description: "Our mission is to make cloud computing accessible to everyone.", stagingPrefix: "", previewDeploymentSuffix: "example.dev", + platform: true, id: "team_nllPyCtREAqxxdyFKbbMDlxd", slug: "my-team", name: "My Team", @@ -59,9 +60,11 @@ let value: Team = { | `stagingPrefix` | *string* | :heavy_check_mark: | The prefix that is prepended to automatic aliases. | | | `resourceConfig` | [models.ResourceConfig](../models/resourceconfig.md) | :heavy_minus_sign: | N/A | | | `previewDeploymentSuffix` | *string* | :heavy_minus_sign: | The hostname that is current set as preview deployment suffix. | example.dev | +| `platform` | *boolean* | :heavy_minus_sign: | Whether the team is a platform team. | true | | `disableHardAutoBlocks` | *models.DisableHardAutoBlocks* | :heavy_minus_sign: | N/A | | | `remoteCaching` | [models.RemoteCaching](../models/remotecaching.md) | :heavy_minus_sign: | Is remote caching enabled for this team | | | `defaultDeploymentProtection` | [models.DefaultDeploymentProtection](../models/defaultdeploymentprotection.md) | :heavy_minus_sign: | Default deployment protection for this team | | +| `defaultExpirationSettings` | [models.DefaultExpirationSettings](../models/defaultexpirationsettings.md) | :heavy_minus_sign: | Default deployment expiration settings for this team | | | `enablePreviewFeedback` | [models.EnablePreviewFeedback](../models/enablepreviewfeedback.md) | :heavy_minus_sign: | Whether toolbar is enabled on preview deployments | | | `enableProductionFeedback` | [models.EnableProductionFeedback](../models/enableproductionfeedback.md) | :heavy_minus_sign: | Whether toolbar is enabled on production deployments | | | `sensitiveEnvironmentVariablePolicy` | [models.SensitiveEnvironmentVariablePolicy](../models/sensitiveenvironmentvariablepolicy.md) | :heavy_minus_sign: | Sensitive environment variable policy for this team | | diff --git a/docs/models/teamlimitedteampermissions.md b/docs/models/teamlimitedteampermissions.md index 7933433d..3635d529 100644 --- a/docs/models/teamlimitedteampermissions.md +++ b/docs/models/teamlimitedteampermissions.md @@ -5,11 +5,11 @@ ```typescript import { TeamLimitedTeamPermissions } from "@vercel/sdk/models/teamlimited.js"; -let value: TeamLimitedTeamPermissions = "V0Builder"; +let value: TeamLimitedTeamPermissions = "EnvironmentManager"; ``` ## Values ```typescript -"CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" +"IntegrationManager" | "CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" ``` \ No newline at end of file diff --git a/docs/models/teampermissions.md b/docs/models/teampermissions.md index 6485f364..23b5771f 100644 --- a/docs/models/teampermissions.md +++ b/docs/models/teampermissions.md @@ -5,11 +5,11 @@ ```typescript import { TeamPermissions } from "@vercel/sdk/models/team.js"; -let value: TeamPermissions = "UsageViewer"; +let value: TeamPermissions = "FullProductionDeployment"; ``` ## Values ```typescript -"CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" +"IntegrationManager" | "CreateProject" | "FullProductionDeployment" | "UsageViewer" | "EnvVariableManager" | "EnvironmentManager" | "V0Builder" | "V0Chatter" | "V0Viewer" ``` \ No newline at end of file diff --git a/docs/models/transforms.md b/docs/models/transforms.md index 0b5ae7ff..0ecd08cf 100644 --- a/docs/models/transforms.md +++ b/docs/models/transforms.md @@ -7,7 +7,7 @@ import { Transforms } from "@vercel/sdk/models/createdeploymentop.js"; let value: Transforms = { type: "request.headers", - op: "append", + op: "set", target: { key: "", }, diff --git a/docs/models/uioptions2.md b/docs/models/uioptions2.md index a0b52897..0ce3dfe4 100644 --- a/docs/models/uioptions2.md +++ b/docs/models/uioptions2.md @@ -6,7 +6,7 @@ import { UiOptions2 } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: UiOptions2 = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: UiOptions2 = { | Field | Type | Required | Description | | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `atBRANDAt447943` | [models.UiOptionsAtBRANDAt447943](../models/uioptionsatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.UiOptionsAtBRANDAt502540](../models/uioptionsatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/uioptions3.md b/docs/models/uioptions3.md index 1a202bd4..7a553ac8 100644 --- a/docs/models/uioptions3.md +++ b/docs/models/uioptions3.md @@ -7,7 +7,7 @@ import { UiOptions3 } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: UiOptions3 = { value: { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }, }; ``` diff --git a/docs/models/uioptionsatbrandat447943.md b/docs/models/uioptionsatbrandat502540.md similarity index 59% rename from docs/models/uioptionsatbrandat447943.md rename to docs/models/uioptionsatbrandat502540.md index 396f68f5..1af7d629 100644 --- a/docs/models/uioptionsatbrandat447943.md +++ b/docs/models/uioptionsatbrandat502540.md @@ -1,11 +1,11 @@ -# UiOptionsAtBRANDAt447943 +# UiOptionsAtBRANDAt502540 ## Example Usage ```typescript -import { UiOptionsAtBRANDAt447943 } from "@vercel/sdk/models/getconfigurationproductsop.js"; +import { UiOptionsAtBRANDAt502540 } from "@vercel/sdk/models/getconfigurationproductsop.js"; -let value: UiOptionsAtBRANDAt447943 = {}; +let value: UiOptionsAtBRANDAt502540 = {}; ``` ## Fields diff --git a/docs/models/uioptionsatbrandat7822.md b/docs/models/uioptionsatbrandat7822.md new file mode 100644 index 00000000..91eedf1c --- /dev/null +++ b/docs/models/uioptionsatbrandat7822.md @@ -0,0 +1,14 @@ +# UiOptionsAtBRANDAt7822 + +## Example Usage + +```typescript +import { UiOptionsAtBRANDAt7822 } from "@vercel/sdk/models/createintegrationstoredirectop.js"; + +let value: UiOptionsAtBRANDAt7822 = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/uioptionsvalue.md b/docs/models/uioptionsvalue.md index ecb52c9f..68507cd2 100644 --- a/docs/models/uioptionsvalue.md +++ b/docs/models/uioptionsvalue.md @@ -6,7 +6,7 @@ import { UiOptionsValue } from "@vercel/sdk/models/getconfigurationproductsop.js"; let value: UiOptionsValue = { - atBRANDAt447943: {}, + atBRANDAt502540: {}, }; ``` @@ -14,4 +14,4 @@ let value: UiOptionsValue = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `atBRANDAt447943` | [models.GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943](../models/getconfigurationproductsuioptionsintegrationsatbrandat447943.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `atBRANDAt502540` | [models.GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540](../models/getconfigurationproductsuioptionsintegrationsatbrandat502540.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatefirewallconfigrequestbody1.md b/docs/models/updatefirewallconfigrequestbody1.md index 4b3e3d0a..9cbd3588 100644 --- a/docs/models/updatefirewallconfigrequestbody1.md +++ b/docs/models/updatefirewallconfigrequestbody1.md @@ -15,8 +15,8 @@ let value: UpdateFirewallConfigRequestBody1 = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `action` | [models.RequestBodyAction](../models/requestbodyaction.md) | :heavy_check_mark: | N/A | -| `id` | *any* | :heavy_minus_sign: | N/A | -| `value` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `action` | [models.UpdateFirewallConfigRequestBodyAction](../models/updatefirewallconfigrequestbodyaction.md) | :heavy_check_mark: | N/A | +| `id` | *any* | :heavy_minus_sign: | N/A | +| `value` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatefirewallconfigrequestbody2.md b/docs/models/updatefirewallconfigrequestbody2.md index ba7f740c..0a9a43c2 100644 --- a/docs/models/updatefirewallconfigrequestbody2.md +++ b/docs/models/updatefirewallconfigrequestbody2.md @@ -20,8 +20,8 @@ let value: UpdateFirewallConfigRequestBody2 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `action` | [models.UpdateFirewallConfigRequestBodyAction](../models/updatefirewallconfigrequestbodyaction.md) | :heavy_check_mark: | N/A | -| `id` | *any* | :heavy_minus_sign: | N/A | -| `value` | [models.RequestBodyValue](../models/requestbodyvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `action` | [models.UpdateFirewallConfigRequestBodySecurityAction](../models/updatefirewallconfigrequestbodysecurityaction.md) | :heavy_check_mark: | N/A | +| `id` | *any* | :heavy_minus_sign: | N/A | +| `value` | [models.RequestBodyValue](../models/requestbodyvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatefirewallconfigrequestbody3.md b/docs/models/updatefirewallconfigrequestbody3.md index b7b3bb93..3ef7f36b 100644 --- a/docs/models/updatefirewallconfigrequestbody3.md +++ b/docs/models/updatefirewallconfigrequestbody3.md @@ -21,8 +21,8 @@ let value: UpdateFirewallConfigRequestBody3 = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `action` | [models.UpdateFirewallConfigRequestBodySecurityAction](../models/updatefirewallconfigrequestbodysecurityaction.md) | :heavy_check_mark: | N/A | -| `id` | *string* | :heavy_check_mark: | N/A | -| `value` | [models.UpdateFirewallConfigRequestBodyValue](../models/updatefirewallconfigrequestbodyvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| `action` | [models.UpdateFirewallConfigRequestBodySecurityRequestAction](../models/updatefirewallconfigrequestbodysecurityrequestaction.md) | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `value` | [models.UpdateFirewallConfigRequestBodyValue](../models/updatefirewallconfigrequestbodyvalue.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatefirewallconfigrequestbody4.md b/docs/models/updatefirewallconfigrequestbody4.md index a7c56d45..58bad190 100644 --- a/docs/models/updatefirewallconfigrequestbody4.md +++ b/docs/models/updatefirewallconfigrequestbody4.md @@ -15,8 +15,8 @@ let value: UpdateFirewallConfigRequestBody4 = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `action` | [models.UpdateFirewallConfigRequestBodySecurityRequestAction](../models/updatefirewallconfigrequestbodysecurityrequestaction.md) | :heavy_check_mark: | N/A | -| `id` | *string* | :heavy_check_mark: | N/A | -| `value` | *any* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `action` | [models.UpdateFirewallConfigRequestBodySecurityRequest4Action](../models/updatefirewallconfigrequestbodysecurityrequest4action.md) | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `value` | *any* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updatefirewallconfigrequestbodyaction.md b/docs/models/updatefirewallconfigrequestbodyaction.md index 2df1f1d9..1a1615c8 100644 --- a/docs/models/updatefirewallconfigrequestbodyaction.md +++ b/docs/models/updatefirewallconfigrequestbodyaction.md @@ -5,11 +5,11 @@ ```typescript import { UpdateFirewallConfigRequestBodyAction } from "@vercel/sdk/models/updatefirewallconfigop.js"; -let value: UpdateFirewallConfigRequestBodyAction = "rules.insert"; +let value: UpdateFirewallConfigRequestBodyAction = "firewallEnabled"; ``` ## Values ```typescript -"rules.insert" +"firewallEnabled" ``` \ No newline at end of file diff --git a/docs/models/updatefirewallconfigrequestbodysecurityaction.md b/docs/models/updatefirewallconfigrequestbodysecurityaction.md index 917cd2ed..6daa5b45 100644 --- a/docs/models/updatefirewallconfigrequestbodysecurityaction.md +++ b/docs/models/updatefirewallconfigrequestbodysecurityaction.md @@ -5,11 +5,11 @@ ```typescript import { UpdateFirewallConfigRequestBodySecurityAction } from "@vercel/sdk/models/updatefirewallconfigop.js"; -let value: UpdateFirewallConfigRequestBodySecurityAction = "rules.update"; +let value: UpdateFirewallConfigRequestBodySecurityAction = "rules.insert"; ``` ## Values ```typescript -"rules.update" +"rules.insert" ``` \ No newline at end of file diff --git a/docs/models/updatefirewallconfigrequestbodysecurityrequest4action.md b/docs/models/updatefirewallconfigrequestbodysecurityrequest4action.md new file mode 100644 index 00000000..35194bef --- /dev/null +++ b/docs/models/updatefirewallconfigrequestbodysecurityrequest4action.md @@ -0,0 +1,16 @@ +# UpdateFirewallConfigRequestBodySecurityRequest4Action + +## Example Usage + +```typescript +import { UpdateFirewallConfigRequestBodySecurityRequest4Action } from "@vercel/sdk/models/updatefirewallconfigop.js"; + +let value: UpdateFirewallConfigRequestBodySecurityRequest4Action = + "rules.remove"; +``` + +## Values + +```typescript +"rules.remove" +``` \ No newline at end of file diff --git a/docs/models/updatefirewallconfigrequestbodysecurityrequestaction.md b/docs/models/updatefirewallconfigrequestbodysecurityrequestaction.md index 6df81bc2..b956b0e1 100644 --- a/docs/models/updatefirewallconfigrequestbodysecurityrequestaction.md +++ b/docs/models/updatefirewallconfigrequestbodysecurityrequestaction.md @@ -6,11 +6,11 @@ import { UpdateFirewallConfigRequestBodySecurityRequestAction } from "@vercel/sdk/models/updatefirewallconfigop.js"; let value: UpdateFirewallConfigRequestBodySecurityRequestAction = - "rules.remove"; + "rules.update"; ``` ## Values ```typescript -"rules.remove" +"rules.update" ``` \ No newline at end of file diff --git a/docs/models/updateinvoiceaction.md b/docs/models/updateinvoiceaction.md deleted file mode 100644 index a6e9352a..00000000 --- a/docs/models/updateinvoiceaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdateInvoiceAction - -## Example Usage - -```typescript -import { UpdateInvoiceAction } from "@vercel/sdk/models/updateinvoiceop.js"; - -let value: UpdateInvoiceAction = "refund"; -``` - -## Values - -```typescript -"refund" -``` \ No newline at end of file diff --git a/docs/models/updateinvoicerequest.md b/docs/models/updateinvoicerequest.md index cd095774..60d076d9 100644 --- a/docs/models/updateinvoicerequest.md +++ b/docs/models/updateinvoicerequest.md @@ -18,8 +18,8 @@ let value: UpdateInvoiceRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | -| `invoiceId` | *string* | :heavy_check_mark: | N/A | -| `requestBody` | [models.UpdateInvoiceRequestBody](../models/updateinvoicerequestbody.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `integrationConfigurationId` | *string* | :heavy_check_mark: | N/A | +| `invoiceId` | *string* | :heavy_check_mark: | N/A | +| `requestBody` | *models.UpdateInvoiceRequestBody* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updateinvoicerequestbody.md b/docs/models/updateinvoicerequestbody.md index a5cd129b..bd7e5677 100644 --- a/docs/models/updateinvoicerequestbody.md +++ b/docs/models/updateinvoicerequestbody.md @@ -1,21 +1,15 @@ # UpdateInvoiceRequestBody -## Example Usage -```typescript -import { UpdateInvoiceRequestBody } from "@vercel/sdk/models/updateinvoiceop.js"; +## Supported Types + +### `models.UpdateInvoiceRequestBody1` -let value: UpdateInvoiceRequestBody = { +```typescript +const value: models.UpdateInvoiceRequestBody1 = { action: "refund", reason: "", total: "", }; ``` -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `action` | [models.UpdateInvoiceAction](../models/updateinvoiceaction.md) | :heavy_check_mark: | N/A | -| `reason` | *string* | :heavy_check_mark: | Refund reason. | -| `total` | *string* | :heavy_check_mark: | The total amount to be refunded. Must be less than or equal to the total amount of the invoice. | \ No newline at end of file diff --git a/docs/models/updateinvoicerequestbody1.md b/docs/models/updateinvoicerequestbody1.md new file mode 100644 index 00000000..2ae43a1c --- /dev/null +++ b/docs/models/updateinvoicerequestbody1.md @@ -0,0 +1,21 @@ +# UpdateInvoiceRequestBody1 + +## Example Usage + +```typescript +import { UpdateInvoiceRequestBody1 } from "@vercel/sdk/models/updateinvoiceop.js"; + +let value: UpdateInvoiceRequestBody1 = { + action: "refund", + reason: "", + total: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `action` | [models.RequestBodyAction](../models/requestbodyaction.md) | :heavy_check_mark: | N/A | +| `reason` | *string* | :heavy_check_mark: | Refund reason. | +| `total` | *string* | :heavy_check_mark: | The total amount to be refunded. Must be less than or equal to the total amount of the invoice. | \ No newline at end of file diff --git a/docs/models/updateprojectdatacacheresponsebody.md b/docs/models/updateprojectdatacacheresponsebody.md index e9948659..e5810e31 100644 --- a/docs/models/updateprojectdatacacheresponsebody.md +++ b/docs/models/updateprojectdatacacheresponsebody.md @@ -82,79 +82,79 @@ let value: UpdateProjectDataCacheResponseBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `accountId` | *string* | :heavy_check_mark: | N/A | -| `analytics` | [models.Analytics](../models/analytics.md) | :heavy_minus_sign: | N/A | -| `speedInsights` | [models.SpeedInsights](../models/speedinsights.md) | :heavy_minus_sign: | N/A | -| `autoExposeSystemEnvs` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAssignCustomDomains` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAssignCustomDomainsUpdatedBy` | *string* | :heavy_minus_sign: | N/A | -| `buildCommand` | *string* | :heavy_minus_sign: | N/A | -| `commandForIgnoringBuildStep` | *string* | :heavy_minus_sign: | N/A | -| `connectConfigurations` | [models.UpdateProjectDataCacheConnectConfigurations](../models/updateprojectdatacacheconnectconfigurations.md)[] | :heavy_minus_sign: | N/A | -| `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | -| `connectBuildsEnabled` | *boolean* | :heavy_minus_sign: | N/A | -| `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_minus_sign: | N/A | -| `customerSupportCodeVisibility` | *boolean* | :heavy_minus_sign: | N/A | -| `crons` | [models.Crons](../models/crons.md) | :heavy_minus_sign: | N/A | -| `dataCache` | [models.UpdateProjectDataCacheDataCache](../models/updateprojectdatacachedatacache.md) | :heavy_minus_sign: | N/A | -| `deploymentExpiration` | [models.DeploymentExpiration](../models/deploymentexpiration.md) | :heavy_minus_sign: | N/A | -| `devCommand` | *string* | :heavy_minus_sign: | N/A | -| `directoryListing` | *boolean* | :heavy_check_mark: | N/A | -| `installCommand` | *string* | :heavy_minus_sign: | N/A | -| `env` | [models.Env](../models/env.md)[] | :heavy_minus_sign: | N/A | -| `customEnvironments` | [models.CustomEnvironments](../models/customenvironments.md)[] | :heavy_minus_sign: | N/A | -| `framework` | [models.UpdateProjectDataCacheFramework](../models/updateprojectdatacacheframework.md) | :heavy_minus_sign: | N/A | -| `gitForkProtection` | *boolean* | :heavy_minus_sign: | N/A | -| `gitLFS` | *boolean* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_check_mark: | N/A | -| `ipBuckets` | [models.UpdateProjectDataCacheIpBuckets](../models/updateprojectdatacacheipbuckets.md)[] | :heavy_minus_sign: | N/A | -| `latestDeployments` | [models.LatestDeployments](../models/latestdeployments.md)[] | :heavy_minus_sign: | N/A | -| `link` | *models.Link* | :heavy_minus_sign: | N/A | -| `microfrontends` | *models.UpdateProjectDataCacheMicrofrontends* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `nodeVersion` | [models.UpdateProjectDataCacheNodeVersion](../models/updateprojectdatacachenodeversion.md) | :heavy_check_mark: | N/A | -| `optionsAllowlist` | [models.UpdateProjectDataCacheOptionsAllowlist](../models/updateprojectdatacacheoptionsallowlist.md) | :heavy_minus_sign: | N/A | -| `outputDirectory` | *string* | :heavy_minus_sign: | N/A | -| `passwordProtection` | [models.UpdateProjectDataCachePasswordProtection](../models/updateprojectdatacachepasswordprotection.md) | :heavy_minus_sign: | N/A | -| `productionDeploymentsFastLane` | *boolean* | :heavy_minus_sign: | N/A | -| `publicSource` | *boolean* | :heavy_minus_sign: | N/A | -| `resourceConfig` | [models.UpdateProjectDataCacheResourceConfig](../models/updateprojectdatacacheresourceconfig.md) | :heavy_check_mark: | N/A | -| `rollbackDescription` | [models.RollbackDescription](../models/rollbackdescription.md) | :heavy_minus_sign: | Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. | -| `rollingRelease` | [models.RollingRelease](../models/rollingrelease.md) | :heavy_minus_sign: | Project-level rolling release configuration that defines how deployments should be gradually rolled out | -| `defaultResourceConfig` | [models.DefaultResourceConfig](../models/defaultresourceconfig.md) | :heavy_check_mark: | N/A | -| `rootDirectory` | *string* | :heavy_minus_sign: | N/A | -| `serverlessFunctionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | -| `skewProtectionBoundaryAt` | *number* | :heavy_minus_sign: | N/A | -| `skewProtectionMaxAge` | *number* | :heavy_minus_sign: | N/A | -| `skipGitConnectDuringLink` | *boolean* | :heavy_minus_sign: | N/A | -| `sourceFilesOutsideRootDirectory` | *boolean* | :heavy_minus_sign: | N/A | -| `enableAffectedProjectsDeployments` | *boolean* | :heavy_minus_sign: | N/A | -| `ssoProtection` | [models.UpdateProjectDataCacheSsoProtection](../models/updateprojectdatacachessoprotection.md) | :heavy_minus_sign: | N/A | -| `targets` | Record | :heavy_minus_sign: | N/A | -| `transferCompletedAt` | *number* | :heavy_minus_sign: | N/A | -| `transferStartedAt` | *number* | :heavy_minus_sign: | N/A | -| `transferToAccountId` | *string* | :heavy_minus_sign: | N/A | -| `transferredFromAccountId` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *number* | :heavy_minus_sign: | N/A | -| `live` | *boolean* | :heavy_minus_sign: | N/A | -| `enablePreviewFeedback` | *boolean* | :heavy_minus_sign: | N/A | -| `enableProductionFeedback` | *boolean* | :heavy_minus_sign: | N/A | -| `permissions` | [models.Permissions](../models/permissions.md) | :heavy_minus_sign: | N/A | -| `lastRollbackTarget` | [models.LastRollbackTarget](../models/lastrollbacktarget.md) | :heavy_minus_sign: | N/A | -| `lastAliasRequest` | [models.LastAliasRequest](../models/lastaliasrequest.md) | :heavy_minus_sign: | N/A | -| `protectionBypass` | Record | :heavy_minus_sign: | N/A | -| `hasActiveBranches` | *boolean* | :heavy_minus_sign: | N/A | -| `trustedIps` | *models.UpdateProjectDataCacheTrustedIps* | :heavy_minus_sign: | N/A | -| `gitComments` | [models.GitComments](../models/gitcomments.md) | :heavy_minus_sign: | N/A | -| `gitProviderOptions` | [models.GitProviderOptions](../models/gitprovideroptions.md) | :heavy_minus_sign: | N/A | -| `paused` | *boolean* | :heavy_minus_sign: | N/A | -| `concurrencyBucketName` | *string* | :heavy_minus_sign: | N/A | -| `webAnalytics` | [models.UpdateProjectDataCacheWebAnalytics](../models/updateprojectdatacachewebanalytics.md) | :heavy_minus_sign: | N/A | -| `security` | [models.UpdateProjectDataCacheSecurity](../models/updateprojectdatacachesecurity.md) | :heavy_minus_sign: | N/A | -| `oidcTokenConfig` | [models.UpdateProjectDataCacheOidcTokenConfig](../models/updateprojectdatacacheoidctokenconfig.md) | :heavy_minus_sign: | N/A | -| `tier` | [models.UpdateProjectDataCacheTier](../models/updateprojectdatacachetier.md) | :heavy_minus_sign: | N/A | -| `features` | [models.Features](../models/features.md) | :heavy_minus_sign: | N/A | -| `v0` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accountId` | *string* | :heavy_check_mark: | N/A | +| `analytics` | [models.Analytics](../models/analytics.md) | :heavy_minus_sign: | N/A | +| `speedInsights` | [models.SpeedInsights](../models/speedinsights.md) | :heavy_minus_sign: | N/A | +| `autoExposeSystemEnvs` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAssignCustomDomains` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAssignCustomDomainsUpdatedBy` | *string* | :heavy_minus_sign: | N/A | +| `buildCommand` | *string* | :heavy_minus_sign: | N/A | +| `commandForIgnoringBuildStep` | *string* | :heavy_minus_sign: | N/A | +| `connectConfigurations` | [models.UpdateProjectDataCacheConnectConfigurations](../models/updateprojectdatacacheconnectconfigurations.md)[] | :heavy_minus_sign: | N/A | +| `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | +| `connectBuildsEnabled` | *boolean* | :heavy_minus_sign: | N/A | +| `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_minus_sign: | N/A | +| `customerSupportCodeVisibility` | *boolean* | :heavy_minus_sign: | N/A | +| `crons` | [models.Crons](../models/crons.md) | :heavy_minus_sign: | N/A | +| `dataCache` | [models.UpdateProjectDataCacheDataCache](../models/updateprojectdatacachedatacache.md) | :heavy_minus_sign: | N/A | +| `deploymentExpiration` | [models.DeploymentExpiration](../models/deploymentexpiration.md) | :heavy_minus_sign: | Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. | +| `devCommand` | *string* | :heavy_minus_sign: | N/A | +| `directoryListing` | *boolean* | :heavy_check_mark: | N/A | +| `installCommand` | *string* | :heavy_minus_sign: | N/A | +| `env` | [models.Env](../models/env.md)[] | :heavy_minus_sign: | N/A | +| `customEnvironments` | [models.CustomEnvironments](../models/customenvironments.md)[] | :heavy_minus_sign: | N/A | +| `framework` | [models.UpdateProjectDataCacheFramework](../models/updateprojectdatacacheframework.md) | :heavy_minus_sign: | N/A | +| `gitForkProtection` | *boolean* | :heavy_minus_sign: | N/A | +| `gitLFS` | *boolean* | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `ipBuckets` | [models.UpdateProjectDataCacheIpBuckets](../models/updateprojectdatacacheipbuckets.md)[] | :heavy_minus_sign: | N/A | +| `latestDeployments` | [models.LatestDeployments](../models/latestdeployments.md)[] | :heavy_minus_sign: | N/A | +| `link` | *models.Link* | :heavy_minus_sign: | N/A | +| `microfrontends` | *models.UpdateProjectDataCacheMicrofrontends* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `nodeVersion` | [models.UpdateProjectDataCacheNodeVersion](../models/updateprojectdatacachenodeversion.md) | :heavy_check_mark: | N/A | +| `optionsAllowlist` | [models.UpdateProjectDataCacheOptionsAllowlist](../models/updateprojectdatacacheoptionsallowlist.md) | :heavy_minus_sign: | N/A | +| `outputDirectory` | *string* | :heavy_minus_sign: | N/A | +| `passwordProtection` | [models.UpdateProjectDataCachePasswordProtection](../models/updateprojectdatacachepasswordprotection.md) | :heavy_minus_sign: | N/A | +| `productionDeploymentsFastLane` | *boolean* | :heavy_minus_sign: | N/A | +| `publicSource` | *boolean* | :heavy_minus_sign: | N/A | +| `resourceConfig` | [models.UpdateProjectDataCacheResourceConfig](../models/updateprojectdatacacheresourceconfig.md) | :heavy_check_mark: | N/A | +| `rollbackDescription` | [models.RollbackDescription](../models/rollbackdescription.md) | :heavy_minus_sign: | Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. | +| `rollingRelease` | [models.RollingRelease](../models/rollingrelease.md) | :heavy_minus_sign: | Project-level rolling release configuration that defines how deployments should be gradually rolled out | +| `defaultResourceConfig` | [models.DefaultResourceConfig](../models/defaultresourceconfig.md) | :heavy_check_mark: | N/A | +| `rootDirectory` | *string* | :heavy_minus_sign: | N/A | +| `serverlessFunctionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | +| `skewProtectionBoundaryAt` | *number* | :heavy_minus_sign: | N/A | +| `skewProtectionMaxAge` | *number* | :heavy_minus_sign: | N/A | +| `skipGitConnectDuringLink` | *boolean* | :heavy_minus_sign: | N/A | +| `sourceFilesOutsideRootDirectory` | *boolean* | :heavy_minus_sign: | N/A | +| `enableAffectedProjectsDeployments` | *boolean* | :heavy_minus_sign: | N/A | +| `ssoProtection` | [models.UpdateProjectDataCacheSsoProtection](../models/updateprojectdatacachessoprotection.md) | :heavy_minus_sign: | N/A | +| `targets` | Record | :heavy_minus_sign: | N/A | +| `transferCompletedAt` | *number* | :heavy_minus_sign: | N/A | +| `transferStartedAt` | *number* | :heavy_minus_sign: | N/A | +| `transferToAccountId` | *string* | :heavy_minus_sign: | N/A | +| `transferredFromAccountId` | *string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *number* | :heavy_minus_sign: | N/A | +| `live` | *boolean* | :heavy_minus_sign: | N/A | +| `enablePreviewFeedback` | *boolean* | :heavy_minus_sign: | N/A | +| `enableProductionFeedback` | *boolean* | :heavy_minus_sign: | N/A | +| `permissions` | [models.Permissions](../models/permissions.md) | :heavy_minus_sign: | N/A | +| `lastRollbackTarget` | [models.LastRollbackTarget](../models/lastrollbacktarget.md) | :heavy_minus_sign: | N/A | +| `lastAliasRequest` | [models.LastAliasRequest](../models/lastaliasrequest.md) | :heavy_minus_sign: | N/A | +| `protectionBypass` | Record | :heavy_minus_sign: | N/A | +| `hasActiveBranches` | *boolean* | :heavy_minus_sign: | N/A | +| `trustedIps` | *models.UpdateProjectDataCacheTrustedIps* | :heavy_minus_sign: | N/A | +| `gitComments` | [models.GitComments](../models/gitcomments.md) | :heavy_minus_sign: | N/A | +| `gitProviderOptions` | [models.GitProviderOptions](../models/gitprovideroptions.md) | :heavy_minus_sign: | N/A | +| `paused` | *boolean* | :heavy_minus_sign: | N/A | +| `concurrencyBucketName` | *string* | :heavy_minus_sign: | N/A | +| `webAnalytics` | [models.UpdateProjectDataCacheWebAnalytics](../models/updateprojectdatacachewebanalytics.md) | :heavy_minus_sign: | N/A | +| `security` | [models.UpdateProjectDataCacheSecurity](../models/updateprojectdatacachesecurity.md) | :heavy_minus_sign: | N/A | +| `oidcTokenConfig` | [models.UpdateProjectDataCacheOidcTokenConfig](../models/updateprojectdatacacheoidctokenconfig.md) | :heavy_minus_sign: | N/A | +| `tier` | [models.UpdateProjectDataCacheTier](../models/updateprojectdatacachetier.md) | :heavy_minus_sign: | N/A | +| `features` | [models.Features](../models/features.md) | :heavy_minus_sign: | N/A | +| `v0` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updateprojectdeploymentexpiration.md b/docs/models/updateprojectdeploymentexpiration.md index af2d5a26..381049a5 100644 --- a/docs/models/updateprojectdeploymentexpiration.md +++ b/docs/models/updateprojectdeploymentexpiration.md @@ -1,5 +1,7 @@ # UpdateProjectDeploymentExpiration +Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + ## Example Usage ```typescript @@ -10,10 +12,10 @@ let value: UpdateProjectDeploymentExpiration = {}; ## Fields -| Field | Type | Required | Description | -| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `expirationDays` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysProduction` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysCanceled` | *number* | :heavy_minus_sign: | N/A | -| `expirationDaysErrored` | *number* | :heavy_minus_sign: | N/A | -| `deploymentsToKeep` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `expirationDays` | *number* | :heavy_minus_sign: | Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. | +| `expirationDaysProduction` | *number* | :heavy_minus_sign: | Number of days to keep production deployments before soft deletion. | +| `expirationDaysCanceled` | *number* | :heavy_minus_sign: | Number of days to keep canceled deployments before soft deletion. | +| `expirationDaysErrored` | *number* | :heavy_minus_sign: | Number of days to keep errored deployments before soft deletion. | +| `deploymentsToKeep` | *number* | :heavy_minus_sign: | Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. | \ No newline at end of file diff --git a/docs/models/updateprojectresponsebody.md b/docs/models/updateprojectresponsebody.md index cca5480f..bf2156e4 100644 --- a/docs/models/updateprojectresponsebody.md +++ b/docs/models/updateprojectresponsebody.md @@ -97,79 +97,79 @@ let value: UpdateProjectResponseBody = { ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `accountId` | *string* | :heavy_check_mark: | N/A | -| `analytics` | [models.UpdateProjectAnalytics](../models/updateprojectanalytics.md) | :heavy_minus_sign: | N/A | -| `speedInsights` | [models.UpdateProjectSpeedInsights](../models/updateprojectspeedinsights.md) | :heavy_minus_sign: | N/A | -| `autoExposeSystemEnvs` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAssignCustomDomains` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAssignCustomDomainsUpdatedBy` | *string* | :heavy_minus_sign: | N/A | -| `buildCommand` | *string* | :heavy_minus_sign: | N/A | -| `commandForIgnoringBuildStep` | *string* | :heavy_minus_sign: | N/A | -| `connectConfigurations` | [models.UpdateProjectConnectConfigurations](../models/updateprojectconnectconfigurations.md)[] | :heavy_minus_sign: | N/A | -| `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | -| `connectBuildsEnabled` | *boolean* | :heavy_minus_sign: | N/A | -| `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | N/A | -| `createdAt` | *number* | :heavy_minus_sign: | N/A | -| `customerSupportCodeVisibility` | *boolean* | :heavy_minus_sign: | N/A | -| `crons` | [models.UpdateProjectCrons](../models/updateprojectcrons.md) | :heavy_minus_sign: | N/A | -| `dataCache` | [models.UpdateProjectDataCache](../models/updateprojectdatacache.md) | :heavy_minus_sign: | N/A | -| `deploymentExpiration` | [models.UpdateProjectDeploymentExpiration](../models/updateprojectdeploymentexpiration.md) | :heavy_minus_sign: | N/A | -| `devCommand` | *string* | :heavy_minus_sign: | N/A | -| `directoryListing` | *boolean* | :heavy_check_mark: | N/A | -| `installCommand` | *string* | :heavy_minus_sign: | N/A | -| `env` | [models.UpdateProjectEnv](../models/updateprojectenv.md)[] | :heavy_minus_sign: | N/A | -| `customEnvironments` | [models.UpdateProjectCustomEnvironments](../models/updateprojectcustomenvironments.md)[] | :heavy_minus_sign: | N/A | -| `framework` | [models.UpdateProjectProjectsFramework](../models/updateprojectprojectsframework.md) | :heavy_minus_sign: | N/A | -| `gitForkProtection` | *boolean* | :heavy_minus_sign: | N/A | -| `gitLFS` | *boolean* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_check_mark: | N/A | -| `ipBuckets` | [models.UpdateProjectIpBuckets](../models/updateprojectipbuckets.md)[] | :heavy_minus_sign: | N/A | -| `latestDeployments` | [models.UpdateProjectLatestDeployments](../models/updateprojectlatestdeployments.md)[] | :heavy_minus_sign: | N/A | -| `link` | *models.UpdateProjectLink* | :heavy_minus_sign: | N/A | -| `microfrontends` | *models.UpdateProjectMicrofrontends* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `nodeVersion` | [models.UpdateProjectProjectsNodeVersion](../models/updateprojectprojectsnodeversion.md) | :heavy_check_mark: | N/A | -| `optionsAllowlist` | [models.UpdateProjectProjectsOptionsAllowlist](../models/updateprojectprojectsoptionsallowlist.md) | :heavy_minus_sign: | N/A | -| `outputDirectory` | *string* | :heavy_minus_sign: | N/A | -| `passwordProtection` | [models.UpdateProjectProjectsPasswordProtection](../models/updateprojectprojectspasswordprotection.md) | :heavy_minus_sign: | N/A | -| `productionDeploymentsFastLane` | *boolean* | :heavy_minus_sign: | N/A | -| `publicSource` | *boolean* | :heavy_minus_sign: | N/A | -| `resourceConfig` | [models.UpdateProjectProjectsResourceConfig](../models/updateprojectprojectsresourceconfig.md) | :heavy_check_mark: | N/A | -| `rollbackDescription` | [models.UpdateProjectRollbackDescription](../models/updateprojectrollbackdescription.md) | :heavy_minus_sign: | Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. | -| `rollingRelease` | [models.UpdateProjectRollingRelease](../models/updateprojectrollingrelease.md) | :heavy_minus_sign: | Project-level rolling release configuration that defines how deployments should be gradually rolled out | -| `defaultResourceConfig` | [models.UpdateProjectDefaultResourceConfig](../models/updateprojectdefaultresourceconfig.md) | :heavy_check_mark: | N/A | -| `rootDirectory` | *string* | :heavy_minus_sign: | N/A | -| `serverlessFunctionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | -| `skewProtectionBoundaryAt` | *number* | :heavy_minus_sign: | N/A | -| `skewProtectionMaxAge` | *number* | :heavy_minus_sign: | N/A | -| `skipGitConnectDuringLink` | *boolean* | :heavy_minus_sign: | N/A | -| `sourceFilesOutsideRootDirectory` | *boolean* | :heavy_minus_sign: | N/A | -| `enableAffectedProjectsDeployments` | *boolean* | :heavy_minus_sign: | N/A | -| `ssoProtection` | [models.UpdateProjectProjectsSsoProtection](../models/updateprojectprojectsssoprotection.md) | :heavy_minus_sign: | N/A | -| `targets` | Record | :heavy_minus_sign: | N/A | -| `transferCompletedAt` | *number* | :heavy_minus_sign: | N/A | -| `transferStartedAt` | *number* | :heavy_minus_sign: | N/A | -| `transferToAccountId` | *string* | :heavy_minus_sign: | N/A | -| `transferredFromAccountId` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *number* | :heavy_minus_sign: | N/A | -| `live` | *boolean* | :heavy_minus_sign: | N/A | -| `enablePreviewFeedback` | *boolean* | :heavy_minus_sign: | N/A | -| `enableProductionFeedback` | *boolean* | :heavy_minus_sign: | N/A | -| `permissions` | [models.UpdateProjectPermissions](../models/updateprojectpermissions.md) | :heavy_minus_sign: | N/A | -| `lastRollbackTarget` | [models.UpdateProjectLastRollbackTarget](../models/updateprojectlastrollbacktarget.md) | :heavy_minus_sign: | N/A | -| `lastAliasRequest` | [models.UpdateProjectLastAliasRequest](../models/updateprojectlastaliasrequest.md) | :heavy_minus_sign: | N/A | -| `protectionBypass` | Record | :heavy_minus_sign: | N/A | -| `hasActiveBranches` | *boolean* | :heavy_minus_sign: | N/A | -| `trustedIps` | *models.UpdateProjectProjectsTrustedIps* | :heavy_minus_sign: | N/A | -| `gitComments` | [models.UpdateProjectGitComments](../models/updateprojectgitcomments.md) | :heavy_minus_sign: | N/A | -| `gitProviderOptions` | [models.UpdateProjectGitProviderOptions](../models/updateprojectgitprovideroptions.md) | :heavy_minus_sign: | N/A | -| `paused` | *boolean* | :heavy_minus_sign: | N/A | -| `concurrencyBucketName` | *string* | :heavy_minus_sign: | N/A | -| `webAnalytics` | [models.UpdateProjectWebAnalytics](../models/updateprojectwebanalytics.md) | :heavy_minus_sign: | N/A | -| `security` | [models.UpdateProjectSecurity](../models/updateprojectsecurity.md) | :heavy_minus_sign: | N/A | -| `oidcTokenConfig` | [models.UpdateProjectProjectsOidcTokenConfig](../models/updateprojectprojectsoidctokenconfig.md) | :heavy_minus_sign: | N/A | -| `tier` | [models.UpdateProjectTier](../models/updateprojecttier.md) | :heavy_minus_sign: | N/A | -| `features` | [models.UpdateProjectFeatures](../models/updateprojectfeatures.md) | :heavy_minus_sign: | N/A | -| `v0` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accountId` | *string* | :heavy_check_mark: | N/A | +| `analytics` | [models.UpdateProjectAnalytics](../models/updateprojectanalytics.md) | :heavy_minus_sign: | N/A | +| `speedInsights` | [models.UpdateProjectSpeedInsights](../models/updateprojectspeedinsights.md) | :heavy_minus_sign: | N/A | +| `autoExposeSystemEnvs` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAssignCustomDomains` | *boolean* | :heavy_minus_sign: | N/A | +| `autoAssignCustomDomainsUpdatedBy` | *string* | :heavy_minus_sign: | N/A | +| `buildCommand` | *string* | :heavy_minus_sign: | N/A | +| `commandForIgnoringBuildStep` | *string* | :heavy_minus_sign: | N/A | +| `connectConfigurations` | [models.UpdateProjectConnectConfigurations](../models/updateprojectconnectconfigurations.md)[] | :heavy_minus_sign: | N/A | +| `connectConfigurationId` | *string* | :heavy_minus_sign: | N/A | +| `connectBuildsEnabled` | *boolean* | :heavy_minus_sign: | N/A | +| `passiveConnectConfigurationId` | *string* | :heavy_minus_sign: | N/A | +| `createdAt` | *number* | :heavy_minus_sign: | N/A | +| `customerSupportCodeVisibility` | *boolean* | :heavy_minus_sign: | N/A | +| `crons` | [models.UpdateProjectCrons](../models/updateprojectcrons.md) | :heavy_minus_sign: | N/A | +| `dataCache` | [models.UpdateProjectDataCache](../models/updateprojectdatacache.md) | :heavy_minus_sign: | N/A | +| `deploymentExpiration` | [models.UpdateProjectDeploymentExpiration](../models/updateprojectdeploymentexpiration.md) | :heavy_minus_sign: | Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. | +| `devCommand` | *string* | :heavy_minus_sign: | N/A | +| `directoryListing` | *boolean* | :heavy_check_mark: | N/A | +| `installCommand` | *string* | :heavy_minus_sign: | N/A | +| `env` | [models.UpdateProjectEnv](../models/updateprojectenv.md)[] | :heavy_minus_sign: | N/A | +| `customEnvironments` | [models.UpdateProjectCustomEnvironments](../models/updateprojectcustomenvironments.md)[] | :heavy_minus_sign: | N/A | +| `framework` | [models.UpdateProjectProjectsFramework](../models/updateprojectprojectsframework.md) | :heavy_minus_sign: | N/A | +| `gitForkProtection` | *boolean* | :heavy_minus_sign: | N/A | +| `gitLFS` | *boolean* | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_check_mark: | N/A | +| `ipBuckets` | [models.UpdateProjectIpBuckets](../models/updateprojectipbuckets.md)[] | :heavy_minus_sign: | N/A | +| `latestDeployments` | [models.UpdateProjectLatestDeployments](../models/updateprojectlatestdeployments.md)[] | :heavy_minus_sign: | N/A | +| `link` | *models.UpdateProjectLink* | :heavy_minus_sign: | N/A | +| `microfrontends` | *models.UpdateProjectMicrofrontends* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `nodeVersion` | [models.UpdateProjectProjectsNodeVersion](../models/updateprojectprojectsnodeversion.md) | :heavy_check_mark: | N/A | +| `optionsAllowlist` | [models.UpdateProjectProjectsOptionsAllowlist](../models/updateprojectprojectsoptionsallowlist.md) | :heavy_minus_sign: | N/A | +| `outputDirectory` | *string* | :heavy_minus_sign: | N/A | +| `passwordProtection` | [models.UpdateProjectProjectsPasswordProtection](../models/updateprojectprojectspasswordprotection.md) | :heavy_minus_sign: | N/A | +| `productionDeploymentsFastLane` | *boolean* | :heavy_minus_sign: | N/A | +| `publicSource` | *boolean* | :heavy_minus_sign: | N/A | +| `resourceConfig` | [models.UpdateProjectProjectsResourceConfig](../models/updateprojectprojectsresourceconfig.md) | :heavy_check_mark: | N/A | +| `rollbackDescription` | [models.UpdateProjectRollbackDescription](../models/updateprojectrollbackdescription.md) | :heavy_minus_sign: | Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. | +| `rollingRelease` | [models.UpdateProjectRollingRelease](../models/updateprojectrollingrelease.md) | :heavy_minus_sign: | Project-level rolling release configuration that defines how deployments should be gradually rolled out | +| `defaultResourceConfig` | [models.UpdateProjectDefaultResourceConfig](../models/updateprojectdefaultresourceconfig.md) | :heavy_check_mark: | N/A | +| `rootDirectory` | *string* | :heavy_minus_sign: | N/A | +| `serverlessFunctionZeroConfigFailover` | *boolean* | :heavy_minus_sign: | N/A | +| `skewProtectionBoundaryAt` | *number* | :heavy_minus_sign: | N/A | +| `skewProtectionMaxAge` | *number* | :heavy_minus_sign: | N/A | +| `skipGitConnectDuringLink` | *boolean* | :heavy_minus_sign: | N/A | +| `sourceFilesOutsideRootDirectory` | *boolean* | :heavy_minus_sign: | N/A | +| `enableAffectedProjectsDeployments` | *boolean* | :heavy_minus_sign: | N/A | +| `ssoProtection` | [models.UpdateProjectProjectsSsoProtection](../models/updateprojectprojectsssoprotection.md) | :heavy_minus_sign: | N/A | +| `targets` | Record | :heavy_minus_sign: | N/A | +| `transferCompletedAt` | *number* | :heavy_minus_sign: | N/A | +| `transferStartedAt` | *number* | :heavy_minus_sign: | N/A | +| `transferToAccountId` | *string* | :heavy_minus_sign: | N/A | +| `transferredFromAccountId` | *string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *number* | :heavy_minus_sign: | N/A | +| `live` | *boolean* | :heavy_minus_sign: | N/A | +| `enablePreviewFeedback` | *boolean* | :heavy_minus_sign: | N/A | +| `enableProductionFeedback` | *boolean* | :heavy_minus_sign: | N/A | +| `permissions` | [models.UpdateProjectPermissions](../models/updateprojectpermissions.md) | :heavy_minus_sign: | N/A | +| `lastRollbackTarget` | [models.UpdateProjectLastRollbackTarget](../models/updateprojectlastrollbacktarget.md) | :heavy_minus_sign: | N/A | +| `lastAliasRequest` | [models.UpdateProjectLastAliasRequest](../models/updateprojectlastaliasrequest.md) | :heavy_minus_sign: | N/A | +| `protectionBypass` | Record | :heavy_minus_sign: | N/A | +| `hasActiveBranches` | *boolean* | :heavy_minus_sign: | N/A | +| `trustedIps` | *models.UpdateProjectProjectsTrustedIps* | :heavy_minus_sign: | N/A | +| `gitComments` | [models.UpdateProjectGitComments](../models/updateprojectgitcomments.md) | :heavy_minus_sign: | N/A | +| `gitProviderOptions` | [models.UpdateProjectGitProviderOptions](../models/updateprojectgitprovideroptions.md) | :heavy_minus_sign: | N/A | +| `paused` | *boolean* | :heavy_minus_sign: | N/A | +| `concurrencyBucketName` | *string* | :heavy_minus_sign: | N/A | +| `webAnalytics` | [models.UpdateProjectWebAnalytics](../models/updateprojectwebanalytics.md) | :heavy_minus_sign: | N/A | +| `security` | [models.UpdateProjectSecurity](../models/updateprojectsecurity.md) | :heavy_minus_sign: | N/A | +| `oidcTokenConfig` | [models.UpdateProjectProjectsOidcTokenConfig](../models/updateprojectprojectsoidctokenconfig.md) | :heavy_minus_sign: | N/A | +| `tier` | [models.UpdateProjectTier](../models/updateprojecttier.md) | :heavy_minus_sign: | N/A | +| `features` | [models.UpdateProjectFeatures](../models/updateprojectfeatures.md) | :heavy_minus_sign: | N/A | +| `v0` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/userevent.md b/docs/models/userevent.md index 0efe542a..33cffcf4 100644 --- a/docs/models/userevent.md +++ b/docs/models/userevent.md @@ -15,11 +15,10 @@ let value: UserEvent = { userId: "zTuNVUXEAvvnNN3IaqinkyMw", principalId: "", payload: { - project: { - id: "", - name: "", - }, - projectMembership: {}, + projectName: "", + tags: [ + "", + ], }, }; ``` diff --git a/docs/models/usereventpayload143action.md b/docs/models/usereventpayload143action.md deleted file mode 100644 index 8a9973d2..00000000 --- a/docs/models/usereventpayload143action.md +++ /dev/null @@ -1,15 +0,0 @@ -# UserEventPayload143Action - -## Example Usage - -```typescript -import { UserEventPayload143Action } from "@vercel/sdk/models/userevent.js"; - -let value: UserEventPayload143Action = "enable"; -``` - -## Values - -```typescript -"enable" | "disable" -``` \ No newline at end of file diff --git a/docs/models/usereventpayload144action.md b/docs/models/usereventpayload144action.md new file mode 100644 index 00000000..819496f7 --- /dev/null +++ b/docs/models/usereventpayload144action.md @@ -0,0 +1,15 @@ +# UserEventPayload144Action + +## Example Usage + +```typescript +import { UserEventPayload144Action } from "@vercel/sdk/models/userevent.js"; + +let value: UserEventPayload144Action = "disable"; +``` + +## Values + +```typescript +"enable" | "disable" +``` \ No newline at end of file diff --git a/docs/models/usereventpayload147project.md b/docs/models/usereventpayload147project.md index 70555e28..030cc64c 100644 --- a/docs/models/usereventpayload147project.md +++ b/docs/models/usereventpayload147project.md @@ -13,8 +13,7 @@ let value: UserEventPayload147Project = { ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `microfrontends` | *models.Microfrontends* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/usereventpayload147prevproject.md b/docs/models/usereventpayload148prevproject.md similarity index 76% rename from docs/models/usereventpayload147prevproject.md rename to docs/models/usereventpayload148prevproject.md index f7a7c948..147a20c4 100644 --- a/docs/models/usereventpayload147prevproject.md +++ b/docs/models/usereventpayload148prevproject.md @@ -1,11 +1,11 @@ -# UserEventPayload147PrevProject +# UserEventPayload148PrevProject ## Example Usage ```typescript -import { UserEventPayload147PrevProject } from "@vercel/sdk/models/userevent.js"; +import { UserEventPayload148PrevProject } from "@vercel/sdk/models/userevent.js"; -let value: UserEventPayload147PrevProject = {}; +let value: UserEventPayload148PrevProject = {}; ``` ## Fields diff --git a/docs/models/usereventpayload148project.md b/docs/models/usereventpayload148project.md new file mode 100644 index 00000000..80b7ff79 --- /dev/null +++ b/docs/models/usereventpayload148project.md @@ -0,0 +1,20 @@ +# UserEventPayload148Project + +## Example Usage + +```typescript +import { UserEventPayload148Project } from "@vercel/sdk/models/userevent.js"; + +let value: UserEventPayload148Project = { + id: "", + name: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `id` | *string* | :heavy_check_mark: | N/A | +| `name` | *string* | :heavy_check_mark: | N/A | +| `microfrontends` | *models.Microfrontends* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/usereventpayload157configuration.md b/docs/models/usereventpayload158configuration.md similarity index 74% rename from docs/models/usereventpayload157configuration.md rename to docs/models/usereventpayload158configuration.md index e729fd2c..b55346b2 100644 --- a/docs/models/usereventpayload157configuration.md +++ b/docs/models/usereventpayload158configuration.md @@ -1,11 +1,11 @@ -# UserEventPayload157Configuration +# UserEventPayload158Configuration ## Example Usage ```typescript -import { UserEventPayload157Configuration } from "@vercel/sdk/models/userevent.js"; +import { UserEventPayload158Configuration } from "@vercel/sdk/models/userevent.js"; -let value: UserEventPayload157Configuration = { +let value: UserEventPayload158Configuration = { id: "", }; ``` diff --git a/docs/models/usereventpayload156team.md b/docs/models/usereventpayload158team.md similarity index 77% rename from docs/models/usereventpayload156team.md rename to docs/models/usereventpayload158team.md index 4ce55cbb..c96e5f07 100644 --- a/docs/models/usereventpayload156team.md +++ b/docs/models/usereventpayload158team.md @@ -1,11 +1,11 @@ -# UserEventPayload156Team +# UserEventPayload158Team ## Example Usage ```typescript -import { UserEventPayload156Team } from "@vercel/sdk/models/userevent.js"; +import { UserEventPayload158Team } from "@vercel/sdk/models/userevent.js"; -let value: UserEventPayload156Team = { +let value: UserEventPayload158Team = { id: "", name: "", }; diff --git a/docs/models/usereventpayload156configuration.md b/docs/models/usereventpayload159configuration.md similarity index 74% rename from docs/models/usereventpayload156configuration.md rename to docs/models/usereventpayload159configuration.md index fa922c5d..1d9b5a13 100644 --- a/docs/models/usereventpayload156configuration.md +++ b/docs/models/usereventpayload159configuration.md @@ -1,11 +1,11 @@ -# UserEventPayload156Configuration +# UserEventPayload159Configuration ## Example Usage ```typescript -import { UserEventPayload156Configuration } from "@vercel/sdk/models/userevent.js"; +import { UserEventPayload159Configuration } from "@vercel/sdk/models/userevent.js"; -let value: UserEventPayload156Configuration = { +let value: UserEventPayload159Configuration = { id: "", }; ``` diff --git a/docs/models/usereventpayload157team.md b/docs/models/usereventpayload159team.md similarity index 77% rename from docs/models/usereventpayload157team.md rename to docs/models/usereventpayload159team.md index b002d1c5..302de0fc 100644 --- a/docs/models/usereventpayload157team.md +++ b/docs/models/usereventpayload159team.md @@ -1,11 +1,11 @@ -# UserEventPayload157Team +# UserEventPayload159Team ## Example Usage ```typescript -import { UserEventPayload157Team } from "@vercel/sdk/models/userevent.js"; +import { UserEventPayload159Team } from "@vercel/sdk/models/userevent.js"; -let value: UserEventPayload157Team = { +let value: UserEventPayload159Team = { id: "", name: "", }; diff --git a/docs/models/usereventpayload155configuration.md b/docs/models/usereventpayload160configuration.md similarity index 74% rename from docs/models/usereventpayload155configuration.md rename to docs/models/usereventpayload160configuration.md index a1fb695f..7d6f0a5a 100644 --- a/docs/models/usereventpayload155configuration.md +++ b/docs/models/usereventpayload160configuration.md @@ -1,11 +1,11 @@ -# UserEventPayload155Configuration +# UserEventPayload160Configuration ## Example Usage ```typescript -import { UserEventPayload155Configuration } from "@vercel/sdk/models/userevent.js"; +import { UserEventPayload160Configuration } from "@vercel/sdk/models/userevent.js"; -let value: UserEventPayload155Configuration = { +let value: UserEventPayload160Configuration = { id: "", }; ``` diff --git a/docs/models/usereventpayload155team.md b/docs/models/usereventpayload160team.md similarity index 77% rename from docs/models/usereventpayload155team.md rename to docs/models/usereventpayload160team.md index b709ec6a..4d8a24c9 100644 --- a/docs/models/usereventpayload155team.md +++ b/docs/models/usereventpayload160team.md @@ -1,11 +1,11 @@ -# UserEventPayload155Team +# UserEventPayload160Team ## Example Usage ```typescript -import { UserEventPayload155Team } from "@vercel/sdk/models/userevent.js"; +import { UserEventPayload160Team } from "@vercel/sdk/models/userevent.js"; -let value: UserEventPayload155Team = { +let value: UserEventPayload160Team = { id: "", name: "", }; diff --git a/docs/sdks/integrations/README.md b/docs/sdks/integrations/README.md index eaa8fa02..3f114a13 100644 --- a/docs/sdks/integrations/README.md +++ b/docs/sdks/integrations/README.md @@ -6,10 +6,12 @@ ### Available Operations * [updateIntegrationDeploymentAction](#updateintegrationdeploymentaction) - Update deployment integration action +* [connectIntegrationResourceToProject](#connectintegrationresourcetoproject) - Connect integration resource to project * [getConfigurations](#getconfigurations) - Get configurations for the authenticated user or team * [getConfiguration](#getconfiguration) - Retrieve an integration configuration * [deleteConfiguration](#deleteconfiguration) - Delete an integration configuration * [getConfigurationProducts](#getconfigurationproducts) - List products for integration configuration +* [createIntegrationStoreDirect](#createintegrationstoredirect) - Create integration store (free and paid plans) ## updateIntegrationDeploymentAction @@ -92,6 +94,88 @@ run(); | models.VercelForbiddenError | 401 | application/json | | models.SDKError | 4XX, 5XX | \*/\* | +## connectIntegrationResourceToProject + +Connects an integration resource to a Vercel project. This endpoint establishes a connection between a provisioned integration resource (from storage APIs like `POST /v1/storage/stores/integration/direct`) and a specific Vercel project. + +### Example Usage + + +```typescript +import { Vercel } from "@vercel/sdk"; + +const vercel = new Vercel({ + bearerToken: "", +}); + +async function run() { + await vercel.integrations.connectIntegrationResourceToProject({ + integrationConfigurationId: "", + resourceId: "", + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", + slug: "my-team-url-slug", + }); + + +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { VercelCore } from "@vercel/sdk/core.js"; +import { integrationsConnectIntegrationResourceToProject } from "@vercel/sdk/funcs/integrationsConnectIntegrationResourceToProject.js"; + +// Use `VercelCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const vercel = new VercelCore({ + bearerToken: "", +}); + +async function run() { + const res = await integrationsConnectIntegrationResourceToProject(vercel, { + integrationConfigurationId: "", + resourceId: "", + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", + slug: "my-team-url-slug", + }); + if (res.ok) { + const { value: result } = res; + + } else { + console.log("integrationsConnectIntegrationResourceToProject failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [models.ConnectIntegrationResourceToProjectRequest](../../models/connectintegrationresourcetoprojectrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| models.VercelBadRequestError | 400 | application/json | +| models.VercelForbiddenError | 401 | application/json | +| models.VercelNotFoundError | 404 | application/json | +| models.SDKError | 4XX, 5XX | \*/\* | + ## getConfigurations Allows to retrieve all configurations for an authenticated integration. When the `project` view is used, configurations generated for the authorization flow will be filtered out of the results. @@ -409,4 +493,129 @@ run(); | models.VercelBadRequestError | 400 | application/json | | models.VercelForbiddenError | 401 | application/json | | models.VercelNotFoundError | 404 | application/json | +| models.SDKError | 4XX, 5XX | \*/\* | + +## createIntegrationStoreDirect + +Creates an integration store for both FREE and PAID billing plans. This simplified endpoint automatically provisions real integration storage resources while handling billing complexity behind the scenes. It supports both free and paid billing plans with automatic authorization creation for paid resources. ## How it works 1. Validates the integration configuration and product 2. For free resources: Auto-discovers available free billing plans 3. For paid resources: Creates billing authorization inline using provided billingPlanId 4. Provisions real resources through the Vercel Marketplace 5. Returns the created store with connection details ## Workflow Before using this endpoint, discover available products and billing plans: 1. List your configurations: `GET /v1/integrations/configurations` 2. Get products for a configuration: `GET /v1/integrations/configuration/{id}/products` 3. Get billing plans for a product: `GET /integrations/integration/{integrationId}/products/{productId}/plans` 4. Review the `metadataSchema` for each product to understand required metadata 5. Create storage with discovered product: `POST /v1/storage/stores/integration/direct` ## Usage Patterns - **Free resources**: Omit `billingPlanId` - endpoint will auto-discover free plans - **Paid resources**: Provide `billingPlanId` from billing plans discovery - **Prepayment plans**: Also provide `prepaymentAmountCents` for variable amount plans ## Limitations - **Admin access required**: Only integration configuration admins can create stores - **Storage limits apply**: Subject to your team's storage quotas - **Payment method required**: For paid plans, ensure valid payment method is configured ## Error Responses - `400 Bad Request`: Invalid input, no plans available, or billing issues - `403 Forbidden`: Insufficient permissions (non-admin users) - `404 Not Found`: Integration configuration or product not found - `429 Too Many Requests`: Rate limit exceeded + +### Example Usage + + +```typescript +import { Vercel } from "@vercel/sdk"; + +const vercel = new Vercel({ + bearerToken: "", +}); + +async function run() { + const result = await vercel.integrations.createIntegrationStoreDirect({ + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", + slug: "my-team-url-slug", + requestBody: { + name: "my-dev-database", + integrationConfigurationId: "icfg_cuwj0AdCdH3BwWT4LPijCC7t", + integrationProductIdOrSlug: "iap_postgres_db", + metadata: { + "environment": "development", + "project": "my-app", + "tags": [ + "database", + "postgres", + ], + }, + externalId: "dev-db-001", + protocolSettings: { + "experimentation": { + "edgeConfigSyncingEnabled": true, + }, + }, + source: "api", + billingPlanId: "bp_abc123def456", + paymentMethodId: "pm_1AbcDefGhiJklMno", + prepaymentAmountCents: 5000, + }, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { VercelCore } from "@vercel/sdk/core.js"; +import { integrationsCreateIntegrationStoreDirect } from "@vercel/sdk/funcs/integrationsCreateIntegrationStoreDirect.js"; + +// Use `VercelCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const vercel = new VercelCore({ + bearerToken: "", +}); + +async function run() { + const res = await integrationsCreateIntegrationStoreDirect(vercel, { + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", + slug: "my-team-url-slug", + requestBody: { + name: "my-dev-database", + integrationConfigurationId: "icfg_cuwj0AdCdH3BwWT4LPijCC7t", + integrationProductIdOrSlug: "iap_postgres_db", + metadata: { + "environment": "development", + "project": "my-app", + "tags": [ + "database", + "postgres", + ], + }, + externalId: "dev-db-001", + protocolSettings: { + "experimentation": { + "edgeConfigSyncingEnabled": true, + }, + }, + source: "api", + billingPlanId: "bp_abc123def456", + paymentMethodId: "pm_1AbcDefGhiJklMno", + prepaymentAmountCents: 5000, + }, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("integrationsCreateIntegrationStoreDirect failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [models.CreateIntegrationStoreDirectRequest](../../models/createintegrationstoredirectrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[models.CreateIntegrationStoreDirectResponseBody](../../models/createintegrationstoredirectresponsebody.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| models.VercelBadRequestError | 400 | application/json | +| models.VercelForbiddenError | 401 | application/json | +| models.VercelNotFoundError | 404 | application/json | +| models.VercelRateLimitError | 429 | application/json | | models.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/projects/README.md b/docs/sdks/projects/README.md index bfc9f2ef..f782775d 100644 --- a/docs/sdks/projects/README.md +++ b/docs/sdks/projects/README.md @@ -135,6 +135,7 @@ async function run() { gitForkProtection: "1", repoUrl: "https://github.com/vercel/next.js", elasticConcurrencyEnabled: "1", + sortByElasticConcurrency: "desc", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }); @@ -164,6 +165,7 @@ async function run() { gitForkProtection: "1", repoUrl: "https://github.com/vercel/next.js", elasticConcurrencyEnabled: "1", + sortByElasticConcurrency: "desc", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }); diff --git a/docs/sdks/teams/README.md b/docs/sdks/teams/README.md index d721376c..86b3e017 100644 --- a/docs/sdks/teams/README.md +++ b/docs/sdks/teams/README.md @@ -768,6 +768,12 @@ async function run() { }, hideIpAddresses: false, hideIpAddressesInLogDrains: false, + defaultExpirationSettings: { + expiration: "1y", + expirationProduction: "1y", + expirationCanceled: "1y", + expirationErrored: "1y", + }, }, }); @@ -813,6 +819,12 @@ async function run() { }, hideIpAddresses: false, hideIpAddressesInLogDrains: false, + defaultExpirationSettings: { + expiration: "1y", + expirationProduction: "1y", + expirationCanceled: "1y", + expirationErrored: "1y", + }, }, }); if (res.ok) { diff --git a/docs/sdks/vercel/README.md b/docs/sdks/vercel/README.md index 2980f5f4..ca3fa3ef 100644 --- a/docs/sdks/vercel/README.md +++ b/docs/sdks/vercel/README.md @@ -5,3 +5,77 @@ Vercel SDK: The [`@vercel/sdk`](https://www.npmjs.com/package/@vercel/sdk) is a type-safe Typescript SDK that allows you to access the resources and methods of the Vercel REST API. Learn how to [install it](https://vercel.com/docs/rest-api/sdk#installing-vercel-sdk) and [authenticate](https://vercel.com/docs/rest-api/sdk#authentication) with a Vercel access token. ### Available Operations + +* [getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans](#getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans) + +## getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans + +### Example Usage + + +```typescript +import { Vercel } from "@vercel/sdk"; + +const vercel = new Vercel(); + +async function run() { + const result = await vercel.getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans({ + integrationIdOrSlug: "", + productIdOrSlug: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { VercelCore } from "@vercel/sdk/core.js"; +import { getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans } from "@vercel/sdk/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js"; + +// Use `VercelCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const vercel = new VercelCore(); + +async function run() { + const res = await getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans(vercel, { + integrationIdOrSlug: "", + productIdOrSlug: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [models.GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest](../../models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[models.GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody](../../models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansresponsebody.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| models.VercelBadRequestError | 400 | application/json | +| models.VercelForbiddenError | 401 | application/json | +| models.VercelNotFoundError | 404 | application/json | +| models.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/examples/package-lock.json b/examples/package-lock.json index 37944f35..31cfdc41 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@vercel/sdk", - "version": "1.10.6", + "version": "1.10.7", "dependencies": { "zod": "^3.20.0" }, diff --git a/jsr.json b/jsr.json index e09ffdd2..924cd1ca 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@vercel/sdk", - "version": "1.10.6", + "version": "1.10.7", "exports": { ".": "./src/index.ts", "./models": "./src/models/index.ts", diff --git a/package-lock.json b/package-lock.json index af13face..ad46494f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vercel/sdk", - "version": "1.10.6", + "version": "1.10.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vercel/sdk", - "version": "1.10.6", + "version": "1.10.7", "dependencies": { "zod": "^3.20.0" }, diff --git a/package.json b/package.json index 3b515dfc..0f91be50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vercel/sdk", - "version": "1.10.6", + "version": "1.10.7", "author": "Speakeasy", "type": "module", "bin": { diff --git a/src/__tests__/accessgroups.test.ts b/src/__tests__/accessgroups.test.ts index 059d67c4..a4e53ddb 100644 --- a/src/__tests__/accessgroups.test.ts +++ b/src/__tests__/accessgroups.test.ts @@ -245,7 +245,9 @@ test("Access Groups Create Access Group", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - entitlements: [], + entitlements: [ + "v0", + ], membersCount: 446.92, projectsCount: 5113.22, name: "my-access-group", diff --git a/src/__tests__/edgeconfig.test.ts b/src/__tests__/edgeconfig.test.ts index 919e9b95..acd1b34e 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: 827.44, - updatedAt: 8692.49, + createdAt: 6027.63, + updatedAt: 5448.83, id: "", slug: "", ownerId: "", @@ -77,8 +77,8 @@ test("Edge Config Get Edge Config", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - createdAt: 9685.26, - updatedAt: 3884.97, + createdAt: 4236.55, + updatedAt: 6458.94, id: "", slug: "", ownerId: "", @@ -107,8 +107,8 @@ test("Edge Config Update Edge Config", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - createdAt: 4064.3, - updatedAt: 1351.77, + createdAt: 4375.87, + updatedAt: 8917.73, id: "", slug: "", ownerId: "", diff --git a/src/__tests__/integrations.test.ts b/src/__tests__/integrations.test.ts index 7d750ec6..1ba63d54 100644 --- a/src/__tests__/integrations.test.ts +++ b/src/__tests__/integrations.test.ts @@ -66,3 +66,68 @@ test("Integrations Get Configuration Products", async () => { }, }); }); + +test("Integrations Create Integration Store Direct", async () => { + const testHttpClient = createTestHTTPClient("createIntegrationStoreDirect"); + + const vercel = new Vercel({ + serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080", + httpClient: testHttpClient, + bearerToken: "", + }); + + const result = await vercel.integrations.createIntegrationStoreDirect({ + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", + slug: "my-team-url-slug", + requestBody: { + name: "my-dev-database", + integrationConfigurationId: "icfg_cuwj0AdCdH3BwWT4LPijCC7t", + integrationProductIdOrSlug: "iap_postgres_db", + metadata: { + "environment": "development", + "project": "my-app", + "tags": [ + "database", + "postgres", + ], + }, + externalId: "dev-db-001", + protocolSettings: { + "experimentation": { + "edgeConfigSyncingEnabled": true, + }, + }, + source: "api", + billingPlanId: "bp_abc123def456", + paymentMethodId: "pm_1AbcDefGhiJklMno", + prepaymentAmountCents: 5000, + }, + }); + expect(result).toBeDefined(); + expect(result).toEqual({ + store: { + projectsMetadata: [ + { + id: "", + projectId: "", + name: "", + environments: [], + envVarPrefix: "", + environmentVariables: [ + "", + "", + ], + }, + ], + usageQuotaExceeded: true, + status: "available", + externalResourceId: "", + product: { + value: { + atBRANDAt7822: {}, + }, + }, + secrets: [], + }, + }); +}); diff --git a/src/__tests__/mockserver/internal/handler/generated_handlers.go b/src/__tests__/mockserver/internal/handler/generated_handlers.go index a661f960..647a5df5 100644 --- a/src/__tests__/mockserver/internal/handler/generated_handlers.go +++ b/src/__tests__/mockserver/internal/handler/generated_handlers.go @@ -61,6 +61,7 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodGet, "/v1/installations/{integrationConfigurationId}/resources/{resourceId}", pathGetV1InstallationsIntegrationConfigurationIDResourcesResourceID(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/v1/integrations/configuration/{id}", pathGetV1IntegrationsConfigurationID(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/v1/integrations/configuration/{id}/products", pathGetV1IntegrationsConfigurationIDProducts(dir, rt)), + NewGeneratedHandler(ctx, http.MethodGet, "/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans", pathGetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlans(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/v1/projects/{idOrName}/env/{id}", pathGetV1ProjectsIDOrNameEnvID(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/v1/projects/{idOrName}/rolling-release", pathGetV1ProjectsIDOrNameRollingRelease(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/v1/projects/{idOrName}/rolling-release/billing", pathGetV1ProjectsIDOrNameRollingReleaseBilling(dir, rt)), @@ -141,6 +142,7 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodPost, "/v1/projects/{projectId}/unpause", pathPostV1ProjectsProjectIDUnpause(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/v1/security/attack-mode", pathPostV1SecurityAttackMode(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/v1/security/firewall/bypass", pathPostV1SecurityFirewallBypass(dir, rt)), + NewGeneratedHandler(ctx, http.MethodPost, "/v1/storage/stores/integration/direct", pathPostV1StorageStoresIntegrationDirect(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/v1/teams", pathPostV1Teams(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/v1/teams/{teamId}/members/teams/join", pathPostV1TeamsTeamIDMembersTeamsJoin(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/v1/teams/{teamId}/request", pathPostV1TeamsTeamIDRequest(dir, rt)), diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go b/src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go index ce850e4a..56fb17d7 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go @@ -46,8 +46,8 @@ func testGetEdgeConfigGetEdgeConfig0(w http.ResponseWriter, req *http.Request) { return } var respBody *operations.GetEdgeConfigResponseBody = &operations.GetEdgeConfigResponseBody{ - CreatedAt: 7151.9, - UpdatedAt: 6027.63, + CreatedAt: 5448.83, + UpdatedAt: 4236.55, ID: "", Slug: "", OwnerID: "", diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationidproducts.go b/src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationidproducts.go index 6a81ab54..7341221c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationidproducts.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1integrationsconfigurationidproducts.go @@ -46,7 +46,7 @@ func testGetConfigurationProductsGetConfigurationProducts0(w http.ResponseWriter return } var respBody *operations.GetConfigurationProductsResponseBody = &operations.GetConfigurationProductsResponseBody{ - Products: []operations.Product{}, + Products: []operations.GetConfigurationProductsProduct{}, Integration: operations.GetConfigurationProductsIntegration{ ID: "", Slug: "", diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go b/src/__tests__/mockserver/internal/handler/pathgetv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go new file mode 100644 index 00000000..92a2f63b --- /dev/null +++ b/src/__tests__/mockserver/internal/handler/pathgetv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go @@ -0,0 +1,68 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/operations" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathGetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlans(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans[0]": + dir.HandlerFunc("get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans", testGetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansGetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlans0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testGetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansGetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlans0(w http.ResponseWriter, req *http.Request) { + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *operations.GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponseBody = &operations.GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponseBody{ + Plans: []operations.GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan{ + operations.GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan{ + Type: operations.GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansTypePrepayment, + ID: "", + Name: "", + Scope: operations.GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScopeResource, + Description: "cope unless hierarchy versus ouch more regarding tabulate", + PaymentMethodRequired: false, + }, + }, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go b/src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go index 88f3bdbd..2abd4306 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1projectsidornamerollingreleasebilling.go @@ -46,15 +46,11 @@ func testGetRollingReleaseBillingStatusGetRollingReleaseBillingStatus0(w http.Re http.Error(w, err.Error(), http.StatusBadRequest) return } - var respBody *operations.GetRollingReleaseBillingStatusResponseBody = types.Pointer(operations.CreateGetRollingReleaseBillingStatusResponseBodyNoAvailableSlots( - operations.NoAvailableSlots{ - AvailableSlots: 6027.63, - Reason: operations.ReasonNoAvailableSlotsNoAvailableSlots, + var respBody *operations.GetRollingReleaseBillingStatusResponseBody = types.Pointer(operations.CreateGetRollingReleaseBillingStatusResponseBodyAvailableSlots( + operations.AvailableSlots{ + AvailableSlots: 5288.95, + Reason: operations.ReasonAvailableSlotsAvailableSlots, Message: "", - EnabledProjects: []string{ - "", - "", - }, }, )) respBodyBytes, err := utils.MarshalJSON(respBody, "", true) diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go b/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go index 43c0a89f..409aba14 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: "perky-making.info", + IP: "9df8:bbce:110c:bdfb:ab2e:3eb9:5bac:0ddd", + CreatedAt: "1733915638461", + UpdatedAt: "1735662108592", UpdatedAtHour: "", }, }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go b/src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go index febf80be..9e4fd399 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go @@ -46,13 +46,11 @@ func testGetDomainConfigGetDomainConfig0(w http.ResponseWriter, req *http.Reques return } var respBody *operations.GetDomainConfigResponseBody = &operations.GetDomainConfigResponseBody{ - ConfiguredBy: nil, - AcceptedChallenges: []operations.AcceptedChallenge{ - operations.AcceptedChallengeHttp01, - }, + ConfiguredBy: operations.ConfiguredByHTTP.ToPointer(), + AcceptedChallenges: []operations.AcceptedChallenge{}, RecommendedIPv4: []operations.RecommendedIPv4{ operations.RecommendedIPv4{ - Rank: 9786.19, + Rank: 4375.87, Value: []string{ "", "", @@ -60,8 +58,13 @@ func testGetDomainConfigGetDomainConfig0(w http.ResponseWriter, req *http.Reques }, }, }, - RecommendedCNAME: []operations.RecommendedCNAME{}, - Misconfigured: false, + RecommendedCNAME: []operations.RecommendedCNAME{ + operations.RecommendedCNAME{ + Rank: 3834.41, + Value: "", + }, + }, + Misconfigured: false, } respBodyBytes, err := utils.MarshalJSON(respBody, "", true) diff --git a/src/__tests__/mockserver/internal/handler/pathpostv1storagestoresintegrationdirect.go b/src/__tests__/mockserver/internal/handler/pathpostv1storagestoresintegrationdirect.go new file mode 100644 index 00000000..f253056c --- /dev/null +++ b/src/__tests__/mockserver/internal/handler/pathpostv1storagestoresintegrationdirect.go @@ -0,0 +1,93 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/operations" + "mockserver/internal/sdk/types" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathPostV1StorageStoresIntegrationDirect(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "createIntegrationStoreDirect[0]": + dir.HandlerFunc("createIntegrationStoreDirect", testCreateIntegrationStoreDirectCreateIntegrationStoreDirect0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testCreateIntegrationStoreDirectCreateIntegrationStoreDirect0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, true, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.ContentType(req, "application/json", false); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *operations.CreateIntegrationStoreDirectResponseBody = &operations.CreateIntegrationStoreDirectResponseBody{ + Store: &operations.Store{ + ProjectsMetadata: []operations.CreateIntegrationStoreDirectProjectsMetadatum{ + operations.CreateIntegrationStoreDirectProjectsMetadatum{ + ID: "", + ProjectID: "", + Name: "", + Environments: []operations.CreateIntegrationStoreDirectEnvironment{}, + EnvVarPrefix: types.String(""), + EnvironmentVariables: []string{ + "", + "", + }, + }, + }, + UsageQuotaExceeded: true, + Status: operations.CreateIntegrationStoreDirectStatusAvailable.ToPointer(), + ExternalResourceID: "", + Product: operations.CreateIntegrationStoreDirectProduct{ + Value: operations.CreateIntegrationStoreDirectValue{ + AtBRANDAt7822: operations.ValueAtBRANDAt7822{}, + }, + }, + Secrets: []operations.CreateIntegrationStoreDirectSecret{}, + }, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go b/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go index 6345ec84..ef8fccde 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: 5448.83, - UpdatedAt: 4236.55, + CreatedAt: 7151.9, + UpdatedAt: 6027.63, 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 c611d2fb..ba5cc865 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/authtoken.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/authtoken.go @@ -97,6 +97,17 @@ type ScopeTeam struct { ExpiresAt *float64 `json:"expiresAt,omitempty"` } +func (s ScopeTeam) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *ScopeTeam) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"type", "teamId", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *ScopeTeam) GetType() TypeTeam { if o == nil { return TypeTeam("") @@ -191,6 +202,17 @@ type Sudo struct { ExpiresAt float64 `json:"expiresAt"` } +func (s Sudo) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *Sudo) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"origin", "expiresAt"}); err != nil { + return err + } + return nil +} + func (o *Sudo) GetOrigin() SudoOrigin { if o == nil { return SudoOrigin("") @@ -270,6 +292,17 @@ type ScopeUser struct { ExpiresAt *float64 `json:"expiresAt,omitempty"` } +func (s ScopeUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *ScopeUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"type", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *ScopeUser) GetType() AuthTokenTypeUser { if o == nil { return AuthTokenTypeUser("") @@ -339,20 +372,20 @@ func CreateScopeScopeTeam(scopeTeam ScopeTeam) Scope { func (u *Scope) UnmarshalJSON(data []byte) error { - var scopeUser ScopeUser = ScopeUser{} - if err := utils.UnmarshalJSON(data, &scopeUser, "", true, true); err == nil { - u.ScopeUser = &scopeUser - u.Type = ScopeTypeScopeUser - return nil - } - var scopeTeam ScopeTeam = ScopeTeam{} - if err := utils.UnmarshalJSON(data, &scopeTeam, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &scopeTeam, "", true, nil); err == nil { u.ScopeTeam = &scopeTeam u.Type = ScopeTypeScopeTeam return nil } + var scopeUser ScopeUser = ScopeUser{} + if err := utils.UnmarshalJSON(data, &scopeUser, "", true, nil); err == nil { + u.ScopeUser = &scopeUser + u.Type = ScopeTypeScopeUser + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Scope", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/authuser.go b/src/__tests__/mockserver/internal/sdk/models/components/authuser.go index d6ec4429..4dce2424 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/authuser.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/authuser.go @@ -191,6 +191,17 @@ type AuthUserSoftBlock struct { BlockedDueToOverageType *AuthUserBlockedDueToOverageType `json:"blockedDueToOverageType,omitempty"` } +func (a AuthUserSoftBlock) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserSoftBlock) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"blockedAt", "reason"}); err != nil { + return err + } + return nil +} + func (o *AuthUserSoftBlock) GetBlockedAt() float64 { if o == nil { return 0.0 @@ -216,12 +227,34 @@ func (o *AuthUserSoftBlock) GetBlockedDueToOverageType() *AuthUserBlockedDueToOv type AuthUserBilling struct { } +func (a AuthUserBilling) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserBilling) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + // AuthUserBuildEntitlements - An object containing infomation related to the amount of platform resources may be allocated to the User account. type AuthUserBuildEntitlements struct { // An object containing infomation related to the amount of platform resources may be allocated to the User account. EnhancedBuilds *bool `json:"enhancedBuilds,omitempty"` } +func (a AuthUserBuildEntitlements) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserBuildEntitlements) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + func (o *AuthUserBuildEntitlements) GetEnhancedBuilds() *bool { if o == nil { return nil @@ -268,6 +301,17 @@ type AuthUserBuildMachine struct { Memory *float64 `json:"memory,omitempty"` } +func (a AuthUserBuildMachine) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserBuildMachine) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + func (o *AuthUserBuildMachine) GetPurchaseType() *AuthUserPurchaseType { if o == nil { return nil @@ -308,6 +352,17 @@ type AuthUserSecurity struct { RateLimit *float64 `json:"rateLimit,omitempty"` } +func (a AuthUserSecurity) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserSecurity) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + func (o *AuthUserSecurity) GetCustomRules() *float64 { if o == nil { return nil @@ -392,6 +447,17 @@ type AuthUserResourceConfig struct { Security *AuthUserSecurity `json:"security,omitempty"` } +func (a AuthUserResourceConfig) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserResourceConfig) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + func (o *AuthUserResourceConfig) GetNodeType() *string { if o == nil { return nil @@ -660,6 +726,17 @@ type AuthUserActiveDashboardView struct { RecentsViewPreference *AuthUserRecentsViewPreference `json:"recentsViewPreference,omitempty"` } +func (a AuthUserActiveDashboardView) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserActiveDashboardView) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"scopeId"}); err != nil { + return err + } + return nil +} + func (o *AuthUserActiveDashboardView) GetScopeID() string { if o == nil { return "" @@ -723,14 +800,14 @@ func CreateAuthUserImportFlowGitNamespaceNumber(number float64) AuthUserImportFl func (u *AuthUserImportFlowGitNamespace) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = AuthUserImportFlowGitNamespaceTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = AuthUserImportFlowGitNamespaceTypeNumber return nil @@ -786,14 +863,14 @@ func CreateAuthUserImportFlowGitNamespaceIDNumber(number float64) AuthUserImport func (u *AuthUserImportFlowGitNamespaceID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = AuthUserImportFlowGitNamespaceIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = AuthUserImportFlowGitNamespaceIDTypeNumber return nil @@ -817,9 +894,9 @@ func (u AuthUserImportFlowGitNamespaceID) MarshalJSON() ([]byte, error) { type AuthUserImportFlowGitProvider string const ( - AuthUserImportFlowGitProviderGithub AuthUserImportFlowGitProvider = "github" AuthUserImportFlowGitProviderGitlab AuthUserImportFlowGitProvider = "gitlab" AuthUserImportFlowGitProviderBitbucket AuthUserImportFlowGitProvider = "bitbucket" + AuthUserImportFlowGitProviderGithub AuthUserImportFlowGitProvider = "github" AuthUserImportFlowGitProviderGithubLimited AuthUserImportFlowGitProvider = "github-limited" AuthUserImportFlowGitProviderGithubCustomHost AuthUserImportFlowGitProvider = "github-custom-host" ) @@ -833,12 +910,12 @@ func (e *AuthUserImportFlowGitProvider) UnmarshalJSON(data []byte) error { return err } switch v { - case "github": - fallthrough case "gitlab": fallthrough case "bitbucket": fallthrough + case "github": + fallthrough case "github-limited": fallthrough case "github-custom-host": @@ -884,14 +961,14 @@ func CreateAuthUserGitNamespaceIDNumber(number float64) AuthUserGitNamespaceID { func (u *AuthUserGitNamespaceID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = AuthUserGitNamespaceIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = AuthUserGitNamespaceIDTypeNumber return nil @@ -917,6 +994,17 @@ type AuthUserPreferredScopesAndGitNamespace struct { GitNamespaceID *AuthUserGitNamespaceID `json:"gitNamespaceId"` } +func (a AuthUserPreferredScopesAndGitNamespace) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserPreferredScopesAndGitNamespace) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"scopeId", "gitNamespaceId"}); err != nil { + return err + } + return nil +} + func (o *AuthUserPreferredScopesAndGitNamespace) GetScopeID() string { if o == nil { return "" @@ -936,6 +1024,17 @@ type AuthUserDismissal struct { CreatedAt float64 `json:"createdAt"` } +func (a AuthUserDismissal) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserDismissal) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"scopeId", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *AuthUserDismissal) GetScopeID() string { if o == nil { return "" @@ -956,6 +1055,17 @@ type AuthUserDismissedToast struct { Dismissals []AuthUserDismissal `json:"dismissals"` } +func (a AuthUserDismissedToast) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserDismissedToast) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"name", "dismissals"}); err != nil { + return err + } + return nil +} + func (o *AuthUserDismissedToast) GetName() string { if o == nil { return "" @@ -976,6 +1086,17 @@ type AuthUserFavoriteProjectsAndSpace struct { ProjectID string `json:"projectId"` } +func (a AuthUserFavoriteProjectsAndSpace) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserFavoriteProjectsAndSpace) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"teamId", "projectId"}); err != nil { + return err + } + return nil +} + func (o *AuthUserFavoriteProjectsAndSpace) GetTeamID() string { if o == nil { return "" @@ -995,6 +1116,17 @@ type AuthUserRemoteCaching struct { Enabled *bool `json:"enabled,omitempty"` } +func (a AuthUserRemoteCaching) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserRemoteCaching) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + func (o *AuthUserRemoteCaching) GetEnabled() *bool { if o == nil { return nil @@ -1007,6 +1139,17 @@ type AuthUserDataCache struct { ExcessBillingEnabled *bool `json:"excessBillingEnabled,omitempty"` } +func (a AuthUserDataCache) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserDataCache) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + func (o *AuthUserDataCache) GetExcessBillingEnabled() *bool { if o == nil { return nil @@ -1020,6 +1163,17 @@ type AuthUserWebAnalytics struct { IsCurrentlyBlocked bool `json:"isCurrentlyBlocked"` } +func (a AuthUserWebAnalytics) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserWebAnalytics) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"isCurrentlyBlocked"}); err != nil { + return err + } + return nil +} + func (o *AuthUserWebAnalytics) GetBlockedFrom() *float64 { if o == nil { return nil @@ -1046,6 +1200,17 @@ type AuthUserFeatureBlocks struct { WebAnalytics *AuthUserWebAnalytics `json:"webAnalytics,omitempty"` } +func (a AuthUserFeatureBlocks) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserFeatureBlocks) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + func (o *AuthUserFeatureBlocks) GetWebAnalytics() *AuthUserWebAnalytics { if o == nil { return nil @@ -1097,6 +1262,17 @@ type AuthUser struct { DefaultTeamID *string `json:"defaultTeamId"` } +func (a AuthUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"createdAt", "softBlock", "billing", "resourceConfig", "stagingPrefix", "hasTrialAvailable", "id", "email", "name", "username", "avatar", "defaultTeamId"}); err != nil { + return err + } + return nil +} + func (o *AuthUser) GetCreatedAt() float64 { if o == nil { return 0.0 diff --git a/src/__tests__/mockserver/internal/sdk/models/components/authuserlimited.go b/src/__tests__/mockserver/internal/sdk/models/components/authuserlimited.go index 30cecebb..ec63dd8e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/authuserlimited.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/authuserlimited.go @@ -2,6 +2,10 @@ package components +import ( + "mockserver/internal/sdk/utils" +) + // AuthUserLimited - A limited form of data for the currently authenticated User, due to the authentication token missing privileges to read the full User data. type AuthUserLimited struct { // Property indicating that this User data contains only limited information, due to the authentication token missing privileges to read the full User data. Re-login with email, GitHub, GitLab or Bitbucket in order to upgrade the authentication token with the necessary privileges. @@ -20,6 +24,17 @@ type AuthUserLimited struct { DefaultTeamID *string `json:"defaultTeamId"` } +func (a AuthUserLimited) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AuthUserLimited) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"limited", "id", "email", "name", "username", "avatar", "defaultTeamId"}); err != nil { + return err + } + return nil +} + func (o *AuthUserLimited) GetLimited() bool { if o == nil { return false diff --git a/src/__tests__/mockserver/internal/sdk/models/components/edgeconfigitemvalue.go b/src/__tests__/mockserver/internal/sdk/models/components/edgeconfigitemvalue.go index d1c25ebb..cf52f4a8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/edgeconfigitemvalue.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/edgeconfigitemvalue.go @@ -76,35 +76,35 @@ func CreateEdgeConfigItemValueArrayOfEdgeConfigItemValue(arrayOfEdgeConfigItemVa func (u *EdgeConfigItemValue) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = EdgeConfigItemValueTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = EdgeConfigItemValueTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = EdgeConfigItemValueTypeBoolean return nil } var mapOfEdgeConfigItemValue map[string]*EdgeConfigItemValue = map[string]*EdgeConfigItemValue{} - if err := utils.UnmarshalJSON(data, &mapOfEdgeConfigItemValue, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &mapOfEdgeConfigItemValue, "", true, nil); err == nil { u.MapOfEdgeConfigItemValue = mapOfEdgeConfigItemValue u.Type = EdgeConfigItemValueTypeMapOfEdgeConfigItemValue return nil } var arrayOfEdgeConfigItemValue []*EdgeConfigItemValue = []*EdgeConfigItemValue{} - if err := utils.UnmarshalJSON(data, &arrayOfEdgeConfigItemValue, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfEdgeConfigItemValue, "", true, nil); err == nil { u.ArrayOfEdgeConfigItemValue = arrayOfEdgeConfigItemValue u.Type = EdgeConfigItemValueTypeArrayOfEdgeConfigItemValue return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/flagjsonvalue.go b/src/__tests__/mockserver/internal/sdk/models/components/flagjsonvalue.go index 1a606b9b..b2248cee 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/flagjsonvalue.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/flagjsonvalue.go @@ -76,35 +76,35 @@ func CreateFlagJSONValueMapOfFlagJSONValue(mapOfFlagJSONValue map[string]*FlagJS func (u *FlagJSONValue) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = FlagJSONValueTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = FlagJSONValueTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = FlagJSONValueTypeBoolean return nil } var arrayOfFlagJSONValue []*FlagJSONValue = []*FlagJSONValue{} - if err := utils.UnmarshalJSON(data, &arrayOfFlagJSONValue, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfFlagJSONValue, "", true, nil); err == nil { u.ArrayOfFlagJSONValue = arrayOfFlagJSONValue u.Type = FlagJSONValueTypeArrayOfFlagJSONValue return nil } var mapOfFlagJSONValue map[string]*FlagJSONValue = map[string]*FlagJSONValue{} - if err := utils.UnmarshalJSON(data, &mapOfFlagJSONValue, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &mapOfFlagJSONValue, "", true, nil); err == nil { u.MapOfFlagJSONValue = mapOfFlagJSONValue u.Type = FlagJSONValueTypeMapOfFlagJSONValue return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/pagination.go b/src/__tests__/mockserver/internal/sdk/models/components/pagination.go index bc98c93d..b26178d9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/pagination.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/pagination.go @@ -2,6 +2,10 @@ package components +import ( + "mockserver/internal/sdk/utils" +) + // Pagination - This object contains information related to the pagination of the current request, including the necessary parameters to get the next or previous page of data. type Pagination struct { // Amount of items in the current page. @@ -12,6 +16,17 @@ type Pagination struct { Prev *float64 `json:"prev"` } +func (p Pagination) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Pagination) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"count", "next", "prev"}); err != nil { + return err + } + return nil +} + func (o *Pagination) GetCount() float64 { if o == nil { return 0.0 diff --git a/src/__tests__/mockserver/internal/sdk/models/components/team.go b/src/__tests__/mockserver/internal/sdk/models/components/team.go index 58034148..3105abf3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/team.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/team.go @@ -13,6 +13,17 @@ type Connect struct { Enabled *bool `json:"enabled,omitempty"` } +func (c Connect) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Connect) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Connect) GetEnabled() *bool { if o == nil { return nil @@ -34,6 +45,17 @@ type TeamConnection struct { LastReceivedWebhookEvent *float64 `json:"lastReceivedWebhookEvent,omitempty"` } +func (t TeamConnection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamConnection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"type", "status", "state", "connectedAt"}); err != nil { + return err + } + return nil +} + func (o *TeamConnection) GetType() string { if o == nil { return "" @@ -81,6 +103,17 @@ type TeamDirectory struct { LastReceivedWebhookEvent *float64 `json:"lastReceivedWebhookEvent,omitempty"` } +func (t TeamDirectory) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamDirectory) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"type", "state", "connectedAt"}); err != nil { + return err + } + return nil +} + func (o *TeamDirectory) GetType() string { if o == nil { return "" @@ -188,6 +221,17 @@ type Roles struct { AccessGroupID string `json:"accessGroupId"` } +func (r Roles) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Roles) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"accessGroupId"}); err != nil { + return err + } + return nil +} + func (o *Roles) GetAccessGroupID() string { if o == nil { return "" @@ -230,14 +274,14 @@ func CreateRolesUnionRolesEnum(rolesEnum RolesEnum) RolesUnion { func (u *RolesUnion) UnmarshalJSON(data []byte) error { var roles Roles = Roles{} - if err := utils.UnmarshalJSON(data, &roles, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &roles, "", true, nil); err == nil { u.Roles = &roles u.Type = RolesUnionTypeRoles return nil } var rolesEnum RolesEnum = RolesEnum("") - if err := utils.UnmarshalJSON(data, &rolesEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &rolesEnum, "", true, nil); err == nil { u.RolesEnum = &rolesEnum u.Type = RolesUnionTypeRolesEnum return nil @@ -272,6 +316,17 @@ type TeamSaml struct { Roles map[string]RolesUnion `json:"roles,omitempty"` } +func (t TeamSaml) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamSaml) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"enforced"}); err != nil { + return err + } + return nil +} + func (o *TeamSaml) GetConnection() *TeamConnection { if o == nil { return nil @@ -311,6 +366,17 @@ type TeamBuildEntitlements struct { EnhancedBuilds *bool `json:"enhancedBuilds,omitempty"` } +func (t TeamBuildEntitlements) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamBuildEntitlements) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { + return err + } + return nil +} + func (o *TeamBuildEntitlements) GetEnhancedBuilds() *bool { if o == nil { return nil @@ -336,6 +402,17 @@ type TeamResourceConfig struct { BuildEntitlements *TeamBuildEntitlements `json:"buildEntitlements,omitempty"` } +func (t TeamResourceConfig) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamResourceConfig) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { + return err + } + return nil +} + func (o *TeamResourceConfig) GetConcurrentBuilds() *float64 { if o == nil { return nil @@ -427,14 +504,14 @@ func CreateDisableHardAutoBlocksBoolean(boolean bool) DisableHardAutoBlocks { func (u *DisableHardAutoBlocks) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = DisableHardAutoBlocksTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = DisableHardAutoBlocksTypeBoolean return nil @@ -460,6 +537,17 @@ type TeamRemoteCaching struct { Enabled *bool `json:"enabled,omitempty"` } +func (t TeamRemoteCaching) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamRemoteCaching) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { + return err + } + return nil +} + func (o *TeamRemoteCaching) GetEnabled() *bool { if o == nil { return nil @@ -471,6 +559,17 @@ type TeamPasswordProtection struct { DeploymentType string `json:"deploymentType"` } +func (t TeamPasswordProtection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamPasswordProtection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *TeamPasswordProtection) GetDeploymentType() string { if o == nil { return "" @@ -482,6 +581,17 @@ type TeamSsoProtection struct { DeploymentType string `json:"deploymentType"` } +func (t TeamSsoProtection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamSsoProtection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *TeamSsoProtection) GetDeploymentType() string { if o == nil { return "" @@ -495,6 +605,17 @@ type DefaultDeploymentProtection struct { SsoProtection *TeamSsoProtection `json:"ssoProtection,omitempty"` } +func (d DefaultDeploymentProtection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DefaultDeploymentProtection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { + return err + } + return nil +} + func (o *DefaultDeploymentProtection) GetPasswordProtection() *TeamPasswordProtection { if o == nil { return nil @@ -509,6 +630,53 @@ func (o *DefaultDeploymentProtection) GetSsoProtection() *TeamSsoProtection { return o.SsoProtection } +// DefaultExpirationSettings - Default deployment expiration settings for this team +type DefaultExpirationSettings struct { + Expiration *string `json:"expiration,omitempty"` + ExpirationProduction *string `json:"expirationProduction,omitempty"` + ExpirationCanceled *string `json:"expirationCanceled,omitempty"` + ExpirationErrored *string `json:"expirationErrored,omitempty"` +} + +func (d DefaultExpirationSettings) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DefaultExpirationSettings) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { + return err + } + return nil +} + +func (o *DefaultExpirationSettings) GetExpiration() *string { + if o == nil { + return nil + } + return o.Expiration +} + +func (o *DefaultExpirationSettings) GetExpirationProduction() *string { + if o == nil { + return nil + } + return o.ExpirationProduction +} + +func (o *DefaultExpirationSettings) GetExpirationCanceled() *string { + if o == nil { + return nil + } + return o.ExpirationCanceled +} + +func (o *DefaultExpirationSettings) GetExpirationErrored() *string { + if o == nil { + return nil + } + return o.ExpirationErrored +} + // TeamEnablePreviewFeedback - Whether toolbar is enabled on preview deployments type TeamEnablePreviewFeedback string @@ -622,6 +790,17 @@ type IPBucket struct { SupportUntil *float64 `json:"supportUntil,omitempty"` } +func (i IPBucket) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *IPBucket) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"bucket"}); err != nil { + return err + } + return nil +} + func (o *IPBucket) GetBucket() string { if o == nil { return "" @@ -640,6 +819,17 @@ type TeamEntitlement struct { Entitlement string `json:"entitlement"` } +func (t TeamEntitlement) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamEntitlement) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"entitlement"}); err != nil { + return err + } + return nil +} + func (o *TeamEntitlement) GetEntitlement() string { if o == nil { return "" @@ -738,6 +928,7 @@ func (e *TeamTeamRole) UnmarshalJSON(data []byte) error { type TeamTeamPermission string const ( + TeamTeamPermissionIntegrationManager TeamTeamPermission = "IntegrationManager" TeamTeamPermissionCreateProject TeamTeamPermission = "CreateProject" TeamTeamPermissionFullProductionDeployment TeamTeamPermission = "FullProductionDeployment" TeamTeamPermissionUsageViewer TeamTeamPermission = "UsageViewer" @@ -757,6 +948,8 @@ func (e *TeamTeamPermission) UnmarshalJSON(data []byte) error { return err } switch v { + case "IntegrationManager": + fallthrough case "CreateProject": fallthrough case "FullProductionDeployment": @@ -867,14 +1060,14 @@ func CreateTeamGitUserID2Number(number float64) TeamGitUserID2 { func (u *TeamGitUserID2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = TeamGitUserID2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = TeamGitUserID2TypeNumber return nil @@ -909,6 +1102,17 @@ type TeamJoinedFrom2 struct { DsyncConnectedAt *float64 `json:"dsyncConnectedAt,omitempty"` } +func (t TeamJoinedFrom2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamJoinedFrom2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"origin"}); err != nil { + return err + } + return nil +} + func (o *TeamJoinedFrom2) GetOrigin() TeamOrigin2 { if o == nil { return TeamOrigin2("") @@ -1001,6 +1205,17 @@ type TeamMembership struct { JoinedFrom *TeamJoinedFrom2 `json:"joinedFrom,omitempty"` } +func (t TeamMembership) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamMembership) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"confirmed", "role", "createdAt", "created"}); err != nil { + return err + } + return nil +} + func (o *TeamMembership) GetUID() *string { if o == nil { return nil @@ -1097,12 +1312,16 @@ type Team struct { StagingPrefix string `json:"stagingPrefix"` ResourceConfig *TeamResourceConfig `json:"resourceConfig,omitempty"` // The hostname that is current set as preview deployment suffix. - PreviewDeploymentSuffix *string `json:"previewDeploymentSuffix,omitempty"` - DisableHardAutoBlocks *DisableHardAutoBlocks `json:"disableHardAutoBlocks,omitempty"` + PreviewDeploymentSuffix *string `json:"previewDeploymentSuffix,omitempty"` + // Whether the team is a platform team. + Platform *bool `json:"platform,omitempty"` + DisableHardAutoBlocks *DisableHardAutoBlocks `json:"disableHardAutoBlocks,omitempty"` // Is remote caching enabled for this team RemoteCaching *TeamRemoteCaching `json:"remoteCaching,omitempty"` // Default deployment protection for this team DefaultDeploymentProtection *DefaultDeploymentProtection `json:"defaultDeploymentProtection,omitempty"` + // Default deployment expiration settings for this team + DefaultExpirationSettings *DefaultExpirationSettings `json:"defaultExpirationSettings,omitempty"` // Whether toolbar is enabled on preview deployments EnablePreviewFeedback *TeamEnablePreviewFeedback `json:"enablePreviewFeedback,omitempty"` // Whether toolbar is enabled on production deployments @@ -1134,7 +1353,7 @@ func (t Team) MarshalJSON() ([]byte, error) { } func (t *Team) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, true); err != nil { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"creatorId", "updatedAt", "description", "stagingPrefix", "id", "slug", "name", "avatar", "membership", "createdAt"}); err != nil { return err } return nil @@ -1210,6 +1429,13 @@ func (o *Team) GetPreviewDeploymentSuffix() *string { return o.PreviewDeploymentSuffix } +func (o *Team) GetPlatform() *bool { + if o == nil { + return nil + } + return o.Platform +} + func (o *Team) GetDisableHardAutoBlocks() *DisableHardAutoBlocks { if o == nil { return nil @@ -1231,6 +1457,13 @@ func (o *Team) GetDefaultDeploymentProtection() *DefaultDeploymentProtection { return o.DefaultDeploymentProtection } +func (o *Team) GetDefaultExpirationSettings() *DefaultExpirationSettings { + if o == nil { + return nil + } + return o.DefaultExpirationSettings +} + func (o *Team) GetEnablePreviewFeedback() *TeamEnablePreviewFeedback { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/teamlimited.go b/src/__tests__/mockserver/internal/sdk/models/components/teamlimited.go index eea43772..f5a5efef 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/teamlimited.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/teamlimited.go @@ -49,6 +49,17 @@ type TeamLimitedConnection struct { LastReceivedWebhookEvent *float64 `json:"lastReceivedWebhookEvent,omitempty"` } +func (t TeamLimitedConnection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamLimitedConnection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"type", "status", "state", "connectedAt"}); err != nil { + return err + } + return nil +} + func (o *TeamLimitedConnection) GetType() string { if o == nil { return "" @@ -96,6 +107,17 @@ type TeamLimitedDirectory struct { LastReceivedWebhookEvent *float64 `json:"lastReceivedWebhookEvent,omitempty"` } +func (t TeamLimitedDirectory) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamLimitedDirectory) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"type", "state", "connectedAt"}); err != nil { + return err + } + return nil +} + func (o *TeamLimitedDirectory) GetType() string { if o == nil { return "" @@ -134,6 +156,17 @@ type TeamLimitedSaml struct { Enforced bool `json:"enforced"` } +func (t TeamLimitedSaml) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamLimitedSaml) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"enforced"}); err != nil { + return err + } + return nil +} + func (o *TeamLimitedSaml) GetConnection() *TeamLimitedConnection { if o == nil { return nil @@ -159,6 +192,17 @@ type TeamLimitedEntitlement struct { Entitlement string `json:"entitlement"` } +func (t TeamLimitedEntitlement) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamLimitedEntitlement) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"entitlement"}); err != nil { + return err + } + return nil +} + func (o *TeamLimitedEntitlement) GetEntitlement() string { if o == nil { return "" @@ -257,6 +301,7 @@ func (e *TeamLimitedTeamRole) UnmarshalJSON(data []byte) error { type TeamLimitedTeamPermission string const ( + TeamLimitedTeamPermissionIntegrationManager TeamLimitedTeamPermission = "IntegrationManager" TeamLimitedTeamPermissionCreateProject TeamLimitedTeamPermission = "CreateProject" TeamLimitedTeamPermissionFullProductionDeployment TeamLimitedTeamPermission = "FullProductionDeployment" TeamLimitedTeamPermissionUsageViewer TeamLimitedTeamPermission = "UsageViewer" @@ -276,6 +321,8 @@ func (e *TeamLimitedTeamPermission) UnmarshalJSON(data []byte) error { return err } switch v { + case "IntegrationManager": + fallthrough case "CreateProject": fallthrough case "FullProductionDeployment": @@ -386,14 +433,14 @@ func CreateTeamLimitedGitUserIDNumber(number float64) TeamLimitedGitUserID { func (u *TeamLimitedGitUserID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = TeamLimitedGitUserIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = TeamLimitedGitUserIDTypeNumber return nil @@ -428,6 +475,17 @@ type TeamLimitedJoinedFrom struct { DsyncConnectedAt *float64 `json:"dsyncConnectedAt,omitempty"` } +func (t TeamLimitedJoinedFrom) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamLimitedJoinedFrom) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"origin"}); err != nil { + return err + } + return nil +} + func (o *TeamLimitedJoinedFrom) GetOrigin() TeamLimitedOrigin { if o == nil { return TeamLimitedOrigin("") @@ -520,6 +578,17 @@ type TeamLimitedMembership struct { JoinedFrom *TeamLimitedJoinedFrom `json:"joinedFrom,omitempty"` } +func (t TeamLimitedMembership) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamLimitedMembership) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"confirmed", "role", "createdAt", "created"}); err != nil { + return err + } + return nil +} + func (o *TeamLimitedMembership) GetUID() *string { if o == nil { return nil @@ -618,6 +687,17 @@ type TeamLimited struct { CreatedAt float64 `json:"createdAt"` } +func (t TeamLimited) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamLimited) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"limited", "limitedBy", "id", "slug", "name", "avatar", "membership", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *TeamLimited) GetLimited() bool { if o == nil { return false diff --git a/src/__tests__/mockserver/internal/sdk/models/components/userevent.go b/src/__tests__/mockserver/internal/sdk/models/components/userevent.go index 7b3faecc..5d31bc85 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/userevent.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/userevent.go @@ -199,6 +199,17 @@ type PrincipalApp struct { Name string `json:"name"` } +func (p PrincipalApp) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PrincipalApp) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"type", "clientId", "name"}); err != nil { + return err + } + return nil +} + func (o *PrincipalApp) GetType() PrincipalTypeApp { if o == nil { return PrincipalTypeApp("") @@ -253,6 +264,17 @@ type PrincipalUser struct { Username string `json:"username"` } +func (p PrincipalUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PrincipalUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"avatar", "email", "uid", "username"}); err != nil { + return err + } + return nil +} + func (o *PrincipalUser) GetType() *PrincipalTypeUser { if o == nil { return nil @@ -329,20 +351,20 @@ func CreatePrincipalPrincipalApp(principalApp PrincipalApp) Principal { func (u *Principal) UnmarshalJSON(data []byte) error { - var principalApp PrincipalApp = PrincipalApp{} - if err := utils.UnmarshalJSON(data, &principalApp, "", true, true); err == nil { - u.PrincipalApp = &principalApp - u.Type = PrincipalTypePrincipalApp - return nil - } - var principalUser PrincipalUser = PrincipalUser{} - if err := utils.UnmarshalJSON(data, &principalUser, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &principalUser, "", true, nil); err == nil { u.PrincipalUser = &principalUser u.Type = PrincipalTypePrincipalUser return nil } + var principalApp PrincipalApp = PrincipalApp{} + if err := utils.UnmarshalJSON(data, &principalApp, "", true, nil); err == nil { + u.PrincipalApp = &principalApp + u.Type = PrincipalTypePrincipalApp + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Principal", string(data)) } @@ -388,6 +410,17 @@ type ViaApp struct { Name string `json:"name"` } +func (v ViaApp) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(v, "", false) +} + +func (v *ViaApp) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &v, "", false, []string{"type", "clientId", "name"}); err != nil { + return err + } + return nil +} + func (o *ViaApp) GetType() ViaTypeApp { if o == nil { return ViaTypeApp("") @@ -442,6 +475,17 @@ type ViaUser struct { Username string `json:"username"` } +func (v ViaUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(v, "", false) +} + +func (v *ViaUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &v, "", false, []string{"avatar", "email", "uid", "username"}); err != nil { + return err + } + return nil +} + func (o *ViaUser) GetType() *ViaTypeUser { if o == nil { return nil @@ -518,20 +562,20 @@ func CreateViaViaApp(viaApp ViaApp) Via { func (u *Via) UnmarshalJSON(data []byte) error { - var viaApp ViaApp = ViaApp{} - if err := utils.UnmarshalJSON(data, &viaApp, "", true, true); err == nil { - u.ViaApp = &viaApp - u.Type = ViaTypeViaApp - return nil - } - var viaUser ViaUser = ViaUser{} - if err := utils.UnmarshalJSON(data, &viaUser, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &viaUser, "", true, nil); err == nil { u.ViaUser = &viaUser u.Type = ViaTypeViaUser return nil } + var viaApp ViaApp = ViaApp{} + if err := utils.UnmarshalJSON(data, &viaApp, "", true, nil); err == nil { + u.ViaApp = &viaApp + u.Type = ViaTypeViaApp + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Via", string(data)) } @@ -635,8 +679,8 @@ func (e *AuthMethod) UnmarshalJSON(data []byte) error { } } -// Payload158 - The payload of the event, if requested. -type Payload158 struct { +// Payload161 - The payload of the event, if requested. +type Payload161 struct { GrantType GrantType `json:"grantType"` AppName string `json:"appName"` // access_token TTL @@ -647,42 +691,53 @@ type Payload158 struct { AuthMethod AuthMethod `json:"authMethod"` } -func (o *Payload158) GetGrantType() GrantType { +func (p Payload161) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload161) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"grantType", "appName", "atTTL", "scope", "authMethod"}); err != nil { + return err + } + return nil +} + +func (o *Payload161) GetGrantType() GrantType { if o == nil { return GrantType("") } return o.GrantType } -func (o *Payload158) GetAppName() string { +func (o *Payload161) GetAppName() string { if o == nil { return "" } return o.AppName } -func (o *Payload158) GetAtTTL() float64 { +func (o *Payload161) GetAtTTL() float64 { if o == nil { return 0.0 } return o.AtTTL } -func (o *Payload158) GetRtTTL() *float64 { +func (o *Payload161) GetRtTTL() *float64 { if o == nil { return nil } return o.RtTTL } -func (o *Payload158) GetScope() string { +func (o *Payload161) GetScope() string { if o == nil { return "" } return o.Scope } -func (o *Payload158) GetAuthMethod() AuthMethod { +func (o *Payload161) GetAuthMethod() AuthMethod { if o == nil { return AuthMethod("") } @@ -694,6 +749,17 @@ type UserEventTeam10 struct { Name string `json:"name"` } +func (u UserEventTeam10) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam10) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam10) GetID() string { if o == nil { return "" @@ -713,6 +779,17 @@ type Configuration8 struct { Name *string `json:"name,omitempty"` } +func (c Configuration8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Configuration8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Configuration8) GetID() string { if o == nil { return "" @@ -732,6 +809,17 @@ type Peering3 struct { Name *string `json:"name,omitempty"` } +func (p Peering3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Peering3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Peering3) GetID() string { if o == nil { return "" @@ -746,36 +834,47 @@ func (o *Peering3) GetName() *string { return o.Name } -// Payload157 - The payload of the event, if requested. -type Payload157 struct { +// Payload160 - The payload of the event, if requested. +type Payload160 struct { Team UserEventTeam10 `json:"team"` Configuration Configuration8 `json:"configuration"` Peering Peering3 `json:"peering"` NewName *string `json:"newName,omitempty"` } -func (o *Payload157) GetTeam() UserEventTeam10 { +func (p Payload160) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload160) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "configuration", "peering"}); err != nil { + return err + } + return nil +} + +func (o *Payload160) GetTeam() UserEventTeam10 { if o == nil { return UserEventTeam10{} } return o.Team } -func (o *Payload157) GetConfiguration() Configuration8 { +func (o *Payload160) GetConfiguration() Configuration8 { if o == nil { return Configuration8{} } return o.Configuration } -func (o *Payload157) GetPeering() Peering3 { +func (o *Payload160) GetPeering() Peering3 { if o == nil { return Peering3{} } return o.Peering } -func (o *Payload157) GetNewName() *string { +func (o *Payload160) GetNewName() *string { if o == nil { return nil } @@ -787,6 +886,17 @@ type UserEventTeam9 struct { Name string `json:"name"` } +func (u UserEventTeam9) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam9) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam9) GetID() string { if o == nil { return "" @@ -806,6 +916,17 @@ type Configuration7 struct { Name *string `json:"name,omitempty"` } +func (c Configuration7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Configuration7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Configuration7) GetID() string { if o == nil { return "" @@ -825,6 +946,17 @@ type Peering2 struct { Name *string `json:"name,omitempty"` } +func (p Peering2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Peering2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Peering2) GetID() string { if o == nil { return "" @@ -839,28 +971,39 @@ func (o *Peering2) GetName() *string { return o.Name } -// Payload156 - The payload of the event, if requested. -type Payload156 struct { +// Payload159 - The payload of the event, if requested. +type Payload159 struct { Team UserEventTeam9 `json:"team"` Configuration Configuration7 `json:"configuration"` Peering Peering2 `json:"peering"` } -func (o *Payload156) GetTeam() UserEventTeam9 { +func (p Payload159) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload159) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "configuration", "peering"}); err != nil { + return err + } + return nil +} + +func (o *Payload159) GetTeam() UserEventTeam9 { if o == nil { return UserEventTeam9{} } return o.Team } -func (o *Payload156) GetConfiguration() Configuration7 { +func (o *Payload159) GetConfiguration() Configuration7 { if o == nil { return Configuration7{} } return o.Configuration } -func (o *Payload156) GetPeering() Peering2 { +func (o *Payload159) GetPeering() Peering2 { if o == nil { return Peering2{} } @@ -872,6 +1015,17 @@ type UserEventTeam8 struct { Name string `json:"name"` } +func (u UserEventTeam8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam8) GetID() string { if o == nil { return "" @@ -891,6 +1045,17 @@ type Configuration6 struct { Name *string `json:"name,omitempty"` } +func (c Configuration6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Configuration6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Configuration6) GetID() string { if o == nil { return "" @@ -912,6 +1077,17 @@ type Peering1 struct { VpcID string `json:"vpcId"` } +func (p Peering1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Peering1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "accountId", "region", "vpcId"}); err != nil { + return err + } + return nil +} + func (o *Peering1) GetID() string { if o == nil { return "" @@ -940,132 +1116,268 @@ func (o *Peering1) GetVpcID() string { return o.VpcID } -// Payload155 - The payload of the event, if requested. -type Payload155 struct { +// Payload158 - The payload of the event, if requested. +type Payload158 struct { Team UserEventTeam8 `json:"team"` Configuration Configuration6 `json:"configuration"` Peering Peering1 `json:"peering"` } -func (o *Payload155) GetTeam() UserEventTeam8 { +func (p Payload158) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload158) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "configuration", "peering"}); err != nil { + return err + } + return nil +} + +func (o *Payload158) GetTeam() UserEventTeam8 { if o == nil { return UserEventTeam8{} } return o.Team } -func (o *Payload155) GetConfiguration() Configuration6 { +func (o *Payload158) GetConfiguration() Configuration6 { if o == nil { return Configuration6{} } return o.Configuration } -func (o *Payload155) GetPeering() Peering1 { +func (o *Payload158) GetPeering() Peering1 { if o == nil { return Peering1{} } return o.Peering } -// Payload154 - The payload of the event, if requested. -type Payload154 struct { - AppName string `json:"appName"` - AppID string `json:"appId"` +// Payload157 - The payload of the event, if requested. +type Payload157 struct { + AppName string `json:"appName"` + AppID *string `json:"appId,omitempty"` + InstallationID *string `json:"installationId,omitempty"` } -func (o *Payload154) GetAppName() string { +func (p Payload157) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload157) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"appName"}); err != nil { + return err + } + return nil +} + +func (o *Payload157) GetAppName() string { if o == nil { return "" } return o.AppName } -func (o *Payload154) GetAppID() string { +func (o *Payload157) GetAppID() *string { if o == nil { - return "" + return nil } return o.AppID } -// Payload153 - The payload of the event, if requested. -type Payload153 struct { - AppName string `json:"appName"` -} - -func (o *Payload153) GetAppName() string { +func (o *Payload157) GetInstallationID() *string { if o == nil { - return "" + return nil } - return o.AppName + return o.InstallationID } -// Payload152 - The payload of the event, if requested. -type Payload152 struct { - AppName string `json:"appName"` - NextScopes []string `json:"nextScopes"` +// Payload156 - The payload of the event, if requested. +type Payload156 struct { + AppName string `json:"appName"` + AppID *string `json:"appId,omitempty"` } -func (o *Payload152) GetAppName() string { +func (p Payload156) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload156) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"appName"}); err != nil { + return err + } + return nil +} + +func (o *Payload156) GetAppName() string { if o == nil { return "" } return o.AppName } -func (o *Payload152) GetNextScopes() []string { +func (o *Payload156) GetAppID() *string { if o == nil { - return []string{} + return nil } - return o.NextScopes + return o.AppID } -// Payload151 - The payload of the event, if requested. -type Payload151 struct { - AppName string `json:"appName"` - Scopes []string `json:"scopes"` +// Payload155 - The payload of the event, if requested. +type Payload155 struct { + AppName string `json:"appName"` + AppID string `json:"appId"` +} + +func (p Payload155) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload155) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"appName", "appId"}); err != nil { + return err + } + return nil } -func (o *Payload151) GetAppName() string { +func (o *Payload155) GetAppName() string { if o == nil { return "" } return o.AppName } -func (o *Payload151) GetScopes() []string { +func (o *Payload155) GetAppID() string { if o == nil { - return []string{} + return "" } - return o.Scopes + return o.AppID } -// Payload150 - The payload of the event, if requested. -type Payload150 struct { - OldName string `json:"oldName"` - NewName string `json:"newName"` +// Payload154 - The payload of the event, if requested. +type Payload154 struct { + AppName string `json:"appName"` } -func (o *Payload150) GetOldName() string { - if o == nil { - return "" +func (p Payload154) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload154) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"appName"}); err != nil { + return err } - return o.OldName + return nil } -func (o *Payload150) GetNewName() string { +func (o *Payload154) GetAppName() string { if o == nil { return "" } - return o.NewName + return o.AppName } -type Tier string - -const ( - TierPro Tier = "pro" - TierPlus Tier = "plus" -) +// Payload153 - The payload of the event, if requested. +type Payload153 struct { + AppName string `json:"appName"` + NextScopes []string `json:"nextScopes"` +} + +func (p Payload153) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload153) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"appName", "nextScopes"}); err != nil { + return err + } + return nil +} + +func (o *Payload153) GetAppName() string { + if o == nil { + return "" + } + return o.AppName +} + +func (o *Payload153) GetNextScopes() []string { + if o == nil { + return []string{} + } + return o.NextScopes +} + +// Payload152 - The payload of the event, if requested. +type Payload152 struct { + AppName string `json:"appName"` + Scopes []string `json:"scopes"` +} + +func (p Payload152) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload152) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"appName", "scopes"}); err != nil { + return err + } + return nil +} + +func (o *Payload152) GetAppName() string { + if o == nil { + return "" + } + return o.AppName +} + +func (o *Payload152) GetScopes() []string { + if o == nil { + return []string{} + } + return o.Scopes +} + +// Payload151 - The payload of the event, if requested. +type Payload151 struct { + OldName string `json:"oldName"` + NewName string `json:"newName"` +} + +func (p Payload151) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload151) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"oldName", "newName"}); err != nil { + return err + } + return nil +} + +func (o *Payload151) GetOldName() string { + if o == nil { + return "" + } + return o.OldName +} + +func (o *Payload151) GetNewName() string { + if o == nil { + return "" + } + return o.NewName +} + +type Tier string + +const ( + TierPro Tier = "pro" + TierPlus Tier = "plus" +) func (e Tier) ToPointer() *Tier { return &e @@ -1086,12 +1398,23 @@ func (e *Tier) UnmarshalJSON(data []byte) error { } } -// Payload149 - The payload of the event, if requested. -type Payload149 struct { +// Payload150 - The payload of the event, if requested. +type Payload150 struct { Tier Tier `json:"tier"` } -func (o *Payload149) GetTier() Tier { +func (p Payload150) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload150) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"tier"}); err != nil { + return err + } + return nil +} + +func (o *Payload150) GetTier() Tier { if o == nil { return Tier("") } @@ -1106,6 +1429,17 @@ type ProjectWebAnalytics struct { HasData *bool `json:"hasData,omitempty"` } +func (p ProjectWebAnalytics) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *ProjectWebAnalytics) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *ProjectWebAnalytics) GetID() string { if o == nil { return "" @@ -1149,6 +1483,17 @@ type PrevProjectWebAnalytics struct { HasData *bool `json:"hasData,omitempty"` } +func (p PrevProjectWebAnalytics) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PrevProjectWebAnalytics) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *PrevProjectWebAnalytics) GetID() string { if o == nil { return "" @@ -1184,36 +1529,47 @@ func (o *PrevProjectWebAnalytics) GetHasData() *bool { return o.HasData } -// Payload148 - The payload of the event, if requested. -type Payload148 struct { +// Payload149 - The payload of the event, if requested. +type Payload149 struct { ProjectID string `json:"projectId"` ProjectName string `json:"projectName"` ProjectWebAnalytics *ProjectWebAnalytics `json:"projectWebAnalytics,omitempty"` PrevProjectWebAnalytics *PrevProjectWebAnalytics `json:"prevProjectWebAnalytics,omitempty"` } -func (o *Payload148) GetProjectID() string { +func (p Payload149) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload149) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "projectName"}); err != nil { + return err + } + return nil +} + +func (o *Payload149) GetProjectID() string { if o == nil { return "" } return o.ProjectID } -func (o *Payload148) GetProjectName() string { +func (o *Payload149) GetProjectName() string { if o == nil { return "" } return o.ProjectName } -func (o *Payload148) GetProjectWebAnalytics() *ProjectWebAnalytics { +func (o *Payload149) GetProjectWebAnalytics() *ProjectWebAnalytics { if o == nil { return nil } return o.ProjectWebAnalytics } -func (o *Payload148) GetPrevProjectWebAnalytics() *PrevProjectWebAnalytics { +func (o *Payload149) GetPrevProjectWebAnalytics() *PrevProjectWebAnalytics { if o == nil { return nil } @@ -1226,6 +1582,17 @@ type Microfrontends2 struct { Enabled bool `json:"enabled"` } +func (m Microfrontends2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *Microfrontends2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *Microfrontends2) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -1262,6 +1629,17 @@ type Microfrontends1 struct { RouteObservabilityToThisProject *bool `json:"routeObservabilityToThisProject,omitempty"` } +func (m Microfrontends1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *Microfrontends1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *Microfrontends1) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -1338,20 +1716,20 @@ func CreateMicrofrontendsUnionMicrofrontends2(microfrontends2 Microfrontends2) M func (u *MicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var microfrontends2 Microfrontends2 = Microfrontends2{} - if err := utils.UnmarshalJSON(data, µfrontends2, "", true, true); err == nil { - u.Microfrontends2 = µfrontends2 - u.Type = MicrofrontendsUnionTypeMicrofrontends2 - return nil - } - var microfrontends1 Microfrontends1 = Microfrontends1{} - if err := utils.UnmarshalJSON(data, µfrontends1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, µfrontends1, "", true, nil); err == nil { u.Microfrontends1 = µfrontends1 u.Type = MicrofrontendsUnionTypeMicrofrontends1 return nil } + var microfrontends2 Microfrontends2 = Microfrontends2{} + if err := utils.UnmarshalJSON(data, µfrontends2, "", true, nil); err == nil { + u.Microfrontends2 = µfrontends2 + u.Type = MicrofrontendsUnionTypeMicrofrontends2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for MicrofrontendsUnion", string(data)) } @@ -1373,6 +1751,17 @@ type Project12 struct { Microfrontends *MicrofrontendsUnion `json:"microfrontends,omitempty"` } +func (p Project12) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project12) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *Project12) GetID() string { if o == nil { return "" @@ -1400,6 +1789,17 @@ type MicrofrontendsPrev2 struct { Enabled bool `json:"enabled"` } +func (m MicrofrontendsPrev2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MicrofrontendsPrev2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *MicrofrontendsPrev2) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -1436,6 +1836,17 @@ type MicrofrontendsPrev1 struct { RouteObservabilityToThisProject *bool `json:"routeObservabilityToThisProject,omitempty"` } +func (m MicrofrontendsPrev1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MicrofrontendsPrev1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *MicrofrontendsPrev1) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -1512,20 +1923,20 @@ func CreatePrevMicrofrontendsUnionMicrofrontendsPrev2(microfrontendsPrev2 Microf func (u *PrevMicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var microfrontendsPrev2 MicrofrontendsPrev2 = MicrofrontendsPrev2{} - if err := utils.UnmarshalJSON(data, µfrontendsPrev2, "", true, true); err == nil { - u.MicrofrontendsPrev2 = µfrontendsPrev2 - u.Type = PrevMicrofrontendsUnionTypeMicrofrontendsPrev2 - return nil - } - var microfrontendsPrev1 MicrofrontendsPrev1 = MicrofrontendsPrev1{} - if err := utils.UnmarshalJSON(data, µfrontendsPrev1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, µfrontendsPrev1, "", true, nil); err == nil { u.MicrofrontendsPrev1 = µfrontendsPrev1 u.Type = PrevMicrofrontendsUnionTypeMicrofrontendsPrev1 return nil } + var microfrontendsPrev2 MicrofrontendsPrev2 = MicrofrontendsPrev2{} + if err := utils.UnmarshalJSON(data, µfrontendsPrev2, "", true, nil); err == nil { + u.MicrofrontendsPrev2 = µfrontendsPrev2 + u.Type = PrevMicrofrontendsUnionTypeMicrofrontendsPrev2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for PrevMicrofrontendsUnion", string(data)) } @@ -1545,6 +1956,17 @@ type PrevProject struct { Microfrontends *PrevMicrofrontendsUnion `json:"microfrontends,omitempty"` } +func (p PrevProject) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PrevProject) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *PrevProject) GetMicrofrontends() *PrevMicrofrontendsUnion { if o == nil { return nil @@ -1556,6 +1978,17 @@ type Prev2 struct { Project PrevProject `json:"project"` } +func (p Prev2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Prev2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"project"}); err != nil { + return err + } + return nil +} + func (o *Prev2) GetProject() PrevProject { if o == nil { return PrevProject{} @@ -1569,6 +2002,17 @@ type Group2 struct { Name string `json:"name"` } +func (g Group2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *Group2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "slug", "name"}); err != nil { + return err + } + return nil +} + func (o *Group2) GetID() string { if o == nil { return "" @@ -1590,28 +2034,39 @@ func (o *Group2) GetName() string { return o.Name } -// Payload147 - The payload of the event, if requested. -type Payload147 struct { +// Payload148 - The payload of the event, if requested. +type Payload148 struct { Project Project12 `json:"project"` Prev Prev2 `json:"prev"` Group Group2 `json:"group"` } -func (o *Payload147) GetProject() Project12 { +func (p Payload148) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload148) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"project", "prev", "group"}); err != nil { + return err + } + return nil +} + +func (o *Payload148) GetProject() Project12 { if o == nil { return Project12{} } return o.Project } -func (o *Payload147) GetPrev() Prev2 { +func (o *Payload148) GetPrev() Prev2 { if o == nil { return Prev2{} } return o.Prev } -func (o *Payload147) GetGroup() Group2 { +func (o *Payload148) GetGroup() Group2 { if o == nil { return Group2{} } @@ -1623,6 +2078,17 @@ type Project11 struct { Name string `json:"name"` } +func (p Project11) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project11) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *Project11) GetID() string { if o == nil { return "" @@ -1643,6 +2109,17 @@ type Group1 struct { Name string `json:"name"` } +func (g Group1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *Group1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "slug", "name"}); err != nil { + return err + } + return nil +} + func (o *Group1) GetID() string { if o == nil { return "" @@ -1664,20 +2141,31 @@ func (o *Group1) GetName() string { return o.Name } -// Payload146 - The payload of the event, if requested. -type Payload146 struct { +// Payload147 - The payload of the event, if requested. +type Payload147 struct { Project Project11 `json:"project"` Group Group1 `json:"group"` } -func (o *Payload146) GetProject() Project11 { +func (p Payload147) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload147) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"project", "group"}); err != nil { + return err + } + return nil +} + +func (o *Payload147) GetProject() Project11 { if o == nil { return Project11{} } return o.Project } -func (o *Payload146) GetGroup() Group1 { +func (o *Payload147) GetGroup() Group1 { if o == nil { return Group1{} } @@ -1690,6 +2178,17 @@ type Prev1 struct { FallbackEnvironment string `json:"fallbackEnvironment"` } +func (p Prev1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Prev1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "slug", "fallbackEnvironment"}); err != nil { + return err + } + return nil +} + func (o *Prev1) GetName() string { if o == nil { return "" @@ -1711,8 +2210,8 @@ func (o *Prev1) GetFallbackEnvironment() string { return o.FallbackEnvironment } -// Payload145 - The payload of the event, if requested. -type Payload145 struct { +// Payload146 - The payload of the event, if requested. +type Payload146 struct { ID string `json:"id"` Slug *string `json:"slug,omitempty"` Name *string `json:"name,omitempty"` @@ -1720,63 +2219,85 @@ type Payload145 struct { Prev Prev1 `json:"prev"` } -func (o *Payload145) GetID() string { +func (p Payload146) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload146) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "prev"}); err != nil { + return err + } + return nil +} + +func (o *Payload146) GetID() string { if o == nil { return "" } return o.ID } -func (o *Payload145) GetSlug() *string { +func (o *Payload146) GetSlug() *string { if o == nil { return nil } return o.Slug } -func (o *Payload145) GetName() *string { +func (o *Payload146) GetName() *string { if o == nil { return nil } return o.Name } -func (o *Payload145) GetFallbackEnvironment() *string { +func (o *Payload146) GetFallbackEnvironment() *string { if o == nil { return nil } return o.FallbackEnvironment } -func (o *Payload145) GetPrev() Prev1 { +func (o *Payload146) GetPrev() Prev1 { if o == nil { return Prev1{} } return o.Prev } -// Payload144 - The payload of the event, if requested. -type Payload144 struct { +// Payload145 - The payload of the event, if requested. +type Payload145 struct { ID string `json:"id"` Slug string `json:"slug"` Name string `json:"name"` } -func (o *Payload144) GetID() string { +func (p Payload145) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload145) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "slug", "name"}); err != nil { + return err + } + return nil +} + +func (o *Payload145) GetID() string { if o == nil { return "" } return o.ID } -func (o *Payload144) GetSlug() string { +func (o *Payload145) GetSlug() string { if o == nil { return "" } return o.Slug } -func (o *Payload144) GetName() string { +func (o *Payload145) GetName() string { if o == nil { return "" } @@ -1809,111 +2330,186 @@ func (e *Action5) UnmarshalJSON(data []byte) error { } } -// Payload143 - The payload of the event, if requested. -type Payload143 struct { +// Payload144 - The payload of the event, if requested. +type Payload144 struct { Action Action5 `json:"action"` } -func (o *Payload143) GetAction() Action5 { +func (p Payload144) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload144) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"action"}); err != nil { + return err + } + return nil +} + +func (o *Payload144) GetAction() Action5 { if o == nil { return Action5("") } return o.Action } -// Payload142 - The payload of the event, if requested. -type Payload142 struct { +// Payload143 - The payload of the event, if requested. +type Payload143 struct { EdgeConfigID string `json:"edgeConfigId"` EdgeConfigSlug string `json:"edgeConfigSlug"` // ids of deleted tokens EdgeConfigTokenIds []string `json:"edgeConfigTokenIds"` } -func (o *Payload142) GetEdgeConfigID() string { +func (p Payload143) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload143) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"edgeConfigId", "edgeConfigSlug", "edgeConfigTokenIds"}); err != nil { + return err + } + return nil +} + +func (o *Payload143) GetEdgeConfigID() string { if o == nil { return "" } return o.EdgeConfigID } -func (o *Payload142) GetEdgeConfigSlug() string { +func (o *Payload143) GetEdgeConfigSlug() string { if o == nil { return "" } return o.EdgeConfigSlug } -func (o *Payload142) GetEdgeConfigTokenIds() []string { +func (o *Payload143) GetEdgeConfigTokenIds() []string { if o == nil { return []string{} } return o.EdgeConfigTokenIds } -// Payload141 - The payload of the event, if requested. -type Payload141 struct { +// Payload142 - The payload of the event, if requested. +type Payload142 struct { EdgeConfigID string `json:"edgeConfigId"` EdgeConfigSlug string `json:"edgeConfigSlug"` EdgeConfigTokenID string `json:"edgeConfigTokenId"` Label string `json:"label"` } -func (o *Payload141) GetEdgeConfigID() string { +func (p Payload142) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload142) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"edgeConfigId", "edgeConfigSlug", "edgeConfigTokenId", "label"}); err != nil { + return err + } + return nil +} + +func (o *Payload142) GetEdgeConfigID() string { if o == nil { return "" } return o.EdgeConfigID } -func (o *Payload141) GetEdgeConfigSlug() string { +func (o *Payload142) GetEdgeConfigSlug() string { if o == nil { return "" } return o.EdgeConfigSlug } -func (o *Payload141) GetEdgeConfigTokenID() string { +func (o *Payload142) GetEdgeConfigTokenID() string { if o == nil { return "" } return o.EdgeConfigTokenID } -func (o *Payload141) GetLabel() string { +func (o *Payload142) GetLabel() string { if o == nil { return "" } return o.Label } -// Payload140 - The payload of the event, if requested. -type Payload140 struct { +// Payload141 - The payload of the event, if requested. +type Payload141 struct { EdgeConfigID string `json:"edgeConfigId"` EdgeConfigSlug string `json:"edgeConfigSlug"` EdgeConfigDigest string `json:"edgeConfigDigest"` } -func (o *Payload140) GetEdgeConfigID() string { +func (p Payload141) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload141) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"edgeConfigId", "edgeConfigSlug", "edgeConfigDigest"}); err != nil { + return err + } + return nil +} + +func (o *Payload141) GetEdgeConfigID() string { if o == nil { return "" } return o.EdgeConfigID } -func (o *Payload140) GetEdgeConfigSlug() string { +func (o *Payload141) GetEdgeConfigSlug() string { if o == nil { return "" } return o.EdgeConfigSlug } -func (o *Payload140) GetEdgeConfigDigest() string { +func (o *Payload141) GetEdgeConfigDigest() string { if o == nil { return "" } return o.EdgeConfigDigest } +// Payload140 - The payload of the event, if requested. +type Payload140 struct { + ProjectName string `json:"projectName"` + Urls []string `json:"urls"` +} + +func (p Payload140) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload140) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "urls"}); err != nil { + return err + } + return nil +} + +func (o *Payload140) GetProjectName() string { + if o == nil { + return "" + } + return o.ProjectName +} + +func (o *Payload140) GetUrls() []string { + if o == nil { + return []string{} + } + return o.Urls +} + // Payload139 - The payload of the event, if requested. type Payload139 struct { ProjectName string `json:"projectName"` @@ -1921,6 +2517,17 @@ type Payload139 struct { Target *string `json:"target,omitempty"` } +func (p Payload139) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload139) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "tags"}); err != nil { + return err + } + return nil +} + func (o *Payload139) GetProjectName() string { if o == nil { return "" @@ -1979,6 +2586,17 @@ type Project10 struct { InvitedUserID *string `json:"invitedUserId,omitempty"` } +func (p Project10) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project10) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "role", "invitedUserName"}); err != nil { + return err + } + return nil +} + func (o *Project10) GetName() string { if o == nil { return "" @@ -2019,6 +2637,17 @@ type Payload138 struct { Project Project10 `json:"project"` } +func (p Payload138) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload138) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"project"}); err != nil { + return err + } + return nil +} + func (o *Payload138) GetProject() Project10 { if o == nil { return Project10{} @@ -2031,6 +2660,17 @@ type Project9 struct { Name string `json:"name"` } +func (p Project9) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project9) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *Project9) GetID() string { if o == nil { return "" @@ -2111,6 +2751,17 @@ type ProjectMembership2 struct { PreviousRole *ProjectMembershipPreviousRole `json:"previousRole,omitempty"` } +func (p ProjectMembership2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *ProjectMembership2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *ProjectMembership2) GetRole() *ProjectMembershipRole2 { if o == nil { return nil @@ -2152,6 +2803,17 @@ type Payload137 struct { ProjectMembership ProjectMembership2 `json:"projectMembership"` } +func (p Payload137) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload137) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"project", "projectMembership"}); err != nil { + return err + } + return nil +} + func (o *Payload137) GetProject() Project9 { if o == nil { return Project9{} @@ -2171,6 +2833,17 @@ type Project8 struct { ID *string `json:"id,omitempty"` } +func (p Project8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Project8) GetName() string { if o == nil { return "" @@ -2221,6 +2894,17 @@ type RemovedMembership struct { Username *string `json:"username,omitempty"` } +func (r RemovedMembership) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemovedMembership) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"role", "uid", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *RemovedMembership) GetRole() RemovedMembershipRole { if o == nil { return RemovedMembershipRole("") @@ -2255,6 +2939,17 @@ type Payload136 struct { RemovedMembership RemovedMembership `json:"removedMembership"` } +func (p Payload136) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload136) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"project", "removedMembership"}); err != nil { + return err + } + return nil +} + func (o *Payload136) GetProject() Project8 { if o == nil { return Project8{} @@ -2274,6 +2969,17 @@ type Project7 struct { ID *string `json:"id,omitempty"` } +func (p Project7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Project7) GetName() string { if o == nil { return "" @@ -2324,6 +3030,17 @@ type ProjectMembership1 struct { Username *string `json:"username,omitempty"` } +func (p ProjectMembership1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *ProjectMembership1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"role", "uid", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *ProjectMembership1) GetRole() ProjectMembershipRole1 { if o == nil { return ProjectMembershipRole1("") @@ -2358,6 +3075,17 @@ type Payload135 struct { ProjectMembership *ProjectMembership1 `json:"projectMembership"` } +func (p Payload135) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload135) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"project", "projectMembership"}); err != nil { + return err + } + return nil +} + func (o *Payload135) GetProject() Project7 { if o == nil { return Project7{} @@ -2380,6 +3108,17 @@ type Payload134 struct { TransferID *string `json:"transferId,omitempty"` } +func (p Payload134) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload134) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"previousProjectName", "newProjectName", "originAccountName"}); err != nil { + return err + } + return nil +} + func (o *Payload134) GetPreviousProjectName() string { if o == nil { return "" @@ -2416,6 +3155,17 @@ type Payload133 struct { TransferID *string `json:"transferId,omitempty"` } +func (p Payload133) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload133) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"previousProjectName", "newProjectName", "destinationAccountName"}); err != nil { + return err + } + return nil +} + func (o *Payload133) GetPreviousProjectName() string { if o == nil { return "" @@ -2451,6 +3201,17 @@ type Payload132 struct { TransferID *string `json:"transferId,omitempty"` } +func (p Payload132) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload132) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "destinationAccountName"}); err != nil { + return err + } + return nil +} + func (o *Payload132) GetProjectName() string { if o == nil { return "" @@ -2482,6 +3243,17 @@ type Payload131 struct { TransferID *string `json:"transferId,omitempty"` } +func (p Payload131) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload131) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "projectName", "originAccountName", "destinationAccountName", "destinationAccountId"}); err != nil { + return err + } + return nil +} + func (o *Payload131) GetProjectID() string { if o == nil { return "" @@ -2534,6 +3306,17 @@ type Payload130 struct { BitbucketUsername *string `json:"bitbucketUsername,omitempty"` } +func (p Payload130) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload130) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"requestedTeamName"}); err != nil { + return err + } + return nil +} + func (o *Payload130) GetRequestedTeamName() string { if o == nil { return "" @@ -2586,6 +3369,17 @@ type Payload129 struct { BitbucketUsername *string `json:"bitbucketUsername,omitempty"` } +func (p Payload129) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload129) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"teamName"}); err != nil { + return err + } + return nil +} + func (o *Payload129) GetTeamName() string { if o == nil { return "" @@ -2640,6 +3434,17 @@ type Payload128 struct { TeamID *string `json:"teamId,omitempty"` } +func (p Payload128) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload128) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"teamName"}); err != nil { + return err + } + return nil +} + func (o *Payload128) GetTeamName() string { if o == nil { return "" @@ -2702,10 +3507,21 @@ type Payload127 struct { Currency *string `json:"currency,omitempty"` } -func (o *Payload127) GetPrice() *float64 { - if o == nil { - return nil - } +func (p Payload127) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload127) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +func (o *Payload127) GetPrice() *float64 { + if o == nil { + return nil + } return o.Price } @@ -2722,6 +3538,17 @@ type Payload126 struct { PreviousPreviewDeploymentSuffix *string `json:"previousPreviewDeploymentSuffix,omitempty"` } +func (p Payload126) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload126) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload126) GetPreviewDeploymentSuffix() *string { if o == nil { return nil @@ -2743,6 +3570,17 @@ type Payload125 struct { Enabled *bool `json:"enabled,omitempty"` } +func (p Payload125) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload125) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload125) GetPrice() *float64 { if o == nil { return nil @@ -2769,6 +3607,17 @@ type Payload124 struct { Username string `json:"username"` } +func (p Payload124) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload124) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"username"}); err != nil { + return err + } + return nil +} + func (o *Payload124) GetUsername() string { if o == nil { return "" @@ -2782,6 +3631,17 @@ type Payload123 struct { PrevEmail string `json:"prevEmail"` } +func (p Payload123) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload123) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"email", "prevEmail"}); err != nil { + return err + } + return nil +} + func (o *Payload123) GetEmail() string { if o == nil { return "" @@ -2801,6 +3661,17 @@ type Payload122 struct { MfaEnabled bool `json:"mfaEnabled"` } +func (p Payload122) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload122) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"mfaEnabled"}); err != nil { + return err + } + return nil +} + func (o *Payload122) GetMfaEnabled() bool { if o == nil { return false @@ -2814,6 +3685,17 @@ type Payload121 struct { TotpVerified bool `json:"totpVerified"` } +func (p Payload121) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload121) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"enabled", "totpVerified"}); err != nil { + return err + } + return nil +} + func (o *Payload121) GetEnabled() bool { if o == nil { return false @@ -2833,6 +3715,17 @@ type Previous struct { TotpVerified bool `json:"totpVerified"` } +func (p Previous) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Previous) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"enabled", "totpVerified"}); err != nil { + return err + } + return nil +} + func (o *Previous) GetEnabled() bool { if o == nil { return false @@ -2852,6 +3745,17 @@ type Next struct { TotpVerified bool `json:"totpVerified"` } +func (n Next) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *Next) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"enabled", "totpVerified"}); err != nil { + return err + } + return nil +} + func (o *Next) GetEnabled() bool { if o == nil { return false @@ -2872,6 +3776,17 @@ type Payload120 struct { Next Next `json:"next"` } +func (p Payload120) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload120) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"previous", "next"}); err != nil { + return err + } + return nil +} + func (o *Payload120) GetPrevious() Previous { if o == nil { return Previous{} @@ -2891,6 +3806,17 @@ type UserEventRemoteCaching struct { Enabled *bool `json:"enabled,omitempty"` } +func (u UserEventRemoteCaching) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventRemoteCaching) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + func (o *UserEventRemoteCaching) GetEnabled() *bool { if o == nil { return nil @@ -2904,6 +3830,17 @@ type Payload119 struct { RemoteCaching *UserEventRemoteCaching `json:"remoteCaching,omitempty"` } +func (p Payload119) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload119) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload119) GetRemoteCaching() *UserEventRemoteCaching { if o == nil { return nil @@ -2916,6 +3853,17 @@ type Payload118 struct { Slug *string `json:"slug,omitempty"` } +func (p Payload118) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload118) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload118) GetSlug() *string { if o == nil { return nil @@ -2928,6 +3876,17 @@ type Payload117 struct { Name *string `json:"name,omitempty"` } +func (p Payload117) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload117) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload117) GetName() *string { if o == nil { return nil @@ -2940,6 +3899,17 @@ type Payload116 struct { Enforced bool `json:"enforced"` } +func (p Payload116) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload116) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"enforced"}); err != nil { + return err + } + return nil +} + func (o *Payload116) GetEnforced() bool { if o == nil { return false @@ -2952,6 +3922,17 @@ type PayloadUser3 struct { Username string `json:"username"` } +func (p PayloadUser3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PayloadUser3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "username"}); err != nil { + return err + } + return nil +} + func (o *PayloadUser3) GetID() string { if o == nil { return "" @@ -2973,6 +3954,17 @@ type Payload115 struct { PreviousCanceledAt *string `json:"previousCanceledAt,omitempty"` } +func (p Payload115) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload115) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"entitlement", "user"}); err != nil { + return err + } + return nil +} + func (o *Payload115) GetEntitlement() string { if o == nil { return "" @@ -2999,6 +3991,17 @@ type PayloadUser2 struct { Username string `json:"username"` } +func (p PayloadUser2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PayloadUser2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "username"}); err != nil { + return err + } + return nil +} + func (o *PayloadUser2) GetID() string { if o == nil { return "" @@ -3019,6 +4022,17 @@ type Payload114 struct { User PayloadUser2 `json:"user"` } +func (p Payload114) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload114) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"entitlement", "user"}); err != nil { + return err + } + return nil +} + func (o *Payload114) GetEntitlement() string { if o == nil { return "" @@ -3038,6 +4052,17 @@ type UpdatedUser struct { Email string `json:"email"` } +func (u UpdatedUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdatedUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"username", "email"}); err != nil { + return err + } + return nil +} + func (o *UpdatedUser) GetUsername() string { if o == nil { return "" @@ -3061,6 +4086,17 @@ type Payload113 struct { UpdatedUID *string `json:"updatedUid,omitempty"` } +func (p Payload113) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload113) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"previousRole"}); err != nil { + return err + } + return nil +} + func (o *Payload113) GetDirectoryType() *string { if o == nil { return nil @@ -3098,9 +4134,23 @@ func (o *Payload113) GetUpdatedUID() *string { // Payload112 - The payload of the event, if requested. type Payload112 struct { - Role *string `json:"role,omitempty"` - UID string `json:"uid"` - Origin *string `json:"origin,omitempty"` + Role *string `json:"role,omitempty"` + UID string `json:"uid"` + Origin *string `json:"origin,omitempty"` + TeamRoles []string `json:"teamRoles,omitempty"` + TeamPermissions []string `json:"teamPermissions,omitempty"` + Entitlements []string `json:"entitlements,omitempty"` +} + +func (p Payload112) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload112) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"uid"}); err != nil { + return err + } + return nil } func (o *Payload112) GetRole() *string { @@ -3124,11 +4174,43 @@ func (o *Payload112) GetOrigin() *string { return o.Origin } +func (o *Payload112) GetTeamRoles() []string { + if o == nil { + return nil + } + return o.TeamRoles +} + +func (o *Payload112) GetTeamPermissions() []string { + if o == nil { + return nil + } + return o.TeamPermissions +} + +func (o *Payload112) GetEntitlements() []string { + if o == nil { + return nil + } + return o.Entitlements +} + type DeletedUser struct { Username string `json:"username"` Email string `json:"email"` } +func (d DeletedUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DeletedUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"username", "email"}); err != nil { + return err + } + return nil +} + func (o *DeletedUser) GetUsername() string { if o == nil { return "" @@ -3153,6 +4235,17 @@ type Payload111 struct { DirectoryType *string `json:"directoryType,omitempty"` } +func (p Payload111) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload111) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload111) GetDeletedUser() *DeletedUser { if o == nil { return nil @@ -3200,6 +4293,17 @@ type InvitedUser struct { Email string `json:"email"` } +func (i InvitedUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *InvitedUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"username", "email"}); err != nil { + return err + } + return nil +} + func (o *InvitedUser) GetUsername() string { if o == nil { return "" @@ -3225,6 +4329,17 @@ type Payload110 struct { InvitedUID *string `json:"invitedUid,omitempty"` } +func (p Payload110) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload110) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload110) GetDirectoryType() *string { if o == nil { return nil @@ -3279,6 +4394,17 @@ type UserEventReason struct { Description string `json:"description"` } +func (u UserEventReason) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventReason) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"slug", "description"}); err != nil { + return err + } + return nil +} + func (o *UserEventReason) GetSlug() string { if o == nil { return "" @@ -3301,6 +4427,17 @@ type Payload109 struct { Reasons []UserEventReason `json:"reasons,omitempty"` } +func (p Payload109) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload109) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"slug", "teamId", "by"}); err != nil { + return err + } + return nil +} + func (o *Payload109) GetSlug() string { if o == nil { return "" @@ -3334,6 +4471,17 @@ type Payload108 struct { Slug string `json:"slug"` } +func (p Payload108) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload108) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"slug"}); err != nil { + return err + } + return nil +} + func (o *Payload108) GetSlug() string { if o == nil { return "" @@ -3346,6 +4494,17 @@ type Store struct { ID string `json:"id"` } +func (s Store) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *Store) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"name", "id"}); err != nil { + return err + } + return nil +} + func (o *Store) GetName() string { if o == nil { return "" @@ -3366,6 +4525,17 @@ type Payload107 struct { OwnerID *string `json:"ownerId,omitempty"` } +func (p Payload107) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload107) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"store"}); err != nil { + return err + } + return nil +} + func (o *Payload107) GetStore() Store { if o == nil { return Store{} @@ -3411,6 +4581,17 @@ type Payload106 struct { StoreType StoreType `json:"storeType"` } +func (p Payload106) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload106) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"storeType"}); err != nil { + return err + } + return nil +} + func (o *Payload106) GetStoreType() StoreType { if o == nil { return StoreType("") @@ -3463,6 +4644,17 @@ type Payload105 struct { Type PayloadType2 `json:"type"` } +func (p Payload105) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload105) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "type"}); err != nil { + return err + } + return nil +} + func (o *Payload105) GetID() string { if o == nil { return "" @@ -3589,6 +4781,17 @@ type BudgetItem struct { ID string `json:"id"` } +func (b BudgetItem) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BudgetItem) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"type", "fixedBudget", "previousSpend", "notifiedAt", "createdAt", "isActive", "teamId", "id"}); err != nil { + return err + } + return nil +} + func (o *BudgetItem) GetType() BudgetType { if o == nil { return BudgetType("") @@ -3685,6 +4888,17 @@ type Budget struct { BudgetItem BudgetItem `json:"budgetItem"` } +func (b Budget) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *Budget) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"budgetItem"}); err != nil { + return err + } + return nil +} + func (o *Budget) GetBudgetItem() BudgetItem { if o == nil { return BudgetItem{} @@ -3697,6 +4911,17 @@ type Payload104 struct { Budget Budget `json:"budget"` } +func (p Payload104) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload104) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"budget"}); err != nil { + return err + } + return nil +} + func (o *Payload104) GetBudget() Budget { if o == nil { return Budget{} @@ -3788,6 +5013,17 @@ type BudgetFixed struct { ID string `json:"id"` } +func (b BudgetFixed) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BudgetFixed) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"type", "fixedBudget", "previousSpend", "notifiedAt", "createdAt", "isActive", "teamId", "id"}); err != nil { + return err + } + return nil +} + func (o *BudgetFixed) GetType() TypeFixed { if o == nil { return TypeFixed("") @@ -3885,6 +5121,17 @@ type Payload103 struct { Budget BudgetFixed `json:"budget"` } +func (p Payload103) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload103) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"budget"}); err != nil { + return err + } + return nil +} + func (o *Payload103) GetBudget() BudgetFixed { if o == nil { return BudgetFixed{} @@ -3897,6 +5144,17 @@ type Payload102 struct { WebhookURL *string `json:"webhookUrl,omitempty"` } +func (p Payload102) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload102) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload102) GetWebhookURL() *string { if o == nil { return nil @@ -3909,6 +5167,17 @@ type ScalingRules struct { Max float64 `json:"max"` } +func (s ScalingRules) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *ScalingRules) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"min", "max"}); err != nil { + return err + } + return nil +} + func (o *ScalingRules) GetMin() float64 { if o == nil { return 0.0 @@ -3931,6 +5200,17 @@ type Payload101 struct { URL string `json:"url"` } +func (p Payload101) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload101) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"scalingRules", "min", "max", "url"}); err != nil { + return err + } + return nil +} + func (o *Payload101) GetScalingRules() map[string]ScalingRules { if o == nil { return map[string]ScalingRules{} @@ -3964,6 +5244,17 @@ type Payload100 struct { Bio string `json:"bio"` } +func (p Payload100) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload100) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"bio"}); err != nil { + return err + } + return nil +} + func (o *Payload100) GetBio() string { if o == nil { return "" @@ -3978,6 +5269,17 @@ type Payload99 struct { UID *string `json:"uid,omitempty"` } +func (p Payload99) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload99) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"oldName", "newName"}); err != nil { + return err + } + return nil +} + func (o *Payload99) GetOldName() string { if o == nil { return "" @@ -4003,6 +5305,17 @@ type Name struct { Name string `json:"name"` } +func (n Name) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *Name) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Name) GetName() string { if o == nil { return "" @@ -4045,14 +5358,14 @@ func CreateNameUnionName(name Name) NameUnion { func (u *NameUnion) UnmarshalJSON(data []byte) error { var name Name = Name{} - if err := utils.UnmarshalJSON(data, &name, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &name, "", true, nil); err == nil { u.Name = &name u.Type = NameUnionTypeName return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = NameUnionTypeStr return nil @@ -4079,6 +5392,17 @@ type Payload98 struct { Name NameUnion `json:"name"` } +func (p Payload98) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload98) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"uid", "name"}); err != nil { + return err + } + return nil +} + func (o *Payload98) GetUID() string { if o == nil { return "" @@ -4098,6 +5422,17 @@ type UserEventTeam7 struct { Name *string `json:"name,omitempty"` } +func (u UserEventTeam7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam7) GetID() string { if o == nil { return "" @@ -4116,6 +5451,17 @@ type PreviousRule2 struct { Email string `json:"email"` } +func (p PreviousRule2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PreviousRule2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"email"}); err != nil { + return err + } + return nil +} + func (o *PreviousRule2) GetEmail() string { if o == nil { return "" @@ -4129,6 +5475,17 @@ type Payload97 struct { PreviousRule PreviousRule2 `json:"previousRule"` } +func (p Payload97) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload97) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "previousRule"}); err != nil { + return err + } + return nil +} + func (o *Payload97) GetTeam() UserEventTeam7 { if o == nil { return UserEventTeam7{} @@ -4148,6 +5505,17 @@ type UserEventTeam6 struct { Name *string `json:"name,omitempty"` } +func (u UserEventTeam6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam6) GetID() string { if o == nil { return "" @@ -4166,6 +5534,17 @@ type PreviousRule1 struct { Email string `json:"email"` } +func (p PreviousRule1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PreviousRule1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"email"}); err != nil { + return err + } + return nil +} + func (o *PreviousRule1) GetEmail() string { if o == nil { return "" @@ -4177,6 +5556,17 @@ type NextRule struct { Email string `json:"email"` } +func (n NextRule) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NextRule) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"email"}); err != nil { + return err + } + return nil +} + func (o *NextRule) GetEmail() string { if o == nil { return "" @@ -4191,6 +5581,17 @@ type Payload96 struct { NextRule *NextRule `json:"nextRule,omitempty"` } +func (p Payload96) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload96) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team"}); err != nil { + return err + } + return nil +} + func (o *Payload96) GetTeam() UserEventTeam6 { if o == nil { return UserEventTeam6{} @@ -4217,6 +5618,17 @@ type Payload95 struct { Email string `json:"email"` } +func (p Payload95) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload95) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"email"}); err != nil { + return err + } + return nil +} + func (o *Payload95) GetEmail() string { if o == nil { return "" @@ -4230,6 +5642,17 @@ type Payload94 struct { Verified bool `json:"verified"` } +func (p Payload94) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload94) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"email", "verified"}); err != nil { + return err + } + return nil +} + func (o *Payload94) GetEmail() string { if o == nil { return "" @@ -4250,6 +5673,17 @@ type Payload93 struct { URL string `json:"url"` } +func (p Payload93) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload93) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"instances", "url"}); err != nil { + return err + } + return nil +} + func (o *Payload93) GetInstances() float64 { if o == nil { return 0.0 @@ -4271,6 +5705,17 @@ type Payload92 struct { GitScope string `json:"gitScope"` } +func (p Payload92) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload92) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"gitProvider", "gitProviderGroupDescriptor", "gitScope"}); err != nil { + return err + } + return nil +} + func (o *Payload92) GetGitProvider() string { if o == nil { return "" @@ -4299,6 +5744,17 @@ type Payload91 struct { NewTargetPercentage *float64 `json:"newTargetPercentage,omitempty"` } +func (p Payload91) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload91) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "projectName"}); err != nil { + return err + } + return nil +} + func (o *Payload91) GetProjectID() string { if o == nil { return "" @@ -4326,6 +5782,17 @@ type Payload90 struct { ProjectName string `json:"projectName"` } +func (p Payload90) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload90) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "projectName"}); err != nil { + return err + } + return nil +} + func (o *Payload90) GetProjectID() string { if o == nil { return "" @@ -4346,6 +5813,17 @@ type Payload89 struct { ProjectID string `json:"projectId"` } +func (p Payload89) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload89) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"source", "projectId"}); err != nil { + return err + } + return nil +} + func (o *Payload89) GetSource() string { if o == nil { return "" @@ -4365,6 +5843,17 @@ type Payload88 struct { ProjectID string `json:"projectId"` } +func (p Payload88) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload88) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId"}); err != nil { + return err + } + return nil +} + func (o *Payload88) GetProjectID() string { if o == nil { return "" @@ -4377,6 +5866,17 @@ type UserEventTeam5 struct { Name string `json:"name"` } +func (u UserEventTeam5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam5) GetID() string { if o == nil { return "" @@ -4452,14 +5952,14 @@ func CreateOldConnectConfigurationEnvIDUnionEnvIDOldConnectConfigurationEnum(env func (u *OldConnectConfigurationEnvIDUnion) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = OldConnectConfigurationEnvIDUnionTypeStr return nil } var envIDOldConnectConfigurationEnum EnvIDOldConnectConfigurationEnum = EnvIDOldConnectConfigurationEnum("") - if err := utils.UnmarshalJSON(data, &envIDOldConnectConfigurationEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &envIDOldConnectConfigurationEnum, "", true, nil); err == nil { u.EnvIDOldConnectConfigurationEnum = &envIDOldConnectConfigurationEnum u.Type = OldConnectConfigurationEnvIDUnionTypeEnvIDOldConnectConfigurationEnum return nil @@ -4485,6 +5985,17 @@ type OldConnectConfigurationAws struct { SecurityGroupID string `json:"securityGroupId"` } +func (o OldConnectConfigurationAws) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldConnectConfigurationAws) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"subnetIds", "securityGroupId"}); err != nil { + return err + } + return nil +} + func (o *OldConnectConfigurationAws) GetSubnetIds() []string { if o == nil { return []string{} @@ -4510,14 +6021,25 @@ type OldConnectConfiguration struct { UpdatedAt float64 `json:"updatedAt"` } -func (o *OldConnectConfiguration) GetEnvID() OldConnectConfigurationEnvIDUnion { - if o == nil { - return OldConnectConfigurationEnvIDUnion{} - } - return o.EnvID +func (o OldConnectConfiguration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) } -func (o *OldConnectConfiguration) GetConnectConfigurationID() string { +func (o *OldConnectConfiguration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"envId", "connectConfigurationId", "passive", "buildsEnabled", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + +func (o *OldConnectConfiguration) GetEnvID() OldConnectConfigurationEnvIDUnion { + if o == nil { + return OldConnectConfigurationEnvIDUnion{} + } + return o.EnvID +} + +func (o *OldConnectConfiguration) GetConnectConfigurationID() string { if o == nil { return "" } @@ -4627,14 +6149,14 @@ func CreateNewConnectConfigurationEnvIDUnionEnvIDNewConnectConfigurationEnum(env func (u *NewConnectConfigurationEnvIDUnion) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = NewConnectConfigurationEnvIDUnionTypeStr return nil } var envIDNewConnectConfigurationEnum EnvIDNewConnectConfigurationEnum = EnvIDNewConnectConfigurationEnum("") - if err := utils.UnmarshalJSON(data, &envIDNewConnectConfigurationEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &envIDNewConnectConfigurationEnum, "", true, nil); err == nil { u.EnvIDNewConnectConfigurationEnum = &envIDNewConnectConfigurationEnum u.Type = NewConnectConfigurationEnvIDUnionTypeEnvIDNewConnectConfigurationEnum return nil @@ -4660,6 +6182,17 @@ type NewConnectConfigurationAws struct { SecurityGroupID string `json:"securityGroupId"` } +func (n NewConnectConfigurationAws) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NewConnectConfigurationAws) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"subnetIds", "securityGroupId"}); err != nil { + return err + } + return nil +} + func (o *NewConnectConfigurationAws) GetSubnetIds() []string { if o == nil { return []string{} @@ -4685,6 +6218,17 @@ type NewConnectConfiguration struct { UpdatedAt float64 `json:"updatedAt"` } +func (n NewConnectConfiguration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NewConnectConfiguration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"envId", "connectConfigurationId", "passive", "buildsEnabled", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *NewConnectConfiguration) GetEnvID() NewConnectConfigurationEnvIDUnion { if o == nil { return NewConnectConfigurationEnvIDUnion{} @@ -4748,6 +6292,17 @@ type Project6 struct { NewConnectConfigurations []NewConnectConfiguration `json:"newConnectConfigurations"` } +func (p Project6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "oldConnectConfigurations", "newConnectConfigurations"}); err != nil { + return err + } + return nil +} + func (o *Project6) GetID() string { if o == nil { return "" @@ -4782,6 +6337,17 @@ type Payload87 struct { Project Project6 `json:"project"` } +func (p Payload87) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload87) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "project"}); err != nil { + return err + } + return nil +} + func (o *Payload87) GetTeam() UserEventTeam5 { if o == nil { return UserEventTeam5{} @@ -4802,6 +6368,17 @@ type Payload86 struct { OwnerID string `json:"ownerId"` } +func (p Payload86) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload86) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "ownerId"}); err != nil { + return err + } + return nil +} + func (o *Payload86) GetName() string { if o == nil { return "" @@ -4851,6 +6428,17 @@ type Payload85 struct { Action Action4 `json:"action"` } +func (p Payload85) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload85) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "action"}); err != nil { + return err + } + return nil +} + func (o *Payload85) GetProjectName() string { if o == nil { return "" @@ -4869,6 +6457,17 @@ type OptionsAllowlistPath struct { Value string `json:"value"` } +func (o OptionsAllowlistPath) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OptionsAllowlistPath) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + func (o *OptionsAllowlistPath) GetValue() string { if o == nil { return "" @@ -4880,6 +6479,17 @@ type OptionsAllowlist struct { Paths []OptionsAllowlistPath `json:"paths"` } +func (o OptionsAllowlist) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OptionsAllowlist) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"paths"}); err != nil { + return err + } + return nil +} + func (o *OptionsAllowlist) GetPaths() []OptionsAllowlistPath { if o == nil { return []OptionsAllowlistPath{} @@ -4891,6 +6501,17 @@ type OldOptionsAllowlistPath struct { Value string `json:"value"` } +func (o OldOptionsAllowlistPath) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldOptionsAllowlistPath) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + func (o *OldOptionsAllowlistPath) GetValue() string { if o == nil { return "" @@ -4902,6 +6523,17 @@ type OldOptionsAllowlist struct { Paths []OldOptionsAllowlistPath `json:"paths"` } +func (o OldOptionsAllowlist) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldOptionsAllowlist) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"paths"}); err != nil { + return err + } + return nil +} + func (o *OldOptionsAllowlist) GetPaths() []OldOptionsAllowlistPath { if o == nil { return []OldOptionsAllowlistPath{} @@ -4916,6 +6548,17 @@ type Payload84 struct { OldOptionsAllowlist *OldOptionsAllowlist `json:"oldOptionsAllowlist,omitempty"` } +func (p Payload84) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload84) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName"}); err != nil { + return err + } + return nil +} + func (o *Payload84) GetProjectName() string { if o == nil { return "" @@ -5016,6 +6659,17 @@ type Payload83 struct { RemovedAddresses []string `json:"removedAddresses,omitempty"` } +func (p Payload83) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload83) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName"}); err != nil { + return err + } + return nil +} + func (o *Payload83) GetProjectName() string { if o == nil { return "" @@ -5119,6 +6773,17 @@ type UserEventPasswordProtection struct { DeploymentType PasswordProtectionDeploymentType `json:"deploymentType"` } +func (u UserEventPasswordProtection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventPasswordProtection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *UserEventPasswordProtection) GetDeploymentType() PasswordProtectionDeploymentType { if o == nil { return PasswordProtectionDeploymentType("") @@ -5161,14 +6826,14 @@ func CreatePasswordProtectionPasswordProtectionEnum(passwordProtectionEnum Passw func (u *PasswordProtection) UnmarshalJSON(data []byte) error { var userEventPasswordProtection UserEventPasswordProtection = UserEventPasswordProtection{} - if err := utils.UnmarshalJSON(data, &userEventPasswordProtection, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &userEventPasswordProtection, "", true, nil); err == nil { u.UserEventPasswordProtection = &userEventPasswordProtection u.Type = PasswordProtectionTypeUserEventPasswordProtection return nil } var passwordProtectionEnum PasswordProtectionEnum = PasswordProtectionEnum("") - if err := utils.UnmarshalJSON(data, &passwordProtectionEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &passwordProtectionEnum, "", true, nil); err == nil { u.PasswordProtectionEnum = &passwordProtectionEnum u.Type = PasswordProtectionTypePasswordProtectionEnum return nil @@ -5257,6 +6922,17 @@ type OldPasswordProtection struct { DeploymentType OldPasswordProtectionDeploymentType `json:"deploymentType"` } +func (o OldPasswordProtection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldPasswordProtection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *OldPasswordProtection) GetDeploymentType() OldPasswordProtectionDeploymentType { if o == nil { return OldPasswordProtectionDeploymentType("") @@ -5299,14 +6975,14 @@ func CreateOldPasswordProtectionUnionOldPasswordProtectionEnum(oldPasswordProtec func (u *OldPasswordProtectionUnion) UnmarshalJSON(data []byte) error { var oldPasswordProtection OldPasswordProtection = OldPasswordProtection{} - if err := utils.UnmarshalJSON(data, &oldPasswordProtection, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &oldPasswordProtection, "", true, nil); err == nil { u.OldPasswordProtection = &oldPasswordProtection u.Type = OldPasswordProtectionUnionTypeOldPasswordProtection return nil } var oldPasswordProtectionEnum OldPasswordProtectionEnum = OldPasswordProtectionEnum("") - if err := utils.UnmarshalJSON(data, &oldPasswordProtectionEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &oldPasswordProtectionEnum, "", true, nil); err == nil { u.OldPasswordProtectionEnum = &oldPasswordProtectionEnum u.Type = OldPasswordProtectionUnionTypeOldPasswordProtectionEnum return nil @@ -5334,6 +7010,17 @@ type Payload82 struct { OldPasswordProtection *OldPasswordProtectionUnion `json:"oldPasswordProtection"` } +func (p Payload82) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload82) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "passwordProtection", "oldPasswordProtection"}); err != nil { + return err + } + return nil +} + func (o *Payload82) GetProjectName() string { if o == nil { return "" @@ -5423,6 +7110,17 @@ type UserEventSsoProtection struct { DeploymentType SsoProtectionDeploymentType `json:"deploymentType"` } +func (u UserEventSsoProtection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventSsoProtection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *UserEventSsoProtection) GetDeploymentType() SsoProtectionDeploymentType { if o == nil { return SsoProtectionDeploymentType("") @@ -5465,14 +7163,14 @@ func CreateSsoProtectionSsoProtectionEnum(ssoProtectionEnum SsoProtectionEnum) S func (u *SsoProtection) UnmarshalJSON(data []byte) error { var userEventSsoProtection UserEventSsoProtection = UserEventSsoProtection{} - if err := utils.UnmarshalJSON(data, &userEventSsoProtection, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &userEventSsoProtection, "", true, nil); err == nil { u.UserEventSsoProtection = &userEventSsoProtection u.Type = SsoProtectionTypeUserEventSsoProtection return nil } var ssoProtectionEnum SsoProtectionEnum = SsoProtectionEnum("") - if err := utils.UnmarshalJSON(data, &ssoProtectionEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &ssoProtectionEnum, "", true, nil); err == nil { u.SsoProtectionEnum = &ssoProtectionEnum u.Type = SsoProtectionTypeSsoProtectionEnum return nil @@ -5561,6 +7259,17 @@ type OldSsoProtection struct { DeploymentType OldSsoProtectionDeploymentType `json:"deploymentType"` } +func (o OldSsoProtection) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldSsoProtection) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *OldSsoProtection) GetDeploymentType() OldSsoProtectionDeploymentType { if o == nil { return OldSsoProtectionDeploymentType("") @@ -5603,14 +7312,14 @@ func CreateOldSsoProtectionUnionOldSsoProtectionEnum(oldSsoProtectionEnum OldSso func (u *OldSsoProtectionUnion) UnmarshalJSON(data []byte) error { var oldSsoProtection OldSsoProtection = OldSsoProtection{} - if err := utils.UnmarshalJSON(data, &oldSsoProtection, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &oldSsoProtection, "", true, nil); err == nil { u.OldSsoProtection = &oldSsoProtection u.Type = OldSsoProtectionUnionTypeOldSsoProtection return nil } var oldSsoProtectionEnum OldSsoProtectionEnum = OldSsoProtectionEnum("") - if err := utils.UnmarshalJSON(data, &oldSsoProtectionEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &oldSsoProtectionEnum, "", true, nil); err == nil { u.OldSsoProtectionEnum = &oldSsoProtectionEnum u.Type = OldSsoProtectionUnionTypeOldSsoProtectionEnum return nil @@ -5638,6 +7347,17 @@ type Payload81 struct { OldSsoProtection *OldSsoProtectionUnion `json:"oldSsoProtection"` } +func (p Payload81) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload81) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "ssoProtection", "oldSsoProtection"}); err != nil { + return err + } + return nil +} + func (o *Payload81) GetProjectName() string { if o == nil { return "" @@ -5665,6 +7385,17 @@ type Payload80 struct { ProjectID string `json:"projectId"` } +func (p Payload80) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload80) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId"}); err != nil { + return err + } + return nil +} + func (o *Payload80) GetProjectName() *string { if o == nil { return nil @@ -5687,6 +7418,17 @@ type Payload79 struct { PrevProjectAnalytics map[string]any `json:"prevProjectAnalytics,omitempty"` } +func (p Payload79) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload79) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId"}); err != nil { + return err + } + return nil +} + func (o *Payload79) GetProjectName() *string { if o == nil { return nil @@ -5725,6 +7467,17 @@ type ProjectAnalytics struct { SpendLimitInDollars *float64 `json:"spendLimitInDollars,omitempty"` } +func (p ProjectAnalytics) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *ProjectAnalytics) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "disabledAt", "enabledAt"}); err != nil { + return err + } + return nil +} + func (o *ProjectAnalytics) GetID() string { if o == nil { return "" @@ -5784,6 +7537,17 @@ type PrevProjectAnalytics struct { SpendLimitInDollars *float64 `json:"spendLimitInDollars,omitempty"` } +func (p PrevProjectAnalytics) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PrevProjectAnalytics) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "disabledAt", "enabledAt"}); err != nil { + return err + } + return nil +} + func (o *PrevProjectAnalytics) GetID() string { if o == nil { return "" @@ -5841,6 +7605,17 @@ type Payload78 struct { PrevProjectAnalytics *PrevProjectAnalytics `json:"prevProjectAnalytics"` } +func (p Payload78) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload78) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "projectAnalytics", "prevProjectAnalytics"}); err != nil { + return err + } + return nil +} + func (o *Payload78) GetProjectName() *string { if o == nil { return nil @@ -5875,6 +7650,17 @@ type Payload77 struct { Branch string `json:"branch"` } +func (p Payload77) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload77) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "branch"}); err != nil { + return err + } + return nil +} + func (o *Payload77) GetProjectName() string { if o == nil { return "" @@ -6021,14 +7807,14 @@ func CreateRemovedUsersGitUserIDNumber(number float64) RemovedUsersGitUserID { func (u *RemovedUsersGitUserID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = RemovedUsersGitUserIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = RemovedUsersGitUserIDTypeNumber return nil @@ -6063,6 +7849,17 @@ type RemovedUsersJoinedFrom struct { DsyncConnectedAt *float64 `json:"dsyncConnectedAt,omitempty"` } +func (r RemovedUsersJoinedFrom) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemovedUsersJoinedFrom) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"origin"}); err != nil { + return err + } + return nil +} + func (o *RemovedUsersJoinedFrom) GetOrigin() RemovedUsersOrigin { if o == nil { return RemovedUsersOrigin("") @@ -6147,6 +7944,17 @@ type RemovedUsers struct { JoinedFrom *RemovedUsersJoinedFrom `json:"joinedFrom,omitempty"` } +func (r RemovedUsers) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemovedUsers) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"role", "confirmed"}); err != nil { + return err + } + return nil +} + func (o *RemovedUsers) GetRole() RemovedUsersRole { if o == nil { return RemovedUsersRole("") @@ -6186,6 +7994,17 @@ type Payload76 struct { IsTrialUpgrade *bool `json:"isTrialUpgrade,omitempty"` } +func (p Payload76) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload76) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"plan"}); err != nil { + return err + } + return nil +} + func (o *Payload76) GetPlan() string { if o == nil { return "" @@ -6240,6 +8059,17 @@ type Payload75 struct { ProjectName string `json:"projectName"` } +func (p Payload75) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload75) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName"}); err != nil { + return err + } + return nil +} + func (o *Payload75) GetProjectName() string { if o == nil { return "" @@ -6254,6 +8084,17 @@ type Payload74 struct { ProjectName string `json:"projectName"` } +func (p Payload74) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload74) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "toDeploymentId", "projectName"}); err != nil { + return err + } + return nil +} + func (o *Payload74) GetProjectID() string { if o == nil { return "" @@ -6281,6 +8122,17 @@ type Payload73 struct { IntegrationName *string `json:"integrationName,omitempty"` } +func (p Payload73) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload73) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"drainUrl"}); err != nil { + return err + } + return nil +} + func (o *Payload73) GetDrainURL() *string { if o == nil { return nil @@ -6301,14 +8153,25 @@ type Payload72 struct { IntegrationName *string `json:"integrationName,omitempty"` } -func (o *Payload72) GetLogDrainURL() string { - if o == nil { - return "" - } - return o.LogDrainURL +func (p Payload72) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) } -func (o *Payload72) GetIntegrationName() *string { +func (p *Payload72) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"logDrainUrl"}); err != nil { + return err + } + return nil +} + +func (o *Payload72) GetLogDrainURL() string { + if o == nil { + return "" + } + return o.LogDrainURL +} + +func (o *Payload72) GetIntegrationName() *string { if o == nil { return nil } @@ -6321,6 +8184,17 @@ type Payload71 struct { IntegrationName *string `json:"integrationName,omitempty"` } +func (p Payload71) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload71) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"logDrainUrl"}); err != nil { + return err + } + return nil +} + func (o *Payload71) GetLogDrainURL() *string { if o == nil { return nil @@ -6380,6 +8254,17 @@ type Browser struct { Name BrowserName `json:"name"` } +func (b Browser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *Browser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Browser) GetName() BrowserName { if o == nil { return BrowserName("") @@ -6450,6 +8335,17 @@ type Os struct { Name OsName `json:"name"` } +func (o Os) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *Os) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Os) GetName() OsName { if o == nil { return OsName("") @@ -6464,6 +8360,17 @@ type UserAgent struct { Os Os `json:"os"` } +func (u UserAgent) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserAgent) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"browser", "ua", "program", "os"}); err != nil { + return err + } + return nil +} + func (o *UserAgent) GetBrowser() Browser { if o == nil { return Browser{} @@ -6496,6 +8403,17 @@ type CityNames struct { En string `json:"en"` } +func (c CityNames) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CityNames) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"en"}); err != nil { + return err + } + return nil +} + func (o *CityNames) GetEn() string { if o == nil { return "" @@ -6507,6 +8425,17 @@ type City struct { Names CityNames `json:"names"` } +func (c City) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *City) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"names"}); err != nil { + return err + } + return nil +} + func (o *City) GetNames() CityNames { if o == nil { return CityNames{} @@ -6518,6 +8447,17 @@ type CountryNames struct { En string `json:"en"` } +func (c CountryNames) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CountryNames) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"en"}); err != nil { + return err + } + return nil +} + func (o *CountryNames) GetEn() string { if o == nil { return "" @@ -6529,6 +8469,17 @@ type Country struct { Names CountryNames `json:"names"` } +func (c Country) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Country) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"names"}); err != nil { + return err + } + return nil +} + func (o *Country) GetNames() CountryNames { if o == nil { return CountryNames{} @@ -6540,6 +8491,17 @@ type MostSpecificSubdivisionNames struct { En string `json:"en"` } +func (m MostSpecificSubdivisionNames) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MostSpecificSubdivisionNames) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"en"}); err != nil { + return err + } + return nil +} + func (o *MostSpecificSubdivisionNames) GetEn() string { if o == nil { return "" @@ -6551,6 +8513,17 @@ type MostSpecificSubdivision struct { Names MostSpecificSubdivisionNames `json:"names"` } +func (m MostSpecificSubdivision) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MostSpecificSubdivision) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"names"}); err != nil { + return err + } + return nil +} + func (o *MostSpecificSubdivision) GetNames() MostSpecificSubdivisionNames { if o == nil { return MostSpecificSubdivisionNames{} @@ -6565,6 +8538,17 @@ type Geolocation struct { RegionName *string `json:"regionName,omitempty"` } +func (g Geolocation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *Geolocation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"country"}); err != nil { + return err + } + return nil +} + func (o *Geolocation) GetCity() *City { if o == nil { return nil @@ -6609,6 +8593,17 @@ type Payload70 struct { Username *string `json:"username,omitempty"` } +func (p Payload70) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload70) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"viaGithub", "viaGitlab", "viaBitbucket", "viaGoogle", "viaSamlSso", "viaPasskey"}); err != nil { + return err + } + return nil +} + func (o *Payload70) GetUserAgent() *UserAgent { if o == nil { return nil @@ -6704,6 +8699,17 @@ type Payload69 struct { ConfirmedScopes []string `json:"confirmedScopes"` } +func (p Payload69) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload69) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"integrationId", "configurationId", "integrationSlug", "integrationName", "ownerId", "confirmedScopes"}); err != nil { + return err + } + return nil +} + func (o *Payload69) GetIntegrationID() string { if o == nil { return "" @@ -6762,6 +8768,17 @@ type Payload68 struct { Reason *string `json:"reason,omitempty"` } +func (p Payload68) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload68) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "fromDeploymentId", "toDeploymentId", "projectName"}); err != nil { + return err + } + return nil +} + func (o *Payload68) GetProjectID() string { if o == nil { return "" @@ -6807,6 +8824,17 @@ type Payload67 struct { ProjectIds []string `json:"projectIds,omitempty"` } +func (p Payload67) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload67) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"integrationId", "configurationId", "integrationSlug", "integrationName", "ownerId"}); err != nil { + return err + } + return nil +} + func (o *Payload67) GetIntegrationID() string { if o == nil { return "" @@ -6860,6 +8888,17 @@ type Payload66 struct { BillingPlanName *string `json:"billingPlanName,omitempty"` } +func (p Payload66) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload66) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"integrationId", "configurationId", "integrationSlug", "integrationName", "ownerId", "billingPlanId"}); err != nil { + return err + } + return nil +} + func (o *Payload66) GetIntegrationID() string { if o == nil { return "" @@ -6916,6 +8955,17 @@ type Configuration5 struct { IntegrationName *string `json:"integrationName,omitempty"` } +func (c Configuration5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Configuration5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"integrationId", "configurationId", "integrationSlug"}); err != nil { + return err + } + return nil +} + func (o *Configuration5) GetIntegrationID() string { if o == nil { return "" @@ -6950,6 +9000,17 @@ type Payload65 struct { OwnerID string `json:"ownerId"` } +func (p Payload65) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload65) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"configurations", "ownerId"}); err != nil { + return err + } + return nil +} + func (o *Payload65) GetConfigurations() []Configuration5 { if o == nil { return []Configuration5{} @@ -7004,6 +9065,17 @@ type BlockHistory struct { Comment *string `json:"comment,omitempty"` } +func (b BlockHistory) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BlockHistory) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"action", "createdAt", "reason"}); err != nil { + return err + } + return nil +} + func (o *BlockHistory) GetAction() BlockHistoryAction { if o == nil { return BlockHistoryAction("") @@ -7062,6 +9134,17 @@ type History struct { At float64 `json:"at"` } +func (h History) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(h, "", false) +} + +func (h *History) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &h, "", false, []string{"scanner", "reason", "by", "byId", "at"}); err != nil { + return err + } + return nil +} + func (o *History) GetScanner() string { if o == nil { return "" @@ -7117,6 +9200,17 @@ type Abuse struct { RemovedPhoneNumbers *string `json:"removedPhoneNumbers,omitempty"` } +func (a Abuse) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *Abuse) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"updatedAt"}); err != nil { + return err + } + return nil +} + func (o *Abuse) GetBlockHistory() []BlockHistory { if o == nil { return nil @@ -7220,6 +9314,17 @@ type UserEventBilling struct { Plan Plan `json:"plan"` } +func (u UserEventBilling) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventBilling) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"plan"}); err != nil { + return err + } + return nil +} + func (o *UserEventBilling) GetPlan() Plan { if o == nil { return Plan("") @@ -7256,6 +9361,17 @@ type CredentialGithubOauthCustomHost struct { ID string `json:"id"` } +func (c CredentialGithubOauthCustomHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CredentialGithubOauthCustomHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "host", "id"}); err != nil { + return err + } + return nil +} + func (o *CredentialGithubOauthCustomHost) GetType() TypeGithubOauthCustomHost { if o == nil { return TypeGithubOauthCustomHost("") @@ -7317,6 +9433,17 @@ type Credential struct { ID string `json:"id"` } +func (c Credential) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Credential) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "id"}); err != nil { + return err + } + return nil +} + func (o *Credential) GetType() CredentialType { if o == nil { return CredentialType("") @@ -7365,20 +9492,20 @@ func CreateCredentialUnionCredentialGithubOauthCustomHost(credentialGithubOauthC func (u *CredentialUnion) UnmarshalJSON(data []byte) error { - var credential Credential = Credential{} - if err := utils.UnmarshalJSON(data, &credential, "", true, true); err == nil { - u.Credential = &credential - u.Type = CredentialUnionTypeCredential - return nil - } - var credentialGithubOauthCustomHost CredentialGithubOauthCustomHost = CredentialGithubOauthCustomHost{} - if err := utils.UnmarshalJSON(data, &credentialGithubOauthCustomHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &credentialGithubOauthCustomHost, "", true, nil); err == nil { u.CredentialGithubOauthCustomHost = &credentialGithubOauthCustomHost u.Type = CredentialUnionTypeCredentialGithubOauthCustomHost return nil } + var credential Credential = Credential{} + if err := utils.UnmarshalJSON(data, &credential, "", true, nil); err == nil { + u.Credential = &credential + u.Type = CredentialUnionTypeCredential + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CredentialUnion", string(data)) } @@ -7398,6 +9525,17 @@ type UserEventDataCache struct { ExcessBillingEnabled *bool `json:"excessBillingEnabled,omitempty"` } +func (u UserEventDataCache) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventDataCache) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + func (o *UserEventDataCache) GetExcessBillingEnabled() *bool { if o == nil { return nil @@ -7410,6 +9548,17 @@ type UserEventDismissal struct { CreatedAt float64 `json:"createdAt"` } +func (u UserEventDismissal) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventDismissal) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"scopeId", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *UserEventDismissal) GetScopeID() string { if o == nil { return "" @@ -7429,6 +9578,17 @@ type UserEventDismissedToast struct { Dismissals []UserEventDismissal `json:"dismissals"` } +func (u UserEventDismissedToast) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventDismissedToast) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"name", "dismissals"}); err != nil { + return err + } + return nil +} + func (o *UserEventDismissedToast) GetName() string { if o == nil { return "" @@ -7448,6 +9608,17 @@ type UserEventFavoriteProjectsAndSpace struct { ProjectID string `json:"projectId"` } +func (u UserEventFavoriteProjectsAndSpace) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventFavoriteProjectsAndSpace) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"teamId", "projectId"}); err != nil { + return err + } + return nil +} + func (o *UserEventFavoriteProjectsAndSpace) GetTeamID() string { if o == nil { return "" @@ -7497,14 +9668,14 @@ func CreateUserEventImportFlowGitNamespaceNumber(number float64) UserEventImport func (u *UserEventImportFlowGitNamespace) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = UserEventImportFlowGitNamespaceTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = UserEventImportFlowGitNamespaceTypeNumber return nil @@ -7560,14 +9731,14 @@ func CreateUserEventImportFlowGitNamespaceIDNumber(number float64) UserEventImpo func (u *UserEventImportFlowGitNamespaceID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = UserEventImportFlowGitNamespaceIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = UserEventImportFlowGitNamespaceIDTypeNumber return nil @@ -7658,14 +9829,14 @@ func CreateUserEventGitNamespaceIDNumber(number float64) UserEventGitNamespaceID func (u *UserEventGitNamespaceID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = UserEventGitNamespaceIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = UserEventGitNamespaceIDTypeNumber return nil @@ -7691,6 +9862,17 @@ type UserEventPreferredScopesAndGitNamespace struct { GitNamespaceID *UserEventGitNamespaceID `json:"gitNamespaceId"` } +func (u UserEventPreferredScopesAndGitNamespace) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventPreferredScopesAndGitNamespace) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"scopeId", "gitNamespaceId"}); err != nil { + return err + } + return nil +} + func (o *UserEventPreferredScopesAndGitNamespace) GetScopeID() string { if o == nil { return "" @@ -7740,14 +9922,14 @@ func CreatePreventAutoBlockingBoolean(boolean bool) PreventAutoBlocking { func (u *PreventAutoBlocking) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = PreventAutoBlockingTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = PreventAutoBlockingTypeBoolean return nil @@ -7773,6 +9955,17 @@ type RemoteCachingUser struct { Enabled *bool `json:"enabled,omitempty"` } +func (r RemoteCachingUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoteCachingUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { + return err + } + return nil +} + func (o *RemoteCachingUser) GetEnabled() *bool { if o == nil { return nil @@ -7784,6 +9977,17 @@ type UserEventBuildEntitlements struct { EnhancedBuilds *bool `json:"enhancedBuilds,omitempty"` } +func (u UserEventBuildEntitlements) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventBuildEntitlements) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + func (o *UserEventBuildEntitlements) GetEnhancedBuilds() *bool { if o == nil { return nil @@ -7824,14 +10028,25 @@ type UserEventBuildMachine struct { Memory *float64 `json:"memory,omitempty"` } -func (o *UserEventBuildMachine) GetPurchaseType() *UserEventPurchaseType { - if o == nil { - return nil - } - return o.PurchaseType +func (u UserEventBuildMachine) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) } -func (o *UserEventBuildMachine) GetIsDefaultBuildMachine() *bool { +func (u *UserEventBuildMachine) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + +func (o *UserEventBuildMachine) GetPurchaseType() *UserEventPurchaseType { + if o == nil { + return nil + } + return o.PurchaseType +} + +func (o *UserEventBuildMachine) GetIsDefaultBuildMachine() *bool { if o == nil { return nil } @@ -7859,6 +10074,17 @@ type UserEventSecurity struct { RateLimit *float64 `json:"rateLimit,omitempty"` } +func (u UserEventSecurity) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventSecurity) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + func (o *UserEventSecurity) GetCustomRules() *float64 { if o == nil { return nil @@ -7916,6 +10142,17 @@ type UserEventResourceConfig struct { Security *UserEventSecurity `json:"security,omitempty"` } +func (u UserEventResourceConfig) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventResourceConfig) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + func (o *UserEventResourceConfig) GetNodeType() *string { if o == nil { return nil @@ -8103,6 +10340,17 @@ type ResourceLimits struct { Duration float64 `json:"duration"` } +func (r ResourceLimits) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *ResourceLimits) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"max", "duration"}); err != nil { + return err + } + return nil +} + func (o *ResourceLimits) GetMax() float64 { if o == nil { return 0.0 @@ -8202,6 +10450,17 @@ type UserEventActiveDashboardView struct { RecentsViewPreference *UserEventRecentsViewPreference `json:"recentsViewPreference,omitempty"` } +func (u UserEventActiveDashboardView) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventActiveDashboardView) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"scopeId"}); err != nil { + return err + } + return nil +} + func (o *UserEventActiveDashboardView) GetScopeID() string { if o == nil { return "" @@ -8235,6 +10494,17 @@ type SecondaryEmail struct { Verified bool `json:"verified"` } +func (s SecondaryEmail) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SecondaryEmail) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"email", "verified"}); err != nil { + return err + } + return nil +} + func (o *SecondaryEmail) GetEmail() string { if o == nil { return "" @@ -8253,6 +10523,17 @@ type Rules struct { Email string `json:"email"` } +func (r Rules) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Rules) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"email"}); err != nil { + return err + } + return nil +} + func (o *Rules) GetEmail() string { if o == nil { return "" @@ -8264,6 +10545,17 @@ type EmailNotifications struct { Rules map[string]Rules `json:"rules,omitempty"` } +func (e EmailNotifications) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EmailNotifications) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { + return err + } + return nil +} + func (o *EmailNotifications) GetRules() map[string]Rules { if o == nil { return nil @@ -8276,6 +10568,17 @@ type SiftScoresReason struct { Value string `json:"value"` } +func (s SiftScoresReason) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SiftScoresReason) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"name", "value"}); err != nil { + return err + } + return nil +} + func (o *SiftScoresReason) GetName() string { if o == nil { return "" @@ -8295,6 +10598,17 @@ type SiftScores struct { Reasons []SiftScoresReason `json:"reasons"` } +func (s SiftScores) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SiftScores) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"score", "reasons"}); err != nil { + return err + } + return nil +} + func (o *SiftScores) GetScore() float64 { if o == nil { return 0.0 @@ -8336,6 +10650,17 @@ type SiftRoute struct { Name NameString `json:"name"` } +func (s SiftRoute) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *SiftRoute) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *SiftRoute) GetName() NameString { if o == nil { return NameString("") @@ -8524,6 +10849,17 @@ type UserEventSoftBlock struct { BlockedDueToOverageType *UserEventBlockedDueToOverageType `json:"blockedDueToOverageType,omitempty"` } +func (u UserEventSoftBlock) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventSoftBlock) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"blockedAt", "reason"}); err != nil { + return err + } + return nil +} + func (o *UserEventSoftBlock) GetBlockedAt() float64 { if o == nil { return 0.0 @@ -8636,6 +10972,7 @@ func (e *UserEventTeamRole) UnmarshalJSON(data []byte) error { type UserEventTeamPermission string const ( + UserEventTeamPermissionIntegrationManager UserEventTeamPermission = "IntegrationManager" UserEventTeamPermissionCreateProject UserEventTeamPermission = "CreateProject" UserEventTeamPermissionFullProductionDeployment UserEventTeamPermission = "FullProductionDeployment" UserEventTeamPermissionUsageViewer UserEventTeamPermission = "UsageViewer" @@ -8655,6 +10992,8 @@ func (e *UserEventTeamPermission) UnmarshalJSON(data []byte) error { return err } switch v { + case "IntegrationManager": + fallthrough case "CreateProject": fallthrough case "FullProductionDeployment": @@ -8765,14 +11104,14 @@ func CreateTeamGitUserID1Number(number float64) TeamGitUserID1 { func (u *TeamGitUserID1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = TeamGitUserID1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = TeamGitUserID1TypeNumber return nil @@ -8807,6 +11146,17 @@ type TeamJoinedFrom1 struct { DsyncConnectedAt *float64 `json:"dsyncConnectedAt,omitempty"` } +func (t TeamJoinedFrom1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamJoinedFrom1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"origin"}); err != nil { + return err + } + return nil +} + func (o *TeamJoinedFrom1) GetOrigin() TeamOrigin1 { if o == nil { return TeamOrigin1("") @@ -8897,6 +11247,17 @@ type TeamUser struct { JoinedFrom *TeamJoinedFrom1 `json:"joinedFrom,omitempty"` } +func (t TeamUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TeamUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"created", "createdAt", "teamId", "role", "confirmed", "confirmedAt"}); err != nil { + return err + } + return nil +} + func (o *TeamUser) GetCreated() float64 { if o == nil { return 0.0 @@ -8996,6 +11357,17 @@ type UsageAlerts struct { BlockingAt *float64 `json:"blockingAt,omitempty"` } +func (u UsageAlerts) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UsageAlerts) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + func (o *UsageAlerts) GetWarningAt() *float64 { if o == nil { return nil @@ -9016,6 +11388,17 @@ type AnalyticsUsage struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (a AnalyticsUsage) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AnalyticsUsage) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *AnalyticsUsage) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9043,6 +11426,17 @@ type Artifacts struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (a Artifacts) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *Artifacts) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *Artifacts) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9070,6 +11464,17 @@ type Bandwidth struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (b Bandwidth) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *Bandwidth) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *Bandwidth) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9097,6 +11502,17 @@ type BlobTotalAdvancedRequests struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (b BlobTotalAdvancedRequests) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BlobTotalAdvancedRequests) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *BlobTotalAdvancedRequests) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9124,6 +11540,17 @@ type BlobTotalAvgSizeInBytes struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (b BlobTotalAvgSizeInBytes) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BlobTotalAvgSizeInBytes) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *BlobTotalAvgSizeInBytes) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9151,6 +11578,17 @@ type BlobTotalGetResponseObjectSizeInBytes struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (b BlobTotalGetResponseObjectSizeInBytes) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BlobTotalGetResponseObjectSizeInBytes) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *BlobTotalGetResponseObjectSizeInBytes) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9178,6 +11616,17 @@ type BlobTotalSimpleRequests struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (b BlobTotalSimpleRequests) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BlobTotalSimpleRequests) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *BlobTotalSimpleRequests) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9205,6 +11654,17 @@ type ConnectDataTransfer struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (c ConnectDataTransfer) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *ConnectDataTransfer) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *ConnectDataTransfer) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9232,6 +11692,17 @@ type DataCacheRead struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (d DataCacheRead) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DataCacheRead) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *DataCacheRead) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9259,6 +11730,17 @@ type DataCacheWrite struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (d DataCacheWrite) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DataCacheWrite) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *DataCacheWrite) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9286,6 +11768,17 @@ type EdgeConfigRead struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (e EdgeConfigRead) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EdgeConfigRead) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *EdgeConfigRead) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9313,6 +11806,17 @@ type EdgeConfigWrite struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (e EdgeConfigWrite) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EdgeConfigWrite) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *EdgeConfigWrite) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9340,6 +11844,17 @@ type EdgeFunctionExecutionUnits struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (e EdgeFunctionExecutionUnits) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EdgeFunctionExecutionUnits) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *EdgeFunctionExecutionUnits) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9367,6 +11882,17 @@ type EdgeMiddlewareInvocations struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (e EdgeMiddlewareInvocations) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EdgeMiddlewareInvocations) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *EdgeMiddlewareInvocations) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9394,6 +11920,17 @@ type EdgeRequestAdditionalCPUDuration struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (e EdgeRequestAdditionalCPUDuration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EdgeRequestAdditionalCPUDuration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *EdgeRequestAdditionalCPUDuration) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9421,6 +11958,17 @@ type EdgeRequest struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (e EdgeRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EdgeRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *EdgeRequest) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9448,6 +11996,17 @@ type ElasticConcurrencyBuildSlots struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (e ElasticConcurrencyBuildSlots) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *ElasticConcurrencyBuildSlots) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *ElasticConcurrencyBuildSlots) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9475,6 +12034,17 @@ type FastDataTransfer struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (f FastDataTransfer) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FastDataTransfer) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *FastDataTransfer) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9502,6 +12072,17 @@ type FastOriginTransfer struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (f FastOriginTransfer) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FastOriginTransfer) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *FastOriginTransfer) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9529,6 +12110,17 @@ type FluidCPUDuration struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (f FluidCPUDuration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FluidCPUDuration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *FluidCPUDuration) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9556,10 +12148,21 @@ type FluidDuration struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } -func (o *FluidDuration) GetCurrentThreshold() float64 { - if o == nil { - return 0.0 - } +func (f FluidDuration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FluidDuration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + +func (o *FluidDuration) GetCurrentThreshold() float64 { + if o == nil { + return 0.0 + } return o.CurrentThreshold } @@ -9583,6 +12186,17 @@ type FunctionDuration struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (f FunctionDuration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FunctionDuration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *FunctionDuration) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9610,6 +12224,17 @@ type FunctionInvocation struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (f FunctionInvocation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FunctionInvocation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *FunctionInvocation) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9637,6 +12262,17 @@ type ImageOptimizationCacheRead struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (i ImageOptimizationCacheRead) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *ImageOptimizationCacheRead) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *ImageOptimizationCacheRead) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9664,6 +12300,17 @@ type ImageOptimizationCacheWrite struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (i ImageOptimizationCacheWrite) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *ImageOptimizationCacheWrite) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *ImageOptimizationCacheWrite) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9691,6 +12338,17 @@ type OverageUsageAlertsImageOptimizationTransformation struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (o OverageUsageAlertsImageOptimizationTransformation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OverageUsageAlertsImageOptimizationTransformation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *OverageUsageAlertsImageOptimizationTransformation) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9718,6 +12376,17 @@ type LogDrainsVolume struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (l LogDrainsVolume) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *LogDrainsVolume) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *LogDrainsVolume) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9745,6 +12414,17 @@ type MonitoringMetric struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (m MonitoringMetric) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MonitoringMetric) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *MonitoringMetric) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9772,6 +12452,17 @@ type BlobDataTransfer struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (b BlobDataTransfer) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *BlobDataTransfer) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *BlobDataTransfer) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9799,6 +12490,17 @@ type ObservabilityEvent struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (o ObservabilityEvent) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *ObservabilityEvent) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *ObservabilityEvent) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9826,6 +12528,17 @@ type OnDemandConcurrencyMinutes struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (o OnDemandConcurrencyMinutes) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OnDemandConcurrencyMinutes) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *OnDemandConcurrencyMinutes) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9853,6 +12566,17 @@ type RuntimeCacheRead struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (r RuntimeCacheRead) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RuntimeCacheRead) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *RuntimeCacheRead) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9880,6 +12604,17 @@ type RuntimeCacheWrite struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (r RuntimeCacheWrite) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RuntimeCacheWrite) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *RuntimeCacheWrite) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9907,6 +12642,17 @@ type ServerlessFunctionExecution struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (s ServerlessFunctionExecution) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *ServerlessFunctionExecution) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *ServerlessFunctionExecution) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9934,6 +12680,17 @@ type OverageUsageAlertsSourceImages struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (o OverageUsageAlertsSourceImages) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OverageUsageAlertsSourceImages) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *OverageUsageAlertsSourceImages) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9961,6 +12718,17 @@ type WafOwaspExcessBytes struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (w WafOwaspExcessBytes) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(w, "", false) +} + +func (w *WafOwaspExcessBytes) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &w, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *WafOwaspExcessBytes) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -9988,6 +12756,17 @@ type WafOwaspRequests struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (w WafOwaspRequests) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(w, "", false) +} + +func (w *WafOwaspRequests) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &w, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *WafOwaspRequests) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -10015,6 +12794,17 @@ type WafRateLimitRequest struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (w WafRateLimitRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(w, "", false) +} + +func (w *WafRateLimitRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &w, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *WafRateLimitRequest) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -10042,6 +12832,17 @@ type WebAnalyticsEvent struct { BlockedAt *float64 `json:"blockedAt,omitempty"` } +func (w WebAnalyticsEvent) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(w, "", false) +} + +func (w *WebAnalyticsEvent) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &w, "", false, []string{"currentThreshold"}); err != nil { + return err + } + return nil +} + func (o *WebAnalyticsEvent) GetCurrentThreshold() float64 { if o == nil { return 0.0 @@ -10105,6 +12906,17 @@ type OverageUsageAlerts struct { WebAnalyticsEvent *WebAnalyticsEvent `json:"webAnalyticsEvent,omitempty"` } +func (o OverageUsageAlerts) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OverageUsageAlerts) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, nil); err != nil { + return err + } + return nil +} + func (o *OverageUsageAlerts) GetAnalyticsUsage() *AnalyticsUsage { if o == nil { return nil @@ -10394,6 +13206,17 @@ type OverageMetadata struct { IncreasedOnDemandEmailAttemptedAt *float64 `json:"increasedOnDemandEmailAttemptedAt,omitempty"` } +func (o OverageMetadata) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OverageMetadata) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, nil); err != nil { + return err + } + return nil +} + func (o *OverageMetadata) GetFirstTimeOnDemandNotificationSentAt() *float64 { if o == nil { return nil @@ -10509,6 +13332,17 @@ type UserEventWebAnalytics struct { GraceEmailSentAt *float64 `json:"graceEmailSentAt,omitempty"` } +func (u UserEventWebAnalytics) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventWebAnalytics) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"updatedAt", "blockReason"}); err != nil { + return err + } + return nil +} + func (o *UserEventWebAnalytics) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -10605,6 +13439,17 @@ type Monitoring struct { BlockType MonitoringBlockType `json:"blockType"` } +func (m Monitoring) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *Monitoring) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"updatedAt", "blockReason", "blockType"}); err != nil { + return err + } + return nil +} + func (o *Monitoring) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -10700,6 +13545,17 @@ type ObservabilityPlus struct { BlockType ObservabilityPlusBlockType `json:"blockType"` } +func (o ObservabilityPlus) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *ObservabilityPlus) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"updatedAt", "blockReason", "blockType"}); err != nil { + return err + } + return nil +} + func (o *ObservabilityPlus) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -10768,6 +13624,17 @@ type FeatureBlocksDataCache struct { BlockReason DataCacheBlockReason `json:"blockReason"` } +func (f FeatureBlocksDataCache) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FeatureBlocksDataCache) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"updatedAt", "blockReason"}); err != nil { + return err + } + return nil +} + func (o *FeatureBlocksDataCache) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -10829,6 +13696,17 @@ type FeatureBlocksImageOptimizationTransformation struct { BlockReason ImageOptimizationTransformationBlockReason `json:"blockReason"` } +func (f FeatureBlocksImageOptimizationTransformation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FeatureBlocksImageOptimizationTransformation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"updatedAt", "blockReason"}); err != nil { + return err + } + return nil +} + func (o *FeatureBlocksImageOptimizationTransformation) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -10890,6 +13768,17 @@ type FeatureBlocksSourceImages struct { BlockReason SourceImagesBlockReason `json:"blockReason"` } +func (f FeatureBlocksSourceImages) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FeatureBlocksSourceImages) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"updatedAt", "blockReason"}); err != nil { + return err + } + return nil +} + func (o *FeatureBlocksSourceImages) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -11089,6 +13978,17 @@ type Blob struct { OverageReason BlobOverageReason `json:"overageReason"` } +func (b Blob) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *Blob) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"updatedAt", "blockReason", "overageReason"}); err != nil { + return err + } + return nil +} + func (o *Blob) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -11295,6 +14195,17 @@ type Postgres struct { OverageReason PostgresOverageReason `json:"overageReason"` } +func (p Postgres) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Postgres) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"updatedAt", "blockReason", "overageReason"}); err != nil { + return err + } + return nil +} + func (o *Postgres) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -11501,6 +14412,17 @@ type Redis struct { OverageReason RedisOverageReason `json:"overageReason"` } +func (r Redis) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Redis) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"updatedAt", "blockReason", "overageReason"}); err != nil { + return err + } + return nil +} + func (o *Redis) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -11550,6 +14472,17 @@ type UserEventFeatureBlocks struct { Redis *Redis `json:"redis,omitempty"` } +func (u UserEventFeatureBlocks) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventFeatureBlocks) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + func (o *UserEventFeatureBlocks) GetWebAnalytics() *UserEventWebAnalytics { if o == nil { return nil @@ -11654,6 +14587,17 @@ type NorthstarMigration struct { EndTime float64 `json:"endTime"` } +func (n NorthstarMigration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NorthstarMigration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"teamId", "projects", "stores", "integrationConfigurations", "integrationClients", "startTime", "endTime"}); err != nil { + return err + } + return nil +} + func (o *NorthstarMigration) GetTeamID() string { if o == nil { return "" @@ -11708,6 +14652,17 @@ type Totp struct { CreatedAt float64 `json:"createdAt"` } +func (t Totp) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *Totp) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"secret", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *Totp) GetSecret() string { if o == nil { return "" @@ -11730,6 +14685,17 @@ type MfaConfiguration struct { Totp *Totp `json:"totp,omitempty"` } +func (m MfaConfiguration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MfaConfiguration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"enabled", "recoveryCodes"}); err != nil { + return err + } + return nil +} + func (o *MfaConfiguration) GetEnabled() bool { if o == nil { return false @@ -11847,11 +14813,22 @@ type NewOwner struct { MfaConfiguration *MfaConfiguration `json:"mfaConfiguration,omitempty"` } -func (o *NewOwner) GetAbuse() *Abuse { - if o == nil { - return nil - } - return o.Abuse +func (n NewOwner) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NewOwner) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"billing", "blocked", "createdAt", "deploymentSecret", "email", "id", "platformVersion", "stagingPrefix", "sysToken", "type", "username", "updatedAt", "version"}); err != nil { + return err + } + return nil +} + +func (o *NewOwner) GetAbuse() *Abuse { + if o == nil { + return nil + } + return o.Abuse } func (o *NewOwner) GetAcceptanceState() *string { @@ -12361,6 +15338,17 @@ type Payload64 struct { NewOwner *NewOwner `json:"newOwner"` } +func (p Payload64) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload64) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"userId", "integrationId", "configurationId", "integrationSlug", "newOwner"}); err != nil { + return err + } + return nil +} + func (o *Payload64) GetUserID() string { if o == nil { return "" @@ -12410,6 +15398,17 @@ type Payload63 struct { IntegrationName string `json:"integrationName"` } +func (p Payload63) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload63) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"integrationId", "integrationSlug", "integrationName"}); err != nil { + return err + } + return nil +} + func (o *Payload63) GetIntegrationID() string { if o == nil { return "" @@ -12440,6 +15439,17 @@ type Payload62 struct { AttackModeActiveUntil *float64 `json:"attackModeActiveUntil,omitempty"` } +func (p Payload62) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload62) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "attackModeEnabled"}); err != nil { + return err + } + return nil +} + func (o *Payload62) GetProjectID() string { if o == nil { return "" @@ -12509,6 +15519,17 @@ type RuleGroups struct { Action *RuleGroupsAction `json:"action,omitempty"` } +func (r RuleGroups) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RuleGroups) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"active"}); err != nil { + return err + } + return nil +} + func (o *RuleGroups) GetActive() bool { if o == nil { return false @@ -12530,6 +15551,17 @@ type Payload61 struct { RuleGroups map[string]RuleGroups `json:"ruleGroups"` } +func (p Payload61) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload61) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "rulesetName", "ruleGroups"}); err != nil { + return err + } + return nil +} + func (o *Payload61) GetProjectID() string { if o == nil { return "" @@ -12588,6 +15620,17 @@ type Payload60 struct { Action *Action3 `json:"action,omitempty"` } +func (p Payload60) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload60) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "rulesetName", "active"}); err != nil { + return err + } + return nil +} + func (o *Payload60) GetProjectID() string { if o == nil { return "" @@ -12623,6 +15666,17 @@ type Payload59 struct { Source string `json:"source"` } +func (p Payload59) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload59) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "scope", "source"}); err != nil { + return err + } + return nil +} + func (o *Payload59) GetProjectID() string { if o == nil { return "" @@ -12647,6 +15701,17 @@ func (o *Payload59) GetSource() string { type ConfigChange struct { } +func (c ConfigChange) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *ConfigChange) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + // Payload58 - The payload of the event, if requested. type Payload58 struct { ProjectID string `json:"projectId"` @@ -12656,6 +15721,17 @@ type Payload58 struct { ConfigChanges []ConfigChange `json:"configChanges"` } +func (p Payload58) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload58) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectId", "restore", "configVersion", "configChangeCount", "configChanges"}); err != nil { + return err + } + return nil +} + func (o *Payload58) GetProjectID() string { if o == nil { return "" @@ -12798,7 +15874,7 @@ func (o OldEnvVar) MarshalJSON() ([]byte, error) { } func (o *OldEnvVar) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &o, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &o, "", false, nil); err != nil { return err } return nil @@ -13037,7 +16113,7 @@ func (n NewEnvVar) MarshalJSON() ([]byte, error) { } func (n *NewEnvVar) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &n, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &n, "", false, nil); err != nil { return err } return nil @@ -13232,6 +16308,17 @@ type OldProject struct { ProjectID string `json:"projectId"` } +func (o OldProject) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldProject) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"projectId"}); err != nil { + return err + } + return nil +} + func (o *OldProject) GetProjectName() *string { if o == nil { return nil @@ -13251,6 +16338,17 @@ type NewProject struct { ProjectID string `json:"projectId"` } +func (n NewProject) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NewProject) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"projectId"}); err != nil { + return err + } + return nil +} + func (o *NewProject) GetProjectName() *string { if o == nil { return nil @@ -13278,6 +16376,17 @@ type UpdateDiff struct { ChangedValue bool `json:"changedValue"` } +func (u UpdateDiff) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateDiff) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "changedValue"}); err != nil { + return err + } + return nil +} + func (o *UpdateDiff) GetID() string { if o == nil { return "" @@ -13355,6 +16464,17 @@ type Payload57 struct { UpdateDiff *UpdateDiff `json:"updateDiff,omitempty"` } +func (p Payload57) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload57) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload57) GetOldEnvVar() *OldEnvVar { if o == nil { return nil @@ -13485,7 +16605,7 @@ func (p Payload56) MarshalJSON() ([]byte, error) { } func (p *Payload56) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, true); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil @@ -13659,14 +16779,14 @@ func CreateTargetArrayOfStr(arrayOfStr []string) Target { func (u *Target) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = TargetTypeStr return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = TargetTypeArrayOfStr return nil @@ -13700,6 +16820,17 @@ type Payload55 struct { Source *string `json:"source,omitempty"` } +func (p Payload55) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload55) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload55) GetKey() *string { if o == nil { return nil @@ -13769,6 +16900,17 @@ type Payload54 struct { Name string `json:"name"` } +func (p Payload54) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload54) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"email", "name"}); err != nil { + return err + } + return nil +} + func (o *Payload54) GetEmail() string { if o == nil { return "" @@ -13790,6 +16932,17 @@ type Payload53 struct { ProjectName string `json:"projectName"` } +func (p Payload53) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload53) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"sha", "gitUserPlatform", "projectName"}); err != nil { + return err + } + return nil +} + func (o *Payload53) GetSha() string { if o == nil { return "" @@ -13818,6 +16971,17 @@ type Payload52 struct { Currency *string `json:"currency,omitempty"` } +func (p Payload52) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload52) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Payload52) GetName() string { if o == nil { return "" @@ -13845,6 +17009,17 @@ type Payload51 struct { Domain string `json:"domain"` } +func (p Payload51) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload51) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"domain"}); err != nil { + return err + } + return nil +} + func (o *Payload51) GetRenew() *bool { if o == nil { return nil @@ -13866,6 +17041,17 @@ type Payload50 struct { DestinationName string `json:"destinationName"` } +func (p Payload50) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload50) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "destinationId", "destinationName"}); err != nil { + return err + } + return nil +} + func (o *Payload50) GetName() string { if o == nil { return "" @@ -13894,6 +17080,17 @@ type Payload49 struct { DestinationName *string `json:"destinationName"` } +func (p Payload49) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload49) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "destinationId", "destinationName"}); err != nil { + return err + } + return nil +} + func (o *Payload49) GetName() string { if o == nil { return "" @@ -13922,6 +17119,17 @@ type Payload48 struct { FromName *string `json:"fromName"` } +func (p Payload48) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload48) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "fromId", "fromName"}); err != nil { + return err + } + return nil +} + func (o *Payload48) GetName() string { if o == nil { return "" @@ -13949,6 +17157,17 @@ type Payload47 struct { Name string `json:"name"` } +func (p Payload47) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload47) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"domainId", "name"}); err != nil { + return err + } + return nil +} + func (o *Payload47) GetDomainID() string { if o == nil { return "" @@ -13967,6 +17186,17 @@ type OldTeam4 struct { Name string `json:"name"` } +func (o OldTeam4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldTeam4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *OldTeam4) GetName() string { if o == nil { return "" @@ -13978,6 +17208,17 @@ type NewTeam4 struct { Name string `json:"name"` } +func (n NewTeam4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NewTeam4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *NewTeam4) GetName() string { if o == nil { return "" @@ -13992,6 +17233,17 @@ type Payload46 struct { NewTeam *NewTeam4 `json:"newTeam,omitempty"` } +func (p Payload46) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload46) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Payload46) GetName() string { if o == nil { return "" @@ -14021,6 +17273,17 @@ type Payload45 struct { OwnerName string `json:"ownerName"` } +func (p Payload45) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload45) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "userId", "teamId", "ownerName"}); err != nil { + return err + } + return nil +} + func (o *Payload45) GetName() string { if o == nil { return "" @@ -14055,6 +17318,17 @@ type Payload44 struct { CdnEnabled bool `json:"cdnEnabled"` } +func (p Payload44) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload44) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "cdnEnabled"}); err != nil { + return err + } + return nil +} + func (o *Payload44) GetName() string { if o == nil { return "" @@ -14076,6 +17350,17 @@ type Payload43 struct { Currency *string `json:"currency,omitempty"` } +func (p Payload43) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload43) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "price"}); err != nil { + return err + } + return nil +} + func (o *Payload43) GetName() string { if o == nil { return "" @@ -14102,6 +17387,17 @@ type Payload42 struct { Name string `json:"name"` } +func (p Payload42) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload42) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Payload42) GetName() string { if o == nil { return "" @@ -14118,6 +17414,17 @@ type Payload41 struct { Type string `json:"type"` } +func (p Payload41) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload41) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "value", "name", "domain", "type"}); err != nil { + return err + } + return nil +} + func (o *Payload41) GetID() string { if o == nil { return "" @@ -14163,11 +17470,22 @@ type Payload40 struct { MxPriority *float64 `json:"mxPriority,omitempty"` } -func (o *Payload40) GetID() string { - if o == nil { - return "" - } - return o.ID +func (p Payload40) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload40) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id", "value", "name", "domain", "type"}); err != nil { + return err + } + return nil +} + +func (o *Payload40) GetID() string { + if o == nil { + return "" + } + return o.ID } func (o *Payload40) GetValue() string { @@ -14212,6 +17530,17 @@ type Deployment3 struct { Meta map[string]string `json:"meta"` } +func (d Deployment3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *Deployment3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"id", "name", "url", "meta"}); err != nil { + return err + } + return nil +} + func (o *Deployment3) GetID() string { if o == nil { return "" @@ -14247,6 +17576,17 @@ type Payload39 struct { URL string `json:"url"` } +func (p Payload39) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload39) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"deployment", "deploymentId", "url"}); err != nil { + return err + } + return nil +} + func (o *Payload39) GetDeployment() Deployment3 { if o == nil { return Deployment3{} @@ -14272,6 +17612,17 @@ type OldTeam3 struct { Name string `json:"name"` } +func (o OldTeam3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldTeam3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *OldTeam3) GetName() string { if o == nil { return "" @@ -14283,6 +17634,17 @@ type NewTeam3 struct { Name string `json:"name"` } +func (n NewTeam3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NewTeam3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *NewTeam3) GetName() string { if o == nil { return "" @@ -14297,6 +17659,17 @@ type Payload38 struct { NewTeam *NewTeam3 `json:"newTeam,omitempty"` } +func (p Payload38) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload38) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"url"}); err != nil { + return err + } + return nil +} + func (o *Payload38) GetURL() string { if o == nil { return "" @@ -14325,6 +17698,17 @@ type Deployment2 struct { Meta map[string]string `json:"meta"` } +func (d Deployment2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *Deployment2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"id", "name", "url", "meta"}); err != nil { + return err + } + return nil +} + func (o *Deployment2) GetID() string { if o == nil { return "" @@ -14369,6 +17753,17 @@ type Payload37 struct { Type *string `json:"type,omitempty"` } +func (p Payload37) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload37) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"url"}); err != nil { + return err + } + return nil +} + func (o *Payload37) GetName() *string { if o == nil { return nil @@ -14457,6 +17852,17 @@ type Project5 struct { Name string `json:"name"` } +func (p Project5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Project5) GetName() string { if o == nil { return "" @@ -14471,6 +17877,17 @@ type DeployHook struct { Ref string `json:"ref"` } +func (d DeployHook) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DeployHook) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"createdAt", "id", "name", "ref"}); err != nil { + return err + } + return nil +} + func (o *DeployHook) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -14504,6 +17921,17 @@ type Job struct { State string `json:"state"` } +func (j Job) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(j, "", false) +} + +func (j *Job) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &j, "", false, []string{"deployHook", "state"}); err != nil { + return err + } + return nil +} + func (o *Job) GetDeployHook() DeployHook { if o == nil { return DeployHook{} @@ -14524,6 +17952,17 @@ type Payload36 struct { Job Job `json:"job"` } +func (p Payload36) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload36) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"project", "job"}); err != nil { + return err + } + return nil +} + func (o *Payload36) GetProject() Project5 { if o == nil { return Project5{} @@ -14545,6 +17984,17 @@ type Payload35 struct { BitbucketName *string `json:"bitbucketName,omitempty"` } +func (p Payload35) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload35) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"bitbucketEmail", "bitbucketLogin"}); err != nil { + return err + } + return nil +} + func (o *Payload35) GetBitbucketEmail() string { if o == nil { return "" @@ -14573,6 +18023,17 @@ type Payload34 struct { GitlabName *string `json:"gitlabName,omitempty"` } +func (p Payload34) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload34) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"gitlabLogin", "gitlabEmail"}); err != nil { + return err + } + return nil +} + func (o *Payload34) GetGitlabLogin() string { if o == nil { return "" @@ -14599,6 +18060,17 @@ type Payload33 struct { GithubLogin string `json:"githubLogin"` } +func (p Payload33) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload33) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"githubLogin"}); err != nil { + return err + } + return nil +} + func (o *Payload33) GetGithubLogin() string { if o == nil { return "" @@ -14611,6 +18083,17 @@ type UserEventTeam4 struct { Name string `json:"name"` } +func (u UserEventTeam4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam4) GetID() string { if o == nil { return "" @@ -14630,6 +18113,17 @@ type Configuration4 struct { Name *string `json:"name,omitempty"` } +func (c Configuration4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Configuration4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Configuration4) GetID() string { if o == nil { return "" @@ -14651,6 +18145,17 @@ type Payload32 struct { NewName string `json:"newName"` } +func (p Payload32) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload32) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "configuration", "newName"}); err != nil { + return err + } + return nil +} + func (o *Payload32) GetTeam() UserEventTeam4 { if o == nil { return UserEventTeam4{} @@ -14677,6 +18182,17 @@ type UserEventTeam3 struct { Name string `json:"name"` } +func (u UserEventTeam3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam3) GetID() string { if o == nil { return "" @@ -14696,6 +18212,17 @@ type Configuration3 struct { Name *string `json:"name,omitempty"` } +func (c Configuration3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Configuration3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Configuration3) GetID() string { if o == nil { return "" @@ -14715,6 +18242,17 @@ type Project4 struct { Name *string `json:"name,omitempty"` } +func (p Project4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Project4) GetID() string { if o == nil { return "" @@ -14736,6 +18274,17 @@ type Payload31 struct { Project Project4 `json:"project"` } +func (p Payload31) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload31) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "configuration", "project"}); err != nil { + return err + } + return nil +} + func (o *Payload31) GetTeam() UserEventTeam3 { if o == nil { return UserEventTeam3{} @@ -14762,6 +18311,17 @@ type UserEventTeam2 struct { Name string `json:"name"` } +func (u UserEventTeam2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam2) GetID() string { if o == nil { return "" @@ -14781,6 +18341,17 @@ type Configuration2 struct { Name *string `json:"name,omitempty"` } +func (c Configuration2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Configuration2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Configuration2) GetID() string { if o == nil { return "" @@ -14800,6 +18371,17 @@ type Project3 struct { Name *string `json:"name,omitempty"` } +func (p Project3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Project3) GetID() string { if o == nil { return "" @@ -14823,6 +18405,17 @@ type Payload30 struct { Passive *bool `json:"passive,omitempty"` } +func (p Payload30) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload30) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "configuration", "project"}); err != nil { + return err + } + return nil +} + func (o *Payload30) GetTeam() UserEventTeam2 { if o == nil { return UserEventTeam2{} @@ -14863,6 +18456,17 @@ type UserEventTeam1 struct { Name string `json:"name"` } +func (u UserEventTeam1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UserEventTeam1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *UserEventTeam1) GetID() string { if o == nil { return "" @@ -14882,6 +18486,17 @@ type Configuration1 struct { Name *string `json:"name,omitempty"` } +func (c Configuration1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Configuration1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Configuration1) GetID() string { if o == nil { return "" @@ -14901,6 +18516,17 @@ type Project2 struct { Name *string `json:"name,omitempty"` } +func (p Project2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Project2) GetID() string { if o == nil { return "" @@ -14923,6 +18549,17 @@ type Payload29 struct { BuildsEnabled *bool `json:"buildsEnabled,omitempty"` } +func (p Payload29) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload29) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"team", "configuration", "project"}); err != nil { + return err + } + return nil +} + func (o *Payload29) GetTeam() UserEventTeam1 { if o == nil { return UserEventTeam1{} @@ -14956,6 +18593,17 @@ type Payload28 struct { Suffix string `json:"suffix"` } +func (p Payload28) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload28) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"suffix"}); err != nil { + return err + } + return nil +} + func (o *Payload28) GetSuffix() string { if o == nil { return "" @@ -14969,6 +18617,17 @@ type Payload27 struct { Suffix string `json:"suffix"` } +func (p Payload27) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload27) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"status", "suffix"}); err != nil { + return err + } + return nil +} + func (o *Payload27) GetStatus() string { if o == nil { return "" @@ -14989,6 +18648,17 @@ type Payload26 struct { Suffix string `json:"suffix"` } +func (p Payload26) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload26) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"suffix"}); err != nil { + return err + } + return nil +} + func (o *Payload26) GetReason() *string { if o == nil { return nil @@ -15009,6 +18679,17 @@ type Payload25 struct { Cns []string `json:"cns,omitempty"` } +func (p Payload25) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload25) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload25) GetCn() *string { if o == nil { return nil @@ -15030,6 +18711,17 @@ type Payload24 struct { Cns []string `json:"cns,omitempty"` } +func (p Payload24) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload24) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Payload24) GetID() string { if o == nil { return "" @@ -15057,6 +18749,17 @@ type Payload23 struct { Dst string `json:"dst"` } +func (p Payload23) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload23) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"src", "dst"}); err != nil { + return err + } + return nil +} + func (o *Payload23) GetSrc() string { if o == nil { return "" @@ -15075,6 +18778,17 @@ type OldTeam2 struct { Name string `json:"name"` } +func (o OldTeam2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldTeam2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *OldTeam2) GetName() string { if o == nil { return "" @@ -15086,6 +18800,17 @@ type NewTeam2 struct { Name string `json:"name"` } +func (n NewTeam2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NewTeam2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *NewTeam2) GetName() string { if o == nil { return "" @@ -15100,6 +18825,17 @@ type Payload22 struct { NewTeam *NewTeam2 `json:"newTeam,omitempty"` } +func (p Payload22) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload22) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Payload22) GetID() string { if o == nil { return "" @@ -15128,6 +18864,17 @@ type Payload21 struct { ID *string `json:"id,omitempty"` } +func (p Payload21) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload21) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload21) GetCn() *string { if o == nil { return nil @@ -15157,6 +18904,17 @@ type Payload20 struct { ID *string `json:"id,omitempty"` } +func (p Payload20) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload20) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"custom"}); err != nil { + return err + } + return nil +} + func (o *Payload20) GetCn() *string { if o == nil { return nil @@ -15190,6 +18948,17 @@ type Payload19 struct { Avatar *string `json:"avatar,omitempty"` } +func (p Payload19) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload19) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload19) GetAvatar() *string { if o == nil { return nil @@ -15203,6 +18972,17 @@ type Payload18 struct { AutoExposeSystemEnvs bool `json:"autoExposeSystemEnvs"` } +func (p Payload18) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload18) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "autoExposeSystemEnvs"}); err != nil { + return err + } + return nil +} + func (o *Payload18) GetProjectName() string { if o == nil { return "" @@ -15223,6 +19003,17 @@ type Payload17 struct { DeploymentURL string `json:"deploymentUrl"` } +func (p Payload17) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload17) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"alias", "deploymentUrl"}); err != nil { + return err + } + return nil +} + func (o *Payload17) GetAlias() string { if o == nil { return "" @@ -15245,6 +19036,17 @@ type Payload16 struct { DeploymentID *string `json:"deploymentId"` } +func (p Payload16) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload16) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"alias", "aliasId", "deploymentId"}); err != nil { + return err + } + return nil +} + func (o *Payload16) GetName() *string { if o == nil { return nil @@ -15277,6 +19079,17 @@ type OldTeam1 struct { Name string `json:"name"` } +func (o OldTeam1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *OldTeam1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *OldTeam1) GetName() string { if o == nil { return "" @@ -15288,6 +19101,17 @@ type NewTeam1 struct { Name string `json:"name"` } +func (n NewTeam1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NewTeam1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *NewTeam1) GetName() string { if o == nil { return "" @@ -15303,6 +19127,17 @@ type Payload15 struct { NewTeam *NewTeam1 `json:"newTeam,omitempty"` } +func (p Payload15) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload15) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"alias"}); err != nil { + return err + } + return nil +} + func (o *Payload15) GetName() *string { if o == nil { return nil @@ -15337,6 +19172,17 @@ type Payload14 struct { Email *string `json:"email,omitempty"` } +func (p Payload14) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload14) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload14) GetAlias() *string { if o == nil { return nil @@ -15358,6 +19204,17 @@ type Payload13 struct { Username *string `json:"username,omitempty"` } +func (p Payload13) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload13) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload13) GetAlias() *string { if o == nil { return nil @@ -15412,6 +19269,17 @@ type Payload12 struct { Action Action2 `json:"action"` } +func (p Payload12) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload12) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"projectName", "alias", "action"}); err != nil { + return err + } + return nil +} + func (o *Payload12) GetProjectName() string { if o == nil { return "" @@ -15441,6 +19309,17 @@ type Payload11 struct { Username *string `json:"username,omitempty"` } +func (p Payload11) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload11) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload11) GetAlias() *string { if o == nil { return nil @@ -15476,6 +19355,17 @@ type Payload10 struct { Username *string `json:"username,omitempty"` } +func (p Payload10) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload10) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload10) GetAlias() *string { if o == nil { return nil @@ -15502,6 +19392,17 @@ type Payload9 struct { Alias *string `json:"alias,omitempty"` } +func (p Payload9) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload9) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload9) GetAlias() *string { if o == nil { return nil @@ -15516,6 +19417,17 @@ type Payload8 struct { ProjectName *string `json:"projectName,omitempty"` } +func (p Payload8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload8) GetAliasID() *string { if o == nil { return nil @@ -15544,6 +19456,17 @@ type Deployment1 struct { Meta map[string]string `json:"meta"` } +func (d Deployment1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *Deployment1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"id", "name", "url", "meta"}); err != nil { + return err + } + return nil +} + func (o *Deployment1) GetID() string { if o == nil { return "" @@ -15588,6 +19511,17 @@ type Payload7 struct { AliasUpdatedAt *float64 `json:"aliasUpdatedAt,omitempty"` } +func (p Payload7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *Payload7) GetAlias() *string { if o == nil { return nil @@ -15677,6 +19611,17 @@ type AccessGroup4 struct { Name string `json:"name"` } +func (a AccessGroup4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessGroup4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *AccessGroup4) GetID() string { if o == nil { return "" @@ -15696,6 +19641,17 @@ type Project1 struct { Name *string `json:"name,omitempty"` } +func (p Project1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *Project1) GetID() string { if o == nil { return "" @@ -15776,6 +19732,17 @@ type Payload6 struct { PreviousRole *PreviousRole `json:"previous_role,omitempty"` } +func (p Payload6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"accessGroup", "project"}); err != nil { + return err + } + return nil +} + func (o *Payload6) GetAccessGroup() AccessGroup4 { if o == nil { return AccessGroup4{} @@ -15809,6 +19776,17 @@ type AccessGroup3 struct { Name *string `json:"name,omitempty"` } +func (a AccessGroup3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessGroup3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *AccessGroup3) GetID() string { if o == nil { return "" @@ -15828,6 +19806,17 @@ type PayloadUser1 struct { Username *string `json:"username,omitempty"` } +func (p PayloadUser1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PayloadUser1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *PayloadUser1) GetID() string { if o == nil { return "" @@ -15849,6 +19838,17 @@ type Payload5 struct { DirectoryType *string `json:"directoryType,omitempty"` } +func (p Payload5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"accessGroup", "user"}); err != nil { + return err + } + return nil +} + func (o *Payload5) GetAccessGroup() AccessGroup3 { if o == nil { return AccessGroup3{} @@ -15875,6 +19875,17 @@ type AccessGroup2 struct { Name string `json:"name"` } +func (a AccessGroup2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessGroup2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *AccessGroup2) GetID() string { if o == nil { return "" @@ -15895,6 +19906,17 @@ type Payload4 struct { AccessGroup AccessGroup2 `json:"accessGroup"` } +func (p Payload4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"author", "accessGroup"}); err != nil { + return err + } + return nil +} + func (o *Payload4) GetAuthor() string { if o == nil { return "" @@ -15914,10 +19936,21 @@ type AccessGroup1 struct { Name string `json:"name"` } -func (o *AccessGroup1) GetID() string { - if o == nil { - return "" - } +func (a AccessGroup1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessGroup1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + +func (o *AccessGroup1) GetID() string { + if o == nil { + return "" + } return o.ID } @@ -15933,6 +19966,17 @@ type Payload3 struct { AccessGroup AccessGroup1 `json:"accessGroup"` } +func (p Payload3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"accessGroup"}); err != nil { + return err + } + return nil +} + func (o *Payload3) GetAccessGroup() AccessGroup1 { if o == nil { return AccessGroup1{} @@ -15983,6 +20027,17 @@ type Payload2 struct { ProjectID string `json:"projectId"` } +func (p Payload2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"action", "id", "slug", "projectId"}); err != nil { + return err + } + return nil +} + func (o *Payload2) GetAction() Action1 { if o == nil { return Action1("") @@ -16015,6 +20070,17 @@ func (o *Payload2) GetProjectID() string { type Payload1 struct { } +func (p Payload1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + type PayloadUnionType string const ( @@ -16176,6 +20242,9 @@ const ( PayloadUnionTypePayload156 PayloadUnionType = "payload_156" PayloadUnionTypePayload157 PayloadUnionType = "payload_157" PayloadUnionTypePayload158 PayloadUnionType = "payload_158" + PayloadUnionTypePayload159 PayloadUnionType = "payload_159" + PayloadUnionTypePayload160 PayloadUnionType = "payload_160" + PayloadUnionTypePayload161 PayloadUnionType = "payload_161" ) type PayloadUnion struct { @@ -16337,6 +20406,9 @@ type PayloadUnion struct { Payload156 *Payload156 `queryParam:"inline"` Payload157 *Payload157 `queryParam:"inline"` Payload158 *Payload158 `queryParam:"inline"` + Payload159 *Payload159 `queryParam:"inline"` + Payload160 *Payload160 `queryParam:"inline"` + Payload161 *Payload161 `queryParam:"inline"` Type PayloadUnionType } @@ -17763,1111 +21835,1159 @@ func CreatePayloadUnionPayload158(payload158 Payload158) PayloadUnion { } } -func (u *PayloadUnion) UnmarshalJSON(data []byte) error { +func CreatePayloadUnionPayload159(payload159 Payload159) PayloadUnion { + typ := PayloadUnionTypePayload159 - var payload1 Payload1 = Payload1{} - if err := utils.UnmarshalJSON(data, &payload1, "", true, true); err == nil { - u.Payload1 = &payload1 - u.Type = PayloadUnionTypePayload1 - return nil + return PayloadUnion{ + Payload159: &payload159, + Type: typ, } +} - var payload102 Payload102 = Payload102{} - if err := utils.UnmarshalJSON(data, &payload102, "", true, true); err == nil { - u.Payload102 = &payload102 - u.Type = PayloadUnionTypePayload102 - return nil +func CreatePayloadUnionPayload160(payload160 Payload160) PayloadUnion { + typ := PayloadUnionTypePayload160 + + return PayloadUnion{ + Payload160: &payload160, + Type: typ, } +} - var payload42 Payload42 = Payload42{} - if err := utils.UnmarshalJSON(data, &payload42, "", true, true); err == nil { - u.Payload42 = &payload42 - u.Type = PayloadUnionTypePayload42 - return nil +func CreatePayloadUnionPayload161(payload161 Payload161) PayloadUnion { + typ := PayloadUnionTypePayload161 + + return PayloadUnion{ + Payload161: &payload161, + Type: typ, } +} - var payload117 Payload117 = Payload117{} - if err := utils.UnmarshalJSON(data, &payload117, "", true, true); err == nil { - u.Payload117 = &payload117 - u.Type = PayloadUnionTypePayload117 +func (u *PayloadUnion) UnmarshalJSON(data []byte) error { + + var payload66 Payload66 = Payload66{} + if err := utils.UnmarshalJSON(data, &payload66, "", true, nil); err == nil { + u.Payload66 = &payload66 + u.Type = PayloadUnionTypePayload66 return nil } - var payload118 Payload118 = Payload118{} - if err := utils.UnmarshalJSON(data, &payload118, "", true, true); err == nil { - u.Payload118 = &payload118 - u.Type = PayloadUnionTypePayload118 + var payload69 Payload69 = Payload69{} + if err := utils.UnmarshalJSON(data, &payload69, "", true, nil); err == nil { + u.Payload69 = &payload69 + u.Type = PayloadUnionTypePayload69 return nil } - var payload108 Payload108 = Payload108{} - if err := utils.UnmarshalJSON(data, &payload108, "", true, true); err == nil { - u.Payload108 = &payload108 - u.Type = PayloadUnionTypePayload108 + var payload70 Payload70 = Payload70{} + if err := utils.UnmarshalJSON(data, &payload70, "", true, nil); err == nil { + u.Payload70 = &payload70 + u.Type = PayloadUnionTypePayload70 return nil } - var payload106 Payload106 = Payload106{} - if err := utils.UnmarshalJSON(data, &payload106, "", true, true); err == nil { - u.Payload106 = &payload106 - u.Type = PayloadUnionTypePayload106 + var payload40 Payload40 = Payload40{} + if err := utils.UnmarshalJSON(data, &payload40, "", true, nil); err == nil { + u.Payload40 = &payload40 + u.Type = PayloadUnionTypePayload40 return nil } - var payload119 Payload119 = Payload119{} - if err := utils.UnmarshalJSON(data, &payload119, "", true, true); err == nil { - u.Payload119 = &payload119 - u.Type = PayloadUnionTypePayload119 + var payload41 Payload41 = Payload41{} + if err := utils.UnmarshalJSON(data, &payload41, "", true, nil); err == nil { + u.Payload41 = &payload41 + u.Type = PayloadUnionTypePayload41 return nil } - var payload9 Payload9 = Payload9{} - if err := utils.UnmarshalJSON(data, &payload9, "", true, true); err == nil { - u.Payload9 = &payload9 - u.Type = PayloadUnionTypePayload9 + var payload58 Payload58 = Payload58{} + if err := utils.UnmarshalJSON(data, &payload58, "", true, nil); err == nil { + u.Payload58 = &payload58 + u.Type = PayloadUnionTypePayload58 return nil } - var payload104 Payload104 = Payload104{} - if err := utils.UnmarshalJSON(data, &payload104, "", true, true); err == nil { - u.Payload104 = &payload104 - u.Type = PayloadUnionTypePayload104 + var payload64 Payload64 = Payload64{} + if err := utils.UnmarshalJSON(data, &payload64, "", true, nil); err == nil { + u.Payload64 = &payload64 + u.Type = PayloadUnionTypePayload64 return nil } - var payload153 Payload153 = Payload153{} - if err := utils.UnmarshalJSON(data, &payload153, "", true, true); err == nil { - u.Payload153 = &payload153 - u.Type = PayloadUnionTypePayload153 + var payload67 Payload67 = Payload67{} + if err := utils.UnmarshalJSON(data, &payload67, "", true, nil); err == nil { + u.Payload67 = &payload67 + u.Type = PayloadUnionTypePayload67 return nil } - var payload103 Payload103 = Payload103{} - if err := utils.UnmarshalJSON(data, &payload103, "", true, true); err == nil { - u.Payload103 = &payload103 - u.Type = PayloadUnionTypePayload103 + var payload131 Payload131 = Payload131{} + if err := utils.UnmarshalJSON(data, &payload131, "", true, nil); err == nil { + u.Payload131 = &payload131 + u.Type = PayloadUnionTypePayload131 return nil } - var payload28 Payload28 = Payload28{} - if err := utils.UnmarshalJSON(data, &payload28, "", true, true); err == nil { - u.Payload28 = &payload28 - u.Type = PayloadUnionTypePayload28 + var payload161 Payload161 = Payload161{} + if err := utils.UnmarshalJSON(data, &payload161, "", true, nil); err == nil { + u.Payload161 = &payload161 + u.Type = PayloadUnionTypePayload161 return nil } - var payload3 Payload3 = Payload3{} - if err := utils.UnmarshalJSON(data, &payload3, "", true, true); err == nil { - u.Payload3 = &payload3 - u.Type = PayloadUnionTypePayload3 + var payload2 Payload2 = Payload2{} + if err := utils.UnmarshalJSON(data, &payload2, "", true, nil); err == nil { + u.Payload2 = &payload2 + u.Type = PayloadUnionTypePayload2 return nil } - var payload88 Payload88 = Payload88{} - if err := utils.UnmarshalJSON(data, &payload88, "", true, true); err == nil { - u.Payload88 = &payload88 - u.Type = PayloadUnionTypePayload88 + var payload45 Payload45 = Payload45{} + if err := utils.UnmarshalJSON(data, &payload45, "", true, nil); err == nil { + u.Payload45 = &payload45 + u.Type = PayloadUnionTypePayload45 return nil } - var payload100 Payload100 = Payload100{} - if err := utils.UnmarshalJSON(data, &payload100, "", true, true); err == nil { - u.Payload100 = &payload100 - u.Type = PayloadUnionTypePayload100 + var payload68 Payload68 = Payload68{} + if err := utils.UnmarshalJSON(data, &payload68, "", true, nil); err == nil { + u.Payload68 = &payload68 + u.Type = PayloadUnionTypePayload68 return nil } - var payload122 Payload122 = Payload122{} - if err := utils.UnmarshalJSON(data, &payload122, "", true, true); err == nil { - u.Payload122 = &payload122 - u.Type = PayloadUnionTypePayload122 + var payload101 Payload101 = Payload101{} + if err := utils.UnmarshalJSON(data, &payload101, "", true, nil); err == nil { + u.Payload101 = &payload101 + u.Type = PayloadUnionTypePayload101 return nil } - var payload116 Payload116 = Payload116{} - if err := utils.UnmarshalJSON(data, &payload116, "", true, true); err == nil { - u.Payload116 = &payload116 - u.Type = PayloadUnionTypePayload116 + var payload142 Payload142 = Payload142{} + if err := utils.UnmarshalJSON(data, &payload142, "", true, nil); err == nil { + u.Payload142 = &payload142 + u.Type = PayloadUnionTypePayload142 return nil } - var payload19 Payload19 = Payload19{} - if err := utils.UnmarshalJSON(data, &payload19, "", true, true); err == nil { - u.Payload19 = &payload19 - u.Type = PayloadUnionTypePayload19 + var payload12 Payload12 = Payload12{} + if err := utils.UnmarshalJSON(data, &payload12, "", true, nil); err == nil { + u.Payload12 = &payload12 + u.Type = PayloadUnionTypePayload12 return nil } - var payload75 Payload75 = Payload75{} - if err := utils.UnmarshalJSON(data, &payload75, "", true, true); err == nil { - u.Payload75 = &payload75 - u.Type = PayloadUnionTypePayload75 + var payload16 Payload16 = Payload16{} + if err := utils.UnmarshalJSON(data, &payload16, "", true, nil); err == nil { + u.Payload16 = &payload16 + u.Type = PayloadUnionTypePayload16 return nil } - var payload124 Payload124 = Payload124{} - if err := utils.UnmarshalJSON(data, &payload124, "", true, true); err == nil { - u.Payload124 = &payload124 - u.Type = PayloadUnionTypePayload124 + var payload29 Payload29 = Payload29{} + if err := utils.UnmarshalJSON(data, &payload29, "", true, nil); err == nil { + u.Payload29 = &payload29 + u.Type = PayloadUnionTypePayload29 return nil } - var payload138 Payload138 = Payload138{} - if err := utils.UnmarshalJSON(data, &payload138, "", true, true); err == nil { - u.Payload138 = &payload138 - u.Type = PayloadUnionTypePayload138 + var payload30 Payload30 = Payload30{} + if err := utils.UnmarshalJSON(data, &payload30, "", true, nil); err == nil { + u.Payload30 = &payload30 + u.Type = PayloadUnionTypePayload30 return nil } - var payload95 Payload95 = Payload95{} - if err := utils.UnmarshalJSON(data, &payload95, "", true, true); err == nil { - u.Payload95 = &payload95 - u.Type = PayloadUnionTypePayload95 + var payload31 Payload31 = Payload31{} + if err := utils.UnmarshalJSON(data, &payload31, "", true, nil); err == nil { + u.Payload31 = &payload31 + u.Type = PayloadUnionTypePayload31 return nil } - var payload143 Payload143 = Payload143{} - if err := utils.UnmarshalJSON(data, &payload143, "", true, true); err == nil { - u.Payload143 = &payload143 - u.Type = PayloadUnionTypePayload143 + var payload32 Payload32 = Payload32{} + if err := utils.UnmarshalJSON(data, &payload32, "", true, nil); err == nil { + u.Payload32 = &payload32 + u.Type = PayloadUnionTypePayload32 return nil } - var payload33 Payload33 = Payload33{} - if err := utils.UnmarshalJSON(data, &payload33, "", true, true); err == nil { - u.Payload33 = &payload33 - u.Type = PayloadUnionTypePayload33 + var payload39 Payload39 = Payload39{} + if err := utils.UnmarshalJSON(data, &payload39, "", true, nil); err == nil { + u.Payload39 = &payload39 + u.Type = PayloadUnionTypePayload39 return nil } - var payload149 Payload149 = Payload149{} - if err := utils.UnmarshalJSON(data, &payload149, "", true, true); err == nil { - u.Payload149 = &payload149 - u.Type = PayloadUnionTypePayload149 + var payload48 Payload48 = Payload48{} + if err := utils.UnmarshalJSON(data, &payload48, "", true, nil); err == nil { + u.Payload48 = &payload48 + u.Type = PayloadUnionTypePayload48 return nil } - var payload86 Payload86 = Payload86{} - if err := utils.UnmarshalJSON(data, &payload86, "", true, true); err == nil { - u.Payload86 = &payload86 - u.Type = PayloadUnionTypePayload86 + var payload49 Payload49 = Payload49{} + if err := utils.UnmarshalJSON(data, &payload49, "", true, nil); err == nil { + u.Payload49 = &payload49 + u.Type = PayloadUnionTypePayload49 return nil } - var payload71 Payload71 = Payload71{} - if err := utils.UnmarshalJSON(data, &payload71, "", true, true); err == nil { - u.Payload71 = &payload71 - u.Type = PayloadUnionTypePayload71 + var payload50 Payload50 = Payload50{} + if err := utils.UnmarshalJSON(data, &payload50, "", true, nil); err == nil { + u.Payload50 = &payload50 + u.Type = PayloadUnionTypePayload50 return nil } - var payload26 Payload26 = Payload26{} - if err := utils.UnmarshalJSON(data, &payload26, "", true, true); err == nil { - u.Payload26 = &payload26 - u.Type = PayloadUnionTypePayload26 + var payload53 Payload53 = Payload53{} + if err := utils.UnmarshalJSON(data, &payload53, "", true, nil); err == nil { + u.Payload53 = &payload53 + u.Type = PayloadUnionTypePayload53 return nil } - var payload4 Payload4 = Payload4{} - if err := utils.UnmarshalJSON(data, &payload4, "", true, true); err == nil { - u.Payload4 = &payload4 - u.Type = PayloadUnionTypePayload4 + var payload59 Payload59 = Payload59{} + if err := utils.UnmarshalJSON(data, &payload59, "", true, nil); err == nil { + u.Payload59 = &payload59 + u.Type = PayloadUnionTypePayload59 return nil } - var payload107 Payload107 = Payload107{} - if err := utils.UnmarshalJSON(data, &payload107, "", true, true); err == nil { - u.Payload107 = &payload107 - u.Type = PayloadUnionTypePayload107 + var payload60 Payload60 = Payload60{} + if err := utils.UnmarshalJSON(data, &payload60, "", true, nil); err == nil { + u.Payload60 = &payload60 + u.Type = PayloadUnionTypePayload60 return nil } - var payload154 Payload154 = Payload154{} - if err := utils.UnmarshalJSON(data, &payload154, "", true, true); err == nil { - u.Payload154 = &payload154 - u.Type = PayloadUnionTypePayload154 + var payload61 Payload61 = Payload61{} + if err := utils.UnmarshalJSON(data, &payload61, "", true, nil); err == nil { + u.Payload61 = &payload61 + u.Type = PayloadUnionTypePayload61 return nil } - var payload25 Payload25 = Payload25{} - if err := utils.UnmarshalJSON(data, &payload25, "", true, true); err == nil { - u.Payload25 = &payload25 - u.Type = PayloadUnionTypePayload25 + var payload63 Payload63 = Payload63{} + if err := utils.UnmarshalJSON(data, &payload63, "", true, nil); err == nil { + u.Payload63 = &payload63 + u.Type = PayloadUnionTypePayload63 return nil } - var payload120 Payload120 = Payload120{} - if err := utils.UnmarshalJSON(data, &payload120, "", true, true); err == nil { - u.Payload120 = &payload120 - u.Type = PayloadUnionTypePayload120 + var payload74 Payload74 = Payload74{} + if err := utils.UnmarshalJSON(data, &payload74, "", true, nil); err == nil { + u.Payload74 = &payload74 + u.Type = PayloadUnionTypePayload74 return nil } - var payload14 Payload14 = Payload14{} - if err := utils.UnmarshalJSON(data, &payload14, "", true, true); err == nil { - u.Payload14 = &payload14 - u.Type = PayloadUnionTypePayload14 + var payload78 Payload78 = Payload78{} + if err := utils.UnmarshalJSON(data, &payload78, "", true, nil); err == nil { + u.Payload78 = &payload78 + u.Type = PayloadUnionTypePayload78 return nil } - var payload36 Payload36 = Payload36{} - if err := utils.UnmarshalJSON(data, &payload36, "", true, true); err == nil { - u.Payload36 = &payload36 - u.Type = PayloadUnionTypePayload36 + var payload81 Payload81 = Payload81{} + if err := utils.UnmarshalJSON(data, &payload81, "", true, nil); err == nil { + u.Payload81 = &payload81 + u.Type = PayloadUnionTypePayload81 return nil } - var payload146 Payload146 = Payload146{} - if err := utils.UnmarshalJSON(data, &payload146, "", true, true); err == nil { - u.Payload146 = &payload146 - u.Type = PayloadUnionTypePayload146 - return nil - } - - var payload98 Payload98 = Payload98{} - if err := utils.UnmarshalJSON(data, &payload98, "", true, true); err == nil { - u.Payload98 = &payload98 - u.Type = PayloadUnionTypePayload98 + var payload82 Payload82 = Payload82{} + if err := utils.UnmarshalJSON(data, &payload82, "", true, nil); err == nil { + u.Payload82 = &payload82 + u.Type = PayloadUnionTypePayload82 return nil } - var payload97 Payload97 = Payload97{} - if err := utils.UnmarshalJSON(data, &payload97, "", true, true); err == nil { - u.Payload97 = &payload97 - u.Type = PayloadUnionTypePayload97 + var payload92 Payload92 = Payload92{} + if err := utils.UnmarshalJSON(data, &payload92, "", true, nil); err == nil { + u.Payload92 = &payload92 + u.Type = PayloadUnionTypePayload92 return nil } - var payload152 Payload152 = Payload152{} - if err := utils.UnmarshalJSON(data, &payload152, "", true, true); err == nil { - u.Payload152 = &payload152 - u.Type = PayloadUnionTypePayload152 + var payload109 Payload109 = Payload109{} + if err := utils.UnmarshalJSON(data, &payload109, "", true, nil); err == nil { + u.Payload109 = &payload109 + u.Type = PayloadUnionTypePayload109 return nil } - var payload94 Payload94 = Payload94{} - if err := utils.UnmarshalJSON(data, &payload94, "", true, true); err == nil { - u.Payload94 = &payload94 - u.Type = PayloadUnionTypePayload94 + var payload133 Payload133 = Payload133{} + if err := utils.UnmarshalJSON(data, &payload133, "", true, nil); err == nil { + u.Payload133 = &payload133 + u.Type = PayloadUnionTypePayload133 return nil } - var payload23 Payload23 = Payload23{} - if err := utils.UnmarshalJSON(data, &payload23, "", true, true); err == nil { - u.Payload23 = &payload23 - u.Type = PayloadUnionTypePayload23 + var payload134 Payload134 = Payload134{} + if err := utils.UnmarshalJSON(data, &payload134, "", true, nil); err == nil { + u.Payload134 = &payload134 + u.Type = PayloadUnionTypePayload134 return nil } - var payload93 Payload93 = Payload93{} - if err := utils.UnmarshalJSON(data, &payload93, "", true, true); err == nil { - u.Payload93 = &payload93 - u.Type = PayloadUnionTypePayload93 + var payload141 Payload141 = Payload141{} + if err := utils.UnmarshalJSON(data, &payload141, "", true, nil); err == nil { + u.Payload141 = &payload141 + u.Type = PayloadUnionTypePayload141 return nil } - var payload44 Payload44 = Payload44{} - if err := utils.UnmarshalJSON(data, &payload44, "", true, true); err == nil { - u.Payload44 = &payload44 - u.Type = PayloadUnionTypePayload44 + var payload143 Payload143 = Payload143{} + if err := utils.UnmarshalJSON(data, &payload143, "", true, nil); err == nil { + u.Payload143 = &payload143 + u.Type = PayloadUnionTypePayload143 return nil } - var payload90 Payload90 = Payload90{} - if err := utils.UnmarshalJSON(data, &payload90, "", true, true); err == nil { - u.Payload90 = &payload90 - u.Type = PayloadUnionTypePayload90 + var payload145 Payload145 = Payload145{} + if err := utils.UnmarshalJSON(data, &payload145, "", true, nil); err == nil { + u.Payload145 = &payload145 + u.Type = PayloadUnionTypePayload145 return nil } - var payload89 Payload89 = Payload89{} - if err := utils.UnmarshalJSON(data, &payload89, "", true, true); err == nil { - u.Payload89 = &payload89 - u.Type = PayloadUnionTypePayload89 + var payload148 Payload148 = Payload148{} + if err := utils.UnmarshalJSON(data, &payload148, "", true, nil); err == nil { + u.Payload148 = &payload148 + u.Type = PayloadUnionTypePayload148 return nil } - var payload47 Payload47 = Payload47{} - if err := utils.UnmarshalJSON(data, &payload47, "", true, true); err == nil { - u.Payload47 = &payload47 - u.Type = PayloadUnionTypePayload47 + var payload158 Payload158 = Payload158{} + if err := utils.UnmarshalJSON(data, &payload158, "", true, nil); err == nil { + u.Payload158 = &payload158 + u.Type = PayloadUnionTypePayload158 return nil } - var payload151 Payload151 = Payload151{} - if err := utils.UnmarshalJSON(data, &payload151, "", true, true); err == nil { - u.Payload151 = &payload151 - u.Type = PayloadUnionTypePayload151 + var payload159 Payload159 = Payload159{} + if err := utils.UnmarshalJSON(data, &payload159, "", true, nil); err == nil { + u.Payload159 = &payload159 + u.Type = PayloadUnionTypePayload159 return nil } - var payload87 Payload87 = Payload87{} - if err := utils.UnmarshalJSON(data, &payload87, "", true, true); err == nil { - u.Payload87 = &payload87 - u.Type = PayloadUnionTypePayload87 + var payload160 Payload160 = Payload160{} + if err := utils.UnmarshalJSON(data, &payload160, "", true, nil); err == nil { + u.Payload160 = &payload160 + u.Type = PayloadUnionTypePayload160 return nil } - var payload114 Payload114 = Payload114{} - if err := utils.UnmarshalJSON(data, &payload114, "", true, true); err == nil { - u.Payload114 = &payload114 - u.Type = PayloadUnionTypePayload114 + var payload4 Payload4 = Payload4{} + if err := utils.UnmarshalJSON(data, &payload4, "", true, nil); err == nil { + u.Payload4 = &payload4 + u.Type = PayloadUnionTypePayload4 return nil } - var payload51 Payload51 = Payload51{} - if err := utils.UnmarshalJSON(data, &payload51, "", true, true); err == nil { - u.Payload51 = &payload51 - u.Type = PayloadUnionTypePayload51 + var payload5 Payload5 = Payload5{} + if err := utils.UnmarshalJSON(data, &payload5, "", true, nil); err == nil { + u.Payload5 = &payload5 + u.Type = PayloadUnionTypePayload5 return nil } - var payload85 Payload85 = Payload85{} - if err := utils.UnmarshalJSON(data, &payload85, "", true, true); err == nil { - u.Payload85 = &payload85 - u.Type = PayloadUnionTypePayload85 + var payload6 Payload6 = Payload6{} + if err := utils.UnmarshalJSON(data, &payload6, "", true, nil); err == nil { + u.Payload6 = &payload6 + u.Type = PayloadUnionTypePayload6 return nil } - var payload121 Payload121 = Payload121{} - if err := utils.UnmarshalJSON(data, &payload121, "", true, true); err == nil { - u.Payload121 = &payload121 - u.Type = PayloadUnionTypePayload121 + var payload17 Payload17 = Payload17{} + if err := utils.UnmarshalJSON(data, &payload17, "", true, nil); err == nil { + u.Payload17 = &payload17 + u.Type = PayloadUnionTypePayload17 return nil } - var payload54 Payload54 = Payload54{} - if err := utils.UnmarshalJSON(data, &payload54, "", true, true); err == nil { - u.Payload54 = &payload54 - u.Type = PayloadUnionTypePayload54 + var payload18 Payload18 = Payload18{} + if err := utils.UnmarshalJSON(data, &payload18, "", true, nil); err == nil { + u.Payload18 = &payload18 + u.Type = PayloadUnionTypePayload18 return nil } - var payload80 Payload80 = Payload80{} - if err := utils.UnmarshalJSON(data, &payload80, "", true, true); err == nil { - u.Payload80 = &payload80 - u.Type = PayloadUnionTypePayload80 + var payload23 Payload23 = Payload23{} + if err := utils.UnmarshalJSON(data, &payload23, "", true, nil); err == nil { + u.Payload23 = &payload23 + u.Type = PayloadUnionTypePayload23 return nil } - var payload17 Payload17 = Payload17{} - if err := utils.UnmarshalJSON(data, &payload17, "", true, true); err == nil { - u.Payload17 = &payload17 - u.Type = PayloadUnionTypePayload17 + var payload27 Payload27 = Payload27{} + if err := utils.UnmarshalJSON(data, &payload27, "", true, nil); err == nil { + u.Payload27 = &payload27 + u.Type = PayloadUnionTypePayload27 return nil } - var payload18 Payload18 = Payload18{} - if err := utils.UnmarshalJSON(data, &payload18, "", true, true); err == nil { - u.Payload18 = &payload18 - u.Type = PayloadUnionTypePayload18 + var payload34 Payload34 = Payload34{} + if err := utils.UnmarshalJSON(data, &payload34, "", true, nil); err == nil { + u.Payload34 = &payload34 + u.Type = PayloadUnionTypePayload34 return nil } - var payload77 Payload77 = Payload77{} - if err := utils.UnmarshalJSON(data, &payload77, "", true, true); err == nil { - u.Payload77 = &payload77 - u.Type = PayloadUnionTypePayload77 + var payload35 Payload35 = Payload35{} + if err := utils.UnmarshalJSON(data, &payload35, "", true, nil); err == nil { + u.Payload35 = &payload35 + u.Type = PayloadUnionTypePayload35 return nil } - var payload123 Payload123 = Payload123{} - if err := utils.UnmarshalJSON(data, &payload123, "", true, true); err == nil { - u.Payload123 = &payload123 - u.Type = PayloadUnionTypePayload123 + var payload36 Payload36 = Payload36{} + if err := utils.UnmarshalJSON(data, &payload36, "", true, nil); err == nil { + u.Payload36 = &payload36 + u.Type = PayloadUnionTypePayload36 return nil } - var payload137 Payload137 = Payload137{} - if err := utils.UnmarshalJSON(data, &payload137, "", true, true); err == nil { - u.Payload137 = &payload137 - u.Type = PayloadUnionTypePayload137 + var payload43 Payload43 = Payload43{} + if err := utils.UnmarshalJSON(data, &payload43, "", true, nil); err == nil { + u.Payload43 = &payload43 + u.Type = PayloadUnionTypePayload43 return nil } - var payload150 Payload150 = Payload150{} - if err := utils.UnmarshalJSON(data, &payload150, "", true, true); err == nil { - u.Payload150 = &payload150 - u.Type = PayloadUnionTypePayload150 + var payload44 Payload44 = Payload44{} + if err := utils.UnmarshalJSON(data, &payload44, "", true, nil); err == nil { + u.Payload44 = &payload44 + u.Type = PayloadUnionTypePayload44 return nil } - var payload136 Payload136 = Payload136{} - if err := utils.UnmarshalJSON(data, &payload136, "", true, true); err == nil { - u.Payload136 = &payload136 - u.Type = PayloadUnionTypePayload136 + var payload47 Payload47 = Payload47{} + if err := utils.UnmarshalJSON(data, &payload47, "", true, nil); err == nil { + u.Payload47 = &payload47 + u.Type = PayloadUnionTypePayload47 return nil } - var payload73 Payload73 = Payload73{} - if err := utils.UnmarshalJSON(data, &payload73, "", true, true); err == nil { - u.Payload73 = &payload73 - u.Type = PayloadUnionTypePayload73 + var payload54 Payload54 = Payload54{} + if err := utils.UnmarshalJSON(data, &payload54, "", true, nil); err == nil { + u.Payload54 = &payload54 + u.Type = PayloadUnionTypePayload54 return nil } - var payload135 Payload135 = Payload135{} - if err := utils.UnmarshalJSON(data, &payload135, "", true, true); err == nil { - u.Payload135 = &payload135 - u.Type = PayloadUnionTypePayload135 + var payload62 Payload62 = Payload62{} + if err := utils.UnmarshalJSON(data, &payload62, "", true, nil); err == nil { + u.Payload62 = &payload62 + u.Type = PayloadUnionTypePayload62 return nil } var payload65 Payload65 = Payload65{} - if err := utils.UnmarshalJSON(data, &payload65, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &payload65, "", true, nil); err == nil { u.Payload65 = &payload65 u.Type = PayloadUnionTypePayload65 return nil } - var payload72 Payload72 = Payload72{} - if err := utils.UnmarshalJSON(data, &payload72, "", true, true); err == nil { - u.Payload72 = &payload72 - u.Type = PayloadUnionTypePayload72 + var payload77 Payload77 = Payload77{} + if err := utils.UnmarshalJSON(data, &payload77, "", true, nil); err == nil { + u.Payload77 = &payload77 + u.Type = PayloadUnionTypePayload77 return nil } - var payload127 Payload127 = Payload127{} - if err := utils.UnmarshalJSON(data, &payload127, "", true, true); err == nil { - u.Payload127 = &payload127 - u.Type = PayloadUnionTypePayload127 + var payload85 Payload85 = Payload85{} + if err := utils.UnmarshalJSON(data, &payload85, "", true, nil); err == nil { + u.Payload85 = &payload85 + u.Type = PayloadUnionTypePayload85 return nil } - var payload126 Payload126 = Payload126{} - if err := utils.UnmarshalJSON(data, &payload126, "", true, true); err == nil { - u.Payload126 = &payload126 - u.Type = PayloadUnionTypePayload126 + var payload86 Payload86 = Payload86{} + if err := utils.UnmarshalJSON(data, &payload86, "", true, nil); err == nil { + u.Payload86 = &payload86 + u.Type = PayloadUnionTypePayload86 return nil } - var payload27 Payload27 = Payload27{} - if err := utils.UnmarshalJSON(data, &payload27, "", true, true); err == nil { - u.Payload27 = &payload27 - u.Type = PayloadUnionTypePayload27 + var payload87 Payload87 = Payload87{} + if err := utils.UnmarshalJSON(data, &payload87, "", true, nil); err == nil { + u.Payload87 = &payload87 + u.Type = PayloadUnionTypePayload87 return nil } - var payload125 Payload125 = Payload125{} - if err := utils.UnmarshalJSON(data, &payload125, "", true, true); err == nil { - u.Payload125 = &payload125 - u.Type = PayloadUnionTypePayload125 + var payload89 Payload89 = Payload89{} + if err := utils.UnmarshalJSON(data, &payload89, "", true, nil); err == nil { + u.Payload89 = &payload89 + u.Type = PayloadUnionTypePayload89 + return nil + } + + var payload90 Payload90 = Payload90{} + if err := utils.UnmarshalJSON(data, &payload90, "", true, nil); err == nil { + u.Payload90 = &payload90 + u.Type = PayloadUnionTypePayload90 return nil } var payload91 Payload91 = Payload91{} - if err := utils.UnmarshalJSON(data, &payload91, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &payload91, "", true, nil); err == nil { u.Payload91 = &payload91 u.Type = PayloadUnionTypePayload91 return nil } - var payload132 Payload132 = Payload132{} - if err := utils.UnmarshalJSON(data, &payload132, "", true, true); err == nil { - u.Payload132 = &payload132 - u.Type = PayloadUnionTypePayload132 + var payload93 Payload93 = Payload93{} + if err := utils.UnmarshalJSON(data, &payload93, "", true, nil); err == nil { + u.Payload93 = &payload93 + u.Type = PayloadUnionTypePayload93 return nil } - var payload63 Payload63 = Payload63{} - if err := utils.UnmarshalJSON(data, &payload63, "", true, true); err == nil { - u.Payload63 = &payload63 - u.Type = PayloadUnionTypePayload63 + var payload94 Payload94 = Payload94{} + if err := utils.UnmarshalJSON(data, &payload94, "", true, nil); err == nil { + u.Payload94 = &payload94 + u.Type = PayloadUnionTypePayload94 return nil } - var payload74 Payload74 = Payload74{} - if err := utils.UnmarshalJSON(data, &payload74, "", true, true); err == nil { - u.Payload74 = &payload74 - u.Type = PayloadUnionTypePayload74 + var payload97 Payload97 = Payload97{} + if err := utils.UnmarshalJSON(data, &payload97, "", true, nil); err == nil { + u.Payload97 = &payload97 + u.Type = PayloadUnionTypePayload97 return nil } - var payload61 Payload61 = Payload61{} - if err := utils.UnmarshalJSON(data, &payload61, "", true, true); err == nil { - u.Payload61 = &payload61 - u.Type = PayloadUnionTypePayload61 + var payload98 Payload98 = Payload98{} + if err := utils.UnmarshalJSON(data, &payload98, "", true, nil); err == nil { + u.Payload98 = &payload98 + u.Type = PayloadUnionTypePayload98 return nil } - var payload59 Payload59 = Payload59{} - if err := utils.UnmarshalJSON(data, &payload59, "", true, true); err == nil { - u.Payload59 = &payload59 - u.Type = PayloadUnionTypePayload59 + var payload99 Payload99 = Payload99{} + if err := utils.UnmarshalJSON(data, &payload99, "", true, nil); err == nil { + u.Payload99 = &payload99 + u.Type = PayloadUnionTypePayload99 return nil } - var payload22 Payload22 = Payload22{} - if err := utils.UnmarshalJSON(data, &payload22, "", true, true); err == nil { - u.Payload22 = &payload22 - u.Type = PayloadUnionTypePayload22 + var payload105 Payload105 = Payload105{} + if err := utils.UnmarshalJSON(data, &payload105, "", true, nil); err == nil { + u.Payload105 = &payload105 + u.Type = PayloadUnionTypePayload105 return nil } - var payload57 Payload57 = Payload57{} - if err := utils.UnmarshalJSON(data, &payload57, "", true, true); err == nil { - u.Payload57 = &payload57 - u.Type = PayloadUnionTypePayload57 + var payload114 Payload114 = Payload114{} + if err := utils.UnmarshalJSON(data, &payload114, "", true, nil); err == nil { + u.Payload114 = &payload114 + u.Type = PayloadUnionTypePayload114 return nil } - var payload139 Payload139 = Payload139{} - if err := utils.UnmarshalJSON(data, &payload139, "", true, true); err == nil { - u.Payload139 = &payload139 - u.Type = PayloadUnionTypePayload139 + var payload115 Payload115 = Payload115{} + if err := utils.UnmarshalJSON(data, &payload115, "", true, nil); err == nil { + u.Payload115 = &payload115 + u.Type = PayloadUnionTypePayload115 return nil } - var payload140 Payload140 = Payload140{} - if err := utils.UnmarshalJSON(data, &payload140, "", true, true); err == nil { - u.Payload140 = &payload140 - u.Type = PayloadUnionTypePayload140 + var payload120 Payload120 = Payload120{} + if err := utils.UnmarshalJSON(data, &payload120, "", true, nil); err == nil { + u.Payload120 = &payload120 + u.Type = PayloadUnionTypePayload120 return nil } - var payload81 Payload81 = Payload81{} - if err := utils.UnmarshalJSON(data, &payload81, "", true, true); err == nil { - u.Payload81 = &payload81 - u.Type = PayloadUnionTypePayload81 + var payload121 Payload121 = Payload121{} + if err := utils.UnmarshalJSON(data, &payload121, "", true, nil); err == nil { + u.Payload121 = &payload121 + u.Type = PayloadUnionTypePayload121 return nil } - var payload82 Payload82 = Payload82{} - if err := utils.UnmarshalJSON(data, &payload82, "", true, true); err == nil { - u.Payload82 = &payload82 - u.Type = PayloadUnionTypePayload82 + var payload123 Payload123 = Payload123{} + if err := utils.UnmarshalJSON(data, &payload123, "", true, nil); err == nil { + u.Payload123 = &payload123 + u.Type = PayloadUnionTypePayload123 return nil } - var payload53 Payload53 = Payload53{} - if err := utils.UnmarshalJSON(data, &payload53, "", true, true); err == nil { - u.Payload53 = &payload53 - u.Type = PayloadUnionTypePayload53 + var payload132 Payload132 = Payload132{} + if err := utils.UnmarshalJSON(data, &payload132, "", true, nil); err == nil { + u.Payload132 = &payload132 + u.Type = PayloadUnionTypePayload132 return nil } - var payload84 Payload84 = Payload84{} - if err := utils.UnmarshalJSON(data, &payload84, "", true, true); err == nil { - u.Payload84 = &payload84 - u.Type = PayloadUnionTypePayload84 + var payload135 Payload135 = Payload135{} + if err := utils.UnmarshalJSON(data, &payload135, "", true, nil); err == nil { + u.Payload135 = &payload135 + u.Type = PayloadUnionTypePayload135 return nil } - var payload52 Payload52 = Payload52{} - if err := utils.UnmarshalJSON(data, &payload52, "", true, true); err == nil { - u.Payload52 = &payload52 - u.Type = PayloadUnionTypePayload52 + var payload136 Payload136 = Payload136{} + if err := utils.UnmarshalJSON(data, &payload136, "", true, nil); err == nil { + u.Payload136 = &payload136 + u.Type = PayloadUnionTypePayload136 return nil } - var payload50 Payload50 = Payload50{} - if err := utils.UnmarshalJSON(data, &payload50, "", true, true); err == nil { - u.Payload50 = &payload50 - u.Type = PayloadUnionTypePayload50 + var payload137 Payload137 = Payload137{} + if err := utils.UnmarshalJSON(data, &payload137, "", true, nil); err == nil { + u.Payload137 = &payload137 + u.Type = PayloadUnionTypePayload137 return nil } - var payload49 Payload49 = Payload49{} - if err := utils.UnmarshalJSON(data, &payload49, "", true, true); err == nil { - u.Payload49 = &payload49 - u.Type = PayloadUnionTypePayload49 + var payload139 Payload139 = Payload139{} + if err := utils.UnmarshalJSON(data, &payload139, "", true, nil); err == nil { + u.Payload139 = &payload139 + u.Type = PayloadUnionTypePayload139 return nil } - var payload48 Payload48 = Payload48{} - if err := utils.UnmarshalJSON(data, &payload48, "", true, true); err == nil { - u.Payload48 = &payload48 - u.Type = PayloadUnionTypePayload48 + var payload140 Payload140 = Payload140{} + if err := utils.UnmarshalJSON(data, &payload140, "", true, nil); err == nil { + u.Payload140 = &payload140 + u.Type = PayloadUnionTypePayload140 return nil } - var payload46 Payload46 = Payload46{} - if err := utils.UnmarshalJSON(data, &payload46, "", true, true); err == nil { - u.Payload46 = &payload46 - u.Type = PayloadUnionTypePayload46 + var payload146 Payload146 = Payload146{} + if err := utils.UnmarshalJSON(data, &payload146, "", true, nil); err == nil { + u.Payload146 = &payload146 + u.Type = PayloadUnionTypePayload146 return nil } - var payload142 Payload142 = Payload142{} - if err := utils.UnmarshalJSON(data, &payload142, "", true, true); err == nil { - u.Payload142 = &payload142 - u.Type = PayloadUnionTypePayload142 + var payload147 Payload147 = Payload147{} + if err := utils.UnmarshalJSON(data, &payload147, "", true, nil); err == nil { + u.Payload147 = &payload147 + u.Type = PayloadUnionTypePayload147 return nil } - var payload21 Payload21 = Payload21{} - if err := utils.UnmarshalJSON(data, &payload21, "", true, true); err == nil { - u.Payload21 = &payload21 - u.Type = PayloadUnionTypePayload21 + var payload149 Payload149 = Payload149{} + if err := utils.UnmarshalJSON(data, &payload149, "", true, nil); err == nil { + u.Payload149 = &payload149 + u.Type = PayloadUnionTypePayload149 return nil } - var payload92 Payload92 = Payload92{} - if err := utils.UnmarshalJSON(data, &payload92, "", true, true); err == nil { - u.Payload92 = &payload92 - u.Type = PayloadUnionTypePayload92 + var payload151 Payload151 = Payload151{} + if err := utils.UnmarshalJSON(data, &payload151, "", true, nil); err == nil { + u.Payload151 = &payload151 + u.Type = PayloadUnionTypePayload151 return nil } - var payload43 Payload43 = Payload43{} - if err := utils.UnmarshalJSON(data, &payload43, "", true, true); err == nil { - u.Payload43 = &payload43 - u.Type = PayloadUnionTypePayload43 + var payload152 Payload152 = Payload152{} + if err := utils.UnmarshalJSON(data, &payload152, "", true, nil); err == nil { + u.Payload152 = &payload152 + u.Type = PayloadUnionTypePayload152 + return nil + } + + var payload153 Payload153 = Payload153{} + if err := utils.UnmarshalJSON(data, &payload153, "", true, nil); err == nil { + u.Payload153 = &payload153 + u.Type = PayloadUnionTypePayload153 + return nil + } + + var payload155 Payload155 = Payload155{} + if err := utils.UnmarshalJSON(data, &payload155, "", true, nil); err == nil { + u.Payload155 = &payload155 + u.Type = PayloadUnionTypePayload155 + return nil + } + + var payload3 Payload3 = Payload3{} + if err := utils.UnmarshalJSON(data, &payload3, "", true, nil); err == nil { + u.Payload3 = &payload3 + u.Type = PayloadUnionTypePayload3 + return nil + } + + var payload15 Payload15 = Payload15{} + if err := utils.UnmarshalJSON(data, &payload15, "", true, nil); err == nil { + u.Payload15 = &payload15 + u.Type = PayloadUnionTypePayload15 + return nil + } + + var payload20 Payload20 = Payload20{} + if err := utils.UnmarshalJSON(data, &payload20, "", true, nil); err == nil { + u.Payload20 = &payload20 + u.Type = PayloadUnionTypePayload20 + return nil + } + + var payload22 Payload22 = Payload22{} + if err := utils.UnmarshalJSON(data, &payload22, "", true, nil); err == nil { + u.Payload22 = &payload22 + u.Type = PayloadUnionTypePayload22 return nil } var payload24 Payload24 = Payload24{} - if err := utils.UnmarshalJSON(data, &payload24, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &payload24, "", true, nil); err == nil { u.Payload24 = &payload24 u.Type = PayloadUnionTypePayload24 return nil } - var payload144 Payload144 = Payload144{} - if err := utils.UnmarshalJSON(data, &payload144, "", true, true); err == nil { - u.Payload144 = &payload144 - u.Type = PayloadUnionTypePayload144 + var payload26 Payload26 = Payload26{} + if err := utils.UnmarshalJSON(data, &payload26, "", true, nil); err == nil { + u.Payload26 = &payload26 + u.Type = PayloadUnionTypePayload26 return nil } - var payload96 Payload96 = Payload96{} - if err := utils.UnmarshalJSON(data, &payload96, "", true, true); err == nil { - u.Payload96 = &payload96 - u.Type = PayloadUnionTypePayload96 + var payload28 Payload28 = Payload28{} + if err := utils.UnmarshalJSON(data, &payload28, "", true, nil); err == nil { + u.Payload28 = &payload28 + u.Type = PayloadUnionTypePayload28 return nil } - var payload39 Payload39 = Payload39{} - if err := utils.UnmarshalJSON(data, &payload39, "", true, true); err == nil { - u.Payload39 = &payload39 - u.Type = PayloadUnionTypePayload39 + var payload33 Payload33 = Payload33{} + if err := utils.UnmarshalJSON(data, &payload33, "", true, nil); err == nil { + u.Payload33 = &payload33 + u.Type = PayloadUnionTypePayload33 return nil } - var payload38 Payload38 = Payload38{} - if err := utils.UnmarshalJSON(data, &payload38, "", true, true); err == nil { - u.Payload38 = &payload38 - u.Type = PayloadUnionTypePayload38 + var payload37 Payload37 = Payload37{} + if err := utils.UnmarshalJSON(data, &payload37, "", true, nil); err == nil { + u.Payload37 = &payload37 + u.Type = PayloadUnionTypePayload37 return nil } - var payload99 Payload99 = Payload99{} - if err := utils.UnmarshalJSON(data, &payload99, "", true, true); err == nil { - u.Payload99 = &payload99 - u.Type = PayloadUnionTypePayload99 + var payload38 Payload38 = Payload38{} + if err := utils.UnmarshalJSON(data, &payload38, "", true, nil); err == nil { + u.Payload38 = &payload38 + u.Type = PayloadUnionTypePayload38 return nil } - var payload35 Payload35 = Payload35{} - if err := utils.UnmarshalJSON(data, &payload35, "", true, true); err == nil { - u.Payload35 = &payload35 - u.Type = PayloadUnionTypePayload35 + var payload42 Payload42 = Payload42{} + if err := utils.UnmarshalJSON(data, &payload42, "", true, nil); err == nil { + u.Payload42 = &payload42 + u.Type = PayloadUnionTypePayload42 return nil } - var payload34 Payload34 = Payload34{} - if err := utils.UnmarshalJSON(data, &payload34, "", true, true); err == nil { - u.Payload34 = &payload34 - u.Type = PayloadUnionTypePayload34 + var payload46 Payload46 = Payload46{} + if err := utils.UnmarshalJSON(data, &payload46, "", true, nil); err == nil { + u.Payload46 = &payload46 + u.Type = PayloadUnionTypePayload46 return nil } - var payload13 Payload13 = Payload13{} - if err := utils.UnmarshalJSON(data, &payload13, "", true, true); err == nil { - u.Payload13 = &payload13 - u.Type = PayloadUnionTypePayload13 + var payload51 Payload51 = Payload51{} + if err := utils.UnmarshalJSON(data, &payload51, "", true, nil); err == nil { + u.Payload51 = &payload51 + u.Type = PayloadUnionTypePayload51 return nil } - var payload12 Payload12 = Payload12{} - if err := utils.UnmarshalJSON(data, &payload12, "", true, true); err == nil { - u.Payload12 = &payload12 - u.Type = PayloadUnionTypePayload12 + var payload52 Payload52 = Payload52{} + if err := utils.UnmarshalJSON(data, &payload52, "", true, nil); err == nil { + u.Payload52 = &payload52 + u.Type = PayloadUnionTypePayload52 return nil } - var payload10 Payload10 = Payload10{} - if err := utils.UnmarshalJSON(data, &payload10, "", true, true); err == nil { - u.Payload10 = &payload10 - u.Type = PayloadUnionTypePayload10 + var payload71 Payload71 = Payload71{} + if err := utils.UnmarshalJSON(data, &payload71, "", true, nil); err == nil { + u.Payload71 = &payload71 + u.Type = PayloadUnionTypePayload71 return nil } - var payload8 Payload8 = Payload8{} - if err := utils.UnmarshalJSON(data, &payload8, "", true, true); err == nil { - u.Payload8 = &payload8 - u.Type = PayloadUnionTypePayload8 + var payload72 Payload72 = Payload72{} + if err := utils.UnmarshalJSON(data, &payload72, "", true, nil); err == nil { + u.Payload72 = &payload72 + u.Type = PayloadUnionTypePayload72 return nil } - var payload32 Payload32 = Payload32{} - if err := utils.UnmarshalJSON(data, &payload32, "", true, true); err == nil { - u.Payload32 = &payload32 - u.Type = PayloadUnionTypePayload32 + var payload73 Payload73 = Payload73{} + if err := utils.UnmarshalJSON(data, &payload73, "", true, nil); err == nil { + u.Payload73 = &payload73 + u.Type = PayloadUnionTypePayload73 return nil } - var payload31 Payload31 = Payload31{} - if err := utils.UnmarshalJSON(data, &payload31, "", true, true); err == nil { - u.Payload31 = &payload31 - u.Type = PayloadUnionTypePayload31 + var payload75 Payload75 = Payload75{} + if err := utils.UnmarshalJSON(data, &payload75, "", true, nil); err == nil { + u.Payload75 = &payload75 + u.Type = PayloadUnionTypePayload75 return nil } - var payload155 Payload155 = Payload155{} - if err := utils.UnmarshalJSON(data, &payload155, "", true, true); err == nil { - u.Payload155 = &payload155 - u.Type = PayloadUnionTypePayload155 + var payload76 Payload76 = Payload76{} + if err := utils.UnmarshalJSON(data, &payload76, "", true, nil); err == nil { + u.Payload76 = &payload76 + u.Type = PayloadUnionTypePayload76 return nil } - var payload5 Payload5 = Payload5{} - if err := utils.UnmarshalJSON(data, &payload5, "", true, true); err == nil { - u.Payload5 = &payload5 - u.Type = PayloadUnionTypePayload5 + var payload79 Payload79 = Payload79{} + if err := utils.UnmarshalJSON(data, &payload79, "", true, nil); err == nil { + u.Payload79 = &payload79 + u.Type = PayloadUnionTypePayload79 return nil } - var payload147 Payload147 = Payload147{} - if err := utils.UnmarshalJSON(data, &payload147, "", true, true); err == nil { - u.Payload147 = &payload147 - u.Type = PayloadUnionTypePayload147 + var payload80 Payload80 = Payload80{} + if err := utils.UnmarshalJSON(data, &payload80, "", true, nil); err == nil { + u.Payload80 = &payload80 + u.Type = PayloadUnionTypePayload80 return nil } - var payload156 Payload156 = Payload156{} - if err := utils.UnmarshalJSON(data, &payload156, "", true, true); err == nil { - u.Payload156 = &payload156 - u.Type = PayloadUnionTypePayload156 + var payload83 Payload83 = Payload83{} + if err := utils.UnmarshalJSON(data, &payload83, "", true, nil); err == nil { + u.Payload83 = &payload83 + u.Type = PayloadUnionTypePayload83 return nil } - var payload112 Payload112 = Payload112{} - if err := utils.UnmarshalJSON(data, &payload112, "", true, true); err == nil { - u.Payload112 = &payload112 - u.Type = PayloadUnionTypePayload112 + var payload84 Payload84 = Payload84{} + if err := utils.UnmarshalJSON(data, &payload84, "", true, nil); err == nil { + u.Payload84 = &payload84 + u.Type = PayloadUnionTypePayload84 return nil } - var payload115 Payload115 = Payload115{} - if err := utils.UnmarshalJSON(data, &payload115, "", true, true); err == nil { - u.Payload115 = &payload115 - u.Type = PayloadUnionTypePayload115 + var payload88 Payload88 = Payload88{} + if err := utils.UnmarshalJSON(data, &payload88, "", true, nil); err == nil { + u.Payload88 = &payload88 + u.Type = PayloadUnionTypePayload88 return nil } - var payload78 Payload78 = Payload78{} - if err := utils.UnmarshalJSON(data, &payload78, "", true, true); err == nil { - u.Payload78 = &payload78 - u.Type = PayloadUnionTypePayload78 + var payload95 Payload95 = Payload95{} + if err := utils.UnmarshalJSON(data, &payload95, "", true, nil); err == nil { + u.Payload95 = &payload95 + u.Type = PayloadUnionTypePayload95 return nil } - var payload148 Payload148 = Payload148{} - if err := utils.UnmarshalJSON(data, &payload148, "", true, true); err == nil { - u.Payload148 = &payload148 - u.Type = PayloadUnionTypePayload148 + var payload96 Payload96 = Payload96{} + if err := utils.UnmarshalJSON(data, &payload96, "", true, nil); err == nil { + u.Payload96 = &payload96 + u.Type = PayloadUnionTypePayload96 return nil } - - var payload157 Payload157 = Payload157{} - if err := utils.UnmarshalJSON(data, &payload157, "", true, true); err == nil { - u.Payload157 = &payload157 - u.Type = PayloadUnionTypePayload157 + + var payload100 Payload100 = Payload100{} + if err := utils.UnmarshalJSON(data, &payload100, "", true, nil); err == nil { + u.Payload100 = &payload100 + u.Type = PayloadUnionTypePayload100 return nil } - var payload2 Payload2 = Payload2{} - if err := utils.UnmarshalJSON(data, &payload2, "", true, true); err == nil { - u.Payload2 = &payload2 - u.Type = PayloadUnionTypePayload2 + var payload103 Payload103 = Payload103{} + if err := utils.UnmarshalJSON(data, &payload103, "", true, nil); err == nil { + u.Payload103 = &payload103 + u.Type = PayloadUnionTypePayload103 return nil } - var payload109 Payload109 = Payload109{} - if err := utils.UnmarshalJSON(data, &payload109, "", true, true); err == nil { - u.Payload109 = &payload109 - u.Type = PayloadUnionTypePayload109 + var payload104 Payload104 = Payload104{} + if err := utils.UnmarshalJSON(data, &payload104, "", true, nil); err == nil { + u.Payload104 = &payload104 + u.Type = PayloadUnionTypePayload104 return nil } - var payload6 Payload6 = Payload6{} - if err := utils.UnmarshalJSON(data, &payload6, "", true, true); err == nil { - u.Payload6 = &payload6 - u.Type = PayloadUnionTypePayload6 + var payload106 Payload106 = Payload106{} + if err := utils.UnmarshalJSON(data, &payload106, "", true, nil); err == nil { + u.Payload106 = &payload106 + u.Type = PayloadUnionTypePayload106 return nil } - var payload101 Payload101 = Payload101{} - if err := utils.UnmarshalJSON(data, &payload101, "", true, true); err == nil { - u.Payload101 = &payload101 - u.Type = PayloadUnionTypePayload101 + var payload107 Payload107 = Payload107{} + if err := utils.UnmarshalJSON(data, &payload107, "", true, nil); err == nil { + u.Payload107 = &payload107 + u.Type = PayloadUnionTypePayload107 return nil } - var payload11 Payload11 = Payload11{} - if err := utils.UnmarshalJSON(data, &payload11, "", true, true); err == nil { - u.Payload11 = &payload11 - u.Type = PayloadUnionTypePayload11 + var payload108 Payload108 = Payload108{} + if err := utils.UnmarshalJSON(data, &payload108, "", true, nil); err == nil { + u.Payload108 = &payload108 + u.Type = PayloadUnionTypePayload108 return nil } - var payload79 Payload79 = Payload79{} - if err := utils.UnmarshalJSON(data, &payload79, "", true, true); err == nil { - u.Payload79 = &payload79 - u.Type = PayloadUnionTypePayload79 + var payload112 Payload112 = Payload112{} + if err := utils.UnmarshalJSON(data, &payload112, "", true, nil); err == nil { + u.Payload112 = &payload112 + u.Type = PayloadUnionTypePayload112 return nil } - var payload15 Payload15 = Payload15{} - if err := utils.UnmarshalJSON(data, &payload15, "", true, true); err == nil { - u.Payload15 = &payload15 - u.Type = PayloadUnionTypePayload15 + var payload113 Payload113 = Payload113{} + if err := utils.UnmarshalJSON(data, &payload113, "", true, nil); err == nil { + u.Payload113 = &payload113 + u.Type = PayloadUnionTypePayload113 return nil } - var payload16 Payload16 = Payload16{} - if err := utils.UnmarshalJSON(data, &payload16, "", true, true); err == nil { - u.Payload16 = &payload16 - u.Type = PayloadUnionTypePayload16 + var payload116 Payload116 = Payload116{} + if err := utils.UnmarshalJSON(data, &payload116, "", true, nil); err == nil { + u.Payload116 = &payload116 + u.Type = PayloadUnionTypePayload116 return nil } - var payload20 Payload20 = Payload20{} - if err := utils.UnmarshalJSON(data, &payload20, "", true, true); err == nil { - u.Payload20 = &payload20 - u.Type = PayloadUnionTypePayload20 + var payload122 Payload122 = Payload122{} + if err := utils.UnmarshalJSON(data, &payload122, "", true, nil); err == nil { + u.Payload122 = &payload122 + u.Type = PayloadUnionTypePayload122 return nil } - var payload29 Payload29 = Payload29{} - if err := utils.UnmarshalJSON(data, &payload29, "", true, true); err == nil { - u.Payload29 = &payload29 - u.Type = PayloadUnionTypePayload29 + var payload124 Payload124 = Payload124{} + if err := utils.UnmarshalJSON(data, &payload124, "", true, nil); err == nil { + u.Payload124 = &payload124 + u.Type = PayloadUnionTypePayload124 return nil } - var payload45 Payload45 = Payload45{} - if err := utils.UnmarshalJSON(data, &payload45, "", true, true); err == nil { - u.Payload45 = &payload45 - u.Type = PayloadUnionTypePayload45 + var payload128 Payload128 = Payload128{} + if err := utils.UnmarshalJSON(data, &payload128, "", true, nil); err == nil { + u.Payload128 = &payload128 + u.Type = PayloadUnionTypePayload128 return nil } - var payload141 Payload141 = Payload141{} - if err := utils.UnmarshalJSON(data, &payload141, "", true, true); err == nil { - u.Payload141 = &payload141 - u.Type = PayloadUnionTypePayload141 + var payload129 Payload129 = Payload129{} + if err := utils.UnmarshalJSON(data, &payload129, "", true, nil); err == nil { + u.Payload129 = &payload129 + u.Type = PayloadUnionTypePayload129 return nil } - var payload60 Payload60 = Payload60{} - if err := utils.UnmarshalJSON(data, &payload60, "", true, true); err == nil { - u.Payload60 = &payload60 - u.Type = PayloadUnionTypePayload60 + var payload130 Payload130 = Payload130{} + if err := utils.UnmarshalJSON(data, &payload130, "", true, nil); err == nil { + u.Payload130 = &payload130 + u.Type = PayloadUnionTypePayload130 return nil } - var payload134 Payload134 = Payload134{} - if err := utils.UnmarshalJSON(data, &payload134, "", true, true); err == nil { - u.Payload134 = &payload134 - u.Type = PayloadUnionTypePayload134 + var payload138 Payload138 = Payload138{} + if err := utils.UnmarshalJSON(data, &payload138, "", true, nil); err == nil { + u.Payload138 = &payload138 + u.Type = PayloadUnionTypePayload138 return nil } - var payload133 Payload133 = Payload133{} - if err := utils.UnmarshalJSON(data, &payload133, "", true, true); err == nil { - u.Payload133 = &payload133 - u.Type = PayloadUnionTypePayload133 + var payload144 Payload144 = Payload144{} + if err := utils.UnmarshalJSON(data, &payload144, "", true, nil); err == nil { + u.Payload144 = &payload144 + u.Type = PayloadUnionTypePayload144 return nil } - var payload41 Payload41 = Payload41{} - if err := utils.UnmarshalJSON(data, &payload41, "", true, true); err == nil { - u.Payload41 = &payload41 - u.Type = PayloadUnionTypePayload41 + var payload150 Payload150 = Payload150{} + if err := utils.UnmarshalJSON(data, &payload150, "", true, nil); err == nil { + u.Payload150 = &payload150 + u.Type = PayloadUnionTypePayload150 return nil } - var payload83 Payload83 = Payload83{} - if err := utils.UnmarshalJSON(data, &payload83, "", true, true); err == nil { - u.Payload83 = &payload83 - u.Type = PayloadUnionTypePayload83 + var payload154 Payload154 = Payload154{} + if err := utils.UnmarshalJSON(data, &payload154, "", true, nil); err == nil { + u.Payload154 = &payload154 + u.Type = PayloadUnionTypePayload154 return nil } - var payload68 Payload68 = Payload68{} - if err := utils.UnmarshalJSON(data, &payload68, "", true, true); err == nil { - u.Payload68 = &payload68 - u.Type = PayloadUnionTypePayload68 + var payload156 Payload156 = Payload156{} + if err := utils.UnmarshalJSON(data, &payload156, "", true, nil); err == nil { + u.Payload156 = &payload156 + u.Type = PayloadUnionTypePayload156 return nil } - var payload113 Payload113 = Payload113{} - if err := utils.UnmarshalJSON(data, &payload113, "", true, true); err == nil { - u.Payload113 = &payload113 - u.Type = PayloadUnionTypePayload113 + var payload157 Payload157 = Payload157{} + if err := utils.UnmarshalJSON(data, &payload157, "", true, nil); err == nil { + u.Payload157 = &payload157 + u.Type = PayloadUnionTypePayload157 return nil } - var payload62 Payload62 = Payload62{} - if err := utils.UnmarshalJSON(data, &payload62, "", true, true); err == nil { - u.Payload62 = &payload62 - u.Type = PayloadUnionTypePayload62 + var payload1 Payload1 = Payload1{} + if err := utils.UnmarshalJSON(data, &payload1, "", true, nil); err == nil { + u.Payload1 = &payload1 + u.Type = PayloadUnionTypePayload1 return nil } - var payload30 Payload30 = Payload30{} - if err := utils.UnmarshalJSON(data, &payload30, "", true, true); err == nil { - u.Payload30 = &payload30 - u.Type = PayloadUnionTypePayload30 + var payload7 Payload7 = Payload7{} + if err := utils.UnmarshalJSON(data, &payload7, "", true, nil); err == nil { + u.Payload7 = &payload7 + u.Type = PayloadUnionTypePayload7 return nil } - var payload58 Payload58 = Payload58{} - if err := utils.UnmarshalJSON(data, &payload58, "", true, true); err == nil { - u.Payload58 = &payload58 - u.Type = PayloadUnionTypePayload58 + var payload8 Payload8 = Payload8{} + if err := utils.UnmarshalJSON(data, &payload8, "", true, nil); err == nil { + u.Payload8 = &payload8 + u.Type = PayloadUnionTypePayload8 return nil } - var payload145 Payload145 = Payload145{} - if err := utils.UnmarshalJSON(data, &payload145, "", true, true); err == nil { - u.Payload145 = &payload145 - u.Type = PayloadUnionTypePayload145 + var payload9 Payload9 = Payload9{} + if err := utils.UnmarshalJSON(data, &payload9, "", true, nil); err == nil { + u.Payload9 = &payload9 + u.Type = PayloadUnionTypePayload9 return nil } - var payload40 Payload40 = Payload40{} - if err := utils.UnmarshalJSON(data, &payload40, "", true, true); err == nil { - u.Payload40 = &payload40 - u.Type = PayloadUnionTypePayload40 + var payload10 Payload10 = Payload10{} + if err := utils.UnmarshalJSON(data, &payload10, "", true, nil); err == nil { + u.Payload10 = &payload10 + u.Type = PayloadUnionTypePayload10 return nil } - var payload131 Payload131 = Payload131{} - if err := utils.UnmarshalJSON(data, &payload131, "", true, true); err == nil { - u.Payload131 = &payload131 - u.Type = PayloadUnionTypePayload131 + var payload11 Payload11 = Payload11{} + if err := utils.UnmarshalJSON(data, &payload11, "", true, nil); err == nil { + u.Payload11 = &payload11 + u.Type = PayloadUnionTypePayload11 return nil } - var payload67 Payload67 = Payload67{} - if err := utils.UnmarshalJSON(data, &payload67, "", true, true); err == nil { - u.Payload67 = &payload67 - u.Type = PayloadUnionTypePayload67 + var payload13 Payload13 = Payload13{} + if err := utils.UnmarshalJSON(data, &payload13, "", true, nil); err == nil { + u.Payload13 = &payload13 + u.Type = PayloadUnionTypePayload13 return nil } - var payload158 Payload158 = Payload158{} - if err := utils.UnmarshalJSON(data, &payload158, "", true, true); err == nil { - u.Payload158 = &payload158 - u.Type = PayloadUnionTypePayload158 + var payload14 Payload14 = Payload14{} + if err := utils.UnmarshalJSON(data, &payload14, "", true, nil); err == nil { + u.Payload14 = &payload14 + u.Type = PayloadUnionTypePayload14 return nil } - var payload111 Payload111 = Payload111{} - if err := utils.UnmarshalJSON(data, &payload111, "", true, true); err == nil { - u.Payload111 = &payload111 - u.Type = PayloadUnionTypePayload111 + var payload19 Payload19 = Payload19{} + if err := utils.UnmarshalJSON(data, &payload19, "", true, nil); err == nil { + u.Payload19 = &payload19 + u.Type = PayloadUnionTypePayload19 return nil } - var payload105 Payload105 = Payload105{} - if err := utils.UnmarshalJSON(data, &payload105, "", true, true); err == nil { - u.Payload105 = &payload105 - u.Type = PayloadUnionTypePayload105 + var payload21 Payload21 = Payload21{} + if err := utils.UnmarshalJSON(data, &payload21, "", true, nil); err == nil { + u.Payload21 = &payload21 + u.Type = PayloadUnionTypePayload21 return nil } - var payload130 Payload130 = Payload130{} - if err := utils.UnmarshalJSON(data, &payload130, "", true, true); err == nil { - u.Payload130 = &payload130 - u.Type = PayloadUnionTypePayload130 + var payload25 Payload25 = Payload25{} + if err := utils.UnmarshalJSON(data, &payload25, "", true, nil); err == nil { + u.Payload25 = &payload25 + u.Type = PayloadUnionTypePayload25 return nil } - var payload129 Payload129 = Payload129{} - if err := utils.UnmarshalJSON(data, &payload129, "", true, true); err == nil { - u.Payload129 = &payload129 - u.Type = PayloadUnionTypePayload129 + var payload55 Payload55 = Payload55{} + if err := utils.UnmarshalJSON(data, &payload55, "", true, nil); err == nil { + u.Payload55 = &payload55 + u.Type = PayloadUnionTypePayload55 return nil } - var payload64 Payload64 = Payload64{} - if err := utils.UnmarshalJSON(data, &payload64, "", true, true); err == nil { - u.Payload64 = &payload64 - u.Type = PayloadUnionTypePayload64 + var payload56 Payload56 = Payload56{} + if err := utils.UnmarshalJSON(data, &payload56, "", true, nil); err == nil { + u.Payload56 = &payload56 + u.Type = PayloadUnionTypePayload56 return nil } - var payload69 Payload69 = Payload69{} - if err := utils.UnmarshalJSON(data, &payload69, "", true, true); err == nil { - u.Payload69 = &payload69 - u.Type = PayloadUnionTypePayload69 + var payload57 Payload57 = Payload57{} + if err := utils.UnmarshalJSON(data, &payload57, "", true, nil); err == nil { + u.Payload57 = &payload57 + u.Type = PayloadUnionTypePayload57 return nil } - var payload76 Payload76 = Payload76{} - if err := utils.UnmarshalJSON(data, &payload76, "", true, true); err == nil { - u.Payload76 = &payload76 - u.Type = PayloadUnionTypePayload76 + var payload102 Payload102 = Payload102{} + if err := utils.UnmarshalJSON(data, &payload102, "", true, nil); err == nil { + u.Payload102 = &payload102 + u.Type = PayloadUnionTypePayload102 return nil } var payload110 Payload110 = Payload110{} - if err := utils.UnmarshalJSON(data, &payload110, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &payload110, "", true, nil); err == nil { u.Payload110 = &payload110 u.Type = PayloadUnionTypePayload110 return nil } - var payload66 Payload66 = Payload66{} - if err := utils.UnmarshalJSON(data, &payload66, "", true, true); err == nil { - u.Payload66 = &payload66 - u.Type = PayloadUnionTypePayload66 + var payload111 Payload111 = Payload111{} + if err := utils.UnmarshalJSON(data, &payload111, "", true, nil); err == nil { + u.Payload111 = &payload111 + u.Type = PayloadUnionTypePayload111 return nil } - var payload128 Payload128 = Payload128{} - if err := utils.UnmarshalJSON(data, &payload128, "", true, true); err == nil { - u.Payload128 = &payload128 - u.Type = PayloadUnionTypePayload128 + var payload117 Payload117 = Payload117{} + if err := utils.UnmarshalJSON(data, &payload117, "", true, nil); err == nil { + u.Payload117 = &payload117 + u.Type = PayloadUnionTypePayload117 return nil } - var payload55 Payload55 = Payload55{} - if err := utils.UnmarshalJSON(data, &payload55, "", true, true); err == nil { - u.Payload55 = &payload55 - u.Type = PayloadUnionTypePayload55 + var payload118 Payload118 = Payload118{} + if err := utils.UnmarshalJSON(data, &payload118, "", true, nil); err == nil { + u.Payload118 = &payload118 + u.Type = PayloadUnionTypePayload118 return nil } - var payload37 Payload37 = Payload37{} - if err := utils.UnmarshalJSON(data, &payload37, "", true, true); err == nil { - u.Payload37 = &payload37 - u.Type = PayloadUnionTypePayload37 + var payload119 Payload119 = Payload119{} + if err := utils.UnmarshalJSON(data, &payload119, "", true, nil); err == nil { + u.Payload119 = &payload119 + u.Type = PayloadUnionTypePayload119 return nil } - var payload70 Payload70 = Payload70{} - if err := utils.UnmarshalJSON(data, &payload70, "", true, true); err == nil { - u.Payload70 = &payload70 - u.Type = PayloadUnionTypePayload70 + var payload125 Payload125 = Payload125{} + if err := utils.UnmarshalJSON(data, &payload125, "", true, nil); err == nil { + u.Payload125 = &payload125 + u.Type = PayloadUnionTypePayload125 return nil } - var payload7 Payload7 = Payload7{} - if err := utils.UnmarshalJSON(data, &payload7, "", true, true); err == nil { - u.Payload7 = &payload7 - u.Type = PayloadUnionTypePayload7 + var payload126 Payload126 = Payload126{} + if err := utils.UnmarshalJSON(data, &payload126, "", true, nil); err == nil { + u.Payload126 = &payload126 + u.Type = PayloadUnionTypePayload126 return nil } - var payload56 Payload56 = Payload56{} - if err := utils.UnmarshalJSON(data, &payload56, "", true, true); err == nil { - u.Payload56 = &payload56 - u.Type = PayloadUnionTypePayload56 + var payload127 Payload127 = Payload127{} + if err := utils.UnmarshalJSON(data, &payload127, "", true, nil); err == nil { + u.Payload127 = &payload127 + u.Type = PayloadUnionTypePayload127 return nil } @@ -19507,6 +23627,18 @@ func (u PayloadUnion) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.Payload158, "", true) } + if u.Payload159 != nil { + return utils.MarshalJSON(u.Payload159, "", true) + } + + if u.Payload160 != nil { + return utils.MarshalJSON(u.Payload160, "", true) + } + + if u.Payload161 != nil { + return utils.MarshalJSON(u.Payload161, "", true) + } + return nil, errors.New("could not marshal union type PayloadUnion: all fields are null") } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/acceptprojecttransferrequest.go b/src/__tests__/mockserver/internal/sdk/models/operations/acceptprojecttransferrequest.go index 387e7302..9828948d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/acceptprojecttransferrequest.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/acceptprojecttransferrequest.go @@ -8,6 +8,7 @@ import ( "fmt" "mockserver/internal/sdk/models/components" "mockserver/internal/sdk/utils" + "time" ) type PaidFeatures struct { @@ -37,10 +38,49 @@ func (o *PaidFeatures) GetPreviewDeploymentSuffix() *bool { return o.PreviewDeploymentSuffix } +type AcceptedPolicies struct { + Eula time.Time `json:"eula"` + Privacy time.Time `json:"privacy"` + AdditionalProperties map[string]time.Time `additionalProperties:"true" json:"-"` +} + +func (a AcceptedPolicies) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AcceptedPolicies) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"eula", "privacy"}); err != nil { + return err + } + return nil +} + +func (o *AcceptedPolicies) GetEula() time.Time { + if o == nil { + return time.Time{} + } + return o.Eula +} + +func (o *AcceptedPolicies) GetPrivacy() time.Time { + if o == nil { + return time.Time{} + } + return o.Privacy +} + +func (o *AcceptedPolicies) GetAdditionalProperties() map[string]time.Time { + if o == nil { + return nil + } + return o.AdditionalProperties +} + type AcceptProjectTransferRequestRequestBody struct { // The desired name for the project - NewProjectName *string `json:"newProjectName,omitempty"` - PaidFeatures *PaidFeatures `json:"paidFeatures,omitempty"` + NewProjectName *string `json:"newProjectName,omitempty"` + PaidFeatures *PaidFeatures `json:"paidFeatures,omitempty"` + AcceptedPolicies map[string]AcceptedPolicies `json:"acceptedPolicies,omitempty"` } func (o *AcceptProjectTransferRequestRequestBody) GetNewProjectName() *string { @@ -57,6 +97,13 @@ func (o *AcceptProjectTransferRequestRequestBody) GetPaidFeatures() *PaidFeature return o.PaidFeatures } +func (o *AcceptProjectTransferRequestRequestBody) GetAcceptedPolicies() map[string]AcceptedPolicies { + if o == nil { + return nil + } + return o.AcceptedPolicies +} + type AcceptProjectTransferRequestRequest struct { // The code of the project transfer request. Code string `pathParam:"style=simple,explode=false,name=code"` @@ -98,6 +145,17 @@ func (o *AcceptProjectTransferRequestRequest) GetRequestBody() *AcceptProjectTra type AcceptProjectTransferRequestResponseBody2 struct { } +func (a AcceptProjectTransferRequestResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AcceptProjectTransferRequestResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + type AcceptProjectTransferRequestStatus string const ( @@ -127,12 +185,34 @@ func (e *AcceptProjectTransferRequestStatus) UnmarshalJSON(data []byte) error { type AcceptProjectTransferRequestError struct { } +func (a AcceptProjectTransferRequestError) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AcceptProjectTransferRequestError) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + type AcceptProjectTransferRequestResult struct { Status AcceptProjectTransferRequestStatus `json:"status"` Error *AcceptProjectTransferRequestError `json:"error,omitempty"` Code *string `json:"code,omitempty"` } +func (a AcceptProjectTransferRequestResult) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AcceptProjectTransferRequestResult) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"status"}); err != nil { + return err + } + return nil +} + func (o *AcceptProjectTransferRequestResult) GetStatus() AcceptProjectTransferRequestStatus { if o == nil { return AcceptProjectTransferRequestStatus("") @@ -160,6 +240,17 @@ type PartnerCall struct { Result AcceptProjectTransferRequestResult `json:"result"` } +func (p PartnerCall) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PartnerCall) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"installationId", "resourceIds", "result"}); err != nil { + return err + } + return nil +} + func (o *PartnerCall) GetInstallationID() string { if o == nil { return "" @@ -184,11 +275,33 @@ func (o *PartnerCall) GetResult() AcceptProjectTransferRequestResult { type ResourceTransferError struct { } +func (r ResourceTransferError) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *ResourceTransferError) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { + return err + } + return nil +} + type AcceptProjectTransferRequestResponseBody1 struct { PartnerCalls []PartnerCall `json:"partnerCalls"` ResourceTransferErrors []ResourceTransferError `json:"resourceTransferErrors"` } +func (a AcceptProjectTransferRequestResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AcceptProjectTransferRequestResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"partnerCalls", "resourceTransferErrors"}); err != nil { + return err + } + return nil +} + func (o *AcceptProjectTransferRequestResponseBody1) GetPartnerCalls() []PartnerCall { if o == nil { return []PartnerCall{} @@ -238,20 +351,20 @@ func CreateAcceptProjectTransferRequestResponseBodyAcceptProjectTransferRequestR func (u *AcceptProjectTransferRequestResponseBody) UnmarshalJSON(data []byte) error { - var acceptProjectTransferRequestResponseBody2 AcceptProjectTransferRequestResponseBody2 = AcceptProjectTransferRequestResponseBody2{} - if err := utils.UnmarshalJSON(data, &acceptProjectTransferRequestResponseBody2, "", true, true); err == nil { - u.AcceptProjectTransferRequestResponseBody2 = &acceptProjectTransferRequestResponseBody2 - u.Type = AcceptProjectTransferRequestResponseBodyTypeAcceptProjectTransferRequestResponseBody2 - return nil - } - var acceptProjectTransferRequestResponseBody1 AcceptProjectTransferRequestResponseBody1 = AcceptProjectTransferRequestResponseBody1{} - if err := utils.UnmarshalJSON(data, &acceptProjectTransferRequestResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &acceptProjectTransferRequestResponseBody1, "", true, nil); err == nil { u.AcceptProjectTransferRequestResponseBody1 = &acceptProjectTransferRequestResponseBody1 u.Type = AcceptProjectTransferRequestResponseBodyTypeAcceptProjectTransferRequestResponseBody1 return nil } + var acceptProjectTransferRequestResponseBody2 AcceptProjectTransferRequestResponseBody2 = AcceptProjectTransferRequestResponseBody2{} + if err := utils.UnmarshalJSON(data, &acceptProjectTransferRequestResponseBody2, "", true, nil); err == nil { + u.AcceptProjectTransferRequestResponseBody2 = &acceptProjectTransferRequestResponseBody2 + u.Type = AcceptProjectTransferRequestResponseBodyTypeAcceptProjectTransferRequestResponseBody2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for AcceptProjectTransferRequestResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/addbypassip.go b/src/__tests__/mockserver/internal/sdk/models/operations/addbypassip.go index b5d96371..129738e9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/addbypassip.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/addbypassip.go @@ -21,6 +21,17 @@ type AddBypassIPRequestBody2 struct { Note *string `json:"note,omitempty"` } +func (a AddBypassIPRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddBypassIPRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"projectScope"}); err != nil { + return err + } + return nil +} + func (o *AddBypassIPRequestBody2) GetDomain() *string { if o == nil { return nil @@ -74,6 +85,17 @@ type AddBypassIPRequestBody1 struct { Note *string `json:"note,omitempty"` } +func (a AddBypassIPRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddBypassIPRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"domain"}); err != nil { + return err + } + return nil +} + func (o *AddBypassIPRequestBody1) GetDomain() string { if o == nil { return "" @@ -151,14 +173,14 @@ func CreateAddBypassIPRequestBodyAddBypassIPRequestBody2(addBypassIPRequestBody2 func (u *AddBypassIPRequestBody) UnmarshalJSON(data []byte) error { var addBypassIPRequestBody1 AddBypassIPRequestBody1 = AddBypassIPRequestBody1{} - if err := utils.UnmarshalJSON(data, &addBypassIPRequestBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &addBypassIPRequestBody1, "", true, nil); err == nil { u.AddBypassIPRequestBody1 = &addBypassIPRequestBody1 u.Type = AddBypassIPRequestBodyTypeAddBypassIPRequestBody1 return nil } var addBypassIPRequestBody2 AddBypassIPRequestBody2 = AddBypassIPRequestBody2{} - if err := utils.UnmarshalJSON(data, &addBypassIPRequestBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &addBypassIPRequestBody2, "", true, nil); err == nil { u.AddBypassIPRequestBody2 = &addBypassIPRequestBody2 u.Type = AddBypassIPRequestBodyTypeAddBypassIPRequestBody2 return nil @@ -259,6 +281,17 @@ type AddBypassIPResult2 struct { ExpiresAt *float64 `json:"ExpiresAt,omitempty"` } +func (a AddBypassIPResult2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddBypassIPResult2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"OwnerId", "Id", "Domain", "Ip", "CreatedAt", "UpdatedAt", "UpdatedAtHour"}); err != nil { + return err + } + return nil +} + func (o *AddBypassIPResult2) GetOwnerID() string { if o == nil { return "" @@ -362,6 +395,17 @@ type AddBypassIPResponseBody2 struct { Result []AddBypassIPResult2 `json:"result,omitempty"` } +func (a AddBypassIPResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddBypassIPResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"ok"}); err != nil { + return err + } + return nil +} + func (o *AddBypassIPResponseBody2) GetOk() bool { if o == nil { return false @@ -386,6 +430,17 @@ type AddBypassIPResult1 struct { IsProjectRule bool `json:"IsProjectRule"` } +func (a AddBypassIPResult1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddBypassIPResult1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"OwnerId", "Id", "Domain", "ProjectId", "Note", "IsProjectRule"}); err != nil { + return err + } + return nil +} + func (o *AddBypassIPResult1) GetOwnerID() string { if o == nil { return "" @@ -441,6 +496,17 @@ type AddBypassIPResponseBody1 struct { Pagination any `json:"pagination"` } +func (a AddBypassIPResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddBypassIPResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"ok", "result", "pagination"}); err != nil { + return err + } + return nil +} + func (o *AddBypassIPResponseBody1) GetOk() bool { if o == nil { return false @@ -496,20 +562,20 @@ func CreateAddBypassIPResponseBodyAddBypassIPResponseBody2(addBypassIPResponseBo func (u *AddBypassIPResponseBody) UnmarshalJSON(data []byte) error { - var addBypassIPResponseBody2 AddBypassIPResponseBody2 = AddBypassIPResponseBody2{} - if err := utils.UnmarshalJSON(data, &addBypassIPResponseBody2, "", true, true); err == nil { - u.AddBypassIPResponseBody2 = &addBypassIPResponseBody2 - u.Type = AddBypassIPResponseBodyTypeAddBypassIPResponseBody2 - return nil - } - var addBypassIPResponseBody1 AddBypassIPResponseBody1 = AddBypassIPResponseBody1{} - if err := utils.UnmarshalJSON(data, &addBypassIPResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &addBypassIPResponseBody1, "", true, nil); err == nil { u.AddBypassIPResponseBody1 = &addBypassIPResponseBody1 u.Type = AddBypassIPResponseBodyTypeAddBypassIPResponseBody1 return nil } + var addBypassIPResponseBody2 AddBypassIPResponseBody2 = AddBypassIPResponseBody2{} + if err := utils.UnmarshalJSON(data, &addBypassIPResponseBody2, "", true, nil); err == nil { + u.AddBypassIPResponseBody2 = &addBypassIPResponseBody2 + u.Type = AddBypassIPResponseBodyTypeAddBypassIPResponseBody2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for AddBypassIPResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/addprojectmember.go b/src/__tests__/mockserver/internal/sdk/models/operations/addprojectmember.go index 48da3ee7..4ddd124d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/addprojectmember.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/addprojectmember.go @@ -51,6 +51,17 @@ type AddProjectMemberRequestBody3 struct { Role AddProjectMemberRole3 `json:"role"` } +func (a AddProjectMemberRequestBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddProjectMemberRequestBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"email", "role"}); err != nil { + return err + } + return nil +} + func (o *AddProjectMemberRequestBody3) GetUID() *string { if o == nil { return nil @@ -120,6 +131,17 @@ type AddProjectMemberRequestBody2 struct { Role AddProjectMemberRole2 `json:"role"` } +func (a AddProjectMemberRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddProjectMemberRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"username", "role"}); err != nil { + return err + } + return nil +} + func (o *AddProjectMemberRequestBody2) GetUID() *string { if o == nil { return nil @@ -189,6 +211,17 @@ type AddProjectMemberRequestBody1 struct { Role AddProjectMemberRole1 `json:"role"` } +func (a AddProjectMemberRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AddProjectMemberRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"uid", "role"}); err != nil { + return err + } + return nil +} + func (o *AddProjectMemberRequestBody1) GetUID() string { if o == nil { return "" @@ -263,21 +296,21 @@ func CreateAddProjectMemberRequestBodyAddProjectMemberRequestBody3(addProjectMem func (u *AddProjectMemberRequestBody) UnmarshalJSON(data []byte) error { var addProjectMemberRequestBody1 AddProjectMemberRequestBody1 = AddProjectMemberRequestBody1{} - if err := utils.UnmarshalJSON(data, &addProjectMemberRequestBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &addProjectMemberRequestBody1, "", true, nil); err == nil { u.AddProjectMemberRequestBody1 = &addProjectMemberRequestBody1 u.Type = AddProjectMemberRequestBodyTypeAddProjectMemberRequestBody1 return nil } var addProjectMemberRequestBody2 AddProjectMemberRequestBody2 = AddProjectMemberRequestBody2{} - if err := utils.UnmarshalJSON(data, &addProjectMemberRequestBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &addProjectMemberRequestBody2, "", true, nil); err == nil { u.AddProjectMemberRequestBody2 = &addProjectMemberRequestBody2 u.Type = AddProjectMemberRequestBodyTypeAddProjectMemberRequestBody2 return nil } var addProjectMemberRequestBody3 AddProjectMemberRequestBody3 = AddProjectMemberRequestBody3{} - if err := utils.UnmarshalJSON(data, &addProjectMemberRequestBody3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &addProjectMemberRequestBody3, "", true, nil); err == nil { u.AddProjectMemberRequestBody3 = &addProjectMemberRequestBody3 u.Type = AddProjectMemberRequestBodyTypeAddProjectMemberRequestBody3 return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/artifactquery.go b/src/__tests__/mockserver/internal/sdk/models/operations/artifactquery.go index 5b8167fa..0c8d22cd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/artifactquery.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/artifactquery.go @@ -54,6 +54,17 @@ type ArtifactQueryError struct { Message string `json:"message"` } +func (a ArtifactQueryError) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *ArtifactQueryError) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"message"}); err != nil { + return err + } + return nil +} + func (o *ArtifactQueryError) GetMessage() string { if o == nil { return "" @@ -65,6 +76,17 @@ type ArtifactQueryResponseBody2 struct { Error ArtifactQueryError `json:"error"` } +func (a ArtifactQueryResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *ArtifactQueryResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"error"}); err != nil { + return err + } + return nil +} + func (o *ArtifactQueryResponseBody2) GetError() ArtifactQueryError { if o == nil { return ArtifactQueryError{} @@ -78,6 +100,17 @@ type ArtifactQueryResponseBody1 struct { Tag *string `json:"tag,omitempty"` } +func (a ArtifactQueryResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *ArtifactQueryResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"size", "taskDurationMs"}); err != nil { + return err + } + return nil +} + func (o *ArtifactQueryResponseBody1) GetSize() float64 { if o == nil { return 0.0 @@ -133,20 +166,20 @@ func CreateArtifactQueryResponseBodyUnionArtifactQueryResponseBody2(artifactQuer func (u *ArtifactQueryResponseBodyUnion) UnmarshalJSON(data []byte) error { - var artifactQueryResponseBody2 ArtifactQueryResponseBody2 = ArtifactQueryResponseBody2{} - if err := utils.UnmarshalJSON(data, &artifactQueryResponseBody2, "", true, true); err == nil { - u.ArtifactQueryResponseBody2 = &artifactQueryResponseBody2 - u.Type = ArtifactQueryResponseBodyUnionTypeArtifactQueryResponseBody2 - return nil - } - var artifactQueryResponseBody1 ArtifactQueryResponseBody1 = ArtifactQueryResponseBody1{} - if err := utils.UnmarshalJSON(data, &artifactQueryResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &artifactQueryResponseBody1, "", true, nil); err == nil { u.ArtifactQueryResponseBody1 = &artifactQueryResponseBody1 u.Type = ArtifactQueryResponseBodyUnionTypeArtifactQueryResponseBody1 return nil } + var artifactQueryResponseBody2 ArtifactQueryResponseBody2 = ArtifactQueryResponseBody2{} + if err := utils.UnmarshalJSON(data, &artifactQueryResponseBody2, "", true, nil); err == nil { + u.ArtifactQueryResponseBody2 = &artifactQueryResponseBody2 + u.Type = ArtifactQueryResponseBodyUnionTypeArtifactQueryResponseBody2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ArtifactQueryResponseBodyUnion", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/assignalias.go b/src/__tests__/mockserver/internal/sdk/models/operations/assignalias.go index 82664c48..cd8d26aa 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/assignalias.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/assignalias.go @@ -84,7 +84,7 @@ func (a AssignAliasResponseBody) MarshalJSON() ([]byte, error) { } func (a *AssignAliasResponseBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"uid", "alias", "created"}); err != nil { return err } 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 9bc81e25..d54d8cc9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go @@ -75,14 +75,14 @@ func CreateCancelDeploymentAliasAssignedAtBoolean(boolean bool) CancelDeployment func (u *CancelDeploymentAliasAssignedAt) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentAliasAssignedAtTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = CancelDeploymentAliasAssignedAtTypeBoolean return nil @@ -475,11 +475,11 @@ func (o *CancelDeploymentProjectSettings) GetWebAnalytics() *CancelDeploymentWeb type CancelDeploymentIntegrationsStatus string const ( - CancelDeploymentIntegrationsStatusError CancelDeploymentIntegrationsStatus = "error" - CancelDeploymentIntegrationsStatusTimeout CancelDeploymentIntegrationsStatus = "timeout" CancelDeploymentIntegrationsStatusSkipped CancelDeploymentIntegrationsStatus = "skipped" CancelDeploymentIntegrationsStatusPending CancelDeploymentIntegrationsStatus = "pending" CancelDeploymentIntegrationsStatusReady CancelDeploymentIntegrationsStatus = "ready" + CancelDeploymentIntegrationsStatusError CancelDeploymentIntegrationsStatus = "error" + CancelDeploymentIntegrationsStatusTimeout CancelDeploymentIntegrationsStatus = "timeout" ) func (e CancelDeploymentIntegrationsStatus) ToPointer() *CancelDeploymentIntegrationsStatus { @@ -491,15 +491,15 @@ func (e *CancelDeploymentIntegrationsStatus) UnmarshalJSON(data []byte) error { return err } switch v { - case "error": - fallthrough - case "timeout": - fallthrough case "skipped": fallthrough case "pending": fallthrough case "ready": + fallthrough + case "error": + fallthrough + case "timeout": *e = CancelDeploymentIntegrationsStatus(v) return nil default: @@ -811,8 +811,8 @@ func (o *CancelDeploymentCreator) GetAvatar() *string { type CancelDeploymentLambdaReadyState string const ( - CancelDeploymentLambdaReadyStateError CancelDeploymentLambdaReadyState = "ERROR" CancelDeploymentLambdaReadyStateBuilding CancelDeploymentLambdaReadyState = "BUILDING" + CancelDeploymentLambdaReadyStateError CancelDeploymentLambdaReadyState = "ERROR" CancelDeploymentLambdaReadyStateInitializing CancelDeploymentLambdaReadyState = "INITIALIZING" CancelDeploymentLambdaReadyStateReady CancelDeploymentLambdaReadyState = "READY" ) @@ -826,10 +826,10 @@ func (e *CancelDeploymentLambdaReadyState) UnmarshalJSON(data []byte) error { return err } switch v { - case "ERROR": - fallthrough case "BUILDING": fallthrough + case "ERROR": + fallthrough case "INITIALIZING": fallthrough case "READY": @@ -952,8 +952,8 @@ func (e *CancelDeploymentStatus) UnmarshalJSON(data []byte) error { type CancelDeploymentTeam struct { ID string `json:"id"` Name string `json:"name"` - Slug string `json:"slug"` Avatar *string `json:"avatar,omitempty"` + Slug string `json:"slug"` } func (o *CancelDeploymentTeam) GetID() string { @@ -970,24 +970,35 @@ func (o *CancelDeploymentTeam) GetName() string { return o.Name } -func (o *CancelDeploymentTeam) GetSlug() string { +func (o *CancelDeploymentTeam) GetAvatar() *string { if o == nil { - return "" + return nil } - return o.Slug + return o.Avatar } -func (o *CancelDeploymentTeam) GetAvatar() *string { +func (o *CancelDeploymentTeam) GetSlug() string { if o == nil { - return nil + return "" } - return o.Avatar + return o.Slug } type CancelDeploymentCustomEnvironment2 struct { ID string `json:"id"` } +func (c CancelDeploymentCustomEnvironment2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentCustomEnvironment2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentCustomEnvironment2) GetID() string { if o == nil { return "" @@ -1063,6 +1074,17 @@ type CancelDeploymentBranchMatcher struct { Pattern string `json:"pattern"` } +func (c CancelDeploymentBranchMatcher) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentBranchMatcher) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "pattern"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentBranchMatcher) GetType() CancelDeploymentBranchMatcherType { if o == nil { return CancelDeploymentBranchMatcherType("") @@ -1085,6 +1107,17 @@ type CancelDeploymentVerification struct { Reason string `json:"reason"` } +func (c CancelDeploymentVerification) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentVerification) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "domain", "value", "reason"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentVerification) GetType() string { if o == nil { return "" @@ -1130,6 +1163,17 @@ type CancelDeploymentDomain struct { Verification []CancelDeploymentVerification `json:"verification,omitempty"` } +func (c CancelDeploymentDomain) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentDomain) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "apexName", "projectId", "verified"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentDomain) GetName() string { if o == nil { return "" @@ -1229,6 +1273,17 @@ type CancelDeploymentCustomEnvironment1 struct { UpdatedAt float64 `json:"updatedAt"` } +func (c CancelDeploymentCustomEnvironment1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentCustomEnvironment1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "slug", "type", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentCustomEnvironment1) GetID() string { if o == nil { return "" @@ -1326,20 +1381,20 @@ func CreateCancelDeploymentCustomEnvironmentUnionCancelDeploymentCustomEnvironme func (u *CancelDeploymentCustomEnvironmentUnion) UnmarshalJSON(data []byte) error { - var cancelDeploymentCustomEnvironment2 CancelDeploymentCustomEnvironment2 = CancelDeploymentCustomEnvironment2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentCustomEnvironment2, "", true, true); err == nil { - u.CancelDeploymentCustomEnvironment2 = &cancelDeploymentCustomEnvironment2 - u.Type = CancelDeploymentCustomEnvironmentUnionTypeCancelDeploymentCustomEnvironment2 - return nil - } - var cancelDeploymentCustomEnvironment1 CancelDeploymentCustomEnvironment1 = CancelDeploymentCustomEnvironment1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentCustomEnvironment1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentCustomEnvironment1, "", true, nil); err == nil { u.CancelDeploymentCustomEnvironment1 = &cancelDeploymentCustomEnvironment1 u.Type = CancelDeploymentCustomEnvironmentUnionTypeCancelDeploymentCustomEnvironment1 return nil } + var cancelDeploymentCustomEnvironment2 CancelDeploymentCustomEnvironment2 = CancelDeploymentCustomEnvironment2{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentCustomEnvironment2, "", true, nil); err == nil { + u.CancelDeploymentCustomEnvironment2 = &cancelDeploymentCustomEnvironment2 + u.Type = CancelDeploymentCustomEnvironmentUnionTypeCancelDeploymentCustomEnvironment2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CancelDeploymentCustomEnvironmentUnion", string(data)) } @@ -1526,6 +1581,17 @@ type CancelDeploymentGitSourceBitbucket3 struct { RepoUUID string `json:"repoUuid"` } +func (c CancelDeploymentGitSourceBitbucket3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceBitbucket3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "workspaceUuid", "repoUuid"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceBitbucket3) GetType() CancelDeploymentGitSourceTypeBitbucket3 { if o == nil { return CancelDeploymentGitSourceTypeBitbucket3("") @@ -1605,6 +1671,17 @@ type CancelDeploymentGitSourceGitlab2 struct { ProjectID float64 `json:"projectId"` } +func (c CancelDeploymentGitSourceGitlab2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGitlab2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "projectId"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGitlab2) GetType() CancelDeploymentGitSourceTypeGitlab2 { if o == nil { return CancelDeploymentGitSourceTypeGitlab2("") @@ -1665,6 +1742,17 @@ type CancelDeploymentGitSourceGithubLimited3 struct { Repo *string `json:"repo,omitempty"` } +func (c CancelDeploymentGitSourceGithubLimited3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithubLimited3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithubLimited3) GetType() CancelDeploymentTypeGithubLimited3 { if o == nil { return CancelDeploymentTypeGithubLimited3("") @@ -1740,6 +1828,17 @@ type CancelDeploymentGitSourceGithubCustomHost3 struct { Repo *string `json:"repo,omitempty"` } +func (c CancelDeploymentGitSourceGithubCustomHost3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithubCustomHost3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "host", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithubCustomHost3) GetType() CancelDeploymentTypeGithubCustomHost3 { if o == nil { return CancelDeploymentTypeGithubCustomHost3("") @@ -1821,6 +1920,17 @@ type CancelDeploymentGitSourceGithub3 struct { Repo *string `json:"repo,omitempty"` } +func (c CancelDeploymentGitSourceGithub3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithub3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithub3) GetType() CancelDeploymentGitSourceTypeGithub3 { if o == nil { return CancelDeploymentGitSourceTypeGithub3("") @@ -1894,6 +2004,17 @@ type CancelDeploymentGitSourceCustom struct { GitURL string `json:"gitUrl"` } +func (c CancelDeploymentGitSourceCustom) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceCustom) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "gitUrl"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceCustom) GetType() CancelDeploymentTypeCustom { if o == nil { return CancelDeploymentTypeCustom("") @@ -1954,6 +2075,17 @@ type CancelDeploymentGitSourceBitbucket2 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceBitbucket2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceBitbucket2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "owner", "slug"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceBitbucket2) GetType() CancelDeploymentGitSourceTypeBitbucket2 { if o == nil { return CancelDeploymentGitSourceTypeBitbucket2("") @@ -2028,6 +2160,17 @@ type CancelDeploymentGitSourceBitbucket1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceBitbucket1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceBitbucket1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "repoUuid"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceBitbucket1) GetType() CancelDeploymentGitSourceTypeBitbucket1 { if o == nil { return CancelDeploymentGitSourceTypeBitbucket1("") @@ -2128,14 +2271,14 @@ func CreateCancelDeploymentProjectIDNumber(number float64) CancelDeploymentProje func (u *CancelDeploymentProjectID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentProjectIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentProjectIDTypeNumber return nil @@ -2164,6 +2307,17 @@ type CancelDeploymentGitSourceGitlab1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceGitlab1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGitlab1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGitlab1) GetType() CancelDeploymentGitSourceTypeGitlab1 { if o == nil { return CancelDeploymentGitSourceTypeGitlab1("") @@ -2231,6 +2385,17 @@ type CancelDeploymentGitSourceGithubLimited2 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceGithubLimited2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithubLimited2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithubLimited2) GetType() CancelDeploymentTypeGithubLimited2 { if o == nil { return CancelDeploymentTypeGithubLimited2("") @@ -2331,14 +2496,14 @@ func CreateCancelDeploymentRepoID3Number(number float64) CancelDeploymentRepoID3 func (u *CancelDeploymentRepoID3) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentRepoID3TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentRepoID3TypeNumber return nil @@ -2367,6 +2532,17 @@ type CancelDeploymentGitSourceGithubLimited1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceGithubLimited1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithubLimited1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithubLimited1) GetType() CancelDeploymentTypeGithubLimited1 { if o == nil { return CancelDeploymentTypeGithubLimited1("") @@ -2435,6 +2611,17 @@ type CancelDeploymentGitSourceGithubCustomHost2 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceGithubCustomHost2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithubCustomHost2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "host", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithubCustomHost2) GetType() CancelDeploymentTypeGithubCustomHost2 { if o == nil { return CancelDeploymentTypeGithubCustomHost2("") @@ -2542,14 +2729,14 @@ func CreateCancelDeploymentRepoID2Number(number float64) CancelDeploymentRepoID2 func (u *CancelDeploymentRepoID2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentRepoID2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentRepoID2TypeNumber return nil @@ -2579,6 +2766,17 @@ type CancelDeploymentGitSourceGithubCustomHost1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceGithubCustomHost1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithubCustomHost1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "host", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithubCustomHost1) GetType() CancelDeploymentTypeGithubCustomHost1 { if o == nil { return CancelDeploymentTypeGithubCustomHost1("") @@ -2653,6 +2851,17 @@ type CancelDeploymentGitSourceGithub2 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceGithub2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithub2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithub2) GetType() CancelDeploymentGitSourceTypeGithub2 { if o == nil { return CancelDeploymentGitSourceTypeGithub2("") @@ -2753,14 +2962,14 @@ func CreateCancelDeploymentRepoID1Number(number float64) CancelDeploymentRepoID1 func (u *CancelDeploymentRepoID1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentRepoID1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentRepoID1TypeNumber return nil @@ -2789,6 +2998,17 @@ type CancelDeploymentGitSourceGithub1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CancelDeploymentGitSourceGithub1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitSourceGithub1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitSourceGithub1) GetType() CancelDeploymentGitSourceTypeGithub1 { if o == nil { return CancelDeploymentGitSourceTypeGithub1("") @@ -3001,108 +3221,108 @@ func CreateCancelDeploymentGitSourceUnionCancelDeploymentGitSourceBitbucket3(can func (u *CancelDeploymentGitSourceUnion) UnmarshalJSON(data []byte) error { - var cancelDeploymentGitSourceCustom CancelDeploymentGitSourceCustom = CancelDeploymentGitSourceCustom{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceCustom, "", true, true); err == nil { - u.CancelDeploymentGitSourceCustom = &cancelDeploymentGitSourceCustom - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceCustom + var cancelDeploymentGitSourceGithubCustomHost3 CancelDeploymentGitSourceGithubCustomHost3 = CancelDeploymentGitSourceGithubCustomHost3{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubCustomHost3, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGithubCustomHost3 = &cancelDeploymentGitSourceGithubCustomHost3 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubCustomHost3 return nil } - var cancelDeploymentGitSourceGitlab2 CancelDeploymentGitSourceGitlab2 = CancelDeploymentGitSourceGitlab2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGitlab2, "", true, true); err == nil { - u.CancelDeploymentGitSourceGitlab2 = &cancelDeploymentGitSourceGitlab2 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGitlab2 + var cancelDeploymentGitSourceBitbucket3 CancelDeploymentGitSourceBitbucket3 = CancelDeploymentGitSourceBitbucket3{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceBitbucket3, "", true, nil); err == nil { + u.CancelDeploymentGitSourceBitbucket3 = &cancelDeploymentGitSourceBitbucket3 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceBitbucket3 return nil } - var cancelDeploymentGitSourceGitlab1 CancelDeploymentGitSourceGitlab1 = CancelDeploymentGitSourceGitlab1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGitlab1, "", true, true); err == nil { - u.CancelDeploymentGitSourceGitlab1 = &cancelDeploymentGitSourceGitlab1 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGitlab1 + var cancelDeploymentGitSourceGithubCustomHost2 CancelDeploymentGitSourceGithubCustomHost2 = CancelDeploymentGitSourceGithubCustomHost2{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubCustomHost2, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGithubCustomHost2 = &cancelDeploymentGitSourceGithubCustomHost2 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubCustomHost2 return nil } - var cancelDeploymentGitSourceGithubLimited1 CancelDeploymentGitSourceGithubLimited1 = CancelDeploymentGitSourceGithubLimited1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubLimited1, "", true, true); err == nil { - u.CancelDeploymentGitSourceGithubLimited1 = &cancelDeploymentGitSourceGithubLimited1 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubLimited1 + var cancelDeploymentGitSourceCustom CancelDeploymentGitSourceCustom = CancelDeploymentGitSourceCustom{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceCustom, "", true, nil); err == nil { + u.CancelDeploymentGitSourceCustom = &cancelDeploymentGitSourceCustom + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceCustom return nil } - var cancelDeploymentGitSourceGithub1 CancelDeploymentGitSourceGithub1 = CancelDeploymentGitSourceGithub1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithub1, "", true, true); err == nil { - u.CancelDeploymentGitSourceGithub1 = &cancelDeploymentGitSourceGithub1 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithub1 + var cancelDeploymentGitSourceGithub3 CancelDeploymentGitSourceGithub3 = CancelDeploymentGitSourceGithub3{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithub3, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGithub3 = &cancelDeploymentGitSourceGithub3 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithub3 return nil } - var cancelDeploymentGitSourceGithubLimited2 CancelDeploymentGitSourceGithubLimited2 = CancelDeploymentGitSourceGithubLimited2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubLimited2, "", true, true); err == nil { - u.CancelDeploymentGitSourceGithubLimited2 = &cancelDeploymentGitSourceGithubLimited2 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubLimited2 + var cancelDeploymentGitSourceGithubLimited3 CancelDeploymentGitSourceGithubLimited3 = CancelDeploymentGitSourceGithubLimited3{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubLimited3, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGithubLimited3 = &cancelDeploymentGitSourceGithubLimited3 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubLimited3 return nil } - var cancelDeploymentGitSourceBitbucket1 CancelDeploymentGitSourceBitbucket1 = CancelDeploymentGitSourceBitbucket1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceBitbucket1, "", true, true); err == nil { - u.CancelDeploymentGitSourceBitbucket1 = &cancelDeploymentGitSourceBitbucket1 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceBitbucket1 + var cancelDeploymentGitSourceGitlab2 CancelDeploymentGitSourceGitlab2 = CancelDeploymentGitSourceGitlab2{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGitlab2, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGitlab2 = &cancelDeploymentGitSourceGitlab2 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGitlab2 return nil } - var cancelDeploymentGitSourceBitbucket2 CancelDeploymentGitSourceBitbucket2 = CancelDeploymentGitSourceBitbucket2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceBitbucket2, "", true, true); err == nil { - u.CancelDeploymentGitSourceBitbucket2 = &cancelDeploymentGitSourceBitbucket2 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceBitbucket2 + var cancelDeploymentGitSourceGithub2 CancelDeploymentGitSourceGithub2 = CancelDeploymentGitSourceGithub2{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithub2, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGithub2 = &cancelDeploymentGitSourceGithub2 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithub2 return nil } var cancelDeploymentGitSourceGithubCustomHost1 CancelDeploymentGitSourceGithubCustomHost1 = CancelDeploymentGitSourceGithubCustomHost1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubCustomHost1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubCustomHost1, "", true, nil); err == nil { u.CancelDeploymentGitSourceGithubCustomHost1 = &cancelDeploymentGitSourceGithubCustomHost1 u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubCustomHost1 return nil } - var cancelDeploymentGitSourceGithub3 CancelDeploymentGitSourceGithub3 = CancelDeploymentGitSourceGithub3{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithub3, "", true, true); err == nil { - u.CancelDeploymentGitSourceGithub3 = &cancelDeploymentGitSourceGithub3 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithub3 + var cancelDeploymentGitSourceGithubLimited2 CancelDeploymentGitSourceGithubLimited2 = CancelDeploymentGitSourceGithubLimited2{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubLimited2, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGithubLimited2 = &cancelDeploymentGitSourceGithubLimited2 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubLimited2 return nil } - var cancelDeploymentGitSourceGithubLimited3 CancelDeploymentGitSourceGithubLimited3 = CancelDeploymentGitSourceGithubLimited3{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubLimited3, "", true, true); err == nil { - u.CancelDeploymentGitSourceGithubLimited3 = &cancelDeploymentGitSourceGithubLimited3 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubLimited3 + var cancelDeploymentGitSourceBitbucket2 CancelDeploymentGitSourceBitbucket2 = CancelDeploymentGitSourceBitbucket2{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceBitbucket2, "", true, nil); err == nil { + u.CancelDeploymentGitSourceBitbucket2 = &cancelDeploymentGitSourceBitbucket2 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceBitbucket2 return nil } - var cancelDeploymentGitSourceGithub2 CancelDeploymentGitSourceGithub2 = CancelDeploymentGitSourceGithub2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithub2, "", true, true); err == nil { - u.CancelDeploymentGitSourceGithub2 = &cancelDeploymentGitSourceGithub2 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithub2 + var cancelDeploymentGitSourceGithub1 CancelDeploymentGitSourceGithub1 = CancelDeploymentGitSourceGithub1{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithub1, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGithub1 = &cancelDeploymentGitSourceGithub1 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithub1 return nil } - var cancelDeploymentGitSourceGithubCustomHost2 CancelDeploymentGitSourceGithubCustomHost2 = CancelDeploymentGitSourceGithubCustomHost2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubCustomHost2, "", true, true); err == nil { - u.CancelDeploymentGitSourceGithubCustomHost2 = &cancelDeploymentGitSourceGithubCustomHost2 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubCustomHost2 + var cancelDeploymentGitSourceGithubLimited1 CancelDeploymentGitSourceGithubLimited1 = CancelDeploymentGitSourceGithubLimited1{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubLimited1, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGithubLimited1 = &cancelDeploymentGitSourceGithubLimited1 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubLimited1 return nil } - var cancelDeploymentGitSourceGithubCustomHost3 CancelDeploymentGitSourceGithubCustomHost3 = CancelDeploymentGitSourceGithubCustomHost3{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGithubCustomHost3, "", true, true); err == nil { - u.CancelDeploymentGitSourceGithubCustomHost3 = &cancelDeploymentGitSourceGithubCustomHost3 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGithubCustomHost3 + var cancelDeploymentGitSourceGitlab1 CancelDeploymentGitSourceGitlab1 = CancelDeploymentGitSourceGitlab1{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceGitlab1, "", true, nil); err == nil { + u.CancelDeploymentGitSourceGitlab1 = &cancelDeploymentGitSourceGitlab1 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceGitlab1 return nil } - var cancelDeploymentGitSourceBitbucket3 CancelDeploymentGitSourceBitbucket3 = CancelDeploymentGitSourceBitbucket3{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceBitbucket3, "", true, true); err == nil { - u.CancelDeploymentGitSourceBitbucket3 = &cancelDeploymentGitSourceBitbucket3 - u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceBitbucket3 + var cancelDeploymentGitSourceBitbucket1 CancelDeploymentGitSourceBitbucket1 = CancelDeploymentGitSourceBitbucket1{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitSourceBitbucket1, "", true, nil); err == nil { + u.CancelDeploymentGitSourceBitbucket1 = &cancelDeploymentGitSourceBitbucket1 + u.Type = CancelDeploymentGitSourceUnionTypeCancelDeploymentGitSourceBitbucket1 return nil } @@ -3616,6 +3836,7 @@ type CancelDeploymentFunctions struct { IncludeFiles *string `json:"includeFiles,omitempty"` ExcludeFiles *string `json:"excludeFiles,omitempty"` ExperimentalTriggers []CancelDeploymentExperimentalTrigger `json:"experimentalTriggers,omitempty"` + SupportsCancellation *bool `json:"supportsCancellation,omitempty"` } func (o *CancelDeploymentFunctions) GetArchitecture() *CancelDeploymentArchitecture { @@ -3667,6 +3888,13 @@ func (o *CancelDeploymentFunctions) GetExperimentalTriggers() []CancelDeployment return o.ExperimentalTriggers } +func (o *CancelDeploymentFunctions) GetSupportsCancellation() *bool { + if o == nil { + return nil + } + return o.SupportsCancellation +} + type CancelDeploymentPlan string const ( @@ -3702,9 +3930,20 @@ type CancelDeploymentRoute3 struct { Middleware float64 `json:"middleware"` } -func (o *CancelDeploymentRoute3) GetSrc() string { - if o == nil { - return "" +func (c CancelDeploymentRoute3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentRoute3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"src", "continue", "middleware"}); err != nil { + return err + } + return nil +} + +func (o *CancelDeploymentRoute3) GetSrc() string { + if o == nil { + return "" } return o.Src } @@ -3726,12 +3965,12 @@ func (o *CancelDeploymentRoute3) GetMiddleware() float64 { type CancelDeploymentHandle string const ( - CancelDeploymentHandleFilesystem CancelDeploymentHandle = "filesystem" CancelDeploymentHandleError CancelDeploymentHandle = "error" + CancelDeploymentHandleFilesystem CancelDeploymentHandle = "filesystem" CancelDeploymentHandleHit CancelDeploymentHandle = "hit" CancelDeploymentHandleMiss CancelDeploymentHandle = "miss" - CancelDeploymentHandleResource CancelDeploymentHandle = "resource" CancelDeploymentHandleRewrite CancelDeploymentHandle = "rewrite" + CancelDeploymentHandleResource CancelDeploymentHandle = "resource" ) func (e CancelDeploymentHandle) ToPointer() *CancelDeploymentHandle { @@ -3743,17 +3982,17 @@ func (e *CancelDeploymentHandle) UnmarshalJSON(data []byte) error { return err } switch v { - case "filesystem": - fallthrough case "error": fallthrough + case "filesystem": + fallthrough case "hit": fallthrough case "miss": fallthrough - case "resource": - fallthrough case "rewrite": + fallthrough + case "resource": *e = CancelDeploymentHandle(v) return nil default: @@ -3768,6 +4007,17 @@ type CancelDeploymentRoute2 struct { Status *float64 `json:"status,omitempty"` } +func (c CancelDeploymentRoute2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentRoute2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"handle"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentRoute2) GetHandle() CancelDeploymentHandle { if o == nil { return CancelDeploymentHandle("") @@ -3860,14 +4110,14 @@ func CreateCancelDeploymentHasEq2Number(number float64) CancelDeploymentHasEq2 { func (u *CancelDeploymentHasEq2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentHasEq2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentHasEq2TypeNumber return nil @@ -3902,6 +4152,17 @@ type CancelDeploymentHasValue2 struct { Lte *float64 `json:"lte,omitempty"` } +func (c CancelDeploymentHasValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentHasValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentHasValue2) GetEq() *CancelDeploymentHasEq2 { if o == nil { return nil @@ -4014,14 +4275,14 @@ func CreateCancelDeploymentHasValueUnion2CancelDeploymentHasValue2(cancelDeploym func (u *CancelDeploymentHasValueUnion2) UnmarshalJSON(data []byte) error { var cancelDeploymentHasValue2 CancelDeploymentHasValue2 = CancelDeploymentHasValue2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentHasValue2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentHasValue2, "", true, nil); err == nil { u.CancelDeploymentHasValue2 = &cancelDeploymentHasValue2 u.Type = CancelDeploymentHasValueUnion2TypeCancelDeploymentHasValue2 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentHasValueUnion2TypeStr return nil @@ -4048,6 +4309,17 @@ type CancelDeploymentHas struct { Value *CancelDeploymentHasValueUnion2 `json:"value,omitempty"` } +func (c CancelDeploymentHas) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentHas) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "key"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentHas) GetType() CancelDeploymentHasType { if o == nil { return CancelDeploymentHasType("") @@ -4127,14 +4399,14 @@ func CreateCancelDeploymentHasEq1Number(number float64) CancelDeploymentHasEq1 { func (u *CancelDeploymentHasEq1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentHasEq1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentHasEq1TypeNumber return nil @@ -4169,6 +4441,17 @@ type CancelDeploymentHasValue1 struct { Lte *float64 `json:"lte,omitempty"` } +func (c CancelDeploymentHasValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentHasValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentHasValue1) GetEq() *CancelDeploymentHasEq1 { if o == nil { return nil @@ -4281,14 +4564,14 @@ func CreateCancelDeploymentHasValueUnion1CancelDeploymentHasValue1(cancelDeploym func (u *CancelDeploymentHasValueUnion1) UnmarshalJSON(data []byte) error { var cancelDeploymentHasValue1 CancelDeploymentHasValue1 = CancelDeploymentHasValue1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentHasValue1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentHasValue1, "", true, nil); err == nil { u.CancelDeploymentHasValue1 = &cancelDeploymentHasValue1 u.Type = CancelDeploymentHasValueUnion1TypeCancelDeploymentHasValue1 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentHasValueUnion1TypeStr return nil @@ -4314,6 +4597,17 @@ type CancelDeploymentHasHost struct { Value CancelDeploymentHasValueUnion1 `json:"value"` } +func (c CancelDeploymentHasHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentHasHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "value"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentHasHost) GetType() CancelDeploymentHasTypeHost { if o == nil { return CancelDeploymentHasTypeHost("") @@ -4363,14 +4657,14 @@ func CreateCancelDeploymentHasUnionCancelDeploymentHas(cancelDeploymentHas Cance func (u *CancelDeploymentHasUnion) UnmarshalJSON(data []byte) error { var cancelDeploymentHasHost CancelDeploymentHasHost = CancelDeploymentHasHost{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentHasHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentHasHost, "", true, nil); err == nil { u.CancelDeploymentHasHost = &cancelDeploymentHasHost u.Type = CancelDeploymentHasUnionTypeCancelDeploymentHasHost return nil } var cancelDeploymentHas CancelDeploymentHas = CancelDeploymentHas{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentHas, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentHas, "", true, nil); err == nil { u.CancelDeploymentHas = &cancelDeploymentHas u.Type = CancelDeploymentHasUnionTypeCancelDeploymentHas return nil @@ -4455,14 +4749,14 @@ func CreateCancelDeploymentMissingEq2Number(number float64) CancelDeploymentMiss func (u *CancelDeploymentMissingEq2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentMissingEq2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentMissingEq2TypeNumber return nil @@ -4497,6 +4791,17 @@ type CancelDeploymentMissingValue2 struct { Lte *float64 `json:"lte,omitempty"` } +func (c CancelDeploymentMissingValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentMissingValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentMissingValue2) GetEq() *CancelDeploymentMissingEq2 { if o == nil { return nil @@ -4609,14 +4914,14 @@ func CreateCancelDeploymentMissingValueUnion2CancelDeploymentMissingValue2(cance func (u *CancelDeploymentMissingValueUnion2) UnmarshalJSON(data []byte) error { var cancelDeploymentMissingValue2 CancelDeploymentMissingValue2 = CancelDeploymentMissingValue2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentMissingValue2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentMissingValue2, "", true, nil); err == nil { u.CancelDeploymentMissingValue2 = &cancelDeploymentMissingValue2 u.Type = CancelDeploymentMissingValueUnion2TypeCancelDeploymentMissingValue2 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentMissingValueUnion2TypeStr return nil @@ -4643,6 +4948,17 @@ type CancelDeploymentMissing struct { Value *CancelDeploymentMissingValueUnion2 `json:"value,omitempty"` } +func (c CancelDeploymentMissing) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentMissing) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "key"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentMissing) GetType() CancelDeploymentMissingType { if o == nil { return CancelDeploymentMissingType("") @@ -4722,14 +5038,14 @@ func CreateCancelDeploymentMissingEq1Number(number float64) CancelDeploymentMiss func (u *CancelDeploymentMissingEq1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentMissingEq1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentMissingEq1TypeNumber return nil @@ -4764,6 +5080,17 @@ type CancelDeploymentMissingValue1 struct { Lte *float64 `json:"lte,omitempty"` } +func (c CancelDeploymentMissingValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentMissingValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentMissingValue1) GetEq() *CancelDeploymentMissingEq1 { if o == nil { return nil @@ -4876,14 +5203,14 @@ func CreateCancelDeploymentMissingValueUnion1CancelDeploymentMissingValue1(cance func (u *CancelDeploymentMissingValueUnion1) UnmarshalJSON(data []byte) error { var cancelDeploymentMissingValue1 CancelDeploymentMissingValue1 = CancelDeploymentMissingValue1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentMissingValue1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentMissingValue1, "", true, nil); err == nil { u.CancelDeploymentMissingValue1 = &cancelDeploymentMissingValue1 u.Type = CancelDeploymentMissingValueUnion1TypeCancelDeploymentMissingValue1 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentMissingValueUnion1TypeStr return nil @@ -4909,6 +5236,17 @@ type CancelDeploymentMissingHost struct { Value CancelDeploymentMissingValueUnion1 `json:"value"` } +func (c CancelDeploymentMissingHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentMissingHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "value"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentMissingHost) GetType() CancelDeploymentMissingTypeHost { if o == nil { return CancelDeploymentMissingTypeHost("") @@ -4958,14 +5296,14 @@ func CreateCancelDeploymentMissingUnionCancelDeploymentMissing(cancelDeploymentM func (u *CancelDeploymentMissingUnion) UnmarshalJSON(data []byte) error { var cancelDeploymentMissingHost CancelDeploymentMissingHost = CancelDeploymentMissingHost{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentMissingHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentMissingHost, "", true, nil); err == nil { u.CancelDeploymentMissingHost = &cancelDeploymentMissingHost u.Type = CancelDeploymentMissingUnionTypeCancelDeploymentMissingHost return nil } var cancelDeploymentMissing CancelDeploymentMissing = CancelDeploymentMissing{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentMissing, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentMissing, "", true, nil); err == nil { u.CancelDeploymentMissing = &cancelDeploymentMissing u.Type = CancelDeploymentMissingUnionTypeCancelDeploymentMissing return nil @@ -5016,6 +5354,17 @@ type CancelDeploymentMitigate struct { Action CancelDeploymentAction `json:"action"` } +func (c CancelDeploymentMitigate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentMitigate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"action"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentMitigate) GetAction() CancelDeploymentAction { if o == nil { return CancelDeploymentAction("") @@ -5055,8 +5404,8 @@ func (e *CancelDeploymentTransformType) UnmarshalJSON(data []byte) error { type CancelDeploymentOp string const ( - CancelDeploymentOpSet CancelDeploymentOp = "set" CancelDeploymentOpAppend CancelDeploymentOp = "append" + CancelDeploymentOpSet CancelDeploymentOp = "set" CancelDeploymentOpDelete CancelDeploymentOp = "delete" ) @@ -5069,10 +5418,10 @@ func (e *CancelDeploymentOp) UnmarshalJSON(data []byte) error { return err } switch v { - case "set": - fallthrough case "append": fallthrough + case "set": + fallthrough case "delete": *e = CancelDeploymentOp(v) return nil @@ -5116,14 +5465,14 @@ func CreateCancelDeploymentKeyEqNumber(number float64) CancelDeploymentKeyEq { func (u *CancelDeploymentKeyEq) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentKeyEqTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CancelDeploymentKeyEqTypeNumber return nil @@ -5157,6 +5506,17 @@ type CancelDeploymentKey struct { Lte *float64 `json:"lte,omitempty"` } +func (c CancelDeploymentKey) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentKey) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentKey) GetEq() *CancelDeploymentKeyEq { if o == nil { return nil @@ -5262,14 +5622,14 @@ func CreateCancelDeploymentKeyUnionCancelDeploymentKey(cancelDeploymentKey Cance func (u *CancelDeploymentKeyUnion) UnmarshalJSON(data []byte) error { var cancelDeploymentKey CancelDeploymentKey = CancelDeploymentKey{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentKey, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentKey, "", true, nil); err == nil { u.CancelDeploymentKey = &cancelDeploymentKey u.Type = CancelDeploymentKeyUnionTypeCancelDeploymentKey return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentKeyUnionTypeStr return nil @@ -5294,6 +5654,17 @@ type CancelDeploymentRouteTarget struct { Key CancelDeploymentKeyUnion `json:"key"` } +func (c CancelDeploymentRouteTarget) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentRouteTarget) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"key"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentRouteTarget) GetKey() CancelDeploymentKeyUnion { if o == nil { return CancelDeploymentKeyUnion{} @@ -5336,14 +5707,14 @@ func CreateCancelDeploymentArgsArrayOfStr(arrayOfStr []string) CancelDeploymentA func (u *CancelDeploymentArgs) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CancelDeploymentArgsTypeStr return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = CancelDeploymentArgsTypeArrayOfStr return nil @@ -5371,6 +5742,17 @@ type CancelDeploymentTransform struct { Args *CancelDeploymentArgs `json:"args,omitempty"` } +func (c CancelDeploymentTransform) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentTransform) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "op", "target"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentTransform) GetType() CancelDeploymentTransformType { if o == nil { return CancelDeploymentTransformType("") @@ -5404,6 +5786,17 @@ type CancelDeploymentLocale struct { Cookie *string `json:"cookie,omitempty"` } +func (c CancelDeploymentLocale) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentLocale) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentLocale) GetRedirect() map[string]string { if o == nil { return nil @@ -5442,6 +5835,17 @@ type CancelDeploymentRoute1 struct { Middleware *float64 `json:"middleware,omitempty"` } +func (c CancelDeploymentRoute1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentRoute1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"src"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentRoute1) GetSrc() string { if o == nil { return "" @@ -5614,26 +6018,26 @@ func CreateCancelDeploymentRouteUnionCancelDeploymentRoute3(cancelDeploymentRout func (u *CancelDeploymentRouteUnion) UnmarshalJSON(data []byte) error { var cancelDeploymentRoute3 CancelDeploymentRoute3 = CancelDeploymentRoute3{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentRoute3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentRoute3, "", true, nil); err == nil { u.CancelDeploymentRoute3 = &cancelDeploymentRoute3 u.Type = CancelDeploymentRouteUnionTypeCancelDeploymentRoute3 return nil } - var cancelDeploymentRoute2 CancelDeploymentRoute2 = CancelDeploymentRoute2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentRoute2, "", true, true); err == nil { - u.CancelDeploymentRoute2 = &cancelDeploymentRoute2 - u.Type = CancelDeploymentRouteUnionTypeCancelDeploymentRoute2 - return nil - } - var cancelDeploymentRoute1 CancelDeploymentRoute1 = CancelDeploymentRoute1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentRoute1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentRoute1, "", true, nil); err == nil { u.CancelDeploymentRoute1 = &cancelDeploymentRoute1 u.Type = CancelDeploymentRouteUnionTypeCancelDeploymentRoute1 return nil } + var cancelDeploymentRoute2 CancelDeploymentRoute2 = CancelDeploymentRoute2{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentRoute2, "", true, nil); err == nil { + u.CancelDeploymentRoute2 = &cancelDeploymentRoute2 + u.Type = CancelDeploymentRouteUnionTypeCancelDeploymentRoute2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CancelDeploymentRouteUnion", string(data)) } @@ -5679,8 +6083,8 @@ func (e *CancelDeploymentGitRepoTypeBitbucket) UnmarshalJSON(data []byte) error type CancelDeploymentOwnerType3 string const ( - CancelDeploymentOwnerType3User CancelDeploymentOwnerType3 = "user" CancelDeploymentOwnerType3Team CancelDeploymentOwnerType3 = "team" + CancelDeploymentOwnerType3User CancelDeploymentOwnerType3 = "user" ) func (e CancelDeploymentOwnerType3) ToPointer() *CancelDeploymentOwnerType3 { @@ -5692,9 +6096,9 @@ func (e *CancelDeploymentOwnerType3) UnmarshalJSON(data []byte) error { return err } switch v { - case "user": - fallthrough case "team": + fallthrough + case "user": *e = CancelDeploymentOwnerType3(v) return nil default: @@ -5715,6 +6119,17 @@ type CancelDeploymentGitRepoBitbucket struct { OwnerType CancelDeploymentOwnerType3 `json:"ownerType"` } +func (c CancelDeploymentGitRepoBitbucket) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitRepoBitbucket) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"owner", "repoUuid", "slug", "type", "workspaceUuid", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitRepoBitbucket) GetOwner() string { if o == nil { return "" @@ -5811,8 +6226,8 @@ func (e *CancelDeploymentGitRepoTypeGithub) UnmarshalJSON(data []byte) error { type CancelDeploymentOwnerType2 string const ( - CancelDeploymentOwnerType2User CancelDeploymentOwnerType2 = "user" CancelDeploymentOwnerType2Team CancelDeploymentOwnerType2 = "team" + CancelDeploymentOwnerType2User CancelDeploymentOwnerType2 = "user" ) func (e CancelDeploymentOwnerType2) ToPointer() *CancelDeploymentOwnerType2 { @@ -5824,9 +6239,9 @@ func (e *CancelDeploymentOwnerType2) UnmarshalJSON(data []byte) error { return err } switch v { - case "user": - fallthrough case "team": + fallthrough + case "user": *e = CancelDeploymentOwnerType2(v) return nil default: @@ -5847,6 +6262,17 @@ type CancelDeploymentGitRepoGithub struct { OwnerType CancelDeploymentOwnerType2 `json:"ownerType"` } +func (c CancelDeploymentGitRepoGithub) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitRepoGithub) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"org", "repo", "repoId", "type", "repoOwnerId", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitRepoGithub) GetOrg() string { if o == nil { return "" @@ -5943,8 +6369,8 @@ func (e *CancelDeploymentGitRepoTypeGitlab) UnmarshalJSON(data []byte) error { type CancelDeploymentOwnerType1 string const ( - CancelDeploymentOwnerType1User CancelDeploymentOwnerType1 = "user" CancelDeploymentOwnerType1Team CancelDeploymentOwnerType1 = "team" + CancelDeploymentOwnerType1User CancelDeploymentOwnerType1 = "user" ) func (e CancelDeploymentOwnerType1) ToPointer() *CancelDeploymentOwnerType1 { @@ -5956,9 +6382,9 @@ func (e *CancelDeploymentOwnerType1) UnmarshalJSON(data []byte) error { return err } switch v { - case "user": - fallthrough case "team": + fallthrough + case "user": *e = CancelDeploymentOwnerType1(v) return nil default: @@ -5978,6 +6404,17 @@ type CancelDeploymentGitRepoGitlab struct { OwnerType CancelDeploymentOwnerType1 `json:"ownerType"` } +func (c CancelDeploymentGitRepoGitlab) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentGitRepoGitlab) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"namespace", "projectId", "type", "url", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentGitRepoGitlab) GetNamespace() string { if o == nil { return "" @@ -6086,27 +6523,27 @@ func CreateCancelDeploymentGitRepoUnionCancelDeploymentGitRepoBitbucket(cancelDe func (u *CancelDeploymentGitRepoUnion) UnmarshalJSON(data []byte) error { - var cancelDeploymentGitRepoGitlab CancelDeploymentGitRepoGitlab = CancelDeploymentGitRepoGitlab{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoGitlab, "", true, true); err == nil { - u.CancelDeploymentGitRepoGitlab = &cancelDeploymentGitRepoGitlab - u.Type = CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGitlab - return nil - } - var cancelDeploymentGitRepoGithub CancelDeploymentGitRepoGithub = CancelDeploymentGitRepoGithub{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoGithub, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoGithub, "", true, nil); err == nil { u.CancelDeploymentGitRepoGithub = &cancelDeploymentGitRepoGithub u.Type = CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGithub return nil } var cancelDeploymentGitRepoBitbucket CancelDeploymentGitRepoBitbucket = CancelDeploymentGitRepoBitbucket{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoBitbucket, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoBitbucket, "", true, nil); err == nil { u.CancelDeploymentGitRepoBitbucket = &cancelDeploymentGitRepoBitbucket u.Type = CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoBitbucket return nil } + var cancelDeploymentGitRepoGitlab CancelDeploymentGitRepoGitlab = CancelDeploymentGitRepoGitlab{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentGitRepoGitlab, "", true, nil); err == nil { + u.CancelDeploymentGitRepoGitlab = &cancelDeploymentGitRepoGitlab + u.Type = CancelDeploymentGitRepoUnionTypeCancelDeploymentGitRepoGitlab + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CancelDeploymentGitRepoUnion", string(data)) } @@ -6130,11 +6567,33 @@ func (u CancelDeploymentGitRepoUnion) MarshalJSON() ([]byte, error) { type CancelDeploymentFlags2 struct { } +func (c CancelDeploymentFlags2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentFlags2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + type CancelDeploymentOption struct { Value *components.FlagJSONValue `json:"value"` Label *string `json:"label,omitempty"` } +func (c CancelDeploymentOption) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentOption) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentOption) GetValue() *components.FlagJSONValue { if o == nil { return nil @@ -6155,6 +6614,17 @@ type CancelDeploymentDefinitions struct { Description *string `json:"description,omitempty"` } +func (c CancelDeploymentDefinitions) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentDefinitions) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentDefinitions) GetOptions() []CancelDeploymentOption { if o == nil { return nil @@ -6181,6 +6651,17 @@ type CancelDeploymentFlags1 struct { Definitions map[string]CancelDeploymentDefinitions `json:"definitions"` } +func (c CancelDeploymentFlags1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentFlags1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"definitions"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentFlags1) GetDefinitions() map[string]CancelDeploymentDefinitions { if o == nil { return map[string]CancelDeploymentDefinitions{} @@ -6223,14 +6704,14 @@ func CreateCancelDeploymentFlagsUnionArrayOfCancelDeploymentFlags2(arrayOfCancel func (u *CancelDeploymentFlagsUnion) UnmarshalJSON(data []byte) error { var cancelDeploymentFlags1 CancelDeploymentFlags1 = CancelDeploymentFlags1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentFlags1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentFlags1, "", true, nil); err == nil { u.CancelDeploymentFlags1 = &cancelDeploymentFlags1 u.Type = CancelDeploymentFlagsUnionTypeCancelDeploymentFlags1 return nil } var arrayOfCancelDeploymentFlags2 []CancelDeploymentFlags2 = []CancelDeploymentFlags2{} - if err := utils.UnmarshalJSON(data, &arrayOfCancelDeploymentFlags2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfCancelDeploymentFlags2, "", true, nil); err == nil { u.ArrayOfCancelDeploymentFlags2 = arrayOfCancelDeploymentFlags2 u.Type = CancelDeploymentFlagsUnionTypeArrayOfCancelDeploymentFlags2 return nil @@ -6251,7 +6732,7 @@ func (u CancelDeploymentFlagsUnion) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type CancelDeploymentFlagsUnion: all fields are null") } -// CancelDeploymentApplications - A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. +// CancelDeploymentApplications - A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. type CancelDeploymentApplications struct { IsDefaultApp *bool `json:"isDefaultApp,omitempty"` // This is the production alias, it will always show the most up to date of each application. @@ -6261,6 +6742,17 @@ type CancelDeploymentApplications struct { DeploymentHost *string `json:"deploymentHost,omitempty"` } +func (c CancelDeploymentApplications) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentApplications) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"productionHost"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentApplications) GetIsDefaultApp() *bool { if o == nil { return nil @@ -6289,10 +6781,42 @@ func (o *CancelDeploymentApplications) GetDeploymentHost() *string { return o.DeploymentHost } +// CancelDeploymentMfeConfigUploadState - The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. +type CancelDeploymentMfeConfigUploadState string + +const ( + CancelDeploymentMfeConfigUploadStateError CancelDeploymentMfeConfigUploadState = "error" + CancelDeploymentMfeConfigUploadStateSuccess CancelDeploymentMfeConfigUploadState = "success" + CancelDeploymentMfeConfigUploadStateNoConfig CancelDeploymentMfeConfigUploadState = "no_config" +) + +func (e CancelDeploymentMfeConfigUploadState) ToPointer() *CancelDeploymentMfeConfigUploadState { + return &e +} +func (e *CancelDeploymentMfeConfigUploadState) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "error": + fallthrough + case "success": + fallthrough + case "no_config": + *e = CancelDeploymentMfeConfigUploadState(v) + return nil + default: + return fmt.Errorf("invalid value for CancelDeploymentMfeConfigUploadState: %v", v) + } +} + type CancelDeploymentMicrofrontends2 struct { - // A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + IsDefaultApp bool `json:"isDefaultApp"` + // A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. Applications map[string]CancelDeploymentApplications `json:"applications,omitempty"` - IsDefaultApp bool `json:"isDefaultApp"` + // The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + MfeConfigUploadState *CancelDeploymentMfeConfigUploadState `json:"mfeConfigUploadState,omitempty"` // The project name of the default app of this deployment's microfrontends group. DefaultAppProjectName string `json:"defaultAppProjectName"` // A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. @@ -6303,6 +6827,24 @@ type CancelDeploymentMicrofrontends2 struct { MicrofrontendsAlias2Enabled *bool `json:"microfrontendsAlias2Enabled,omitempty"` } +func (c CancelDeploymentMicrofrontends2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentMicrofrontends2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"isDefaultApp", "defaultAppProjectName", "groupIds"}); err != nil { + return err + } + return nil +} + +func (o *CancelDeploymentMicrofrontends2) GetIsDefaultApp() bool { + if o == nil { + return false + } + return o.IsDefaultApp +} + func (o *CancelDeploymentMicrofrontends2) GetApplications() map[string]CancelDeploymentApplications { if o == nil { return nil @@ -6310,11 +6852,11 @@ func (o *CancelDeploymentMicrofrontends2) GetApplications() map[string]CancelDep return o.Applications } -func (o *CancelDeploymentMicrofrontends2) GetIsDefaultApp() bool { +func (o *CancelDeploymentMicrofrontends2) GetMfeConfigUploadState() *CancelDeploymentMfeConfigUploadState { if o == nil { - return false + return nil } - return o.IsDefaultApp + return o.MfeConfigUploadState } func (o *CancelDeploymentMicrofrontends2) GetDefaultAppProjectName() string { @@ -6346,7 +6888,6 @@ func (o *CancelDeploymentMicrofrontends2) GetMicrofrontendsAlias2Enabled() *bool } type CancelDeploymentMicrofrontends1 struct { - // Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. IsDefaultApp *bool `json:"isDefaultApp,omitempty"` // The project name of the default app of this deployment's microfrontends group. DefaultAppProjectName string `json:"defaultAppProjectName"` @@ -6358,6 +6899,17 @@ type CancelDeploymentMicrofrontends1 struct { MicrofrontendsAlias2Enabled *bool `json:"microfrontendsAlias2Enabled,omitempty"` } +func (c CancelDeploymentMicrofrontends1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CancelDeploymentMicrofrontends1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"defaultAppProjectName", "groupIds"}); err != nil { + return err + } + return nil +} + func (o *CancelDeploymentMicrofrontends1) GetIsDefaultApp() *bool { if o == nil { return nil @@ -6427,20 +6979,20 @@ func CreateCancelDeploymentMicrofrontendsUnionCancelDeploymentMicrofrontends2(ca func (u *CancelDeploymentMicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var cancelDeploymentMicrofrontends1 CancelDeploymentMicrofrontends1 = CancelDeploymentMicrofrontends1{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentMicrofrontends1, "", true, true); err == nil { - u.CancelDeploymentMicrofrontends1 = &cancelDeploymentMicrofrontends1 - u.Type = CancelDeploymentMicrofrontendsUnionTypeCancelDeploymentMicrofrontends1 - return nil - } - var cancelDeploymentMicrofrontends2 CancelDeploymentMicrofrontends2 = CancelDeploymentMicrofrontends2{} - if err := utils.UnmarshalJSON(data, &cancelDeploymentMicrofrontends2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &cancelDeploymentMicrofrontends2, "", true, nil); err == nil { u.CancelDeploymentMicrofrontends2 = &cancelDeploymentMicrofrontends2 u.Type = CancelDeploymentMicrofrontendsUnionTypeCancelDeploymentMicrofrontends2 return nil } + var cancelDeploymentMicrofrontends1 CancelDeploymentMicrofrontends1 = CancelDeploymentMicrofrontends1{} + if err := utils.UnmarshalJSON(data, &cancelDeploymentMicrofrontends1, "", true, nil); err == nil { + u.CancelDeploymentMicrofrontends1 = &cancelDeploymentMicrofrontends1 + u.Type = CancelDeploymentMicrofrontendsUnionTypeCancelDeploymentMicrofrontends1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CancelDeploymentMicrofrontendsUnion", string(data)) } @@ -6459,8 +7011,8 @@ func (u CancelDeploymentMicrofrontendsUnion) MarshalJSON() ([]byte, error) { type CancelDeploymentFunctionType string const ( - CancelDeploymentFunctionTypeStandard CancelDeploymentFunctionType = "standard" CancelDeploymentFunctionTypeFluid CancelDeploymentFunctionType = "fluid" + CancelDeploymentFunctionTypeStandard CancelDeploymentFunctionType = "standard" ) func (e CancelDeploymentFunctionType) ToPointer() *CancelDeploymentFunctionType { @@ -6472,9 +7024,9 @@ func (e *CancelDeploymentFunctionType) UnmarshalJSON(data []byte) error { return err } switch v { - case "standard": - fallthrough case "fluid": + fallthrough + case "standard": *e = CancelDeploymentFunctionType(v) return nil default: @@ -6485,8 +7037,8 @@ func (e *CancelDeploymentFunctionType) UnmarshalJSON(data []byte) error { type CancelDeploymentFunctionMemoryType string const ( - CancelDeploymentFunctionMemoryTypeStandardLegacy CancelDeploymentFunctionMemoryType = "standard_legacy" CancelDeploymentFunctionMemoryTypeStandard CancelDeploymentFunctionMemoryType = "standard" + CancelDeploymentFunctionMemoryTypeStandardLegacy CancelDeploymentFunctionMemoryType = "standard_legacy" CancelDeploymentFunctionMemoryTypePerformance CancelDeploymentFunctionMemoryType = "performance" ) @@ -6499,10 +7051,10 @@ func (e *CancelDeploymentFunctionMemoryType) UnmarshalJSON(data []byte) error { return err } switch v { - case "standard_legacy": - fallthrough case "standard": fallthrough + case "standard_legacy": + fallthrough case "performance": *e = CancelDeploymentFunctionMemoryType(v) return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/connectintegrationresourcetoproject.go b/src/__tests__/mockserver/internal/sdk/models/operations/connectintegrationresourcetoproject.go new file mode 100644 index 00000000..1f9350d3 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/operations/connectintegrationresourcetoproject.go @@ -0,0 +1,74 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" +) + +type ConnectIntegrationResourceToProjectRequestBody struct { + ProjectID string `json:"projectId"` +} + +func (o *ConnectIntegrationResourceToProjectRequestBody) GetProjectID() string { + if o == nil { + return "" + } + return o.ProjectID +} + +type ConnectIntegrationResourceToProjectRequest struct { + IntegrationConfigurationID string `pathParam:"style=simple,explode=false,name=integrationConfigurationId"` + ResourceID string `pathParam:"style=simple,explode=false,name=resourceId"` + // The Team identifier to perform the request on behalf of. + TeamID *string `queryParam:"style=form,explode=true,name=teamId"` + // The Team slug to perform the request on behalf of. + Slug *string `queryParam:"style=form,explode=true,name=slug"` + RequestBody *ConnectIntegrationResourceToProjectRequestBody `request:"mediaType=application/json"` +} + +func (o *ConnectIntegrationResourceToProjectRequest) GetIntegrationConfigurationID() string { + if o == nil { + return "" + } + return o.IntegrationConfigurationID +} + +func (o *ConnectIntegrationResourceToProjectRequest) GetResourceID() string { + if o == nil { + return "" + } + return o.ResourceID +} + +func (o *ConnectIntegrationResourceToProjectRequest) GetTeamID() *string { + if o == nil { + return nil + } + return o.TeamID +} + +func (o *ConnectIntegrationResourceToProjectRequest) GetSlug() *string { + if o == nil { + return nil + } + return o.Slug +} + +func (o *ConnectIntegrationResourceToProjectRequest) GetRequestBody() *ConnectIntegrationResourceToProjectRequestBody { + if o == nil { + return nil + } + return o.RequestBody +} + +type ConnectIntegrationResourceToProjectResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` +} + +func (o *ConnectIntegrationResourceToProjectResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go b/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go index f564e3bb..7b698044 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go @@ -74,6 +74,17 @@ type UploadedFile struct { Size *int64 `json:"size,omitempty"` } +func (u UploadedFile) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UploadedFile) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"file"}); err != nil { + return err + } + return nil +} + func (o *UploadedFile) GetFile() string { if o == nil { return "" @@ -132,6 +143,17 @@ type InlinedFile struct { File string `json:"file"` } +func (i InlinedFile) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *InlinedFile) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"data", "file"}); err != nil { + return err + } + return nil +} + func (o *InlinedFile) GetData() string { if o == nil { return "" @@ -188,14 +210,14 @@ func CreateFileUploadedFile(uploadedFile UploadedFile) File { func (u *File) UnmarshalJSON(data []byte) error { var inlinedFile InlinedFile = InlinedFile{} - if err := utils.UnmarshalJSON(data, &inlinedFile, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &inlinedFile, "", true, nil); err == nil { u.InlinedFile = &inlinedFile u.Type = FileTypeInlinedFile return nil } var uploadedFile UploadedFile = UploadedFile{} - if err := utils.UnmarshalJSON(data, &uploadedFile, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &uploadedFile, "", true, nil); err == nil { u.UploadedFile = &uploadedFile u.Type = FileTypeUploadedFile return nil @@ -350,6 +372,17 @@ type GitSourceBitbucketRequest2 struct { Type TypeBitbucketRequest2 `json:"type"` } +func (g GitSourceBitbucketRequest2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GitSourceBitbucketRequest2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"owner", "ref", "slug", "type"}); err != nil { + return err + } + return nil +} + func (o *GitSourceBitbucketRequest2) GetOwner() string { if o == nil { return "" @@ -416,6 +449,17 @@ type GitSourceBitbucketRequest1 struct { WorkspaceUUID *string `json:"workspaceUuid,omitempty"` } +func (g GitSourceBitbucketRequest1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GitSourceBitbucketRequest1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"ref", "repoUuid", "type"}); err != nil { + return err + } + return nil +} + func (o *GitSourceBitbucketRequest1) GetRef() string { if o == nil { return "" @@ -486,14 +530,14 @@ func CreateProjectIDRequestStr(str string) ProjectIDRequest { func (u *ProjectIDRequest) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = ProjectIDRequestTypeNumber return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = ProjectIDRequestTypeStr return nil @@ -544,6 +588,17 @@ type GitSourceGitlabRequest struct { Type TypeGitlabRequest `json:"type"` } +func (g GitSourceGitlabRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GitSourceGitlabRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"projectId", "ref", "type"}); err != nil { + return err + } + return nil +} + func (o *GitSourceGitlabRequest) GetProjectID() ProjectIDRequest { if o == nil { return ProjectIDRequest{} @@ -603,6 +658,17 @@ type GitSourceGithubRequest2 struct { Type TypeGithubRequest2 `json:"type"` } +func (g GitSourceGithubRequest2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GitSourceGithubRequest2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"org", "ref", "repo", "type"}); err != nil { + return err + } + return nil +} + func (o *GitSourceGithubRequest2) GetOrg() string { if o == nil { return "" @@ -673,14 +739,14 @@ func CreateRepoIDRequestStr(str string) RepoIDRequest { func (u *RepoIDRequest) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = RepoIDRequestTypeNumber return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = RepoIDRequestTypeStr return nil @@ -731,6 +797,17 @@ type GitSourceGithubRequest1 struct { Type TypeGithubRequest1 `json:"type"` } +func (g GitSourceGithubRequest1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GitSourceGithubRequest1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"ref", "repoId", "type"}); err != nil { + return err + } + return nil +} + func (o *GitSourceGithubRequest1) GetRef() string { if o == nil { return "" @@ -827,41 +904,41 @@ func CreateGitSourceRequestUnionGitSourceBitbucketRequest2(gitSourceBitbucketReq func (u *GitSourceRequestUnion) UnmarshalJSON(data []byte) error { + var gitSourceGithubRequest2 GitSourceGithubRequest2 = GitSourceGithubRequest2{} + if err := utils.UnmarshalJSON(data, &gitSourceGithubRequest2, "", true, nil); err == nil { + u.GitSourceGithubRequest2 = &gitSourceGithubRequest2 + u.Type = GitSourceRequestUnionTypeGitSourceGithubRequest2 + return nil + } + + var gitSourceBitbucketRequest2 GitSourceBitbucketRequest2 = GitSourceBitbucketRequest2{} + if err := utils.UnmarshalJSON(data, &gitSourceBitbucketRequest2, "", true, nil); err == nil { + u.GitSourceBitbucketRequest2 = &gitSourceBitbucketRequest2 + u.Type = GitSourceRequestUnionTypeGitSourceBitbucketRequest2 + return nil + } + var gitSourceGithubRequest1 GitSourceGithubRequest1 = GitSourceGithubRequest1{} - if err := utils.UnmarshalJSON(data, &gitSourceGithubRequest1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &gitSourceGithubRequest1, "", true, nil); err == nil { u.GitSourceGithubRequest1 = &gitSourceGithubRequest1 u.Type = GitSourceRequestUnionTypeGitSourceGithubRequest1 return nil } var gitSourceGitlabRequest GitSourceGitlabRequest = GitSourceGitlabRequest{} - if err := utils.UnmarshalJSON(data, &gitSourceGitlabRequest, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &gitSourceGitlabRequest, "", true, nil); err == nil { u.GitSourceGitlabRequest = &gitSourceGitlabRequest u.Type = GitSourceRequestUnionTypeGitSourceGitlabRequest return nil } - var gitSourceGithubRequest2 GitSourceGithubRequest2 = GitSourceGithubRequest2{} - if err := utils.UnmarshalJSON(data, &gitSourceGithubRequest2, "", true, true); err == nil { - u.GitSourceGithubRequest2 = &gitSourceGithubRequest2 - u.Type = GitSourceRequestUnionTypeGitSourceGithubRequest2 - return nil - } - var gitSourceBitbucketRequest1 GitSourceBitbucketRequest1 = GitSourceBitbucketRequest1{} - if err := utils.UnmarshalJSON(data, &gitSourceBitbucketRequest1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &gitSourceBitbucketRequest1, "", true, nil); err == nil { u.GitSourceBitbucketRequest1 = &gitSourceBitbucketRequest1 u.Type = GitSourceRequestUnionTypeGitSourceBitbucketRequest1 return nil } - var gitSourceBitbucketRequest2 GitSourceBitbucketRequest2 = GitSourceBitbucketRequest2{} - if err := utils.UnmarshalJSON(data, &gitSourceBitbucketRequest2, "", true, true); err == nil { - u.GitSourceBitbucketRequest2 = &gitSourceBitbucketRequest2 - u.Type = GitSourceRequestUnionTypeGitSourceBitbucketRequest2 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for GitSourceRequestUnion", string(data)) } @@ -1402,14 +1479,14 @@ func CreateCreateDeploymentAliasAssignedAtBoolean(boolean bool) CreateDeployment func (u *CreateDeploymentAliasAssignedAt) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentAliasAssignedAtTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = CreateDeploymentAliasAssignedAtTypeBoolean return nil @@ -1802,11 +1879,11 @@ func (o *CreateDeploymentProjectSettingsLambdas) GetWebAnalytics() *CreateDeploy type CreateDeploymentIntegrationsStatus string const ( - CreateDeploymentIntegrationsStatusError CreateDeploymentIntegrationsStatus = "error" - CreateDeploymentIntegrationsStatusTimeout CreateDeploymentIntegrationsStatus = "timeout" CreateDeploymentIntegrationsStatusSkipped CreateDeploymentIntegrationsStatus = "skipped" CreateDeploymentIntegrationsStatusPending CreateDeploymentIntegrationsStatus = "pending" CreateDeploymentIntegrationsStatusReady CreateDeploymentIntegrationsStatus = "ready" + CreateDeploymentIntegrationsStatusError CreateDeploymentIntegrationsStatus = "error" + CreateDeploymentIntegrationsStatusTimeout CreateDeploymentIntegrationsStatus = "timeout" ) func (e CreateDeploymentIntegrationsStatus) ToPointer() *CreateDeploymentIntegrationsStatus { @@ -1818,15 +1895,15 @@ func (e *CreateDeploymentIntegrationsStatus) UnmarshalJSON(data []byte) error { return err } switch v { - case "error": - fallthrough - case "timeout": - fallthrough case "skipped": fallthrough case "pending": fallthrough case "ready": + fallthrough + case "error": + fallthrough + case "timeout": *e = CreateDeploymentIntegrationsStatus(v) return nil default: @@ -2138,8 +2215,8 @@ func (o *CreateDeploymentCreator) GetAvatar() *string { type CreateDeploymentLambdaReadyState string const ( - CreateDeploymentLambdaReadyStateError CreateDeploymentLambdaReadyState = "ERROR" CreateDeploymentLambdaReadyStateBuilding CreateDeploymentLambdaReadyState = "BUILDING" + CreateDeploymentLambdaReadyStateError CreateDeploymentLambdaReadyState = "ERROR" CreateDeploymentLambdaReadyStateInitializing CreateDeploymentLambdaReadyState = "INITIALIZING" CreateDeploymentLambdaReadyStateReady CreateDeploymentLambdaReadyState = "READY" ) @@ -2153,10 +2230,10 @@ func (e *CreateDeploymentLambdaReadyState) UnmarshalJSON(data []byte) error { return err } switch v { - case "ERROR": - fallthrough case "BUILDING": fallthrough + case "ERROR": + fallthrough case "INITIALIZING": fallthrough case "READY": @@ -2315,6 +2392,17 @@ type CreateDeploymentCustomEnvironment2 struct { ID string `json:"id"` } +func (c CreateDeploymentCustomEnvironment2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentCustomEnvironment2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentCustomEnvironment2) GetID() string { if o == nil { return "" @@ -2390,6 +2478,17 @@ type CreateDeploymentBranchMatcher struct { Pattern string `json:"pattern"` } +func (c CreateDeploymentBranchMatcher) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentBranchMatcher) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "pattern"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentBranchMatcher) GetType() CreateDeploymentBranchMatcherType { if o == nil { return CreateDeploymentBranchMatcherType("") @@ -2412,6 +2511,17 @@ type CreateDeploymentVerification struct { Reason string `json:"reason"` } +func (c CreateDeploymentVerification) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentVerification) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "domain", "value", "reason"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentVerification) GetType() string { if o == nil { return "" @@ -2457,6 +2567,17 @@ type CreateDeploymentDomain struct { Verification []CreateDeploymentVerification `json:"verification,omitempty"` } +func (c CreateDeploymentDomain) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentDomain) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "apexName", "projectId", "verified"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentDomain) GetName() string { if o == nil { return "" @@ -2556,6 +2677,17 @@ type CreateDeploymentCustomEnvironment1 struct { UpdatedAt float64 `json:"updatedAt"` } +func (c CreateDeploymentCustomEnvironment1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentCustomEnvironment1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "slug", "type", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentCustomEnvironment1) GetID() string { if o == nil { return "" @@ -2653,20 +2785,20 @@ func CreateCreateDeploymentCustomEnvironmentUnionCreateDeploymentCustomEnvironme func (u *CreateDeploymentCustomEnvironmentUnion) UnmarshalJSON(data []byte) error { - var createDeploymentCustomEnvironment2 CreateDeploymentCustomEnvironment2 = CreateDeploymentCustomEnvironment2{} - if err := utils.UnmarshalJSON(data, &createDeploymentCustomEnvironment2, "", true, true); err == nil { - u.CreateDeploymentCustomEnvironment2 = &createDeploymentCustomEnvironment2 - u.Type = CreateDeploymentCustomEnvironmentUnionTypeCreateDeploymentCustomEnvironment2 - return nil - } - var createDeploymentCustomEnvironment1 CreateDeploymentCustomEnvironment1 = CreateDeploymentCustomEnvironment1{} - if err := utils.UnmarshalJSON(data, &createDeploymentCustomEnvironment1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentCustomEnvironment1, "", true, nil); err == nil { u.CreateDeploymentCustomEnvironment1 = &createDeploymentCustomEnvironment1 u.Type = CreateDeploymentCustomEnvironmentUnionTypeCreateDeploymentCustomEnvironment1 return nil } + var createDeploymentCustomEnvironment2 CreateDeploymentCustomEnvironment2 = CreateDeploymentCustomEnvironment2{} + if err := utils.UnmarshalJSON(data, &createDeploymentCustomEnvironment2, "", true, nil); err == nil { + u.CreateDeploymentCustomEnvironment2 = &createDeploymentCustomEnvironment2 + u.Type = CreateDeploymentCustomEnvironmentUnionTypeCreateDeploymentCustomEnvironment2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateDeploymentCustomEnvironmentUnion", string(data)) } @@ -2761,6 +2893,17 @@ type CreateDeploymentGitSourceLambdasBitbucket3 struct { RepoUUID string `json:"repoUuid"` } +func (c CreateDeploymentGitSourceLambdasBitbucket3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceLambdasBitbucket3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "workspaceUuid", "repoUuid"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceLambdasBitbucket3) GetType() CreateDeploymentGitSourceTypeLambdasBitbucket3 { if o == nil { return CreateDeploymentGitSourceTypeLambdasBitbucket3("") @@ -2840,6 +2983,17 @@ type CreateDeploymentGitSourceLambdasGitlab2 struct { ProjectID float64 `json:"projectId"` } +func (c CreateDeploymentGitSourceLambdasGitlab2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceLambdasGitlab2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "projectId"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceLambdasGitlab2) GetType() CreateDeploymentGitSourceTypeLambdasGitlab2 { if o == nil { return CreateDeploymentGitSourceTypeLambdasGitlab2("") @@ -2900,6 +3054,17 @@ type CreateDeploymentGitSourceGithubLimited3 struct { Repo *string `json:"repo,omitempty"` } +func (c CreateDeploymentGitSourceGithubLimited3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceGithubLimited3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceGithubLimited3) GetType() CreateDeploymentTypeGithubLimited3 { if o == nil { return CreateDeploymentTypeGithubLimited3("") @@ -2975,6 +3140,17 @@ type CreateDeploymentGitSourceGithubCustomHost3 struct { Repo *string `json:"repo,omitempty"` } +func (c CreateDeploymentGitSourceGithubCustomHost3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceGithubCustomHost3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "host", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceGithubCustomHost3) GetType() CreateDeploymentTypeGithubCustomHost3 { if o == nil { return CreateDeploymentTypeGithubCustomHost3("") @@ -3056,6 +3232,17 @@ type CreateDeploymentGitSourceLambdasGithub3 struct { Repo *string `json:"repo,omitempty"` } +func (c CreateDeploymentGitSourceLambdasGithub3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceLambdasGithub3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceLambdasGithub3) GetType() CreateDeploymentGitSourceTypeLambdasGithub3 { if o == nil { return CreateDeploymentGitSourceTypeLambdasGithub3("") @@ -3129,6 +3316,17 @@ type CreateDeploymentGitSourceCustom struct { GitURL string `json:"gitUrl"` } +func (c CreateDeploymentGitSourceCustom) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceCustom) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ref", "sha", "gitUrl"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceCustom) GetType() CreateDeploymentTypeCustom { if o == nil { return CreateDeploymentTypeCustom("") @@ -3189,6 +3387,17 @@ type CreateDeploymentGitSourceLambdasBitbucket2 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceLambdasBitbucket2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceLambdasBitbucket2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "owner", "slug"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceLambdasBitbucket2) GetType() CreateDeploymentGitSourceTypeLambdasBitbucket2 { if o == nil { return CreateDeploymentGitSourceTypeLambdasBitbucket2("") @@ -3263,6 +3472,17 @@ type CreateDeploymentGitSourceLambdasBitbucket1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceLambdasBitbucket1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceLambdasBitbucket1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "repoUuid"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceLambdasBitbucket1) GetType() CreateDeploymentGitSourceTypeLambdasBitbucket1 { if o == nil { return CreateDeploymentGitSourceTypeLambdasBitbucket1("") @@ -3363,14 +3583,14 @@ func CreateCreateDeploymentProjectIDLambdasNumber(number float64) CreateDeployme func (u *CreateDeploymentProjectIDLambdas) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentProjectIDLambdasTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentProjectIDLambdasTypeNumber return nil @@ -3399,6 +3619,17 @@ type CreateDeploymentGitSourceLambdasGitlab1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceLambdasGitlab1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceLambdasGitlab1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceLambdasGitlab1) GetType() CreateDeploymentGitSourceTypeLambdasGitlab1 { if o == nil { return CreateDeploymentGitSourceTypeLambdasGitlab1("") @@ -3466,6 +3697,17 @@ type CreateDeploymentGitSourceGithubLimited2 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceGithubLimited2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceGithubLimited2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceGithubLimited2) GetType() CreateDeploymentTypeGithubLimited2 { if o == nil { return CreateDeploymentTypeGithubLimited2("") @@ -3566,14 +3808,14 @@ func CreateCreateDeploymentRepoIDLambdas3Number(number float64) CreateDeployment func (u *CreateDeploymentRepoIDLambdas3) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentRepoIDLambdas3TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentRepoIDLambdas3TypeNumber return nil @@ -3602,6 +3844,17 @@ type CreateDeploymentGitSourceGithubLimited1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceGithubLimited1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceGithubLimited1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceGithubLimited1) GetType() CreateDeploymentTypeGithubLimited1 { if o == nil { return CreateDeploymentTypeGithubLimited1("") @@ -3670,6 +3923,17 @@ type CreateDeploymentGitSourceGithubCustomHost2 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceGithubCustomHost2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceGithubCustomHost2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "host", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceGithubCustomHost2) GetType() CreateDeploymentTypeGithubCustomHost2 { if o == nil { return CreateDeploymentTypeGithubCustomHost2("") @@ -3777,14 +4041,14 @@ func CreateCreateDeploymentRepoIDLambdas2Number(number float64) CreateDeployment func (u *CreateDeploymentRepoIDLambdas2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentRepoIDLambdas2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentRepoIDLambdas2TypeNumber return nil @@ -3814,6 +4078,17 @@ type CreateDeploymentGitSourceGithubCustomHost1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceGithubCustomHost1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceGithubCustomHost1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "host", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceGithubCustomHost1) GetType() CreateDeploymentTypeGithubCustomHost1 { if o == nil { return CreateDeploymentTypeGithubCustomHost1("") @@ -3888,6 +4163,17 @@ type CreateDeploymentGitSourceLambdasGithub2 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceLambdasGithub2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceLambdasGithub2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceLambdasGithub2) GetType() CreateDeploymentGitSourceTypeLambdasGithub2 { if o == nil { return CreateDeploymentGitSourceTypeLambdasGithub2("") @@ -3988,14 +4274,14 @@ func CreateCreateDeploymentRepoIDLambdas1Number(number float64) CreateDeployment func (u *CreateDeploymentRepoIDLambdas1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentRepoIDLambdas1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentRepoIDLambdas1TypeNumber return nil @@ -4024,6 +4310,17 @@ type CreateDeploymentGitSourceLambdasGithub1 struct { PrID *float64 `json:"prId,omitempty"` } +func (c CreateDeploymentGitSourceLambdasGithub1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitSourceLambdasGithub1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "repoId"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitSourceLambdasGithub1) GetType() CreateDeploymentGitSourceTypeLambdasGithub1 { if o == nil { return CreateDeploymentGitSourceTypeLambdasGithub1("") @@ -4236,108 +4533,108 @@ func CreateCreateDeploymentGitSourceLambdasUnionCreateDeploymentGitSourceLambdas func (u *CreateDeploymentGitSourceLambdasUnion) UnmarshalJSON(data []byte) error { - var createDeploymentGitSourceCustom CreateDeploymentGitSourceCustom = CreateDeploymentGitSourceCustom{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceCustom, "", true, true); err == nil { - u.CreateDeploymentGitSourceCustom = &createDeploymentGitSourceCustom - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceCustom + var createDeploymentGitSourceGithubCustomHost3 CreateDeploymentGitSourceGithubCustomHost3 = CreateDeploymentGitSourceGithubCustomHost3{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubCustomHost3, "", true, nil); err == nil { + u.CreateDeploymentGitSourceGithubCustomHost3 = &createDeploymentGitSourceGithubCustomHost3 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubCustomHost3 return nil } - var createDeploymentGitSourceLambdasGitlab2 CreateDeploymentGitSourceLambdasGitlab2 = CreateDeploymentGitSourceLambdasGitlab2{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGitlab2, "", true, true); err == nil { - u.CreateDeploymentGitSourceLambdasGitlab2 = &createDeploymentGitSourceLambdasGitlab2 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGitlab2 + var createDeploymentGitSourceLambdasBitbucket3 CreateDeploymentGitSourceLambdasBitbucket3 = CreateDeploymentGitSourceLambdasBitbucket3{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasBitbucket3, "", true, nil); err == nil { + u.CreateDeploymentGitSourceLambdasBitbucket3 = &createDeploymentGitSourceLambdasBitbucket3 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasBitbucket3 return nil } - var createDeploymentGitSourceLambdasGitlab1 CreateDeploymentGitSourceLambdasGitlab1 = CreateDeploymentGitSourceLambdasGitlab1{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGitlab1, "", true, true); err == nil { - u.CreateDeploymentGitSourceLambdasGitlab1 = &createDeploymentGitSourceLambdasGitlab1 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGitlab1 + var createDeploymentGitSourceGithubCustomHost2 CreateDeploymentGitSourceGithubCustomHost2 = CreateDeploymentGitSourceGithubCustomHost2{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubCustomHost2, "", true, nil); err == nil { + u.CreateDeploymentGitSourceGithubCustomHost2 = &createDeploymentGitSourceGithubCustomHost2 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubCustomHost2 return nil } - var createDeploymentGitSourceGithubLimited1 CreateDeploymentGitSourceGithubLimited1 = CreateDeploymentGitSourceGithubLimited1{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubLimited1, "", true, true); err == nil { - u.CreateDeploymentGitSourceGithubLimited1 = &createDeploymentGitSourceGithubLimited1 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubLimited1 + var createDeploymentGitSourceCustom CreateDeploymentGitSourceCustom = CreateDeploymentGitSourceCustom{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceCustom, "", true, nil); err == nil { + u.CreateDeploymentGitSourceCustom = &createDeploymentGitSourceCustom + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceCustom return nil } - var createDeploymentGitSourceLambdasGithub1 CreateDeploymentGitSourceLambdasGithub1 = CreateDeploymentGitSourceLambdasGithub1{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGithub1, "", true, true); err == nil { - u.CreateDeploymentGitSourceLambdasGithub1 = &createDeploymentGitSourceLambdasGithub1 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGithub1 + var createDeploymentGitSourceLambdasGithub3 CreateDeploymentGitSourceLambdasGithub3 = CreateDeploymentGitSourceLambdasGithub3{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGithub3, "", true, nil); err == nil { + u.CreateDeploymentGitSourceLambdasGithub3 = &createDeploymentGitSourceLambdasGithub3 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGithub3 return nil } - var createDeploymentGitSourceGithubLimited2 CreateDeploymentGitSourceGithubLimited2 = CreateDeploymentGitSourceGithubLimited2{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubLimited2, "", true, true); err == nil { - u.CreateDeploymentGitSourceGithubLimited2 = &createDeploymentGitSourceGithubLimited2 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubLimited2 + var createDeploymentGitSourceGithubLimited3 CreateDeploymentGitSourceGithubLimited3 = CreateDeploymentGitSourceGithubLimited3{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubLimited3, "", true, nil); err == nil { + u.CreateDeploymentGitSourceGithubLimited3 = &createDeploymentGitSourceGithubLimited3 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubLimited3 return nil } - var createDeploymentGitSourceLambdasBitbucket1 CreateDeploymentGitSourceLambdasBitbucket1 = CreateDeploymentGitSourceLambdasBitbucket1{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasBitbucket1, "", true, true); err == nil { - u.CreateDeploymentGitSourceLambdasBitbucket1 = &createDeploymentGitSourceLambdasBitbucket1 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasBitbucket1 - return nil + var createDeploymentGitSourceLambdasGitlab2 CreateDeploymentGitSourceLambdasGitlab2 = CreateDeploymentGitSourceLambdasGitlab2{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGitlab2, "", true, nil); err == nil { + u.CreateDeploymentGitSourceLambdasGitlab2 = &createDeploymentGitSourceLambdasGitlab2 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGitlab2 + return nil } - var createDeploymentGitSourceLambdasBitbucket2 CreateDeploymentGitSourceLambdasBitbucket2 = CreateDeploymentGitSourceLambdasBitbucket2{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasBitbucket2, "", true, true); err == nil { - u.CreateDeploymentGitSourceLambdasBitbucket2 = &createDeploymentGitSourceLambdasBitbucket2 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasBitbucket2 + var createDeploymentGitSourceLambdasGithub2 CreateDeploymentGitSourceLambdasGithub2 = CreateDeploymentGitSourceLambdasGithub2{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGithub2, "", true, nil); err == nil { + u.CreateDeploymentGitSourceLambdasGithub2 = &createDeploymentGitSourceLambdasGithub2 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGithub2 return nil } var createDeploymentGitSourceGithubCustomHost1 CreateDeploymentGitSourceGithubCustomHost1 = CreateDeploymentGitSourceGithubCustomHost1{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubCustomHost1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubCustomHost1, "", true, nil); err == nil { u.CreateDeploymentGitSourceGithubCustomHost1 = &createDeploymentGitSourceGithubCustomHost1 u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubCustomHost1 return nil } - var createDeploymentGitSourceLambdasGithub3 CreateDeploymentGitSourceLambdasGithub3 = CreateDeploymentGitSourceLambdasGithub3{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGithub3, "", true, true); err == nil { - u.CreateDeploymentGitSourceLambdasGithub3 = &createDeploymentGitSourceLambdasGithub3 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGithub3 + var createDeploymentGitSourceGithubLimited2 CreateDeploymentGitSourceGithubLimited2 = CreateDeploymentGitSourceGithubLimited2{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubLimited2, "", true, nil); err == nil { + u.CreateDeploymentGitSourceGithubLimited2 = &createDeploymentGitSourceGithubLimited2 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubLimited2 return nil } - var createDeploymentGitSourceGithubLimited3 CreateDeploymentGitSourceGithubLimited3 = CreateDeploymentGitSourceGithubLimited3{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubLimited3, "", true, true); err == nil { - u.CreateDeploymentGitSourceGithubLimited3 = &createDeploymentGitSourceGithubLimited3 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubLimited3 + var createDeploymentGitSourceLambdasBitbucket2 CreateDeploymentGitSourceLambdasBitbucket2 = CreateDeploymentGitSourceLambdasBitbucket2{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasBitbucket2, "", true, nil); err == nil { + u.CreateDeploymentGitSourceLambdasBitbucket2 = &createDeploymentGitSourceLambdasBitbucket2 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasBitbucket2 return nil } - var createDeploymentGitSourceLambdasGithub2 CreateDeploymentGitSourceLambdasGithub2 = CreateDeploymentGitSourceLambdasGithub2{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGithub2, "", true, true); err == nil { - u.CreateDeploymentGitSourceLambdasGithub2 = &createDeploymentGitSourceLambdasGithub2 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGithub2 + var createDeploymentGitSourceLambdasGithub1 CreateDeploymentGitSourceLambdasGithub1 = CreateDeploymentGitSourceLambdasGithub1{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGithub1, "", true, nil); err == nil { + u.CreateDeploymentGitSourceLambdasGithub1 = &createDeploymentGitSourceLambdasGithub1 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGithub1 return nil } - var createDeploymentGitSourceGithubCustomHost2 CreateDeploymentGitSourceGithubCustomHost2 = CreateDeploymentGitSourceGithubCustomHost2{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubCustomHost2, "", true, true); err == nil { - u.CreateDeploymentGitSourceGithubCustomHost2 = &createDeploymentGitSourceGithubCustomHost2 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubCustomHost2 + var createDeploymentGitSourceGithubLimited1 CreateDeploymentGitSourceGithubLimited1 = CreateDeploymentGitSourceGithubLimited1{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubLimited1, "", true, nil); err == nil { + u.CreateDeploymentGitSourceGithubLimited1 = &createDeploymentGitSourceGithubLimited1 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubLimited1 return nil } - var createDeploymentGitSourceGithubCustomHost3 CreateDeploymentGitSourceGithubCustomHost3 = CreateDeploymentGitSourceGithubCustomHost3{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceGithubCustomHost3, "", true, true); err == nil { - u.CreateDeploymentGitSourceGithubCustomHost3 = &createDeploymentGitSourceGithubCustomHost3 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceGithubCustomHost3 + var createDeploymentGitSourceLambdasGitlab1 CreateDeploymentGitSourceLambdasGitlab1 = CreateDeploymentGitSourceLambdasGitlab1{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasGitlab1, "", true, nil); err == nil { + u.CreateDeploymentGitSourceLambdasGitlab1 = &createDeploymentGitSourceLambdasGitlab1 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasGitlab1 return nil } - var createDeploymentGitSourceLambdasBitbucket3 CreateDeploymentGitSourceLambdasBitbucket3 = CreateDeploymentGitSourceLambdasBitbucket3{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasBitbucket3, "", true, true); err == nil { - u.CreateDeploymentGitSourceLambdasBitbucket3 = &createDeploymentGitSourceLambdasBitbucket3 - u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasBitbucket3 + var createDeploymentGitSourceLambdasBitbucket1 CreateDeploymentGitSourceLambdasBitbucket1 = CreateDeploymentGitSourceLambdasBitbucket1{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitSourceLambdasBitbucket1, "", true, nil); err == nil { + u.CreateDeploymentGitSourceLambdasBitbucket1 = &createDeploymentGitSourceLambdasBitbucket1 + u.Type = CreateDeploymentGitSourceLambdasUnionTypeCreateDeploymentGitSourceLambdasBitbucket1 return nil } @@ -4588,6 +4885,25 @@ func (e *CreateDeploymentTargetEnum) UnmarshalJSON(data []byte) error { } } +type CreateDeploymentAliasError struct { + Code string `json:"code"` + Message string `json:"message"` +} + +func (o *CreateDeploymentAliasError) GetCode() string { + if o == nil { + return "" + } + return o.Code +} + +func (o *CreateDeploymentAliasError) GetMessage() string { + if o == nil { + return "" + } + return o.Message +} + type CreateDeploymentAliasWarning struct { Code string `json:"code"` Message string `json:"message"` @@ -4623,54 +4939,6 @@ func (o *CreateDeploymentAliasWarning) GetAction() *string { return o.Action } -type CreateDeploymentAliasError struct { - Code string `json:"code"` - Message string `json:"message"` -} - -func (o *CreateDeploymentAliasError) GetCode() string { - if o == nil { - return "" - } - return o.Code -} - -func (o *CreateDeploymentAliasError) GetMessage() string { - if o == nil { - return "" - } - return o.Message -} - -type CreateDeploymentChecksState string - -const ( - CreateDeploymentChecksStateRegistered CreateDeploymentChecksState = "registered" - CreateDeploymentChecksStateRunning CreateDeploymentChecksState = "running" - CreateDeploymentChecksStateCompleted CreateDeploymentChecksState = "completed" -) - -func (e CreateDeploymentChecksState) ToPointer() *CreateDeploymentChecksState { - return &e -} -func (e *CreateDeploymentChecksState) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "registered": - fallthrough - case "running": - fallthrough - case "completed": - *e = CreateDeploymentChecksState(v) - return nil - default: - return fmt.Errorf("invalid value for CreateDeploymentChecksState: %v", v) - } -} - type CreateDeploymentChecksConclusion string const ( @@ -4703,33 +4971,32 @@ func (e *CreateDeploymentChecksConclusion) UnmarshalJSON(data []byte) error { } } -// CreateDeploymentReadySubstate - Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic -type CreateDeploymentReadySubstate string +type CreateDeploymentChecksState string const ( - CreateDeploymentReadySubstateStaged CreateDeploymentReadySubstate = "STAGED" - CreateDeploymentReadySubstateRolling CreateDeploymentReadySubstate = "ROLLING" - CreateDeploymentReadySubstatePromoted CreateDeploymentReadySubstate = "PROMOTED" + CreateDeploymentChecksStateRegistered CreateDeploymentChecksState = "registered" + CreateDeploymentChecksStateRunning CreateDeploymentChecksState = "running" + CreateDeploymentChecksStateCompleted CreateDeploymentChecksState = "completed" ) -func (e CreateDeploymentReadySubstate) ToPointer() *CreateDeploymentReadySubstate { +func (e CreateDeploymentChecksState) ToPointer() *CreateDeploymentChecksState { return &e } -func (e *CreateDeploymentReadySubstate) UnmarshalJSON(data []byte) error { +func (e *CreateDeploymentChecksState) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { - case "STAGED": + case "registered": fallthrough - case "ROLLING": + case "running": fallthrough - case "PROMOTED": - *e = CreateDeploymentReadySubstate(v) + case "completed": + *e = CreateDeploymentChecksState(v) return nil default: - return fmt.Errorf("invalid value for CreateDeploymentReadySubstate: %v", v) + return fmt.Errorf("invalid value for CreateDeploymentChecksState: %v", v) } } @@ -4808,6 +5075,36 @@ func (o *CreateDeploymentOidcTokenClaims) GetEnvironment() string { return o.Environment } +// CreateDeploymentReadySubstate - Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic +type CreateDeploymentReadySubstate string + +const ( + CreateDeploymentReadySubstateStaged CreateDeploymentReadySubstate = "STAGED" + CreateDeploymentReadySubstateRolling CreateDeploymentReadySubstate = "ROLLING" + CreateDeploymentReadySubstatePromoted CreateDeploymentReadySubstate = "PROMOTED" +) + +func (e CreateDeploymentReadySubstate) ToPointer() *CreateDeploymentReadySubstate { + return &e +} +func (e *CreateDeploymentReadySubstate) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "STAGED": + fallthrough + case "ROLLING": + fallthrough + case "PROMOTED": + *e = CreateDeploymentReadySubstate(v) + return nil + default: + return fmt.Errorf("invalid value for CreateDeploymentReadySubstate: %v", v) + } +} + type CreateDeploymentPlan string const ( @@ -4840,8 +5137,8 @@ func (e *CreateDeploymentPlan) UnmarshalJSON(data []byte) error { type CreateDeploymentFunctionType string const ( - CreateDeploymentFunctionTypeStandard CreateDeploymentFunctionType = "standard" CreateDeploymentFunctionTypeFluid CreateDeploymentFunctionType = "fluid" + CreateDeploymentFunctionTypeStandard CreateDeploymentFunctionType = "standard" ) func (e CreateDeploymentFunctionType) ToPointer() *CreateDeploymentFunctionType { @@ -4853,9 +5150,9 @@ func (e *CreateDeploymentFunctionType) UnmarshalJSON(data []byte) error { return err } switch v { - case "standard": - fallthrough case "fluid": + fallthrough + case "standard": *e = CreateDeploymentFunctionType(v) return nil default: @@ -4866,8 +5163,8 @@ func (e *CreateDeploymentFunctionType) UnmarshalJSON(data []byte) error { type CreateDeploymentFunctionMemoryType string const ( - CreateDeploymentFunctionMemoryTypeStandardLegacy CreateDeploymentFunctionMemoryType = "standard_legacy" CreateDeploymentFunctionMemoryTypeStandard CreateDeploymentFunctionMemoryType = "standard" + CreateDeploymentFunctionMemoryTypeStandardLegacy CreateDeploymentFunctionMemoryType = "standard_legacy" CreateDeploymentFunctionMemoryTypePerformance CreateDeploymentFunctionMemoryType = "performance" ) @@ -4880,10 +5177,10 @@ func (e *CreateDeploymentFunctionMemoryType) UnmarshalJSON(data []byte) error { return err } switch v { - case "standard_legacy": - fallthrough case "standard": fallthrough + case "standard_legacy": + fallthrough case "performance": *e = CreateDeploymentFunctionMemoryType(v) return nil @@ -5068,6 +5365,7 @@ type CreateDeploymentFunctions struct { IncludeFiles *string `json:"includeFiles,omitempty"` ExcludeFiles *string `json:"excludeFiles,omitempty"` ExperimentalTriggers []CreateDeploymentExperimentalTrigger `json:"experimentalTriggers,omitempty"` + SupportsCancellation *bool `json:"supportsCancellation,omitempty"` } func (o *CreateDeploymentFunctions) GetArchitecture() *CreateDeploymentArchitecture { @@ -5119,12 +5417,30 @@ func (o *CreateDeploymentFunctions) GetExperimentalTriggers() []CreateDeployment return o.ExperimentalTriggers } +func (o *CreateDeploymentFunctions) GetSupportsCancellation() *bool { + if o == nil { + return nil + } + return o.SupportsCancellation +} + type CreateDeploymentRoute3 struct { Src string `json:"src"` Continue bool `json:"continue"` Middleware float64 `json:"middleware"` } +func (c CreateDeploymentRoute3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentRoute3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"src", "continue", "middleware"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentRoute3) GetSrc() string { if o == nil { return "" @@ -5149,12 +5465,12 @@ func (o *CreateDeploymentRoute3) GetMiddleware() float64 { type CreateDeploymentHandle string const ( - CreateDeploymentHandleFilesystem CreateDeploymentHandle = "filesystem" CreateDeploymentHandleError CreateDeploymentHandle = "error" + CreateDeploymentHandleFilesystem CreateDeploymentHandle = "filesystem" CreateDeploymentHandleHit CreateDeploymentHandle = "hit" CreateDeploymentHandleMiss CreateDeploymentHandle = "miss" - CreateDeploymentHandleResource CreateDeploymentHandle = "resource" CreateDeploymentHandleRewrite CreateDeploymentHandle = "rewrite" + CreateDeploymentHandleResource CreateDeploymentHandle = "resource" ) func (e CreateDeploymentHandle) ToPointer() *CreateDeploymentHandle { @@ -5166,17 +5482,17 @@ func (e *CreateDeploymentHandle) UnmarshalJSON(data []byte) error { return err } switch v { - case "filesystem": - fallthrough case "error": fallthrough + case "filesystem": + fallthrough case "hit": fallthrough case "miss": fallthrough - case "resource": - fallthrough case "rewrite": + fallthrough + case "resource": *e = CreateDeploymentHandle(v) return nil default: @@ -5191,6 +5507,17 @@ type CreateDeploymentRoute2 struct { Status *float64 `json:"status,omitempty"` } +func (c CreateDeploymentRoute2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentRoute2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"handle"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentRoute2) GetHandle() CreateDeploymentHandle { if o == nil { return CreateDeploymentHandle("") @@ -5283,14 +5610,14 @@ func CreateCreateDeploymentHasEq2Number(number float64) CreateDeploymentHasEq2 { func (u *CreateDeploymentHasEq2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentHasEq2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentHasEq2TypeNumber return nil @@ -5325,6 +5652,17 @@ type CreateDeploymentHasValue2 struct { Lte *float64 `json:"lte,omitempty"` } +func (c CreateDeploymentHasValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentHasValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentHasValue2) GetEq() *CreateDeploymentHasEq2 { if o == nil { return nil @@ -5437,14 +5775,14 @@ func CreateCreateDeploymentHasValueUnion2CreateDeploymentHasValue2(createDeploym func (u *CreateDeploymentHasValueUnion2) UnmarshalJSON(data []byte) error { var createDeploymentHasValue2 CreateDeploymentHasValue2 = CreateDeploymentHasValue2{} - if err := utils.UnmarshalJSON(data, &createDeploymentHasValue2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentHasValue2, "", true, nil); err == nil { u.CreateDeploymentHasValue2 = &createDeploymentHasValue2 u.Type = CreateDeploymentHasValueUnion2TypeCreateDeploymentHasValue2 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentHasValueUnion2TypeStr return nil @@ -5471,6 +5809,17 @@ type CreateDeploymentHas struct { Value *CreateDeploymentHasValueUnion2 `json:"value,omitempty"` } +func (c CreateDeploymentHas) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentHas) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "key"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentHas) GetType() CreateDeploymentHasType { if o == nil { return CreateDeploymentHasType("") @@ -5550,14 +5899,14 @@ func CreateCreateDeploymentHasEq1Number(number float64) CreateDeploymentHasEq1 { func (u *CreateDeploymentHasEq1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentHasEq1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentHasEq1TypeNumber return nil @@ -5592,6 +5941,17 @@ type CreateDeploymentHasValue1 struct { Lte *float64 `json:"lte,omitempty"` } +func (c CreateDeploymentHasValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentHasValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentHasValue1) GetEq() *CreateDeploymentHasEq1 { if o == nil { return nil @@ -5704,14 +6064,14 @@ func CreateCreateDeploymentHasValueUnion1CreateDeploymentHasValue1(createDeploym func (u *CreateDeploymentHasValueUnion1) UnmarshalJSON(data []byte) error { var createDeploymentHasValue1 CreateDeploymentHasValue1 = CreateDeploymentHasValue1{} - if err := utils.UnmarshalJSON(data, &createDeploymentHasValue1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentHasValue1, "", true, nil); err == nil { u.CreateDeploymentHasValue1 = &createDeploymentHasValue1 u.Type = CreateDeploymentHasValueUnion1TypeCreateDeploymentHasValue1 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentHasValueUnion1TypeStr return nil @@ -5737,6 +6097,17 @@ type CreateDeploymentHasHost struct { Value CreateDeploymentHasValueUnion1 `json:"value"` } +func (c CreateDeploymentHasHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentHasHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "value"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentHasHost) GetType() CreateDeploymentHasTypeHost { if o == nil { return CreateDeploymentHasTypeHost("") @@ -5786,14 +6157,14 @@ func CreateCreateDeploymentHasUnionCreateDeploymentHas(createDeploymentHas Creat func (u *CreateDeploymentHasUnion) UnmarshalJSON(data []byte) error { var createDeploymentHasHost CreateDeploymentHasHost = CreateDeploymentHasHost{} - if err := utils.UnmarshalJSON(data, &createDeploymentHasHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentHasHost, "", true, nil); err == nil { u.CreateDeploymentHasHost = &createDeploymentHasHost u.Type = CreateDeploymentHasUnionTypeCreateDeploymentHasHost return nil } var createDeploymentHas CreateDeploymentHas = CreateDeploymentHas{} - if err := utils.UnmarshalJSON(data, &createDeploymentHas, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentHas, "", true, nil); err == nil { u.CreateDeploymentHas = &createDeploymentHas u.Type = CreateDeploymentHasUnionTypeCreateDeploymentHas return nil @@ -5878,14 +6249,14 @@ func CreateCreateDeploymentMissingEq2Number(number float64) CreateDeploymentMiss func (u *CreateDeploymentMissingEq2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentMissingEq2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentMissingEq2TypeNumber return nil @@ -5920,6 +6291,17 @@ type CreateDeploymentMissingValue2 struct { Lte *float64 `json:"lte,omitempty"` } +func (c CreateDeploymentMissingValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentMissingValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentMissingValue2) GetEq() *CreateDeploymentMissingEq2 { if o == nil { return nil @@ -6032,14 +6414,14 @@ func CreateCreateDeploymentMissingValueUnion2CreateDeploymentMissingValue2(creat func (u *CreateDeploymentMissingValueUnion2) UnmarshalJSON(data []byte) error { var createDeploymentMissingValue2 CreateDeploymentMissingValue2 = CreateDeploymentMissingValue2{} - if err := utils.UnmarshalJSON(data, &createDeploymentMissingValue2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentMissingValue2, "", true, nil); err == nil { u.CreateDeploymentMissingValue2 = &createDeploymentMissingValue2 u.Type = CreateDeploymentMissingValueUnion2TypeCreateDeploymentMissingValue2 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentMissingValueUnion2TypeStr return nil @@ -6066,6 +6448,17 @@ type CreateDeploymentMissing struct { Value *CreateDeploymentMissingValueUnion2 `json:"value,omitempty"` } +func (c CreateDeploymentMissing) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentMissing) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "key"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentMissing) GetType() CreateDeploymentMissingType { if o == nil { return CreateDeploymentMissingType("") @@ -6145,14 +6538,14 @@ func CreateCreateDeploymentMissingEq1Number(number float64) CreateDeploymentMiss func (u *CreateDeploymentMissingEq1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentMissingEq1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentMissingEq1TypeNumber return nil @@ -6187,6 +6580,17 @@ type CreateDeploymentMissingValue1 struct { Lte *float64 `json:"lte,omitempty"` } +func (c CreateDeploymentMissingValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentMissingValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentMissingValue1) GetEq() *CreateDeploymentMissingEq1 { if o == nil { return nil @@ -6299,14 +6703,14 @@ func CreateCreateDeploymentMissingValueUnion1CreateDeploymentMissingValue1(creat func (u *CreateDeploymentMissingValueUnion1) UnmarshalJSON(data []byte) error { var createDeploymentMissingValue1 CreateDeploymentMissingValue1 = CreateDeploymentMissingValue1{} - if err := utils.UnmarshalJSON(data, &createDeploymentMissingValue1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentMissingValue1, "", true, nil); err == nil { u.CreateDeploymentMissingValue1 = &createDeploymentMissingValue1 u.Type = CreateDeploymentMissingValueUnion1TypeCreateDeploymentMissingValue1 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentMissingValueUnion1TypeStr return nil @@ -6332,6 +6736,17 @@ type CreateDeploymentMissingHost struct { Value CreateDeploymentMissingValueUnion1 `json:"value"` } +func (c CreateDeploymentMissingHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentMissingHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "value"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentMissingHost) GetType() CreateDeploymentMissingTypeHost { if o == nil { return CreateDeploymentMissingTypeHost("") @@ -6381,14 +6796,14 @@ func CreateCreateDeploymentMissingUnionCreateDeploymentMissing(createDeploymentM func (u *CreateDeploymentMissingUnion) UnmarshalJSON(data []byte) error { var createDeploymentMissingHost CreateDeploymentMissingHost = CreateDeploymentMissingHost{} - if err := utils.UnmarshalJSON(data, &createDeploymentMissingHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentMissingHost, "", true, nil); err == nil { u.CreateDeploymentMissingHost = &createDeploymentMissingHost u.Type = CreateDeploymentMissingUnionTypeCreateDeploymentMissingHost return nil } var createDeploymentMissing CreateDeploymentMissing = CreateDeploymentMissing{} - if err := utils.UnmarshalJSON(data, &createDeploymentMissing, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentMissing, "", true, nil); err == nil { u.CreateDeploymentMissing = &createDeploymentMissing u.Type = CreateDeploymentMissingUnionTypeCreateDeploymentMissing return nil @@ -6439,7 +6854,18 @@ type CreateDeploymentMitigate struct { Action CreateDeploymentAction `json:"action"` } -func (o *CreateDeploymentMitigate) GetAction() CreateDeploymentAction { +func (c CreateDeploymentMitigate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentMitigate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"action"}); err != nil { + return err + } + return nil +} + +func (o *CreateDeploymentMitigate) GetAction() CreateDeploymentAction { if o == nil { return CreateDeploymentAction("") } @@ -6478,8 +6904,8 @@ func (e *CreateDeploymentTransformType) UnmarshalJSON(data []byte) error { type CreateDeploymentOp string const ( - CreateDeploymentOpSet CreateDeploymentOp = "set" CreateDeploymentOpAppend CreateDeploymentOp = "append" + CreateDeploymentOpSet CreateDeploymentOp = "set" CreateDeploymentOpDelete CreateDeploymentOp = "delete" ) @@ -6492,10 +6918,10 @@ func (e *CreateDeploymentOp) UnmarshalJSON(data []byte) error { return err } switch v { - case "set": - fallthrough case "append": fallthrough + case "set": + fallthrough case "delete": *e = CreateDeploymentOp(v) return nil @@ -6539,14 +6965,14 @@ func CreateCreateDeploymentKeyEqNumber(number float64) CreateDeploymentKeyEq { func (u *CreateDeploymentKeyEq) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentKeyEqTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateDeploymentKeyEqTypeNumber return nil @@ -6580,6 +7006,17 @@ type CreateDeploymentKey struct { Lte *float64 `json:"lte,omitempty"` } +func (c CreateDeploymentKey) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentKey) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentKey) GetEq() *CreateDeploymentKeyEq { if o == nil { return nil @@ -6685,14 +7122,14 @@ func CreateCreateDeploymentKeyUnionCreateDeploymentKey(createDeploymentKey Creat func (u *CreateDeploymentKeyUnion) UnmarshalJSON(data []byte) error { var createDeploymentKey CreateDeploymentKey = CreateDeploymentKey{} - if err := utils.UnmarshalJSON(data, &createDeploymentKey, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentKey, "", true, nil); err == nil { u.CreateDeploymentKey = &createDeploymentKey u.Type = CreateDeploymentKeyUnionTypeCreateDeploymentKey return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentKeyUnionTypeStr return nil @@ -6717,6 +7154,17 @@ type CreateDeploymentRouteTarget struct { Key CreateDeploymentKeyUnion `json:"key"` } +func (c CreateDeploymentRouteTarget) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentRouteTarget) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"key"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentRouteTarget) GetKey() CreateDeploymentKeyUnion { if o == nil { return CreateDeploymentKeyUnion{} @@ -6759,14 +7207,14 @@ func CreateCreateDeploymentArgsArrayOfStr(arrayOfStr []string) CreateDeploymentA func (u *CreateDeploymentArgs) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateDeploymentArgsTypeStr return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = CreateDeploymentArgsTypeArrayOfStr return nil @@ -6794,6 +7242,17 @@ type CreateDeploymentTransform struct { Args *CreateDeploymentArgs `json:"args,omitempty"` } +func (c CreateDeploymentTransform) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentTransform) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "op", "target"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentTransform) GetType() CreateDeploymentTransformType { if o == nil { return CreateDeploymentTransformType("") @@ -6827,6 +7286,17 @@ type CreateDeploymentLocale struct { Cookie *string `json:"cookie,omitempty"` } +func (c CreateDeploymentLocale) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentLocale) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentLocale) GetRedirect() map[string]string { if o == nil { return nil @@ -6865,6 +7335,17 @@ type CreateDeploymentRoute1 struct { Middleware *float64 `json:"middleware,omitempty"` } +func (c CreateDeploymentRoute1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentRoute1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"src"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentRoute1) GetSrc() string { if o == nil { return "" @@ -7037,26 +7518,26 @@ func CreateCreateDeploymentRouteUnionCreateDeploymentRoute3(createDeploymentRout func (u *CreateDeploymentRouteUnion) UnmarshalJSON(data []byte) error { var createDeploymentRoute3 CreateDeploymentRoute3 = CreateDeploymentRoute3{} - if err := utils.UnmarshalJSON(data, &createDeploymentRoute3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentRoute3, "", true, nil); err == nil { u.CreateDeploymentRoute3 = &createDeploymentRoute3 u.Type = CreateDeploymentRouteUnionTypeCreateDeploymentRoute3 return nil } - var createDeploymentRoute2 CreateDeploymentRoute2 = CreateDeploymentRoute2{} - if err := utils.UnmarshalJSON(data, &createDeploymentRoute2, "", true, true); err == nil { - u.CreateDeploymentRoute2 = &createDeploymentRoute2 - u.Type = CreateDeploymentRouteUnionTypeCreateDeploymentRoute2 - return nil - } - var createDeploymentRoute1 CreateDeploymentRoute1 = CreateDeploymentRoute1{} - if err := utils.UnmarshalJSON(data, &createDeploymentRoute1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentRoute1, "", true, nil); err == nil { u.CreateDeploymentRoute1 = &createDeploymentRoute1 u.Type = CreateDeploymentRouteUnionTypeCreateDeploymentRoute1 return nil } + var createDeploymentRoute2 CreateDeploymentRoute2 = CreateDeploymentRoute2{} + if err := utils.UnmarshalJSON(data, &createDeploymentRoute2, "", true, nil); err == nil { + u.CreateDeploymentRoute2 = &createDeploymentRoute2 + u.Type = CreateDeploymentRouteUnionTypeCreateDeploymentRoute2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateDeploymentRouteUnion", string(data)) } @@ -7164,7 +7645,7 @@ func (o *CreateDeploymentChecks) GetDeploymentAlias() CreateDeploymentDeployment return o.DeploymentAlias } -// CreateDeploymentApplications - A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. +// CreateDeploymentApplications - A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. type CreateDeploymentApplications struct { IsDefaultApp *bool `json:"isDefaultApp,omitempty"` // This is the production alias, it will always show the most up to date of each application. @@ -7174,6 +7655,17 @@ type CreateDeploymentApplications struct { DeploymentHost *string `json:"deploymentHost,omitempty"` } +func (c CreateDeploymentApplications) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentApplications) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"productionHost"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentApplications) GetIsDefaultApp() *bool { if o == nil { return nil @@ -7202,10 +7694,42 @@ func (o *CreateDeploymentApplications) GetDeploymentHost() *string { return o.DeploymentHost } +// CreateDeploymentMfeConfigUploadState - The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. +type CreateDeploymentMfeConfigUploadState string + +const ( + CreateDeploymentMfeConfigUploadStateError CreateDeploymentMfeConfigUploadState = "error" + CreateDeploymentMfeConfigUploadStateSuccess CreateDeploymentMfeConfigUploadState = "success" + CreateDeploymentMfeConfigUploadStateNoConfig CreateDeploymentMfeConfigUploadState = "no_config" +) + +func (e CreateDeploymentMfeConfigUploadState) ToPointer() *CreateDeploymentMfeConfigUploadState { + return &e +} +func (e *CreateDeploymentMfeConfigUploadState) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "error": + fallthrough + case "success": + fallthrough + case "no_config": + *e = CreateDeploymentMfeConfigUploadState(v) + return nil + default: + return fmt.Errorf("invalid value for CreateDeploymentMfeConfigUploadState: %v", v) + } +} + type CreateDeploymentMicrofrontends2 struct { - // A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + IsDefaultApp bool `json:"isDefaultApp"` + // A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. Applications map[string]CreateDeploymentApplications `json:"applications,omitempty"` - IsDefaultApp bool `json:"isDefaultApp"` + // The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + MfeConfigUploadState *CreateDeploymentMfeConfigUploadState `json:"mfeConfigUploadState,omitempty"` // The project name of the default app of this deployment's microfrontends group. DefaultAppProjectName string `json:"defaultAppProjectName"` // A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. @@ -7216,6 +7740,24 @@ type CreateDeploymentMicrofrontends2 struct { MicrofrontendsAlias2Enabled *bool `json:"microfrontendsAlias2Enabled,omitempty"` } +func (c CreateDeploymentMicrofrontends2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentMicrofrontends2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"isDefaultApp", "defaultAppProjectName", "groupIds"}); err != nil { + return err + } + return nil +} + +func (o *CreateDeploymentMicrofrontends2) GetIsDefaultApp() bool { + if o == nil { + return false + } + return o.IsDefaultApp +} + func (o *CreateDeploymentMicrofrontends2) GetApplications() map[string]CreateDeploymentApplications { if o == nil { return nil @@ -7223,11 +7765,11 @@ func (o *CreateDeploymentMicrofrontends2) GetApplications() map[string]CreateDep return o.Applications } -func (o *CreateDeploymentMicrofrontends2) GetIsDefaultApp() bool { +func (o *CreateDeploymentMicrofrontends2) GetMfeConfigUploadState() *CreateDeploymentMfeConfigUploadState { if o == nil { - return false + return nil } - return o.IsDefaultApp + return o.MfeConfigUploadState } func (o *CreateDeploymentMicrofrontends2) GetDefaultAppProjectName() string { @@ -7259,7 +7801,6 @@ func (o *CreateDeploymentMicrofrontends2) GetMicrofrontendsAlias2Enabled() *bool } type CreateDeploymentMicrofrontends1 struct { - // Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. IsDefaultApp *bool `json:"isDefaultApp,omitempty"` // The project name of the default app of this deployment's microfrontends group. DefaultAppProjectName string `json:"defaultAppProjectName"` @@ -7271,6 +7812,17 @@ type CreateDeploymentMicrofrontends1 struct { MicrofrontendsAlias2Enabled *bool `json:"microfrontendsAlias2Enabled,omitempty"` } +func (c CreateDeploymentMicrofrontends1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentMicrofrontends1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"defaultAppProjectName", "groupIds"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentMicrofrontends1) GetIsDefaultApp() *bool { if o == nil { return nil @@ -7340,20 +7892,20 @@ func CreateCreateDeploymentMicrofrontendsUnionCreateDeploymentMicrofrontends2(cr func (u *CreateDeploymentMicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var createDeploymentMicrofrontends1 CreateDeploymentMicrofrontends1 = CreateDeploymentMicrofrontends1{} - if err := utils.UnmarshalJSON(data, &createDeploymentMicrofrontends1, "", true, true); err == nil { - u.CreateDeploymentMicrofrontends1 = &createDeploymentMicrofrontends1 - u.Type = CreateDeploymentMicrofrontendsUnionTypeCreateDeploymentMicrofrontends1 - return nil - } - var createDeploymentMicrofrontends2 CreateDeploymentMicrofrontends2 = CreateDeploymentMicrofrontends2{} - if err := utils.UnmarshalJSON(data, &createDeploymentMicrofrontends2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentMicrofrontends2, "", true, nil); err == nil { u.CreateDeploymentMicrofrontends2 = &createDeploymentMicrofrontends2 u.Type = CreateDeploymentMicrofrontendsUnionTypeCreateDeploymentMicrofrontends2 return nil } + var createDeploymentMicrofrontends1 CreateDeploymentMicrofrontends1 = CreateDeploymentMicrofrontends1{} + if err := utils.UnmarshalJSON(data, &createDeploymentMicrofrontends1, "", true, nil); err == nil { + u.CreateDeploymentMicrofrontends1 = &createDeploymentMicrofrontends1 + u.Type = CreateDeploymentMicrofrontendsUnionTypeCreateDeploymentMicrofrontends1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateDeploymentMicrofrontendsUnion", string(data)) } @@ -7369,6 +7921,175 @@ func (u CreateDeploymentMicrofrontendsUnion) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type CreateDeploymentMicrofrontendsUnion: all fields are null") } +// CreateDeploymentFlags2 - Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. +type CreateDeploymentFlags2 struct { +} + +func (c CreateDeploymentFlags2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentFlags2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateDeploymentOption struct { + Value *components.FlagJSONValue `json:"value"` + Label *string `json:"label,omitempty"` +} + +func (c CreateDeploymentOption) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentOption) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + +func (o *CreateDeploymentOption) GetValue() *components.FlagJSONValue { + if o == nil { + return nil + } + return o.Value +} + +func (o *CreateDeploymentOption) GetLabel() *string { + if o == nil { + return nil + } + return o.Label +} + +type CreateDeploymentDefinitions struct { + Options []CreateDeploymentOption `json:"options,omitempty"` + URL *string `json:"url,omitempty"` + Description *string `json:"description,omitempty"` +} + +func (c CreateDeploymentDefinitions) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentDefinitions) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { + return err + } + return nil +} + +func (o *CreateDeploymentDefinitions) GetOptions() []CreateDeploymentOption { + if o == nil { + return nil + } + return o.Options +} + +func (o *CreateDeploymentDefinitions) GetURL() *string { + if o == nil { + return nil + } + return o.URL +} + +func (o *CreateDeploymentDefinitions) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +// CreateDeploymentFlags1 - Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. +type CreateDeploymentFlags1 struct { + Definitions map[string]CreateDeploymentDefinitions `json:"definitions"` +} + +func (c CreateDeploymentFlags1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentFlags1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"definitions"}); err != nil { + return err + } + return nil +} + +func (o *CreateDeploymentFlags1) GetDefinitions() map[string]CreateDeploymentDefinitions { + if o == nil { + return map[string]CreateDeploymentDefinitions{} + } + return o.Definitions +} + +type CreateDeploymentFlagsUnionType string + +const ( + CreateDeploymentFlagsUnionTypeCreateDeploymentFlags1 CreateDeploymentFlagsUnionType = "createDeployment_flags_1" + CreateDeploymentFlagsUnionTypeArrayOfCreateDeploymentFlags2 CreateDeploymentFlagsUnionType = "arrayOfCreateDeploymentFlags2" +) + +type CreateDeploymentFlagsUnion struct { + CreateDeploymentFlags1 *CreateDeploymentFlags1 `queryParam:"inline"` + ArrayOfCreateDeploymentFlags2 []CreateDeploymentFlags2 `queryParam:"inline"` + + Type CreateDeploymentFlagsUnionType +} + +func CreateCreateDeploymentFlagsUnionCreateDeploymentFlags1(createDeploymentFlags1 CreateDeploymentFlags1) CreateDeploymentFlagsUnion { + typ := CreateDeploymentFlagsUnionTypeCreateDeploymentFlags1 + + return CreateDeploymentFlagsUnion{ + CreateDeploymentFlags1: &createDeploymentFlags1, + Type: typ, + } +} + +func CreateCreateDeploymentFlagsUnionArrayOfCreateDeploymentFlags2(arrayOfCreateDeploymentFlags2 []CreateDeploymentFlags2) CreateDeploymentFlagsUnion { + typ := CreateDeploymentFlagsUnionTypeArrayOfCreateDeploymentFlags2 + + return CreateDeploymentFlagsUnion{ + ArrayOfCreateDeploymentFlags2: arrayOfCreateDeploymentFlags2, + Type: typ, + } +} + +func (u *CreateDeploymentFlagsUnion) UnmarshalJSON(data []byte) error { + + var createDeploymentFlags1 CreateDeploymentFlags1 = CreateDeploymentFlags1{} + if err := utils.UnmarshalJSON(data, &createDeploymentFlags1, "", true, nil); err == nil { + u.CreateDeploymentFlags1 = &createDeploymentFlags1 + u.Type = CreateDeploymentFlagsUnionTypeCreateDeploymentFlags1 + return nil + } + + var arrayOfCreateDeploymentFlags2 []CreateDeploymentFlags2 = []CreateDeploymentFlags2{} + if err := utils.UnmarshalJSON(data, &arrayOfCreateDeploymentFlags2, "", true, nil); err == nil { + u.ArrayOfCreateDeploymentFlags2 = arrayOfCreateDeploymentFlags2 + u.Type = CreateDeploymentFlagsUnionTypeArrayOfCreateDeploymentFlags2 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateDeploymentFlagsUnion", string(data)) +} + +func (u CreateDeploymentFlagsUnion) MarshalJSON() ([]byte, error) { + if u.CreateDeploymentFlags1 != nil { + return utils.MarshalJSON(u.CreateDeploymentFlags1, "", true) + } + + if u.ArrayOfCreateDeploymentFlags2 != nil { + return utils.MarshalJSON(u.ArrayOfCreateDeploymentFlags2, "", true) + } + + return nil, errors.New("could not marshal union type CreateDeploymentFlagsUnion: all fields are null") +} + type CreateDeploymentGitRepoTypeBitbucket string const ( @@ -7395,8 +8116,8 @@ func (e *CreateDeploymentGitRepoTypeBitbucket) UnmarshalJSON(data []byte) error type CreateDeploymentOwnerType3 string const ( - CreateDeploymentOwnerType3User CreateDeploymentOwnerType3 = "user" CreateDeploymentOwnerType3Team CreateDeploymentOwnerType3 = "team" + CreateDeploymentOwnerType3User CreateDeploymentOwnerType3 = "user" ) func (e CreateDeploymentOwnerType3) ToPointer() *CreateDeploymentOwnerType3 { @@ -7408,9 +8129,9 @@ func (e *CreateDeploymentOwnerType3) UnmarshalJSON(data []byte) error { return err } switch v { - case "user": - fallthrough case "team": + fallthrough + case "user": *e = CreateDeploymentOwnerType3(v) return nil default: @@ -7431,6 +8152,17 @@ type CreateDeploymentGitRepoBitbucket struct { OwnerType CreateDeploymentOwnerType3 `json:"ownerType"` } +func (c CreateDeploymentGitRepoBitbucket) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitRepoBitbucket) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"owner", "repoUuid", "slug", "type", "workspaceUuid", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitRepoBitbucket) GetOwner() string { if o == nil { return "" @@ -7527,8 +8259,8 @@ func (e *CreateDeploymentGitRepoTypeGithub) UnmarshalJSON(data []byte) error { type CreateDeploymentOwnerType2 string const ( - CreateDeploymentOwnerType2User CreateDeploymentOwnerType2 = "user" CreateDeploymentOwnerType2Team CreateDeploymentOwnerType2 = "team" + CreateDeploymentOwnerType2User CreateDeploymentOwnerType2 = "user" ) func (e CreateDeploymentOwnerType2) ToPointer() *CreateDeploymentOwnerType2 { @@ -7540,9 +8272,9 @@ func (e *CreateDeploymentOwnerType2) UnmarshalJSON(data []byte) error { return err } switch v { - case "user": - fallthrough case "team": + fallthrough + case "user": *e = CreateDeploymentOwnerType2(v) return nil default: @@ -7563,6 +8295,17 @@ type CreateDeploymentGitRepoGithub struct { OwnerType CreateDeploymentOwnerType2 `json:"ownerType"` } +func (c CreateDeploymentGitRepoGithub) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitRepoGithub) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"org", "repo", "repoId", "type", "repoOwnerId", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitRepoGithub) GetOrg() string { if o == nil { return "" @@ -7659,8 +8402,8 @@ func (e *CreateDeploymentGitRepoTypeGitlab) UnmarshalJSON(data []byte) error { type CreateDeploymentOwnerType1 string const ( - CreateDeploymentOwnerType1User CreateDeploymentOwnerType1 = "user" CreateDeploymentOwnerType1Team CreateDeploymentOwnerType1 = "team" + CreateDeploymentOwnerType1User CreateDeploymentOwnerType1 = "user" ) func (e CreateDeploymentOwnerType1) ToPointer() *CreateDeploymentOwnerType1 { @@ -7672,9 +8415,9 @@ func (e *CreateDeploymentOwnerType1) UnmarshalJSON(data []byte) error { return err } switch v { - case "user": - fallthrough case "team": + fallthrough + case "user": *e = CreateDeploymentOwnerType1(v) return nil default: @@ -7694,6 +8437,17 @@ type CreateDeploymentGitRepoGitlab struct { OwnerType CreateDeploymentOwnerType1 `json:"ownerType"` } +func (c CreateDeploymentGitRepoGitlab) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateDeploymentGitRepoGitlab) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"namespace", "projectId", "type", "url", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *CreateDeploymentGitRepoGitlab) GetNamespace() string { if o == nil { return "" @@ -7802,27 +8556,27 @@ func CreateCreateDeploymentGitRepoUnionCreateDeploymentGitRepoBitbucket(createDe func (u *CreateDeploymentGitRepoUnion) UnmarshalJSON(data []byte) error { - var createDeploymentGitRepoGitlab CreateDeploymentGitRepoGitlab = CreateDeploymentGitRepoGitlab{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoGitlab, "", true, true); err == nil { - u.CreateDeploymentGitRepoGitlab = &createDeploymentGitRepoGitlab - u.Type = CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGitlab - return nil - } - var createDeploymentGitRepoGithub CreateDeploymentGitRepoGithub = CreateDeploymentGitRepoGithub{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoGithub, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoGithub, "", true, nil); err == nil { u.CreateDeploymentGitRepoGithub = &createDeploymentGitRepoGithub u.Type = CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGithub return nil } var createDeploymentGitRepoBitbucket CreateDeploymentGitRepoBitbucket = CreateDeploymentGitRepoBitbucket{} - if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoBitbucket, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoBitbucket, "", true, nil); err == nil { u.CreateDeploymentGitRepoBitbucket = &createDeploymentGitRepoBitbucket u.Type = CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoBitbucket return nil } + var createDeploymentGitRepoGitlab CreateDeploymentGitRepoGitlab = CreateDeploymentGitRepoGitlab{} + if err := utils.UnmarshalJSON(data, &createDeploymentGitRepoGitlab, "", true, nil); err == nil { + u.CreateDeploymentGitRepoGitlab = &createDeploymentGitRepoGitlab + u.Type = CreateDeploymentGitRepoUnionTypeCreateDeploymentGitRepoGitlab + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateDeploymentGitRepoUnion", string(data)) } @@ -7842,131 +8596,6 @@ func (u CreateDeploymentGitRepoUnion) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type CreateDeploymentGitRepoUnion: all fields are null") } -// CreateDeploymentFlags2 - Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. -type CreateDeploymentFlags2 struct { -} - -type CreateDeploymentOption struct { - Value *components.FlagJSONValue `json:"value"` - Label *string `json:"label,omitempty"` -} - -func (o *CreateDeploymentOption) GetValue() *components.FlagJSONValue { - if o == nil { - return nil - } - return o.Value -} - -func (o *CreateDeploymentOption) GetLabel() *string { - if o == nil { - return nil - } - return o.Label -} - -type CreateDeploymentDefinitions struct { - Options []CreateDeploymentOption `json:"options,omitempty"` - URL *string `json:"url,omitempty"` - Description *string `json:"description,omitempty"` -} - -func (o *CreateDeploymentDefinitions) GetOptions() []CreateDeploymentOption { - if o == nil { - return nil - } - return o.Options -} - -func (o *CreateDeploymentDefinitions) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *CreateDeploymentDefinitions) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -// CreateDeploymentFlags1 - Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. -type CreateDeploymentFlags1 struct { - Definitions map[string]CreateDeploymentDefinitions `json:"definitions"` -} - -func (o *CreateDeploymentFlags1) GetDefinitions() map[string]CreateDeploymentDefinitions { - if o == nil { - return map[string]CreateDeploymentDefinitions{} - } - return o.Definitions -} - -type CreateDeploymentFlagsUnionType string - -const ( - CreateDeploymentFlagsUnionTypeCreateDeploymentFlags1 CreateDeploymentFlagsUnionType = "createDeployment_flags_1" - CreateDeploymentFlagsUnionTypeArrayOfCreateDeploymentFlags2 CreateDeploymentFlagsUnionType = "arrayOfCreateDeploymentFlags2" -) - -type CreateDeploymentFlagsUnion struct { - CreateDeploymentFlags1 *CreateDeploymentFlags1 `queryParam:"inline"` - ArrayOfCreateDeploymentFlags2 []CreateDeploymentFlags2 `queryParam:"inline"` - - Type CreateDeploymentFlagsUnionType -} - -func CreateCreateDeploymentFlagsUnionCreateDeploymentFlags1(createDeploymentFlags1 CreateDeploymentFlags1) CreateDeploymentFlagsUnion { - typ := CreateDeploymentFlagsUnionTypeCreateDeploymentFlags1 - - return CreateDeploymentFlagsUnion{ - CreateDeploymentFlags1: &createDeploymentFlags1, - Type: typ, - } -} - -func CreateCreateDeploymentFlagsUnionArrayOfCreateDeploymentFlags2(arrayOfCreateDeploymentFlags2 []CreateDeploymentFlags2) CreateDeploymentFlagsUnion { - typ := CreateDeploymentFlagsUnionTypeArrayOfCreateDeploymentFlags2 - - return CreateDeploymentFlagsUnion{ - ArrayOfCreateDeploymentFlags2: arrayOfCreateDeploymentFlags2, - Type: typ, - } -} - -func (u *CreateDeploymentFlagsUnion) UnmarshalJSON(data []byte) error { - - var createDeploymentFlags1 CreateDeploymentFlags1 = CreateDeploymentFlags1{} - if err := utils.UnmarshalJSON(data, &createDeploymentFlags1, "", true, true); err == nil { - u.CreateDeploymentFlags1 = &createDeploymentFlags1 - u.Type = CreateDeploymentFlagsUnionTypeCreateDeploymentFlags1 - return nil - } - - var arrayOfCreateDeploymentFlags2 []CreateDeploymentFlags2 = []CreateDeploymentFlags2{} - if err := utils.UnmarshalJSON(data, &arrayOfCreateDeploymentFlags2, "", true, true); err == nil { - u.ArrayOfCreateDeploymentFlags2 = arrayOfCreateDeploymentFlags2 - u.Type = CreateDeploymentFlagsUnionTypeArrayOfCreateDeploymentFlags2 - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateDeploymentFlagsUnion", string(data)) -} - -func (u CreateDeploymentFlagsUnion) MarshalJSON() ([]byte, error) { - if u.CreateDeploymentFlags1 != nil { - return utils.MarshalJSON(u.CreateDeploymentFlags1, "", true) - } - - if u.ArrayOfCreateDeploymentFlags2 != nil { - return utils.MarshalJSON(u.ArrayOfCreateDeploymentFlags2, "", true) - } - - return nil, errors.New("could not marshal union type CreateDeploymentFlagsUnion: all fields are null") -} - // CreateDeploymentResponseBody - The successfully created deployment type CreateDeploymentResponseBody struct { AliasAssignedAt *CreateDeploymentAliasAssignedAt `json:"aliasAssignedAt,omitempty"` @@ -8022,30 +8651,30 @@ type CreateDeploymentResponseBody struct { // Since November 2023 this field defines a set of regions that we will deploy the lambda to passively Lambdas will be deployed to these regions but only invoked if all of the primary `regions` are marked as out of service PassiveRegions []string `json:"passiveRegions,omitempty"` Regions []string `json:"regions"` - AliasWarning *CreateDeploymentAliasWarning `json:"aliasWarning,omitempty"` AliasError *CreateDeploymentAliasError `json:"aliasError,omitempty"` AliasFinal *string `json:"aliasFinal,omitempty"` + AliasWarning *CreateDeploymentAliasWarning `json:"aliasWarning,omitempty"` AutomaticAliases []string `json:"automaticAliases,omitempty"` BuildErrorAt *float64 `json:"buildErrorAt,omitempty"` - ChecksState *CreateDeploymentChecksState `json:"checksState,omitempty"` + CanceledAt *float64 `json:"canceledAt,omitempty"` ChecksConclusion *CreateDeploymentChecksConclusion `json:"checksConclusion,omitempty"` + ChecksState *CreateDeploymentChecksState `json:"checksState,omitempty"` // Computed field that is only available for deployments with a microfrontend configuration. - DefaultRoute *string `json:"defaultRoute,omitempty"` - CanceledAt *float64 `json:"canceledAt,omitempty"` - ErrorCode *string `json:"errorCode,omitempty"` - ErrorLink *string `json:"errorLink,omitempty"` - ErrorStep *string `json:"errorStep,omitempty"` - OriginCacheRegion *string `json:"originCacheRegion,omitempty"` + DefaultRoute *string `json:"defaultRoute,omitempty"` + ErrorCode *string `json:"errorCode,omitempty"` + ErrorLink *string `json:"errorLink,omitempty"` + ErrorStep *string `json:"errorStep,omitempty"` + OriginCacheRegion *string `json:"originCacheRegion,omitempty"` + OidcTokenClaims *CreateDeploymentOidcTokenClaims `json:"oidcTokenClaims,omitempty"` // Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic - ReadySubstate *CreateDeploymentReadySubstate `json:"readySubstate,omitempty"` - SoftDeletedByRetention *bool `json:"softDeletedByRetention,omitempty"` - UndeletedAt *float64 `json:"undeletedAt,omitempty"` - URL string `json:"url"` - OidcTokenClaims *CreateDeploymentOidcTokenClaims `json:"oidcTokenClaims,omitempty"` - ProjectID string `json:"projectId"` - OwnerID string `json:"ownerId"` - MonorepoManager *string `json:"monorepoManager,omitempty"` - Plan CreateDeploymentPlan `json:"plan"` + ReadySubstate *CreateDeploymentReadySubstate `json:"readySubstate,omitempty"` + SoftDeletedByRetention *bool `json:"softDeletedByRetention,omitempty"` + UndeletedAt *float64 `json:"undeletedAt,omitempty"` + URL string `json:"url"` + ProjectID string `json:"projectId"` + OwnerID string `json:"ownerId"` + MonorepoManager *string `json:"monorepoManager,omitempty"` + Plan CreateDeploymentPlan `json:"plan"` // Since February 2025 the configuration must include snapshot data at the time of deployment creation to capture properties for the /deployments/:id/config endpoint utilized for displaying Deployment Configuration on the frontend This is optional because older deployments may not have this data captured Config *CreateDeploymentConfig `json:"config,omitempty"` Functions map[string]CreateDeploymentFunctions `json:"functions,omitempty"` @@ -8058,8 +8687,8 @@ type CreateDeploymentResponseBody struct { CreatedIn string `json:"createdIn"` // Since November 2023 this field defines a Secure Compute network that will only be used to deploy passive lambdas to (as in passiveRegions) PassiveConnectConfigurationID *string `json:"passiveConnectConfigurationId,omitempty"` - GitRepo *CreateDeploymentGitRepoUnion `json:"gitRepo,omitempty"` Flags *CreateDeploymentFlagsUnion `json:"flags,omitempty"` + GitRepo *CreateDeploymentGitRepoUnion `json:"gitRepo,omitempty"` } func (o *CreateDeploymentResponseBody) GetAliasAssignedAt() *CreateDeploymentAliasAssignedAt { @@ -8405,25 +9034,25 @@ func (o *CreateDeploymentResponseBody) GetRegions() []string { return o.Regions } -func (o *CreateDeploymentResponseBody) GetAliasWarning() *CreateDeploymentAliasWarning { +func (o *CreateDeploymentResponseBody) GetAliasError() *CreateDeploymentAliasError { if o == nil { return nil } - return o.AliasWarning + return o.AliasError } -func (o *CreateDeploymentResponseBody) GetAliasError() *CreateDeploymentAliasError { +func (o *CreateDeploymentResponseBody) GetAliasFinal() *string { if o == nil { return nil } - return o.AliasError + return o.AliasFinal } -func (o *CreateDeploymentResponseBody) GetAliasFinal() *string { +func (o *CreateDeploymentResponseBody) GetAliasWarning() *CreateDeploymentAliasWarning { if o == nil { return nil } - return o.AliasFinal + return o.AliasWarning } func (o *CreateDeploymentResponseBody) GetAutomaticAliases() []string { @@ -8440,11 +9069,11 @@ func (o *CreateDeploymentResponseBody) GetBuildErrorAt() *float64 { return o.BuildErrorAt } -func (o *CreateDeploymentResponseBody) GetChecksState() *CreateDeploymentChecksState { +func (o *CreateDeploymentResponseBody) GetCanceledAt() *float64 { if o == nil { return nil } - return o.ChecksState + return o.CanceledAt } func (o *CreateDeploymentResponseBody) GetChecksConclusion() *CreateDeploymentChecksConclusion { @@ -8454,18 +9083,18 @@ func (o *CreateDeploymentResponseBody) GetChecksConclusion() *CreateDeploymentCh return o.ChecksConclusion } -func (o *CreateDeploymentResponseBody) GetDefaultRoute() *string { +func (o *CreateDeploymentResponseBody) GetChecksState() *CreateDeploymentChecksState { if o == nil { return nil } - return o.DefaultRoute + return o.ChecksState } -func (o *CreateDeploymentResponseBody) GetCanceledAt() *float64 { +func (o *CreateDeploymentResponseBody) GetDefaultRoute() *string { if o == nil { return nil } - return o.CanceledAt + return o.DefaultRoute } func (o *CreateDeploymentResponseBody) GetErrorCode() *string { @@ -8496,6 +9125,13 @@ func (o *CreateDeploymentResponseBody) GetOriginCacheRegion() *string { return o.OriginCacheRegion } +func (o *CreateDeploymentResponseBody) GetOidcTokenClaims() *CreateDeploymentOidcTokenClaims { + if o == nil { + return nil + } + return o.OidcTokenClaims +} + func (o *CreateDeploymentResponseBody) GetReadySubstate() *CreateDeploymentReadySubstate { if o == nil { return nil @@ -8524,13 +9160,6 @@ func (o *CreateDeploymentResponseBody) GetURL() string { return o.URL } -func (o *CreateDeploymentResponseBody) GetOidcTokenClaims() *CreateDeploymentOidcTokenClaims { - if o == nil { - return nil - } - return o.OidcTokenClaims -} - func (o *CreateDeploymentResponseBody) GetProjectID() string { if o == nil { return "" @@ -8629,18 +9258,18 @@ func (o *CreateDeploymentResponseBody) GetPassiveConnectConfigurationID() *strin return o.PassiveConnectConfigurationID } -func (o *CreateDeploymentResponseBody) GetGitRepo() *CreateDeploymentGitRepoUnion { +func (o *CreateDeploymentResponseBody) GetFlags() *CreateDeploymentFlagsUnion { if o == nil { return nil } - return o.GitRepo + return o.Flags } -func (o *CreateDeploymentResponseBody) GetFlags() *CreateDeploymentFlagsUnion { +func (o *CreateDeploymentResponseBody) GetGitRepo() *CreateDeploymentGitRepoUnion { if o == nil { return nil } - return o.Flags + return o.GitRepo } type CreateDeploymentResponse struct { diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go index 907d1199..24e01843 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go @@ -117,6 +117,17 @@ type CreateEdgeConfigPurposeExperimentation struct { ResourceID string `json:"resourceId"` } +func (c CreateEdgeConfigPurposeExperimentation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateEdgeConfigPurposeExperimentation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "resourceId"}); err != nil { + return err + } + return nil +} + func (o *CreateEdgeConfigPurposeExperimentation) GetType() CreateEdgeConfigTypeExperimentation { if o == nil { return CreateEdgeConfigTypeExperimentation("") @@ -159,6 +170,17 @@ type CreateEdgeConfigPurposeFlags struct { ProjectID string `json:"projectId"` } +func (c CreateEdgeConfigPurposeFlags) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateEdgeConfigPurposeFlags) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *CreateEdgeConfigPurposeFlags) GetType() CreateEdgeConfigTypeFlags { if o == nil { return CreateEdgeConfigTypeFlags("") @@ -208,14 +230,14 @@ func CreateCreateEdgeConfigPurposeUnionCreateEdgeConfigPurposeExperimentation(cr func (u *CreateEdgeConfigPurposeUnion) UnmarshalJSON(data []byte) error { var createEdgeConfigPurposeFlags CreateEdgeConfigPurposeFlags = CreateEdgeConfigPurposeFlags{} - if err := utils.UnmarshalJSON(data, &createEdgeConfigPurposeFlags, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createEdgeConfigPurposeFlags, "", true, nil); err == nil { u.CreateEdgeConfigPurposeFlags = &createEdgeConfigPurposeFlags u.Type = CreateEdgeConfigPurposeUnionTypeCreateEdgeConfigPurposeFlags return nil } var createEdgeConfigPurposeExperimentation CreateEdgeConfigPurposeExperimentation = CreateEdgeConfigPurposeExperimentation{} - if err := utils.UnmarshalJSON(data, &createEdgeConfigPurposeExperimentation, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createEdgeConfigPurposeExperimentation, "", true, nil); err == nil { u.CreateEdgeConfigPurposeExperimentation = &createEdgeConfigPurposeExperimentation u.Type = CreateEdgeConfigPurposeUnionTypeCreateEdgeConfigPurposeExperimentation 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 de58a87a..fd3e47d7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createevent.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createevent.go @@ -41,6 +41,17 @@ type EventResourceUpdated struct { ResourceID string `json:"resourceId"` } +func (e EventResourceUpdated) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EventResourceUpdated) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "productId", "resourceId"}); err != nil { + return err + } + return nil +} + func (o *EventResourceUpdated) GetType() TypeResourceUpdated { if o == nil { return TypeResourceUpdated("") @@ -91,6 +102,17 @@ type EventInstallationUpdated struct { BillingPlanID *string `json:"billingPlanId,omitempty"` } +func (e EventInstallationUpdated) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EventInstallationUpdated) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type"}); err != nil { + return err + } + return nil +} + func (o *EventInstallationUpdated) GetType() TypeInstallationUpdated { if o == nil { return TypeInstallationUpdated("") @@ -139,20 +161,20 @@ func CreateEventEventResourceUpdated(eventResourceUpdated EventResourceUpdated) func (u *Event) UnmarshalJSON(data []byte) error { - var eventInstallationUpdated EventInstallationUpdated = EventInstallationUpdated{} - if err := utils.UnmarshalJSON(data, &eventInstallationUpdated, "", true, true); err == nil { - u.EventInstallationUpdated = &eventInstallationUpdated - u.Type = EventTypeEventInstallationUpdated - return nil - } - var eventResourceUpdated EventResourceUpdated = EventResourceUpdated{} - if err := utils.UnmarshalJSON(data, &eventResourceUpdated, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &eventResourceUpdated, "", true, nil); err == nil { u.EventResourceUpdated = &eventResourceUpdated u.Type = EventTypeEventResourceUpdated return nil } + var eventInstallationUpdated EventInstallationUpdated = EventInstallationUpdated{} + if err := utils.UnmarshalJSON(data, &eventInstallationUpdated, "", true, nil); err == nil { + u.EventInstallationUpdated = &eventInstallationUpdated + u.Type = EventTypeEventInstallationUpdated + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Event", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createintegrationstoredirect.go b/src/__tests__/mockserver/internal/sdk/models/operations/createintegrationstoredirect.go new file mode 100644 index 00000000..00e69569 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createintegrationstoredirect.go @@ -0,0 +1,9445 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "encoding/json" + "errors" + "fmt" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" +) + +type MetadataRequestType string + +const ( + MetadataRequestTypeStr MetadataRequestType = "str" + MetadataRequestTypeNumber MetadataRequestType = "number" + MetadataRequestTypeBoolean MetadataRequestType = "boolean" + MetadataRequestTypeArrayOfStr MetadataRequestType = "arrayOfStr" + MetadataRequestTypeArrayOfNumber MetadataRequestType = "arrayOfNumber" +) + +type MetadataRequest struct { + Str *string `queryParam:"inline"` + Number *float64 `queryParam:"inline"` + Boolean *bool `queryParam:"inline"` + ArrayOfStr []string `queryParam:"inline"` + ArrayOfNumber []float64 `queryParam:"inline"` + + Type MetadataRequestType +} + +func CreateMetadataRequestStr(str string) MetadataRequest { + typ := MetadataRequestTypeStr + + return MetadataRequest{ + Str: &str, + Type: typ, + } +} + +func CreateMetadataRequestNumber(number float64) MetadataRequest { + typ := MetadataRequestTypeNumber + + return MetadataRequest{ + Number: &number, + Type: typ, + } +} + +func CreateMetadataRequestBoolean(boolean bool) MetadataRequest { + typ := MetadataRequestTypeBoolean + + return MetadataRequest{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateMetadataRequestArrayOfStr(arrayOfStr []string) MetadataRequest { + typ := MetadataRequestTypeArrayOfStr + + return MetadataRequest{ + ArrayOfStr: arrayOfStr, + Type: typ, + } +} + +func CreateMetadataRequestArrayOfNumber(arrayOfNumber []float64) MetadataRequest { + typ := MetadataRequestTypeArrayOfNumber + + return MetadataRequest{ + ArrayOfNumber: arrayOfNumber, + Type: typ, + } +} + +func (u *MetadataRequest) UnmarshalJSON(data []byte) error { + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = MetadataRequestTypeStr + return nil + } + + var number float64 = float64(0) + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { + u.Number = &number + u.Type = MetadataRequestTypeNumber + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = MetadataRequestTypeBoolean + return nil + } + + var arrayOfStr []string = []string{} + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { + u.ArrayOfStr = arrayOfStr + u.Type = MetadataRequestTypeArrayOfStr + return nil + } + + var arrayOfNumber []float64 = []float64{} + if err := utils.UnmarshalJSON(data, &arrayOfNumber, "", true, nil); err == nil { + u.ArrayOfNumber = arrayOfNumber + u.Type = MetadataRequestTypeArrayOfNumber + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for MetadataRequest", string(data)) +} + +func (u MetadataRequest) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.Number != nil { + return utils.MarshalJSON(u.Number, "", true) + } + + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.ArrayOfStr != nil { + return utils.MarshalJSON(u.ArrayOfStr, "", true) + } + + if u.ArrayOfNumber != nil { + return utils.MarshalJSON(u.ArrayOfNumber, "", true) + } + + return nil, errors.New("could not marshal union type MetadataRequest: all fields are null") +} + +type CreateIntegrationStoreDirectRequestBody struct { + // Human-readable name for the storage resource + Name string `json:"name"` + // ID of your integration configuration. Get this from GET /v1/integrations/configurations + IntegrationConfigurationID string `json:"integrationConfigurationId"` + // ID or slug of the integration product. Get available products from GET /v1/integrations/configuration/{id}/products + IntegrationProductIDOrSlug any `json:"integrationProductIdOrSlug"` + // Optional key-value pairs for resource metadata + Metadata map[string]MetadataRequest `json:"metadata,omitempty"` + // Optional external identifier for tracking purposes + ExternalID *string `json:"externalId,omitempty"` + // Protocol-specific configuration settings + ProtocolSettings map[string]any `json:"protocolSettings,omitempty"` + // Source of the store creation request + Source *string `default:"marketplace" json:"source"` + // ID of the billing plan for paid resources. Get available plans from GET /integrations/integration/{id}/products/{productId}/plans. If not provided, automatically discovers free billing plans. + BillingPlanID *string `json:"billingPlanId,omitempty"` + // Payment method ID for paid resources. Optional - uses default payment method if not provided. + PaymentMethodID *string `json:"paymentMethodId,omitempty"` + // Amount in cents for prepayment billing plans. Required only for prepayment plans with variable amounts. + PrepaymentAmountCents *float64 `json:"prepaymentAmountCents,omitempty"` +} + +func (c CreateIntegrationStoreDirectRequestBody) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectRequestBody) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "integrationConfigurationId", "integrationProductIdOrSlug"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetIntegrationConfigurationID() string { + if o == nil { + return "" + } + return o.IntegrationConfigurationID +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetIntegrationProductIDOrSlug() any { + if o == nil { + return nil + } + return o.IntegrationProductIDOrSlug +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetMetadata() map[string]MetadataRequest { + if o == nil { + return nil + } + return o.Metadata +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetExternalID() *string { + if o == nil { + return nil + } + return o.ExternalID +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetProtocolSettings() map[string]any { + if o == nil { + return nil + } + return o.ProtocolSettings +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetSource() *string { + if o == nil { + return nil + } + return o.Source +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetBillingPlanID() *string { + if o == nil { + return nil + } + return o.BillingPlanID +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetPaymentMethodID() *string { + if o == nil { + return nil + } + return o.PaymentMethodID +} + +func (o *CreateIntegrationStoreDirectRequestBody) GetPrepaymentAmountCents() *float64 { + if o == nil { + return nil + } + return o.PrepaymentAmountCents +} + +type CreateIntegrationStoreDirectRequest struct { + // The Team identifier to perform the request on behalf of. + TeamID *string `queryParam:"style=form,explode=true,name=teamId"` + // The Team slug to perform the request on behalf of. + Slug *string `queryParam:"style=form,explode=true,name=slug"` + RequestBody *CreateIntegrationStoreDirectRequestBody `request:"mediaType=application/json"` +} + +func (o *CreateIntegrationStoreDirectRequest) GetTeamID() *string { + if o == nil { + return nil + } + return o.TeamID +} + +func (o *CreateIntegrationStoreDirectRequest) GetSlug() *string { + if o == nil { + return nil + } + return o.Slug +} + +func (o *CreateIntegrationStoreDirectRequest) GetRequestBody() *CreateIntegrationStoreDirectRequestBody { + if o == nil { + return nil + } + return o.RequestBody +} + +type CreateIntegrationStoreDirectFramework string + +const ( + CreateIntegrationStoreDirectFrameworkBlitzjs CreateIntegrationStoreDirectFramework = "blitzjs" + CreateIntegrationStoreDirectFrameworkNextjs CreateIntegrationStoreDirectFramework = "nextjs" + CreateIntegrationStoreDirectFrameworkGatsby CreateIntegrationStoreDirectFramework = "gatsby" + CreateIntegrationStoreDirectFrameworkRemix CreateIntegrationStoreDirectFramework = "remix" + CreateIntegrationStoreDirectFrameworkReactRouter CreateIntegrationStoreDirectFramework = "react-router" + CreateIntegrationStoreDirectFrameworkAstro CreateIntegrationStoreDirectFramework = "astro" + CreateIntegrationStoreDirectFrameworkHexo CreateIntegrationStoreDirectFramework = "hexo" + CreateIntegrationStoreDirectFrameworkEleventy CreateIntegrationStoreDirectFramework = "eleventy" + CreateIntegrationStoreDirectFrameworkDocusaurus2 CreateIntegrationStoreDirectFramework = "docusaurus-2" + CreateIntegrationStoreDirectFrameworkDocusaurus CreateIntegrationStoreDirectFramework = "docusaurus" + CreateIntegrationStoreDirectFrameworkPreact CreateIntegrationStoreDirectFramework = "preact" + CreateIntegrationStoreDirectFrameworkSolidstart1 CreateIntegrationStoreDirectFramework = "solidstart-1" + CreateIntegrationStoreDirectFrameworkSolidstart CreateIntegrationStoreDirectFramework = "solidstart" + CreateIntegrationStoreDirectFrameworkDojo CreateIntegrationStoreDirectFramework = "dojo" + CreateIntegrationStoreDirectFrameworkEmber CreateIntegrationStoreDirectFramework = "ember" + CreateIntegrationStoreDirectFrameworkVue CreateIntegrationStoreDirectFramework = "vue" + CreateIntegrationStoreDirectFrameworkScully CreateIntegrationStoreDirectFramework = "scully" + CreateIntegrationStoreDirectFrameworkIonicAngular CreateIntegrationStoreDirectFramework = "ionic-angular" + CreateIntegrationStoreDirectFrameworkAngular CreateIntegrationStoreDirectFramework = "angular" + CreateIntegrationStoreDirectFrameworkPolymer CreateIntegrationStoreDirectFramework = "polymer" + CreateIntegrationStoreDirectFrameworkSvelte CreateIntegrationStoreDirectFramework = "svelte" + CreateIntegrationStoreDirectFrameworkSveltekit CreateIntegrationStoreDirectFramework = "sveltekit" + CreateIntegrationStoreDirectFrameworkSveltekit1 CreateIntegrationStoreDirectFramework = "sveltekit-1" + CreateIntegrationStoreDirectFrameworkIonicReact CreateIntegrationStoreDirectFramework = "ionic-react" + CreateIntegrationStoreDirectFrameworkCreateReactApp CreateIntegrationStoreDirectFramework = "create-react-app" + CreateIntegrationStoreDirectFrameworkGridsome CreateIntegrationStoreDirectFramework = "gridsome" + CreateIntegrationStoreDirectFrameworkUmijs CreateIntegrationStoreDirectFramework = "umijs" + CreateIntegrationStoreDirectFrameworkSapper CreateIntegrationStoreDirectFramework = "sapper" + CreateIntegrationStoreDirectFrameworkSaber CreateIntegrationStoreDirectFramework = "saber" + CreateIntegrationStoreDirectFrameworkStencil CreateIntegrationStoreDirectFramework = "stencil" + CreateIntegrationStoreDirectFrameworkNuxtjs CreateIntegrationStoreDirectFramework = "nuxtjs" + CreateIntegrationStoreDirectFrameworkRedwoodjs CreateIntegrationStoreDirectFramework = "redwoodjs" + CreateIntegrationStoreDirectFrameworkHugo CreateIntegrationStoreDirectFramework = "hugo" + CreateIntegrationStoreDirectFrameworkJekyll CreateIntegrationStoreDirectFramework = "jekyll" + CreateIntegrationStoreDirectFrameworkBrunch CreateIntegrationStoreDirectFramework = "brunch" + CreateIntegrationStoreDirectFrameworkMiddleman CreateIntegrationStoreDirectFramework = "middleman" + CreateIntegrationStoreDirectFrameworkZola CreateIntegrationStoreDirectFramework = "zola" + CreateIntegrationStoreDirectFrameworkHydrogen CreateIntegrationStoreDirectFramework = "hydrogen" + CreateIntegrationStoreDirectFrameworkVite CreateIntegrationStoreDirectFramework = "vite" + CreateIntegrationStoreDirectFrameworkVitepress CreateIntegrationStoreDirectFramework = "vitepress" + CreateIntegrationStoreDirectFrameworkVuepress CreateIntegrationStoreDirectFramework = "vuepress" + CreateIntegrationStoreDirectFrameworkParcel CreateIntegrationStoreDirectFramework = "parcel" + CreateIntegrationStoreDirectFrameworkFasthtml CreateIntegrationStoreDirectFramework = "fasthtml" + CreateIntegrationStoreDirectFrameworkSanityV3 CreateIntegrationStoreDirectFramework = "sanity-v3" + CreateIntegrationStoreDirectFrameworkSanity CreateIntegrationStoreDirectFramework = "sanity" + CreateIntegrationStoreDirectFrameworkStorybook CreateIntegrationStoreDirectFramework = "storybook" + CreateIntegrationStoreDirectFrameworkNitro CreateIntegrationStoreDirectFramework = "nitro" + CreateIntegrationStoreDirectFrameworkHono CreateIntegrationStoreDirectFramework = "hono" + CreateIntegrationStoreDirectFrameworkExpress CreateIntegrationStoreDirectFramework = "express" + CreateIntegrationStoreDirectFrameworkXmcp CreateIntegrationStoreDirectFramework = "xmcp" +) + +func (e CreateIntegrationStoreDirectFramework) ToPointer() *CreateIntegrationStoreDirectFramework { + return &e +} +func (e *CreateIntegrationStoreDirectFramework) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "blitzjs": + fallthrough + case "nextjs": + fallthrough + case "gatsby": + fallthrough + case "remix": + fallthrough + case "react-router": + fallthrough + case "astro": + fallthrough + case "hexo": + fallthrough + case "eleventy": + fallthrough + case "docusaurus-2": + fallthrough + case "docusaurus": + fallthrough + case "preact": + fallthrough + case "solidstart-1": + fallthrough + case "solidstart": + fallthrough + case "dojo": + fallthrough + case "ember": + fallthrough + case "vue": + fallthrough + case "scully": + fallthrough + case "ionic-angular": + fallthrough + case "angular": + fallthrough + case "polymer": + fallthrough + case "svelte": + fallthrough + case "sveltekit": + fallthrough + case "sveltekit-1": + fallthrough + case "ionic-react": + fallthrough + case "create-react-app": + fallthrough + case "gridsome": + fallthrough + case "umijs": + fallthrough + case "sapper": + fallthrough + case "saber": + fallthrough + case "stencil": + fallthrough + case "nuxtjs": + fallthrough + case "redwoodjs": + fallthrough + case "hugo": + fallthrough + case "jekyll": + fallthrough + case "brunch": + fallthrough + case "middleman": + fallthrough + case "zola": + fallthrough + case "hydrogen": + fallthrough + case "vite": + fallthrough + case "vitepress": + fallthrough + case "vuepress": + fallthrough + case "parcel": + fallthrough + case "fasthtml": + fallthrough + case "sanity-v3": + fallthrough + case "sanity": + fallthrough + case "storybook": + fallthrough + case "nitro": + fallthrough + case "hono": + fallthrough + case "express": + fallthrough + case "xmcp": + *e = CreateIntegrationStoreDirectFramework(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectFramework: %v", v) + } +} + +type CreateIntegrationStoreDirectEnvironment string + +const ( + CreateIntegrationStoreDirectEnvironmentProduction CreateIntegrationStoreDirectEnvironment = "production" + CreateIntegrationStoreDirectEnvironmentPreview CreateIntegrationStoreDirectEnvironment = "preview" + CreateIntegrationStoreDirectEnvironmentDevelopment CreateIntegrationStoreDirectEnvironment = "development" +) + +func (e CreateIntegrationStoreDirectEnvironment) ToPointer() *CreateIntegrationStoreDirectEnvironment { + return &e +} +func (e *CreateIntegrationStoreDirectEnvironment) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "production": + fallthrough + case "preview": + fallthrough + case "development": + *e = CreateIntegrationStoreDirectEnvironment(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectEnvironment: %v", v) + } +} + +type ActionEnvironment string + +const ( + ActionEnvironmentProduction ActionEnvironment = "production" + ActionEnvironmentPreview ActionEnvironment = "preview" + ActionEnvironmentDevelopment ActionEnvironment = "development" +) + +func (e ActionEnvironment) ToPointer() *ActionEnvironment { + return &e +} +func (e *ActionEnvironment) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "production": + fallthrough + case "preview": + fallthrough + case "development": + *e = ActionEnvironment(v) + return nil + default: + return fmt.Errorf("invalid value for ActionEnvironment: %v", v) + } +} + +type ProjectsMetadatumAction struct { + Slug string `json:"slug"` + Environments []ActionEnvironment `json:"environments"` +} + +func (o *ProjectsMetadatumAction) GetSlug() string { + if o == nil { + return "" + } + return o.Slug +} + +func (o *ProjectsMetadatumAction) GetEnvironments() []ActionEnvironment { + if o == nil { + return []ActionEnvironment{} + } + return o.Environments +} + +type Deployments struct { + Required bool `json:"required"` + Actions []ProjectsMetadatumAction `json:"actions"` +} + +func (o *Deployments) GetRequired() bool { + if o == nil { + return false + } + return o.Required +} + +func (o *Deployments) GetActions() []ProjectsMetadatumAction { + if o == nil { + return []ProjectsMetadatumAction{} + } + return o.Actions +} + +type CreateIntegrationStoreDirectProjectsMetadatum struct { + ID string `json:"id"` + ProjectID string `json:"projectId"` + Name string `json:"name"` + Framework *CreateIntegrationStoreDirectFramework `json:"framework,omitempty"` + LatestDeployment *string `json:"latestDeployment,omitempty"` + Environments []CreateIntegrationStoreDirectEnvironment `json:"environments"` + EnvVarPrefix *string `json:"envVarPrefix"` + EnvironmentVariables []string `json:"environmentVariables"` + Deployments *Deployments `json:"deployments,omitempty"` +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetProjectID() string { + if o == nil { + return "" + } + return o.ProjectID +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetFramework() *CreateIntegrationStoreDirectFramework { + if o == nil { + return nil + } + return o.Framework +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetLatestDeployment() *string { + if o == nil { + return nil + } + return o.LatestDeployment +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetEnvironments() []CreateIntegrationStoreDirectEnvironment { + if o == nil { + return []CreateIntegrationStoreDirectEnvironment{} + } + return o.Environments +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetEnvVarPrefix() *string { + if o == nil { + return nil + } + return o.EnvVarPrefix +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetEnvironmentVariables() []string { + if o == nil { + return []string{} + } + return o.EnvironmentVariables +} + +func (o *CreateIntegrationStoreDirectProjectsMetadatum) GetDeployments() *Deployments { + if o == nil { + return nil + } + return o.Deployments +} + +type CreateIntegrationStoreDirectStatus string + +const ( + CreateIntegrationStoreDirectStatusAvailable CreateIntegrationStoreDirectStatus = "available" + CreateIntegrationStoreDirectStatusError CreateIntegrationStoreDirectStatus = "error" + CreateIntegrationStoreDirectStatusSuspended CreateIntegrationStoreDirectStatus = "suspended" + CreateIntegrationStoreDirectStatusLimitsExceededSuspended CreateIntegrationStoreDirectStatus = "limits-exceeded-suspended" + CreateIntegrationStoreDirectStatusLimitsExceededSuspendedStoreCount CreateIntegrationStoreDirectStatus = "limits-exceeded-suspended-store-count" + CreateIntegrationStoreDirectStatusInitializing CreateIntegrationStoreDirectStatus = "initializing" + CreateIntegrationStoreDirectStatusUninstalled CreateIntegrationStoreDirectStatus = "uninstalled" +) + +func (e CreateIntegrationStoreDirectStatus) ToPointer() *CreateIntegrationStoreDirectStatus { + return &e +} +func (e *CreateIntegrationStoreDirectStatus) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "available": + fallthrough + case "error": + fallthrough + case "suspended": + fallthrough + case "limits-exceeded-suspended": + fallthrough + case "limits-exceeded-suspended-store-count": + fallthrough + case "initializing": + fallthrough + case "uninstalled": + *e = CreateIntegrationStoreDirectStatus(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectStatus: %v", v) + } +} + +type StoreMetadataType string + +const ( + StoreMetadataTypeStr StoreMetadataType = "str" + StoreMetadataTypeNumber StoreMetadataType = "number" + StoreMetadataTypeBoolean StoreMetadataType = "boolean" + StoreMetadataTypeArrayOfStr StoreMetadataType = "arrayOfStr" + StoreMetadataTypeArrayOfNumber StoreMetadataType = "arrayOfNumber" +) + +type StoreMetadata struct { + Str *string `queryParam:"inline"` + Number *float64 `queryParam:"inline"` + Boolean *bool `queryParam:"inline"` + ArrayOfStr []string `queryParam:"inline"` + ArrayOfNumber []float64 `queryParam:"inline"` + + Type StoreMetadataType +} + +func CreateStoreMetadataStr(str string) StoreMetadata { + typ := StoreMetadataTypeStr + + return StoreMetadata{ + Str: &str, + Type: typ, + } +} + +func CreateStoreMetadataNumber(number float64) StoreMetadata { + typ := StoreMetadataTypeNumber + + return StoreMetadata{ + Number: &number, + Type: typ, + } +} + +func CreateStoreMetadataBoolean(boolean bool) StoreMetadata { + typ := StoreMetadataTypeBoolean + + return StoreMetadata{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateStoreMetadataArrayOfStr(arrayOfStr []string) StoreMetadata { + typ := StoreMetadataTypeArrayOfStr + + return StoreMetadata{ + ArrayOfStr: arrayOfStr, + Type: typ, + } +} + +func CreateStoreMetadataArrayOfNumber(arrayOfNumber []float64) StoreMetadata { + typ := StoreMetadataTypeArrayOfNumber + + return StoreMetadata{ + ArrayOfNumber: arrayOfNumber, + Type: typ, + } +} + +func (u *StoreMetadata) UnmarshalJSON(data []byte) error { + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = StoreMetadataTypeStr + return nil + } + + var number float64 = float64(0) + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { + u.Number = &number + u.Type = StoreMetadataTypeNumber + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = StoreMetadataTypeBoolean + return nil + } + + var arrayOfStr []string = []string{} + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { + u.ArrayOfStr = arrayOfStr + u.Type = StoreMetadataTypeArrayOfStr + return nil + } + + var arrayOfNumber []float64 = []float64{} + if err := utils.UnmarshalJSON(data, &arrayOfNumber, "", true, nil); err == nil { + u.ArrayOfNumber = arrayOfNumber + u.Type = StoreMetadataTypeArrayOfNumber + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for StoreMetadata", string(data)) +} + +func (u StoreMetadata) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.Number != nil { + return utils.MarshalJSON(u.Number, "", true) + } + + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.ArrayOfStr != nil { + return utils.MarshalJSON(u.ArrayOfStr, "", true) + } + + if u.ArrayOfNumber != nil { + return utils.MarshalJSON(u.ArrayOfNumber, "", true) + } + + return nil, errors.New("could not marshal union type StoreMetadata: all fields are null") +} + +type ExternalResourceStatus string + +const ( + ExternalResourceStatusError ExternalResourceStatus = "error" + ExternalResourceStatusSuspended ExternalResourceStatus = "suspended" + ExternalResourceStatusUninstalled ExternalResourceStatus = "uninstalled" + ExternalResourceStatusReady ExternalResourceStatus = "ready" + ExternalResourceStatusPending ExternalResourceStatus = "pending" + ExternalResourceStatusResumed ExternalResourceStatus = "resumed" +) + +func (e ExternalResourceStatus) ToPointer() *ExternalResourceStatus { + return &e +} +func (e *ExternalResourceStatus) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "error": + fallthrough + case "suspended": + fallthrough + case "uninstalled": + fallthrough + case "ready": + fallthrough + case "pending": + fallthrough + case "resumed": + *e = ExternalResourceStatus(v) + return nil + default: + return fmt.Errorf("invalid value for ExternalResourceStatus: %v", v) + } +} + +type CreateIntegrationStoreDirectTypeObject string + +const ( + CreateIntegrationStoreDirectTypeObjectObject CreateIntegrationStoreDirectTypeObject = "object" +) + +func (e CreateIntegrationStoreDirectTypeObject) ToPointer() *CreateIntegrationStoreDirectTypeObject { + return &e +} +func (e *CreateIntegrationStoreDirectTypeObject) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "object": + *e = CreateIntegrationStoreDirectTypeObject(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeObject: %v", v) + } +} + +type PropertiesValueAtBRANDAt7822 struct { +} + +func (p PropertiesValueAtBRANDAt7822) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PropertiesValueAtBRANDAt7822) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectPropertiesValue struct { + AtBRANDAt7822 PropertiesValueAtBRANDAt7822 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectPropertiesValue) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesValue) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesValue) GetAtBRANDAt7822() PropertiesValueAtBRANDAt7822 { + if o == nil { + return PropertiesValueAtBRANDAt7822{} + } + return o.AtBRANDAt7822 +} + +type CreateIntegrationStoreDirectPropertiesDisabledEnum string + +const ( + CreateIntegrationStoreDirectPropertiesDisabledEnumUpdate CreateIntegrationStoreDirectPropertiesDisabledEnum = "update" + CreateIntegrationStoreDirectPropertiesDisabledEnumCreate CreateIntegrationStoreDirectPropertiesDisabledEnum = "create" +) + +func (e CreateIntegrationStoreDirectPropertiesDisabledEnum) ToPointer() *CreateIntegrationStoreDirectPropertiesDisabledEnum { + return &e +} +func (e *CreateIntegrationStoreDirectPropertiesDisabledEnum) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectPropertiesDisabledEnum(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectPropertiesDisabledEnum: %v", v) + } +} + +type CreateIntegrationStoreDirectPropertiesDisabled struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectPropertiesDisabled) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesDisabled) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesDisabled) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesDisabledUnionType string + +const ( + CreateIntegrationStoreDirectPropertiesDisabledUnionTypeBoolean CreateIntegrationStoreDirectPropertiesDisabledUnionType = "boolean" + CreateIntegrationStoreDirectPropertiesDisabledUnionTypeCreateIntegrationStoreDirectPropertiesDisabled CreateIntegrationStoreDirectPropertiesDisabledUnionType = "createIntegrationStoreDirect_properties_disabled" + CreateIntegrationStoreDirectPropertiesDisabledUnionTypeCreateIntegrationStoreDirectPropertiesDisabledEnum CreateIntegrationStoreDirectPropertiesDisabledUnionType = "createIntegrationStoreDirect_properties_disabled_enum" +) + +type CreateIntegrationStoreDirectPropertiesDisabledUnion struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesDisabled *CreateIntegrationStoreDirectPropertiesDisabled `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesDisabledEnum *CreateIntegrationStoreDirectPropertiesDisabledEnum `queryParam:"inline"` + + Type CreateIntegrationStoreDirectPropertiesDisabledUnionType +} + +func CreateCreateIntegrationStoreDirectPropertiesDisabledUnionBoolean(boolean bool) CreateIntegrationStoreDirectPropertiesDisabledUnion { + typ := CreateIntegrationStoreDirectPropertiesDisabledUnionTypeBoolean + + return CreateIntegrationStoreDirectPropertiesDisabledUnion{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesDisabledUnionCreateIntegrationStoreDirectPropertiesDisabled(createIntegrationStoreDirectPropertiesDisabled CreateIntegrationStoreDirectPropertiesDisabled) CreateIntegrationStoreDirectPropertiesDisabledUnion { + typ := CreateIntegrationStoreDirectPropertiesDisabledUnionTypeCreateIntegrationStoreDirectPropertiesDisabled + + return CreateIntegrationStoreDirectPropertiesDisabledUnion{ + CreateIntegrationStoreDirectPropertiesDisabled: &createIntegrationStoreDirectPropertiesDisabled, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesDisabledUnionCreateIntegrationStoreDirectPropertiesDisabledEnum(createIntegrationStoreDirectPropertiesDisabledEnum CreateIntegrationStoreDirectPropertiesDisabledEnum) CreateIntegrationStoreDirectPropertiesDisabledUnion { + typ := CreateIntegrationStoreDirectPropertiesDisabledUnionTypeCreateIntegrationStoreDirectPropertiesDisabledEnum + + return CreateIntegrationStoreDirectPropertiesDisabledUnion{ + CreateIntegrationStoreDirectPropertiesDisabledEnum: &createIntegrationStoreDirectPropertiesDisabledEnum, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectPropertiesDisabledUnion) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectPropertiesDisabled CreateIntegrationStoreDirectPropertiesDisabled = CreateIntegrationStoreDirectPropertiesDisabled{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesDisabled, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesDisabled = &createIntegrationStoreDirectPropertiesDisabled + u.Type = CreateIntegrationStoreDirectPropertiesDisabledUnionTypeCreateIntegrationStoreDirectPropertiesDisabled + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectPropertiesDisabledUnionTypeBoolean + return nil + } + + var createIntegrationStoreDirectPropertiesDisabledEnum CreateIntegrationStoreDirectPropertiesDisabledEnum = CreateIntegrationStoreDirectPropertiesDisabledEnum("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesDisabledEnum, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesDisabledEnum = &createIntegrationStoreDirectPropertiesDisabledEnum + u.Type = CreateIntegrationStoreDirectPropertiesDisabledUnionTypeCreateIntegrationStoreDirectPropertiesDisabledEnum + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectPropertiesDisabledUnion", string(data)) +} + +func (u CreateIntegrationStoreDirectPropertiesDisabledUnion) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesDisabled != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesDisabled, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesDisabledEnum != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesDisabledEnum, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectPropertiesDisabledUnion: all fields are null") +} + +type CreateIntegrationStoreDirectPropertiesHiddenEnum string + +const ( + CreateIntegrationStoreDirectPropertiesHiddenEnumUpdate CreateIntegrationStoreDirectPropertiesHiddenEnum = "update" + CreateIntegrationStoreDirectPropertiesHiddenEnumCreate CreateIntegrationStoreDirectPropertiesHiddenEnum = "create" +) + +func (e CreateIntegrationStoreDirectPropertiesHiddenEnum) ToPointer() *CreateIntegrationStoreDirectPropertiesHiddenEnum { + return &e +} +func (e *CreateIntegrationStoreDirectPropertiesHiddenEnum) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectPropertiesHiddenEnum(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectPropertiesHiddenEnum: %v", v) + } +} + +type CreateIntegrationStoreDirectPropertiesHidden struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectPropertiesHidden) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesHidden) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesHidden) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesHiddenUnionType string + +const ( + CreateIntegrationStoreDirectPropertiesHiddenUnionTypeBoolean CreateIntegrationStoreDirectPropertiesHiddenUnionType = "boolean" + CreateIntegrationStoreDirectPropertiesHiddenUnionTypeCreateIntegrationStoreDirectPropertiesHidden CreateIntegrationStoreDirectPropertiesHiddenUnionType = "createIntegrationStoreDirect_properties_hidden" + CreateIntegrationStoreDirectPropertiesHiddenUnionTypeCreateIntegrationStoreDirectPropertiesHiddenEnum CreateIntegrationStoreDirectPropertiesHiddenUnionType = "createIntegrationStoreDirect_properties_hidden_enum" +) + +type CreateIntegrationStoreDirectPropertiesHiddenUnion struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesHidden *CreateIntegrationStoreDirectPropertiesHidden `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesHiddenEnum *CreateIntegrationStoreDirectPropertiesHiddenEnum `queryParam:"inline"` + + Type CreateIntegrationStoreDirectPropertiesHiddenUnionType +} + +func CreateCreateIntegrationStoreDirectPropertiesHiddenUnionBoolean(boolean bool) CreateIntegrationStoreDirectPropertiesHiddenUnion { + typ := CreateIntegrationStoreDirectPropertiesHiddenUnionTypeBoolean + + return CreateIntegrationStoreDirectPropertiesHiddenUnion{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesHiddenUnionCreateIntegrationStoreDirectPropertiesHidden(createIntegrationStoreDirectPropertiesHidden CreateIntegrationStoreDirectPropertiesHidden) CreateIntegrationStoreDirectPropertiesHiddenUnion { + typ := CreateIntegrationStoreDirectPropertiesHiddenUnionTypeCreateIntegrationStoreDirectPropertiesHidden + + return CreateIntegrationStoreDirectPropertiesHiddenUnion{ + CreateIntegrationStoreDirectPropertiesHidden: &createIntegrationStoreDirectPropertiesHidden, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesHiddenUnionCreateIntegrationStoreDirectPropertiesHiddenEnum(createIntegrationStoreDirectPropertiesHiddenEnum CreateIntegrationStoreDirectPropertiesHiddenEnum) CreateIntegrationStoreDirectPropertiesHiddenUnion { + typ := CreateIntegrationStoreDirectPropertiesHiddenUnionTypeCreateIntegrationStoreDirectPropertiesHiddenEnum + + return CreateIntegrationStoreDirectPropertiesHiddenUnion{ + CreateIntegrationStoreDirectPropertiesHiddenEnum: &createIntegrationStoreDirectPropertiesHiddenEnum, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectPropertiesHiddenUnion) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectPropertiesHidden CreateIntegrationStoreDirectPropertiesHidden = CreateIntegrationStoreDirectPropertiesHidden{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesHidden, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesHidden = &createIntegrationStoreDirectPropertiesHidden + u.Type = CreateIntegrationStoreDirectPropertiesHiddenUnionTypeCreateIntegrationStoreDirectPropertiesHidden + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectPropertiesHiddenUnionTypeBoolean + return nil + } + + var createIntegrationStoreDirectPropertiesHiddenEnum CreateIntegrationStoreDirectPropertiesHiddenEnum = CreateIntegrationStoreDirectPropertiesHiddenEnum("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesHiddenEnum, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesHiddenEnum = &createIntegrationStoreDirectPropertiesHiddenEnum + u.Type = CreateIntegrationStoreDirectPropertiesHiddenUnionTypeCreateIntegrationStoreDirectPropertiesHiddenEnum + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectPropertiesHiddenUnion", string(data)) +} + +func (u CreateIntegrationStoreDirectPropertiesHiddenUnion) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesHidden != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesHidden, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesHiddenEnum != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesHiddenEnum, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectPropertiesHiddenUnion: all fields are null") +} + +type CreateIntegrationStoreDirectProperties struct { + Value CreateIntegrationStoreDirectPropertiesValue `json:"value"` + Disabled *CreateIntegrationStoreDirectPropertiesDisabledUnion `json:"disabled,omitempty"` + Hidden *CreateIntegrationStoreDirectPropertiesHiddenUnion `json:"hidden,omitempty"` +} + +func (c CreateIntegrationStoreDirectProperties) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectProperties) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectProperties) GetValue() CreateIntegrationStoreDirectPropertiesValue { + if o == nil { + return CreateIntegrationStoreDirectPropertiesValue{} + } + return o.Value +} + +func (o *CreateIntegrationStoreDirectProperties) GetDisabled() *CreateIntegrationStoreDirectPropertiesDisabledUnion { + if o == nil { + return nil + } + return o.Disabled +} + +func (o *CreateIntegrationStoreDirectProperties) GetHidden() *CreateIntegrationStoreDirectPropertiesHiddenUnion { + if o == nil { + return nil + } + return o.Hidden +} + +type CreateIntegrationStoreDirectTypeString4 string + +const ( + CreateIntegrationStoreDirectTypeString4String CreateIntegrationStoreDirectTypeString4 = "string" +) + +func (e CreateIntegrationStoreDirectTypeString4) ToPointer() *CreateIntegrationStoreDirectTypeString4 { + return &e +} +func (e *CreateIntegrationStoreDirectTypeString4) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "string": + *e = CreateIntegrationStoreDirectTypeString4(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeString4: %v", v) + } +} + +type CreateIntegrationStoreDirectUIControlVercelRegion string + +const ( + CreateIntegrationStoreDirectUIControlVercelRegionVercelRegion CreateIntegrationStoreDirectUIControlVercelRegion = "vercel-region" +) + +func (e CreateIntegrationStoreDirectUIControlVercelRegion) ToPointer() *CreateIntegrationStoreDirectUIControlVercelRegion { + return &e +} +func (e *CreateIntegrationStoreDirectUIControlVercelRegion) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "vercel-region": + *e = CreateIntegrationStoreDirectUIControlVercelRegion(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIControlVercelRegion: %v", v) + } +} + +type UIOptionValueAtBRANDAt7822 struct { +} + +func (u UIOptionValueAtBRANDAt7822) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UIOptionValueAtBRANDAt7822) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectUIOptionValue struct { + AtBRANDAt7822 UIOptionValueAtBRANDAt7822 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectUIOptionValue) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOptionValue) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOptionValue) GetAtBRANDAt7822() UIOptionValueAtBRANDAt7822 { + if o == nil { + return UIOptionValueAtBRANDAt7822{} + } + return o.AtBRANDAt7822 +} + +type CreateIntegrationStoreDirectUIOptionDisabledEnum2 string + +const ( + CreateIntegrationStoreDirectUIOptionDisabledEnum2Update CreateIntegrationStoreDirectUIOptionDisabledEnum2 = "update" + CreateIntegrationStoreDirectUIOptionDisabledEnum2Create CreateIntegrationStoreDirectUIOptionDisabledEnum2 = "create" +) + +func (e CreateIntegrationStoreDirectUIOptionDisabledEnum2) ToPointer() *CreateIntegrationStoreDirectUIOptionDisabledEnum2 { + return &e +} +func (e *CreateIntegrationStoreDirectUIOptionDisabledEnum2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIOptionDisabledEnum2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIOptionDisabledEnum2: %v", v) + } +} + +type CreateIntegrationStoreDirectUIOptionDisabled2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIOptionDisabled2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOptionDisabled2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOptionDisabled2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIOptionDisabledUnion4Type string + +const ( + CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeBoolean CreateIntegrationStoreDirectUIOptionDisabledUnion4Type = "boolean" + CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeCreateIntegrationStoreDirectUIOptionDisabled2 CreateIntegrationStoreDirectUIOptionDisabledUnion4Type = "createIntegrationStoreDirect_ui:option_disabled_2" + CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeCreateIntegrationStoreDirectUIOptionDisabledEnum2 CreateIntegrationStoreDirectUIOptionDisabledUnion4Type = "createIntegrationStoreDirect_ui:option_disabled_enum_2" +) + +type CreateIntegrationStoreDirectUIOptionDisabledUnion4 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIOptionDisabled2 *CreateIntegrationStoreDirectUIOptionDisabled2 `queryParam:"inline"` + CreateIntegrationStoreDirectUIOptionDisabledEnum2 *CreateIntegrationStoreDirectUIOptionDisabledEnum2 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionDisabledUnion4Type +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion4Boolean(boolean bool) CreateIntegrationStoreDirectUIOptionDisabledUnion4 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeBoolean + + return CreateIntegrationStoreDirectUIOptionDisabledUnion4{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion4CreateIntegrationStoreDirectUIOptionDisabled2(createIntegrationStoreDirectUIOptionDisabled2 CreateIntegrationStoreDirectUIOptionDisabled2) CreateIntegrationStoreDirectUIOptionDisabledUnion4 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeCreateIntegrationStoreDirectUIOptionDisabled2 + + return CreateIntegrationStoreDirectUIOptionDisabledUnion4{ + CreateIntegrationStoreDirectUIOptionDisabled2: &createIntegrationStoreDirectUIOptionDisabled2, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion4CreateIntegrationStoreDirectUIOptionDisabledEnum2(createIntegrationStoreDirectUIOptionDisabledEnum2 CreateIntegrationStoreDirectUIOptionDisabledEnum2) CreateIntegrationStoreDirectUIOptionDisabledUnion4 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeCreateIntegrationStoreDirectUIOptionDisabledEnum2 + + return CreateIntegrationStoreDirectUIOptionDisabledUnion4{ + CreateIntegrationStoreDirectUIOptionDisabledEnum2: &createIntegrationStoreDirectUIOptionDisabledEnum2, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionDisabledUnion4) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIOptionDisabled2 CreateIntegrationStoreDirectUIOptionDisabled2 = CreateIntegrationStoreDirectUIOptionDisabled2{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOptionDisabled2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOptionDisabled2 = &createIntegrationStoreDirectUIOptionDisabled2 + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeCreateIntegrationStoreDirectUIOptionDisabled2 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIOptionDisabledEnum2 CreateIntegrationStoreDirectUIOptionDisabledEnum2 = CreateIntegrationStoreDirectUIOptionDisabledEnum2("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOptionDisabledEnum2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOptionDisabledEnum2 = &createIntegrationStoreDirectUIOptionDisabledEnum2 + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion4TypeCreateIntegrationStoreDirectUIOptionDisabledEnum2 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionDisabledUnion4", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionDisabledUnion4) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIOptionDisabled2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOptionDisabled2, "", true) + } + + if u.CreateIntegrationStoreDirectUIOptionDisabledEnum2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOptionDisabledEnum2, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionDisabledUnion4: all fields are null") +} + +type CreateIntegrationStoreDirectUIOptionHiddenEnum2 string + +const ( + CreateIntegrationStoreDirectUIOptionHiddenEnum2Update CreateIntegrationStoreDirectUIOptionHiddenEnum2 = "update" + CreateIntegrationStoreDirectUIOptionHiddenEnum2Create CreateIntegrationStoreDirectUIOptionHiddenEnum2 = "create" +) + +func (e CreateIntegrationStoreDirectUIOptionHiddenEnum2) ToPointer() *CreateIntegrationStoreDirectUIOptionHiddenEnum2 { + return &e +} +func (e *CreateIntegrationStoreDirectUIOptionHiddenEnum2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIOptionHiddenEnum2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIOptionHiddenEnum2: %v", v) + } +} + +type CreateIntegrationStoreDirectUIOptionHidden2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIOptionHidden2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOptionHidden2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOptionHidden2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIOptionHiddenUnion4Type string + +const ( + CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeBoolean CreateIntegrationStoreDirectUIOptionHiddenUnion4Type = "boolean" + CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeCreateIntegrationStoreDirectUIOptionHidden2 CreateIntegrationStoreDirectUIOptionHiddenUnion4Type = "createIntegrationStoreDirect_ui:option_hidden_2" + CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeCreateIntegrationStoreDirectUIOptionHiddenEnum2 CreateIntegrationStoreDirectUIOptionHiddenUnion4Type = "createIntegrationStoreDirect_ui:option_hidden_enum_2" +) + +type CreateIntegrationStoreDirectUIOptionHiddenUnion4 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIOptionHidden2 *CreateIntegrationStoreDirectUIOptionHidden2 `queryParam:"inline"` + CreateIntegrationStoreDirectUIOptionHiddenEnum2 *CreateIntegrationStoreDirectUIOptionHiddenEnum2 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionHiddenUnion4Type +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion4Boolean(boolean bool) CreateIntegrationStoreDirectUIOptionHiddenUnion4 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeBoolean + + return CreateIntegrationStoreDirectUIOptionHiddenUnion4{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion4CreateIntegrationStoreDirectUIOptionHidden2(createIntegrationStoreDirectUIOptionHidden2 CreateIntegrationStoreDirectUIOptionHidden2) CreateIntegrationStoreDirectUIOptionHiddenUnion4 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeCreateIntegrationStoreDirectUIOptionHidden2 + + return CreateIntegrationStoreDirectUIOptionHiddenUnion4{ + CreateIntegrationStoreDirectUIOptionHidden2: &createIntegrationStoreDirectUIOptionHidden2, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion4CreateIntegrationStoreDirectUIOptionHiddenEnum2(createIntegrationStoreDirectUIOptionHiddenEnum2 CreateIntegrationStoreDirectUIOptionHiddenEnum2) CreateIntegrationStoreDirectUIOptionHiddenUnion4 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeCreateIntegrationStoreDirectUIOptionHiddenEnum2 + + return CreateIntegrationStoreDirectUIOptionHiddenUnion4{ + CreateIntegrationStoreDirectUIOptionHiddenEnum2: &createIntegrationStoreDirectUIOptionHiddenEnum2, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionHiddenUnion4) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIOptionHidden2 CreateIntegrationStoreDirectUIOptionHidden2 = CreateIntegrationStoreDirectUIOptionHidden2{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOptionHidden2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOptionHidden2 = &createIntegrationStoreDirectUIOptionHidden2 + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeCreateIntegrationStoreDirectUIOptionHidden2 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIOptionHiddenEnum2 CreateIntegrationStoreDirectUIOptionHiddenEnum2 = CreateIntegrationStoreDirectUIOptionHiddenEnum2("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOptionHiddenEnum2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOptionHiddenEnum2 = &createIntegrationStoreDirectUIOptionHiddenEnum2 + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion4TypeCreateIntegrationStoreDirectUIOptionHiddenEnum2 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionHiddenUnion4", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionHiddenUnion4) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIOptionHidden2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOptionHidden2, "", true) + } + + if u.CreateIntegrationStoreDirectUIOptionHiddenEnum2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOptionHiddenEnum2, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionHiddenUnion4: all fields are null") +} + +type CreateIntegrationStoreDirectUIOption5 struct { + Value CreateIntegrationStoreDirectUIOptionValue `json:"value"` + Disabled *CreateIntegrationStoreDirectUIOptionDisabledUnion4 `json:"disabled,omitempty"` + Hidden *CreateIntegrationStoreDirectUIOptionHiddenUnion4 `json:"hidden,omitempty"` +} + +func (c CreateIntegrationStoreDirectUIOption5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOption5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOption5) GetValue() CreateIntegrationStoreDirectUIOptionValue { + if o == nil { + return CreateIntegrationStoreDirectUIOptionValue{} + } + return o.Value +} + +func (o *CreateIntegrationStoreDirectUIOption5) GetDisabled() *CreateIntegrationStoreDirectUIOptionDisabledUnion4 { + if o == nil { + return nil + } + return o.Disabled +} + +func (o *CreateIntegrationStoreDirectUIOption5) GetHidden() *CreateIntegrationStoreDirectUIOptionHiddenUnion4 { + if o == nil { + return nil + } + return o.Hidden +} + +type UIOptionAtBRANDAt7822 struct { +} + +func (u UIOptionAtBRANDAt7822) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UIOptionAtBRANDAt7822) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectUIOption4 struct { + AtBRANDAt7822 UIOptionAtBRANDAt7822 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectUIOption4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOption4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOption4) GetAtBRANDAt7822() UIOptionAtBRANDAt7822 { + if o == nil { + return UIOptionAtBRANDAt7822{} + } + return o.AtBRANDAt7822 +} + +type CreateIntegrationStoreDirectUIOptionDisabledEnum1 string + +const ( + CreateIntegrationStoreDirectUIOptionDisabledEnum1Update CreateIntegrationStoreDirectUIOptionDisabledEnum1 = "update" + CreateIntegrationStoreDirectUIOptionDisabledEnum1Create CreateIntegrationStoreDirectUIOptionDisabledEnum1 = "create" +) + +func (e CreateIntegrationStoreDirectUIOptionDisabledEnum1) ToPointer() *CreateIntegrationStoreDirectUIOptionDisabledEnum1 { + return &e +} +func (e *CreateIntegrationStoreDirectUIOptionDisabledEnum1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIOptionDisabledEnum1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIOptionDisabledEnum1: %v", v) + } +} + +type CreateIntegrationStoreDirectUIOptionDisabled1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIOptionDisabled1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOptionDisabled1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOptionDisabled1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIOptionDisabledUnion3Type string + +const ( + CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeBoolean CreateIntegrationStoreDirectUIOptionDisabledUnion3Type = "boolean" + CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeCreateIntegrationStoreDirectUIOptionDisabled1 CreateIntegrationStoreDirectUIOptionDisabledUnion3Type = "createIntegrationStoreDirect_ui:option_disabled_1" + CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeCreateIntegrationStoreDirectUIOptionDisabledEnum1 CreateIntegrationStoreDirectUIOptionDisabledUnion3Type = "createIntegrationStoreDirect_ui:option_disabled_enum_1" +) + +type CreateIntegrationStoreDirectUIOptionDisabledUnion3 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIOptionDisabled1 *CreateIntegrationStoreDirectUIOptionDisabled1 `queryParam:"inline"` + CreateIntegrationStoreDirectUIOptionDisabledEnum1 *CreateIntegrationStoreDirectUIOptionDisabledEnum1 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionDisabledUnion3Type +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion3Boolean(boolean bool) CreateIntegrationStoreDirectUIOptionDisabledUnion3 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeBoolean + + return CreateIntegrationStoreDirectUIOptionDisabledUnion3{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion3CreateIntegrationStoreDirectUIOptionDisabled1(createIntegrationStoreDirectUIOptionDisabled1 CreateIntegrationStoreDirectUIOptionDisabled1) CreateIntegrationStoreDirectUIOptionDisabledUnion3 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeCreateIntegrationStoreDirectUIOptionDisabled1 + + return CreateIntegrationStoreDirectUIOptionDisabledUnion3{ + CreateIntegrationStoreDirectUIOptionDisabled1: &createIntegrationStoreDirectUIOptionDisabled1, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion3CreateIntegrationStoreDirectUIOptionDisabledEnum1(createIntegrationStoreDirectUIOptionDisabledEnum1 CreateIntegrationStoreDirectUIOptionDisabledEnum1) CreateIntegrationStoreDirectUIOptionDisabledUnion3 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeCreateIntegrationStoreDirectUIOptionDisabledEnum1 + + return CreateIntegrationStoreDirectUIOptionDisabledUnion3{ + CreateIntegrationStoreDirectUIOptionDisabledEnum1: &createIntegrationStoreDirectUIOptionDisabledEnum1, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionDisabledUnion3) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIOptionDisabled1 CreateIntegrationStoreDirectUIOptionDisabled1 = CreateIntegrationStoreDirectUIOptionDisabled1{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOptionDisabled1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOptionDisabled1 = &createIntegrationStoreDirectUIOptionDisabled1 + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeCreateIntegrationStoreDirectUIOptionDisabled1 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIOptionDisabledEnum1 CreateIntegrationStoreDirectUIOptionDisabledEnum1 = CreateIntegrationStoreDirectUIOptionDisabledEnum1("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOptionDisabledEnum1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOptionDisabledEnum1 = &createIntegrationStoreDirectUIOptionDisabledEnum1 + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion3TypeCreateIntegrationStoreDirectUIOptionDisabledEnum1 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionDisabledUnion3", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionDisabledUnion3) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIOptionDisabled1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOptionDisabled1, "", true) + } + + if u.CreateIntegrationStoreDirectUIOptionDisabledEnum1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOptionDisabledEnum1, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionDisabledUnion3: all fields are null") +} + +type CreateIntegrationStoreDirectUIOptionHiddenEnum1 string + +const ( + CreateIntegrationStoreDirectUIOptionHiddenEnum1Update CreateIntegrationStoreDirectUIOptionHiddenEnum1 = "update" + CreateIntegrationStoreDirectUIOptionHiddenEnum1Create CreateIntegrationStoreDirectUIOptionHiddenEnum1 = "create" +) + +func (e CreateIntegrationStoreDirectUIOptionHiddenEnum1) ToPointer() *CreateIntegrationStoreDirectUIOptionHiddenEnum1 { + return &e +} +func (e *CreateIntegrationStoreDirectUIOptionHiddenEnum1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIOptionHiddenEnum1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIOptionHiddenEnum1: %v", v) + } +} + +type CreateIntegrationStoreDirectUIOptionHidden1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIOptionHidden1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOptionHidden1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOptionHidden1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIOptionHiddenUnion3Type string + +const ( + CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeBoolean CreateIntegrationStoreDirectUIOptionHiddenUnion3Type = "boolean" + CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeCreateIntegrationStoreDirectUIOptionHidden1 CreateIntegrationStoreDirectUIOptionHiddenUnion3Type = "createIntegrationStoreDirect_ui:option_hidden_1" + CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeCreateIntegrationStoreDirectUIOptionHiddenEnum1 CreateIntegrationStoreDirectUIOptionHiddenUnion3Type = "createIntegrationStoreDirect_ui:option_hidden_enum_1" +) + +type CreateIntegrationStoreDirectUIOptionHiddenUnion3 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIOptionHidden1 *CreateIntegrationStoreDirectUIOptionHidden1 `queryParam:"inline"` + CreateIntegrationStoreDirectUIOptionHiddenEnum1 *CreateIntegrationStoreDirectUIOptionHiddenEnum1 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionHiddenUnion3Type +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion3Boolean(boolean bool) CreateIntegrationStoreDirectUIOptionHiddenUnion3 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeBoolean + + return CreateIntegrationStoreDirectUIOptionHiddenUnion3{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion3CreateIntegrationStoreDirectUIOptionHidden1(createIntegrationStoreDirectUIOptionHidden1 CreateIntegrationStoreDirectUIOptionHidden1) CreateIntegrationStoreDirectUIOptionHiddenUnion3 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeCreateIntegrationStoreDirectUIOptionHidden1 + + return CreateIntegrationStoreDirectUIOptionHiddenUnion3{ + CreateIntegrationStoreDirectUIOptionHidden1: &createIntegrationStoreDirectUIOptionHidden1, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion3CreateIntegrationStoreDirectUIOptionHiddenEnum1(createIntegrationStoreDirectUIOptionHiddenEnum1 CreateIntegrationStoreDirectUIOptionHiddenEnum1) CreateIntegrationStoreDirectUIOptionHiddenUnion3 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeCreateIntegrationStoreDirectUIOptionHiddenEnum1 + + return CreateIntegrationStoreDirectUIOptionHiddenUnion3{ + CreateIntegrationStoreDirectUIOptionHiddenEnum1: &createIntegrationStoreDirectUIOptionHiddenEnum1, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionHiddenUnion3) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIOptionHidden1 CreateIntegrationStoreDirectUIOptionHidden1 = CreateIntegrationStoreDirectUIOptionHidden1{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOptionHidden1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOptionHidden1 = &createIntegrationStoreDirectUIOptionHidden1 + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeCreateIntegrationStoreDirectUIOptionHidden1 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIOptionHiddenEnum1 CreateIntegrationStoreDirectUIOptionHiddenEnum1 = CreateIntegrationStoreDirectUIOptionHiddenEnum1("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOptionHiddenEnum1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOptionHiddenEnum1 = &createIntegrationStoreDirectUIOptionHiddenEnum1 + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion3TypeCreateIntegrationStoreDirectUIOptionHiddenEnum1 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionHiddenUnion3", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionHiddenUnion3) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIOptionHidden1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOptionHidden1, "", true) + } + + if u.CreateIntegrationStoreDirectUIOptionHiddenEnum1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOptionHiddenEnum1, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionHiddenUnion3: all fields are null") +} + +type CreateIntegrationStoreDirectUIOption3 struct { + Value string `json:"value"` + Label string `json:"label"` + Disabled *CreateIntegrationStoreDirectUIOptionDisabledUnion3 `json:"disabled,omitempty"` + Hidden *CreateIntegrationStoreDirectUIOptionHiddenUnion3 `json:"hidden,omitempty"` +} + +func (c CreateIntegrationStoreDirectUIOption3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOption3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"value", "label"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOption3) GetValue() string { + if o == nil { + return "" + } + return o.Value +} + +func (o *CreateIntegrationStoreDirectUIOption3) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *CreateIntegrationStoreDirectUIOption3) GetDisabled() *CreateIntegrationStoreDirectUIOptionDisabledUnion3 { + if o == nil { + return nil + } + return o.Disabled +} + +func (o *CreateIntegrationStoreDirectUIOption3) GetHidden() *CreateIntegrationStoreDirectUIOptionHiddenUnion3 { + if o == nil { + return nil + } + return o.Hidden +} + +type CreateIntegrationStoreDirectUIOptionUnionType string + +const ( + CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption3 CreateIntegrationStoreDirectUIOptionUnionType = "createIntegrationStoreDirect_ui:option_3" + CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption4 CreateIntegrationStoreDirectUIOptionUnionType = "createIntegrationStoreDirect_ui:option_4" + CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption5 CreateIntegrationStoreDirectUIOptionUnionType = "createIntegrationStoreDirect_ui:option_5" +) + +type CreateIntegrationStoreDirectUIOptionUnion struct { + CreateIntegrationStoreDirectUIOption3 *CreateIntegrationStoreDirectUIOption3 `queryParam:"inline"` + CreateIntegrationStoreDirectUIOption4 *CreateIntegrationStoreDirectUIOption4 `queryParam:"inline"` + CreateIntegrationStoreDirectUIOption5 *CreateIntegrationStoreDirectUIOption5 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionUnionType +} + +func CreateCreateIntegrationStoreDirectUIOptionUnionCreateIntegrationStoreDirectUIOption3(createIntegrationStoreDirectUIOption3 CreateIntegrationStoreDirectUIOption3) CreateIntegrationStoreDirectUIOptionUnion { + typ := CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption3 + + return CreateIntegrationStoreDirectUIOptionUnion{ + CreateIntegrationStoreDirectUIOption3: &createIntegrationStoreDirectUIOption3, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionUnionCreateIntegrationStoreDirectUIOption4(createIntegrationStoreDirectUIOption4 CreateIntegrationStoreDirectUIOption4) CreateIntegrationStoreDirectUIOptionUnion { + typ := CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption4 + + return CreateIntegrationStoreDirectUIOptionUnion{ + CreateIntegrationStoreDirectUIOption4: &createIntegrationStoreDirectUIOption4, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionUnionCreateIntegrationStoreDirectUIOption5(createIntegrationStoreDirectUIOption5 CreateIntegrationStoreDirectUIOption5) CreateIntegrationStoreDirectUIOptionUnion { + typ := CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption5 + + return CreateIntegrationStoreDirectUIOptionUnion{ + CreateIntegrationStoreDirectUIOption5: &createIntegrationStoreDirectUIOption5, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionUnion) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIOption3 CreateIntegrationStoreDirectUIOption3 = CreateIntegrationStoreDirectUIOption3{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOption3, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOption3 = &createIntegrationStoreDirectUIOption3 + u.Type = CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption3 + return nil + } + + var createIntegrationStoreDirectUIOption4 CreateIntegrationStoreDirectUIOption4 = CreateIntegrationStoreDirectUIOption4{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOption4, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOption4 = &createIntegrationStoreDirectUIOption4 + u.Type = CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption4 + return nil + } + + var createIntegrationStoreDirectUIOption5 CreateIntegrationStoreDirectUIOption5 = CreateIntegrationStoreDirectUIOption5{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIOption5, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIOption5 = &createIntegrationStoreDirectUIOption5 + u.Type = CreateIntegrationStoreDirectUIOptionUnionTypeCreateIntegrationStoreDirectUIOption5 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionUnion", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionUnion) MarshalJSON() ([]byte, error) { + if u.CreateIntegrationStoreDirectUIOption3 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOption3, "", true) + } + + if u.CreateIntegrationStoreDirectUIOption4 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOption4, "", true) + } + + if u.CreateIntegrationStoreDirectUIOption5 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIOption5, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionUnion: all fields are null") +} + +type MaxLengthAtBRANDAt78223 struct { +} + +func (m MaxLengthAtBRANDAt78223) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MaxLengthAtBRANDAt78223) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectMaxLength3 struct { + AtBRANDAt7822 MaxLengthAtBRANDAt78223 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectMaxLength3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectMaxLength3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectMaxLength3) GetAtBRANDAt7822() MaxLengthAtBRANDAt78223 { + if o == nil { + return MaxLengthAtBRANDAt78223{} + } + return o.AtBRANDAt7822 +} + +type MinLengthAtBRANDAt78223 struct { +} + +func (m MinLengthAtBRANDAt78223) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MinLengthAtBRANDAt78223) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectMinLength3 struct { + AtBRANDAt7822 MinLengthAtBRANDAt78223 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectMinLength3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectMinLength3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectMinLength3) GetAtBRANDAt7822() MinLengthAtBRANDAt78223 { + if o == nil { + return MinLengthAtBRANDAt78223{} + } + return o.AtBRANDAt7822 +} + +type PatternAtBRANDAt78223 struct { +} + +func (p PatternAtBRANDAt78223) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatternAtBRANDAt78223) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectPattern3 struct { + AtBRANDAt7822 PatternAtBRANDAt78223 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectPattern3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPattern3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPattern3) GetAtBRANDAt7822() PatternAtBRANDAt78223 { + if o == nil { + return PatternAtBRANDAt78223{} + } + return o.AtBRANDAt7822 +} + +type CreateIntegrationStoreDirectUIReadOnlyEnum7 string + +const ( + CreateIntegrationStoreDirectUIReadOnlyEnum7Update CreateIntegrationStoreDirectUIReadOnlyEnum7 = "update" + CreateIntegrationStoreDirectUIReadOnlyEnum7Create CreateIntegrationStoreDirectUIReadOnlyEnum7 = "create" +) + +func (e CreateIntegrationStoreDirectUIReadOnlyEnum7) ToPointer() *CreateIntegrationStoreDirectUIReadOnlyEnum7 { + return &e +} +func (e *CreateIntegrationStoreDirectUIReadOnlyEnum7) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIReadOnlyEnum7(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIReadOnlyEnum7: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnly7 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIReadOnly7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIReadOnly7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIReadOnly7) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIReadOnlyUnion7Type string + +const ( + CreateIntegrationStoreDirectUIReadOnlyUnion7TypeBoolean CreateIntegrationStoreDirectUIReadOnlyUnion7Type = "boolean" + CreateIntegrationStoreDirectUIReadOnlyUnion7TypeCreateIntegrationStoreDirectUIReadOnly7 CreateIntegrationStoreDirectUIReadOnlyUnion7Type = "createIntegrationStoreDirect_ui:read-only_7" + CreateIntegrationStoreDirectUIReadOnlyUnion7TypeCreateIntegrationStoreDirectUIReadOnlyEnum7 CreateIntegrationStoreDirectUIReadOnlyUnion7Type = "createIntegrationStoreDirect_ui:read-only_enum_7" +) + +type CreateIntegrationStoreDirectUIReadOnlyUnion7 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnly7 *CreateIntegrationStoreDirectUIReadOnly7 `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnlyEnum7 *CreateIntegrationStoreDirectUIReadOnlyEnum7 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIReadOnlyUnion7Type +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion7Boolean(boolean bool) CreateIntegrationStoreDirectUIReadOnlyUnion7 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion7TypeBoolean + + return CreateIntegrationStoreDirectUIReadOnlyUnion7{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion7CreateIntegrationStoreDirectUIReadOnly7(createIntegrationStoreDirectUIReadOnly7 CreateIntegrationStoreDirectUIReadOnly7) CreateIntegrationStoreDirectUIReadOnlyUnion7 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion7TypeCreateIntegrationStoreDirectUIReadOnly7 + + return CreateIntegrationStoreDirectUIReadOnlyUnion7{ + CreateIntegrationStoreDirectUIReadOnly7: &createIntegrationStoreDirectUIReadOnly7, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion7CreateIntegrationStoreDirectUIReadOnlyEnum7(createIntegrationStoreDirectUIReadOnlyEnum7 CreateIntegrationStoreDirectUIReadOnlyEnum7) CreateIntegrationStoreDirectUIReadOnlyUnion7 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion7TypeCreateIntegrationStoreDirectUIReadOnlyEnum7 + + return CreateIntegrationStoreDirectUIReadOnlyUnion7{ + CreateIntegrationStoreDirectUIReadOnlyEnum7: &createIntegrationStoreDirectUIReadOnlyEnum7, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIReadOnlyUnion7) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIReadOnly7 CreateIntegrationStoreDirectUIReadOnly7 = CreateIntegrationStoreDirectUIReadOnly7{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnly7, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnly7 = &createIntegrationStoreDirectUIReadOnly7 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion7TypeCreateIntegrationStoreDirectUIReadOnly7 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion7TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIReadOnlyEnum7 CreateIntegrationStoreDirectUIReadOnlyEnum7 = CreateIntegrationStoreDirectUIReadOnlyEnum7("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnlyEnum7, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnlyEnum7 = &createIntegrationStoreDirectUIReadOnlyEnum7 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion7TypeCreateIntegrationStoreDirectUIReadOnlyEnum7 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIReadOnlyUnion7", string(data)) +} + +func (u CreateIntegrationStoreDirectUIReadOnlyUnion7) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnly7 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnly7, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnlyEnum7 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnlyEnum7, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIReadOnlyUnion7: all fields are null") +} + +type CreateIntegrationStoreDirectUIHiddenEnum7 string + +const ( + CreateIntegrationStoreDirectUIHiddenEnum7Update CreateIntegrationStoreDirectUIHiddenEnum7 = "update" + CreateIntegrationStoreDirectUIHiddenEnum7Create CreateIntegrationStoreDirectUIHiddenEnum7 = "create" +) + +func (e CreateIntegrationStoreDirectUIHiddenEnum7) ToPointer() *CreateIntegrationStoreDirectUIHiddenEnum7 { + return &e +} +func (e *CreateIntegrationStoreDirectUIHiddenEnum7) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIHiddenEnum7(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIHiddenEnum7: %v", v) + } +} + +type CreateIntegrationStoreDirectUIHidden7 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIHidden7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIHidden7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIHidden7) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIHiddenUnion7Type string + +const ( + CreateIntegrationStoreDirectUIHiddenUnion7TypeBoolean CreateIntegrationStoreDirectUIHiddenUnion7Type = "boolean" + CreateIntegrationStoreDirectUIHiddenUnion7TypeCreateIntegrationStoreDirectUIHidden7 CreateIntegrationStoreDirectUIHiddenUnion7Type = "createIntegrationStoreDirect_ui:hidden_7" + CreateIntegrationStoreDirectUIHiddenUnion7TypeCreateIntegrationStoreDirectUIHiddenEnum7 CreateIntegrationStoreDirectUIHiddenUnion7Type = "createIntegrationStoreDirect_ui:hidden_enum_7" +) + +type CreateIntegrationStoreDirectUIHiddenUnion7 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIHidden7 *CreateIntegrationStoreDirectUIHidden7 `queryParam:"inline"` + CreateIntegrationStoreDirectUIHiddenEnum7 *CreateIntegrationStoreDirectUIHiddenEnum7 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIHiddenUnion7Type +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion7Boolean(boolean bool) CreateIntegrationStoreDirectUIHiddenUnion7 { + typ := CreateIntegrationStoreDirectUIHiddenUnion7TypeBoolean + + return CreateIntegrationStoreDirectUIHiddenUnion7{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion7CreateIntegrationStoreDirectUIHidden7(createIntegrationStoreDirectUIHidden7 CreateIntegrationStoreDirectUIHidden7) CreateIntegrationStoreDirectUIHiddenUnion7 { + typ := CreateIntegrationStoreDirectUIHiddenUnion7TypeCreateIntegrationStoreDirectUIHidden7 + + return CreateIntegrationStoreDirectUIHiddenUnion7{ + CreateIntegrationStoreDirectUIHidden7: &createIntegrationStoreDirectUIHidden7, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion7CreateIntegrationStoreDirectUIHiddenEnum7(createIntegrationStoreDirectUIHiddenEnum7 CreateIntegrationStoreDirectUIHiddenEnum7) CreateIntegrationStoreDirectUIHiddenUnion7 { + typ := CreateIntegrationStoreDirectUIHiddenUnion7TypeCreateIntegrationStoreDirectUIHiddenEnum7 + + return CreateIntegrationStoreDirectUIHiddenUnion7{ + CreateIntegrationStoreDirectUIHiddenEnum7: &createIntegrationStoreDirectUIHiddenEnum7, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIHiddenUnion7) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIHidden7 CreateIntegrationStoreDirectUIHidden7 = CreateIntegrationStoreDirectUIHidden7{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHidden7, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHidden7 = &createIntegrationStoreDirectUIHidden7 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion7TypeCreateIntegrationStoreDirectUIHidden7 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIHiddenUnion7TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIHiddenEnum7 CreateIntegrationStoreDirectUIHiddenEnum7 = CreateIntegrationStoreDirectUIHiddenEnum7("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHiddenEnum7, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHiddenEnum7 = &createIntegrationStoreDirectUIHiddenEnum7 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion7TypeCreateIntegrationStoreDirectUIHiddenEnum7 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIHiddenUnion7", string(data)) +} + +func (u CreateIntegrationStoreDirectUIHiddenUnion7) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIHidden7 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHidden7, "", true) + } + + if u.CreateIntegrationStoreDirectUIHiddenEnum7 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHiddenEnum7, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIHiddenUnion7: all fields are null") +} + +type CreateIntegrationStoreDirectUIDisabledEnum7 string + +const ( + CreateIntegrationStoreDirectUIDisabledEnum7Update CreateIntegrationStoreDirectUIDisabledEnum7 = "update" + CreateIntegrationStoreDirectUIDisabledEnum7Create CreateIntegrationStoreDirectUIDisabledEnum7 = "create" +) + +func (e CreateIntegrationStoreDirectUIDisabledEnum7) ToPointer() *CreateIntegrationStoreDirectUIDisabledEnum7 { + return &e +} +func (e *CreateIntegrationStoreDirectUIDisabledEnum7) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIDisabledEnum7(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIDisabledEnum7: %v", v) + } +} + +type CreateIntegrationStoreDirectUIDisabled7 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDisabled7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDisabled7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDisabled7) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDisabledUnion7Type string + +const ( + CreateIntegrationStoreDirectUIDisabledUnion7TypeBoolean CreateIntegrationStoreDirectUIDisabledUnion7Type = "boolean" + CreateIntegrationStoreDirectUIDisabledUnion7TypeCreateIntegrationStoreDirectUIDisabled7 CreateIntegrationStoreDirectUIDisabledUnion7Type = "createIntegrationStoreDirect_ui:disabled_7" + CreateIntegrationStoreDirectUIDisabledUnion7TypeCreateIntegrationStoreDirectUIDisabledEnum7 CreateIntegrationStoreDirectUIDisabledUnion7Type = "createIntegrationStoreDirect_ui:disabled_enum_7" +) + +type CreateIntegrationStoreDirectUIDisabledUnion7 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabled7 *CreateIntegrationStoreDirectUIDisabled7 `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabledEnum7 *CreateIntegrationStoreDirectUIDisabledEnum7 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDisabledUnion7Type +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion7Boolean(boolean bool) CreateIntegrationStoreDirectUIDisabledUnion7 { + typ := CreateIntegrationStoreDirectUIDisabledUnion7TypeBoolean + + return CreateIntegrationStoreDirectUIDisabledUnion7{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion7CreateIntegrationStoreDirectUIDisabled7(createIntegrationStoreDirectUIDisabled7 CreateIntegrationStoreDirectUIDisabled7) CreateIntegrationStoreDirectUIDisabledUnion7 { + typ := CreateIntegrationStoreDirectUIDisabledUnion7TypeCreateIntegrationStoreDirectUIDisabled7 + + return CreateIntegrationStoreDirectUIDisabledUnion7{ + CreateIntegrationStoreDirectUIDisabled7: &createIntegrationStoreDirectUIDisabled7, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion7CreateIntegrationStoreDirectUIDisabledEnum7(createIntegrationStoreDirectUIDisabledEnum7 CreateIntegrationStoreDirectUIDisabledEnum7) CreateIntegrationStoreDirectUIDisabledUnion7 { + typ := CreateIntegrationStoreDirectUIDisabledUnion7TypeCreateIntegrationStoreDirectUIDisabledEnum7 + + return CreateIntegrationStoreDirectUIDisabledUnion7{ + CreateIntegrationStoreDirectUIDisabledEnum7: &createIntegrationStoreDirectUIDisabledEnum7, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDisabledUnion7) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDisabled7 CreateIntegrationStoreDirectUIDisabled7 = CreateIntegrationStoreDirectUIDisabled7{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabled7, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabled7 = &createIntegrationStoreDirectUIDisabled7 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion7TypeCreateIntegrationStoreDirectUIDisabled7 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIDisabledUnion7TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIDisabledEnum7 CreateIntegrationStoreDirectUIDisabledEnum7 = CreateIntegrationStoreDirectUIDisabledEnum7("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabledEnum7, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabledEnum7 = &createIntegrationStoreDirectUIDisabledEnum7 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion7TypeCreateIntegrationStoreDirectUIDisabledEnum7 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDisabledUnion7", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDisabledUnion7) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabled7 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabled7, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabledEnum7 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabledEnum7, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDisabledUnion7: all fields are null") +} + +type CreateIntegrationStoreDirectUIDescription7 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDescription7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDescription7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDescription7) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDescriptionUnion7Type string + +const ( + CreateIntegrationStoreDirectUIDescriptionUnion7TypeStr CreateIntegrationStoreDirectUIDescriptionUnion7Type = "str" + CreateIntegrationStoreDirectUIDescriptionUnion7TypeCreateIntegrationStoreDirectUIDescription7 CreateIntegrationStoreDirectUIDescriptionUnion7Type = "createIntegrationStoreDirect_ui:description_7" +) + +type CreateIntegrationStoreDirectUIDescriptionUnion7 struct { + Str *string `queryParam:"inline"` + CreateIntegrationStoreDirectUIDescription7 *CreateIntegrationStoreDirectUIDescription7 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDescriptionUnion7Type +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion7Str(str string) CreateIntegrationStoreDirectUIDescriptionUnion7 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion7TypeStr + + return CreateIntegrationStoreDirectUIDescriptionUnion7{ + Str: &str, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion7CreateIntegrationStoreDirectUIDescription7(createIntegrationStoreDirectUIDescription7 CreateIntegrationStoreDirectUIDescription7) CreateIntegrationStoreDirectUIDescriptionUnion7 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion7TypeCreateIntegrationStoreDirectUIDescription7 + + return CreateIntegrationStoreDirectUIDescriptionUnion7{ + CreateIntegrationStoreDirectUIDescription7: &createIntegrationStoreDirectUIDescription7, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDescriptionUnion7) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDescription7 CreateIntegrationStoreDirectUIDescription7 = CreateIntegrationStoreDirectUIDescription7{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDescription7, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDescription7 = &createIntegrationStoreDirectUIDescription7 + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion7TypeCreateIntegrationStoreDirectUIDescription7 + return nil + } + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion7TypeStr + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDescriptionUnion7", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDescriptionUnion7) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.CreateIntegrationStoreDirectUIDescription7 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDescription7, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDescriptionUnion7: all fields are null") +} + +type CreateIntegrationStoreDirectUIFormattedValue7 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIFormattedValue7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIFormattedValue7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIFormattedValue7) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesVercelRegion struct { + Type CreateIntegrationStoreDirectTypeString4 `json:"type"` + UIControl CreateIntegrationStoreDirectUIControlVercelRegion `json:"ui:control"` + UIOptions []CreateIntegrationStoreDirectUIOptionUnion `json:"ui:options"` + Enum []string `json:"enum,omitempty"` + MaxLength *CreateIntegrationStoreDirectMaxLength3 `json:"maxLength,omitempty"` + MinLength *CreateIntegrationStoreDirectMinLength3 `json:"minLength,omitempty"` + Pattern *CreateIntegrationStoreDirectPattern3 `json:"pattern,omitempty"` + Description *string `json:"description,omitempty"` + Default *string `json:"default,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *CreateIntegrationStoreDirectUIReadOnlyUnion7 `json:"ui:read-only,omitempty"` + UIHidden *CreateIntegrationStoreDirectUIHiddenUnion7 `json:"ui:hidden,omitempty"` + UIDisabled *CreateIntegrationStoreDirectUIDisabledUnion7 `json:"ui:disabled,omitempty"` + UIDescription *CreateIntegrationStoreDirectUIDescriptionUnion7 `json:"ui:description,omitempty"` + UIFormattedValue *CreateIntegrationStoreDirectUIFormattedValue7 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` +} + +func (c CreateIntegrationStoreDirectPropertiesVercelRegion) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesVercelRegion) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ui:control", "ui:options"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetType() CreateIntegrationStoreDirectTypeString4 { + if o == nil { + return CreateIntegrationStoreDirectTypeString4("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUIControl() CreateIntegrationStoreDirectUIControlVercelRegion { + if o == nil { + return CreateIntegrationStoreDirectUIControlVercelRegion("") + } + return o.UIControl +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUIOptions() []CreateIntegrationStoreDirectUIOptionUnion { + if o == nil { + return []CreateIntegrationStoreDirectUIOptionUnion{} + } + return o.UIOptions +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetEnum() []string { + if o == nil { + return nil + } + return o.Enum +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetMaxLength() *CreateIntegrationStoreDirectMaxLength3 { + if o == nil { + return nil + } + return o.MaxLength +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetMinLength() *CreateIntegrationStoreDirectMinLength3 { + if o == nil { + return nil + } + return o.MinLength +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetPattern() *CreateIntegrationStoreDirectPattern3 { + if o == nil { + return nil + } + return o.Pattern +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetDefault() *string { + if o == nil { + return nil + } + return o.Default +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUILabel() *string { + if o == nil { + return nil + } + return o.UILabel +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUIReadOnly() *CreateIntegrationStoreDirectUIReadOnlyUnion7 { + if o == nil { + return nil + } + return o.UIReadOnly +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUIHidden() *CreateIntegrationStoreDirectUIHiddenUnion7 { + if o == nil { + return nil + } + return o.UIHidden +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUIDisabled() *CreateIntegrationStoreDirectUIDisabledUnion7 { + if o == nil { + return nil + } + return o.UIDisabled +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUIDescription() *CreateIntegrationStoreDirectUIDescriptionUnion7 { + if o == nil { + return nil + } + return o.UIDescription +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUIFormattedValue() *CreateIntegrationStoreDirectUIFormattedValue7 { + if o == nil { + return nil + } + return o.UIFormattedValue +} + +func (o *CreateIntegrationStoreDirectPropertiesVercelRegion) GetUIPlaceholder() *string { + if o == nil { + return nil + } + return o.UIPlaceholder +} + +type CreateIntegrationStoreDirectTypeArray2 string + +const ( + CreateIntegrationStoreDirectTypeArray2Array CreateIntegrationStoreDirectTypeArray2 = "array" +) + +func (e CreateIntegrationStoreDirectTypeArray2) ToPointer() *CreateIntegrationStoreDirectTypeArray2 { + return &e +} +func (e *CreateIntegrationStoreDirectTypeArray2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "array": + *e = CreateIntegrationStoreDirectTypeArray2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeArray2: %v", v) + } +} + +type CreateIntegrationStoreDirectTypeString3 string + +const ( + CreateIntegrationStoreDirectTypeString3String CreateIntegrationStoreDirectTypeString3 = "string" +) + +func (e CreateIntegrationStoreDirectTypeString3) ToPointer() *CreateIntegrationStoreDirectTypeString3 { + return &e +} +func (e *CreateIntegrationStoreDirectTypeString3) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "string": + *e = CreateIntegrationStoreDirectTypeString3(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeString3: %v", v) + } +} + +type MinLengthAtBRANDAt7822String struct { +} + +func (m MinLengthAtBRANDAt7822String) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MinLengthAtBRANDAt7822String) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectMinLengthString struct { + AtBRANDAt7822 MinLengthAtBRANDAt7822String `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectMinLengthString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectMinLengthString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectMinLengthString) GetAtBRANDAt7822() MinLengthAtBRANDAt7822String { + if o == nil { + return MinLengthAtBRANDAt7822String{} + } + return o.AtBRANDAt7822 +} + +type MaxLengthAtBRANDAt7822String struct { +} + +func (m MaxLengthAtBRANDAt7822String) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MaxLengthAtBRANDAt7822String) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectMaxLengthString struct { + AtBRANDAt7822 MaxLengthAtBRANDAt7822String `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectMaxLengthString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectMaxLengthString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectMaxLengthString) GetAtBRANDAt7822() MaxLengthAtBRANDAt7822String { + if o == nil { + return MaxLengthAtBRANDAt7822String{} + } + return o.AtBRANDAt7822 +} + +type PatternAtBRANDAt7822String struct { +} + +func (p PatternAtBRANDAt7822String) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatternAtBRANDAt7822String) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectPatternString struct { + AtBRANDAt7822 PatternAtBRANDAt7822String `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectPatternString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPatternString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPatternString) GetAtBRANDAt7822() PatternAtBRANDAt7822String { + if o == nil { + return PatternAtBRANDAt7822String{} + } + return o.AtBRANDAt7822 +} + +type CreateIntegrationStoreDirectItemsString struct { + Type CreateIntegrationStoreDirectTypeString3 `json:"type"` + Description *string `json:"description,omitempty"` + MinLength *CreateIntegrationStoreDirectMinLengthString `json:"minLength,omitempty"` + MaxLength *CreateIntegrationStoreDirectMaxLengthString `json:"maxLength,omitempty"` + Pattern *CreateIntegrationStoreDirectPatternString `json:"pattern,omitempty"` + Default *string `json:"default,omitempty"` + Enum []string `json:"enum,omitempty"` +} + +func (c CreateIntegrationStoreDirectItemsString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectItemsString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectItemsString) GetType() CreateIntegrationStoreDirectTypeString3 { + if o == nil { + return CreateIntegrationStoreDirectTypeString3("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectItemsString) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectItemsString) GetMinLength() *CreateIntegrationStoreDirectMinLengthString { + if o == nil { + return nil + } + return o.MinLength +} + +func (o *CreateIntegrationStoreDirectItemsString) GetMaxLength() *CreateIntegrationStoreDirectMaxLengthString { + if o == nil { + return nil + } + return o.MaxLength +} + +func (o *CreateIntegrationStoreDirectItemsString) GetPattern() *CreateIntegrationStoreDirectPatternString { + if o == nil { + return nil + } + return o.Pattern +} + +func (o *CreateIntegrationStoreDirectItemsString) GetDefault() *string { + if o == nil { + return nil + } + return o.Default +} + +func (o *CreateIntegrationStoreDirectItemsString) GetEnum() []string { + if o == nil { + return nil + } + return o.Enum +} + +type CreateIntegrationStoreDirectUIControlMultiSelect string + +const ( + CreateIntegrationStoreDirectUIControlMultiSelectMultiSelect CreateIntegrationStoreDirectUIControlMultiSelect = "multi-select" +) + +func (e CreateIntegrationStoreDirectUIControlMultiSelect) ToPointer() *CreateIntegrationStoreDirectUIControlMultiSelect { + return &e +} +func (e *CreateIntegrationStoreDirectUIControlMultiSelect) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "multi-select": + *e = CreateIntegrationStoreDirectUIControlMultiSelect(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIControlMultiSelect: %v", v) + } +} + +type CreateIntegrationStoreDirectDisabledUIOptionEnum2 string + +const ( + CreateIntegrationStoreDirectDisabledUIOptionEnum2Update CreateIntegrationStoreDirectDisabledUIOptionEnum2 = "update" + CreateIntegrationStoreDirectDisabledUIOptionEnum2Create CreateIntegrationStoreDirectDisabledUIOptionEnum2 = "create" +) + +func (e CreateIntegrationStoreDirectDisabledUIOptionEnum2) ToPointer() *CreateIntegrationStoreDirectDisabledUIOptionEnum2 { + return &e +} +func (e *CreateIntegrationStoreDirectDisabledUIOptionEnum2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectDisabledUIOptionEnum2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectDisabledUIOptionEnum2: %v", v) + } +} + +type CreateIntegrationStoreDirectDisabledUIOption2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectDisabledUIOption2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectDisabledUIOption2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectDisabledUIOption2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIOptionDisabledUnion2Type string + +const ( + CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeBoolean CreateIntegrationStoreDirectUIOptionDisabledUnion2Type = "boolean" + CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeCreateIntegrationStoreDirectDisabledUIOption2 CreateIntegrationStoreDirectUIOptionDisabledUnion2Type = "createIntegrationStoreDirect_disabled_ui:option_2" + CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeCreateIntegrationStoreDirectDisabledUIOptionEnum2 CreateIntegrationStoreDirectUIOptionDisabledUnion2Type = "createIntegrationStoreDirect_disabled_ui:option_enum_2" +) + +type CreateIntegrationStoreDirectUIOptionDisabledUnion2 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectDisabledUIOption2 *CreateIntegrationStoreDirectDisabledUIOption2 `queryParam:"inline"` + CreateIntegrationStoreDirectDisabledUIOptionEnum2 *CreateIntegrationStoreDirectDisabledUIOptionEnum2 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionDisabledUnion2Type +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion2Boolean(boolean bool) CreateIntegrationStoreDirectUIOptionDisabledUnion2 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeBoolean + + return CreateIntegrationStoreDirectUIOptionDisabledUnion2{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion2CreateIntegrationStoreDirectDisabledUIOption2(createIntegrationStoreDirectDisabledUIOption2 CreateIntegrationStoreDirectDisabledUIOption2) CreateIntegrationStoreDirectUIOptionDisabledUnion2 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeCreateIntegrationStoreDirectDisabledUIOption2 + + return CreateIntegrationStoreDirectUIOptionDisabledUnion2{ + CreateIntegrationStoreDirectDisabledUIOption2: &createIntegrationStoreDirectDisabledUIOption2, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion2CreateIntegrationStoreDirectDisabledUIOptionEnum2(createIntegrationStoreDirectDisabledUIOptionEnum2 CreateIntegrationStoreDirectDisabledUIOptionEnum2) CreateIntegrationStoreDirectUIOptionDisabledUnion2 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeCreateIntegrationStoreDirectDisabledUIOptionEnum2 + + return CreateIntegrationStoreDirectUIOptionDisabledUnion2{ + CreateIntegrationStoreDirectDisabledUIOptionEnum2: &createIntegrationStoreDirectDisabledUIOptionEnum2, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionDisabledUnion2) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectDisabledUIOption2 CreateIntegrationStoreDirectDisabledUIOption2 = CreateIntegrationStoreDirectDisabledUIOption2{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectDisabledUIOption2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectDisabledUIOption2 = &createIntegrationStoreDirectDisabledUIOption2 + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeCreateIntegrationStoreDirectDisabledUIOption2 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeBoolean + return nil + } + + var createIntegrationStoreDirectDisabledUIOptionEnum2 CreateIntegrationStoreDirectDisabledUIOptionEnum2 = CreateIntegrationStoreDirectDisabledUIOptionEnum2("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectDisabledUIOptionEnum2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectDisabledUIOptionEnum2 = &createIntegrationStoreDirectDisabledUIOptionEnum2 + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion2TypeCreateIntegrationStoreDirectDisabledUIOptionEnum2 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionDisabledUnion2", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionDisabledUnion2) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectDisabledUIOption2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectDisabledUIOption2, "", true) + } + + if u.CreateIntegrationStoreDirectDisabledUIOptionEnum2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectDisabledUIOptionEnum2, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionDisabledUnion2: all fields are null") +} + +type CreateIntegrationStoreDirectHiddenUIOptionEnum2 string + +const ( + CreateIntegrationStoreDirectHiddenUIOptionEnum2Update CreateIntegrationStoreDirectHiddenUIOptionEnum2 = "update" + CreateIntegrationStoreDirectHiddenUIOptionEnum2Create CreateIntegrationStoreDirectHiddenUIOptionEnum2 = "create" +) + +func (e CreateIntegrationStoreDirectHiddenUIOptionEnum2) ToPointer() *CreateIntegrationStoreDirectHiddenUIOptionEnum2 { + return &e +} +func (e *CreateIntegrationStoreDirectHiddenUIOptionEnum2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectHiddenUIOptionEnum2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectHiddenUIOptionEnum2: %v", v) + } +} + +type CreateIntegrationStoreDirectHiddenUIOption2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectHiddenUIOption2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectHiddenUIOption2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectHiddenUIOption2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIOptionHiddenUnion2Type string + +const ( + CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeBoolean CreateIntegrationStoreDirectUIOptionHiddenUnion2Type = "boolean" + CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeCreateIntegrationStoreDirectHiddenUIOption2 CreateIntegrationStoreDirectUIOptionHiddenUnion2Type = "createIntegrationStoreDirect_hidden_ui:option_2" + CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeCreateIntegrationStoreDirectHiddenUIOptionEnum2 CreateIntegrationStoreDirectUIOptionHiddenUnion2Type = "createIntegrationStoreDirect_hidden_ui:option_enum_2" +) + +type CreateIntegrationStoreDirectUIOptionHiddenUnion2 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectHiddenUIOption2 *CreateIntegrationStoreDirectHiddenUIOption2 `queryParam:"inline"` + CreateIntegrationStoreDirectHiddenUIOptionEnum2 *CreateIntegrationStoreDirectHiddenUIOptionEnum2 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionHiddenUnion2Type +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion2Boolean(boolean bool) CreateIntegrationStoreDirectUIOptionHiddenUnion2 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeBoolean + + return CreateIntegrationStoreDirectUIOptionHiddenUnion2{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion2CreateIntegrationStoreDirectHiddenUIOption2(createIntegrationStoreDirectHiddenUIOption2 CreateIntegrationStoreDirectHiddenUIOption2) CreateIntegrationStoreDirectUIOptionHiddenUnion2 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeCreateIntegrationStoreDirectHiddenUIOption2 + + return CreateIntegrationStoreDirectUIOptionHiddenUnion2{ + CreateIntegrationStoreDirectHiddenUIOption2: &createIntegrationStoreDirectHiddenUIOption2, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion2CreateIntegrationStoreDirectHiddenUIOptionEnum2(createIntegrationStoreDirectHiddenUIOptionEnum2 CreateIntegrationStoreDirectHiddenUIOptionEnum2) CreateIntegrationStoreDirectUIOptionHiddenUnion2 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeCreateIntegrationStoreDirectHiddenUIOptionEnum2 + + return CreateIntegrationStoreDirectUIOptionHiddenUnion2{ + CreateIntegrationStoreDirectHiddenUIOptionEnum2: &createIntegrationStoreDirectHiddenUIOptionEnum2, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionHiddenUnion2) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectHiddenUIOption2 CreateIntegrationStoreDirectHiddenUIOption2 = CreateIntegrationStoreDirectHiddenUIOption2{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectHiddenUIOption2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectHiddenUIOption2 = &createIntegrationStoreDirectHiddenUIOption2 + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeCreateIntegrationStoreDirectHiddenUIOption2 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeBoolean + return nil + } + + var createIntegrationStoreDirectHiddenUIOptionEnum2 CreateIntegrationStoreDirectHiddenUIOptionEnum2 = CreateIntegrationStoreDirectHiddenUIOptionEnum2("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectHiddenUIOptionEnum2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectHiddenUIOptionEnum2 = &createIntegrationStoreDirectHiddenUIOptionEnum2 + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion2TypeCreateIntegrationStoreDirectHiddenUIOptionEnum2 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionHiddenUnion2", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionHiddenUnion2) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectHiddenUIOption2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectHiddenUIOption2, "", true) + } + + if u.CreateIntegrationStoreDirectHiddenUIOptionEnum2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectHiddenUIOptionEnum2, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionHiddenUnion2: all fields are null") +} + +type CreateIntegrationStoreDirectUIOption2 struct { + Value string `json:"value"` + Label string `json:"label"` + Disabled *CreateIntegrationStoreDirectUIOptionDisabledUnion2 `json:"disabled,omitempty"` + Hidden *CreateIntegrationStoreDirectUIOptionHiddenUnion2 `json:"hidden,omitempty"` +} + +func (c CreateIntegrationStoreDirectUIOption2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOption2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"value", "label"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOption2) GetValue() string { + if o == nil { + return "" + } + return o.Value +} + +func (o *CreateIntegrationStoreDirectUIOption2) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *CreateIntegrationStoreDirectUIOption2) GetDisabled() *CreateIntegrationStoreDirectUIOptionDisabledUnion2 { + if o == nil { + return nil + } + return o.Disabled +} + +func (o *CreateIntegrationStoreDirectUIOption2) GetHidden() *CreateIntegrationStoreDirectUIOptionHiddenUnion2 { + if o == nil { + return nil + } + return o.Hidden +} + +type CreateIntegrationStoreDirectUIReadOnlyEnum6 string + +const ( + CreateIntegrationStoreDirectUIReadOnlyEnum6Update CreateIntegrationStoreDirectUIReadOnlyEnum6 = "update" + CreateIntegrationStoreDirectUIReadOnlyEnum6Create CreateIntegrationStoreDirectUIReadOnlyEnum6 = "create" +) + +func (e CreateIntegrationStoreDirectUIReadOnlyEnum6) ToPointer() *CreateIntegrationStoreDirectUIReadOnlyEnum6 { + return &e +} +func (e *CreateIntegrationStoreDirectUIReadOnlyEnum6) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIReadOnlyEnum6(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIReadOnlyEnum6: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnly6 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIReadOnly6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIReadOnly6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIReadOnly6) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIReadOnlyUnion6Type string + +const ( + CreateIntegrationStoreDirectUIReadOnlyUnion6TypeBoolean CreateIntegrationStoreDirectUIReadOnlyUnion6Type = "boolean" + CreateIntegrationStoreDirectUIReadOnlyUnion6TypeCreateIntegrationStoreDirectUIReadOnly6 CreateIntegrationStoreDirectUIReadOnlyUnion6Type = "createIntegrationStoreDirect_ui:read-only_6" + CreateIntegrationStoreDirectUIReadOnlyUnion6TypeCreateIntegrationStoreDirectUIReadOnlyEnum6 CreateIntegrationStoreDirectUIReadOnlyUnion6Type = "createIntegrationStoreDirect_ui:read-only_enum_6" +) + +type CreateIntegrationStoreDirectUIReadOnlyUnion6 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnly6 *CreateIntegrationStoreDirectUIReadOnly6 `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnlyEnum6 *CreateIntegrationStoreDirectUIReadOnlyEnum6 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIReadOnlyUnion6Type +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion6Boolean(boolean bool) CreateIntegrationStoreDirectUIReadOnlyUnion6 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion6TypeBoolean + + return CreateIntegrationStoreDirectUIReadOnlyUnion6{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion6CreateIntegrationStoreDirectUIReadOnly6(createIntegrationStoreDirectUIReadOnly6 CreateIntegrationStoreDirectUIReadOnly6) CreateIntegrationStoreDirectUIReadOnlyUnion6 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion6TypeCreateIntegrationStoreDirectUIReadOnly6 + + return CreateIntegrationStoreDirectUIReadOnlyUnion6{ + CreateIntegrationStoreDirectUIReadOnly6: &createIntegrationStoreDirectUIReadOnly6, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion6CreateIntegrationStoreDirectUIReadOnlyEnum6(createIntegrationStoreDirectUIReadOnlyEnum6 CreateIntegrationStoreDirectUIReadOnlyEnum6) CreateIntegrationStoreDirectUIReadOnlyUnion6 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion6TypeCreateIntegrationStoreDirectUIReadOnlyEnum6 + + return CreateIntegrationStoreDirectUIReadOnlyUnion6{ + CreateIntegrationStoreDirectUIReadOnlyEnum6: &createIntegrationStoreDirectUIReadOnlyEnum6, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIReadOnlyUnion6) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIReadOnly6 CreateIntegrationStoreDirectUIReadOnly6 = CreateIntegrationStoreDirectUIReadOnly6{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnly6, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnly6 = &createIntegrationStoreDirectUIReadOnly6 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion6TypeCreateIntegrationStoreDirectUIReadOnly6 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion6TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIReadOnlyEnum6 CreateIntegrationStoreDirectUIReadOnlyEnum6 = CreateIntegrationStoreDirectUIReadOnlyEnum6("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnlyEnum6, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnlyEnum6 = &createIntegrationStoreDirectUIReadOnlyEnum6 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion6TypeCreateIntegrationStoreDirectUIReadOnlyEnum6 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIReadOnlyUnion6", string(data)) +} + +func (u CreateIntegrationStoreDirectUIReadOnlyUnion6) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnly6 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnly6, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnlyEnum6 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnlyEnum6, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIReadOnlyUnion6: all fields are null") +} + +type CreateIntegrationStoreDirectUIHiddenEnum6 string + +const ( + CreateIntegrationStoreDirectUIHiddenEnum6Update CreateIntegrationStoreDirectUIHiddenEnum6 = "update" + CreateIntegrationStoreDirectUIHiddenEnum6Create CreateIntegrationStoreDirectUIHiddenEnum6 = "create" +) + +func (e CreateIntegrationStoreDirectUIHiddenEnum6) ToPointer() *CreateIntegrationStoreDirectUIHiddenEnum6 { + return &e +} +func (e *CreateIntegrationStoreDirectUIHiddenEnum6) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIHiddenEnum6(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIHiddenEnum6: %v", v) + } +} + +type CreateIntegrationStoreDirectUIHidden6 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIHidden6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIHidden6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIHidden6) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIHiddenUnion6Type string + +const ( + CreateIntegrationStoreDirectUIHiddenUnion6TypeBoolean CreateIntegrationStoreDirectUIHiddenUnion6Type = "boolean" + CreateIntegrationStoreDirectUIHiddenUnion6TypeCreateIntegrationStoreDirectUIHidden6 CreateIntegrationStoreDirectUIHiddenUnion6Type = "createIntegrationStoreDirect_ui:hidden_6" + CreateIntegrationStoreDirectUIHiddenUnion6TypeCreateIntegrationStoreDirectUIHiddenEnum6 CreateIntegrationStoreDirectUIHiddenUnion6Type = "createIntegrationStoreDirect_ui:hidden_enum_6" +) + +type CreateIntegrationStoreDirectUIHiddenUnion6 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIHidden6 *CreateIntegrationStoreDirectUIHidden6 `queryParam:"inline"` + CreateIntegrationStoreDirectUIHiddenEnum6 *CreateIntegrationStoreDirectUIHiddenEnum6 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIHiddenUnion6Type +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion6Boolean(boolean bool) CreateIntegrationStoreDirectUIHiddenUnion6 { + typ := CreateIntegrationStoreDirectUIHiddenUnion6TypeBoolean + + return CreateIntegrationStoreDirectUIHiddenUnion6{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion6CreateIntegrationStoreDirectUIHidden6(createIntegrationStoreDirectUIHidden6 CreateIntegrationStoreDirectUIHidden6) CreateIntegrationStoreDirectUIHiddenUnion6 { + typ := CreateIntegrationStoreDirectUIHiddenUnion6TypeCreateIntegrationStoreDirectUIHidden6 + + return CreateIntegrationStoreDirectUIHiddenUnion6{ + CreateIntegrationStoreDirectUIHidden6: &createIntegrationStoreDirectUIHidden6, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion6CreateIntegrationStoreDirectUIHiddenEnum6(createIntegrationStoreDirectUIHiddenEnum6 CreateIntegrationStoreDirectUIHiddenEnum6) CreateIntegrationStoreDirectUIHiddenUnion6 { + typ := CreateIntegrationStoreDirectUIHiddenUnion6TypeCreateIntegrationStoreDirectUIHiddenEnum6 + + return CreateIntegrationStoreDirectUIHiddenUnion6{ + CreateIntegrationStoreDirectUIHiddenEnum6: &createIntegrationStoreDirectUIHiddenEnum6, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIHiddenUnion6) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIHidden6 CreateIntegrationStoreDirectUIHidden6 = CreateIntegrationStoreDirectUIHidden6{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHidden6, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHidden6 = &createIntegrationStoreDirectUIHidden6 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion6TypeCreateIntegrationStoreDirectUIHidden6 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIHiddenUnion6TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIHiddenEnum6 CreateIntegrationStoreDirectUIHiddenEnum6 = CreateIntegrationStoreDirectUIHiddenEnum6("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHiddenEnum6, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHiddenEnum6 = &createIntegrationStoreDirectUIHiddenEnum6 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion6TypeCreateIntegrationStoreDirectUIHiddenEnum6 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIHiddenUnion6", string(data)) +} + +func (u CreateIntegrationStoreDirectUIHiddenUnion6) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIHidden6 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHidden6, "", true) + } + + if u.CreateIntegrationStoreDirectUIHiddenEnum6 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHiddenEnum6, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIHiddenUnion6: all fields are null") +} + +type CreateIntegrationStoreDirectUIDisabledEnum6 string + +const ( + CreateIntegrationStoreDirectUIDisabledEnum6Update CreateIntegrationStoreDirectUIDisabledEnum6 = "update" + CreateIntegrationStoreDirectUIDisabledEnum6Create CreateIntegrationStoreDirectUIDisabledEnum6 = "create" +) + +func (e CreateIntegrationStoreDirectUIDisabledEnum6) ToPointer() *CreateIntegrationStoreDirectUIDisabledEnum6 { + return &e +} +func (e *CreateIntegrationStoreDirectUIDisabledEnum6) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIDisabledEnum6(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIDisabledEnum6: %v", v) + } +} + +type CreateIntegrationStoreDirectUIDisabled6 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDisabled6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDisabled6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDisabled6) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDisabledUnion6Type string + +const ( + CreateIntegrationStoreDirectUIDisabledUnion6TypeBoolean CreateIntegrationStoreDirectUIDisabledUnion6Type = "boolean" + CreateIntegrationStoreDirectUIDisabledUnion6TypeCreateIntegrationStoreDirectUIDisabled6 CreateIntegrationStoreDirectUIDisabledUnion6Type = "createIntegrationStoreDirect_ui:disabled_6" + CreateIntegrationStoreDirectUIDisabledUnion6TypeCreateIntegrationStoreDirectUIDisabledEnum6 CreateIntegrationStoreDirectUIDisabledUnion6Type = "createIntegrationStoreDirect_ui:disabled_enum_6" +) + +type CreateIntegrationStoreDirectUIDisabledUnion6 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabled6 *CreateIntegrationStoreDirectUIDisabled6 `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabledEnum6 *CreateIntegrationStoreDirectUIDisabledEnum6 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDisabledUnion6Type +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion6Boolean(boolean bool) CreateIntegrationStoreDirectUIDisabledUnion6 { + typ := CreateIntegrationStoreDirectUIDisabledUnion6TypeBoolean + + return CreateIntegrationStoreDirectUIDisabledUnion6{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion6CreateIntegrationStoreDirectUIDisabled6(createIntegrationStoreDirectUIDisabled6 CreateIntegrationStoreDirectUIDisabled6) CreateIntegrationStoreDirectUIDisabledUnion6 { + typ := CreateIntegrationStoreDirectUIDisabledUnion6TypeCreateIntegrationStoreDirectUIDisabled6 + + return CreateIntegrationStoreDirectUIDisabledUnion6{ + CreateIntegrationStoreDirectUIDisabled6: &createIntegrationStoreDirectUIDisabled6, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion6CreateIntegrationStoreDirectUIDisabledEnum6(createIntegrationStoreDirectUIDisabledEnum6 CreateIntegrationStoreDirectUIDisabledEnum6) CreateIntegrationStoreDirectUIDisabledUnion6 { + typ := CreateIntegrationStoreDirectUIDisabledUnion6TypeCreateIntegrationStoreDirectUIDisabledEnum6 + + return CreateIntegrationStoreDirectUIDisabledUnion6{ + CreateIntegrationStoreDirectUIDisabledEnum6: &createIntegrationStoreDirectUIDisabledEnum6, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDisabledUnion6) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDisabled6 CreateIntegrationStoreDirectUIDisabled6 = CreateIntegrationStoreDirectUIDisabled6{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabled6, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabled6 = &createIntegrationStoreDirectUIDisabled6 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion6TypeCreateIntegrationStoreDirectUIDisabled6 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIDisabledUnion6TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIDisabledEnum6 CreateIntegrationStoreDirectUIDisabledEnum6 = CreateIntegrationStoreDirectUIDisabledEnum6("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabledEnum6, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabledEnum6 = &createIntegrationStoreDirectUIDisabledEnum6 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion6TypeCreateIntegrationStoreDirectUIDisabledEnum6 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDisabledUnion6", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDisabledUnion6) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabled6 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabled6, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabledEnum6 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabledEnum6, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDisabledUnion6: all fields are null") +} + +type CreateIntegrationStoreDirectUIDescription6 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDescription6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDescription6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDescription6) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDescriptionUnion6Type string + +const ( + CreateIntegrationStoreDirectUIDescriptionUnion6TypeStr CreateIntegrationStoreDirectUIDescriptionUnion6Type = "str" + CreateIntegrationStoreDirectUIDescriptionUnion6TypeCreateIntegrationStoreDirectUIDescription6 CreateIntegrationStoreDirectUIDescriptionUnion6Type = "createIntegrationStoreDirect_ui:description_6" +) + +type CreateIntegrationStoreDirectUIDescriptionUnion6 struct { + Str *string `queryParam:"inline"` + CreateIntegrationStoreDirectUIDescription6 *CreateIntegrationStoreDirectUIDescription6 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDescriptionUnion6Type +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion6Str(str string) CreateIntegrationStoreDirectUIDescriptionUnion6 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion6TypeStr + + return CreateIntegrationStoreDirectUIDescriptionUnion6{ + Str: &str, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion6CreateIntegrationStoreDirectUIDescription6(createIntegrationStoreDirectUIDescription6 CreateIntegrationStoreDirectUIDescription6) CreateIntegrationStoreDirectUIDescriptionUnion6 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion6TypeCreateIntegrationStoreDirectUIDescription6 + + return CreateIntegrationStoreDirectUIDescriptionUnion6{ + CreateIntegrationStoreDirectUIDescription6: &createIntegrationStoreDirectUIDescription6, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDescriptionUnion6) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDescription6 CreateIntegrationStoreDirectUIDescription6 = CreateIntegrationStoreDirectUIDescription6{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDescription6, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDescription6 = &createIntegrationStoreDirectUIDescription6 + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion6TypeCreateIntegrationStoreDirectUIDescription6 + return nil + } + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion6TypeStr + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDescriptionUnion6", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDescriptionUnion6) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.CreateIntegrationStoreDirectUIDescription6 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDescription6, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDescriptionUnion6: all fields are null") +} + +type CreateIntegrationStoreDirectUIFormattedValue6 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIFormattedValue6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIFormattedValue6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIFormattedValue6) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesMultiSelect struct { + Type CreateIntegrationStoreDirectTypeArray2 `json:"type"` + Items CreateIntegrationStoreDirectItemsString `json:"items"` + UIControl CreateIntegrationStoreDirectUIControlMultiSelect `json:"ui:control"` + UIOptions []CreateIntegrationStoreDirectUIOption2 `json:"ui:options"` + MaxItems *float64 `json:"maxItems,omitempty"` + MinItems *float64 `json:"minItems,omitempty"` + Description *string `json:"description,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *CreateIntegrationStoreDirectUIReadOnlyUnion6 `json:"ui:read-only,omitempty"` + UIHidden *CreateIntegrationStoreDirectUIHiddenUnion6 `json:"ui:hidden,omitempty"` + UIDisabled *CreateIntegrationStoreDirectUIDisabledUnion6 `json:"ui:disabled,omitempty"` + UIDescription *CreateIntegrationStoreDirectUIDescriptionUnion6 `json:"ui:description,omitempty"` + UIFormattedValue *CreateIntegrationStoreDirectUIFormattedValue6 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` + Default []string `json:"default,omitempty"` + Example []string `json:"example,omitempty"` +} + +func (c CreateIntegrationStoreDirectPropertiesMultiSelect) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesMultiSelect) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "items", "ui:control", "ui:options"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetType() CreateIntegrationStoreDirectTypeArray2 { + if o == nil { + return CreateIntegrationStoreDirectTypeArray2("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetItems() CreateIntegrationStoreDirectItemsString { + if o == nil { + return CreateIntegrationStoreDirectItemsString{} + } + return o.Items +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUIControl() CreateIntegrationStoreDirectUIControlMultiSelect { + if o == nil { + return CreateIntegrationStoreDirectUIControlMultiSelect("") + } + return o.UIControl +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUIOptions() []CreateIntegrationStoreDirectUIOption2 { + if o == nil { + return []CreateIntegrationStoreDirectUIOption2{} + } + return o.UIOptions +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetMaxItems() *float64 { + if o == nil { + return nil + } + return o.MaxItems +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetMinItems() *float64 { + if o == nil { + return nil + } + return o.MinItems +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUILabel() *string { + if o == nil { + return nil + } + return o.UILabel +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUIReadOnly() *CreateIntegrationStoreDirectUIReadOnlyUnion6 { + if o == nil { + return nil + } + return o.UIReadOnly +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUIHidden() *CreateIntegrationStoreDirectUIHiddenUnion6 { + if o == nil { + return nil + } + return o.UIHidden +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUIDisabled() *CreateIntegrationStoreDirectUIDisabledUnion6 { + if o == nil { + return nil + } + return o.UIDisabled +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUIDescription() *CreateIntegrationStoreDirectUIDescriptionUnion6 { + if o == nil { + return nil + } + return o.UIDescription +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUIFormattedValue() *CreateIntegrationStoreDirectUIFormattedValue6 { + if o == nil { + return nil + } + return o.UIFormattedValue +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetUIPlaceholder() *string { + if o == nil { + return nil + } + return o.UIPlaceholder +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetDefault() []string { + if o == nil { + return nil + } + return o.Default +} + +func (o *CreateIntegrationStoreDirectPropertiesMultiSelect) GetExample() []string { + if o == nil { + return nil + } + return o.Example +} + +type CreateIntegrationStoreDirectTypeString2 string + +const ( + CreateIntegrationStoreDirectTypeString2String CreateIntegrationStoreDirectTypeString2 = "string" +) + +func (e CreateIntegrationStoreDirectTypeString2) ToPointer() *CreateIntegrationStoreDirectTypeString2 { + return &e +} +func (e *CreateIntegrationStoreDirectTypeString2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "string": + *e = CreateIntegrationStoreDirectTypeString2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeString2: %v", v) + } +} + +type CreateIntegrationStoreDirectUIControlSelect string + +const ( + CreateIntegrationStoreDirectUIControlSelectSelect CreateIntegrationStoreDirectUIControlSelect = "select" +) + +func (e CreateIntegrationStoreDirectUIControlSelect) ToPointer() *CreateIntegrationStoreDirectUIControlSelect { + return &e +} +func (e *CreateIntegrationStoreDirectUIControlSelect) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "select": + *e = CreateIntegrationStoreDirectUIControlSelect(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIControlSelect: %v", v) + } +} + +type CreateIntegrationStoreDirectDisabledUIOptionEnum1 string + +const ( + CreateIntegrationStoreDirectDisabledUIOptionEnum1Update CreateIntegrationStoreDirectDisabledUIOptionEnum1 = "update" + CreateIntegrationStoreDirectDisabledUIOptionEnum1Create CreateIntegrationStoreDirectDisabledUIOptionEnum1 = "create" +) + +func (e CreateIntegrationStoreDirectDisabledUIOptionEnum1) ToPointer() *CreateIntegrationStoreDirectDisabledUIOptionEnum1 { + return &e +} +func (e *CreateIntegrationStoreDirectDisabledUIOptionEnum1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectDisabledUIOptionEnum1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectDisabledUIOptionEnum1: %v", v) + } +} + +type CreateIntegrationStoreDirectDisabledUIOption1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectDisabledUIOption1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectDisabledUIOption1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectDisabledUIOption1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIOptionDisabledUnion1Type string + +const ( + CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeBoolean CreateIntegrationStoreDirectUIOptionDisabledUnion1Type = "boolean" + CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeCreateIntegrationStoreDirectDisabledUIOption1 CreateIntegrationStoreDirectUIOptionDisabledUnion1Type = "createIntegrationStoreDirect_disabled_ui:option_1" + CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeCreateIntegrationStoreDirectDisabledUIOptionEnum1 CreateIntegrationStoreDirectUIOptionDisabledUnion1Type = "createIntegrationStoreDirect_disabled_ui:option_enum_1" +) + +type CreateIntegrationStoreDirectUIOptionDisabledUnion1 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectDisabledUIOption1 *CreateIntegrationStoreDirectDisabledUIOption1 `queryParam:"inline"` + CreateIntegrationStoreDirectDisabledUIOptionEnum1 *CreateIntegrationStoreDirectDisabledUIOptionEnum1 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionDisabledUnion1Type +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion1Boolean(boolean bool) CreateIntegrationStoreDirectUIOptionDisabledUnion1 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeBoolean + + return CreateIntegrationStoreDirectUIOptionDisabledUnion1{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion1CreateIntegrationStoreDirectDisabledUIOption1(createIntegrationStoreDirectDisabledUIOption1 CreateIntegrationStoreDirectDisabledUIOption1) CreateIntegrationStoreDirectUIOptionDisabledUnion1 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeCreateIntegrationStoreDirectDisabledUIOption1 + + return CreateIntegrationStoreDirectUIOptionDisabledUnion1{ + CreateIntegrationStoreDirectDisabledUIOption1: &createIntegrationStoreDirectDisabledUIOption1, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionDisabledUnion1CreateIntegrationStoreDirectDisabledUIOptionEnum1(createIntegrationStoreDirectDisabledUIOptionEnum1 CreateIntegrationStoreDirectDisabledUIOptionEnum1) CreateIntegrationStoreDirectUIOptionDisabledUnion1 { + typ := CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeCreateIntegrationStoreDirectDisabledUIOptionEnum1 + + return CreateIntegrationStoreDirectUIOptionDisabledUnion1{ + CreateIntegrationStoreDirectDisabledUIOptionEnum1: &createIntegrationStoreDirectDisabledUIOptionEnum1, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionDisabledUnion1) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectDisabledUIOption1 CreateIntegrationStoreDirectDisabledUIOption1 = CreateIntegrationStoreDirectDisabledUIOption1{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectDisabledUIOption1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectDisabledUIOption1 = &createIntegrationStoreDirectDisabledUIOption1 + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeCreateIntegrationStoreDirectDisabledUIOption1 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeBoolean + return nil + } + + var createIntegrationStoreDirectDisabledUIOptionEnum1 CreateIntegrationStoreDirectDisabledUIOptionEnum1 = CreateIntegrationStoreDirectDisabledUIOptionEnum1("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectDisabledUIOptionEnum1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectDisabledUIOptionEnum1 = &createIntegrationStoreDirectDisabledUIOptionEnum1 + u.Type = CreateIntegrationStoreDirectUIOptionDisabledUnion1TypeCreateIntegrationStoreDirectDisabledUIOptionEnum1 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionDisabledUnion1", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionDisabledUnion1) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectDisabledUIOption1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectDisabledUIOption1, "", true) + } + + if u.CreateIntegrationStoreDirectDisabledUIOptionEnum1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectDisabledUIOptionEnum1, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionDisabledUnion1: all fields are null") +} + +type CreateIntegrationStoreDirectHiddenUIOptionEnum1 string + +const ( + CreateIntegrationStoreDirectHiddenUIOptionEnum1Update CreateIntegrationStoreDirectHiddenUIOptionEnum1 = "update" + CreateIntegrationStoreDirectHiddenUIOptionEnum1Create CreateIntegrationStoreDirectHiddenUIOptionEnum1 = "create" +) + +func (e CreateIntegrationStoreDirectHiddenUIOptionEnum1) ToPointer() *CreateIntegrationStoreDirectHiddenUIOptionEnum1 { + return &e +} +func (e *CreateIntegrationStoreDirectHiddenUIOptionEnum1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectHiddenUIOptionEnum1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectHiddenUIOptionEnum1: %v", v) + } +} + +type CreateIntegrationStoreDirectHiddenUIOption1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectHiddenUIOption1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectHiddenUIOption1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectHiddenUIOption1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIOptionHiddenUnion1Type string + +const ( + CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeBoolean CreateIntegrationStoreDirectUIOptionHiddenUnion1Type = "boolean" + CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeCreateIntegrationStoreDirectHiddenUIOption1 CreateIntegrationStoreDirectUIOptionHiddenUnion1Type = "createIntegrationStoreDirect_hidden_ui:option_1" + CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeCreateIntegrationStoreDirectHiddenUIOptionEnum1 CreateIntegrationStoreDirectUIOptionHiddenUnion1Type = "createIntegrationStoreDirect_hidden_ui:option_enum_1" +) + +type CreateIntegrationStoreDirectUIOptionHiddenUnion1 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectHiddenUIOption1 *CreateIntegrationStoreDirectHiddenUIOption1 `queryParam:"inline"` + CreateIntegrationStoreDirectHiddenUIOptionEnum1 *CreateIntegrationStoreDirectHiddenUIOptionEnum1 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIOptionHiddenUnion1Type +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion1Boolean(boolean bool) CreateIntegrationStoreDirectUIOptionHiddenUnion1 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeBoolean + + return CreateIntegrationStoreDirectUIOptionHiddenUnion1{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion1CreateIntegrationStoreDirectHiddenUIOption1(createIntegrationStoreDirectHiddenUIOption1 CreateIntegrationStoreDirectHiddenUIOption1) CreateIntegrationStoreDirectUIOptionHiddenUnion1 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeCreateIntegrationStoreDirectHiddenUIOption1 + + return CreateIntegrationStoreDirectUIOptionHiddenUnion1{ + CreateIntegrationStoreDirectHiddenUIOption1: &createIntegrationStoreDirectHiddenUIOption1, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIOptionHiddenUnion1CreateIntegrationStoreDirectHiddenUIOptionEnum1(createIntegrationStoreDirectHiddenUIOptionEnum1 CreateIntegrationStoreDirectHiddenUIOptionEnum1) CreateIntegrationStoreDirectUIOptionHiddenUnion1 { + typ := CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeCreateIntegrationStoreDirectHiddenUIOptionEnum1 + + return CreateIntegrationStoreDirectUIOptionHiddenUnion1{ + CreateIntegrationStoreDirectHiddenUIOptionEnum1: &createIntegrationStoreDirectHiddenUIOptionEnum1, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIOptionHiddenUnion1) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectHiddenUIOption1 CreateIntegrationStoreDirectHiddenUIOption1 = CreateIntegrationStoreDirectHiddenUIOption1{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectHiddenUIOption1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectHiddenUIOption1 = &createIntegrationStoreDirectHiddenUIOption1 + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeCreateIntegrationStoreDirectHiddenUIOption1 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeBoolean + return nil + } + + var createIntegrationStoreDirectHiddenUIOptionEnum1 CreateIntegrationStoreDirectHiddenUIOptionEnum1 = CreateIntegrationStoreDirectHiddenUIOptionEnum1("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectHiddenUIOptionEnum1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectHiddenUIOptionEnum1 = &createIntegrationStoreDirectHiddenUIOptionEnum1 + u.Type = CreateIntegrationStoreDirectUIOptionHiddenUnion1TypeCreateIntegrationStoreDirectHiddenUIOptionEnum1 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIOptionHiddenUnion1", string(data)) +} + +func (u CreateIntegrationStoreDirectUIOptionHiddenUnion1) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectHiddenUIOption1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectHiddenUIOption1, "", true) + } + + if u.CreateIntegrationStoreDirectHiddenUIOptionEnum1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectHiddenUIOptionEnum1, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIOptionHiddenUnion1: all fields are null") +} + +type CreateIntegrationStoreDirectUIOption1 struct { + Value string `json:"value"` + Label string `json:"label"` + Disabled *CreateIntegrationStoreDirectUIOptionDisabledUnion1 `json:"disabled,omitempty"` + Hidden *CreateIntegrationStoreDirectUIOptionHiddenUnion1 `json:"hidden,omitempty"` +} + +func (c CreateIntegrationStoreDirectUIOption1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIOption1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"value", "label"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIOption1) GetValue() string { + if o == nil { + return "" + } + return o.Value +} + +func (o *CreateIntegrationStoreDirectUIOption1) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *CreateIntegrationStoreDirectUIOption1) GetDisabled() *CreateIntegrationStoreDirectUIOptionDisabledUnion1 { + if o == nil { + return nil + } + return o.Disabled +} + +func (o *CreateIntegrationStoreDirectUIOption1) GetHidden() *CreateIntegrationStoreDirectUIOptionHiddenUnion1 { + if o == nil { + return nil + } + return o.Hidden +} + +type MaxLengthAtBRANDAt78222 struct { +} + +func (m MaxLengthAtBRANDAt78222) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MaxLengthAtBRANDAt78222) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectMaxLength2 struct { + AtBRANDAt7822 MaxLengthAtBRANDAt78222 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectMaxLength2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectMaxLength2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectMaxLength2) GetAtBRANDAt7822() MaxLengthAtBRANDAt78222 { + if o == nil { + return MaxLengthAtBRANDAt78222{} + } + return o.AtBRANDAt7822 +} + +type MinLengthAtBRANDAt78222 struct { +} + +func (m MinLengthAtBRANDAt78222) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MinLengthAtBRANDAt78222) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectMinLength2 struct { + AtBRANDAt7822 MinLengthAtBRANDAt78222 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectMinLength2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectMinLength2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectMinLength2) GetAtBRANDAt7822() MinLengthAtBRANDAt78222 { + if o == nil { + return MinLengthAtBRANDAt78222{} + } + return o.AtBRANDAt7822 +} + +type PatternAtBRANDAt78222 struct { +} + +func (p PatternAtBRANDAt78222) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatternAtBRANDAt78222) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectPattern2 struct { + AtBRANDAt7822 PatternAtBRANDAt78222 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectPattern2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPattern2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPattern2) GetAtBRANDAt7822() PatternAtBRANDAt78222 { + if o == nil { + return PatternAtBRANDAt78222{} + } + return o.AtBRANDAt7822 +} + +type CreateIntegrationStoreDirectUIReadOnlyEnum5 string + +const ( + CreateIntegrationStoreDirectUIReadOnlyEnum5Update CreateIntegrationStoreDirectUIReadOnlyEnum5 = "update" + CreateIntegrationStoreDirectUIReadOnlyEnum5Create CreateIntegrationStoreDirectUIReadOnlyEnum5 = "create" +) + +func (e CreateIntegrationStoreDirectUIReadOnlyEnum5) ToPointer() *CreateIntegrationStoreDirectUIReadOnlyEnum5 { + return &e +} +func (e *CreateIntegrationStoreDirectUIReadOnlyEnum5) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIReadOnlyEnum5(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIReadOnlyEnum5: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnly5 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIReadOnly5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIReadOnly5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIReadOnly5) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIReadOnlyUnion5Type string + +const ( + CreateIntegrationStoreDirectUIReadOnlyUnion5TypeBoolean CreateIntegrationStoreDirectUIReadOnlyUnion5Type = "boolean" + CreateIntegrationStoreDirectUIReadOnlyUnion5TypeCreateIntegrationStoreDirectUIReadOnly5 CreateIntegrationStoreDirectUIReadOnlyUnion5Type = "createIntegrationStoreDirect_ui:read-only_5" + CreateIntegrationStoreDirectUIReadOnlyUnion5TypeCreateIntegrationStoreDirectUIReadOnlyEnum5 CreateIntegrationStoreDirectUIReadOnlyUnion5Type = "createIntegrationStoreDirect_ui:read-only_enum_5" +) + +type CreateIntegrationStoreDirectUIReadOnlyUnion5 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnly5 *CreateIntegrationStoreDirectUIReadOnly5 `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnlyEnum5 *CreateIntegrationStoreDirectUIReadOnlyEnum5 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIReadOnlyUnion5Type +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion5Boolean(boolean bool) CreateIntegrationStoreDirectUIReadOnlyUnion5 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion5TypeBoolean + + return CreateIntegrationStoreDirectUIReadOnlyUnion5{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion5CreateIntegrationStoreDirectUIReadOnly5(createIntegrationStoreDirectUIReadOnly5 CreateIntegrationStoreDirectUIReadOnly5) CreateIntegrationStoreDirectUIReadOnlyUnion5 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion5TypeCreateIntegrationStoreDirectUIReadOnly5 + + return CreateIntegrationStoreDirectUIReadOnlyUnion5{ + CreateIntegrationStoreDirectUIReadOnly5: &createIntegrationStoreDirectUIReadOnly5, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion5CreateIntegrationStoreDirectUIReadOnlyEnum5(createIntegrationStoreDirectUIReadOnlyEnum5 CreateIntegrationStoreDirectUIReadOnlyEnum5) CreateIntegrationStoreDirectUIReadOnlyUnion5 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion5TypeCreateIntegrationStoreDirectUIReadOnlyEnum5 + + return CreateIntegrationStoreDirectUIReadOnlyUnion5{ + CreateIntegrationStoreDirectUIReadOnlyEnum5: &createIntegrationStoreDirectUIReadOnlyEnum5, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIReadOnlyUnion5) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIReadOnly5 CreateIntegrationStoreDirectUIReadOnly5 = CreateIntegrationStoreDirectUIReadOnly5{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnly5, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnly5 = &createIntegrationStoreDirectUIReadOnly5 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion5TypeCreateIntegrationStoreDirectUIReadOnly5 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion5TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIReadOnlyEnum5 CreateIntegrationStoreDirectUIReadOnlyEnum5 = CreateIntegrationStoreDirectUIReadOnlyEnum5("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnlyEnum5, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnlyEnum5 = &createIntegrationStoreDirectUIReadOnlyEnum5 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion5TypeCreateIntegrationStoreDirectUIReadOnlyEnum5 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIReadOnlyUnion5", string(data)) +} + +func (u CreateIntegrationStoreDirectUIReadOnlyUnion5) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnly5 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnly5, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnlyEnum5 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnlyEnum5, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIReadOnlyUnion5: all fields are null") +} + +type CreateIntegrationStoreDirectUIHiddenEnum5 string + +const ( + CreateIntegrationStoreDirectUIHiddenEnum5Update CreateIntegrationStoreDirectUIHiddenEnum5 = "update" + CreateIntegrationStoreDirectUIHiddenEnum5Create CreateIntegrationStoreDirectUIHiddenEnum5 = "create" +) + +func (e CreateIntegrationStoreDirectUIHiddenEnum5) ToPointer() *CreateIntegrationStoreDirectUIHiddenEnum5 { + return &e +} +func (e *CreateIntegrationStoreDirectUIHiddenEnum5) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIHiddenEnum5(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIHiddenEnum5: %v", v) + } +} + +type CreateIntegrationStoreDirectUIHidden5 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIHidden5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIHidden5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIHidden5) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIHiddenUnion5Type string + +const ( + CreateIntegrationStoreDirectUIHiddenUnion5TypeBoolean CreateIntegrationStoreDirectUIHiddenUnion5Type = "boolean" + CreateIntegrationStoreDirectUIHiddenUnion5TypeCreateIntegrationStoreDirectUIHidden5 CreateIntegrationStoreDirectUIHiddenUnion5Type = "createIntegrationStoreDirect_ui:hidden_5" + CreateIntegrationStoreDirectUIHiddenUnion5TypeCreateIntegrationStoreDirectUIHiddenEnum5 CreateIntegrationStoreDirectUIHiddenUnion5Type = "createIntegrationStoreDirect_ui:hidden_enum_5" +) + +type CreateIntegrationStoreDirectUIHiddenUnion5 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIHidden5 *CreateIntegrationStoreDirectUIHidden5 `queryParam:"inline"` + CreateIntegrationStoreDirectUIHiddenEnum5 *CreateIntegrationStoreDirectUIHiddenEnum5 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIHiddenUnion5Type +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion5Boolean(boolean bool) CreateIntegrationStoreDirectUIHiddenUnion5 { + typ := CreateIntegrationStoreDirectUIHiddenUnion5TypeBoolean + + return CreateIntegrationStoreDirectUIHiddenUnion5{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion5CreateIntegrationStoreDirectUIHidden5(createIntegrationStoreDirectUIHidden5 CreateIntegrationStoreDirectUIHidden5) CreateIntegrationStoreDirectUIHiddenUnion5 { + typ := CreateIntegrationStoreDirectUIHiddenUnion5TypeCreateIntegrationStoreDirectUIHidden5 + + return CreateIntegrationStoreDirectUIHiddenUnion5{ + CreateIntegrationStoreDirectUIHidden5: &createIntegrationStoreDirectUIHidden5, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion5CreateIntegrationStoreDirectUIHiddenEnum5(createIntegrationStoreDirectUIHiddenEnum5 CreateIntegrationStoreDirectUIHiddenEnum5) CreateIntegrationStoreDirectUIHiddenUnion5 { + typ := CreateIntegrationStoreDirectUIHiddenUnion5TypeCreateIntegrationStoreDirectUIHiddenEnum5 + + return CreateIntegrationStoreDirectUIHiddenUnion5{ + CreateIntegrationStoreDirectUIHiddenEnum5: &createIntegrationStoreDirectUIHiddenEnum5, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIHiddenUnion5) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIHidden5 CreateIntegrationStoreDirectUIHidden5 = CreateIntegrationStoreDirectUIHidden5{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHidden5, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHidden5 = &createIntegrationStoreDirectUIHidden5 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion5TypeCreateIntegrationStoreDirectUIHidden5 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIHiddenUnion5TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIHiddenEnum5 CreateIntegrationStoreDirectUIHiddenEnum5 = CreateIntegrationStoreDirectUIHiddenEnum5("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHiddenEnum5, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHiddenEnum5 = &createIntegrationStoreDirectUIHiddenEnum5 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion5TypeCreateIntegrationStoreDirectUIHiddenEnum5 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIHiddenUnion5", string(data)) +} + +func (u CreateIntegrationStoreDirectUIHiddenUnion5) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIHidden5 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHidden5, "", true) + } + + if u.CreateIntegrationStoreDirectUIHiddenEnum5 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHiddenEnum5, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIHiddenUnion5: all fields are null") +} + +type CreateIntegrationStoreDirectUIDisabledEnum5 string + +const ( + CreateIntegrationStoreDirectUIDisabledEnum5Update CreateIntegrationStoreDirectUIDisabledEnum5 = "update" + CreateIntegrationStoreDirectUIDisabledEnum5Create CreateIntegrationStoreDirectUIDisabledEnum5 = "create" +) + +func (e CreateIntegrationStoreDirectUIDisabledEnum5) ToPointer() *CreateIntegrationStoreDirectUIDisabledEnum5 { + return &e +} +func (e *CreateIntegrationStoreDirectUIDisabledEnum5) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIDisabledEnum5(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIDisabledEnum5: %v", v) + } +} + +type CreateIntegrationStoreDirectUIDisabled5 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDisabled5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDisabled5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDisabled5) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDisabledUnion5Type string + +const ( + CreateIntegrationStoreDirectUIDisabledUnion5TypeBoolean CreateIntegrationStoreDirectUIDisabledUnion5Type = "boolean" + CreateIntegrationStoreDirectUIDisabledUnion5TypeCreateIntegrationStoreDirectUIDisabled5 CreateIntegrationStoreDirectUIDisabledUnion5Type = "createIntegrationStoreDirect_ui:disabled_5" + CreateIntegrationStoreDirectUIDisabledUnion5TypeCreateIntegrationStoreDirectUIDisabledEnum5 CreateIntegrationStoreDirectUIDisabledUnion5Type = "createIntegrationStoreDirect_ui:disabled_enum_5" +) + +type CreateIntegrationStoreDirectUIDisabledUnion5 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabled5 *CreateIntegrationStoreDirectUIDisabled5 `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabledEnum5 *CreateIntegrationStoreDirectUIDisabledEnum5 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDisabledUnion5Type +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion5Boolean(boolean bool) CreateIntegrationStoreDirectUIDisabledUnion5 { + typ := CreateIntegrationStoreDirectUIDisabledUnion5TypeBoolean + + return CreateIntegrationStoreDirectUIDisabledUnion5{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion5CreateIntegrationStoreDirectUIDisabled5(createIntegrationStoreDirectUIDisabled5 CreateIntegrationStoreDirectUIDisabled5) CreateIntegrationStoreDirectUIDisabledUnion5 { + typ := CreateIntegrationStoreDirectUIDisabledUnion5TypeCreateIntegrationStoreDirectUIDisabled5 + + return CreateIntegrationStoreDirectUIDisabledUnion5{ + CreateIntegrationStoreDirectUIDisabled5: &createIntegrationStoreDirectUIDisabled5, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion5CreateIntegrationStoreDirectUIDisabledEnum5(createIntegrationStoreDirectUIDisabledEnum5 CreateIntegrationStoreDirectUIDisabledEnum5) CreateIntegrationStoreDirectUIDisabledUnion5 { + typ := CreateIntegrationStoreDirectUIDisabledUnion5TypeCreateIntegrationStoreDirectUIDisabledEnum5 + + return CreateIntegrationStoreDirectUIDisabledUnion5{ + CreateIntegrationStoreDirectUIDisabledEnum5: &createIntegrationStoreDirectUIDisabledEnum5, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDisabledUnion5) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDisabled5 CreateIntegrationStoreDirectUIDisabled5 = CreateIntegrationStoreDirectUIDisabled5{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabled5, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabled5 = &createIntegrationStoreDirectUIDisabled5 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion5TypeCreateIntegrationStoreDirectUIDisabled5 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIDisabledUnion5TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIDisabledEnum5 CreateIntegrationStoreDirectUIDisabledEnum5 = CreateIntegrationStoreDirectUIDisabledEnum5("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabledEnum5, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabledEnum5 = &createIntegrationStoreDirectUIDisabledEnum5 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion5TypeCreateIntegrationStoreDirectUIDisabledEnum5 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDisabledUnion5", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDisabledUnion5) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabled5 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabled5, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabledEnum5 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabledEnum5, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDisabledUnion5: all fields are null") +} + +type CreateIntegrationStoreDirectUIDescription5 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDescription5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDescription5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDescription5) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDescriptionUnion5Type string + +const ( + CreateIntegrationStoreDirectUIDescriptionUnion5TypeStr CreateIntegrationStoreDirectUIDescriptionUnion5Type = "str" + CreateIntegrationStoreDirectUIDescriptionUnion5TypeCreateIntegrationStoreDirectUIDescription5 CreateIntegrationStoreDirectUIDescriptionUnion5Type = "createIntegrationStoreDirect_ui:description_5" +) + +type CreateIntegrationStoreDirectUIDescriptionUnion5 struct { + Str *string `queryParam:"inline"` + CreateIntegrationStoreDirectUIDescription5 *CreateIntegrationStoreDirectUIDescription5 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDescriptionUnion5Type +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion5Str(str string) CreateIntegrationStoreDirectUIDescriptionUnion5 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion5TypeStr + + return CreateIntegrationStoreDirectUIDescriptionUnion5{ + Str: &str, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion5CreateIntegrationStoreDirectUIDescription5(createIntegrationStoreDirectUIDescription5 CreateIntegrationStoreDirectUIDescription5) CreateIntegrationStoreDirectUIDescriptionUnion5 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion5TypeCreateIntegrationStoreDirectUIDescription5 + + return CreateIntegrationStoreDirectUIDescriptionUnion5{ + CreateIntegrationStoreDirectUIDescription5: &createIntegrationStoreDirectUIDescription5, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDescriptionUnion5) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDescription5 CreateIntegrationStoreDirectUIDescription5 = CreateIntegrationStoreDirectUIDescription5{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDescription5, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDescription5 = &createIntegrationStoreDirectUIDescription5 + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion5TypeCreateIntegrationStoreDirectUIDescription5 + return nil + } + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion5TypeStr + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDescriptionUnion5", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDescriptionUnion5) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.CreateIntegrationStoreDirectUIDescription5 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDescription5, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDescriptionUnion5: all fields are null") +} + +type CreateIntegrationStoreDirectUIFormattedValue5 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIFormattedValue5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIFormattedValue5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIFormattedValue5) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesSelect struct { + Type CreateIntegrationStoreDirectTypeString2 `json:"type"` + UIControl CreateIntegrationStoreDirectUIControlSelect `json:"ui:control"` + UIOptions []CreateIntegrationStoreDirectUIOption1 `json:"ui:options"` + Enum []string `json:"enum,omitempty"` + MaxLength *CreateIntegrationStoreDirectMaxLength2 `json:"maxLength,omitempty"` + MinLength *CreateIntegrationStoreDirectMinLength2 `json:"minLength,omitempty"` + Pattern *CreateIntegrationStoreDirectPattern2 `json:"pattern,omitempty"` + Description *string `json:"description,omitempty"` + Default *string `json:"default,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *CreateIntegrationStoreDirectUIReadOnlyUnion5 `json:"ui:read-only,omitempty"` + UIHidden *CreateIntegrationStoreDirectUIHiddenUnion5 `json:"ui:hidden,omitempty"` + UIDisabled *CreateIntegrationStoreDirectUIDisabledUnion5 `json:"ui:disabled,omitempty"` + UIDescription *CreateIntegrationStoreDirectUIDescriptionUnion5 `json:"ui:description,omitempty"` + UIFormattedValue *CreateIntegrationStoreDirectUIFormattedValue5 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` +} + +func (c CreateIntegrationStoreDirectPropertiesSelect) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesSelect) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ui:control", "ui:options"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetType() CreateIntegrationStoreDirectTypeString2 { + if o == nil { + return CreateIntegrationStoreDirectTypeString2("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUIControl() CreateIntegrationStoreDirectUIControlSelect { + if o == nil { + return CreateIntegrationStoreDirectUIControlSelect("") + } + return o.UIControl +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUIOptions() []CreateIntegrationStoreDirectUIOption1 { + if o == nil { + return []CreateIntegrationStoreDirectUIOption1{} + } + return o.UIOptions +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetEnum() []string { + if o == nil { + return nil + } + return o.Enum +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetMaxLength() *CreateIntegrationStoreDirectMaxLength2 { + if o == nil { + return nil + } + return o.MaxLength +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetMinLength() *CreateIntegrationStoreDirectMinLength2 { + if o == nil { + return nil + } + return o.MinLength +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetPattern() *CreateIntegrationStoreDirectPattern2 { + if o == nil { + return nil + } + return o.Pattern +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetDefault() *string { + if o == nil { + return nil + } + return o.Default +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUILabel() *string { + if o == nil { + return nil + } + return o.UILabel +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUIReadOnly() *CreateIntegrationStoreDirectUIReadOnlyUnion5 { + if o == nil { + return nil + } + return o.UIReadOnly +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUIHidden() *CreateIntegrationStoreDirectUIHiddenUnion5 { + if o == nil { + return nil + } + return o.UIHidden +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUIDisabled() *CreateIntegrationStoreDirectUIDisabledUnion5 { + if o == nil { + return nil + } + return o.UIDisabled +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUIDescription() *CreateIntegrationStoreDirectUIDescriptionUnion5 { + if o == nil { + return nil + } + return o.UIDescription +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUIFormattedValue() *CreateIntegrationStoreDirectUIFormattedValue5 { + if o == nil { + return nil + } + return o.UIFormattedValue +} + +func (o *CreateIntegrationStoreDirectPropertiesSelect) GetUIPlaceholder() *string { + if o == nil { + return nil + } + return o.UIPlaceholder +} + +type CreateIntegrationStoreDirectTypeArray1 string + +const ( + CreateIntegrationStoreDirectTypeArray1Array CreateIntegrationStoreDirectTypeArray1 = "array" +) + +func (e CreateIntegrationStoreDirectTypeArray1) ToPointer() *CreateIntegrationStoreDirectTypeArray1 { + return &e +} +func (e *CreateIntegrationStoreDirectTypeArray1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "array": + *e = CreateIntegrationStoreDirectTypeArray1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeArray1: %v", v) + } +} + +type CreateIntegrationStoreDirectTypeNumber2 string + +const ( + CreateIntegrationStoreDirectTypeNumber2Number CreateIntegrationStoreDirectTypeNumber2 = "number" +) + +func (e CreateIntegrationStoreDirectTypeNumber2) ToPointer() *CreateIntegrationStoreDirectTypeNumber2 { + return &e +} +func (e *CreateIntegrationStoreDirectTypeNumber2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "number": + *e = CreateIntegrationStoreDirectTypeNumber2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeNumber2: %v", v) + } +} + +type CreateIntegrationStoreDirectItemsNumber struct { + Type CreateIntegrationStoreDirectTypeNumber2 `json:"type"` + Description *string `json:"description,omitempty"` + Minimum *float64 `json:"minimum,omitempty"` + ExclusiveMinimum *float64 `json:"exclusiveMinimum,omitempty"` + Maximum *float64 `json:"maximum,omitempty"` + ExclusiveMaximum *float64 `json:"exclusiveMaximum,omitempty"` + Default *float64 `json:"default,omitempty"` +} + +func (c CreateIntegrationStoreDirectItemsNumber) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectItemsNumber) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectItemsNumber) GetType() CreateIntegrationStoreDirectTypeNumber2 { + if o == nil { + return CreateIntegrationStoreDirectTypeNumber2("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectItemsNumber) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectItemsNumber) GetMinimum() *float64 { + if o == nil { + return nil + } + return o.Minimum +} + +func (o *CreateIntegrationStoreDirectItemsNumber) GetExclusiveMinimum() *float64 { + if o == nil { + return nil + } + return o.ExclusiveMinimum +} + +func (o *CreateIntegrationStoreDirectItemsNumber) GetMaximum() *float64 { + if o == nil { + return nil + } + return o.Maximum +} + +func (o *CreateIntegrationStoreDirectItemsNumber) GetExclusiveMaximum() *float64 { + if o == nil { + return nil + } + return o.ExclusiveMaximum +} + +func (o *CreateIntegrationStoreDirectItemsNumber) GetDefault() *float64 { + if o == nil { + return nil + } + return o.Default +} + +type CreateIntegrationStoreDirectUIControlSlider string + +const ( + CreateIntegrationStoreDirectUIControlSliderSlider CreateIntegrationStoreDirectUIControlSlider = "slider" +) + +func (e CreateIntegrationStoreDirectUIControlSlider) ToPointer() *CreateIntegrationStoreDirectUIControlSlider { + return &e +} +func (e *CreateIntegrationStoreDirectUIControlSlider) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "slider": + *e = CreateIntegrationStoreDirectUIControlSlider(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIControlSlider: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnlyEnum4 string + +const ( + CreateIntegrationStoreDirectUIReadOnlyEnum4Update CreateIntegrationStoreDirectUIReadOnlyEnum4 = "update" + CreateIntegrationStoreDirectUIReadOnlyEnum4Create CreateIntegrationStoreDirectUIReadOnlyEnum4 = "create" +) + +func (e CreateIntegrationStoreDirectUIReadOnlyEnum4) ToPointer() *CreateIntegrationStoreDirectUIReadOnlyEnum4 { + return &e +} +func (e *CreateIntegrationStoreDirectUIReadOnlyEnum4) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIReadOnlyEnum4(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIReadOnlyEnum4: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnly4 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIReadOnly4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIReadOnly4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIReadOnly4) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIReadOnlyUnion4Type string + +const ( + CreateIntegrationStoreDirectUIReadOnlyUnion4TypeBoolean CreateIntegrationStoreDirectUIReadOnlyUnion4Type = "boolean" + CreateIntegrationStoreDirectUIReadOnlyUnion4TypeCreateIntegrationStoreDirectUIReadOnly4 CreateIntegrationStoreDirectUIReadOnlyUnion4Type = "createIntegrationStoreDirect_ui:read-only_4" + CreateIntegrationStoreDirectUIReadOnlyUnion4TypeCreateIntegrationStoreDirectUIReadOnlyEnum4 CreateIntegrationStoreDirectUIReadOnlyUnion4Type = "createIntegrationStoreDirect_ui:read-only_enum_4" +) + +type CreateIntegrationStoreDirectUIReadOnlyUnion4 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnly4 *CreateIntegrationStoreDirectUIReadOnly4 `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnlyEnum4 *CreateIntegrationStoreDirectUIReadOnlyEnum4 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIReadOnlyUnion4Type +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion4Boolean(boolean bool) CreateIntegrationStoreDirectUIReadOnlyUnion4 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion4TypeBoolean + + return CreateIntegrationStoreDirectUIReadOnlyUnion4{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion4CreateIntegrationStoreDirectUIReadOnly4(createIntegrationStoreDirectUIReadOnly4 CreateIntegrationStoreDirectUIReadOnly4) CreateIntegrationStoreDirectUIReadOnlyUnion4 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion4TypeCreateIntegrationStoreDirectUIReadOnly4 + + return CreateIntegrationStoreDirectUIReadOnlyUnion4{ + CreateIntegrationStoreDirectUIReadOnly4: &createIntegrationStoreDirectUIReadOnly4, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion4CreateIntegrationStoreDirectUIReadOnlyEnum4(createIntegrationStoreDirectUIReadOnlyEnum4 CreateIntegrationStoreDirectUIReadOnlyEnum4) CreateIntegrationStoreDirectUIReadOnlyUnion4 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion4TypeCreateIntegrationStoreDirectUIReadOnlyEnum4 + + return CreateIntegrationStoreDirectUIReadOnlyUnion4{ + CreateIntegrationStoreDirectUIReadOnlyEnum4: &createIntegrationStoreDirectUIReadOnlyEnum4, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIReadOnlyUnion4) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIReadOnly4 CreateIntegrationStoreDirectUIReadOnly4 = CreateIntegrationStoreDirectUIReadOnly4{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnly4, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnly4 = &createIntegrationStoreDirectUIReadOnly4 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion4TypeCreateIntegrationStoreDirectUIReadOnly4 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion4TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIReadOnlyEnum4 CreateIntegrationStoreDirectUIReadOnlyEnum4 = CreateIntegrationStoreDirectUIReadOnlyEnum4("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnlyEnum4, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnlyEnum4 = &createIntegrationStoreDirectUIReadOnlyEnum4 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion4TypeCreateIntegrationStoreDirectUIReadOnlyEnum4 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIReadOnlyUnion4", string(data)) +} + +func (u CreateIntegrationStoreDirectUIReadOnlyUnion4) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnly4 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnly4, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnlyEnum4 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnlyEnum4, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIReadOnlyUnion4: all fields are null") +} + +type CreateIntegrationStoreDirectUIHiddenEnum4 string + +const ( + CreateIntegrationStoreDirectUIHiddenEnum4Update CreateIntegrationStoreDirectUIHiddenEnum4 = "update" + CreateIntegrationStoreDirectUIHiddenEnum4Create CreateIntegrationStoreDirectUIHiddenEnum4 = "create" +) + +func (e CreateIntegrationStoreDirectUIHiddenEnum4) ToPointer() *CreateIntegrationStoreDirectUIHiddenEnum4 { + return &e +} +func (e *CreateIntegrationStoreDirectUIHiddenEnum4) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIHiddenEnum4(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIHiddenEnum4: %v", v) + } +} + +type CreateIntegrationStoreDirectUIHidden4 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIHidden4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIHidden4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIHidden4) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIHiddenUnion4Type string + +const ( + CreateIntegrationStoreDirectUIHiddenUnion4TypeBoolean CreateIntegrationStoreDirectUIHiddenUnion4Type = "boolean" + CreateIntegrationStoreDirectUIHiddenUnion4TypeCreateIntegrationStoreDirectUIHidden4 CreateIntegrationStoreDirectUIHiddenUnion4Type = "createIntegrationStoreDirect_ui:hidden_4" + CreateIntegrationStoreDirectUIHiddenUnion4TypeCreateIntegrationStoreDirectUIHiddenEnum4 CreateIntegrationStoreDirectUIHiddenUnion4Type = "createIntegrationStoreDirect_ui:hidden_enum_4" +) + +type CreateIntegrationStoreDirectUIHiddenUnion4 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIHidden4 *CreateIntegrationStoreDirectUIHidden4 `queryParam:"inline"` + CreateIntegrationStoreDirectUIHiddenEnum4 *CreateIntegrationStoreDirectUIHiddenEnum4 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIHiddenUnion4Type +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion4Boolean(boolean bool) CreateIntegrationStoreDirectUIHiddenUnion4 { + typ := CreateIntegrationStoreDirectUIHiddenUnion4TypeBoolean + + return CreateIntegrationStoreDirectUIHiddenUnion4{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion4CreateIntegrationStoreDirectUIHidden4(createIntegrationStoreDirectUIHidden4 CreateIntegrationStoreDirectUIHidden4) CreateIntegrationStoreDirectUIHiddenUnion4 { + typ := CreateIntegrationStoreDirectUIHiddenUnion4TypeCreateIntegrationStoreDirectUIHidden4 + + return CreateIntegrationStoreDirectUIHiddenUnion4{ + CreateIntegrationStoreDirectUIHidden4: &createIntegrationStoreDirectUIHidden4, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion4CreateIntegrationStoreDirectUIHiddenEnum4(createIntegrationStoreDirectUIHiddenEnum4 CreateIntegrationStoreDirectUIHiddenEnum4) CreateIntegrationStoreDirectUIHiddenUnion4 { + typ := CreateIntegrationStoreDirectUIHiddenUnion4TypeCreateIntegrationStoreDirectUIHiddenEnum4 + + return CreateIntegrationStoreDirectUIHiddenUnion4{ + CreateIntegrationStoreDirectUIHiddenEnum4: &createIntegrationStoreDirectUIHiddenEnum4, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIHiddenUnion4) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIHidden4 CreateIntegrationStoreDirectUIHidden4 = CreateIntegrationStoreDirectUIHidden4{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHidden4, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHidden4 = &createIntegrationStoreDirectUIHidden4 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion4TypeCreateIntegrationStoreDirectUIHidden4 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIHiddenUnion4TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIHiddenEnum4 CreateIntegrationStoreDirectUIHiddenEnum4 = CreateIntegrationStoreDirectUIHiddenEnum4("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHiddenEnum4, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHiddenEnum4 = &createIntegrationStoreDirectUIHiddenEnum4 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion4TypeCreateIntegrationStoreDirectUIHiddenEnum4 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIHiddenUnion4", string(data)) +} + +func (u CreateIntegrationStoreDirectUIHiddenUnion4) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIHidden4 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHidden4, "", true) + } + + if u.CreateIntegrationStoreDirectUIHiddenEnum4 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHiddenEnum4, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIHiddenUnion4: all fields are null") +} + +type CreateIntegrationStoreDirectUIDisabledEnum4 string + +const ( + CreateIntegrationStoreDirectUIDisabledEnum4Update CreateIntegrationStoreDirectUIDisabledEnum4 = "update" + CreateIntegrationStoreDirectUIDisabledEnum4Create CreateIntegrationStoreDirectUIDisabledEnum4 = "create" +) + +func (e CreateIntegrationStoreDirectUIDisabledEnum4) ToPointer() *CreateIntegrationStoreDirectUIDisabledEnum4 { + return &e +} +func (e *CreateIntegrationStoreDirectUIDisabledEnum4) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIDisabledEnum4(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIDisabledEnum4: %v", v) + } +} + +type CreateIntegrationStoreDirectUIDisabled4 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDisabled4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDisabled4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDisabled4) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDisabledUnion4Type string + +const ( + CreateIntegrationStoreDirectUIDisabledUnion4TypeBoolean CreateIntegrationStoreDirectUIDisabledUnion4Type = "boolean" + CreateIntegrationStoreDirectUIDisabledUnion4TypeCreateIntegrationStoreDirectUIDisabled4 CreateIntegrationStoreDirectUIDisabledUnion4Type = "createIntegrationStoreDirect_ui:disabled_4" + CreateIntegrationStoreDirectUIDisabledUnion4TypeCreateIntegrationStoreDirectUIDisabledEnum4 CreateIntegrationStoreDirectUIDisabledUnion4Type = "createIntegrationStoreDirect_ui:disabled_enum_4" +) + +type CreateIntegrationStoreDirectUIDisabledUnion4 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabled4 *CreateIntegrationStoreDirectUIDisabled4 `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabledEnum4 *CreateIntegrationStoreDirectUIDisabledEnum4 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDisabledUnion4Type +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion4Boolean(boolean bool) CreateIntegrationStoreDirectUIDisabledUnion4 { + typ := CreateIntegrationStoreDirectUIDisabledUnion4TypeBoolean + + return CreateIntegrationStoreDirectUIDisabledUnion4{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion4CreateIntegrationStoreDirectUIDisabled4(createIntegrationStoreDirectUIDisabled4 CreateIntegrationStoreDirectUIDisabled4) CreateIntegrationStoreDirectUIDisabledUnion4 { + typ := CreateIntegrationStoreDirectUIDisabledUnion4TypeCreateIntegrationStoreDirectUIDisabled4 + + return CreateIntegrationStoreDirectUIDisabledUnion4{ + CreateIntegrationStoreDirectUIDisabled4: &createIntegrationStoreDirectUIDisabled4, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion4CreateIntegrationStoreDirectUIDisabledEnum4(createIntegrationStoreDirectUIDisabledEnum4 CreateIntegrationStoreDirectUIDisabledEnum4) CreateIntegrationStoreDirectUIDisabledUnion4 { + typ := CreateIntegrationStoreDirectUIDisabledUnion4TypeCreateIntegrationStoreDirectUIDisabledEnum4 + + return CreateIntegrationStoreDirectUIDisabledUnion4{ + CreateIntegrationStoreDirectUIDisabledEnum4: &createIntegrationStoreDirectUIDisabledEnum4, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDisabledUnion4) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDisabled4 CreateIntegrationStoreDirectUIDisabled4 = CreateIntegrationStoreDirectUIDisabled4{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabled4, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabled4 = &createIntegrationStoreDirectUIDisabled4 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion4TypeCreateIntegrationStoreDirectUIDisabled4 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIDisabledUnion4TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIDisabledEnum4 CreateIntegrationStoreDirectUIDisabledEnum4 = CreateIntegrationStoreDirectUIDisabledEnum4("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabledEnum4, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabledEnum4 = &createIntegrationStoreDirectUIDisabledEnum4 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion4TypeCreateIntegrationStoreDirectUIDisabledEnum4 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDisabledUnion4", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDisabledUnion4) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabled4 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabled4, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabledEnum4 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabledEnum4, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDisabledUnion4: all fields are null") +} + +type CreateIntegrationStoreDirectUIDescription4 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDescription4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDescription4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDescription4) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDescriptionUnion4Type string + +const ( + CreateIntegrationStoreDirectUIDescriptionUnion4TypeStr CreateIntegrationStoreDirectUIDescriptionUnion4Type = "str" + CreateIntegrationStoreDirectUIDescriptionUnion4TypeCreateIntegrationStoreDirectUIDescription4 CreateIntegrationStoreDirectUIDescriptionUnion4Type = "createIntegrationStoreDirect_ui:description_4" +) + +type CreateIntegrationStoreDirectUIDescriptionUnion4 struct { + Str *string `queryParam:"inline"` + CreateIntegrationStoreDirectUIDescription4 *CreateIntegrationStoreDirectUIDescription4 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDescriptionUnion4Type +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion4Str(str string) CreateIntegrationStoreDirectUIDescriptionUnion4 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion4TypeStr + + return CreateIntegrationStoreDirectUIDescriptionUnion4{ + Str: &str, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion4CreateIntegrationStoreDirectUIDescription4(createIntegrationStoreDirectUIDescription4 CreateIntegrationStoreDirectUIDescription4) CreateIntegrationStoreDirectUIDescriptionUnion4 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion4TypeCreateIntegrationStoreDirectUIDescription4 + + return CreateIntegrationStoreDirectUIDescriptionUnion4{ + CreateIntegrationStoreDirectUIDescription4: &createIntegrationStoreDirectUIDescription4, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDescriptionUnion4) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDescription4 CreateIntegrationStoreDirectUIDescription4 = CreateIntegrationStoreDirectUIDescription4{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDescription4, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDescription4 = &createIntegrationStoreDirectUIDescription4 + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion4TypeCreateIntegrationStoreDirectUIDescription4 + return nil + } + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion4TypeStr + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDescriptionUnion4", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDescriptionUnion4) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.CreateIntegrationStoreDirectUIDescription4 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDescription4, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDescriptionUnion4: all fields are null") +} + +type CreateIntegrationStoreDirectUIFormattedValue4 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIFormattedValue4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIFormattedValue4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIFormattedValue4) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesSlider struct { + Type CreateIntegrationStoreDirectTypeArray1 `json:"type"` + Items CreateIntegrationStoreDirectItemsNumber `json:"items"` + UIControl CreateIntegrationStoreDirectUIControlSlider `json:"ui:control"` + UISteps []float64 `json:"ui:steps"` + MaxItems *float64 `json:"maxItems,omitempty"` + MinItems *float64 `json:"minItems,omitempty"` + Description *string `json:"description,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *CreateIntegrationStoreDirectUIReadOnlyUnion4 `json:"ui:read-only,omitempty"` + UIHidden *CreateIntegrationStoreDirectUIHiddenUnion4 `json:"ui:hidden,omitempty"` + UIDisabled *CreateIntegrationStoreDirectUIDisabledUnion4 `json:"ui:disabled,omitempty"` + UIDescription *CreateIntegrationStoreDirectUIDescriptionUnion4 `json:"ui:description,omitempty"` + UIFormattedValue *CreateIntegrationStoreDirectUIFormattedValue4 `json:"ui:formatted-value,omitempty"` + Default []float64 `json:"default,omitempty"` +} + +func (c CreateIntegrationStoreDirectPropertiesSlider) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesSlider) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "items", "ui:control", "ui:steps"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetType() CreateIntegrationStoreDirectTypeArray1 { + if o == nil { + return CreateIntegrationStoreDirectTypeArray1("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetItems() CreateIntegrationStoreDirectItemsNumber { + if o == nil { + return CreateIntegrationStoreDirectItemsNumber{} + } + return o.Items +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetUIControl() CreateIntegrationStoreDirectUIControlSlider { + if o == nil { + return CreateIntegrationStoreDirectUIControlSlider("") + } + return o.UIControl +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetUISteps() []float64 { + if o == nil { + return []float64{} + } + return o.UISteps +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetMaxItems() *float64 { + if o == nil { + return nil + } + return o.MaxItems +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetMinItems() *float64 { + if o == nil { + return nil + } + return o.MinItems +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetUILabel() *string { + if o == nil { + return nil + } + return o.UILabel +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetUIReadOnly() *CreateIntegrationStoreDirectUIReadOnlyUnion4 { + if o == nil { + return nil + } + return o.UIReadOnly +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetUIHidden() *CreateIntegrationStoreDirectUIHiddenUnion4 { + if o == nil { + return nil + } + return o.UIHidden +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetUIDisabled() *CreateIntegrationStoreDirectUIDisabledUnion4 { + if o == nil { + return nil + } + return o.UIDisabled +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetUIDescription() *CreateIntegrationStoreDirectUIDescriptionUnion4 { + if o == nil { + return nil + } + return o.UIDescription +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetUIFormattedValue() *CreateIntegrationStoreDirectUIFormattedValue4 { + if o == nil { + return nil + } + return o.UIFormattedValue +} + +func (o *CreateIntegrationStoreDirectPropertiesSlider) GetDefault() []float64 { + if o == nil { + return nil + } + return o.Default +} + +type CreateIntegrationStoreDirectTypeBoolean string + +const ( + CreateIntegrationStoreDirectTypeBooleanBoolean CreateIntegrationStoreDirectTypeBoolean = "boolean" +) + +func (e CreateIntegrationStoreDirectTypeBoolean) ToPointer() *CreateIntegrationStoreDirectTypeBoolean { + return &e +} +func (e *CreateIntegrationStoreDirectTypeBoolean) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "boolean": + *e = CreateIntegrationStoreDirectTypeBoolean(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeBoolean: %v", v) + } +} + +type CreateIntegrationStoreDirectUIControlToggle string + +const ( + CreateIntegrationStoreDirectUIControlToggleToggle CreateIntegrationStoreDirectUIControlToggle = "toggle" +) + +func (e CreateIntegrationStoreDirectUIControlToggle) ToPointer() *CreateIntegrationStoreDirectUIControlToggle { + return &e +} +func (e *CreateIntegrationStoreDirectUIControlToggle) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "toggle": + *e = CreateIntegrationStoreDirectUIControlToggle(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIControlToggle: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnlyEnum3 string + +const ( + CreateIntegrationStoreDirectUIReadOnlyEnum3Update CreateIntegrationStoreDirectUIReadOnlyEnum3 = "update" + CreateIntegrationStoreDirectUIReadOnlyEnum3Create CreateIntegrationStoreDirectUIReadOnlyEnum3 = "create" +) + +func (e CreateIntegrationStoreDirectUIReadOnlyEnum3) ToPointer() *CreateIntegrationStoreDirectUIReadOnlyEnum3 { + return &e +} +func (e *CreateIntegrationStoreDirectUIReadOnlyEnum3) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIReadOnlyEnum3(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIReadOnlyEnum3: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnly3 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIReadOnly3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIReadOnly3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIReadOnly3) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIReadOnlyUnion3Type string + +const ( + CreateIntegrationStoreDirectUIReadOnlyUnion3TypeBoolean CreateIntegrationStoreDirectUIReadOnlyUnion3Type = "boolean" + CreateIntegrationStoreDirectUIReadOnlyUnion3TypeCreateIntegrationStoreDirectUIReadOnly3 CreateIntegrationStoreDirectUIReadOnlyUnion3Type = "createIntegrationStoreDirect_ui:read-only_3" + CreateIntegrationStoreDirectUIReadOnlyUnion3TypeCreateIntegrationStoreDirectUIReadOnlyEnum3 CreateIntegrationStoreDirectUIReadOnlyUnion3Type = "createIntegrationStoreDirect_ui:read-only_enum_3" +) + +type CreateIntegrationStoreDirectUIReadOnlyUnion3 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnly3 *CreateIntegrationStoreDirectUIReadOnly3 `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnlyEnum3 *CreateIntegrationStoreDirectUIReadOnlyEnum3 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIReadOnlyUnion3Type +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion3Boolean(boolean bool) CreateIntegrationStoreDirectUIReadOnlyUnion3 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion3TypeBoolean + + return CreateIntegrationStoreDirectUIReadOnlyUnion3{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion3CreateIntegrationStoreDirectUIReadOnly3(createIntegrationStoreDirectUIReadOnly3 CreateIntegrationStoreDirectUIReadOnly3) CreateIntegrationStoreDirectUIReadOnlyUnion3 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion3TypeCreateIntegrationStoreDirectUIReadOnly3 + + return CreateIntegrationStoreDirectUIReadOnlyUnion3{ + CreateIntegrationStoreDirectUIReadOnly3: &createIntegrationStoreDirectUIReadOnly3, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion3CreateIntegrationStoreDirectUIReadOnlyEnum3(createIntegrationStoreDirectUIReadOnlyEnum3 CreateIntegrationStoreDirectUIReadOnlyEnum3) CreateIntegrationStoreDirectUIReadOnlyUnion3 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion3TypeCreateIntegrationStoreDirectUIReadOnlyEnum3 + + return CreateIntegrationStoreDirectUIReadOnlyUnion3{ + CreateIntegrationStoreDirectUIReadOnlyEnum3: &createIntegrationStoreDirectUIReadOnlyEnum3, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIReadOnlyUnion3) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIReadOnly3 CreateIntegrationStoreDirectUIReadOnly3 = CreateIntegrationStoreDirectUIReadOnly3{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnly3, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnly3 = &createIntegrationStoreDirectUIReadOnly3 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion3TypeCreateIntegrationStoreDirectUIReadOnly3 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion3TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIReadOnlyEnum3 CreateIntegrationStoreDirectUIReadOnlyEnum3 = CreateIntegrationStoreDirectUIReadOnlyEnum3("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnlyEnum3, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnlyEnum3 = &createIntegrationStoreDirectUIReadOnlyEnum3 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion3TypeCreateIntegrationStoreDirectUIReadOnlyEnum3 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIReadOnlyUnion3", string(data)) +} + +func (u CreateIntegrationStoreDirectUIReadOnlyUnion3) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnly3 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnly3, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnlyEnum3 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnlyEnum3, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIReadOnlyUnion3: all fields are null") +} + +type CreateIntegrationStoreDirectUIHiddenEnum3 string + +const ( + CreateIntegrationStoreDirectUIHiddenEnum3Update CreateIntegrationStoreDirectUIHiddenEnum3 = "update" + CreateIntegrationStoreDirectUIHiddenEnum3Create CreateIntegrationStoreDirectUIHiddenEnum3 = "create" +) + +func (e CreateIntegrationStoreDirectUIHiddenEnum3) ToPointer() *CreateIntegrationStoreDirectUIHiddenEnum3 { + return &e +} +func (e *CreateIntegrationStoreDirectUIHiddenEnum3) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIHiddenEnum3(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIHiddenEnum3: %v", v) + } +} + +type CreateIntegrationStoreDirectUIHidden3 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIHidden3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIHidden3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIHidden3) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIHiddenUnion3Type string + +const ( + CreateIntegrationStoreDirectUIHiddenUnion3TypeBoolean CreateIntegrationStoreDirectUIHiddenUnion3Type = "boolean" + CreateIntegrationStoreDirectUIHiddenUnion3TypeCreateIntegrationStoreDirectUIHidden3 CreateIntegrationStoreDirectUIHiddenUnion3Type = "createIntegrationStoreDirect_ui:hidden_3" + CreateIntegrationStoreDirectUIHiddenUnion3TypeCreateIntegrationStoreDirectUIHiddenEnum3 CreateIntegrationStoreDirectUIHiddenUnion3Type = "createIntegrationStoreDirect_ui:hidden_enum_3" +) + +type CreateIntegrationStoreDirectUIHiddenUnion3 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIHidden3 *CreateIntegrationStoreDirectUIHidden3 `queryParam:"inline"` + CreateIntegrationStoreDirectUIHiddenEnum3 *CreateIntegrationStoreDirectUIHiddenEnum3 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIHiddenUnion3Type +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion3Boolean(boolean bool) CreateIntegrationStoreDirectUIHiddenUnion3 { + typ := CreateIntegrationStoreDirectUIHiddenUnion3TypeBoolean + + return CreateIntegrationStoreDirectUIHiddenUnion3{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion3CreateIntegrationStoreDirectUIHidden3(createIntegrationStoreDirectUIHidden3 CreateIntegrationStoreDirectUIHidden3) CreateIntegrationStoreDirectUIHiddenUnion3 { + typ := CreateIntegrationStoreDirectUIHiddenUnion3TypeCreateIntegrationStoreDirectUIHidden3 + + return CreateIntegrationStoreDirectUIHiddenUnion3{ + CreateIntegrationStoreDirectUIHidden3: &createIntegrationStoreDirectUIHidden3, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion3CreateIntegrationStoreDirectUIHiddenEnum3(createIntegrationStoreDirectUIHiddenEnum3 CreateIntegrationStoreDirectUIHiddenEnum3) CreateIntegrationStoreDirectUIHiddenUnion3 { + typ := CreateIntegrationStoreDirectUIHiddenUnion3TypeCreateIntegrationStoreDirectUIHiddenEnum3 + + return CreateIntegrationStoreDirectUIHiddenUnion3{ + CreateIntegrationStoreDirectUIHiddenEnum3: &createIntegrationStoreDirectUIHiddenEnum3, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIHiddenUnion3) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIHidden3 CreateIntegrationStoreDirectUIHidden3 = CreateIntegrationStoreDirectUIHidden3{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHidden3, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHidden3 = &createIntegrationStoreDirectUIHidden3 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion3TypeCreateIntegrationStoreDirectUIHidden3 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIHiddenUnion3TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIHiddenEnum3 CreateIntegrationStoreDirectUIHiddenEnum3 = CreateIntegrationStoreDirectUIHiddenEnum3("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHiddenEnum3, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHiddenEnum3 = &createIntegrationStoreDirectUIHiddenEnum3 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion3TypeCreateIntegrationStoreDirectUIHiddenEnum3 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIHiddenUnion3", string(data)) +} + +func (u CreateIntegrationStoreDirectUIHiddenUnion3) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIHidden3 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHidden3, "", true) + } + + if u.CreateIntegrationStoreDirectUIHiddenEnum3 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHiddenEnum3, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIHiddenUnion3: all fields are null") +} + +type CreateIntegrationStoreDirectUIDisabledEnum3 string + +const ( + CreateIntegrationStoreDirectUIDisabledEnum3Update CreateIntegrationStoreDirectUIDisabledEnum3 = "update" + CreateIntegrationStoreDirectUIDisabledEnum3Create CreateIntegrationStoreDirectUIDisabledEnum3 = "create" +) + +func (e CreateIntegrationStoreDirectUIDisabledEnum3) ToPointer() *CreateIntegrationStoreDirectUIDisabledEnum3 { + return &e +} +func (e *CreateIntegrationStoreDirectUIDisabledEnum3) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIDisabledEnum3(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIDisabledEnum3: %v", v) + } +} + +type CreateIntegrationStoreDirectUIDisabled3 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDisabled3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDisabled3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDisabled3) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDisabledUnion3Type string + +const ( + CreateIntegrationStoreDirectUIDisabledUnion3TypeBoolean CreateIntegrationStoreDirectUIDisabledUnion3Type = "boolean" + CreateIntegrationStoreDirectUIDisabledUnion3TypeCreateIntegrationStoreDirectUIDisabled3 CreateIntegrationStoreDirectUIDisabledUnion3Type = "createIntegrationStoreDirect_ui:disabled_3" + CreateIntegrationStoreDirectUIDisabledUnion3TypeCreateIntegrationStoreDirectUIDisabledEnum3 CreateIntegrationStoreDirectUIDisabledUnion3Type = "createIntegrationStoreDirect_ui:disabled_enum_3" +) + +type CreateIntegrationStoreDirectUIDisabledUnion3 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabled3 *CreateIntegrationStoreDirectUIDisabled3 `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabledEnum3 *CreateIntegrationStoreDirectUIDisabledEnum3 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDisabledUnion3Type +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion3Boolean(boolean bool) CreateIntegrationStoreDirectUIDisabledUnion3 { + typ := CreateIntegrationStoreDirectUIDisabledUnion3TypeBoolean + + return CreateIntegrationStoreDirectUIDisabledUnion3{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion3CreateIntegrationStoreDirectUIDisabled3(createIntegrationStoreDirectUIDisabled3 CreateIntegrationStoreDirectUIDisabled3) CreateIntegrationStoreDirectUIDisabledUnion3 { + typ := CreateIntegrationStoreDirectUIDisabledUnion3TypeCreateIntegrationStoreDirectUIDisabled3 + + return CreateIntegrationStoreDirectUIDisabledUnion3{ + CreateIntegrationStoreDirectUIDisabled3: &createIntegrationStoreDirectUIDisabled3, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion3CreateIntegrationStoreDirectUIDisabledEnum3(createIntegrationStoreDirectUIDisabledEnum3 CreateIntegrationStoreDirectUIDisabledEnum3) CreateIntegrationStoreDirectUIDisabledUnion3 { + typ := CreateIntegrationStoreDirectUIDisabledUnion3TypeCreateIntegrationStoreDirectUIDisabledEnum3 + + return CreateIntegrationStoreDirectUIDisabledUnion3{ + CreateIntegrationStoreDirectUIDisabledEnum3: &createIntegrationStoreDirectUIDisabledEnum3, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDisabledUnion3) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDisabled3 CreateIntegrationStoreDirectUIDisabled3 = CreateIntegrationStoreDirectUIDisabled3{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabled3, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabled3 = &createIntegrationStoreDirectUIDisabled3 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion3TypeCreateIntegrationStoreDirectUIDisabled3 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIDisabledUnion3TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIDisabledEnum3 CreateIntegrationStoreDirectUIDisabledEnum3 = CreateIntegrationStoreDirectUIDisabledEnum3("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabledEnum3, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabledEnum3 = &createIntegrationStoreDirectUIDisabledEnum3 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion3TypeCreateIntegrationStoreDirectUIDisabledEnum3 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDisabledUnion3", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDisabledUnion3) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabled3 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabled3, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabledEnum3 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabledEnum3, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDisabledUnion3: all fields are null") +} + +type CreateIntegrationStoreDirectUIDescription3 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDescription3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDescription3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDescription3) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDescriptionUnion3Type string + +const ( + CreateIntegrationStoreDirectUIDescriptionUnion3TypeStr CreateIntegrationStoreDirectUIDescriptionUnion3Type = "str" + CreateIntegrationStoreDirectUIDescriptionUnion3TypeCreateIntegrationStoreDirectUIDescription3 CreateIntegrationStoreDirectUIDescriptionUnion3Type = "createIntegrationStoreDirect_ui:description_3" +) + +type CreateIntegrationStoreDirectUIDescriptionUnion3 struct { + Str *string `queryParam:"inline"` + CreateIntegrationStoreDirectUIDescription3 *CreateIntegrationStoreDirectUIDescription3 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDescriptionUnion3Type +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion3Str(str string) CreateIntegrationStoreDirectUIDescriptionUnion3 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion3TypeStr + + return CreateIntegrationStoreDirectUIDescriptionUnion3{ + Str: &str, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion3CreateIntegrationStoreDirectUIDescription3(createIntegrationStoreDirectUIDescription3 CreateIntegrationStoreDirectUIDescription3) CreateIntegrationStoreDirectUIDescriptionUnion3 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion3TypeCreateIntegrationStoreDirectUIDescription3 + + return CreateIntegrationStoreDirectUIDescriptionUnion3{ + CreateIntegrationStoreDirectUIDescription3: &createIntegrationStoreDirectUIDescription3, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDescriptionUnion3) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDescription3 CreateIntegrationStoreDirectUIDescription3 = CreateIntegrationStoreDirectUIDescription3{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDescription3, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDescription3 = &createIntegrationStoreDirectUIDescription3 + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion3TypeCreateIntegrationStoreDirectUIDescription3 + return nil + } + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion3TypeStr + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDescriptionUnion3", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDescriptionUnion3) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.CreateIntegrationStoreDirectUIDescription3 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDescription3, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDescriptionUnion3: all fields are null") +} + +type CreateIntegrationStoreDirectUIFormattedValue3 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIFormattedValue3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIFormattedValue3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIFormattedValue3) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesToggle struct { + Type CreateIntegrationStoreDirectTypeBoolean `json:"type"` + UIControl CreateIntegrationStoreDirectUIControlToggle `json:"ui:control"` + Description *string `json:"description,omitempty"` + Default *bool `json:"default,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *CreateIntegrationStoreDirectUIReadOnlyUnion3 `json:"ui:read-only,omitempty"` + UIHidden *CreateIntegrationStoreDirectUIHiddenUnion3 `json:"ui:hidden,omitempty"` + UIDisabled *CreateIntegrationStoreDirectUIDisabledUnion3 `json:"ui:disabled,omitempty"` + UIDescription *CreateIntegrationStoreDirectUIDescriptionUnion3 `json:"ui:description,omitempty"` + UIFormattedValue *CreateIntegrationStoreDirectUIFormattedValue3 `json:"ui:formatted-value,omitempty"` +} + +func (c CreateIntegrationStoreDirectPropertiesToggle) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesToggle) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ui:control"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetType() CreateIntegrationStoreDirectTypeBoolean { + if o == nil { + return CreateIntegrationStoreDirectTypeBoolean("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetUIControl() CreateIntegrationStoreDirectUIControlToggle { + if o == nil { + return CreateIntegrationStoreDirectUIControlToggle("") + } + return o.UIControl +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetDefault() *bool { + if o == nil { + return nil + } + return o.Default +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetUILabel() *string { + if o == nil { + return nil + } + return o.UILabel +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetUIReadOnly() *CreateIntegrationStoreDirectUIReadOnlyUnion3 { + if o == nil { + return nil + } + return o.UIReadOnly +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetUIHidden() *CreateIntegrationStoreDirectUIHiddenUnion3 { + if o == nil { + return nil + } + return o.UIHidden +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetUIDisabled() *CreateIntegrationStoreDirectUIDisabledUnion3 { + if o == nil { + return nil + } + return o.UIDisabled +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetUIDescription() *CreateIntegrationStoreDirectUIDescriptionUnion3 { + if o == nil { + return nil + } + return o.UIDescription +} + +func (o *CreateIntegrationStoreDirectPropertiesToggle) GetUIFormattedValue() *CreateIntegrationStoreDirectUIFormattedValue3 { + if o == nil { + return nil + } + return o.UIFormattedValue +} + +type CreateIntegrationStoreDirectTypeNumber1 string + +const ( + CreateIntegrationStoreDirectTypeNumber1Number CreateIntegrationStoreDirectTypeNumber1 = "number" +) + +func (e CreateIntegrationStoreDirectTypeNumber1) ToPointer() *CreateIntegrationStoreDirectTypeNumber1 { + return &e +} +func (e *CreateIntegrationStoreDirectTypeNumber1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "number": + *e = CreateIntegrationStoreDirectTypeNumber1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeNumber1: %v", v) + } +} + +type CreateIntegrationStoreDirectUIControlInput2 string + +const ( + CreateIntegrationStoreDirectUIControlInput2Input CreateIntegrationStoreDirectUIControlInput2 = "input" +) + +func (e CreateIntegrationStoreDirectUIControlInput2) ToPointer() *CreateIntegrationStoreDirectUIControlInput2 { + return &e +} +func (e *CreateIntegrationStoreDirectUIControlInput2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "input": + *e = CreateIntegrationStoreDirectUIControlInput2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIControlInput2: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnlyEnum2 string + +const ( + CreateIntegrationStoreDirectUIReadOnlyEnum2Update CreateIntegrationStoreDirectUIReadOnlyEnum2 = "update" + CreateIntegrationStoreDirectUIReadOnlyEnum2Create CreateIntegrationStoreDirectUIReadOnlyEnum2 = "create" +) + +func (e CreateIntegrationStoreDirectUIReadOnlyEnum2) ToPointer() *CreateIntegrationStoreDirectUIReadOnlyEnum2 { + return &e +} +func (e *CreateIntegrationStoreDirectUIReadOnlyEnum2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIReadOnlyEnum2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIReadOnlyEnum2: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnly2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIReadOnly2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIReadOnly2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIReadOnly2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIReadOnlyUnion2Type string + +const ( + CreateIntegrationStoreDirectUIReadOnlyUnion2TypeBoolean CreateIntegrationStoreDirectUIReadOnlyUnion2Type = "boolean" + CreateIntegrationStoreDirectUIReadOnlyUnion2TypeCreateIntegrationStoreDirectUIReadOnly2 CreateIntegrationStoreDirectUIReadOnlyUnion2Type = "createIntegrationStoreDirect_ui:read-only_2" + CreateIntegrationStoreDirectUIReadOnlyUnion2TypeCreateIntegrationStoreDirectUIReadOnlyEnum2 CreateIntegrationStoreDirectUIReadOnlyUnion2Type = "createIntegrationStoreDirect_ui:read-only_enum_2" +) + +type CreateIntegrationStoreDirectUIReadOnlyUnion2 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnly2 *CreateIntegrationStoreDirectUIReadOnly2 `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnlyEnum2 *CreateIntegrationStoreDirectUIReadOnlyEnum2 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIReadOnlyUnion2Type +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion2Boolean(boolean bool) CreateIntegrationStoreDirectUIReadOnlyUnion2 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion2TypeBoolean + + return CreateIntegrationStoreDirectUIReadOnlyUnion2{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion2CreateIntegrationStoreDirectUIReadOnly2(createIntegrationStoreDirectUIReadOnly2 CreateIntegrationStoreDirectUIReadOnly2) CreateIntegrationStoreDirectUIReadOnlyUnion2 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion2TypeCreateIntegrationStoreDirectUIReadOnly2 + + return CreateIntegrationStoreDirectUIReadOnlyUnion2{ + CreateIntegrationStoreDirectUIReadOnly2: &createIntegrationStoreDirectUIReadOnly2, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion2CreateIntegrationStoreDirectUIReadOnlyEnum2(createIntegrationStoreDirectUIReadOnlyEnum2 CreateIntegrationStoreDirectUIReadOnlyEnum2) CreateIntegrationStoreDirectUIReadOnlyUnion2 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion2TypeCreateIntegrationStoreDirectUIReadOnlyEnum2 + + return CreateIntegrationStoreDirectUIReadOnlyUnion2{ + CreateIntegrationStoreDirectUIReadOnlyEnum2: &createIntegrationStoreDirectUIReadOnlyEnum2, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIReadOnlyUnion2) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIReadOnly2 CreateIntegrationStoreDirectUIReadOnly2 = CreateIntegrationStoreDirectUIReadOnly2{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnly2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnly2 = &createIntegrationStoreDirectUIReadOnly2 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion2TypeCreateIntegrationStoreDirectUIReadOnly2 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion2TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIReadOnlyEnum2 CreateIntegrationStoreDirectUIReadOnlyEnum2 = CreateIntegrationStoreDirectUIReadOnlyEnum2("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnlyEnum2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnlyEnum2 = &createIntegrationStoreDirectUIReadOnlyEnum2 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion2TypeCreateIntegrationStoreDirectUIReadOnlyEnum2 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIReadOnlyUnion2", string(data)) +} + +func (u CreateIntegrationStoreDirectUIReadOnlyUnion2) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnly2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnly2, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnlyEnum2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnlyEnum2, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIReadOnlyUnion2: all fields are null") +} + +type CreateIntegrationStoreDirectUIHiddenEnum2 string + +const ( + CreateIntegrationStoreDirectUIHiddenEnum2Update CreateIntegrationStoreDirectUIHiddenEnum2 = "update" + CreateIntegrationStoreDirectUIHiddenEnum2Create CreateIntegrationStoreDirectUIHiddenEnum2 = "create" +) + +func (e CreateIntegrationStoreDirectUIHiddenEnum2) ToPointer() *CreateIntegrationStoreDirectUIHiddenEnum2 { + return &e +} +func (e *CreateIntegrationStoreDirectUIHiddenEnum2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIHiddenEnum2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIHiddenEnum2: %v", v) + } +} + +type CreateIntegrationStoreDirectUIHidden2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIHidden2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIHidden2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIHidden2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIHiddenUnion2Type string + +const ( + CreateIntegrationStoreDirectUIHiddenUnion2TypeBoolean CreateIntegrationStoreDirectUIHiddenUnion2Type = "boolean" + CreateIntegrationStoreDirectUIHiddenUnion2TypeCreateIntegrationStoreDirectUIHidden2 CreateIntegrationStoreDirectUIHiddenUnion2Type = "createIntegrationStoreDirect_ui:hidden_2" + CreateIntegrationStoreDirectUIHiddenUnion2TypeCreateIntegrationStoreDirectUIHiddenEnum2 CreateIntegrationStoreDirectUIHiddenUnion2Type = "createIntegrationStoreDirect_ui:hidden_enum_2" +) + +type CreateIntegrationStoreDirectUIHiddenUnion2 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIHidden2 *CreateIntegrationStoreDirectUIHidden2 `queryParam:"inline"` + CreateIntegrationStoreDirectUIHiddenEnum2 *CreateIntegrationStoreDirectUIHiddenEnum2 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIHiddenUnion2Type +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion2Boolean(boolean bool) CreateIntegrationStoreDirectUIHiddenUnion2 { + typ := CreateIntegrationStoreDirectUIHiddenUnion2TypeBoolean + + return CreateIntegrationStoreDirectUIHiddenUnion2{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion2CreateIntegrationStoreDirectUIHidden2(createIntegrationStoreDirectUIHidden2 CreateIntegrationStoreDirectUIHidden2) CreateIntegrationStoreDirectUIHiddenUnion2 { + typ := CreateIntegrationStoreDirectUIHiddenUnion2TypeCreateIntegrationStoreDirectUIHidden2 + + return CreateIntegrationStoreDirectUIHiddenUnion2{ + CreateIntegrationStoreDirectUIHidden2: &createIntegrationStoreDirectUIHidden2, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion2CreateIntegrationStoreDirectUIHiddenEnum2(createIntegrationStoreDirectUIHiddenEnum2 CreateIntegrationStoreDirectUIHiddenEnum2) CreateIntegrationStoreDirectUIHiddenUnion2 { + typ := CreateIntegrationStoreDirectUIHiddenUnion2TypeCreateIntegrationStoreDirectUIHiddenEnum2 + + return CreateIntegrationStoreDirectUIHiddenUnion2{ + CreateIntegrationStoreDirectUIHiddenEnum2: &createIntegrationStoreDirectUIHiddenEnum2, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIHiddenUnion2) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIHidden2 CreateIntegrationStoreDirectUIHidden2 = CreateIntegrationStoreDirectUIHidden2{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHidden2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHidden2 = &createIntegrationStoreDirectUIHidden2 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion2TypeCreateIntegrationStoreDirectUIHidden2 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIHiddenUnion2TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIHiddenEnum2 CreateIntegrationStoreDirectUIHiddenEnum2 = CreateIntegrationStoreDirectUIHiddenEnum2("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHiddenEnum2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHiddenEnum2 = &createIntegrationStoreDirectUIHiddenEnum2 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion2TypeCreateIntegrationStoreDirectUIHiddenEnum2 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIHiddenUnion2", string(data)) +} + +func (u CreateIntegrationStoreDirectUIHiddenUnion2) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIHidden2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHidden2, "", true) + } + + if u.CreateIntegrationStoreDirectUIHiddenEnum2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHiddenEnum2, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIHiddenUnion2: all fields are null") +} + +type CreateIntegrationStoreDirectUIDisabledEnum2 string + +const ( + CreateIntegrationStoreDirectUIDisabledEnum2Update CreateIntegrationStoreDirectUIDisabledEnum2 = "update" + CreateIntegrationStoreDirectUIDisabledEnum2Create CreateIntegrationStoreDirectUIDisabledEnum2 = "create" +) + +func (e CreateIntegrationStoreDirectUIDisabledEnum2) ToPointer() *CreateIntegrationStoreDirectUIDisabledEnum2 { + return &e +} +func (e *CreateIntegrationStoreDirectUIDisabledEnum2) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIDisabledEnum2(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIDisabledEnum2: %v", v) + } +} + +type CreateIntegrationStoreDirectUIDisabled2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDisabled2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDisabled2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDisabled2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDisabledUnion2Type string + +const ( + CreateIntegrationStoreDirectUIDisabledUnion2TypeBoolean CreateIntegrationStoreDirectUIDisabledUnion2Type = "boolean" + CreateIntegrationStoreDirectUIDisabledUnion2TypeCreateIntegrationStoreDirectUIDisabled2 CreateIntegrationStoreDirectUIDisabledUnion2Type = "createIntegrationStoreDirect_ui:disabled_2" + CreateIntegrationStoreDirectUIDisabledUnion2TypeCreateIntegrationStoreDirectUIDisabledEnum2 CreateIntegrationStoreDirectUIDisabledUnion2Type = "createIntegrationStoreDirect_ui:disabled_enum_2" +) + +type CreateIntegrationStoreDirectUIDisabledUnion2 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabled2 *CreateIntegrationStoreDirectUIDisabled2 `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabledEnum2 *CreateIntegrationStoreDirectUIDisabledEnum2 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDisabledUnion2Type +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion2Boolean(boolean bool) CreateIntegrationStoreDirectUIDisabledUnion2 { + typ := CreateIntegrationStoreDirectUIDisabledUnion2TypeBoolean + + return CreateIntegrationStoreDirectUIDisabledUnion2{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion2CreateIntegrationStoreDirectUIDisabled2(createIntegrationStoreDirectUIDisabled2 CreateIntegrationStoreDirectUIDisabled2) CreateIntegrationStoreDirectUIDisabledUnion2 { + typ := CreateIntegrationStoreDirectUIDisabledUnion2TypeCreateIntegrationStoreDirectUIDisabled2 + + return CreateIntegrationStoreDirectUIDisabledUnion2{ + CreateIntegrationStoreDirectUIDisabled2: &createIntegrationStoreDirectUIDisabled2, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion2CreateIntegrationStoreDirectUIDisabledEnum2(createIntegrationStoreDirectUIDisabledEnum2 CreateIntegrationStoreDirectUIDisabledEnum2) CreateIntegrationStoreDirectUIDisabledUnion2 { + typ := CreateIntegrationStoreDirectUIDisabledUnion2TypeCreateIntegrationStoreDirectUIDisabledEnum2 + + return CreateIntegrationStoreDirectUIDisabledUnion2{ + CreateIntegrationStoreDirectUIDisabledEnum2: &createIntegrationStoreDirectUIDisabledEnum2, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDisabledUnion2) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDisabled2 CreateIntegrationStoreDirectUIDisabled2 = CreateIntegrationStoreDirectUIDisabled2{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabled2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabled2 = &createIntegrationStoreDirectUIDisabled2 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion2TypeCreateIntegrationStoreDirectUIDisabled2 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIDisabledUnion2TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIDisabledEnum2 CreateIntegrationStoreDirectUIDisabledEnum2 = CreateIntegrationStoreDirectUIDisabledEnum2("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabledEnum2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabledEnum2 = &createIntegrationStoreDirectUIDisabledEnum2 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion2TypeCreateIntegrationStoreDirectUIDisabledEnum2 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDisabledUnion2", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDisabledUnion2) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabled2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabled2, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabledEnum2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabledEnum2, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDisabledUnion2: all fields are null") +} + +type CreateIntegrationStoreDirectUIDescription2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDescription2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDescription2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDescription2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDescriptionUnion2Type string + +const ( + CreateIntegrationStoreDirectUIDescriptionUnion2TypeStr CreateIntegrationStoreDirectUIDescriptionUnion2Type = "str" + CreateIntegrationStoreDirectUIDescriptionUnion2TypeCreateIntegrationStoreDirectUIDescription2 CreateIntegrationStoreDirectUIDescriptionUnion2Type = "createIntegrationStoreDirect_ui:description_2" +) + +type CreateIntegrationStoreDirectUIDescriptionUnion2 struct { + Str *string `queryParam:"inline"` + CreateIntegrationStoreDirectUIDescription2 *CreateIntegrationStoreDirectUIDescription2 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDescriptionUnion2Type +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion2Str(str string) CreateIntegrationStoreDirectUIDescriptionUnion2 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion2TypeStr + + return CreateIntegrationStoreDirectUIDescriptionUnion2{ + Str: &str, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion2CreateIntegrationStoreDirectUIDescription2(createIntegrationStoreDirectUIDescription2 CreateIntegrationStoreDirectUIDescription2) CreateIntegrationStoreDirectUIDescriptionUnion2 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion2TypeCreateIntegrationStoreDirectUIDescription2 + + return CreateIntegrationStoreDirectUIDescriptionUnion2{ + CreateIntegrationStoreDirectUIDescription2: &createIntegrationStoreDirectUIDescription2, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDescriptionUnion2) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDescription2 CreateIntegrationStoreDirectUIDescription2 = CreateIntegrationStoreDirectUIDescription2{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDescription2, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDescription2 = &createIntegrationStoreDirectUIDescription2 + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion2TypeCreateIntegrationStoreDirectUIDescription2 + return nil + } + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion2TypeStr + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDescriptionUnion2", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDescriptionUnion2) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.CreateIntegrationStoreDirectUIDescription2 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDescription2, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDescriptionUnion2: all fields are null") +} + +type CreateIntegrationStoreDirectUIFormattedValue2 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIFormattedValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIFormattedValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIFormattedValue2) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesNumber struct { + Type CreateIntegrationStoreDirectTypeNumber1 `json:"type"` + UIControl CreateIntegrationStoreDirectUIControlInput2 `json:"ui:control"` + Maximum *float64 `json:"maximum,omitempty"` + ExclusiveMaximum *float64 `json:"exclusiveMaximum,omitempty"` + Minimum *float64 `json:"minimum,omitempty"` + ExclusiveMinimum *float64 `json:"exclusiveMinimum,omitempty"` + Description *string `json:"description,omitempty"` + Default *float64 `json:"default,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *CreateIntegrationStoreDirectUIReadOnlyUnion2 `json:"ui:read-only,omitempty"` + UIHidden *CreateIntegrationStoreDirectUIHiddenUnion2 `json:"ui:hidden,omitempty"` + UIDisabled *CreateIntegrationStoreDirectUIDisabledUnion2 `json:"ui:disabled,omitempty"` + UIDescription *CreateIntegrationStoreDirectUIDescriptionUnion2 `json:"ui:description,omitempty"` + UIFormattedValue *CreateIntegrationStoreDirectUIFormattedValue2 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` +} + +func (c CreateIntegrationStoreDirectPropertiesNumber) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesNumber) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ui:control"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetType() CreateIntegrationStoreDirectTypeNumber1 { + if o == nil { + return CreateIntegrationStoreDirectTypeNumber1("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetUIControl() CreateIntegrationStoreDirectUIControlInput2 { + if o == nil { + return CreateIntegrationStoreDirectUIControlInput2("") + } + return o.UIControl +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetMaximum() *float64 { + if o == nil { + return nil + } + return o.Maximum +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetExclusiveMaximum() *float64 { + if o == nil { + return nil + } + return o.ExclusiveMaximum +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetMinimum() *float64 { + if o == nil { + return nil + } + return o.Minimum +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetExclusiveMinimum() *float64 { + if o == nil { + return nil + } + return o.ExclusiveMinimum +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetDefault() *float64 { + if o == nil { + return nil + } + return o.Default +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetUILabel() *string { + if o == nil { + return nil + } + return o.UILabel +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetUIReadOnly() *CreateIntegrationStoreDirectUIReadOnlyUnion2 { + if o == nil { + return nil + } + return o.UIReadOnly +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetUIHidden() *CreateIntegrationStoreDirectUIHiddenUnion2 { + if o == nil { + return nil + } + return o.UIHidden +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetUIDisabled() *CreateIntegrationStoreDirectUIDisabledUnion2 { + if o == nil { + return nil + } + return o.UIDisabled +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetUIDescription() *CreateIntegrationStoreDirectUIDescriptionUnion2 { + if o == nil { + return nil + } + return o.UIDescription +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetUIFormattedValue() *CreateIntegrationStoreDirectUIFormattedValue2 { + if o == nil { + return nil + } + return o.UIFormattedValue +} + +func (o *CreateIntegrationStoreDirectPropertiesNumber) GetUIPlaceholder() *string { + if o == nil { + return nil + } + return o.UIPlaceholder +} + +type CreateIntegrationStoreDirectTypeString1 string + +const ( + CreateIntegrationStoreDirectTypeString1String CreateIntegrationStoreDirectTypeString1 = "string" +) + +func (e CreateIntegrationStoreDirectTypeString1) ToPointer() *CreateIntegrationStoreDirectTypeString1 { + return &e +} +func (e *CreateIntegrationStoreDirectTypeString1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "string": + *e = CreateIntegrationStoreDirectTypeString1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectTypeString1: %v", v) + } +} + +type CreateIntegrationStoreDirectUIControlInput1 string + +const ( + CreateIntegrationStoreDirectUIControlInput1Input CreateIntegrationStoreDirectUIControlInput1 = "input" +) + +func (e CreateIntegrationStoreDirectUIControlInput1) ToPointer() *CreateIntegrationStoreDirectUIControlInput1 { + return &e +} +func (e *CreateIntegrationStoreDirectUIControlInput1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "input": + *e = CreateIntegrationStoreDirectUIControlInput1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIControlInput1: %v", v) + } +} + +type MaxLengthAtBRANDAt78221 struct { +} + +func (m MaxLengthAtBRANDAt78221) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MaxLengthAtBRANDAt78221) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectMaxLength1 struct { + AtBRANDAt7822 MaxLengthAtBRANDAt78221 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectMaxLength1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectMaxLength1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectMaxLength1) GetAtBRANDAt7822() MaxLengthAtBRANDAt78221 { + if o == nil { + return MaxLengthAtBRANDAt78221{} + } + return o.AtBRANDAt7822 +} + +type MinLengthAtBRANDAt78221 struct { +} + +func (m MinLengthAtBRANDAt78221) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MinLengthAtBRANDAt78221) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectMinLength1 struct { + AtBRANDAt7822 MinLengthAtBRANDAt78221 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectMinLength1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectMinLength1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectMinLength1) GetAtBRANDAt7822() MinLengthAtBRANDAt78221 { + if o == nil { + return MinLengthAtBRANDAt78221{} + } + return o.AtBRANDAt7822 +} + +type PatternAtBRANDAt78221 struct { +} + +func (p PatternAtBRANDAt78221) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatternAtBRANDAt78221) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +type CreateIntegrationStoreDirectPattern1 struct { + AtBRANDAt7822 PatternAtBRANDAt78221 `json:"__@BRAND@7822"` +} + +func (c CreateIntegrationStoreDirectPattern1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPattern1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"__@BRAND@7822"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPattern1) GetAtBRANDAt7822() PatternAtBRANDAt78221 { + if o == nil { + return PatternAtBRANDAt78221{} + } + return o.AtBRANDAt7822 +} + +type CreateIntegrationStoreDirectUIReadOnlyEnum1 string + +const ( + CreateIntegrationStoreDirectUIReadOnlyEnum1Update CreateIntegrationStoreDirectUIReadOnlyEnum1 = "update" + CreateIntegrationStoreDirectUIReadOnlyEnum1Create CreateIntegrationStoreDirectUIReadOnlyEnum1 = "create" +) + +func (e CreateIntegrationStoreDirectUIReadOnlyEnum1) ToPointer() *CreateIntegrationStoreDirectUIReadOnlyEnum1 { + return &e +} +func (e *CreateIntegrationStoreDirectUIReadOnlyEnum1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIReadOnlyEnum1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIReadOnlyEnum1: %v", v) + } +} + +type CreateIntegrationStoreDirectUIReadOnly1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIReadOnly1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIReadOnly1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIReadOnly1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIReadOnlyUnion1Type string + +const ( + CreateIntegrationStoreDirectUIReadOnlyUnion1TypeBoolean CreateIntegrationStoreDirectUIReadOnlyUnion1Type = "boolean" + CreateIntegrationStoreDirectUIReadOnlyUnion1TypeCreateIntegrationStoreDirectUIReadOnly1 CreateIntegrationStoreDirectUIReadOnlyUnion1Type = "createIntegrationStoreDirect_ui:read-only_1" + CreateIntegrationStoreDirectUIReadOnlyUnion1TypeCreateIntegrationStoreDirectUIReadOnlyEnum1 CreateIntegrationStoreDirectUIReadOnlyUnion1Type = "createIntegrationStoreDirect_ui:read-only_enum_1" +) + +type CreateIntegrationStoreDirectUIReadOnlyUnion1 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnly1 *CreateIntegrationStoreDirectUIReadOnly1 `queryParam:"inline"` + CreateIntegrationStoreDirectUIReadOnlyEnum1 *CreateIntegrationStoreDirectUIReadOnlyEnum1 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIReadOnlyUnion1Type +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion1Boolean(boolean bool) CreateIntegrationStoreDirectUIReadOnlyUnion1 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion1TypeBoolean + + return CreateIntegrationStoreDirectUIReadOnlyUnion1{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion1CreateIntegrationStoreDirectUIReadOnly1(createIntegrationStoreDirectUIReadOnly1 CreateIntegrationStoreDirectUIReadOnly1) CreateIntegrationStoreDirectUIReadOnlyUnion1 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion1TypeCreateIntegrationStoreDirectUIReadOnly1 + + return CreateIntegrationStoreDirectUIReadOnlyUnion1{ + CreateIntegrationStoreDirectUIReadOnly1: &createIntegrationStoreDirectUIReadOnly1, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIReadOnlyUnion1CreateIntegrationStoreDirectUIReadOnlyEnum1(createIntegrationStoreDirectUIReadOnlyEnum1 CreateIntegrationStoreDirectUIReadOnlyEnum1) CreateIntegrationStoreDirectUIReadOnlyUnion1 { + typ := CreateIntegrationStoreDirectUIReadOnlyUnion1TypeCreateIntegrationStoreDirectUIReadOnlyEnum1 + + return CreateIntegrationStoreDirectUIReadOnlyUnion1{ + CreateIntegrationStoreDirectUIReadOnlyEnum1: &createIntegrationStoreDirectUIReadOnlyEnum1, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIReadOnlyUnion1) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIReadOnly1 CreateIntegrationStoreDirectUIReadOnly1 = CreateIntegrationStoreDirectUIReadOnly1{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnly1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnly1 = &createIntegrationStoreDirectUIReadOnly1 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion1TypeCreateIntegrationStoreDirectUIReadOnly1 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion1TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIReadOnlyEnum1 CreateIntegrationStoreDirectUIReadOnlyEnum1 = CreateIntegrationStoreDirectUIReadOnlyEnum1("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIReadOnlyEnum1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIReadOnlyEnum1 = &createIntegrationStoreDirectUIReadOnlyEnum1 + u.Type = CreateIntegrationStoreDirectUIReadOnlyUnion1TypeCreateIntegrationStoreDirectUIReadOnlyEnum1 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIReadOnlyUnion1", string(data)) +} + +func (u CreateIntegrationStoreDirectUIReadOnlyUnion1) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnly1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnly1, "", true) + } + + if u.CreateIntegrationStoreDirectUIReadOnlyEnum1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIReadOnlyEnum1, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIReadOnlyUnion1: all fields are null") +} + +type CreateIntegrationStoreDirectUIHiddenEnum1 string + +const ( + CreateIntegrationStoreDirectUIHiddenEnum1Update CreateIntegrationStoreDirectUIHiddenEnum1 = "update" + CreateIntegrationStoreDirectUIHiddenEnum1Create CreateIntegrationStoreDirectUIHiddenEnum1 = "create" +) + +func (e CreateIntegrationStoreDirectUIHiddenEnum1) ToPointer() *CreateIntegrationStoreDirectUIHiddenEnum1 { + return &e +} +func (e *CreateIntegrationStoreDirectUIHiddenEnum1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIHiddenEnum1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIHiddenEnum1: %v", v) + } +} + +type CreateIntegrationStoreDirectUIHidden1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIHidden1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIHidden1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIHidden1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIHiddenUnion1Type string + +const ( + CreateIntegrationStoreDirectUIHiddenUnion1TypeBoolean CreateIntegrationStoreDirectUIHiddenUnion1Type = "boolean" + CreateIntegrationStoreDirectUIHiddenUnion1TypeCreateIntegrationStoreDirectUIHidden1 CreateIntegrationStoreDirectUIHiddenUnion1Type = "createIntegrationStoreDirect_ui:hidden_1" + CreateIntegrationStoreDirectUIHiddenUnion1TypeCreateIntegrationStoreDirectUIHiddenEnum1 CreateIntegrationStoreDirectUIHiddenUnion1Type = "createIntegrationStoreDirect_ui:hidden_enum_1" +) + +type CreateIntegrationStoreDirectUIHiddenUnion1 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIHidden1 *CreateIntegrationStoreDirectUIHidden1 `queryParam:"inline"` + CreateIntegrationStoreDirectUIHiddenEnum1 *CreateIntegrationStoreDirectUIHiddenEnum1 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIHiddenUnion1Type +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion1Boolean(boolean bool) CreateIntegrationStoreDirectUIHiddenUnion1 { + typ := CreateIntegrationStoreDirectUIHiddenUnion1TypeBoolean + + return CreateIntegrationStoreDirectUIHiddenUnion1{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion1CreateIntegrationStoreDirectUIHidden1(createIntegrationStoreDirectUIHidden1 CreateIntegrationStoreDirectUIHidden1) CreateIntegrationStoreDirectUIHiddenUnion1 { + typ := CreateIntegrationStoreDirectUIHiddenUnion1TypeCreateIntegrationStoreDirectUIHidden1 + + return CreateIntegrationStoreDirectUIHiddenUnion1{ + CreateIntegrationStoreDirectUIHidden1: &createIntegrationStoreDirectUIHidden1, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIHiddenUnion1CreateIntegrationStoreDirectUIHiddenEnum1(createIntegrationStoreDirectUIHiddenEnum1 CreateIntegrationStoreDirectUIHiddenEnum1) CreateIntegrationStoreDirectUIHiddenUnion1 { + typ := CreateIntegrationStoreDirectUIHiddenUnion1TypeCreateIntegrationStoreDirectUIHiddenEnum1 + + return CreateIntegrationStoreDirectUIHiddenUnion1{ + CreateIntegrationStoreDirectUIHiddenEnum1: &createIntegrationStoreDirectUIHiddenEnum1, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIHiddenUnion1) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIHidden1 CreateIntegrationStoreDirectUIHidden1 = CreateIntegrationStoreDirectUIHidden1{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHidden1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHidden1 = &createIntegrationStoreDirectUIHidden1 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion1TypeCreateIntegrationStoreDirectUIHidden1 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIHiddenUnion1TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIHiddenEnum1 CreateIntegrationStoreDirectUIHiddenEnum1 = CreateIntegrationStoreDirectUIHiddenEnum1("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIHiddenEnum1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIHiddenEnum1 = &createIntegrationStoreDirectUIHiddenEnum1 + u.Type = CreateIntegrationStoreDirectUIHiddenUnion1TypeCreateIntegrationStoreDirectUIHiddenEnum1 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIHiddenUnion1", string(data)) +} + +func (u CreateIntegrationStoreDirectUIHiddenUnion1) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIHidden1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHidden1, "", true) + } + + if u.CreateIntegrationStoreDirectUIHiddenEnum1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIHiddenEnum1, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIHiddenUnion1: all fields are null") +} + +type CreateIntegrationStoreDirectUIDisabledEnum1 string + +const ( + CreateIntegrationStoreDirectUIDisabledEnum1Update CreateIntegrationStoreDirectUIDisabledEnum1 = "update" + CreateIntegrationStoreDirectUIDisabledEnum1Create CreateIntegrationStoreDirectUIDisabledEnum1 = "create" +) + +func (e CreateIntegrationStoreDirectUIDisabledEnum1) ToPointer() *CreateIntegrationStoreDirectUIDisabledEnum1 { + return &e +} +func (e *CreateIntegrationStoreDirectUIDisabledEnum1) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectUIDisabledEnum1(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectUIDisabledEnum1: %v", v) + } +} + +type CreateIntegrationStoreDirectUIDisabled1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDisabled1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDisabled1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDisabled1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDisabledUnion1Type string + +const ( + CreateIntegrationStoreDirectUIDisabledUnion1TypeBoolean CreateIntegrationStoreDirectUIDisabledUnion1Type = "boolean" + CreateIntegrationStoreDirectUIDisabledUnion1TypeCreateIntegrationStoreDirectUIDisabled1 CreateIntegrationStoreDirectUIDisabledUnion1Type = "createIntegrationStoreDirect_ui:disabled_1" + CreateIntegrationStoreDirectUIDisabledUnion1TypeCreateIntegrationStoreDirectUIDisabledEnum1 CreateIntegrationStoreDirectUIDisabledUnion1Type = "createIntegrationStoreDirect_ui:disabled_enum_1" +) + +type CreateIntegrationStoreDirectUIDisabledUnion1 struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabled1 *CreateIntegrationStoreDirectUIDisabled1 `queryParam:"inline"` + CreateIntegrationStoreDirectUIDisabledEnum1 *CreateIntegrationStoreDirectUIDisabledEnum1 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDisabledUnion1Type +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion1Boolean(boolean bool) CreateIntegrationStoreDirectUIDisabledUnion1 { + typ := CreateIntegrationStoreDirectUIDisabledUnion1TypeBoolean + + return CreateIntegrationStoreDirectUIDisabledUnion1{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion1CreateIntegrationStoreDirectUIDisabled1(createIntegrationStoreDirectUIDisabled1 CreateIntegrationStoreDirectUIDisabled1) CreateIntegrationStoreDirectUIDisabledUnion1 { + typ := CreateIntegrationStoreDirectUIDisabledUnion1TypeCreateIntegrationStoreDirectUIDisabled1 + + return CreateIntegrationStoreDirectUIDisabledUnion1{ + CreateIntegrationStoreDirectUIDisabled1: &createIntegrationStoreDirectUIDisabled1, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDisabledUnion1CreateIntegrationStoreDirectUIDisabledEnum1(createIntegrationStoreDirectUIDisabledEnum1 CreateIntegrationStoreDirectUIDisabledEnum1) CreateIntegrationStoreDirectUIDisabledUnion1 { + typ := CreateIntegrationStoreDirectUIDisabledUnion1TypeCreateIntegrationStoreDirectUIDisabledEnum1 + + return CreateIntegrationStoreDirectUIDisabledUnion1{ + CreateIntegrationStoreDirectUIDisabledEnum1: &createIntegrationStoreDirectUIDisabledEnum1, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDisabledUnion1) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDisabled1 CreateIntegrationStoreDirectUIDisabled1 = CreateIntegrationStoreDirectUIDisabled1{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabled1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabled1 = &createIntegrationStoreDirectUIDisabled1 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion1TypeCreateIntegrationStoreDirectUIDisabled1 + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectUIDisabledUnion1TypeBoolean + return nil + } + + var createIntegrationStoreDirectUIDisabledEnum1 CreateIntegrationStoreDirectUIDisabledEnum1 = CreateIntegrationStoreDirectUIDisabledEnum1("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDisabledEnum1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDisabledEnum1 = &createIntegrationStoreDirectUIDisabledEnum1 + u.Type = CreateIntegrationStoreDirectUIDisabledUnion1TypeCreateIntegrationStoreDirectUIDisabledEnum1 + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDisabledUnion1", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDisabledUnion1) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabled1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabled1, "", true) + } + + if u.CreateIntegrationStoreDirectUIDisabledEnum1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDisabledEnum1, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDisabledUnion1: all fields are null") +} + +type CreateIntegrationStoreDirectUIDescription1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIDescription1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIDescription1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIDescription1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectUIDescriptionUnion1Type string + +const ( + CreateIntegrationStoreDirectUIDescriptionUnion1TypeStr CreateIntegrationStoreDirectUIDescriptionUnion1Type = "str" + CreateIntegrationStoreDirectUIDescriptionUnion1TypeCreateIntegrationStoreDirectUIDescription1 CreateIntegrationStoreDirectUIDescriptionUnion1Type = "createIntegrationStoreDirect_ui:description_1" +) + +type CreateIntegrationStoreDirectUIDescriptionUnion1 struct { + Str *string `queryParam:"inline"` + CreateIntegrationStoreDirectUIDescription1 *CreateIntegrationStoreDirectUIDescription1 `queryParam:"inline"` + + Type CreateIntegrationStoreDirectUIDescriptionUnion1Type +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion1Str(str string) CreateIntegrationStoreDirectUIDescriptionUnion1 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion1TypeStr + + return CreateIntegrationStoreDirectUIDescriptionUnion1{ + Str: &str, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectUIDescriptionUnion1CreateIntegrationStoreDirectUIDescription1(createIntegrationStoreDirectUIDescription1 CreateIntegrationStoreDirectUIDescription1) CreateIntegrationStoreDirectUIDescriptionUnion1 { + typ := CreateIntegrationStoreDirectUIDescriptionUnion1TypeCreateIntegrationStoreDirectUIDescription1 + + return CreateIntegrationStoreDirectUIDescriptionUnion1{ + CreateIntegrationStoreDirectUIDescription1: &createIntegrationStoreDirectUIDescription1, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectUIDescriptionUnion1) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectUIDescription1 CreateIntegrationStoreDirectUIDescription1 = CreateIntegrationStoreDirectUIDescription1{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectUIDescription1, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectUIDescription1 = &createIntegrationStoreDirectUIDescription1 + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion1TypeCreateIntegrationStoreDirectUIDescription1 + return nil + } + + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + u.Str = &str + u.Type = CreateIntegrationStoreDirectUIDescriptionUnion1TypeStr + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectUIDescriptionUnion1", string(data)) +} + +func (u CreateIntegrationStoreDirectUIDescriptionUnion1) MarshalJSON() ([]byte, error) { + if u.Str != nil { + return utils.MarshalJSON(u.Str, "", true) + } + + if u.CreateIntegrationStoreDirectUIDescription1 != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectUIDescription1, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectUIDescriptionUnion1: all fields are null") +} + +type CreateIntegrationStoreDirectUIFormattedValue1 struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectUIFormattedValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectUIFormattedValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectUIFormattedValue1) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectPropertiesStringInput struct { + Type CreateIntegrationStoreDirectTypeString1 `json:"type"` + UIControl CreateIntegrationStoreDirectUIControlInput1 `json:"ui:control"` + Enum []string `json:"enum,omitempty"` + MaxLength *CreateIntegrationStoreDirectMaxLength1 `json:"maxLength,omitempty"` + MinLength *CreateIntegrationStoreDirectMinLength1 `json:"minLength,omitempty"` + Pattern *CreateIntegrationStoreDirectPattern1 `json:"pattern,omitempty"` + Description *string `json:"description,omitempty"` + Default *string `json:"default,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *CreateIntegrationStoreDirectUIReadOnlyUnion1 `json:"ui:read-only,omitempty"` + UIHidden *CreateIntegrationStoreDirectUIHiddenUnion1 `json:"ui:hidden,omitempty"` + UIDisabled *CreateIntegrationStoreDirectUIDisabledUnion1 `json:"ui:disabled,omitempty"` + UIDescription *CreateIntegrationStoreDirectUIDescriptionUnion1 `json:"ui:description,omitempty"` + UIFormattedValue *CreateIntegrationStoreDirectUIFormattedValue1 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` +} + +func (c CreateIntegrationStoreDirectPropertiesStringInput) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectPropertiesStringInput) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "ui:control"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetType() CreateIntegrationStoreDirectTypeString1 { + if o == nil { + return CreateIntegrationStoreDirectTypeString1("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetUIControl() CreateIntegrationStoreDirectUIControlInput1 { + if o == nil { + return CreateIntegrationStoreDirectUIControlInput1("") + } + return o.UIControl +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetEnum() []string { + if o == nil { + return nil + } + return o.Enum +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetMaxLength() *CreateIntegrationStoreDirectMaxLength1 { + if o == nil { + return nil + } + return o.MaxLength +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetMinLength() *CreateIntegrationStoreDirectMinLength1 { + if o == nil { + return nil + } + return o.MinLength +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetPattern() *CreateIntegrationStoreDirectPattern1 { + if o == nil { + return nil + } + return o.Pattern +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetDefault() *string { + if o == nil { + return nil + } + return o.Default +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetUILabel() *string { + if o == nil { + return nil + } + return o.UILabel +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetUIReadOnly() *CreateIntegrationStoreDirectUIReadOnlyUnion1 { + if o == nil { + return nil + } + return o.UIReadOnly +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetUIHidden() *CreateIntegrationStoreDirectUIHiddenUnion1 { + if o == nil { + return nil + } + return o.UIHidden +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetUIDisabled() *CreateIntegrationStoreDirectUIDisabledUnion1 { + if o == nil { + return nil + } + return o.UIDisabled +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetUIDescription() *CreateIntegrationStoreDirectUIDescriptionUnion1 { + if o == nil { + return nil + } + return o.UIDescription +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetUIFormattedValue() *CreateIntegrationStoreDirectUIFormattedValue1 { + if o == nil { + return nil + } + return o.UIFormattedValue +} + +func (o *CreateIntegrationStoreDirectPropertiesStringInput) GetUIPlaceholder() *string { + if o == nil { + return nil + } + return o.UIPlaceholder +} + +type CreateIntegrationStoreDirectPropertiesUnionType string + +const ( + CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesStringInput CreateIntegrationStoreDirectPropertiesUnionType = "createIntegrationStoreDirect_properties_String_Input" + CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesNumber CreateIntegrationStoreDirectPropertiesUnionType = "createIntegrationStoreDirect_properties_Number" + CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesToggle CreateIntegrationStoreDirectPropertiesUnionType = "createIntegrationStoreDirect_properties_Toggle" + CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesSlider CreateIntegrationStoreDirectPropertiesUnionType = "createIntegrationStoreDirect_properties_Slider" + CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesSelect CreateIntegrationStoreDirectPropertiesUnionType = "createIntegrationStoreDirect_properties_Select" + CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesMultiSelect CreateIntegrationStoreDirectPropertiesUnionType = "createIntegrationStoreDirect_properties_MultiSelect" + CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesVercelRegion CreateIntegrationStoreDirectPropertiesUnionType = "createIntegrationStoreDirect_properties_VercelRegion" + CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectProperties CreateIntegrationStoreDirectPropertiesUnionType = "createIntegrationStoreDirect_properties" +) + +type CreateIntegrationStoreDirectPropertiesUnion struct { + CreateIntegrationStoreDirectPropertiesStringInput *CreateIntegrationStoreDirectPropertiesStringInput `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesNumber *CreateIntegrationStoreDirectPropertiesNumber `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesToggle *CreateIntegrationStoreDirectPropertiesToggle `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesSlider *CreateIntegrationStoreDirectPropertiesSlider `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesSelect *CreateIntegrationStoreDirectPropertiesSelect `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesMultiSelect *CreateIntegrationStoreDirectPropertiesMultiSelect `queryParam:"inline"` + CreateIntegrationStoreDirectPropertiesVercelRegion *CreateIntegrationStoreDirectPropertiesVercelRegion `queryParam:"inline"` + CreateIntegrationStoreDirectProperties *CreateIntegrationStoreDirectProperties `queryParam:"inline"` + + Type CreateIntegrationStoreDirectPropertiesUnionType +} + +func CreateCreateIntegrationStoreDirectPropertiesUnionCreateIntegrationStoreDirectPropertiesStringInput(createIntegrationStoreDirectPropertiesStringInput CreateIntegrationStoreDirectPropertiesStringInput) CreateIntegrationStoreDirectPropertiesUnion { + typ := CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesStringInput + + return CreateIntegrationStoreDirectPropertiesUnion{ + CreateIntegrationStoreDirectPropertiesStringInput: &createIntegrationStoreDirectPropertiesStringInput, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesUnionCreateIntegrationStoreDirectPropertiesNumber(createIntegrationStoreDirectPropertiesNumber CreateIntegrationStoreDirectPropertiesNumber) CreateIntegrationStoreDirectPropertiesUnion { + typ := CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesNumber + + return CreateIntegrationStoreDirectPropertiesUnion{ + CreateIntegrationStoreDirectPropertiesNumber: &createIntegrationStoreDirectPropertiesNumber, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesUnionCreateIntegrationStoreDirectPropertiesToggle(createIntegrationStoreDirectPropertiesToggle CreateIntegrationStoreDirectPropertiesToggle) CreateIntegrationStoreDirectPropertiesUnion { + typ := CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesToggle + + return CreateIntegrationStoreDirectPropertiesUnion{ + CreateIntegrationStoreDirectPropertiesToggle: &createIntegrationStoreDirectPropertiesToggle, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesUnionCreateIntegrationStoreDirectPropertiesSlider(createIntegrationStoreDirectPropertiesSlider CreateIntegrationStoreDirectPropertiesSlider) CreateIntegrationStoreDirectPropertiesUnion { + typ := CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesSlider + + return CreateIntegrationStoreDirectPropertiesUnion{ + CreateIntegrationStoreDirectPropertiesSlider: &createIntegrationStoreDirectPropertiesSlider, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesUnionCreateIntegrationStoreDirectPropertiesSelect(createIntegrationStoreDirectPropertiesSelect CreateIntegrationStoreDirectPropertiesSelect) CreateIntegrationStoreDirectPropertiesUnion { + typ := CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesSelect + + return CreateIntegrationStoreDirectPropertiesUnion{ + CreateIntegrationStoreDirectPropertiesSelect: &createIntegrationStoreDirectPropertiesSelect, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesUnionCreateIntegrationStoreDirectPropertiesMultiSelect(createIntegrationStoreDirectPropertiesMultiSelect CreateIntegrationStoreDirectPropertiesMultiSelect) CreateIntegrationStoreDirectPropertiesUnion { + typ := CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesMultiSelect + + return CreateIntegrationStoreDirectPropertiesUnion{ + CreateIntegrationStoreDirectPropertiesMultiSelect: &createIntegrationStoreDirectPropertiesMultiSelect, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesUnionCreateIntegrationStoreDirectPropertiesVercelRegion(createIntegrationStoreDirectPropertiesVercelRegion CreateIntegrationStoreDirectPropertiesVercelRegion) CreateIntegrationStoreDirectPropertiesUnion { + typ := CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesVercelRegion + + return CreateIntegrationStoreDirectPropertiesUnion{ + CreateIntegrationStoreDirectPropertiesVercelRegion: &createIntegrationStoreDirectPropertiesVercelRegion, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectPropertiesUnionCreateIntegrationStoreDirectProperties(createIntegrationStoreDirectProperties CreateIntegrationStoreDirectProperties) CreateIntegrationStoreDirectPropertiesUnion { + typ := CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectProperties + + return CreateIntegrationStoreDirectPropertiesUnion{ + CreateIntegrationStoreDirectProperties: &createIntegrationStoreDirectProperties, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectPropertiesUnion) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectPropertiesSlider CreateIntegrationStoreDirectPropertiesSlider = CreateIntegrationStoreDirectPropertiesSlider{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesSlider, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesSlider = &createIntegrationStoreDirectPropertiesSlider + u.Type = CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesSlider + return nil + } + + var createIntegrationStoreDirectPropertiesMultiSelect CreateIntegrationStoreDirectPropertiesMultiSelect = CreateIntegrationStoreDirectPropertiesMultiSelect{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesMultiSelect, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesMultiSelect = &createIntegrationStoreDirectPropertiesMultiSelect + u.Type = CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesMultiSelect + return nil + } + + var createIntegrationStoreDirectPropertiesSelect CreateIntegrationStoreDirectPropertiesSelect = CreateIntegrationStoreDirectPropertiesSelect{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesSelect, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesSelect = &createIntegrationStoreDirectPropertiesSelect + u.Type = CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesSelect + return nil + } + + var createIntegrationStoreDirectPropertiesVercelRegion CreateIntegrationStoreDirectPropertiesVercelRegion = CreateIntegrationStoreDirectPropertiesVercelRegion{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesVercelRegion, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesVercelRegion = &createIntegrationStoreDirectPropertiesVercelRegion + u.Type = CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesVercelRegion + return nil + } + + var createIntegrationStoreDirectPropertiesStringInput CreateIntegrationStoreDirectPropertiesStringInput = CreateIntegrationStoreDirectPropertiesStringInput{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesStringInput, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesStringInput = &createIntegrationStoreDirectPropertiesStringInput + u.Type = CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesStringInput + return nil + } + + var createIntegrationStoreDirectPropertiesNumber CreateIntegrationStoreDirectPropertiesNumber = CreateIntegrationStoreDirectPropertiesNumber{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesNumber, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesNumber = &createIntegrationStoreDirectPropertiesNumber + u.Type = CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesNumber + return nil + } + + var createIntegrationStoreDirectPropertiesToggle CreateIntegrationStoreDirectPropertiesToggle = CreateIntegrationStoreDirectPropertiesToggle{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectPropertiesToggle, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectPropertiesToggle = &createIntegrationStoreDirectPropertiesToggle + u.Type = CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectPropertiesToggle + return nil + } + + var createIntegrationStoreDirectProperties CreateIntegrationStoreDirectProperties = CreateIntegrationStoreDirectProperties{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectProperties, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectProperties = &createIntegrationStoreDirectProperties + u.Type = CreateIntegrationStoreDirectPropertiesUnionTypeCreateIntegrationStoreDirectProperties + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectPropertiesUnion", string(data)) +} + +func (u CreateIntegrationStoreDirectPropertiesUnion) MarshalJSON() ([]byte, error) { + if u.CreateIntegrationStoreDirectPropertiesStringInput != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesStringInput, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesNumber != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesNumber, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesToggle != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesToggle, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesSlider != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesSlider, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesSelect != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesSelect, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesMultiSelect != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesMultiSelect, "", true) + } + + if u.CreateIntegrationStoreDirectPropertiesVercelRegion != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectPropertiesVercelRegion, "", true) + } + + if u.CreateIntegrationStoreDirectProperties != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectProperties, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectPropertiesUnion: all fields are null") +} + +type CreateIntegrationStoreDirectMetadataSchema struct { + Type CreateIntegrationStoreDirectTypeObject `json:"type"` + Properties map[string]CreateIntegrationStoreDirectPropertiesUnion `json:"properties"` + Required []string `json:"required,omitempty"` +} + +func (o *CreateIntegrationStoreDirectMetadataSchema) GetType() CreateIntegrationStoreDirectTypeObject { + if o == nil { + return CreateIntegrationStoreDirectTypeObject("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectMetadataSchema) GetProperties() map[string]CreateIntegrationStoreDirectPropertiesUnion { + if o == nil { + return map[string]CreateIntegrationStoreDirectPropertiesUnion{} + } + return o.Properties +} + +func (o *CreateIntegrationStoreDirectMetadataSchema) GetRequired() []string { + if o == nil { + return nil + } + return o.Required +} + +type ResourceLink struct { + Href string `json:"href"` + Title string `json:"title"` +} + +func (o *ResourceLink) GetHref() string { + if o == nil { + return "" + } + return o.Href +} + +func (o *ResourceLink) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +type Tag string + +const ( + TagEdgeConfig Tag = "edge-config" + TagRedis Tag = "redis" + TagPostgres Tag = "postgres" + TagBlob Tag = "blob" + TagChecks Tag = "checks" + TagExperimentation Tag = "experimentation" + TagStorage Tag = "storage" + TagAi Tag = "ai" + TagObservability Tag = "observability" + TagVideo Tag = "video" + TagAuthentication Tag = "authentication" + TagWorkflow Tag = "workflow" + TagLogDrain Tag = "logDrain" + TagMessaging Tag = "messaging" + TagOther Tag = "other" + TagMysql Tag = "mysql" + TagVector Tag = "vector" + TagTagAi Tag = "tag_ai" + TagTagAnalytics Tag = "tag_analytics" + TagTagAuthentication Tag = "tag_authentication" + TagTagCms Tag = "tag_cms" + TagTagCodeRepository Tag = "tag_code_repository" + TagTagCommerce Tag = "tag_commerce" + TagTagDatabases Tag = "tag_databases" + TagTagDevTools Tag = "tag_dev_tools" + TagTagExperimentation Tag = "tag_experimentation" + TagTagFlags Tag = "tag_flags" + TagTagLogging Tag = "tag_logging" + TagTagMessaging Tag = "tag_messaging" + TagTagMonitoring Tag = "tag_monitoring" + TagTagObservability Tag = "tag_observability" + TagTagPerformance Tag = "tag_performance" + TagTagProductivity Tag = "tag_productivity" + TagTagSearching Tag = "tag_searching" + TagTagSecurity Tag = "tag_security" + TagTagTesting Tag = "tag_testing" + TagTagVideo Tag = "tag_video" + TagTagWorkflow Tag = "tag_workflow" + TagTagChecks Tag = "tag_checks" + TagTagStorage Tag = "tag_storage" + TagTagLogDrain Tag = "tag_logDrain" + TagTagOther Tag = "tag_other" +) + +func (e Tag) ToPointer() *Tag { + return &e +} +func (e *Tag) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "edge-config": + fallthrough + case "redis": + fallthrough + case "postgres": + fallthrough + case "blob": + fallthrough + case "checks": + fallthrough + case "experimentation": + fallthrough + case "storage": + fallthrough + case "ai": + fallthrough + case "observability": + fallthrough + case "video": + fallthrough + case "authentication": + fallthrough + case "workflow": + fallthrough + case "logDrain": + fallthrough + case "messaging": + fallthrough + case "other": + fallthrough + case "mysql": + fallthrough + case "vector": + fallthrough + case "tag_ai": + fallthrough + case "tag_analytics": + fallthrough + case "tag_authentication": + fallthrough + case "tag_cms": + fallthrough + case "tag_code_repository": + fallthrough + case "tag_commerce": + fallthrough + case "tag_databases": + fallthrough + case "tag_dev_tools": + fallthrough + case "tag_experimentation": + fallthrough + case "tag_flags": + fallthrough + case "tag_logging": + fallthrough + case "tag_messaging": + fallthrough + case "tag_monitoring": + fallthrough + case "tag_observability": + fallthrough + case "tag_performance": + fallthrough + case "tag_productivity": + fallthrough + case "tag_searching": + fallthrough + case "tag_security": + fallthrough + case "tag_testing": + fallthrough + case "tag_video": + fallthrough + case "tag_workflow": + fallthrough + case "tag_checks": + fallthrough + case "tag_storage": + fallthrough + case "tag_logDrain": + fallthrough + case "tag_other": + *e = Tag(v) + return nil + default: + return fmt.Errorf("invalid value for Tag: %v", v) + } +} + +type ProjectConnectionScope string + +const ( + ProjectConnectionScopeReadDeployment ProjectConnectionScope = "read:deployment" + ProjectConnectionScopeReadDomain ProjectConnectionScope = "read:domain" + ProjectConnectionScopeReadProject ProjectConnectionScope = "read:project" + ProjectConnectionScopeReadWriteDeployment ProjectConnectionScope = "read-write:deployment" + ProjectConnectionScopeReadWriteDeploymentCheck ProjectConnectionScope = "read-write:deployment-check" + ProjectConnectionScopeReadWriteDomain ProjectConnectionScope = "read-write:domain" + ProjectConnectionScopeReadWriteGlobalProjectEnvVars ProjectConnectionScope = "read-write:global-project-env-vars" + ProjectConnectionScopeReadWriteIntegrationDeploymentAction ProjectConnectionScope = "read-write:integration-deployment-action" + ProjectConnectionScopeReadWriteLogDrain ProjectConnectionScope = "read-write:log-drain" + ProjectConnectionScopeReadWriteProjectEnvVars ProjectConnectionScope = "read-write:project-env-vars" + ProjectConnectionScopeReadWriteProjectProtectionBypass ProjectConnectionScope = "read-write:project-protection-bypass" +) + +func (e ProjectConnectionScope) ToPointer() *ProjectConnectionScope { + return &e +} +func (e *ProjectConnectionScope) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "read:deployment": + fallthrough + case "read:domain": + fallthrough + case "read:project": + fallthrough + case "read-write:deployment": + fallthrough + case "read-write:deployment-check": + fallthrough + case "read-write:domain": + fallthrough + case "read-write:global-project-env-vars": + fallthrough + case "read-write:integration-deployment-action": + fallthrough + case "read-write:log-drain": + fallthrough + case "read-write:project-env-vars": + fallthrough + case "read-write:project-protection-bypass": + *e = ProjectConnectionScope(v) + return nil + default: + return fmt.Errorf("invalid value for ProjectConnectionScope: %v", v) + } +} + +type CreateIntegrationStoreDirectRepl struct { + Enabled bool `json:"enabled"` + SupportsReadOnlyMode bool `json:"supportsReadOnlyMode"` + WelcomeMessage *string `json:"welcomeMessage,omitempty"` +} + +func (o *CreateIntegrationStoreDirectRepl) GetEnabled() bool { + if o == nil { + return false + } + return o.Enabled +} + +func (o *CreateIntegrationStoreDirectRepl) GetSupportsReadOnlyMode() bool { + if o == nil { + return false + } + return o.SupportsReadOnlyMode +} + +func (o *CreateIntegrationStoreDirectRepl) GetWelcomeMessage() *string { + if o == nil { + return nil + } + return o.WelcomeMessage +} + +type ActionType string + +const ( + ActionTypeConnectToProject ActionType = "connect_to_project" + ActionTypeConfigureProjectConnections ActionType = "configure_project_connections" +) + +func (e ActionType) ToPointer() *ActionType { + return &e +} +func (e *ActionType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "connect_to_project": + fallthrough + case "configure_project_connections": + *e = ActionType(v) + return nil + default: + return fmt.Errorf("invalid value for ActionType: %v", v) + } +} + +type StepAction struct { + Type ActionType `json:"type"` +} + +func (o *StepAction) GetType() ActionType { + if o == nil { + return ActionType("") + } + return o.Type +} + +type Step struct { + Title string `json:"title"` + Content string `json:"content"` + Actions []StepAction `json:"actions,omitempty"` +} + +func (o *Step) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +func (o *Step) GetContent() string { + if o == nil { + return "" + } + return o.Content +} + +func (o *Step) GetActions() []StepAction { + if o == nil { + return nil + } + return o.Actions +} + +type Guide struct { + Framework string `json:"framework"` + Title string `json:"title"` + Steps []Step `json:"steps"` +} + +func (o *Guide) GetFramework() string { + if o == nil { + return "" + } + return o.Framework +} + +func (o *Guide) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +func (o *Guide) GetSteps() []Step { + if o == nil { + return []Step{} + } + return o.Steps +} + +type ValueAtBRANDAt7822 struct { +} + +type CreateIntegrationStoreDirectValue struct { + AtBRANDAt7822 ValueAtBRANDAt7822 `json:"__@BRAND@7822"` +} + +func (o *CreateIntegrationStoreDirectValue) GetAtBRANDAt7822() ValueAtBRANDAt7822 { + if o == nil { + return ValueAtBRANDAt7822{} + } + return o.AtBRANDAt7822 +} + +type CreateIntegrationStoreDirectDisabledEnum string + +const ( + CreateIntegrationStoreDirectDisabledEnumUpdate CreateIntegrationStoreDirectDisabledEnum = "update" + CreateIntegrationStoreDirectDisabledEnumCreate CreateIntegrationStoreDirectDisabledEnum = "create" +) + +func (e CreateIntegrationStoreDirectDisabledEnum) ToPointer() *CreateIntegrationStoreDirectDisabledEnum { + return &e +} +func (e *CreateIntegrationStoreDirectDisabledEnum) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectDisabledEnum(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectDisabledEnum: %v", v) + } +} + +type CreateIntegrationStoreDirectDisabled struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectDisabled) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectDisabled) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectDisabled) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectDisabledUnionType string + +const ( + CreateIntegrationStoreDirectDisabledUnionTypeBoolean CreateIntegrationStoreDirectDisabledUnionType = "boolean" + CreateIntegrationStoreDirectDisabledUnionTypeCreateIntegrationStoreDirectDisabled CreateIntegrationStoreDirectDisabledUnionType = "createIntegrationStoreDirect_disabled" + CreateIntegrationStoreDirectDisabledUnionTypeCreateIntegrationStoreDirectDisabledEnum CreateIntegrationStoreDirectDisabledUnionType = "createIntegrationStoreDirect_disabled_enum" +) + +type CreateIntegrationStoreDirectDisabledUnion struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectDisabled *CreateIntegrationStoreDirectDisabled `queryParam:"inline"` + CreateIntegrationStoreDirectDisabledEnum *CreateIntegrationStoreDirectDisabledEnum `queryParam:"inline"` + + Type CreateIntegrationStoreDirectDisabledUnionType +} + +func CreateCreateIntegrationStoreDirectDisabledUnionBoolean(boolean bool) CreateIntegrationStoreDirectDisabledUnion { + typ := CreateIntegrationStoreDirectDisabledUnionTypeBoolean + + return CreateIntegrationStoreDirectDisabledUnion{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectDisabledUnionCreateIntegrationStoreDirectDisabled(createIntegrationStoreDirectDisabled CreateIntegrationStoreDirectDisabled) CreateIntegrationStoreDirectDisabledUnion { + typ := CreateIntegrationStoreDirectDisabledUnionTypeCreateIntegrationStoreDirectDisabled + + return CreateIntegrationStoreDirectDisabledUnion{ + CreateIntegrationStoreDirectDisabled: &createIntegrationStoreDirectDisabled, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectDisabledUnionCreateIntegrationStoreDirectDisabledEnum(createIntegrationStoreDirectDisabledEnum CreateIntegrationStoreDirectDisabledEnum) CreateIntegrationStoreDirectDisabledUnion { + typ := CreateIntegrationStoreDirectDisabledUnionTypeCreateIntegrationStoreDirectDisabledEnum + + return CreateIntegrationStoreDirectDisabledUnion{ + CreateIntegrationStoreDirectDisabledEnum: &createIntegrationStoreDirectDisabledEnum, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectDisabledUnion) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectDisabled CreateIntegrationStoreDirectDisabled = CreateIntegrationStoreDirectDisabled{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectDisabled, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectDisabled = &createIntegrationStoreDirectDisabled + u.Type = CreateIntegrationStoreDirectDisabledUnionTypeCreateIntegrationStoreDirectDisabled + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectDisabledUnionTypeBoolean + return nil + } + + var createIntegrationStoreDirectDisabledEnum CreateIntegrationStoreDirectDisabledEnum = CreateIntegrationStoreDirectDisabledEnum("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectDisabledEnum, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectDisabledEnum = &createIntegrationStoreDirectDisabledEnum + u.Type = CreateIntegrationStoreDirectDisabledUnionTypeCreateIntegrationStoreDirectDisabledEnum + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectDisabledUnion", string(data)) +} + +func (u CreateIntegrationStoreDirectDisabledUnion) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectDisabled != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectDisabled, "", true) + } + + if u.CreateIntegrationStoreDirectDisabledEnum != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectDisabledEnum, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectDisabledUnion: all fields are null") +} + +type CreateIntegrationStoreDirectHiddenEnum string + +const ( + CreateIntegrationStoreDirectHiddenEnumUpdate CreateIntegrationStoreDirectHiddenEnum = "update" + CreateIntegrationStoreDirectHiddenEnumCreate CreateIntegrationStoreDirectHiddenEnum = "create" +) + +func (e CreateIntegrationStoreDirectHiddenEnum) ToPointer() *CreateIntegrationStoreDirectHiddenEnum { + return &e +} +func (e *CreateIntegrationStoreDirectHiddenEnum) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "update": + fallthrough + case "create": + *e = CreateIntegrationStoreDirectHiddenEnum(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectHiddenEnum: %v", v) + } +} + +type CreateIntegrationStoreDirectHidden struct { + Expr string `json:"expr"` +} + +func (c CreateIntegrationStoreDirectHidden) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateIntegrationStoreDirectHidden) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *CreateIntegrationStoreDirectHidden) GetExpr() string { + if o == nil { + return "" + } + return o.Expr +} + +type CreateIntegrationStoreDirectHiddenUnionType string + +const ( + CreateIntegrationStoreDirectHiddenUnionTypeBoolean CreateIntegrationStoreDirectHiddenUnionType = "boolean" + CreateIntegrationStoreDirectHiddenUnionTypeCreateIntegrationStoreDirectHidden CreateIntegrationStoreDirectHiddenUnionType = "createIntegrationStoreDirect_hidden" + CreateIntegrationStoreDirectHiddenUnionTypeCreateIntegrationStoreDirectHiddenEnum CreateIntegrationStoreDirectHiddenUnionType = "createIntegrationStoreDirect_hidden_enum" +) + +type CreateIntegrationStoreDirectHiddenUnion struct { + Boolean *bool `queryParam:"inline"` + CreateIntegrationStoreDirectHidden *CreateIntegrationStoreDirectHidden `queryParam:"inline"` + CreateIntegrationStoreDirectHiddenEnum *CreateIntegrationStoreDirectHiddenEnum `queryParam:"inline"` + + Type CreateIntegrationStoreDirectHiddenUnionType +} + +func CreateCreateIntegrationStoreDirectHiddenUnionBoolean(boolean bool) CreateIntegrationStoreDirectHiddenUnion { + typ := CreateIntegrationStoreDirectHiddenUnionTypeBoolean + + return CreateIntegrationStoreDirectHiddenUnion{ + Boolean: &boolean, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectHiddenUnionCreateIntegrationStoreDirectHidden(createIntegrationStoreDirectHidden CreateIntegrationStoreDirectHidden) CreateIntegrationStoreDirectHiddenUnion { + typ := CreateIntegrationStoreDirectHiddenUnionTypeCreateIntegrationStoreDirectHidden + + return CreateIntegrationStoreDirectHiddenUnion{ + CreateIntegrationStoreDirectHidden: &createIntegrationStoreDirectHidden, + Type: typ, + } +} + +func CreateCreateIntegrationStoreDirectHiddenUnionCreateIntegrationStoreDirectHiddenEnum(createIntegrationStoreDirectHiddenEnum CreateIntegrationStoreDirectHiddenEnum) CreateIntegrationStoreDirectHiddenUnion { + typ := CreateIntegrationStoreDirectHiddenUnionTypeCreateIntegrationStoreDirectHiddenEnum + + return CreateIntegrationStoreDirectHiddenUnion{ + CreateIntegrationStoreDirectHiddenEnum: &createIntegrationStoreDirectHiddenEnum, + Type: typ, + } +} + +func (u *CreateIntegrationStoreDirectHiddenUnion) UnmarshalJSON(data []byte) error { + + var createIntegrationStoreDirectHidden CreateIntegrationStoreDirectHidden = CreateIntegrationStoreDirectHidden{} + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectHidden, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectHidden = &createIntegrationStoreDirectHidden + u.Type = CreateIntegrationStoreDirectHiddenUnionTypeCreateIntegrationStoreDirectHidden + return nil + } + + var boolean bool = false + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { + u.Boolean = &boolean + u.Type = CreateIntegrationStoreDirectHiddenUnionTypeBoolean + return nil + } + + var createIntegrationStoreDirectHiddenEnum CreateIntegrationStoreDirectHiddenEnum = CreateIntegrationStoreDirectHiddenEnum("") + if err := utils.UnmarshalJSON(data, &createIntegrationStoreDirectHiddenEnum, "", true, nil); err == nil { + u.CreateIntegrationStoreDirectHiddenEnum = &createIntegrationStoreDirectHiddenEnum + u.Type = CreateIntegrationStoreDirectHiddenUnionTypeCreateIntegrationStoreDirectHiddenEnum + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateIntegrationStoreDirectHiddenUnion", string(data)) +} + +func (u CreateIntegrationStoreDirectHiddenUnion) MarshalJSON() ([]byte, error) { + if u.Boolean != nil { + return utils.MarshalJSON(u.Boolean, "", true) + } + + if u.CreateIntegrationStoreDirectHidden != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectHidden, "", true) + } + + if u.CreateIntegrationStoreDirectHiddenEnum != nil { + return utils.MarshalJSON(u.CreateIntegrationStoreDirectHiddenEnum, "", true) + } + + return nil, errors.New("could not marshal union type CreateIntegrationStoreDirectHiddenUnion: all fields are null") +} + +type CreateIntegrationStoreDirectProduct struct { + ID *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + IconURL *string `json:"iconUrl,omitempty"` + ShortDescription *string `json:"shortDescription,omitempty"` + MetadataSchema *CreateIntegrationStoreDirectMetadataSchema `json:"metadataSchema,omitempty"` + ResourceLinks []ResourceLink `json:"resourceLinks,omitempty"` + Tags []Tag `json:"tags,omitempty"` + ProjectConnectionScopes []ProjectConnectionScope `json:"projectConnectionScopes,omitempty"` + ShowSSOLinkOnProjectConnection *bool `json:"showSSOLinkOnProjectConnection,omitempty"` + DisableResourceRenaming *bool `json:"disableResourceRenaming,omitempty"` + Repl *CreateIntegrationStoreDirectRepl `json:"repl,omitempty"` + Guides []Guide `json:"guides,omitempty"` + Value CreateIntegrationStoreDirectValue `json:"value"` + Disabled *CreateIntegrationStoreDirectDisabledUnion `json:"disabled,omitempty"` + Hidden *CreateIntegrationStoreDirectHiddenUnion `json:"hidden,omitempty"` +} + +func (o *CreateIntegrationStoreDirectProduct) GetID() *string { + if o == nil { + return nil + } + return o.ID +} + +func (o *CreateIntegrationStoreDirectProduct) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *CreateIntegrationStoreDirectProduct) GetSlug() *string { + if o == nil { + return nil + } + return o.Slug +} + +func (o *CreateIntegrationStoreDirectProduct) GetIconURL() *string { + if o == nil { + return nil + } + return o.IconURL +} + +func (o *CreateIntegrationStoreDirectProduct) GetShortDescription() *string { + if o == nil { + return nil + } + return o.ShortDescription +} + +func (o *CreateIntegrationStoreDirectProduct) GetMetadataSchema() *CreateIntegrationStoreDirectMetadataSchema { + if o == nil { + return nil + } + return o.MetadataSchema +} + +func (o *CreateIntegrationStoreDirectProduct) GetResourceLinks() []ResourceLink { + if o == nil { + return nil + } + return o.ResourceLinks +} + +func (o *CreateIntegrationStoreDirectProduct) GetTags() []Tag { + if o == nil { + return nil + } + return o.Tags +} + +func (o *CreateIntegrationStoreDirectProduct) GetProjectConnectionScopes() []ProjectConnectionScope { + if o == nil { + return nil + } + return o.ProjectConnectionScopes +} + +func (o *CreateIntegrationStoreDirectProduct) GetShowSSOLinkOnProjectConnection() *bool { + if o == nil { + return nil + } + return o.ShowSSOLinkOnProjectConnection +} + +func (o *CreateIntegrationStoreDirectProduct) GetDisableResourceRenaming() *bool { + if o == nil { + return nil + } + return o.DisableResourceRenaming +} + +func (o *CreateIntegrationStoreDirectProduct) GetRepl() *CreateIntegrationStoreDirectRepl { + if o == nil { + return nil + } + return o.Repl +} + +func (o *CreateIntegrationStoreDirectProduct) GetGuides() []Guide { + if o == nil { + return nil + } + return o.Guides +} + +func (o *CreateIntegrationStoreDirectProduct) GetValue() CreateIntegrationStoreDirectValue { + if o == nil { + return CreateIntegrationStoreDirectValue{} + } + return o.Value +} + +func (o *CreateIntegrationStoreDirectProduct) GetDisabled() *CreateIntegrationStoreDirectDisabledUnion { + if o == nil { + return nil + } + return o.Disabled +} + +func (o *CreateIntegrationStoreDirectProduct) GetHidden() *CreateIntegrationStoreDirectHiddenUnion { + if o == nil { + return nil + } + return o.Hidden +} + +type CreateIntegrationStoreDirectExperimentation struct { + EdgeConfigSyncingEnabled *bool `json:"edgeConfigSyncingEnabled,omitempty"` + EdgeConfigID *string `json:"edgeConfigId,omitempty"` + EdgeConfigTokenID *string `json:"edgeConfigTokenId,omitempty"` +} + +func (o *CreateIntegrationStoreDirectExperimentation) GetEdgeConfigSyncingEnabled() *bool { + if o == nil { + return nil + } + return o.EdgeConfigSyncingEnabled +} + +func (o *CreateIntegrationStoreDirectExperimentation) GetEdgeConfigID() *string { + if o == nil { + return nil + } + return o.EdgeConfigID +} + +func (o *CreateIntegrationStoreDirectExperimentation) GetEdgeConfigTokenID() *string { + if o == nil { + return nil + } + return o.EdgeConfigTokenID +} + +type CreateIntegrationStoreDirectProtocolSettings struct { + Experimentation *CreateIntegrationStoreDirectExperimentation `json:"experimentation,omitempty"` +} + +func (o *CreateIntegrationStoreDirectProtocolSettings) GetExperimentation() *CreateIntegrationStoreDirectExperimentation { + if o == nil { + return nil + } + return o.Experimentation +} + +type CreateIntegrationStoreDirectLevel string + +const ( + CreateIntegrationStoreDirectLevelError CreateIntegrationStoreDirectLevel = "error" + CreateIntegrationStoreDirectLevelInfo CreateIntegrationStoreDirectLevel = "info" + CreateIntegrationStoreDirectLevelWarn CreateIntegrationStoreDirectLevel = "warn" +) + +func (e CreateIntegrationStoreDirectLevel) ToPointer() *CreateIntegrationStoreDirectLevel { + return &e +} +func (e *CreateIntegrationStoreDirectLevel) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "error": + fallthrough + case "info": + fallthrough + case "warn": + *e = CreateIntegrationStoreDirectLevel(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectLevel: %v", v) + } +} + +type CreateIntegrationStoreDirectNotification struct { + Title string `json:"title"` + Level CreateIntegrationStoreDirectLevel `json:"level"` + Message *string `json:"message,omitempty"` + Href *string `json:"href,omitempty"` +} + +func (o *CreateIntegrationStoreDirectNotification) GetTitle() string { + if o == nil { + return "" + } + return o.Title +} + +func (o *CreateIntegrationStoreDirectNotification) GetLevel() CreateIntegrationStoreDirectLevel { + if o == nil { + return CreateIntegrationStoreDirectLevel("") + } + return o.Level +} + +func (o *CreateIntegrationStoreDirectNotification) GetMessage() *string { + if o == nil { + return nil + } + return o.Message +} + +func (o *CreateIntegrationStoreDirectNotification) GetHref() *string { + if o == nil { + return nil + } + return o.Href +} + +type CreateIntegrationStoreDirectSecret struct { + Name string `json:"name"` + Length float64 `json:"length"` +} + +func (o *CreateIntegrationStoreDirectSecret) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateIntegrationStoreDirectSecret) GetLength() float64 { + if o == nil { + return 0.0 + } + return o.Length +} + +type CreateIntegrationStoreDirectBillingPlanType string + +const ( + CreateIntegrationStoreDirectBillingPlanTypePrepayment CreateIntegrationStoreDirectBillingPlanType = "prepayment" + CreateIntegrationStoreDirectBillingPlanTypeSubscription CreateIntegrationStoreDirectBillingPlanType = "subscription" +) + +func (e CreateIntegrationStoreDirectBillingPlanType) ToPointer() *CreateIntegrationStoreDirectBillingPlanType { + return &e +} +func (e *CreateIntegrationStoreDirectBillingPlanType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "prepayment": + fallthrough + case "subscription": + *e = CreateIntegrationStoreDirectBillingPlanType(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectBillingPlanType: %v", v) + } +} + +type CreateIntegrationStoreDirectScope string + +const ( + CreateIntegrationStoreDirectScopeInstallation CreateIntegrationStoreDirectScope = "installation" + CreateIntegrationStoreDirectScopeResource CreateIntegrationStoreDirectScope = "resource" +) + +func (e CreateIntegrationStoreDirectScope) ToPointer() *CreateIntegrationStoreDirectScope { + return &e +} +func (e *CreateIntegrationStoreDirectScope) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "installation": + fallthrough + case "resource": + *e = CreateIntegrationStoreDirectScope(v) + return nil + default: + return fmt.Errorf("invalid value for CreateIntegrationStoreDirectScope: %v", v) + } +} + +type CreateIntegrationStoreDirectDetail struct { + Label string `json:"label"` + Value *string `json:"value,omitempty"` +} + +func (o *CreateIntegrationStoreDirectDetail) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *CreateIntegrationStoreDirectDetail) GetValue() *string { + if o == nil { + return nil + } + return o.Value +} + +type CreateIntegrationStoreDirectHighlightedDetail struct { + Label string `json:"label"` + Value *string `json:"value,omitempty"` +} + +func (o *CreateIntegrationStoreDirectHighlightedDetail) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *CreateIntegrationStoreDirectHighlightedDetail) GetValue() *string { + if o == nil { + return nil + } + return o.Value +} + +type CreateIntegrationStoreDirectQuote struct { + Line string `json:"line"` + Amount string `json:"amount"` +} + +func (o *CreateIntegrationStoreDirectQuote) GetLine() string { + if o == nil { + return "" + } + return o.Line +} + +func (o *CreateIntegrationStoreDirectQuote) GetAmount() string { + if o == nil { + return "" + } + return o.Amount +} + +type CreateIntegrationStoreDirectBillingPlan struct { + Type CreateIntegrationStoreDirectBillingPlanType `json:"type"` + Description string `json:"description"` + ID string `json:"id"` + Name string `json:"name"` + Scope CreateIntegrationStoreDirectScope `json:"scope"` + PaymentMethodRequired bool `json:"paymentMethodRequired"` + PreauthorizationAmount *float64 `json:"preauthorizationAmount,omitempty"` + InitialCharge *string `json:"initialCharge,omitempty"` + MinimumAmount *string `json:"minimumAmount,omitempty"` + MaximumAmount *string `json:"maximumAmount,omitempty"` + MaximumAmountAutoPurchasePerPeriod *string `json:"maximumAmountAutoPurchasePerPeriod,omitempty"` + Cost *string `json:"cost,omitempty"` + Details []CreateIntegrationStoreDirectDetail `json:"details,omitempty"` + HighlightedDetails []CreateIntegrationStoreDirectHighlightedDetail `json:"highlightedDetails,omitempty"` + Quote []CreateIntegrationStoreDirectQuote `json:"quote,omitempty"` + EffectiveDate *string `json:"effectiveDate,omitempty"` + Disabled *bool `json:"disabled,omitempty"` +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetType() CreateIntegrationStoreDirectBillingPlanType { + if o == nil { + return CreateIntegrationStoreDirectBillingPlanType("") + } + return o.Type +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetDescription() string { + if o == nil { + return "" + } + return o.Description +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetScope() CreateIntegrationStoreDirectScope { + if o == nil { + return CreateIntegrationStoreDirectScope("") + } + return o.Scope +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetPaymentMethodRequired() bool { + if o == nil { + return false + } + return o.PaymentMethodRequired +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetPreauthorizationAmount() *float64 { + if o == nil { + return nil + } + return o.PreauthorizationAmount +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetInitialCharge() *string { + if o == nil { + return nil + } + return o.InitialCharge +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetMinimumAmount() *string { + if o == nil { + return nil + } + return o.MinimumAmount +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetMaximumAmount() *string { + if o == nil { + return nil + } + return o.MaximumAmount +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetMaximumAmountAutoPurchasePerPeriod() *string { + if o == nil { + return nil + } + return o.MaximumAmountAutoPurchasePerPeriod +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetCost() *string { + if o == nil { + return nil + } + return o.Cost +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetDetails() []CreateIntegrationStoreDirectDetail { + if o == nil { + return nil + } + return o.Details +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetHighlightedDetails() []CreateIntegrationStoreDirectHighlightedDetail { + if o == nil { + return nil + } + return o.HighlightedDetails +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetQuote() []CreateIntegrationStoreDirectQuote { + if o == nil { + return nil + } + return o.Quote +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetEffectiveDate() *string { + if o == nil { + return nil + } + return o.EffectiveDate +} + +func (o *CreateIntegrationStoreDirectBillingPlan) GetDisabled() *bool { + if o == nil { + return nil + } + return o.Disabled +} + +type Store struct { + ProjectsMetadata []CreateIntegrationStoreDirectProjectsMetadatum `json:"projectsMetadata"` + TotalConnectedProjects *float64 `json:"totalConnectedProjects,omitempty"` + UsageQuotaExceeded bool `json:"usageQuotaExceeded"` + Status *CreateIntegrationStoreDirectStatus `json:"status"` + Metadata map[string]StoreMetadata `json:"metadata,omitempty"` + ExternalResourceID string `json:"externalResourceId"` + ExternalResourceStatus *ExternalResourceStatus `json:"externalResourceStatus,omitempty"` + Product CreateIntegrationStoreDirectProduct `json:"product"` + ProtocolSettings *CreateIntegrationStoreDirectProtocolSettings `json:"protocolSettings,omitempty"` + Notification *CreateIntegrationStoreDirectNotification `json:"notification,omitempty"` + Secrets []CreateIntegrationStoreDirectSecret `json:"secrets"` + BillingPlan *CreateIntegrationStoreDirectBillingPlan `json:"billingPlan,omitempty"` +} + +func (o *Store) GetProjectsMetadata() []CreateIntegrationStoreDirectProjectsMetadatum { + if o == nil { + return []CreateIntegrationStoreDirectProjectsMetadatum{} + } + return o.ProjectsMetadata +} + +func (o *Store) GetTotalConnectedProjects() *float64 { + if o == nil { + return nil + } + return o.TotalConnectedProjects +} + +func (o *Store) GetUsageQuotaExceeded() bool { + if o == nil { + return false + } + return o.UsageQuotaExceeded +} + +func (o *Store) GetStatus() *CreateIntegrationStoreDirectStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *Store) GetMetadata() map[string]StoreMetadata { + if o == nil { + return nil + } + return o.Metadata +} + +func (o *Store) GetExternalResourceID() string { + if o == nil { + return "" + } + return o.ExternalResourceID +} + +func (o *Store) GetExternalResourceStatus() *ExternalResourceStatus { + if o == nil { + return nil + } + return o.ExternalResourceStatus +} + +func (o *Store) GetProduct() CreateIntegrationStoreDirectProduct { + if o == nil { + return CreateIntegrationStoreDirectProduct{} + } + return o.Product +} + +func (o *Store) GetProtocolSettings() *CreateIntegrationStoreDirectProtocolSettings { + if o == nil { + return nil + } + return o.ProtocolSettings +} + +func (o *Store) GetNotification() *CreateIntegrationStoreDirectNotification { + if o == nil { + return nil + } + return o.Notification +} + +func (o *Store) GetSecrets() []CreateIntegrationStoreDirectSecret { + if o == nil { + return []CreateIntegrationStoreDirectSecret{} + } + return o.Secrets +} + +func (o *Store) GetBillingPlan() *CreateIntegrationStoreDirectBillingPlan { + if o == nil { + return nil + } + return o.BillingPlan +} + +type CreateIntegrationStoreDirectResponseBody struct { + Store *Store `json:"store"` +} + +func (o *CreateIntegrationStoreDirectResponseBody) GetStore() *Store { + if o == nil { + return nil + } + return o.Store +} + +type CreateIntegrationStoreDirectResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + Object *CreateIntegrationStoreDirectResponseBody +} + +func (o *CreateIntegrationStoreDirectResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *CreateIntegrationStoreDirectResponse) GetObject() *CreateIntegrationStoreDirectResponseBody { + if o == nil { + return nil + } + return o.Object +} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createortransferdomain.go b/src/__tests__/mockserver/internal/sdk/models/operations/createortransferdomain.go index 2fcb42d1..7c3a8d87 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createortransferdomain.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createortransferdomain.go @@ -22,6 +22,17 @@ type CreateOrTransferDomainRequestBody3 struct { ExpectedPrice *float64 `json:"expectedPrice,omitempty"` } +func (c CreateOrTransferDomainRequestBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateOrTransferDomainRequestBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "method"}); err != nil { + return err + } + return nil +} + func (o *CreateOrTransferDomainRequestBody3) GetName() string { if o == nil { return "" @@ -60,6 +71,17 @@ type CreateOrTransferDomainRequestBody2 struct { Token *string `json:"token,omitempty"` } +func (c CreateOrTransferDomainRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateOrTransferDomainRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "method"}); err != nil { + return err + } + return nil +} + func (o *CreateOrTransferDomainRequestBody2) GetName() string { if o == nil { return "" @@ -92,6 +114,17 @@ type CreateOrTransferDomainRequestBody1 struct { Method *string `json:"method,omitempty"` } +func (c CreateOrTransferDomainRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateOrTransferDomainRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *CreateOrTransferDomainRequestBody1) GetName() string { if o == nil { return "" @@ -166,26 +199,26 @@ func CreateCreateOrTransferDomainRequestBodyCreateOrTransferDomainRequestBody3(c func (u *CreateOrTransferDomainRequestBody) UnmarshalJSON(data []byte) error { var createOrTransferDomainRequestBody2 CreateOrTransferDomainRequestBody2 = CreateOrTransferDomainRequestBody2{} - if err := utils.UnmarshalJSON(data, &createOrTransferDomainRequestBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createOrTransferDomainRequestBody2, "", true, nil); err == nil { u.CreateOrTransferDomainRequestBody2 = &createOrTransferDomainRequestBody2 u.Type = CreateOrTransferDomainRequestBodyTypeCreateOrTransferDomainRequestBody2 return nil } - var createOrTransferDomainRequestBody1 CreateOrTransferDomainRequestBody1 = CreateOrTransferDomainRequestBody1{} - if err := utils.UnmarshalJSON(data, &createOrTransferDomainRequestBody1, "", true, true); err == nil { - u.CreateOrTransferDomainRequestBody1 = &createOrTransferDomainRequestBody1 - u.Type = CreateOrTransferDomainRequestBodyTypeCreateOrTransferDomainRequestBody1 - return nil - } - var createOrTransferDomainRequestBody3 CreateOrTransferDomainRequestBody3 = CreateOrTransferDomainRequestBody3{} - if err := utils.UnmarshalJSON(data, &createOrTransferDomainRequestBody3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createOrTransferDomainRequestBody3, "", true, nil); err == nil { u.CreateOrTransferDomainRequestBody3 = &createOrTransferDomainRequestBody3 u.Type = CreateOrTransferDomainRequestBodyTypeCreateOrTransferDomainRequestBody3 return nil } + var createOrTransferDomainRequestBody1 CreateOrTransferDomainRequestBody1 = CreateOrTransferDomainRequestBody1{} + if err := utils.UnmarshalJSON(data, &createOrTransferDomainRequestBody1, "", true, nil); err == nil { + u.CreateOrTransferDomainRequestBody1 = &createOrTransferDomainRequestBody1 + u.Type = CreateOrTransferDomainRequestBodyTypeCreateOrTransferDomainRequestBody1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateOrTransferDomainRequestBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createproject.go b/src/__tests__/mockserver/internal/sdk/models/operations/createproject.go index ff4be9f9..1d9b86b5 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createproject.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createproject.go @@ -104,14 +104,14 @@ func CreateEnvironmentVariableTargetUnionArrayOfTargetEnvironmentVariableEnum2(a func (u *EnvironmentVariableTargetUnion) UnmarshalJSON(data []byte) error { var targetEnvironmentVariableEnum1 TargetEnvironmentVariableEnum1 = TargetEnvironmentVariableEnum1("") - if err := utils.UnmarshalJSON(data, &targetEnvironmentVariableEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &targetEnvironmentVariableEnum1, "", true, nil); err == nil { u.TargetEnvironmentVariableEnum1 = &targetEnvironmentVariableEnum1 u.Type = EnvironmentVariableTargetUnionTypeTargetEnvironmentVariableEnum1 return nil } var arrayOfTargetEnvironmentVariableEnum2 []TargetEnvironmentVariableEnum2 = []TargetEnvironmentVariableEnum2{} - if err := utils.UnmarshalJSON(data, &arrayOfTargetEnvironmentVariableEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfTargetEnvironmentVariableEnum2, "", true, nil); err == nil { u.ArrayOfTargetEnvironmentVariableEnum2 = arrayOfTargetEnvironmentVariableEnum2 u.Type = EnvironmentVariableTargetUnionTypeArrayOfTargetEnvironmentVariableEnum2 return nil @@ -528,7 +528,7 @@ func (c CreateProjectOidcTokenConfigRequest) MarshalJSON() ([]byte, error) { } func (c *CreateProjectOidcTokenConfigRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { return err } return nil @@ -1066,14 +1066,14 @@ func CreateCreateProjectEnvIDUnionCreateProjectEnvIDEnum(createProjectEnvIDEnum func (u *CreateProjectEnvIDUnion) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateProjectEnvIDUnionTypeStr return nil } var createProjectEnvIDEnum CreateProjectEnvIDEnum = CreateProjectEnvIDEnum("") - if err := utils.UnmarshalJSON(data, &createProjectEnvIDEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvIDEnum, "", true, nil); err == nil { u.CreateProjectEnvIDEnum = &createProjectEnvIDEnum u.Type = CreateProjectEnvIDUnionTypeCreateProjectEnvIDEnum return nil @@ -1283,12 +1283,18 @@ func (o *CreateProjectDataCache) GetUnlimited() *bool { return o.Unlimited } +// CreateProjectDeploymentExpiration - Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. type CreateProjectDeploymentExpiration struct { - ExpirationDays *float64 `json:"expirationDays,omitempty"` + // Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. + ExpirationDays *float64 `json:"expirationDays,omitempty"` + // Number of days to keep production deployments before soft deletion. ExpirationDaysProduction *float64 `json:"expirationDaysProduction,omitempty"` - ExpirationDaysCanceled *float64 `json:"expirationDaysCanceled,omitempty"` - ExpirationDaysErrored *float64 `json:"expirationDaysErrored,omitempty"` - DeploymentsToKeep *float64 `json:"deploymentsToKeep,omitempty"` + // Number of days to keep canceled deployments before soft deletion. + ExpirationDaysCanceled *float64 `json:"expirationDaysCanceled,omitempty"` + // Number of days to keep errored deployments before soft deletion. + ExpirationDaysErrored *float64 `json:"expirationDaysErrored,omitempty"` + // Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. + DeploymentsToKeep *float64 `json:"deploymentsToKeep,omitempty"` } func (o *CreateProjectDeploymentExpiration) GetExpirationDays() *float64 { @@ -1419,14 +1425,14 @@ func CreateCreateProjectEnvTargetUnionCreateProjectTargetEnvEnum2(createProjectT func (u *CreateProjectEnvTargetUnion) UnmarshalJSON(data []byte) error { var arrayOfCreateProjectTargetEnvEnum1 []CreateProjectTargetEnvEnum1 = []CreateProjectTargetEnvEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfCreateProjectTargetEnvEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfCreateProjectTargetEnvEnum1, "", true, nil); err == nil { u.ArrayOfCreateProjectTargetEnvEnum1 = arrayOfCreateProjectTargetEnvEnum1 u.Type = CreateProjectEnvTargetUnionTypeArrayOfCreateProjectTargetEnvEnum1 return nil } var createProjectTargetEnvEnum2 CreateProjectTargetEnvEnum2 = CreateProjectTargetEnvEnum2("") - if err := utils.UnmarshalJSON(data, &createProjectTargetEnvEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectTargetEnvEnum2, "", true, nil); err == nil { u.CreateProjectTargetEnvEnum2 = &createProjectTargetEnvEnum2 u.Type = CreateProjectEnvTargetUnionTypeCreateProjectTargetEnvEnum2 return nil @@ -1451,10 +1457,10 @@ type CreateProjectEnvType string const ( CreateProjectEnvTypeSystem CreateProjectEnvType = "system" - CreateProjectEnvTypeSecret CreateProjectEnvType = "secret" CreateProjectEnvTypeEncrypted CreateProjectEnvType = "encrypted" CreateProjectEnvTypePlain CreateProjectEnvType = "plain" CreateProjectEnvTypeSensitive CreateProjectEnvType = "sensitive" + CreateProjectEnvTypeSecret CreateProjectEnvType = "secret" ) func (e CreateProjectEnvType) ToPointer() *CreateProjectEnvType { @@ -1468,13 +1474,13 @@ func (e *CreateProjectEnvType) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = CreateProjectEnvType(v) return nil default: @@ -1510,6 +1516,17 @@ type CreateProjectContentHintFlagsConnectionString struct { ProjectID string `json:"projectId"` } +func (c CreateProjectContentHintFlagsConnectionString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintFlagsConnectionString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintFlagsConnectionString) GetType() CreateProjectTypeFlagsConnectionString { if o == nil { return CreateProjectTypeFlagsConnectionString("") @@ -1555,6 +1572,17 @@ type CreateProjectContentHintIntegrationStoreSecret struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (c CreateProjectContentHintIntegrationStoreSecret) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintIntegrationStoreSecret) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintIntegrationStoreSecret) GetType() CreateProjectTypeIntegrationStoreSecret { if o == nil { return CreateProjectTypeIntegrationStoreSecret("") @@ -1618,6 +1646,17 @@ type CreateProjectContentHintPostgresURLNoSsl struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintPostgresURLNoSsl) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintPostgresURLNoSsl) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintPostgresURLNoSsl) GetType() CreateProjectTypePostgresURLNoSsl { if o == nil { return CreateProjectTypePostgresURLNoSsl("") @@ -1660,6 +1699,17 @@ type CreateProjectContentHintPostgresDatabase struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintPostgresDatabase) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintPostgresDatabase) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintPostgresDatabase) GetType() CreateProjectTypePostgresDatabase { if o == nil { return CreateProjectTypePostgresDatabase("") @@ -1702,6 +1752,17 @@ type CreateProjectContentHintPostgresPassword struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintPostgresPassword) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintPostgresPassword) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintPostgresPassword) GetType() CreateProjectTypePostgresPassword { if o == nil { return CreateProjectTypePostgresPassword("") @@ -1744,6 +1805,17 @@ type CreateProjectContentHintPostgresHost struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintPostgresHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintPostgresHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintPostgresHost) GetType() CreateProjectTypePostgresHost { if o == nil { return CreateProjectTypePostgresHost("") @@ -1786,6 +1858,17 @@ type CreateProjectContentHintPostgresUser struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintPostgresUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintPostgresUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintPostgresUser) GetType() CreateProjectTypePostgresUser { if o == nil { return CreateProjectTypePostgresUser("") @@ -1828,6 +1911,17 @@ type CreateProjectContentHintPostgresPrismaURL struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintPostgresPrismaURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintPostgresPrismaURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintPostgresPrismaURL) GetType() CreateProjectTypePostgresPrismaURL { if o == nil { return CreateProjectTypePostgresPrismaURL("") @@ -1870,6 +1964,17 @@ type CreateProjectContentHintPostgresURLNonPooling struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintPostgresURLNonPooling) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintPostgresURLNonPooling) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintPostgresURLNonPooling) GetType() CreateProjectTypePostgresURLNonPooling { if o == nil { return CreateProjectTypePostgresURLNonPooling("") @@ -1912,6 +2017,17 @@ type CreateProjectContentHintPostgresURL struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintPostgresURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintPostgresURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintPostgresURL) GetType() CreateProjectTypePostgresURL { if o == nil { return CreateProjectTypePostgresURL("") @@ -1954,6 +2070,17 @@ type CreateProjectContentHintBlobReadWriteToken struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintBlobReadWriteToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintBlobReadWriteToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintBlobReadWriteToken) GetType() CreateProjectTypeBlobReadWriteToken { if o == nil { return CreateProjectTypeBlobReadWriteToken("") @@ -1996,6 +2123,17 @@ type CreateProjectContentHintRedisRestAPIReadOnlyToken struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintRedisRestAPIReadOnlyToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintRedisRestAPIReadOnlyToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintRedisRestAPIReadOnlyToken) GetType() CreateProjectTypeRedisRestAPIReadOnlyToken { if o == nil { return CreateProjectTypeRedisRestAPIReadOnlyToken("") @@ -2038,6 +2176,17 @@ type CreateProjectContentHintRedisRestAPIToken struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintRedisRestAPIToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintRedisRestAPIToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintRedisRestAPIToken) GetType() CreateProjectTypeRedisRestAPIToken { if o == nil { return CreateProjectTypeRedisRestAPIToken("") @@ -2080,6 +2229,17 @@ type CreateProjectContentHintRedisRestAPIURL struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintRedisRestAPIURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintRedisRestAPIURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintRedisRestAPIURL) GetType() CreateProjectTypeRedisRestAPIURL { if o == nil { return CreateProjectTypeRedisRestAPIURL("") @@ -2122,6 +2282,17 @@ type CreateProjectContentHintRedisURL struct { StoreID string `json:"storeId"` } +func (c CreateProjectContentHintRedisURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectContentHintRedisURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectContentHintRedisURL) GetType() CreateProjectTypeRedisURL { if o == nil { return CreateProjectTypeRedisURL("") @@ -2313,111 +2484,111 @@ func CreateCreateProjectContentHintUnionCreateProjectContentHintFlagsConnectionS func (u *CreateProjectContentHintUnion) UnmarshalJSON(data []byte) error { - var createProjectContentHintPostgresURLNonPooling CreateProjectContentHintPostgresURLNonPooling = CreateProjectContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURLNonPooling, "", true, true); err == nil { - u.CreateProjectContentHintPostgresURLNonPooling = &createProjectContentHintPostgresURLNonPooling - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNonPooling + var createProjectContentHintIntegrationStoreSecret CreateProjectContentHintIntegrationStoreSecret = CreateProjectContentHintIntegrationStoreSecret{} + if err := utils.UnmarshalJSON(data, &createProjectContentHintIntegrationStoreSecret, "", true, nil); err == nil { + u.CreateProjectContentHintIntegrationStoreSecret = &createProjectContentHintIntegrationStoreSecret + u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintIntegrationStoreSecret return nil } - var createProjectContentHintPostgresPassword CreateProjectContentHintPostgresPassword = CreateProjectContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresPassword, "", true, true); err == nil { - u.CreateProjectContentHintPostgresPassword = &createProjectContentHintPostgresPassword - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPassword + var createProjectContentHintRedisURL CreateProjectContentHintRedisURL = CreateProjectContentHintRedisURL{} + if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisURL, "", true, nil); err == nil { + u.CreateProjectContentHintRedisURL = &createProjectContentHintRedisURL + u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisURL + return nil + } + + var createProjectContentHintRedisRestAPIURL CreateProjectContentHintRedisRestAPIURL = CreateProjectContentHintRedisRestAPIURL{} + if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIURL, "", true, nil); err == nil { + u.CreateProjectContentHintRedisRestAPIURL = &createProjectContentHintRedisRestAPIURL + u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIURL return nil } var createProjectContentHintRedisRestAPIToken CreateProjectContentHintRedisRestAPIToken = CreateProjectContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIToken, "", true, nil); err == nil { u.CreateProjectContentHintRedisRestAPIToken = &createProjectContentHintRedisRestAPIToken u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIToken return nil } var createProjectContentHintRedisRestAPIReadOnlyToken CreateProjectContentHintRedisRestAPIReadOnlyToken = CreateProjectContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIReadOnlyToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { u.CreateProjectContentHintRedisRestAPIReadOnlyToken = &createProjectContentHintRedisRestAPIReadOnlyToken u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIReadOnlyToken return nil } var createProjectContentHintBlobReadWriteToken CreateProjectContentHintBlobReadWriteToken = CreateProjectContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintBlobReadWriteToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectContentHintBlobReadWriteToken, "", true, nil); err == nil { u.CreateProjectContentHintBlobReadWriteToken = &createProjectContentHintBlobReadWriteToken u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintBlobReadWriteToken return nil } var createProjectContentHintPostgresURL CreateProjectContentHintPostgresURL = CreateProjectContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURL, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURL, "", true, nil); err == nil { u.CreateProjectContentHintPostgresURL = &createProjectContentHintPostgresURL u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURL return nil } - var createProjectContentHintRedisRestAPIURL CreateProjectContentHintRedisRestAPIURL = CreateProjectContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisRestAPIURL, "", true, true); err == nil { - u.CreateProjectContentHintRedisRestAPIURL = &createProjectContentHintRedisRestAPIURL - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisRestAPIURL + var createProjectContentHintPostgresURLNonPooling CreateProjectContentHintPostgresURLNonPooling = CreateProjectContentHintPostgresURLNonPooling{} + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURLNonPooling, "", true, nil); err == nil { + u.CreateProjectContentHintPostgresURLNonPooling = &createProjectContentHintPostgresURLNonPooling + u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNonPooling return nil } - var createProjectContentHintPostgresUser CreateProjectContentHintPostgresUser = CreateProjectContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresUser, "", true, true); err == nil { - u.CreateProjectContentHintPostgresUser = &createProjectContentHintPostgresUser - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresUser + var createProjectContentHintPostgresPrismaURL CreateProjectContentHintPostgresPrismaURL = CreateProjectContentHintPostgresPrismaURL{} + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresPrismaURL, "", true, nil); err == nil { + u.CreateProjectContentHintPostgresPrismaURL = &createProjectContentHintPostgresPrismaURL + u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPrismaURL return nil } - var createProjectContentHintRedisURL CreateProjectContentHintRedisURL = CreateProjectContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintRedisURL, "", true, true); err == nil { - u.CreateProjectContentHintRedisURL = &createProjectContentHintRedisURL - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintRedisURL + var createProjectContentHintPostgresUser CreateProjectContentHintPostgresUser = CreateProjectContentHintPostgresUser{} + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresUser, "", true, nil); err == nil { + u.CreateProjectContentHintPostgresUser = &createProjectContentHintPostgresUser + u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresUser return nil } var createProjectContentHintPostgresHost CreateProjectContentHintPostgresHost = CreateProjectContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresHost, "", true, nil); err == nil { u.CreateProjectContentHintPostgresHost = &createProjectContentHintPostgresHost u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresHost return nil } - var createProjectContentHintPostgresPrismaURL CreateProjectContentHintPostgresPrismaURL = CreateProjectContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresPrismaURL, "", true, true); err == nil { - u.CreateProjectContentHintPostgresPrismaURL = &createProjectContentHintPostgresPrismaURL - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPrismaURL + var createProjectContentHintPostgresPassword CreateProjectContentHintPostgresPassword = CreateProjectContentHintPostgresPassword{} + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresPassword, "", true, nil); err == nil { + u.CreateProjectContentHintPostgresPassword = &createProjectContentHintPostgresPassword + u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresPassword return nil } var createProjectContentHintPostgresDatabase CreateProjectContentHintPostgresDatabase = CreateProjectContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresDatabase, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresDatabase, "", true, nil); err == nil { u.CreateProjectContentHintPostgresDatabase = &createProjectContentHintPostgresDatabase u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresDatabase return nil } var createProjectContentHintPostgresURLNoSsl CreateProjectContentHintPostgresURLNoSsl = CreateProjectContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURLNoSsl, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectContentHintPostgresURLNoSsl, "", true, nil); err == nil { u.CreateProjectContentHintPostgresURLNoSsl = &createProjectContentHintPostgresURLNoSsl u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintPostgresURLNoSsl return nil } var createProjectContentHintFlagsConnectionString CreateProjectContentHintFlagsConnectionString = CreateProjectContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintFlagsConnectionString, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectContentHintFlagsConnectionString, "", true, nil); err == nil { u.CreateProjectContentHintFlagsConnectionString = &createProjectContentHintFlagsConnectionString u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintFlagsConnectionString return nil } - var createProjectContentHintIntegrationStoreSecret CreateProjectContentHintIntegrationStoreSecret = CreateProjectContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &createProjectContentHintIntegrationStoreSecret, "", true, true); err == nil { - u.CreateProjectContentHintIntegrationStoreSecret = &createProjectContentHintIntegrationStoreSecret - u.Type = CreateProjectContentHintUnionTypeCreateProjectContentHintIntegrationStoreSecret - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateProjectContentHintUnion", string(data)) } @@ -3503,6 +3674,17 @@ type CreateProjectDeployHook5 struct { URL string `json:"url"` } +func (c CreateProjectDeployHook5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectDeployHook5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectDeployHook5) GetCreatedAt() *float64 { if o == nil { return nil @@ -3554,6 +3736,17 @@ type CreateProjectLinkGithubCustomHost struct { ProductionBranch string `json:"productionBranch"` } +func (c CreateProjectLinkGithubCustomHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectLinkGithubCustomHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"org", "type", "host", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectLinkGithubCustomHost) GetOrg() string { if o == nil { return "" @@ -3669,6 +3862,17 @@ type CreateProjectDeployHook4 struct { URL string `json:"url"` } +func (c CreateProjectDeployHook4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectDeployHook4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectDeployHook4) GetCreatedAt() *float64 { if o == nil { return nil @@ -3719,6 +3923,17 @@ type CreateProjectLinkBitbucket struct { ProductionBranch string `json:"productionBranch"` } +func (c CreateProjectLinkBitbucket) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectLinkBitbucket) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "slug", "owner", "type", "uuid", "workspaceUuid", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectLinkBitbucket) GetName() string { if o == nil { return "" @@ -3834,6 +4049,17 @@ type CreateProjectDeployHook3 struct { URL string `json:"url"` } +func (c CreateProjectDeployHook3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectDeployHook3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectDeployHook3) GetCreatedAt() *float64 { if o == nil { return nil @@ -3886,6 +4112,17 @@ type CreateProjectLinkGitlab struct { ProductionBranch string `json:"productionBranch"` } +func (c CreateProjectLinkGitlab) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectLinkGitlab) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"projectId", "projectName", "projectNameWithNamespace", "projectNamespace", "projectUrl", "type", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectLinkGitlab) GetProjectID() string { if o == nil { return "" @@ -4008,6 +4245,17 @@ type CreateProjectDeployHook2 struct { URL string `json:"url"` } +func (c CreateProjectDeployHook2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectDeployHook2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectDeployHook2) GetCreatedAt() *float64 { if o == nil { return nil @@ -4044,20 +4292,31 @@ func (o *CreateProjectDeployHook2) GetURL() string { } type CreateProjectLinkGithubLimited struct { - Type CreateProjectTypeGithubLimited `json:"type"` - UpdatedAt *float64 `json:"updatedAt,omitempty"` - CreatedAt *float64 `json:"createdAt,omitempty"` - Repo *string `json:"repo,omitempty"` - Sourceless *bool `json:"sourceless,omitempty"` - Org string `json:"org"` + Type CreateProjectTypeGithubLimited `json:"type"` + Repo *string `json:"repo,omitempty"` + RepoID *float64 `json:"repoId,omitempty"` + UpdatedAt *float64 `json:"updatedAt,omitempty"` + CreatedAt *float64 `json:"createdAt,omitempty"` + Org string `json:"org"` // 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. RepoOwnerID *float64 `json:"repoOwnerId,omitempty"` - RepoID *float64 `json:"repoId,omitempty"` DeployHooks []CreateProjectDeployHook2 `json:"deployHooks"` GitCredentialID string `json:"gitCredentialId"` + Sourceless *bool `json:"sourceless,omitempty"` ProductionBranch string `json:"productionBranch"` } +func (c CreateProjectLinkGithubLimited) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectLinkGithubLimited) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "org", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectLinkGithubLimited) GetType() CreateProjectTypeGithubLimited { if o == nil { return CreateProjectTypeGithubLimited("") @@ -4065,32 +4324,32 @@ func (o *CreateProjectLinkGithubLimited) GetType() CreateProjectTypeGithubLimite return o.Type } -func (o *CreateProjectLinkGithubLimited) GetUpdatedAt() *float64 { +func (o *CreateProjectLinkGithubLimited) GetRepo() *string { if o == nil { return nil } - return o.UpdatedAt + return o.Repo } -func (o *CreateProjectLinkGithubLimited) GetCreatedAt() *float64 { +func (o *CreateProjectLinkGithubLimited) GetRepoID() *float64 { if o == nil { return nil } - return o.CreatedAt + return o.RepoID } -func (o *CreateProjectLinkGithubLimited) GetRepo() *string { +func (o *CreateProjectLinkGithubLimited) GetUpdatedAt() *float64 { if o == nil { return nil } - return o.Repo + return o.UpdatedAt } -func (o *CreateProjectLinkGithubLimited) GetSourceless() *bool { +func (o *CreateProjectLinkGithubLimited) GetCreatedAt() *float64 { if o == nil { return nil } - return o.Sourceless + return o.CreatedAt } func (o *CreateProjectLinkGithubLimited) GetOrg() string { @@ -4107,13 +4366,6 @@ func (o *CreateProjectLinkGithubLimited) GetRepoOwnerID() *float64 { return o.RepoOwnerID } -func (o *CreateProjectLinkGithubLimited) GetRepoID() *float64 { - if o == nil { - return nil - } - return o.RepoID -} - func (o *CreateProjectLinkGithubLimited) GetDeployHooks() []CreateProjectDeployHook2 { if o == nil { return []CreateProjectDeployHook2{} @@ -4128,6 +4380,13 @@ func (o *CreateProjectLinkGithubLimited) GetGitCredentialID() string { return o.GitCredentialID } +func (o *CreateProjectLinkGithubLimited) GetSourceless() *bool { + if o == nil { + return nil + } + return o.Sourceless +} + func (o *CreateProjectLinkGithubLimited) GetProductionBranch() string { if o == nil { return "" @@ -4166,6 +4425,17 @@ type CreateProjectDeployHook1 struct { URL string `json:"url"` } +func (c CreateProjectDeployHook1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectDeployHook1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectDeployHook1) GetCreatedAt() *float64 { if o == nil { return nil @@ -4216,6 +4486,17 @@ type CreateProjectLinkGithub struct { ProductionBranch string `json:"productionBranch"` } +func (c CreateProjectLinkGithub) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectLinkGithub) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"org", "type", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectLinkGithub) GetOrg() string { if o == nil { return "" @@ -4360,38 +4641,38 @@ func CreateCreateProjectLinkUnionCreateProjectLinkGithubCustomHost(createProject func (u *CreateProjectLinkUnion) UnmarshalJSON(data []byte) error { - var createProjectLinkGithub CreateProjectLinkGithub = CreateProjectLinkGithub{} - if err := utils.UnmarshalJSON(data, &createProjectLinkGithub, "", true, true); err == nil { - u.CreateProjectLinkGithub = &createProjectLinkGithub - u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGithub - return nil - } - - var createProjectLinkGithubLimited CreateProjectLinkGithubLimited = CreateProjectLinkGithubLimited{} - if err := utils.UnmarshalJSON(data, &createProjectLinkGithubLimited, "", true, true); err == nil { - u.CreateProjectLinkGithubLimited = &createProjectLinkGithubLimited - u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGithubLimited + var createProjectLinkGitlab CreateProjectLinkGitlab = CreateProjectLinkGitlab{} + if err := utils.UnmarshalJSON(data, &createProjectLinkGitlab, "", true, nil); err == nil { + u.CreateProjectLinkGitlab = &createProjectLinkGitlab + u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGitlab return nil } var createProjectLinkBitbucket CreateProjectLinkBitbucket = CreateProjectLinkBitbucket{} - if err := utils.UnmarshalJSON(data, &createProjectLinkBitbucket, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectLinkBitbucket, "", true, nil); err == nil { u.CreateProjectLinkBitbucket = &createProjectLinkBitbucket u.Type = CreateProjectLinkUnionTypeCreateProjectLinkBitbucket return nil } var createProjectLinkGithubCustomHost CreateProjectLinkGithubCustomHost = CreateProjectLinkGithubCustomHost{} - if err := utils.UnmarshalJSON(data, &createProjectLinkGithubCustomHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectLinkGithubCustomHost, "", true, nil); err == nil { u.CreateProjectLinkGithubCustomHost = &createProjectLinkGithubCustomHost u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGithubCustomHost return nil } - var createProjectLinkGitlab CreateProjectLinkGitlab = CreateProjectLinkGitlab{} - if err := utils.UnmarshalJSON(data, &createProjectLinkGitlab, "", true, true); err == nil { - u.CreateProjectLinkGitlab = &createProjectLinkGitlab - u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGitlab + var createProjectLinkGithub CreateProjectLinkGithub = CreateProjectLinkGithub{} + if err := utils.UnmarshalJSON(data, &createProjectLinkGithub, "", true, nil); err == nil { + u.CreateProjectLinkGithub = &createProjectLinkGithub + u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGithub + return nil + } + + var createProjectLinkGithubLimited CreateProjectLinkGithubLimited = CreateProjectLinkGithubLimited{} + if err := utils.UnmarshalJSON(data, &createProjectLinkGithubLimited, "", true, nil); err == nil { + u.CreateProjectLinkGithubLimited = &createProjectLinkGithubLimited + u.Type = CreateProjectLinkUnionTypeCreateProjectLinkGithubLimited return nil } @@ -4428,6 +4709,17 @@ type CreateProjectMicrofrontends2 struct { Enabled bool `json:"enabled"` } +func (c CreateProjectMicrofrontends2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectMicrofrontends2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectMicrofrontends2) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -4464,6 +4756,17 @@ type CreateProjectMicrofrontends1 struct { RouteObservabilityToThisProject *bool `json:"routeObservabilityToThisProject,omitempty"` } +func (c CreateProjectMicrofrontends1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectMicrofrontends1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectMicrofrontends1) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -4540,20 +4843,20 @@ func CreateCreateProjectMicrofrontendsUnionCreateProjectMicrofrontends2(createPr func (u *CreateProjectMicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var createProjectMicrofrontends2 CreateProjectMicrofrontends2 = CreateProjectMicrofrontends2{} - if err := utils.UnmarshalJSON(data, &createProjectMicrofrontends2, "", true, true); err == nil { - u.CreateProjectMicrofrontends2 = &createProjectMicrofrontends2 - u.Type = CreateProjectMicrofrontendsUnionTypeCreateProjectMicrofrontends2 - return nil - } - var createProjectMicrofrontends1 CreateProjectMicrofrontends1 = CreateProjectMicrofrontends1{} - if err := utils.UnmarshalJSON(data, &createProjectMicrofrontends1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectMicrofrontends1, "", true, nil); err == nil { u.CreateProjectMicrofrontends1 = &createProjectMicrofrontends1 u.Type = CreateProjectMicrofrontendsUnionTypeCreateProjectMicrofrontends1 return nil } + var createProjectMicrofrontends2 CreateProjectMicrofrontends2 = CreateProjectMicrofrontends2{} + if err := utils.UnmarshalJSON(data, &createProjectMicrofrontends2, "", true, nil); err == nil { + u.CreateProjectMicrofrontends2 = &createProjectMicrofrontends2 + u.Type = CreateProjectMicrofrontendsUnionTypeCreateProjectMicrofrontends2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateProjectMicrofrontendsUnion", string(data)) } @@ -4694,16 +4997,23 @@ func (e *CreateProjectResourceConfigBuildMachineTypeResponse) UnmarshalJSON(data } type CreateProjectResourceConfigResponse struct { + ElasticConcurrencyEnabled *bool `json:"elasticConcurrencyEnabled,omitempty"` Fluid *bool `json:"fluid,omitempty"` FunctionDefaultRegions []string `json:"functionDefaultRegions"` FunctionDefaultTimeout *float64 `json:"functionDefaultTimeout,omitempty"` FunctionDefaultMemoryType *CreateProjectResourceConfigFunctionDefaultMemoryTypeResponse `json:"functionDefaultMemoryType,omitempty"` FunctionZeroConfigFailover *bool `json:"functionZeroConfigFailover,omitempty"` - ElasticConcurrencyEnabled *bool `json:"elasticConcurrencyEnabled,omitempty"` BuildMachineType *CreateProjectResourceConfigBuildMachineTypeResponse `json:"buildMachineType,omitempty"` IsNSNBDisabled *bool `json:"isNSNBDisabled,omitempty"` } +func (o *CreateProjectResourceConfigResponse) GetElasticConcurrencyEnabled() *bool { + if o == nil { + return nil + } + return o.ElasticConcurrencyEnabled +} + func (o *CreateProjectResourceConfigResponse) GetFluid() *bool { if o == nil { return nil @@ -4739,13 +5049,6 @@ func (o *CreateProjectResourceConfigResponse) GetFunctionZeroConfigFailover() *b return o.FunctionZeroConfigFailover } -func (o *CreateProjectResourceConfigResponse) GetElasticConcurrencyEnabled() *bool { - if o == nil { - return nil - } - return o.ElasticConcurrencyEnabled -} - func (o *CreateProjectResourceConfigResponse) GetBuildMachineType() *CreateProjectResourceConfigBuildMachineTypeResponse { if o == nil { return nil @@ -4918,16 +5221,23 @@ func (e *CreateProjectDefaultResourceConfigBuildMachineType) UnmarshalJSON(data } type CreateProjectDefaultResourceConfig struct { + ElasticConcurrencyEnabled *bool `json:"elasticConcurrencyEnabled,omitempty"` Fluid *bool `json:"fluid,omitempty"` FunctionDefaultRegions []string `json:"functionDefaultRegions"` FunctionDefaultTimeout *float64 `json:"functionDefaultTimeout,omitempty"` FunctionDefaultMemoryType *CreateProjectDefaultResourceConfigFunctionDefaultMemoryType `json:"functionDefaultMemoryType,omitempty"` FunctionZeroConfigFailover *bool `json:"functionZeroConfigFailover,omitempty"` - ElasticConcurrencyEnabled *bool `json:"elasticConcurrencyEnabled,omitempty"` BuildMachineType *CreateProjectDefaultResourceConfigBuildMachineType `json:"buildMachineType,omitempty"` IsNSNBDisabled *bool `json:"isNSNBDisabled,omitempty"` } +func (o *CreateProjectDefaultResourceConfig) GetElasticConcurrencyEnabled() *bool { + if o == nil { + return nil + } + return o.ElasticConcurrencyEnabled +} + func (o *CreateProjectDefaultResourceConfig) GetFluid() *bool { if o == nil { return nil @@ -4963,13 +5273,6 @@ func (o *CreateProjectDefaultResourceConfig) GetFunctionZeroConfigFailover() *bo return o.FunctionZeroConfigFailover } -func (o *CreateProjectDefaultResourceConfig) GetElasticConcurrencyEnabled() *bool { - if o == nil { - return nil - } - return o.ElasticConcurrencyEnabled -} - func (o *CreateProjectDefaultResourceConfig) GetBuildMachineType() *CreateProjectDefaultResourceConfigBuildMachineType { if o == nil { return nil @@ -4987,8 +5290,8 @@ func (o *CreateProjectDefaultResourceConfig) GetIsNSNBDisabled() *bool { type CreateProjectSsoProtectionDeploymentTypeResponse string const ( - CreateProjectSsoProtectionDeploymentTypeResponseAll CreateProjectSsoProtectionDeploymentTypeResponse = "all" CreateProjectSsoProtectionDeploymentTypeResponsePreview CreateProjectSsoProtectionDeploymentTypeResponse = "preview" + CreateProjectSsoProtectionDeploymentTypeResponseAll CreateProjectSsoProtectionDeploymentTypeResponse = "all" CreateProjectSsoProtectionDeploymentTypeResponseProdDeploymentUrlsAndAllPreviews CreateProjectSsoProtectionDeploymentTypeResponse = "prod_deployment_urls_and_all_previews" CreateProjectSsoProtectionDeploymentTypeResponseAllExceptCustomDomains CreateProjectSsoProtectionDeploymentTypeResponse = "all_except_custom_domains" ) @@ -5002,10 +5305,10 @@ func (e *CreateProjectSsoProtectionDeploymentTypeResponse) UnmarshalJSON(data [] return err } switch v { - case "all": - fallthrough case "preview": fallthrough + case "all": + fallthrough case "prod_deployment_urls_and_all_previews": fallthrough case "all_except_custom_domains": @@ -5062,14 +5365,14 @@ func CreateCreateProjectAliasAssignedBoolean(boolean bool) CreateProjectAliasAss func (u *CreateProjectAliasAssigned) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = CreateProjectAliasAssignedTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = CreateProjectAliasAssignedTypeBoolean return nil @@ -5778,6 +6081,73 @@ func (o *CreateProjectTargets) GetWithCache() *bool { } type CreateProjectPermissions struct { + AliasProject []components.ACLAction `json:"aliasProject,omitempty"` + AliasProtectionBypass []components.ACLAction `json:"aliasProtectionBypass,omitempty"` + BuildMachine []components.ACLAction `json:"buildMachine,omitempty"` + ProductionAliasProtectionBypass []components.ACLAction `json:"productionAliasProtectionBypass,omitempty"` + ConnectConfigurationLink []components.ACLAction `json:"connectConfigurationLink,omitempty"` + DataCacheNamespace []components.ACLAction `json:"dataCacheNamespace,omitempty"` + Deployment []components.ACLAction `json:"deployment,omitempty"` + DeploymentBuildLogs []components.ACLAction `json:"deploymentBuildLogs,omitempty"` + DeploymentCheck []components.ACLAction `json:"deploymentCheck,omitempty"` + DeploymentCheckPreview []components.ACLAction `json:"deploymentCheckPreview,omitempty"` + DeploymentCheckReRunFromProductionBranch []components.ACLAction `json:"deploymentCheckReRunFromProductionBranch,omitempty"` + DeploymentProductionGit []components.ACLAction `json:"deploymentProductionGit,omitempty"` + DeploymentV0 []components.ACLAction `json:"deploymentV0,omitempty"` + DeploymentPreview []components.ACLAction `json:"deploymentPreview,omitempty"` + DeploymentPrivate []components.ACLAction `json:"deploymentPrivate,omitempty"` + DeploymentPromote []components.ACLAction `json:"deploymentPromote,omitempty"` + DeploymentRollback []components.ACLAction `json:"deploymentRollback,omitempty"` + EdgeCacheNamespace []components.ACLAction `json:"edgeCacheNamespace,omitempty"` + Environments []components.ACLAction `json:"environments,omitempty"` + Logs []components.ACLAction `json:"logs,omitempty"` + LogsPreset []components.ACLAction `json:"logsPreset,omitempty"` + PasswordProtection []components.ACLAction `json:"passwordProtection,omitempty"` + OptionsAllowlist []components.ACLAction `json:"optionsAllowlist,omitempty"` + Job []components.ACLAction `json:"job,omitempty"` + ObservabilityData []components.ACLAction `json:"observabilityData,omitempty"` + OnDemandBuild []components.ACLAction `json:"onDemandBuild,omitempty"` + OnDemandConcurrency []components.ACLAction `json:"onDemandConcurrency,omitempty"` + Project []components.ACLAction `json:"project,omitempty"` + ProjectFromV0 []components.ACLAction `json:"projectFromV0,omitempty"` + ProjectAccessGroup []components.ACLAction `json:"projectAccessGroup,omitempty"` + ProjectAnalyticsSampling []components.ACLAction `json:"projectAnalyticsSampling,omitempty"` + ProjectCheck []components.ACLAction `json:"projectCheck,omitempty"` + ProjectCheckRun []components.ACLAction `json:"projectCheckRun,omitempty"` + ProjectDeploymentHook []components.ACLAction `json:"projectDeploymentHook,omitempty"` + ProjectDomain []components.ACLAction `json:"projectDomain,omitempty"` + ProjectDomainMove []components.ACLAction `json:"projectDomainMove,omitempty"` + ProjectDomainCheckConfig []components.ACLAction `json:"projectDomainCheckConfig,omitempty"` + ProjectEnvVars []components.ACLAction `json:"projectEnvVars,omitempty"` + ProjectEnvVarsProduction []components.ACLAction `json:"projectEnvVarsProduction,omitempty"` + ProjectEnvVarsUnownedByIntegration []components.ACLAction `json:"projectEnvVarsUnownedByIntegration,omitempty"` + ProjectFlags []components.ACLAction `json:"projectFlags,omitempty"` + ProjectID []components.ACLAction `json:"projectId,omitempty"` + ProjectIntegrationConfiguration []components.ACLAction `json:"projectIntegrationConfiguration,omitempty"` + ProjectLink []components.ACLAction `json:"projectLink,omitempty"` + ProjectMember []components.ACLAction `json:"projectMember,omitempty"` + ProjectMonitoring []components.ACLAction `json:"projectMonitoring,omitempty"` + ProjectPermissions []components.ACLAction `json:"projectPermissions,omitempty"` + ProjectProductionBranch []components.ACLAction `json:"projectProductionBranch,omitempty"` + ProjectTransfer []components.ACLAction `json:"projectTransfer,omitempty"` + ProjectTransferOut []components.ACLAction `json:"projectTransferOut,omitempty"` + ProjectProtectionBypass []components.ACLAction `json:"projectProtectionBypass,omitempty"` + ProjectUsage []components.ACLAction `json:"projectUsage,omitempty"` + ProjectAnalyticsUsage []components.ACLAction `json:"projectAnalyticsUsage,omitempty"` + ProjectSupportCase []components.ACLAction `json:"projectSupportCase,omitempty"` + ProjectSupportCaseComment []components.ACLAction `json:"projectSupportCaseComment,omitempty"` + ProjectDeploymentExpiration []components.ACLAction `json:"projectDeploymentExpiration,omitempty"` + ProjectRollingRelease []components.ACLAction `json:"projectRollingRelease,omitempty"` + ProjectTier []components.ACLAction `json:"projectTier,omitempty"` + ProjectOIDCToken []components.ACLAction `json:"projectOIDCToken,omitempty"` + SeawallConfig []components.ACLAction `json:"seawallConfig,omitempty"` + SkewProtection []components.ACLAction `json:"skewProtection,omitempty"` + Analytics []components.ACLAction `json:"analytics,omitempty"` + TrustedIps []components.ACLAction `json:"trustedIps,omitempty"` + V0Chat []components.ACLAction `json:"v0Chat,omitempty"` + WebAnalytics []components.ACLAction `json:"webAnalytics,omitempty"` + SharedEnvVarConnection []components.ACLAction `json:"sharedEnvVarConnection,omitempty"` + Sonar []components.ACLAction `json:"sonar,omitempty"` Oauth2Connection []components.ACLAction `json:"oauth2Connection,omitempty"` User []components.ACLAction `json:"user,omitempty"` UserConnection []components.ACLAction `json:"userConnection,omitempty"` @@ -5923,1557 +6293,1490 @@ type CreateProjectPermissions struct { VercelRunExec []components.ACLAction `json:"vercelRunExec,omitempty"` APIKey []components.ACLAction `json:"apiKey,omitempty"` APIKeyOwnedBySelf []components.ACLAction `json:"apiKeyOwnedBySelf,omitempty"` - AliasProject []components.ACLAction `json:"aliasProject,omitempty"` - AliasProtectionBypass []components.ACLAction `json:"aliasProtectionBypass,omitempty"` - BuildMachine []components.ACLAction `json:"buildMachine,omitempty"` - ProductionAliasProtectionBypass []components.ACLAction `json:"productionAliasProtectionBypass,omitempty"` - ConnectConfigurationLink []components.ACLAction `json:"connectConfigurationLink,omitempty"` - DataCacheNamespace []components.ACLAction `json:"dataCacheNamespace,omitempty"` - Deployment []components.ACLAction `json:"deployment,omitempty"` - DeploymentBuildLogs []components.ACLAction `json:"deploymentBuildLogs,omitempty"` - DeploymentCheck []components.ACLAction `json:"deploymentCheck,omitempty"` - DeploymentCheckPreview []components.ACLAction `json:"deploymentCheckPreview,omitempty"` - DeploymentCheckReRunFromProductionBranch []components.ACLAction `json:"deploymentCheckReRunFromProductionBranch,omitempty"` - DeploymentProductionGit []components.ACLAction `json:"deploymentProductionGit,omitempty"` - DeploymentV0 []components.ACLAction `json:"deploymentV0,omitempty"` - DeploymentPreview []components.ACLAction `json:"deploymentPreview,omitempty"` - DeploymentPrivate []components.ACLAction `json:"deploymentPrivate,omitempty"` - DeploymentPromote []components.ACLAction `json:"deploymentPromote,omitempty"` - DeploymentRollback []components.ACLAction `json:"deploymentRollback,omitempty"` - EdgeCacheNamespace []components.ACLAction `json:"edgeCacheNamespace,omitempty"` - Environments []components.ACLAction `json:"environments,omitempty"` - Logs []components.ACLAction `json:"logs,omitempty"` - LogsPreset []components.ACLAction `json:"logsPreset,omitempty"` - PasswordProtection []components.ACLAction `json:"passwordProtection,omitempty"` - OptionsAllowlist []components.ACLAction `json:"optionsAllowlist,omitempty"` - Job []components.ACLAction `json:"job,omitempty"` - ObservabilityData []components.ACLAction `json:"observabilityData,omitempty"` - OnDemandBuild []components.ACLAction `json:"onDemandBuild,omitempty"` - OnDemandConcurrency []components.ACLAction `json:"onDemandConcurrency,omitempty"` - Project []components.ACLAction `json:"project,omitempty"` - ProjectFromV0 []components.ACLAction `json:"projectFromV0,omitempty"` - ProjectAccessGroup []components.ACLAction `json:"projectAccessGroup,omitempty"` - ProjectAnalyticsSampling []components.ACLAction `json:"projectAnalyticsSampling,omitempty"` - ProjectCheck []components.ACLAction `json:"projectCheck,omitempty"` - ProjectCheckRun []components.ACLAction `json:"projectCheckRun,omitempty"` - ProjectDeploymentHook []components.ACLAction `json:"projectDeploymentHook,omitempty"` - ProjectDomain []components.ACLAction `json:"projectDomain,omitempty"` - ProjectDomainMove []components.ACLAction `json:"projectDomainMove,omitempty"` - ProjectDomainCheckConfig []components.ACLAction `json:"projectDomainCheckConfig,omitempty"` - ProjectEnvVars []components.ACLAction `json:"projectEnvVars,omitempty"` - ProjectEnvVarsProduction []components.ACLAction `json:"projectEnvVarsProduction,omitempty"` - ProjectEnvVarsUnownedByIntegration []components.ACLAction `json:"projectEnvVarsUnownedByIntegration,omitempty"` - ProjectFlags []components.ACLAction `json:"projectFlags,omitempty"` - ProjectID []components.ACLAction `json:"projectId,omitempty"` - ProjectIntegrationConfiguration []components.ACLAction `json:"projectIntegrationConfiguration,omitempty"` - ProjectLink []components.ACLAction `json:"projectLink,omitempty"` - ProjectMember []components.ACLAction `json:"projectMember,omitempty"` - ProjectMonitoring []components.ACLAction `json:"projectMonitoring,omitempty"` - ProjectPermissions []components.ACLAction `json:"projectPermissions,omitempty"` - ProjectProductionBranch []components.ACLAction `json:"projectProductionBranch,omitempty"` - ProjectTransfer []components.ACLAction `json:"projectTransfer,omitempty"` - ProjectTransferOut []components.ACLAction `json:"projectTransferOut,omitempty"` - ProjectProtectionBypass []components.ACLAction `json:"projectProtectionBypass,omitempty"` - ProjectUsage []components.ACLAction `json:"projectUsage,omitempty"` - ProjectAnalyticsUsage []components.ACLAction `json:"projectAnalyticsUsage,omitempty"` - ProjectSupportCase []components.ACLAction `json:"projectSupportCase,omitempty"` - ProjectSupportCaseComment []components.ACLAction `json:"projectSupportCaseComment,omitempty"` - ProjectDeploymentExpiration []components.ACLAction `json:"projectDeploymentExpiration,omitempty"` - ProjectRollingRelease []components.ACLAction `json:"projectRollingRelease,omitempty"` - ProjectTier []components.ACLAction `json:"projectTier,omitempty"` - ProjectOIDCToken []components.ACLAction `json:"projectOIDCToken,omitempty"` - SeawallConfig []components.ACLAction `json:"seawallConfig,omitempty"` - SkewProtection []components.ACLAction `json:"skewProtection,omitempty"` - Analytics []components.ACLAction `json:"analytics,omitempty"` - TrustedIps []components.ACLAction `json:"trustedIps,omitempty"` - V0Chat []components.ACLAction `json:"v0Chat,omitempty"` - WebAnalytics []components.ACLAction `json:"webAnalytics,omitempty"` - SharedEnvVarConnection []components.ACLAction `json:"sharedEnvVarConnection,omitempty"` - Sonar []components.ACLAction `json:"sonar,omitempty"` } -func (o *CreateProjectPermissions) GetOauth2Connection() []components.ACLAction { +func (o *CreateProjectPermissions) GetAliasProject() []components.ACLAction { if o == nil { return nil } - return o.Oauth2Connection + return o.AliasProject } -func (o *CreateProjectPermissions) GetUser() []components.ACLAction { +func (o *CreateProjectPermissions) GetAliasProtectionBypass() []components.ACLAction { if o == nil { return nil } - return o.User + return o.AliasProtectionBypass } -func (o *CreateProjectPermissions) GetUserConnection() []components.ACLAction { +func (o *CreateProjectPermissions) GetBuildMachine() []components.ACLAction { if o == nil { return nil } - return o.UserConnection + return o.BuildMachine } -func (o *CreateProjectPermissions) GetUserSudo() []components.ACLAction { +func (o *CreateProjectPermissions) GetProductionAliasProtectionBypass() []components.ACLAction { if o == nil { return nil } - return o.UserSudo + return o.ProductionAliasProtectionBypass } -func (o *CreateProjectPermissions) GetWebAuthn() []components.ACLAction { +func (o *CreateProjectPermissions) GetConnectConfigurationLink() []components.ACLAction { if o == nil { return nil } - return o.WebAuthn + return o.ConnectConfigurationLink } -func (o *CreateProjectPermissions) GetAccessGroup() []components.ACLAction { +func (o *CreateProjectPermissions) GetDataCacheNamespace() []components.ACLAction { if o == nil { return nil } - return o.AccessGroup + return o.DataCacheNamespace } -func (o *CreateProjectPermissions) GetAliasGlobal() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeployment() []components.ACLAction { if o == nil { return nil } - return o.AliasGlobal + return o.Deployment } -func (o *CreateProjectPermissions) GetAnalyticsSampling() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentBuildLogs() []components.ACLAction { if o == nil { return nil } - return o.AnalyticsSampling + return o.DeploymentBuildLogs } -func (o *CreateProjectPermissions) GetAnalyticsUsage() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentCheck() []components.ACLAction { if o == nil { return nil } - return o.AnalyticsUsage + return o.DeploymentCheck } -func (o *CreateProjectPermissions) GetAuditLog() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentCheckPreview() []components.ACLAction { if o == nil { return nil } - return o.AuditLog + return o.DeploymentCheckPreview } -func (o *CreateProjectPermissions) GetBillingAddress() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentCheckReRunFromProductionBranch() []components.ACLAction { if o == nil { return nil } - return o.BillingAddress + return o.DeploymentCheckReRunFromProductionBranch } -func (o *CreateProjectPermissions) GetBillingInformation() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentProductionGit() []components.ACLAction { if o == nil { return nil } - return o.BillingInformation + return o.DeploymentProductionGit } -func (o *CreateProjectPermissions) GetBillingInvoice() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentV0() []components.ACLAction { if o == nil { return nil } - return o.BillingInvoice + return o.DeploymentV0 } -func (o *CreateProjectPermissions) GetBillingInvoiceEmailRecipient() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentPreview() []components.ACLAction { if o == nil { return nil } - return o.BillingInvoiceEmailRecipient + return o.DeploymentPreview } -func (o *CreateProjectPermissions) GetBillingInvoiceLanguage() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentPrivate() []components.ACLAction { if o == nil { return nil } - return o.BillingInvoiceLanguage + return o.DeploymentPrivate } -func (o *CreateProjectPermissions) GetBillingPlan() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentPromote() []components.ACLAction { if o == nil { return nil } - return o.BillingPlan + return o.DeploymentPromote } -func (o *CreateProjectPermissions) GetBillingPurchaseOrder() []components.ACLAction { +func (o *CreateProjectPermissions) GetDeploymentRollback() []components.ACLAction { if o == nil { return nil } - return o.BillingPurchaseOrder + return o.DeploymentRollback } -func (o *CreateProjectPermissions) GetBillingRefund() []components.ACLAction { +func (o *CreateProjectPermissions) GetEdgeCacheNamespace() []components.ACLAction { if o == nil { return nil } - return o.BillingRefund + return o.EdgeCacheNamespace } -func (o *CreateProjectPermissions) GetBillingTaxID() []components.ACLAction { +func (o *CreateProjectPermissions) GetEnvironments() []components.ACLAction { if o == nil { return nil } - return o.BillingTaxID + return o.Environments } -func (o *CreateProjectPermissions) GetBlob() []components.ACLAction { +func (o *CreateProjectPermissions) GetLogs() []components.ACLAction { if o == nil { return nil } - return o.Blob + return o.Logs } -func (o *CreateProjectPermissions) GetBudget() []components.ACLAction { +func (o *CreateProjectPermissions) GetLogsPreset() []components.ACLAction { if o == nil { return nil } - return o.Budget + return o.LogsPreset } -func (o *CreateProjectPermissions) GetCacheArtifact() []components.ACLAction { +func (o *CreateProjectPermissions) GetPasswordProtection() []components.ACLAction { if o == nil { return nil } - return o.CacheArtifact + return o.PasswordProtection } -func (o *CreateProjectPermissions) GetCacheArtifactUsageEvent() []components.ACLAction { +func (o *CreateProjectPermissions) GetOptionsAllowlist() []components.ACLAction { if o == nil { return nil } - return o.CacheArtifactUsageEvent + return o.OptionsAllowlist } -func (o *CreateProjectPermissions) GetCodeChecks() []components.ACLAction { +func (o *CreateProjectPermissions) GetJob() []components.ACLAction { if o == nil { return nil } - return o.CodeChecks + return o.Job } -func (o *CreateProjectPermissions) GetConcurrentBuilds() []components.ACLAction { +func (o *CreateProjectPermissions) GetObservabilityData() []components.ACLAction { if o == nil { return nil } - return o.ConcurrentBuilds + return o.ObservabilityData } -func (o *CreateProjectPermissions) GetConnect() []components.ACLAction { +func (o *CreateProjectPermissions) GetOnDemandBuild() []components.ACLAction { if o == nil { return nil } - return o.Connect + return o.OnDemandBuild } -func (o *CreateProjectPermissions) GetConnectConfiguration() []components.ACLAction { +func (o *CreateProjectPermissions) GetOnDemandConcurrency() []components.ACLAction { if o == nil { return nil } - return o.ConnectConfiguration + return o.OnDemandConcurrency } -func (o *CreateProjectPermissions) GetDefaultDeploymentProtection() []components.ACLAction { +func (o *CreateProjectPermissions) GetProject() []components.ACLAction { if o == nil { return nil } - return o.DefaultDeploymentProtection + return o.Project } -func (o *CreateProjectPermissions) GetDomain() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectFromV0() []components.ACLAction { if o == nil { return nil } - return o.Domain + return o.ProjectFromV0 } -func (o *CreateProjectPermissions) GetDomainAcceptDelegation() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectAccessGroup() []components.ACLAction { if o == nil { return nil } - return o.DomainAcceptDelegation + return o.ProjectAccessGroup } -func (o *CreateProjectPermissions) GetDomainAuthCodes() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectAnalyticsSampling() []components.ACLAction { if o == nil { return nil } - return o.DomainAuthCodes + return o.ProjectAnalyticsSampling } -func (o *CreateProjectPermissions) GetDomainCertificate() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectCheck() []components.ACLAction { if o == nil { return nil } - return o.DomainCertificate + return o.ProjectCheck } -func (o *CreateProjectPermissions) GetDomainCheckConfig() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectCheckRun() []components.ACLAction { if o == nil { return nil } - return o.DomainCheckConfig + return o.ProjectCheckRun } -func (o *CreateProjectPermissions) GetDomainMove() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectDeploymentHook() []components.ACLAction { if o == nil { return nil } - return o.DomainMove + return o.ProjectDeploymentHook } -func (o *CreateProjectPermissions) GetDomainPurchase() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectDomain() []components.ACLAction { if o == nil { return nil } - return o.DomainPurchase + return o.ProjectDomain } -func (o *CreateProjectPermissions) GetDomainRecord() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectDomainMove() []components.ACLAction { if o == nil { return nil } - return o.DomainRecord + return o.ProjectDomainMove } -func (o *CreateProjectPermissions) GetDomainTransferIn() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectDomainCheckConfig() []components.ACLAction { if o == nil { return nil } - return o.DomainTransferIn + return o.ProjectDomainCheckConfig } -func (o *CreateProjectPermissions) GetEvent() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectEnvVars() []components.ACLAction { if o == nil { return nil } - return o.Event + return o.ProjectEnvVars } -func (o *CreateProjectPermissions) GetOwnEvent() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectEnvVarsProduction() []components.ACLAction { if o == nil { return nil } - return o.OwnEvent + return o.ProjectEnvVarsProduction } -func (o *CreateProjectPermissions) GetSensitiveEnvironmentVariablePolicy() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectEnvVarsUnownedByIntegration() []components.ACLAction { if o == nil { return nil } - return o.SensitiveEnvironmentVariablePolicy + return o.ProjectEnvVarsUnownedByIntegration } -func (o *CreateProjectPermissions) GetFileUpload() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectFlags() []components.ACLAction { if o == nil { return nil } - return o.FileUpload + return o.ProjectFlags } -func (o *CreateProjectPermissions) GetFlagsExplorerSubscription() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectID() []components.ACLAction { if o == nil { return nil } - return o.FlagsExplorerSubscription + return o.ProjectID } -func (o *CreateProjectPermissions) GetGitRepository() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectIntegrationConfiguration() []components.ACLAction { if o == nil { return nil } - return o.GitRepository + return o.ProjectIntegrationConfiguration } -func (o *CreateProjectPermissions) GetIPBlocking() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectLink() []components.ACLAction { if o == nil { return nil } - return o.IPBlocking + return o.ProjectLink } -func (o *CreateProjectPermissions) GetImageOptimizationNewPrice() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectMember() []components.ACLAction { if o == nil { return nil } - return o.ImageOptimizationNewPrice + return o.ProjectMember } -func (o *CreateProjectPermissions) GetIntegration() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectMonitoring() []components.ACLAction { if o == nil { return nil } - return o.Integration + return o.ProjectMonitoring } -func (o *CreateProjectPermissions) GetIntegrationAccount() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectPermissions() []components.ACLAction { if o == nil { return nil } - return o.IntegrationAccount + return o.ProjectPermissions } -func (o *CreateProjectPermissions) GetIntegrationConfiguration() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectProductionBranch() []components.ACLAction { if o == nil { return nil } - return o.IntegrationConfiguration + return o.ProjectProductionBranch } -func (o *CreateProjectPermissions) GetIntegrationConfigurationTransfer() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectTransfer() []components.ACLAction { if o == nil { return nil } - return o.IntegrationConfigurationTransfer + return o.ProjectTransfer } -func (o *CreateProjectPermissions) GetIntegrationConfigurationProjects() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectTransferOut() []components.ACLAction { if o == nil { return nil } - return o.IntegrationConfigurationProjects + return o.ProjectTransferOut } -func (o *CreateProjectPermissions) GetIntegrationVercelConfigurationOverride() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectProtectionBypass() []components.ACLAction { if o == nil { return nil } - return o.IntegrationVercelConfigurationOverride + return o.ProjectProtectionBypass } -func (o *CreateProjectPermissions) GetIntegrationConfigurationRole() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectUsage() []components.ACLAction { if o == nil { return nil } - return o.IntegrationConfigurationRole + return o.ProjectUsage } -func (o *CreateProjectPermissions) GetIntegrationSSOSession() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectAnalyticsUsage() []components.ACLAction { if o == nil { return nil } - return o.IntegrationSSOSession + return o.ProjectAnalyticsUsage } -func (o *CreateProjectPermissions) GetIntegrationResource() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectSupportCase() []components.ACLAction { if o == nil { return nil } - return o.IntegrationResource + return o.ProjectSupportCase } -func (o *CreateProjectPermissions) GetIntegrationEvent() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectSupportCaseComment() []components.ACLAction { if o == nil { return nil } - return o.IntegrationEvent + return o.ProjectSupportCaseComment } -func (o *CreateProjectPermissions) GetIntegrationResourceSecrets() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectDeploymentExpiration() []components.ACLAction { if o == nil { return nil } - return o.IntegrationResourceSecrets + return o.ProjectDeploymentExpiration } -func (o *CreateProjectPermissions) GetIntegrationDeploymentAction() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectRollingRelease() []components.ACLAction { if o == nil { return nil } - return o.IntegrationDeploymentAction + return o.ProjectRollingRelease } -func (o *CreateProjectPermissions) GetMarketplaceInstallationMember() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectTier() []components.ACLAction { if o == nil { return nil } - return o.MarketplaceInstallationMember + return o.ProjectTier } -func (o *CreateProjectPermissions) GetMarketplaceBillingData() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectOIDCToken() []components.ACLAction { if o == nil { return nil } - return o.MarketplaceBillingData + return o.ProjectOIDCToken } -func (o *CreateProjectPermissions) GetMarketplaceInvoice() []components.ACLAction { +func (o *CreateProjectPermissions) GetSeawallConfig() []components.ACLAction { if o == nil { return nil } - return o.MarketplaceInvoice + return o.SeawallConfig } -func (o *CreateProjectPermissions) GetMarketplaceSettings() []components.ACLAction { +func (o *CreateProjectPermissions) GetSkewProtection() []components.ACLAction { if o == nil { return nil } - return o.MarketplaceSettings + return o.SkewProtection } -func (o *CreateProjectPermissions) GetMarketplaceExperimentationItem() []components.ACLAction { +func (o *CreateProjectPermissions) GetAnalytics() []components.ACLAction { if o == nil { return nil } - return o.MarketplaceExperimentationItem + return o.Analytics } -func (o *CreateProjectPermissions) GetMarketplaceExperimentationEdgeConfigData() []components.ACLAction { +func (o *CreateProjectPermissions) GetTrustedIps() []components.ACLAction { if o == nil { return nil } - return o.MarketplaceExperimentationEdgeConfigData + return o.TrustedIps } -func (o *CreateProjectPermissions) GetJobGlobal() []components.ACLAction { +func (o *CreateProjectPermissions) GetV0Chat() []components.ACLAction { if o == nil { return nil } - return o.JobGlobal + return o.V0Chat } -func (o *CreateProjectPermissions) GetDrain() []components.ACLAction { +func (o *CreateProjectPermissions) GetWebAnalytics() []components.ACLAction { if o == nil { return nil } - return o.Drain + return o.WebAnalytics } -func (o *CreateProjectPermissions) GetLogDrain() []components.ACLAction { +func (o *CreateProjectPermissions) GetSharedEnvVarConnection() []components.ACLAction { if o == nil { return nil } - return o.LogDrain + return o.SharedEnvVarConnection } -func (o *CreateProjectPermissions) GetMonitoring() []components.ACLAction { +func (o *CreateProjectPermissions) GetSonar() []components.ACLAction { if o == nil { return nil } - return o.Monitoring + return o.Sonar } -func (o *CreateProjectPermissions) GetMonitoringSettings() []components.ACLAction { +func (o *CreateProjectPermissions) GetOauth2Connection() []components.ACLAction { if o == nil { return nil } - return o.MonitoringSettings + return o.Oauth2Connection } -func (o *CreateProjectPermissions) GetMonitoringQuery() []components.ACLAction { +func (o *CreateProjectPermissions) GetUser() []components.ACLAction { if o == nil { return nil } - return o.MonitoringQuery + return o.User } -func (o *CreateProjectPermissions) GetMonitoringChart() []components.ACLAction { +func (o *CreateProjectPermissions) GetUserConnection() []components.ACLAction { if o == nil { return nil } - return o.MonitoringChart + return o.UserConnection } -func (o *CreateProjectPermissions) GetMonitoringAlert() []components.ACLAction { +func (o *CreateProjectPermissions) GetUserSudo() []components.ACLAction { if o == nil { return nil } - return o.MonitoringAlert + return o.UserSudo } -func (o *CreateProjectPermissions) GetNotificationDeploymentFailed() []components.ACLAction { +func (o *CreateProjectPermissions) GetWebAuthn() []components.ACLAction { if o == nil { return nil } - return o.NotificationDeploymentFailed + return o.WebAuthn } -func (o *CreateProjectPermissions) GetNotificationDomainConfiguration() []components.ACLAction { +func (o *CreateProjectPermissions) GetAccessGroup() []components.ACLAction { if o == nil { return nil } - return o.NotificationDomainConfiguration + return o.AccessGroup } -func (o *CreateProjectPermissions) GetNotificationDomainExpire() []components.ACLAction { +func (o *CreateProjectPermissions) GetAliasGlobal() []components.ACLAction { if o == nil { return nil } - return o.NotificationDomainExpire + return o.AliasGlobal } -func (o *CreateProjectPermissions) GetNotificationDomainMoved() []components.ACLAction { +func (o *CreateProjectPermissions) GetAnalyticsSampling() []components.ACLAction { if o == nil { return nil } - return o.NotificationDomainMoved + return o.AnalyticsSampling } -func (o *CreateProjectPermissions) GetNotificationDomainPurchase() []components.ACLAction { +func (o *CreateProjectPermissions) GetAnalyticsUsage() []components.ACLAction { if o == nil { return nil } - return o.NotificationDomainPurchase + return o.AnalyticsUsage } -func (o *CreateProjectPermissions) GetNotificationDomainRenewal() []components.ACLAction { +func (o *CreateProjectPermissions) GetAuditLog() []components.ACLAction { if o == nil { return nil } - return o.NotificationDomainRenewal + return o.AuditLog } -func (o *CreateProjectPermissions) GetNotificationDomainTransfer() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingAddress() []components.ACLAction { if o == nil { return nil } - return o.NotificationDomainTransfer + return o.BillingAddress } -func (o *CreateProjectPermissions) GetNotificationDomainUnverified() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingInformation() []components.ACLAction { if o == nil { return nil } - return o.NotificationDomainUnverified + return o.BillingInformation } -func (o *CreateProjectPermissions) GetNotificationMonitoringAlert() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingInvoice() []components.ACLAction { if o == nil { return nil } - return o.NotificationMonitoringAlert + return o.BillingInvoice } -func (o *CreateProjectPermissions) GetNotificationPaymentFailed() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingInvoiceEmailRecipient() []components.ACLAction { if o == nil { return nil } - return o.NotificationPaymentFailed + return o.BillingInvoiceEmailRecipient } -func (o *CreateProjectPermissions) GetNotificationUsageAlert() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingInvoiceLanguage() []components.ACLAction { if o == nil { return nil } - return o.NotificationUsageAlert + return o.BillingInvoiceLanguage } -func (o *CreateProjectPermissions) GetNotificationPreferences() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingPlan() []components.ACLAction { if o == nil { return nil } - return o.NotificationPreferences + return o.BillingPlan } -func (o *CreateProjectPermissions) GetNotificationCustomerBudget() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingPurchaseOrder() []components.ACLAction { if o == nil { return nil } - return o.NotificationCustomerBudget + return o.BillingPurchaseOrder } -func (o *CreateProjectPermissions) GetNotificationStatementOfReasons() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingRefund() []components.ACLAction { if o == nil { return nil } - return o.NotificationStatementOfReasons + return o.BillingRefund } -func (o *CreateProjectPermissions) GetObservabilityConfiguration() []components.ACLAction { +func (o *CreateProjectPermissions) GetBillingTaxID() []components.ACLAction { if o == nil { return nil } - return o.ObservabilityConfiguration + return o.BillingTaxID } -func (o *CreateProjectPermissions) GetObservabilityNotebook() []components.ACLAction { +func (o *CreateProjectPermissions) GetBlob() []components.ACLAction { if o == nil { return nil } - return o.ObservabilityNotebook + return o.Blob } -func (o *CreateProjectPermissions) GetObservabilityFunnel() []components.ACLAction { +func (o *CreateProjectPermissions) GetBudget() []components.ACLAction { if o == nil { return nil } - return o.ObservabilityFunnel + return o.Budget } -func (o *CreateProjectPermissions) GetOpenTelemetryEndpoint() []components.ACLAction { +func (o *CreateProjectPermissions) GetCacheArtifact() []components.ACLAction { if o == nil { return nil } - return o.OpenTelemetryEndpoint + return o.CacheArtifact } -func (o *CreateProjectPermissions) GetVercelAppInstallation() []components.ACLAction { +func (o *CreateProjectPermissions) GetCacheArtifactUsageEvent() []components.ACLAction { if o == nil { return nil } - return o.VercelAppInstallation + return o.CacheArtifactUsageEvent } -func (o *CreateProjectPermissions) GetVercelAppInstallationRequest() []components.ACLAction { +func (o *CreateProjectPermissions) GetCodeChecks() []components.ACLAction { if o == nil { return nil } - return o.VercelAppInstallationRequest + return o.CodeChecks } -func (o *CreateProjectPermissions) GetPaymentMethod() []components.ACLAction { +func (o *CreateProjectPermissions) GetConcurrentBuilds() []components.ACLAction { if o == nil { return nil } - return o.PaymentMethod + return o.ConcurrentBuilds } -func (o *CreateProjectPermissions) GetPermissions() []components.ACLAction { +func (o *CreateProjectPermissions) GetConnect() []components.ACLAction { if o == nil { return nil } - return o.Permissions + return o.Connect } -func (o *CreateProjectPermissions) GetPostgres() []components.ACLAction { +func (o *CreateProjectPermissions) GetConnectConfiguration() []components.ACLAction { if o == nil { return nil } - return o.Postgres + return o.ConnectConfiguration } -func (o *CreateProjectPermissions) GetPreviewDeploymentSuffix() []components.ACLAction { +func (o *CreateProjectPermissions) GetDefaultDeploymentProtection() []components.ACLAction { if o == nil { return nil } - return o.PreviewDeploymentSuffix + return o.DefaultDeploymentProtection } -func (o *CreateProjectPermissions) GetProTrialOnboarding() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomain() []components.ACLAction { if o == nil { return nil } - return o.ProTrialOnboarding + return o.Domain } -func (o *CreateProjectPermissions) GetSharedEnvVars() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomainAcceptDelegation() []components.ACLAction { if o == nil { return nil } - return o.SharedEnvVars + return o.DomainAcceptDelegation } -func (o *CreateProjectPermissions) GetSharedEnvVarsProduction() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomainAuthCodes() []components.ACLAction { if o == nil { return nil } - return o.SharedEnvVarsProduction + return o.DomainAuthCodes } -func (o *CreateProjectPermissions) GetSpace() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomainCertificate() []components.ACLAction { if o == nil { return nil } - return o.Space + return o.DomainCertificate } -func (o *CreateProjectPermissions) GetSpaceRun() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomainCheckConfig() []components.ACLAction { if o == nil { return nil } - return o.SpaceRun + return o.DomainCheckConfig } -func (o *CreateProjectPermissions) GetPasswordProtectionInvoiceItem() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomainMove() []components.ACLAction { if o == nil { return nil } - return o.PasswordProtectionInvoiceItem + return o.DomainMove } -func (o *CreateProjectPermissions) GetRateLimit() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomainPurchase() []components.ACLAction { if o == nil { return nil } - return o.RateLimit + return o.DomainPurchase } -func (o *CreateProjectPermissions) GetRedis() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomainRecord() []components.ACLAction { if o == nil { return nil } - return o.Redis + return o.DomainRecord } -func (o *CreateProjectPermissions) GetRepository() []components.ACLAction { +func (o *CreateProjectPermissions) GetDomainTransferIn() []components.ACLAction { if o == nil { return nil } - return o.Repository + return o.DomainTransferIn } -func (o *CreateProjectPermissions) GetRemoteCaching() []components.ACLAction { +func (o *CreateProjectPermissions) GetEvent() []components.ACLAction { if o == nil { return nil } - return o.RemoteCaching + return o.Event } -func (o *CreateProjectPermissions) GetSamlConfig() []components.ACLAction { +func (o *CreateProjectPermissions) GetOwnEvent() []components.ACLAction { if o == nil { return nil } - return o.SamlConfig + return o.OwnEvent } -func (o *CreateProjectPermissions) GetSecret() []components.ACLAction { +func (o *CreateProjectPermissions) GetSensitiveEnvironmentVariablePolicy() []components.ACLAction { if o == nil { return nil } - return o.Secret + return o.SensitiveEnvironmentVariablePolicy } -func (o *CreateProjectPermissions) GetRedisStoreTokenSet() []components.ACLAction { +func (o *CreateProjectPermissions) GetFileUpload() []components.ACLAction { if o == nil { return nil } - return o.RedisStoreTokenSet + return o.FileUpload } -func (o *CreateProjectPermissions) GetBlobStoreTokenSet() []components.ACLAction { +func (o *CreateProjectPermissions) GetFlagsExplorerSubscription() []components.ACLAction { if o == nil { return nil } - return o.BlobStoreTokenSet + return o.FlagsExplorerSubscription } -func (o *CreateProjectPermissions) GetPostgresStoreTokenSet() []components.ACLAction { +func (o *CreateProjectPermissions) GetGitRepository() []components.ACLAction { if o == nil { return nil } - return o.PostgresStoreTokenSet + return o.GitRepository } -func (o *CreateProjectPermissions) GetIntegrationStoreTokenSet() []components.ACLAction { +func (o *CreateProjectPermissions) GetIPBlocking() []components.ACLAction { if o == nil { return nil } - return o.IntegrationStoreTokenSet + return o.IPBlocking } -func (o *CreateProjectPermissions) GetIntegrationResourceReplCommand() []components.ACLAction { +func (o *CreateProjectPermissions) GetImageOptimizationNewPrice() []components.ACLAction { if o == nil { return nil } - return o.IntegrationResourceReplCommand + return o.ImageOptimizationNewPrice } -func (o *CreateProjectPermissions) GetStoreTransfer() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegration() []components.ACLAction { if o == nil { return nil } - return o.StoreTransfer + return o.Integration } -func (o *CreateProjectPermissions) GetSupportCase() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationAccount() []components.ACLAction { if o == nil { return nil } - return o.SupportCase + return o.IntegrationAccount } -func (o *CreateProjectPermissions) GetSupportCaseComment() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationConfiguration() []components.ACLAction { if o == nil { return nil } - return o.SupportCaseComment + return o.IntegrationConfiguration } -func (o *CreateProjectPermissions) GetDataCacheBillingSettings() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationConfigurationTransfer() []components.ACLAction { if o == nil { return nil } - return o.DataCacheBillingSettings + return o.IntegrationConfigurationTransfer } -func (o *CreateProjectPermissions) GetTeam() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationConfigurationProjects() []components.ACLAction { if o == nil { return nil } - return o.Team + return o.IntegrationConfigurationProjects } -func (o *CreateProjectPermissions) GetTeamAccessRequest() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationVercelConfigurationOverride() []components.ACLAction { if o == nil { return nil } - return o.TeamAccessRequest + return o.IntegrationVercelConfigurationOverride } -func (o *CreateProjectPermissions) GetTeamFellowMembership() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationConfigurationRole() []components.ACLAction { if o == nil { return nil } - return o.TeamFellowMembership + return o.IntegrationConfigurationRole } -func (o *CreateProjectPermissions) GetTeamGitExclusivity() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationSSOSession() []components.ACLAction { if o == nil { return nil } - return o.TeamGitExclusivity + return o.IntegrationSSOSession } -func (o *CreateProjectPermissions) GetTeamInvite() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationResource() []components.ACLAction { if o == nil { return nil } - return o.TeamInvite + return o.IntegrationResource } -func (o *CreateProjectPermissions) GetTeamInviteCode() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationEvent() []components.ACLAction { if o == nil { return nil } - return o.TeamInviteCode + return o.IntegrationEvent } -func (o *CreateProjectPermissions) GetTeamJoin() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationResourceSecrets() []components.ACLAction { if o == nil { return nil } - return o.TeamJoin + return o.IntegrationResourceSecrets } -func (o *CreateProjectPermissions) GetTeamMemberMfaStatus() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationDeploymentAction() []components.ACLAction { if o == nil { return nil } - return o.TeamMemberMfaStatus + return o.IntegrationDeploymentAction } -func (o *CreateProjectPermissions) GetTeamMicrofrontends() []components.ACLAction { +func (o *CreateProjectPermissions) GetMarketplaceInstallationMember() []components.ACLAction { if o == nil { return nil } - return o.TeamMicrofrontends + return o.MarketplaceInstallationMember } -func (o *CreateProjectPermissions) GetTeamOwnMembership() []components.ACLAction { +func (o *CreateProjectPermissions) GetMarketplaceBillingData() []components.ACLAction { if o == nil { return nil } - return o.TeamOwnMembership + return o.MarketplaceBillingData } -func (o *CreateProjectPermissions) GetTeamOwnMembershipDisconnectSAML() []components.ACLAction { +func (o *CreateProjectPermissions) GetMarketplaceInvoice() []components.ACLAction { if o == nil { return nil } - return o.TeamOwnMembershipDisconnectSAML + return o.MarketplaceInvoice } -func (o *CreateProjectPermissions) GetToken() []components.ACLAction { +func (o *CreateProjectPermissions) GetMarketplaceSettings() []components.ACLAction { if o == nil { return nil } - return o.Token + return o.MarketplaceSettings } -func (o *CreateProjectPermissions) GetUsage() []components.ACLAction { +func (o *CreateProjectPermissions) GetMarketplaceExperimentationItem() []components.ACLAction { if o == nil { return nil } - return o.Usage + return o.MarketplaceExperimentationItem } -func (o *CreateProjectPermissions) GetUsageCycle() []components.ACLAction { +func (o *CreateProjectPermissions) GetMarketplaceExperimentationEdgeConfigData() []components.ACLAction { if o == nil { return nil } - return o.UsageCycle + return o.MarketplaceExperimentationEdgeConfigData } -func (o *CreateProjectPermissions) GetVpcPeeringConnection() []components.ACLAction { +func (o *CreateProjectPermissions) GetJobGlobal() []components.ACLAction { if o == nil { return nil } - return o.VpcPeeringConnection + return o.JobGlobal } -func (o *CreateProjectPermissions) GetWebAnalyticsPlan() []components.ACLAction { +func (o *CreateProjectPermissions) GetDrain() []components.ACLAction { if o == nil { return nil } - return o.WebAnalyticsPlan + return o.Drain } -func (o *CreateProjectPermissions) GetEdgeConfig() []components.ACLAction { +func (o *CreateProjectPermissions) GetLogDrain() []components.ACLAction { if o == nil { return nil } - return o.EdgeConfig + return o.LogDrain } -func (o *CreateProjectPermissions) GetEdgeConfigItem() []components.ACLAction { +func (o *CreateProjectPermissions) GetMonitoring() []components.ACLAction { if o == nil { return nil } - return o.EdgeConfigItem + return o.Monitoring } -func (o *CreateProjectPermissions) GetEdgeConfigSchema() []components.ACLAction { +func (o *CreateProjectPermissions) GetMonitoringSettings() []components.ACLAction { if o == nil { return nil } - return o.EdgeConfigSchema + return o.MonitoringSettings } -func (o *CreateProjectPermissions) GetEdgeConfigToken() []components.ACLAction { +func (o *CreateProjectPermissions) GetMonitoringQuery() []components.ACLAction { if o == nil { return nil } - return o.EdgeConfigToken + return o.MonitoringQuery } -func (o *CreateProjectPermissions) GetWebhook() []components.ACLAction { +func (o *CreateProjectPermissions) GetMonitoringChart() []components.ACLAction { if o == nil { return nil } - return o.Webhook + return o.MonitoringChart } -func (o *CreateProjectPermissions) GetWebhookEvent() []components.ACLAction { +func (o *CreateProjectPermissions) GetMonitoringAlert() []components.ACLAction { if o == nil { return nil } - return o.WebhookEvent + return o.MonitoringAlert } -func (o *CreateProjectPermissions) GetEndpointVerification() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationDeploymentFailed() []components.ACLAction { if o == nil { return nil } - return o.EndpointVerification + return o.NotificationDeploymentFailed } -func (o *CreateProjectPermissions) GetProjectTransferIn() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationDomainConfiguration() []components.ACLAction { if o == nil { return nil } - return o.ProjectTransferIn + return o.NotificationDomainConfiguration } -func (o *CreateProjectPermissions) GetOauth2Application() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationDomainExpire() []components.ACLAction { if o == nil { return nil } - return o.Oauth2Application + return o.NotificationDomainExpire } -func (o *CreateProjectPermissions) GetVercelRun() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationDomainMoved() []components.ACLAction { if o == nil { return nil } - return o.VercelRun + return o.NotificationDomainMoved } -func (o *CreateProjectPermissions) GetVercelRunExec() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationDomainPurchase() []components.ACLAction { if o == nil { return nil } - return o.VercelRunExec + return o.NotificationDomainPurchase } -func (o *CreateProjectPermissions) GetAPIKey() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationDomainRenewal() []components.ACLAction { if o == nil { return nil } - return o.APIKey + return o.NotificationDomainRenewal } -func (o *CreateProjectPermissions) GetAPIKeyOwnedBySelf() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationDomainTransfer() []components.ACLAction { if o == nil { return nil } - return o.APIKeyOwnedBySelf + return o.NotificationDomainTransfer } -func (o *CreateProjectPermissions) GetAliasProject() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationDomainUnverified() []components.ACLAction { if o == nil { return nil } - return o.AliasProject + return o.NotificationDomainUnverified } -func (o *CreateProjectPermissions) GetAliasProtectionBypass() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationMonitoringAlert() []components.ACLAction { if o == nil { return nil } - return o.AliasProtectionBypass + return o.NotificationMonitoringAlert } -func (o *CreateProjectPermissions) GetBuildMachine() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationPaymentFailed() []components.ACLAction { if o == nil { return nil } - return o.BuildMachine + return o.NotificationPaymentFailed } -func (o *CreateProjectPermissions) GetProductionAliasProtectionBypass() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationUsageAlert() []components.ACLAction { if o == nil { return nil } - return o.ProductionAliasProtectionBypass + return o.NotificationUsageAlert } -func (o *CreateProjectPermissions) GetConnectConfigurationLink() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationPreferences() []components.ACLAction { if o == nil { return nil } - return o.ConnectConfigurationLink + return o.NotificationPreferences } -func (o *CreateProjectPermissions) GetDataCacheNamespace() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationCustomerBudget() []components.ACLAction { if o == nil { return nil } - return o.DataCacheNamespace + return o.NotificationCustomerBudget } -func (o *CreateProjectPermissions) GetDeployment() []components.ACLAction { +func (o *CreateProjectPermissions) GetNotificationStatementOfReasons() []components.ACLAction { if o == nil { return nil } - return o.Deployment + return o.NotificationStatementOfReasons } -func (o *CreateProjectPermissions) GetDeploymentBuildLogs() []components.ACLAction { +func (o *CreateProjectPermissions) GetObservabilityConfiguration() []components.ACLAction { if o == nil { return nil } - return o.DeploymentBuildLogs + return o.ObservabilityConfiguration } -func (o *CreateProjectPermissions) GetDeploymentCheck() []components.ACLAction { +func (o *CreateProjectPermissions) GetObservabilityNotebook() []components.ACLAction { if o == nil { return nil } - return o.DeploymentCheck + return o.ObservabilityNotebook } -func (o *CreateProjectPermissions) GetDeploymentCheckPreview() []components.ACLAction { +func (o *CreateProjectPermissions) GetObservabilityFunnel() []components.ACLAction { if o == nil { return nil } - return o.DeploymentCheckPreview + return o.ObservabilityFunnel } -func (o *CreateProjectPermissions) GetDeploymentCheckReRunFromProductionBranch() []components.ACLAction { +func (o *CreateProjectPermissions) GetOpenTelemetryEndpoint() []components.ACLAction { if o == nil { return nil } - return o.DeploymentCheckReRunFromProductionBranch + return o.OpenTelemetryEndpoint } -func (o *CreateProjectPermissions) GetDeploymentProductionGit() []components.ACLAction { +func (o *CreateProjectPermissions) GetVercelAppInstallation() []components.ACLAction { if o == nil { return nil } - return o.DeploymentProductionGit + return o.VercelAppInstallation } -func (o *CreateProjectPermissions) GetDeploymentV0() []components.ACLAction { +func (o *CreateProjectPermissions) GetVercelAppInstallationRequest() []components.ACLAction { if o == nil { return nil } - return o.DeploymentV0 + return o.VercelAppInstallationRequest } -func (o *CreateProjectPermissions) GetDeploymentPreview() []components.ACLAction { +func (o *CreateProjectPermissions) GetPaymentMethod() []components.ACLAction { if o == nil { return nil } - return o.DeploymentPreview + return o.PaymentMethod } -func (o *CreateProjectPermissions) GetDeploymentPrivate() []components.ACLAction { +func (o *CreateProjectPermissions) GetPermissions() []components.ACLAction { if o == nil { return nil } - return o.DeploymentPrivate + return o.Permissions } -func (o *CreateProjectPermissions) GetDeploymentPromote() []components.ACLAction { +func (o *CreateProjectPermissions) GetPostgres() []components.ACLAction { if o == nil { return nil } - return o.DeploymentPromote + return o.Postgres } -func (o *CreateProjectPermissions) GetDeploymentRollback() []components.ACLAction { +func (o *CreateProjectPermissions) GetPreviewDeploymentSuffix() []components.ACLAction { if o == nil { return nil } - return o.DeploymentRollback + return o.PreviewDeploymentSuffix } -func (o *CreateProjectPermissions) GetEdgeCacheNamespace() []components.ACLAction { +func (o *CreateProjectPermissions) GetProTrialOnboarding() []components.ACLAction { if o == nil { return nil } - return o.EdgeCacheNamespace + return o.ProTrialOnboarding } -func (o *CreateProjectPermissions) GetEnvironments() []components.ACLAction { +func (o *CreateProjectPermissions) GetSharedEnvVars() []components.ACLAction { if o == nil { return nil } - return o.Environments + return o.SharedEnvVars } -func (o *CreateProjectPermissions) GetLogs() []components.ACLAction { +func (o *CreateProjectPermissions) GetSharedEnvVarsProduction() []components.ACLAction { if o == nil { return nil } - return o.Logs + return o.SharedEnvVarsProduction } -func (o *CreateProjectPermissions) GetLogsPreset() []components.ACLAction { +func (o *CreateProjectPermissions) GetSpace() []components.ACLAction { if o == nil { return nil } - return o.LogsPreset + return o.Space } -func (o *CreateProjectPermissions) GetPasswordProtection() []components.ACLAction { +func (o *CreateProjectPermissions) GetSpaceRun() []components.ACLAction { if o == nil { return nil } - return o.PasswordProtection + return o.SpaceRun } -func (o *CreateProjectPermissions) GetOptionsAllowlist() []components.ACLAction { +func (o *CreateProjectPermissions) GetPasswordProtectionInvoiceItem() []components.ACLAction { if o == nil { return nil } - return o.OptionsAllowlist + return o.PasswordProtectionInvoiceItem } -func (o *CreateProjectPermissions) GetJob() []components.ACLAction { +func (o *CreateProjectPermissions) GetRateLimit() []components.ACLAction { if o == nil { return nil } - return o.Job + return o.RateLimit } -func (o *CreateProjectPermissions) GetObservabilityData() []components.ACLAction { +func (o *CreateProjectPermissions) GetRedis() []components.ACLAction { if o == nil { return nil } - return o.ObservabilityData + return o.Redis } -func (o *CreateProjectPermissions) GetOnDemandBuild() []components.ACLAction { +func (o *CreateProjectPermissions) GetRepository() []components.ACLAction { if o == nil { return nil } - return o.OnDemandBuild + return o.Repository } -func (o *CreateProjectPermissions) GetOnDemandConcurrency() []components.ACLAction { +func (o *CreateProjectPermissions) GetRemoteCaching() []components.ACLAction { if o == nil { return nil } - return o.OnDemandConcurrency + return o.RemoteCaching } -func (o *CreateProjectPermissions) GetProject() []components.ACLAction { +func (o *CreateProjectPermissions) GetSamlConfig() []components.ACLAction { if o == nil { return nil } - return o.Project + return o.SamlConfig } -func (o *CreateProjectPermissions) GetProjectFromV0() []components.ACLAction { +func (o *CreateProjectPermissions) GetSecret() []components.ACLAction { if o == nil { return nil } - return o.ProjectFromV0 + return o.Secret } -func (o *CreateProjectPermissions) GetProjectAccessGroup() []components.ACLAction { +func (o *CreateProjectPermissions) GetRedisStoreTokenSet() []components.ACLAction { if o == nil { return nil } - return o.ProjectAccessGroup + return o.RedisStoreTokenSet } -func (o *CreateProjectPermissions) GetProjectAnalyticsSampling() []components.ACLAction { +func (o *CreateProjectPermissions) GetBlobStoreTokenSet() []components.ACLAction { if o == nil { return nil } - return o.ProjectAnalyticsSampling + return o.BlobStoreTokenSet } -func (o *CreateProjectPermissions) GetProjectCheck() []components.ACLAction { +func (o *CreateProjectPermissions) GetPostgresStoreTokenSet() []components.ACLAction { if o == nil { return nil } - return o.ProjectCheck + return o.PostgresStoreTokenSet } -func (o *CreateProjectPermissions) GetProjectCheckRun() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationStoreTokenSet() []components.ACLAction { if o == nil { return nil } - return o.ProjectCheckRun + return o.IntegrationStoreTokenSet } -func (o *CreateProjectPermissions) GetProjectDeploymentHook() []components.ACLAction { +func (o *CreateProjectPermissions) GetIntegrationResourceReplCommand() []components.ACLAction { if o == nil { return nil } - return o.ProjectDeploymentHook + return o.IntegrationResourceReplCommand } -func (o *CreateProjectPermissions) GetProjectDomain() []components.ACLAction { +func (o *CreateProjectPermissions) GetStoreTransfer() []components.ACLAction { if o == nil { return nil } - return o.ProjectDomain + return o.StoreTransfer } -func (o *CreateProjectPermissions) GetProjectDomainMove() []components.ACLAction { +func (o *CreateProjectPermissions) GetSupportCase() []components.ACLAction { if o == nil { return nil } - return o.ProjectDomainMove + return o.SupportCase } -func (o *CreateProjectPermissions) GetProjectDomainCheckConfig() []components.ACLAction { +func (o *CreateProjectPermissions) GetSupportCaseComment() []components.ACLAction { if o == nil { return nil } - return o.ProjectDomainCheckConfig + return o.SupportCaseComment } -func (o *CreateProjectPermissions) GetProjectEnvVars() []components.ACLAction { +func (o *CreateProjectPermissions) GetDataCacheBillingSettings() []components.ACLAction { if o == nil { return nil } - return o.ProjectEnvVars + return o.DataCacheBillingSettings } -func (o *CreateProjectPermissions) GetProjectEnvVarsProduction() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeam() []components.ACLAction { if o == nil { return nil } - return o.ProjectEnvVarsProduction + return o.Team } -func (o *CreateProjectPermissions) GetProjectEnvVarsUnownedByIntegration() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamAccessRequest() []components.ACLAction { if o == nil { return nil } - return o.ProjectEnvVarsUnownedByIntegration + return o.TeamAccessRequest } -func (o *CreateProjectPermissions) GetProjectFlags() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamFellowMembership() []components.ACLAction { if o == nil { return nil } - return o.ProjectFlags + return o.TeamFellowMembership } -func (o *CreateProjectPermissions) GetProjectID() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamGitExclusivity() []components.ACLAction { if o == nil { return nil } - return o.ProjectID + return o.TeamGitExclusivity } -func (o *CreateProjectPermissions) GetProjectIntegrationConfiguration() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamInvite() []components.ACLAction { if o == nil { return nil } - return o.ProjectIntegrationConfiguration + return o.TeamInvite } -func (o *CreateProjectPermissions) GetProjectLink() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamInviteCode() []components.ACLAction { if o == nil { return nil } - return o.ProjectLink + return o.TeamInviteCode } -func (o *CreateProjectPermissions) GetProjectMember() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamJoin() []components.ACLAction { if o == nil { return nil } - return o.ProjectMember + return o.TeamJoin } -func (o *CreateProjectPermissions) GetProjectMonitoring() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamMemberMfaStatus() []components.ACLAction { if o == nil { return nil } - return o.ProjectMonitoring + return o.TeamMemberMfaStatus } -func (o *CreateProjectPermissions) GetProjectPermissions() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamMicrofrontends() []components.ACLAction { if o == nil { return nil } - return o.ProjectPermissions + return o.TeamMicrofrontends } -func (o *CreateProjectPermissions) GetProjectProductionBranch() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamOwnMembership() []components.ACLAction { if o == nil { return nil } - return o.ProjectProductionBranch + return o.TeamOwnMembership } -func (o *CreateProjectPermissions) GetProjectTransfer() []components.ACLAction { +func (o *CreateProjectPermissions) GetTeamOwnMembershipDisconnectSAML() []components.ACLAction { if o == nil { return nil } - return o.ProjectTransfer + return o.TeamOwnMembershipDisconnectSAML } -func (o *CreateProjectPermissions) GetProjectTransferOut() []components.ACLAction { +func (o *CreateProjectPermissions) GetToken() []components.ACLAction { if o == nil { return nil } - return o.ProjectTransferOut + return o.Token } -func (o *CreateProjectPermissions) GetProjectProtectionBypass() []components.ACLAction { +func (o *CreateProjectPermissions) GetUsage() []components.ACLAction { if o == nil { return nil } - return o.ProjectProtectionBypass + return o.Usage } -func (o *CreateProjectPermissions) GetProjectUsage() []components.ACLAction { +func (o *CreateProjectPermissions) GetUsageCycle() []components.ACLAction { if o == nil { return nil } - return o.ProjectUsage + return o.UsageCycle } -func (o *CreateProjectPermissions) GetProjectAnalyticsUsage() []components.ACLAction { +func (o *CreateProjectPermissions) GetVpcPeeringConnection() []components.ACLAction { if o == nil { return nil } - return o.ProjectAnalyticsUsage + return o.VpcPeeringConnection } -func (o *CreateProjectPermissions) GetProjectSupportCase() []components.ACLAction { +func (o *CreateProjectPermissions) GetWebAnalyticsPlan() []components.ACLAction { if o == nil { return nil } - return o.ProjectSupportCase + return o.WebAnalyticsPlan } -func (o *CreateProjectPermissions) GetProjectSupportCaseComment() []components.ACLAction { +func (o *CreateProjectPermissions) GetEdgeConfig() []components.ACLAction { if o == nil { return nil } - return o.ProjectSupportCaseComment + return o.EdgeConfig } -func (o *CreateProjectPermissions) GetProjectDeploymentExpiration() []components.ACLAction { +func (o *CreateProjectPermissions) GetEdgeConfigItem() []components.ACLAction { if o == nil { return nil } - return o.ProjectDeploymentExpiration + return o.EdgeConfigItem } -func (o *CreateProjectPermissions) GetProjectRollingRelease() []components.ACLAction { +func (o *CreateProjectPermissions) GetEdgeConfigSchema() []components.ACLAction { if o == nil { return nil } - return o.ProjectRollingRelease + return o.EdgeConfigSchema } -func (o *CreateProjectPermissions) GetProjectTier() []components.ACLAction { +func (o *CreateProjectPermissions) GetEdgeConfigToken() []components.ACLAction { if o == nil { return nil } - return o.ProjectTier + return o.EdgeConfigToken } -func (o *CreateProjectPermissions) GetProjectOIDCToken() []components.ACLAction { +func (o *CreateProjectPermissions) GetWebhook() []components.ACLAction { if o == nil { return nil } - return o.ProjectOIDCToken + return o.Webhook } -func (o *CreateProjectPermissions) GetSeawallConfig() []components.ACLAction { +func (o *CreateProjectPermissions) GetWebhookEvent() []components.ACLAction { if o == nil { return nil } - return o.SeawallConfig + return o.WebhookEvent } -func (o *CreateProjectPermissions) GetSkewProtection() []components.ACLAction { +func (o *CreateProjectPermissions) GetEndpointVerification() []components.ACLAction { if o == nil { return nil } - return o.SkewProtection + return o.EndpointVerification } -func (o *CreateProjectPermissions) GetAnalytics() []components.ACLAction { +func (o *CreateProjectPermissions) GetProjectTransferIn() []components.ACLAction { if o == nil { return nil } - return o.Analytics + return o.ProjectTransferIn } -func (o *CreateProjectPermissions) GetTrustedIps() []components.ACLAction { +func (o *CreateProjectPermissions) GetOauth2Application() []components.ACLAction { if o == nil { return nil } - return o.TrustedIps + return o.Oauth2Application } -func (o *CreateProjectPermissions) GetV0Chat() []components.ACLAction { +func (o *CreateProjectPermissions) GetVercelRun() []components.ACLAction { if o == nil { return nil } - return o.V0Chat + return o.VercelRun } -func (o *CreateProjectPermissions) GetWebAnalytics() []components.ACLAction { +func (o *CreateProjectPermissions) GetVercelRunExec() []components.ACLAction { if o == nil { return nil } - return o.WebAnalytics + return o.VercelRunExec } -func (o *CreateProjectPermissions) GetSharedEnvVarConnection() []components.ACLAction { +func (o *CreateProjectPermissions) GetAPIKey() []components.ACLAction { if o == nil { return nil } - return o.SharedEnvVarConnection + return o.APIKey } -func (o *CreateProjectPermissions) GetSonar() []components.ACLAction { +func (o *CreateProjectPermissions) GetAPIKeyOwnedBySelf() []components.ACLAction { if o == nil { return nil } - return o.Sonar + return o.APIKeyOwnedBySelf } type CreateProjectLastRollbackTarget struct { @@ -7621,6 +7924,17 @@ type CreateProjectProtectionBypassAutomationBypass struct { Scope CreateProjectScopeAutomationBypass `json:"scope"` } +func (c CreateProjectProtectionBypassAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectProtectionBypassAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectProtectionBypassAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -7673,6 +7987,17 @@ type CreateProjectProtectionBypassIntegrationAutomationBypass struct { ConfigurationID string `json:"configurationId"` } +func (c CreateProjectProtectionBypassIntegrationAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectProtectionBypassIntegrationAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"createdAt", "createdBy", "scope", "integrationId", "configurationId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectProtectionBypassIntegrationAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -7742,20 +8067,20 @@ func CreateCreateProjectProtectionBypassUnionCreateProjectProtectionBypassAutoma func (u *CreateProjectProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var createProjectProtectionBypassAutomationBypass CreateProjectProtectionBypassAutomationBypass = CreateProjectProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &createProjectProtectionBypassAutomationBypass, "", true, true); err == nil { - u.CreateProjectProtectionBypassAutomationBypass = &createProjectProtectionBypassAutomationBypass - u.Type = CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassAutomationBypass - return nil - } - var createProjectProtectionBypassIntegrationAutomationBypass CreateProjectProtectionBypassIntegrationAutomationBypass = CreateProjectProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &createProjectProtectionBypassIntegrationAutomationBypass, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { u.CreateProjectProtectionBypassIntegrationAutomationBypass = &createProjectProtectionBypassIntegrationAutomationBypass u.Type = CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassIntegrationAutomationBypass return nil } + var createProjectProtectionBypassAutomationBypass CreateProjectProtectionBypassAutomationBypass = CreateProjectProtectionBypassAutomationBypass{} + if err := utils.UnmarshalJSON(data, &createProjectProtectionBypassAutomationBypass, "", true, nil); err == nil { + u.CreateProjectProtectionBypassAutomationBypass = &createProjectProtectionBypassAutomationBypass + u.Type = CreateProjectProtectionBypassUnionTypeCreateProjectProtectionBypassAutomationBypass + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateProjectProtectionBypassUnion", string(data)) } @@ -7774,11 +8099,11 @@ func (u CreateProjectProtectionBypassUnion) MarshalJSON() ([]byte, error) { type CreateProjectTrustedIpsDeploymentType2 string const ( - CreateProjectTrustedIpsDeploymentType2All CreateProjectTrustedIpsDeploymentType2 = "all" CreateProjectTrustedIpsDeploymentType2Preview CreateProjectTrustedIpsDeploymentType2 = "preview" + CreateProjectTrustedIpsDeploymentType2Production CreateProjectTrustedIpsDeploymentType2 = "production" + CreateProjectTrustedIpsDeploymentType2All CreateProjectTrustedIpsDeploymentType2 = "all" CreateProjectTrustedIpsDeploymentType2ProdDeploymentUrlsAndAllPreviews CreateProjectTrustedIpsDeploymentType2 = "prod_deployment_urls_and_all_previews" CreateProjectTrustedIpsDeploymentType2AllExceptCustomDomains CreateProjectTrustedIpsDeploymentType2 = "all_except_custom_domains" - CreateProjectTrustedIpsDeploymentType2Production CreateProjectTrustedIpsDeploymentType2 = "production" ) func (e CreateProjectTrustedIpsDeploymentType2) ToPointer() *CreateProjectTrustedIpsDeploymentType2 { @@ -7790,15 +8115,15 @@ func (e *CreateProjectTrustedIpsDeploymentType2) UnmarshalJSON(data []byte) erro return err } switch v { - case "all": - fallthrough case "preview": fallthrough + case "production": + fallthrough + case "all": + fallthrough case "prod_deployment_urls_and_all_previews": fallthrough case "all_except_custom_domains": - fallthrough - case "production": *e = CreateProjectTrustedIpsDeploymentType2(v) return nil default: @@ -7810,6 +8135,17 @@ type CreateProjectTrustedIps2 struct { DeploymentType CreateProjectTrustedIpsDeploymentType2 `json:"deploymentType"` } +func (c CreateProjectTrustedIps2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectTrustedIps2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectTrustedIps2) GetDeploymentType() CreateProjectTrustedIpsDeploymentType2 { if o == nil { return CreateProjectTrustedIpsDeploymentType2("") @@ -7820,11 +8156,11 @@ func (o *CreateProjectTrustedIps2) GetDeploymentType() CreateProjectTrustedIpsDe type CreateProjectTrustedIpsDeploymentType1 string const ( - CreateProjectTrustedIpsDeploymentType1All CreateProjectTrustedIpsDeploymentType1 = "all" CreateProjectTrustedIpsDeploymentType1Preview CreateProjectTrustedIpsDeploymentType1 = "preview" + CreateProjectTrustedIpsDeploymentType1Production CreateProjectTrustedIpsDeploymentType1 = "production" + CreateProjectTrustedIpsDeploymentType1All CreateProjectTrustedIpsDeploymentType1 = "all" CreateProjectTrustedIpsDeploymentType1ProdDeploymentUrlsAndAllPreviews CreateProjectTrustedIpsDeploymentType1 = "prod_deployment_urls_and_all_previews" CreateProjectTrustedIpsDeploymentType1AllExceptCustomDomains CreateProjectTrustedIpsDeploymentType1 = "all_except_custom_domains" - CreateProjectTrustedIpsDeploymentType1Production CreateProjectTrustedIpsDeploymentType1 = "production" ) func (e CreateProjectTrustedIpsDeploymentType1) ToPointer() *CreateProjectTrustedIpsDeploymentType1 { @@ -7836,15 +8172,15 @@ func (e *CreateProjectTrustedIpsDeploymentType1) UnmarshalJSON(data []byte) erro return err } switch v { - case "all": - fallthrough case "preview": fallthrough + case "production": + fallthrough + case "all": + fallthrough case "prod_deployment_urls_and_all_previews": fallthrough case "all_except_custom_domains": - fallthrough - case "production": *e = CreateProjectTrustedIpsDeploymentType1(v) return nil default: @@ -7857,6 +8193,17 @@ type CreateProjectAddress struct { Note *string `json:"note,omitempty"` } +func (c CreateProjectAddress) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectAddress) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectAddress) GetValue() string { if o == nil { return "" @@ -7903,6 +8250,17 @@ type CreateProjectTrustedIps1 struct { ProtectionMode CreateProjectProtectionMode `json:"protectionMode"` } +func (c CreateProjectTrustedIps1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectTrustedIps1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"deploymentType", "addresses", "protectionMode"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectTrustedIps1) GetDeploymentType() CreateProjectTrustedIpsDeploymentType1 { if o == nil { return CreateProjectTrustedIpsDeploymentType1("") @@ -7958,20 +8316,20 @@ func CreateCreateProjectTrustedIpsUnionCreateProjectTrustedIps2(createProjectTru func (u *CreateProjectTrustedIpsUnion) UnmarshalJSON(data []byte) error { - var createProjectTrustedIps2 CreateProjectTrustedIps2 = CreateProjectTrustedIps2{} - if err := utils.UnmarshalJSON(data, &createProjectTrustedIps2, "", true, true); err == nil { - u.CreateProjectTrustedIps2 = &createProjectTrustedIps2 - u.Type = CreateProjectTrustedIpsUnionTypeCreateProjectTrustedIps2 - return nil - } - var createProjectTrustedIps1 CreateProjectTrustedIps1 = CreateProjectTrustedIps1{} - if err := utils.UnmarshalJSON(data, &createProjectTrustedIps1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectTrustedIps1, "", true, nil); err == nil { u.CreateProjectTrustedIps1 = &createProjectTrustedIps1 u.Type = CreateProjectTrustedIpsUnionTypeCreateProjectTrustedIps1 return nil } + var createProjectTrustedIps2 CreateProjectTrustedIps2 = CreateProjectTrustedIps2{} + if err := utils.UnmarshalJSON(data, &createProjectTrustedIps2, "", true, nil); err == nil { + u.CreateProjectTrustedIps2 = &createProjectTrustedIps2 + u.Type = CreateProjectTrustedIpsUnionTypeCreateProjectTrustedIps2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateProjectTrustedIpsUnion", string(data)) } @@ -8475,28 +8833,29 @@ type CreateProjectResponseBody struct { CustomerSupportCodeVisibility *bool `json:"customerSupportCodeVisibility,omitempty"` Crons *CreateProjectCrons `json:"crons,omitempty"` DataCache *CreateProjectDataCache `json:"dataCache,omitempty"` - DeploymentExpiration *CreateProjectDeploymentExpiration `json:"deploymentExpiration,omitempty"` - DevCommand *string `json:"devCommand,omitempty"` - DirectoryListing bool `json:"directoryListing"` - InstallCommand *string `json:"installCommand,omitempty"` - Env []CreateProjectEnv `json:"env,omitempty"` - CustomEnvironments []CreateProjectCustomEnvironment `json:"customEnvironments,omitempty"` - Framework *CreateProjectFrameworkResponseBody `json:"framework,omitempty"` - GitForkProtection *bool `json:"gitForkProtection,omitempty"` - GitLFS *bool `json:"gitLFS,omitempty"` - ID string `json:"id"` - IPBuckets []CreateProjectIPBucket `json:"ipBuckets,omitempty"` - LatestDeployments []CreateProjectLatestDeployment `json:"latestDeployments,omitempty"` - Link *CreateProjectLinkUnion `json:"link,omitempty"` - Microfrontends *CreateProjectMicrofrontendsUnion `json:"microfrontends,omitempty"` - Name string `json:"name"` - NodeVersion CreateProjectNodeVersion `json:"nodeVersion"` - OptionsAllowlist *CreateProjectOptionsAllowlist `json:"optionsAllowlist,omitempty"` - OutputDirectory *string `json:"outputDirectory,omitempty"` - PasswordProtection *CreateProjectPasswordProtection `json:"passwordProtection,omitempty"` - ProductionDeploymentsFastLane *bool `json:"productionDeploymentsFastLane,omitempty"` - PublicSource *bool `json:"publicSource,omitempty"` - ResourceConfig CreateProjectResourceConfigResponse `json:"resourceConfig"` + // Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + DeploymentExpiration *CreateProjectDeploymentExpiration `json:"deploymentExpiration,omitempty"` + DevCommand *string `json:"devCommand,omitempty"` + DirectoryListing bool `json:"directoryListing"` + InstallCommand *string `json:"installCommand,omitempty"` + Env []CreateProjectEnv `json:"env,omitempty"` + CustomEnvironments []CreateProjectCustomEnvironment `json:"customEnvironments,omitempty"` + Framework *CreateProjectFrameworkResponseBody `json:"framework,omitempty"` + GitForkProtection *bool `json:"gitForkProtection,omitempty"` + GitLFS *bool `json:"gitLFS,omitempty"` + ID string `json:"id"` + IPBuckets []CreateProjectIPBucket `json:"ipBuckets,omitempty"` + LatestDeployments []CreateProjectLatestDeployment `json:"latestDeployments,omitempty"` + Link *CreateProjectLinkUnion `json:"link,omitempty"` + Microfrontends *CreateProjectMicrofrontendsUnion `json:"microfrontends,omitempty"` + Name string `json:"name"` + NodeVersion CreateProjectNodeVersion `json:"nodeVersion"` + OptionsAllowlist *CreateProjectOptionsAllowlist `json:"optionsAllowlist,omitempty"` + OutputDirectory *string `json:"outputDirectory,omitempty"` + PasswordProtection *CreateProjectPasswordProtection `json:"passwordProtection,omitempty"` + ProductionDeploymentsFastLane *bool `json:"productionDeploymentsFastLane,omitempty"` + PublicSource *bool `json:"publicSource,omitempty"` + ResourceConfig CreateProjectResourceConfigResponse `json:"resourceConfig"` // Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. RollbackDescription *CreateProjectRollbackDescription `json:"rollbackDescription,omitempty"` // Project-level rolling release configuration that defines how deployments should be gradually rolled out diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createprojectenv.go b/src/__tests__/mockserver/internal/sdk/models/operations/createprojectenv.go index b930b194..dc8c8d1a 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createprojectenv.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createprojectenv.go @@ -92,6 +92,17 @@ type CreateProjectEnvRequestBody4 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds"` } +func (c CreateProjectEnvRequestBody4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvRequestBody4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"key", "value", "type", "customEnvironmentIds"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvRequestBody4) GetKey() string { if o == nil { return "" @@ -223,6 +234,17 @@ type CreateProjectEnvRequestBody3 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (c CreateProjectEnvRequestBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvRequestBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"key", "value", "type", "target"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvRequestBody3) GetKey() string { if o == nil { return "" @@ -307,14 +329,14 @@ func CreateRequestBodyUnion2CreateProjectEnvRequestBody4(createProjectEnvRequest func (u *RequestBodyUnion2) UnmarshalJSON(data []byte) error { var createProjectEnvRequestBody3 CreateProjectEnvRequestBody3 = CreateProjectEnvRequestBody3{} - if err := utils.UnmarshalJSON(data, &createProjectEnvRequestBody3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvRequestBody3, "", true, nil); err == nil { u.CreateProjectEnvRequestBody3 = &createProjectEnvRequestBody3 u.Type = RequestBodyUnion2TypeCreateProjectEnvRequestBody3 return nil } var createProjectEnvRequestBody4 CreateProjectEnvRequestBody4 = CreateProjectEnvRequestBody4{} - if err := utils.UnmarshalJSON(data, &createProjectEnvRequestBody4, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvRequestBody4, "", true, nil); err == nil { u.CreateProjectEnvRequestBody4 = &createProjectEnvRequestBody4 u.Type = RequestBodyUnion2TypeCreateProjectEnvRequestBody4 return nil @@ -417,6 +439,17 @@ type CreateProjectEnvRequestBody2 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds"` } +func (c CreateProjectEnvRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"key", "value", "type", "customEnvironmentIds"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvRequestBody2) GetKey() string { if o == nil { return "" @@ -548,6 +581,17 @@ type CreateProjectEnvRequestBody1 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (c CreateProjectEnvRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"key", "value", "type", "target"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvRequestBody1) GetKey() string { if o == nil { return "" @@ -632,14 +676,14 @@ func CreateRequestBodyUnion1CreateProjectEnvRequestBody2(createProjectEnvRequest func (u *RequestBodyUnion1) UnmarshalJSON(data []byte) error { var createProjectEnvRequestBody1 CreateProjectEnvRequestBody1 = CreateProjectEnvRequestBody1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvRequestBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvRequestBody1, "", true, nil); err == nil { u.CreateProjectEnvRequestBody1 = &createProjectEnvRequestBody1 u.Type = RequestBodyUnion1TypeCreateProjectEnvRequestBody1 return nil } var createProjectEnvRequestBody2 CreateProjectEnvRequestBody2 = CreateProjectEnvRequestBody2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvRequestBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvRequestBody2, "", true, nil); err == nil { u.CreateProjectEnvRequestBody2 = &createProjectEnvRequestBody2 u.Type = RequestBodyUnion1TypeCreateProjectEnvRequestBody2 return nil @@ -695,14 +739,14 @@ func CreateCreateProjectEnvRequestBodyArrayOfRequestBodyUnion2(arrayOfRequestBod func (u *CreateProjectEnvRequestBody) UnmarshalJSON(data []byte) error { var requestBodyUnion1 RequestBodyUnion1 = RequestBodyUnion1{} - if err := utils.UnmarshalJSON(data, &requestBodyUnion1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &requestBodyUnion1, "", true, nil); err == nil { u.RequestBodyUnion1 = &requestBodyUnion1 u.Type = CreateProjectEnvRequestBodyTypeRequestBodyUnion1 return nil } var arrayOfRequestBodyUnion2 []RequestBodyUnion2 = []RequestBodyUnion2{} - if err := utils.UnmarshalJSON(data, &arrayOfRequestBodyUnion2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfRequestBodyUnion2, "", true, nil); err == nil { u.ArrayOfRequestBodyUnion2 = arrayOfRequestBodyUnion2 u.Type = CreateProjectEnvRequestBodyTypeArrayOfRequestBodyUnion2 return nil @@ -834,14 +878,14 @@ func CreateCreatedTargetUnion2CreatedTargetEnum3(createdTargetEnum3 CreatedTarge func (u *CreatedTargetUnion2) UnmarshalJSON(data []byte) error { var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = CreatedTargetUnion2TypeArrayOfStr return nil } var createdTargetEnum3 CreatedTargetEnum3 = CreatedTargetEnum3("") - if err := utils.UnmarshalJSON(data, &createdTargetEnum3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createdTargetEnum3, "", true, nil); err == nil { u.CreatedTargetEnum3 = &createdTargetEnum3 u.Type = CreatedTargetUnion2TypeCreatedTargetEnum3 return nil @@ -866,10 +910,10 @@ type CreatedType2 string const ( CreatedType2System CreatedType2 = "system" - CreatedType2Secret CreatedType2 = "secret" CreatedType2Encrypted CreatedType2 = "encrypted" CreatedType2Plain CreatedType2 = "plain" CreatedType2Sensitive CreatedType2 = "sensitive" + CreatedType2Secret CreatedType2 = "secret" ) func (e CreatedType2) ToPointer() *CreatedType2 { @@ -883,13 +927,13 @@ func (e *CreatedType2) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = CreatedType2(v) return nil default: @@ -925,6 +969,17 @@ type CreateProjectEnvContentHintFlagsConnectionString2 struct { ProjectID string `json:"projectId"` } +func (c CreateProjectEnvContentHintFlagsConnectionString2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintFlagsConnectionString2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintFlagsConnectionString2) GetType() CreatedTypeFlagsConnectionString2 { if o == nil { return CreatedTypeFlagsConnectionString2("") @@ -970,6 +1025,17 @@ type CreateProjectEnvContentHintIntegrationStoreSecret2 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (c CreateProjectEnvContentHintIntegrationStoreSecret2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintIntegrationStoreSecret2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintIntegrationStoreSecret2) GetType() CreatedTypeIntegrationStoreSecret2 { if o == nil { return CreatedTypeIntegrationStoreSecret2("") @@ -1033,6 +1099,17 @@ type CreateProjectEnvContentHintPostgresURLNoSsl2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresURLNoSsl2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresURLNoSsl2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresURLNoSsl2) GetType() CreatedTypePostgresURLNoSsl2 { if o == nil { return CreatedTypePostgresURLNoSsl2("") @@ -1075,6 +1152,17 @@ type CreateProjectEnvContentHintPostgresDatabase2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresDatabase2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresDatabase2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresDatabase2) GetType() CreatedTypePostgresDatabase2 { if o == nil { return CreatedTypePostgresDatabase2("") @@ -1117,6 +1205,17 @@ type CreateProjectEnvContentHintPostgresPassword2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresPassword2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresPassword2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresPassword2) GetType() CreatedTypePostgresPassword2 { if o == nil { return CreatedTypePostgresPassword2("") @@ -1159,6 +1258,17 @@ type CreateProjectEnvContentHintPostgresHost2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresHost2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresHost2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresHost2) GetType() CreatedTypePostgresHost2 { if o == nil { return CreatedTypePostgresHost2("") @@ -1201,6 +1311,17 @@ type CreateProjectEnvContentHintPostgresUser2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresUser2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresUser2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresUser2) GetType() CreatedTypePostgresUser2 { if o == nil { return CreatedTypePostgresUser2("") @@ -1243,6 +1364,17 @@ type CreateProjectEnvContentHintPostgresPrismaURL2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresPrismaURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresPrismaURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresPrismaURL2) GetType() CreatedTypePostgresPrismaURL2 { if o == nil { return CreatedTypePostgresPrismaURL2("") @@ -1285,6 +1417,17 @@ type CreateProjectEnvContentHintPostgresURLNonPooling2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresURLNonPooling2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresURLNonPooling2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresURLNonPooling2) GetType() CreatedTypePostgresURLNonPooling2 { if o == nil { return CreatedTypePostgresURLNonPooling2("") @@ -1327,6 +1470,17 @@ type CreateProjectEnvContentHintPostgresURL2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresURL2) GetType() CreatedTypePostgresURL2 { if o == nil { return CreatedTypePostgresURL2("") @@ -1369,6 +1523,17 @@ type CreateProjectEnvContentHintBlobReadWriteToken2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintBlobReadWriteToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintBlobReadWriteToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintBlobReadWriteToken2) GetType() CreatedTypeBlobReadWriteToken2 { if o == nil { return CreatedTypeBlobReadWriteToken2("") @@ -1411,6 +1576,17 @@ type CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2) GetType() CreatedTypeRedisRestAPIReadOnlyToken2 { if o == nil { return CreatedTypeRedisRestAPIReadOnlyToken2("") @@ -1453,6 +1629,17 @@ type CreateProjectEnvContentHintRedisRestAPIToken2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintRedisRestAPIToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintRedisRestAPIToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintRedisRestAPIToken2) GetType() CreatedTypeRedisRestAPIToken2 { if o == nil { return CreatedTypeRedisRestAPIToken2("") @@ -1495,6 +1682,17 @@ type CreateProjectEnvContentHintRedisRestAPIURL2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintRedisRestAPIURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintRedisRestAPIURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintRedisRestAPIURL2) GetType() CreatedTypeRedisRestAPIURL2 { if o == nil { return CreatedTypeRedisRestAPIURL2("") @@ -1537,6 +1735,17 @@ type CreateProjectEnvContentHintRedisURL2 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintRedisURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintRedisURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintRedisURL2) GetType() CreatedTypeRedisURL2 { if o == nil { return CreatedTypeRedisURL2("") @@ -1728,111 +1937,111 @@ func CreateCreateProjectEnvContentHintUnion2CreateProjectEnvContentHintFlagsConn func (u *CreateProjectEnvContentHintUnion2) UnmarshalJSON(data []byte) error { - var createProjectEnvContentHintPostgresURLNonPooling2 CreateProjectEnvContentHintPostgresURLNonPooling2 = CreateProjectEnvContentHintPostgresURLNonPooling2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNonPooling2, "", true, true); err == nil { - u.CreateProjectEnvContentHintPostgresURLNonPooling2 = &createProjectEnvContentHintPostgresURLNonPooling2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNonPooling2 + var createProjectEnvContentHintIntegrationStoreSecret2 CreateProjectEnvContentHintIntegrationStoreSecret2 = CreateProjectEnvContentHintIntegrationStoreSecret2{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err == nil { + u.CreateProjectEnvContentHintIntegrationStoreSecret2 = &createProjectEnvContentHintIntegrationStoreSecret2 + u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintIntegrationStoreSecret2 return nil } - var createProjectEnvContentHintPostgresPassword2 CreateProjectEnvContentHintPostgresPassword2 = CreateProjectEnvContentHintPostgresPassword2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPassword2, "", true, true); err == nil { - u.CreateProjectEnvContentHintPostgresPassword2 = &createProjectEnvContentHintPostgresPassword2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPassword2 + var createProjectEnvContentHintRedisURL2 CreateProjectEnvContentHintRedisURL2 = CreateProjectEnvContentHintRedisURL2{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisURL2, "", true, nil); err == nil { + u.CreateProjectEnvContentHintRedisURL2 = &createProjectEnvContentHintRedisURL2 + u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisURL2 + return nil + } + + var createProjectEnvContentHintRedisRestAPIURL2 CreateProjectEnvContentHintRedisRestAPIURL2 = CreateProjectEnvContentHintRedisRestAPIURL2{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err == nil { + u.CreateProjectEnvContentHintRedisRestAPIURL2 = &createProjectEnvContentHintRedisRestAPIURL2 + u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIURL2 return nil } var createProjectEnvContentHintRedisRestAPIToken2 CreateProjectEnvContentHintRedisRestAPIToken2 = CreateProjectEnvContentHintRedisRestAPIToken2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err == nil { u.CreateProjectEnvContentHintRedisRestAPIToken2 = &createProjectEnvContentHintRedisRestAPIToken2 u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIToken2 return nil } var createProjectEnvContentHintRedisRestAPIReadOnlyToken2 CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 = CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err == nil { u.CreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 = &createProjectEnvContentHintRedisRestAPIReadOnlyToken2 u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIReadOnlyToken2 return nil } var createProjectEnvContentHintBlobReadWriteToken2 CreateProjectEnvContentHintBlobReadWriteToken2 = CreateProjectEnvContentHintBlobReadWriteToken2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintBlobReadWriteToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err == nil { u.CreateProjectEnvContentHintBlobReadWriteToken2 = &createProjectEnvContentHintBlobReadWriteToken2 u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintBlobReadWriteToken2 return nil } var createProjectEnvContentHintPostgresURL2 CreateProjectEnvContentHintPostgresURL2 = CreateProjectEnvContentHintPostgresURL2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURL2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURL2, "", true, nil); err == nil { u.CreateProjectEnvContentHintPostgresURL2 = &createProjectEnvContentHintPostgresURL2 u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURL2 return nil } - var createProjectEnvContentHintRedisRestAPIURL2 CreateProjectEnvContentHintRedisRestAPIURL2 = CreateProjectEnvContentHintRedisRestAPIURL2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIURL2, "", true, true); err == nil { - u.CreateProjectEnvContentHintRedisRestAPIURL2 = &createProjectEnvContentHintRedisRestAPIURL2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisRestAPIURL2 + var createProjectEnvContentHintPostgresURLNonPooling2 CreateProjectEnvContentHintPostgresURLNonPooling2 = CreateProjectEnvContentHintPostgresURLNonPooling2{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err == nil { + u.CreateProjectEnvContentHintPostgresURLNonPooling2 = &createProjectEnvContentHintPostgresURLNonPooling2 + u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNonPooling2 return nil } - var createProjectEnvContentHintPostgresUser2 CreateProjectEnvContentHintPostgresUser2 = CreateProjectEnvContentHintPostgresUser2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresUser2, "", true, true); err == nil { - u.CreateProjectEnvContentHintPostgresUser2 = &createProjectEnvContentHintPostgresUser2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresUser2 + var createProjectEnvContentHintPostgresPrismaURL2 CreateProjectEnvContentHintPostgresPrismaURL2 = CreateProjectEnvContentHintPostgresPrismaURL2{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err == nil { + u.CreateProjectEnvContentHintPostgresPrismaURL2 = &createProjectEnvContentHintPostgresPrismaURL2 + u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPrismaURL2 return nil } - var createProjectEnvContentHintRedisURL2 CreateProjectEnvContentHintRedisURL2 = CreateProjectEnvContentHintRedisURL2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisURL2, "", true, true); err == nil { - u.CreateProjectEnvContentHintRedisURL2 = &createProjectEnvContentHintRedisURL2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintRedisURL2 + var createProjectEnvContentHintPostgresUser2 CreateProjectEnvContentHintPostgresUser2 = CreateProjectEnvContentHintPostgresUser2{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresUser2, "", true, nil); err == nil { + u.CreateProjectEnvContentHintPostgresUser2 = &createProjectEnvContentHintPostgresUser2 + u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresUser2 return nil } var createProjectEnvContentHintPostgresHost2 CreateProjectEnvContentHintPostgresHost2 = CreateProjectEnvContentHintPostgresHost2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresHost2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresHost2, "", true, nil); err == nil { u.CreateProjectEnvContentHintPostgresHost2 = &createProjectEnvContentHintPostgresHost2 u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresHost2 return nil } - var createProjectEnvContentHintPostgresPrismaURL2 CreateProjectEnvContentHintPostgresPrismaURL2 = CreateProjectEnvContentHintPostgresPrismaURL2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPrismaURL2, "", true, true); err == nil { - u.CreateProjectEnvContentHintPostgresPrismaURL2 = &createProjectEnvContentHintPostgresPrismaURL2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPrismaURL2 + var createProjectEnvContentHintPostgresPassword2 CreateProjectEnvContentHintPostgresPassword2 = CreateProjectEnvContentHintPostgresPassword2{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPassword2, "", true, nil); err == nil { + u.CreateProjectEnvContentHintPostgresPassword2 = &createProjectEnvContentHintPostgresPassword2 + u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresPassword2 return nil } var createProjectEnvContentHintPostgresDatabase2 CreateProjectEnvContentHintPostgresDatabase2 = CreateProjectEnvContentHintPostgresDatabase2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresDatabase2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresDatabase2, "", true, nil); err == nil { u.CreateProjectEnvContentHintPostgresDatabase2 = &createProjectEnvContentHintPostgresDatabase2 u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresDatabase2 return nil } var createProjectEnvContentHintPostgresURLNoSsl2 CreateProjectEnvContentHintPostgresURLNoSsl2 = CreateProjectEnvContentHintPostgresURLNoSsl2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNoSsl2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err == nil { u.CreateProjectEnvContentHintPostgresURLNoSsl2 = &createProjectEnvContentHintPostgresURLNoSsl2 u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintPostgresURLNoSsl2 return nil } var createProjectEnvContentHintFlagsConnectionString2 CreateProjectEnvContentHintFlagsConnectionString2 = CreateProjectEnvContentHintFlagsConnectionString2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintFlagsConnectionString2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintFlagsConnectionString2, "", true, nil); err == nil { u.CreateProjectEnvContentHintFlagsConnectionString2 = &createProjectEnvContentHintFlagsConnectionString2 u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintFlagsConnectionString2 return nil } - var createProjectEnvContentHintIntegrationStoreSecret2 CreateProjectEnvContentHintIntegrationStoreSecret2 = CreateProjectEnvContentHintIntegrationStoreSecret2{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintIntegrationStoreSecret2, "", true, true); err == nil { - u.CreateProjectEnvContentHintIntegrationStoreSecret2 = &createProjectEnvContentHintIntegrationStoreSecret2 - u.Type = CreateProjectEnvContentHintUnion2TypeCreateProjectEnvContentHintIntegrationStoreSecret2 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateProjectEnvContentHintUnion2", string(data)) } @@ -1930,6 +2139,17 @@ type CreateProjectEnvInternalContentHint2 struct { EncryptedValue string `json:"encryptedValue"` } +func (c CreateProjectEnvInternalContentHint2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvInternalContentHint2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvInternalContentHint2) GetType() CreatedTypeFlagsSecret2 { if o == nil { return CreatedTypeFlagsSecret2("") @@ -1970,6 +2190,17 @@ type Created2 struct { System *bool `json:"system,omitempty"` } +func (c Created2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Created2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *Created2) GetTarget() *CreatedTargetUnion2 { if o == nil { return nil @@ -2210,14 +2441,14 @@ func CreateCreatedTargetUnion1CreatedTargetEnum2(createdTargetEnum2 CreatedTarge func (u *CreatedTargetUnion1) UnmarshalJSON(data []byte) error { var arrayOfCreatedTargetEnum1 []CreatedTargetEnum1 = []CreatedTargetEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfCreatedTargetEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfCreatedTargetEnum1, "", true, nil); err == nil { u.ArrayOfCreatedTargetEnum1 = arrayOfCreatedTargetEnum1 u.Type = CreatedTargetUnion1TypeArrayOfCreatedTargetEnum1 return nil } var createdTargetEnum2 CreatedTargetEnum2 = CreatedTargetEnum2("") - if err := utils.UnmarshalJSON(data, &createdTargetEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createdTargetEnum2, "", true, nil); err == nil { u.CreatedTargetEnum2 = &createdTargetEnum2 u.Type = CreatedTargetUnion1TypeCreatedTargetEnum2 return nil @@ -2242,10 +2473,10 @@ type CreatedType1 string const ( CreatedType1System CreatedType1 = "system" - CreatedType1Secret CreatedType1 = "secret" CreatedType1Encrypted CreatedType1 = "encrypted" CreatedType1Plain CreatedType1 = "plain" CreatedType1Sensitive CreatedType1 = "sensitive" + CreatedType1Secret CreatedType1 = "secret" ) func (e CreatedType1) ToPointer() *CreatedType1 { @@ -2259,13 +2490,13 @@ func (e *CreatedType1) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = CreatedType1(v) return nil default: @@ -2301,6 +2532,17 @@ type CreateProjectEnvContentHintFlagsConnectionString1 struct { ProjectID string `json:"projectId"` } +func (c CreateProjectEnvContentHintFlagsConnectionString1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintFlagsConnectionString1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintFlagsConnectionString1) GetType() CreatedTypeFlagsConnectionString1 { if o == nil { return CreatedTypeFlagsConnectionString1("") @@ -2346,6 +2588,17 @@ type CreateProjectEnvContentHintIntegrationStoreSecret1 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (c CreateProjectEnvContentHintIntegrationStoreSecret1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintIntegrationStoreSecret1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintIntegrationStoreSecret1) GetType() CreatedTypeIntegrationStoreSecret1 { if o == nil { return CreatedTypeIntegrationStoreSecret1("") @@ -2409,6 +2662,17 @@ type CreateProjectEnvContentHintPostgresURLNoSsl1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresURLNoSsl1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresURLNoSsl1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresURLNoSsl1) GetType() CreatedTypePostgresURLNoSsl1 { if o == nil { return CreatedTypePostgresURLNoSsl1("") @@ -2451,6 +2715,17 @@ type CreateProjectEnvContentHintPostgresDatabase1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresDatabase1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresDatabase1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresDatabase1) GetType() CreatedTypePostgresDatabase1 { if o == nil { return CreatedTypePostgresDatabase1("") @@ -2493,6 +2768,17 @@ type CreateProjectEnvContentHintPostgresPassword1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresPassword1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresPassword1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresPassword1) GetType() CreatedTypePostgresPassword1 { if o == nil { return CreatedTypePostgresPassword1("") @@ -2535,6 +2821,17 @@ type CreateProjectEnvContentHintPostgresHost1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresHost1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresHost1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresHost1) GetType() CreatedTypePostgresHost1 { if o == nil { return CreatedTypePostgresHost1("") @@ -2577,6 +2874,17 @@ type CreateProjectEnvContentHintPostgresUser1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresUser1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresUser1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresUser1) GetType() CreatedTypePostgresUser1 { if o == nil { return CreatedTypePostgresUser1("") @@ -2619,6 +2927,17 @@ type CreateProjectEnvContentHintPostgresPrismaURL1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresPrismaURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresPrismaURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresPrismaURL1) GetType() CreatedTypePostgresPrismaURL1 { if o == nil { return CreatedTypePostgresPrismaURL1("") @@ -2661,6 +2980,17 @@ type CreateProjectEnvContentHintPostgresURLNonPooling1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresURLNonPooling1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresURLNonPooling1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresURLNonPooling1) GetType() CreatedTypePostgresURLNonPooling1 { if o == nil { return CreatedTypePostgresURLNonPooling1("") @@ -2703,6 +3033,17 @@ type CreateProjectEnvContentHintPostgresURL1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintPostgresURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintPostgresURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintPostgresURL1) GetType() CreatedTypePostgresURL1 { if o == nil { return CreatedTypePostgresURL1("") @@ -2745,6 +3086,17 @@ type CreateProjectEnvContentHintBlobReadWriteToken1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintBlobReadWriteToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintBlobReadWriteToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintBlobReadWriteToken1) GetType() CreatedTypeBlobReadWriteToken1 { if o == nil { return CreatedTypeBlobReadWriteToken1("") @@ -2787,6 +3139,17 @@ type CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1) GetType() CreatedTypeRedisRestAPIReadOnlyToken1 { if o == nil { return CreatedTypeRedisRestAPIReadOnlyToken1("") @@ -2829,6 +3192,17 @@ type CreateProjectEnvContentHintRedisRestAPIToken1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintRedisRestAPIToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintRedisRestAPIToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintRedisRestAPIToken1) GetType() CreatedTypeRedisRestAPIToken1 { if o == nil { return CreatedTypeRedisRestAPIToken1("") @@ -2871,6 +3245,17 @@ type CreateProjectEnvContentHintRedisRestAPIURL1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintRedisRestAPIURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintRedisRestAPIURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintRedisRestAPIURL1) GetType() CreatedTypeRedisRestAPIURL1 { if o == nil { return CreatedTypeRedisRestAPIURL1("") @@ -2913,6 +3298,17 @@ type CreateProjectEnvContentHintRedisURL1 struct { StoreID string `json:"storeId"` } +func (c CreateProjectEnvContentHintRedisURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvContentHintRedisURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvContentHintRedisURL1) GetType() CreatedTypeRedisURL1 { if o == nil { return CreatedTypeRedisURL1("") @@ -3104,111 +3500,111 @@ func CreateCreateProjectEnvContentHintUnion1CreateProjectEnvContentHintFlagsConn func (u *CreateProjectEnvContentHintUnion1) UnmarshalJSON(data []byte) error { - var createProjectEnvContentHintPostgresURLNonPooling1 CreateProjectEnvContentHintPostgresURLNonPooling1 = CreateProjectEnvContentHintPostgresURLNonPooling1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNonPooling1, "", true, true); err == nil { - u.CreateProjectEnvContentHintPostgresURLNonPooling1 = &createProjectEnvContentHintPostgresURLNonPooling1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNonPooling1 + var createProjectEnvContentHintIntegrationStoreSecret1 CreateProjectEnvContentHintIntegrationStoreSecret1 = CreateProjectEnvContentHintIntegrationStoreSecret1{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err == nil { + u.CreateProjectEnvContentHintIntegrationStoreSecret1 = &createProjectEnvContentHintIntegrationStoreSecret1 + u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintIntegrationStoreSecret1 return nil } - var createProjectEnvContentHintPostgresPassword1 CreateProjectEnvContentHintPostgresPassword1 = CreateProjectEnvContentHintPostgresPassword1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPassword1, "", true, true); err == nil { - u.CreateProjectEnvContentHintPostgresPassword1 = &createProjectEnvContentHintPostgresPassword1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPassword1 + var createProjectEnvContentHintRedisURL1 CreateProjectEnvContentHintRedisURL1 = CreateProjectEnvContentHintRedisURL1{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisURL1, "", true, nil); err == nil { + u.CreateProjectEnvContentHintRedisURL1 = &createProjectEnvContentHintRedisURL1 + u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisURL1 + return nil + } + + var createProjectEnvContentHintRedisRestAPIURL1 CreateProjectEnvContentHintRedisRestAPIURL1 = CreateProjectEnvContentHintRedisRestAPIURL1{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err == nil { + u.CreateProjectEnvContentHintRedisRestAPIURL1 = &createProjectEnvContentHintRedisRestAPIURL1 + u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIURL1 return nil } var createProjectEnvContentHintRedisRestAPIToken1 CreateProjectEnvContentHintRedisRestAPIToken1 = CreateProjectEnvContentHintRedisRestAPIToken1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err == nil { u.CreateProjectEnvContentHintRedisRestAPIToken1 = &createProjectEnvContentHintRedisRestAPIToken1 u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIToken1 return nil } var createProjectEnvContentHintRedisRestAPIReadOnlyToken1 CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 = CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err == nil { u.CreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 = &createProjectEnvContentHintRedisRestAPIReadOnlyToken1 u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIReadOnlyToken1 return nil } var createProjectEnvContentHintBlobReadWriteToken1 CreateProjectEnvContentHintBlobReadWriteToken1 = CreateProjectEnvContentHintBlobReadWriteToken1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintBlobReadWriteToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err == nil { u.CreateProjectEnvContentHintBlobReadWriteToken1 = &createProjectEnvContentHintBlobReadWriteToken1 u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintBlobReadWriteToken1 return nil } var createProjectEnvContentHintPostgresURL1 CreateProjectEnvContentHintPostgresURL1 = CreateProjectEnvContentHintPostgresURL1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURL1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURL1, "", true, nil); err == nil { u.CreateProjectEnvContentHintPostgresURL1 = &createProjectEnvContentHintPostgresURL1 u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURL1 return nil } - var createProjectEnvContentHintRedisRestAPIURL1 CreateProjectEnvContentHintRedisRestAPIURL1 = CreateProjectEnvContentHintRedisRestAPIURL1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisRestAPIURL1, "", true, true); err == nil { - u.CreateProjectEnvContentHintRedisRestAPIURL1 = &createProjectEnvContentHintRedisRestAPIURL1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisRestAPIURL1 + var createProjectEnvContentHintPostgresURLNonPooling1 CreateProjectEnvContentHintPostgresURLNonPooling1 = CreateProjectEnvContentHintPostgresURLNonPooling1{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err == nil { + u.CreateProjectEnvContentHintPostgresURLNonPooling1 = &createProjectEnvContentHintPostgresURLNonPooling1 + u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNonPooling1 return nil } - var createProjectEnvContentHintPostgresUser1 CreateProjectEnvContentHintPostgresUser1 = CreateProjectEnvContentHintPostgresUser1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresUser1, "", true, true); err == nil { - u.CreateProjectEnvContentHintPostgresUser1 = &createProjectEnvContentHintPostgresUser1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresUser1 + var createProjectEnvContentHintPostgresPrismaURL1 CreateProjectEnvContentHintPostgresPrismaURL1 = CreateProjectEnvContentHintPostgresPrismaURL1{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err == nil { + u.CreateProjectEnvContentHintPostgresPrismaURL1 = &createProjectEnvContentHintPostgresPrismaURL1 + u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPrismaURL1 return nil } - var createProjectEnvContentHintRedisURL1 CreateProjectEnvContentHintRedisURL1 = CreateProjectEnvContentHintRedisURL1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintRedisURL1, "", true, true); err == nil { - u.CreateProjectEnvContentHintRedisURL1 = &createProjectEnvContentHintRedisURL1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintRedisURL1 + var createProjectEnvContentHintPostgresUser1 CreateProjectEnvContentHintPostgresUser1 = CreateProjectEnvContentHintPostgresUser1{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresUser1, "", true, nil); err == nil { + u.CreateProjectEnvContentHintPostgresUser1 = &createProjectEnvContentHintPostgresUser1 + u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresUser1 return nil } var createProjectEnvContentHintPostgresHost1 CreateProjectEnvContentHintPostgresHost1 = CreateProjectEnvContentHintPostgresHost1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresHost1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresHost1, "", true, nil); err == nil { u.CreateProjectEnvContentHintPostgresHost1 = &createProjectEnvContentHintPostgresHost1 u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresHost1 return nil } - var createProjectEnvContentHintPostgresPrismaURL1 CreateProjectEnvContentHintPostgresPrismaURL1 = CreateProjectEnvContentHintPostgresPrismaURL1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPrismaURL1, "", true, true); err == nil { - u.CreateProjectEnvContentHintPostgresPrismaURL1 = &createProjectEnvContentHintPostgresPrismaURL1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPrismaURL1 + var createProjectEnvContentHintPostgresPassword1 CreateProjectEnvContentHintPostgresPassword1 = CreateProjectEnvContentHintPostgresPassword1{} + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresPassword1, "", true, nil); err == nil { + u.CreateProjectEnvContentHintPostgresPassword1 = &createProjectEnvContentHintPostgresPassword1 + u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresPassword1 return nil } var createProjectEnvContentHintPostgresDatabase1 CreateProjectEnvContentHintPostgresDatabase1 = CreateProjectEnvContentHintPostgresDatabase1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresDatabase1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresDatabase1, "", true, nil); err == nil { u.CreateProjectEnvContentHintPostgresDatabase1 = &createProjectEnvContentHintPostgresDatabase1 u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresDatabase1 return nil } var createProjectEnvContentHintPostgresURLNoSsl1 CreateProjectEnvContentHintPostgresURLNoSsl1 = CreateProjectEnvContentHintPostgresURLNoSsl1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNoSsl1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err == nil { u.CreateProjectEnvContentHintPostgresURLNoSsl1 = &createProjectEnvContentHintPostgresURLNoSsl1 u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintPostgresURLNoSsl1 return nil } var createProjectEnvContentHintFlagsConnectionString1 CreateProjectEnvContentHintFlagsConnectionString1 = CreateProjectEnvContentHintFlagsConnectionString1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintFlagsConnectionString1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintFlagsConnectionString1, "", true, nil); err == nil { u.CreateProjectEnvContentHintFlagsConnectionString1 = &createProjectEnvContentHintFlagsConnectionString1 u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintFlagsConnectionString1 return nil } - var createProjectEnvContentHintIntegrationStoreSecret1 CreateProjectEnvContentHintIntegrationStoreSecret1 = CreateProjectEnvContentHintIntegrationStoreSecret1{} - if err := utils.UnmarshalJSON(data, &createProjectEnvContentHintIntegrationStoreSecret1, "", true, true); err == nil { - u.CreateProjectEnvContentHintIntegrationStoreSecret1 = &createProjectEnvContentHintIntegrationStoreSecret1 - u.Type = CreateProjectEnvContentHintUnion1TypeCreateProjectEnvContentHintIntegrationStoreSecret1 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateProjectEnvContentHintUnion1", string(data)) } @@ -3306,6 +3702,17 @@ type CreateProjectEnvInternalContentHint1 struct { EncryptedValue string `json:"encryptedValue"` } +func (c CreateProjectEnvInternalContentHint1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateProjectEnvInternalContentHint1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *CreateProjectEnvInternalContentHint1) GetType() CreatedTypeFlagsSecret1 { if o == nil { return CreatedTypeFlagsSecret1("") @@ -3346,6 +3753,17 @@ type Created1 struct { System *bool `json:"system,omitempty"` } +func (c Created1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *Created1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *Created1) GetTarget() *CreatedTargetUnion1 { if o == nil { return nil @@ -3528,14 +3946,14 @@ func CreateCreatedUnionArrayOfCreated2(arrayOfCreated2 []Created2) CreatedUnion func (u *CreatedUnion) UnmarshalJSON(data []byte) error { var created1 Created1 = Created1{} - if err := utils.UnmarshalJSON(data, &created1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &created1, "", true, nil); err == nil { u.Created1 = &created1 u.Type = CreatedUnionTypeCreated1 return nil } var arrayOfCreated2 []Created2 = []Created2{} - if err := utils.UnmarshalJSON(data, &arrayOfCreated2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfCreated2, "", true, nil); err == nil { u.ArrayOfCreated2 = arrayOfCreated2 u.Type = CreatedUnionTypeArrayOfCreated2 return nil @@ -3620,14 +4038,14 @@ func CreateCreateProjectEnvValueUnionArrayOfValueEnum(arrayOfValueEnum []ValueEn func (u *CreateProjectEnvValueUnion) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = CreateProjectEnvValueUnionTypeStr return nil } var arrayOfValueEnum []ValueEnum = []ValueEnum{} - if err := utils.UnmarshalJSON(data, &arrayOfValueEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfValueEnum, "", true, nil); err == nil { u.ArrayOfValueEnum = arrayOfValueEnum u.Type = CreateProjectEnvValueUnionTypeArrayOfValueEnum return nil @@ -3741,14 +4159,14 @@ func CreateErrorTargetUnionTargetErrorEnum2(targetErrorEnum2 TargetErrorEnum2) E func (u *ErrorTargetUnion) UnmarshalJSON(data []byte) error { var arrayOfTargetErrorEnum1 []TargetErrorEnum1 = []TargetErrorEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfTargetErrorEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfTargetErrorEnum1, "", true, nil); err == nil { u.ArrayOfTargetErrorEnum1 = arrayOfTargetErrorEnum1 u.Type = ErrorTargetUnionTypeArrayOfTargetErrorEnum1 return nil } var targetErrorEnum2 TargetErrorEnum2 = TargetErrorEnum2("") - if err := utils.UnmarshalJSON(data, &targetErrorEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &targetErrorEnum2, "", true, nil); err == nil { u.TargetErrorEnum2 = &targetErrorEnum2 u.Type = ErrorTargetUnionTypeTargetErrorEnum2 return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createrecord.go b/src/__tests__/mockserver/internal/sdk/models/operations/createrecord.go index 55749147..aba5e563 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createrecord.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createrecord.go @@ -67,6 +67,17 @@ type CreateRecordHTTPS struct { Params *string `json:"params,omitempty"` } +func (c CreateRecordHTTPS) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordHTTPS) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"priority", "target"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordHTTPS) GetPriority() *float64 { if o == nil { return nil @@ -98,6 +109,17 @@ type CreateRecordRequestBody10 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody10) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody10) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "https"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody10) GetType() CreateRecordType10 { if o == nil { return CreateRecordType10("") @@ -190,6 +212,17 @@ type CreateRecordRequestBody9 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody9) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody9) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "type"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody9) GetName() string { if o == nil { return "" @@ -287,6 +320,17 @@ type CreateRecordRequestBody8 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "value"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody8) GetType() CreateRecordType8 { if o == nil { return CreateRecordType8("") @@ -373,6 +417,17 @@ type CreateRecordSrv struct { Target string `json:"target"` } +func (c CreateRecordSrv) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordSrv) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"priority", "weight", "port", "target"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordSrv) GetPriority() *float64 { if o == nil { return nil @@ -411,6 +466,17 @@ type CreateRecordRequestBody7 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"type", "srv"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody7) GetType() CreateRecordType7 { if o == nil { return CreateRecordType7("") @@ -504,6 +570,17 @@ type CreateRecordRequestBody6 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "type", "value", "mxPriority"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody6) GetName() string { if o == nil { return "" @@ -610,6 +687,17 @@ type CreateRecordRequestBody5 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "type"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody5) GetName() string { if o == nil { return "" @@ -709,6 +797,17 @@ type CreateRecordRequestBody4 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "type", "value"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody4) GetName() string { if o == nil { return "" @@ -808,6 +907,17 @@ type CreateRecordRequestBody3 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "type", "value"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody3) GetName() string { if o == nil { return "" @@ -907,6 +1017,17 @@ type CreateRecordRequestBody2 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "type", "value"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody2) GetName() string { if o == nil { return "" @@ -1006,6 +1127,17 @@ type CreateRecordRequestBody1 struct { Comment *string `json:"comment,omitempty"` } +func (c CreateRecordRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "type", "value"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordRequestBody1) GetName() string { if o == nil { return "" @@ -1163,73 +1295,73 @@ func CreateCreateRecordRequestBodyCreateRecordRequestBody10(createRecordRequestB func (u *CreateRecordRequestBody) UnmarshalJSON(data []byte) error { - var createRecordRequestBody7 CreateRecordRequestBody7 = CreateRecordRequestBody7{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody7, "", true, true); err == nil { - u.CreateRecordRequestBody7 = &createRecordRequestBody7 - u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody7 - return nil - } - - var createRecordRequestBody8 CreateRecordRequestBody8 = CreateRecordRequestBody8{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody8, "", true, true); err == nil { - u.CreateRecordRequestBody8 = &createRecordRequestBody8 - u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody8 - return nil - } - - var createRecordRequestBody10 CreateRecordRequestBody10 = CreateRecordRequestBody10{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody10, "", true, true); err == nil { - u.CreateRecordRequestBody10 = &createRecordRequestBody10 - u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody10 + var createRecordRequestBody6 CreateRecordRequestBody6 = CreateRecordRequestBody6{} + if err := utils.UnmarshalJSON(data, &createRecordRequestBody6, "", true, nil); err == nil { + u.CreateRecordRequestBody6 = &createRecordRequestBody6 + u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody6 return nil } var createRecordRequestBody1 CreateRecordRequestBody1 = CreateRecordRequestBody1{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createRecordRequestBody1, "", true, nil); err == nil { u.CreateRecordRequestBody1 = &createRecordRequestBody1 u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody1 return nil } var createRecordRequestBody2 CreateRecordRequestBody2 = CreateRecordRequestBody2{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createRecordRequestBody2, "", true, nil); err == nil { u.CreateRecordRequestBody2 = &createRecordRequestBody2 u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody2 return nil } var createRecordRequestBody3 CreateRecordRequestBody3 = CreateRecordRequestBody3{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createRecordRequestBody3, "", true, nil); err == nil { u.CreateRecordRequestBody3 = &createRecordRequestBody3 u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody3 return nil } var createRecordRequestBody4 CreateRecordRequestBody4 = CreateRecordRequestBody4{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody4, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createRecordRequestBody4, "", true, nil); err == nil { u.CreateRecordRequestBody4 = &createRecordRequestBody4 u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody4 return nil } var createRecordRequestBody5 CreateRecordRequestBody5 = CreateRecordRequestBody5{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody5, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createRecordRequestBody5, "", true, nil); err == nil { u.CreateRecordRequestBody5 = &createRecordRequestBody5 u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody5 return nil } + var createRecordRequestBody7 CreateRecordRequestBody7 = CreateRecordRequestBody7{} + if err := utils.UnmarshalJSON(data, &createRecordRequestBody7, "", true, nil); err == nil { + u.CreateRecordRequestBody7 = &createRecordRequestBody7 + u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody7 + return nil + } + + var createRecordRequestBody8 CreateRecordRequestBody8 = CreateRecordRequestBody8{} + if err := utils.UnmarshalJSON(data, &createRecordRequestBody8, "", true, nil); err == nil { + u.CreateRecordRequestBody8 = &createRecordRequestBody8 + u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody8 + return nil + } + var createRecordRequestBody9 CreateRecordRequestBody9 = CreateRecordRequestBody9{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody9, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createRecordRequestBody9, "", true, nil); err == nil { u.CreateRecordRequestBody9 = &createRecordRequestBody9 u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody9 return nil } - var createRecordRequestBody6 CreateRecordRequestBody6 = CreateRecordRequestBody6{} - if err := utils.UnmarshalJSON(data, &createRecordRequestBody6, "", true, true); err == nil { - u.CreateRecordRequestBody6 = &createRecordRequestBody6 - u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody6 + var createRecordRequestBody10 CreateRecordRequestBody10 = CreateRecordRequestBody10{} + if err := utils.UnmarshalJSON(data, &createRecordRequestBody10, "", true, nil); err == nil { + u.CreateRecordRequestBody10 = &createRecordRequestBody10 + u.Type = CreateRecordRequestBodyTypeCreateRecordRequestBody10 return nil } @@ -1323,6 +1455,17 @@ type CreateRecordResponseBody2 struct { UID string `json:"uid"` } +func (c CreateRecordResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"uid"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordResponseBody2) GetUID() string { if o == nil { return "" @@ -1335,6 +1478,17 @@ type CreateRecordResponseBody1 struct { Updated float64 `json:"updated"` } +func (c CreateRecordResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CreateRecordResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"uid", "updated"}); err != nil { + return err + } + return nil +} + func (o *CreateRecordResponseBody1) GetUID() string { if o == nil { return "" @@ -1384,20 +1538,20 @@ func CreateCreateRecordResponseBodyCreateRecordResponseBody2(createRecordRespons func (u *CreateRecordResponseBody) UnmarshalJSON(data []byte) error { - var createRecordResponseBody2 CreateRecordResponseBody2 = CreateRecordResponseBody2{} - if err := utils.UnmarshalJSON(data, &createRecordResponseBody2, "", true, true); err == nil { - u.CreateRecordResponseBody2 = &createRecordResponseBody2 - u.Type = CreateRecordResponseBodyTypeCreateRecordResponseBody2 - return nil - } - var createRecordResponseBody1 CreateRecordResponseBody1 = CreateRecordResponseBody1{} - if err := utils.UnmarshalJSON(data, &createRecordResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &createRecordResponseBody1, "", true, nil); err == nil { u.CreateRecordResponseBody1 = &createRecordResponseBody1 u.Type = CreateRecordResponseBodyTypeCreateRecordResponseBody1 return nil } + var createRecordResponseBody2 CreateRecordResponseBody2 = CreateRecordResponseBody2{} + if err := utils.UnmarshalJSON(data, &createRecordResponseBody2, "", true, nil); err == nil { + u.CreateRecordResponseBody2 = &createRecordResponseBody2 + u.Type = CreateRecordResponseBodyTypeCreateRecordResponseBody2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateRecordResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createwebhook.go b/src/__tests__/mockserver/internal/sdk/models/operations/createwebhook.go index 51d58631..0c71eb11 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createwebhook.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createwebhook.go @@ -27,6 +27,7 @@ const ( CreateWebhookEventRequestDomainRenewalFailed CreateWebhookEventRequest = "domain.renewal.failed" CreateWebhookEventRequestDomainAutoRenewChanged CreateWebhookEventRequest = "domain.auto-renew.changed" CreateWebhookEventRequestDeploymentCreated CreateWebhookEventRequest = "deployment.created" + CreateWebhookEventRequestDeploymentCleanup CreateWebhookEventRequest = "deployment.cleanup" CreateWebhookEventRequestDeploymentError CreateWebhookEventRequest = "deployment.error" CreateWebhookEventRequestDeploymentCanceled CreateWebhookEventRequest = "deployment.canceled" CreateWebhookEventRequestDeploymentSucceeded CreateWebhookEventRequest = "deployment.succeeded" @@ -79,6 +80,7 @@ const ( CreateWebhookEventRequestMarketplaceInvoiceNotpaid CreateWebhookEventRequest = "marketplace.invoice.notpaid" CreateWebhookEventRequestMarketplaceInvoiceRefunded CreateWebhookEventRequest = "marketplace.invoice.refunded" CreateWebhookEventRequestObservabilityAnomaly CreateWebhookEventRequest = "observability.anomaly" + CreateWebhookEventRequestObservabilityAnomalyError CreateWebhookEventRequest = "observability.anomaly-error" CreateWebhookEventRequestTestWebhook CreateWebhookEventRequest = "test-webhook" ) @@ -123,6 +125,8 @@ func (e *CreateWebhookEventRequest) UnmarshalJSON(data []byte) error { fallthrough case "deployment.created": fallthrough + case "deployment.cleanup": + fallthrough case "deployment.error": fallthrough case "deployment.canceled": @@ -227,6 +231,8 @@ func (e *CreateWebhookEventRequest) UnmarshalJSON(data []byte) error { fallthrough case "observability.anomaly": fallthrough + case "observability.anomaly-error": + fallthrough case "test-webhook": *e = CreateWebhookEventRequest(v) return nil @@ -311,6 +317,7 @@ const ( CreateWebhookEventResponseDomainRenewalFailed CreateWebhookEventResponse = "domain.renewal.failed" CreateWebhookEventResponseDomainAutoRenewChanged CreateWebhookEventResponse = "domain.auto-renew.changed" CreateWebhookEventResponseDeploymentCreated CreateWebhookEventResponse = "deployment.created" + CreateWebhookEventResponseDeploymentCleanup CreateWebhookEventResponse = "deployment.cleanup" CreateWebhookEventResponseDeploymentError CreateWebhookEventResponse = "deployment.error" CreateWebhookEventResponseDeploymentCanceled CreateWebhookEventResponse = "deployment.canceled" CreateWebhookEventResponseDeploymentSucceeded CreateWebhookEventResponse = "deployment.succeeded" @@ -363,6 +370,7 @@ const ( CreateWebhookEventResponseMarketplaceInvoiceNotpaid CreateWebhookEventResponse = "marketplace.invoice.notpaid" CreateWebhookEventResponseMarketplaceInvoiceRefunded CreateWebhookEventResponse = "marketplace.invoice.refunded" CreateWebhookEventResponseObservabilityAnomaly CreateWebhookEventResponse = "observability.anomaly" + CreateWebhookEventResponseObservabilityAnomalyError CreateWebhookEventResponse = "observability.anomaly-error" CreateWebhookEventResponseTestWebhook CreateWebhookEventResponse = "test-webhook" ) @@ -407,6 +415,8 @@ func (e *CreateWebhookEventResponse) UnmarshalJSON(data []byte) error { fallthrough case "deployment.created": fallthrough + case "deployment.cleanup": + fallthrough case "deployment.error": fallthrough case "deployment.canceled": @@ -511,6 +521,8 @@ func (e *CreateWebhookEventResponse) UnmarshalJSON(data []byte) error { fallthrough case "observability.anomaly": fallthrough + case "observability.anomaly-error": + fallthrough case "test-webhook": *e = CreateWebhookEventResponse(v) 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 e2f1a24d..d78df29e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/editprojectenv.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/editprojectenv.go @@ -191,6 +191,17 @@ func (o *EditProjectEnvRequest) GetRequestBody() EditProjectEnvRequestBody { type EditProjectEnvResponseBody2 struct { } +func (e EditProjectEnvResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { + return err + } + return nil +} + type EditProjectEnvResponseBodyTargetEnum string const ( @@ -255,14 +266,14 @@ func CreateEditProjectEnvTargetUnionEditProjectEnvResponseBodyTargetEnum(editPro func (u *EditProjectEnvTargetUnion) UnmarshalJSON(data []byte) error { var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = EditProjectEnvTargetUnionTypeArrayOfStr return nil } var editProjectEnvResponseBodyTargetEnum EditProjectEnvResponseBodyTargetEnum = EditProjectEnvResponseBodyTargetEnum("") - if err := utils.UnmarshalJSON(data, &editProjectEnvResponseBodyTargetEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvResponseBodyTargetEnum, "", true, nil); err == nil { u.EditProjectEnvResponseBodyTargetEnum = &editProjectEnvResponseBodyTargetEnum u.Type = EditProjectEnvTargetUnionTypeEditProjectEnvResponseBodyTargetEnum return nil @@ -287,10 +298,10 @@ type EditProjectEnvResponseBodyType string const ( EditProjectEnvResponseBodyTypeSystem EditProjectEnvResponseBodyType = "system" - EditProjectEnvResponseBodyTypeSecret EditProjectEnvResponseBodyType = "secret" EditProjectEnvResponseBodyTypeEncrypted EditProjectEnvResponseBodyType = "encrypted" EditProjectEnvResponseBodyTypePlain EditProjectEnvResponseBodyType = "plain" EditProjectEnvResponseBodyTypeSensitive EditProjectEnvResponseBodyType = "sensitive" + EditProjectEnvResponseBodyTypeSecret EditProjectEnvResponseBodyType = "secret" ) func (e EditProjectEnvResponseBodyType) ToPointer() *EditProjectEnvResponseBodyType { @@ -304,13 +315,13 @@ func (e *EditProjectEnvResponseBodyType) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = EditProjectEnvResponseBodyType(v) return nil default: @@ -346,6 +357,17 @@ type EditProjectEnvContentHintFlagsConnectionString struct { ProjectID string `json:"projectId"` } +func (e EditProjectEnvContentHintFlagsConnectionString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintFlagsConnectionString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintFlagsConnectionString) GetType() EditProjectEnvTypeFlagsConnectionString { if o == nil { return EditProjectEnvTypeFlagsConnectionString("") @@ -391,6 +413,17 @@ type EditProjectEnvContentHintIntegrationStoreSecret struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (e EditProjectEnvContentHintIntegrationStoreSecret) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintIntegrationStoreSecret) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintIntegrationStoreSecret) GetType() EditProjectEnvTypeIntegrationStoreSecret { if o == nil { return EditProjectEnvTypeIntegrationStoreSecret("") @@ -454,6 +487,17 @@ type EditProjectEnvContentHintPostgresURLNoSsl struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintPostgresURLNoSsl) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintPostgresURLNoSsl) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintPostgresURLNoSsl) GetType() EditProjectEnvTypePostgresURLNoSsl { if o == nil { return EditProjectEnvTypePostgresURLNoSsl("") @@ -496,6 +540,17 @@ type EditProjectEnvContentHintPostgresDatabase struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintPostgresDatabase) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintPostgresDatabase) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintPostgresDatabase) GetType() EditProjectEnvTypePostgresDatabase { if o == nil { return EditProjectEnvTypePostgresDatabase("") @@ -538,6 +593,17 @@ type EditProjectEnvContentHintPostgresPassword struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintPostgresPassword) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintPostgresPassword) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintPostgresPassword) GetType() EditProjectEnvTypePostgresPassword { if o == nil { return EditProjectEnvTypePostgresPassword("") @@ -580,6 +646,17 @@ type EditProjectEnvContentHintPostgresHost struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintPostgresHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintPostgresHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintPostgresHost) GetType() EditProjectEnvTypePostgresHost { if o == nil { return EditProjectEnvTypePostgresHost("") @@ -622,6 +699,17 @@ type EditProjectEnvContentHintPostgresUser struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintPostgresUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintPostgresUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintPostgresUser) GetType() EditProjectEnvTypePostgresUser { if o == nil { return EditProjectEnvTypePostgresUser("") @@ -664,6 +752,17 @@ type EditProjectEnvContentHintPostgresPrismaURL struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintPostgresPrismaURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintPostgresPrismaURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintPostgresPrismaURL) GetType() EditProjectEnvTypePostgresPrismaURL { if o == nil { return EditProjectEnvTypePostgresPrismaURL("") @@ -706,6 +805,17 @@ type EditProjectEnvContentHintPostgresURLNonPooling struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintPostgresURLNonPooling) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintPostgresURLNonPooling) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintPostgresURLNonPooling) GetType() EditProjectEnvTypePostgresURLNonPooling { if o == nil { return EditProjectEnvTypePostgresURLNonPooling("") @@ -748,6 +858,17 @@ type EditProjectEnvContentHintPostgresURL struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintPostgresURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintPostgresURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintPostgresURL) GetType() EditProjectEnvTypePostgresURL { if o == nil { return EditProjectEnvTypePostgresURL("") @@ -790,6 +911,17 @@ type EditProjectEnvContentHintBlobReadWriteToken struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintBlobReadWriteToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintBlobReadWriteToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintBlobReadWriteToken) GetType() EditProjectEnvTypeBlobReadWriteToken { if o == nil { return EditProjectEnvTypeBlobReadWriteToken("") @@ -832,6 +964,17 @@ type EditProjectEnvContentHintRedisRestAPIReadOnlyToken struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintRedisRestAPIReadOnlyToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintRedisRestAPIReadOnlyToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintRedisRestAPIReadOnlyToken) GetType() EditProjectEnvTypeRedisRestAPIReadOnlyToken { if o == nil { return EditProjectEnvTypeRedisRestAPIReadOnlyToken("") @@ -874,6 +1017,17 @@ type EditProjectEnvContentHintRedisRestAPIToken struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintRedisRestAPIToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintRedisRestAPIToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintRedisRestAPIToken) GetType() EditProjectEnvTypeRedisRestAPIToken { if o == nil { return EditProjectEnvTypeRedisRestAPIToken("") @@ -916,6 +1070,17 @@ type EditProjectEnvContentHintRedisRestAPIURL struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintRedisRestAPIURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintRedisRestAPIURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintRedisRestAPIURL) GetType() EditProjectEnvTypeRedisRestAPIURL { if o == nil { return EditProjectEnvTypeRedisRestAPIURL("") @@ -958,6 +1123,17 @@ type EditProjectEnvContentHintRedisURL struct { StoreID string `json:"storeId"` } +func (e EditProjectEnvContentHintRedisURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvContentHintRedisURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvContentHintRedisURL) GetType() EditProjectEnvTypeRedisURL { if o == nil { return EditProjectEnvTypeRedisURL("") @@ -1149,111 +1325,111 @@ func CreateEditProjectEnvContentHintUnionEditProjectEnvContentHintFlagsConnectio func (u *EditProjectEnvContentHintUnion) UnmarshalJSON(data []byte) error { - var editProjectEnvContentHintPostgresURLNonPooling EditProjectEnvContentHintPostgresURLNonPooling = EditProjectEnvContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURLNonPooling, "", true, true); err == nil { - u.EditProjectEnvContentHintPostgresURLNonPooling = &editProjectEnvContentHintPostgresURLNonPooling - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNonPooling + var editProjectEnvContentHintIntegrationStoreSecret EditProjectEnvContentHintIntegrationStoreSecret = EditProjectEnvContentHintIntegrationStoreSecret{} + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintIntegrationStoreSecret, "", true, nil); err == nil { + u.EditProjectEnvContentHintIntegrationStoreSecret = &editProjectEnvContentHintIntegrationStoreSecret + u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintIntegrationStoreSecret return nil } - var editProjectEnvContentHintPostgresPassword EditProjectEnvContentHintPostgresPassword = EditProjectEnvContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresPassword, "", true, true); err == nil { - u.EditProjectEnvContentHintPostgresPassword = &editProjectEnvContentHintPostgresPassword - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPassword + var editProjectEnvContentHintRedisURL EditProjectEnvContentHintRedisURL = EditProjectEnvContentHintRedisURL{} + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisURL, "", true, nil); err == nil { + u.EditProjectEnvContentHintRedisURL = &editProjectEnvContentHintRedisURL + u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisURL + return nil + } + + var editProjectEnvContentHintRedisRestAPIURL EditProjectEnvContentHintRedisRestAPIURL = EditProjectEnvContentHintRedisRestAPIURL{} + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIURL, "", true, nil); err == nil { + u.EditProjectEnvContentHintRedisRestAPIURL = &editProjectEnvContentHintRedisRestAPIURL + u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIURL return nil } var editProjectEnvContentHintRedisRestAPIToken EditProjectEnvContentHintRedisRestAPIToken = EditProjectEnvContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIToken, "", true, nil); err == nil { u.EditProjectEnvContentHintRedisRestAPIToken = &editProjectEnvContentHintRedisRestAPIToken u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIToken return nil } var editProjectEnvContentHintRedisRestAPIReadOnlyToken EditProjectEnvContentHintRedisRestAPIReadOnlyToken = EditProjectEnvContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIReadOnlyToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { u.EditProjectEnvContentHintRedisRestAPIReadOnlyToken = &editProjectEnvContentHintRedisRestAPIReadOnlyToken u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIReadOnlyToken return nil } var editProjectEnvContentHintBlobReadWriteToken EditProjectEnvContentHintBlobReadWriteToken = EditProjectEnvContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintBlobReadWriteToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintBlobReadWriteToken, "", true, nil); err == nil { u.EditProjectEnvContentHintBlobReadWriteToken = &editProjectEnvContentHintBlobReadWriteToken u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintBlobReadWriteToken return nil } var editProjectEnvContentHintPostgresURL EditProjectEnvContentHintPostgresURL = EditProjectEnvContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURL, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURL, "", true, nil); err == nil { u.EditProjectEnvContentHintPostgresURL = &editProjectEnvContentHintPostgresURL u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURL return nil } - var editProjectEnvContentHintRedisRestAPIURL EditProjectEnvContentHintRedisRestAPIURL = EditProjectEnvContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisRestAPIURL, "", true, true); err == nil { - u.EditProjectEnvContentHintRedisRestAPIURL = &editProjectEnvContentHintRedisRestAPIURL - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisRestAPIURL + var editProjectEnvContentHintPostgresURLNonPooling EditProjectEnvContentHintPostgresURLNonPooling = EditProjectEnvContentHintPostgresURLNonPooling{} + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURLNonPooling, "", true, nil); err == nil { + u.EditProjectEnvContentHintPostgresURLNonPooling = &editProjectEnvContentHintPostgresURLNonPooling + u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNonPooling return nil } - var editProjectEnvContentHintPostgresUser EditProjectEnvContentHintPostgresUser = EditProjectEnvContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresUser, "", true, true); err == nil { - u.EditProjectEnvContentHintPostgresUser = &editProjectEnvContentHintPostgresUser - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresUser + var editProjectEnvContentHintPostgresPrismaURL EditProjectEnvContentHintPostgresPrismaURL = EditProjectEnvContentHintPostgresPrismaURL{} + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresPrismaURL, "", true, nil); err == nil { + u.EditProjectEnvContentHintPostgresPrismaURL = &editProjectEnvContentHintPostgresPrismaURL + u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPrismaURL return nil } - var editProjectEnvContentHintRedisURL EditProjectEnvContentHintRedisURL = EditProjectEnvContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintRedisURL, "", true, true); err == nil { - u.EditProjectEnvContentHintRedisURL = &editProjectEnvContentHintRedisURL - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintRedisURL + var editProjectEnvContentHintPostgresUser EditProjectEnvContentHintPostgresUser = EditProjectEnvContentHintPostgresUser{} + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresUser, "", true, nil); err == nil { + u.EditProjectEnvContentHintPostgresUser = &editProjectEnvContentHintPostgresUser + u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresUser return nil } var editProjectEnvContentHintPostgresHost EditProjectEnvContentHintPostgresHost = EditProjectEnvContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresHost, "", true, nil); err == nil { u.EditProjectEnvContentHintPostgresHost = &editProjectEnvContentHintPostgresHost u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresHost return nil } - var editProjectEnvContentHintPostgresPrismaURL EditProjectEnvContentHintPostgresPrismaURL = EditProjectEnvContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresPrismaURL, "", true, true); err == nil { - u.EditProjectEnvContentHintPostgresPrismaURL = &editProjectEnvContentHintPostgresPrismaURL - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPrismaURL + var editProjectEnvContentHintPostgresPassword EditProjectEnvContentHintPostgresPassword = EditProjectEnvContentHintPostgresPassword{} + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresPassword, "", true, nil); err == nil { + u.EditProjectEnvContentHintPostgresPassword = &editProjectEnvContentHintPostgresPassword + u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresPassword return nil } var editProjectEnvContentHintPostgresDatabase EditProjectEnvContentHintPostgresDatabase = EditProjectEnvContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresDatabase, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresDatabase, "", true, nil); err == nil { u.EditProjectEnvContentHintPostgresDatabase = &editProjectEnvContentHintPostgresDatabase u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresDatabase return nil } var editProjectEnvContentHintPostgresURLNoSsl EditProjectEnvContentHintPostgresURLNoSsl = EditProjectEnvContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURLNoSsl, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintPostgresURLNoSsl, "", true, nil); err == nil { u.EditProjectEnvContentHintPostgresURLNoSsl = &editProjectEnvContentHintPostgresURLNoSsl u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintPostgresURLNoSsl return nil } var editProjectEnvContentHintFlagsConnectionString EditProjectEnvContentHintFlagsConnectionString = EditProjectEnvContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintFlagsConnectionString, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintFlagsConnectionString, "", true, nil); err == nil { u.EditProjectEnvContentHintFlagsConnectionString = &editProjectEnvContentHintFlagsConnectionString u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintFlagsConnectionString return nil } - var editProjectEnvContentHintIntegrationStoreSecret EditProjectEnvContentHintIntegrationStoreSecret = EditProjectEnvContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &editProjectEnvContentHintIntegrationStoreSecret, "", true, true); err == nil { - u.EditProjectEnvContentHintIntegrationStoreSecret = &editProjectEnvContentHintIntegrationStoreSecret - u.Type = EditProjectEnvContentHintUnionTypeEditProjectEnvContentHintIntegrationStoreSecret - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for EditProjectEnvContentHintUnion", string(data)) } @@ -1351,6 +1527,17 @@ type EditProjectEnvInternalContentHint struct { EncryptedValue string `json:"encryptedValue"` } +func (e EditProjectEnvInternalContentHint) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvInternalContentHint) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvInternalContentHint) GetType() EditProjectEnvTypeFlagsSecret { if o == nil { return EditProjectEnvTypeFlagsSecret("") @@ -1389,6 +1576,17 @@ type EditProjectEnvResponseBody1 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (e EditProjectEnvResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *EditProjectEnvResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *EditProjectEnvResponseBody1) GetTarget() *EditProjectEnvTargetUnion { if o == nil { return nil @@ -1557,20 +1755,20 @@ func CreateEditProjectEnvResponseBodyEditProjectEnvResponseBody2(editProjectEnvR func (u *EditProjectEnvResponseBody) UnmarshalJSON(data []byte) error { - var editProjectEnvResponseBody2 EditProjectEnvResponseBody2 = EditProjectEnvResponseBody2{} - if err := utils.UnmarshalJSON(data, &editProjectEnvResponseBody2, "", true, true); err == nil { - u.EditProjectEnvResponseBody2 = &editProjectEnvResponseBody2 - u.Type = EditProjectEnvResponseBodyUnionTypeEditProjectEnvResponseBody2 - return nil - } - var editProjectEnvResponseBody1 EditProjectEnvResponseBody1 = EditProjectEnvResponseBody1{} - if err := utils.UnmarshalJSON(data, &editProjectEnvResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &editProjectEnvResponseBody1, "", true, nil); err == nil { u.EditProjectEnvResponseBody1 = &editProjectEnvResponseBody1 u.Type = EditProjectEnvResponseBodyUnionTypeEditProjectEnvResponseBody1 return nil } + var editProjectEnvResponseBody2 EditProjectEnvResponseBody2 = EditProjectEnvResponseBody2{} + if err := utils.UnmarshalJSON(data, &editProjectEnvResponseBody2, "", true, nil); err == nil { + u.EditProjectEnvResponseBody2 = &editProjectEnvResponseBody2 + u.Type = EditProjectEnvResponseBodyUnionTypeEditProjectEnvResponseBody2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EditProjectEnvResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/filterprojectenvs.go b/src/__tests__/mockserver/internal/sdk/models/operations/filterprojectenvs.go index e27e7fc7..90f364e7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/filterprojectenvs.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/filterprojectenvs.go @@ -207,14 +207,14 @@ func CreateFilterProjectEnvsEnvTargetUnion2FilterProjectEnvsTargetEnvEnum4(filte func (u *FilterProjectEnvsEnvTargetUnion2) UnmarshalJSON(data []byte) error { var arrayOfFilterProjectEnvsTargetEnvEnum3 []FilterProjectEnvsTargetEnvEnum3 = []FilterProjectEnvsTargetEnvEnum3{} - if err := utils.UnmarshalJSON(data, &arrayOfFilterProjectEnvsTargetEnvEnum3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfFilterProjectEnvsTargetEnvEnum3, "", true, nil); err == nil { u.ArrayOfFilterProjectEnvsTargetEnvEnum3 = arrayOfFilterProjectEnvsTargetEnvEnum3 u.Type = FilterProjectEnvsEnvTargetUnion2TypeArrayOfFilterProjectEnvsTargetEnvEnum3 return nil } var filterProjectEnvsTargetEnvEnum4 FilterProjectEnvsTargetEnvEnum4 = FilterProjectEnvsTargetEnvEnum4("") - if err := utils.UnmarshalJSON(data, &filterProjectEnvsTargetEnvEnum4, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsTargetEnvEnum4, "", true, nil); err == nil { u.FilterProjectEnvsTargetEnvEnum4 = &filterProjectEnvsTargetEnvEnum4 u.Type = FilterProjectEnvsEnvTargetUnion2TypeFilterProjectEnvsTargetEnvEnum4 return nil @@ -239,10 +239,10 @@ type FilterProjectEnvsEnvType2 string const ( FilterProjectEnvsEnvType2System FilterProjectEnvsEnvType2 = "system" - FilterProjectEnvsEnvType2Secret FilterProjectEnvsEnvType2 = "secret" FilterProjectEnvsEnvType2Encrypted FilterProjectEnvsEnvType2 = "encrypted" FilterProjectEnvsEnvType2Plain FilterProjectEnvsEnvType2 = "plain" FilterProjectEnvsEnvType2Sensitive FilterProjectEnvsEnvType2 = "sensitive" + FilterProjectEnvsEnvType2Secret FilterProjectEnvsEnvType2 = "secret" ) func (e FilterProjectEnvsEnvType2) ToPointer() *FilterProjectEnvsEnvType2 { @@ -256,13 +256,13 @@ func (e *FilterProjectEnvsEnvType2) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = FilterProjectEnvsEnvType2(v) return nil default: @@ -298,6 +298,17 @@ type FilterProjectEnvsContentHintEnvFlagsConnectionString2 struct { ProjectID string `json:"projectId"` } +func (f FilterProjectEnvsContentHintEnvFlagsConnectionString2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvFlagsConnectionString2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvFlagsConnectionString2) GetType() FilterProjectEnvsEnvTypeFlagsConnectionString2 { if o == nil { return FilterProjectEnvsEnvTypeFlagsConnectionString2("") @@ -343,6 +354,17 @@ type FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (f FilterProjectEnvsContentHintEnvIntegrationStoreSecret2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvIntegrationStoreSecret2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvIntegrationStoreSecret2) GetType() FilterProjectEnvsEnvTypeIntegrationStoreSecret2 { if o == nil { return FilterProjectEnvsEnvTypeIntegrationStoreSecret2("") @@ -406,6 +428,17 @@ type FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresURLNoSsl2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresURLNoSsl2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresURLNoSsl2) GetType() FilterProjectEnvsEnvTypePostgresURLNoSsl2 { if o == nil { return FilterProjectEnvsEnvTypePostgresURLNoSsl2("") @@ -448,6 +481,17 @@ type FilterProjectEnvsContentHintEnvPostgresDatabase2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresDatabase2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresDatabase2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresDatabase2) GetType() FilterProjectEnvsEnvTypePostgresDatabase2 { if o == nil { return FilterProjectEnvsEnvTypePostgresDatabase2("") @@ -490,6 +534,17 @@ type FilterProjectEnvsContentHintEnvPostgresPassword2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresPassword2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresPassword2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresPassword2) GetType() FilterProjectEnvsEnvTypePostgresPassword2 { if o == nil { return FilterProjectEnvsEnvTypePostgresPassword2("") @@ -532,6 +587,17 @@ type FilterProjectEnvsContentHintEnvPostgresHost2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresHost2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresHost2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresHost2) GetType() FilterProjectEnvsEnvTypePostgresHost2 { if o == nil { return FilterProjectEnvsEnvTypePostgresHost2("") @@ -574,6 +640,17 @@ type FilterProjectEnvsContentHintEnvPostgresUser2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresUser2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresUser2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresUser2) GetType() FilterProjectEnvsEnvTypePostgresUser2 { if o == nil { return FilterProjectEnvsEnvTypePostgresUser2("") @@ -616,6 +693,17 @@ type FilterProjectEnvsContentHintEnvPostgresPrismaURL2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresPrismaURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresPrismaURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresPrismaURL2) GetType() FilterProjectEnvsEnvTypePostgresPrismaURL2 { if o == nil { return FilterProjectEnvsEnvTypePostgresPrismaURL2("") @@ -658,6 +746,17 @@ type FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresURLNonPooling2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresURLNonPooling2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresURLNonPooling2) GetType() FilterProjectEnvsEnvTypePostgresURLNonPooling2 { if o == nil { return FilterProjectEnvsEnvTypePostgresURLNonPooling2("") @@ -700,6 +799,17 @@ type FilterProjectEnvsContentHintEnvPostgresURL2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresURL2) GetType() FilterProjectEnvsEnvTypePostgresURL2 { if o == nil { return FilterProjectEnvsEnvTypePostgresURL2("") @@ -742,6 +852,17 @@ type FilterProjectEnvsContentHintEnvBlobReadWriteToken2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvBlobReadWriteToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvBlobReadWriteToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvBlobReadWriteToken2) GetType() FilterProjectEnvsEnvTypeBlobReadWriteToken2 { if o == nil { return FilterProjectEnvsEnvTypeBlobReadWriteToken2("") @@ -784,6 +905,17 @@ type FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2) GetType() FilterProjectEnvsEnvTypeRedisRestAPIReadOnlyToken2 { if o == nil { return FilterProjectEnvsEnvTypeRedisRestAPIReadOnlyToken2("") @@ -826,6 +958,17 @@ type FilterProjectEnvsContentHintEnvRedisRestAPIToken2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvRedisRestAPIToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvRedisRestAPIToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvRedisRestAPIToken2) GetType() FilterProjectEnvsEnvTypeRedisRestAPIToken2 { if o == nil { return FilterProjectEnvsEnvTypeRedisRestAPIToken2("") @@ -868,6 +1011,17 @@ type FilterProjectEnvsContentHintEnvRedisRestAPIURL2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvRedisRestAPIURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvRedisRestAPIURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvRedisRestAPIURL2) GetType() FilterProjectEnvsEnvTypeRedisRestAPIURL2 { if o == nil { return FilterProjectEnvsEnvTypeRedisRestAPIURL2("") @@ -910,6 +1064,17 @@ type FilterProjectEnvsContentHintEnvRedisURL2 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvRedisURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvRedisURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvRedisURL2) GetType() FilterProjectEnvsEnvTypeRedisURL2 { if o == nil { return FilterProjectEnvsEnvTypeRedisURL2("") @@ -1101,111 +1266,111 @@ func CreateFilterProjectEnvsEnvContentHintUnion2FilterProjectEnvsContentHintEnvF func (u *FilterProjectEnvsEnvContentHintUnion2) UnmarshalJSON(data []byte) error { - var filterProjectEnvsContentHintEnvPostgresURLNonPooling2 FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 = FilterProjectEnvsContentHintEnvPostgresURLNonPooling2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNonPooling2, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 = &filterProjectEnvsContentHintEnvPostgresURLNonPooling2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling2 + var filterProjectEnvsContentHintEnvIntegrationStoreSecret2 FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 = FilterProjectEnvsContentHintEnvIntegrationStoreSecret2{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvIntegrationStoreSecret2, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 = &filterProjectEnvsContentHintEnvIntegrationStoreSecret2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret2 return nil } - var filterProjectEnvsContentHintEnvPostgresPassword2 FilterProjectEnvsContentHintEnvPostgresPassword2 = FilterProjectEnvsContentHintEnvPostgresPassword2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPassword2, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresPassword2 = &filterProjectEnvsContentHintEnvPostgresPassword2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPassword2 + var filterProjectEnvsContentHintEnvRedisURL2 FilterProjectEnvsContentHintEnvRedisURL2 = FilterProjectEnvsContentHintEnvRedisURL2{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisURL2, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvRedisURL2 = &filterProjectEnvsContentHintEnvRedisURL2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisURL2 + return nil + } + + var filterProjectEnvsContentHintEnvRedisRestAPIURL2 FilterProjectEnvsContentHintEnvRedisRestAPIURL2 = FilterProjectEnvsContentHintEnvRedisRestAPIURL2{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIURL2, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvRedisRestAPIURL2 = &filterProjectEnvsContentHintEnvRedisRestAPIURL2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL2 return nil } var filterProjectEnvsContentHintEnvRedisRestAPIToken2 FilterProjectEnvsContentHintEnvRedisRestAPIToken2 = FilterProjectEnvsContentHintEnvRedisRestAPIToken2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIToken2, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvRedisRestAPIToken2 = &filterProjectEnvsContentHintEnvRedisRestAPIToken2 u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIToken2 return nil } var filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 = FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 = &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken2 return nil } var filterProjectEnvsContentHintEnvBlobReadWriteToken2 FilterProjectEnvsContentHintEnvBlobReadWriteToken2 = FilterProjectEnvsContentHintEnvBlobReadWriteToken2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvBlobReadWriteToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvBlobReadWriteToken2, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvBlobReadWriteToken2 = &filterProjectEnvsContentHintEnvBlobReadWriteToken2 u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvBlobReadWriteToken2 return nil } var filterProjectEnvsContentHintEnvPostgresURL2 FilterProjectEnvsContentHintEnvPostgresURL2 = FilterProjectEnvsContentHintEnvPostgresURL2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURL2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURL2, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvPostgresURL2 = &filterProjectEnvsContentHintEnvPostgresURL2 u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURL2 return nil } - var filterProjectEnvsContentHintEnvRedisRestAPIURL2 FilterProjectEnvsContentHintEnvRedisRestAPIURL2 = FilterProjectEnvsContentHintEnvRedisRestAPIURL2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIURL2, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvRedisRestAPIURL2 = &filterProjectEnvsContentHintEnvRedisRestAPIURL2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL2 + var filterProjectEnvsContentHintEnvPostgresURLNonPooling2 FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 = FilterProjectEnvsContentHintEnvPostgresURLNonPooling2{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNonPooling2, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvPostgresURLNonPooling2 = &filterProjectEnvsContentHintEnvPostgresURLNonPooling2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling2 return nil } - var filterProjectEnvsContentHintEnvPostgresUser2 FilterProjectEnvsContentHintEnvPostgresUser2 = FilterProjectEnvsContentHintEnvPostgresUser2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresUser2, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresUser2 = &filterProjectEnvsContentHintEnvPostgresUser2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresUser2 + var filterProjectEnvsContentHintEnvPostgresPrismaURL2 FilterProjectEnvsContentHintEnvPostgresPrismaURL2 = FilterProjectEnvsContentHintEnvPostgresPrismaURL2{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPrismaURL2, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvPostgresPrismaURL2 = &filterProjectEnvsContentHintEnvPostgresPrismaURL2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL2 return nil } - var filterProjectEnvsContentHintEnvRedisURL2 FilterProjectEnvsContentHintEnvRedisURL2 = FilterProjectEnvsContentHintEnvRedisURL2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisURL2, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvRedisURL2 = &filterProjectEnvsContentHintEnvRedisURL2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvRedisURL2 + var filterProjectEnvsContentHintEnvPostgresUser2 FilterProjectEnvsContentHintEnvPostgresUser2 = FilterProjectEnvsContentHintEnvPostgresUser2{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresUser2, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvPostgresUser2 = &filterProjectEnvsContentHintEnvPostgresUser2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresUser2 return nil } var filterProjectEnvsContentHintEnvPostgresHost2 FilterProjectEnvsContentHintEnvPostgresHost2 = FilterProjectEnvsContentHintEnvPostgresHost2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresHost2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresHost2, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvPostgresHost2 = &filterProjectEnvsContentHintEnvPostgresHost2 u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresHost2 return nil } - var filterProjectEnvsContentHintEnvPostgresPrismaURL2 FilterProjectEnvsContentHintEnvPostgresPrismaURL2 = FilterProjectEnvsContentHintEnvPostgresPrismaURL2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPrismaURL2, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresPrismaURL2 = &filterProjectEnvsContentHintEnvPostgresPrismaURL2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL2 + var filterProjectEnvsContentHintEnvPostgresPassword2 FilterProjectEnvsContentHintEnvPostgresPassword2 = FilterProjectEnvsContentHintEnvPostgresPassword2{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPassword2, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvPostgresPassword2 = &filterProjectEnvsContentHintEnvPostgresPassword2 + u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresPassword2 return nil } var filterProjectEnvsContentHintEnvPostgresDatabase2 FilterProjectEnvsContentHintEnvPostgresDatabase2 = FilterProjectEnvsContentHintEnvPostgresDatabase2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresDatabase2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresDatabase2, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvPostgresDatabase2 = &filterProjectEnvsContentHintEnvPostgresDatabase2 u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresDatabase2 return nil } var filterProjectEnvsContentHintEnvPostgresURLNoSsl2 FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 = FilterProjectEnvsContentHintEnvPostgresURLNoSsl2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNoSsl2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNoSsl2, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvPostgresURLNoSsl2 = &filterProjectEnvsContentHintEnvPostgresURLNoSsl2 u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvPostgresURLNoSsl2 return nil } var filterProjectEnvsContentHintEnvFlagsConnectionString2 FilterProjectEnvsContentHintEnvFlagsConnectionString2 = FilterProjectEnvsContentHintEnvFlagsConnectionString2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvFlagsConnectionString2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvFlagsConnectionString2, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvFlagsConnectionString2 = &filterProjectEnvsContentHintEnvFlagsConnectionString2 u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvFlagsConnectionString2 return nil } - var filterProjectEnvsContentHintEnvIntegrationStoreSecret2 FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 = FilterProjectEnvsContentHintEnvIntegrationStoreSecret2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvIntegrationStoreSecret2, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvIntegrationStoreSecret2 = &filterProjectEnvsContentHintEnvIntegrationStoreSecret2 - u.Type = FilterProjectEnvsEnvContentHintUnion2TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret2 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for FilterProjectEnvsEnvContentHintUnion2", string(data)) } @@ -1303,6 +1468,17 @@ type FilterProjectEnvsEnvInternalContentHint2 struct { EncryptedValue string `json:"encryptedValue"` } +func (f FilterProjectEnvsEnvInternalContentHint2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsEnvInternalContentHint2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsEnvInternalContentHint2) GetType() FilterProjectEnvsEnvTypeFlagsSecret2 { if o == nil { return FilterProjectEnvsEnvTypeFlagsSecret2("") @@ -1343,6 +1519,17 @@ type FilterProjectEnvsEnv2 struct { System *bool `json:"system,omitempty"` } +func (f FilterProjectEnvsEnv2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsEnv2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsEnv2) GetTarget() *FilterProjectEnvsEnvTargetUnion2 { if o == nil { return nil @@ -1495,6 +1682,17 @@ type FilterProjectEnvsResponseBody3 struct { Envs []FilterProjectEnvsEnv2 `json:"envs"` } +func (f FilterProjectEnvsResponseBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsResponseBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"envs"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsResponseBody3) GetEnvs() []FilterProjectEnvsEnv2 { if o == nil { return []FilterProjectEnvsEnv2{} @@ -1595,14 +1793,14 @@ func CreateFilterProjectEnvsEnvTargetUnion1FilterProjectEnvsTargetEnvEnum2(filte func (u *FilterProjectEnvsEnvTargetUnion1) UnmarshalJSON(data []byte) error { var arrayOfFilterProjectEnvsTargetEnvEnum1 []FilterProjectEnvsTargetEnvEnum1 = []FilterProjectEnvsTargetEnvEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfFilterProjectEnvsTargetEnvEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfFilterProjectEnvsTargetEnvEnum1, "", true, nil); err == nil { u.ArrayOfFilterProjectEnvsTargetEnvEnum1 = arrayOfFilterProjectEnvsTargetEnvEnum1 u.Type = FilterProjectEnvsEnvTargetUnion1TypeArrayOfFilterProjectEnvsTargetEnvEnum1 return nil } var filterProjectEnvsTargetEnvEnum2 FilterProjectEnvsTargetEnvEnum2 = FilterProjectEnvsTargetEnvEnum2("") - if err := utils.UnmarshalJSON(data, &filterProjectEnvsTargetEnvEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsTargetEnvEnum2, "", true, nil); err == nil { u.FilterProjectEnvsTargetEnvEnum2 = &filterProjectEnvsTargetEnvEnum2 u.Type = FilterProjectEnvsEnvTargetUnion1TypeFilterProjectEnvsTargetEnvEnum2 return nil @@ -1627,10 +1825,10 @@ type FilterProjectEnvsEnvType1 string const ( FilterProjectEnvsEnvType1System FilterProjectEnvsEnvType1 = "system" - FilterProjectEnvsEnvType1Secret FilterProjectEnvsEnvType1 = "secret" FilterProjectEnvsEnvType1Encrypted FilterProjectEnvsEnvType1 = "encrypted" FilterProjectEnvsEnvType1Plain FilterProjectEnvsEnvType1 = "plain" FilterProjectEnvsEnvType1Sensitive FilterProjectEnvsEnvType1 = "sensitive" + FilterProjectEnvsEnvType1Secret FilterProjectEnvsEnvType1 = "secret" ) func (e FilterProjectEnvsEnvType1) ToPointer() *FilterProjectEnvsEnvType1 { @@ -1644,13 +1842,13 @@ func (e *FilterProjectEnvsEnvType1) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = FilterProjectEnvsEnvType1(v) return nil default: @@ -1686,6 +1884,17 @@ type FilterProjectEnvsContentHintEnvFlagsConnectionString1 struct { ProjectID string `json:"projectId"` } +func (f FilterProjectEnvsContentHintEnvFlagsConnectionString1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvFlagsConnectionString1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvFlagsConnectionString1) GetType() FilterProjectEnvsEnvTypeFlagsConnectionString1 { if o == nil { return FilterProjectEnvsEnvTypeFlagsConnectionString1("") @@ -1731,6 +1940,17 @@ type FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (f FilterProjectEnvsContentHintEnvIntegrationStoreSecret1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvIntegrationStoreSecret1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvIntegrationStoreSecret1) GetType() FilterProjectEnvsEnvTypeIntegrationStoreSecret1 { if o == nil { return FilterProjectEnvsEnvTypeIntegrationStoreSecret1("") @@ -1794,6 +2014,17 @@ type FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresURLNoSsl1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresURLNoSsl1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresURLNoSsl1) GetType() FilterProjectEnvsEnvTypePostgresURLNoSsl1 { if o == nil { return FilterProjectEnvsEnvTypePostgresURLNoSsl1("") @@ -1836,6 +2067,17 @@ type FilterProjectEnvsContentHintEnvPostgresDatabase1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresDatabase1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresDatabase1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresDatabase1) GetType() FilterProjectEnvsEnvTypePostgresDatabase1 { if o == nil { return FilterProjectEnvsEnvTypePostgresDatabase1("") @@ -1878,6 +2120,17 @@ type FilterProjectEnvsContentHintEnvPostgresPassword1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresPassword1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresPassword1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresPassword1) GetType() FilterProjectEnvsEnvTypePostgresPassword1 { if o == nil { return FilterProjectEnvsEnvTypePostgresPassword1("") @@ -1920,6 +2173,17 @@ type FilterProjectEnvsContentHintEnvPostgresHost1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresHost1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresHost1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresHost1) GetType() FilterProjectEnvsEnvTypePostgresHost1 { if o == nil { return FilterProjectEnvsEnvTypePostgresHost1("") @@ -1962,6 +2226,17 @@ type FilterProjectEnvsContentHintEnvPostgresUser1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresUser1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresUser1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresUser1) GetType() FilterProjectEnvsEnvTypePostgresUser1 { if o == nil { return FilterProjectEnvsEnvTypePostgresUser1("") @@ -2004,6 +2279,17 @@ type FilterProjectEnvsContentHintEnvPostgresPrismaURL1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresPrismaURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresPrismaURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresPrismaURL1) GetType() FilterProjectEnvsEnvTypePostgresPrismaURL1 { if o == nil { return FilterProjectEnvsEnvTypePostgresPrismaURL1("") @@ -2046,6 +2332,17 @@ type FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresURLNonPooling1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresURLNonPooling1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresURLNonPooling1) GetType() FilterProjectEnvsEnvTypePostgresURLNonPooling1 { if o == nil { return FilterProjectEnvsEnvTypePostgresURLNonPooling1("") @@ -2088,6 +2385,17 @@ type FilterProjectEnvsContentHintEnvPostgresURL1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvPostgresURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvPostgresURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvPostgresURL1) GetType() FilterProjectEnvsEnvTypePostgresURL1 { if o == nil { return FilterProjectEnvsEnvTypePostgresURL1("") @@ -2130,6 +2438,17 @@ type FilterProjectEnvsContentHintEnvBlobReadWriteToken1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvBlobReadWriteToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvBlobReadWriteToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvBlobReadWriteToken1) GetType() FilterProjectEnvsEnvTypeBlobReadWriteToken1 { if o == nil { return FilterProjectEnvsEnvTypeBlobReadWriteToken1("") @@ -2172,6 +2491,17 @@ type FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1) GetType() FilterProjectEnvsEnvTypeRedisRestAPIReadOnlyToken1 { if o == nil { return FilterProjectEnvsEnvTypeRedisRestAPIReadOnlyToken1("") @@ -2214,6 +2544,17 @@ type FilterProjectEnvsContentHintEnvRedisRestAPIToken1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvRedisRestAPIToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvRedisRestAPIToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvRedisRestAPIToken1) GetType() FilterProjectEnvsEnvTypeRedisRestAPIToken1 { if o == nil { return FilterProjectEnvsEnvTypeRedisRestAPIToken1("") @@ -2256,6 +2597,17 @@ type FilterProjectEnvsContentHintEnvRedisRestAPIURL1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvRedisRestAPIURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvRedisRestAPIURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvRedisRestAPIURL1) GetType() FilterProjectEnvsEnvTypeRedisRestAPIURL1 { if o == nil { return FilterProjectEnvsEnvTypeRedisRestAPIURL1("") @@ -2298,6 +2650,17 @@ type FilterProjectEnvsContentHintEnvRedisURL1 struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintEnvRedisURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintEnvRedisURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintEnvRedisURL1) GetType() FilterProjectEnvsEnvTypeRedisURL1 { if o == nil { return FilterProjectEnvsEnvTypeRedisURL1("") @@ -2489,111 +2852,111 @@ func CreateFilterProjectEnvsEnvContentHintUnion1FilterProjectEnvsContentHintEnvF func (u *FilterProjectEnvsEnvContentHintUnion1) UnmarshalJSON(data []byte) error { - var filterProjectEnvsContentHintEnvPostgresURLNonPooling1 FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 = FilterProjectEnvsContentHintEnvPostgresURLNonPooling1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNonPooling1, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 = &filterProjectEnvsContentHintEnvPostgresURLNonPooling1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling1 + var filterProjectEnvsContentHintEnvIntegrationStoreSecret1 FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 = FilterProjectEnvsContentHintEnvIntegrationStoreSecret1{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvIntegrationStoreSecret1, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 = &filterProjectEnvsContentHintEnvIntegrationStoreSecret1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret1 return nil } - var filterProjectEnvsContentHintEnvPostgresPassword1 FilterProjectEnvsContentHintEnvPostgresPassword1 = FilterProjectEnvsContentHintEnvPostgresPassword1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPassword1, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresPassword1 = &filterProjectEnvsContentHintEnvPostgresPassword1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPassword1 + var filterProjectEnvsContentHintEnvRedisURL1 FilterProjectEnvsContentHintEnvRedisURL1 = FilterProjectEnvsContentHintEnvRedisURL1{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisURL1, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvRedisURL1 = &filterProjectEnvsContentHintEnvRedisURL1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisURL1 + return nil + } + + var filterProjectEnvsContentHintEnvRedisRestAPIURL1 FilterProjectEnvsContentHintEnvRedisRestAPIURL1 = FilterProjectEnvsContentHintEnvRedisRestAPIURL1{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIURL1, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvRedisRestAPIURL1 = &filterProjectEnvsContentHintEnvRedisRestAPIURL1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL1 return nil } var filterProjectEnvsContentHintEnvRedisRestAPIToken1 FilterProjectEnvsContentHintEnvRedisRestAPIToken1 = FilterProjectEnvsContentHintEnvRedisRestAPIToken1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIToken1, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvRedisRestAPIToken1 = &filterProjectEnvsContentHintEnvRedisRestAPIToken1 u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIToken1 return nil } var filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 = FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 = &filterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIReadOnlyToken1 return nil } var filterProjectEnvsContentHintEnvBlobReadWriteToken1 FilterProjectEnvsContentHintEnvBlobReadWriteToken1 = FilterProjectEnvsContentHintEnvBlobReadWriteToken1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvBlobReadWriteToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvBlobReadWriteToken1, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvBlobReadWriteToken1 = &filterProjectEnvsContentHintEnvBlobReadWriteToken1 u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvBlobReadWriteToken1 return nil } var filterProjectEnvsContentHintEnvPostgresURL1 FilterProjectEnvsContentHintEnvPostgresURL1 = FilterProjectEnvsContentHintEnvPostgresURL1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURL1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURL1, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvPostgresURL1 = &filterProjectEnvsContentHintEnvPostgresURL1 u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURL1 return nil } - var filterProjectEnvsContentHintEnvRedisRestAPIURL1 FilterProjectEnvsContentHintEnvRedisRestAPIURL1 = FilterProjectEnvsContentHintEnvRedisRestAPIURL1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisRestAPIURL1, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvRedisRestAPIURL1 = &filterProjectEnvsContentHintEnvRedisRestAPIURL1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisRestAPIURL1 + var filterProjectEnvsContentHintEnvPostgresURLNonPooling1 FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 = FilterProjectEnvsContentHintEnvPostgresURLNonPooling1{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNonPooling1, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvPostgresURLNonPooling1 = &filterProjectEnvsContentHintEnvPostgresURLNonPooling1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNonPooling1 return nil } - var filterProjectEnvsContentHintEnvPostgresUser1 FilterProjectEnvsContentHintEnvPostgresUser1 = FilterProjectEnvsContentHintEnvPostgresUser1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresUser1, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresUser1 = &filterProjectEnvsContentHintEnvPostgresUser1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresUser1 + var filterProjectEnvsContentHintEnvPostgresPrismaURL1 FilterProjectEnvsContentHintEnvPostgresPrismaURL1 = FilterProjectEnvsContentHintEnvPostgresPrismaURL1{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPrismaURL1, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvPostgresPrismaURL1 = &filterProjectEnvsContentHintEnvPostgresPrismaURL1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL1 return nil } - var filterProjectEnvsContentHintEnvRedisURL1 FilterProjectEnvsContentHintEnvRedisURL1 = FilterProjectEnvsContentHintEnvRedisURL1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvRedisURL1, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvRedisURL1 = &filterProjectEnvsContentHintEnvRedisURL1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvRedisURL1 + var filterProjectEnvsContentHintEnvPostgresUser1 FilterProjectEnvsContentHintEnvPostgresUser1 = FilterProjectEnvsContentHintEnvPostgresUser1{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresUser1, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvPostgresUser1 = &filterProjectEnvsContentHintEnvPostgresUser1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresUser1 return nil } var filterProjectEnvsContentHintEnvPostgresHost1 FilterProjectEnvsContentHintEnvPostgresHost1 = FilterProjectEnvsContentHintEnvPostgresHost1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresHost1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresHost1, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvPostgresHost1 = &filterProjectEnvsContentHintEnvPostgresHost1 u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresHost1 return nil } - var filterProjectEnvsContentHintEnvPostgresPrismaURL1 FilterProjectEnvsContentHintEnvPostgresPrismaURL1 = FilterProjectEnvsContentHintEnvPostgresPrismaURL1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPrismaURL1, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvPostgresPrismaURL1 = &filterProjectEnvsContentHintEnvPostgresPrismaURL1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPrismaURL1 + var filterProjectEnvsContentHintEnvPostgresPassword1 FilterProjectEnvsContentHintEnvPostgresPassword1 = FilterProjectEnvsContentHintEnvPostgresPassword1{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresPassword1, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintEnvPostgresPassword1 = &filterProjectEnvsContentHintEnvPostgresPassword1 + u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresPassword1 return nil } var filterProjectEnvsContentHintEnvPostgresDatabase1 FilterProjectEnvsContentHintEnvPostgresDatabase1 = FilterProjectEnvsContentHintEnvPostgresDatabase1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresDatabase1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresDatabase1, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvPostgresDatabase1 = &filterProjectEnvsContentHintEnvPostgresDatabase1 u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresDatabase1 return nil } var filterProjectEnvsContentHintEnvPostgresURLNoSsl1 FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 = FilterProjectEnvsContentHintEnvPostgresURLNoSsl1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNoSsl1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvPostgresURLNoSsl1, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvPostgresURLNoSsl1 = &filterProjectEnvsContentHintEnvPostgresURLNoSsl1 u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvPostgresURLNoSsl1 return nil } var filterProjectEnvsContentHintEnvFlagsConnectionString1 FilterProjectEnvsContentHintEnvFlagsConnectionString1 = FilterProjectEnvsContentHintEnvFlagsConnectionString1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvFlagsConnectionString1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvFlagsConnectionString1, "", true, nil); err == nil { u.FilterProjectEnvsContentHintEnvFlagsConnectionString1 = &filterProjectEnvsContentHintEnvFlagsConnectionString1 u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvFlagsConnectionString1 return nil } - var filterProjectEnvsContentHintEnvIntegrationStoreSecret1 FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 = FilterProjectEnvsContentHintEnvIntegrationStoreSecret1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintEnvIntegrationStoreSecret1, "", true, true); err == nil { - u.FilterProjectEnvsContentHintEnvIntegrationStoreSecret1 = &filterProjectEnvsContentHintEnvIntegrationStoreSecret1 - u.Type = FilterProjectEnvsEnvContentHintUnion1TypeFilterProjectEnvsContentHintEnvIntegrationStoreSecret1 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for FilterProjectEnvsEnvContentHintUnion1", string(data)) } @@ -2691,6 +3054,17 @@ type FilterProjectEnvsEnvInternalContentHint1 struct { EncryptedValue string `json:"encryptedValue"` } +func (f FilterProjectEnvsEnvInternalContentHint1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsEnvInternalContentHint1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsEnvInternalContentHint1) GetType() FilterProjectEnvsEnvTypeFlagsSecret1 { if o == nil { return FilterProjectEnvsEnvTypeFlagsSecret1("") @@ -2731,6 +3105,17 @@ type FilterProjectEnvsEnv1 struct { System *bool `json:"system,omitempty"` } +func (f FilterProjectEnvsEnv1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsEnv1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsEnv1) GetTarget() *FilterProjectEnvsEnvTargetUnion1 { if o == nil { return nil @@ -2884,6 +3269,17 @@ type FilterProjectEnvsResponseBody2 struct { Pagination components.Pagination `json:"pagination"` } +func (f FilterProjectEnvsResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"envs", "pagination"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsResponseBody2) GetEnvs() []FilterProjectEnvsEnv1 { if o == nil { return []FilterProjectEnvsEnv1{} @@ -2991,14 +3387,14 @@ func CreateFilterProjectEnvsTargetUnionFilterProjectEnvsTargetEnum2(filterProjec func (u *FilterProjectEnvsTargetUnion) UnmarshalJSON(data []byte) error { var arrayOfFilterProjectEnvsTargetEnum1 []FilterProjectEnvsTargetEnum1 = []FilterProjectEnvsTargetEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfFilterProjectEnvsTargetEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfFilterProjectEnvsTargetEnum1, "", true, nil); err == nil { u.ArrayOfFilterProjectEnvsTargetEnum1 = arrayOfFilterProjectEnvsTargetEnum1 u.Type = FilterProjectEnvsTargetUnionTypeArrayOfFilterProjectEnvsTargetEnum1 return nil } var filterProjectEnvsTargetEnum2 FilterProjectEnvsTargetEnum2 = FilterProjectEnvsTargetEnum2("") - if err := utils.UnmarshalJSON(data, &filterProjectEnvsTargetEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsTargetEnum2, "", true, nil); err == nil { u.FilterProjectEnvsTargetEnum2 = &filterProjectEnvsTargetEnum2 u.Type = FilterProjectEnvsTargetUnionTypeFilterProjectEnvsTargetEnum2 return nil @@ -3023,10 +3419,10 @@ type FilterProjectEnvsType string const ( FilterProjectEnvsTypeSystem FilterProjectEnvsType = "system" - FilterProjectEnvsTypeSecret FilterProjectEnvsType = "secret" FilterProjectEnvsTypeEncrypted FilterProjectEnvsType = "encrypted" FilterProjectEnvsTypePlain FilterProjectEnvsType = "plain" FilterProjectEnvsTypeSensitive FilterProjectEnvsType = "sensitive" + FilterProjectEnvsTypeSecret FilterProjectEnvsType = "secret" ) func (e FilterProjectEnvsType) ToPointer() *FilterProjectEnvsType { @@ -3040,13 +3436,13 @@ func (e *FilterProjectEnvsType) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = FilterProjectEnvsType(v) return nil default: @@ -3082,6 +3478,17 @@ type FilterProjectEnvsContentHintFlagsConnectionString struct { ProjectID string `json:"projectId"` } +func (f FilterProjectEnvsContentHintFlagsConnectionString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintFlagsConnectionString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintFlagsConnectionString) GetType() FilterProjectEnvsTypeFlagsConnectionString { if o == nil { return FilterProjectEnvsTypeFlagsConnectionString("") @@ -3127,6 +3534,17 @@ type FilterProjectEnvsContentHintIntegrationStoreSecret struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (f FilterProjectEnvsContentHintIntegrationStoreSecret) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintIntegrationStoreSecret) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintIntegrationStoreSecret) GetType() FilterProjectEnvsTypeIntegrationStoreSecret { if o == nil { return FilterProjectEnvsTypeIntegrationStoreSecret("") @@ -3190,6 +3608,17 @@ type FilterProjectEnvsContentHintPostgresURLNoSsl struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintPostgresURLNoSsl) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintPostgresURLNoSsl) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintPostgresURLNoSsl) GetType() FilterProjectEnvsTypePostgresURLNoSsl { if o == nil { return FilterProjectEnvsTypePostgresURLNoSsl("") @@ -3232,6 +3661,17 @@ type FilterProjectEnvsContentHintPostgresDatabase struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintPostgresDatabase) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintPostgresDatabase) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintPostgresDatabase) GetType() FilterProjectEnvsTypePostgresDatabase { if o == nil { return FilterProjectEnvsTypePostgresDatabase("") @@ -3274,6 +3714,17 @@ type FilterProjectEnvsContentHintPostgresPassword struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintPostgresPassword) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintPostgresPassword) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintPostgresPassword) GetType() FilterProjectEnvsTypePostgresPassword { if o == nil { return FilterProjectEnvsTypePostgresPassword("") @@ -3316,6 +3767,17 @@ type FilterProjectEnvsContentHintPostgresHost struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintPostgresHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintPostgresHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintPostgresHost) GetType() FilterProjectEnvsTypePostgresHost { if o == nil { return FilterProjectEnvsTypePostgresHost("") @@ -3358,6 +3820,17 @@ type FilterProjectEnvsContentHintPostgresUser struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintPostgresUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintPostgresUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintPostgresUser) GetType() FilterProjectEnvsTypePostgresUser { if o == nil { return FilterProjectEnvsTypePostgresUser("") @@ -3400,6 +3873,17 @@ type FilterProjectEnvsContentHintPostgresPrismaURL struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintPostgresPrismaURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintPostgresPrismaURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintPostgresPrismaURL) GetType() FilterProjectEnvsTypePostgresPrismaURL { if o == nil { return FilterProjectEnvsTypePostgresPrismaURL("") @@ -3442,6 +3926,17 @@ type FilterProjectEnvsContentHintPostgresURLNonPooling struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintPostgresURLNonPooling) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintPostgresURLNonPooling) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintPostgresURLNonPooling) GetType() FilterProjectEnvsTypePostgresURLNonPooling { if o == nil { return FilterProjectEnvsTypePostgresURLNonPooling("") @@ -3484,6 +3979,17 @@ type FilterProjectEnvsContentHintPostgresURL struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintPostgresURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintPostgresURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintPostgresURL) GetType() FilterProjectEnvsTypePostgresURL { if o == nil { return FilterProjectEnvsTypePostgresURL("") @@ -3526,6 +4032,17 @@ type FilterProjectEnvsContentHintBlobReadWriteToken struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintBlobReadWriteToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintBlobReadWriteToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintBlobReadWriteToken) GetType() FilterProjectEnvsTypeBlobReadWriteToken { if o == nil { return FilterProjectEnvsTypeBlobReadWriteToken("") @@ -3568,6 +4085,17 @@ type FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken) GetType() FilterProjectEnvsTypeRedisRestAPIReadOnlyToken { if o == nil { return FilterProjectEnvsTypeRedisRestAPIReadOnlyToken("") @@ -3610,6 +4138,17 @@ type FilterProjectEnvsContentHintRedisRestAPIToken struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintRedisRestAPIToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintRedisRestAPIToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintRedisRestAPIToken) GetType() FilterProjectEnvsTypeRedisRestAPIToken { if o == nil { return FilterProjectEnvsTypeRedisRestAPIToken("") @@ -3652,6 +4191,17 @@ type FilterProjectEnvsContentHintRedisRestAPIURL struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintRedisRestAPIURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintRedisRestAPIURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintRedisRestAPIURL) GetType() FilterProjectEnvsTypeRedisRestAPIURL { if o == nil { return FilterProjectEnvsTypeRedisRestAPIURL("") @@ -3694,6 +4244,17 @@ type FilterProjectEnvsContentHintRedisURL struct { StoreID string `json:"storeId"` } +func (f FilterProjectEnvsContentHintRedisURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsContentHintRedisURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsContentHintRedisURL) GetType() FilterProjectEnvsTypeRedisURL { if o == nil { return FilterProjectEnvsTypeRedisURL("") @@ -3885,111 +4446,111 @@ func CreateFilterProjectEnvsContentHintUnionFilterProjectEnvsContentHintFlagsCon func (u *FilterProjectEnvsContentHintUnion) UnmarshalJSON(data []byte) error { - var filterProjectEnvsContentHintPostgresURLNonPooling FilterProjectEnvsContentHintPostgresURLNonPooling = FilterProjectEnvsContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURLNonPooling, "", true, true); err == nil { - u.FilterProjectEnvsContentHintPostgresURLNonPooling = &filterProjectEnvsContentHintPostgresURLNonPooling - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNonPooling + var filterProjectEnvsContentHintIntegrationStoreSecret FilterProjectEnvsContentHintIntegrationStoreSecret = FilterProjectEnvsContentHintIntegrationStoreSecret{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintIntegrationStoreSecret, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintIntegrationStoreSecret = &filterProjectEnvsContentHintIntegrationStoreSecret + u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintIntegrationStoreSecret return nil } - var filterProjectEnvsContentHintPostgresPassword FilterProjectEnvsContentHintPostgresPassword = FilterProjectEnvsContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresPassword, "", true, true); err == nil { - u.FilterProjectEnvsContentHintPostgresPassword = &filterProjectEnvsContentHintPostgresPassword - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPassword + var filterProjectEnvsContentHintRedisURL FilterProjectEnvsContentHintRedisURL = FilterProjectEnvsContentHintRedisURL{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisURL, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintRedisURL = &filterProjectEnvsContentHintRedisURL + u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisURL + return nil + } + + var filterProjectEnvsContentHintRedisRestAPIURL FilterProjectEnvsContentHintRedisRestAPIURL = FilterProjectEnvsContentHintRedisRestAPIURL{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIURL, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintRedisRestAPIURL = &filterProjectEnvsContentHintRedisRestAPIURL + u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIURL return nil } var filterProjectEnvsContentHintRedisRestAPIToken FilterProjectEnvsContentHintRedisRestAPIToken = FilterProjectEnvsContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIToken, "", true, nil); err == nil { u.FilterProjectEnvsContentHintRedisRestAPIToken = &filterProjectEnvsContentHintRedisRestAPIToken u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIToken return nil } var filterProjectEnvsContentHintRedisRestAPIReadOnlyToken FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken = FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIReadOnlyToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { u.FilterProjectEnvsContentHintRedisRestAPIReadOnlyToken = &filterProjectEnvsContentHintRedisRestAPIReadOnlyToken u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIReadOnlyToken return nil } var filterProjectEnvsContentHintBlobReadWriteToken FilterProjectEnvsContentHintBlobReadWriteToken = FilterProjectEnvsContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintBlobReadWriteToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintBlobReadWriteToken, "", true, nil); err == nil { u.FilterProjectEnvsContentHintBlobReadWriteToken = &filterProjectEnvsContentHintBlobReadWriteToken u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintBlobReadWriteToken return nil } var filterProjectEnvsContentHintPostgresURL FilterProjectEnvsContentHintPostgresURL = FilterProjectEnvsContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURL, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURL, "", true, nil); err == nil { u.FilterProjectEnvsContentHintPostgresURL = &filterProjectEnvsContentHintPostgresURL u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURL return nil } - var filterProjectEnvsContentHintRedisRestAPIURL FilterProjectEnvsContentHintRedisRestAPIURL = FilterProjectEnvsContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisRestAPIURL, "", true, true); err == nil { - u.FilterProjectEnvsContentHintRedisRestAPIURL = &filterProjectEnvsContentHintRedisRestAPIURL - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisRestAPIURL + var filterProjectEnvsContentHintPostgresURLNonPooling FilterProjectEnvsContentHintPostgresURLNonPooling = FilterProjectEnvsContentHintPostgresURLNonPooling{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURLNonPooling, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintPostgresURLNonPooling = &filterProjectEnvsContentHintPostgresURLNonPooling + u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNonPooling return nil } - var filterProjectEnvsContentHintPostgresUser FilterProjectEnvsContentHintPostgresUser = FilterProjectEnvsContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresUser, "", true, true); err == nil { - u.FilterProjectEnvsContentHintPostgresUser = &filterProjectEnvsContentHintPostgresUser - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresUser + var filterProjectEnvsContentHintPostgresPrismaURL FilterProjectEnvsContentHintPostgresPrismaURL = FilterProjectEnvsContentHintPostgresPrismaURL{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresPrismaURL, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintPostgresPrismaURL = &filterProjectEnvsContentHintPostgresPrismaURL + u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPrismaURL return nil } - var filterProjectEnvsContentHintRedisURL FilterProjectEnvsContentHintRedisURL = FilterProjectEnvsContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintRedisURL, "", true, true); err == nil { - u.FilterProjectEnvsContentHintRedisURL = &filterProjectEnvsContentHintRedisURL - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintRedisURL + var filterProjectEnvsContentHintPostgresUser FilterProjectEnvsContentHintPostgresUser = FilterProjectEnvsContentHintPostgresUser{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresUser, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintPostgresUser = &filterProjectEnvsContentHintPostgresUser + u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresUser return nil } var filterProjectEnvsContentHintPostgresHost FilterProjectEnvsContentHintPostgresHost = FilterProjectEnvsContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresHost, "", true, nil); err == nil { u.FilterProjectEnvsContentHintPostgresHost = &filterProjectEnvsContentHintPostgresHost u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresHost return nil } - var filterProjectEnvsContentHintPostgresPrismaURL FilterProjectEnvsContentHintPostgresPrismaURL = FilterProjectEnvsContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresPrismaURL, "", true, true); err == nil { - u.FilterProjectEnvsContentHintPostgresPrismaURL = &filterProjectEnvsContentHintPostgresPrismaURL - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPrismaURL + var filterProjectEnvsContentHintPostgresPassword FilterProjectEnvsContentHintPostgresPassword = FilterProjectEnvsContentHintPostgresPassword{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresPassword, "", true, nil); err == nil { + u.FilterProjectEnvsContentHintPostgresPassword = &filterProjectEnvsContentHintPostgresPassword + u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresPassword return nil } var filterProjectEnvsContentHintPostgresDatabase FilterProjectEnvsContentHintPostgresDatabase = FilterProjectEnvsContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresDatabase, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresDatabase, "", true, nil); err == nil { u.FilterProjectEnvsContentHintPostgresDatabase = &filterProjectEnvsContentHintPostgresDatabase u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresDatabase return nil } var filterProjectEnvsContentHintPostgresURLNoSsl FilterProjectEnvsContentHintPostgresURLNoSsl = FilterProjectEnvsContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURLNoSsl, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintPostgresURLNoSsl, "", true, nil); err == nil { u.FilterProjectEnvsContentHintPostgresURLNoSsl = &filterProjectEnvsContentHintPostgresURLNoSsl u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintPostgresURLNoSsl return nil } var filterProjectEnvsContentHintFlagsConnectionString FilterProjectEnvsContentHintFlagsConnectionString = FilterProjectEnvsContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintFlagsConnectionString, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintFlagsConnectionString, "", true, nil); err == nil { u.FilterProjectEnvsContentHintFlagsConnectionString = &filterProjectEnvsContentHintFlagsConnectionString u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintFlagsConnectionString return nil } - var filterProjectEnvsContentHintIntegrationStoreSecret FilterProjectEnvsContentHintIntegrationStoreSecret = FilterProjectEnvsContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsContentHintIntegrationStoreSecret, "", true, true); err == nil { - u.FilterProjectEnvsContentHintIntegrationStoreSecret = &filterProjectEnvsContentHintIntegrationStoreSecret - u.Type = FilterProjectEnvsContentHintUnionTypeFilterProjectEnvsContentHintIntegrationStoreSecret - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for FilterProjectEnvsContentHintUnion", string(data)) } @@ -4087,6 +4648,17 @@ type FilterProjectEnvsInternalContentHint struct { EncryptedValue string `json:"encryptedValue"` } +func (f FilterProjectEnvsInternalContentHint) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsInternalContentHint) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsInternalContentHint) GetType() FilterProjectEnvsTypeFlagsSecret { if o == nil { return FilterProjectEnvsTypeFlagsSecret("") @@ -4127,6 +4699,17 @@ type FilterProjectEnvsResponseBody1 struct { System *bool `json:"system,omitempty"` } +func (f FilterProjectEnvsResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FilterProjectEnvsResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *FilterProjectEnvsResponseBody1) GetTarget() *FilterProjectEnvsTargetUnion { if o == nil { return nil @@ -4320,24 +4903,24 @@ func CreateFilterProjectEnvsResponseBodyFilterProjectEnvsResponseBody3(filterPro func (u *FilterProjectEnvsResponseBody) UnmarshalJSON(data []byte) error { - var filterProjectEnvsResponseBody3 FilterProjectEnvsResponseBody3 = FilterProjectEnvsResponseBody3{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsResponseBody3, "", true, true); err == nil { - u.FilterProjectEnvsResponseBody3 = &filterProjectEnvsResponseBody3 - u.Type = FilterProjectEnvsResponseBodyTypeFilterProjectEnvsResponseBody3 + var filterProjectEnvsResponseBody1 FilterProjectEnvsResponseBody1 = FilterProjectEnvsResponseBody1{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsResponseBody1, "", true, nil); err == nil { + u.FilterProjectEnvsResponseBody1 = &filterProjectEnvsResponseBody1 + u.Type = FilterProjectEnvsResponseBodyTypeFilterProjectEnvsResponseBody1 return nil } var filterProjectEnvsResponseBody2 FilterProjectEnvsResponseBody2 = FilterProjectEnvsResponseBody2{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &filterProjectEnvsResponseBody2, "", true, nil); err == nil { u.FilterProjectEnvsResponseBody2 = &filterProjectEnvsResponseBody2 u.Type = FilterProjectEnvsResponseBodyTypeFilterProjectEnvsResponseBody2 return nil } - var filterProjectEnvsResponseBody1 FilterProjectEnvsResponseBody1 = FilterProjectEnvsResponseBody1{} - if err := utils.UnmarshalJSON(data, &filterProjectEnvsResponseBody1, "", true, true); err == nil { - u.FilterProjectEnvsResponseBody1 = &filterProjectEnvsResponseBody1 - u.Type = FilterProjectEnvsResponseBodyTypeFilterProjectEnvsResponseBody1 + var filterProjectEnvsResponseBody3 FilterProjectEnvsResponseBody3 = FilterProjectEnvsResponseBody3{} + if err := utils.UnmarshalJSON(data, &filterProjectEnvsResponseBody3, "", true, nil); err == nil { + u.FilterProjectEnvsResponseBody3 = &filterProjectEnvsResponseBody3 + u.Type = FilterProjectEnvsResponseBodyTypeFilterProjectEnvsResponseBody3 return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getactiveattackstatus.go b/src/__tests__/mockserver/internal/sdk/models/operations/getactiveattackstatus.go index e72e1ea7..6bb2e95e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getactiveattackstatus.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getactiveattackstatus.go @@ -46,6 +46,17 @@ type AnomalyAlerts struct { StddevRequests float64 `json:"stddev_requests"` } +func (a AnomalyAlerts) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AnomalyAlerts) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"at_minute", "zscore", "total_requests_minute", "avg_requests", "stddev_requests"}); err != nil { + return err + } + return nil +} + func (o *AnomalyAlerts) GetAtMinute() string { if o == nil { return "" @@ -86,6 +97,17 @@ type DdosAlerts struct { TotalReqs float64 `json:"totalReqs"` } +func (d DdosAlerts) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DdosAlerts) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"atMinute", "totalReqs"}); err != nil { + return err + } + return nil +} + func (o *DdosAlerts) GetAtMinute() string { if o == nil { return "" @@ -105,6 +127,17 @@ type AffectedHostMap struct { DdosAlerts map[string]DdosAlerts `json:"ddosAlerts,omitempty"` } +func (a AffectedHostMap) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AffectedHostMap) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + func (o *AffectedHostMap) GetAnomalyAlerts() map[string]AnomalyAlerts { if o == nil { return nil @@ -129,6 +162,17 @@ type Anomaly struct { AffectedHostMap map[string]AffectedHostMap `json:"affectedHostMap"` } +func (a Anomaly) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *Anomaly) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"ownerId", "projectId", "startTime", "endTime", "atMinute", "affectedHostMap"}); err != nil { + return err + } + return nil +} + func (o *Anomaly) GetOwnerID() string { if o == nil { return "" @@ -182,6 +226,17 @@ type GetActiveAttackStatusResponseBody2 struct { Anomalies []Anomaly `json:"anomalies"` } +func (g GetActiveAttackStatusResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetActiveAttackStatusResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"anomalies"}); err != nil { + return err + } + return nil +} + func (o *GetActiveAttackStatusResponseBody2) GetAnomalies() []Anomaly { if o == nil { return []Anomaly{} @@ -192,6 +247,17 @@ func (o *GetActiveAttackStatusResponseBody2) GetAnomalies() []Anomaly { type GetActiveAttackStatusResponseBody1 struct { } +func (g GetActiveAttackStatusResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetActiveAttackStatusResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + type GetActiveAttackStatusResponseBodyType string const ( @@ -226,20 +292,20 @@ func CreateGetActiveAttackStatusResponseBodyGetActiveAttackStatusResponseBody2(g func (u *GetActiveAttackStatusResponseBody) UnmarshalJSON(data []byte) error { - var getActiveAttackStatusResponseBody1 GetActiveAttackStatusResponseBody1 = GetActiveAttackStatusResponseBody1{} - if err := utils.UnmarshalJSON(data, &getActiveAttackStatusResponseBody1, "", true, true); err == nil { - u.GetActiveAttackStatusResponseBody1 = &getActiveAttackStatusResponseBody1 - u.Type = GetActiveAttackStatusResponseBodyTypeGetActiveAttackStatusResponseBody1 - return nil - } - var getActiveAttackStatusResponseBody2 GetActiveAttackStatusResponseBody2 = GetActiveAttackStatusResponseBody2{} - if err := utils.UnmarshalJSON(data, &getActiveAttackStatusResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getActiveAttackStatusResponseBody2, "", true, nil); err == nil { u.GetActiveAttackStatusResponseBody2 = &getActiveAttackStatusResponseBody2 u.Type = GetActiveAttackStatusResponseBodyTypeGetActiveAttackStatusResponseBody2 return nil } + var getActiveAttackStatusResponseBody1 GetActiveAttackStatusResponseBody1 = GetActiveAttackStatusResponseBody1{} + if err := utils.UnmarshalJSON(data, &getActiveAttackStatusResponseBody1, "", true, nil); err == nil { + u.GetActiveAttackStatusResponseBody1 = &getActiveAttackStatusResponseBody1 + u.Type = GetActiveAttackStatusResponseBodyTypeGetActiveAttackStatusResponseBody1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetActiveAttackStatusResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getalias.go b/src/__tests__/mockserver/internal/sdk/models/operations/getalias.go index 7316c272..0df2d008 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getalias.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getalias.go @@ -170,6 +170,17 @@ type GetAliasProtectionBypassEmailInvite struct { Scope GetAliasScopeEmailInvite `json:"scope"` } +func (g GetAliasProtectionBypassEmailInvite) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetAliasProtectionBypassEmailInvite) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"createdAt", "lastUpdatedAt", "lastUpdatedBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *GetAliasProtectionBypassEmailInvite) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -228,6 +239,17 @@ type GetAliasProtectionBypassAliasProtectionOverride struct { Scope GetAliasScopeAliasProtectionOverride `json:"scope"` } +func (g GetAliasProtectionBypassAliasProtectionOverride) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetAliasProtectionBypassAliasProtectionOverride) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *GetAliasProtectionBypassAliasProtectionOverride) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -307,6 +329,17 @@ type GetAliasProtectionBypassUser struct { Scope GetAliasScopeUser `json:"scope"` } +func (g GetAliasProtectionBypassUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetAliasProtectionBypassUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"createdAt", "lastUpdatedAt", "lastUpdatedBy", "access", "scope"}); err != nil { + return err + } + return nil +} + func (o *GetAliasProtectionBypassUser) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -373,6 +406,17 @@ type GetAliasProtectionBypassShareableLink struct { Expires *float64 `json:"expires,omitempty"` } +func (g GetAliasProtectionBypassShareableLink) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetAliasProtectionBypassShareableLink) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *GetAliasProtectionBypassShareableLink) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -457,31 +501,31 @@ func CreateGetAliasProtectionBypassUnionGetAliasProtectionBypassEmailInvite(getA func (u *GetAliasProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var getAliasProtectionBypassAliasProtectionOverride GetAliasProtectionBypassAliasProtectionOverride = GetAliasProtectionBypassAliasProtectionOverride{} - if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassAliasProtectionOverride, "", true, true); err == nil { - u.GetAliasProtectionBypassAliasProtectionOverride = &getAliasProtectionBypassAliasProtectionOverride - u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassAliasProtectionOverride - return nil - } - - var getAliasProtectionBypassShareableLink GetAliasProtectionBypassShareableLink = GetAliasProtectionBypassShareableLink{} - if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassShareableLink, "", true, true); err == nil { - u.GetAliasProtectionBypassShareableLink = &getAliasProtectionBypassShareableLink - u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassShareableLink + var getAliasProtectionBypassUser GetAliasProtectionBypassUser = GetAliasProtectionBypassUser{} + if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassUser, "", true, nil); err == nil { + u.GetAliasProtectionBypassUser = &getAliasProtectionBypassUser + u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassUser return nil } var getAliasProtectionBypassEmailInvite GetAliasProtectionBypassEmailInvite = GetAliasProtectionBypassEmailInvite{} - if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassEmailInvite, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassEmailInvite, "", true, nil); err == nil { u.GetAliasProtectionBypassEmailInvite = &getAliasProtectionBypassEmailInvite u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassEmailInvite return nil } - var getAliasProtectionBypassUser GetAliasProtectionBypassUser = GetAliasProtectionBypassUser{} - if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassUser, "", true, true); err == nil { - u.GetAliasProtectionBypassUser = &getAliasProtectionBypassUser - u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassUser + var getAliasProtectionBypassShareableLink GetAliasProtectionBypassShareableLink = GetAliasProtectionBypassShareableLink{} + if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassShareableLink, "", true, nil); err == nil { + u.GetAliasProtectionBypassShareableLink = &getAliasProtectionBypassShareableLink + u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassShareableLink + return nil + } + + var getAliasProtectionBypassAliasProtectionOverride GetAliasProtectionBypassAliasProtectionOverride = GetAliasProtectionBypassAliasProtectionOverride{} + if err := utils.UnmarshalJSON(data, &getAliasProtectionBypassAliasProtectionOverride, "", true, nil); err == nil { + u.GetAliasProtectionBypassAliasProtectionOverride = &getAliasProtectionBypassAliasProtectionOverride + u.Type = GetAliasProtectionBypassUnionTypeGetAliasProtectionBypassAliasProtectionOverride return nil } @@ -534,6 +578,17 @@ type GetAliasApplications3 struct { ProjectID string `json:"projectId"` } +func (g GetAliasApplications3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetAliasApplications3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"projectId"}); err != nil { + return err + } + return nil +} + func (o *GetAliasApplications3) GetDeploymentID() *string { if o == nil { return nil @@ -586,6 +641,17 @@ type GetAliasApplications2 struct { ProjectID string `json:"projectId"` } +func (g GetAliasApplications2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetAliasApplications2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"fallbackHost", "branchAlias", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetAliasApplications2) GetFallbackHost() string { if o == nil { return "" @@ -615,6 +681,17 @@ type GetAliasApplications1 struct { ProjectID string `json:"projectId"` } +func (g GetAliasApplications1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetAliasApplications1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"fallbackHost", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetAliasApplications1) GetFallbackHost() string { if o == nil { return "" @@ -675,21 +752,21 @@ func CreateGetAliasApplicationsUnionArrayOfGetAliasApplications3(arrayOfGetAlias func (u *GetAliasApplicationsUnion) UnmarshalJSON(data []byte) error { var arrayOfGetAliasApplications1 []GetAliasApplications1 = []GetAliasApplications1{} - if err := utils.UnmarshalJSON(data, &arrayOfGetAliasApplications1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetAliasApplications1, "", true, nil); err == nil { u.ArrayOfGetAliasApplications1 = arrayOfGetAliasApplications1 u.Type = GetAliasApplicationsUnionTypeArrayOfGetAliasApplications1 return nil } var arrayOfGetAliasApplications2 []GetAliasApplications2 = []GetAliasApplications2{} - if err := utils.UnmarshalJSON(data, &arrayOfGetAliasApplications2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetAliasApplications2, "", true, nil); err == nil { u.ArrayOfGetAliasApplications2 = arrayOfGetAliasApplications2 u.Type = GetAliasApplicationsUnionTypeArrayOfGetAliasApplications2 return nil } var arrayOfGetAliasApplications3 []GetAliasApplications3 = []GetAliasApplications3{} - if err := utils.UnmarshalJSON(data, &arrayOfGetAliasApplications3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetAliasApplications3, "", true, nil); err == nil { u.ArrayOfGetAliasApplications3 = arrayOfGetAliasApplications3 u.Type = GetAliasApplicationsUnionTypeArrayOfGetAliasApplications3 return nil @@ -770,7 +847,7 @@ func (g GetAliasResponseBody) MarshalJSON() ([]byte, error) { } func (g *GetAliasResponseBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"alias", "created", "deploymentId", "projectId", "uid"}); err != nil { return err } return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getauthuser.go b/src/__tests__/mockserver/internal/sdk/models/operations/getauthuser.go index d3a2688f..a718a7c0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getauthuser.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getauthuser.go @@ -43,20 +43,20 @@ func CreateGetAuthUserUserAuthUserLimited(authUserLimited components.AuthUserLim func (u *GetAuthUserUser) UnmarshalJSON(data []byte) error { - var authUserLimited components.AuthUserLimited = components.AuthUserLimited{} - if err := utils.UnmarshalJSON(data, &authUserLimited, "", true, true); err == nil { - u.AuthUserLimited = &authUserLimited - u.Type = GetAuthUserUserTypeAuthUserLimited - return nil - } - var authUser components.AuthUser = components.AuthUser{} - if err := utils.UnmarshalJSON(data, &authUser, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &authUser, "", true, nil); err == nil { u.AuthUser = &authUser u.Type = GetAuthUserUserTypeAuthUser return nil } + var authUserLimited components.AuthUserLimited = components.AuthUserLimited{} + if err := utils.UnmarshalJSON(data, &authUserLimited, "", true, nil); err == nil { + u.AuthUserLimited = &authUserLimited + u.Type = GetAuthUserUserTypeAuthUserLimited + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetAuthUserUser", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getconfiguration.go b/src/__tests__/mockserver/internal/sdk/models/operations/getconfiguration.go index a57abd48..ea39d3d8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getconfiguration.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getconfiguration.go @@ -103,6 +103,17 @@ type GetConfigurationNotification struct { Href *string `json:"href,omitempty"` } +func (g GetConfigurationNotification) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationNotification) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"level", "title"}); err != nil { + return err + } + return nil +} + func (o *GetConfigurationNotification) GetLevel() GetConfigurationLevel { if o == nil { return GetConfigurationLevel("") @@ -159,6 +170,17 @@ type Requester2 struct { Email *string `json:"email,omitempty"` } +func (r Requester2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Requester2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Requester2) GetName() string { if o == nil { return "" @@ -187,6 +209,17 @@ type TransferRequestTransferFromMarketplace struct { AuthorizationID *string `json:"authorizationId,omitempty"` } +func (t TransferRequestTransferFromMarketplace) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TransferRequestTransferFromMarketplace) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"kind", "requestId", "transferId", "requester", "createdAt", "expiresAt"}); err != nil { + return err + } + return nil +} + func (o *TransferRequestTransferFromMarketplace) GetKind() KindTransferFromMarketplace { if o == nil { return KindTransferFromMarketplace("") @@ -349,6 +382,17 @@ type GetConfigurationBillingPlan struct { PreauthorizationAmount *float64 `json:"preauthorizationAmount,omitempty"` } +func (g GetConfigurationBillingPlan) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationBillingPlan) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "type", "name", "description"}); err != nil { + return err + } + return nil +} + func (o *GetConfigurationBillingPlan) GetID() string { if o == nil { return "" @@ -403,6 +447,17 @@ type Requester1 struct { Email *string `json:"email,omitempty"` } +func (r Requester1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Requester1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + func (o *Requester1) GetName() string { if o == nil { return "" @@ -433,6 +488,17 @@ type TransferRequestTransferToMarketplace struct { AuthorizationID *string `json:"authorizationId,omitempty"` } +func (t TransferRequestTransferToMarketplace) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(t, "", false) +} + +func (t *TransferRequestTransferToMarketplace) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &t, "", false, []string{"kind", "requestId", "transferId", "requester", "createdAt", "expiresAt"}); err != nil { + return err + } + return nil +} + func (o *TransferRequestTransferToMarketplace) GetKind() KindTransferToMarketplace { if o == nil { return KindTransferToMarketplace("") @@ -558,20 +624,20 @@ func CreateTransferRequestTransferRequestTransferFromMarketplace(transferRequest func (u *TransferRequest) UnmarshalJSON(data []byte) error { - var transferRequestTransferFromMarketplace TransferRequestTransferFromMarketplace = TransferRequestTransferFromMarketplace{} - if err := utils.UnmarshalJSON(data, &transferRequestTransferFromMarketplace, "", true, true); err == nil { - u.TransferRequestTransferFromMarketplace = &transferRequestTransferFromMarketplace - u.Type = TransferRequestUnionTypeTransferRequestTransferFromMarketplace - return nil - } - var transferRequestTransferToMarketplace TransferRequestTransferToMarketplace = TransferRequestTransferToMarketplace{} - if err := utils.UnmarshalJSON(data, &transferRequestTransferToMarketplace, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &transferRequestTransferToMarketplace, "", true, nil); err == nil { u.TransferRequestTransferToMarketplace = &transferRequestTransferToMarketplace u.Type = TransferRequestUnionTypeTransferRequestTransferToMarketplace return nil } + var transferRequestTransferFromMarketplace TransferRequestTransferFromMarketplace = TransferRequestTransferFromMarketplace{} + if err := utils.UnmarshalJSON(data, &transferRequestTransferFromMarketplace, "", true, nil); err == nil { + u.TransferRequestTransferFromMarketplace = &transferRequestTransferFromMarketplace + u.Type = TransferRequestUnionTypeTransferRequestTransferFromMarketplace + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for TransferRequest", string(data)) } @@ -591,10 +657,11 @@ func (u TransferRequest) MarshalJSON() ([]byte, error) { type GetConfigurationSource2 string const ( - GetConfigurationSource2Marketplace GetConfigurationSource2 = "marketplace" - GetConfigurationSource2DeployButton GetConfigurationSource2 = "deploy-button" - GetConfigurationSource2External GetConfigurationSource2 = "external" - GetConfigurationSource2V0 GetConfigurationSource2 = "v0" + GetConfigurationSource2Marketplace GetConfigurationSource2 = "marketplace" + GetConfigurationSource2DeployButton GetConfigurationSource2 = "deploy-button" + GetConfigurationSource2External GetConfigurationSource2 = "external" + GetConfigurationSource2V0 GetConfigurationSource2 = "v0" + GetConfigurationSource2ResourceClaims GetConfigurationSource2 = "resource-claims" ) func (e GetConfigurationSource2) ToPointer() *GetConfigurationSource2 { @@ -613,6 +680,8 @@ func (e *GetConfigurationSource2) UnmarshalJSON(data []byte) error { case "external": fallthrough case "v0": + fallthrough + case "resource-claims": *e = GetConfigurationSource2(v) return nil default: @@ -750,6 +819,17 @@ type GetConfigurationIntegrationConfiguration2 struct { CanConfigureOpenTelemetry *bool `json:"canConfigureOpenTelemetry,omitempty"` } +func (g GetConfigurationIntegrationConfiguration2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationIntegrationConfiguration2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"projectSelection", "notification", "transferRequest", "createdAt", "id", "integrationId", "ownerId", "slug", "type", "updatedAt", "userId", "scopes"}); err != nil { + return err + } + return nil +} + func (o *GetConfigurationIntegrationConfiguration2) GetProjectSelection() ProjectSelection { if o == nil { return ProjectSelection("") @@ -908,10 +988,11 @@ func (o *GetConfigurationIntegrationConfiguration2) GetCanConfigureOpenTelemetry type GetConfigurationSource1 string const ( - GetConfigurationSource1Marketplace GetConfigurationSource1 = "marketplace" - GetConfigurationSource1DeployButton GetConfigurationSource1 = "deploy-button" - GetConfigurationSource1External GetConfigurationSource1 = "external" - GetConfigurationSource1V0 GetConfigurationSource1 = "v0" + GetConfigurationSource1Marketplace GetConfigurationSource1 = "marketplace" + GetConfigurationSource1DeployButton GetConfigurationSource1 = "deploy-button" + GetConfigurationSource1External GetConfigurationSource1 = "external" + GetConfigurationSource1V0 GetConfigurationSource1 = "v0" + GetConfigurationSource1ResourceClaims GetConfigurationSource1 = "resource-claims" ) func (e GetConfigurationSource1) ToPointer() *GetConfigurationSource1 { @@ -930,6 +1011,8 @@ func (e *GetConfigurationSource1) UnmarshalJSON(data []byte) error { case "external": fallthrough case "v0": + fallthrough + case "resource-claims": *e = GetConfigurationSource1(v) return nil default: @@ -1063,6 +1146,17 @@ type GetConfigurationIntegrationConfiguration1 struct { InstallationType *GetConfigurationInstallationType1 `json:"installationType,omitempty"` } +func (g GetConfigurationIntegrationConfiguration1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationIntegrationConfiguration1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"createdAt", "id", "integrationId", "ownerId", "slug", "type", "updatedAt", "userId", "scopes"}); err != nil { + return err + } + return nil +} + func (o *GetConfigurationIntegrationConfiguration1) GetCompletedAt() *float64 { if o == nil { return nil @@ -1224,20 +1318,20 @@ func CreateGetConfigurationResponseBodyGetConfigurationIntegrationConfiguration2 func (u *GetConfigurationResponseBody) UnmarshalJSON(data []byte) error { - var getConfigurationIntegrationConfiguration1 GetConfigurationIntegrationConfiguration1 = GetConfigurationIntegrationConfiguration1{} - if err := utils.UnmarshalJSON(data, &getConfigurationIntegrationConfiguration1, "", true, true); err == nil { - u.GetConfigurationIntegrationConfiguration1 = &getConfigurationIntegrationConfiguration1 - u.Type = GetConfigurationResponseBodyTypeGetConfigurationIntegrationConfiguration1 - return nil - } - var getConfigurationIntegrationConfiguration2 GetConfigurationIntegrationConfiguration2 = GetConfigurationIntegrationConfiguration2{} - if err := utils.UnmarshalJSON(data, &getConfigurationIntegrationConfiguration2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getConfigurationIntegrationConfiguration2, "", true, nil); err == nil { u.GetConfigurationIntegrationConfiguration2 = &getConfigurationIntegrationConfiguration2 u.Type = GetConfigurationResponseBodyTypeGetConfigurationIntegrationConfiguration2 return nil } + var getConfigurationIntegrationConfiguration1 GetConfigurationIntegrationConfiguration1 = GetConfigurationIntegrationConfiguration1{} + if err := utils.UnmarshalJSON(data, &getConfigurationIntegrationConfiguration1, "", true, nil); err == nil { + u.GetConfigurationIntegrationConfiguration1 = &getConfigurationIntegrationConfiguration1 + u.Type = GetConfigurationResponseBodyTypeGetConfigurationIntegrationConfiguration1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getconfigurationproducts.go b/src/__tests__/mockserver/internal/sdk/models/operations/getconfigurationproducts.go index c7d1069c..80fe90b7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getconfigurationproducts.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getconfigurationproducts.go @@ -66,27 +66,27 @@ func (e *StorageStatus) UnmarshalJSON(data []byte) error { } } -type Repl struct { +type GetConfigurationProductsRepl struct { Enabled bool `json:"enabled"` SupportsReadOnlyMode bool `json:"supportsReadOnlyMode"` WelcomeMessage *string `json:"welcomeMessage,omitempty"` } -func (o *Repl) GetEnabled() bool { +func (o *GetConfigurationProductsRepl) GetEnabled() bool { if o == nil { return false } return o.Enabled } -func (o *Repl) GetSupportsReadOnlyMode() bool { +func (o *GetConfigurationProductsRepl) GetSupportsReadOnlyMode() bool { if o == nil { return false } return o.SupportsReadOnlyMode } -func (o *Repl) GetWelcomeMessage() *string { +func (o *GetConfigurationProductsRepl) GetWelcomeMessage() *string { if o == nil { return nil } @@ -94,8 +94,8 @@ func (o *Repl) GetWelcomeMessage() *string { } type Storage struct { - Status StorageStatus `json:"status"` - Repl *Repl `json:"repl,omitempty"` + Status StorageStatus `json:"status"` + Repl *GetConfigurationProductsRepl `json:"repl,omitempty"` } func (o *Storage) GetStatus() StorageStatus { @@ -105,7 +105,7 @@ func (o *Storage) GetStatus() StorageStatus { return o.Status } -func (o *Storage) GetRepl() *Repl { +func (o *Storage) GetRepl() *GetConfigurationProductsRepl { if o == nil { return nil } @@ -707,31 +707,53 @@ func (e *GetConfigurationProductsType) UnmarshalJSON(data []byte) error { } } -type ValueAtBRANDAt447943 struct { +type ValueAtBRANDAt502540 struct { +} + +func (v ValueAtBRANDAt502540) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(v, "", false) +} + +func (v *ValueAtBRANDAt502540) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &v, "", false, nil); err != nil { + return err + } + return nil } type GetConfigurationProductsValue struct { - AtBRANDAt447943 ValueAtBRANDAt447943 `json:"__@BRAND@447943"` + AtBRANDAt502540 ValueAtBRANDAt502540 `json:"__@BRAND@502540"` +} + +func (g GetConfigurationProductsValue) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -func (o *GetConfigurationProductsValue) GetAtBRANDAt447943() ValueAtBRANDAt447943 { +func (g *GetConfigurationProductsValue) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsValue) GetAtBRANDAt502540() ValueAtBRANDAt502540 { if o == nil { - return ValueAtBRANDAt447943{} + return ValueAtBRANDAt502540{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type DisabledEnum string +type GetConfigurationProductsDisabledEnum string const ( - DisabledEnumUpdate DisabledEnum = "update" - DisabledEnumCreate DisabledEnum = "create" + GetConfigurationProductsDisabledEnumUpdate GetConfigurationProductsDisabledEnum = "update" + GetConfigurationProductsDisabledEnumCreate GetConfigurationProductsDisabledEnum = "create" ) -func (e DisabledEnum) ToPointer() *DisabledEnum { +func (e GetConfigurationProductsDisabledEnum) ToPointer() *GetConfigurationProductsDisabledEnum { return &e } -func (e *DisabledEnum) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsDisabledEnum) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -740,120 +762,131 @@ func (e *DisabledEnum) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = DisabledEnum(v) + *e = GetConfigurationProductsDisabledEnum(v) return nil default: - return fmt.Errorf("invalid value for DisabledEnum: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsDisabledEnum: %v", v) } } -type Disabled struct { +type GetConfigurationProductsDisabled struct { Expr string `json:"expr"` } -func (o *Disabled) GetExpr() string { +func (g GetConfigurationProductsDisabled) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsDisabled) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsDisabled) GetExpr() string { if o == nil { return "" } return o.Expr } -type DisabledUnionType string +type GetConfigurationProductsDisabledUnionType string const ( - DisabledUnionTypeBoolean DisabledUnionType = "boolean" - DisabledUnionTypeDisabled DisabledUnionType = "disabled" - DisabledUnionTypeDisabledEnum DisabledUnionType = "disabled_enum" + GetConfigurationProductsDisabledUnionTypeBoolean GetConfigurationProductsDisabledUnionType = "boolean" + GetConfigurationProductsDisabledUnionTypeGetConfigurationProductsDisabled GetConfigurationProductsDisabledUnionType = "getConfigurationProducts_disabled" + GetConfigurationProductsDisabledUnionTypeGetConfigurationProductsDisabledEnum GetConfigurationProductsDisabledUnionType = "getConfigurationProducts_disabled_enum" ) -type DisabledUnion struct { - Boolean *bool `queryParam:"inline"` - Disabled *Disabled `queryParam:"inline"` - DisabledEnum *DisabledEnum `queryParam:"inline"` +type GetConfigurationProductsDisabledUnion struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsDisabled *GetConfigurationProductsDisabled `queryParam:"inline"` + GetConfigurationProductsDisabledEnum *GetConfigurationProductsDisabledEnum `queryParam:"inline"` - Type DisabledUnionType + Type GetConfigurationProductsDisabledUnionType } -func CreateDisabledUnionBoolean(boolean bool) DisabledUnion { - typ := DisabledUnionTypeBoolean +func CreateGetConfigurationProductsDisabledUnionBoolean(boolean bool) GetConfigurationProductsDisabledUnion { + typ := GetConfigurationProductsDisabledUnionTypeBoolean - return DisabledUnion{ + return GetConfigurationProductsDisabledUnion{ Boolean: &boolean, Type: typ, } } -func CreateDisabledUnionDisabled(disabled Disabled) DisabledUnion { - typ := DisabledUnionTypeDisabled +func CreateGetConfigurationProductsDisabledUnionGetConfigurationProductsDisabled(getConfigurationProductsDisabled GetConfigurationProductsDisabled) GetConfigurationProductsDisabledUnion { + typ := GetConfigurationProductsDisabledUnionTypeGetConfigurationProductsDisabled - return DisabledUnion{ - Disabled: &disabled, - Type: typ, + return GetConfigurationProductsDisabledUnion{ + GetConfigurationProductsDisabled: &getConfigurationProductsDisabled, + Type: typ, } } -func CreateDisabledUnionDisabledEnum(disabledEnum DisabledEnum) DisabledUnion { - typ := DisabledUnionTypeDisabledEnum +func CreateGetConfigurationProductsDisabledUnionGetConfigurationProductsDisabledEnum(getConfigurationProductsDisabledEnum GetConfigurationProductsDisabledEnum) GetConfigurationProductsDisabledUnion { + typ := GetConfigurationProductsDisabledUnionTypeGetConfigurationProductsDisabledEnum - return DisabledUnion{ - DisabledEnum: &disabledEnum, - Type: typ, + return GetConfigurationProductsDisabledUnion{ + GetConfigurationProductsDisabledEnum: &getConfigurationProductsDisabledEnum, + Type: typ, } } -func (u *DisabledUnion) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsDisabledUnion) UnmarshalJSON(data []byte) error { - var disabled Disabled = Disabled{} - if err := utils.UnmarshalJSON(data, &disabled, "", true, true); err == nil { - u.Disabled = &disabled - u.Type = DisabledUnionTypeDisabled + var getConfigurationProductsDisabled GetConfigurationProductsDisabled = GetConfigurationProductsDisabled{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsDisabled, "", true, nil); err == nil { + u.GetConfigurationProductsDisabled = &getConfigurationProductsDisabled + u.Type = GetConfigurationProductsDisabledUnionTypeGetConfigurationProductsDisabled return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = DisabledUnionTypeBoolean + u.Type = GetConfigurationProductsDisabledUnionTypeBoolean return nil } - var disabledEnum DisabledEnum = DisabledEnum("") - if err := utils.UnmarshalJSON(data, &disabledEnum, "", true, true); err == nil { - u.DisabledEnum = &disabledEnum - u.Type = DisabledUnionTypeDisabledEnum + var getConfigurationProductsDisabledEnum GetConfigurationProductsDisabledEnum = GetConfigurationProductsDisabledEnum("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsDisabledEnum, "", true, nil); err == nil { + u.GetConfigurationProductsDisabledEnum = &getConfigurationProductsDisabledEnum + u.Type = GetConfigurationProductsDisabledUnionTypeGetConfigurationProductsDisabledEnum return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for DisabledUnion", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsDisabledUnion", string(data)) } -func (u DisabledUnion) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsDisabledUnion) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.Disabled != nil { - return utils.MarshalJSON(u.Disabled, "", true) + if u.GetConfigurationProductsDisabled != nil { + return utils.MarshalJSON(u.GetConfigurationProductsDisabled, "", true) } - if u.DisabledEnum != nil { - return utils.MarshalJSON(u.DisabledEnum, "", true) + if u.GetConfigurationProductsDisabledEnum != nil { + return utils.MarshalJSON(u.GetConfigurationProductsDisabledEnum, "", true) } - return nil, errors.New("could not marshal union type DisabledUnion: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsDisabledUnion: all fields are null") } -type HiddenEnum string +type GetConfigurationProductsHiddenEnum string const ( - HiddenEnumUpdate HiddenEnum = "update" - HiddenEnumCreate HiddenEnum = "create" + GetConfigurationProductsHiddenEnumUpdate GetConfigurationProductsHiddenEnum = "update" + GetConfigurationProductsHiddenEnumCreate GetConfigurationProductsHiddenEnum = "create" ) -func (e HiddenEnum) ToPointer() *HiddenEnum { +func (e GetConfigurationProductsHiddenEnum) ToPointer() *GetConfigurationProductsHiddenEnum { return &e } -func (e *HiddenEnum) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsHiddenEnum) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -862,156 +895,178 @@ func (e *HiddenEnum) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = HiddenEnum(v) + *e = GetConfigurationProductsHiddenEnum(v) return nil default: - return fmt.Errorf("invalid value for HiddenEnum: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsHiddenEnum: %v", v) } } -type Hidden struct { +type GetConfigurationProductsHidden struct { Expr string `json:"expr"` } -func (o *Hidden) GetExpr() string { +func (g GetConfigurationProductsHidden) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsHidden) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsHidden) GetExpr() string { if o == nil { return "" } return o.Expr } -type HiddenUnionType string +type GetConfigurationProductsHiddenUnionType string const ( - HiddenUnionTypeBoolean HiddenUnionType = "boolean" - HiddenUnionTypeHidden HiddenUnionType = "hidden" - HiddenUnionTypeHiddenEnum HiddenUnionType = "hidden_enum" + GetConfigurationProductsHiddenUnionTypeBoolean GetConfigurationProductsHiddenUnionType = "boolean" + GetConfigurationProductsHiddenUnionTypeGetConfigurationProductsHidden GetConfigurationProductsHiddenUnionType = "getConfigurationProducts_hidden" + GetConfigurationProductsHiddenUnionTypeGetConfigurationProductsHiddenEnum GetConfigurationProductsHiddenUnionType = "getConfigurationProducts_hidden_enum" ) -type HiddenUnion struct { - Boolean *bool `queryParam:"inline"` - Hidden *Hidden `queryParam:"inline"` - HiddenEnum *HiddenEnum `queryParam:"inline"` +type GetConfigurationProductsHiddenUnion struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsHidden *GetConfigurationProductsHidden `queryParam:"inline"` + GetConfigurationProductsHiddenEnum *GetConfigurationProductsHiddenEnum `queryParam:"inline"` - Type HiddenUnionType + Type GetConfigurationProductsHiddenUnionType } -func CreateHiddenUnionBoolean(boolean bool) HiddenUnion { - typ := HiddenUnionTypeBoolean +func CreateGetConfigurationProductsHiddenUnionBoolean(boolean bool) GetConfigurationProductsHiddenUnion { + typ := GetConfigurationProductsHiddenUnionTypeBoolean - return HiddenUnion{ + return GetConfigurationProductsHiddenUnion{ Boolean: &boolean, Type: typ, } } -func CreateHiddenUnionHidden(hidden Hidden) HiddenUnion { - typ := HiddenUnionTypeHidden +func CreateGetConfigurationProductsHiddenUnionGetConfigurationProductsHidden(getConfigurationProductsHidden GetConfigurationProductsHidden) GetConfigurationProductsHiddenUnion { + typ := GetConfigurationProductsHiddenUnionTypeGetConfigurationProductsHidden - return HiddenUnion{ - Hidden: &hidden, - Type: typ, + return GetConfigurationProductsHiddenUnion{ + GetConfigurationProductsHidden: &getConfigurationProductsHidden, + Type: typ, } } -func CreateHiddenUnionHiddenEnum(hiddenEnum HiddenEnum) HiddenUnion { - typ := HiddenUnionTypeHiddenEnum +func CreateGetConfigurationProductsHiddenUnionGetConfigurationProductsHiddenEnum(getConfigurationProductsHiddenEnum GetConfigurationProductsHiddenEnum) GetConfigurationProductsHiddenUnion { + typ := GetConfigurationProductsHiddenUnionTypeGetConfigurationProductsHiddenEnum - return HiddenUnion{ - HiddenEnum: &hiddenEnum, - Type: typ, + return GetConfigurationProductsHiddenUnion{ + GetConfigurationProductsHiddenEnum: &getConfigurationProductsHiddenEnum, + Type: typ, } } -func (u *HiddenUnion) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsHiddenUnion) UnmarshalJSON(data []byte) error { - var hidden Hidden = Hidden{} - if err := utils.UnmarshalJSON(data, &hidden, "", true, true); err == nil { - u.Hidden = &hidden - u.Type = HiddenUnionTypeHidden + var getConfigurationProductsHidden GetConfigurationProductsHidden = GetConfigurationProductsHidden{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsHidden, "", true, nil); err == nil { + u.GetConfigurationProductsHidden = &getConfigurationProductsHidden + u.Type = GetConfigurationProductsHiddenUnionTypeGetConfigurationProductsHidden return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = HiddenUnionTypeBoolean + u.Type = GetConfigurationProductsHiddenUnionTypeBoolean return nil } - var hiddenEnum HiddenEnum = HiddenEnum("") - if err := utils.UnmarshalJSON(data, &hiddenEnum, "", true, true); err == nil { - u.HiddenEnum = &hiddenEnum - u.Type = HiddenUnionTypeHiddenEnum + var getConfigurationProductsHiddenEnum GetConfigurationProductsHiddenEnum = GetConfigurationProductsHiddenEnum("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsHiddenEnum, "", true, nil); err == nil { + u.GetConfigurationProductsHiddenEnum = &getConfigurationProductsHiddenEnum + u.Type = GetConfigurationProductsHiddenUnionTypeGetConfigurationProductsHiddenEnum return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for HiddenUnion", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsHiddenUnion", string(data)) } -func (u HiddenUnion) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsHiddenUnion) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.Hidden != nil { - return utils.MarshalJSON(u.Hidden, "", true) + if u.GetConfigurationProductsHidden != nil { + return utils.MarshalJSON(u.GetConfigurationProductsHidden, "", true) } - if u.HiddenEnum != nil { - return utils.MarshalJSON(u.HiddenEnum, "", true) + if u.GetConfigurationProductsHiddenEnum != nil { + return utils.MarshalJSON(u.GetConfigurationProductsHiddenEnum, "", true) } - return nil, errors.New("could not marshal union type HiddenUnion: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsHiddenUnion: all fields are null") } -type Properties struct { - Value GetConfigurationProductsValue `json:"value"` - Disabled *DisabledUnion `json:"disabled,omitempty"` - Hidden *HiddenUnion `json:"hidden,omitempty"` +type GetConfigurationProductsProperties struct { + Value GetConfigurationProductsValue `json:"value"` + Disabled *GetConfigurationProductsDisabledUnion `json:"disabled,omitempty"` + Hidden *GetConfigurationProductsHiddenUnion `json:"hidden,omitempty"` } -func (o *Properties) GetValue() GetConfigurationProductsValue { +func (g GetConfigurationProductsProperties) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsProperties) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsProperties) GetValue() GetConfigurationProductsValue { if o == nil { return GetConfigurationProductsValue{} } return o.Value } -func (o *Properties) GetDisabled() *DisabledUnion { +func (o *GetConfigurationProductsProperties) GetDisabled() *GetConfigurationProductsDisabledUnion { if o == nil { return nil } return o.Disabled } -func (o *Properties) GetHidden() *HiddenUnion { +func (o *GetConfigurationProductsProperties) GetHidden() *GetConfigurationProductsHiddenUnion { if o == nil { return nil } return o.Hidden } -type TypeArray3 string +type GetConfigurationProductsTypeArray3 string const ( - TypeArray3Array TypeArray3 = "array" + GetConfigurationProductsTypeArray3Array GetConfigurationProductsTypeArray3 = "array" ) -func (e TypeArray3) ToPointer() *TypeArray3 { +func (e GetConfigurationProductsTypeArray3) ToPointer() *GetConfigurationProductsTypeArray3 { return &e } -func (e *TypeArray3) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeArray3) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "array": - *e = TypeArray3(v) + *e = GetConfigurationProductsTypeArray3(v) return nil default: - return fmt.Errorf("invalid value for TypeArray3: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeArray3: %v", v) } } @@ -1038,155 +1093,254 @@ func (e *UIControlMultiVercelRegion) UnmarshalJSON(data []byte) error { } } -type TypeString5 string +type GetConfigurationProductsTypeString5 string const ( - TypeString5String TypeString5 = "string" + GetConfigurationProductsTypeString5String GetConfigurationProductsTypeString5 = "string" ) -func (e TypeString5) ToPointer() *TypeString5 { +func (e GetConfigurationProductsTypeString5) ToPointer() *GetConfigurationProductsTypeString5 { return &e } -func (e *TypeString5) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeString5) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "string": - *e = TypeString5(v) + *e = GetConfigurationProductsTypeString5(v) return nil default: - return fmt.Errorf("invalid value for TypeString5: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeString5: %v", v) + } +} + +type MinLengthAtBRANDAt502540String2 struct { +} + +func (m MinLengthAtBRANDAt502540String2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MinLengthAtBRANDAt502540String2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err } + return nil +} + +type GetConfigurationProductsMinLengthString2 struct { + AtBRANDAt502540 MinLengthAtBRANDAt502540String2 `json:"__@BRAND@502540"` } -type MinLengthAtBRANDAt447943String2 struct { +func (g GetConfigurationProductsMinLengthString2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type MinLengthString2 struct { - AtBRANDAt447943 MinLengthAtBRANDAt447943String2 `json:"__@BRAND@447943"` +func (g *GetConfigurationProductsMinLengthString2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *MinLengthString2) GetAtBRANDAt447943() MinLengthAtBRANDAt447943String2 { +func (o *GetConfigurationProductsMinLengthString2) GetAtBRANDAt502540() MinLengthAtBRANDAt502540String2 { if o == nil { - return MinLengthAtBRANDAt447943String2{} + return MinLengthAtBRANDAt502540String2{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 +} + +type MaxLengthAtBRANDAt502540String2 struct { } -type MaxLengthAtBRANDAt447943String2 struct { +func (m MaxLengthAtBRANDAt502540String2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) } -type MaxLengthString2 struct { - AtBRANDAt447943 MaxLengthAtBRANDAt447943String2 `json:"__@BRAND@447943"` +func (m *MaxLengthAtBRANDAt502540String2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil } -func (o *MaxLengthString2) GetAtBRANDAt447943() MaxLengthAtBRANDAt447943String2 { +type GetConfigurationProductsMaxLengthString2 struct { + AtBRANDAt502540 MaxLengthAtBRANDAt502540String2 `json:"__@BRAND@502540"` +} + +func (g GetConfigurationProductsMaxLengthString2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsMaxLengthString2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsMaxLengthString2) GetAtBRANDAt502540() MaxLengthAtBRANDAt502540String2 { if o == nil { - return MaxLengthAtBRANDAt447943String2{} + return MaxLengthAtBRANDAt502540String2{} + } + return o.AtBRANDAt502540 +} + +type PatternAtBRANDAt502540String2 struct { +} + +func (p PatternAtBRANDAt502540String2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatternAtBRANDAt502540String2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err } - return o.AtBRANDAt447943 + return nil } -type PatternAtBRANDAt447943String2 struct { +type GetConfigurationProductsPatternString2 struct { + AtBRANDAt502540 PatternAtBRANDAt502540String2 `json:"__@BRAND@502540"` } -type PatternString2 struct { - AtBRANDAt447943 PatternAtBRANDAt447943String2 `json:"__@BRAND@447943"` +func (g GetConfigurationProductsPatternString2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -func (o *PatternString2) GetAtBRANDAt447943() PatternAtBRANDAt447943String2 { +func (g *GetConfigurationProductsPatternString2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsPatternString2) GetAtBRANDAt502540() PatternAtBRANDAt502540String2 { if o == nil { - return PatternAtBRANDAt447943String2{} + return PatternAtBRANDAt502540String2{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 +} + +type GetConfigurationProductsItemsString2 struct { + Type GetConfigurationProductsTypeString5 `json:"type"` + Description *string `json:"description,omitempty"` + MinLength *GetConfigurationProductsMinLengthString2 `json:"minLength,omitempty"` + MaxLength *GetConfigurationProductsMaxLengthString2 `json:"maxLength,omitempty"` + Pattern *GetConfigurationProductsPatternString2 `json:"pattern,omitempty"` + Default *string `json:"default,omitempty"` + Enum []string `json:"enum,omitempty"` +} + +func (g GetConfigurationProductsItemsString2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type ItemsString2 struct { - Type TypeString5 `json:"type"` - Description *string `json:"description,omitempty"` - MinLength *MinLengthString2 `json:"minLength,omitempty"` - MaxLength *MaxLengthString2 `json:"maxLength,omitempty"` - Pattern *PatternString2 `json:"pattern,omitempty"` - Default *string `json:"default,omitempty"` - Enum []string `json:"enum,omitempty"` +func (g *GetConfigurationProductsItemsString2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type"}); err != nil { + return err + } + return nil } -func (o *ItemsString2) GetType() TypeString5 { +func (o *GetConfigurationProductsItemsString2) GetType() GetConfigurationProductsTypeString5 { if o == nil { - return TypeString5("") + return GetConfigurationProductsTypeString5("") } return o.Type } -func (o *ItemsString2) GetDescription() *string { +func (o *GetConfigurationProductsItemsString2) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *ItemsString2) GetMinLength() *MinLengthString2 { +func (o *GetConfigurationProductsItemsString2) GetMinLength() *GetConfigurationProductsMinLengthString2 { if o == nil { return nil } return o.MinLength } -func (o *ItemsString2) GetMaxLength() *MaxLengthString2 { +func (o *GetConfigurationProductsItemsString2) GetMaxLength() *GetConfigurationProductsMaxLengthString2 { if o == nil { return nil } return o.MaxLength } -func (o *ItemsString2) GetPattern() *PatternString2 { +func (o *GetConfigurationProductsItemsString2) GetPattern() *GetConfigurationProductsPatternString2 { if o == nil { return nil } return o.Pattern } -func (o *ItemsString2) GetDefault() *string { +func (o *GetConfigurationProductsItemsString2) GetDefault() *string { if o == nil { return nil } return o.Default } -func (o *ItemsString2) GetEnum() []string { +func (o *GetConfigurationProductsItemsString2) GetEnum() []string { if o == nil { return nil } return o.Enum } -type UIOptionValueAtBRANDAt4479432 struct { +type UIOptionValueAtBRANDAt5025402 struct { +} + +func (u UIOptionValueAtBRANDAt5025402) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UIOptionValueAtBRANDAt5025402) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil } -type UIOptionValue2 struct { - AtBRANDAt447943 UIOptionValueAtBRANDAt4479432 `json:"__@BRAND@447943"` +type GetConfigurationProductsUIOptionValue2 struct { + AtBRANDAt502540 UIOptionValueAtBRANDAt5025402 `json:"__@BRAND@502540"` } -func (o *UIOptionValue2) GetAtBRANDAt447943() UIOptionValueAtBRANDAt4479432 { +func (g GetConfigurationProductsUIOptionValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionValue2) GetAtBRANDAt502540() UIOptionValueAtBRANDAt5025402 { if o == nil { - return UIOptionValueAtBRANDAt4479432{} + return UIOptionValueAtBRANDAt5025402{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type UIOptionDisabledEnum4 string +type GetConfigurationProductsUIOptionDisabledEnum4 string const ( - UIOptionDisabledEnum4Update UIOptionDisabledEnum4 = "update" - UIOptionDisabledEnum4Create UIOptionDisabledEnum4 = "create" + GetConfigurationProductsUIOptionDisabledEnum4Update GetConfigurationProductsUIOptionDisabledEnum4 = "update" + GetConfigurationProductsUIOptionDisabledEnum4Create GetConfigurationProductsUIOptionDisabledEnum4 = "create" ) -func (e UIOptionDisabledEnum4) ToPointer() *UIOptionDisabledEnum4 { +func (e GetConfigurationProductsUIOptionDisabledEnum4) ToPointer() *GetConfigurationProductsUIOptionDisabledEnum4 { return &e } -func (e *UIOptionDisabledEnum4) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIOptionDisabledEnum4) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -1195,120 +1349,131 @@ func (e *UIOptionDisabledEnum4) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIOptionDisabledEnum4(v) + *e = GetConfigurationProductsUIOptionDisabledEnum4(v) return nil default: - return fmt.Errorf("invalid value for UIOptionDisabledEnum4: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIOptionDisabledEnum4: %v", v) } } -type UIOptionDisabled4 struct { +type GetConfigurationProductsUIOptionDisabled4 struct { Expr string `json:"expr"` } -func (o *UIOptionDisabled4) GetExpr() string { +func (g GetConfigurationProductsUIOptionDisabled4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionDisabled4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionDisabled4) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionDisabledUnion6Type string +type GetConfigurationProductsUIOptionDisabledUnion6Type string const ( - UIOptionDisabledUnion6TypeBoolean UIOptionDisabledUnion6Type = "boolean" - UIOptionDisabledUnion6TypeUIOptionDisabled4 UIOptionDisabledUnion6Type = "ui:option_disabled_4" - UIOptionDisabledUnion6TypeUIOptionDisabledEnum4 UIOptionDisabledUnion6Type = "ui:option_disabled_enum_4" + GetConfigurationProductsUIOptionDisabledUnion6TypeBoolean GetConfigurationProductsUIOptionDisabledUnion6Type = "boolean" + GetConfigurationProductsUIOptionDisabledUnion6TypeGetConfigurationProductsUIOptionDisabled4 GetConfigurationProductsUIOptionDisabledUnion6Type = "getConfigurationProducts_ui:option_disabled_4" + GetConfigurationProductsUIOptionDisabledUnion6TypeGetConfigurationProductsUIOptionDisabledEnum4 GetConfigurationProductsUIOptionDisabledUnion6Type = "getConfigurationProducts_ui:option_disabled_enum_4" ) -type UIOptionDisabledUnion6 struct { - Boolean *bool `queryParam:"inline"` - UIOptionDisabled4 *UIOptionDisabled4 `queryParam:"inline"` - UIOptionDisabledEnum4 *UIOptionDisabledEnum4 `queryParam:"inline"` +type GetConfigurationProductsUIOptionDisabledUnion6 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIOptionDisabled4 *GetConfigurationProductsUIOptionDisabled4 `queryParam:"inline"` + GetConfigurationProductsUIOptionDisabledEnum4 *GetConfigurationProductsUIOptionDisabledEnum4 `queryParam:"inline"` - Type UIOptionDisabledUnion6Type + Type GetConfigurationProductsUIOptionDisabledUnion6Type } -func CreateUIOptionDisabledUnion6Boolean(boolean bool) UIOptionDisabledUnion6 { - typ := UIOptionDisabledUnion6TypeBoolean +func CreateGetConfigurationProductsUIOptionDisabledUnion6Boolean(boolean bool) GetConfigurationProductsUIOptionDisabledUnion6 { + typ := GetConfigurationProductsUIOptionDisabledUnion6TypeBoolean - return UIOptionDisabledUnion6{ + return GetConfigurationProductsUIOptionDisabledUnion6{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionDisabledUnion6UIOptionDisabled4(uiOptionDisabled4 UIOptionDisabled4) UIOptionDisabledUnion6 { - typ := UIOptionDisabledUnion6TypeUIOptionDisabled4 +func CreateGetConfigurationProductsUIOptionDisabledUnion6GetConfigurationProductsUIOptionDisabled4(getConfigurationProductsUIOptionDisabled4 GetConfigurationProductsUIOptionDisabled4) GetConfigurationProductsUIOptionDisabledUnion6 { + typ := GetConfigurationProductsUIOptionDisabledUnion6TypeGetConfigurationProductsUIOptionDisabled4 - return UIOptionDisabledUnion6{ - UIOptionDisabled4: &uiOptionDisabled4, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion6{ + GetConfigurationProductsUIOptionDisabled4: &getConfigurationProductsUIOptionDisabled4, + Type: typ, } } -func CreateUIOptionDisabledUnion6UIOptionDisabledEnum4(uiOptionDisabledEnum4 UIOptionDisabledEnum4) UIOptionDisabledUnion6 { - typ := UIOptionDisabledUnion6TypeUIOptionDisabledEnum4 +func CreateGetConfigurationProductsUIOptionDisabledUnion6GetConfigurationProductsUIOptionDisabledEnum4(getConfigurationProductsUIOptionDisabledEnum4 GetConfigurationProductsUIOptionDisabledEnum4) GetConfigurationProductsUIOptionDisabledUnion6 { + typ := GetConfigurationProductsUIOptionDisabledUnion6TypeGetConfigurationProductsUIOptionDisabledEnum4 - return UIOptionDisabledUnion6{ - UIOptionDisabledEnum4: &uiOptionDisabledEnum4, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion6{ + GetConfigurationProductsUIOptionDisabledEnum4: &getConfigurationProductsUIOptionDisabledEnum4, + Type: typ, } } -func (u *UIOptionDisabledUnion6) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionDisabledUnion6) UnmarshalJSON(data []byte) error { - var uiOptionDisabled4 UIOptionDisabled4 = UIOptionDisabled4{} - if err := utils.UnmarshalJSON(data, &uiOptionDisabled4, "", true, true); err == nil { - u.UIOptionDisabled4 = &uiOptionDisabled4 - u.Type = UIOptionDisabledUnion6TypeUIOptionDisabled4 + var getConfigurationProductsUIOptionDisabled4 GetConfigurationProductsUIOptionDisabled4 = GetConfigurationProductsUIOptionDisabled4{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionDisabled4, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionDisabled4 = &getConfigurationProductsUIOptionDisabled4 + u.Type = GetConfigurationProductsUIOptionDisabledUnion6TypeGetConfigurationProductsUIOptionDisabled4 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionDisabledUnion6TypeBoolean + u.Type = GetConfigurationProductsUIOptionDisabledUnion6TypeBoolean return nil } - var uiOptionDisabledEnum4 UIOptionDisabledEnum4 = UIOptionDisabledEnum4("") - if err := utils.UnmarshalJSON(data, &uiOptionDisabledEnum4, "", true, true); err == nil { - u.UIOptionDisabledEnum4 = &uiOptionDisabledEnum4 - u.Type = UIOptionDisabledUnion6TypeUIOptionDisabledEnum4 + var getConfigurationProductsUIOptionDisabledEnum4 GetConfigurationProductsUIOptionDisabledEnum4 = GetConfigurationProductsUIOptionDisabledEnum4("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionDisabledEnum4, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionDisabledEnum4 = &getConfigurationProductsUIOptionDisabledEnum4 + u.Type = GetConfigurationProductsUIOptionDisabledUnion6TypeGetConfigurationProductsUIOptionDisabledEnum4 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionDisabledUnion6", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionDisabledUnion6", string(data)) } -func (u UIOptionDisabledUnion6) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionDisabledUnion6) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIOptionDisabled4 != nil { - return utils.MarshalJSON(u.UIOptionDisabled4, "", true) + if u.GetConfigurationProductsUIOptionDisabled4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionDisabled4, "", true) } - if u.UIOptionDisabledEnum4 != nil { - return utils.MarshalJSON(u.UIOptionDisabledEnum4, "", true) + if u.GetConfigurationProductsUIOptionDisabledEnum4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionDisabledEnum4, "", true) } - return nil, errors.New("could not marshal union type UIOptionDisabledUnion6: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionDisabledUnion6: all fields are null") } -type UIOptionHiddenEnum4 string +type GetConfigurationProductsUIOptionHiddenEnum4 string const ( - UIOptionHiddenEnum4Update UIOptionHiddenEnum4 = "update" - UIOptionHiddenEnum4Create UIOptionHiddenEnum4 = "create" + GetConfigurationProductsUIOptionHiddenEnum4Update GetConfigurationProductsUIOptionHiddenEnum4 = "update" + GetConfigurationProductsUIOptionHiddenEnum4Create GetConfigurationProductsUIOptionHiddenEnum4 = "create" ) -func (e UIOptionHiddenEnum4) ToPointer() *UIOptionHiddenEnum4 { +func (e GetConfigurationProductsUIOptionHiddenEnum4) ToPointer() *GetConfigurationProductsUIOptionHiddenEnum4 { return &e } -func (e *UIOptionHiddenEnum4) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIOptionHiddenEnum4) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -1317,161 +1482,205 @@ func (e *UIOptionHiddenEnum4) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIOptionHiddenEnum4(v) + *e = GetConfigurationProductsUIOptionHiddenEnum4(v) return nil default: - return fmt.Errorf("invalid value for UIOptionHiddenEnum4: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIOptionHiddenEnum4: %v", v) } } -type UIOptionHidden4 struct { +type GetConfigurationProductsUIOptionHidden4 struct { Expr string `json:"expr"` } -func (o *UIOptionHidden4) GetExpr() string { +func (g GetConfigurationProductsUIOptionHidden4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionHidden4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionHidden4) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionHiddenUnion6Type string +type GetConfigurationProductsUIOptionHiddenUnion6Type string const ( - UIOptionHiddenUnion6TypeBoolean UIOptionHiddenUnion6Type = "boolean" - UIOptionHiddenUnion6TypeUIOptionHidden4 UIOptionHiddenUnion6Type = "ui:option_hidden_4" - UIOptionHiddenUnion6TypeUIOptionHiddenEnum4 UIOptionHiddenUnion6Type = "ui:option_hidden_enum_4" + GetConfigurationProductsUIOptionHiddenUnion6TypeBoolean GetConfigurationProductsUIOptionHiddenUnion6Type = "boolean" + GetConfigurationProductsUIOptionHiddenUnion6TypeGetConfigurationProductsUIOptionHidden4 GetConfigurationProductsUIOptionHiddenUnion6Type = "getConfigurationProducts_ui:option_hidden_4" + GetConfigurationProductsUIOptionHiddenUnion6TypeGetConfigurationProductsUIOptionHiddenEnum4 GetConfigurationProductsUIOptionHiddenUnion6Type = "getConfigurationProducts_ui:option_hidden_enum_4" ) -type UIOptionHiddenUnion6 struct { - Boolean *bool `queryParam:"inline"` - UIOptionHidden4 *UIOptionHidden4 `queryParam:"inline"` - UIOptionHiddenEnum4 *UIOptionHiddenEnum4 `queryParam:"inline"` +type GetConfigurationProductsUIOptionHiddenUnion6 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIOptionHidden4 *GetConfigurationProductsUIOptionHidden4 `queryParam:"inline"` + GetConfigurationProductsUIOptionHiddenEnum4 *GetConfigurationProductsUIOptionHiddenEnum4 `queryParam:"inline"` - Type UIOptionHiddenUnion6Type + Type GetConfigurationProductsUIOptionHiddenUnion6Type } -func CreateUIOptionHiddenUnion6Boolean(boolean bool) UIOptionHiddenUnion6 { - typ := UIOptionHiddenUnion6TypeBoolean +func CreateGetConfigurationProductsUIOptionHiddenUnion6Boolean(boolean bool) GetConfigurationProductsUIOptionHiddenUnion6 { + typ := GetConfigurationProductsUIOptionHiddenUnion6TypeBoolean - return UIOptionHiddenUnion6{ + return GetConfigurationProductsUIOptionHiddenUnion6{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionHiddenUnion6UIOptionHidden4(uiOptionHidden4 UIOptionHidden4) UIOptionHiddenUnion6 { - typ := UIOptionHiddenUnion6TypeUIOptionHidden4 +func CreateGetConfigurationProductsUIOptionHiddenUnion6GetConfigurationProductsUIOptionHidden4(getConfigurationProductsUIOptionHidden4 GetConfigurationProductsUIOptionHidden4) GetConfigurationProductsUIOptionHiddenUnion6 { + typ := GetConfigurationProductsUIOptionHiddenUnion6TypeGetConfigurationProductsUIOptionHidden4 - return UIOptionHiddenUnion6{ - UIOptionHidden4: &uiOptionHidden4, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion6{ + GetConfigurationProductsUIOptionHidden4: &getConfigurationProductsUIOptionHidden4, + Type: typ, } } -func CreateUIOptionHiddenUnion6UIOptionHiddenEnum4(uiOptionHiddenEnum4 UIOptionHiddenEnum4) UIOptionHiddenUnion6 { - typ := UIOptionHiddenUnion6TypeUIOptionHiddenEnum4 +func CreateGetConfigurationProductsUIOptionHiddenUnion6GetConfigurationProductsUIOptionHiddenEnum4(getConfigurationProductsUIOptionHiddenEnum4 GetConfigurationProductsUIOptionHiddenEnum4) GetConfigurationProductsUIOptionHiddenUnion6 { + typ := GetConfigurationProductsUIOptionHiddenUnion6TypeGetConfigurationProductsUIOptionHiddenEnum4 - return UIOptionHiddenUnion6{ - UIOptionHiddenEnum4: &uiOptionHiddenEnum4, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion6{ + GetConfigurationProductsUIOptionHiddenEnum4: &getConfigurationProductsUIOptionHiddenEnum4, + Type: typ, } } -func (u *UIOptionHiddenUnion6) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionHiddenUnion6) UnmarshalJSON(data []byte) error { - var uiOptionHidden4 UIOptionHidden4 = UIOptionHidden4{} - if err := utils.UnmarshalJSON(data, &uiOptionHidden4, "", true, true); err == nil { - u.UIOptionHidden4 = &uiOptionHidden4 - u.Type = UIOptionHiddenUnion6TypeUIOptionHidden4 + var getConfigurationProductsUIOptionHidden4 GetConfigurationProductsUIOptionHidden4 = GetConfigurationProductsUIOptionHidden4{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionHidden4, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionHidden4 = &getConfigurationProductsUIOptionHidden4 + u.Type = GetConfigurationProductsUIOptionHiddenUnion6TypeGetConfigurationProductsUIOptionHidden4 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionHiddenUnion6TypeBoolean + u.Type = GetConfigurationProductsUIOptionHiddenUnion6TypeBoolean return nil } - var uiOptionHiddenEnum4 UIOptionHiddenEnum4 = UIOptionHiddenEnum4("") - if err := utils.UnmarshalJSON(data, &uiOptionHiddenEnum4, "", true, true); err == nil { - u.UIOptionHiddenEnum4 = &uiOptionHiddenEnum4 - u.Type = UIOptionHiddenUnion6TypeUIOptionHiddenEnum4 + var getConfigurationProductsUIOptionHiddenEnum4 GetConfigurationProductsUIOptionHiddenEnum4 = GetConfigurationProductsUIOptionHiddenEnum4("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionHiddenEnum4, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionHiddenEnum4 = &getConfigurationProductsUIOptionHiddenEnum4 + u.Type = GetConfigurationProductsUIOptionHiddenUnion6TypeGetConfigurationProductsUIOptionHiddenEnum4 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionHiddenUnion6", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionHiddenUnion6", string(data)) } -func (u UIOptionHiddenUnion6) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionHiddenUnion6) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIOptionHidden4 != nil { - return utils.MarshalJSON(u.UIOptionHidden4, "", true) + if u.GetConfigurationProductsUIOptionHidden4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionHidden4, "", true) } - if u.UIOptionHiddenEnum4 != nil { - return utils.MarshalJSON(u.UIOptionHiddenEnum4, "", true) + if u.GetConfigurationProductsUIOptionHiddenEnum4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionHiddenEnum4, "", true) } - return nil, errors.New("could not marshal union type UIOptionHiddenUnion6: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionHiddenUnion6: all fields are null") +} + +type GetConfigurationProductsUIOption8 struct { + Value GetConfigurationProductsUIOptionValue2 `json:"value"` + Disabled *GetConfigurationProductsUIOptionDisabledUnion6 `json:"disabled,omitempty"` + Hidden *GetConfigurationProductsUIOptionHiddenUnion6 `json:"hidden,omitempty"` } -type UIOption8 struct { - Value UIOptionValue2 `json:"value"` - Disabled *UIOptionDisabledUnion6 `json:"disabled,omitempty"` - Hidden *UIOptionHiddenUnion6 `json:"hidden,omitempty"` +func (g GetConfigurationProductsUIOption8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -func (o *UIOption8) GetValue() UIOptionValue2 { +func (g *GetConfigurationProductsUIOption8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOption8) GetValue() GetConfigurationProductsUIOptionValue2 { if o == nil { - return UIOptionValue2{} + return GetConfigurationProductsUIOptionValue2{} } return o.Value } -func (o *UIOption8) GetDisabled() *UIOptionDisabledUnion6 { +func (o *GetConfigurationProductsUIOption8) GetDisabled() *GetConfigurationProductsUIOptionDisabledUnion6 { if o == nil { return nil } return o.Disabled } -func (o *UIOption8) GetHidden() *UIOptionHiddenUnion6 { +func (o *GetConfigurationProductsUIOption8) GetHidden() *GetConfigurationProductsUIOptionHiddenUnion6 { if o == nil { return nil } return o.Hidden } -type UIOptionAtBRANDAt4479432 struct { +type UIOptionAtBRANDAt5025402 struct { +} + +func (u UIOptionAtBRANDAt5025402) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UIOptionAtBRANDAt5025402) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + +type GetConfigurationProductsUIOption7 struct { + AtBRANDAt502540 UIOptionAtBRANDAt5025402 `json:"__@BRAND@502540"` } -type UIOption7 struct { - AtBRANDAt447943 UIOptionAtBRANDAt4479432 `json:"__@BRAND@447943"` +func (g GetConfigurationProductsUIOption7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -func (o *UIOption7) GetAtBRANDAt447943() UIOptionAtBRANDAt4479432 { +func (g *GetConfigurationProductsUIOption7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOption7) GetAtBRANDAt502540() UIOptionAtBRANDAt5025402 { if o == nil { - return UIOptionAtBRANDAt4479432{} + return UIOptionAtBRANDAt5025402{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type UIOptionDisabledEnum3 string +type GetConfigurationProductsUIOptionDisabledEnum3 string const ( - UIOptionDisabledEnum3Update UIOptionDisabledEnum3 = "update" - UIOptionDisabledEnum3Create UIOptionDisabledEnum3 = "create" + GetConfigurationProductsUIOptionDisabledEnum3Update GetConfigurationProductsUIOptionDisabledEnum3 = "update" + GetConfigurationProductsUIOptionDisabledEnum3Create GetConfigurationProductsUIOptionDisabledEnum3 = "create" ) -func (e UIOptionDisabledEnum3) ToPointer() *UIOptionDisabledEnum3 { +func (e GetConfigurationProductsUIOptionDisabledEnum3) ToPointer() *GetConfigurationProductsUIOptionDisabledEnum3 { return &e } -func (e *UIOptionDisabledEnum3) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIOptionDisabledEnum3) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -1480,120 +1689,131 @@ func (e *UIOptionDisabledEnum3) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIOptionDisabledEnum3(v) + *e = GetConfigurationProductsUIOptionDisabledEnum3(v) return nil default: - return fmt.Errorf("invalid value for UIOptionDisabledEnum3: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIOptionDisabledEnum3: %v", v) } } -type UIOptionDisabled3 struct { +type GetConfigurationProductsUIOptionDisabled3 struct { Expr string `json:"expr"` } -func (o *UIOptionDisabled3) GetExpr() string { +func (g GetConfigurationProductsUIOptionDisabled3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionDisabled3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionDisabled3) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionDisabledUnion5Type string +type GetConfigurationProductsUIOptionDisabledUnion5Type string const ( - UIOptionDisabledUnion5TypeBoolean UIOptionDisabledUnion5Type = "boolean" - UIOptionDisabledUnion5TypeUIOptionDisabled3 UIOptionDisabledUnion5Type = "ui:option_disabled_3" - UIOptionDisabledUnion5TypeUIOptionDisabledEnum3 UIOptionDisabledUnion5Type = "ui:option_disabled_enum_3" + GetConfigurationProductsUIOptionDisabledUnion5TypeBoolean GetConfigurationProductsUIOptionDisabledUnion5Type = "boolean" + GetConfigurationProductsUIOptionDisabledUnion5TypeGetConfigurationProductsUIOptionDisabled3 GetConfigurationProductsUIOptionDisabledUnion5Type = "getConfigurationProducts_ui:option_disabled_3" + GetConfigurationProductsUIOptionDisabledUnion5TypeGetConfigurationProductsUIOptionDisabledEnum3 GetConfigurationProductsUIOptionDisabledUnion5Type = "getConfigurationProducts_ui:option_disabled_enum_3" ) -type UIOptionDisabledUnion5 struct { - Boolean *bool `queryParam:"inline"` - UIOptionDisabled3 *UIOptionDisabled3 `queryParam:"inline"` - UIOptionDisabledEnum3 *UIOptionDisabledEnum3 `queryParam:"inline"` +type GetConfigurationProductsUIOptionDisabledUnion5 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIOptionDisabled3 *GetConfigurationProductsUIOptionDisabled3 `queryParam:"inline"` + GetConfigurationProductsUIOptionDisabledEnum3 *GetConfigurationProductsUIOptionDisabledEnum3 `queryParam:"inline"` - Type UIOptionDisabledUnion5Type + Type GetConfigurationProductsUIOptionDisabledUnion5Type } -func CreateUIOptionDisabledUnion5Boolean(boolean bool) UIOptionDisabledUnion5 { - typ := UIOptionDisabledUnion5TypeBoolean +func CreateGetConfigurationProductsUIOptionDisabledUnion5Boolean(boolean bool) GetConfigurationProductsUIOptionDisabledUnion5 { + typ := GetConfigurationProductsUIOptionDisabledUnion5TypeBoolean - return UIOptionDisabledUnion5{ + return GetConfigurationProductsUIOptionDisabledUnion5{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionDisabledUnion5UIOptionDisabled3(uiOptionDisabled3 UIOptionDisabled3) UIOptionDisabledUnion5 { - typ := UIOptionDisabledUnion5TypeUIOptionDisabled3 +func CreateGetConfigurationProductsUIOptionDisabledUnion5GetConfigurationProductsUIOptionDisabled3(getConfigurationProductsUIOptionDisabled3 GetConfigurationProductsUIOptionDisabled3) GetConfigurationProductsUIOptionDisabledUnion5 { + typ := GetConfigurationProductsUIOptionDisabledUnion5TypeGetConfigurationProductsUIOptionDisabled3 - return UIOptionDisabledUnion5{ - UIOptionDisabled3: &uiOptionDisabled3, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion5{ + GetConfigurationProductsUIOptionDisabled3: &getConfigurationProductsUIOptionDisabled3, + Type: typ, } } -func CreateUIOptionDisabledUnion5UIOptionDisabledEnum3(uiOptionDisabledEnum3 UIOptionDisabledEnum3) UIOptionDisabledUnion5 { - typ := UIOptionDisabledUnion5TypeUIOptionDisabledEnum3 +func CreateGetConfigurationProductsUIOptionDisabledUnion5GetConfigurationProductsUIOptionDisabledEnum3(getConfigurationProductsUIOptionDisabledEnum3 GetConfigurationProductsUIOptionDisabledEnum3) GetConfigurationProductsUIOptionDisabledUnion5 { + typ := GetConfigurationProductsUIOptionDisabledUnion5TypeGetConfigurationProductsUIOptionDisabledEnum3 - return UIOptionDisabledUnion5{ - UIOptionDisabledEnum3: &uiOptionDisabledEnum3, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion5{ + GetConfigurationProductsUIOptionDisabledEnum3: &getConfigurationProductsUIOptionDisabledEnum3, + Type: typ, } } -func (u *UIOptionDisabledUnion5) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionDisabledUnion5) UnmarshalJSON(data []byte) error { - var uiOptionDisabled3 UIOptionDisabled3 = UIOptionDisabled3{} - if err := utils.UnmarshalJSON(data, &uiOptionDisabled3, "", true, true); err == nil { - u.UIOptionDisabled3 = &uiOptionDisabled3 - u.Type = UIOptionDisabledUnion5TypeUIOptionDisabled3 + var getConfigurationProductsUIOptionDisabled3 GetConfigurationProductsUIOptionDisabled3 = GetConfigurationProductsUIOptionDisabled3{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionDisabled3, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionDisabled3 = &getConfigurationProductsUIOptionDisabled3 + u.Type = GetConfigurationProductsUIOptionDisabledUnion5TypeGetConfigurationProductsUIOptionDisabled3 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionDisabledUnion5TypeBoolean + u.Type = GetConfigurationProductsUIOptionDisabledUnion5TypeBoolean return nil } - var uiOptionDisabledEnum3 UIOptionDisabledEnum3 = UIOptionDisabledEnum3("") - if err := utils.UnmarshalJSON(data, &uiOptionDisabledEnum3, "", true, true); err == nil { - u.UIOptionDisabledEnum3 = &uiOptionDisabledEnum3 - u.Type = UIOptionDisabledUnion5TypeUIOptionDisabledEnum3 + var getConfigurationProductsUIOptionDisabledEnum3 GetConfigurationProductsUIOptionDisabledEnum3 = GetConfigurationProductsUIOptionDisabledEnum3("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionDisabledEnum3, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionDisabledEnum3 = &getConfigurationProductsUIOptionDisabledEnum3 + u.Type = GetConfigurationProductsUIOptionDisabledUnion5TypeGetConfigurationProductsUIOptionDisabledEnum3 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionDisabledUnion5", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionDisabledUnion5", string(data)) } -func (u UIOptionDisabledUnion5) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionDisabledUnion5) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIOptionDisabled3 != nil { - return utils.MarshalJSON(u.UIOptionDisabled3, "", true) + if u.GetConfigurationProductsUIOptionDisabled3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionDisabled3, "", true) } - if u.UIOptionDisabledEnum3 != nil { - return utils.MarshalJSON(u.UIOptionDisabledEnum3, "", true) + if u.GetConfigurationProductsUIOptionDisabledEnum3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionDisabledEnum3, "", true) } - return nil, errors.New("could not marshal union type UIOptionDisabledUnion5: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionDisabledUnion5: all fields are null") } -type UIOptionHiddenEnum3 string +type GetConfigurationProductsUIOptionHiddenEnum3 string const ( - UIOptionHiddenEnum3Update UIOptionHiddenEnum3 = "update" - UIOptionHiddenEnum3Create UIOptionHiddenEnum3 = "create" + GetConfigurationProductsUIOptionHiddenEnum3Update GetConfigurationProductsUIOptionHiddenEnum3 = "update" + GetConfigurationProductsUIOptionHiddenEnum3Create GetConfigurationProductsUIOptionHiddenEnum3 = "create" ) -func (e UIOptionHiddenEnum3) ToPointer() *UIOptionHiddenEnum3 { +func (e GetConfigurationProductsUIOptionHiddenEnum3) ToPointer() *GetConfigurationProductsUIOptionHiddenEnum3 { return &e } -func (e *UIOptionHiddenEnum3) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIOptionHiddenEnum3) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -1602,240 +1822,262 @@ func (e *UIOptionHiddenEnum3) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIOptionHiddenEnum3(v) + *e = GetConfigurationProductsUIOptionHiddenEnum3(v) return nil default: - return fmt.Errorf("invalid value for UIOptionHiddenEnum3: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIOptionHiddenEnum3: %v", v) } } -type UIOptionHidden3 struct { +type GetConfigurationProductsUIOptionHidden3 struct { Expr string `json:"expr"` } -func (o *UIOptionHidden3) GetExpr() string { +func (g GetConfigurationProductsUIOptionHidden3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionHidden3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionHidden3) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionHiddenUnion5Type string +type GetConfigurationProductsUIOptionHiddenUnion5Type string const ( - UIOptionHiddenUnion5TypeBoolean UIOptionHiddenUnion5Type = "boolean" - UIOptionHiddenUnion5TypeUIOptionHidden3 UIOptionHiddenUnion5Type = "ui:option_hidden_3" - UIOptionHiddenUnion5TypeUIOptionHiddenEnum3 UIOptionHiddenUnion5Type = "ui:option_hidden_enum_3" + GetConfigurationProductsUIOptionHiddenUnion5TypeBoolean GetConfigurationProductsUIOptionHiddenUnion5Type = "boolean" + GetConfigurationProductsUIOptionHiddenUnion5TypeGetConfigurationProductsUIOptionHidden3 GetConfigurationProductsUIOptionHiddenUnion5Type = "getConfigurationProducts_ui:option_hidden_3" + GetConfigurationProductsUIOptionHiddenUnion5TypeGetConfigurationProductsUIOptionHiddenEnum3 GetConfigurationProductsUIOptionHiddenUnion5Type = "getConfigurationProducts_ui:option_hidden_enum_3" ) -type UIOptionHiddenUnion5 struct { - Boolean *bool `queryParam:"inline"` - UIOptionHidden3 *UIOptionHidden3 `queryParam:"inline"` - UIOptionHiddenEnum3 *UIOptionHiddenEnum3 `queryParam:"inline"` +type GetConfigurationProductsUIOptionHiddenUnion5 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIOptionHidden3 *GetConfigurationProductsUIOptionHidden3 `queryParam:"inline"` + GetConfigurationProductsUIOptionHiddenEnum3 *GetConfigurationProductsUIOptionHiddenEnum3 `queryParam:"inline"` - Type UIOptionHiddenUnion5Type + Type GetConfigurationProductsUIOptionHiddenUnion5Type } -func CreateUIOptionHiddenUnion5Boolean(boolean bool) UIOptionHiddenUnion5 { - typ := UIOptionHiddenUnion5TypeBoolean +func CreateGetConfigurationProductsUIOptionHiddenUnion5Boolean(boolean bool) GetConfigurationProductsUIOptionHiddenUnion5 { + typ := GetConfigurationProductsUIOptionHiddenUnion5TypeBoolean - return UIOptionHiddenUnion5{ + return GetConfigurationProductsUIOptionHiddenUnion5{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionHiddenUnion5UIOptionHidden3(uiOptionHidden3 UIOptionHidden3) UIOptionHiddenUnion5 { - typ := UIOptionHiddenUnion5TypeUIOptionHidden3 +func CreateGetConfigurationProductsUIOptionHiddenUnion5GetConfigurationProductsUIOptionHidden3(getConfigurationProductsUIOptionHidden3 GetConfigurationProductsUIOptionHidden3) GetConfigurationProductsUIOptionHiddenUnion5 { + typ := GetConfigurationProductsUIOptionHiddenUnion5TypeGetConfigurationProductsUIOptionHidden3 - return UIOptionHiddenUnion5{ - UIOptionHidden3: &uiOptionHidden3, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion5{ + GetConfigurationProductsUIOptionHidden3: &getConfigurationProductsUIOptionHidden3, + Type: typ, } } -func CreateUIOptionHiddenUnion5UIOptionHiddenEnum3(uiOptionHiddenEnum3 UIOptionHiddenEnum3) UIOptionHiddenUnion5 { - typ := UIOptionHiddenUnion5TypeUIOptionHiddenEnum3 +func CreateGetConfigurationProductsUIOptionHiddenUnion5GetConfigurationProductsUIOptionHiddenEnum3(getConfigurationProductsUIOptionHiddenEnum3 GetConfigurationProductsUIOptionHiddenEnum3) GetConfigurationProductsUIOptionHiddenUnion5 { + typ := GetConfigurationProductsUIOptionHiddenUnion5TypeGetConfigurationProductsUIOptionHiddenEnum3 - return UIOptionHiddenUnion5{ - UIOptionHiddenEnum3: &uiOptionHiddenEnum3, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion5{ + GetConfigurationProductsUIOptionHiddenEnum3: &getConfigurationProductsUIOptionHiddenEnum3, + Type: typ, } } -func (u *UIOptionHiddenUnion5) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionHiddenUnion5) UnmarshalJSON(data []byte) error { - var uiOptionHidden3 UIOptionHidden3 = UIOptionHidden3{} - if err := utils.UnmarshalJSON(data, &uiOptionHidden3, "", true, true); err == nil { - u.UIOptionHidden3 = &uiOptionHidden3 - u.Type = UIOptionHiddenUnion5TypeUIOptionHidden3 + var getConfigurationProductsUIOptionHidden3 GetConfigurationProductsUIOptionHidden3 = GetConfigurationProductsUIOptionHidden3{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionHidden3, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionHidden3 = &getConfigurationProductsUIOptionHidden3 + u.Type = GetConfigurationProductsUIOptionHiddenUnion5TypeGetConfigurationProductsUIOptionHidden3 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionHiddenUnion5TypeBoolean + u.Type = GetConfigurationProductsUIOptionHiddenUnion5TypeBoolean return nil } - var uiOptionHiddenEnum3 UIOptionHiddenEnum3 = UIOptionHiddenEnum3("") - if err := utils.UnmarshalJSON(data, &uiOptionHiddenEnum3, "", true, true); err == nil { - u.UIOptionHiddenEnum3 = &uiOptionHiddenEnum3 - u.Type = UIOptionHiddenUnion5TypeUIOptionHiddenEnum3 + var getConfigurationProductsUIOptionHiddenEnum3 GetConfigurationProductsUIOptionHiddenEnum3 = GetConfigurationProductsUIOptionHiddenEnum3("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionHiddenEnum3, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionHiddenEnum3 = &getConfigurationProductsUIOptionHiddenEnum3 + u.Type = GetConfigurationProductsUIOptionHiddenUnion5TypeGetConfigurationProductsUIOptionHiddenEnum3 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionHiddenUnion5", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionHiddenUnion5", string(data)) } -func (u UIOptionHiddenUnion5) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionHiddenUnion5) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIOptionHidden3 != nil { - return utils.MarshalJSON(u.UIOptionHidden3, "", true) + if u.GetConfigurationProductsUIOptionHidden3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionHidden3, "", true) } - if u.UIOptionHiddenEnum3 != nil { - return utils.MarshalJSON(u.UIOptionHiddenEnum3, "", true) + if u.GetConfigurationProductsUIOptionHiddenEnum3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionHiddenEnum3, "", true) } - return nil, errors.New("could not marshal union type UIOptionHiddenUnion5: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionHiddenUnion5: all fields are null") +} + +type GetConfigurationProductsUIOption6 struct { + Value string `json:"value"` + Label string `json:"label"` + Disabled *GetConfigurationProductsUIOptionDisabledUnion5 `json:"disabled,omitempty"` + Hidden *GetConfigurationProductsUIOptionHiddenUnion5 `json:"hidden,omitempty"` +} + +func (g GetConfigurationProductsUIOption6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type UIOption6 struct { - Value string `json:"value"` - Label string `json:"label"` - Disabled *UIOptionDisabledUnion5 `json:"disabled,omitempty"` - Hidden *UIOptionHiddenUnion5 `json:"hidden,omitempty"` +func (g *GetConfigurationProductsUIOption6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value", "label"}); err != nil { + return err + } + return nil } -func (o *UIOption6) GetValue() string { +func (o *GetConfigurationProductsUIOption6) GetValue() string { if o == nil { return "" } return o.Value } -func (o *UIOption6) GetLabel() string { +func (o *GetConfigurationProductsUIOption6) GetLabel() string { if o == nil { return "" } return o.Label } -func (o *UIOption6) GetDisabled() *UIOptionDisabledUnion5 { +func (o *GetConfigurationProductsUIOption6) GetDisabled() *GetConfigurationProductsUIOptionDisabledUnion5 { if o == nil { return nil } return o.Disabled } -func (o *UIOption6) GetHidden() *UIOptionHiddenUnion5 { +func (o *GetConfigurationProductsUIOption6) GetHidden() *GetConfigurationProductsUIOptionHiddenUnion5 { if o == nil { return nil } return o.Hidden } -type UIOptionUnion2Type string +type GetConfigurationProductsUIOptionUnion2Type string const ( - UIOptionUnion2TypeUIOption6 UIOptionUnion2Type = "ui:option_6" - UIOptionUnion2TypeUIOption7 UIOptionUnion2Type = "ui:option_7" - UIOptionUnion2TypeUIOption8 UIOptionUnion2Type = "ui:option_8" + GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption6 GetConfigurationProductsUIOptionUnion2Type = "getConfigurationProducts_ui:option_6" + GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption7 GetConfigurationProductsUIOptionUnion2Type = "getConfigurationProducts_ui:option_7" + GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption8 GetConfigurationProductsUIOptionUnion2Type = "getConfigurationProducts_ui:option_8" ) -type UIOptionUnion2 struct { - UIOption6 *UIOption6 `queryParam:"inline"` - UIOption7 *UIOption7 `queryParam:"inline"` - UIOption8 *UIOption8 `queryParam:"inline"` +type GetConfigurationProductsUIOptionUnion2 struct { + GetConfigurationProductsUIOption6 *GetConfigurationProductsUIOption6 `queryParam:"inline"` + GetConfigurationProductsUIOption7 *GetConfigurationProductsUIOption7 `queryParam:"inline"` + GetConfigurationProductsUIOption8 *GetConfigurationProductsUIOption8 `queryParam:"inline"` - Type UIOptionUnion2Type + Type GetConfigurationProductsUIOptionUnion2Type } -func CreateUIOptionUnion2UIOption6(uiOption6 UIOption6) UIOptionUnion2 { - typ := UIOptionUnion2TypeUIOption6 +func CreateGetConfigurationProductsUIOptionUnion2GetConfigurationProductsUIOption6(getConfigurationProductsUIOption6 GetConfigurationProductsUIOption6) GetConfigurationProductsUIOptionUnion2 { + typ := GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption6 - return UIOptionUnion2{ - UIOption6: &uiOption6, - Type: typ, + return GetConfigurationProductsUIOptionUnion2{ + GetConfigurationProductsUIOption6: &getConfigurationProductsUIOption6, + Type: typ, } } -func CreateUIOptionUnion2UIOption7(uiOption7 UIOption7) UIOptionUnion2 { - typ := UIOptionUnion2TypeUIOption7 +func CreateGetConfigurationProductsUIOptionUnion2GetConfigurationProductsUIOption7(getConfigurationProductsUIOption7 GetConfigurationProductsUIOption7) GetConfigurationProductsUIOptionUnion2 { + typ := GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption7 - return UIOptionUnion2{ - UIOption7: &uiOption7, - Type: typ, + return GetConfigurationProductsUIOptionUnion2{ + GetConfigurationProductsUIOption7: &getConfigurationProductsUIOption7, + Type: typ, } } -func CreateUIOptionUnion2UIOption8(uiOption8 UIOption8) UIOptionUnion2 { - typ := UIOptionUnion2TypeUIOption8 +func CreateGetConfigurationProductsUIOptionUnion2GetConfigurationProductsUIOption8(getConfigurationProductsUIOption8 GetConfigurationProductsUIOption8) GetConfigurationProductsUIOptionUnion2 { + typ := GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption8 - return UIOptionUnion2{ - UIOption8: &uiOption8, - Type: typ, + return GetConfigurationProductsUIOptionUnion2{ + GetConfigurationProductsUIOption8: &getConfigurationProductsUIOption8, + Type: typ, } } -func (u *UIOptionUnion2) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionUnion2) UnmarshalJSON(data []byte) error { - var uiOption7 UIOption7 = UIOption7{} - if err := utils.UnmarshalJSON(data, &uiOption7, "", true, true); err == nil { - u.UIOption7 = &uiOption7 - u.Type = UIOptionUnion2TypeUIOption7 + var getConfigurationProductsUIOption6 GetConfigurationProductsUIOption6 = GetConfigurationProductsUIOption6{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOption6, "", true, nil); err == nil { + u.GetConfigurationProductsUIOption6 = &getConfigurationProductsUIOption6 + u.Type = GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption6 return nil } - var uiOption8 UIOption8 = UIOption8{} - if err := utils.UnmarshalJSON(data, &uiOption8, "", true, true); err == nil { - u.UIOption8 = &uiOption8 - u.Type = UIOptionUnion2TypeUIOption8 + var getConfigurationProductsUIOption7 GetConfigurationProductsUIOption7 = GetConfigurationProductsUIOption7{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOption7, "", true, nil); err == nil { + u.GetConfigurationProductsUIOption7 = &getConfigurationProductsUIOption7 + u.Type = GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption7 return nil } - var uiOption6 UIOption6 = UIOption6{} - if err := utils.UnmarshalJSON(data, &uiOption6, "", true, true); err == nil { - u.UIOption6 = &uiOption6 - u.Type = UIOptionUnion2TypeUIOption6 + var getConfigurationProductsUIOption8 GetConfigurationProductsUIOption8 = GetConfigurationProductsUIOption8{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOption8, "", true, nil); err == nil { + u.GetConfigurationProductsUIOption8 = &getConfigurationProductsUIOption8 + u.Type = GetConfigurationProductsUIOptionUnion2TypeGetConfigurationProductsUIOption8 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionUnion2", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionUnion2", string(data)) } -func (u UIOptionUnion2) MarshalJSON() ([]byte, error) { - if u.UIOption6 != nil { - return utils.MarshalJSON(u.UIOption6, "", true) +func (u GetConfigurationProductsUIOptionUnion2) MarshalJSON() ([]byte, error) { + if u.GetConfigurationProductsUIOption6 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOption6, "", true) } - if u.UIOption7 != nil { - return utils.MarshalJSON(u.UIOption7, "", true) + if u.GetConfigurationProductsUIOption7 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOption7, "", true) } - if u.UIOption8 != nil { - return utils.MarshalJSON(u.UIOption8, "", true) + if u.GetConfigurationProductsUIOption8 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOption8, "", true) } - return nil, errors.New("could not marshal union type UIOptionUnion2: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionUnion2: all fields are null") } -type UIReadOnlyEnum8 string +type GetConfigurationProductsUIReadOnlyEnum8 string const ( - UIReadOnlyEnum8Update UIReadOnlyEnum8 = "update" - UIReadOnlyEnum8Create UIReadOnlyEnum8 = "create" + GetConfigurationProductsUIReadOnlyEnum8Update GetConfigurationProductsUIReadOnlyEnum8 = "update" + GetConfigurationProductsUIReadOnlyEnum8Create GetConfigurationProductsUIReadOnlyEnum8 = "create" ) -func (e UIReadOnlyEnum8) ToPointer() *UIReadOnlyEnum8 { +func (e GetConfigurationProductsUIReadOnlyEnum8) ToPointer() *GetConfigurationProductsUIReadOnlyEnum8 { return &e } -func (e *UIReadOnlyEnum8) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIReadOnlyEnum8) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -1844,120 +2086,131 @@ func (e *UIReadOnlyEnum8) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIReadOnlyEnum8(v) + *e = GetConfigurationProductsUIReadOnlyEnum8(v) return nil default: - return fmt.Errorf("invalid value for UIReadOnlyEnum8: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIReadOnlyEnum8: %v", v) } } -type UIReadOnly8 struct { +type GetConfigurationProductsUIReadOnly8 struct { Expr string `json:"expr"` } -func (o *UIReadOnly8) GetExpr() string { +func (g GetConfigurationProductsUIReadOnly8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIReadOnly8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIReadOnly8) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIReadOnlyUnion8Type string +type GetConfigurationProductsUIReadOnlyUnion8Type string const ( - UIReadOnlyUnion8TypeBoolean UIReadOnlyUnion8Type = "boolean" - UIReadOnlyUnion8TypeUIReadOnly8 UIReadOnlyUnion8Type = "ui:read-only_8" - UIReadOnlyUnion8TypeUIReadOnlyEnum8 UIReadOnlyUnion8Type = "ui:read-only_enum_8" + GetConfigurationProductsUIReadOnlyUnion8TypeBoolean GetConfigurationProductsUIReadOnlyUnion8Type = "boolean" + GetConfigurationProductsUIReadOnlyUnion8TypeGetConfigurationProductsUIReadOnly8 GetConfigurationProductsUIReadOnlyUnion8Type = "getConfigurationProducts_ui:read-only_8" + GetConfigurationProductsUIReadOnlyUnion8TypeGetConfigurationProductsUIReadOnlyEnum8 GetConfigurationProductsUIReadOnlyUnion8Type = "getConfigurationProducts_ui:read-only_enum_8" ) -type UIReadOnlyUnion8 struct { - Boolean *bool `queryParam:"inline"` - UIReadOnly8 *UIReadOnly8 `queryParam:"inline"` - UIReadOnlyEnum8 *UIReadOnlyEnum8 `queryParam:"inline"` +type GetConfigurationProductsUIReadOnlyUnion8 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIReadOnly8 *GetConfigurationProductsUIReadOnly8 `queryParam:"inline"` + GetConfigurationProductsUIReadOnlyEnum8 *GetConfigurationProductsUIReadOnlyEnum8 `queryParam:"inline"` - Type UIReadOnlyUnion8Type + Type GetConfigurationProductsUIReadOnlyUnion8Type } -func CreateUIReadOnlyUnion8Boolean(boolean bool) UIReadOnlyUnion8 { - typ := UIReadOnlyUnion8TypeBoolean +func CreateGetConfigurationProductsUIReadOnlyUnion8Boolean(boolean bool) GetConfigurationProductsUIReadOnlyUnion8 { + typ := GetConfigurationProductsUIReadOnlyUnion8TypeBoolean - return UIReadOnlyUnion8{ + return GetConfigurationProductsUIReadOnlyUnion8{ Boolean: &boolean, Type: typ, } } -func CreateUIReadOnlyUnion8UIReadOnly8(uiReadOnly8 UIReadOnly8) UIReadOnlyUnion8 { - typ := UIReadOnlyUnion8TypeUIReadOnly8 +func CreateGetConfigurationProductsUIReadOnlyUnion8GetConfigurationProductsUIReadOnly8(getConfigurationProductsUIReadOnly8 GetConfigurationProductsUIReadOnly8) GetConfigurationProductsUIReadOnlyUnion8 { + typ := GetConfigurationProductsUIReadOnlyUnion8TypeGetConfigurationProductsUIReadOnly8 - return UIReadOnlyUnion8{ - UIReadOnly8: &uiReadOnly8, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion8{ + GetConfigurationProductsUIReadOnly8: &getConfigurationProductsUIReadOnly8, + Type: typ, } } -func CreateUIReadOnlyUnion8UIReadOnlyEnum8(uiReadOnlyEnum8 UIReadOnlyEnum8) UIReadOnlyUnion8 { - typ := UIReadOnlyUnion8TypeUIReadOnlyEnum8 +func CreateGetConfigurationProductsUIReadOnlyUnion8GetConfigurationProductsUIReadOnlyEnum8(getConfigurationProductsUIReadOnlyEnum8 GetConfigurationProductsUIReadOnlyEnum8) GetConfigurationProductsUIReadOnlyUnion8 { + typ := GetConfigurationProductsUIReadOnlyUnion8TypeGetConfigurationProductsUIReadOnlyEnum8 - return UIReadOnlyUnion8{ - UIReadOnlyEnum8: &uiReadOnlyEnum8, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion8{ + GetConfigurationProductsUIReadOnlyEnum8: &getConfigurationProductsUIReadOnlyEnum8, + Type: typ, } } -func (u *UIReadOnlyUnion8) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIReadOnlyUnion8) UnmarshalJSON(data []byte) error { - var uiReadOnly8 UIReadOnly8 = UIReadOnly8{} - if err := utils.UnmarshalJSON(data, &uiReadOnly8, "", true, true); err == nil { - u.UIReadOnly8 = &uiReadOnly8 - u.Type = UIReadOnlyUnion8TypeUIReadOnly8 + var getConfigurationProductsUIReadOnly8 GetConfigurationProductsUIReadOnly8 = GetConfigurationProductsUIReadOnly8{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnly8, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnly8 = &getConfigurationProductsUIReadOnly8 + u.Type = GetConfigurationProductsUIReadOnlyUnion8TypeGetConfigurationProductsUIReadOnly8 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIReadOnlyUnion8TypeBoolean + u.Type = GetConfigurationProductsUIReadOnlyUnion8TypeBoolean return nil } - var uiReadOnlyEnum8 UIReadOnlyEnum8 = UIReadOnlyEnum8("") - if err := utils.UnmarshalJSON(data, &uiReadOnlyEnum8, "", true, true); err == nil { - u.UIReadOnlyEnum8 = &uiReadOnlyEnum8 - u.Type = UIReadOnlyUnion8TypeUIReadOnlyEnum8 + var getConfigurationProductsUIReadOnlyEnum8 GetConfigurationProductsUIReadOnlyEnum8 = GetConfigurationProductsUIReadOnlyEnum8("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnlyEnum8, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnlyEnum8 = &getConfigurationProductsUIReadOnlyEnum8 + u.Type = GetConfigurationProductsUIReadOnlyUnion8TypeGetConfigurationProductsUIReadOnlyEnum8 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIReadOnlyUnion8", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIReadOnlyUnion8", string(data)) } -func (u UIReadOnlyUnion8) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIReadOnlyUnion8) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIReadOnly8 != nil { - return utils.MarshalJSON(u.UIReadOnly8, "", true) + if u.GetConfigurationProductsUIReadOnly8 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnly8, "", true) } - if u.UIReadOnlyEnum8 != nil { - return utils.MarshalJSON(u.UIReadOnlyEnum8, "", true) + if u.GetConfigurationProductsUIReadOnlyEnum8 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnlyEnum8, "", true) } - return nil, errors.New("could not marshal union type UIReadOnlyUnion8: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIReadOnlyUnion8: all fields are null") } -type UIHiddenEnum8 string +type GetConfigurationProductsUIHiddenEnum8 string const ( - UIHiddenEnum8Update UIHiddenEnum8 = "update" - UIHiddenEnum8Create UIHiddenEnum8 = "create" + GetConfigurationProductsUIHiddenEnum8Update GetConfigurationProductsUIHiddenEnum8 = "update" + GetConfigurationProductsUIHiddenEnum8Create GetConfigurationProductsUIHiddenEnum8 = "create" ) -func (e UIHiddenEnum8) ToPointer() *UIHiddenEnum8 { +func (e GetConfigurationProductsUIHiddenEnum8) ToPointer() *GetConfigurationProductsUIHiddenEnum8 { return &e } -func (e *UIHiddenEnum8) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIHiddenEnum8) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -1966,120 +2219,131 @@ func (e *UIHiddenEnum8) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIHiddenEnum8(v) + *e = GetConfigurationProductsUIHiddenEnum8(v) return nil default: - return fmt.Errorf("invalid value for UIHiddenEnum8: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIHiddenEnum8: %v", v) } } -type UIHidden8 struct { +type GetConfigurationProductsUIHidden8 struct { Expr string `json:"expr"` } -func (o *UIHidden8) GetExpr() string { +func (g GetConfigurationProductsUIHidden8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIHidden8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIHidden8) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIHiddenUnion8Type string +type GetConfigurationProductsUIHiddenUnion8Type string const ( - UIHiddenUnion8TypeBoolean UIHiddenUnion8Type = "boolean" - UIHiddenUnion8TypeUIHidden8 UIHiddenUnion8Type = "ui:hidden_8" - UIHiddenUnion8TypeUIHiddenEnum8 UIHiddenUnion8Type = "ui:hidden_enum_8" + GetConfigurationProductsUIHiddenUnion8TypeBoolean GetConfigurationProductsUIHiddenUnion8Type = "boolean" + GetConfigurationProductsUIHiddenUnion8TypeGetConfigurationProductsUIHidden8 GetConfigurationProductsUIHiddenUnion8Type = "getConfigurationProducts_ui:hidden_8" + GetConfigurationProductsUIHiddenUnion8TypeGetConfigurationProductsUIHiddenEnum8 GetConfigurationProductsUIHiddenUnion8Type = "getConfigurationProducts_ui:hidden_enum_8" ) -type UIHiddenUnion8 struct { - Boolean *bool `queryParam:"inline"` - UIHidden8 *UIHidden8 `queryParam:"inline"` - UIHiddenEnum8 *UIHiddenEnum8 `queryParam:"inline"` +type GetConfigurationProductsUIHiddenUnion8 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIHidden8 *GetConfigurationProductsUIHidden8 `queryParam:"inline"` + GetConfigurationProductsUIHiddenEnum8 *GetConfigurationProductsUIHiddenEnum8 `queryParam:"inline"` - Type UIHiddenUnion8Type + Type GetConfigurationProductsUIHiddenUnion8Type } -func CreateUIHiddenUnion8Boolean(boolean bool) UIHiddenUnion8 { - typ := UIHiddenUnion8TypeBoolean +func CreateGetConfigurationProductsUIHiddenUnion8Boolean(boolean bool) GetConfigurationProductsUIHiddenUnion8 { + typ := GetConfigurationProductsUIHiddenUnion8TypeBoolean - return UIHiddenUnion8{ + return GetConfigurationProductsUIHiddenUnion8{ Boolean: &boolean, Type: typ, } } -func CreateUIHiddenUnion8UIHidden8(uiHidden8 UIHidden8) UIHiddenUnion8 { - typ := UIHiddenUnion8TypeUIHidden8 +func CreateGetConfigurationProductsUIHiddenUnion8GetConfigurationProductsUIHidden8(getConfigurationProductsUIHidden8 GetConfigurationProductsUIHidden8) GetConfigurationProductsUIHiddenUnion8 { + typ := GetConfigurationProductsUIHiddenUnion8TypeGetConfigurationProductsUIHidden8 - return UIHiddenUnion8{ - UIHidden8: &uiHidden8, - Type: typ, + return GetConfigurationProductsUIHiddenUnion8{ + GetConfigurationProductsUIHidden8: &getConfigurationProductsUIHidden8, + Type: typ, } } -func CreateUIHiddenUnion8UIHiddenEnum8(uiHiddenEnum8 UIHiddenEnum8) UIHiddenUnion8 { - typ := UIHiddenUnion8TypeUIHiddenEnum8 +func CreateGetConfigurationProductsUIHiddenUnion8GetConfigurationProductsUIHiddenEnum8(getConfigurationProductsUIHiddenEnum8 GetConfigurationProductsUIHiddenEnum8) GetConfigurationProductsUIHiddenUnion8 { + typ := GetConfigurationProductsUIHiddenUnion8TypeGetConfigurationProductsUIHiddenEnum8 - return UIHiddenUnion8{ - UIHiddenEnum8: &uiHiddenEnum8, - Type: typ, + return GetConfigurationProductsUIHiddenUnion8{ + GetConfigurationProductsUIHiddenEnum8: &getConfigurationProductsUIHiddenEnum8, + Type: typ, } } -func (u *UIHiddenUnion8) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIHiddenUnion8) UnmarshalJSON(data []byte) error { - var uiHidden8 UIHidden8 = UIHidden8{} - if err := utils.UnmarshalJSON(data, &uiHidden8, "", true, true); err == nil { - u.UIHidden8 = &uiHidden8 - u.Type = UIHiddenUnion8TypeUIHidden8 + var getConfigurationProductsUIHidden8 GetConfigurationProductsUIHidden8 = GetConfigurationProductsUIHidden8{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHidden8, "", true, nil); err == nil { + u.GetConfigurationProductsUIHidden8 = &getConfigurationProductsUIHidden8 + u.Type = GetConfigurationProductsUIHiddenUnion8TypeGetConfigurationProductsUIHidden8 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIHiddenUnion8TypeBoolean + u.Type = GetConfigurationProductsUIHiddenUnion8TypeBoolean return nil } - var uiHiddenEnum8 UIHiddenEnum8 = UIHiddenEnum8("") - if err := utils.UnmarshalJSON(data, &uiHiddenEnum8, "", true, true); err == nil { - u.UIHiddenEnum8 = &uiHiddenEnum8 - u.Type = UIHiddenUnion8TypeUIHiddenEnum8 + var getConfigurationProductsUIHiddenEnum8 GetConfigurationProductsUIHiddenEnum8 = GetConfigurationProductsUIHiddenEnum8("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHiddenEnum8, "", true, nil); err == nil { + u.GetConfigurationProductsUIHiddenEnum8 = &getConfigurationProductsUIHiddenEnum8 + u.Type = GetConfigurationProductsUIHiddenUnion8TypeGetConfigurationProductsUIHiddenEnum8 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIHiddenUnion8", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIHiddenUnion8", string(data)) } -func (u UIHiddenUnion8) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIHiddenUnion8) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIHidden8 != nil { - return utils.MarshalJSON(u.UIHidden8, "", true) + if u.GetConfigurationProductsUIHidden8 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHidden8, "", true) } - if u.UIHiddenEnum8 != nil { - return utils.MarshalJSON(u.UIHiddenEnum8, "", true) + if u.GetConfigurationProductsUIHiddenEnum8 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHiddenEnum8, "", true) } - return nil, errors.New("could not marshal union type UIHiddenUnion8: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIHiddenUnion8: all fields are null") } -type UIDisabledEnum8 string +type GetConfigurationProductsUIDisabledEnum8 string const ( - UIDisabledEnum8Update UIDisabledEnum8 = "update" - UIDisabledEnum8Create UIDisabledEnum8 = "create" + GetConfigurationProductsUIDisabledEnum8Update GetConfigurationProductsUIDisabledEnum8 = "update" + GetConfigurationProductsUIDisabledEnum8Create GetConfigurationProductsUIDisabledEnum8 = "create" ) -func (e UIDisabledEnum8) ToPointer() *UIDisabledEnum8 { +func (e GetConfigurationProductsUIDisabledEnum8) ToPointer() *GetConfigurationProductsUIDisabledEnum8 { return &e } -func (e *UIDisabledEnum8) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIDisabledEnum8) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -2088,244 +2352,332 @@ func (e *UIDisabledEnum8) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIDisabledEnum8(v) + *e = GetConfigurationProductsUIDisabledEnum8(v) return nil default: - return fmt.Errorf("invalid value for UIDisabledEnum8: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIDisabledEnum8: %v", v) } } -type UIDisabled8 struct { +type GetConfigurationProductsUIDisabled8 struct { Expr string `json:"expr"` } -func (o *UIDisabled8) GetExpr() string { +func (g GetConfigurationProductsUIDisabled8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDisabled8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDisabled8) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDisabledUnion8Type string +type GetConfigurationProductsUIDisabledUnion8Type string const ( - UIDisabledUnion8TypeBoolean UIDisabledUnion8Type = "boolean" - UIDisabledUnion8TypeUIDisabled8 UIDisabledUnion8Type = "ui:disabled_8" - UIDisabledUnion8TypeUIDisabledEnum8 UIDisabledUnion8Type = "ui:disabled_enum_8" + GetConfigurationProductsUIDisabledUnion8TypeBoolean GetConfigurationProductsUIDisabledUnion8Type = "boolean" + GetConfigurationProductsUIDisabledUnion8TypeGetConfigurationProductsUIDisabled8 GetConfigurationProductsUIDisabledUnion8Type = "getConfigurationProducts_ui:disabled_8" + GetConfigurationProductsUIDisabledUnion8TypeGetConfigurationProductsUIDisabledEnum8 GetConfigurationProductsUIDisabledUnion8Type = "getConfigurationProducts_ui:disabled_enum_8" ) -type UIDisabledUnion8 struct { - Boolean *bool `queryParam:"inline"` - UIDisabled8 *UIDisabled8 `queryParam:"inline"` - UIDisabledEnum8 *UIDisabledEnum8 `queryParam:"inline"` +type GetConfigurationProductsUIDisabledUnion8 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIDisabled8 *GetConfigurationProductsUIDisabled8 `queryParam:"inline"` + GetConfigurationProductsUIDisabledEnum8 *GetConfigurationProductsUIDisabledEnum8 `queryParam:"inline"` - Type UIDisabledUnion8Type + Type GetConfigurationProductsUIDisabledUnion8Type } -func CreateUIDisabledUnion8Boolean(boolean bool) UIDisabledUnion8 { - typ := UIDisabledUnion8TypeBoolean +func CreateGetConfigurationProductsUIDisabledUnion8Boolean(boolean bool) GetConfigurationProductsUIDisabledUnion8 { + typ := GetConfigurationProductsUIDisabledUnion8TypeBoolean - return UIDisabledUnion8{ + return GetConfigurationProductsUIDisabledUnion8{ Boolean: &boolean, Type: typ, } } -func CreateUIDisabledUnion8UIDisabled8(uiDisabled8 UIDisabled8) UIDisabledUnion8 { - typ := UIDisabledUnion8TypeUIDisabled8 +func CreateGetConfigurationProductsUIDisabledUnion8GetConfigurationProductsUIDisabled8(getConfigurationProductsUIDisabled8 GetConfigurationProductsUIDisabled8) GetConfigurationProductsUIDisabledUnion8 { + typ := GetConfigurationProductsUIDisabledUnion8TypeGetConfigurationProductsUIDisabled8 - return UIDisabledUnion8{ - UIDisabled8: &uiDisabled8, - Type: typ, + return GetConfigurationProductsUIDisabledUnion8{ + GetConfigurationProductsUIDisabled8: &getConfigurationProductsUIDisabled8, + Type: typ, } } -func CreateUIDisabledUnion8UIDisabledEnum8(uiDisabledEnum8 UIDisabledEnum8) UIDisabledUnion8 { - typ := UIDisabledUnion8TypeUIDisabledEnum8 +func CreateGetConfigurationProductsUIDisabledUnion8GetConfigurationProductsUIDisabledEnum8(getConfigurationProductsUIDisabledEnum8 GetConfigurationProductsUIDisabledEnum8) GetConfigurationProductsUIDisabledUnion8 { + typ := GetConfigurationProductsUIDisabledUnion8TypeGetConfigurationProductsUIDisabledEnum8 - return UIDisabledUnion8{ - UIDisabledEnum8: &uiDisabledEnum8, - Type: typ, + return GetConfigurationProductsUIDisabledUnion8{ + GetConfigurationProductsUIDisabledEnum8: &getConfigurationProductsUIDisabledEnum8, + Type: typ, } } -func (u *UIDisabledUnion8) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDisabledUnion8) UnmarshalJSON(data []byte) error { - var uiDisabled8 UIDisabled8 = UIDisabled8{} - if err := utils.UnmarshalJSON(data, &uiDisabled8, "", true, true); err == nil { - u.UIDisabled8 = &uiDisabled8 - u.Type = UIDisabledUnion8TypeUIDisabled8 + var getConfigurationProductsUIDisabled8 GetConfigurationProductsUIDisabled8 = GetConfigurationProductsUIDisabled8{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabled8, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabled8 = &getConfigurationProductsUIDisabled8 + u.Type = GetConfigurationProductsUIDisabledUnion8TypeGetConfigurationProductsUIDisabled8 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIDisabledUnion8TypeBoolean + u.Type = GetConfigurationProductsUIDisabledUnion8TypeBoolean return nil } - var uiDisabledEnum8 UIDisabledEnum8 = UIDisabledEnum8("") - if err := utils.UnmarshalJSON(data, &uiDisabledEnum8, "", true, true); err == nil { - u.UIDisabledEnum8 = &uiDisabledEnum8 - u.Type = UIDisabledUnion8TypeUIDisabledEnum8 + var getConfigurationProductsUIDisabledEnum8 GetConfigurationProductsUIDisabledEnum8 = GetConfigurationProductsUIDisabledEnum8("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabledEnum8, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabledEnum8 = &getConfigurationProductsUIDisabledEnum8 + u.Type = GetConfigurationProductsUIDisabledUnion8TypeGetConfigurationProductsUIDisabledEnum8 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDisabledUnion8", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDisabledUnion8", string(data)) } -func (u UIDisabledUnion8) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDisabledUnion8) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIDisabled8 != nil { - return utils.MarshalJSON(u.UIDisabled8, "", true) + if u.GetConfigurationProductsUIDisabled8 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabled8, "", true) } - if u.UIDisabledEnum8 != nil { - return utils.MarshalJSON(u.UIDisabledEnum8, "", true) + if u.GetConfigurationProductsUIDisabledEnum8 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabledEnum8, "", true) } - return nil, errors.New("could not marshal union type UIDisabledUnion8: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDisabledUnion8: all fields are null") } -type UIDescription8 struct { +type GetConfigurationProductsUIDescription8 struct { Expr string `json:"expr"` } -func (o *UIDescription8) GetExpr() string { +func (g GetConfigurationProductsUIDescription8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDescription8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDescription8) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDescriptionUnion8Type string +type GetConfigurationProductsUIDescriptionUnion8Type string const ( - UIDescriptionUnion8TypeStr UIDescriptionUnion8Type = "str" - UIDescriptionUnion8TypeUIDescription8 UIDescriptionUnion8Type = "ui:description_8" + GetConfigurationProductsUIDescriptionUnion8TypeStr GetConfigurationProductsUIDescriptionUnion8Type = "str" + GetConfigurationProductsUIDescriptionUnion8TypeGetConfigurationProductsUIDescription8 GetConfigurationProductsUIDescriptionUnion8Type = "getConfigurationProducts_ui:description_8" ) -type UIDescriptionUnion8 struct { - Str *string `queryParam:"inline"` - UIDescription8 *UIDescription8 `queryParam:"inline"` +type GetConfigurationProductsUIDescriptionUnion8 struct { + Str *string `queryParam:"inline"` + GetConfigurationProductsUIDescription8 *GetConfigurationProductsUIDescription8 `queryParam:"inline"` - Type UIDescriptionUnion8Type + Type GetConfigurationProductsUIDescriptionUnion8Type } -func CreateUIDescriptionUnion8Str(str string) UIDescriptionUnion8 { - typ := UIDescriptionUnion8TypeStr +func CreateGetConfigurationProductsUIDescriptionUnion8Str(str string) GetConfigurationProductsUIDescriptionUnion8 { + typ := GetConfigurationProductsUIDescriptionUnion8TypeStr - return UIDescriptionUnion8{ + return GetConfigurationProductsUIDescriptionUnion8{ Str: &str, Type: typ, } } -func CreateUIDescriptionUnion8UIDescription8(uiDescription8 UIDescription8) UIDescriptionUnion8 { - typ := UIDescriptionUnion8TypeUIDescription8 +func CreateGetConfigurationProductsUIDescriptionUnion8GetConfigurationProductsUIDescription8(getConfigurationProductsUIDescription8 GetConfigurationProductsUIDescription8) GetConfigurationProductsUIDescriptionUnion8 { + typ := GetConfigurationProductsUIDescriptionUnion8TypeGetConfigurationProductsUIDescription8 - return UIDescriptionUnion8{ - UIDescription8: &uiDescription8, - Type: typ, + return GetConfigurationProductsUIDescriptionUnion8{ + GetConfigurationProductsUIDescription8: &getConfigurationProductsUIDescription8, + Type: typ, } } -func (u *UIDescriptionUnion8) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDescriptionUnion8) UnmarshalJSON(data []byte) error { - var uiDescription8 UIDescription8 = UIDescription8{} - if err := utils.UnmarshalJSON(data, &uiDescription8, "", true, true); err == nil { - u.UIDescription8 = &uiDescription8 - u.Type = UIDescriptionUnion8TypeUIDescription8 + var getConfigurationProductsUIDescription8 GetConfigurationProductsUIDescription8 = GetConfigurationProductsUIDescription8{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDescription8, "", true, nil); err == nil { + u.GetConfigurationProductsUIDescription8 = &getConfigurationProductsUIDescription8 + u.Type = GetConfigurationProductsUIDescriptionUnion8TypeGetConfigurationProductsUIDescription8 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str - u.Type = UIDescriptionUnion8TypeStr + u.Type = GetConfigurationProductsUIDescriptionUnion8TypeStr return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDescriptionUnion8", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDescriptionUnion8", string(data)) } -func (u UIDescriptionUnion8) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDescriptionUnion8) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } - if u.UIDescription8 != nil { - return utils.MarshalJSON(u.UIDescription8, "", true) + if u.GetConfigurationProductsUIDescription8 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDescription8, "", true) } - return nil, errors.New("could not marshal union type UIDescriptionUnion8: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDescriptionUnion8: all fields are null") } -type UIFormattedValue8 struct { +type GetConfigurationProductsUIFormattedValue8 struct { Expr string `json:"expr"` } -func (o *UIFormattedValue8) GetExpr() string { +func (g GetConfigurationProductsUIFormattedValue8) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIFormattedValue8) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIFormattedValue8) GetExpr() string { if o == nil { return "" } return o.Expr } -type DefaultAtBRANDAt447943 struct { +type DefaultAtBRANDAt502540 struct { +} + +func (d DefaultAtBRANDAt502540) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) +} + +func (d *DefaultAtBRANDAt502540) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { + return err + } + return nil } type Default struct { - AtBRANDAt447943 DefaultAtBRANDAt447943 `json:"__@BRAND@447943"` + AtBRANDAt502540 DefaultAtBRANDAt502540 `json:"__@BRAND@502540"` +} + +func (d Default) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(d, "", false) } -func (o *Default) GetAtBRANDAt447943() DefaultAtBRANDAt447943 { +func (d *Default) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &d, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *Default) GetAtBRANDAt502540() DefaultAtBRANDAt502540 { if o == nil { - return DefaultAtBRANDAt447943{} + return DefaultAtBRANDAt502540{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 +} + +type ExampleAtBRANDAt502540 struct { +} + +func (e ExampleAtBRANDAt502540) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) } -type ExampleAtBRANDAt447943 struct { +func (e *ExampleAtBRANDAt502540) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { + return err + } + return nil } type Example struct { - AtBRANDAt447943 ExampleAtBRANDAt447943 `json:"__@BRAND@447943"` + AtBRANDAt502540 ExampleAtBRANDAt502540 `json:"__@BRAND@502540"` +} + +func (e Example) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(e, "", false) +} + +func (e *Example) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *Example) GetAtBRANDAt447943() ExampleAtBRANDAt447943 { +func (o *Example) GetAtBRANDAt502540() ExampleAtBRANDAt502540 { if o == nil { - return ExampleAtBRANDAt447943{} + return ExampleAtBRANDAt502540{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } type PropertiesMultiVercelRegion struct { - Type TypeArray3 `json:"type"` - UIControl UIControlMultiVercelRegion `json:"ui:control"` - Items ItemsString2 `json:"items"` - UIOptions []UIOptionUnion2 `json:"ui:options"` - Description *string `json:"description,omitempty"` - MinItems *float64 `json:"minItems,omitempty"` - MaxItems *float64 `json:"maxItems,omitempty"` - UILabel *string `json:"ui:label,omitempty"` - UIReadOnly *UIReadOnlyUnion8 `json:"ui:read-only,omitempty"` - UIHidden *UIHiddenUnion8 `json:"ui:hidden,omitempty"` - UIDisabled *UIDisabledUnion8 `json:"ui:disabled,omitempty"` - UIDescription *UIDescriptionUnion8 `json:"ui:description,omitempty"` - UIFormattedValue *UIFormattedValue8 `json:"ui:formatted-value,omitempty"` - UIPlaceholder *string `json:"ui:placeholder,omitempty"` - Default []Default `json:"default,omitempty"` - Example []Example `json:"example,omitempty"` -} - -func (o *PropertiesMultiVercelRegion) GetType() TypeArray3 { - if o == nil { - return TypeArray3("") + Type GetConfigurationProductsTypeArray3 `json:"type"` + UIControl UIControlMultiVercelRegion `json:"ui:control"` + Items GetConfigurationProductsItemsString2 `json:"items"` + UIOptions []GetConfigurationProductsUIOptionUnion2 `json:"ui:options"` + Description *string `json:"description,omitempty"` + MinItems *float64 `json:"minItems,omitempty"` + MaxItems *float64 `json:"maxItems,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *GetConfigurationProductsUIReadOnlyUnion8 `json:"ui:read-only,omitempty"` + UIHidden *GetConfigurationProductsUIHiddenUnion8 `json:"ui:hidden,omitempty"` + UIDisabled *GetConfigurationProductsUIDisabledUnion8 `json:"ui:disabled,omitempty"` + UIDescription *GetConfigurationProductsUIDescriptionUnion8 `json:"ui:description,omitempty"` + UIFormattedValue *GetConfigurationProductsUIFormattedValue8 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` + Default []Default `json:"default,omitempty"` + Example []Example `json:"example,omitempty"` +} + +func (p PropertiesMultiVercelRegion) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PropertiesMultiVercelRegion) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"type", "ui:control", "items", "ui:options"}); err != nil { + return err + } + return nil +} + +func (o *PropertiesMultiVercelRegion) GetType() GetConfigurationProductsTypeArray3 { + if o == nil { + return GetConfigurationProductsTypeArray3("") } return o.Type } @@ -2337,16 +2689,16 @@ func (o *PropertiesMultiVercelRegion) GetUIControl() UIControlMultiVercelRegion return o.UIControl } -func (o *PropertiesMultiVercelRegion) GetItems() ItemsString2 { +func (o *PropertiesMultiVercelRegion) GetItems() GetConfigurationProductsItemsString2 { if o == nil { - return ItemsString2{} + return GetConfigurationProductsItemsString2{} } return o.Items } -func (o *PropertiesMultiVercelRegion) GetUIOptions() []UIOptionUnion2 { +func (o *PropertiesMultiVercelRegion) GetUIOptions() []GetConfigurationProductsUIOptionUnion2 { if o == nil { - return []UIOptionUnion2{} + return []GetConfigurationProductsUIOptionUnion2{} } return o.UIOptions } @@ -2379,35 +2731,35 @@ func (o *PropertiesMultiVercelRegion) GetUILabel() *string { return o.UILabel } -func (o *PropertiesMultiVercelRegion) GetUIReadOnly() *UIReadOnlyUnion8 { +func (o *PropertiesMultiVercelRegion) GetUIReadOnly() *GetConfigurationProductsUIReadOnlyUnion8 { if o == nil { return nil } return o.UIReadOnly } -func (o *PropertiesMultiVercelRegion) GetUIHidden() *UIHiddenUnion8 { +func (o *PropertiesMultiVercelRegion) GetUIHidden() *GetConfigurationProductsUIHiddenUnion8 { if o == nil { return nil } return o.UIHidden } -func (o *PropertiesMultiVercelRegion) GetUIDisabled() *UIDisabledUnion8 { +func (o *PropertiesMultiVercelRegion) GetUIDisabled() *GetConfigurationProductsUIDisabledUnion8 { if o == nil { return nil } return o.UIDisabled } -func (o *PropertiesMultiVercelRegion) GetUIDescription() *UIDescriptionUnion8 { +func (o *PropertiesMultiVercelRegion) GetUIDescription() *GetConfigurationProductsUIDescriptionUnion8 { if o == nil { return nil } return o.UIDescription } -func (o *PropertiesMultiVercelRegion) GetUIFormattedValue() *UIFormattedValue8 { +func (o *PropertiesMultiVercelRegion) GetUIFormattedValue() *GetConfigurationProductsUIFormattedValue8 { if o == nil { return nil } @@ -2435,77 +2787,99 @@ func (o *PropertiesMultiVercelRegion) GetExample() []Example { return o.Example } -type TypeString4 string +type GetConfigurationProductsTypeString4 string const ( - TypeString4String TypeString4 = "string" + GetConfigurationProductsTypeString4String GetConfigurationProductsTypeString4 = "string" ) -func (e TypeString4) ToPointer() *TypeString4 { +func (e GetConfigurationProductsTypeString4) ToPointer() *GetConfigurationProductsTypeString4 { return &e } -func (e *TypeString4) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeString4) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "string": - *e = TypeString4(v) + *e = GetConfigurationProductsTypeString4(v) return nil default: - return fmt.Errorf("invalid value for TypeString4: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeString4: %v", v) } } -type UIControlVercelRegion string +type GetConfigurationProductsUIControlVercelRegion string const ( - UIControlVercelRegionVercelRegion UIControlVercelRegion = "vercel-region" + GetConfigurationProductsUIControlVercelRegionVercelRegion GetConfigurationProductsUIControlVercelRegion = "vercel-region" ) -func (e UIControlVercelRegion) ToPointer() *UIControlVercelRegion { +func (e GetConfigurationProductsUIControlVercelRegion) ToPointer() *GetConfigurationProductsUIControlVercelRegion { return &e } -func (e *UIControlVercelRegion) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIControlVercelRegion) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "vercel-region": - *e = UIControlVercelRegion(v) + *e = GetConfigurationProductsUIControlVercelRegion(v) return nil default: - return fmt.Errorf("invalid value for UIControlVercelRegion: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIControlVercelRegion: %v", v) } } -type UIOptionValueAtBRANDAt4479431 struct { +type UIOptionValueAtBRANDAt5025401 struct { } -type UIOptionValue1 struct { - AtBRANDAt447943 UIOptionValueAtBRANDAt4479431 `json:"__@BRAND@447943"` +func (u UIOptionValueAtBRANDAt5025401) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) } -func (o *UIOptionValue1) GetAtBRANDAt447943() UIOptionValueAtBRANDAt4479431 { +func (u *UIOptionValueAtBRANDAt5025401) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + +type GetConfigurationProductsUIOptionValue1 struct { + AtBRANDAt502540 UIOptionValueAtBRANDAt5025401 `json:"__@BRAND@502540"` +} + +func (g GetConfigurationProductsUIOptionValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionValue1) GetAtBRANDAt502540() UIOptionValueAtBRANDAt5025401 { if o == nil { - return UIOptionValueAtBRANDAt4479431{} + return UIOptionValueAtBRANDAt5025401{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type UIOptionDisabledEnum2 string +type GetConfigurationProductsUIOptionDisabledEnum2 string const ( - UIOptionDisabledEnum2Update UIOptionDisabledEnum2 = "update" - UIOptionDisabledEnum2Create UIOptionDisabledEnum2 = "create" + GetConfigurationProductsUIOptionDisabledEnum2Update GetConfigurationProductsUIOptionDisabledEnum2 = "update" + GetConfigurationProductsUIOptionDisabledEnum2Create GetConfigurationProductsUIOptionDisabledEnum2 = "create" ) -func (e UIOptionDisabledEnum2) ToPointer() *UIOptionDisabledEnum2 { +func (e GetConfigurationProductsUIOptionDisabledEnum2) ToPointer() *GetConfigurationProductsUIOptionDisabledEnum2 { return &e } -func (e *UIOptionDisabledEnum2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIOptionDisabledEnum2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -2514,120 +2888,131 @@ func (e *UIOptionDisabledEnum2) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIOptionDisabledEnum2(v) + *e = GetConfigurationProductsUIOptionDisabledEnum2(v) return nil default: - return fmt.Errorf("invalid value for UIOptionDisabledEnum2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIOptionDisabledEnum2: %v", v) } } -type UIOptionDisabled2 struct { +type GetConfigurationProductsUIOptionDisabled2 struct { Expr string `json:"expr"` } -func (o *UIOptionDisabled2) GetExpr() string { +func (g GetConfigurationProductsUIOptionDisabled2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionDisabled2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionDisabled2) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionDisabledUnion4Type string +type GetConfigurationProductsUIOptionDisabledUnion4Type string const ( - UIOptionDisabledUnion4TypeBoolean UIOptionDisabledUnion4Type = "boolean" - UIOptionDisabledUnion4TypeUIOptionDisabled2 UIOptionDisabledUnion4Type = "ui:option_disabled_2" - UIOptionDisabledUnion4TypeUIOptionDisabledEnum2 UIOptionDisabledUnion4Type = "ui:option_disabled_enum_2" + GetConfigurationProductsUIOptionDisabledUnion4TypeBoolean GetConfigurationProductsUIOptionDisabledUnion4Type = "boolean" + GetConfigurationProductsUIOptionDisabledUnion4TypeGetConfigurationProductsUIOptionDisabled2 GetConfigurationProductsUIOptionDisabledUnion4Type = "getConfigurationProducts_ui:option_disabled_2" + GetConfigurationProductsUIOptionDisabledUnion4TypeGetConfigurationProductsUIOptionDisabledEnum2 GetConfigurationProductsUIOptionDisabledUnion4Type = "getConfigurationProducts_ui:option_disabled_enum_2" ) -type UIOptionDisabledUnion4 struct { - Boolean *bool `queryParam:"inline"` - UIOptionDisabled2 *UIOptionDisabled2 `queryParam:"inline"` - UIOptionDisabledEnum2 *UIOptionDisabledEnum2 `queryParam:"inline"` +type GetConfigurationProductsUIOptionDisabledUnion4 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIOptionDisabled2 *GetConfigurationProductsUIOptionDisabled2 `queryParam:"inline"` + GetConfigurationProductsUIOptionDisabledEnum2 *GetConfigurationProductsUIOptionDisabledEnum2 `queryParam:"inline"` - Type UIOptionDisabledUnion4Type + Type GetConfigurationProductsUIOptionDisabledUnion4Type } -func CreateUIOptionDisabledUnion4Boolean(boolean bool) UIOptionDisabledUnion4 { - typ := UIOptionDisabledUnion4TypeBoolean +func CreateGetConfigurationProductsUIOptionDisabledUnion4Boolean(boolean bool) GetConfigurationProductsUIOptionDisabledUnion4 { + typ := GetConfigurationProductsUIOptionDisabledUnion4TypeBoolean - return UIOptionDisabledUnion4{ + return GetConfigurationProductsUIOptionDisabledUnion4{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionDisabledUnion4UIOptionDisabled2(uiOptionDisabled2 UIOptionDisabled2) UIOptionDisabledUnion4 { - typ := UIOptionDisabledUnion4TypeUIOptionDisabled2 +func CreateGetConfigurationProductsUIOptionDisabledUnion4GetConfigurationProductsUIOptionDisabled2(getConfigurationProductsUIOptionDisabled2 GetConfigurationProductsUIOptionDisabled2) GetConfigurationProductsUIOptionDisabledUnion4 { + typ := GetConfigurationProductsUIOptionDisabledUnion4TypeGetConfigurationProductsUIOptionDisabled2 - return UIOptionDisabledUnion4{ - UIOptionDisabled2: &uiOptionDisabled2, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion4{ + GetConfigurationProductsUIOptionDisabled2: &getConfigurationProductsUIOptionDisabled2, + Type: typ, } } -func CreateUIOptionDisabledUnion4UIOptionDisabledEnum2(uiOptionDisabledEnum2 UIOptionDisabledEnum2) UIOptionDisabledUnion4 { - typ := UIOptionDisabledUnion4TypeUIOptionDisabledEnum2 +func CreateGetConfigurationProductsUIOptionDisabledUnion4GetConfigurationProductsUIOptionDisabledEnum2(getConfigurationProductsUIOptionDisabledEnum2 GetConfigurationProductsUIOptionDisabledEnum2) GetConfigurationProductsUIOptionDisabledUnion4 { + typ := GetConfigurationProductsUIOptionDisabledUnion4TypeGetConfigurationProductsUIOptionDisabledEnum2 - return UIOptionDisabledUnion4{ - UIOptionDisabledEnum2: &uiOptionDisabledEnum2, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion4{ + GetConfigurationProductsUIOptionDisabledEnum2: &getConfigurationProductsUIOptionDisabledEnum2, + Type: typ, } } -func (u *UIOptionDisabledUnion4) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionDisabledUnion4) UnmarshalJSON(data []byte) error { - var uiOptionDisabled2 UIOptionDisabled2 = UIOptionDisabled2{} - if err := utils.UnmarshalJSON(data, &uiOptionDisabled2, "", true, true); err == nil { - u.UIOptionDisabled2 = &uiOptionDisabled2 - u.Type = UIOptionDisabledUnion4TypeUIOptionDisabled2 + var getConfigurationProductsUIOptionDisabled2 GetConfigurationProductsUIOptionDisabled2 = GetConfigurationProductsUIOptionDisabled2{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionDisabled2, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionDisabled2 = &getConfigurationProductsUIOptionDisabled2 + u.Type = GetConfigurationProductsUIOptionDisabledUnion4TypeGetConfigurationProductsUIOptionDisabled2 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionDisabledUnion4TypeBoolean + u.Type = GetConfigurationProductsUIOptionDisabledUnion4TypeBoolean return nil } - var uiOptionDisabledEnum2 UIOptionDisabledEnum2 = UIOptionDisabledEnum2("") - if err := utils.UnmarshalJSON(data, &uiOptionDisabledEnum2, "", true, true); err == nil { - u.UIOptionDisabledEnum2 = &uiOptionDisabledEnum2 - u.Type = UIOptionDisabledUnion4TypeUIOptionDisabledEnum2 + var getConfigurationProductsUIOptionDisabledEnum2 GetConfigurationProductsUIOptionDisabledEnum2 = GetConfigurationProductsUIOptionDisabledEnum2("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionDisabledEnum2, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionDisabledEnum2 = &getConfigurationProductsUIOptionDisabledEnum2 + u.Type = GetConfigurationProductsUIOptionDisabledUnion4TypeGetConfigurationProductsUIOptionDisabledEnum2 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionDisabledUnion4", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionDisabledUnion4", string(data)) } -func (u UIOptionDisabledUnion4) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionDisabledUnion4) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIOptionDisabled2 != nil { - return utils.MarshalJSON(u.UIOptionDisabled2, "", true) + if u.GetConfigurationProductsUIOptionDisabled2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionDisabled2, "", true) } - if u.UIOptionDisabledEnum2 != nil { - return utils.MarshalJSON(u.UIOptionDisabledEnum2, "", true) + if u.GetConfigurationProductsUIOptionDisabledEnum2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionDisabledEnum2, "", true) } - return nil, errors.New("could not marshal union type UIOptionDisabledUnion4: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionDisabledUnion4: all fields are null") } -type UIOptionHiddenEnum2 string +type GetConfigurationProductsUIOptionHiddenEnum2 string const ( - UIOptionHiddenEnum2Update UIOptionHiddenEnum2 = "update" - UIOptionHiddenEnum2Create UIOptionHiddenEnum2 = "create" + GetConfigurationProductsUIOptionHiddenEnum2Update GetConfigurationProductsUIOptionHiddenEnum2 = "update" + GetConfigurationProductsUIOptionHiddenEnum2Create GetConfigurationProductsUIOptionHiddenEnum2 = "create" ) -func (e UIOptionHiddenEnum2) ToPointer() *UIOptionHiddenEnum2 { +func (e GetConfigurationProductsUIOptionHiddenEnum2) ToPointer() *GetConfigurationProductsUIOptionHiddenEnum2 { return &e } -func (e *UIOptionHiddenEnum2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIOptionHiddenEnum2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -2636,161 +3021,205 @@ func (e *UIOptionHiddenEnum2) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIOptionHiddenEnum2(v) + *e = GetConfigurationProductsUIOptionHiddenEnum2(v) return nil default: - return fmt.Errorf("invalid value for UIOptionHiddenEnum2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIOptionHiddenEnum2: %v", v) } } -type UIOptionHidden2 struct { +type GetConfigurationProductsUIOptionHidden2 struct { Expr string `json:"expr"` } -func (o *UIOptionHidden2) GetExpr() string { +func (g GetConfigurationProductsUIOptionHidden2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionHidden2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionHidden2) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionHiddenUnion4Type string +type GetConfigurationProductsUIOptionHiddenUnion4Type string const ( - UIOptionHiddenUnion4TypeBoolean UIOptionHiddenUnion4Type = "boolean" - UIOptionHiddenUnion4TypeUIOptionHidden2 UIOptionHiddenUnion4Type = "ui:option_hidden_2" - UIOptionHiddenUnion4TypeUIOptionHiddenEnum2 UIOptionHiddenUnion4Type = "ui:option_hidden_enum_2" + GetConfigurationProductsUIOptionHiddenUnion4TypeBoolean GetConfigurationProductsUIOptionHiddenUnion4Type = "boolean" + GetConfigurationProductsUIOptionHiddenUnion4TypeGetConfigurationProductsUIOptionHidden2 GetConfigurationProductsUIOptionHiddenUnion4Type = "getConfigurationProducts_ui:option_hidden_2" + GetConfigurationProductsUIOptionHiddenUnion4TypeGetConfigurationProductsUIOptionHiddenEnum2 GetConfigurationProductsUIOptionHiddenUnion4Type = "getConfigurationProducts_ui:option_hidden_enum_2" ) -type UIOptionHiddenUnion4 struct { - Boolean *bool `queryParam:"inline"` - UIOptionHidden2 *UIOptionHidden2 `queryParam:"inline"` - UIOptionHiddenEnum2 *UIOptionHiddenEnum2 `queryParam:"inline"` +type GetConfigurationProductsUIOptionHiddenUnion4 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIOptionHidden2 *GetConfigurationProductsUIOptionHidden2 `queryParam:"inline"` + GetConfigurationProductsUIOptionHiddenEnum2 *GetConfigurationProductsUIOptionHiddenEnum2 `queryParam:"inline"` - Type UIOptionHiddenUnion4Type + Type GetConfigurationProductsUIOptionHiddenUnion4Type } -func CreateUIOptionHiddenUnion4Boolean(boolean bool) UIOptionHiddenUnion4 { - typ := UIOptionHiddenUnion4TypeBoolean +func CreateGetConfigurationProductsUIOptionHiddenUnion4Boolean(boolean bool) GetConfigurationProductsUIOptionHiddenUnion4 { + typ := GetConfigurationProductsUIOptionHiddenUnion4TypeBoolean - return UIOptionHiddenUnion4{ + return GetConfigurationProductsUIOptionHiddenUnion4{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionHiddenUnion4UIOptionHidden2(uiOptionHidden2 UIOptionHidden2) UIOptionHiddenUnion4 { - typ := UIOptionHiddenUnion4TypeUIOptionHidden2 +func CreateGetConfigurationProductsUIOptionHiddenUnion4GetConfigurationProductsUIOptionHidden2(getConfigurationProductsUIOptionHidden2 GetConfigurationProductsUIOptionHidden2) GetConfigurationProductsUIOptionHiddenUnion4 { + typ := GetConfigurationProductsUIOptionHiddenUnion4TypeGetConfigurationProductsUIOptionHidden2 - return UIOptionHiddenUnion4{ - UIOptionHidden2: &uiOptionHidden2, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion4{ + GetConfigurationProductsUIOptionHidden2: &getConfigurationProductsUIOptionHidden2, + Type: typ, } } -func CreateUIOptionHiddenUnion4UIOptionHiddenEnum2(uiOptionHiddenEnum2 UIOptionHiddenEnum2) UIOptionHiddenUnion4 { - typ := UIOptionHiddenUnion4TypeUIOptionHiddenEnum2 +func CreateGetConfigurationProductsUIOptionHiddenUnion4GetConfigurationProductsUIOptionHiddenEnum2(getConfigurationProductsUIOptionHiddenEnum2 GetConfigurationProductsUIOptionHiddenEnum2) GetConfigurationProductsUIOptionHiddenUnion4 { + typ := GetConfigurationProductsUIOptionHiddenUnion4TypeGetConfigurationProductsUIOptionHiddenEnum2 - return UIOptionHiddenUnion4{ - UIOptionHiddenEnum2: &uiOptionHiddenEnum2, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion4{ + GetConfigurationProductsUIOptionHiddenEnum2: &getConfigurationProductsUIOptionHiddenEnum2, + Type: typ, } } -func (u *UIOptionHiddenUnion4) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionHiddenUnion4) UnmarshalJSON(data []byte) error { - var uiOptionHidden2 UIOptionHidden2 = UIOptionHidden2{} - if err := utils.UnmarshalJSON(data, &uiOptionHidden2, "", true, true); err == nil { - u.UIOptionHidden2 = &uiOptionHidden2 - u.Type = UIOptionHiddenUnion4TypeUIOptionHidden2 + var getConfigurationProductsUIOptionHidden2 GetConfigurationProductsUIOptionHidden2 = GetConfigurationProductsUIOptionHidden2{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionHidden2, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionHidden2 = &getConfigurationProductsUIOptionHidden2 + u.Type = GetConfigurationProductsUIOptionHiddenUnion4TypeGetConfigurationProductsUIOptionHidden2 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionHiddenUnion4TypeBoolean + u.Type = GetConfigurationProductsUIOptionHiddenUnion4TypeBoolean return nil } - var uiOptionHiddenEnum2 UIOptionHiddenEnum2 = UIOptionHiddenEnum2("") - if err := utils.UnmarshalJSON(data, &uiOptionHiddenEnum2, "", true, true); err == nil { - u.UIOptionHiddenEnum2 = &uiOptionHiddenEnum2 - u.Type = UIOptionHiddenUnion4TypeUIOptionHiddenEnum2 + var getConfigurationProductsUIOptionHiddenEnum2 GetConfigurationProductsUIOptionHiddenEnum2 = GetConfigurationProductsUIOptionHiddenEnum2("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionHiddenEnum2, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionHiddenEnum2 = &getConfigurationProductsUIOptionHiddenEnum2 + u.Type = GetConfigurationProductsUIOptionHiddenUnion4TypeGetConfigurationProductsUIOptionHiddenEnum2 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionHiddenUnion4", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionHiddenUnion4", string(data)) } -func (u UIOptionHiddenUnion4) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionHiddenUnion4) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIOptionHidden2 != nil { - return utils.MarshalJSON(u.UIOptionHidden2, "", true) + if u.GetConfigurationProductsUIOptionHidden2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionHidden2, "", true) } - if u.UIOptionHiddenEnum2 != nil { - return utils.MarshalJSON(u.UIOptionHiddenEnum2, "", true) + if u.GetConfigurationProductsUIOptionHiddenEnum2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionHiddenEnum2, "", true) } - return nil, errors.New("could not marshal union type UIOptionHiddenUnion4: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionHiddenUnion4: all fields are null") +} + +type GetConfigurationProductsUIOption5 struct { + Value GetConfigurationProductsUIOptionValue1 `json:"value"` + Disabled *GetConfigurationProductsUIOptionDisabledUnion4 `json:"disabled,omitempty"` + Hidden *GetConfigurationProductsUIOptionHiddenUnion4 `json:"hidden,omitempty"` } -type UIOption5 struct { - Value UIOptionValue1 `json:"value"` - Disabled *UIOptionDisabledUnion4 `json:"disabled,omitempty"` - Hidden *UIOptionHiddenUnion4 `json:"hidden,omitempty"` +func (g GetConfigurationProductsUIOption5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOption5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value"}); err != nil { + return err + } + return nil } -func (o *UIOption5) GetValue() UIOptionValue1 { +func (o *GetConfigurationProductsUIOption5) GetValue() GetConfigurationProductsUIOptionValue1 { if o == nil { - return UIOptionValue1{} + return GetConfigurationProductsUIOptionValue1{} } return o.Value } -func (o *UIOption5) GetDisabled() *UIOptionDisabledUnion4 { +func (o *GetConfigurationProductsUIOption5) GetDisabled() *GetConfigurationProductsUIOptionDisabledUnion4 { if o == nil { return nil } return o.Disabled } -func (o *UIOption5) GetHidden() *UIOptionHiddenUnion4 { +func (o *GetConfigurationProductsUIOption5) GetHidden() *GetConfigurationProductsUIOptionHiddenUnion4 { if o == nil { return nil } return o.Hidden } -type UIOptionAtBRANDAt4479431 struct { +type UIOptionAtBRANDAt5025401 struct { } -type UIOption4 struct { - AtBRANDAt447943 UIOptionAtBRANDAt4479431 `json:"__@BRAND@447943"` +func (u UIOptionAtBRANDAt5025401) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) } -func (o *UIOption4) GetAtBRANDAt447943() UIOptionAtBRANDAt4479431 { +func (u *UIOptionAtBRANDAt5025401) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + +type GetConfigurationProductsUIOption4 struct { + AtBRANDAt502540 UIOptionAtBRANDAt5025401 `json:"__@BRAND@502540"` +} + +func (g GetConfigurationProductsUIOption4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOption4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOption4) GetAtBRANDAt502540() UIOptionAtBRANDAt5025401 { if o == nil { - return UIOptionAtBRANDAt4479431{} + return UIOptionAtBRANDAt5025401{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type UIOptionDisabledEnum1 string +type GetConfigurationProductsUIOptionDisabledEnum1 string const ( - UIOptionDisabledEnum1Update UIOptionDisabledEnum1 = "update" - UIOptionDisabledEnum1Create UIOptionDisabledEnum1 = "create" + GetConfigurationProductsUIOptionDisabledEnum1Update GetConfigurationProductsUIOptionDisabledEnum1 = "update" + GetConfigurationProductsUIOptionDisabledEnum1Create GetConfigurationProductsUIOptionDisabledEnum1 = "create" ) -func (e UIOptionDisabledEnum1) ToPointer() *UIOptionDisabledEnum1 { +func (e GetConfigurationProductsUIOptionDisabledEnum1) ToPointer() *GetConfigurationProductsUIOptionDisabledEnum1 { return &e } -func (e *UIOptionDisabledEnum1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIOptionDisabledEnum1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -2799,120 +3228,131 @@ func (e *UIOptionDisabledEnum1) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIOptionDisabledEnum1(v) + *e = GetConfigurationProductsUIOptionDisabledEnum1(v) return nil default: - return fmt.Errorf("invalid value for UIOptionDisabledEnum1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIOptionDisabledEnum1: %v", v) } } -type UIOptionDisabled1 struct { +type GetConfigurationProductsUIOptionDisabled1 struct { Expr string `json:"expr"` } -func (o *UIOptionDisabled1) GetExpr() string { +func (g GetConfigurationProductsUIOptionDisabled1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionDisabled1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionDisabled1) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionDisabledUnion3Type string +type GetConfigurationProductsUIOptionDisabledUnion3Type string const ( - UIOptionDisabledUnion3TypeBoolean UIOptionDisabledUnion3Type = "boolean" - UIOptionDisabledUnion3TypeUIOptionDisabled1 UIOptionDisabledUnion3Type = "ui:option_disabled_1" - UIOptionDisabledUnion3TypeUIOptionDisabledEnum1 UIOptionDisabledUnion3Type = "ui:option_disabled_enum_1" + GetConfigurationProductsUIOptionDisabledUnion3TypeBoolean GetConfigurationProductsUIOptionDisabledUnion3Type = "boolean" + GetConfigurationProductsUIOptionDisabledUnion3TypeGetConfigurationProductsUIOptionDisabled1 GetConfigurationProductsUIOptionDisabledUnion3Type = "getConfigurationProducts_ui:option_disabled_1" + GetConfigurationProductsUIOptionDisabledUnion3TypeGetConfigurationProductsUIOptionDisabledEnum1 GetConfigurationProductsUIOptionDisabledUnion3Type = "getConfigurationProducts_ui:option_disabled_enum_1" ) -type UIOptionDisabledUnion3 struct { - Boolean *bool `queryParam:"inline"` - UIOptionDisabled1 *UIOptionDisabled1 `queryParam:"inline"` - UIOptionDisabledEnum1 *UIOptionDisabledEnum1 `queryParam:"inline"` +type GetConfigurationProductsUIOptionDisabledUnion3 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIOptionDisabled1 *GetConfigurationProductsUIOptionDisabled1 `queryParam:"inline"` + GetConfigurationProductsUIOptionDisabledEnum1 *GetConfigurationProductsUIOptionDisabledEnum1 `queryParam:"inline"` - Type UIOptionDisabledUnion3Type + Type GetConfigurationProductsUIOptionDisabledUnion3Type } -func CreateUIOptionDisabledUnion3Boolean(boolean bool) UIOptionDisabledUnion3 { - typ := UIOptionDisabledUnion3TypeBoolean +func CreateGetConfigurationProductsUIOptionDisabledUnion3Boolean(boolean bool) GetConfigurationProductsUIOptionDisabledUnion3 { + typ := GetConfigurationProductsUIOptionDisabledUnion3TypeBoolean - return UIOptionDisabledUnion3{ + return GetConfigurationProductsUIOptionDisabledUnion3{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionDisabledUnion3UIOptionDisabled1(uiOptionDisabled1 UIOptionDisabled1) UIOptionDisabledUnion3 { - typ := UIOptionDisabledUnion3TypeUIOptionDisabled1 +func CreateGetConfigurationProductsUIOptionDisabledUnion3GetConfigurationProductsUIOptionDisabled1(getConfigurationProductsUIOptionDisabled1 GetConfigurationProductsUIOptionDisabled1) GetConfigurationProductsUIOptionDisabledUnion3 { + typ := GetConfigurationProductsUIOptionDisabledUnion3TypeGetConfigurationProductsUIOptionDisabled1 - return UIOptionDisabledUnion3{ - UIOptionDisabled1: &uiOptionDisabled1, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion3{ + GetConfigurationProductsUIOptionDisabled1: &getConfigurationProductsUIOptionDisabled1, + Type: typ, } } -func CreateUIOptionDisabledUnion3UIOptionDisabledEnum1(uiOptionDisabledEnum1 UIOptionDisabledEnum1) UIOptionDisabledUnion3 { - typ := UIOptionDisabledUnion3TypeUIOptionDisabledEnum1 +func CreateGetConfigurationProductsUIOptionDisabledUnion3GetConfigurationProductsUIOptionDisabledEnum1(getConfigurationProductsUIOptionDisabledEnum1 GetConfigurationProductsUIOptionDisabledEnum1) GetConfigurationProductsUIOptionDisabledUnion3 { + typ := GetConfigurationProductsUIOptionDisabledUnion3TypeGetConfigurationProductsUIOptionDisabledEnum1 - return UIOptionDisabledUnion3{ - UIOptionDisabledEnum1: &uiOptionDisabledEnum1, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion3{ + GetConfigurationProductsUIOptionDisabledEnum1: &getConfigurationProductsUIOptionDisabledEnum1, + Type: typ, } } -func (u *UIOptionDisabledUnion3) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionDisabledUnion3) UnmarshalJSON(data []byte) error { - var uiOptionDisabled1 UIOptionDisabled1 = UIOptionDisabled1{} - if err := utils.UnmarshalJSON(data, &uiOptionDisabled1, "", true, true); err == nil { - u.UIOptionDisabled1 = &uiOptionDisabled1 - u.Type = UIOptionDisabledUnion3TypeUIOptionDisabled1 + var getConfigurationProductsUIOptionDisabled1 GetConfigurationProductsUIOptionDisabled1 = GetConfigurationProductsUIOptionDisabled1{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionDisabled1, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionDisabled1 = &getConfigurationProductsUIOptionDisabled1 + u.Type = GetConfigurationProductsUIOptionDisabledUnion3TypeGetConfigurationProductsUIOptionDisabled1 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionDisabledUnion3TypeBoolean + u.Type = GetConfigurationProductsUIOptionDisabledUnion3TypeBoolean return nil } - var uiOptionDisabledEnum1 UIOptionDisabledEnum1 = UIOptionDisabledEnum1("") - if err := utils.UnmarshalJSON(data, &uiOptionDisabledEnum1, "", true, true); err == nil { - u.UIOptionDisabledEnum1 = &uiOptionDisabledEnum1 - u.Type = UIOptionDisabledUnion3TypeUIOptionDisabledEnum1 + var getConfigurationProductsUIOptionDisabledEnum1 GetConfigurationProductsUIOptionDisabledEnum1 = GetConfigurationProductsUIOptionDisabledEnum1("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionDisabledEnum1, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionDisabledEnum1 = &getConfigurationProductsUIOptionDisabledEnum1 + u.Type = GetConfigurationProductsUIOptionDisabledUnion3TypeGetConfigurationProductsUIOptionDisabledEnum1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionDisabledUnion3", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionDisabledUnion3", string(data)) } -func (u UIOptionDisabledUnion3) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionDisabledUnion3) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIOptionDisabled1 != nil { - return utils.MarshalJSON(u.UIOptionDisabled1, "", true) + if u.GetConfigurationProductsUIOptionDisabled1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionDisabled1, "", true) } - if u.UIOptionDisabledEnum1 != nil { - return utils.MarshalJSON(u.UIOptionDisabledEnum1, "", true) + if u.GetConfigurationProductsUIOptionDisabledEnum1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionDisabledEnum1, "", true) } - return nil, errors.New("could not marshal union type UIOptionDisabledUnion3: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionDisabledUnion3: all fields are null") } -type UIOptionHiddenEnum1 string +type GetConfigurationProductsUIOptionHiddenEnum1 string const ( - UIOptionHiddenEnum1Update UIOptionHiddenEnum1 = "update" - UIOptionHiddenEnum1Create UIOptionHiddenEnum1 = "create" + GetConfigurationProductsUIOptionHiddenEnum1Update GetConfigurationProductsUIOptionHiddenEnum1 = "update" + GetConfigurationProductsUIOptionHiddenEnum1Create GetConfigurationProductsUIOptionHiddenEnum1 = "create" ) -func (e UIOptionHiddenEnum1) ToPointer() *UIOptionHiddenEnum1 { +func (e GetConfigurationProductsUIOptionHiddenEnum1) ToPointer() *GetConfigurationProductsUIOptionHiddenEnum1 { return &e } -func (e *UIOptionHiddenEnum1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIOptionHiddenEnum1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -2921,282 +3361,370 @@ func (e *UIOptionHiddenEnum1) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIOptionHiddenEnum1(v) + *e = GetConfigurationProductsUIOptionHiddenEnum1(v) return nil default: - return fmt.Errorf("invalid value for UIOptionHiddenEnum1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIOptionHiddenEnum1: %v", v) } } -type UIOptionHidden1 struct { +type GetConfigurationProductsUIOptionHidden1 struct { Expr string `json:"expr"` } -func (o *UIOptionHidden1) GetExpr() string { +func (g GetConfigurationProductsUIOptionHidden1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOptionHidden1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOptionHidden1) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionHiddenUnion3Type string +type GetConfigurationProductsUIOptionHiddenUnion3Type string const ( - UIOptionHiddenUnion3TypeBoolean UIOptionHiddenUnion3Type = "boolean" - UIOptionHiddenUnion3TypeUIOptionHidden1 UIOptionHiddenUnion3Type = "ui:option_hidden_1" - UIOptionHiddenUnion3TypeUIOptionHiddenEnum1 UIOptionHiddenUnion3Type = "ui:option_hidden_enum_1" + GetConfigurationProductsUIOptionHiddenUnion3TypeBoolean GetConfigurationProductsUIOptionHiddenUnion3Type = "boolean" + GetConfigurationProductsUIOptionHiddenUnion3TypeGetConfigurationProductsUIOptionHidden1 GetConfigurationProductsUIOptionHiddenUnion3Type = "getConfigurationProducts_ui:option_hidden_1" + GetConfigurationProductsUIOptionHiddenUnion3TypeGetConfigurationProductsUIOptionHiddenEnum1 GetConfigurationProductsUIOptionHiddenUnion3Type = "getConfigurationProducts_ui:option_hidden_enum_1" ) -type UIOptionHiddenUnion3 struct { - Boolean *bool `queryParam:"inline"` - UIOptionHidden1 *UIOptionHidden1 `queryParam:"inline"` - UIOptionHiddenEnum1 *UIOptionHiddenEnum1 `queryParam:"inline"` +type GetConfigurationProductsUIOptionHiddenUnion3 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIOptionHidden1 *GetConfigurationProductsUIOptionHidden1 `queryParam:"inline"` + GetConfigurationProductsUIOptionHiddenEnum1 *GetConfigurationProductsUIOptionHiddenEnum1 `queryParam:"inline"` - Type UIOptionHiddenUnion3Type + Type GetConfigurationProductsUIOptionHiddenUnion3Type } -func CreateUIOptionHiddenUnion3Boolean(boolean bool) UIOptionHiddenUnion3 { - typ := UIOptionHiddenUnion3TypeBoolean +func CreateGetConfigurationProductsUIOptionHiddenUnion3Boolean(boolean bool) GetConfigurationProductsUIOptionHiddenUnion3 { + typ := GetConfigurationProductsUIOptionHiddenUnion3TypeBoolean - return UIOptionHiddenUnion3{ + return GetConfigurationProductsUIOptionHiddenUnion3{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionHiddenUnion3UIOptionHidden1(uiOptionHidden1 UIOptionHidden1) UIOptionHiddenUnion3 { - typ := UIOptionHiddenUnion3TypeUIOptionHidden1 +func CreateGetConfigurationProductsUIOptionHiddenUnion3GetConfigurationProductsUIOptionHidden1(getConfigurationProductsUIOptionHidden1 GetConfigurationProductsUIOptionHidden1) GetConfigurationProductsUIOptionHiddenUnion3 { + typ := GetConfigurationProductsUIOptionHiddenUnion3TypeGetConfigurationProductsUIOptionHidden1 - return UIOptionHiddenUnion3{ - UIOptionHidden1: &uiOptionHidden1, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion3{ + GetConfigurationProductsUIOptionHidden1: &getConfigurationProductsUIOptionHidden1, + Type: typ, } } -func CreateUIOptionHiddenUnion3UIOptionHiddenEnum1(uiOptionHiddenEnum1 UIOptionHiddenEnum1) UIOptionHiddenUnion3 { - typ := UIOptionHiddenUnion3TypeUIOptionHiddenEnum1 +func CreateGetConfigurationProductsUIOptionHiddenUnion3GetConfigurationProductsUIOptionHiddenEnum1(getConfigurationProductsUIOptionHiddenEnum1 GetConfigurationProductsUIOptionHiddenEnum1) GetConfigurationProductsUIOptionHiddenUnion3 { + typ := GetConfigurationProductsUIOptionHiddenUnion3TypeGetConfigurationProductsUIOptionHiddenEnum1 - return UIOptionHiddenUnion3{ - UIOptionHiddenEnum1: &uiOptionHiddenEnum1, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion3{ + GetConfigurationProductsUIOptionHiddenEnum1: &getConfigurationProductsUIOptionHiddenEnum1, + Type: typ, } } -func (u *UIOptionHiddenUnion3) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionHiddenUnion3) UnmarshalJSON(data []byte) error { - var uiOptionHidden1 UIOptionHidden1 = UIOptionHidden1{} - if err := utils.UnmarshalJSON(data, &uiOptionHidden1, "", true, true); err == nil { - u.UIOptionHidden1 = &uiOptionHidden1 - u.Type = UIOptionHiddenUnion3TypeUIOptionHidden1 + var getConfigurationProductsUIOptionHidden1 GetConfigurationProductsUIOptionHidden1 = GetConfigurationProductsUIOptionHidden1{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionHidden1, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionHidden1 = &getConfigurationProductsUIOptionHidden1 + u.Type = GetConfigurationProductsUIOptionHiddenUnion3TypeGetConfigurationProductsUIOptionHidden1 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionHiddenUnion3TypeBoolean + u.Type = GetConfigurationProductsUIOptionHiddenUnion3TypeBoolean return nil } - var uiOptionHiddenEnum1 UIOptionHiddenEnum1 = UIOptionHiddenEnum1("") - if err := utils.UnmarshalJSON(data, &uiOptionHiddenEnum1, "", true, true); err == nil { - u.UIOptionHiddenEnum1 = &uiOptionHiddenEnum1 - u.Type = UIOptionHiddenUnion3TypeUIOptionHiddenEnum1 + var getConfigurationProductsUIOptionHiddenEnum1 GetConfigurationProductsUIOptionHiddenEnum1 = GetConfigurationProductsUIOptionHiddenEnum1("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOptionHiddenEnum1, "", true, nil); err == nil { + u.GetConfigurationProductsUIOptionHiddenEnum1 = &getConfigurationProductsUIOptionHiddenEnum1 + u.Type = GetConfigurationProductsUIOptionHiddenUnion3TypeGetConfigurationProductsUIOptionHiddenEnum1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionHiddenUnion3", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionHiddenUnion3", string(data)) } -func (u UIOptionHiddenUnion3) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionHiddenUnion3) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIOptionHidden1 != nil { - return utils.MarshalJSON(u.UIOptionHidden1, "", true) + if u.GetConfigurationProductsUIOptionHidden1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionHidden1, "", true) } - if u.UIOptionHiddenEnum1 != nil { - return utils.MarshalJSON(u.UIOptionHiddenEnum1, "", true) + if u.GetConfigurationProductsUIOptionHiddenEnum1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOptionHiddenEnum1, "", true) } - return nil, errors.New("could not marshal union type UIOptionHiddenUnion3: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionHiddenUnion3: all fields are null") } -type UIOption3 struct { - Value string `json:"value"` - Label string `json:"label"` - Disabled *UIOptionDisabledUnion3 `json:"disabled,omitempty"` - Hidden *UIOptionHiddenUnion3 `json:"hidden,omitempty"` +type GetConfigurationProductsUIOption3 struct { + Value string `json:"value"` + Label string `json:"label"` + Disabled *GetConfigurationProductsUIOptionDisabledUnion3 `json:"disabled,omitempty"` + Hidden *GetConfigurationProductsUIOptionHiddenUnion3 `json:"hidden,omitempty"` } -func (o *UIOption3) GetValue() string { +func (g GetConfigurationProductsUIOption3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOption3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value", "label"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOption3) GetValue() string { if o == nil { return "" } return o.Value } -func (o *UIOption3) GetLabel() string { +func (o *GetConfigurationProductsUIOption3) GetLabel() string { if o == nil { return "" } return o.Label } -func (o *UIOption3) GetDisabled() *UIOptionDisabledUnion3 { +func (o *GetConfigurationProductsUIOption3) GetDisabled() *GetConfigurationProductsUIOptionDisabledUnion3 { if o == nil { return nil } return o.Disabled } -func (o *UIOption3) GetHidden() *UIOptionHiddenUnion3 { +func (o *GetConfigurationProductsUIOption3) GetHidden() *GetConfigurationProductsUIOptionHiddenUnion3 { if o == nil { return nil } return o.Hidden } -type UIOptionUnion1Type string +type GetConfigurationProductsUIOptionUnion1Type string const ( - UIOptionUnion1TypeUIOption3 UIOptionUnion1Type = "ui:option_3" - UIOptionUnion1TypeUIOption4 UIOptionUnion1Type = "ui:option_4" - UIOptionUnion1TypeUIOption5 UIOptionUnion1Type = "ui:option_5" + GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption3 GetConfigurationProductsUIOptionUnion1Type = "getConfigurationProducts_ui:option_3" + GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption4 GetConfigurationProductsUIOptionUnion1Type = "getConfigurationProducts_ui:option_4" + GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption5 GetConfigurationProductsUIOptionUnion1Type = "getConfigurationProducts_ui:option_5" ) -type UIOptionUnion1 struct { - UIOption3 *UIOption3 `queryParam:"inline"` - UIOption4 *UIOption4 `queryParam:"inline"` - UIOption5 *UIOption5 `queryParam:"inline"` +type GetConfigurationProductsUIOptionUnion1 struct { + GetConfigurationProductsUIOption3 *GetConfigurationProductsUIOption3 `queryParam:"inline"` + GetConfigurationProductsUIOption4 *GetConfigurationProductsUIOption4 `queryParam:"inline"` + GetConfigurationProductsUIOption5 *GetConfigurationProductsUIOption5 `queryParam:"inline"` - Type UIOptionUnion1Type + Type GetConfigurationProductsUIOptionUnion1Type } -func CreateUIOptionUnion1UIOption3(uiOption3 UIOption3) UIOptionUnion1 { - typ := UIOptionUnion1TypeUIOption3 +func CreateGetConfigurationProductsUIOptionUnion1GetConfigurationProductsUIOption3(getConfigurationProductsUIOption3 GetConfigurationProductsUIOption3) GetConfigurationProductsUIOptionUnion1 { + typ := GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption3 - return UIOptionUnion1{ - UIOption3: &uiOption3, - Type: typ, + return GetConfigurationProductsUIOptionUnion1{ + GetConfigurationProductsUIOption3: &getConfigurationProductsUIOption3, + Type: typ, } } -func CreateUIOptionUnion1UIOption4(uiOption4 UIOption4) UIOptionUnion1 { - typ := UIOptionUnion1TypeUIOption4 +func CreateGetConfigurationProductsUIOptionUnion1GetConfigurationProductsUIOption4(getConfigurationProductsUIOption4 GetConfigurationProductsUIOption4) GetConfigurationProductsUIOptionUnion1 { + typ := GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption4 - return UIOptionUnion1{ - UIOption4: &uiOption4, - Type: typ, + return GetConfigurationProductsUIOptionUnion1{ + GetConfigurationProductsUIOption4: &getConfigurationProductsUIOption4, + Type: typ, } } -func CreateUIOptionUnion1UIOption5(uiOption5 UIOption5) UIOptionUnion1 { - typ := UIOptionUnion1TypeUIOption5 +func CreateGetConfigurationProductsUIOptionUnion1GetConfigurationProductsUIOption5(getConfigurationProductsUIOption5 GetConfigurationProductsUIOption5) GetConfigurationProductsUIOptionUnion1 { + typ := GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption5 - return UIOptionUnion1{ - UIOption5: &uiOption5, - Type: typ, + return GetConfigurationProductsUIOptionUnion1{ + GetConfigurationProductsUIOption5: &getConfigurationProductsUIOption5, + Type: typ, } } -func (u *UIOptionUnion1) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionUnion1) UnmarshalJSON(data []byte) error { - var uiOption4 UIOption4 = UIOption4{} - if err := utils.UnmarshalJSON(data, &uiOption4, "", true, true); err == nil { - u.UIOption4 = &uiOption4 - u.Type = UIOptionUnion1TypeUIOption4 + var getConfigurationProductsUIOption3 GetConfigurationProductsUIOption3 = GetConfigurationProductsUIOption3{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOption3, "", true, nil); err == nil { + u.GetConfigurationProductsUIOption3 = &getConfigurationProductsUIOption3 + u.Type = GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption3 return nil } - var uiOption5 UIOption5 = UIOption5{} - if err := utils.UnmarshalJSON(data, &uiOption5, "", true, true); err == nil { - u.UIOption5 = &uiOption5 - u.Type = UIOptionUnion1TypeUIOption5 + var getConfigurationProductsUIOption4 GetConfigurationProductsUIOption4 = GetConfigurationProductsUIOption4{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOption4, "", true, nil); err == nil { + u.GetConfigurationProductsUIOption4 = &getConfigurationProductsUIOption4 + u.Type = GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption4 return nil } - var uiOption3 UIOption3 = UIOption3{} - if err := utils.UnmarshalJSON(data, &uiOption3, "", true, true); err == nil { - u.UIOption3 = &uiOption3 - u.Type = UIOptionUnion1TypeUIOption3 + var getConfigurationProductsUIOption5 GetConfigurationProductsUIOption5 = GetConfigurationProductsUIOption5{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIOption5, "", true, nil); err == nil { + u.GetConfigurationProductsUIOption5 = &getConfigurationProductsUIOption5 + u.Type = GetConfigurationProductsUIOptionUnion1TypeGetConfigurationProductsUIOption5 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionUnion1", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionUnion1", string(data)) } -func (u UIOptionUnion1) MarshalJSON() ([]byte, error) { - if u.UIOption3 != nil { - return utils.MarshalJSON(u.UIOption3, "", true) +func (u GetConfigurationProductsUIOptionUnion1) MarshalJSON() ([]byte, error) { + if u.GetConfigurationProductsUIOption3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOption3, "", true) } - if u.UIOption4 != nil { - return utils.MarshalJSON(u.UIOption4, "", true) + if u.GetConfigurationProductsUIOption4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOption4, "", true) } - if u.UIOption5 != nil { - return utils.MarshalJSON(u.UIOption5, "", true) + if u.GetConfigurationProductsUIOption5 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIOption5, "", true) } - return nil, errors.New("could not marshal union type UIOptionUnion1: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionUnion1: all fields are null") +} + +type MinLengthAtBRANDAt5025403 struct { } -type MinLengthAtBRANDAt4479433 struct { +func (m MinLengthAtBRANDAt5025403) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MinLengthAtBRANDAt5025403) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil } -type MinLength3 struct { - AtBRANDAt447943 MinLengthAtBRANDAt4479433 `json:"__@BRAND@447943"` +type GetConfigurationProductsMinLength3 struct { + AtBRANDAt502540 MinLengthAtBRANDAt5025403 `json:"__@BRAND@502540"` } -func (o *MinLength3) GetAtBRANDAt447943() MinLengthAtBRANDAt4479433 { +func (g GetConfigurationProductsMinLength3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsMinLength3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsMinLength3) GetAtBRANDAt502540() MinLengthAtBRANDAt5025403 { if o == nil { - return MinLengthAtBRANDAt4479433{} + return MinLengthAtBRANDAt5025403{} + } + return o.AtBRANDAt502540 +} + +type MaxLengthAtBRANDAt5025403 struct { +} + +func (m MaxLengthAtBRANDAt5025403) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MaxLengthAtBRANDAt5025403) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err } - return o.AtBRANDAt447943 + return nil +} + +type GetConfigurationProductsMaxLength3 struct { + AtBRANDAt502540 MaxLengthAtBRANDAt5025403 `json:"__@BRAND@502540"` } -type MaxLengthAtBRANDAt4479433 struct { +func (g GetConfigurationProductsMaxLength3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type MaxLength3 struct { - AtBRANDAt447943 MaxLengthAtBRANDAt4479433 `json:"__@BRAND@447943"` +func (g *GetConfigurationProductsMaxLength3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *MaxLength3) GetAtBRANDAt447943() MaxLengthAtBRANDAt4479433 { +func (o *GetConfigurationProductsMaxLength3) GetAtBRANDAt502540() MaxLengthAtBRANDAt5025403 { if o == nil { - return MaxLengthAtBRANDAt4479433{} + return MaxLengthAtBRANDAt5025403{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 +} + +type PatternAtBRANDAt5025403 struct { } -type PatternAtBRANDAt4479433 struct { +func (p PatternAtBRANDAt5025403) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) } -type Pattern3 struct { - AtBRANDAt447943 PatternAtBRANDAt4479433 `json:"__@BRAND@447943"` +func (p *PatternAtBRANDAt5025403) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil } -func (o *Pattern3) GetAtBRANDAt447943() PatternAtBRANDAt4479433 { +type GetConfigurationProductsPattern3 struct { + AtBRANDAt502540 PatternAtBRANDAt5025403 `json:"__@BRAND@502540"` +} + +func (g GetConfigurationProductsPattern3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsPattern3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsPattern3) GetAtBRANDAt502540() PatternAtBRANDAt5025403 { if o == nil { - return PatternAtBRANDAt4479433{} + return PatternAtBRANDAt5025403{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type UIReadOnlyEnum7 string +type GetConfigurationProductsUIReadOnlyEnum7 string const ( - UIReadOnlyEnum7Update UIReadOnlyEnum7 = "update" - UIReadOnlyEnum7Create UIReadOnlyEnum7 = "create" + GetConfigurationProductsUIReadOnlyEnum7Update GetConfigurationProductsUIReadOnlyEnum7 = "update" + GetConfigurationProductsUIReadOnlyEnum7Create GetConfigurationProductsUIReadOnlyEnum7 = "create" ) -func (e UIReadOnlyEnum7) ToPointer() *UIReadOnlyEnum7 { +func (e GetConfigurationProductsUIReadOnlyEnum7) ToPointer() *GetConfigurationProductsUIReadOnlyEnum7 { return &e } -func (e *UIReadOnlyEnum7) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIReadOnlyEnum7) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -3205,120 +3733,131 @@ func (e *UIReadOnlyEnum7) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIReadOnlyEnum7(v) + *e = GetConfigurationProductsUIReadOnlyEnum7(v) return nil default: - return fmt.Errorf("invalid value for UIReadOnlyEnum7: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIReadOnlyEnum7: %v", v) } } -type UIReadOnly7 struct { +type GetConfigurationProductsUIReadOnly7 struct { Expr string `json:"expr"` } -func (o *UIReadOnly7) GetExpr() string { +func (g GetConfigurationProductsUIReadOnly7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIReadOnly7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIReadOnly7) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIReadOnlyUnion7Type string +type GetConfigurationProductsUIReadOnlyUnion7Type string const ( - UIReadOnlyUnion7TypeBoolean UIReadOnlyUnion7Type = "boolean" - UIReadOnlyUnion7TypeUIReadOnly7 UIReadOnlyUnion7Type = "ui:read-only_7" - UIReadOnlyUnion7TypeUIReadOnlyEnum7 UIReadOnlyUnion7Type = "ui:read-only_enum_7" + GetConfigurationProductsUIReadOnlyUnion7TypeBoolean GetConfigurationProductsUIReadOnlyUnion7Type = "boolean" + GetConfigurationProductsUIReadOnlyUnion7TypeGetConfigurationProductsUIReadOnly7 GetConfigurationProductsUIReadOnlyUnion7Type = "getConfigurationProducts_ui:read-only_7" + GetConfigurationProductsUIReadOnlyUnion7TypeGetConfigurationProductsUIReadOnlyEnum7 GetConfigurationProductsUIReadOnlyUnion7Type = "getConfigurationProducts_ui:read-only_enum_7" ) -type UIReadOnlyUnion7 struct { - Boolean *bool `queryParam:"inline"` - UIReadOnly7 *UIReadOnly7 `queryParam:"inline"` - UIReadOnlyEnum7 *UIReadOnlyEnum7 `queryParam:"inline"` +type GetConfigurationProductsUIReadOnlyUnion7 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIReadOnly7 *GetConfigurationProductsUIReadOnly7 `queryParam:"inline"` + GetConfigurationProductsUIReadOnlyEnum7 *GetConfigurationProductsUIReadOnlyEnum7 `queryParam:"inline"` - Type UIReadOnlyUnion7Type + Type GetConfigurationProductsUIReadOnlyUnion7Type } -func CreateUIReadOnlyUnion7Boolean(boolean bool) UIReadOnlyUnion7 { - typ := UIReadOnlyUnion7TypeBoolean +func CreateGetConfigurationProductsUIReadOnlyUnion7Boolean(boolean bool) GetConfigurationProductsUIReadOnlyUnion7 { + typ := GetConfigurationProductsUIReadOnlyUnion7TypeBoolean - return UIReadOnlyUnion7{ + return GetConfigurationProductsUIReadOnlyUnion7{ Boolean: &boolean, Type: typ, } } -func CreateUIReadOnlyUnion7UIReadOnly7(uiReadOnly7 UIReadOnly7) UIReadOnlyUnion7 { - typ := UIReadOnlyUnion7TypeUIReadOnly7 +func CreateGetConfigurationProductsUIReadOnlyUnion7GetConfigurationProductsUIReadOnly7(getConfigurationProductsUIReadOnly7 GetConfigurationProductsUIReadOnly7) GetConfigurationProductsUIReadOnlyUnion7 { + typ := GetConfigurationProductsUIReadOnlyUnion7TypeGetConfigurationProductsUIReadOnly7 - return UIReadOnlyUnion7{ - UIReadOnly7: &uiReadOnly7, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion7{ + GetConfigurationProductsUIReadOnly7: &getConfigurationProductsUIReadOnly7, + Type: typ, } } -func CreateUIReadOnlyUnion7UIReadOnlyEnum7(uiReadOnlyEnum7 UIReadOnlyEnum7) UIReadOnlyUnion7 { - typ := UIReadOnlyUnion7TypeUIReadOnlyEnum7 +func CreateGetConfigurationProductsUIReadOnlyUnion7GetConfigurationProductsUIReadOnlyEnum7(getConfigurationProductsUIReadOnlyEnum7 GetConfigurationProductsUIReadOnlyEnum7) GetConfigurationProductsUIReadOnlyUnion7 { + typ := GetConfigurationProductsUIReadOnlyUnion7TypeGetConfigurationProductsUIReadOnlyEnum7 - return UIReadOnlyUnion7{ - UIReadOnlyEnum7: &uiReadOnlyEnum7, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion7{ + GetConfigurationProductsUIReadOnlyEnum7: &getConfigurationProductsUIReadOnlyEnum7, + Type: typ, } } -func (u *UIReadOnlyUnion7) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIReadOnlyUnion7) UnmarshalJSON(data []byte) error { - var uiReadOnly7 UIReadOnly7 = UIReadOnly7{} - if err := utils.UnmarshalJSON(data, &uiReadOnly7, "", true, true); err == nil { - u.UIReadOnly7 = &uiReadOnly7 - u.Type = UIReadOnlyUnion7TypeUIReadOnly7 + var getConfigurationProductsUIReadOnly7 GetConfigurationProductsUIReadOnly7 = GetConfigurationProductsUIReadOnly7{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnly7, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnly7 = &getConfigurationProductsUIReadOnly7 + u.Type = GetConfigurationProductsUIReadOnlyUnion7TypeGetConfigurationProductsUIReadOnly7 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIReadOnlyUnion7TypeBoolean + u.Type = GetConfigurationProductsUIReadOnlyUnion7TypeBoolean return nil } - var uiReadOnlyEnum7 UIReadOnlyEnum7 = UIReadOnlyEnum7("") - if err := utils.UnmarshalJSON(data, &uiReadOnlyEnum7, "", true, true); err == nil { - u.UIReadOnlyEnum7 = &uiReadOnlyEnum7 - u.Type = UIReadOnlyUnion7TypeUIReadOnlyEnum7 + var getConfigurationProductsUIReadOnlyEnum7 GetConfigurationProductsUIReadOnlyEnum7 = GetConfigurationProductsUIReadOnlyEnum7("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnlyEnum7, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnlyEnum7 = &getConfigurationProductsUIReadOnlyEnum7 + u.Type = GetConfigurationProductsUIReadOnlyUnion7TypeGetConfigurationProductsUIReadOnlyEnum7 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIReadOnlyUnion7", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIReadOnlyUnion7", string(data)) } -func (u UIReadOnlyUnion7) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIReadOnlyUnion7) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIReadOnly7 != nil { - return utils.MarshalJSON(u.UIReadOnly7, "", true) + if u.GetConfigurationProductsUIReadOnly7 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnly7, "", true) } - if u.UIReadOnlyEnum7 != nil { - return utils.MarshalJSON(u.UIReadOnlyEnum7, "", true) + if u.GetConfigurationProductsUIReadOnlyEnum7 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnlyEnum7, "", true) } - return nil, errors.New("could not marshal union type UIReadOnlyUnion7: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIReadOnlyUnion7: all fields are null") } -type UIHiddenEnum7 string +type GetConfigurationProductsUIHiddenEnum7 string const ( - UIHiddenEnum7Update UIHiddenEnum7 = "update" - UIHiddenEnum7Create UIHiddenEnum7 = "create" + GetConfigurationProductsUIHiddenEnum7Update GetConfigurationProductsUIHiddenEnum7 = "update" + GetConfigurationProductsUIHiddenEnum7Create GetConfigurationProductsUIHiddenEnum7 = "create" ) -func (e UIHiddenEnum7) ToPointer() *UIHiddenEnum7 { +func (e GetConfigurationProductsUIHiddenEnum7) ToPointer() *GetConfigurationProductsUIHiddenEnum7 { return &e } -func (e *UIHiddenEnum7) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIHiddenEnum7) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -3327,120 +3866,131 @@ func (e *UIHiddenEnum7) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIHiddenEnum7(v) + *e = GetConfigurationProductsUIHiddenEnum7(v) return nil default: - return fmt.Errorf("invalid value for UIHiddenEnum7: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIHiddenEnum7: %v", v) } } -type UIHidden7 struct { +type GetConfigurationProductsUIHidden7 struct { Expr string `json:"expr"` } -func (o *UIHidden7) GetExpr() string { +func (g GetConfigurationProductsUIHidden7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIHidden7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIHidden7) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIHiddenUnion7Type string +type GetConfigurationProductsUIHiddenUnion7Type string const ( - UIHiddenUnion7TypeBoolean UIHiddenUnion7Type = "boolean" - UIHiddenUnion7TypeUIHidden7 UIHiddenUnion7Type = "ui:hidden_7" - UIHiddenUnion7TypeUIHiddenEnum7 UIHiddenUnion7Type = "ui:hidden_enum_7" + GetConfigurationProductsUIHiddenUnion7TypeBoolean GetConfigurationProductsUIHiddenUnion7Type = "boolean" + GetConfigurationProductsUIHiddenUnion7TypeGetConfigurationProductsUIHidden7 GetConfigurationProductsUIHiddenUnion7Type = "getConfigurationProducts_ui:hidden_7" + GetConfigurationProductsUIHiddenUnion7TypeGetConfigurationProductsUIHiddenEnum7 GetConfigurationProductsUIHiddenUnion7Type = "getConfigurationProducts_ui:hidden_enum_7" ) -type UIHiddenUnion7 struct { - Boolean *bool `queryParam:"inline"` - UIHidden7 *UIHidden7 `queryParam:"inline"` - UIHiddenEnum7 *UIHiddenEnum7 `queryParam:"inline"` +type GetConfigurationProductsUIHiddenUnion7 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIHidden7 *GetConfigurationProductsUIHidden7 `queryParam:"inline"` + GetConfigurationProductsUIHiddenEnum7 *GetConfigurationProductsUIHiddenEnum7 `queryParam:"inline"` - Type UIHiddenUnion7Type + Type GetConfigurationProductsUIHiddenUnion7Type } -func CreateUIHiddenUnion7Boolean(boolean bool) UIHiddenUnion7 { - typ := UIHiddenUnion7TypeBoolean +func CreateGetConfigurationProductsUIHiddenUnion7Boolean(boolean bool) GetConfigurationProductsUIHiddenUnion7 { + typ := GetConfigurationProductsUIHiddenUnion7TypeBoolean - return UIHiddenUnion7{ + return GetConfigurationProductsUIHiddenUnion7{ Boolean: &boolean, Type: typ, } } -func CreateUIHiddenUnion7UIHidden7(uiHidden7 UIHidden7) UIHiddenUnion7 { - typ := UIHiddenUnion7TypeUIHidden7 +func CreateGetConfigurationProductsUIHiddenUnion7GetConfigurationProductsUIHidden7(getConfigurationProductsUIHidden7 GetConfigurationProductsUIHidden7) GetConfigurationProductsUIHiddenUnion7 { + typ := GetConfigurationProductsUIHiddenUnion7TypeGetConfigurationProductsUIHidden7 - return UIHiddenUnion7{ - UIHidden7: &uiHidden7, - Type: typ, + return GetConfigurationProductsUIHiddenUnion7{ + GetConfigurationProductsUIHidden7: &getConfigurationProductsUIHidden7, + Type: typ, } } -func CreateUIHiddenUnion7UIHiddenEnum7(uiHiddenEnum7 UIHiddenEnum7) UIHiddenUnion7 { - typ := UIHiddenUnion7TypeUIHiddenEnum7 +func CreateGetConfigurationProductsUIHiddenUnion7GetConfigurationProductsUIHiddenEnum7(getConfigurationProductsUIHiddenEnum7 GetConfigurationProductsUIHiddenEnum7) GetConfigurationProductsUIHiddenUnion7 { + typ := GetConfigurationProductsUIHiddenUnion7TypeGetConfigurationProductsUIHiddenEnum7 - return UIHiddenUnion7{ - UIHiddenEnum7: &uiHiddenEnum7, - Type: typ, + return GetConfigurationProductsUIHiddenUnion7{ + GetConfigurationProductsUIHiddenEnum7: &getConfigurationProductsUIHiddenEnum7, + Type: typ, } } -func (u *UIHiddenUnion7) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIHiddenUnion7) UnmarshalJSON(data []byte) error { - var uiHidden7 UIHidden7 = UIHidden7{} - if err := utils.UnmarshalJSON(data, &uiHidden7, "", true, true); err == nil { - u.UIHidden7 = &uiHidden7 - u.Type = UIHiddenUnion7TypeUIHidden7 + var getConfigurationProductsUIHidden7 GetConfigurationProductsUIHidden7 = GetConfigurationProductsUIHidden7{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHidden7, "", true, nil); err == nil { + u.GetConfigurationProductsUIHidden7 = &getConfigurationProductsUIHidden7 + u.Type = GetConfigurationProductsUIHiddenUnion7TypeGetConfigurationProductsUIHidden7 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIHiddenUnion7TypeBoolean + u.Type = GetConfigurationProductsUIHiddenUnion7TypeBoolean return nil } - var uiHiddenEnum7 UIHiddenEnum7 = UIHiddenEnum7("") - if err := utils.UnmarshalJSON(data, &uiHiddenEnum7, "", true, true); err == nil { - u.UIHiddenEnum7 = &uiHiddenEnum7 - u.Type = UIHiddenUnion7TypeUIHiddenEnum7 + var getConfigurationProductsUIHiddenEnum7 GetConfigurationProductsUIHiddenEnum7 = GetConfigurationProductsUIHiddenEnum7("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHiddenEnum7, "", true, nil); err == nil { + u.GetConfigurationProductsUIHiddenEnum7 = &getConfigurationProductsUIHiddenEnum7 + u.Type = GetConfigurationProductsUIHiddenUnion7TypeGetConfigurationProductsUIHiddenEnum7 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIHiddenUnion7", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIHiddenUnion7", string(data)) } -func (u UIHiddenUnion7) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIHiddenUnion7) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIHidden7 != nil { - return utils.MarshalJSON(u.UIHidden7, "", true) + if u.GetConfigurationProductsUIHidden7 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHidden7, "", true) } - if u.UIHiddenEnum7 != nil { - return utils.MarshalJSON(u.UIHiddenEnum7, "", true) + if u.GetConfigurationProductsUIHiddenEnum7 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHiddenEnum7, "", true) } - return nil, errors.New("could not marshal union type UIHiddenUnion7: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIHiddenUnion7: all fields are null") } -type UIDisabledEnum7 string +type GetConfigurationProductsUIDisabledEnum7 string const ( - UIDisabledEnum7Update UIDisabledEnum7 = "update" - UIDisabledEnum7Create UIDisabledEnum7 = "create" + GetConfigurationProductsUIDisabledEnum7Update GetConfigurationProductsUIDisabledEnum7 = "update" + GetConfigurationProductsUIDisabledEnum7Create GetConfigurationProductsUIDisabledEnum7 = "create" ) -func (e UIDisabledEnum7) ToPointer() *UIDisabledEnum7 { +func (e GetConfigurationProductsUIDisabledEnum7) ToPointer() *GetConfigurationProductsUIDisabledEnum7 { return &e } -func (e *UIDisabledEnum7) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIDisabledEnum7) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -3449,506 +3999,627 @@ func (e *UIDisabledEnum7) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIDisabledEnum7(v) + *e = GetConfigurationProductsUIDisabledEnum7(v) return nil default: - return fmt.Errorf("invalid value for UIDisabledEnum7: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIDisabledEnum7: %v", v) } } -type UIDisabled7 struct { +type GetConfigurationProductsUIDisabled7 struct { Expr string `json:"expr"` } -func (o *UIDisabled7) GetExpr() string { +func (g GetConfigurationProductsUIDisabled7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDisabled7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDisabled7) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDisabledUnion7Type string +type GetConfigurationProductsUIDisabledUnion7Type string const ( - UIDisabledUnion7TypeBoolean UIDisabledUnion7Type = "boolean" - UIDisabledUnion7TypeUIDisabled7 UIDisabledUnion7Type = "ui:disabled_7" - UIDisabledUnion7TypeUIDisabledEnum7 UIDisabledUnion7Type = "ui:disabled_enum_7" + GetConfigurationProductsUIDisabledUnion7TypeBoolean GetConfigurationProductsUIDisabledUnion7Type = "boolean" + GetConfigurationProductsUIDisabledUnion7TypeGetConfigurationProductsUIDisabled7 GetConfigurationProductsUIDisabledUnion7Type = "getConfigurationProducts_ui:disabled_7" + GetConfigurationProductsUIDisabledUnion7TypeGetConfigurationProductsUIDisabledEnum7 GetConfigurationProductsUIDisabledUnion7Type = "getConfigurationProducts_ui:disabled_enum_7" ) -type UIDisabledUnion7 struct { - Boolean *bool `queryParam:"inline"` - UIDisabled7 *UIDisabled7 `queryParam:"inline"` - UIDisabledEnum7 *UIDisabledEnum7 `queryParam:"inline"` +type GetConfigurationProductsUIDisabledUnion7 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIDisabled7 *GetConfigurationProductsUIDisabled7 `queryParam:"inline"` + GetConfigurationProductsUIDisabledEnum7 *GetConfigurationProductsUIDisabledEnum7 `queryParam:"inline"` - Type UIDisabledUnion7Type + Type GetConfigurationProductsUIDisabledUnion7Type } -func CreateUIDisabledUnion7Boolean(boolean bool) UIDisabledUnion7 { - typ := UIDisabledUnion7TypeBoolean +func CreateGetConfigurationProductsUIDisabledUnion7Boolean(boolean bool) GetConfigurationProductsUIDisabledUnion7 { + typ := GetConfigurationProductsUIDisabledUnion7TypeBoolean - return UIDisabledUnion7{ + return GetConfigurationProductsUIDisabledUnion7{ Boolean: &boolean, Type: typ, } } -func CreateUIDisabledUnion7UIDisabled7(uiDisabled7 UIDisabled7) UIDisabledUnion7 { - typ := UIDisabledUnion7TypeUIDisabled7 +func CreateGetConfigurationProductsUIDisabledUnion7GetConfigurationProductsUIDisabled7(getConfigurationProductsUIDisabled7 GetConfigurationProductsUIDisabled7) GetConfigurationProductsUIDisabledUnion7 { + typ := GetConfigurationProductsUIDisabledUnion7TypeGetConfigurationProductsUIDisabled7 - return UIDisabledUnion7{ - UIDisabled7: &uiDisabled7, - Type: typ, + return GetConfigurationProductsUIDisabledUnion7{ + GetConfigurationProductsUIDisabled7: &getConfigurationProductsUIDisabled7, + Type: typ, } } -func CreateUIDisabledUnion7UIDisabledEnum7(uiDisabledEnum7 UIDisabledEnum7) UIDisabledUnion7 { - typ := UIDisabledUnion7TypeUIDisabledEnum7 +func CreateGetConfigurationProductsUIDisabledUnion7GetConfigurationProductsUIDisabledEnum7(getConfigurationProductsUIDisabledEnum7 GetConfigurationProductsUIDisabledEnum7) GetConfigurationProductsUIDisabledUnion7 { + typ := GetConfigurationProductsUIDisabledUnion7TypeGetConfigurationProductsUIDisabledEnum7 - return UIDisabledUnion7{ - UIDisabledEnum7: &uiDisabledEnum7, - Type: typ, + return GetConfigurationProductsUIDisabledUnion7{ + GetConfigurationProductsUIDisabledEnum7: &getConfigurationProductsUIDisabledEnum7, + Type: typ, } } -func (u *UIDisabledUnion7) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDisabledUnion7) UnmarshalJSON(data []byte) error { - var uiDisabled7 UIDisabled7 = UIDisabled7{} - if err := utils.UnmarshalJSON(data, &uiDisabled7, "", true, true); err == nil { - u.UIDisabled7 = &uiDisabled7 - u.Type = UIDisabledUnion7TypeUIDisabled7 + var getConfigurationProductsUIDisabled7 GetConfigurationProductsUIDisabled7 = GetConfigurationProductsUIDisabled7{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabled7, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabled7 = &getConfigurationProductsUIDisabled7 + u.Type = GetConfigurationProductsUIDisabledUnion7TypeGetConfigurationProductsUIDisabled7 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIDisabledUnion7TypeBoolean + u.Type = GetConfigurationProductsUIDisabledUnion7TypeBoolean return nil } - var uiDisabledEnum7 UIDisabledEnum7 = UIDisabledEnum7("") - if err := utils.UnmarshalJSON(data, &uiDisabledEnum7, "", true, true); err == nil { - u.UIDisabledEnum7 = &uiDisabledEnum7 - u.Type = UIDisabledUnion7TypeUIDisabledEnum7 + var getConfigurationProductsUIDisabledEnum7 GetConfigurationProductsUIDisabledEnum7 = GetConfigurationProductsUIDisabledEnum7("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabledEnum7, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabledEnum7 = &getConfigurationProductsUIDisabledEnum7 + u.Type = GetConfigurationProductsUIDisabledUnion7TypeGetConfigurationProductsUIDisabledEnum7 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDisabledUnion7", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDisabledUnion7", string(data)) } -func (u UIDisabledUnion7) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDisabledUnion7) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIDisabled7 != nil { - return utils.MarshalJSON(u.UIDisabled7, "", true) + if u.GetConfigurationProductsUIDisabled7 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabled7, "", true) } - if u.UIDisabledEnum7 != nil { - return utils.MarshalJSON(u.UIDisabledEnum7, "", true) + if u.GetConfigurationProductsUIDisabledEnum7 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabledEnum7, "", true) } - return nil, errors.New("could not marshal union type UIDisabledUnion7: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDisabledUnion7: all fields are null") } -type UIDescription7 struct { +type GetConfigurationProductsUIDescription7 struct { Expr string `json:"expr"` } -func (o *UIDescription7) GetExpr() string { +func (g GetConfigurationProductsUIDescription7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDescription7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDescription7) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDescriptionUnion7Type string +type GetConfigurationProductsUIDescriptionUnion7Type string const ( - UIDescriptionUnion7TypeStr UIDescriptionUnion7Type = "str" - UIDescriptionUnion7TypeUIDescription7 UIDescriptionUnion7Type = "ui:description_7" + GetConfigurationProductsUIDescriptionUnion7TypeStr GetConfigurationProductsUIDescriptionUnion7Type = "str" + GetConfigurationProductsUIDescriptionUnion7TypeGetConfigurationProductsUIDescription7 GetConfigurationProductsUIDescriptionUnion7Type = "getConfigurationProducts_ui:description_7" ) -type UIDescriptionUnion7 struct { - Str *string `queryParam:"inline"` - UIDescription7 *UIDescription7 `queryParam:"inline"` +type GetConfigurationProductsUIDescriptionUnion7 struct { + Str *string `queryParam:"inline"` + GetConfigurationProductsUIDescription7 *GetConfigurationProductsUIDescription7 `queryParam:"inline"` - Type UIDescriptionUnion7Type + Type GetConfigurationProductsUIDescriptionUnion7Type } -func CreateUIDescriptionUnion7Str(str string) UIDescriptionUnion7 { - typ := UIDescriptionUnion7TypeStr +func CreateGetConfigurationProductsUIDescriptionUnion7Str(str string) GetConfigurationProductsUIDescriptionUnion7 { + typ := GetConfigurationProductsUIDescriptionUnion7TypeStr - return UIDescriptionUnion7{ + return GetConfigurationProductsUIDescriptionUnion7{ Str: &str, Type: typ, } } -func CreateUIDescriptionUnion7UIDescription7(uiDescription7 UIDescription7) UIDescriptionUnion7 { - typ := UIDescriptionUnion7TypeUIDescription7 +func CreateGetConfigurationProductsUIDescriptionUnion7GetConfigurationProductsUIDescription7(getConfigurationProductsUIDescription7 GetConfigurationProductsUIDescription7) GetConfigurationProductsUIDescriptionUnion7 { + typ := GetConfigurationProductsUIDescriptionUnion7TypeGetConfigurationProductsUIDescription7 - return UIDescriptionUnion7{ - UIDescription7: &uiDescription7, - Type: typ, + return GetConfigurationProductsUIDescriptionUnion7{ + GetConfigurationProductsUIDescription7: &getConfigurationProductsUIDescription7, + Type: typ, } } -func (u *UIDescriptionUnion7) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDescriptionUnion7) UnmarshalJSON(data []byte) error { - var uiDescription7 UIDescription7 = UIDescription7{} - if err := utils.UnmarshalJSON(data, &uiDescription7, "", true, true); err == nil { - u.UIDescription7 = &uiDescription7 - u.Type = UIDescriptionUnion7TypeUIDescription7 + var getConfigurationProductsUIDescription7 GetConfigurationProductsUIDescription7 = GetConfigurationProductsUIDescription7{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDescription7, "", true, nil); err == nil { + u.GetConfigurationProductsUIDescription7 = &getConfigurationProductsUIDescription7 + u.Type = GetConfigurationProductsUIDescriptionUnion7TypeGetConfigurationProductsUIDescription7 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str - u.Type = UIDescriptionUnion7TypeStr + u.Type = GetConfigurationProductsUIDescriptionUnion7TypeStr return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDescriptionUnion7", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDescriptionUnion7", string(data)) } -func (u UIDescriptionUnion7) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDescriptionUnion7) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } - if u.UIDescription7 != nil { - return utils.MarshalJSON(u.UIDescription7, "", true) + if u.GetConfigurationProductsUIDescription7 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDescription7, "", true) } - return nil, errors.New("could not marshal union type UIDescriptionUnion7: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDescriptionUnion7: all fields are null") } -type UIFormattedValue7 struct { +type GetConfigurationProductsUIFormattedValue7 struct { Expr string `json:"expr"` } -func (o *UIFormattedValue7) GetExpr() string { +func (g GetConfigurationProductsUIFormattedValue7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIFormattedValue7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIFormattedValue7) GetExpr() string { if o == nil { return "" } return o.Expr } -type PropertiesVercelRegion struct { - Type TypeString4 `json:"type"` - UIControl UIControlVercelRegion `json:"ui:control"` - UIOptions []UIOptionUnion1 `json:"ui:options"` - Description *string `json:"description,omitempty"` - MinLength *MinLength3 `json:"minLength,omitempty"` - MaxLength *MaxLength3 `json:"maxLength,omitempty"` - Pattern *Pattern3 `json:"pattern,omitempty"` - Default *string `json:"default,omitempty"` - Enum []string `json:"enum,omitempty"` - UILabel *string `json:"ui:label,omitempty"` - UIReadOnly *UIReadOnlyUnion7 `json:"ui:read-only,omitempty"` - UIHidden *UIHiddenUnion7 `json:"ui:hidden,omitempty"` - UIDisabled *UIDisabledUnion7 `json:"ui:disabled,omitempty"` - UIDescription *UIDescriptionUnion7 `json:"ui:description,omitempty"` - UIFormattedValue *UIFormattedValue7 `json:"ui:formatted-value,omitempty"` - UIPlaceholder *string `json:"ui:placeholder,omitempty"` +type GetConfigurationProductsPropertiesVercelRegion struct { + Type GetConfigurationProductsTypeString4 `json:"type"` + UIControl GetConfigurationProductsUIControlVercelRegion `json:"ui:control"` + UIOptions []GetConfigurationProductsUIOptionUnion1 `json:"ui:options"` + Description *string `json:"description,omitempty"` + MinLength *GetConfigurationProductsMinLength3 `json:"minLength,omitempty"` + MaxLength *GetConfigurationProductsMaxLength3 `json:"maxLength,omitempty"` + Pattern *GetConfigurationProductsPattern3 `json:"pattern,omitempty"` + Default *string `json:"default,omitempty"` + Enum []string `json:"enum,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *GetConfigurationProductsUIReadOnlyUnion7 `json:"ui:read-only,omitempty"` + UIHidden *GetConfigurationProductsUIHiddenUnion7 `json:"ui:hidden,omitempty"` + UIDisabled *GetConfigurationProductsUIDisabledUnion7 `json:"ui:disabled,omitempty"` + UIDescription *GetConfigurationProductsUIDescriptionUnion7 `json:"ui:description,omitempty"` + UIFormattedValue *GetConfigurationProductsUIFormattedValue7 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` +} + +func (g GetConfigurationProductsPropertiesVercelRegion) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -func (o *PropertiesVercelRegion) GetType() TypeString4 { +func (g *GetConfigurationProductsPropertiesVercelRegion) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ui:control", "ui:options"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsPropertiesVercelRegion) GetType() GetConfigurationProductsTypeString4 { if o == nil { - return TypeString4("") + return GetConfigurationProductsTypeString4("") } return o.Type } -func (o *PropertiesVercelRegion) GetUIControl() UIControlVercelRegion { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUIControl() GetConfigurationProductsUIControlVercelRegion { if o == nil { - return UIControlVercelRegion("") + return GetConfigurationProductsUIControlVercelRegion("") } return o.UIControl } -func (o *PropertiesVercelRegion) GetUIOptions() []UIOptionUnion1 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUIOptions() []GetConfigurationProductsUIOptionUnion1 { if o == nil { - return []UIOptionUnion1{} + return []GetConfigurationProductsUIOptionUnion1{} } return o.UIOptions } -func (o *PropertiesVercelRegion) GetDescription() *string { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *PropertiesVercelRegion) GetMinLength() *MinLength3 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetMinLength() *GetConfigurationProductsMinLength3 { if o == nil { return nil } return o.MinLength } -func (o *PropertiesVercelRegion) GetMaxLength() *MaxLength3 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetMaxLength() *GetConfigurationProductsMaxLength3 { if o == nil { return nil } return o.MaxLength } -func (o *PropertiesVercelRegion) GetPattern() *Pattern3 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetPattern() *GetConfigurationProductsPattern3 { if o == nil { return nil } return o.Pattern } -func (o *PropertiesVercelRegion) GetDefault() *string { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetDefault() *string { if o == nil { return nil } return o.Default } -func (o *PropertiesVercelRegion) GetEnum() []string { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetEnum() []string { if o == nil { return nil } return o.Enum } -func (o *PropertiesVercelRegion) GetUILabel() *string { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUILabel() *string { if o == nil { return nil } return o.UILabel } -func (o *PropertiesVercelRegion) GetUIReadOnly() *UIReadOnlyUnion7 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUIReadOnly() *GetConfigurationProductsUIReadOnlyUnion7 { if o == nil { return nil } return o.UIReadOnly } -func (o *PropertiesVercelRegion) GetUIHidden() *UIHiddenUnion7 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUIHidden() *GetConfigurationProductsUIHiddenUnion7 { if o == nil { return nil } return o.UIHidden } -func (o *PropertiesVercelRegion) GetUIDisabled() *UIDisabledUnion7 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUIDisabled() *GetConfigurationProductsUIDisabledUnion7 { if o == nil { return nil } return o.UIDisabled } -func (o *PropertiesVercelRegion) GetUIDescription() *UIDescriptionUnion7 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUIDescription() *GetConfigurationProductsUIDescriptionUnion7 { if o == nil { return nil } return o.UIDescription } -func (o *PropertiesVercelRegion) GetUIFormattedValue() *UIFormattedValue7 { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUIFormattedValue() *GetConfigurationProductsUIFormattedValue7 { if o == nil { return nil } return o.UIFormattedValue } -func (o *PropertiesVercelRegion) GetUIPlaceholder() *string { +func (o *GetConfigurationProductsPropertiesVercelRegion) GetUIPlaceholder() *string { if o == nil { return nil } return o.UIPlaceholder } -type TypeArray2 string +type GetConfigurationProductsTypeArray2 string const ( - TypeArray2Array TypeArray2 = "array" + GetConfigurationProductsTypeArray2Array GetConfigurationProductsTypeArray2 = "array" ) -func (e TypeArray2) ToPointer() *TypeArray2 { +func (e GetConfigurationProductsTypeArray2) ToPointer() *GetConfigurationProductsTypeArray2 { return &e } -func (e *TypeArray2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeArray2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "array": - *e = TypeArray2(v) + *e = GetConfigurationProductsTypeArray2(v) return nil default: - return fmt.Errorf("invalid value for TypeArray2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeArray2: %v", v) } } -type UIControlMultiSelect string +type GetConfigurationProductsUIControlMultiSelect string const ( - UIControlMultiSelectMultiSelect UIControlMultiSelect = "multi-select" + GetConfigurationProductsUIControlMultiSelectMultiSelect GetConfigurationProductsUIControlMultiSelect = "multi-select" ) -func (e UIControlMultiSelect) ToPointer() *UIControlMultiSelect { +func (e GetConfigurationProductsUIControlMultiSelect) ToPointer() *GetConfigurationProductsUIControlMultiSelect { return &e } -func (e *UIControlMultiSelect) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIControlMultiSelect) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "multi-select": - *e = UIControlMultiSelect(v) + *e = GetConfigurationProductsUIControlMultiSelect(v) return nil default: - return fmt.Errorf("invalid value for UIControlMultiSelect: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIControlMultiSelect: %v", v) } } -type TypeString3 string +type GetConfigurationProductsTypeString3 string const ( - TypeString3String TypeString3 = "string" + GetConfigurationProductsTypeString3String GetConfigurationProductsTypeString3 = "string" ) -func (e TypeString3) ToPointer() *TypeString3 { +func (e GetConfigurationProductsTypeString3) ToPointer() *GetConfigurationProductsTypeString3 { return &e } -func (e *TypeString3) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeString3) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "string": - *e = TypeString3(v) + *e = GetConfigurationProductsTypeString3(v) return nil default: - return fmt.Errorf("invalid value for TypeString3: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeString3: %v", v) } } -type MinLengthAtBRANDAt447943String1 struct { +type MinLengthAtBRANDAt502540String1 struct { } -type MinLengthString1 struct { - AtBRANDAt447943 MinLengthAtBRANDAt447943String1 `json:"__@BRAND@447943"` +func (m MinLengthAtBRANDAt502540String1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) } -func (o *MinLengthString1) GetAtBRANDAt447943() MinLengthAtBRANDAt447943String1 { +func (m *MinLengthAtBRANDAt502540String1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err + } + return nil +} + +type GetConfigurationProductsMinLengthString1 struct { + AtBRANDAt502540 MinLengthAtBRANDAt502540String1 `json:"__@BRAND@502540"` +} + +func (g GetConfigurationProductsMinLengthString1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsMinLengthString1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsMinLengthString1) GetAtBRANDAt502540() MinLengthAtBRANDAt502540String1 { if o == nil { - return MinLengthAtBRANDAt447943String1{} + return MinLengthAtBRANDAt502540String1{} + } + return o.AtBRANDAt502540 +} + +type MaxLengthAtBRANDAt502540String1 struct { +} + +func (m MaxLengthAtBRANDAt502540String1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MaxLengthAtBRANDAt502540String1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err } - return o.AtBRANDAt447943 + return nil +} + +type GetConfigurationProductsMaxLengthString1 struct { + AtBRANDAt502540 MaxLengthAtBRANDAt502540String1 `json:"__@BRAND@502540"` } -type MaxLengthAtBRANDAt447943String1 struct { +func (g GetConfigurationProductsMaxLengthString1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type MaxLengthString1 struct { - AtBRANDAt447943 MaxLengthAtBRANDAt447943String1 `json:"__@BRAND@447943"` +func (g *GetConfigurationProductsMaxLengthString1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *MaxLengthString1) GetAtBRANDAt447943() MaxLengthAtBRANDAt447943String1 { +func (o *GetConfigurationProductsMaxLengthString1) GetAtBRANDAt502540() MaxLengthAtBRANDAt502540String1 { if o == nil { - return MaxLengthAtBRANDAt447943String1{} + return MaxLengthAtBRANDAt502540String1{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type PatternAtBRANDAt447943String1 struct { +type PatternAtBRANDAt502540String1 struct { } -type PatternString1 struct { - AtBRANDAt447943 PatternAtBRANDAt447943String1 `json:"__@BRAND@447943"` +func (p PatternAtBRANDAt502540String1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) } -func (o *PatternString1) GetAtBRANDAt447943() PatternAtBRANDAt447943String1 { +func (p *PatternAtBRANDAt502540String1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +type GetConfigurationProductsPatternString1 struct { + AtBRANDAt502540 PatternAtBRANDAt502540String1 `json:"__@BRAND@502540"` +} + +func (g GetConfigurationProductsPatternString1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsPatternString1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsPatternString1) GetAtBRANDAt502540() PatternAtBRANDAt502540String1 { if o == nil { - return PatternAtBRANDAt447943String1{} + return PatternAtBRANDAt502540String1{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 +} + +type GetConfigurationProductsItemsString1 struct { + Type GetConfigurationProductsTypeString3 `json:"type"` + Description *string `json:"description,omitempty"` + MinLength *GetConfigurationProductsMinLengthString1 `json:"minLength,omitempty"` + MaxLength *GetConfigurationProductsMaxLengthString1 `json:"maxLength,omitempty"` + Pattern *GetConfigurationProductsPatternString1 `json:"pattern,omitempty"` + Default *string `json:"default,omitempty"` + Enum []string `json:"enum,omitempty"` +} + +func (g GetConfigurationProductsItemsString1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type ItemsString1 struct { - Type TypeString3 `json:"type"` - Description *string `json:"description,omitempty"` - MinLength *MinLengthString1 `json:"minLength,omitempty"` - MaxLength *MaxLengthString1 `json:"maxLength,omitempty"` - Pattern *PatternString1 `json:"pattern,omitempty"` - Default *string `json:"default,omitempty"` - Enum []string `json:"enum,omitempty"` +func (g *GetConfigurationProductsItemsString1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type"}); err != nil { + return err + } + return nil } -func (o *ItemsString1) GetType() TypeString3 { +func (o *GetConfigurationProductsItemsString1) GetType() GetConfigurationProductsTypeString3 { if o == nil { - return TypeString3("") + return GetConfigurationProductsTypeString3("") } return o.Type } -func (o *ItemsString1) GetDescription() *string { +func (o *GetConfigurationProductsItemsString1) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *ItemsString1) GetMinLength() *MinLengthString1 { +func (o *GetConfigurationProductsItemsString1) GetMinLength() *GetConfigurationProductsMinLengthString1 { if o == nil { return nil } return o.MinLength } -func (o *ItemsString1) GetMaxLength() *MaxLengthString1 { +func (o *GetConfigurationProductsItemsString1) GetMaxLength() *GetConfigurationProductsMaxLengthString1 { if o == nil { return nil } return o.MaxLength } -func (o *ItemsString1) GetPattern() *PatternString1 { +func (o *GetConfigurationProductsItemsString1) GetPattern() *GetConfigurationProductsPatternString1 { if o == nil { return nil } return o.Pattern } -func (o *ItemsString1) GetDefault() *string { +func (o *GetConfigurationProductsItemsString1) GetDefault() *string { if o == nil { return nil } return o.Default } -func (o *ItemsString1) GetEnum() []string { +func (o *GetConfigurationProductsItemsString1) GetEnum() []string { if o == nil { return nil } return o.Enum } -type DisabledUIOptionEnum2 string +type GetConfigurationProductsDisabledUIOptionEnum2 string const ( - DisabledUIOptionEnum2Update DisabledUIOptionEnum2 = "update" - DisabledUIOptionEnum2Create DisabledUIOptionEnum2 = "create" + GetConfigurationProductsDisabledUIOptionEnum2Update GetConfigurationProductsDisabledUIOptionEnum2 = "update" + GetConfigurationProductsDisabledUIOptionEnum2Create GetConfigurationProductsDisabledUIOptionEnum2 = "create" ) -func (e DisabledUIOptionEnum2) ToPointer() *DisabledUIOptionEnum2 { +func (e GetConfigurationProductsDisabledUIOptionEnum2) ToPointer() *GetConfigurationProductsDisabledUIOptionEnum2 { return &e } -func (e *DisabledUIOptionEnum2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsDisabledUIOptionEnum2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -3957,120 +4628,131 @@ func (e *DisabledUIOptionEnum2) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = DisabledUIOptionEnum2(v) + *e = GetConfigurationProductsDisabledUIOptionEnum2(v) return nil default: - return fmt.Errorf("invalid value for DisabledUIOptionEnum2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsDisabledUIOptionEnum2: %v", v) } } -type DisabledUIOption2 struct { +type GetConfigurationProductsDisabledUIOption2 struct { Expr string `json:"expr"` } -func (o *DisabledUIOption2) GetExpr() string { +func (g GetConfigurationProductsDisabledUIOption2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsDisabledUIOption2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsDisabledUIOption2) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionDisabledUnion2Type string +type GetConfigurationProductsUIOptionDisabledUnion2Type string const ( - UIOptionDisabledUnion2TypeBoolean UIOptionDisabledUnion2Type = "boolean" - UIOptionDisabledUnion2TypeDisabledUIOption2 UIOptionDisabledUnion2Type = "disabled_ui:option_2" - UIOptionDisabledUnion2TypeDisabledUIOptionEnum2 UIOptionDisabledUnion2Type = "disabled_ui:option_enum_2" + GetConfigurationProductsUIOptionDisabledUnion2TypeBoolean GetConfigurationProductsUIOptionDisabledUnion2Type = "boolean" + GetConfigurationProductsUIOptionDisabledUnion2TypeGetConfigurationProductsDisabledUIOption2 GetConfigurationProductsUIOptionDisabledUnion2Type = "getConfigurationProducts_disabled_ui:option_2" + GetConfigurationProductsUIOptionDisabledUnion2TypeGetConfigurationProductsDisabledUIOptionEnum2 GetConfigurationProductsUIOptionDisabledUnion2Type = "getConfigurationProducts_disabled_ui:option_enum_2" ) -type UIOptionDisabledUnion2 struct { - Boolean *bool `queryParam:"inline"` - DisabledUIOption2 *DisabledUIOption2 `queryParam:"inline"` - DisabledUIOptionEnum2 *DisabledUIOptionEnum2 `queryParam:"inline"` +type GetConfigurationProductsUIOptionDisabledUnion2 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsDisabledUIOption2 *GetConfigurationProductsDisabledUIOption2 `queryParam:"inline"` + GetConfigurationProductsDisabledUIOptionEnum2 *GetConfigurationProductsDisabledUIOptionEnum2 `queryParam:"inline"` - Type UIOptionDisabledUnion2Type + Type GetConfigurationProductsUIOptionDisabledUnion2Type } -func CreateUIOptionDisabledUnion2Boolean(boolean bool) UIOptionDisabledUnion2 { - typ := UIOptionDisabledUnion2TypeBoolean +func CreateGetConfigurationProductsUIOptionDisabledUnion2Boolean(boolean bool) GetConfigurationProductsUIOptionDisabledUnion2 { + typ := GetConfigurationProductsUIOptionDisabledUnion2TypeBoolean - return UIOptionDisabledUnion2{ + return GetConfigurationProductsUIOptionDisabledUnion2{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionDisabledUnion2DisabledUIOption2(disabledUIOption2 DisabledUIOption2) UIOptionDisabledUnion2 { - typ := UIOptionDisabledUnion2TypeDisabledUIOption2 +func CreateGetConfigurationProductsUIOptionDisabledUnion2GetConfigurationProductsDisabledUIOption2(getConfigurationProductsDisabledUIOption2 GetConfigurationProductsDisabledUIOption2) GetConfigurationProductsUIOptionDisabledUnion2 { + typ := GetConfigurationProductsUIOptionDisabledUnion2TypeGetConfigurationProductsDisabledUIOption2 - return UIOptionDisabledUnion2{ - DisabledUIOption2: &disabledUIOption2, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion2{ + GetConfigurationProductsDisabledUIOption2: &getConfigurationProductsDisabledUIOption2, + Type: typ, } } -func CreateUIOptionDisabledUnion2DisabledUIOptionEnum2(disabledUIOptionEnum2 DisabledUIOptionEnum2) UIOptionDisabledUnion2 { - typ := UIOptionDisabledUnion2TypeDisabledUIOptionEnum2 +func CreateGetConfigurationProductsUIOptionDisabledUnion2GetConfigurationProductsDisabledUIOptionEnum2(getConfigurationProductsDisabledUIOptionEnum2 GetConfigurationProductsDisabledUIOptionEnum2) GetConfigurationProductsUIOptionDisabledUnion2 { + typ := GetConfigurationProductsUIOptionDisabledUnion2TypeGetConfigurationProductsDisabledUIOptionEnum2 - return UIOptionDisabledUnion2{ - DisabledUIOptionEnum2: &disabledUIOptionEnum2, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion2{ + GetConfigurationProductsDisabledUIOptionEnum2: &getConfigurationProductsDisabledUIOptionEnum2, + Type: typ, } } -func (u *UIOptionDisabledUnion2) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionDisabledUnion2) UnmarshalJSON(data []byte) error { - var disabledUIOption2 DisabledUIOption2 = DisabledUIOption2{} - if err := utils.UnmarshalJSON(data, &disabledUIOption2, "", true, true); err == nil { - u.DisabledUIOption2 = &disabledUIOption2 - u.Type = UIOptionDisabledUnion2TypeDisabledUIOption2 + var getConfigurationProductsDisabledUIOption2 GetConfigurationProductsDisabledUIOption2 = GetConfigurationProductsDisabledUIOption2{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsDisabledUIOption2, "", true, nil); err == nil { + u.GetConfigurationProductsDisabledUIOption2 = &getConfigurationProductsDisabledUIOption2 + u.Type = GetConfigurationProductsUIOptionDisabledUnion2TypeGetConfigurationProductsDisabledUIOption2 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionDisabledUnion2TypeBoolean + u.Type = GetConfigurationProductsUIOptionDisabledUnion2TypeBoolean return nil } - var disabledUIOptionEnum2 DisabledUIOptionEnum2 = DisabledUIOptionEnum2("") - if err := utils.UnmarshalJSON(data, &disabledUIOptionEnum2, "", true, true); err == nil { - u.DisabledUIOptionEnum2 = &disabledUIOptionEnum2 - u.Type = UIOptionDisabledUnion2TypeDisabledUIOptionEnum2 + var getConfigurationProductsDisabledUIOptionEnum2 GetConfigurationProductsDisabledUIOptionEnum2 = GetConfigurationProductsDisabledUIOptionEnum2("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsDisabledUIOptionEnum2, "", true, nil); err == nil { + u.GetConfigurationProductsDisabledUIOptionEnum2 = &getConfigurationProductsDisabledUIOptionEnum2 + u.Type = GetConfigurationProductsUIOptionDisabledUnion2TypeGetConfigurationProductsDisabledUIOptionEnum2 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionDisabledUnion2", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionDisabledUnion2", string(data)) } -func (u UIOptionDisabledUnion2) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionDisabledUnion2) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.DisabledUIOption2 != nil { - return utils.MarshalJSON(u.DisabledUIOption2, "", true) + if u.GetConfigurationProductsDisabledUIOption2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsDisabledUIOption2, "", true) } - if u.DisabledUIOptionEnum2 != nil { - return utils.MarshalJSON(u.DisabledUIOptionEnum2, "", true) + if u.GetConfigurationProductsDisabledUIOptionEnum2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsDisabledUIOptionEnum2, "", true) } - return nil, errors.New("could not marshal union type UIOptionDisabledUnion2: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionDisabledUnion2: all fields are null") } -type HiddenUIOptionEnum2 string +type GetConfigurationProductsHiddenUIOptionEnum2 string const ( - HiddenUIOptionEnum2Update HiddenUIOptionEnum2 = "update" - HiddenUIOptionEnum2Create HiddenUIOptionEnum2 = "create" + GetConfigurationProductsHiddenUIOptionEnum2Update GetConfigurationProductsHiddenUIOptionEnum2 = "update" + GetConfigurationProductsHiddenUIOptionEnum2Create GetConfigurationProductsHiddenUIOptionEnum2 = "create" ) -func (e HiddenUIOptionEnum2) ToPointer() *HiddenUIOptionEnum2 { +func (e GetConfigurationProductsHiddenUIOptionEnum2) ToPointer() *GetConfigurationProductsHiddenUIOptionEnum2 { return &e } -func (e *HiddenUIOptionEnum2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsHiddenUIOptionEnum2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -4079,155 +4761,177 @@ func (e *HiddenUIOptionEnum2) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = HiddenUIOptionEnum2(v) + *e = GetConfigurationProductsHiddenUIOptionEnum2(v) return nil default: - return fmt.Errorf("invalid value for HiddenUIOptionEnum2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsHiddenUIOptionEnum2: %v", v) } } -type HiddenUIOption2 struct { +type GetConfigurationProductsHiddenUIOption2 struct { Expr string `json:"expr"` } -func (o *HiddenUIOption2) GetExpr() string { +func (g GetConfigurationProductsHiddenUIOption2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsHiddenUIOption2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsHiddenUIOption2) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionHiddenUnion2Type string +type GetConfigurationProductsUIOptionHiddenUnion2Type string const ( - UIOptionHiddenUnion2TypeBoolean UIOptionHiddenUnion2Type = "boolean" - UIOptionHiddenUnion2TypeHiddenUIOption2 UIOptionHiddenUnion2Type = "hidden_ui:option_2" - UIOptionHiddenUnion2TypeHiddenUIOptionEnum2 UIOptionHiddenUnion2Type = "hidden_ui:option_enum_2" + GetConfigurationProductsUIOptionHiddenUnion2TypeBoolean GetConfigurationProductsUIOptionHiddenUnion2Type = "boolean" + GetConfigurationProductsUIOptionHiddenUnion2TypeGetConfigurationProductsHiddenUIOption2 GetConfigurationProductsUIOptionHiddenUnion2Type = "getConfigurationProducts_hidden_ui:option_2" + GetConfigurationProductsUIOptionHiddenUnion2TypeGetConfigurationProductsHiddenUIOptionEnum2 GetConfigurationProductsUIOptionHiddenUnion2Type = "getConfigurationProducts_hidden_ui:option_enum_2" ) -type UIOptionHiddenUnion2 struct { - Boolean *bool `queryParam:"inline"` - HiddenUIOption2 *HiddenUIOption2 `queryParam:"inline"` - HiddenUIOptionEnum2 *HiddenUIOptionEnum2 `queryParam:"inline"` +type GetConfigurationProductsUIOptionHiddenUnion2 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsHiddenUIOption2 *GetConfigurationProductsHiddenUIOption2 `queryParam:"inline"` + GetConfigurationProductsHiddenUIOptionEnum2 *GetConfigurationProductsHiddenUIOptionEnum2 `queryParam:"inline"` - Type UIOptionHiddenUnion2Type + Type GetConfigurationProductsUIOptionHiddenUnion2Type } -func CreateUIOptionHiddenUnion2Boolean(boolean bool) UIOptionHiddenUnion2 { - typ := UIOptionHiddenUnion2TypeBoolean +func CreateGetConfigurationProductsUIOptionHiddenUnion2Boolean(boolean bool) GetConfigurationProductsUIOptionHiddenUnion2 { + typ := GetConfigurationProductsUIOptionHiddenUnion2TypeBoolean - return UIOptionHiddenUnion2{ + return GetConfigurationProductsUIOptionHiddenUnion2{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionHiddenUnion2HiddenUIOption2(hiddenUIOption2 HiddenUIOption2) UIOptionHiddenUnion2 { - typ := UIOptionHiddenUnion2TypeHiddenUIOption2 +func CreateGetConfigurationProductsUIOptionHiddenUnion2GetConfigurationProductsHiddenUIOption2(getConfigurationProductsHiddenUIOption2 GetConfigurationProductsHiddenUIOption2) GetConfigurationProductsUIOptionHiddenUnion2 { + typ := GetConfigurationProductsUIOptionHiddenUnion2TypeGetConfigurationProductsHiddenUIOption2 - return UIOptionHiddenUnion2{ - HiddenUIOption2: &hiddenUIOption2, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion2{ + GetConfigurationProductsHiddenUIOption2: &getConfigurationProductsHiddenUIOption2, + Type: typ, } } -func CreateUIOptionHiddenUnion2HiddenUIOptionEnum2(hiddenUIOptionEnum2 HiddenUIOptionEnum2) UIOptionHiddenUnion2 { - typ := UIOptionHiddenUnion2TypeHiddenUIOptionEnum2 +func CreateGetConfigurationProductsUIOptionHiddenUnion2GetConfigurationProductsHiddenUIOptionEnum2(getConfigurationProductsHiddenUIOptionEnum2 GetConfigurationProductsHiddenUIOptionEnum2) GetConfigurationProductsUIOptionHiddenUnion2 { + typ := GetConfigurationProductsUIOptionHiddenUnion2TypeGetConfigurationProductsHiddenUIOptionEnum2 - return UIOptionHiddenUnion2{ - HiddenUIOptionEnum2: &hiddenUIOptionEnum2, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion2{ + GetConfigurationProductsHiddenUIOptionEnum2: &getConfigurationProductsHiddenUIOptionEnum2, + Type: typ, } } -func (u *UIOptionHiddenUnion2) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionHiddenUnion2) UnmarshalJSON(data []byte) error { - var hiddenUIOption2 HiddenUIOption2 = HiddenUIOption2{} - if err := utils.UnmarshalJSON(data, &hiddenUIOption2, "", true, true); err == nil { - u.HiddenUIOption2 = &hiddenUIOption2 - u.Type = UIOptionHiddenUnion2TypeHiddenUIOption2 + var getConfigurationProductsHiddenUIOption2 GetConfigurationProductsHiddenUIOption2 = GetConfigurationProductsHiddenUIOption2{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsHiddenUIOption2, "", true, nil); err == nil { + u.GetConfigurationProductsHiddenUIOption2 = &getConfigurationProductsHiddenUIOption2 + u.Type = GetConfigurationProductsUIOptionHiddenUnion2TypeGetConfigurationProductsHiddenUIOption2 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionHiddenUnion2TypeBoolean + u.Type = GetConfigurationProductsUIOptionHiddenUnion2TypeBoolean return nil } - var hiddenUIOptionEnum2 HiddenUIOptionEnum2 = HiddenUIOptionEnum2("") - if err := utils.UnmarshalJSON(data, &hiddenUIOptionEnum2, "", true, true); err == nil { - u.HiddenUIOptionEnum2 = &hiddenUIOptionEnum2 - u.Type = UIOptionHiddenUnion2TypeHiddenUIOptionEnum2 + var getConfigurationProductsHiddenUIOptionEnum2 GetConfigurationProductsHiddenUIOptionEnum2 = GetConfigurationProductsHiddenUIOptionEnum2("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsHiddenUIOptionEnum2, "", true, nil); err == nil { + u.GetConfigurationProductsHiddenUIOptionEnum2 = &getConfigurationProductsHiddenUIOptionEnum2 + u.Type = GetConfigurationProductsUIOptionHiddenUnion2TypeGetConfigurationProductsHiddenUIOptionEnum2 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionHiddenUnion2", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionHiddenUnion2", string(data)) } -func (u UIOptionHiddenUnion2) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionHiddenUnion2) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.HiddenUIOption2 != nil { - return utils.MarshalJSON(u.HiddenUIOption2, "", true) + if u.GetConfigurationProductsHiddenUIOption2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsHiddenUIOption2, "", true) } - if u.HiddenUIOptionEnum2 != nil { - return utils.MarshalJSON(u.HiddenUIOptionEnum2, "", true) + if u.GetConfigurationProductsHiddenUIOptionEnum2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsHiddenUIOptionEnum2, "", true) } - return nil, errors.New("could not marshal union type UIOptionHiddenUnion2: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionHiddenUnion2: all fields are null") } -type UIOption2 struct { - Value string `json:"value"` - Label string `json:"label"` - Disabled *UIOptionDisabledUnion2 `json:"disabled,omitempty"` - Hidden *UIOptionHiddenUnion2 `json:"hidden,omitempty"` +type GetConfigurationProductsUIOption2 struct { + Value string `json:"value"` + Label string `json:"label"` + Disabled *GetConfigurationProductsUIOptionDisabledUnion2 `json:"disabled,omitempty"` + Hidden *GetConfigurationProductsUIOptionHiddenUnion2 `json:"hidden,omitempty"` } -func (o *UIOption2) GetValue() string { +func (g GetConfigurationProductsUIOption2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOption2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value", "label"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOption2) GetValue() string { if o == nil { return "" } return o.Value } -func (o *UIOption2) GetLabel() string { +func (o *GetConfigurationProductsUIOption2) GetLabel() string { if o == nil { return "" } return o.Label } -func (o *UIOption2) GetDisabled() *UIOptionDisabledUnion2 { +func (o *GetConfigurationProductsUIOption2) GetDisabled() *GetConfigurationProductsUIOptionDisabledUnion2 { if o == nil { return nil } return o.Disabled } -func (o *UIOption2) GetHidden() *UIOptionHiddenUnion2 { +func (o *GetConfigurationProductsUIOption2) GetHidden() *GetConfigurationProductsUIOptionHiddenUnion2 { if o == nil { return nil } return o.Hidden } -type UIReadOnlyEnum6 string +type GetConfigurationProductsUIReadOnlyEnum6 string const ( - UIReadOnlyEnum6Update UIReadOnlyEnum6 = "update" - UIReadOnlyEnum6Create UIReadOnlyEnum6 = "create" + GetConfigurationProductsUIReadOnlyEnum6Update GetConfigurationProductsUIReadOnlyEnum6 = "update" + GetConfigurationProductsUIReadOnlyEnum6Create GetConfigurationProductsUIReadOnlyEnum6 = "create" ) -func (e UIReadOnlyEnum6) ToPointer() *UIReadOnlyEnum6 { +func (e GetConfigurationProductsUIReadOnlyEnum6) ToPointer() *GetConfigurationProductsUIReadOnlyEnum6 { return &e } -func (e *UIReadOnlyEnum6) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIReadOnlyEnum6) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -4236,120 +4940,131 @@ func (e *UIReadOnlyEnum6) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIReadOnlyEnum6(v) + *e = GetConfigurationProductsUIReadOnlyEnum6(v) return nil default: - return fmt.Errorf("invalid value for UIReadOnlyEnum6: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIReadOnlyEnum6: %v", v) } } -type UIReadOnly6 struct { +type GetConfigurationProductsUIReadOnly6 struct { Expr string `json:"expr"` } -func (o *UIReadOnly6) GetExpr() string { +func (g GetConfigurationProductsUIReadOnly6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIReadOnly6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIReadOnly6) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIReadOnlyUnion6Type string +type GetConfigurationProductsUIReadOnlyUnion6Type string const ( - UIReadOnlyUnion6TypeBoolean UIReadOnlyUnion6Type = "boolean" - UIReadOnlyUnion6TypeUIReadOnly6 UIReadOnlyUnion6Type = "ui:read-only_6" - UIReadOnlyUnion6TypeUIReadOnlyEnum6 UIReadOnlyUnion6Type = "ui:read-only_enum_6" + GetConfigurationProductsUIReadOnlyUnion6TypeBoolean GetConfigurationProductsUIReadOnlyUnion6Type = "boolean" + GetConfigurationProductsUIReadOnlyUnion6TypeGetConfigurationProductsUIReadOnly6 GetConfigurationProductsUIReadOnlyUnion6Type = "getConfigurationProducts_ui:read-only_6" + GetConfigurationProductsUIReadOnlyUnion6TypeGetConfigurationProductsUIReadOnlyEnum6 GetConfigurationProductsUIReadOnlyUnion6Type = "getConfigurationProducts_ui:read-only_enum_6" ) -type UIReadOnlyUnion6 struct { - Boolean *bool `queryParam:"inline"` - UIReadOnly6 *UIReadOnly6 `queryParam:"inline"` - UIReadOnlyEnum6 *UIReadOnlyEnum6 `queryParam:"inline"` +type GetConfigurationProductsUIReadOnlyUnion6 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIReadOnly6 *GetConfigurationProductsUIReadOnly6 `queryParam:"inline"` + GetConfigurationProductsUIReadOnlyEnum6 *GetConfigurationProductsUIReadOnlyEnum6 `queryParam:"inline"` - Type UIReadOnlyUnion6Type + Type GetConfigurationProductsUIReadOnlyUnion6Type } -func CreateUIReadOnlyUnion6Boolean(boolean bool) UIReadOnlyUnion6 { - typ := UIReadOnlyUnion6TypeBoolean +func CreateGetConfigurationProductsUIReadOnlyUnion6Boolean(boolean bool) GetConfigurationProductsUIReadOnlyUnion6 { + typ := GetConfigurationProductsUIReadOnlyUnion6TypeBoolean - return UIReadOnlyUnion6{ + return GetConfigurationProductsUIReadOnlyUnion6{ Boolean: &boolean, Type: typ, } } -func CreateUIReadOnlyUnion6UIReadOnly6(uiReadOnly6 UIReadOnly6) UIReadOnlyUnion6 { - typ := UIReadOnlyUnion6TypeUIReadOnly6 +func CreateGetConfigurationProductsUIReadOnlyUnion6GetConfigurationProductsUIReadOnly6(getConfigurationProductsUIReadOnly6 GetConfigurationProductsUIReadOnly6) GetConfigurationProductsUIReadOnlyUnion6 { + typ := GetConfigurationProductsUIReadOnlyUnion6TypeGetConfigurationProductsUIReadOnly6 - return UIReadOnlyUnion6{ - UIReadOnly6: &uiReadOnly6, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion6{ + GetConfigurationProductsUIReadOnly6: &getConfigurationProductsUIReadOnly6, + Type: typ, } } -func CreateUIReadOnlyUnion6UIReadOnlyEnum6(uiReadOnlyEnum6 UIReadOnlyEnum6) UIReadOnlyUnion6 { - typ := UIReadOnlyUnion6TypeUIReadOnlyEnum6 +func CreateGetConfigurationProductsUIReadOnlyUnion6GetConfigurationProductsUIReadOnlyEnum6(getConfigurationProductsUIReadOnlyEnum6 GetConfigurationProductsUIReadOnlyEnum6) GetConfigurationProductsUIReadOnlyUnion6 { + typ := GetConfigurationProductsUIReadOnlyUnion6TypeGetConfigurationProductsUIReadOnlyEnum6 - return UIReadOnlyUnion6{ - UIReadOnlyEnum6: &uiReadOnlyEnum6, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion6{ + GetConfigurationProductsUIReadOnlyEnum6: &getConfigurationProductsUIReadOnlyEnum6, + Type: typ, } } -func (u *UIReadOnlyUnion6) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIReadOnlyUnion6) UnmarshalJSON(data []byte) error { - var uiReadOnly6 UIReadOnly6 = UIReadOnly6{} - if err := utils.UnmarshalJSON(data, &uiReadOnly6, "", true, true); err == nil { - u.UIReadOnly6 = &uiReadOnly6 - u.Type = UIReadOnlyUnion6TypeUIReadOnly6 + var getConfigurationProductsUIReadOnly6 GetConfigurationProductsUIReadOnly6 = GetConfigurationProductsUIReadOnly6{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnly6, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnly6 = &getConfigurationProductsUIReadOnly6 + u.Type = GetConfigurationProductsUIReadOnlyUnion6TypeGetConfigurationProductsUIReadOnly6 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIReadOnlyUnion6TypeBoolean + u.Type = GetConfigurationProductsUIReadOnlyUnion6TypeBoolean return nil } - var uiReadOnlyEnum6 UIReadOnlyEnum6 = UIReadOnlyEnum6("") - if err := utils.UnmarshalJSON(data, &uiReadOnlyEnum6, "", true, true); err == nil { - u.UIReadOnlyEnum6 = &uiReadOnlyEnum6 - u.Type = UIReadOnlyUnion6TypeUIReadOnlyEnum6 + var getConfigurationProductsUIReadOnlyEnum6 GetConfigurationProductsUIReadOnlyEnum6 = GetConfigurationProductsUIReadOnlyEnum6("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnlyEnum6, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnlyEnum6 = &getConfigurationProductsUIReadOnlyEnum6 + u.Type = GetConfigurationProductsUIReadOnlyUnion6TypeGetConfigurationProductsUIReadOnlyEnum6 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIReadOnlyUnion6", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIReadOnlyUnion6", string(data)) } -func (u UIReadOnlyUnion6) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIReadOnlyUnion6) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIReadOnly6 != nil { - return utils.MarshalJSON(u.UIReadOnly6, "", true) + if u.GetConfigurationProductsUIReadOnly6 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnly6, "", true) } - if u.UIReadOnlyEnum6 != nil { - return utils.MarshalJSON(u.UIReadOnlyEnum6, "", true) + if u.GetConfigurationProductsUIReadOnlyEnum6 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnlyEnum6, "", true) } - return nil, errors.New("could not marshal union type UIReadOnlyUnion6: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIReadOnlyUnion6: all fields are null") } -type UIHiddenEnum6 string +type GetConfigurationProductsUIHiddenEnum6 string const ( - UIHiddenEnum6Update UIHiddenEnum6 = "update" - UIHiddenEnum6Create UIHiddenEnum6 = "create" + GetConfigurationProductsUIHiddenEnum6Update GetConfigurationProductsUIHiddenEnum6 = "update" + GetConfigurationProductsUIHiddenEnum6Create GetConfigurationProductsUIHiddenEnum6 = "create" ) -func (e UIHiddenEnum6) ToPointer() *UIHiddenEnum6 { +func (e GetConfigurationProductsUIHiddenEnum6) ToPointer() *GetConfigurationProductsUIHiddenEnum6 { return &e } -func (e *UIHiddenEnum6) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIHiddenEnum6) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -4358,120 +5073,131 @@ func (e *UIHiddenEnum6) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIHiddenEnum6(v) + *e = GetConfigurationProductsUIHiddenEnum6(v) return nil default: - return fmt.Errorf("invalid value for UIHiddenEnum6: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIHiddenEnum6: %v", v) } } -type UIHidden6 struct { +type GetConfigurationProductsUIHidden6 struct { Expr string `json:"expr"` } -func (o *UIHidden6) GetExpr() string { +func (g GetConfigurationProductsUIHidden6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIHidden6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIHidden6) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIHiddenUnion6Type string +type GetConfigurationProductsUIHiddenUnion6Type string const ( - UIHiddenUnion6TypeBoolean UIHiddenUnion6Type = "boolean" - UIHiddenUnion6TypeUIHidden6 UIHiddenUnion6Type = "ui:hidden_6" - UIHiddenUnion6TypeUIHiddenEnum6 UIHiddenUnion6Type = "ui:hidden_enum_6" + GetConfigurationProductsUIHiddenUnion6TypeBoolean GetConfigurationProductsUIHiddenUnion6Type = "boolean" + GetConfigurationProductsUIHiddenUnion6TypeGetConfigurationProductsUIHidden6 GetConfigurationProductsUIHiddenUnion6Type = "getConfigurationProducts_ui:hidden_6" + GetConfigurationProductsUIHiddenUnion6TypeGetConfigurationProductsUIHiddenEnum6 GetConfigurationProductsUIHiddenUnion6Type = "getConfigurationProducts_ui:hidden_enum_6" ) -type UIHiddenUnion6 struct { - Boolean *bool `queryParam:"inline"` - UIHidden6 *UIHidden6 `queryParam:"inline"` - UIHiddenEnum6 *UIHiddenEnum6 `queryParam:"inline"` +type GetConfigurationProductsUIHiddenUnion6 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIHidden6 *GetConfigurationProductsUIHidden6 `queryParam:"inline"` + GetConfigurationProductsUIHiddenEnum6 *GetConfigurationProductsUIHiddenEnum6 `queryParam:"inline"` - Type UIHiddenUnion6Type + Type GetConfigurationProductsUIHiddenUnion6Type } -func CreateUIHiddenUnion6Boolean(boolean bool) UIHiddenUnion6 { - typ := UIHiddenUnion6TypeBoolean +func CreateGetConfigurationProductsUIHiddenUnion6Boolean(boolean bool) GetConfigurationProductsUIHiddenUnion6 { + typ := GetConfigurationProductsUIHiddenUnion6TypeBoolean - return UIHiddenUnion6{ + return GetConfigurationProductsUIHiddenUnion6{ Boolean: &boolean, Type: typ, } } -func CreateUIHiddenUnion6UIHidden6(uiHidden6 UIHidden6) UIHiddenUnion6 { - typ := UIHiddenUnion6TypeUIHidden6 +func CreateGetConfigurationProductsUIHiddenUnion6GetConfigurationProductsUIHidden6(getConfigurationProductsUIHidden6 GetConfigurationProductsUIHidden6) GetConfigurationProductsUIHiddenUnion6 { + typ := GetConfigurationProductsUIHiddenUnion6TypeGetConfigurationProductsUIHidden6 - return UIHiddenUnion6{ - UIHidden6: &uiHidden6, - Type: typ, + return GetConfigurationProductsUIHiddenUnion6{ + GetConfigurationProductsUIHidden6: &getConfigurationProductsUIHidden6, + Type: typ, } } -func CreateUIHiddenUnion6UIHiddenEnum6(uiHiddenEnum6 UIHiddenEnum6) UIHiddenUnion6 { - typ := UIHiddenUnion6TypeUIHiddenEnum6 +func CreateGetConfigurationProductsUIHiddenUnion6GetConfigurationProductsUIHiddenEnum6(getConfigurationProductsUIHiddenEnum6 GetConfigurationProductsUIHiddenEnum6) GetConfigurationProductsUIHiddenUnion6 { + typ := GetConfigurationProductsUIHiddenUnion6TypeGetConfigurationProductsUIHiddenEnum6 - return UIHiddenUnion6{ - UIHiddenEnum6: &uiHiddenEnum6, - Type: typ, + return GetConfigurationProductsUIHiddenUnion6{ + GetConfigurationProductsUIHiddenEnum6: &getConfigurationProductsUIHiddenEnum6, + Type: typ, } } -func (u *UIHiddenUnion6) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIHiddenUnion6) UnmarshalJSON(data []byte) error { - var uiHidden6 UIHidden6 = UIHidden6{} - if err := utils.UnmarshalJSON(data, &uiHidden6, "", true, true); err == nil { - u.UIHidden6 = &uiHidden6 - u.Type = UIHiddenUnion6TypeUIHidden6 + var getConfigurationProductsUIHidden6 GetConfigurationProductsUIHidden6 = GetConfigurationProductsUIHidden6{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHidden6, "", true, nil); err == nil { + u.GetConfigurationProductsUIHidden6 = &getConfigurationProductsUIHidden6 + u.Type = GetConfigurationProductsUIHiddenUnion6TypeGetConfigurationProductsUIHidden6 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIHiddenUnion6TypeBoolean + u.Type = GetConfigurationProductsUIHiddenUnion6TypeBoolean return nil } - var uiHiddenEnum6 UIHiddenEnum6 = UIHiddenEnum6("") - if err := utils.UnmarshalJSON(data, &uiHiddenEnum6, "", true, true); err == nil { - u.UIHiddenEnum6 = &uiHiddenEnum6 - u.Type = UIHiddenUnion6TypeUIHiddenEnum6 + var getConfigurationProductsUIHiddenEnum6 GetConfigurationProductsUIHiddenEnum6 = GetConfigurationProductsUIHiddenEnum6("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHiddenEnum6, "", true, nil); err == nil { + u.GetConfigurationProductsUIHiddenEnum6 = &getConfigurationProductsUIHiddenEnum6 + u.Type = GetConfigurationProductsUIHiddenUnion6TypeGetConfigurationProductsUIHiddenEnum6 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIHiddenUnion6", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIHiddenUnion6", string(data)) } -func (u UIHiddenUnion6) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIHiddenUnion6) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIHidden6 != nil { - return utils.MarshalJSON(u.UIHidden6, "", true) + if u.GetConfigurationProductsUIHidden6 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHidden6, "", true) } - if u.UIHiddenEnum6 != nil { - return utils.MarshalJSON(u.UIHiddenEnum6, "", true) + if u.GetConfigurationProductsUIHiddenEnum6 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHiddenEnum6, "", true) } - return nil, errors.New("could not marshal union type UIHiddenUnion6: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIHiddenUnion6: all fields are null") } -type UIDisabledEnum6 string +type GetConfigurationProductsUIDisabledEnum6 string const ( - UIDisabledEnum6Update UIDisabledEnum6 = "update" - UIDisabledEnum6Create UIDisabledEnum6 = "create" + GetConfigurationProductsUIDisabledEnum6Update GetConfigurationProductsUIDisabledEnum6 = "update" + GetConfigurationProductsUIDisabledEnum6Create GetConfigurationProductsUIDisabledEnum6 = "create" ) -func (e UIDisabledEnum6) ToPointer() *UIDisabledEnum6 { +func (e GetConfigurationProductsUIDisabledEnum6) ToPointer() *GetConfigurationProductsUIDisabledEnum6 { return &e } -func (e *UIDisabledEnum6) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIDisabledEnum6) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -4480,382 +5206,426 @@ func (e *UIDisabledEnum6) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIDisabledEnum6(v) + *e = GetConfigurationProductsUIDisabledEnum6(v) return nil default: - return fmt.Errorf("invalid value for UIDisabledEnum6: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIDisabledEnum6: %v", v) } } -type UIDisabled6 struct { +type GetConfigurationProductsUIDisabled6 struct { Expr string `json:"expr"` } -func (o *UIDisabled6) GetExpr() string { +func (g GetConfigurationProductsUIDisabled6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDisabled6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDisabled6) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDisabledUnion6Type string +type GetConfigurationProductsUIDisabledUnion6Type string const ( - UIDisabledUnion6TypeBoolean UIDisabledUnion6Type = "boolean" - UIDisabledUnion6TypeUIDisabled6 UIDisabledUnion6Type = "ui:disabled_6" - UIDisabledUnion6TypeUIDisabledEnum6 UIDisabledUnion6Type = "ui:disabled_enum_6" + GetConfigurationProductsUIDisabledUnion6TypeBoolean GetConfigurationProductsUIDisabledUnion6Type = "boolean" + GetConfigurationProductsUIDisabledUnion6TypeGetConfigurationProductsUIDisabled6 GetConfigurationProductsUIDisabledUnion6Type = "getConfigurationProducts_ui:disabled_6" + GetConfigurationProductsUIDisabledUnion6TypeGetConfigurationProductsUIDisabledEnum6 GetConfigurationProductsUIDisabledUnion6Type = "getConfigurationProducts_ui:disabled_enum_6" ) -type UIDisabledUnion6 struct { - Boolean *bool `queryParam:"inline"` - UIDisabled6 *UIDisabled6 `queryParam:"inline"` - UIDisabledEnum6 *UIDisabledEnum6 `queryParam:"inline"` +type GetConfigurationProductsUIDisabledUnion6 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIDisabled6 *GetConfigurationProductsUIDisabled6 `queryParam:"inline"` + GetConfigurationProductsUIDisabledEnum6 *GetConfigurationProductsUIDisabledEnum6 `queryParam:"inline"` - Type UIDisabledUnion6Type + Type GetConfigurationProductsUIDisabledUnion6Type } -func CreateUIDisabledUnion6Boolean(boolean bool) UIDisabledUnion6 { - typ := UIDisabledUnion6TypeBoolean +func CreateGetConfigurationProductsUIDisabledUnion6Boolean(boolean bool) GetConfigurationProductsUIDisabledUnion6 { + typ := GetConfigurationProductsUIDisabledUnion6TypeBoolean - return UIDisabledUnion6{ + return GetConfigurationProductsUIDisabledUnion6{ Boolean: &boolean, Type: typ, } } -func CreateUIDisabledUnion6UIDisabled6(uiDisabled6 UIDisabled6) UIDisabledUnion6 { - typ := UIDisabledUnion6TypeUIDisabled6 +func CreateGetConfigurationProductsUIDisabledUnion6GetConfigurationProductsUIDisabled6(getConfigurationProductsUIDisabled6 GetConfigurationProductsUIDisabled6) GetConfigurationProductsUIDisabledUnion6 { + typ := GetConfigurationProductsUIDisabledUnion6TypeGetConfigurationProductsUIDisabled6 - return UIDisabledUnion6{ - UIDisabled6: &uiDisabled6, - Type: typ, + return GetConfigurationProductsUIDisabledUnion6{ + GetConfigurationProductsUIDisabled6: &getConfigurationProductsUIDisabled6, + Type: typ, } } -func CreateUIDisabledUnion6UIDisabledEnum6(uiDisabledEnum6 UIDisabledEnum6) UIDisabledUnion6 { - typ := UIDisabledUnion6TypeUIDisabledEnum6 +func CreateGetConfigurationProductsUIDisabledUnion6GetConfigurationProductsUIDisabledEnum6(getConfigurationProductsUIDisabledEnum6 GetConfigurationProductsUIDisabledEnum6) GetConfigurationProductsUIDisabledUnion6 { + typ := GetConfigurationProductsUIDisabledUnion6TypeGetConfigurationProductsUIDisabledEnum6 - return UIDisabledUnion6{ - UIDisabledEnum6: &uiDisabledEnum6, - Type: typ, + return GetConfigurationProductsUIDisabledUnion6{ + GetConfigurationProductsUIDisabledEnum6: &getConfigurationProductsUIDisabledEnum6, + Type: typ, } } -func (u *UIDisabledUnion6) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDisabledUnion6) UnmarshalJSON(data []byte) error { - var uiDisabled6 UIDisabled6 = UIDisabled6{} - if err := utils.UnmarshalJSON(data, &uiDisabled6, "", true, true); err == nil { - u.UIDisabled6 = &uiDisabled6 - u.Type = UIDisabledUnion6TypeUIDisabled6 + var getConfigurationProductsUIDisabled6 GetConfigurationProductsUIDisabled6 = GetConfigurationProductsUIDisabled6{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabled6, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabled6 = &getConfigurationProductsUIDisabled6 + u.Type = GetConfigurationProductsUIDisabledUnion6TypeGetConfigurationProductsUIDisabled6 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIDisabledUnion6TypeBoolean + u.Type = GetConfigurationProductsUIDisabledUnion6TypeBoolean return nil } - var uiDisabledEnum6 UIDisabledEnum6 = UIDisabledEnum6("") - if err := utils.UnmarshalJSON(data, &uiDisabledEnum6, "", true, true); err == nil { - u.UIDisabledEnum6 = &uiDisabledEnum6 - u.Type = UIDisabledUnion6TypeUIDisabledEnum6 + var getConfigurationProductsUIDisabledEnum6 GetConfigurationProductsUIDisabledEnum6 = GetConfigurationProductsUIDisabledEnum6("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabledEnum6, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabledEnum6 = &getConfigurationProductsUIDisabledEnum6 + u.Type = GetConfigurationProductsUIDisabledUnion6TypeGetConfigurationProductsUIDisabledEnum6 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDisabledUnion6", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDisabledUnion6", string(data)) } -func (u UIDisabledUnion6) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDisabledUnion6) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIDisabled6 != nil { - return utils.MarshalJSON(u.UIDisabled6, "", true) + if u.GetConfigurationProductsUIDisabled6 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabled6, "", true) } - if u.UIDisabledEnum6 != nil { - return utils.MarshalJSON(u.UIDisabledEnum6, "", true) + if u.GetConfigurationProductsUIDisabledEnum6 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabledEnum6, "", true) } - return nil, errors.New("could not marshal union type UIDisabledUnion6: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDisabledUnion6: all fields are null") } -type UIDescription6 struct { +type GetConfigurationProductsUIDescription6 struct { Expr string `json:"expr"` } -func (o *UIDescription6) GetExpr() string { +func (g GetConfigurationProductsUIDescription6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDescription6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDescription6) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDescriptionUnion6Type string +type GetConfigurationProductsUIDescriptionUnion6Type string const ( - UIDescriptionUnion6TypeStr UIDescriptionUnion6Type = "str" - UIDescriptionUnion6TypeUIDescription6 UIDescriptionUnion6Type = "ui:description_6" + GetConfigurationProductsUIDescriptionUnion6TypeStr GetConfigurationProductsUIDescriptionUnion6Type = "str" + GetConfigurationProductsUIDescriptionUnion6TypeGetConfigurationProductsUIDescription6 GetConfigurationProductsUIDescriptionUnion6Type = "getConfigurationProducts_ui:description_6" ) -type UIDescriptionUnion6 struct { - Str *string `queryParam:"inline"` - UIDescription6 *UIDescription6 `queryParam:"inline"` +type GetConfigurationProductsUIDescriptionUnion6 struct { + Str *string `queryParam:"inline"` + GetConfigurationProductsUIDescription6 *GetConfigurationProductsUIDescription6 `queryParam:"inline"` - Type UIDescriptionUnion6Type + Type GetConfigurationProductsUIDescriptionUnion6Type } -func CreateUIDescriptionUnion6Str(str string) UIDescriptionUnion6 { - typ := UIDescriptionUnion6TypeStr +func CreateGetConfigurationProductsUIDescriptionUnion6Str(str string) GetConfigurationProductsUIDescriptionUnion6 { + typ := GetConfigurationProductsUIDescriptionUnion6TypeStr - return UIDescriptionUnion6{ + return GetConfigurationProductsUIDescriptionUnion6{ Str: &str, Type: typ, } } -func CreateUIDescriptionUnion6UIDescription6(uiDescription6 UIDescription6) UIDescriptionUnion6 { - typ := UIDescriptionUnion6TypeUIDescription6 +func CreateGetConfigurationProductsUIDescriptionUnion6GetConfigurationProductsUIDescription6(getConfigurationProductsUIDescription6 GetConfigurationProductsUIDescription6) GetConfigurationProductsUIDescriptionUnion6 { + typ := GetConfigurationProductsUIDescriptionUnion6TypeGetConfigurationProductsUIDescription6 - return UIDescriptionUnion6{ - UIDescription6: &uiDescription6, - Type: typ, + return GetConfigurationProductsUIDescriptionUnion6{ + GetConfigurationProductsUIDescription6: &getConfigurationProductsUIDescription6, + Type: typ, } } -func (u *UIDescriptionUnion6) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDescriptionUnion6) UnmarshalJSON(data []byte) error { - var uiDescription6 UIDescription6 = UIDescription6{} - if err := utils.UnmarshalJSON(data, &uiDescription6, "", true, true); err == nil { - u.UIDescription6 = &uiDescription6 - u.Type = UIDescriptionUnion6TypeUIDescription6 + var getConfigurationProductsUIDescription6 GetConfigurationProductsUIDescription6 = GetConfigurationProductsUIDescription6{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDescription6, "", true, nil); err == nil { + u.GetConfigurationProductsUIDescription6 = &getConfigurationProductsUIDescription6 + u.Type = GetConfigurationProductsUIDescriptionUnion6TypeGetConfigurationProductsUIDescription6 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str - u.Type = UIDescriptionUnion6TypeStr + u.Type = GetConfigurationProductsUIDescriptionUnion6TypeStr return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDescriptionUnion6", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDescriptionUnion6", string(data)) } -func (u UIDescriptionUnion6) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDescriptionUnion6) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } - if u.UIDescription6 != nil { - return utils.MarshalJSON(u.UIDescription6, "", true) + if u.GetConfigurationProductsUIDescription6 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDescription6, "", true) } - return nil, errors.New("could not marshal union type UIDescriptionUnion6: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDescriptionUnion6: all fields are null") } -type UIFormattedValue6 struct { +type GetConfigurationProductsUIFormattedValue6 struct { Expr string `json:"expr"` } -func (o *UIFormattedValue6) GetExpr() string { +func (g GetConfigurationProductsUIFormattedValue6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIFormattedValue6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIFormattedValue6) GetExpr() string { if o == nil { return "" } return o.Expr } -type PropertiesMultiSelect struct { - Type TypeArray2 `json:"type"` - UIControl UIControlMultiSelect `json:"ui:control"` - Items ItemsString1 `json:"items"` - UIOptions []UIOption2 `json:"ui:options"` - Description *string `json:"description,omitempty"` - MinItems *float64 `json:"minItems,omitempty"` - MaxItems *float64 `json:"maxItems,omitempty"` - UILabel *string `json:"ui:label,omitempty"` - UIReadOnly *UIReadOnlyUnion6 `json:"ui:read-only,omitempty"` - UIHidden *UIHiddenUnion6 `json:"ui:hidden,omitempty"` - UIDisabled *UIDisabledUnion6 `json:"ui:disabled,omitempty"` - UIDescription *UIDescriptionUnion6 `json:"ui:description,omitempty"` - UIFormattedValue *UIFormattedValue6 `json:"ui:formatted-value,omitempty"` - UIPlaceholder *string `json:"ui:placeholder,omitempty"` - Default []string `json:"default,omitempty"` - Example []string `json:"example,omitempty"` +type GetConfigurationProductsPropertiesMultiSelect struct { + Type GetConfigurationProductsTypeArray2 `json:"type"` + UIControl GetConfigurationProductsUIControlMultiSelect `json:"ui:control"` + Items GetConfigurationProductsItemsString1 `json:"items"` + UIOptions []GetConfigurationProductsUIOption2 `json:"ui:options"` + Description *string `json:"description,omitempty"` + MinItems *float64 `json:"minItems,omitempty"` + MaxItems *float64 `json:"maxItems,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *GetConfigurationProductsUIReadOnlyUnion6 `json:"ui:read-only,omitempty"` + UIHidden *GetConfigurationProductsUIHiddenUnion6 `json:"ui:hidden,omitempty"` + UIDisabled *GetConfigurationProductsUIDisabledUnion6 `json:"ui:disabled,omitempty"` + UIDescription *GetConfigurationProductsUIDescriptionUnion6 `json:"ui:description,omitempty"` + UIFormattedValue *GetConfigurationProductsUIFormattedValue6 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` + Default []string `json:"default,omitempty"` + Example []string `json:"example,omitempty"` +} + +func (g GetConfigurationProductsPropertiesMultiSelect) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsPropertiesMultiSelect) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ui:control", "items", "ui:options"}); err != nil { + return err + } + return nil } -func (o *PropertiesMultiSelect) GetType() TypeArray2 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetType() GetConfigurationProductsTypeArray2 { if o == nil { - return TypeArray2("") + return GetConfigurationProductsTypeArray2("") } return o.Type } -func (o *PropertiesMultiSelect) GetUIControl() UIControlMultiSelect { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUIControl() GetConfigurationProductsUIControlMultiSelect { if o == nil { - return UIControlMultiSelect("") + return GetConfigurationProductsUIControlMultiSelect("") } return o.UIControl } -func (o *PropertiesMultiSelect) GetItems() ItemsString1 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetItems() GetConfigurationProductsItemsString1 { if o == nil { - return ItemsString1{} + return GetConfigurationProductsItemsString1{} } return o.Items } -func (o *PropertiesMultiSelect) GetUIOptions() []UIOption2 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUIOptions() []GetConfigurationProductsUIOption2 { if o == nil { - return []UIOption2{} + return []GetConfigurationProductsUIOption2{} } return o.UIOptions } -func (o *PropertiesMultiSelect) GetDescription() *string { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *PropertiesMultiSelect) GetMinItems() *float64 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetMinItems() *float64 { if o == nil { return nil } return o.MinItems } -func (o *PropertiesMultiSelect) GetMaxItems() *float64 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetMaxItems() *float64 { if o == nil { return nil } return o.MaxItems } -func (o *PropertiesMultiSelect) GetUILabel() *string { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUILabel() *string { if o == nil { return nil } return o.UILabel } -func (o *PropertiesMultiSelect) GetUIReadOnly() *UIReadOnlyUnion6 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUIReadOnly() *GetConfigurationProductsUIReadOnlyUnion6 { if o == nil { return nil } return o.UIReadOnly } -func (o *PropertiesMultiSelect) GetUIHidden() *UIHiddenUnion6 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUIHidden() *GetConfigurationProductsUIHiddenUnion6 { if o == nil { return nil } return o.UIHidden } -func (o *PropertiesMultiSelect) GetUIDisabled() *UIDisabledUnion6 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUIDisabled() *GetConfigurationProductsUIDisabledUnion6 { if o == nil { return nil } return o.UIDisabled } -func (o *PropertiesMultiSelect) GetUIDescription() *UIDescriptionUnion6 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUIDescription() *GetConfigurationProductsUIDescriptionUnion6 { if o == nil { return nil } return o.UIDescription } -func (o *PropertiesMultiSelect) GetUIFormattedValue() *UIFormattedValue6 { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUIFormattedValue() *GetConfigurationProductsUIFormattedValue6 { if o == nil { return nil } return o.UIFormattedValue } -func (o *PropertiesMultiSelect) GetUIPlaceholder() *string { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetUIPlaceholder() *string { if o == nil { return nil } return o.UIPlaceholder } -func (o *PropertiesMultiSelect) GetDefault() []string { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetDefault() []string { if o == nil { return nil } return o.Default } -func (o *PropertiesMultiSelect) GetExample() []string { +func (o *GetConfigurationProductsPropertiesMultiSelect) GetExample() []string { if o == nil { return nil } return o.Example } -type TypeString2 string +type GetConfigurationProductsTypeString2 string const ( - TypeString2String TypeString2 = "string" + GetConfigurationProductsTypeString2String GetConfigurationProductsTypeString2 = "string" ) -func (e TypeString2) ToPointer() *TypeString2 { +func (e GetConfigurationProductsTypeString2) ToPointer() *GetConfigurationProductsTypeString2 { return &e } -func (e *TypeString2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeString2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "string": - *e = TypeString2(v) + *e = GetConfigurationProductsTypeString2(v) return nil default: - return fmt.Errorf("invalid value for TypeString2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeString2: %v", v) } } -type UIControlSelect string +type GetConfigurationProductsUIControlSelect string const ( - UIControlSelectSelect UIControlSelect = "select" + GetConfigurationProductsUIControlSelectSelect GetConfigurationProductsUIControlSelect = "select" ) -func (e UIControlSelect) ToPointer() *UIControlSelect { +func (e GetConfigurationProductsUIControlSelect) ToPointer() *GetConfigurationProductsUIControlSelect { return &e } -func (e *UIControlSelect) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIControlSelect) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "select": - *e = UIControlSelect(v) + *e = GetConfigurationProductsUIControlSelect(v) return nil default: - return fmt.Errorf("invalid value for UIControlSelect: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIControlSelect: %v", v) } } -type DisabledUIOptionEnum1 string +type GetConfigurationProductsDisabledUIOptionEnum1 string const ( - DisabledUIOptionEnum1Update DisabledUIOptionEnum1 = "update" - DisabledUIOptionEnum1Create DisabledUIOptionEnum1 = "create" + GetConfigurationProductsDisabledUIOptionEnum1Update GetConfigurationProductsDisabledUIOptionEnum1 = "update" + GetConfigurationProductsDisabledUIOptionEnum1Create GetConfigurationProductsDisabledUIOptionEnum1 = "create" ) -func (e DisabledUIOptionEnum1) ToPointer() *DisabledUIOptionEnum1 { +func (e GetConfigurationProductsDisabledUIOptionEnum1) ToPointer() *GetConfigurationProductsDisabledUIOptionEnum1 { return &e } -func (e *DisabledUIOptionEnum1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsDisabledUIOptionEnum1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -4864,120 +5634,131 @@ func (e *DisabledUIOptionEnum1) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = DisabledUIOptionEnum1(v) + *e = GetConfigurationProductsDisabledUIOptionEnum1(v) return nil default: - return fmt.Errorf("invalid value for DisabledUIOptionEnum1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsDisabledUIOptionEnum1: %v", v) } } -type DisabledUIOption1 struct { +type GetConfigurationProductsDisabledUIOption1 struct { Expr string `json:"expr"` } -func (o *DisabledUIOption1) GetExpr() string { +func (g GetConfigurationProductsDisabledUIOption1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsDisabledUIOption1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsDisabledUIOption1) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionDisabledUnion1Type string +type GetConfigurationProductsUIOptionDisabledUnion1Type string const ( - UIOptionDisabledUnion1TypeBoolean UIOptionDisabledUnion1Type = "boolean" - UIOptionDisabledUnion1TypeDisabledUIOption1 UIOptionDisabledUnion1Type = "disabled_ui:option_1" - UIOptionDisabledUnion1TypeDisabledUIOptionEnum1 UIOptionDisabledUnion1Type = "disabled_ui:option_enum_1" + GetConfigurationProductsUIOptionDisabledUnion1TypeBoolean GetConfigurationProductsUIOptionDisabledUnion1Type = "boolean" + GetConfigurationProductsUIOptionDisabledUnion1TypeGetConfigurationProductsDisabledUIOption1 GetConfigurationProductsUIOptionDisabledUnion1Type = "getConfigurationProducts_disabled_ui:option_1" + GetConfigurationProductsUIOptionDisabledUnion1TypeGetConfigurationProductsDisabledUIOptionEnum1 GetConfigurationProductsUIOptionDisabledUnion1Type = "getConfigurationProducts_disabled_ui:option_enum_1" ) -type UIOptionDisabledUnion1 struct { - Boolean *bool `queryParam:"inline"` - DisabledUIOption1 *DisabledUIOption1 `queryParam:"inline"` - DisabledUIOptionEnum1 *DisabledUIOptionEnum1 `queryParam:"inline"` +type GetConfigurationProductsUIOptionDisabledUnion1 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsDisabledUIOption1 *GetConfigurationProductsDisabledUIOption1 `queryParam:"inline"` + GetConfigurationProductsDisabledUIOptionEnum1 *GetConfigurationProductsDisabledUIOptionEnum1 `queryParam:"inline"` - Type UIOptionDisabledUnion1Type + Type GetConfigurationProductsUIOptionDisabledUnion1Type } -func CreateUIOptionDisabledUnion1Boolean(boolean bool) UIOptionDisabledUnion1 { - typ := UIOptionDisabledUnion1TypeBoolean +func CreateGetConfigurationProductsUIOptionDisabledUnion1Boolean(boolean bool) GetConfigurationProductsUIOptionDisabledUnion1 { + typ := GetConfigurationProductsUIOptionDisabledUnion1TypeBoolean - return UIOptionDisabledUnion1{ + return GetConfigurationProductsUIOptionDisabledUnion1{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionDisabledUnion1DisabledUIOption1(disabledUIOption1 DisabledUIOption1) UIOptionDisabledUnion1 { - typ := UIOptionDisabledUnion1TypeDisabledUIOption1 +func CreateGetConfigurationProductsUIOptionDisabledUnion1GetConfigurationProductsDisabledUIOption1(getConfigurationProductsDisabledUIOption1 GetConfigurationProductsDisabledUIOption1) GetConfigurationProductsUIOptionDisabledUnion1 { + typ := GetConfigurationProductsUIOptionDisabledUnion1TypeGetConfigurationProductsDisabledUIOption1 - return UIOptionDisabledUnion1{ - DisabledUIOption1: &disabledUIOption1, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion1{ + GetConfigurationProductsDisabledUIOption1: &getConfigurationProductsDisabledUIOption1, + Type: typ, } } -func CreateUIOptionDisabledUnion1DisabledUIOptionEnum1(disabledUIOptionEnum1 DisabledUIOptionEnum1) UIOptionDisabledUnion1 { - typ := UIOptionDisabledUnion1TypeDisabledUIOptionEnum1 +func CreateGetConfigurationProductsUIOptionDisabledUnion1GetConfigurationProductsDisabledUIOptionEnum1(getConfigurationProductsDisabledUIOptionEnum1 GetConfigurationProductsDisabledUIOptionEnum1) GetConfigurationProductsUIOptionDisabledUnion1 { + typ := GetConfigurationProductsUIOptionDisabledUnion1TypeGetConfigurationProductsDisabledUIOptionEnum1 - return UIOptionDisabledUnion1{ - DisabledUIOptionEnum1: &disabledUIOptionEnum1, - Type: typ, + return GetConfigurationProductsUIOptionDisabledUnion1{ + GetConfigurationProductsDisabledUIOptionEnum1: &getConfigurationProductsDisabledUIOptionEnum1, + Type: typ, } } -func (u *UIOptionDisabledUnion1) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionDisabledUnion1) UnmarshalJSON(data []byte) error { - var disabledUIOption1 DisabledUIOption1 = DisabledUIOption1{} - if err := utils.UnmarshalJSON(data, &disabledUIOption1, "", true, true); err == nil { - u.DisabledUIOption1 = &disabledUIOption1 - u.Type = UIOptionDisabledUnion1TypeDisabledUIOption1 + var getConfigurationProductsDisabledUIOption1 GetConfigurationProductsDisabledUIOption1 = GetConfigurationProductsDisabledUIOption1{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsDisabledUIOption1, "", true, nil); err == nil { + u.GetConfigurationProductsDisabledUIOption1 = &getConfigurationProductsDisabledUIOption1 + u.Type = GetConfigurationProductsUIOptionDisabledUnion1TypeGetConfigurationProductsDisabledUIOption1 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionDisabledUnion1TypeBoolean + u.Type = GetConfigurationProductsUIOptionDisabledUnion1TypeBoolean return nil } - var disabledUIOptionEnum1 DisabledUIOptionEnum1 = DisabledUIOptionEnum1("") - if err := utils.UnmarshalJSON(data, &disabledUIOptionEnum1, "", true, true); err == nil { - u.DisabledUIOptionEnum1 = &disabledUIOptionEnum1 - u.Type = UIOptionDisabledUnion1TypeDisabledUIOptionEnum1 + var getConfigurationProductsDisabledUIOptionEnum1 GetConfigurationProductsDisabledUIOptionEnum1 = GetConfigurationProductsDisabledUIOptionEnum1("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsDisabledUIOptionEnum1, "", true, nil); err == nil { + u.GetConfigurationProductsDisabledUIOptionEnum1 = &getConfigurationProductsDisabledUIOptionEnum1 + u.Type = GetConfigurationProductsUIOptionDisabledUnion1TypeGetConfigurationProductsDisabledUIOptionEnum1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionDisabledUnion1", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionDisabledUnion1", string(data)) } -func (u UIOptionDisabledUnion1) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionDisabledUnion1) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.DisabledUIOption1 != nil { - return utils.MarshalJSON(u.DisabledUIOption1, "", true) + if u.GetConfigurationProductsDisabledUIOption1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsDisabledUIOption1, "", true) } - if u.DisabledUIOptionEnum1 != nil { - return utils.MarshalJSON(u.DisabledUIOptionEnum1, "", true) + if u.GetConfigurationProductsDisabledUIOptionEnum1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsDisabledUIOptionEnum1, "", true) } - return nil, errors.New("could not marshal union type UIOptionDisabledUnion1: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionDisabledUnion1: all fields are null") } -type HiddenUIOptionEnum1 string +type GetConfigurationProductsHiddenUIOptionEnum1 string const ( - HiddenUIOptionEnum1Update HiddenUIOptionEnum1 = "update" - HiddenUIOptionEnum1Create HiddenUIOptionEnum1 = "create" + GetConfigurationProductsHiddenUIOptionEnum1Update GetConfigurationProductsHiddenUIOptionEnum1 = "update" + GetConfigurationProductsHiddenUIOptionEnum1Create GetConfigurationProductsHiddenUIOptionEnum1 = "create" ) -func (e HiddenUIOptionEnum1) ToPointer() *HiddenUIOptionEnum1 { +func (e GetConfigurationProductsHiddenUIOptionEnum1) ToPointer() *GetConfigurationProductsHiddenUIOptionEnum1 { return &e } -func (e *HiddenUIOptionEnum1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsHiddenUIOptionEnum1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -4986,197 +5767,285 @@ func (e *HiddenUIOptionEnum1) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = HiddenUIOptionEnum1(v) + *e = GetConfigurationProductsHiddenUIOptionEnum1(v) return nil default: - return fmt.Errorf("invalid value for HiddenUIOptionEnum1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsHiddenUIOptionEnum1: %v", v) } } -type HiddenUIOption1 struct { +type GetConfigurationProductsHiddenUIOption1 struct { Expr string `json:"expr"` } -func (o *HiddenUIOption1) GetExpr() string { +func (g GetConfigurationProductsHiddenUIOption1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsHiddenUIOption1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsHiddenUIOption1) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIOptionHiddenUnion1Type string +type GetConfigurationProductsUIOptionHiddenUnion1Type string const ( - UIOptionHiddenUnion1TypeBoolean UIOptionHiddenUnion1Type = "boolean" - UIOptionHiddenUnion1TypeHiddenUIOption1 UIOptionHiddenUnion1Type = "hidden_ui:option_1" - UIOptionHiddenUnion1TypeHiddenUIOptionEnum1 UIOptionHiddenUnion1Type = "hidden_ui:option_enum_1" + GetConfigurationProductsUIOptionHiddenUnion1TypeBoolean GetConfigurationProductsUIOptionHiddenUnion1Type = "boolean" + GetConfigurationProductsUIOptionHiddenUnion1TypeGetConfigurationProductsHiddenUIOption1 GetConfigurationProductsUIOptionHiddenUnion1Type = "getConfigurationProducts_hidden_ui:option_1" + GetConfigurationProductsUIOptionHiddenUnion1TypeGetConfigurationProductsHiddenUIOptionEnum1 GetConfigurationProductsUIOptionHiddenUnion1Type = "getConfigurationProducts_hidden_ui:option_enum_1" ) -type UIOptionHiddenUnion1 struct { - Boolean *bool `queryParam:"inline"` - HiddenUIOption1 *HiddenUIOption1 `queryParam:"inline"` - HiddenUIOptionEnum1 *HiddenUIOptionEnum1 `queryParam:"inline"` +type GetConfigurationProductsUIOptionHiddenUnion1 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsHiddenUIOption1 *GetConfigurationProductsHiddenUIOption1 `queryParam:"inline"` + GetConfigurationProductsHiddenUIOptionEnum1 *GetConfigurationProductsHiddenUIOptionEnum1 `queryParam:"inline"` - Type UIOptionHiddenUnion1Type + Type GetConfigurationProductsUIOptionHiddenUnion1Type } -func CreateUIOptionHiddenUnion1Boolean(boolean bool) UIOptionHiddenUnion1 { - typ := UIOptionHiddenUnion1TypeBoolean +func CreateGetConfigurationProductsUIOptionHiddenUnion1Boolean(boolean bool) GetConfigurationProductsUIOptionHiddenUnion1 { + typ := GetConfigurationProductsUIOptionHiddenUnion1TypeBoolean - return UIOptionHiddenUnion1{ + return GetConfigurationProductsUIOptionHiddenUnion1{ Boolean: &boolean, Type: typ, } } -func CreateUIOptionHiddenUnion1HiddenUIOption1(hiddenUIOption1 HiddenUIOption1) UIOptionHiddenUnion1 { - typ := UIOptionHiddenUnion1TypeHiddenUIOption1 +func CreateGetConfigurationProductsUIOptionHiddenUnion1GetConfigurationProductsHiddenUIOption1(getConfigurationProductsHiddenUIOption1 GetConfigurationProductsHiddenUIOption1) GetConfigurationProductsUIOptionHiddenUnion1 { + typ := GetConfigurationProductsUIOptionHiddenUnion1TypeGetConfigurationProductsHiddenUIOption1 - return UIOptionHiddenUnion1{ - HiddenUIOption1: &hiddenUIOption1, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion1{ + GetConfigurationProductsHiddenUIOption1: &getConfigurationProductsHiddenUIOption1, + Type: typ, } } -func CreateUIOptionHiddenUnion1HiddenUIOptionEnum1(hiddenUIOptionEnum1 HiddenUIOptionEnum1) UIOptionHiddenUnion1 { - typ := UIOptionHiddenUnion1TypeHiddenUIOptionEnum1 +func CreateGetConfigurationProductsUIOptionHiddenUnion1GetConfigurationProductsHiddenUIOptionEnum1(getConfigurationProductsHiddenUIOptionEnum1 GetConfigurationProductsHiddenUIOptionEnum1) GetConfigurationProductsUIOptionHiddenUnion1 { + typ := GetConfigurationProductsUIOptionHiddenUnion1TypeGetConfigurationProductsHiddenUIOptionEnum1 - return UIOptionHiddenUnion1{ - HiddenUIOptionEnum1: &hiddenUIOptionEnum1, - Type: typ, + return GetConfigurationProductsUIOptionHiddenUnion1{ + GetConfigurationProductsHiddenUIOptionEnum1: &getConfigurationProductsHiddenUIOptionEnum1, + Type: typ, } } -func (u *UIOptionHiddenUnion1) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIOptionHiddenUnion1) UnmarshalJSON(data []byte) error { - var hiddenUIOption1 HiddenUIOption1 = HiddenUIOption1{} - if err := utils.UnmarshalJSON(data, &hiddenUIOption1, "", true, true); err == nil { - u.HiddenUIOption1 = &hiddenUIOption1 - u.Type = UIOptionHiddenUnion1TypeHiddenUIOption1 + var getConfigurationProductsHiddenUIOption1 GetConfigurationProductsHiddenUIOption1 = GetConfigurationProductsHiddenUIOption1{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsHiddenUIOption1, "", true, nil); err == nil { + u.GetConfigurationProductsHiddenUIOption1 = &getConfigurationProductsHiddenUIOption1 + u.Type = GetConfigurationProductsUIOptionHiddenUnion1TypeGetConfigurationProductsHiddenUIOption1 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIOptionHiddenUnion1TypeBoolean + u.Type = GetConfigurationProductsUIOptionHiddenUnion1TypeBoolean return nil } - var hiddenUIOptionEnum1 HiddenUIOptionEnum1 = HiddenUIOptionEnum1("") - if err := utils.UnmarshalJSON(data, &hiddenUIOptionEnum1, "", true, true); err == nil { - u.HiddenUIOptionEnum1 = &hiddenUIOptionEnum1 - u.Type = UIOptionHiddenUnion1TypeHiddenUIOptionEnum1 + var getConfigurationProductsHiddenUIOptionEnum1 GetConfigurationProductsHiddenUIOptionEnum1 = GetConfigurationProductsHiddenUIOptionEnum1("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsHiddenUIOptionEnum1, "", true, nil); err == nil { + u.GetConfigurationProductsHiddenUIOptionEnum1 = &getConfigurationProductsHiddenUIOptionEnum1 + u.Type = GetConfigurationProductsUIOptionHiddenUnion1TypeGetConfigurationProductsHiddenUIOptionEnum1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIOptionHiddenUnion1", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIOptionHiddenUnion1", string(data)) } -func (u UIOptionHiddenUnion1) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIOptionHiddenUnion1) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.HiddenUIOption1 != nil { - return utils.MarshalJSON(u.HiddenUIOption1, "", true) + if u.GetConfigurationProductsHiddenUIOption1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsHiddenUIOption1, "", true) } - if u.HiddenUIOptionEnum1 != nil { - return utils.MarshalJSON(u.HiddenUIOptionEnum1, "", true) + if u.GetConfigurationProductsHiddenUIOptionEnum1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsHiddenUIOptionEnum1, "", true) + } + + return nil, errors.New("could not marshal union type GetConfigurationProductsUIOptionHiddenUnion1: all fields are null") +} + +type GetConfigurationProductsUIOption1 struct { + Value string `json:"value"` + Label string `json:"label"` + Disabled *GetConfigurationProductsUIOptionDisabledUnion1 `json:"disabled,omitempty"` + Hidden *GetConfigurationProductsUIOptionHiddenUnion1 `json:"hidden,omitempty"` +} + +func (g GetConfigurationProductsUIOption1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIOption1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value", "label"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIOption1) GetValue() string { + if o == nil { + return "" + } + return o.Value +} + +func (o *GetConfigurationProductsUIOption1) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *GetConfigurationProductsUIOption1) GetDisabled() *GetConfigurationProductsUIOptionDisabledUnion1 { + if o == nil { + return nil + } + return o.Disabled +} + +func (o *GetConfigurationProductsUIOption1) GetHidden() *GetConfigurationProductsUIOptionHiddenUnion1 { + if o == nil { + return nil + } + return o.Hidden +} + +type MinLengthAtBRANDAt5025402 struct { +} + +func (m MinLengthAtBRANDAt5025402) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MinLengthAtBRANDAt5025402) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err } + return nil +} - return nil, errors.New("could not marshal union type UIOptionHiddenUnion1: all fields are null") +type GetConfigurationProductsMinLength2 struct { + AtBRANDAt502540 MinLengthAtBRANDAt5025402 `json:"__@BRAND@502540"` } -type UIOption1 struct { - Value string `json:"value"` - Label string `json:"label"` - Disabled *UIOptionDisabledUnion1 `json:"disabled,omitempty"` - Hidden *UIOptionHiddenUnion1 `json:"hidden,omitempty"` +func (g GetConfigurationProductsMinLength2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -func (o *UIOption1) GetValue() string { - if o == nil { - return "" +func (g *GetConfigurationProductsMinLength2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err } - return o.Value + return nil } -func (o *UIOption1) GetLabel() string { +func (o *GetConfigurationProductsMinLength2) GetAtBRANDAt502540() MinLengthAtBRANDAt5025402 { if o == nil { - return "" + return MinLengthAtBRANDAt5025402{} } - return o.Label + return o.AtBRANDAt502540 } -func (o *UIOption1) GetDisabled() *UIOptionDisabledUnion1 { - if o == nil { - return nil - } - return o.Disabled +type MaxLengthAtBRANDAt5025402 struct { } -func (o *UIOption1) GetHidden() *UIOptionHiddenUnion1 { - if o == nil { - return nil +func (m MaxLengthAtBRANDAt5025402) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MaxLengthAtBRANDAt5025402) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err } - return o.Hidden + return nil +} + +type GetConfigurationProductsMaxLength2 struct { + AtBRANDAt502540 MaxLengthAtBRANDAt5025402 `json:"__@BRAND@502540"` } -type MinLengthAtBRANDAt4479432 struct { +func (g GetConfigurationProductsMaxLength2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type MinLength2 struct { - AtBRANDAt447943 MinLengthAtBRANDAt4479432 `json:"__@BRAND@447943"` +func (g *GetConfigurationProductsMaxLength2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *MinLength2) GetAtBRANDAt447943() MinLengthAtBRANDAt4479432 { +func (o *GetConfigurationProductsMaxLength2) GetAtBRANDAt502540() MaxLengthAtBRANDAt5025402 { if o == nil { - return MinLengthAtBRANDAt4479432{} + return MaxLengthAtBRANDAt5025402{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type MaxLengthAtBRANDAt4479432 struct { +type PatternAtBRANDAt5025402 struct { } -type MaxLength2 struct { - AtBRANDAt447943 MaxLengthAtBRANDAt4479432 `json:"__@BRAND@447943"` +func (p PatternAtBRANDAt5025402) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) } -func (o *MaxLength2) GetAtBRANDAt447943() MaxLengthAtBRANDAt4479432 { - if o == nil { - return MaxLengthAtBRANDAt4479432{} +func (p *PatternAtBRANDAt5025402) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err } - return o.AtBRANDAt447943 + return nil +} + +type GetConfigurationProductsPattern2 struct { + AtBRANDAt502540 PatternAtBRANDAt5025402 `json:"__@BRAND@502540"` } -type PatternAtBRANDAt4479432 struct { +func (g GetConfigurationProductsPattern2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type Pattern2 struct { - AtBRANDAt447943 PatternAtBRANDAt4479432 `json:"__@BRAND@447943"` +func (g *GetConfigurationProductsPattern2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *Pattern2) GetAtBRANDAt447943() PatternAtBRANDAt4479432 { +func (o *GetConfigurationProductsPattern2) GetAtBRANDAt502540() PatternAtBRANDAt5025402 { if o == nil { - return PatternAtBRANDAt4479432{} + return PatternAtBRANDAt5025402{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type UIReadOnlyEnum5 string +type GetConfigurationProductsUIReadOnlyEnum5 string const ( - UIReadOnlyEnum5Update UIReadOnlyEnum5 = "update" - UIReadOnlyEnum5Create UIReadOnlyEnum5 = "create" + GetConfigurationProductsUIReadOnlyEnum5Update GetConfigurationProductsUIReadOnlyEnum5 = "update" + GetConfigurationProductsUIReadOnlyEnum5Create GetConfigurationProductsUIReadOnlyEnum5 = "create" ) -func (e UIReadOnlyEnum5) ToPointer() *UIReadOnlyEnum5 { +func (e GetConfigurationProductsUIReadOnlyEnum5) ToPointer() *GetConfigurationProductsUIReadOnlyEnum5 { return &e } -func (e *UIReadOnlyEnum5) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIReadOnlyEnum5) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -5185,120 +6054,131 @@ func (e *UIReadOnlyEnum5) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIReadOnlyEnum5(v) + *e = GetConfigurationProductsUIReadOnlyEnum5(v) return nil default: - return fmt.Errorf("invalid value for UIReadOnlyEnum5: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIReadOnlyEnum5: %v", v) } } -type UIReadOnly5 struct { +type GetConfigurationProductsUIReadOnly5 struct { Expr string `json:"expr"` } -func (o *UIReadOnly5) GetExpr() string { +func (g GetConfigurationProductsUIReadOnly5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIReadOnly5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIReadOnly5) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIReadOnlyUnion5Type string +type GetConfigurationProductsUIReadOnlyUnion5Type string const ( - UIReadOnlyUnion5TypeBoolean UIReadOnlyUnion5Type = "boolean" - UIReadOnlyUnion5TypeUIReadOnly5 UIReadOnlyUnion5Type = "ui:read-only_5" - UIReadOnlyUnion5TypeUIReadOnlyEnum5 UIReadOnlyUnion5Type = "ui:read-only_enum_5" + GetConfigurationProductsUIReadOnlyUnion5TypeBoolean GetConfigurationProductsUIReadOnlyUnion5Type = "boolean" + GetConfigurationProductsUIReadOnlyUnion5TypeGetConfigurationProductsUIReadOnly5 GetConfigurationProductsUIReadOnlyUnion5Type = "getConfigurationProducts_ui:read-only_5" + GetConfigurationProductsUIReadOnlyUnion5TypeGetConfigurationProductsUIReadOnlyEnum5 GetConfigurationProductsUIReadOnlyUnion5Type = "getConfigurationProducts_ui:read-only_enum_5" ) -type UIReadOnlyUnion5 struct { - Boolean *bool `queryParam:"inline"` - UIReadOnly5 *UIReadOnly5 `queryParam:"inline"` - UIReadOnlyEnum5 *UIReadOnlyEnum5 `queryParam:"inline"` +type GetConfigurationProductsUIReadOnlyUnion5 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIReadOnly5 *GetConfigurationProductsUIReadOnly5 `queryParam:"inline"` + GetConfigurationProductsUIReadOnlyEnum5 *GetConfigurationProductsUIReadOnlyEnum5 `queryParam:"inline"` - Type UIReadOnlyUnion5Type + Type GetConfigurationProductsUIReadOnlyUnion5Type } -func CreateUIReadOnlyUnion5Boolean(boolean bool) UIReadOnlyUnion5 { - typ := UIReadOnlyUnion5TypeBoolean +func CreateGetConfigurationProductsUIReadOnlyUnion5Boolean(boolean bool) GetConfigurationProductsUIReadOnlyUnion5 { + typ := GetConfigurationProductsUIReadOnlyUnion5TypeBoolean - return UIReadOnlyUnion5{ + return GetConfigurationProductsUIReadOnlyUnion5{ Boolean: &boolean, Type: typ, } } -func CreateUIReadOnlyUnion5UIReadOnly5(uiReadOnly5 UIReadOnly5) UIReadOnlyUnion5 { - typ := UIReadOnlyUnion5TypeUIReadOnly5 +func CreateGetConfigurationProductsUIReadOnlyUnion5GetConfigurationProductsUIReadOnly5(getConfigurationProductsUIReadOnly5 GetConfigurationProductsUIReadOnly5) GetConfigurationProductsUIReadOnlyUnion5 { + typ := GetConfigurationProductsUIReadOnlyUnion5TypeGetConfigurationProductsUIReadOnly5 - return UIReadOnlyUnion5{ - UIReadOnly5: &uiReadOnly5, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion5{ + GetConfigurationProductsUIReadOnly5: &getConfigurationProductsUIReadOnly5, + Type: typ, } } -func CreateUIReadOnlyUnion5UIReadOnlyEnum5(uiReadOnlyEnum5 UIReadOnlyEnum5) UIReadOnlyUnion5 { - typ := UIReadOnlyUnion5TypeUIReadOnlyEnum5 +func CreateGetConfigurationProductsUIReadOnlyUnion5GetConfigurationProductsUIReadOnlyEnum5(getConfigurationProductsUIReadOnlyEnum5 GetConfigurationProductsUIReadOnlyEnum5) GetConfigurationProductsUIReadOnlyUnion5 { + typ := GetConfigurationProductsUIReadOnlyUnion5TypeGetConfigurationProductsUIReadOnlyEnum5 - return UIReadOnlyUnion5{ - UIReadOnlyEnum5: &uiReadOnlyEnum5, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion5{ + GetConfigurationProductsUIReadOnlyEnum5: &getConfigurationProductsUIReadOnlyEnum5, + Type: typ, } } -func (u *UIReadOnlyUnion5) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIReadOnlyUnion5) UnmarshalJSON(data []byte) error { - var uiReadOnly5 UIReadOnly5 = UIReadOnly5{} - if err := utils.UnmarshalJSON(data, &uiReadOnly5, "", true, true); err == nil { - u.UIReadOnly5 = &uiReadOnly5 - u.Type = UIReadOnlyUnion5TypeUIReadOnly5 + var getConfigurationProductsUIReadOnly5 GetConfigurationProductsUIReadOnly5 = GetConfigurationProductsUIReadOnly5{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnly5, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnly5 = &getConfigurationProductsUIReadOnly5 + u.Type = GetConfigurationProductsUIReadOnlyUnion5TypeGetConfigurationProductsUIReadOnly5 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIReadOnlyUnion5TypeBoolean + u.Type = GetConfigurationProductsUIReadOnlyUnion5TypeBoolean return nil } - var uiReadOnlyEnum5 UIReadOnlyEnum5 = UIReadOnlyEnum5("") - if err := utils.UnmarshalJSON(data, &uiReadOnlyEnum5, "", true, true); err == nil { - u.UIReadOnlyEnum5 = &uiReadOnlyEnum5 - u.Type = UIReadOnlyUnion5TypeUIReadOnlyEnum5 + var getConfigurationProductsUIReadOnlyEnum5 GetConfigurationProductsUIReadOnlyEnum5 = GetConfigurationProductsUIReadOnlyEnum5("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnlyEnum5, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnlyEnum5 = &getConfigurationProductsUIReadOnlyEnum5 + u.Type = GetConfigurationProductsUIReadOnlyUnion5TypeGetConfigurationProductsUIReadOnlyEnum5 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIReadOnlyUnion5", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIReadOnlyUnion5", string(data)) } -func (u UIReadOnlyUnion5) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIReadOnlyUnion5) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIReadOnly5 != nil { - return utils.MarshalJSON(u.UIReadOnly5, "", true) + if u.GetConfigurationProductsUIReadOnly5 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnly5, "", true) } - if u.UIReadOnlyEnum5 != nil { - return utils.MarshalJSON(u.UIReadOnlyEnum5, "", true) + if u.GetConfigurationProductsUIReadOnlyEnum5 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnlyEnum5, "", true) } - return nil, errors.New("could not marshal union type UIReadOnlyUnion5: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIReadOnlyUnion5: all fields are null") } -type UIHiddenEnum5 string +type GetConfigurationProductsUIHiddenEnum5 string const ( - UIHiddenEnum5Update UIHiddenEnum5 = "update" - UIHiddenEnum5Create UIHiddenEnum5 = "create" + GetConfigurationProductsUIHiddenEnum5Update GetConfigurationProductsUIHiddenEnum5 = "update" + GetConfigurationProductsUIHiddenEnum5Create GetConfigurationProductsUIHiddenEnum5 = "create" ) -func (e UIHiddenEnum5) ToPointer() *UIHiddenEnum5 { +func (e GetConfigurationProductsUIHiddenEnum5) ToPointer() *GetConfigurationProductsUIHiddenEnum5 { return &e } -func (e *UIHiddenEnum5) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIHiddenEnum5) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -5307,120 +6187,131 @@ func (e *UIHiddenEnum5) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIHiddenEnum5(v) + *e = GetConfigurationProductsUIHiddenEnum5(v) return nil default: - return fmt.Errorf("invalid value for UIHiddenEnum5: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIHiddenEnum5: %v", v) } } -type UIHidden5 struct { +type GetConfigurationProductsUIHidden5 struct { Expr string `json:"expr"` } -func (o *UIHidden5) GetExpr() string { +func (g GetConfigurationProductsUIHidden5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIHidden5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIHidden5) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIHiddenUnion5Type string +type GetConfigurationProductsUIHiddenUnion5Type string const ( - UIHiddenUnion5TypeBoolean UIHiddenUnion5Type = "boolean" - UIHiddenUnion5TypeUIHidden5 UIHiddenUnion5Type = "ui:hidden_5" - UIHiddenUnion5TypeUIHiddenEnum5 UIHiddenUnion5Type = "ui:hidden_enum_5" + GetConfigurationProductsUIHiddenUnion5TypeBoolean GetConfigurationProductsUIHiddenUnion5Type = "boolean" + GetConfigurationProductsUIHiddenUnion5TypeGetConfigurationProductsUIHidden5 GetConfigurationProductsUIHiddenUnion5Type = "getConfigurationProducts_ui:hidden_5" + GetConfigurationProductsUIHiddenUnion5TypeGetConfigurationProductsUIHiddenEnum5 GetConfigurationProductsUIHiddenUnion5Type = "getConfigurationProducts_ui:hidden_enum_5" ) -type UIHiddenUnion5 struct { - Boolean *bool `queryParam:"inline"` - UIHidden5 *UIHidden5 `queryParam:"inline"` - UIHiddenEnum5 *UIHiddenEnum5 `queryParam:"inline"` +type GetConfigurationProductsUIHiddenUnion5 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIHidden5 *GetConfigurationProductsUIHidden5 `queryParam:"inline"` + GetConfigurationProductsUIHiddenEnum5 *GetConfigurationProductsUIHiddenEnum5 `queryParam:"inline"` - Type UIHiddenUnion5Type + Type GetConfigurationProductsUIHiddenUnion5Type } -func CreateUIHiddenUnion5Boolean(boolean bool) UIHiddenUnion5 { - typ := UIHiddenUnion5TypeBoolean +func CreateGetConfigurationProductsUIHiddenUnion5Boolean(boolean bool) GetConfigurationProductsUIHiddenUnion5 { + typ := GetConfigurationProductsUIHiddenUnion5TypeBoolean - return UIHiddenUnion5{ + return GetConfigurationProductsUIHiddenUnion5{ Boolean: &boolean, Type: typ, } } -func CreateUIHiddenUnion5UIHidden5(uiHidden5 UIHidden5) UIHiddenUnion5 { - typ := UIHiddenUnion5TypeUIHidden5 +func CreateGetConfigurationProductsUIHiddenUnion5GetConfigurationProductsUIHidden5(getConfigurationProductsUIHidden5 GetConfigurationProductsUIHidden5) GetConfigurationProductsUIHiddenUnion5 { + typ := GetConfigurationProductsUIHiddenUnion5TypeGetConfigurationProductsUIHidden5 - return UIHiddenUnion5{ - UIHidden5: &uiHidden5, - Type: typ, + return GetConfigurationProductsUIHiddenUnion5{ + GetConfigurationProductsUIHidden5: &getConfigurationProductsUIHidden5, + Type: typ, } } -func CreateUIHiddenUnion5UIHiddenEnum5(uiHiddenEnum5 UIHiddenEnum5) UIHiddenUnion5 { - typ := UIHiddenUnion5TypeUIHiddenEnum5 +func CreateGetConfigurationProductsUIHiddenUnion5GetConfigurationProductsUIHiddenEnum5(getConfigurationProductsUIHiddenEnum5 GetConfigurationProductsUIHiddenEnum5) GetConfigurationProductsUIHiddenUnion5 { + typ := GetConfigurationProductsUIHiddenUnion5TypeGetConfigurationProductsUIHiddenEnum5 - return UIHiddenUnion5{ - UIHiddenEnum5: &uiHiddenEnum5, - Type: typ, + return GetConfigurationProductsUIHiddenUnion5{ + GetConfigurationProductsUIHiddenEnum5: &getConfigurationProductsUIHiddenEnum5, + Type: typ, } } -func (u *UIHiddenUnion5) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIHiddenUnion5) UnmarshalJSON(data []byte) error { - var uiHidden5 UIHidden5 = UIHidden5{} - if err := utils.UnmarshalJSON(data, &uiHidden5, "", true, true); err == nil { - u.UIHidden5 = &uiHidden5 - u.Type = UIHiddenUnion5TypeUIHidden5 + var getConfigurationProductsUIHidden5 GetConfigurationProductsUIHidden5 = GetConfigurationProductsUIHidden5{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHidden5, "", true, nil); err == nil { + u.GetConfigurationProductsUIHidden5 = &getConfigurationProductsUIHidden5 + u.Type = GetConfigurationProductsUIHiddenUnion5TypeGetConfigurationProductsUIHidden5 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIHiddenUnion5TypeBoolean + u.Type = GetConfigurationProductsUIHiddenUnion5TypeBoolean return nil } - var uiHiddenEnum5 UIHiddenEnum5 = UIHiddenEnum5("") - if err := utils.UnmarshalJSON(data, &uiHiddenEnum5, "", true, true); err == nil { - u.UIHiddenEnum5 = &uiHiddenEnum5 - u.Type = UIHiddenUnion5TypeUIHiddenEnum5 + var getConfigurationProductsUIHiddenEnum5 GetConfigurationProductsUIHiddenEnum5 = GetConfigurationProductsUIHiddenEnum5("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHiddenEnum5, "", true, nil); err == nil { + u.GetConfigurationProductsUIHiddenEnum5 = &getConfigurationProductsUIHiddenEnum5 + u.Type = GetConfigurationProductsUIHiddenUnion5TypeGetConfigurationProductsUIHiddenEnum5 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIHiddenUnion5", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIHiddenUnion5", string(data)) } -func (u UIHiddenUnion5) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIHiddenUnion5) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIHidden5 != nil { - return utils.MarshalJSON(u.UIHidden5, "", true) + if u.GetConfigurationProductsUIHidden5 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHidden5, "", true) } - if u.UIHiddenEnum5 != nil { - return utils.MarshalJSON(u.UIHiddenEnum5, "", true) + if u.GetConfigurationProductsUIHiddenEnum5 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHiddenEnum5, "", true) } - return nil, errors.New("could not marshal union type UIHiddenUnion5: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIHiddenUnion5: all fields are null") } -type UIDisabledEnum5 string +type GetConfigurationProductsUIDisabledEnum5 string const ( - UIDisabledEnum5Update UIDisabledEnum5 = "update" - UIDisabledEnum5Create UIDisabledEnum5 = "create" + GetConfigurationProductsUIDisabledEnum5Update GetConfigurationProductsUIDisabledEnum5 = "update" + GetConfigurationProductsUIDisabledEnum5Create GetConfigurationProductsUIDisabledEnum5 = "create" ) -func (e UIDisabledEnum5) ToPointer() *UIDisabledEnum5 { +func (e GetConfigurationProductsUIDisabledEnum5) ToPointer() *GetConfigurationProductsUIDisabledEnum5 { return &e } -func (e *UIDisabledEnum5) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIDisabledEnum5) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -5429,464 +6320,519 @@ func (e *UIDisabledEnum5) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIDisabledEnum5(v) + *e = GetConfigurationProductsUIDisabledEnum5(v) return nil default: - return fmt.Errorf("invalid value for UIDisabledEnum5: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIDisabledEnum5: %v", v) } } -type UIDisabled5 struct { +type GetConfigurationProductsUIDisabled5 struct { Expr string `json:"expr"` } -func (o *UIDisabled5) GetExpr() string { +func (g GetConfigurationProductsUIDisabled5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDisabled5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDisabled5) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDisabledUnion5Type string +type GetConfigurationProductsUIDisabledUnion5Type string const ( - UIDisabledUnion5TypeBoolean UIDisabledUnion5Type = "boolean" - UIDisabledUnion5TypeUIDisabled5 UIDisabledUnion5Type = "ui:disabled_5" - UIDisabledUnion5TypeUIDisabledEnum5 UIDisabledUnion5Type = "ui:disabled_enum_5" + GetConfigurationProductsUIDisabledUnion5TypeBoolean GetConfigurationProductsUIDisabledUnion5Type = "boolean" + GetConfigurationProductsUIDisabledUnion5TypeGetConfigurationProductsUIDisabled5 GetConfigurationProductsUIDisabledUnion5Type = "getConfigurationProducts_ui:disabled_5" + GetConfigurationProductsUIDisabledUnion5TypeGetConfigurationProductsUIDisabledEnum5 GetConfigurationProductsUIDisabledUnion5Type = "getConfigurationProducts_ui:disabled_enum_5" ) -type UIDisabledUnion5 struct { - Boolean *bool `queryParam:"inline"` - UIDisabled5 *UIDisabled5 `queryParam:"inline"` - UIDisabledEnum5 *UIDisabledEnum5 `queryParam:"inline"` +type GetConfigurationProductsUIDisabledUnion5 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIDisabled5 *GetConfigurationProductsUIDisabled5 `queryParam:"inline"` + GetConfigurationProductsUIDisabledEnum5 *GetConfigurationProductsUIDisabledEnum5 `queryParam:"inline"` - Type UIDisabledUnion5Type + Type GetConfigurationProductsUIDisabledUnion5Type } -func CreateUIDisabledUnion5Boolean(boolean bool) UIDisabledUnion5 { - typ := UIDisabledUnion5TypeBoolean +func CreateGetConfigurationProductsUIDisabledUnion5Boolean(boolean bool) GetConfigurationProductsUIDisabledUnion5 { + typ := GetConfigurationProductsUIDisabledUnion5TypeBoolean - return UIDisabledUnion5{ + return GetConfigurationProductsUIDisabledUnion5{ Boolean: &boolean, Type: typ, } } -func CreateUIDisabledUnion5UIDisabled5(uiDisabled5 UIDisabled5) UIDisabledUnion5 { - typ := UIDisabledUnion5TypeUIDisabled5 +func CreateGetConfigurationProductsUIDisabledUnion5GetConfigurationProductsUIDisabled5(getConfigurationProductsUIDisabled5 GetConfigurationProductsUIDisabled5) GetConfigurationProductsUIDisabledUnion5 { + typ := GetConfigurationProductsUIDisabledUnion5TypeGetConfigurationProductsUIDisabled5 - return UIDisabledUnion5{ - UIDisabled5: &uiDisabled5, - Type: typ, + return GetConfigurationProductsUIDisabledUnion5{ + GetConfigurationProductsUIDisabled5: &getConfigurationProductsUIDisabled5, + Type: typ, } } -func CreateUIDisabledUnion5UIDisabledEnum5(uiDisabledEnum5 UIDisabledEnum5) UIDisabledUnion5 { - typ := UIDisabledUnion5TypeUIDisabledEnum5 +func CreateGetConfigurationProductsUIDisabledUnion5GetConfigurationProductsUIDisabledEnum5(getConfigurationProductsUIDisabledEnum5 GetConfigurationProductsUIDisabledEnum5) GetConfigurationProductsUIDisabledUnion5 { + typ := GetConfigurationProductsUIDisabledUnion5TypeGetConfigurationProductsUIDisabledEnum5 - return UIDisabledUnion5{ - UIDisabledEnum5: &uiDisabledEnum5, - Type: typ, + return GetConfigurationProductsUIDisabledUnion5{ + GetConfigurationProductsUIDisabledEnum5: &getConfigurationProductsUIDisabledEnum5, + Type: typ, } } -func (u *UIDisabledUnion5) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDisabledUnion5) UnmarshalJSON(data []byte) error { - var uiDisabled5 UIDisabled5 = UIDisabled5{} - if err := utils.UnmarshalJSON(data, &uiDisabled5, "", true, true); err == nil { - u.UIDisabled5 = &uiDisabled5 - u.Type = UIDisabledUnion5TypeUIDisabled5 + var getConfigurationProductsUIDisabled5 GetConfigurationProductsUIDisabled5 = GetConfigurationProductsUIDisabled5{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabled5, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabled5 = &getConfigurationProductsUIDisabled5 + u.Type = GetConfigurationProductsUIDisabledUnion5TypeGetConfigurationProductsUIDisabled5 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIDisabledUnion5TypeBoolean + u.Type = GetConfigurationProductsUIDisabledUnion5TypeBoolean return nil } - var uiDisabledEnum5 UIDisabledEnum5 = UIDisabledEnum5("") - if err := utils.UnmarshalJSON(data, &uiDisabledEnum5, "", true, true); err == nil { - u.UIDisabledEnum5 = &uiDisabledEnum5 - u.Type = UIDisabledUnion5TypeUIDisabledEnum5 + var getConfigurationProductsUIDisabledEnum5 GetConfigurationProductsUIDisabledEnum5 = GetConfigurationProductsUIDisabledEnum5("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabledEnum5, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabledEnum5 = &getConfigurationProductsUIDisabledEnum5 + u.Type = GetConfigurationProductsUIDisabledUnion5TypeGetConfigurationProductsUIDisabledEnum5 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDisabledUnion5", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDisabledUnion5", string(data)) } -func (u UIDisabledUnion5) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDisabledUnion5) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIDisabled5 != nil { - return utils.MarshalJSON(u.UIDisabled5, "", true) + if u.GetConfigurationProductsUIDisabled5 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabled5, "", true) } - if u.UIDisabledEnum5 != nil { - return utils.MarshalJSON(u.UIDisabledEnum5, "", true) + if u.GetConfigurationProductsUIDisabledEnum5 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabledEnum5, "", true) } - return nil, errors.New("could not marshal union type UIDisabledUnion5: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDisabledUnion5: all fields are null") } -type UIDescription5 struct { +type GetConfigurationProductsUIDescription5 struct { Expr string `json:"expr"` } -func (o *UIDescription5) GetExpr() string { +func (g GetConfigurationProductsUIDescription5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDescription5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDescription5) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDescriptionUnion5Type string +type GetConfigurationProductsUIDescriptionUnion5Type string const ( - UIDescriptionUnion5TypeStr UIDescriptionUnion5Type = "str" - UIDescriptionUnion5TypeUIDescription5 UIDescriptionUnion5Type = "ui:description_5" + GetConfigurationProductsUIDescriptionUnion5TypeStr GetConfigurationProductsUIDescriptionUnion5Type = "str" + GetConfigurationProductsUIDescriptionUnion5TypeGetConfigurationProductsUIDescription5 GetConfigurationProductsUIDescriptionUnion5Type = "getConfigurationProducts_ui:description_5" ) -type UIDescriptionUnion5 struct { - Str *string `queryParam:"inline"` - UIDescription5 *UIDescription5 `queryParam:"inline"` +type GetConfigurationProductsUIDescriptionUnion5 struct { + Str *string `queryParam:"inline"` + GetConfigurationProductsUIDescription5 *GetConfigurationProductsUIDescription5 `queryParam:"inline"` - Type UIDescriptionUnion5Type + Type GetConfigurationProductsUIDescriptionUnion5Type } -func CreateUIDescriptionUnion5Str(str string) UIDescriptionUnion5 { - typ := UIDescriptionUnion5TypeStr +func CreateGetConfigurationProductsUIDescriptionUnion5Str(str string) GetConfigurationProductsUIDescriptionUnion5 { + typ := GetConfigurationProductsUIDescriptionUnion5TypeStr - return UIDescriptionUnion5{ + return GetConfigurationProductsUIDescriptionUnion5{ Str: &str, Type: typ, } } -func CreateUIDescriptionUnion5UIDescription5(uiDescription5 UIDescription5) UIDescriptionUnion5 { - typ := UIDescriptionUnion5TypeUIDescription5 +func CreateGetConfigurationProductsUIDescriptionUnion5GetConfigurationProductsUIDescription5(getConfigurationProductsUIDescription5 GetConfigurationProductsUIDescription5) GetConfigurationProductsUIDescriptionUnion5 { + typ := GetConfigurationProductsUIDescriptionUnion5TypeGetConfigurationProductsUIDescription5 - return UIDescriptionUnion5{ - UIDescription5: &uiDescription5, - Type: typ, + return GetConfigurationProductsUIDescriptionUnion5{ + GetConfigurationProductsUIDescription5: &getConfigurationProductsUIDescription5, + Type: typ, } } -func (u *UIDescriptionUnion5) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDescriptionUnion5) UnmarshalJSON(data []byte) error { - var uiDescription5 UIDescription5 = UIDescription5{} - if err := utils.UnmarshalJSON(data, &uiDescription5, "", true, true); err == nil { - u.UIDescription5 = &uiDescription5 - u.Type = UIDescriptionUnion5TypeUIDescription5 + var getConfigurationProductsUIDescription5 GetConfigurationProductsUIDescription5 = GetConfigurationProductsUIDescription5{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDescription5, "", true, nil); err == nil { + u.GetConfigurationProductsUIDescription5 = &getConfigurationProductsUIDescription5 + u.Type = GetConfigurationProductsUIDescriptionUnion5TypeGetConfigurationProductsUIDescription5 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str - u.Type = UIDescriptionUnion5TypeStr + u.Type = GetConfigurationProductsUIDescriptionUnion5TypeStr return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDescriptionUnion5", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDescriptionUnion5", string(data)) } -func (u UIDescriptionUnion5) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDescriptionUnion5) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } - if u.UIDescription5 != nil { - return utils.MarshalJSON(u.UIDescription5, "", true) + if u.GetConfigurationProductsUIDescription5 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDescription5, "", true) } - return nil, errors.New("could not marshal union type UIDescriptionUnion5: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDescriptionUnion5: all fields are null") } -type UIFormattedValue5 struct { +type GetConfigurationProductsUIFormattedValue5 struct { Expr string `json:"expr"` } -func (o *UIFormattedValue5) GetExpr() string { +func (g GetConfigurationProductsUIFormattedValue5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIFormattedValue5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIFormattedValue5) GetExpr() string { if o == nil { return "" } return o.Expr } -type PropertiesSelect struct { - Type TypeString2 `json:"type"` - UIControl UIControlSelect `json:"ui:control"` - UIOptions []UIOption1 `json:"ui:options"` - Description *string `json:"description,omitempty"` - MinLength *MinLength2 `json:"minLength,omitempty"` - MaxLength *MaxLength2 `json:"maxLength,omitempty"` - Pattern *Pattern2 `json:"pattern,omitempty"` - Default *string `json:"default,omitempty"` - Enum []string `json:"enum,omitempty"` - UILabel *string `json:"ui:label,omitempty"` - UIReadOnly *UIReadOnlyUnion5 `json:"ui:read-only,omitempty"` - UIHidden *UIHiddenUnion5 `json:"ui:hidden,omitempty"` - UIDisabled *UIDisabledUnion5 `json:"ui:disabled,omitempty"` - UIDescription *UIDescriptionUnion5 `json:"ui:description,omitempty"` - UIFormattedValue *UIFormattedValue5 `json:"ui:formatted-value,omitempty"` - UIPlaceholder *string `json:"ui:placeholder,omitempty"` +type GetConfigurationProductsPropertiesSelect struct { + Type GetConfigurationProductsTypeString2 `json:"type"` + UIControl GetConfigurationProductsUIControlSelect `json:"ui:control"` + UIOptions []GetConfigurationProductsUIOption1 `json:"ui:options"` + Description *string `json:"description,omitempty"` + MinLength *GetConfigurationProductsMinLength2 `json:"minLength,omitempty"` + MaxLength *GetConfigurationProductsMaxLength2 `json:"maxLength,omitempty"` + Pattern *GetConfigurationProductsPattern2 `json:"pattern,omitempty"` + Default *string `json:"default,omitempty"` + Enum []string `json:"enum,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *GetConfigurationProductsUIReadOnlyUnion5 `json:"ui:read-only,omitempty"` + UIHidden *GetConfigurationProductsUIHiddenUnion5 `json:"ui:hidden,omitempty"` + UIDisabled *GetConfigurationProductsUIDisabledUnion5 `json:"ui:disabled,omitempty"` + UIDescription *GetConfigurationProductsUIDescriptionUnion5 `json:"ui:description,omitempty"` + UIFormattedValue *GetConfigurationProductsUIFormattedValue5 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` +} + +func (g GetConfigurationProductsPropertiesSelect) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsPropertiesSelect) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ui:control", "ui:options"}); err != nil { + return err + } + return nil } -func (o *PropertiesSelect) GetType() TypeString2 { +func (o *GetConfigurationProductsPropertiesSelect) GetType() GetConfigurationProductsTypeString2 { if o == nil { - return TypeString2("") + return GetConfigurationProductsTypeString2("") } return o.Type } -func (o *PropertiesSelect) GetUIControl() UIControlSelect { +func (o *GetConfigurationProductsPropertiesSelect) GetUIControl() GetConfigurationProductsUIControlSelect { if o == nil { - return UIControlSelect("") + return GetConfigurationProductsUIControlSelect("") } return o.UIControl } -func (o *PropertiesSelect) GetUIOptions() []UIOption1 { +func (o *GetConfigurationProductsPropertiesSelect) GetUIOptions() []GetConfigurationProductsUIOption1 { if o == nil { - return []UIOption1{} + return []GetConfigurationProductsUIOption1{} } return o.UIOptions } -func (o *PropertiesSelect) GetDescription() *string { +func (o *GetConfigurationProductsPropertiesSelect) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *PropertiesSelect) GetMinLength() *MinLength2 { +func (o *GetConfigurationProductsPropertiesSelect) GetMinLength() *GetConfigurationProductsMinLength2 { if o == nil { return nil } return o.MinLength } -func (o *PropertiesSelect) GetMaxLength() *MaxLength2 { +func (o *GetConfigurationProductsPropertiesSelect) GetMaxLength() *GetConfigurationProductsMaxLength2 { if o == nil { return nil } return o.MaxLength } -func (o *PropertiesSelect) GetPattern() *Pattern2 { +func (o *GetConfigurationProductsPropertiesSelect) GetPattern() *GetConfigurationProductsPattern2 { if o == nil { return nil } return o.Pattern } -func (o *PropertiesSelect) GetDefault() *string { +func (o *GetConfigurationProductsPropertiesSelect) GetDefault() *string { if o == nil { return nil } return o.Default } -func (o *PropertiesSelect) GetEnum() []string { +func (o *GetConfigurationProductsPropertiesSelect) GetEnum() []string { if o == nil { return nil } return o.Enum } -func (o *PropertiesSelect) GetUILabel() *string { +func (o *GetConfigurationProductsPropertiesSelect) GetUILabel() *string { if o == nil { return nil } return o.UILabel } -func (o *PropertiesSelect) GetUIReadOnly() *UIReadOnlyUnion5 { +func (o *GetConfigurationProductsPropertiesSelect) GetUIReadOnly() *GetConfigurationProductsUIReadOnlyUnion5 { if o == nil { return nil } return o.UIReadOnly } -func (o *PropertiesSelect) GetUIHidden() *UIHiddenUnion5 { +func (o *GetConfigurationProductsPropertiesSelect) GetUIHidden() *GetConfigurationProductsUIHiddenUnion5 { if o == nil { return nil } return o.UIHidden } -func (o *PropertiesSelect) GetUIDisabled() *UIDisabledUnion5 { +func (o *GetConfigurationProductsPropertiesSelect) GetUIDisabled() *GetConfigurationProductsUIDisabledUnion5 { if o == nil { return nil } return o.UIDisabled } -func (o *PropertiesSelect) GetUIDescription() *UIDescriptionUnion5 { +func (o *GetConfigurationProductsPropertiesSelect) GetUIDescription() *GetConfigurationProductsUIDescriptionUnion5 { if o == nil { return nil } return o.UIDescription } -func (o *PropertiesSelect) GetUIFormattedValue() *UIFormattedValue5 { +func (o *GetConfigurationProductsPropertiesSelect) GetUIFormattedValue() *GetConfigurationProductsUIFormattedValue5 { if o == nil { return nil } return o.UIFormattedValue } -func (o *PropertiesSelect) GetUIPlaceholder() *string { +func (o *GetConfigurationProductsPropertiesSelect) GetUIPlaceholder() *string { if o == nil { return nil } return o.UIPlaceholder } -type TypeArray1 string +type GetConfigurationProductsTypeArray1 string const ( - TypeArray1Array TypeArray1 = "array" + GetConfigurationProductsTypeArray1Array GetConfigurationProductsTypeArray1 = "array" ) -func (e TypeArray1) ToPointer() *TypeArray1 { +func (e GetConfigurationProductsTypeArray1) ToPointer() *GetConfigurationProductsTypeArray1 { return &e } -func (e *TypeArray1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeArray1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "array": - *e = TypeArray1(v) + *e = GetConfigurationProductsTypeArray1(v) return nil default: - return fmt.Errorf("invalid value for TypeArray1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeArray1: %v", v) } } -type UIControlSlider string +type GetConfigurationProductsUIControlSlider string const ( - UIControlSliderSlider UIControlSlider = "slider" + GetConfigurationProductsUIControlSliderSlider GetConfigurationProductsUIControlSlider = "slider" ) -func (e UIControlSlider) ToPointer() *UIControlSlider { +func (e GetConfigurationProductsUIControlSlider) ToPointer() *GetConfigurationProductsUIControlSlider { return &e } -func (e *UIControlSlider) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIControlSlider) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "slider": - *e = UIControlSlider(v) + *e = GetConfigurationProductsUIControlSlider(v) return nil default: - return fmt.Errorf("invalid value for UIControlSlider: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIControlSlider: %v", v) } } -type TypeNumber2 string +type GetConfigurationProductsTypeNumber2 string const ( - TypeNumber2Number TypeNumber2 = "number" + GetConfigurationProductsTypeNumber2Number GetConfigurationProductsTypeNumber2 = "number" ) -func (e TypeNumber2) ToPointer() *TypeNumber2 { +func (e GetConfigurationProductsTypeNumber2) ToPointer() *GetConfigurationProductsTypeNumber2 { return &e } -func (e *TypeNumber2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeNumber2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "number": - *e = TypeNumber2(v) + *e = GetConfigurationProductsTypeNumber2(v) return nil default: - return fmt.Errorf("invalid value for TypeNumber2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeNumber2: %v", v) } } -type ItemsNumber struct { - Type TypeNumber2 `json:"type"` - Description *string `json:"description,omitempty"` - Minimum *float64 `json:"minimum,omitempty"` - ExclusiveMinimum *float64 `json:"exclusiveMinimum,omitempty"` - Maximum *float64 `json:"maximum,omitempty"` - ExclusiveMaximum *float64 `json:"exclusiveMaximum,omitempty"` - Default *float64 `json:"default,omitempty"` +type GetConfigurationProductsItemsNumber struct { + Type GetConfigurationProductsTypeNumber2 `json:"type"` + Description *string `json:"description,omitempty"` + Minimum *float64 `json:"minimum,omitempty"` + ExclusiveMinimum *float64 `json:"exclusiveMinimum,omitempty"` + Maximum *float64 `json:"maximum,omitempty"` + ExclusiveMaximum *float64 `json:"exclusiveMaximum,omitempty"` + Default *float64 `json:"default,omitempty"` +} + +func (g GetConfigurationProductsItemsNumber) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsItemsNumber) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type"}); err != nil { + return err + } + return nil } -func (o *ItemsNumber) GetType() TypeNumber2 { +func (o *GetConfigurationProductsItemsNumber) GetType() GetConfigurationProductsTypeNumber2 { if o == nil { - return TypeNumber2("") + return GetConfigurationProductsTypeNumber2("") } return o.Type } -func (o *ItemsNumber) GetDescription() *string { +func (o *GetConfigurationProductsItemsNumber) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *ItemsNumber) GetMinimum() *float64 { +func (o *GetConfigurationProductsItemsNumber) GetMinimum() *float64 { if o == nil { return nil } return o.Minimum } -func (o *ItemsNumber) GetExclusiveMinimum() *float64 { +func (o *GetConfigurationProductsItemsNumber) GetExclusiveMinimum() *float64 { if o == nil { return nil } return o.ExclusiveMinimum } -func (o *ItemsNumber) GetMaximum() *float64 { +func (o *GetConfigurationProductsItemsNumber) GetMaximum() *float64 { if o == nil { return nil } return o.Maximum } -func (o *ItemsNumber) GetExclusiveMaximum() *float64 { +func (o *GetConfigurationProductsItemsNumber) GetExclusiveMaximum() *float64 { if o == nil { return nil } return o.ExclusiveMaximum } -func (o *ItemsNumber) GetDefault() *float64 { +func (o *GetConfigurationProductsItemsNumber) GetDefault() *float64 { if o == nil { return nil } return o.Default } -type UIReadOnlyEnum4 string +type GetConfigurationProductsUIReadOnlyEnum4 string const ( - UIReadOnlyEnum4Update UIReadOnlyEnum4 = "update" - UIReadOnlyEnum4Create UIReadOnlyEnum4 = "create" + GetConfigurationProductsUIReadOnlyEnum4Update GetConfigurationProductsUIReadOnlyEnum4 = "update" + GetConfigurationProductsUIReadOnlyEnum4Create GetConfigurationProductsUIReadOnlyEnum4 = "create" ) -func (e UIReadOnlyEnum4) ToPointer() *UIReadOnlyEnum4 { +func (e GetConfigurationProductsUIReadOnlyEnum4) ToPointer() *GetConfigurationProductsUIReadOnlyEnum4 { return &e } -func (e *UIReadOnlyEnum4) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIReadOnlyEnum4) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -5895,120 +6841,131 @@ func (e *UIReadOnlyEnum4) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIReadOnlyEnum4(v) + *e = GetConfigurationProductsUIReadOnlyEnum4(v) return nil default: - return fmt.Errorf("invalid value for UIReadOnlyEnum4: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIReadOnlyEnum4: %v", v) } } -type UIReadOnly4 struct { +type GetConfigurationProductsUIReadOnly4 struct { Expr string `json:"expr"` } -func (o *UIReadOnly4) GetExpr() string { +func (g GetConfigurationProductsUIReadOnly4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIReadOnly4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIReadOnly4) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIReadOnlyUnion4Type string +type GetConfigurationProductsUIReadOnlyUnion4Type string const ( - UIReadOnlyUnion4TypeBoolean UIReadOnlyUnion4Type = "boolean" - UIReadOnlyUnion4TypeUIReadOnly4 UIReadOnlyUnion4Type = "ui:read-only_4" - UIReadOnlyUnion4TypeUIReadOnlyEnum4 UIReadOnlyUnion4Type = "ui:read-only_enum_4" + GetConfigurationProductsUIReadOnlyUnion4TypeBoolean GetConfigurationProductsUIReadOnlyUnion4Type = "boolean" + GetConfigurationProductsUIReadOnlyUnion4TypeGetConfigurationProductsUIReadOnly4 GetConfigurationProductsUIReadOnlyUnion4Type = "getConfigurationProducts_ui:read-only_4" + GetConfigurationProductsUIReadOnlyUnion4TypeGetConfigurationProductsUIReadOnlyEnum4 GetConfigurationProductsUIReadOnlyUnion4Type = "getConfigurationProducts_ui:read-only_enum_4" ) -type UIReadOnlyUnion4 struct { - Boolean *bool `queryParam:"inline"` - UIReadOnly4 *UIReadOnly4 `queryParam:"inline"` - UIReadOnlyEnum4 *UIReadOnlyEnum4 `queryParam:"inline"` +type GetConfigurationProductsUIReadOnlyUnion4 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIReadOnly4 *GetConfigurationProductsUIReadOnly4 `queryParam:"inline"` + GetConfigurationProductsUIReadOnlyEnum4 *GetConfigurationProductsUIReadOnlyEnum4 `queryParam:"inline"` - Type UIReadOnlyUnion4Type + Type GetConfigurationProductsUIReadOnlyUnion4Type } -func CreateUIReadOnlyUnion4Boolean(boolean bool) UIReadOnlyUnion4 { - typ := UIReadOnlyUnion4TypeBoolean +func CreateGetConfigurationProductsUIReadOnlyUnion4Boolean(boolean bool) GetConfigurationProductsUIReadOnlyUnion4 { + typ := GetConfigurationProductsUIReadOnlyUnion4TypeBoolean - return UIReadOnlyUnion4{ + return GetConfigurationProductsUIReadOnlyUnion4{ Boolean: &boolean, Type: typ, } } -func CreateUIReadOnlyUnion4UIReadOnly4(uiReadOnly4 UIReadOnly4) UIReadOnlyUnion4 { - typ := UIReadOnlyUnion4TypeUIReadOnly4 +func CreateGetConfigurationProductsUIReadOnlyUnion4GetConfigurationProductsUIReadOnly4(getConfigurationProductsUIReadOnly4 GetConfigurationProductsUIReadOnly4) GetConfigurationProductsUIReadOnlyUnion4 { + typ := GetConfigurationProductsUIReadOnlyUnion4TypeGetConfigurationProductsUIReadOnly4 - return UIReadOnlyUnion4{ - UIReadOnly4: &uiReadOnly4, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion4{ + GetConfigurationProductsUIReadOnly4: &getConfigurationProductsUIReadOnly4, + Type: typ, } } -func CreateUIReadOnlyUnion4UIReadOnlyEnum4(uiReadOnlyEnum4 UIReadOnlyEnum4) UIReadOnlyUnion4 { - typ := UIReadOnlyUnion4TypeUIReadOnlyEnum4 +func CreateGetConfigurationProductsUIReadOnlyUnion4GetConfigurationProductsUIReadOnlyEnum4(getConfigurationProductsUIReadOnlyEnum4 GetConfigurationProductsUIReadOnlyEnum4) GetConfigurationProductsUIReadOnlyUnion4 { + typ := GetConfigurationProductsUIReadOnlyUnion4TypeGetConfigurationProductsUIReadOnlyEnum4 - return UIReadOnlyUnion4{ - UIReadOnlyEnum4: &uiReadOnlyEnum4, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion4{ + GetConfigurationProductsUIReadOnlyEnum4: &getConfigurationProductsUIReadOnlyEnum4, + Type: typ, } } -func (u *UIReadOnlyUnion4) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIReadOnlyUnion4) UnmarshalJSON(data []byte) error { - var uiReadOnly4 UIReadOnly4 = UIReadOnly4{} - if err := utils.UnmarshalJSON(data, &uiReadOnly4, "", true, true); err == nil { - u.UIReadOnly4 = &uiReadOnly4 - u.Type = UIReadOnlyUnion4TypeUIReadOnly4 + var getConfigurationProductsUIReadOnly4 GetConfigurationProductsUIReadOnly4 = GetConfigurationProductsUIReadOnly4{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnly4, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnly4 = &getConfigurationProductsUIReadOnly4 + u.Type = GetConfigurationProductsUIReadOnlyUnion4TypeGetConfigurationProductsUIReadOnly4 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIReadOnlyUnion4TypeBoolean + u.Type = GetConfigurationProductsUIReadOnlyUnion4TypeBoolean return nil } - var uiReadOnlyEnum4 UIReadOnlyEnum4 = UIReadOnlyEnum4("") - if err := utils.UnmarshalJSON(data, &uiReadOnlyEnum4, "", true, true); err == nil { - u.UIReadOnlyEnum4 = &uiReadOnlyEnum4 - u.Type = UIReadOnlyUnion4TypeUIReadOnlyEnum4 + var getConfigurationProductsUIReadOnlyEnum4 GetConfigurationProductsUIReadOnlyEnum4 = GetConfigurationProductsUIReadOnlyEnum4("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnlyEnum4, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnlyEnum4 = &getConfigurationProductsUIReadOnlyEnum4 + u.Type = GetConfigurationProductsUIReadOnlyUnion4TypeGetConfigurationProductsUIReadOnlyEnum4 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIReadOnlyUnion4", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIReadOnlyUnion4", string(data)) } -func (u UIReadOnlyUnion4) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIReadOnlyUnion4) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIReadOnly4 != nil { - return utils.MarshalJSON(u.UIReadOnly4, "", true) + if u.GetConfigurationProductsUIReadOnly4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnly4, "", true) } - if u.UIReadOnlyEnum4 != nil { - return utils.MarshalJSON(u.UIReadOnlyEnum4, "", true) + if u.GetConfigurationProductsUIReadOnlyEnum4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnlyEnum4, "", true) } - return nil, errors.New("could not marshal union type UIReadOnlyUnion4: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIReadOnlyUnion4: all fields are null") } -type UIHiddenEnum4 string +type GetConfigurationProductsUIHiddenEnum4 string const ( - UIHiddenEnum4Update UIHiddenEnum4 = "update" - UIHiddenEnum4Create UIHiddenEnum4 = "create" + GetConfigurationProductsUIHiddenEnum4Update GetConfigurationProductsUIHiddenEnum4 = "update" + GetConfigurationProductsUIHiddenEnum4Create GetConfigurationProductsUIHiddenEnum4 = "create" ) -func (e UIHiddenEnum4) ToPointer() *UIHiddenEnum4 { +func (e GetConfigurationProductsUIHiddenEnum4) ToPointer() *GetConfigurationProductsUIHiddenEnum4 { return &e } -func (e *UIHiddenEnum4) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIHiddenEnum4) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -6017,120 +6974,131 @@ func (e *UIHiddenEnum4) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIHiddenEnum4(v) + *e = GetConfigurationProductsUIHiddenEnum4(v) return nil default: - return fmt.Errorf("invalid value for UIHiddenEnum4: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIHiddenEnum4: %v", v) } } -type UIHidden4 struct { +type GetConfigurationProductsUIHidden4 struct { Expr string `json:"expr"` } -func (o *UIHidden4) GetExpr() string { +func (g GetConfigurationProductsUIHidden4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIHidden4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIHidden4) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIHiddenUnion4Type string +type GetConfigurationProductsUIHiddenUnion4Type string const ( - UIHiddenUnion4TypeBoolean UIHiddenUnion4Type = "boolean" - UIHiddenUnion4TypeUIHidden4 UIHiddenUnion4Type = "ui:hidden_4" - UIHiddenUnion4TypeUIHiddenEnum4 UIHiddenUnion4Type = "ui:hidden_enum_4" + GetConfigurationProductsUIHiddenUnion4TypeBoolean GetConfigurationProductsUIHiddenUnion4Type = "boolean" + GetConfigurationProductsUIHiddenUnion4TypeGetConfigurationProductsUIHidden4 GetConfigurationProductsUIHiddenUnion4Type = "getConfigurationProducts_ui:hidden_4" + GetConfigurationProductsUIHiddenUnion4TypeGetConfigurationProductsUIHiddenEnum4 GetConfigurationProductsUIHiddenUnion4Type = "getConfigurationProducts_ui:hidden_enum_4" ) -type UIHiddenUnion4 struct { - Boolean *bool `queryParam:"inline"` - UIHidden4 *UIHidden4 `queryParam:"inline"` - UIHiddenEnum4 *UIHiddenEnum4 `queryParam:"inline"` +type GetConfigurationProductsUIHiddenUnion4 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIHidden4 *GetConfigurationProductsUIHidden4 `queryParam:"inline"` + GetConfigurationProductsUIHiddenEnum4 *GetConfigurationProductsUIHiddenEnum4 `queryParam:"inline"` - Type UIHiddenUnion4Type + Type GetConfigurationProductsUIHiddenUnion4Type } -func CreateUIHiddenUnion4Boolean(boolean bool) UIHiddenUnion4 { - typ := UIHiddenUnion4TypeBoolean +func CreateGetConfigurationProductsUIHiddenUnion4Boolean(boolean bool) GetConfigurationProductsUIHiddenUnion4 { + typ := GetConfigurationProductsUIHiddenUnion4TypeBoolean - return UIHiddenUnion4{ + return GetConfigurationProductsUIHiddenUnion4{ Boolean: &boolean, Type: typ, } } -func CreateUIHiddenUnion4UIHidden4(uiHidden4 UIHidden4) UIHiddenUnion4 { - typ := UIHiddenUnion4TypeUIHidden4 +func CreateGetConfigurationProductsUIHiddenUnion4GetConfigurationProductsUIHidden4(getConfigurationProductsUIHidden4 GetConfigurationProductsUIHidden4) GetConfigurationProductsUIHiddenUnion4 { + typ := GetConfigurationProductsUIHiddenUnion4TypeGetConfigurationProductsUIHidden4 - return UIHiddenUnion4{ - UIHidden4: &uiHidden4, - Type: typ, + return GetConfigurationProductsUIHiddenUnion4{ + GetConfigurationProductsUIHidden4: &getConfigurationProductsUIHidden4, + Type: typ, } } -func CreateUIHiddenUnion4UIHiddenEnum4(uiHiddenEnum4 UIHiddenEnum4) UIHiddenUnion4 { - typ := UIHiddenUnion4TypeUIHiddenEnum4 +func CreateGetConfigurationProductsUIHiddenUnion4GetConfigurationProductsUIHiddenEnum4(getConfigurationProductsUIHiddenEnum4 GetConfigurationProductsUIHiddenEnum4) GetConfigurationProductsUIHiddenUnion4 { + typ := GetConfigurationProductsUIHiddenUnion4TypeGetConfigurationProductsUIHiddenEnum4 - return UIHiddenUnion4{ - UIHiddenEnum4: &uiHiddenEnum4, - Type: typ, + return GetConfigurationProductsUIHiddenUnion4{ + GetConfigurationProductsUIHiddenEnum4: &getConfigurationProductsUIHiddenEnum4, + Type: typ, } } -func (u *UIHiddenUnion4) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIHiddenUnion4) UnmarshalJSON(data []byte) error { - var uiHidden4 UIHidden4 = UIHidden4{} - if err := utils.UnmarshalJSON(data, &uiHidden4, "", true, true); err == nil { - u.UIHidden4 = &uiHidden4 - u.Type = UIHiddenUnion4TypeUIHidden4 + var getConfigurationProductsUIHidden4 GetConfigurationProductsUIHidden4 = GetConfigurationProductsUIHidden4{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHidden4, "", true, nil); err == nil { + u.GetConfigurationProductsUIHidden4 = &getConfigurationProductsUIHidden4 + u.Type = GetConfigurationProductsUIHiddenUnion4TypeGetConfigurationProductsUIHidden4 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIHiddenUnion4TypeBoolean + u.Type = GetConfigurationProductsUIHiddenUnion4TypeBoolean return nil } - var uiHiddenEnum4 UIHiddenEnum4 = UIHiddenEnum4("") - if err := utils.UnmarshalJSON(data, &uiHiddenEnum4, "", true, true); err == nil { - u.UIHiddenEnum4 = &uiHiddenEnum4 - u.Type = UIHiddenUnion4TypeUIHiddenEnum4 + var getConfigurationProductsUIHiddenEnum4 GetConfigurationProductsUIHiddenEnum4 = GetConfigurationProductsUIHiddenEnum4("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHiddenEnum4, "", true, nil); err == nil { + u.GetConfigurationProductsUIHiddenEnum4 = &getConfigurationProductsUIHiddenEnum4 + u.Type = GetConfigurationProductsUIHiddenUnion4TypeGetConfigurationProductsUIHiddenEnum4 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIHiddenUnion4", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIHiddenUnion4", string(data)) } -func (u UIHiddenUnion4) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIHiddenUnion4) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIHidden4 != nil { - return utils.MarshalJSON(u.UIHidden4, "", true) + if u.GetConfigurationProductsUIHidden4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHidden4, "", true) } - if u.UIHiddenEnum4 != nil { - return utils.MarshalJSON(u.UIHiddenEnum4, "", true) + if u.GetConfigurationProductsUIHiddenEnum4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHiddenEnum4, "", true) } - return nil, errors.New("could not marshal union type UIHiddenUnion4: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIHiddenUnion4: all fields are null") } -type UIDisabledEnum4 string +type GetConfigurationProductsUIDisabledEnum4 string const ( - UIDisabledEnum4Update UIDisabledEnum4 = "update" - UIDisabledEnum4Create UIDisabledEnum4 = "create" + GetConfigurationProductsUIDisabledEnum4Update GetConfigurationProductsUIDisabledEnum4 = "update" + GetConfigurationProductsUIDisabledEnum4Create GetConfigurationProductsUIDisabledEnum4 = "create" ) -func (e UIDisabledEnum4) ToPointer() *UIDisabledEnum4 { +func (e GetConfigurationProductsUIDisabledEnum4) ToPointer() *GetConfigurationProductsUIDisabledEnum4 { return &e } -func (e *UIDisabledEnum4) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIDisabledEnum4) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -6139,366 +7107,410 @@ func (e *UIDisabledEnum4) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIDisabledEnum4(v) + *e = GetConfigurationProductsUIDisabledEnum4(v) return nil default: - return fmt.Errorf("invalid value for UIDisabledEnum4: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIDisabledEnum4: %v", v) } } -type UIDisabled4 struct { +type GetConfigurationProductsUIDisabled4 struct { Expr string `json:"expr"` } -func (o *UIDisabled4) GetExpr() string { +func (g GetConfigurationProductsUIDisabled4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDisabled4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDisabled4) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDisabledUnion4Type string +type GetConfigurationProductsUIDisabledUnion4Type string const ( - UIDisabledUnion4TypeBoolean UIDisabledUnion4Type = "boolean" - UIDisabledUnion4TypeUIDisabled4 UIDisabledUnion4Type = "ui:disabled_4" - UIDisabledUnion4TypeUIDisabledEnum4 UIDisabledUnion4Type = "ui:disabled_enum_4" + GetConfigurationProductsUIDisabledUnion4TypeBoolean GetConfigurationProductsUIDisabledUnion4Type = "boolean" + GetConfigurationProductsUIDisabledUnion4TypeGetConfigurationProductsUIDisabled4 GetConfigurationProductsUIDisabledUnion4Type = "getConfigurationProducts_ui:disabled_4" + GetConfigurationProductsUIDisabledUnion4TypeGetConfigurationProductsUIDisabledEnum4 GetConfigurationProductsUIDisabledUnion4Type = "getConfigurationProducts_ui:disabled_enum_4" ) -type UIDisabledUnion4 struct { - Boolean *bool `queryParam:"inline"` - UIDisabled4 *UIDisabled4 `queryParam:"inline"` - UIDisabledEnum4 *UIDisabledEnum4 `queryParam:"inline"` +type GetConfigurationProductsUIDisabledUnion4 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIDisabled4 *GetConfigurationProductsUIDisabled4 `queryParam:"inline"` + GetConfigurationProductsUIDisabledEnum4 *GetConfigurationProductsUIDisabledEnum4 `queryParam:"inline"` - Type UIDisabledUnion4Type + Type GetConfigurationProductsUIDisabledUnion4Type } -func CreateUIDisabledUnion4Boolean(boolean bool) UIDisabledUnion4 { - typ := UIDisabledUnion4TypeBoolean +func CreateGetConfigurationProductsUIDisabledUnion4Boolean(boolean bool) GetConfigurationProductsUIDisabledUnion4 { + typ := GetConfigurationProductsUIDisabledUnion4TypeBoolean - return UIDisabledUnion4{ + return GetConfigurationProductsUIDisabledUnion4{ Boolean: &boolean, Type: typ, } } -func CreateUIDisabledUnion4UIDisabled4(uiDisabled4 UIDisabled4) UIDisabledUnion4 { - typ := UIDisabledUnion4TypeUIDisabled4 +func CreateGetConfigurationProductsUIDisabledUnion4GetConfigurationProductsUIDisabled4(getConfigurationProductsUIDisabled4 GetConfigurationProductsUIDisabled4) GetConfigurationProductsUIDisabledUnion4 { + typ := GetConfigurationProductsUIDisabledUnion4TypeGetConfigurationProductsUIDisabled4 - return UIDisabledUnion4{ - UIDisabled4: &uiDisabled4, - Type: typ, + return GetConfigurationProductsUIDisabledUnion4{ + GetConfigurationProductsUIDisabled4: &getConfigurationProductsUIDisabled4, + Type: typ, } } -func CreateUIDisabledUnion4UIDisabledEnum4(uiDisabledEnum4 UIDisabledEnum4) UIDisabledUnion4 { - typ := UIDisabledUnion4TypeUIDisabledEnum4 +func CreateGetConfigurationProductsUIDisabledUnion4GetConfigurationProductsUIDisabledEnum4(getConfigurationProductsUIDisabledEnum4 GetConfigurationProductsUIDisabledEnum4) GetConfigurationProductsUIDisabledUnion4 { + typ := GetConfigurationProductsUIDisabledUnion4TypeGetConfigurationProductsUIDisabledEnum4 - return UIDisabledUnion4{ - UIDisabledEnum4: &uiDisabledEnum4, - Type: typ, + return GetConfigurationProductsUIDisabledUnion4{ + GetConfigurationProductsUIDisabledEnum4: &getConfigurationProductsUIDisabledEnum4, + Type: typ, } } -func (u *UIDisabledUnion4) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDisabledUnion4) UnmarshalJSON(data []byte) error { - var uiDisabled4 UIDisabled4 = UIDisabled4{} - if err := utils.UnmarshalJSON(data, &uiDisabled4, "", true, true); err == nil { - u.UIDisabled4 = &uiDisabled4 - u.Type = UIDisabledUnion4TypeUIDisabled4 + var getConfigurationProductsUIDisabled4 GetConfigurationProductsUIDisabled4 = GetConfigurationProductsUIDisabled4{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabled4, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabled4 = &getConfigurationProductsUIDisabled4 + u.Type = GetConfigurationProductsUIDisabledUnion4TypeGetConfigurationProductsUIDisabled4 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIDisabledUnion4TypeBoolean + u.Type = GetConfigurationProductsUIDisabledUnion4TypeBoolean return nil } - var uiDisabledEnum4 UIDisabledEnum4 = UIDisabledEnum4("") - if err := utils.UnmarshalJSON(data, &uiDisabledEnum4, "", true, true); err == nil { - u.UIDisabledEnum4 = &uiDisabledEnum4 - u.Type = UIDisabledUnion4TypeUIDisabledEnum4 + var getConfigurationProductsUIDisabledEnum4 GetConfigurationProductsUIDisabledEnum4 = GetConfigurationProductsUIDisabledEnum4("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabledEnum4, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabledEnum4 = &getConfigurationProductsUIDisabledEnum4 + u.Type = GetConfigurationProductsUIDisabledUnion4TypeGetConfigurationProductsUIDisabledEnum4 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDisabledUnion4", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDisabledUnion4", string(data)) } -func (u UIDisabledUnion4) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDisabledUnion4) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIDisabled4 != nil { - return utils.MarshalJSON(u.UIDisabled4, "", true) + if u.GetConfigurationProductsUIDisabled4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabled4, "", true) } - if u.UIDisabledEnum4 != nil { - return utils.MarshalJSON(u.UIDisabledEnum4, "", true) + if u.GetConfigurationProductsUIDisabledEnum4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabledEnum4, "", true) } - return nil, errors.New("could not marshal union type UIDisabledUnion4: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDisabledUnion4: all fields are null") } -type UIDescription4 struct { +type GetConfigurationProductsUIDescription4 struct { Expr string `json:"expr"` } -func (o *UIDescription4) GetExpr() string { +func (g GetConfigurationProductsUIDescription4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDescription4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDescription4) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDescriptionUnion4Type string +type GetConfigurationProductsUIDescriptionUnion4Type string const ( - UIDescriptionUnion4TypeStr UIDescriptionUnion4Type = "str" - UIDescriptionUnion4TypeUIDescription4 UIDescriptionUnion4Type = "ui:description_4" + GetConfigurationProductsUIDescriptionUnion4TypeStr GetConfigurationProductsUIDescriptionUnion4Type = "str" + GetConfigurationProductsUIDescriptionUnion4TypeGetConfigurationProductsUIDescription4 GetConfigurationProductsUIDescriptionUnion4Type = "getConfigurationProducts_ui:description_4" ) -type UIDescriptionUnion4 struct { - Str *string `queryParam:"inline"` - UIDescription4 *UIDescription4 `queryParam:"inline"` +type GetConfigurationProductsUIDescriptionUnion4 struct { + Str *string `queryParam:"inline"` + GetConfigurationProductsUIDescription4 *GetConfigurationProductsUIDescription4 `queryParam:"inline"` - Type UIDescriptionUnion4Type + Type GetConfigurationProductsUIDescriptionUnion4Type } -func CreateUIDescriptionUnion4Str(str string) UIDescriptionUnion4 { - typ := UIDescriptionUnion4TypeStr +func CreateGetConfigurationProductsUIDescriptionUnion4Str(str string) GetConfigurationProductsUIDescriptionUnion4 { + typ := GetConfigurationProductsUIDescriptionUnion4TypeStr - return UIDescriptionUnion4{ + return GetConfigurationProductsUIDescriptionUnion4{ Str: &str, Type: typ, } } -func CreateUIDescriptionUnion4UIDescription4(uiDescription4 UIDescription4) UIDescriptionUnion4 { - typ := UIDescriptionUnion4TypeUIDescription4 +func CreateGetConfigurationProductsUIDescriptionUnion4GetConfigurationProductsUIDescription4(getConfigurationProductsUIDescription4 GetConfigurationProductsUIDescription4) GetConfigurationProductsUIDescriptionUnion4 { + typ := GetConfigurationProductsUIDescriptionUnion4TypeGetConfigurationProductsUIDescription4 - return UIDescriptionUnion4{ - UIDescription4: &uiDescription4, - Type: typ, + return GetConfigurationProductsUIDescriptionUnion4{ + GetConfigurationProductsUIDescription4: &getConfigurationProductsUIDescription4, + Type: typ, } } -func (u *UIDescriptionUnion4) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDescriptionUnion4) UnmarshalJSON(data []byte) error { - var uiDescription4 UIDescription4 = UIDescription4{} - if err := utils.UnmarshalJSON(data, &uiDescription4, "", true, true); err == nil { - u.UIDescription4 = &uiDescription4 - u.Type = UIDescriptionUnion4TypeUIDescription4 + var getConfigurationProductsUIDescription4 GetConfigurationProductsUIDescription4 = GetConfigurationProductsUIDescription4{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDescription4, "", true, nil); err == nil { + u.GetConfigurationProductsUIDescription4 = &getConfigurationProductsUIDescription4 + u.Type = GetConfigurationProductsUIDescriptionUnion4TypeGetConfigurationProductsUIDescription4 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str - u.Type = UIDescriptionUnion4TypeStr + u.Type = GetConfigurationProductsUIDescriptionUnion4TypeStr return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDescriptionUnion4", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDescriptionUnion4", string(data)) } -func (u UIDescriptionUnion4) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDescriptionUnion4) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } - if u.UIDescription4 != nil { - return utils.MarshalJSON(u.UIDescription4, "", true) + if u.GetConfigurationProductsUIDescription4 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDescription4, "", true) } - return nil, errors.New("could not marshal union type UIDescriptionUnion4: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDescriptionUnion4: all fields are null") } -type UIFormattedValue4 struct { +type GetConfigurationProductsUIFormattedValue4 struct { Expr string `json:"expr"` } -func (o *UIFormattedValue4) GetExpr() string { +func (g GetConfigurationProductsUIFormattedValue4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIFormattedValue4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIFormattedValue4) GetExpr() string { if o == nil { return "" } return o.Expr } -type PropertiesSlider struct { - Type TypeArray1 `json:"type"` - UIControl UIControlSlider `json:"ui:control"` - UISteps []float64 `json:"ui:steps"` - Items ItemsNumber `json:"items"` - Description *string `json:"description,omitempty"` - MinItems *float64 `json:"minItems,omitempty"` - MaxItems *float64 `json:"maxItems,omitempty"` - UILabel *string `json:"ui:label,omitempty"` - UIReadOnly *UIReadOnlyUnion4 `json:"ui:read-only,omitempty"` - UIHidden *UIHiddenUnion4 `json:"ui:hidden,omitempty"` - UIDisabled *UIDisabledUnion4 `json:"ui:disabled,omitempty"` - UIDescription *UIDescriptionUnion4 `json:"ui:description,omitempty"` - UIFormattedValue *UIFormattedValue4 `json:"ui:formatted-value,omitempty"` - Default []float64 `json:"default,omitempty"` +type GetConfigurationProductsPropertiesSlider struct { + Type GetConfigurationProductsTypeArray1 `json:"type"` + UIControl GetConfigurationProductsUIControlSlider `json:"ui:control"` + UISteps []float64 `json:"ui:steps"` + Items GetConfigurationProductsItemsNumber `json:"items"` + Description *string `json:"description,omitempty"` + MinItems *float64 `json:"minItems,omitempty"` + MaxItems *float64 `json:"maxItems,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *GetConfigurationProductsUIReadOnlyUnion4 `json:"ui:read-only,omitempty"` + UIHidden *GetConfigurationProductsUIHiddenUnion4 `json:"ui:hidden,omitempty"` + UIDisabled *GetConfigurationProductsUIDisabledUnion4 `json:"ui:disabled,omitempty"` + UIDescription *GetConfigurationProductsUIDescriptionUnion4 `json:"ui:description,omitempty"` + UIFormattedValue *GetConfigurationProductsUIFormattedValue4 `json:"ui:formatted-value,omitempty"` + Default []float64 `json:"default,omitempty"` +} + +func (g GetConfigurationProductsPropertiesSlider) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsPropertiesSlider) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ui:control", "ui:steps", "items"}); err != nil { + return err + } + return nil } -func (o *PropertiesSlider) GetType() TypeArray1 { +func (o *GetConfigurationProductsPropertiesSlider) GetType() GetConfigurationProductsTypeArray1 { if o == nil { - return TypeArray1("") + return GetConfigurationProductsTypeArray1("") } return o.Type } -func (o *PropertiesSlider) GetUIControl() UIControlSlider { +func (o *GetConfigurationProductsPropertiesSlider) GetUIControl() GetConfigurationProductsUIControlSlider { if o == nil { - return UIControlSlider("") + return GetConfigurationProductsUIControlSlider("") } return o.UIControl } -func (o *PropertiesSlider) GetUISteps() []float64 { +func (o *GetConfigurationProductsPropertiesSlider) GetUISteps() []float64 { if o == nil { return []float64{} } return o.UISteps } -func (o *PropertiesSlider) GetItems() ItemsNumber { +func (o *GetConfigurationProductsPropertiesSlider) GetItems() GetConfigurationProductsItemsNumber { if o == nil { - return ItemsNumber{} + return GetConfigurationProductsItemsNumber{} } return o.Items } -func (o *PropertiesSlider) GetDescription() *string { +func (o *GetConfigurationProductsPropertiesSlider) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *PropertiesSlider) GetMinItems() *float64 { +func (o *GetConfigurationProductsPropertiesSlider) GetMinItems() *float64 { if o == nil { return nil } return o.MinItems } -func (o *PropertiesSlider) GetMaxItems() *float64 { +func (o *GetConfigurationProductsPropertiesSlider) GetMaxItems() *float64 { if o == nil { return nil } return o.MaxItems } -func (o *PropertiesSlider) GetUILabel() *string { +func (o *GetConfigurationProductsPropertiesSlider) GetUILabel() *string { if o == nil { return nil } return o.UILabel } -func (o *PropertiesSlider) GetUIReadOnly() *UIReadOnlyUnion4 { +func (o *GetConfigurationProductsPropertiesSlider) GetUIReadOnly() *GetConfigurationProductsUIReadOnlyUnion4 { if o == nil { return nil } return o.UIReadOnly } -func (o *PropertiesSlider) GetUIHidden() *UIHiddenUnion4 { +func (o *GetConfigurationProductsPropertiesSlider) GetUIHidden() *GetConfigurationProductsUIHiddenUnion4 { if o == nil { return nil } return o.UIHidden } -func (o *PropertiesSlider) GetUIDisabled() *UIDisabledUnion4 { +func (o *GetConfigurationProductsPropertiesSlider) GetUIDisabled() *GetConfigurationProductsUIDisabledUnion4 { if o == nil { return nil } return o.UIDisabled } -func (o *PropertiesSlider) GetUIDescription() *UIDescriptionUnion4 { +func (o *GetConfigurationProductsPropertiesSlider) GetUIDescription() *GetConfigurationProductsUIDescriptionUnion4 { if o == nil { return nil } return o.UIDescription } -func (o *PropertiesSlider) GetUIFormattedValue() *UIFormattedValue4 { +func (o *GetConfigurationProductsPropertiesSlider) GetUIFormattedValue() *GetConfigurationProductsUIFormattedValue4 { if o == nil { return nil } return o.UIFormattedValue } -func (o *PropertiesSlider) GetDefault() []float64 { +func (o *GetConfigurationProductsPropertiesSlider) GetDefault() []float64 { if o == nil { return nil } return o.Default } -type TypeBoolean string +type GetConfigurationProductsTypeBoolean string const ( - TypeBooleanBoolean TypeBoolean = "boolean" + GetConfigurationProductsTypeBooleanBoolean GetConfigurationProductsTypeBoolean = "boolean" ) -func (e TypeBoolean) ToPointer() *TypeBoolean { +func (e GetConfigurationProductsTypeBoolean) ToPointer() *GetConfigurationProductsTypeBoolean { return &e } -func (e *TypeBoolean) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeBoolean) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "boolean": - *e = TypeBoolean(v) + *e = GetConfigurationProductsTypeBoolean(v) return nil default: - return fmt.Errorf("invalid value for TypeBoolean: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeBoolean: %v", v) } } -type UIControlToggle string +type GetConfigurationProductsUIControlToggle string const ( - UIControlToggleToggle UIControlToggle = "toggle" + GetConfigurationProductsUIControlToggleToggle GetConfigurationProductsUIControlToggle = "toggle" ) -func (e UIControlToggle) ToPointer() *UIControlToggle { +func (e GetConfigurationProductsUIControlToggle) ToPointer() *GetConfigurationProductsUIControlToggle { return &e } -func (e *UIControlToggle) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIControlToggle) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "toggle": - *e = UIControlToggle(v) + *e = GetConfigurationProductsUIControlToggle(v) return nil default: - return fmt.Errorf("invalid value for UIControlToggle: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIControlToggle: %v", v) } } -type UIReadOnlyEnum3 string +type GetConfigurationProductsUIReadOnlyEnum3 string const ( - UIReadOnlyEnum3Update UIReadOnlyEnum3 = "update" - UIReadOnlyEnum3Create UIReadOnlyEnum3 = "create" + GetConfigurationProductsUIReadOnlyEnum3Update GetConfigurationProductsUIReadOnlyEnum3 = "update" + GetConfigurationProductsUIReadOnlyEnum3Create GetConfigurationProductsUIReadOnlyEnum3 = "create" ) -func (e UIReadOnlyEnum3) ToPointer() *UIReadOnlyEnum3 { +func (e GetConfigurationProductsUIReadOnlyEnum3) ToPointer() *GetConfigurationProductsUIReadOnlyEnum3 { return &e } -func (e *UIReadOnlyEnum3) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIReadOnlyEnum3) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -6507,120 +7519,131 @@ func (e *UIReadOnlyEnum3) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIReadOnlyEnum3(v) + *e = GetConfigurationProductsUIReadOnlyEnum3(v) return nil default: - return fmt.Errorf("invalid value for UIReadOnlyEnum3: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIReadOnlyEnum3: %v", v) } } -type UIReadOnly3 struct { +type GetConfigurationProductsUIReadOnly3 struct { Expr string `json:"expr"` } -func (o *UIReadOnly3) GetExpr() string { +func (g GetConfigurationProductsUIReadOnly3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIReadOnly3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIReadOnly3) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIReadOnlyUnion3Type string +type GetConfigurationProductsUIReadOnlyUnion3Type string const ( - UIReadOnlyUnion3TypeBoolean UIReadOnlyUnion3Type = "boolean" - UIReadOnlyUnion3TypeUIReadOnly3 UIReadOnlyUnion3Type = "ui:read-only_3" - UIReadOnlyUnion3TypeUIReadOnlyEnum3 UIReadOnlyUnion3Type = "ui:read-only_enum_3" + GetConfigurationProductsUIReadOnlyUnion3TypeBoolean GetConfigurationProductsUIReadOnlyUnion3Type = "boolean" + GetConfigurationProductsUIReadOnlyUnion3TypeGetConfigurationProductsUIReadOnly3 GetConfigurationProductsUIReadOnlyUnion3Type = "getConfigurationProducts_ui:read-only_3" + GetConfigurationProductsUIReadOnlyUnion3TypeGetConfigurationProductsUIReadOnlyEnum3 GetConfigurationProductsUIReadOnlyUnion3Type = "getConfigurationProducts_ui:read-only_enum_3" ) -type UIReadOnlyUnion3 struct { - Boolean *bool `queryParam:"inline"` - UIReadOnly3 *UIReadOnly3 `queryParam:"inline"` - UIReadOnlyEnum3 *UIReadOnlyEnum3 `queryParam:"inline"` +type GetConfigurationProductsUIReadOnlyUnion3 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIReadOnly3 *GetConfigurationProductsUIReadOnly3 `queryParam:"inline"` + GetConfigurationProductsUIReadOnlyEnum3 *GetConfigurationProductsUIReadOnlyEnum3 `queryParam:"inline"` - Type UIReadOnlyUnion3Type + Type GetConfigurationProductsUIReadOnlyUnion3Type } -func CreateUIReadOnlyUnion3Boolean(boolean bool) UIReadOnlyUnion3 { - typ := UIReadOnlyUnion3TypeBoolean +func CreateGetConfigurationProductsUIReadOnlyUnion3Boolean(boolean bool) GetConfigurationProductsUIReadOnlyUnion3 { + typ := GetConfigurationProductsUIReadOnlyUnion3TypeBoolean - return UIReadOnlyUnion3{ + return GetConfigurationProductsUIReadOnlyUnion3{ Boolean: &boolean, Type: typ, } } -func CreateUIReadOnlyUnion3UIReadOnly3(uiReadOnly3 UIReadOnly3) UIReadOnlyUnion3 { - typ := UIReadOnlyUnion3TypeUIReadOnly3 +func CreateGetConfigurationProductsUIReadOnlyUnion3GetConfigurationProductsUIReadOnly3(getConfigurationProductsUIReadOnly3 GetConfigurationProductsUIReadOnly3) GetConfigurationProductsUIReadOnlyUnion3 { + typ := GetConfigurationProductsUIReadOnlyUnion3TypeGetConfigurationProductsUIReadOnly3 - return UIReadOnlyUnion3{ - UIReadOnly3: &uiReadOnly3, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion3{ + GetConfigurationProductsUIReadOnly3: &getConfigurationProductsUIReadOnly3, + Type: typ, } } -func CreateUIReadOnlyUnion3UIReadOnlyEnum3(uiReadOnlyEnum3 UIReadOnlyEnum3) UIReadOnlyUnion3 { - typ := UIReadOnlyUnion3TypeUIReadOnlyEnum3 +func CreateGetConfigurationProductsUIReadOnlyUnion3GetConfigurationProductsUIReadOnlyEnum3(getConfigurationProductsUIReadOnlyEnum3 GetConfigurationProductsUIReadOnlyEnum3) GetConfigurationProductsUIReadOnlyUnion3 { + typ := GetConfigurationProductsUIReadOnlyUnion3TypeGetConfigurationProductsUIReadOnlyEnum3 - return UIReadOnlyUnion3{ - UIReadOnlyEnum3: &uiReadOnlyEnum3, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion3{ + GetConfigurationProductsUIReadOnlyEnum3: &getConfigurationProductsUIReadOnlyEnum3, + Type: typ, } } -func (u *UIReadOnlyUnion3) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIReadOnlyUnion3) UnmarshalJSON(data []byte) error { - var uiReadOnly3 UIReadOnly3 = UIReadOnly3{} - if err := utils.UnmarshalJSON(data, &uiReadOnly3, "", true, true); err == nil { - u.UIReadOnly3 = &uiReadOnly3 - u.Type = UIReadOnlyUnion3TypeUIReadOnly3 + var getConfigurationProductsUIReadOnly3 GetConfigurationProductsUIReadOnly3 = GetConfigurationProductsUIReadOnly3{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnly3, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnly3 = &getConfigurationProductsUIReadOnly3 + u.Type = GetConfigurationProductsUIReadOnlyUnion3TypeGetConfigurationProductsUIReadOnly3 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIReadOnlyUnion3TypeBoolean + u.Type = GetConfigurationProductsUIReadOnlyUnion3TypeBoolean return nil } - var uiReadOnlyEnum3 UIReadOnlyEnum3 = UIReadOnlyEnum3("") - if err := utils.UnmarshalJSON(data, &uiReadOnlyEnum3, "", true, true); err == nil { - u.UIReadOnlyEnum3 = &uiReadOnlyEnum3 - u.Type = UIReadOnlyUnion3TypeUIReadOnlyEnum3 + var getConfigurationProductsUIReadOnlyEnum3 GetConfigurationProductsUIReadOnlyEnum3 = GetConfigurationProductsUIReadOnlyEnum3("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnlyEnum3, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnlyEnum3 = &getConfigurationProductsUIReadOnlyEnum3 + u.Type = GetConfigurationProductsUIReadOnlyUnion3TypeGetConfigurationProductsUIReadOnlyEnum3 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIReadOnlyUnion3", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIReadOnlyUnion3", string(data)) } -func (u UIReadOnlyUnion3) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIReadOnlyUnion3) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIReadOnly3 != nil { - return utils.MarshalJSON(u.UIReadOnly3, "", true) + if u.GetConfigurationProductsUIReadOnly3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnly3, "", true) } - if u.UIReadOnlyEnum3 != nil { - return utils.MarshalJSON(u.UIReadOnlyEnum3, "", true) + if u.GetConfigurationProductsUIReadOnlyEnum3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnlyEnum3, "", true) } - return nil, errors.New("could not marshal union type UIReadOnlyUnion3: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIReadOnlyUnion3: all fields are null") } -type UIHiddenEnum3 string +type GetConfigurationProductsUIHiddenEnum3 string const ( - UIHiddenEnum3Update UIHiddenEnum3 = "update" - UIHiddenEnum3Create UIHiddenEnum3 = "create" + GetConfigurationProductsUIHiddenEnum3Update GetConfigurationProductsUIHiddenEnum3 = "update" + GetConfigurationProductsUIHiddenEnum3Create GetConfigurationProductsUIHiddenEnum3 = "create" ) -func (e UIHiddenEnum3) ToPointer() *UIHiddenEnum3 { +func (e GetConfigurationProductsUIHiddenEnum3) ToPointer() *GetConfigurationProductsUIHiddenEnum3 { return &e } -func (e *UIHiddenEnum3) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIHiddenEnum3) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -6629,120 +7652,131 @@ func (e *UIHiddenEnum3) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIHiddenEnum3(v) + *e = GetConfigurationProductsUIHiddenEnum3(v) return nil default: - return fmt.Errorf("invalid value for UIHiddenEnum3: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIHiddenEnum3: %v", v) } } -type UIHidden3 struct { +type GetConfigurationProductsUIHidden3 struct { Expr string `json:"expr"` } -func (o *UIHidden3) GetExpr() string { +func (g GetConfigurationProductsUIHidden3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIHidden3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIHidden3) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIHiddenUnion3Type string +type GetConfigurationProductsUIHiddenUnion3Type string const ( - UIHiddenUnion3TypeBoolean UIHiddenUnion3Type = "boolean" - UIHiddenUnion3TypeUIHidden3 UIHiddenUnion3Type = "ui:hidden_3" - UIHiddenUnion3TypeUIHiddenEnum3 UIHiddenUnion3Type = "ui:hidden_enum_3" + GetConfigurationProductsUIHiddenUnion3TypeBoolean GetConfigurationProductsUIHiddenUnion3Type = "boolean" + GetConfigurationProductsUIHiddenUnion3TypeGetConfigurationProductsUIHidden3 GetConfigurationProductsUIHiddenUnion3Type = "getConfigurationProducts_ui:hidden_3" + GetConfigurationProductsUIHiddenUnion3TypeGetConfigurationProductsUIHiddenEnum3 GetConfigurationProductsUIHiddenUnion3Type = "getConfigurationProducts_ui:hidden_enum_3" ) -type UIHiddenUnion3 struct { - Boolean *bool `queryParam:"inline"` - UIHidden3 *UIHidden3 `queryParam:"inline"` - UIHiddenEnum3 *UIHiddenEnum3 `queryParam:"inline"` +type GetConfigurationProductsUIHiddenUnion3 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIHidden3 *GetConfigurationProductsUIHidden3 `queryParam:"inline"` + GetConfigurationProductsUIHiddenEnum3 *GetConfigurationProductsUIHiddenEnum3 `queryParam:"inline"` - Type UIHiddenUnion3Type + Type GetConfigurationProductsUIHiddenUnion3Type } -func CreateUIHiddenUnion3Boolean(boolean bool) UIHiddenUnion3 { - typ := UIHiddenUnion3TypeBoolean +func CreateGetConfigurationProductsUIHiddenUnion3Boolean(boolean bool) GetConfigurationProductsUIHiddenUnion3 { + typ := GetConfigurationProductsUIHiddenUnion3TypeBoolean - return UIHiddenUnion3{ + return GetConfigurationProductsUIHiddenUnion3{ Boolean: &boolean, Type: typ, } } -func CreateUIHiddenUnion3UIHidden3(uiHidden3 UIHidden3) UIHiddenUnion3 { - typ := UIHiddenUnion3TypeUIHidden3 +func CreateGetConfigurationProductsUIHiddenUnion3GetConfigurationProductsUIHidden3(getConfigurationProductsUIHidden3 GetConfigurationProductsUIHidden3) GetConfigurationProductsUIHiddenUnion3 { + typ := GetConfigurationProductsUIHiddenUnion3TypeGetConfigurationProductsUIHidden3 - return UIHiddenUnion3{ - UIHidden3: &uiHidden3, - Type: typ, + return GetConfigurationProductsUIHiddenUnion3{ + GetConfigurationProductsUIHidden3: &getConfigurationProductsUIHidden3, + Type: typ, } } -func CreateUIHiddenUnion3UIHiddenEnum3(uiHiddenEnum3 UIHiddenEnum3) UIHiddenUnion3 { - typ := UIHiddenUnion3TypeUIHiddenEnum3 +func CreateGetConfigurationProductsUIHiddenUnion3GetConfigurationProductsUIHiddenEnum3(getConfigurationProductsUIHiddenEnum3 GetConfigurationProductsUIHiddenEnum3) GetConfigurationProductsUIHiddenUnion3 { + typ := GetConfigurationProductsUIHiddenUnion3TypeGetConfigurationProductsUIHiddenEnum3 - return UIHiddenUnion3{ - UIHiddenEnum3: &uiHiddenEnum3, - Type: typ, + return GetConfigurationProductsUIHiddenUnion3{ + GetConfigurationProductsUIHiddenEnum3: &getConfigurationProductsUIHiddenEnum3, + Type: typ, } } -func (u *UIHiddenUnion3) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIHiddenUnion3) UnmarshalJSON(data []byte) error { - var uiHidden3 UIHidden3 = UIHidden3{} - if err := utils.UnmarshalJSON(data, &uiHidden3, "", true, true); err == nil { - u.UIHidden3 = &uiHidden3 - u.Type = UIHiddenUnion3TypeUIHidden3 + var getConfigurationProductsUIHidden3 GetConfigurationProductsUIHidden3 = GetConfigurationProductsUIHidden3{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHidden3, "", true, nil); err == nil { + u.GetConfigurationProductsUIHidden3 = &getConfigurationProductsUIHidden3 + u.Type = GetConfigurationProductsUIHiddenUnion3TypeGetConfigurationProductsUIHidden3 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIHiddenUnion3TypeBoolean + u.Type = GetConfigurationProductsUIHiddenUnion3TypeBoolean return nil } - var uiHiddenEnum3 UIHiddenEnum3 = UIHiddenEnum3("") - if err := utils.UnmarshalJSON(data, &uiHiddenEnum3, "", true, true); err == nil { - u.UIHiddenEnum3 = &uiHiddenEnum3 - u.Type = UIHiddenUnion3TypeUIHiddenEnum3 + var getConfigurationProductsUIHiddenEnum3 GetConfigurationProductsUIHiddenEnum3 = GetConfigurationProductsUIHiddenEnum3("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHiddenEnum3, "", true, nil); err == nil { + u.GetConfigurationProductsUIHiddenEnum3 = &getConfigurationProductsUIHiddenEnum3 + u.Type = GetConfigurationProductsUIHiddenUnion3TypeGetConfigurationProductsUIHiddenEnum3 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIHiddenUnion3", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIHiddenUnion3", string(data)) } -func (u UIHiddenUnion3) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIHiddenUnion3) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIHidden3 != nil { - return utils.MarshalJSON(u.UIHidden3, "", true) + if u.GetConfigurationProductsUIHidden3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHidden3, "", true) } - if u.UIHiddenEnum3 != nil { - return utils.MarshalJSON(u.UIHiddenEnum3, "", true) + if u.GetConfigurationProductsUIHiddenEnum3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHiddenEnum3, "", true) } - return nil, errors.New("could not marshal union type UIHiddenUnion3: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIHiddenUnion3: all fields are null") } -type UIDisabledEnum3 string +type GetConfigurationProductsUIDisabledEnum3 string const ( - UIDisabledEnum3Update UIDisabledEnum3 = "update" - UIDisabledEnum3Create UIDisabledEnum3 = "create" + GetConfigurationProductsUIDisabledEnum3Update GetConfigurationProductsUIDisabledEnum3 = "update" + GetConfigurationProductsUIDisabledEnum3Create GetConfigurationProductsUIDisabledEnum3 = "create" ) -func (e UIDisabledEnum3) ToPointer() *UIDisabledEnum3 { +func (e GetConfigurationProductsUIDisabledEnum3) ToPointer() *GetConfigurationProductsUIDisabledEnum3 { return &e } -func (e *UIDisabledEnum3) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIDisabledEnum3) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -6751,334 +7785,378 @@ func (e *UIDisabledEnum3) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIDisabledEnum3(v) + *e = GetConfigurationProductsUIDisabledEnum3(v) return nil default: - return fmt.Errorf("invalid value for UIDisabledEnum3: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIDisabledEnum3: %v", v) } } -type UIDisabled3 struct { +type GetConfigurationProductsUIDisabled3 struct { Expr string `json:"expr"` } -func (o *UIDisabled3) GetExpr() string { +func (g GetConfigurationProductsUIDisabled3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDisabled3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDisabled3) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDisabledUnion3Type string +type GetConfigurationProductsUIDisabledUnion3Type string const ( - UIDisabledUnion3TypeBoolean UIDisabledUnion3Type = "boolean" - UIDisabledUnion3TypeUIDisabled3 UIDisabledUnion3Type = "ui:disabled_3" - UIDisabledUnion3TypeUIDisabledEnum3 UIDisabledUnion3Type = "ui:disabled_enum_3" + GetConfigurationProductsUIDisabledUnion3TypeBoolean GetConfigurationProductsUIDisabledUnion3Type = "boolean" + GetConfigurationProductsUIDisabledUnion3TypeGetConfigurationProductsUIDisabled3 GetConfigurationProductsUIDisabledUnion3Type = "getConfigurationProducts_ui:disabled_3" + GetConfigurationProductsUIDisabledUnion3TypeGetConfigurationProductsUIDisabledEnum3 GetConfigurationProductsUIDisabledUnion3Type = "getConfigurationProducts_ui:disabled_enum_3" ) -type UIDisabledUnion3 struct { - Boolean *bool `queryParam:"inline"` - UIDisabled3 *UIDisabled3 `queryParam:"inline"` - UIDisabledEnum3 *UIDisabledEnum3 `queryParam:"inline"` +type GetConfigurationProductsUIDisabledUnion3 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIDisabled3 *GetConfigurationProductsUIDisabled3 `queryParam:"inline"` + GetConfigurationProductsUIDisabledEnum3 *GetConfigurationProductsUIDisabledEnum3 `queryParam:"inline"` - Type UIDisabledUnion3Type + Type GetConfigurationProductsUIDisabledUnion3Type } -func CreateUIDisabledUnion3Boolean(boolean bool) UIDisabledUnion3 { - typ := UIDisabledUnion3TypeBoolean +func CreateGetConfigurationProductsUIDisabledUnion3Boolean(boolean bool) GetConfigurationProductsUIDisabledUnion3 { + typ := GetConfigurationProductsUIDisabledUnion3TypeBoolean - return UIDisabledUnion3{ + return GetConfigurationProductsUIDisabledUnion3{ Boolean: &boolean, Type: typ, } } -func CreateUIDisabledUnion3UIDisabled3(uiDisabled3 UIDisabled3) UIDisabledUnion3 { - typ := UIDisabledUnion3TypeUIDisabled3 +func CreateGetConfigurationProductsUIDisabledUnion3GetConfigurationProductsUIDisabled3(getConfigurationProductsUIDisabled3 GetConfigurationProductsUIDisabled3) GetConfigurationProductsUIDisabledUnion3 { + typ := GetConfigurationProductsUIDisabledUnion3TypeGetConfigurationProductsUIDisabled3 - return UIDisabledUnion3{ - UIDisabled3: &uiDisabled3, - Type: typ, + return GetConfigurationProductsUIDisabledUnion3{ + GetConfigurationProductsUIDisabled3: &getConfigurationProductsUIDisabled3, + Type: typ, } } -func CreateUIDisabledUnion3UIDisabledEnum3(uiDisabledEnum3 UIDisabledEnum3) UIDisabledUnion3 { - typ := UIDisabledUnion3TypeUIDisabledEnum3 +func CreateGetConfigurationProductsUIDisabledUnion3GetConfigurationProductsUIDisabledEnum3(getConfigurationProductsUIDisabledEnum3 GetConfigurationProductsUIDisabledEnum3) GetConfigurationProductsUIDisabledUnion3 { + typ := GetConfigurationProductsUIDisabledUnion3TypeGetConfigurationProductsUIDisabledEnum3 - return UIDisabledUnion3{ - UIDisabledEnum3: &uiDisabledEnum3, - Type: typ, + return GetConfigurationProductsUIDisabledUnion3{ + GetConfigurationProductsUIDisabledEnum3: &getConfigurationProductsUIDisabledEnum3, + Type: typ, } } -func (u *UIDisabledUnion3) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDisabledUnion3) UnmarshalJSON(data []byte) error { - var uiDisabled3 UIDisabled3 = UIDisabled3{} - if err := utils.UnmarshalJSON(data, &uiDisabled3, "", true, true); err == nil { - u.UIDisabled3 = &uiDisabled3 - u.Type = UIDisabledUnion3TypeUIDisabled3 + var getConfigurationProductsUIDisabled3 GetConfigurationProductsUIDisabled3 = GetConfigurationProductsUIDisabled3{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabled3, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabled3 = &getConfigurationProductsUIDisabled3 + u.Type = GetConfigurationProductsUIDisabledUnion3TypeGetConfigurationProductsUIDisabled3 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIDisabledUnion3TypeBoolean + u.Type = GetConfigurationProductsUIDisabledUnion3TypeBoolean return nil } - var uiDisabledEnum3 UIDisabledEnum3 = UIDisabledEnum3("") - if err := utils.UnmarshalJSON(data, &uiDisabledEnum3, "", true, true); err == nil { - u.UIDisabledEnum3 = &uiDisabledEnum3 - u.Type = UIDisabledUnion3TypeUIDisabledEnum3 + var getConfigurationProductsUIDisabledEnum3 GetConfigurationProductsUIDisabledEnum3 = GetConfigurationProductsUIDisabledEnum3("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabledEnum3, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabledEnum3 = &getConfigurationProductsUIDisabledEnum3 + u.Type = GetConfigurationProductsUIDisabledUnion3TypeGetConfigurationProductsUIDisabledEnum3 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDisabledUnion3", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDisabledUnion3", string(data)) } -func (u UIDisabledUnion3) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDisabledUnion3) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIDisabled3 != nil { - return utils.MarshalJSON(u.UIDisabled3, "", true) + if u.GetConfigurationProductsUIDisabled3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabled3, "", true) } - if u.UIDisabledEnum3 != nil { - return utils.MarshalJSON(u.UIDisabledEnum3, "", true) + if u.GetConfigurationProductsUIDisabledEnum3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabledEnum3, "", true) } - return nil, errors.New("could not marshal union type UIDisabledUnion3: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDisabledUnion3: all fields are null") } -type UIDescription3 struct { +type GetConfigurationProductsUIDescription3 struct { Expr string `json:"expr"` } -func (o *UIDescription3) GetExpr() string { +func (g GetConfigurationProductsUIDescription3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDescription3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDescription3) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDescriptionUnion3Type string +type GetConfigurationProductsUIDescriptionUnion3Type string const ( - UIDescriptionUnion3TypeStr UIDescriptionUnion3Type = "str" - UIDescriptionUnion3TypeUIDescription3 UIDescriptionUnion3Type = "ui:description_3" + GetConfigurationProductsUIDescriptionUnion3TypeStr GetConfigurationProductsUIDescriptionUnion3Type = "str" + GetConfigurationProductsUIDescriptionUnion3TypeGetConfigurationProductsUIDescription3 GetConfigurationProductsUIDescriptionUnion3Type = "getConfigurationProducts_ui:description_3" ) -type UIDescriptionUnion3 struct { - Str *string `queryParam:"inline"` - UIDescription3 *UIDescription3 `queryParam:"inline"` +type GetConfigurationProductsUIDescriptionUnion3 struct { + Str *string `queryParam:"inline"` + GetConfigurationProductsUIDescription3 *GetConfigurationProductsUIDescription3 `queryParam:"inline"` - Type UIDescriptionUnion3Type + Type GetConfigurationProductsUIDescriptionUnion3Type } -func CreateUIDescriptionUnion3Str(str string) UIDescriptionUnion3 { - typ := UIDescriptionUnion3TypeStr +func CreateGetConfigurationProductsUIDescriptionUnion3Str(str string) GetConfigurationProductsUIDescriptionUnion3 { + typ := GetConfigurationProductsUIDescriptionUnion3TypeStr - return UIDescriptionUnion3{ + return GetConfigurationProductsUIDescriptionUnion3{ Str: &str, Type: typ, } } -func CreateUIDescriptionUnion3UIDescription3(uiDescription3 UIDescription3) UIDescriptionUnion3 { - typ := UIDescriptionUnion3TypeUIDescription3 +func CreateGetConfigurationProductsUIDescriptionUnion3GetConfigurationProductsUIDescription3(getConfigurationProductsUIDescription3 GetConfigurationProductsUIDescription3) GetConfigurationProductsUIDescriptionUnion3 { + typ := GetConfigurationProductsUIDescriptionUnion3TypeGetConfigurationProductsUIDescription3 - return UIDescriptionUnion3{ - UIDescription3: &uiDescription3, - Type: typ, + return GetConfigurationProductsUIDescriptionUnion3{ + GetConfigurationProductsUIDescription3: &getConfigurationProductsUIDescription3, + Type: typ, } } -func (u *UIDescriptionUnion3) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDescriptionUnion3) UnmarshalJSON(data []byte) error { - var uiDescription3 UIDescription3 = UIDescription3{} - if err := utils.UnmarshalJSON(data, &uiDescription3, "", true, true); err == nil { - u.UIDescription3 = &uiDescription3 - u.Type = UIDescriptionUnion3TypeUIDescription3 + var getConfigurationProductsUIDescription3 GetConfigurationProductsUIDescription3 = GetConfigurationProductsUIDescription3{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDescription3, "", true, nil); err == nil { + u.GetConfigurationProductsUIDescription3 = &getConfigurationProductsUIDescription3 + u.Type = GetConfigurationProductsUIDescriptionUnion3TypeGetConfigurationProductsUIDescription3 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str - u.Type = UIDescriptionUnion3TypeStr + u.Type = GetConfigurationProductsUIDescriptionUnion3TypeStr return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDescriptionUnion3", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDescriptionUnion3", string(data)) } -func (u UIDescriptionUnion3) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDescriptionUnion3) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } - if u.UIDescription3 != nil { - return utils.MarshalJSON(u.UIDescription3, "", true) + if u.GetConfigurationProductsUIDescription3 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDescription3, "", true) } - return nil, errors.New("could not marshal union type UIDescriptionUnion3: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDescriptionUnion3: all fields are null") } -type UIFormattedValue3 struct { +type GetConfigurationProductsUIFormattedValue3 struct { Expr string `json:"expr"` } -func (o *UIFormattedValue3) GetExpr() string { +func (g GetConfigurationProductsUIFormattedValue3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIFormattedValue3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIFormattedValue3) GetExpr() string { if o == nil { return "" } return o.Expr } -type PropertiesToggle struct { - Type TypeBoolean `json:"type"` - UIControl UIControlToggle `json:"ui:control"` - Description *string `json:"description,omitempty"` - Default *bool `json:"default,omitempty"` - UILabel *string `json:"ui:label,omitempty"` - UIReadOnly *UIReadOnlyUnion3 `json:"ui:read-only,omitempty"` - UIHidden *UIHiddenUnion3 `json:"ui:hidden,omitempty"` - UIDisabled *UIDisabledUnion3 `json:"ui:disabled,omitempty"` - UIDescription *UIDescriptionUnion3 `json:"ui:description,omitempty"` - UIFormattedValue *UIFormattedValue3 `json:"ui:formatted-value,omitempty"` +type GetConfigurationProductsPropertiesToggle struct { + Type GetConfigurationProductsTypeBoolean `json:"type"` + UIControl GetConfigurationProductsUIControlToggle `json:"ui:control"` + Description *string `json:"description,omitempty"` + Default *bool `json:"default,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *GetConfigurationProductsUIReadOnlyUnion3 `json:"ui:read-only,omitempty"` + UIHidden *GetConfigurationProductsUIHiddenUnion3 `json:"ui:hidden,omitempty"` + UIDisabled *GetConfigurationProductsUIDisabledUnion3 `json:"ui:disabled,omitempty"` + UIDescription *GetConfigurationProductsUIDescriptionUnion3 `json:"ui:description,omitempty"` + UIFormattedValue *GetConfigurationProductsUIFormattedValue3 `json:"ui:formatted-value,omitempty"` +} + +func (g GetConfigurationProductsPropertiesToggle) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsPropertiesToggle) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ui:control"}); err != nil { + return err + } + return nil } -func (o *PropertiesToggle) GetType() TypeBoolean { +func (o *GetConfigurationProductsPropertiesToggle) GetType() GetConfigurationProductsTypeBoolean { if o == nil { - return TypeBoolean("") + return GetConfigurationProductsTypeBoolean("") } return o.Type } -func (o *PropertiesToggle) GetUIControl() UIControlToggle { +func (o *GetConfigurationProductsPropertiesToggle) GetUIControl() GetConfigurationProductsUIControlToggle { if o == nil { - return UIControlToggle("") + return GetConfigurationProductsUIControlToggle("") } return o.UIControl } -func (o *PropertiesToggle) GetDescription() *string { +func (o *GetConfigurationProductsPropertiesToggle) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *PropertiesToggle) GetDefault() *bool { +func (o *GetConfigurationProductsPropertiesToggle) GetDefault() *bool { if o == nil { return nil } return o.Default } -func (o *PropertiesToggle) GetUILabel() *string { +func (o *GetConfigurationProductsPropertiesToggle) GetUILabel() *string { if o == nil { return nil } return o.UILabel } -func (o *PropertiesToggle) GetUIReadOnly() *UIReadOnlyUnion3 { +func (o *GetConfigurationProductsPropertiesToggle) GetUIReadOnly() *GetConfigurationProductsUIReadOnlyUnion3 { if o == nil { return nil } return o.UIReadOnly } -func (o *PropertiesToggle) GetUIHidden() *UIHiddenUnion3 { +func (o *GetConfigurationProductsPropertiesToggle) GetUIHidden() *GetConfigurationProductsUIHiddenUnion3 { if o == nil { return nil } return o.UIHidden } -func (o *PropertiesToggle) GetUIDisabled() *UIDisabledUnion3 { +func (o *GetConfigurationProductsPropertiesToggle) GetUIDisabled() *GetConfigurationProductsUIDisabledUnion3 { if o == nil { return nil } return o.UIDisabled } -func (o *PropertiesToggle) GetUIDescription() *UIDescriptionUnion3 { +func (o *GetConfigurationProductsPropertiesToggle) GetUIDescription() *GetConfigurationProductsUIDescriptionUnion3 { if o == nil { return nil } return o.UIDescription } -func (o *PropertiesToggle) GetUIFormattedValue() *UIFormattedValue3 { +func (o *GetConfigurationProductsPropertiesToggle) GetUIFormattedValue() *GetConfigurationProductsUIFormattedValue3 { if o == nil { return nil } return o.UIFormattedValue } -type TypeNumber1 string +type GetConfigurationProductsTypeNumber1 string const ( - TypeNumber1Number TypeNumber1 = "number" + GetConfigurationProductsTypeNumber1Number GetConfigurationProductsTypeNumber1 = "number" ) -func (e TypeNumber1) ToPointer() *TypeNumber1 { +func (e GetConfigurationProductsTypeNumber1) ToPointer() *GetConfigurationProductsTypeNumber1 { return &e } -func (e *TypeNumber1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeNumber1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "number": - *e = TypeNumber1(v) + *e = GetConfigurationProductsTypeNumber1(v) return nil default: - return fmt.Errorf("invalid value for TypeNumber1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeNumber1: %v", v) } } -type UIControlInput2 string +type GetConfigurationProductsUIControlInput2 string const ( - UIControlInput2Input UIControlInput2 = "input" + GetConfigurationProductsUIControlInput2Input GetConfigurationProductsUIControlInput2 = "input" ) -func (e UIControlInput2) ToPointer() *UIControlInput2 { +func (e GetConfigurationProductsUIControlInput2) ToPointer() *GetConfigurationProductsUIControlInput2 { return &e } -func (e *UIControlInput2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIControlInput2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "input": - *e = UIControlInput2(v) + *e = GetConfigurationProductsUIControlInput2(v) return nil default: - return fmt.Errorf("invalid value for UIControlInput2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIControlInput2: %v", v) } } -type UIReadOnlyEnum2 string +type GetConfigurationProductsUIReadOnlyEnum2 string const ( - UIReadOnlyEnum2Update UIReadOnlyEnum2 = "update" - UIReadOnlyEnum2Create UIReadOnlyEnum2 = "create" + GetConfigurationProductsUIReadOnlyEnum2Update GetConfigurationProductsUIReadOnlyEnum2 = "update" + GetConfigurationProductsUIReadOnlyEnum2Create GetConfigurationProductsUIReadOnlyEnum2 = "create" ) -func (e UIReadOnlyEnum2) ToPointer() *UIReadOnlyEnum2 { +func (e GetConfigurationProductsUIReadOnlyEnum2) ToPointer() *GetConfigurationProductsUIReadOnlyEnum2 { return &e } -func (e *UIReadOnlyEnum2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIReadOnlyEnum2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -7087,120 +8165,131 @@ func (e *UIReadOnlyEnum2) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIReadOnlyEnum2(v) + *e = GetConfigurationProductsUIReadOnlyEnum2(v) return nil default: - return fmt.Errorf("invalid value for UIReadOnlyEnum2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIReadOnlyEnum2: %v", v) } } -type UIReadOnly2 struct { +type GetConfigurationProductsUIReadOnly2 struct { Expr string `json:"expr"` } -func (o *UIReadOnly2) GetExpr() string { +func (g GetConfigurationProductsUIReadOnly2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIReadOnly2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIReadOnly2) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIReadOnlyUnion2Type string +type GetConfigurationProductsUIReadOnlyUnion2Type string const ( - UIReadOnlyUnion2TypeBoolean UIReadOnlyUnion2Type = "boolean" - UIReadOnlyUnion2TypeUIReadOnly2 UIReadOnlyUnion2Type = "ui:read-only_2" - UIReadOnlyUnion2TypeUIReadOnlyEnum2 UIReadOnlyUnion2Type = "ui:read-only_enum_2" + GetConfigurationProductsUIReadOnlyUnion2TypeBoolean GetConfigurationProductsUIReadOnlyUnion2Type = "boolean" + GetConfigurationProductsUIReadOnlyUnion2TypeGetConfigurationProductsUIReadOnly2 GetConfigurationProductsUIReadOnlyUnion2Type = "getConfigurationProducts_ui:read-only_2" + GetConfigurationProductsUIReadOnlyUnion2TypeGetConfigurationProductsUIReadOnlyEnum2 GetConfigurationProductsUIReadOnlyUnion2Type = "getConfigurationProducts_ui:read-only_enum_2" ) -type UIReadOnlyUnion2 struct { - Boolean *bool `queryParam:"inline"` - UIReadOnly2 *UIReadOnly2 `queryParam:"inline"` - UIReadOnlyEnum2 *UIReadOnlyEnum2 `queryParam:"inline"` +type GetConfigurationProductsUIReadOnlyUnion2 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIReadOnly2 *GetConfigurationProductsUIReadOnly2 `queryParam:"inline"` + GetConfigurationProductsUIReadOnlyEnum2 *GetConfigurationProductsUIReadOnlyEnum2 `queryParam:"inline"` - Type UIReadOnlyUnion2Type + Type GetConfigurationProductsUIReadOnlyUnion2Type } -func CreateUIReadOnlyUnion2Boolean(boolean bool) UIReadOnlyUnion2 { - typ := UIReadOnlyUnion2TypeBoolean +func CreateGetConfigurationProductsUIReadOnlyUnion2Boolean(boolean bool) GetConfigurationProductsUIReadOnlyUnion2 { + typ := GetConfigurationProductsUIReadOnlyUnion2TypeBoolean - return UIReadOnlyUnion2{ + return GetConfigurationProductsUIReadOnlyUnion2{ Boolean: &boolean, Type: typ, } } -func CreateUIReadOnlyUnion2UIReadOnly2(uiReadOnly2 UIReadOnly2) UIReadOnlyUnion2 { - typ := UIReadOnlyUnion2TypeUIReadOnly2 +func CreateGetConfigurationProductsUIReadOnlyUnion2GetConfigurationProductsUIReadOnly2(getConfigurationProductsUIReadOnly2 GetConfigurationProductsUIReadOnly2) GetConfigurationProductsUIReadOnlyUnion2 { + typ := GetConfigurationProductsUIReadOnlyUnion2TypeGetConfigurationProductsUIReadOnly2 - return UIReadOnlyUnion2{ - UIReadOnly2: &uiReadOnly2, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion2{ + GetConfigurationProductsUIReadOnly2: &getConfigurationProductsUIReadOnly2, + Type: typ, } } -func CreateUIReadOnlyUnion2UIReadOnlyEnum2(uiReadOnlyEnum2 UIReadOnlyEnum2) UIReadOnlyUnion2 { - typ := UIReadOnlyUnion2TypeUIReadOnlyEnum2 +func CreateGetConfigurationProductsUIReadOnlyUnion2GetConfigurationProductsUIReadOnlyEnum2(getConfigurationProductsUIReadOnlyEnum2 GetConfigurationProductsUIReadOnlyEnum2) GetConfigurationProductsUIReadOnlyUnion2 { + typ := GetConfigurationProductsUIReadOnlyUnion2TypeGetConfigurationProductsUIReadOnlyEnum2 - return UIReadOnlyUnion2{ - UIReadOnlyEnum2: &uiReadOnlyEnum2, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion2{ + GetConfigurationProductsUIReadOnlyEnum2: &getConfigurationProductsUIReadOnlyEnum2, + Type: typ, } } -func (u *UIReadOnlyUnion2) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIReadOnlyUnion2) UnmarshalJSON(data []byte) error { - var uiReadOnly2 UIReadOnly2 = UIReadOnly2{} - if err := utils.UnmarshalJSON(data, &uiReadOnly2, "", true, true); err == nil { - u.UIReadOnly2 = &uiReadOnly2 - u.Type = UIReadOnlyUnion2TypeUIReadOnly2 + var getConfigurationProductsUIReadOnly2 GetConfigurationProductsUIReadOnly2 = GetConfigurationProductsUIReadOnly2{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnly2, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnly2 = &getConfigurationProductsUIReadOnly2 + u.Type = GetConfigurationProductsUIReadOnlyUnion2TypeGetConfigurationProductsUIReadOnly2 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIReadOnlyUnion2TypeBoolean + u.Type = GetConfigurationProductsUIReadOnlyUnion2TypeBoolean return nil } - var uiReadOnlyEnum2 UIReadOnlyEnum2 = UIReadOnlyEnum2("") - if err := utils.UnmarshalJSON(data, &uiReadOnlyEnum2, "", true, true); err == nil { - u.UIReadOnlyEnum2 = &uiReadOnlyEnum2 - u.Type = UIReadOnlyUnion2TypeUIReadOnlyEnum2 + var getConfigurationProductsUIReadOnlyEnum2 GetConfigurationProductsUIReadOnlyEnum2 = GetConfigurationProductsUIReadOnlyEnum2("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnlyEnum2, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnlyEnum2 = &getConfigurationProductsUIReadOnlyEnum2 + u.Type = GetConfigurationProductsUIReadOnlyUnion2TypeGetConfigurationProductsUIReadOnlyEnum2 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIReadOnlyUnion2", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIReadOnlyUnion2", string(data)) } -func (u UIReadOnlyUnion2) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIReadOnlyUnion2) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIReadOnly2 != nil { - return utils.MarshalJSON(u.UIReadOnly2, "", true) + if u.GetConfigurationProductsUIReadOnly2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnly2, "", true) } - if u.UIReadOnlyEnum2 != nil { - return utils.MarshalJSON(u.UIReadOnlyEnum2, "", true) + if u.GetConfigurationProductsUIReadOnlyEnum2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnlyEnum2, "", true) } - return nil, errors.New("could not marshal union type UIReadOnlyUnion2: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIReadOnlyUnion2: all fields are null") } -type UIHiddenEnum2 string +type GetConfigurationProductsUIHiddenEnum2 string const ( - UIHiddenEnum2Update UIHiddenEnum2 = "update" - UIHiddenEnum2Create UIHiddenEnum2 = "create" + GetConfigurationProductsUIHiddenEnum2Update GetConfigurationProductsUIHiddenEnum2 = "update" + GetConfigurationProductsUIHiddenEnum2Create GetConfigurationProductsUIHiddenEnum2 = "create" ) -func (e UIHiddenEnum2) ToPointer() *UIHiddenEnum2 { +func (e GetConfigurationProductsUIHiddenEnum2) ToPointer() *GetConfigurationProductsUIHiddenEnum2 { return &e } -func (e *UIHiddenEnum2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIHiddenEnum2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -7209,120 +8298,131 @@ func (e *UIHiddenEnum2) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIHiddenEnum2(v) + *e = GetConfigurationProductsUIHiddenEnum2(v) return nil default: - return fmt.Errorf("invalid value for UIHiddenEnum2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIHiddenEnum2: %v", v) } } -type UIHidden2 struct { +type GetConfigurationProductsUIHidden2 struct { Expr string `json:"expr"` } -func (o *UIHidden2) GetExpr() string { +func (g GetConfigurationProductsUIHidden2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIHidden2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIHidden2) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIHiddenUnion2Type string +type GetConfigurationProductsUIHiddenUnion2Type string const ( - UIHiddenUnion2TypeBoolean UIHiddenUnion2Type = "boolean" - UIHiddenUnion2TypeUIHidden2 UIHiddenUnion2Type = "ui:hidden_2" - UIHiddenUnion2TypeUIHiddenEnum2 UIHiddenUnion2Type = "ui:hidden_enum_2" + GetConfigurationProductsUIHiddenUnion2TypeBoolean GetConfigurationProductsUIHiddenUnion2Type = "boolean" + GetConfigurationProductsUIHiddenUnion2TypeGetConfigurationProductsUIHidden2 GetConfigurationProductsUIHiddenUnion2Type = "getConfigurationProducts_ui:hidden_2" + GetConfigurationProductsUIHiddenUnion2TypeGetConfigurationProductsUIHiddenEnum2 GetConfigurationProductsUIHiddenUnion2Type = "getConfigurationProducts_ui:hidden_enum_2" ) -type UIHiddenUnion2 struct { - Boolean *bool `queryParam:"inline"` - UIHidden2 *UIHidden2 `queryParam:"inline"` - UIHiddenEnum2 *UIHiddenEnum2 `queryParam:"inline"` +type GetConfigurationProductsUIHiddenUnion2 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIHidden2 *GetConfigurationProductsUIHidden2 `queryParam:"inline"` + GetConfigurationProductsUIHiddenEnum2 *GetConfigurationProductsUIHiddenEnum2 `queryParam:"inline"` - Type UIHiddenUnion2Type + Type GetConfigurationProductsUIHiddenUnion2Type } -func CreateUIHiddenUnion2Boolean(boolean bool) UIHiddenUnion2 { - typ := UIHiddenUnion2TypeBoolean +func CreateGetConfigurationProductsUIHiddenUnion2Boolean(boolean bool) GetConfigurationProductsUIHiddenUnion2 { + typ := GetConfigurationProductsUIHiddenUnion2TypeBoolean - return UIHiddenUnion2{ + return GetConfigurationProductsUIHiddenUnion2{ Boolean: &boolean, Type: typ, } } -func CreateUIHiddenUnion2UIHidden2(uiHidden2 UIHidden2) UIHiddenUnion2 { - typ := UIHiddenUnion2TypeUIHidden2 +func CreateGetConfigurationProductsUIHiddenUnion2GetConfigurationProductsUIHidden2(getConfigurationProductsUIHidden2 GetConfigurationProductsUIHidden2) GetConfigurationProductsUIHiddenUnion2 { + typ := GetConfigurationProductsUIHiddenUnion2TypeGetConfigurationProductsUIHidden2 - return UIHiddenUnion2{ - UIHidden2: &uiHidden2, - Type: typ, + return GetConfigurationProductsUIHiddenUnion2{ + GetConfigurationProductsUIHidden2: &getConfigurationProductsUIHidden2, + Type: typ, } } -func CreateUIHiddenUnion2UIHiddenEnum2(uiHiddenEnum2 UIHiddenEnum2) UIHiddenUnion2 { - typ := UIHiddenUnion2TypeUIHiddenEnum2 +func CreateGetConfigurationProductsUIHiddenUnion2GetConfigurationProductsUIHiddenEnum2(getConfigurationProductsUIHiddenEnum2 GetConfigurationProductsUIHiddenEnum2) GetConfigurationProductsUIHiddenUnion2 { + typ := GetConfigurationProductsUIHiddenUnion2TypeGetConfigurationProductsUIHiddenEnum2 - return UIHiddenUnion2{ - UIHiddenEnum2: &uiHiddenEnum2, - Type: typ, + return GetConfigurationProductsUIHiddenUnion2{ + GetConfigurationProductsUIHiddenEnum2: &getConfigurationProductsUIHiddenEnum2, + Type: typ, } } -func (u *UIHiddenUnion2) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIHiddenUnion2) UnmarshalJSON(data []byte) error { - var uiHidden2 UIHidden2 = UIHidden2{} - if err := utils.UnmarshalJSON(data, &uiHidden2, "", true, true); err == nil { - u.UIHidden2 = &uiHidden2 - u.Type = UIHiddenUnion2TypeUIHidden2 + var getConfigurationProductsUIHidden2 GetConfigurationProductsUIHidden2 = GetConfigurationProductsUIHidden2{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHidden2, "", true, nil); err == nil { + u.GetConfigurationProductsUIHidden2 = &getConfigurationProductsUIHidden2 + u.Type = GetConfigurationProductsUIHiddenUnion2TypeGetConfigurationProductsUIHidden2 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIHiddenUnion2TypeBoolean + u.Type = GetConfigurationProductsUIHiddenUnion2TypeBoolean return nil } - var uiHiddenEnum2 UIHiddenEnum2 = UIHiddenEnum2("") - if err := utils.UnmarshalJSON(data, &uiHiddenEnum2, "", true, true); err == nil { - u.UIHiddenEnum2 = &uiHiddenEnum2 - u.Type = UIHiddenUnion2TypeUIHiddenEnum2 + var getConfigurationProductsUIHiddenEnum2 GetConfigurationProductsUIHiddenEnum2 = GetConfigurationProductsUIHiddenEnum2("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHiddenEnum2, "", true, nil); err == nil { + u.GetConfigurationProductsUIHiddenEnum2 = &getConfigurationProductsUIHiddenEnum2 + u.Type = GetConfigurationProductsUIHiddenUnion2TypeGetConfigurationProductsUIHiddenEnum2 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIHiddenUnion2", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIHiddenUnion2", string(data)) } -func (u UIHiddenUnion2) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIHiddenUnion2) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIHidden2 != nil { - return utils.MarshalJSON(u.UIHidden2, "", true) + if u.GetConfigurationProductsUIHidden2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHidden2, "", true) } - if u.UIHiddenEnum2 != nil { - return utils.MarshalJSON(u.UIHiddenEnum2, "", true) + if u.GetConfigurationProductsUIHiddenEnum2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHiddenEnum2, "", true) } - return nil, errors.New("could not marshal union type UIHiddenUnion2: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIHiddenUnion2: all fields are null") } -type UIDisabledEnum2 string +type GetConfigurationProductsUIDisabledEnum2 string const ( - UIDisabledEnum2Update UIDisabledEnum2 = "update" - UIDisabledEnum2Create UIDisabledEnum2 = "create" + GetConfigurationProductsUIDisabledEnum2Update GetConfigurationProductsUIDisabledEnum2 = "update" + GetConfigurationProductsUIDisabledEnum2Create GetConfigurationProductsUIDisabledEnum2 = "create" ) -func (e UIDisabledEnum2) ToPointer() *UIDisabledEnum2 { +func (e GetConfigurationProductsUIDisabledEnum2) ToPointer() *GetConfigurationProductsUIDisabledEnum2 { return &e } -func (e *UIDisabledEnum2) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIDisabledEnum2) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -7331,416 +8431,526 @@ func (e *UIDisabledEnum2) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIDisabledEnum2(v) + *e = GetConfigurationProductsUIDisabledEnum2(v) return nil default: - return fmt.Errorf("invalid value for UIDisabledEnum2: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIDisabledEnum2: %v", v) } } -type UIDisabled2 struct { +type GetConfigurationProductsUIDisabled2 struct { Expr string `json:"expr"` } -func (o *UIDisabled2) GetExpr() string { +func (g GetConfigurationProductsUIDisabled2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDisabled2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDisabled2) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDisabledUnion2Type string +type GetConfigurationProductsUIDisabledUnion2Type string const ( - UIDisabledUnion2TypeBoolean UIDisabledUnion2Type = "boolean" - UIDisabledUnion2TypeUIDisabled2 UIDisabledUnion2Type = "ui:disabled_2" - UIDisabledUnion2TypeUIDisabledEnum2 UIDisabledUnion2Type = "ui:disabled_enum_2" + GetConfigurationProductsUIDisabledUnion2TypeBoolean GetConfigurationProductsUIDisabledUnion2Type = "boolean" + GetConfigurationProductsUIDisabledUnion2TypeGetConfigurationProductsUIDisabled2 GetConfigurationProductsUIDisabledUnion2Type = "getConfigurationProducts_ui:disabled_2" + GetConfigurationProductsUIDisabledUnion2TypeGetConfigurationProductsUIDisabledEnum2 GetConfigurationProductsUIDisabledUnion2Type = "getConfigurationProducts_ui:disabled_enum_2" ) -type UIDisabledUnion2 struct { - Boolean *bool `queryParam:"inline"` - UIDisabled2 *UIDisabled2 `queryParam:"inline"` - UIDisabledEnum2 *UIDisabledEnum2 `queryParam:"inline"` +type GetConfigurationProductsUIDisabledUnion2 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIDisabled2 *GetConfigurationProductsUIDisabled2 `queryParam:"inline"` + GetConfigurationProductsUIDisabledEnum2 *GetConfigurationProductsUIDisabledEnum2 `queryParam:"inline"` - Type UIDisabledUnion2Type + Type GetConfigurationProductsUIDisabledUnion2Type } -func CreateUIDisabledUnion2Boolean(boolean bool) UIDisabledUnion2 { - typ := UIDisabledUnion2TypeBoolean +func CreateGetConfigurationProductsUIDisabledUnion2Boolean(boolean bool) GetConfigurationProductsUIDisabledUnion2 { + typ := GetConfigurationProductsUIDisabledUnion2TypeBoolean - return UIDisabledUnion2{ + return GetConfigurationProductsUIDisabledUnion2{ Boolean: &boolean, Type: typ, } } -func CreateUIDisabledUnion2UIDisabled2(uiDisabled2 UIDisabled2) UIDisabledUnion2 { - typ := UIDisabledUnion2TypeUIDisabled2 +func CreateGetConfigurationProductsUIDisabledUnion2GetConfigurationProductsUIDisabled2(getConfigurationProductsUIDisabled2 GetConfigurationProductsUIDisabled2) GetConfigurationProductsUIDisabledUnion2 { + typ := GetConfigurationProductsUIDisabledUnion2TypeGetConfigurationProductsUIDisabled2 - return UIDisabledUnion2{ - UIDisabled2: &uiDisabled2, - Type: typ, + return GetConfigurationProductsUIDisabledUnion2{ + GetConfigurationProductsUIDisabled2: &getConfigurationProductsUIDisabled2, + Type: typ, } } -func CreateUIDisabledUnion2UIDisabledEnum2(uiDisabledEnum2 UIDisabledEnum2) UIDisabledUnion2 { - typ := UIDisabledUnion2TypeUIDisabledEnum2 +func CreateGetConfigurationProductsUIDisabledUnion2GetConfigurationProductsUIDisabledEnum2(getConfigurationProductsUIDisabledEnum2 GetConfigurationProductsUIDisabledEnum2) GetConfigurationProductsUIDisabledUnion2 { + typ := GetConfigurationProductsUIDisabledUnion2TypeGetConfigurationProductsUIDisabledEnum2 - return UIDisabledUnion2{ - UIDisabledEnum2: &uiDisabledEnum2, - Type: typ, + return GetConfigurationProductsUIDisabledUnion2{ + GetConfigurationProductsUIDisabledEnum2: &getConfigurationProductsUIDisabledEnum2, + Type: typ, } } -func (u *UIDisabledUnion2) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDisabledUnion2) UnmarshalJSON(data []byte) error { - var uiDisabled2 UIDisabled2 = UIDisabled2{} - if err := utils.UnmarshalJSON(data, &uiDisabled2, "", true, true); err == nil { - u.UIDisabled2 = &uiDisabled2 - u.Type = UIDisabledUnion2TypeUIDisabled2 + var getConfigurationProductsUIDisabled2 GetConfigurationProductsUIDisabled2 = GetConfigurationProductsUIDisabled2{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabled2, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabled2 = &getConfigurationProductsUIDisabled2 + u.Type = GetConfigurationProductsUIDisabledUnion2TypeGetConfigurationProductsUIDisabled2 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIDisabledUnion2TypeBoolean + u.Type = GetConfigurationProductsUIDisabledUnion2TypeBoolean return nil } - var uiDisabledEnum2 UIDisabledEnum2 = UIDisabledEnum2("") - if err := utils.UnmarshalJSON(data, &uiDisabledEnum2, "", true, true); err == nil { - u.UIDisabledEnum2 = &uiDisabledEnum2 - u.Type = UIDisabledUnion2TypeUIDisabledEnum2 + var getConfigurationProductsUIDisabledEnum2 GetConfigurationProductsUIDisabledEnum2 = GetConfigurationProductsUIDisabledEnum2("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabledEnum2, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabledEnum2 = &getConfigurationProductsUIDisabledEnum2 + u.Type = GetConfigurationProductsUIDisabledUnion2TypeGetConfigurationProductsUIDisabledEnum2 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDisabledUnion2", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDisabledUnion2", string(data)) } -func (u UIDisabledUnion2) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDisabledUnion2) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIDisabled2 != nil { - return utils.MarshalJSON(u.UIDisabled2, "", true) + if u.GetConfigurationProductsUIDisabled2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabled2, "", true) } - if u.UIDisabledEnum2 != nil { - return utils.MarshalJSON(u.UIDisabledEnum2, "", true) + if u.GetConfigurationProductsUIDisabledEnum2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabledEnum2, "", true) } - return nil, errors.New("could not marshal union type UIDisabledUnion2: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDisabledUnion2: all fields are null") } -type UIDescription2 struct { +type GetConfigurationProductsUIDescription2 struct { Expr string `json:"expr"` } -func (o *UIDescription2) GetExpr() string { +func (g GetConfigurationProductsUIDescription2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDescription2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDescription2) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDescriptionUnion2Type string +type GetConfigurationProductsUIDescriptionUnion2Type string const ( - UIDescriptionUnion2TypeStr UIDescriptionUnion2Type = "str" - UIDescriptionUnion2TypeUIDescription2 UIDescriptionUnion2Type = "ui:description_2" + GetConfigurationProductsUIDescriptionUnion2TypeStr GetConfigurationProductsUIDescriptionUnion2Type = "str" + GetConfigurationProductsUIDescriptionUnion2TypeGetConfigurationProductsUIDescription2 GetConfigurationProductsUIDescriptionUnion2Type = "getConfigurationProducts_ui:description_2" ) -type UIDescriptionUnion2 struct { - Str *string `queryParam:"inline"` - UIDescription2 *UIDescription2 `queryParam:"inline"` +type GetConfigurationProductsUIDescriptionUnion2 struct { + Str *string `queryParam:"inline"` + GetConfigurationProductsUIDescription2 *GetConfigurationProductsUIDescription2 `queryParam:"inline"` - Type UIDescriptionUnion2Type + Type GetConfigurationProductsUIDescriptionUnion2Type } -func CreateUIDescriptionUnion2Str(str string) UIDescriptionUnion2 { - typ := UIDescriptionUnion2TypeStr +func CreateGetConfigurationProductsUIDescriptionUnion2Str(str string) GetConfigurationProductsUIDescriptionUnion2 { + typ := GetConfigurationProductsUIDescriptionUnion2TypeStr - return UIDescriptionUnion2{ + return GetConfigurationProductsUIDescriptionUnion2{ Str: &str, Type: typ, } } -func CreateUIDescriptionUnion2UIDescription2(uiDescription2 UIDescription2) UIDescriptionUnion2 { - typ := UIDescriptionUnion2TypeUIDescription2 +func CreateGetConfigurationProductsUIDescriptionUnion2GetConfigurationProductsUIDescription2(getConfigurationProductsUIDescription2 GetConfigurationProductsUIDescription2) GetConfigurationProductsUIDescriptionUnion2 { + typ := GetConfigurationProductsUIDescriptionUnion2TypeGetConfigurationProductsUIDescription2 - return UIDescriptionUnion2{ - UIDescription2: &uiDescription2, - Type: typ, + return GetConfigurationProductsUIDescriptionUnion2{ + GetConfigurationProductsUIDescription2: &getConfigurationProductsUIDescription2, + Type: typ, } } -func (u *UIDescriptionUnion2) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDescriptionUnion2) UnmarshalJSON(data []byte) error { - var uiDescription2 UIDescription2 = UIDescription2{} - if err := utils.UnmarshalJSON(data, &uiDescription2, "", true, true); err == nil { - u.UIDescription2 = &uiDescription2 - u.Type = UIDescriptionUnion2TypeUIDescription2 + var getConfigurationProductsUIDescription2 GetConfigurationProductsUIDescription2 = GetConfigurationProductsUIDescription2{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDescription2, "", true, nil); err == nil { + u.GetConfigurationProductsUIDescription2 = &getConfigurationProductsUIDescription2 + u.Type = GetConfigurationProductsUIDescriptionUnion2TypeGetConfigurationProductsUIDescription2 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str - u.Type = UIDescriptionUnion2TypeStr + u.Type = GetConfigurationProductsUIDescriptionUnion2TypeStr return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDescriptionUnion2", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDescriptionUnion2", string(data)) } -func (u UIDescriptionUnion2) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDescriptionUnion2) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } - if u.UIDescription2 != nil { - return utils.MarshalJSON(u.UIDescription2, "", true) + if u.GetConfigurationProductsUIDescription2 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDescription2, "", true) } - return nil, errors.New("could not marshal union type UIDescriptionUnion2: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDescriptionUnion2: all fields are null") } -type UIFormattedValue2 struct { +type GetConfigurationProductsUIFormattedValue2 struct { Expr string `json:"expr"` } -func (o *UIFormattedValue2) GetExpr() string { +func (g GetConfigurationProductsUIFormattedValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIFormattedValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIFormattedValue2) GetExpr() string { if o == nil { return "" } return o.Expr } -type PropertiesNumber struct { - Type TypeNumber1 `json:"type"` - UIControl UIControlInput2 `json:"ui:control"` - Minimum *float64 `json:"minimum,omitempty"` - Maximum *float64 `json:"maximum,omitempty"` - Description *string `json:"description,omitempty"` - Default *float64 `json:"default,omitempty"` - ExclusiveMinimum *float64 `json:"exclusiveMinimum,omitempty"` - ExclusiveMaximum *float64 `json:"exclusiveMaximum,omitempty"` - UILabel *string `json:"ui:label,omitempty"` - UIReadOnly *UIReadOnlyUnion2 `json:"ui:read-only,omitempty"` - UIHidden *UIHiddenUnion2 `json:"ui:hidden,omitempty"` - UIDisabled *UIDisabledUnion2 `json:"ui:disabled,omitempty"` - UIDescription *UIDescriptionUnion2 `json:"ui:description,omitempty"` - UIFormattedValue *UIFormattedValue2 `json:"ui:formatted-value,omitempty"` - UIPlaceholder *string `json:"ui:placeholder,omitempty"` +type GetConfigurationProductsPropertiesNumber struct { + Type GetConfigurationProductsTypeNumber1 `json:"type"` + UIControl GetConfigurationProductsUIControlInput2 `json:"ui:control"` + Minimum *float64 `json:"minimum,omitempty"` + Maximum *float64 `json:"maximum,omitempty"` + Description *string `json:"description,omitempty"` + Default *float64 `json:"default,omitempty"` + ExclusiveMinimum *float64 `json:"exclusiveMinimum,omitempty"` + ExclusiveMaximum *float64 `json:"exclusiveMaximum,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *GetConfigurationProductsUIReadOnlyUnion2 `json:"ui:read-only,omitempty"` + UIHidden *GetConfigurationProductsUIHiddenUnion2 `json:"ui:hidden,omitempty"` + UIDisabled *GetConfigurationProductsUIDisabledUnion2 `json:"ui:disabled,omitempty"` + UIDescription *GetConfigurationProductsUIDescriptionUnion2 `json:"ui:description,omitempty"` + UIFormattedValue *GetConfigurationProductsUIFormattedValue2 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` +} + +func (g GetConfigurationProductsPropertiesNumber) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsPropertiesNumber) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ui:control"}); err != nil { + return err + } + return nil } -func (o *PropertiesNumber) GetType() TypeNumber1 { +func (o *GetConfigurationProductsPropertiesNumber) GetType() GetConfigurationProductsTypeNumber1 { if o == nil { - return TypeNumber1("") + return GetConfigurationProductsTypeNumber1("") } return o.Type } -func (o *PropertiesNumber) GetUIControl() UIControlInput2 { +func (o *GetConfigurationProductsPropertiesNumber) GetUIControl() GetConfigurationProductsUIControlInput2 { if o == nil { - return UIControlInput2("") + return GetConfigurationProductsUIControlInput2("") } return o.UIControl } -func (o *PropertiesNumber) GetMinimum() *float64 { +func (o *GetConfigurationProductsPropertiesNumber) GetMinimum() *float64 { if o == nil { return nil } return o.Minimum } -func (o *PropertiesNumber) GetMaximum() *float64 { +func (o *GetConfigurationProductsPropertiesNumber) GetMaximum() *float64 { if o == nil { return nil } return o.Maximum } -func (o *PropertiesNumber) GetDescription() *string { +func (o *GetConfigurationProductsPropertiesNumber) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *PropertiesNumber) GetDefault() *float64 { +func (o *GetConfigurationProductsPropertiesNumber) GetDefault() *float64 { if o == nil { return nil } return o.Default } -func (o *PropertiesNumber) GetExclusiveMinimum() *float64 { +func (o *GetConfigurationProductsPropertiesNumber) GetExclusiveMinimum() *float64 { if o == nil { return nil } return o.ExclusiveMinimum } -func (o *PropertiesNumber) GetExclusiveMaximum() *float64 { +func (o *GetConfigurationProductsPropertiesNumber) GetExclusiveMaximum() *float64 { if o == nil { return nil } return o.ExclusiveMaximum } -func (o *PropertiesNumber) GetUILabel() *string { +func (o *GetConfigurationProductsPropertiesNumber) GetUILabel() *string { if o == nil { return nil } return o.UILabel } -func (o *PropertiesNumber) GetUIReadOnly() *UIReadOnlyUnion2 { +func (o *GetConfigurationProductsPropertiesNumber) GetUIReadOnly() *GetConfigurationProductsUIReadOnlyUnion2 { if o == nil { return nil } return o.UIReadOnly } -func (o *PropertiesNumber) GetUIHidden() *UIHiddenUnion2 { +func (o *GetConfigurationProductsPropertiesNumber) GetUIHidden() *GetConfigurationProductsUIHiddenUnion2 { if o == nil { return nil } return o.UIHidden } -func (o *PropertiesNumber) GetUIDisabled() *UIDisabledUnion2 { +func (o *GetConfigurationProductsPropertiesNumber) GetUIDisabled() *GetConfigurationProductsUIDisabledUnion2 { if o == nil { return nil } return o.UIDisabled } -func (o *PropertiesNumber) GetUIDescription() *UIDescriptionUnion2 { +func (o *GetConfigurationProductsPropertiesNumber) GetUIDescription() *GetConfigurationProductsUIDescriptionUnion2 { if o == nil { return nil } return o.UIDescription } -func (o *PropertiesNumber) GetUIFormattedValue() *UIFormattedValue2 { +func (o *GetConfigurationProductsPropertiesNumber) GetUIFormattedValue() *GetConfigurationProductsUIFormattedValue2 { if o == nil { return nil } return o.UIFormattedValue } -func (o *PropertiesNumber) GetUIPlaceholder() *string { +func (o *GetConfigurationProductsPropertiesNumber) GetUIPlaceholder() *string { if o == nil { return nil } return o.UIPlaceholder } -type TypeString1 string +type GetConfigurationProductsTypeString1 string const ( - TypeString1String TypeString1 = "string" + GetConfigurationProductsTypeString1String GetConfigurationProductsTypeString1 = "string" ) -func (e TypeString1) ToPointer() *TypeString1 { +func (e GetConfigurationProductsTypeString1) ToPointer() *GetConfigurationProductsTypeString1 { return &e } -func (e *TypeString1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsTypeString1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "string": - *e = TypeString1(v) + *e = GetConfigurationProductsTypeString1(v) return nil default: - return fmt.Errorf("invalid value for TypeString1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsTypeString1: %v", v) } } -type UIControlInput1 string +type GetConfigurationProductsUIControlInput1 string const ( - UIControlInput1Input UIControlInput1 = "input" + GetConfigurationProductsUIControlInput1Input GetConfigurationProductsUIControlInput1 = "input" ) -func (e UIControlInput1) ToPointer() *UIControlInput1 { +func (e GetConfigurationProductsUIControlInput1) ToPointer() *GetConfigurationProductsUIControlInput1 { return &e } -func (e *UIControlInput1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIControlInput1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { case "input": - *e = UIControlInput1(v) + *e = GetConfigurationProductsUIControlInput1(v) return nil default: - return fmt.Errorf("invalid value for UIControlInput1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIControlInput1: %v", v) + } +} + +type MinLengthAtBRANDAt5025401 struct { +} + +func (m MinLengthAtBRANDAt5025401) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MinLengthAtBRANDAt5025401) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err } + return nil +} + +type GetConfigurationProductsMinLength1 struct { + AtBRANDAt502540 MinLengthAtBRANDAt5025401 `json:"__@BRAND@502540"` } -type MinLengthAtBRANDAt4479431 struct { +func (g GetConfigurationProductsMinLength1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type MinLength1 struct { - AtBRANDAt447943 MinLengthAtBRANDAt4479431 `json:"__@BRAND@447943"` +func (g *GetConfigurationProductsMinLength1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *MinLength1) GetAtBRANDAt447943() MinLengthAtBRANDAt4479431 { +func (o *GetConfigurationProductsMinLength1) GetAtBRANDAt502540() MinLengthAtBRANDAt5025401 { if o == nil { - return MinLengthAtBRANDAt4479431{} + return MinLengthAtBRANDAt5025401{} + } + return o.AtBRANDAt502540 +} + +type MaxLengthAtBRANDAt5025401 struct { +} + +func (m MaxLengthAtBRANDAt5025401) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *MaxLengthAtBRANDAt5025401) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { + return err } - return o.AtBRANDAt447943 + return nil +} + +type GetConfigurationProductsMaxLength1 struct { + AtBRANDAt502540 MaxLengthAtBRANDAt5025401 `json:"__@BRAND@502540"` } -type MaxLengthAtBRANDAt4479431 struct { +func (g GetConfigurationProductsMaxLength1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type MaxLength1 struct { - AtBRANDAt447943 MaxLengthAtBRANDAt4479431 `json:"__@BRAND@447943"` +func (g *GetConfigurationProductsMaxLength1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *MaxLength1) GetAtBRANDAt447943() MaxLengthAtBRANDAt4479431 { +func (o *GetConfigurationProductsMaxLength1) GetAtBRANDAt502540() MaxLengthAtBRANDAt5025401 { if o == nil { - return MaxLengthAtBRANDAt4479431{} + return MaxLengthAtBRANDAt5025401{} + } + return o.AtBRANDAt502540 +} + +type PatternAtBRANDAt5025401 struct { +} + +func (p PatternAtBRANDAt5025401) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatternAtBRANDAt5025401) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err } - return o.AtBRANDAt447943 + return nil +} + +type GetConfigurationProductsPattern1 struct { + AtBRANDAt502540 PatternAtBRANDAt5025401 `json:"__@BRAND@502540"` } -type PatternAtBRANDAt4479431 struct { +func (g GetConfigurationProductsPattern1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) } -type Pattern1 struct { - AtBRANDAt447943 PatternAtBRANDAt4479431 `json:"__@BRAND@447943"` +func (g *GetConfigurationProductsPattern1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"__@BRAND@502540"}); err != nil { + return err + } + return nil } -func (o *Pattern1) GetAtBRANDAt447943() PatternAtBRANDAt4479431 { +func (o *GetConfigurationProductsPattern1) GetAtBRANDAt502540() PatternAtBRANDAt5025401 { if o == nil { - return PatternAtBRANDAt4479431{} + return PatternAtBRANDAt5025401{} } - return o.AtBRANDAt447943 + return o.AtBRANDAt502540 } -type UIReadOnlyEnum1 string +type GetConfigurationProductsUIReadOnlyEnum1 string const ( - UIReadOnlyEnum1Update UIReadOnlyEnum1 = "update" - UIReadOnlyEnum1Create UIReadOnlyEnum1 = "create" + GetConfigurationProductsUIReadOnlyEnum1Update GetConfigurationProductsUIReadOnlyEnum1 = "update" + GetConfigurationProductsUIReadOnlyEnum1Create GetConfigurationProductsUIReadOnlyEnum1 = "create" ) -func (e UIReadOnlyEnum1) ToPointer() *UIReadOnlyEnum1 { +func (e GetConfigurationProductsUIReadOnlyEnum1) ToPointer() *GetConfigurationProductsUIReadOnlyEnum1 { return &e } -func (e *UIReadOnlyEnum1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIReadOnlyEnum1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -7749,120 +8959,131 @@ func (e *UIReadOnlyEnum1) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIReadOnlyEnum1(v) + *e = GetConfigurationProductsUIReadOnlyEnum1(v) return nil default: - return fmt.Errorf("invalid value for UIReadOnlyEnum1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIReadOnlyEnum1: %v", v) } } -type UIReadOnly1 struct { +type GetConfigurationProductsUIReadOnly1 struct { Expr string `json:"expr"` } -func (o *UIReadOnly1) GetExpr() string { +func (g GetConfigurationProductsUIReadOnly1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIReadOnly1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIReadOnly1) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIReadOnlyUnion1Type string +type GetConfigurationProductsUIReadOnlyUnion1Type string const ( - UIReadOnlyUnion1TypeBoolean UIReadOnlyUnion1Type = "boolean" - UIReadOnlyUnion1TypeUIReadOnly1 UIReadOnlyUnion1Type = "ui:read-only_1" - UIReadOnlyUnion1TypeUIReadOnlyEnum1 UIReadOnlyUnion1Type = "ui:read-only_enum_1" + GetConfigurationProductsUIReadOnlyUnion1TypeBoolean GetConfigurationProductsUIReadOnlyUnion1Type = "boolean" + GetConfigurationProductsUIReadOnlyUnion1TypeGetConfigurationProductsUIReadOnly1 GetConfigurationProductsUIReadOnlyUnion1Type = "getConfigurationProducts_ui:read-only_1" + GetConfigurationProductsUIReadOnlyUnion1TypeGetConfigurationProductsUIReadOnlyEnum1 GetConfigurationProductsUIReadOnlyUnion1Type = "getConfigurationProducts_ui:read-only_enum_1" ) -type UIReadOnlyUnion1 struct { - Boolean *bool `queryParam:"inline"` - UIReadOnly1 *UIReadOnly1 `queryParam:"inline"` - UIReadOnlyEnum1 *UIReadOnlyEnum1 `queryParam:"inline"` +type GetConfigurationProductsUIReadOnlyUnion1 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIReadOnly1 *GetConfigurationProductsUIReadOnly1 `queryParam:"inline"` + GetConfigurationProductsUIReadOnlyEnum1 *GetConfigurationProductsUIReadOnlyEnum1 `queryParam:"inline"` - Type UIReadOnlyUnion1Type + Type GetConfigurationProductsUIReadOnlyUnion1Type } -func CreateUIReadOnlyUnion1Boolean(boolean bool) UIReadOnlyUnion1 { - typ := UIReadOnlyUnion1TypeBoolean +func CreateGetConfigurationProductsUIReadOnlyUnion1Boolean(boolean bool) GetConfigurationProductsUIReadOnlyUnion1 { + typ := GetConfigurationProductsUIReadOnlyUnion1TypeBoolean - return UIReadOnlyUnion1{ + return GetConfigurationProductsUIReadOnlyUnion1{ Boolean: &boolean, Type: typ, } } -func CreateUIReadOnlyUnion1UIReadOnly1(uiReadOnly1 UIReadOnly1) UIReadOnlyUnion1 { - typ := UIReadOnlyUnion1TypeUIReadOnly1 +func CreateGetConfigurationProductsUIReadOnlyUnion1GetConfigurationProductsUIReadOnly1(getConfigurationProductsUIReadOnly1 GetConfigurationProductsUIReadOnly1) GetConfigurationProductsUIReadOnlyUnion1 { + typ := GetConfigurationProductsUIReadOnlyUnion1TypeGetConfigurationProductsUIReadOnly1 - return UIReadOnlyUnion1{ - UIReadOnly1: &uiReadOnly1, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion1{ + GetConfigurationProductsUIReadOnly1: &getConfigurationProductsUIReadOnly1, + Type: typ, } } -func CreateUIReadOnlyUnion1UIReadOnlyEnum1(uiReadOnlyEnum1 UIReadOnlyEnum1) UIReadOnlyUnion1 { - typ := UIReadOnlyUnion1TypeUIReadOnlyEnum1 +func CreateGetConfigurationProductsUIReadOnlyUnion1GetConfigurationProductsUIReadOnlyEnum1(getConfigurationProductsUIReadOnlyEnum1 GetConfigurationProductsUIReadOnlyEnum1) GetConfigurationProductsUIReadOnlyUnion1 { + typ := GetConfigurationProductsUIReadOnlyUnion1TypeGetConfigurationProductsUIReadOnlyEnum1 - return UIReadOnlyUnion1{ - UIReadOnlyEnum1: &uiReadOnlyEnum1, - Type: typ, + return GetConfigurationProductsUIReadOnlyUnion1{ + GetConfigurationProductsUIReadOnlyEnum1: &getConfigurationProductsUIReadOnlyEnum1, + Type: typ, } } -func (u *UIReadOnlyUnion1) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIReadOnlyUnion1) UnmarshalJSON(data []byte) error { - var uiReadOnly1 UIReadOnly1 = UIReadOnly1{} - if err := utils.UnmarshalJSON(data, &uiReadOnly1, "", true, true); err == nil { - u.UIReadOnly1 = &uiReadOnly1 - u.Type = UIReadOnlyUnion1TypeUIReadOnly1 + var getConfigurationProductsUIReadOnly1 GetConfigurationProductsUIReadOnly1 = GetConfigurationProductsUIReadOnly1{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnly1, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnly1 = &getConfigurationProductsUIReadOnly1 + u.Type = GetConfigurationProductsUIReadOnlyUnion1TypeGetConfigurationProductsUIReadOnly1 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIReadOnlyUnion1TypeBoolean + u.Type = GetConfigurationProductsUIReadOnlyUnion1TypeBoolean return nil } - var uiReadOnlyEnum1 UIReadOnlyEnum1 = UIReadOnlyEnum1("") - if err := utils.UnmarshalJSON(data, &uiReadOnlyEnum1, "", true, true); err == nil { - u.UIReadOnlyEnum1 = &uiReadOnlyEnum1 - u.Type = UIReadOnlyUnion1TypeUIReadOnlyEnum1 + var getConfigurationProductsUIReadOnlyEnum1 GetConfigurationProductsUIReadOnlyEnum1 = GetConfigurationProductsUIReadOnlyEnum1("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIReadOnlyEnum1, "", true, nil); err == nil { + u.GetConfigurationProductsUIReadOnlyEnum1 = &getConfigurationProductsUIReadOnlyEnum1 + u.Type = GetConfigurationProductsUIReadOnlyUnion1TypeGetConfigurationProductsUIReadOnlyEnum1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIReadOnlyUnion1", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIReadOnlyUnion1", string(data)) } -func (u UIReadOnlyUnion1) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIReadOnlyUnion1) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIReadOnly1 != nil { - return utils.MarshalJSON(u.UIReadOnly1, "", true) + if u.GetConfigurationProductsUIReadOnly1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnly1, "", true) } - if u.UIReadOnlyEnum1 != nil { - return utils.MarshalJSON(u.UIReadOnlyEnum1, "", true) + if u.GetConfigurationProductsUIReadOnlyEnum1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIReadOnlyEnum1, "", true) } - return nil, errors.New("could not marshal union type UIReadOnlyUnion1: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIReadOnlyUnion1: all fields are null") } -type UIHiddenEnum1 string +type GetConfigurationProductsUIHiddenEnum1 string const ( - UIHiddenEnum1Update UIHiddenEnum1 = "update" - UIHiddenEnum1Create UIHiddenEnum1 = "create" + GetConfigurationProductsUIHiddenEnum1Update GetConfigurationProductsUIHiddenEnum1 = "update" + GetConfigurationProductsUIHiddenEnum1Create GetConfigurationProductsUIHiddenEnum1 = "create" ) -func (e UIHiddenEnum1) ToPointer() *UIHiddenEnum1 { +func (e GetConfigurationProductsUIHiddenEnum1) ToPointer() *GetConfigurationProductsUIHiddenEnum1 { return &e } -func (e *UIHiddenEnum1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIHiddenEnum1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -7871,120 +9092,131 @@ func (e *UIHiddenEnum1) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIHiddenEnum1(v) + *e = GetConfigurationProductsUIHiddenEnum1(v) return nil default: - return fmt.Errorf("invalid value for UIHiddenEnum1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIHiddenEnum1: %v", v) } } -type UIHidden1 struct { +type GetConfigurationProductsUIHidden1 struct { Expr string `json:"expr"` } -func (o *UIHidden1) GetExpr() string { +func (g GetConfigurationProductsUIHidden1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIHidden1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIHidden1) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIHiddenUnion1Type string +type GetConfigurationProductsUIHiddenUnion1Type string const ( - UIHiddenUnion1TypeBoolean UIHiddenUnion1Type = "boolean" - UIHiddenUnion1TypeUIHidden1 UIHiddenUnion1Type = "ui:hidden_1" - UIHiddenUnion1TypeUIHiddenEnum1 UIHiddenUnion1Type = "ui:hidden_enum_1" + GetConfigurationProductsUIHiddenUnion1TypeBoolean GetConfigurationProductsUIHiddenUnion1Type = "boolean" + GetConfigurationProductsUIHiddenUnion1TypeGetConfigurationProductsUIHidden1 GetConfigurationProductsUIHiddenUnion1Type = "getConfigurationProducts_ui:hidden_1" + GetConfigurationProductsUIHiddenUnion1TypeGetConfigurationProductsUIHiddenEnum1 GetConfigurationProductsUIHiddenUnion1Type = "getConfigurationProducts_ui:hidden_enum_1" ) -type UIHiddenUnion1 struct { - Boolean *bool `queryParam:"inline"` - UIHidden1 *UIHidden1 `queryParam:"inline"` - UIHiddenEnum1 *UIHiddenEnum1 `queryParam:"inline"` +type GetConfigurationProductsUIHiddenUnion1 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIHidden1 *GetConfigurationProductsUIHidden1 `queryParam:"inline"` + GetConfigurationProductsUIHiddenEnum1 *GetConfigurationProductsUIHiddenEnum1 `queryParam:"inline"` - Type UIHiddenUnion1Type + Type GetConfigurationProductsUIHiddenUnion1Type } -func CreateUIHiddenUnion1Boolean(boolean bool) UIHiddenUnion1 { - typ := UIHiddenUnion1TypeBoolean +func CreateGetConfigurationProductsUIHiddenUnion1Boolean(boolean bool) GetConfigurationProductsUIHiddenUnion1 { + typ := GetConfigurationProductsUIHiddenUnion1TypeBoolean - return UIHiddenUnion1{ + return GetConfigurationProductsUIHiddenUnion1{ Boolean: &boolean, Type: typ, } } -func CreateUIHiddenUnion1UIHidden1(uiHidden1 UIHidden1) UIHiddenUnion1 { - typ := UIHiddenUnion1TypeUIHidden1 +func CreateGetConfigurationProductsUIHiddenUnion1GetConfigurationProductsUIHidden1(getConfigurationProductsUIHidden1 GetConfigurationProductsUIHidden1) GetConfigurationProductsUIHiddenUnion1 { + typ := GetConfigurationProductsUIHiddenUnion1TypeGetConfigurationProductsUIHidden1 - return UIHiddenUnion1{ - UIHidden1: &uiHidden1, - Type: typ, + return GetConfigurationProductsUIHiddenUnion1{ + GetConfigurationProductsUIHidden1: &getConfigurationProductsUIHidden1, + Type: typ, } } -func CreateUIHiddenUnion1UIHiddenEnum1(uiHiddenEnum1 UIHiddenEnum1) UIHiddenUnion1 { - typ := UIHiddenUnion1TypeUIHiddenEnum1 +func CreateGetConfigurationProductsUIHiddenUnion1GetConfigurationProductsUIHiddenEnum1(getConfigurationProductsUIHiddenEnum1 GetConfigurationProductsUIHiddenEnum1) GetConfigurationProductsUIHiddenUnion1 { + typ := GetConfigurationProductsUIHiddenUnion1TypeGetConfigurationProductsUIHiddenEnum1 - return UIHiddenUnion1{ - UIHiddenEnum1: &uiHiddenEnum1, - Type: typ, + return GetConfigurationProductsUIHiddenUnion1{ + GetConfigurationProductsUIHiddenEnum1: &getConfigurationProductsUIHiddenEnum1, + Type: typ, } } -func (u *UIHiddenUnion1) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIHiddenUnion1) UnmarshalJSON(data []byte) error { - var uiHidden1 UIHidden1 = UIHidden1{} - if err := utils.UnmarshalJSON(data, &uiHidden1, "", true, true); err == nil { - u.UIHidden1 = &uiHidden1 - u.Type = UIHiddenUnion1TypeUIHidden1 + var getConfigurationProductsUIHidden1 GetConfigurationProductsUIHidden1 = GetConfigurationProductsUIHidden1{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHidden1, "", true, nil); err == nil { + u.GetConfigurationProductsUIHidden1 = &getConfigurationProductsUIHidden1 + u.Type = GetConfigurationProductsUIHiddenUnion1TypeGetConfigurationProductsUIHidden1 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIHiddenUnion1TypeBoolean + u.Type = GetConfigurationProductsUIHiddenUnion1TypeBoolean return nil } - var uiHiddenEnum1 UIHiddenEnum1 = UIHiddenEnum1("") - if err := utils.UnmarshalJSON(data, &uiHiddenEnum1, "", true, true); err == nil { - u.UIHiddenEnum1 = &uiHiddenEnum1 - u.Type = UIHiddenUnion1TypeUIHiddenEnum1 + var getConfigurationProductsUIHiddenEnum1 GetConfigurationProductsUIHiddenEnum1 = GetConfigurationProductsUIHiddenEnum1("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIHiddenEnum1, "", true, nil); err == nil { + u.GetConfigurationProductsUIHiddenEnum1 = &getConfigurationProductsUIHiddenEnum1 + u.Type = GetConfigurationProductsUIHiddenUnion1TypeGetConfigurationProductsUIHiddenEnum1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIHiddenUnion1", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIHiddenUnion1", string(data)) } -func (u UIHiddenUnion1) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIHiddenUnion1) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIHidden1 != nil { - return utils.MarshalJSON(u.UIHidden1, "", true) + if u.GetConfigurationProductsUIHidden1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHidden1, "", true) } - if u.UIHiddenEnum1 != nil { - return utils.MarshalJSON(u.UIHiddenEnum1, "", true) + if u.GetConfigurationProductsUIHiddenEnum1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIHiddenEnum1, "", true) } - return nil, errors.New("could not marshal union type UIHiddenUnion1: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIHiddenUnion1: all fields are null") } -type UIDisabledEnum1 string +type GetConfigurationProductsUIDisabledEnum1 string const ( - UIDisabledEnum1Update UIDisabledEnum1 = "update" - UIDisabledEnum1Create UIDisabledEnum1 = "create" + GetConfigurationProductsUIDisabledEnum1Update GetConfigurationProductsUIDisabledEnum1 = "update" + GetConfigurationProductsUIDisabledEnum1Create GetConfigurationProductsUIDisabledEnum1 = "create" ) -func (e UIDisabledEnum1) ToPointer() *UIDisabledEnum1 { +func (e GetConfigurationProductsUIDisabledEnum1) ToPointer() *GetConfigurationProductsUIDisabledEnum1 { return &e } -func (e *UIDisabledEnum1) UnmarshalJSON(data []byte) error { +func (e *GetConfigurationProductsUIDisabledEnum1) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -7993,608 +9225,652 @@ func (e *UIDisabledEnum1) UnmarshalJSON(data []byte) error { case "update": fallthrough case "create": - *e = UIDisabledEnum1(v) + *e = GetConfigurationProductsUIDisabledEnum1(v) return nil default: - return fmt.Errorf("invalid value for UIDisabledEnum1: %v", v) + return fmt.Errorf("invalid value for GetConfigurationProductsUIDisabledEnum1: %v", v) } } -type UIDisabled1 struct { +type GetConfigurationProductsUIDisabled1 struct { Expr string `json:"expr"` } -func (o *UIDisabled1) GetExpr() string { +func (g GetConfigurationProductsUIDisabled1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDisabled1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDisabled1) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDisabledUnion1Type string +type GetConfigurationProductsUIDisabledUnion1Type string const ( - UIDisabledUnion1TypeBoolean UIDisabledUnion1Type = "boolean" - UIDisabledUnion1TypeUIDisabled1 UIDisabledUnion1Type = "ui:disabled_1" - UIDisabledUnion1TypeUIDisabledEnum1 UIDisabledUnion1Type = "ui:disabled_enum_1" + GetConfigurationProductsUIDisabledUnion1TypeBoolean GetConfigurationProductsUIDisabledUnion1Type = "boolean" + GetConfigurationProductsUIDisabledUnion1TypeGetConfigurationProductsUIDisabled1 GetConfigurationProductsUIDisabledUnion1Type = "getConfigurationProducts_ui:disabled_1" + GetConfigurationProductsUIDisabledUnion1TypeGetConfigurationProductsUIDisabledEnum1 GetConfigurationProductsUIDisabledUnion1Type = "getConfigurationProducts_ui:disabled_enum_1" ) -type UIDisabledUnion1 struct { - Boolean *bool `queryParam:"inline"` - UIDisabled1 *UIDisabled1 `queryParam:"inline"` - UIDisabledEnum1 *UIDisabledEnum1 `queryParam:"inline"` +type GetConfigurationProductsUIDisabledUnion1 struct { + Boolean *bool `queryParam:"inline"` + GetConfigurationProductsUIDisabled1 *GetConfigurationProductsUIDisabled1 `queryParam:"inline"` + GetConfigurationProductsUIDisabledEnum1 *GetConfigurationProductsUIDisabledEnum1 `queryParam:"inline"` - Type UIDisabledUnion1Type + Type GetConfigurationProductsUIDisabledUnion1Type } -func CreateUIDisabledUnion1Boolean(boolean bool) UIDisabledUnion1 { - typ := UIDisabledUnion1TypeBoolean +func CreateGetConfigurationProductsUIDisabledUnion1Boolean(boolean bool) GetConfigurationProductsUIDisabledUnion1 { + typ := GetConfigurationProductsUIDisabledUnion1TypeBoolean - return UIDisabledUnion1{ + return GetConfigurationProductsUIDisabledUnion1{ Boolean: &boolean, Type: typ, } } -func CreateUIDisabledUnion1UIDisabled1(uiDisabled1 UIDisabled1) UIDisabledUnion1 { - typ := UIDisabledUnion1TypeUIDisabled1 +func CreateGetConfigurationProductsUIDisabledUnion1GetConfigurationProductsUIDisabled1(getConfigurationProductsUIDisabled1 GetConfigurationProductsUIDisabled1) GetConfigurationProductsUIDisabledUnion1 { + typ := GetConfigurationProductsUIDisabledUnion1TypeGetConfigurationProductsUIDisabled1 - return UIDisabledUnion1{ - UIDisabled1: &uiDisabled1, - Type: typ, + return GetConfigurationProductsUIDisabledUnion1{ + GetConfigurationProductsUIDisabled1: &getConfigurationProductsUIDisabled1, + Type: typ, } } -func CreateUIDisabledUnion1UIDisabledEnum1(uiDisabledEnum1 UIDisabledEnum1) UIDisabledUnion1 { - typ := UIDisabledUnion1TypeUIDisabledEnum1 +func CreateGetConfigurationProductsUIDisabledUnion1GetConfigurationProductsUIDisabledEnum1(getConfigurationProductsUIDisabledEnum1 GetConfigurationProductsUIDisabledEnum1) GetConfigurationProductsUIDisabledUnion1 { + typ := GetConfigurationProductsUIDisabledUnion1TypeGetConfigurationProductsUIDisabledEnum1 - return UIDisabledUnion1{ - UIDisabledEnum1: &uiDisabledEnum1, - Type: typ, + return GetConfigurationProductsUIDisabledUnion1{ + GetConfigurationProductsUIDisabledEnum1: &getConfigurationProductsUIDisabledEnum1, + Type: typ, } } -func (u *UIDisabledUnion1) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDisabledUnion1) UnmarshalJSON(data []byte) error { - var uiDisabled1 UIDisabled1 = UIDisabled1{} - if err := utils.UnmarshalJSON(data, &uiDisabled1, "", true, true); err == nil { - u.UIDisabled1 = &uiDisabled1 - u.Type = UIDisabledUnion1TypeUIDisabled1 + var getConfigurationProductsUIDisabled1 GetConfigurationProductsUIDisabled1 = GetConfigurationProductsUIDisabled1{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabled1, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabled1 = &getConfigurationProductsUIDisabled1 + u.Type = GetConfigurationProductsUIDisabledUnion1TypeGetConfigurationProductsUIDisabled1 return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean - u.Type = UIDisabledUnion1TypeBoolean + u.Type = GetConfigurationProductsUIDisabledUnion1TypeBoolean return nil } - var uiDisabledEnum1 UIDisabledEnum1 = UIDisabledEnum1("") - if err := utils.UnmarshalJSON(data, &uiDisabledEnum1, "", true, true); err == nil { - u.UIDisabledEnum1 = &uiDisabledEnum1 - u.Type = UIDisabledUnion1TypeUIDisabledEnum1 + var getConfigurationProductsUIDisabledEnum1 GetConfigurationProductsUIDisabledEnum1 = GetConfigurationProductsUIDisabledEnum1("") + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDisabledEnum1, "", true, nil); err == nil { + u.GetConfigurationProductsUIDisabledEnum1 = &getConfigurationProductsUIDisabledEnum1 + u.Type = GetConfigurationProductsUIDisabledUnion1TypeGetConfigurationProductsUIDisabledEnum1 return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDisabledUnion1", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDisabledUnion1", string(data)) } -func (u UIDisabledUnion1) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDisabledUnion1) MarshalJSON() ([]byte, error) { if u.Boolean != nil { return utils.MarshalJSON(u.Boolean, "", true) } - if u.UIDisabled1 != nil { - return utils.MarshalJSON(u.UIDisabled1, "", true) + if u.GetConfigurationProductsUIDisabled1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabled1, "", true) } - if u.UIDisabledEnum1 != nil { - return utils.MarshalJSON(u.UIDisabledEnum1, "", true) + if u.GetConfigurationProductsUIDisabledEnum1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDisabledEnum1, "", true) } - return nil, errors.New("could not marshal union type UIDisabledUnion1: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDisabledUnion1: all fields are null") } -type UIDescription1 struct { +type GetConfigurationProductsUIDescription1 struct { Expr string `json:"expr"` } -func (o *UIDescription1) GetExpr() string { +func (g GetConfigurationProductsUIDescription1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIDescription1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIDescription1) GetExpr() string { if o == nil { return "" } return o.Expr } -type UIDescriptionUnion1Type string +type GetConfigurationProductsUIDescriptionUnion1Type string const ( - UIDescriptionUnion1TypeStr UIDescriptionUnion1Type = "str" - UIDescriptionUnion1TypeUIDescription1 UIDescriptionUnion1Type = "ui:description_1" + GetConfigurationProductsUIDescriptionUnion1TypeStr GetConfigurationProductsUIDescriptionUnion1Type = "str" + GetConfigurationProductsUIDescriptionUnion1TypeGetConfigurationProductsUIDescription1 GetConfigurationProductsUIDescriptionUnion1Type = "getConfigurationProducts_ui:description_1" ) -type UIDescriptionUnion1 struct { - Str *string `queryParam:"inline"` - UIDescription1 *UIDescription1 `queryParam:"inline"` +type GetConfigurationProductsUIDescriptionUnion1 struct { + Str *string `queryParam:"inline"` + GetConfigurationProductsUIDescription1 *GetConfigurationProductsUIDescription1 `queryParam:"inline"` - Type UIDescriptionUnion1Type + Type GetConfigurationProductsUIDescriptionUnion1Type } -func CreateUIDescriptionUnion1Str(str string) UIDescriptionUnion1 { - typ := UIDescriptionUnion1TypeStr +func CreateGetConfigurationProductsUIDescriptionUnion1Str(str string) GetConfigurationProductsUIDescriptionUnion1 { + typ := GetConfigurationProductsUIDescriptionUnion1TypeStr - return UIDescriptionUnion1{ + return GetConfigurationProductsUIDescriptionUnion1{ Str: &str, Type: typ, } } -func CreateUIDescriptionUnion1UIDescription1(uiDescription1 UIDescription1) UIDescriptionUnion1 { - typ := UIDescriptionUnion1TypeUIDescription1 +func CreateGetConfigurationProductsUIDescriptionUnion1GetConfigurationProductsUIDescription1(getConfigurationProductsUIDescription1 GetConfigurationProductsUIDescription1) GetConfigurationProductsUIDescriptionUnion1 { + typ := GetConfigurationProductsUIDescriptionUnion1TypeGetConfigurationProductsUIDescription1 - return UIDescriptionUnion1{ - UIDescription1: &uiDescription1, - Type: typ, + return GetConfigurationProductsUIDescriptionUnion1{ + GetConfigurationProductsUIDescription1: &getConfigurationProductsUIDescription1, + Type: typ, } } -func (u *UIDescriptionUnion1) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsUIDescriptionUnion1) UnmarshalJSON(data []byte) error { - var uiDescription1 UIDescription1 = UIDescription1{} - if err := utils.UnmarshalJSON(data, &uiDescription1, "", true, true); err == nil { - u.UIDescription1 = &uiDescription1 - u.Type = UIDescriptionUnion1TypeUIDescription1 + var getConfigurationProductsUIDescription1 GetConfigurationProductsUIDescription1 = GetConfigurationProductsUIDescription1{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsUIDescription1, "", true, nil); err == nil { + u.GetConfigurationProductsUIDescription1 = &getConfigurationProductsUIDescription1 + u.Type = GetConfigurationProductsUIDescriptionUnion1TypeGetConfigurationProductsUIDescription1 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str - u.Type = UIDescriptionUnion1TypeStr + u.Type = GetConfigurationProductsUIDescriptionUnion1TypeStr return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UIDescriptionUnion1", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsUIDescriptionUnion1", string(data)) } -func (u UIDescriptionUnion1) MarshalJSON() ([]byte, error) { +func (u GetConfigurationProductsUIDescriptionUnion1) MarshalJSON() ([]byte, error) { if u.Str != nil { return utils.MarshalJSON(u.Str, "", true) } - if u.UIDescription1 != nil { - return utils.MarshalJSON(u.UIDescription1, "", true) + if u.GetConfigurationProductsUIDescription1 != nil { + return utils.MarshalJSON(u.GetConfigurationProductsUIDescription1, "", true) } - return nil, errors.New("could not marshal union type UIDescriptionUnion1: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsUIDescriptionUnion1: all fields are null") } -type UIFormattedValue1 struct { +type GetConfigurationProductsUIFormattedValue1 struct { Expr string `json:"expr"` } -func (o *UIFormattedValue1) GetExpr() string { +func (g GetConfigurationProductsUIFormattedValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsUIFormattedValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"expr"}); err != nil { + return err + } + return nil +} + +func (o *GetConfigurationProductsUIFormattedValue1) GetExpr() string { if o == nil { return "" } return o.Expr } -type PropertiesStringInput struct { - Type TypeString1 `json:"type"` - UIControl UIControlInput1 `json:"ui:control"` - Description *string `json:"description,omitempty"` - MinLength *MinLength1 `json:"minLength,omitempty"` - MaxLength *MaxLength1 `json:"maxLength,omitempty"` - Pattern *Pattern1 `json:"pattern,omitempty"` - Default *string `json:"default,omitempty"` - Enum []string `json:"enum,omitempty"` - UILabel *string `json:"ui:label,omitempty"` - UIReadOnly *UIReadOnlyUnion1 `json:"ui:read-only,omitempty"` - UIHidden *UIHiddenUnion1 `json:"ui:hidden,omitempty"` - UIDisabled *UIDisabledUnion1 `json:"ui:disabled,omitempty"` - UIDescription *UIDescriptionUnion1 `json:"ui:description,omitempty"` - UIFormattedValue *UIFormattedValue1 `json:"ui:formatted-value,omitempty"` - UIPlaceholder *string `json:"ui:placeholder,omitempty"` +type GetConfigurationProductsPropertiesStringInput struct { + Type GetConfigurationProductsTypeString1 `json:"type"` + UIControl GetConfigurationProductsUIControlInput1 `json:"ui:control"` + Description *string `json:"description,omitempty"` + MinLength *GetConfigurationProductsMinLength1 `json:"minLength,omitempty"` + MaxLength *GetConfigurationProductsMaxLength1 `json:"maxLength,omitempty"` + Pattern *GetConfigurationProductsPattern1 `json:"pattern,omitempty"` + Default *string `json:"default,omitempty"` + Enum []string `json:"enum,omitempty"` + UILabel *string `json:"ui:label,omitempty"` + UIReadOnly *GetConfigurationProductsUIReadOnlyUnion1 `json:"ui:read-only,omitempty"` + UIHidden *GetConfigurationProductsUIHiddenUnion1 `json:"ui:hidden,omitempty"` + UIDisabled *GetConfigurationProductsUIDisabledUnion1 `json:"ui:disabled,omitempty"` + UIDescription *GetConfigurationProductsUIDescriptionUnion1 `json:"ui:description,omitempty"` + UIFormattedValue *GetConfigurationProductsUIFormattedValue1 `json:"ui:formatted-value,omitempty"` + UIPlaceholder *string `json:"ui:placeholder,omitempty"` +} + +func (g GetConfigurationProductsPropertiesStringInput) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationProductsPropertiesStringInput) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ui:control"}); err != nil { + return err + } + return nil } -func (o *PropertiesStringInput) GetType() TypeString1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetType() GetConfigurationProductsTypeString1 { if o == nil { - return TypeString1("") + return GetConfigurationProductsTypeString1("") } return o.Type } -func (o *PropertiesStringInput) GetUIControl() UIControlInput1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetUIControl() GetConfigurationProductsUIControlInput1 { if o == nil { - return UIControlInput1("") + return GetConfigurationProductsUIControlInput1("") } return o.UIControl } -func (o *PropertiesStringInput) GetDescription() *string { +func (o *GetConfigurationProductsPropertiesStringInput) GetDescription() *string { if o == nil { return nil } return o.Description } -func (o *PropertiesStringInput) GetMinLength() *MinLength1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetMinLength() *GetConfigurationProductsMinLength1 { if o == nil { return nil } return o.MinLength } -func (o *PropertiesStringInput) GetMaxLength() *MaxLength1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetMaxLength() *GetConfigurationProductsMaxLength1 { if o == nil { return nil } return o.MaxLength } -func (o *PropertiesStringInput) GetPattern() *Pattern1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetPattern() *GetConfigurationProductsPattern1 { if o == nil { return nil } return o.Pattern } -func (o *PropertiesStringInput) GetDefault() *string { +func (o *GetConfigurationProductsPropertiesStringInput) GetDefault() *string { if o == nil { return nil } return o.Default } -func (o *PropertiesStringInput) GetEnum() []string { +func (o *GetConfigurationProductsPropertiesStringInput) GetEnum() []string { if o == nil { return nil } return o.Enum } -func (o *PropertiesStringInput) GetUILabel() *string { +func (o *GetConfigurationProductsPropertiesStringInput) GetUILabel() *string { if o == nil { return nil } return o.UILabel } -func (o *PropertiesStringInput) GetUIReadOnly() *UIReadOnlyUnion1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetUIReadOnly() *GetConfigurationProductsUIReadOnlyUnion1 { if o == nil { return nil } return o.UIReadOnly } -func (o *PropertiesStringInput) GetUIHidden() *UIHiddenUnion1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetUIHidden() *GetConfigurationProductsUIHiddenUnion1 { if o == nil { return nil } return o.UIHidden } -func (o *PropertiesStringInput) GetUIDisabled() *UIDisabledUnion1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetUIDisabled() *GetConfigurationProductsUIDisabledUnion1 { if o == nil { return nil } return o.UIDisabled } -func (o *PropertiesStringInput) GetUIDescription() *UIDescriptionUnion1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetUIDescription() *GetConfigurationProductsUIDescriptionUnion1 { if o == nil { return nil } return o.UIDescription } -func (o *PropertiesStringInput) GetUIFormattedValue() *UIFormattedValue1 { +func (o *GetConfigurationProductsPropertiesStringInput) GetUIFormattedValue() *GetConfigurationProductsUIFormattedValue1 { if o == nil { return nil } return o.UIFormattedValue } -func (o *PropertiesStringInput) GetUIPlaceholder() *string { +func (o *GetConfigurationProductsPropertiesStringInput) GetUIPlaceholder() *string { if o == nil { return nil } return o.UIPlaceholder } -type PropertiesUnionType string +type GetConfigurationProductsPropertiesUnionType string const ( - PropertiesUnionTypePropertiesStringInput PropertiesUnionType = "properties_String_Input" - PropertiesUnionTypePropertiesNumber PropertiesUnionType = "properties_Number" - PropertiesUnionTypePropertiesToggle PropertiesUnionType = "properties_Toggle" - PropertiesUnionTypePropertiesSlider PropertiesUnionType = "properties_Slider" - PropertiesUnionTypePropertiesSelect PropertiesUnionType = "properties_Select" - PropertiesUnionTypePropertiesMultiSelect PropertiesUnionType = "properties_MultiSelect" - PropertiesUnionTypePropertiesVercelRegion PropertiesUnionType = "properties_VercelRegion" - PropertiesUnionTypePropertiesMultiVercelRegion PropertiesUnionType = "properties_MultiVercelRegion" - PropertiesUnionTypeProperties PropertiesUnionType = "properties" + GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesStringInput GetConfigurationProductsPropertiesUnionType = "getConfigurationProducts_properties_String_Input" + GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesNumber GetConfigurationProductsPropertiesUnionType = "getConfigurationProducts_properties_Number" + GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesToggle GetConfigurationProductsPropertiesUnionType = "getConfigurationProducts_properties_Toggle" + GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesSlider GetConfigurationProductsPropertiesUnionType = "getConfigurationProducts_properties_Slider" + GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesSelect GetConfigurationProductsPropertiesUnionType = "getConfigurationProducts_properties_Select" + GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesMultiSelect GetConfigurationProductsPropertiesUnionType = "getConfigurationProducts_properties_MultiSelect" + GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesVercelRegion GetConfigurationProductsPropertiesUnionType = "getConfigurationProducts_properties_VercelRegion" + GetConfigurationProductsPropertiesUnionTypePropertiesMultiVercelRegion GetConfigurationProductsPropertiesUnionType = "properties_MultiVercelRegion" + GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsProperties GetConfigurationProductsPropertiesUnionType = "getConfigurationProducts_properties" ) -type PropertiesUnion struct { - PropertiesStringInput *PropertiesStringInput `queryParam:"inline"` - PropertiesNumber *PropertiesNumber `queryParam:"inline"` - PropertiesToggle *PropertiesToggle `queryParam:"inline"` - PropertiesSlider *PropertiesSlider `queryParam:"inline"` - PropertiesSelect *PropertiesSelect `queryParam:"inline"` - PropertiesMultiSelect *PropertiesMultiSelect `queryParam:"inline"` - PropertiesVercelRegion *PropertiesVercelRegion `queryParam:"inline"` - PropertiesMultiVercelRegion *PropertiesMultiVercelRegion `queryParam:"inline"` - Properties *Properties `queryParam:"inline"` +type GetConfigurationProductsPropertiesUnion struct { + GetConfigurationProductsPropertiesStringInput *GetConfigurationProductsPropertiesStringInput `queryParam:"inline"` + GetConfigurationProductsPropertiesNumber *GetConfigurationProductsPropertiesNumber `queryParam:"inline"` + GetConfigurationProductsPropertiesToggle *GetConfigurationProductsPropertiesToggle `queryParam:"inline"` + GetConfigurationProductsPropertiesSlider *GetConfigurationProductsPropertiesSlider `queryParam:"inline"` + GetConfigurationProductsPropertiesSelect *GetConfigurationProductsPropertiesSelect `queryParam:"inline"` + GetConfigurationProductsPropertiesMultiSelect *GetConfigurationProductsPropertiesMultiSelect `queryParam:"inline"` + GetConfigurationProductsPropertiesVercelRegion *GetConfigurationProductsPropertiesVercelRegion `queryParam:"inline"` + PropertiesMultiVercelRegion *PropertiesMultiVercelRegion `queryParam:"inline"` + GetConfigurationProductsProperties *GetConfigurationProductsProperties `queryParam:"inline"` - Type PropertiesUnionType + Type GetConfigurationProductsPropertiesUnionType } -func CreatePropertiesUnionPropertiesStringInput(propertiesStringInput PropertiesStringInput) PropertiesUnion { - typ := PropertiesUnionTypePropertiesStringInput +func CreateGetConfigurationProductsPropertiesUnionGetConfigurationProductsPropertiesStringInput(getConfigurationProductsPropertiesStringInput GetConfigurationProductsPropertiesStringInput) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesStringInput - return PropertiesUnion{ - PropertiesStringInput: &propertiesStringInput, - Type: typ, + return GetConfigurationProductsPropertiesUnion{ + GetConfigurationProductsPropertiesStringInput: &getConfigurationProductsPropertiesStringInput, + Type: typ, } } -func CreatePropertiesUnionPropertiesNumber(propertiesNumber PropertiesNumber) PropertiesUnion { - typ := PropertiesUnionTypePropertiesNumber +func CreateGetConfigurationProductsPropertiesUnionGetConfigurationProductsPropertiesNumber(getConfigurationProductsPropertiesNumber GetConfigurationProductsPropertiesNumber) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesNumber - return PropertiesUnion{ - PropertiesNumber: &propertiesNumber, - Type: typ, + return GetConfigurationProductsPropertiesUnion{ + GetConfigurationProductsPropertiesNumber: &getConfigurationProductsPropertiesNumber, + Type: typ, } } -func CreatePropertiesUnionPropertiesToggle(propertiesToggle PropertiesToggle) PropertiesUnion { - typ := PropertiesUnionTypePropertiesToggle +func CreateGetConfigurationProductsPropertiesUnionGetConfigurationProductsPropertiesToggle(getConfigurationProductsPropertiesToggle GetConfigurationProductsPropertiesToggle) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesToggle - return PropertiesUnion{ - PropertiesToggle: &propertiesToggle, - Type: typ, + return GetConfigurationProductsPropertiesUnion{ + GetConfigurationProductsPropertiesToggle: &getConfigurationProductsPropertiesToggle, + Type: typ, } } -func CreatePropertiesUnionPropertiesSlider(propertiesSlider PropertiesSlider) PropertiesUnion { - typ := PropertiesUnionTypePropertiesSlider +func CreateGetConfigurationProductsPropertiesUnionGetConfigurationProductsPropertiesSlider(getConfigurationProductsPropertiesSlider GetConfigurationProductsPropertiesSlider) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesSlider - return PropertiesUnion{ - PropertiesSlider: &propertiesSlider, - Type: typ, + return GetConfigurationProductsPropertiesUnion{ + GetConfigurationProductsPropertiesSlider: &getConfigurationProductsPropertiesSlider, + Type: typ, } } -func CreatePropertiesUnionPropertiesSelect(propertiesSelect PropertiesSelect) PropertiesUnion { - typ := PropertiesUnionTypePropertiesSelect +func CreateGetConfigurationProductsPropertiesUnionGetConfigurationProductsPropertiesSelect(getConfigurationProductsPropertiesSelect GetConfigurationProductsPropertiesSelect) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesSelect - return PropertiesUnion{ - PropertiesSelect: &propertiesSelect, - Type: typ, + return GetConfigurationProductsPropertiesUnion{ + GetConfigurationProductsPropertiesSelect: &getConfigurationProductsPropertiesSelect, + Type: typ, } } -func CreatePropertiesUnionPropertiesMultiSelect(propertiesMultiSelect PropertiesMultiSelect) PropertiesUnion { - typ := PropertiesUnionTypePropertiesMultiSelect +func CreateGetConfigurationProductsPropertiesUnionGetConfigurationProductsPropertiesMultiSelect(getConfigurationProductsPropertiesMultiSelect GetConfigurationProductsPropertiesMultiSelect) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesMultiSelect - return PropertiesUnion{ - PropertiesMultiSelect: &propertiesMultiSelect, - Type: typ, + return GetConfigurationProductsPropertiesUnion{ + GetConfigurationProductsPropertiesMultiSelect: &getConfigurationProductsPropertiesMultiSelect, + Type: typ, } } -func CreatePropertiesUnionPropertiesVercelRegion(propertiesVercelRegion PropertiesVercelRegion) PropertiesUnion { - typ := PropertiesUnionTypePropertiesVercelRegion +func CreateGetConfigurationProductsPropertiesUnionGetConfigurationProductsPropertiesVercelRegion(getConfigurationProductsPropertiesVercelRegion GetConfigurationProductsPropertiesVercelRegion) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesVercelRegion - return PropertiesUnion{ - PropertiesVercelRegion: &propertiesVercelRegion, - Type: typ, + return GetConfigurationProductsPropertiesUnion{ + GetConfigurationProductsPropertiesVercelRegion: &getConfigurationProductsPropertiesVercelRegion, + Type: typ, } } -func CreatePropertiesUnionPropertiesMultiVercelRegion(propertiesMultiVercelRegion PropertiesMultiVercelRegion) PropertiesUnion { - typ := PropertiesUnionTypePropertiesMultiVercelRegion +func CreateGetConfigurationProductsPropertiesUnionPropertiesMultiVercelRegion(propertiesMultiVercelRegion PropertiesMultiVercelRegion) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypePropertiesMultiVercelRegion - return PropertiesUnion{ + return GetConfigurationProductsPropertiesUnion{ PropertiesMultiVercelRegion: &propertiesMultiVercelRegion, Type: typ, } } -func CreatePropertiesUnionProperties(properties Properties) PropertiesUnion { - typ := PropertiesUnionTypeProperties +func CreateGetConfigurationProductsPropertiesUnionGetConfigurationProductsProperties(getConfigurationProductsProperties GetConfigurationProductsProperties) GetConfigurationProductsPropertiesUnion { + typ := GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsProperties - return PropertiesUnion{ - Properties: &properties, - Type: typ, + return GetConfigurationProductsPropertiesUnion{ + GetConfigurationProductsProperties: &getConfigurationProductsProperties, + Type: typ, } } -func (u *PropertiesUnion) UnmarshalJSON(data []byte) error { +func (u *GetConfigurationProductsPropertiesUnion) UnmarshalJSON(data []byte) error { - var properties Properties = Properties{} - if err := utils.UnmarshalJSON(data, &properties, "", true, true); err == nil { - u.Properties = &properties - u.Type = PropertiesUnionTypeProperties + var getConfigurationProductsPropertiesSlider GetConfigurationProductsPropertiesSlider = GetConfigurationProductsPropertiesSlider{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsPropertiesSlider, "", true, nil); err == nil { + u.GetConfigurationProductsPropertiesSlider = &getConfigurationProductsPropertiesSlider + u.Type = GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesSlider return nil } - var propertiesToggle PropertiesToggle = PropertiesToggle{} - if err := utils.UnmarshalJSON(data, &propertiesToggle, "", true, true); err == nil { - u.PropertiesToggle = &propertiesToggle - u.Type = PropertiesUnionTypePropertiesToggle + var getConfigurationProductsPropertiesMultiSelect GetConfigurationProductsPropertiesMultiSelect = GetConfigurationProductsPropertiesMultiSelect{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsPropertiesMultiSelect, "", true, nil); err == nil { + u.GetConfigurationProductsPropertiesMultiSelect = &getConfigurationProductsPropertiesMultiSelect + u.Type = GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesMultiSelect return nil } - var propertiesSlider PropertiesSlider = PropertiesSlider{} - if err := utils.UnmarshalJSON(data, &propertiesSlider, "", true, true); err == nil { - u.PropertiesSlider = &propertiesSlider - u.Type = PropertiesUnionTypePropertiesSlider + var propertiesMultiVercelRegion PropertiesMultiVercelRegion = PropertiesMultiVercelRegion{} + if err := utils.UnmarshalJSON(data, &propertiesMultiVercelRegion, "", true, nil); err == nil { + u.PropertiesMultiVercelRegion = &propertiesMultiVercelRegion + u.Type = GetConfigurationProductsPropertiesUnionTypePropertiesMultiVercelRegion return nil } - var propertiesStringInput PropertiesStringInput = PropertiesStringInput{} - if err := utils.UnmarshalJSON(data, &propertiesStringInput, "", true, true); err == nil { - u.PropertiesStringInput = &propertiesStringInput - u.Type = PropertiesUnionTypePropertiesStringInput + var getConfigurationProductsPropertiesSelect GetConfigurationProductsPropertiesSelect = GetConfigurationProductsPropertiesSelect{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsPropertiesSelect, "", true, nil); err == nil { + u.GetConfigurationProductsPropertiesSelect = &getConfigurationProductsPropertiesSelect + u.Type = GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesSelect return nil } - var propertiesNumber PropertiesNumber = PropertiesNumber{} - if err := utils.UnmarshalJSON(data, &propertiesNumber, "", true, true); err == nil { - u.PropertiesNumber = &propertiesNumber - u.Type = PropertiesUnionTypePropertiesNumber + var getConfigurationProductsPropertiesVercelRegion GetConfigurationProductsPropertiesVercelRegion = GetConfigurationProductsPropertiesVercelRegion{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsPropertiesVercelRegion, "", true, nil); err == nil { + u.GetConfigurationProductsPropertiesVercelRegion = &getConfigurationProductsPropertiesVercelRegion + u.Type = GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesVercelRegion return nil } - var propertiesSelect PropertiesSelect = PropertiesSelect{} - if err := utils.UnmarshalJSON(data, &propertiesSelect, "", true, true); err == nil { - u.PropertiesSelect = &propertiesSelect - u.Type = PropertiesUnionTypePropertiesSelect + var getConfigurationProductsPropertiesStringInput GetConfigurationProductsPropertiesStringInput = GetConfigurationProductsPropertiesStringInput{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsPropertiesStringInput, "", true, nil); err == nil { + u.GetConfigurationProductsPropertiesStringInput = &getConfigurationProductsPropertiesStringInput + u.Type = GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesStringInput return nil } - var propertiesMultiSelect PropertiesMultiSelect = PropertiesMultiSelect{} - if err := utils.UnmarshalJSON(data, &propertiesMultiSelect, "", true, true); err == nil { - u.PropertiesMultiSelect = &propertiesMultiSelect - u.Type = PropertiesUnionTypePropertiesMultiSelect + var getConfigurationProductsPropertiesNumber GetConfigurationProductsPropertiesNumber = GetConfigurationProductsPropertiesNumber{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsPropertiesNumber, "", true, nil); err == nil { + u.GetConfigurationProductsPropertiesNumber = &getConfigurationProductsPropertiesNumber + u.Type = GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesNumber return nil } - var propertiesVercelRegion PropertiesVercelRegion = PropertiesVercelRegion{} - if err := utils.UnmarshalJSON(data, &propertiesVercelRegion, "", true, true); err == nil { - u.PropertiesVercelRegion = &propertiesVercelRegion - u.Type = PropertiesUnionTypePropertiesVercelRegion + var getConfigurationProductsPropertiesToggle GetConfigurationProductsPropertiesToggle = GetConfigurationProductsPropertiesToggle{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsPropertiesToggle, "", true, nil); err == nil { + u.GetConfigurationProductsPropertiesToggle = &getConfigurationProductsPropertiesToggle + u.Type = GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsPropertiesToggle return nil } - var propertiesMultiVercelRegion PropertiesMultiVercelRegion = PropertiesMultiVercelRegion{} - if err := utils.UnmarshalJSON(data, &propertiesMultiVercelRegion, "", true, true); err == nil { - u.PropertiesMultiVercelRegion = &propertiesMultiVercelRegion - u.Type = PropertiesUnionTypePropertiesMultiVercelRegion + var getConfigurationProductsProperties GetConfigurationProductsProperties = GetConfigurationProductsProperties{} + if err := utils.UnmarshalJSON(data, &getConfigurationProductsProperties, "", true, nil); err == nil { + u.GetConfigurationProductsProperties = &getConfigurationProductsProperties + u.Type = GetConfigurationProductsPropertiesUnionTypeGetConfigurationProductsProperties return nil } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for PropertiesUnion", string(data)) + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetConfigurationProductsPropertiesUnion", string(data)) } -func (u PropertiesUnion) MarshalJSON() ([]byte, error) { - if u.PropertiesStringInput != nil { - return utils.MarshalJSON(u.PropertiesStringInput, "", true) +func (u GetConfigurationProductsPropertiesUnion) MarshalJSON() ([]byte, error) { + if u.GetConfigurationProductsPropertiesStringInput != nil { + return utils.MarshalJSON(u.GetConfigurationProductsPropertiesStringInput, "", true) } - if u.PropertiesNumber != nil { - return utils.MarshalJSON(u.PropertiesNumber, "", true) + if u.GetConfigurationProductsPropertiesNumber != nil { + return utils.MarshalJSON(u.GetConfigurationProductsPropertiesNumber, "", true) } - if u.PropertiesToggle != nil { - return utils.MarshalJSON(u.PropertiesToggle, "", true) + if u.GetConfigurationProductsPropertiesToggle != nil { + return utils.MarshalJSON(u.GetConfigurationProductsPropertiesToggle, "", true) } - if u.PropertiesSlider != nil { - return utils.MarshalJSON(u.PropertiesSlider, "", true) + if u.GetConfigurationProductsPropertiesSlider != nil { + return utils.MarshalJSON(u.GetConfigurationProductsPropertiesSlider, "", true) } - if u.PropertiesSelect != nil { - return utils.MarshalJSON(u.PropertiesSelect, "", true) + if u.GetConfigurationProductsPropertiesSelect != nil { + return utils.MarshalJSON(u.GetConfigurationProductsPropertiesSelect, "", true) } - if u.PropertiesMultiSelect != nil { - return utils.MarshalJSON(u.PropertiesMultiSelect, "", true) + if u.GetConfigurationProductsPropertiesMultiSelect != nil { + return utils.MarshalJSON(u.GetConfigurationProductsPropertiesMultiSelect, "", true) } - if u.PropertiesVercelRegion != nil { - return utils.MarshalJSON(u.PropertiesVercelRegion, "", true) + if u.GetConfigurationProductsPropertiesVercelRegion != nil { + return utils.MarshalJSON(u.GetConfigurationProductsPropertiesVercelRegion, "", true) } if u.PropertiesMultiVercelRegion != nil { return utils.MarshalJSON(u.PropertiesMultiVercelRegion, "", true) } - if u.Properties != nil { - return utils.MarshalJSON(u.Properties, "", true) + if u.GetConfigurationProductsProperties != nil { + return utils.MarshalJSON(u.GetConfigurationProductsProperties, "", true) } - return nil, errors.New("could not marshal union type PropertiesUnion: all fields are null") + return nil, errors.New("could not marshal union type GetConfigurationProductsPropertiesUnion: all fields are null") } -type MetadataSchema struct { - Type GetConfigurationProductsType `json:"type"` - Properties map[string]PropertiesUnion `json:"properties"` - Required []string `json:"required,omitempty"` +type GetConfigurationProductsMetadataSchema struct { + Type GetConfigurationProductsType `json:"type"` + Properties map[string]GetConfigurationProductsPropertiesUnion `json:"properties"` + Required []string `json:"required,omitempty"` } -func (o *MetadataSchema) GetType() GetConfigurationProductsType { +func (o *GetConfigurationProductsMetadataSchema) GetType() GetConfigurationProductsType { if o == nil { return GetConfigurationProductsType("") } return o.Type } -func (o *MetadataSchema) GetProperties() map[string]PropertiesUnion { +func (o *GetConfigurationProductsMetadataSchema) GetProperties() map[string]GetConfigurationProductsPropertiesUnion { if o == nil { - return map[string]PropertiesUnion{} + return map[string]GetConfigurationProductsPropertiesUnion{} } return o.Properties } -func (o *MetadataSchema) GetRequired() []string { +func (o *GetConfigurationProductsMetadataSchema) GetRequired() []string { if o == nil { return nil } return o.Required } -type Product struct { - ID string `json:"id"` - Slug string `json:"slug"` - Name string `json:"name"` - Protocols Protocols `json:"protocols"` - PrimaryProtocol *PrimaryProtocol `json:"primaryProtocol,omitempty"` - MetadataSchema MetadataSchema `json:"metadataSchema"` +type GetConfigurationProductsProduct struct { + ID string `json:"id"` + Slug string `json:"slug"` + Name string `json:"name"` + Protocols Protocols `json:"protocols"` + PrimaryProtocol *PrimaryProtocol `json:"primaryProtocol,omitempty"` + MetadataSchema GetConfigurationProductsMetadataSchema `json:"metadataSchema"` } -func (o *Product) GetID() string { +func (o *GetConfigurationProductsProduct) GetID() string { if o == nil { return "" } return o.ID } -func (o *Product) GetSlug() string { +func (o *GetConfigurationProductsProduct) GetSlug() string { if o == nil { return "" } return o.Slug } -func (o *Product) GetName() string { +func (o *GetConfigurationProductsProduct) GetName() string { if o == nil { return "" } return o.Name } -func (o *Product) GetProtocols() Protocols { +func (o *GetConfigurationProductsProduct) GetProtocols() Protocols { if o == nil { return Protocols{} } return o.Protocols } -func (o *Product) GetPrimaryProtocol() *PrimaryProtocol { +func (o *GetConfigurationProductsProduct) GetPrimaryProtocol() *PrimaryProtocol { if o == nil { return nil } return o.PrimaryProtocol } -func (o *Product) GetMetadataSchema() MetadataSchema { +func (o *GetConfigurationProductsProduct) GetMetadataSchema() GetConfigurationProductsMetadataSchema { if o == nil { - return MetadataSchema{} + return GetConfigurationProductsMetadataSchema{} } return o.MetadataSchema } @@ -8639,14 +9915,14 @@ func (o *Configuration) GetID() string { // GetConfigurationProductsResponseBody - List of products available for this integration configuration type GetConfigurationProductsResponseBody struct { - Products []Product `json:"products"` + Products []GetConfigurationProductsProduct `json:"products"` Integration GetConfigurationProductsIntegration `json:"integration"` Configuration Configuration `json:"configuration"` } -func (o *GetConfigurationProductsResponseBody) GetProducts() []Product { +func (o *GetConfigurationProductsResponseBody) GetProducts() []GetConfigurationProductsProduct { if o == nil { - return []Product{} + return []GetConfigurationProductsProduct{} } return o.Products } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getconfigurations.go b/src/__tests__/mockserver/internal/sdk/models/operations/getconfigurations.go index 3be28f38..7ecc1802 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getconfigurations.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getconfigurations.go @@ -200,6 +200,17 @@ type GetConfigurationsIntegration struct { TagIds []TagID `json:"tagIds,omitempty"` } +func (g GetConfigurationsIntegration) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationsIntegration) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"name", "icon", "isLegacy"}); err != nil { + return err + } + return nil +} + func (o *GetConfigurationsIntegration) GetName() string { if o == nil { return "" @@ -246,10 +257,11 @@ func (o *GetConfigurationsIntegration) GetTagIds() []TagID { type GetConfigurationsSource2 string const ( - GetConfigurationsSource2Marketplace GetConfigurationsSource2 = "marketplace" - GetConfigurationsSource2DeployButton GetConfigurationsSource2 = "deploy-button" - GetConfigurationsSource2External GetConfigurationsSource2 = "external" - GetConfigurationsSource2V0 GetConfigurationsSource2 = "v0" + GetConfigurationsSource2Marketplace GetConfigurationsSource2 = "marketplace" + GetConfigurationsSource2DeployButton GetConfigurationsSource2 = "deploy-button" + GetConfigurationsSource2External GetConfigurationsSource2 = "external" + GetConfigurationsSource2V0 GetConfigurationsSource2 = "v0" + GetConfigurationsSource2ResourceClaims GetConfigurationsSource2 = "resource-claims" ) func (e GetConfigurationsSource2) ToPointer() *GetConfigurationsSource2 { @@ -268,6 +280,8 @@ func (e *GetConfigurationsSource2) UnmarshalJSON(data []byte) error { case "external": fallthrough case "v0": + fallthrough + case "resource-claims": *e = GetConfigurationsSource2(v) return nil default: @@ -401,6 +415,17 @@ type GetConfigurationsIntegrationConfiguration2 struct { InstallationType *GetConfigurationsInstallationTypeResponse2 `json:"installationType,omitempty"` } +func (g GetConfigurationsIntegrationConfiguration2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationsIntegrationConfiguration2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"integration", "createdAt", "id", "integrationId", "ownerId", "slug", "type", "updatedAt", "userId", "scopes"}); err != nil { + return err + } + return nil +} + func (o *GetConfigurationsIntegrationConfiguration2) GetIntegration() GetConfigurationsIntegration { if o == nil { return GetConfigurationsIntegration{} @@ -538,10 +563,11 @@ func (o *GetConfigurationsIntegrationConfiguration2) GetInstallationType() *GetC type GetConfigurationsSource1 string const ( - GetConfigurationsSource1Marketplace GetConfigurationsSource1 = "marketplace" - GetConfigurationsSource1DeployButton GetConfigurationsSource1 = "deploy-button" - GetConfigurationsSource1External GetConfigurationsSource1 = "external" - GetConfigurationsSource1V0 GetConfigurationsSource1 = "v0" + GetConfigurationsSource1Marketplace GetConfigurationsSource1 = "marketplace" + GetConfigurationsSource1DeployButton GetConfigurationsSource1 = "deploy-button" + GetConfigurationsSource1External GetConfigurationsSource1 = "external" + GetConfigurationsSource1V0 GetConfigurationsSource1 = "v0" + GetConfigurationsSource1ResourceClaims GetConfigurationsSource1 = "resource-claims" ) func (e GetConfigurationsSource1) ToPointer() *GetConfigurationsSource1 { @@ -560,6 +586,8 @@ func (e *GetConfigurationsSource1) UnmarshalJSON(data []byte) error { case "external": fallthrough case "v0": + fallthrough + case "resource-claims": *e = GetConfigurationsSource1(v) return nil default: @@ -693,6 +721,17 @@ type GetConfigurationsIntegrationConfiguration1 struct { InstallationType *GetConfigurationsInstallationTypeResponse1 `json:"installationType,omitempty"` } +func (g GetConfigurationsIntegrationConfiguration1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetConfigurationsIntegrationConfiguration1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetConfigurationsIntegrationConfiguration1) GetCompletedAt() *float64 { if o == nil { return nil @@ -855,14 +894,14 @@ func CreateGetConfigurationsResponseBodyArrayOfGetConfigurationsIntegrationConfi func (u *GetConfigurationsResponseBody) UnmarshalJSON(data []byte) error { var arrayOfGetConfigurationsIntegrationConfiguration1 []GetConfigurationsIntegrationConfiguration1 = []GetConfigurationsIntegrationConfiguration1{} - if err := utils.UnmarshalJSON(data, &arrayOfGetConfigurationsIntegrationConfiguration1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetConfigurationsIntegrationConfiguration1, "", true, nil); err == nil { u.ArrayOfGetConfigurationsIntegrationConfiguration1 = arrayOfGetConfigurationsIntegrationConfiguration1 u.Type = GetConfigurationsResponseBodyTypeArrayOfGetConfigurationsIntegrationConfiguration1 return nil } var arrayOfGetConfigurationsIntegrationConfiguration2 []GetConfigurationsIntegrationConfiguration2 = []GetConfigurationsIntegrationConfiguration2{} - if err := utils.UnmarshalJSON(data, &arrayOfGetConfigurationsIntegrationConfiguration2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetConfigurationsIntegrationConfiguration2, "", true, nil); err == nil { u.ArrayOfGetConfigurationsIntegrationConfiguration2 = arrayOfGetConfigurationsIntegrationConfiguration2 u.Type = GetConfigurationsResponseBodyTypeArrayOfGetConfigurationsIntegrationConfiguration2 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 b6f624c5..3cfbde7d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go @@ -55,6 +55,17 @@ type GetDeploymentCreator2 struct { Avatar *string `json:"avatar,omitempty"` } +func (g GetDeploymentCreator2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentCreator2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"uid"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentCreator2) GetUID() string { if o == nil { return "" @@ -113,6 +124,17 @@ type GetDeploymentOutput2 struct { FunctionName string `json:"functionName"` } +func (g GetDeploymentOutput2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentOutput2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"path", "functionName"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentOutput2) GetPath() string { if o == nil { return "" @@ -137,6 +159,17 @@ type GetDeploymentLambda2 struct { Output []GetDeploymentOutput2 `json:"output"` } +func (g GetDeploymentLambda2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentLambda2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "output"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentLambda2) GetID() string { if o == nil { return "" @@ -224,6 +257,17 @@ type GetDeploymentTeam2 struct { Avatar *string `json:"avatar,omitempty"` } +func (g GetDeploymentTeam2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentTeam2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name", "slug"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentTeam2) GetID() string { if o == nil { return "" @@ -256,6 +300,17 @@ type GetDeploymentCustomEnvironment4 struct { ID string `json:"id"` } +func (g GetDeploymentCustomEnvironment4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentCustomEnvironment4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentCustomEnvironment4) GetID() string { if o == nil { return "" @@ -331,6 +386,17 @@ type GetDeploymentBranchMatcher2 struct { Pattern string `json:"pattern"` } +func (g GetDeploymentBranchMatcher2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentBranchMatcher2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "pattern"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentBranchMatcher2) GetType() GetDeploymentBranchMatcherType2 { if o == nil { return GetDeploymentBranchMatcherType2("") @@ -353,6 +419,17 @@ type GetDeploymentVerification2 struct { Reason string `json:"reason"` } +func (g GetDeploymentVerification2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentVerification2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "domain", "value", "reason"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentVerification2) GetType() string { if o == nil { return "" @@ -398,6 +475,17 @@ type GetDeploymentDomain2 struct { Verification []GetDeploymentVerification2 `json:"verification,omitempty"` } +func (g GetDeploymentDomain2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentDomain2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"name", "apexName", "projectId", "verified"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentDomain2) GetName() string { if o == nil { return "" @@ -497,6 +585,17 @@ type GetDeploymentCustomEnvironment3 struct { UpdatedAt float64 `json:"updatedAt"` } +func (g GetDeploymentCustomEnvironment3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentCustomEnvironment3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "slug", "type", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentCustomEnvironment3) GetID() string { if o == nil { return "" @@ -594,20 +693,20 @@ func CreateGetDeploymentCustomEnvironmentUnion2GetDeploymentCustomEnvironment4(g func (u *GetDeploymentCustomEnvironmentUnion2) UnmarshalJSON(data []byte) error { - var getDeploymentCustomEnvironment4 GetDeploymentCustomEnvironment4 = GetDeploymentCustomEnvironment4{} - if err := utils.UnmarshalJSON(data, &getDeploymentCustomEnvironment4, "", true, true); err == nil { - u.GetDeploymentCustomEnvironment4 = &getDeploymentCustomEnvironment4 - u.Type = GetDeploymentCustomEnvironmentUnion2TypeGetDeploymentCustomEnvironment4 - return nil - } - var getDeploymentCustomEnvironment3 GetDeploymentCustomEnvironment3 = GetDeploymentCustomEnvironment3{} - if err := utils.UnmarshalJSON(data, &getDeploymentCustomEnvironment3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentCustomEnvironment3, "", true, nil); err == nil { u.GetDeploymentCustomEnvironment3 = &getDeploymentCustomEnvironment3 u.Type = GetDeploymentCustomEnvironmentUnion2TypeGetDeploymentCustomEnvironment3 return nil } + var getDeploymentCustomEnvironment4 GetDeploymentCustomEnvironment4 = GetDeploymentCustomEnvironment4{} + if err := utils.UnmarshalJSON(data, &getDeploymentCustomEnvironment4, "", true, nil); err == nil { + u.GetDeploymentCustomEnvironment4 = &getDeploymentCustomEnvironment4 + u.Type = GetDeploymentCustomEnvironmentUnion2TypeGetDeploymentCustomEnvironment4 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetDeploymentCustomEnvironmentUnion2", string(data)) } @@ -653,6 +752,17 @@ type GetDeploymentAliasWarning2 struct { Action *string `json:"action,omitempty"` } +func (g GetDeploymentAliasWarning2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentAliasWarning2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"code", "message"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentAliasWarning2) GetCode() string { if o == nil { return "" @@ -747,6 +857,17 @@ type GetDeploymentAliasError2 struct { Message string `json:"message"` } +func (g GetDeploymentAliasError2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentAliasError2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"code", "message"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentAliasError2) GetCode() string { if o == nil { return "" @@ -855,6 +976,17 @@ type GetDeploymentGitSourceBitbucket6 struct { RepoUUID string `json:"repoUuid"` } +func (g GetDeploymentGitSourceBitbucket6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceBitbucket6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "workspaceUuid", "repoUuid"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceBitbucket6) GetType() GetDeploymentGitSourceTypeBitbucket6 { if o == nil { return GetDeploymentGitSourceTypeBitbucket6("") @@ -934,6 +1066,17 @@ type GetDeploymentGitSourceGitlab4 struct { ProjectID float64 `json:"projectId"` } +func (g GetDeploymentGitSourceGitlab4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGitlab4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGitlab4) GetType() GetDeploymentGitSourceTypeGitlab4 { if o == nil { return GetDeploymentGitSourceTypeGitlab4("") @@ -994,6 +1137,17 @@ type GetDeploymentGitSourceGithubLimited6 struct { Repo *string `json:"repo,omitempty"` } +func (g GetDeploymentGitSourceGithubLimited6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubLimited6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubLimited6) GetType() GetDeploymentTypeGithubLimited6 { if o == nil { return GetDeploymentTypeGithubLimited6("") @@ -1069,6 +1223,17 @@ type GetDeploymentGitSourceGithubCustomHost6 struct { Repo *string `json:"repo,omitempty"` } +func (g GetDeploymentGitSourceGithubCustomHost6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubCustomHost6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "host", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubCustomHost6) GetType() GetDeploymentTypeGithubCustomHost6 { if o == nil { return GetDeploymentTypeGithubCustomHost6("") @@ -1150,6 +1315,17 @@ type GetDeploymentGitSourceGithub6 struct { Repo *string `json:"repo,omitempty"` } +func (g GetDeploymentGitSourceGithub6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithub6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithub6) GetType() GetDeploymentGitSourceTypeGithub6 { if o == nil { return GetDeploymentGitSourceTypeGithub6("") @@ -1223,6 +1399,17 @@ type GetDeploymentGitSourceCustom2 struct { GitURL string `json:"gitUrl"` } +func (g GetDeploymentGitSourceCustom2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceCustom2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "gitUrl"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceCustom2) GetType() GetDeploymentTypeCustom2 { if o == nil { return GetDeploymentTypeCustom2("") @@ -1283,6 +1470,17 @@ type GetDeploymentGitSourceBitbucket5 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceBitbucket5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceBitbucket5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "owner", "slug"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceBitbucket5) GetType() GetDeploymentGitSourceTypeBitbucket5 { if o == nil { return GetDeploymentGitSourceTypeBitbucket5("") @@ -1357,6 +1555,17 @@ type GetDeploymentGitSourceBitbucket4 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceBitbucket4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceBitbucket4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "repoUuid"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceBitbucket4) GetType() GetDeploymentGitSourceTypeBitbucket4 { if o == nil { return GetDeploymentGitSourceTypeBitbucket4("") @@ -1457,14 +1666,14 @@ func CreateGetDeploymentProjectID2Number(number float64) GetDeploymentProjectID2 func (u *GetDeploymentProjectID2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentProjectID2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentProjectID2TypeNumber return nil @@ -1493,6 +1702,17 @@ type GetDeploymentGitSourceGitlab3 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGitlab3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGitlab3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGitlab3) GetType() GetDeploymentGitSourceTypeGitlab3 { if o == nil { return GetDeploymentGitSourceTypeGitlab3("") @@ -1560,6 +1780,17 @@ type GetDeploymentGitSourceGithubLimited5 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithubLimited5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubLimited5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubLimited5) GetType() GetDeploymentTypeGithubLimited5 { if o == nil { return GetDeploymentTypeGithubLimited5("") @@ -1660,14 +1891,14 @@ func CreateGetDeploymentRepoID6Number(number float64) GetDeploymentRepoID6 { func (u *GetDeploymentRepoID6) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentRepoID6TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentRepoID6TypeNumber return nil @@ -1696,6 +1927,17 @@ type GetDeploymentGitSourceGithubLimited4 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithubLimited4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubLimited4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubLimited4) GetType() GetDeploymentTypeGithubLimited4 { if o == nil { return GetDeploymentTypeGithubLimited4("") @@ -1764,6 +2006,17 @@ type GetDeploymentGitSourceGithubCustomHost5 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithubCustomHost5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubCustomHost5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "host", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubCustomHost5) GetType() GetDeploymentTypeGithubCustomHost5 { if o == nil { return GetDeploymentTypeGithubCustomHost5("") @@ -1871,14 +2124,14 @@ func CreateGetDeploymentRepoID5Number(number float64) GetDeploymentRepoID5 { func (u *GetDeploymentRepoID5) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentRepoID5TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentRepoID5TypeNumber return nil @@ -1908,6 +2161,17 @@ type GetDeploymentGitSourceGithubCustomHost4 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithubCustomHost4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubCustomHost4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "host", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubCustomHost4) GetType() GetDeploymentTypeGithubCustomHost4 { if o == nil { return GetDeploymentTypeGithubCustomHost4("") @@ -1982,6 +2246,17 @@ type GetDeploymentGitSourceGithub5 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithub5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithub5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithub5) GetType() GetDeploymentGitSourceTypeGithub5 { if o == nil { return GetDeploymentGitSourceTypeGithub5("") @@ -2082,14 +2357,14 @@ func CreateGetDeploymentRepoID4Number(number float64) GetDeploymentRepoID4 { func (u *GetDeploymentRepoID4) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentRepoID4TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentRepoID4TypeNumber return nil @@ -2118,6 +2393,17 @@ type GetDeploymentGitSourceGithub4 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithub4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithub4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithub4) GetType() GetDeploymentGitSourceTypeGithub4 { if o == nil { return GetDeploymentGitSourceTypeGithub4("") @@ -2330,108 +2616,108 @@ func CreateGetDeploymentGitSourceUnion2GetDeploymentGitSourceBitbucket6(getDeplo func (u *GetDeploymentGitSourceUnion2) UnmarshalJSON(data []byte) error { - var getDeploymentGitSourceCustom2 GetDeploymentGitSourceCustom2 = GetDeploymentGitSourceCustom2{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceCustom2, "", true, true); err == nil { - u.GetDeploymentGitSourceCustom2 = &getDeploymentGitSourceCustom2 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceCustom2 + var getDeploymentGitSourceGithubCustomHost6 GetDeploymentGitSourceGithubCustomHost6 = GetDeploymentGitSourceGithubCustomHost6{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost6, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubCustomHost6 = &getDeploymentGitSourceGithubCustomHost6 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubCustomHost6 return nil } - var getDeploymentGitSourceGitlab4 GetDeploymentGitSourceGitlab4 = GetDeploymentGitSourceGitlab4{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGitlab4, "", true, true); err == nil { - u.GetDeploymentGitSourceGitlab4 = &getDeploymentGitSourceGitlab4 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGitlab4 + var getDeploymentGitSourceBitbucket6 GetDeploymentGitSourceBitbucket6 = GetDeploymentGitSourceBitbucket6{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket6, "", true, nil); err == nil { + u.GetDeploymentGitSourceBitbucket6 = &getDeploymentGitSourceBitbucket6 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceBitbucket6 return nil } - var getDeploymentGitSourceGitlab3 GetDeploymentGitSourceGitlab3 = GetDeploymentGitSourceGitlab3{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGitlab3, "", true, true); err == nil { - u.GetDeploymentGitSourceGitlab3 = &getDeploymentGitSourceGitlab3 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGitlab3 + var getDeploymentGitSourceGithubCustomHost5 GetDeploymentGitSourceGithubCustomHost5 = GetDeploymentGitSourceGithubCustomHost5{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost5, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubCustomHost5 = &getDeploymentGitSourceGithubCustomHost5 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubCustomHost5 return nil } - var getDeploymentGitSourceGithubLimited4 GetDeploymentGitSourceGithubLimited4 = GetDeploymentGitSourceGithubLimited4{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited4, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubLimited4 = &getDeploymentGitSourceGithubLimited4 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubLimited4 + var getDeploymentGitSourceCustom2 GetDeploymentGitSourceCustom2 = GetDeploymentGitSourceCustom2{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceCustom2, "", true, nil); err == nil { + u.GetDeploymentGitSourceCustom2 = &getDeploymentGitSourceCustom2 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceCustom2 return nil } - var getDeploymentGitSourceGithub4 GetDeploymentGitSourceGithub4 = GetDeploymentGitSourceGithub4{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub4, "", true, true); err == nil { - u.GetDeploymentGitSourceGithub4 = &getDeploymentGitSourceGithub4 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithub4 + var getDeploymentGitSourceGithub6 GetDeploymentGitSourceGithub6 = GetDeploymentGitSourceGithub6{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub6, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithub6 = &getDeploymentGitSourceGithub6 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithub6 return nil } - var getDeploymentGitSourceGithubLimited5 GetDeploymentGitSourceGithubLimited5 = GetDeploymentGitSourceGithubLimited5{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited5, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubLimited5 = &getDeploymentGitSourceGithubLimited5 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubLimited5 + var getDeploymentGitSourceGithubLimited6 GetDeploymentGitSourceGithubLimited6 = GetDeploymentGitSourceGithubLimited6{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited6, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubLimited6 = &getDeploymentGitSourceGithubLimited6 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubLimited6 return nil } - var getDeploymentGitSourceBitbucket4 GetDeploymentGitSourceBitbucket4 = GetDeploymentGitSourceBitbucket4{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket4, "", true, true); err == nil { - u.GetDeploymentGitSourceBitbucket4 = &getDeploymentGitSourceBitbucket4 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceBitbucket4 + var getDeploymentGitSourceGitlab4 GetDeploymentGitSourceGitlab4 = GetDeploymentGitSourceGitlab4{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGitlab4, "", true, nil); err == nil { + u.GetDeploymentGitSourceGitlab4 = &getDeploymentGitSourceGitlab4 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGitlab4 return nil } - var getDeploymentGitSourceBitbucket5 GetDeploymentGitSourceBitbucket5 = GetDeploymentGitSourceBitbucket5{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket5, "", true, true); err == nil { - u.GetDeploymentGitSourceBitbucket5 = &getDeploymentGitSourceBitbucket5 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceBitbucket5 + var getDeploymentGitSourceGithub5 GetDeploymentGitSourceGithub5 = GetDeploymentGitSourceGithub5{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub5, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithub5 = &getDeploymentGitSourceGithub5 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithub5 return nil } var getDeploymentGitSourceGithubCustomHost4 GetDeploymentGitSourceGithubCustomHost4 = GetDeploymentGitSourceGithubCustomHost4{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost4, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost4, "", true, nil); err == nil { u.GetDeploymentGitSourceGithubCustomHost4 = &getDeploymentGitSourceGithubCustomHost4 u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubCustomHost4 return nil } - var getDeploymentGitSourceGithub6 GetDeploymentGitSourceGithub6 = GetDeploymentGitSourceGithub6{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub6, "", true, true); err == nil { - u.GetDeploymentGitSourceGithub6 = &getDeploymentGitSourceGithub6 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithub6 + var getDeploymentGitSourceGithubLimited5 GetDeploymentGitSourceGithubLimited5 = GetDeploymentGitSourceGithubLimited5{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited5, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubLimited5 = &getDeploymentGitSourceGithubLimited5 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubLimited5 return nil } - var getDeploymentGitSourceGithubLimited6 GetDeploymentGitSourceGithubLimited6 = GetDeploymentGitSourceGithubLimited6{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited6, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubLimited6 = &getDeploymentGitSourceGithubLimited6 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubLimited6 + var getDeploymentGitSourceBitbucket5 GetDeploymentGitSourceBitbucket5 = GetDeploymentGitSourceBitbucket5{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket5, "", true, nil); err == nil { + u.GetDeploymentGitSourceBitbucket5 = &getDeploymentGitSourceBitbucket5 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceBitbucket5 return nil } - var getDeploymentGitSourceGithub5 GetDeploymentGitSourceGithub5 = GetDeploymentGitSourceGithub5{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub5, "", true, true); err == nil { - u.GetDeploymentGitSourceGithub5 = &getDeploymentGitSourceGithub5 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithub5 + var getDeploymentGitSourceGithub4 GetDeploymentGitSourceGithub4 = GetDeploymentGitSourceGithub4{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub4, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithub4 = &getDeploymentGitSourceGithub4 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithub4 return nil } - var getDeploymentGitSourceGithubCustomHost5 GetDeploymentGitSourceGithubCustomHost5 = GetDeploymentGitSourceGithubCustomHost5{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost5, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubCustomHost5 = &getDeploymentGitSourceGithubCustomHost5 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubCustomHost5 + var getDeploymentGitSourceGithubLimited4 GetDeploymentGitSourceGithubLimited4 = GetDeploymentGitSourceGithubLimited4{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited4, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubLimited4 = &getDeploymentGitSourceGithubLimited4 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubLimited4 return nil } - var getDeploymentGitSourceGithubCustomHost6 GetDeploymentGitSourceGithubCustomHost6 = GetDeploymentGitSourceGithubCustomHost6{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost6, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubCustomHost6 = &getDeploymentGitSourceGithubCustomHost6 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGithubCustomHost6 + var getDeploymentGitSourceGitlab3 GetDeploymentGitSourceGitlab3 = GetDeploymentGitSourceGitlab3{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGitlab3, "", true, nil); err == nil { + u.GetDeploymentGitSourceGitlab3 = &getDeploymentGitSourceGitlab3 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceGitlab3 return nil } - var getDeploymentGitSourceBitbucket6 GetDeploymentGitSourceBitbucket6 = GetDeploymentGitSourceBitbucket6{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket6, "", true, true); err == nil { - u.GetDeploymentGitSourceBitbucket6 = &getDeploymentGitSourceBitbucket6 - u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceBitbucket6 + var getDeploymentGitSourceBitbucket4 GetDeploymentGitSourceBitbucket4 = GetDeploymentGitSourceBitbucket4{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket4, "", true, nil); err == nil { + u.GetDeploymentGitSourceBitbucket4 = &getDeploymentGitSourceBitbucket4 + u.Type = GetDeploymentGitSourceUnion2TypeGetDeploymentGitSourceBitbucket4 return nil } @@ -2553,6 +2839,17 @@ type GetDeploymentProject2 struct { Framework *string `json:"framework,omitempty"` } +func (g GetDeploymentProject2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentProject2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentProject2) GetID() string { if o == nil { return "" @@ -2686,6 +2983,17 @@ type GetDeploymentOidcTokenClaims2 struct { Environment string `json:"environment"` } +func (g GetDeploymentOidcTokenClaims2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentOidcTokenClaims2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"iss", "sub", "scope", "aud", "owner", "owner_id", "project", "project_id", "environment"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentOidcTokenClaims2) GetIss() string { if o == nil { return "" @@ -2813,6 +3121,17 @@ type Lambdas2 struct { OidcTokenClaims *GetDeploymentOidcTokenClaims2 `json:"oidcTokenClaims,omitempty"` } +func (l Lambdas2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *Lambdas2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"aliasAssigned", "bootedAt", "buildingAt", "buildSkipped", "creator", "public", "status", "id", "createdAt", "readyState", "name", "type", "meta", "regions", "url", "version"}); err != nil { + return err + } + return nil +} + func (o *Lambdas2) GetAlias() []string { if o == nil { return nil @@ -3226,14 +3545,14 @@ func CreateGetDeploymentAliasAssignedAtBoolean(boolean bool) GetDeploymentAliasA func (u *GetDeploymentAliasAssignedAt) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentAliasAssignedAtTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = GetDeploymentAliasAssignedAtTypeBoolean return nil @@ -3258,6 +3577,17 @@ type GetDeploymentBuild1 struct { Env []string `json:"env"` } +func (g GetDeploymentBuild1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentBuild1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"env"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentBuild1) GetEnv() []string { if o == nil { return []string{} @@ -3271,6 +3601,17 @@ type GetDeploymentBuild2 struct { Config map[string]any `json:"config,omitempty"` } +func (g GetDeploymentBuild2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentBuild2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"use"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentBuild2) GetUse() string { if o == nil { return "" @@ -3471,6 +3812,17 @@ type GetDeploymentSpeedInsights struct { PaidAt *float64 `json:"paidAt,omitempty"` } +func (g GetDeploymentSpeedInsights) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentSpeedInsights) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentSpeedInsights) GetID() string { if o == nil { return "" @@ -3521,6 +3873,17 @@ type GetDeploymentWebAnalytics struct { HasData *bool `json:"hasData,omitempty"` } +func (g GetDeploymentWebAnalytics) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentWebAnalytics) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentWebAnalytics) GetID() string { if o == nil { return "" @@ -3567,6 +3930,17 @@ type GetDeploymentProjectSettings struct { WebAnalytics *GetDeploymentWebAnalytics `json:"webAnalytics,omitempty"` } +func (g GetDeploymentProjectSettings) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentProjectSettings) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentProjectSettings) GetBuildCommand() *string { if o == nil { return nil @@ -3666,6 +4040,17 @@ type GetDeploymentIntegrations struct { SkippedBy *string `json:"skippedBy,omitempty"` } +func (g GetDeploymentIntegrations) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentIntegrations) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"status", "startedAt"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentIntegrations) GetStatus() GetDeploymentIntegrationsStatus { if o == nil { return GetDeploymentIntegrationsStatus("") @@ -3741,6 +4126,17 @@ type GetDeploymentRemotePattern struct { Search *string `json:"search,omitempty"` } +func (g GetDeploymentRemotePattern) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentRemotePattern) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"hostname"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentRemotePattern) GetProtocol() *GetDeploymentProtocol { if o == nil { return nil @@ -3783,6 +4179,17 @@ type GetDeploymentLocalPattern struct { Search *string `json:"search,omitempty"` } +func (g GetDeploymentLocalPattern) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentLocalPattern) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentLocalPattern) GetPathname() *string { if o == nil { return nil @@ -3862,6 +4269,17 @@ type GetDeploymentImages struct { ContentDispositionType *GetDeploymentContentDispositionType `json:"contentDispositionType,omitempty"` } +func (g GetDeploymentImages) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentImages) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentImages) GetSizes() []float64 { if o == nil { return nil @@ -3938,6 +4356,17 @@ type GetDeploymentCreator1 struct { Avatar *string `json:"avatar,omitempty"` } +func (g GetDeploymentCreator1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentCreator1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"uid"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentCreator1) GetUID() string { if o == nil { return "" @@ -3996,6 +4425,17 @@ type GetDeploymentOutput1 struct { FunctionName string `json:"functionName"` } +func (g GetDeploymentOutput1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentOutput1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"path", "functionName"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentOutput1) GetPath() string { if o == nil { return "" @@ -4020,6 +4460,17 @@ type GetDeploymentLambda1 struct { Output []GetDeploymentOutput1 `json:"output"` } +func (g GetDeploymentLambda1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentLambda1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "output"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentLambda1) GetID() string { if o == nil { return "" @@ -4107,6 +4558,17 @@ type GetDeploymentTeam1 struct { Avatar *string `json:"avatar,omitempty"` } +func (g GetDeploymentTeam1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentTeam1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name", "slug"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentTeam1) GetID() string { if o == nil { return "" @@ -4139,6 +4601,17 @@ type GetDeploymentCustomEnvironment2 struct { ID string `json:"id"` } +func (g GetDeploymentCustomEnvironment2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentCustomEnvironment2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentCustomEnvironment2) GetID() string { if o == nil { return "" @@ -4214,6 +4687,17 @@ type GetDeploymentBranchMatcher1 struct { Pattern string `json:"pattern"` } +func (g GetDeploymentBranchMatcher1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentBranchMatcher1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "pattern"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentBranchMatcher1) GetType() GetDeploymentBranchMatcherType1 { if o == nil { return GetDeploymentBranchMatcherType1("") @@ -4236,6 +4720,17 @@ type GetDeploymentVerification1 struct { Reason string `json:"reason"` } +func (g GetDeploymentVerification1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentVerification1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "domain", "value", "reason"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentVerification1) GetType() string { if o == nil { return "" @@ -4281,6 +4776,17 @@ type GetDeploymentDomain1 struct { Verification []GetDeploymentVerification1 `json:"verification,omitempty"` } +func (g GetDeploymentDomain1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentDomain1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"name", "apexName", "projectId", "verified"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentDomain1) GetName() string { if o == nil { return "" @@ -4380,6 +4886,17 @@ type GetDeploymentCustomEnvironment1 struct { UpdatedAt float64 `json:"updatedAt"` } +func (g GetDeploymentCustomEnvironment1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentCustomEnvironment1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "slug", "type", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentCustomEnvironment1) GetID() string { if o == nil { return "" @@ -4477,20 +4994,20 @@ func CreateGetDeploymentCustomEnvironmentUnion1GetDeploymentCustomEnvironment2(g func (u *GetDeploymentCustomEnvironmentUnion1) UnmarshalJSON(data []byte) error { - var getDeploymentCustomEnvironment2 GetDeploymentCustomEnvironment2 = GetDeploymentCustomEnvironment2{} - if err := utils.UnmarshalJSON(data, &getDeploymentCustomEnvironment2, "", true, true); err == nil { - u.GetDeploymentCustomEnvironment2 = &getDeploymentCustomEnvironment2 - u.Type = GetDeploymentCustomEnvironmentUnion1TypeGetDeploymentCustomEnvironment2 - return nil - } - var getDeploymentCustomEnvironment1 GetDeploymentCustomEnvironment1 = GetDeploymentCustomEnvironment1{} - if err := utils.UnmarshalJSON(data, &getDeploymentCustomEnvironment1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentCustomEnvironment1, "", true, nil); err == nil { u.GetDeploymentCustomEnvironment1 = &getDeploymentCustomEnvironment1 u.Type = GetDeploymentCustomEnvironmentUnion1TypeGetDeploymentCustomEnvironment1 return nil } + var getDeploymentCustomEnvironment2 GetDeploymentCustomEnvironment2 = GetDeploymentCustomEnvironment2{} + if err := utils.UnmarshalJSON(data, &getDeploymentCustomEnvironment2, "", true, nil); err == nil { + u.GetDeploymentCustomEnvironment2 = &getDeploymentCustomEnvironment2 + u.Type = GetDeploymentCustomEnvironmentUnion1TypeGetDeploymentCustomEnvironment2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetDeploymentCustomEnvironmentUnion1", string(data)) } @@ -4536,6 +5053,17 @@ type GetDeploymentAliasWarning1 struct { Action *string `json:"action,omitempty"` } +func (g GetDeploymentAliasWarning1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentAliasWarning1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"code", "message"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentAliasWarning1) GetCode() string { if o == nil { return "" @@ -4630,6 +5158,17 @@ type GetDeploymentAliasError1 struct { Message string `json:"message"` } +func (g GetDeploymentAliasError1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentAliasError1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"code", "message"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentAliasError1) GetCode() string { if o == nil { return "" @@ -4738,6 +5277,17 @@ type GetDeploymentGitSourceBitbucket3 struct { RepoUUID string `json:"repoUuid"` } +func (g GetDeploymentGitSourceBitbucket3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceBitbucket3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "workspaceUuid", "repoUuid"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceBitbucket3) GetType() GetDeploymentGitSourceTypeBitbucket3 { if o == nil { return GetDeploymentGitSourceTypeBitbucket3("") @@ -4817,6 +5367,17 @@ type GetDeploymentGitSourceGitlab2 struct { ProjectID float64 `json:"projectId"` } +func (g GetDeploymentGitSourceGitlab2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGitlab2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGitlab2) GetType() GetDeploymentGitSourceTypeGitlab2 { if o == nil { return GetDeploymentGitSourceTypeGitlab2("") @@ -4877,6 +5438,17 @@ type GetDeploymentGitSourceGithubLimited3 struct { Repo *string `json:"repo,omitempty"` } +func (g GetDeploymentGitSourceGithubLimited3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubLimited3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubLimited3) GetType() GetDeploymentTypeGithubLimited3 { if o == nil { return GetDeploymentTypeGithubLimited3("") @@ -4952,6 +5524,17 @@ type GetDeploymentGitSourceGithubCustomHost3 struct { Repo *string `json:"repo,omitempty"` } +func (g GetDeploymentGitSourceGithubCustomHost3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubCustomHost3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "host", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubCustomHost3) GetType() GetDeploymentTypeGithubCustomHost3 { if o == nil { return GetDeploymentTypeGithubCustomHost3("") @@ -5033,6 +5616,17 @@ type GetDeploymentGitSourceGithub3 struct { Repo *string `json:"repo,omitempty"` } +func (g GetDeploymentGitSourceGithub3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithub3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithub3) GetType() GetDeploymentGitSourceTypeGithub3 { if o == nil { return GetDeploymentGitSourceTypeGithub3("") @@ -5106,6 +5700,17 @@ type GetDeploymentGitSourceCustom1 struct { GitURL string `json:"gitUrl"` } +func (g GetDeploymentGitSourceCustom1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceCustom1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "ref", "sha", "gitUrl"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceCustom1) GetType() GetDeploymentTypeCustom1 { if o == nil { return GetDeploymentTypeCustom1("") @@ -5166,6 +5771,17 @@ type GetDeploymentGitSourceBitbucket2 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceBitbucket2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceBitbucket2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "owner", "slug"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceBitbucket2) GetType() GetDeploymentGitSourceTypeBitbucket2 { if o == nil { return GetDeploymentGitSourceTypeBitbucket2("") @@ -5240,6 +5856,17 @@ type GetDeploymentGitSourceBitbucket1 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceBitbucket1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceBitbucket1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "repoUuid"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceBitbucket1) GetType() GetDeploymentGitSourceTypeBitbucket1 { if o == nil { return GetDeploymentGitSourceTypeBitbucket1("") @@ -5340,14 +5967,14 @@ func CreateGetDeploymentProjectID1Number(number float64) GetDeploymentProjectID1 func (u *GetDeploymentProjectID1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentProjectID1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentProjectID1TypeNumber return nil @@ -5376,6 +6003,17 @@ type GetDeploymentGitSourceGitlab1 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGitlab1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGitlab1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGitlab1) GetType() GetDeploymentGitSourceTypeGitlab1 { if o == nil { return GetDeploymentGitSourceTypeGitlab1("") @@ -5443,6 +6081,17 @@ type GetDeploymentGitSourceGithubLimited2 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithubLimited2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubLimited2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubLimited2) GetType() GetDeploymentTypeGithubLimited2 { if o == nil { return GetDeploymentTypeGithubLimited2("") @@ -5543,14 +6192,14 @@ func CreateGetDeploymentRepoID3Number(number float64) GetDeploymentRepoID3 { func (u *GetDeploymentRepoID3) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentRepoID3TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentRepoID3TypeNumber return nil @@ -5579,6 +6228,17 @@ type GetDeploymentGitSourceGithubLimited1 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithubLimited1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubLimited1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubLimited1) GetType() GetDeploymentTypeGithubLimited1 { if o == nil { return GetDeploymentTypeGithubLimited1("") @@ -5647,6 +6307,17 @@ type GetDeploymentGitSourceGithubCustomHost2 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithubCustomHost2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubCustomHost2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "host", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubCustomHost2) GetType() GetDeploymentTypeGithubCustomHost2 { if o == nil { return GetDeploymentTypeGithubCustomHost2("") @@ -5754,14 +6425,14 @@ func CreateGetDeploymentRepoID2Number(number float64) GetDeploymentRepoID2 { func (u *GetDeploymentRepoID2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentRepoID2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentRepoID2TypeNumber return nil @@ -5791,6 +6462,17 @@ type GetDeploymentGitSourceGithubCustomHost1 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithubCustomHost1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithubCustomHost1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "host", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithubCustomHost1) GetType() GetDeploymentTypeGithubCustomHost1 { if o == nil { return GetDeploymentTypeGithubCustomHost1("") @@ -5865,6 +6547,17 @@ type GetDeploymentGitSourceGithub2 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithub2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithub2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "org", "repo"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithub2) GetType() GetDeploymentGitSourceTypeGithub2 { if o == nil { return GetDeploymentGitSourceTypeGithub2("") @@ -5965,14 +6658,14 @@ func CreateGetDeploymentRepoID1Number(number float64) GetDeploymentRepoID1 { func (u *GetDeploymentRepoID1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentRepoID1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentRepoID1TypeNumber return nil @@ -6001,6 +6694,17 @@ type GetDeploymentGitSourceGithub1 struct { PrID *float64 `json:"prId,omitempty"` } +func (g GetDeploymentGitSourceGithub1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitSourceGithub1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "repoId"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitSourceGithub1) GetType() GetDeploymentGitSourceTypeGithub1 { if o == nil { return GetDeploymentGitSourceTypeGithub1("") @@ -6213,108 +6917,108 @@ func CreateGetDeploymentGitSourceUnion1GetDeploymentGitSourceBitbucket3(getDeplo func (u *GetDeploymentGitSourceUnion1) UnmarshalJSON(data []byte) error { - var getDeploymentGitSourceCustom1 GetDeploymentGitSourceCustom1 = GetDeploymentGitSourceCustom1{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceCustom1, "", true, true); err == nil { - u.GetDeploymentGitSourceCustom1 = &getDeploymentGitSourceCustom1 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceCustom1 + var getDeploymentGitSourceGithubCustomHost3 GetDeploymentGitSourceGithubCustomHost3 = GetDeploymentGitSourceGithubCustomHost3{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost3, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubCustomHost3 = &getDeploymentGitSourceGithubCustomHost3 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubCustomHost3 return nil } - var getDeploymentGitSourceGitlab2 GetDeploymentGitSourceGitlab2 = GetDeploymentGitSourceGitlab2{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGitlab2, "", true, true); err == nil { - u.GetDeploymentGitSourceGitlab2 = &getDeploymentGitSourceGitlab2 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGitlab2 + var getDeploymentGitSourceBitbucket3 GetDeploymentGitSourceBitbucket3 = GetDeploymentGitSourceBitbucket3{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket3, "", true, nil); err == nil { + u.GetDeploymentGitSourceBitbucket3 = &getDeploymentGitSourceBitbucket3 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceBitbucket3 return nil } - var getDeploymentGitSourceGitlab1 GetDeploymentGitSourceGitlab1 = GetDeploymentGitSourceGitlab1{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGitlab1, "", true, true); err == nil { - u.GetDeploymentGitSourceGitlab1 = &getDeploymentGitSourceGitlab1 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGitlab1 + var getDeploymentGitSourceGithubCustomHost2 GetDeploymentGitSourceGithubCustomHost2 = GetDeploymentGitSourceGithubCustomHost2{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost2, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubCustomHost2 = &getDeploymentGitSourceGithubCustomHost2 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubCustomHost2 return nil } - var getDeploymentGitSourceGithubLimited1 GetDeploymentGitSourceGithubLimited1 = GetDeploymentGitSourceGithubLimited1{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited1, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubLimited1 = &getDeploymentGitSourceGithubLimited1 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubLimited1 + var getDeploymentGitSourceCustom1 GetDeploymentGitSourceCustom1 = GetDeploymentGitSourceCustom1{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceCustom1, "", true, nil); err == nil { + u.GetDeploymentGitSourceCustom1 = &getDeploymentGitSourceCustom1 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceCustom1 return nil } - var getDeploymentGitSourceGithub1 GetDeploymentGitSourceGithub1 = GetDeploymentGitSourceGithub1{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub1, "", true, true); err == nil { - u.GetDeploymentGitSourceGithub1 = &getDeploymentGitSourceGithub1 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithub1 + var getDeploymentGitSourceGithub3 GetDeploymentGitSourceGithub3 = GetDeploymentGitSourceGithub3{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub3, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithub3 = &getDeploymentGitSourceGithub3 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithub3 return nil } - var getDeploymentGitSourceGithubLimited2 GetDeploymentGitSourceGithubLimited2 = GetDeploymentGitSourceGithubLimited2{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited2, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubLimited2 = &getDeploymentGitSourceGithubLimited2 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubLimited2 + var getDeploymentGitSourceGithubLimited3 GetDeploymentGitSourceGithubLimited3 = GetDeploymentGitSourceGithubLimited3{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited3, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubLimited3 = &getDeploymentGitSourceGithubLimited3 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubLimited3 return nil } - var getDeploymentGitSourceBitbucket1 GetDeploymentGitSourceBitbucket1 = GetDeploymentGitSourceBitbucket1{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket1, "", true, true); err == nil { - u.GetDeploymentGitSourceBitbucket1 = &getDeploymentGitSourceBitbucket1 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceBitbucket1 + var getDeploymentGitSourceGitlab2 GetDeploymentGitSourceGitlab2 = GetDeploymentGitSourceGitlab2{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGitlab2, "", true, nil); err == nil { + u.GetDeploymentGitSourceGitlab2 = &getDeploymentGitSourceGitlab2 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGitlab2 return nil } - var getDeploymentGitSourceBitbucket2 GetDeploymentGitSourceBitbucket2 = GetDeploymentGitSourceBitbucket2{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket2, "", true, true); err == nil { - u.GetDeploymentGitSourceBitbucket2 = &getDeploymentGitSourceBitbucket2 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceBitbucket2 + var getDeploymentGitSourceGithub2 GetDeploymentGitSourceGithub2 = GetDeploymentGitSourceGithub2{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub2, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithub2 = &getDeploymentGitSourceGithub2 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithub2 return nil } var getDeploymentGitSourceGithubCustomHost1 GetDeploymentGitSourceGithubCustomHost1 = GetDeploymentGitSourceGithubCustomHost1{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost1, "", true, nil); err == nil { u.GetDeploymentGitSourceGithubCustomHost1 = &getDeploymentGitSourceGithubCustomHost1 u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubCustomHost1 return nil } - var getDeploymentGitSourceGithub3 GetDeploymentGitSourceGithub3 = GetDeploymentGitSourceGithub3{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub3, "", true, true); err == nil { - u.GetDeploymentGitSourceGithub3 = &getDeploymentGitSourceGithub3 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithub3 + var getDeploymentGitSourceGithubLimited2 GetDeploymentGitSourceGithubLimited2 = GetDeploymentGitSourceGithubLimited2{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited2, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubLimited2 = &getDeploymentGitSourceGithubLimited2 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubLimited2 return nil } - var getDeploymentGitSourceGithubLimited3 GetDeploymentGitSourceGithubLimited3 = GetDeploymentGitSourceGithubLimited3{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited3, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubLimited3 = &getDeploymentGitSourceGithubLimited3 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubLimited3 + var getDeploymentGitSourceBitbucket2 GetDeploymentGitSourceBitbucket2 = GetDeploymentGitSourceBitbucket2{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket2, "", true, nil); err == nil { + u.GetDeploymentGitSourceBitbucket2 = &getDeploymentGitSourceBitbucket2 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceBitbucket2 return nil } - var getDeploymentGitSourceGithub2 GetDeploymentGitSourceGithub2 = GetDeploymentGitSourceGithub2{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub2, "", true, true); err == nil { - u.GetDeploymentGitSourceGithub2 = &getDeploymentGitSourceGithub2 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithub2 + var getDeploymentGitSourceGithub1 GetDeploymentGitSourceGithub1 = GetDeploymentGitSourceGithub1{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithub1, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithub1 = &getDeploymentGitSourceGithub1 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithub1 return nil } - var getDeploymentGitSourceGithubCustomHost2 GetDeploymentGitSourceGithubCustomHost2 = GetDeploymentGitSourceGithubCustomHost2{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost2, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubCustomHost2 = &getDeploymentGitSourceGithubCustomHost2 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubCustomHost2 + var getDeploymentGitSourceGithubLimited1 GetDeploymentGitSourceGithubLimited1 = GetDeploymentGitSourceGithubLimited1{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubLimited1, "", true, nil); err == nil { + u.GetDeploymentGitSourceGithubLimited1 = &getDeploymentGitSourceGithubLimited1 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubLimited1 return nil } - var getDeploymentGitSourceGithubCustomHost3 GetDeploymentGitSourceGithubCustomHost3 = GetDeploymentGitSourceGithubCustomHost3{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGithubCustomHost3, "", true, true); err == nil { - u.GetDeploymentGitSourceGithubCustomHost3 = &getDeploymentGitSourceGithubCustomHost3 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGithubCustomHost3 + var getDeploymentGitSourceGitlab1 GetDeploymentGitSourceGitlab1 = GetDeploymentGitSourceGitlab1{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceGitlab1, "", true, nil); err == nil { + u.GetDeploymentGitSourceGitlab1 = &getDeploymentGitSourceGitlab1 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceGitlab1 return nil } - var getDeploymentGitSourceBitbucket3 GetDeploymentGitSourceBitbucket3 = GetDeploymentGitSourceBitbucket3{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket3, "", true, true); err == nil { - u.GetDeploymentGitSourceBitbucket3 = &getDeploymentGitSourceBitbucket3 - u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceBitbucket3 + var getDeploymentGitSourceBitbucket1 GetDeploymentGitSourceBitbucket1 = GetDeploymentGitSourceBitbucket1{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitSourceBitbucket1, "", true, nil); err == nil { + u.GetDeploymentGitSourceBitbucket1 = &getDeploymentGitSourceBitbucket1 + u.Type = GetDeploymentGitSourceUnion1TypeGetDeploymentGitSourceBitbucket1 return nil } @@ -6436,6 +7140,17 @@ type GetDeploymentProject1 struct { Framework *string `json:"framework,omitempty"` } +func (g GetDeploymentProject1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentProject1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentProject1) GetID() string { if o == nil { return "" @@ -6569,6 +7284,17 @@ type GetDeploymentOidcTokenClaims1 struct { Environment string `json:"environment"` } +func (g GetDeploymentOidcTokenClaims1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentOidcTokenClaims1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"iss", "sub", "scope", "aud", "owner", "owner_id", "project", "project_id", "environment"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentOidcTokenClaims1) GetIss() string { if o == nil { return "" @@ -6666,6 +7392,17 @@ type GetDeploymentCron struct { Path string `json:"path"` } +func (g GetDeploymentCron) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentCron) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"schedule", "path"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentCron) GetSchedule() string { if o == nil { return "" @@ -6746,6 +7483,17 @@ type GetDeploymentExperimentalTrigger struct { InitialDelaySeconds *float64 `json:"initialDelaySeconds,omitempty"` } +func (g GetDeploymentExperimentalTrigger) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentExperimentalTrigger) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "topic", "consumer"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentExperimentalTrigger) GetType() GetDeploymentFunctionsType { if o == nil { return GetDeploymentFunctionsType("") @@ -6796,6 +7544,18 @@ type GetDeploymentFunctions struct { IncludeFiles *string `json:"includeFiles,omitempty"` ExcludeFiles *string `json:"excludeFiles,omitempty"` ExperimentalTriggers []GetDeploymentExperimentalTrigger `json:"experimentalTriggers,omitempty"` + SupportsCancellation *bool `json:"supportsCancellation,omitempty"` +} + +func (g GetDeploymentFunctions) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentFunctions) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil } func (o *GetDeploymentFunctions) GetArchitecture() *GetDeploymentArchitecture { @@ -6847,12 +7607,30 @@ func (o *GetDeploymentFunctions) GetExperimentalTriggers() []GetDeploymentExperi return o.ExperimentalTriggers } +func (o *GetDeploymentFunctions) GetSupportsCancellation() *bool { + if o == nil { + return nil + } + return o.SupportsCancellation +} + type GetDeploymentRoute3 struct { Src string `json:"src"` Continue bool `json:"continue"` Middleware float64 `json:"middleware"` } +func (g GetDeploymentRoute3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentRoute3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"src", "continue", "middleware"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentRoute3) GetSrc() string { if o == nil { return "" @@ -6919,6 +7697,17 @@ type GetDeploymentRoute2 struct { Status *float64 `json:"status,omitempty"` } +func (g GetDeploymentRoute2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentRoute2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"handle"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentRoute2) GetHandle() GetDeploymentHandle { if o == nil { return GetDeploymentHandle("") @@ -7011,14 +7800,14 @@ func CreateGetDeploymentHasEq2Number(number float64) GetDeploymentHasEq2 { func (u *GetDeploymentHasEq2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentHasEq2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentHasEq2TypeNumber return nil @@ -7053,6 +7842,17 @@ type GetDeploymentHasValue2 struct { Lte *float64 `json:"lte,omitempty"` } +func (g GetDeploymentHasValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentHasValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentHasValue2) GetEq() *GetDeploymentHasEq2 { if o == nil { return nil @@ -7165,14 +7965,14 @@ func CreateGetDeploymentHasValueUnion2GetDeploymentHasValue2(getDeploymentHasVal func (u *GetDeploymentHasValueUnion2) UnmarshalJSON(data []byte) error { var getDeploymentHasValue2 GetDeploymentHasValue2 = GetDeploymentHasValue2{} - if err := utils.UnmarshalJSON(data, &getDeploymentHasValue2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentHasValue2, "", true, nil); err == nil { u.GetDeploymentHasValue2 = &getDeploymentHasValue2 u.Type = GetDeploymentHasValueUnion2TypeGetDeploymentHasValue2 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentHasValueUnion2TypeStr return nil @@ -7199,6 +7999,17 @@ type GetDeploymentHas struct { Value *GetDeploymentHasValueUnion2 `json:"value,omitempty"` } +func (g GetDeploymentHas) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentHas) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "key"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentHas) GetType() GetDeploymentHasType { if o == nil { return GetDeploymentHasType("") @@ -7278,14 +8089,14 @@ func CreateGetDeploymentHasEq1Number(number float64) GetDeploymentHasEq1 { func (u *GetDeploymentHasEq1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentHasEq1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentHasEq1TypeNumber return nil @@ -7320,6 +8131,17 @@ type GetDeploymentHasValue1 struct { Lte *float64 `json:"lte,omitempty"` } +func (g GetDeploymentHasValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentHasValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentHasValue1) GetEq() *GetDeploymentHasEq1 { if o == nil { return nil @@ -7432,14 +8254,14 @@ func CreateGetDeploymentHasValueUnion1GetDeploymentHasValue1(getDeploymentHasVal func (u *GetDeploymentHasValueUnion1) UnmarshalJSON(data []byte) error { var getDeploymentHasValue1 GetDeploymentHasValue1 = GetDeploymentHasValue1{} - if err := utils.UnmarshalJSON(data, &getDeploymentHasValue1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentHasValue1, "", true, nil); err == nil { u.GetDeploymentHasValue1 = &getDeploymentHasValue1 u.Type = GetDeploymentHasValueUnion1TypeGetDeploymentHasValue1 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentHasValueUnion1TypeStr return nil @@ -7465,6 +8287,17 @@ type GetDeploymentHasHost struct { Value GetDeploymentHasValueUnion1 `json:"value"` } +func (g GetDeploymentHasHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentHasHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "value"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentHasHost) GetType() GetDeploymentHasTypeHost { if o == nil { return GetDeploymentHasTypeHost("") @@ -7514,14 +8347,14 @@ func CreateGetDeploymentHasUnionGetDeploymentHas(getDeploymentHas GetDeploymentH func (u *GetDeploymentHasUnion) UnmarshalJSON(data []byte) error { var getDeploymentHasHost GetDeploymentHasHost = GetDeploymentHasHost{} - if err := utils.UnmarshalJSON(data, &getDeploymentHasHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentHasHost, "", true, nil); err == nil { u.GetDeploymentHasHost = &getDeploymentHasHost u.Type = GetDeploymentHasUnionTypeGetDeploymentHasHost return nil } var getDeploymentHas GetDeploymentHas = GetDeploymentHas{} - if err := utils.UnmarshalJSON(data, &getDeploymentHas, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentHas, "", true, nil); err == nil { u.GetDeploymentHas = &getDeploymentHas u.Type = GetDeploymentHasUnionTypeGetDeploymentHas return nil @@ -7606,14 +8439,14 @@ func CreateGetDeploymentMissingEq2Number(number float64) GetDeploymentMissingEq2 func (u *GetDeploymentMissingEq2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentMissingEq2TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentMissingEq2TypeNumber return nil @@ -7648,6 +8481,17 @@ type GetDeploymentMissingValue2 struct { Lte *float64 `json:"lte,omitempty"` } +func (g GetDeploymentMissingValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentMissingValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentMissingValue2) GetEq() *GetDeploymentMissingEq2 { if o == nil { return nil @@ -7760,14 +8604,14 @@ func CreateGetDeploymentMissingValueUnion2GetDeploymentMissingValue2(getDeployme func (u *GetDeploymentMissingValueUnion2) UnmarshalJSON(data []byte) error { var getDeploymentMissingValue2 GetDeploymentMissingValue2 = GetDeploymentMissingValue2{} - if err := utils.UnmarshalJSON(data, &getDeploymentMissingValue2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentMissingValue2, "", true, nil); err == nil { u.GetDeploymentMissingValue2 = &getDeploymentMissingValue2 u.Type = GetDeploymentMissingValueUnion2TypeGetDeploymentMissingValue2 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentMissingValueUnion2TypeStr return nil @@ -7794,6 +8638,17 @@ type GetDeploymentMissing struct { Value *GetDeploymentMissingValueUnion2 `json:"value,omitempty"` } +func (g GetDeploymentMissing) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentMissing) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "key"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentMissing) GetType() GetDeploymentMissingType { if o == nil { return GetDeploymentMissingType("") @@ -7873,14 +8728,14 @@ func CreateGetDeploymentMissingEq1Number(number float64) GetDeploymentMissingEq1 func (u *GetDeploymentMissingEq1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentMissingEq1TypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentMissingEq1TypeNumber return nil @@ -7915,6 +8770,17 @@ type GetDeploymentMissingValue1 struct { Lte *float64 `json:"lte,omitempty"` } +func (g GetDeploymentMissingValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentMissingValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentMissingValue1) GetEq() *GetDeploymentMissingEq1 { if o == nil { return nil @@ -8027,14 +8893,14 @@ func CreateGetDeploymentMissingValueUnion1GetDeploymentMissingValue1(getDeployme func (u *GetDeploymentMissingValueUnion1) UnmarshalJSON(data []byte) error { var getDeploymentMissingValue1 GetDeploymentMissingValue1 = GetDeploymentMissingValue1{} - if err := utils.UnmarshalJSON(data, &getDeploymentMissingValue1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentMissingValue1, "", true, nil); err == nil { u.GetDeploymentMissingValue1 = &getDeploymentMissingValue1 u.Type = GetDeploymentMissingValueUnion1TypeGetDeploymentMissingValue1 return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentMissingValueUnion1TypeStr return nil @@ -8060,6 +8926,17 @@ type GetDeploymentMissingHost struct { Value GetDeploymentMissingValueUnion1 `json:"value"` } +func (g GetDeploymentMissingHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentMissingHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "value"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentMissingHost) GetType() GetDeploymentMissingTypeHost { if o == nil { return GetDeploymentMissingTypeHost("") @@ -8109,14 +8986,14 @@ func CreateGetDeploymentMissingUnionGetDeploymentMissing(getDeploymentMissing Ge func (u *GetDeploymentMissingUnion) UnmarshalJSON(data []byte) error { var getDeploymentMissingHost GetDeploymentMissingHost = GetDeploymentMissingHost{} - if err := utils.UnmarshalJSON(data, &getDeploymentMissingHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentMissingHost, "", true, nil); err == nil { u.GetDeploymentMissingHost = &getDeploymentMissingHost u.Type = GetDeploymentMissingUnionTypeGetDeploymentMissingHost return nil } var getDeploymentMissing GetDeploymentMissing = GetDeploymentMissing{} - if err := utils.UnmarshalJSON(data, &getDeploymentMissing, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentMissing, "", true, nil); err == nil { u.GetDeploymentMissing = &getDeploymentMissing u.Type = GetDeploymentMissingUnionTypeGetDeploymentMissing return nil @@ -8167,6 +9044,17 @@ type GetDeploymentMitigate struct { Action GetDeploymentAction `json:"action"` } +func (g GetDeploymentMitigate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentMitigate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"action"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentMitigate) GetAction() GetDeploymentAction { if o == nil { return GetDeploymentAction("") @@ -8267,14 +9155,14 @@ func CreateGetDeploymentKeyEqNumber(number float64) GetDeploymentKeyEq { func (u *GetDeploymentKeyEq) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentKeyEqTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentKeyEqTypeNumber return nil @@ -8308,6 +9196,17 @@ type GetDeploymentKey struct { Lte *float64 `json:"lte,omitempty"` } +func (g GetDeploymentKey) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentKey) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentKey) GetEq() *GetDeploymentKeyEq { if o == nil { return nil @@ -8413,14 +9312,14 @@ func CreateGetDeploymentKeyUnionGetDeploymentKey(getDeploymentKey GetDeploymentK func (u *GetDeploymentKeyUnion) UnmarshalJSON(data []byte) error { var getDeploymentKey GetDeploymentKey = GetDeploymentKey{} - if err := utils.UnmarshalJSON(data, &getDeploymentKey, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentKey, "", true, nil); err == nil { u.GetDeploymentKey = &getDeploymentKey u.Type = GetDeploymentKeyUnionTypeGetDeploymentKey return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentKeyUnionTypeStr return nil @@ -8445,6 +9344,17 @@ type GetDeploymentRouteTarget struct { Key GetDeploymentKeyUnion `json:"key"` } +func (g GetDeploymentRouteTarget) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentRouteTarget) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"key"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentRouteTarget) GetKey() GetDeploymentKeyUnion { if o == nil { return GetDeploymentKeyUnion{} @@ -8487,14 +9397,14 @@ func CreateGetDeploymentArgsArrayOfStr(arrayOfStr []string) GetDeploymentArgs { func (u *GetDeploymentArgs) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetDeploymentArgsTypeStr return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = GetDeploymentArgsTypeArrayOfStr return nil @@ -8522,6 +9432,17 @@ type GetDeploymentTransform struct { Args *GetDeploymentArgs `json:"args,omitempty"` } +func (g GetDeploymentTransform) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentTransform) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "op", "target"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentTransform) GetType() GetDeploymentTransformType { if o == nil { return GetDeploymentTransformType("") @@ -8555,6 +9476,17 @@ type GetDeploymentLocale struct { Cookie *string `json:"cookie,omitempty"` } +func (g GetDeploymentLocale) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentLocale) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentLocale) GetRedirect() map[string]string { if o == nil { return nil @@ -8593,6 +9525,17 @@ type GetDeploymentRoute1 struct { Middleware *float64 `json:"middleware,omitempty"` } +func (g GetDeploymentRoute1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentRoute1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"src"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentRoute1) GetSrc() string { if o == nil { return "" @@ -8765,26 +9708,26 @@ func CreateGetDeploymentRouteUnionGetDeploymentRoute3(getDeploymentRoute3 GetDep func (u *GetDeploymentRouteUnion) UnmarshalJSON(data []byte) error { var getDeploymentRoute3 GetDeploymentRoute3 = GetDeploymentRoute3{} - if err := utils.UnmarshalJSON(data, &getDeploymentRoute3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentRoute3, "", true, nil); err == nil { u.GetDeploymentRoute3 = &getDeploymentRoute3 u.Type = GetDeploymentRouteUnionTypeGetDeploymentRoute3 return nil } - var getDeploymentRoute2 GetDeploymentRoute2 = GetDeploymentRoute2{} - if err := utils.UnmarshalJSON(data, &getDeploymentRoute2, "", true, true); err == nil { - u.GetDeploymentRoute2 = &getDeploymentRoute2 - u.Type = GetDeploymentRouteUnionTypeGetDeploymentRoute2 - return nil - } - var getDeploymentRoute1 GetDeploymentRoute1 = GetDeploymentRoute1{} - if err := utils.UnmarshalJSON(data, &getDeploymentRoute1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentRoute1, "", true, nil); err == nil { u.GetDeploymentRoute1 = &getDeploymentRoute1 u.Type = GetDeploymentRouteUnionTypeGetDeploymentRoute1 return nil } + var getDeploymentRoute2 GetDeploymentRoute2 = GetDeploymentRoute2{} + if err := utils.UnmarshalJSON(data, &getDeploymentRoute2, "", true, nil); err == nil { + u.GetDeploymentRoute2 = &getDeploymentRoute2 + u.Type = GetDeploymentRouteUnionTypeGetDeploymentRoute2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetDeploymentRouteUnion", string(data)) } @@ -8866,6 +9809,17 @@ type GetDeploymentGitRepoBitbucket struct { OwnerType GetDeploymentOwnerType3 `json:"ownerType"` } +func (g GetDeploymentGitRepoBitbucket) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitRepoBitbucket) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"owner", "repoUuid", "slug", "type", "workspaceUuid", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitRepoBitbucket) GetOwner() string { if o == nil { return "" @@ -8998,6 +9952,17 @@ type GetDeploymentGitRepoGithub struct { OwnerType GetDeploymentOwnerType2 `json:"ownerType"` } +func (g GetDeploymentGitRepoGithub) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitRepoGithub) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"org", "repo", "repoId", "type", "repoOwnerId", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitRepoGithub) GetOrg() string { if o == nil { return "" @@ -9129,6 +10094,17 @@ type GetDeploymentGitRepoGitlab struct { OwnerType GetDeploymentOwnerType1 `json:"ownerType"` } +func (g GetDeploymentGitRepoGitlab) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentGitRepoGitlab) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"namespace", "projectId", "type", "url", "path", "defaultBranch", "name", "private", "ownerType"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentGitRepoGitlab) GetNamespace() string { if o == nil { return "" @@ -9237,27 +10213,27 @@ func CreateGetDeploymentGitRepoUnionGetDeploymentGitRepoBitbucket(getDeploymentG func (u *GetDeploymentGitRepoUnion) UnmarshalJSON(data []byte) error { - var getDeploymentGitRepoGitlab GetDeploymentGitRepoGitlab = GetDeploymentGitRepoGitlab{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoGitlab, "", true, true); err == nil { - u.GetDeploymentGitRepoGitlab = &getDeploymentGitRepoGitlab - u.Type = GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGitlab - return nil - } - var getDeploymentGitRepoGithub GetDeploymentGitRepoGithub = GetDeploymentGitRepoGithub{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoGithub, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoGithub, "", true, nil); err == nil { u.GetDeploymentGitRepoGithub = &getDeploymentGitRepoGithub u.Type = GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGithub return nil } var getDeploymentGitRepoBitbucket GetDeploymentGitRepoBitbucket = GetDeploymentGitRepoBitbucket{} - if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoBitbucket, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoBitbucket, "", true, nil); err == nil { u.GetDeploymentGitRepoBitbucket = &getDeploymentGitRepoBitbucket u.Type = GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoBitbucket return nil } + var getDeploymentGitRepoGitlab GetDeploymentGitRepoGitlab = GetDeploymentGitRepoGitlab{} + if err := utils.UnmarshalJSON(data, &getDeploymentGitRepoGitlab, "", true, nil); err == nil { + u.GetDeploymentGitRepoGitlab = &getDeploymentGitRepoGitlab + u.Type = GetDeploymentGitRepoUnionTypeGetDeploymentGitRepoGitlab + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetDeploymentGitRepoUnion", string(data)) } @@ -9281,11 +10257,33 @@ func (u GetDeploymentGitRepoUnion) MarshalJSON() ([]byte, error) { type GetDeploymentFlags2 struct { } +func (g GetDeploymentFlags2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentFlags2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + type GetDeploymentOption struct { Value *components.FlagJSONValue `json:"value"` Label *string `json:"label,omitempty"` } +func (g GetDeploymentOption) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentOption) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentOption) GetValue() *components.FlagJSONValue { if o == nil { return nil @@ -9306,6 +10304,17 @@ type GetDeploymentDefinitions struct { Description *string `json:"description,omitempty"` } +func (g GetDeploymentDefinitions) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentDefinitions) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetDeploymentDefinitions) GetOptions() []GetDeploymentOption { if o == nil { return nil @@ -9332,6 +10341,17 @@ type GetDeploymentFlags1 struct { Definitions map[string]GetDeploymentDefinitions `json:"definitions"` } +func (g GetDeploymentFlags1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentFlags1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"definitions"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentFlags1) GetDefinitions() map[string]GetDeploymentDefinitions { if o == nil { return map[string]GetDeploymentDefinitions{} @@ -9374,14 +10394,14 @@ func CreateGetDeploymentFlagsUnionArrayOfGetDeploymentFlags2(arrayOfGetDeploymen func (u *GetDeploymentFlagsUnion) UnmarshalJSON(data []byte) error { var getDeploymentFlags1 GetDeploymentFlags1 = GetDeploymentFlags1{} - if err := utils.UnmarshalJSON(data, &getDeploymentFlags1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentFlags1, "", true, nil); err == nil { u.GetDeploymentFlags1 = &getDeploymentFlags1 u.Type = GetDeploymentFlagsUnionTypeGetDeploymentFlags1 return nil } var arrayOfGetDeploymentFlags2 []GetDeploymentFlags2 = []GetDeploymentFlags2{} - if err := utils.UnmarshalJSON(data, &arrayOfGetDeploymentFlags2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetDeploymentFlags2, "", true, nil); err == nil { u.ArrayOfGetDeploymentFlags2 = arrayOfGetDeploymentFlags2 u.Type = GetDeploymentFlagsUnionTypeArrayOfGetDeploymentFlags2 return nil @@ -9402,7 +10422,7 @@ func (u GetDeploymentFlagsUnion) MarshalJSON() ([]byte, error) { return nil, errors.New("could not marshal union type GetDeploymentFlagsUnion: all fields are null") } -// GetDeploymentApplications - A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. +// GetDeploymentApplications - A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. type GetDeploymentApplications struct { IsDefaultApp *bool `json:"isDefaultApp,omitempty"` // This is the production alias, it will always show the most up to date of each application. @@ -9412,6 +10432,17 @@ type GetDeploymentApplications struct { DeploymentHost *string `json:"deploymentHost,omitempty"` } +func (g GetDeploymentApplications) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentApplications) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"productionHost"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentApplications) GetIsDefaultApp() *bool { if o == nil { return nil @@ -9440,10 +10471,42 @@ func (o *GetDeploymentApplications) GetDeploymentHost() *string { return o.DeploymentHost } +// GetDeploymentMfeConfigUploadState - The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. +type GetDeploymentMfeConfigUploadState string + +const ( + GetDeploymentMfeConfigUploadStateError GetDeploymentMfeConfigUploadState = "error" + GetDeploymentMfeConfigUploadStateSuccess GetDeploymentMfeConfigUploadState = "success" + GetDeploymentMfeConfigUploadStateNoConfig GetDeploymentMfeConfigUploadState = "no_config" +) + +func (e GetDeploymentMfeConfigUploadState) ToPointer() *GetDeploymentMfeConfigUploadState { + return &e +} +func (e *GetDeploymentMfeConfigUploadState) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "error": + fallthrough + case "success": + fallthrough + case "no_config": + *e = GetDeploymentMfeConfigUploadState(v) + return nil + default: + return fmt.Errorf("invalid value for GetDeploymentMfeConfigUploadState: %v", v) + } +} + type GetDeploymentMicrofrontends2 struct { - // A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + IsDefaultApp bool `json:"isDefaultApp"` + // A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. Applications map[string]GetDeploymentApplications `json:"applications,omitempty"` - IsDefaultApp bool `json:"isDefaultApp"` + // The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + MfeConfigUploadState *GetDeploymentMfeConfigUploadState `json:"mfeConfigUploadState,omitempty"` // The project name of the default app of this deployment's microfrontends group. DefaultAppProjectName string `json:"defaultAppProjectName"` // A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. @@ -9454,6 +10517,24 @@ type GetDeploymentMicrofrontends2 struct { MicrofrontendsAlias2Enabled *bool `json:"microfrontendsAlias2Enabled,omitempty"` } +func (g GetDeploymentMicrofrontends2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentMicrofrontends2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"isDefaultApp", "defaultAppProjectName", "groupIds"}); err != nil { + return err + } + return nil +} + +func (o *GetDeploymentMicrofrontends2) GetIsDefaultApp() bool { + if o == nil { + return false + } + return o.IsDefaultApp +} + func (o *GetDeploymentMicrofrontends2) GetApplications() map[string]GetDeploymentApplications { if o == nil { return nil @@ -9461,11 +10542,11 @@ func (o *GetDeploymentMicrofrontends2) GetApplications() map[string]GetDeploymen return o.Applications } -func (o *GetDeploymentMicrofrontends2) GetIsDefaultApp() bool { +func (o *GetDeploymentMicrofrontends2) GetMfeConfigUploadState() *GetDeploymentMfeConfigUploadState { if o == nil { - return false + return nil } - return o.IsDefaultApp + return o.MfeConfigUploadState } func (o *GetDeploymentMicrofrontends2) GetDefaultAppProjectName() string { @@ -9497,7 +10578,6 @@ func (o *GetDeploymentMicrofrontends2) GetMicrofrontendsAlias2Enabled() *bool { } type GetDeploymentMicrofrontends1 struct { - // Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. IsDefaultApp *bool `json:"isDefaultApp,omitempty"` // The project name of the default app of this deployment's microfrontends group. DefaultAppProjectName string `json:"defaultAppProjectName"` @@ -9509,6 +10589,17 @@ type GetDeploymentMicrofrontends1 struct { MicrofrontendsAlias2Enabled *bool `json:"microfrontendsAlias2Enabled,omitempty"` } +func (g GetDeploymentMicrofrontends1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentMicrofrontends1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"defaultAppProjectName", "groupIds"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentMicrofrontends1) GetIsDefaultApp() *bool { if o == nil { return nil @@ -9578,20 +10669,20 @@ func CreateGetDeploymentMicrofrontendsUnionGetDeploymentMicrofrontends2(getDeplo func (u *GetDeploymentMicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var getDeploymentMicrofrontends1 GetDeploymentMicrofrontends1 = GetDeploymentMicrofrontends1{} - if err := utils.UnmarshalJSON(data, &getDeploymentMicrofrontends1, "", true, true); err == nil { - u.GetDeploymentMicrofrontends1 = &getDeploymentMicrofrontends1 - u.Type = GetDeploymentMicrofrontendsUnionTypeGetDeploymentMicrofrontends1 - return nil - } - var getDeploymentMicrofrontends2 GetDeploymentMicrofrontends2 = GetDeploymentMicrofrontends2{} - if err := utils.UnmarshalJSON(data, &getDeploymentMicrofrontends2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentMicrofrontends2, "", true, nil); err == nil { u.GetDeploymentMicrofrontends2 = &getDeploymentMicrofrontends2 u.Type = GetDeploymentMicrofrontendsUnionTypeGetDeploymentMicrofrontends2 return nil } + var getDeploymentMicrofrontends1 GetDeploymentMicrofrontends1 = GetDeploymentMicrofrontends1{} + if err := utils.UnmarshalJSON(data, &getDeploymentMicrofrontends1, "", true, nil); err == nil { + u.GetDeploymentMicrofrontends1 = &getDeploymentMicrofrontends1 + u.Type = GetDeploymentMicrofrontendsUnionTypeGetDeploymentMicrofrontends1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetDeploymentMicrofrontendsUnion", string(data)) } @@ -9673,6 +10764,17 @@ type GetDeploymentConfig struct { IsUsingActiveCPU *bool `json:"isUsingActiveCPU,omitempty"` } +func (g GetDeploymentConfig) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentConfig) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"functionType", "functionMemoryType", "functionTimeout", "secureComputePrimaryRegion", "secureComputeFallbackRegion"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentConfig) GetVersion() *float64 { if o == nil { return nil @@ -9758,6 +10860,17 @@ type GetDeploymentDeploymentAlias struct { CompletedAt *float64 `json:"completedAt,omitempty"` } +func (g GetDeploymentDeploymentAlias) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentDeploymentAlias) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"state", "startedAt"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentDeploymentAlias) GetState() GetDeploymentState { if o == nil { return GetDeploymentState("") @@ -9784,6 +10897,17 @@ type GetDeploymentChecks struct { DeploymentAlias GetDeploymentDeploymentAlias `json:"deployment-alias"` } +func (g GetDeploymentChecks) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentChecks) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"deployment-alias"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentChecks) GetDeploymentAlias() GetDeploymentDeploymentAlias { if o == nil { return GetDeploymentDeploymentAlias{} @@ -9886,6 +11010,17 @@ type Lambdas1 struct { Checks *GetDeploymentChecks `json:"checks,omitempty"` } +func (l Lambdas1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *Lambdas1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"build", "env", "inspectorUrl", "isInConcurrentBuildsQueue", "isInSystemBuildsQueue", "projectSettings", "aliasAssigned", "bootedAt", "buildingAt", "buildSkipped", "creator", "public", "status", "id", "createdAt", "readyState", "name", "type", "meta", "regions", "url", "version", "projectId", "plan", "createdIn", "ownerId", "routes"}); err != nil { + return err + } + return nil +} + func (o *Lambdas1) GetAliasAssignedAt() *GetDeploymentAliasAssignedAt { if o == nil { return nil @@ -10503,20 +11638,20 @@ func CreateGetDeploymentResponseBodyLambdas2(lambdas2 Lambdas2) GetDeploymentRes func (u *GetDeploymentResponseBody) UnmarshalJSON(data []byte) error { - var lambdas2 Lambdas2 = Lambdas2{} - if err := utils.UnmarshalJSON(data, &lambdas2, "", true, true); err == nil { - u.Lambdas2 = &lambdas2 - u.Type = GetDeploymentResponseBodyTypeLambdas2 - return nil - } - var lambdas1 Lambdas1 = Lambdas1{} - if err := utils.UnmarshalJSON(data, &lambdas1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &lambdas1, "", true, nil); err == nil { u.Lambdas1 = &lambdas1 u.Type = GetDeploymentResponseBodyTypeLambdas1 return nil } + var lambdas2 Lambdas2 = Lambdas2{} + if err := utils.UnmarshalJSON(data, &lambdas2, "", true, nil); err == nil { + u.Lambdas2 = &lambdas2 + u.Type = GetDeploymentResponseBodyTypeLambdas2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetDeploymentResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdeploymentevents.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdeploymentevents.go index 76ee83f4..968399cd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdeploymentevents.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdeploymentevents.go @@ -73,14 +73,14 @@ func CreateStatusCodeStr(str string) StatusCode { func (u *StatusCode) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = StatusCodeTypeNumber return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = StatusCodeTypeStr return nil @@ -131,7 +131,7 @@ func (g GetDeploymentEventsRequest) MarshalJSON() ([]byte, error) { } func (g *GetDeploymentEventsRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"idOrUrl"}); err != nil { return err } return nil @@ -230,6 +230,17 @@ type StreamJSONInfo struct { ReadyState *string `json:"readyState,omitempty"` } +func (s StreamJSONInfo) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *StreamJSONInfo) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"type", "name"}); err != nil { + return err + } + return nil +} + func (o *StreamJSONInfo) GetType() string { if o == nil { return "" @@ -366,6 +377,17 @@ type ResponseBodyStreamJSON2 struct { Level *GetDeploymentEventsStreamJSONLevel `json:"level,omitempty"` } +func (r ResponseBodyStreamJSON2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *ResponseBodyStreamJSON2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"created", "date", "deploymentId", "id", "info", "serial", "type"}); err != nil { + return err + } + return nil +} + func (o *ResponseBodyStreamJSON2) GetCreated() float64 { if o == nil { return 0.0 @@ -494,6 +516,17 @@ type StreamJSONPayloadInfo struct { ReadyState *string `json:"readyState,omitempty"` } +func (s StreamJSONPayloadInfo) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *StreamJSONPayloadInfo) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"type", "name"}); err != nil { + return err + } + return nil +} + func (o *StreamJSONPayloadInfo) GetType() string { if o == nil { return "" @@ -631,6 +664,17 @@ type StreamJSONProxy struct { WafRuleID *string `json:"wafRuleId,omitempty"` } +func (s StreamJSONProxy) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *StreamJSONProxy) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"timestamp", "method", "host", "path", "userAgent", "referer", "region"}); err != nil { + return err + } + return nil +} + func (o *StreamJSONProxy) GetTimestamp() float64 { if o == nil { return 0.0 @@ -777,6 +821,17 @@ type StreamJSONPayload struct { Proxy *StreamJSONProxy `json:"proxy,omitempty"` } +func (s StreamJSONPayload) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(s, "", false) +} + +func (s *StreamJSONPayload) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"deploymentId", "id", "date", "serial"}); err != nil { + return err + } + return nil +} + func (o *StreamJSONPayload) GetDeploymentID() string { if o == nil { return "" @@ -853,6 +908,17 @@ type ResponseBodyStreamJSON1 struct { Payload StreamJSONPayload `json:"payload"` } +func (r ResponseBodyStreamJSON1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *ResponseBodyStreamJSON1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "created", "payload"}); err != nil { + return err + } + return nil +} + func (o *ResponseBodyStreamJSON1) GetType() StreamJSONType1 { if o == nil { return StreamJSONType1("") @@ -908,20 +974,20 @@ func CreateGetDeploymentEventsResponseBodyResponseBodyStreamJSON2(responseBodySt func (u *GetDeploymentEventsResponseBody) UnmarshalJSON(data []byte) error { - var responseBodyStreamJSON1 ResponseBodyStreamJSON1 = ResponseBodyStreamJSON1{} - if err := utils.UnmarshalJSON(data, &responseBodyStreamJSON1, "", true, true); err == nil { - u.ResponseBodyStreamJSON1 = &responseBodyStreamJSON1 - u.Type = GetDeploymentEventsResponseBodyTypeResponseBodyStreamJSON1 - return nil - } - var responseBodyStreamJSON2 ResponseBodyStreamJSON2 = ResponseBodyStreamJSON2{} - if err := utils.UnmarshalJSON(data, &responseBodyStreamJSON2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &responseBodyStreamJSON2, "", true, nil); err == nil { u.ResponseBodyStreamJSON2 = &responseBodyStreamJSON2 u.Type = GetDeploymentEventsResponseBodyTypeResponseBodyStreamJSON2 return nil } + var responseBodyStreamJSON1 ResponseBodyStreamJSON1 = ResponseBodyStreamJSON1{} + if err := utils.UnmarshalJSON(data, &responseBodyStreamJSON1, "", true, nil); err == nil { + u.ResponseBodyStreamJSON1 = &responseBodyStreamJSON1 + u.Type = GetDeploymentEventsResponseBodyTypeResponseBodyStreamJSON1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetDeploymentEventsResponseBody", string(data)) } @@ -946,6 +1012,17 @@ type Info struct { ReadyState *string `json:"readyState,omitempty"` } +func (i Info) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *Info) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"type", "name"}); err != nil { + return err + } + return nil +} + func (o *Info) GetType() string { if o == nil { return "" @@ -1082,6 +1159,17 @@ type GetDeploymentEventsResponseBody2 struct { Level *GetDeploymentEventsLevel `json:"level,omitempty"` } +func (g GetDeploymentEventsResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentEventsResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"created", "date", "deploymentId", "id", "info", "serial", "type"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentEventsResponseBody2) GetCreated() float64 { if o == nil { return 0.0 @@ -1210,6 +1298,17 @@ type PayloadInfo struct { ReadyState *string `json:"readyState,omitempty"` } +func (p PayloadInfo) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PayloadInfo) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"type", "name"}); err != nil { + return err + } + return nil +} + func (o *PayloadInfo) GetType() string { if o == nil { return "" @@ -1347,6 +1446,17 @@ type Proxy struct { WafRuleID *string `json:"wafRuleId,omitempty"` } +func (p Proxy) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Proxy) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"timestamp", "method", "host", "path", "userAgent", "referer", "region"}); err != nil { + return err + } + return nil +} + func (o *Proxy) GetTimestamp() float64 { if o == nil { return 0.0 @@ -1493,6 +1603,17 @@ type Payload struct { Proxy *Proxy `json:"proxy,omitempty"` } +func (p Payload) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Payload) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"deploymentId", "id", "date", "serial"}); err != nil { + return err + } + return nil +} + func (o *Payload) GetDeploymentID() string { if o == nil { return "" @@ -1569,6 +1690,17 @@ type GetDeploymentEventsResponseBody1 struct { Payload Payload `json:"payload"` } +func (g GetDeploymentEventsResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetDeploymentEventsResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "created", "payload"}); err != nil { + return err + } + return nil +} + func (o *GetDeploymentEventsResponseBody1) GetType() GetDeploymentEventsType1 { if o == nil { return GetDeploymentEventsType1("") @@ -1624,20 +1756,20 @@ func CreateGetDeploymentEventsResponseBodyUnionGetDeploymentEventsResponseBody2( func (u *GetDeploymentEventsResponseBodyUnion) UnmarshalJSON(data []byte) error { - var getDeploymentEventsResponseBody1 GetDeploymentEventsResponseBody1 = GetDeploymentEventsResponseBody1{} - if err := utils.UnmarshalJSON(data, &getDeploymentEventsResponseBody1, "", true, true); err == nil { - u.GetDeploymentEventsResponseBody1 = &getDeploymentEventsResponseBody1 - u.Type = GetDeploymentEventsResponseBodyUnionTypeGetDeploymentEventsResponseBody1 - return nil - } - var getDeploymentEventsResponseBody2 GetDeploymentEventsResponseBody2 = GetDeploymentEventsResponseBody2{} - if err := utils.UnmarshalJSON(data, &getDeploymentEventsResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getDeploymentEventsResponseBody2, "", true, nil); err == nil { u.GetDeploymentEventsResponseBody2 = &getDeploymentEventsResponseBody2 u.Type = GetDeploymentEventsResponseBodyUnionTypeGetDeploymentEventsResponseBody2 return nil } + var getDeploymentEventsResponseBody1 GetDeploymentEventsResponseBody1 = GetDeploymentEventsResponseBody1{} + if err := utils.UnmarshalJSON(data, &getDeploymentEventsResponseBody1, "", true, nil); err == nil { + u.GetDeploymentEventsResponseBody1 = &getDeploymentEventsResponseBody1 + u.Type = GetDeploymentEventsResponseBodyUnionTypeGetDeploymentEventsResponseBody1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetDeploymentEventsResponseBodyUnion", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdeployments.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdeployments.go index 194d2a40..72e15cef 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdeployments.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdeployments.go @@ -432,14 +432,14 @@ func CreateGetDeploymentsAliasAssignedBoolean(boolean bool) GetDeploymentsAliasA func (u *GetDeploymentsAliasAssigned) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetDeploymentsAliasAssignedTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = GetDeploymentsAliasAssignedTypeBoolean return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfig.go index a74544c8..438f07e0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfig.go @@ -98,6 +98,17 @@ type GetEdgeConfigPurposeExperimentation struct { ResourceID string `json:"resourceId"` } +func (g GetEdgeConfigPurposeExperimentation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigPurposeExperimentation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "resourceId"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigPurposeExperimentation) GetType() GetEdgeConfigTypeExperimentation { if o == nil { return GetEdgeConfigTypeExperimentation("") @@ -140,6 +151,17 @@ type GetEdgeConfigPurposeFlags struct { ProjectID string `json:"projectId"` } +func (g GetEdgeConfigPurposeFlags) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigPurposeFlags) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigPurposeFlags) GetType() GetEdgeConfigTypeFlags { if o == nil { return GetEdgeConfigTypeFlags("") @@ -189,14 +211,14 @@ func CreateGetEdgeConfigPurposeUnionGetEdgeConfigPurposeExperimentation(getEdgeC func (u *GetEdgeConfigPurposeUnion) UnmarshalJSON(data []byte) error { var getEdgeConfigPurposeFlags GetEdgeConfigPurposeFlags = GetEdgeConfigPurposeFlags{} - if err := utils.UnmarshalJSON(data, &getEdgeConfigPurposeFlags, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getEdgeConfigPurposeFlags, "", true, nil); err == nil { u.GetEdgeConfigPurposeFlags = &getEdgeConfigPurposeFlags u.Type = GetEdgeConfigPurposeUnionTypeGetEdgeConfigPurposeFlags return nil } var getEdgeConfigPurposeExperimentation GetEdgeConfigPurposeExperimentation = GetEdgeConfigPurposeExperimentation{} - if err := utils.UnmarshalJSON(data, &getEdgeConfigPurposeExperimentation, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getEdgeConfigPurposeExperimentation, "", true, nil); err == nil { u.GetEdgeConfigPurposeExperimentation = &getEdgeConfigPurposeExperimentation u.Type = GetEdgeConfigPurposeUnionTypeGetEdgeConfigPurposeExperimentation return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfigbackup.go b/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfigbackup.go index a5c2d94c..df811f2d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfigbackup.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getedgeconfigbackup.go @@ -54,6 +54,17 @@ type GetEdgeConfigBackupUser2 struct { Avatar *string `json:"avatar,omitempty"` } +func (g GetEdgeConfigBackupUser2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupUser2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "username", "email"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupUser2) GetID() string { if o == nil { return "" @@ -96,6 +107,17 @@ type GetEdgeConfigBackupItems2 struct { CreatedAt float64 `json:"createdAt"` } +func (g GetEdgeConfigBackupItems2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupItems2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"updatedAt", "value", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupItems2) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -132,6 +154,17 @@ type GetEdgeConfigBackupBackup2 struct { UpdatedAt float64 `json:"updatedAt"` } +func (g GetEdgeConfigBackupBackup2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupBackup2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"digest", "items", "slug", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupBackup2) GetDigest() string { if o == nil { return "" @@ -167,6 +200,17 @@ type GetEdgeConfigBackupMetadata2 struct { ItemsBytes *float64 `json:"itemsBytes,omitempty"` } +func (g GetEdgeConfigBackupMetadata2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupMetadata2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupMetadata2) GetUpdatedAt() *string { if o == nil { return nil @@ -203,6 +247,17 @@ type GetEdgeConfigBackupResponseBody2 struct { Metadata GetEdgeConfigBackupMetadata2 `json:"metadata"` } +func (g GetEdgeConfigBackupResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"user", "id", "lastModified", "backup", "metadata"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupResponseBody2) GetUser() GetEdgeConfigBackupUser2 { if o == nil { return GetEdgeConfigBackupUser2{} @@ -245,6 +300,17 @@ type GetEdgeConfigBackupItems1 struct { CreatedAt float64 `json:"createdAt"` } +func (g GetEdgeConfigBackupItems1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupItems1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"updatedAt", "value", "createdAt"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupItems1) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -281,6 +347,17 @@ type GetEdgeConfigBackupBackup1 struct { UpdatedAt float64 `json:"updatedAt"` } +func (g GetEdgeConfigBackupBackup1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupBackup1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"digest", "items", "slug", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupBackup1) GetDigest() string { if o == nil { return "" @@ -316,6 +393,17 @@ type GetEdgeConfigBackupMetadata1 struct { ItemsBytes *float64 `json:"itemsBytes,omitempty"` } +func (g GetEdgeConfigBackupMetadata1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupMetadata1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupMetadata1) GetUpdatedAt() *string { if o == nil { return nil @@ -352,6 +440,17 @@ type GetEdgeConfigBackupUser1 struct { Avatar *string `json:"avatar,omitempty"` } +func (g GetEdgeConfigBackupUser1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupUser1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "username", "email"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupUser1) GetID() string { if o == nil { return "" @@ -396,6 +495,17 @@ type GetEdgeConfigBackupResponseBody1 struct { User *GetEdgeConfigBackupUser1 `json:"user,omitempty"` } +func (g GetEdgeConfigBackupResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetEdgeConfigBackupResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "lastModified", "backup", "metadata"}); err != nil { + return err + } + return nil +} + func (o *GetEdgeConfigBackupResponseBody1) GetID() string { if o == nil { return "" @@ -465,20 +575,20 @@ func CreateGetEdgeConfigBackupResponseBodyGetEdgeConfigBackupResponseBody2(getEd func (u *GetEdgeConfigBackupResponseBody) UnmarshalJSON(data []byte) error { - var getEdgeConfigBackupResponseBody1 GetEdgeConfigBackupResponseBody1 = GetEdgeConfigBackupResponseBody1{} - if err := utils.UnmarshalJSON(data, &getEdgeConfigBackupResponseBody1, "", true, true); err == nil { - u.GetEdgeConfigBackupResponseBody1 = &getEdgeConfigBackupResponseBody1 - u.Type = GetEdgeConfigBackupResponseBodyTypeGetEdgeConfigBackupResponseBody1 - return nil - } - var getEdgeConfigBackupResponseBody2 GetEdgeConfigBackupResponseBody2 = GetEdgeConfigBackupResponseBody2{} - if err := utils.UnmarshalJSON(data, &getEdgeConfigBackupResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getEdgeConfigBackupResponseBody2, "", true, nil); err == nil { u.GetEdgeConfigBackupResponseBody2 = &getEdgeConfigBackupResponseBody2 u.Type = GetEdgeConfigBackupResponseBodyTypeGetEdgeConfigBackupResponseBody2 return nil } + var getEdgeConfigBackupResponseBody1 GetEdgeConfigBackupResponseBody1 = GetEdgeConfigBackupResponseBody1{} + if err := utils.UnmarshalJSON(data, &getEdgeConfigBackupResponseBody1, "", true, nil); err == nil { + u.GetEdgeConfigBackupResponseBody1 = &getEdgeConfigBackupResponseBody1 + u.Type = GetEdgeConfigBackupResponseBodyTypeGetEdgeConfigBackupResponseBody1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetEdgeConfigBackupResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getfirewallconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/getfirewallconfig.go index 368d25e7..649e22d0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getfirewallconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getfirewallconfig.go @@ -858,21 +858,21 @@ func CreateGetFirewallConfigValueArrayOfStr(arrayOfStr []string) GetFirewallConf func (u *GetFirewallConfigValue) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetFirewallConfigValueTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetFirewallConfigValueTypeNumber return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = GetFirewallConfigValueTypeArrayOfStr return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationresource.go b/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationresource.go index 10b8d61f..702baa34 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationresource.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationresource.go @@ -242,35 +242,35 @@ func CreateGetIntegrationResourceMetadataArrayOfNumber(arrayOfNumber []float64) func (u *GetIntegrationResourceMetadata) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetIntegrationResourceMetadataTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetIntegrationResourceMetadataTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = GetIntegrationResourceMetadataTypeBoolean return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = GetIntegrationResourceMetadataTypeArrayOfStr return nil } var arrayOfNumber []float64 = []float64{} - if err := utils.UnmarshalJSON(data, &arrayOfNumber, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfNumber, "", true, nil); err == nil { u.ArrayOfNumber = arrayOfNumber u.Type = GetIntegrationResourceMetadataTypeArrayOfNumber return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationresources.go b/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationresources.go index d9dfcd0d..78c5f05e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationresources.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getintegrationresources.go @@ -232,35 +232,35 @@ func CreateGetIntegrationResourcesMetadataArrayOfNumber(arrayOfNumber []float64) func (u *GetIntegrationResourcesMetadata) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetIntegrationResourcesMetadataTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetIntegrationResourcesMetadataTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = GetIntegrationResourcesMetadataTypeBoolean return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = GetIntegrationResourcesMetadataTypeArrayOfStr return nil } var arrayOfNumber []float64 = []float64{} - if err := utils.UnmarshalJSON(data, &arrayOfNumber, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfNumber, "", true, nil); err == nil { u.ArrayOfNumber = arrayOfNumber u.Type = GetIntegrationResourcesMetadataTypeArrayOfNumber return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getprojectdomains.go b/src/__tests__/mockserver/internal/sdk/models/operations/getprojectdomains.go index 31a252cf..ee7155d9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getprojectdomains.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getprojectdomains.go @@ -181,7 +181,7 @@ func (g GetProjectDomainsRequest) MarshalJSON() ([]byte, error) { } func (g *GetProjectDomainsRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"idOrName"}); err != nil { return err } return nil @@ -293,6 +293,17 @@ type GetProjectDomainsVerification2 struct { Reason string `json:"reason"` } +func (g GetProjectDomainsVerification2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectDomainsVerification2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "domain", "value", "reason"}); err != nil { + return err + } + return nil +} + func (o *GetProjectDomainsVerification2) GetType() string { if o == nil { return "" @@ -337,6 +348,17 @@ type GetProjectDomainsDomain2 struct { Verification []GetProjectDomainsVerification2 `json:"verification,omitempty"` } +func (g GetProjectDomainsDomain2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectDomainsDomain2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"name", "apexName", "projectId", "verified"}); err != nil { + return err + } + return nil +} + func (o *GetProjectDomainsDomain2) GetName() string { if o == nil { return "" @@ -420,6 +442,17 @@ type GetProjectDomainsResponseBody2 struct { Pagination components.Pagination `json:"pagination"` } +func (g GetProjectDomainsResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectDomainsResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"domains", "pagination"}); err != nil { + return err + } + return nil +} + func (o *GetProjectDomainsResponseBody2) GetDomains() []GetProjectDomainsDomain2 { if o == nil { return []GetProjectDomainsDomain2{} @@ -442,6 +475,17 @@ type GetProjectDomainsVerification1 struct { Reason string `json:"reason"` } +func (g GetProjectDomainsVerification1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectDomainsVerification1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "domain", "value", "reason"}); err != nil { + return err + } + return nil +} + func (o *GetProjectDomainsVerification1) GetType() string { if o == nil { return "" @@ -486,6 +530,17 @@ type GetProjectDomainsDomain1 struct { Verification []GetProjectDomainsVerification1 `json:"verification,omitempty"` } +func (g GetProjectDomainsDomain1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectDomainsDomain1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"name", "apexName", "projectId", "verified"}); err != nil { + return err + } + return nil +} + func (o *GetProjectDomainsDomain1) GetName() string { if o == nil { return "" @@ -569,6 +624,17 @@ type GetProjectDomainsPagination struct { Prev *float64 `json:"prev"` } +func (g GetProjectDomainsPagination) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectDomainsPagination) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"count", "next", "prev"}); err != nil { + return err + } + return nil +} + func (o *GetProjectDomainsPagination) GetCount() float64 { if o == nil { return 0.0 @@ -595,6 +661,17 @@ type GetProjectDomainsResponseBody1 struct { Pagination GetProjectDomainsPagination `json:"pagination"` } +func (g GetProjectDomainsResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectDomainsResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"domains", "pagination"}); err != nil { + return err + } + return nil +} + func (o *GetProjectDomainsResponseBody1) GetDomains() []GetProjectDomainsDomain1 { if o == nil { return []GetProjectDomainsDomain1{} @@ -645,14 +722,14 @@ func CreateGetProjectDomainsResponseBodyGetProjectDomainsResponseBody2(getProjec func (u *GetProjectDomainsResponseBody) UnmarshalJSON(data []byte) error { var getProjectDomainsResponseBody1 GetProjectDomainsResponseBody1 = GetProjectDomainsResponseBody1{} - if err := utils.UnmarshalJSON(data, &getProjectDomainsResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectDomainsResponseBody1, "", true, nil); err == nil { u.GetProjectDomainsResponseBody1 = &getProjectDomainsResponseBody1 u.Type = GetProjectDomainsResponseBodyTypeGetProjectDomainsResponseBody1 return nil } var getProjectDomainsResponseBody2 GetProjectDomainsResponseBody2 = GetProjectDomainsResponseBody2{} - if err := utils.UnmarshalJSON(data, &getProjectDomainsResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectDomainsResponseBody2, "", true, nil); err == nil { u.GetProjectDomainsResponseBody2 = &getProjectDomainsResponseBody2 u.Type = GetProjectDomainsResponseBodyTypeGetProjectDomainsResponseBody2 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 68bf7a3b..888dcfc6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getprojectenv.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getprojectenv.go @@ -113,14 +113,14 @@ func CreateGetProjectEnvTargetUnion3GetProjectEnvTargetEnum5(getProjectEnvTarget func (u *GetProjectEnvTargetUnion3) UnmarshalJSON(data []byte) error { var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = GetProjectEnvTargetUnion3TypeArrayOfStr return nil } var getProjectEnvTargetEnum5 GetProjectEnvTargetEnum5 = GetProjectEnvTargetEnum5("") - if err := utils.UnmarshalJSON(data, &getProjectEnvTargetEnum5, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvTargetEnum5, "", true, nil); err == nil { u.GetProjectEnvTargetEnum5 = &getProjectEnvTargetEnum5 u.Type = GetProjectEnvTargetUnion3TypeGetProjectEnvTargetEnum5 return nil @@ -204,6 +204,17 @@ type GetProjectEnvContentHintFlagsConnectionString3 struct { ProjectID string `json:"projectId"` } +func (g GetProjectEnvContentHintFlagsConnectionString3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintFlagsConnectionString3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintFlagsConnectionString3) GetType() GetProjectEnvTypeFlagsConnectionString3 { if o == nil { return GetProjectEnvTypeFlagsConnectionString3("") @@ -249,6 +260,17 @@ type GetProjectEnvContentHintIntegrationStoreSecret3 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (g GetProjectEnvContentHintIntegrationStoreSecret3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintIntegrationStoreSecret3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintIntegrationStoreSecret3) GetType() GetProjectEnvTypeIntegrationStoreSecret3 { if o == nil { return GetProjectEnvTypeIntegrationStoreSecret3("") @@ -312,6 +334,17 @@ type GetProjectEnvContentHintPostgresURLNoSsl3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURLNoSsl3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURLNoSsl3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURLNoSsl3) GetType() GetProjectEnvTypePostgresURLNoSsl3 { if o == nil { return GetProjectEnvTypePostgresURLNoSsl3("") @@ -354,6 +387,17 @@ type GetProjectEnvContentHintPostgresDatabase3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresDatabase3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresDatabase3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresDatabase3) GetType() GetProjectEnvTypePostgresDatabase3 { if o == nil { return GetProjectEnvTypePostgresDatabase3("") @@ -396,6 +440,17 @@ type GetProjectEnvContentHintPostgresPassword3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresPassword3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresPassword3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresPassword3) GetType() GetProjectEnvTypePostgresPassword3 { if o == nil { return GetProjectEnvTypePostgresPassword3("") @@ -438,6 +493,17 @@ type GetProjectEnvContentHintPostgresHost3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresHost3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresHost3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresHost3) GetType() GetProjectEnvTypePostgresHost3 { if o == nil { return GetProjectEnvTypePostgresHost3("") @@ -480,6 +546,17 @@ type GetProjectEnvContentHintPostgresUser3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresUser3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresUser3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresUser3) GetType() GetProjectEnvTypePostgresUser3 { if o == nil { return GetProjectEnvTypePostgresUser3("") @@ -522,6 +599,17 @@ type GetProjectEnvContentHintPostgresPrismaURL3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresPrismaURL3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresPrismaURL3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresPrismaURL3) GetType() GetProjectEnvTypePostgresPrismaURL3 { if o == nil { return GetProjectEnvTypePostgresPrismaURL3("") @@ -564,6 +652,17 @@ type GetProjectEnvContentHintPostgresURLNonPooling3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURLNonPooling3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURLNonPooling3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURLNonPooling3) GetType() GetProjectEnvTypePostgresURLNonPooling3 { if o == nil { return GetProjectEnvTypePostgresURLNonPooling3("") @@ -606,6 +705,17 @@ type GetProjectEnvContentHintPostgresURL3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURL3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURL3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURL3) GetType() GetProjectEnvTypePostgresURL3 { if o == nil { return GetProjectEnvTypePostgresURL3("") @@ -648,6 +758,17 @@ type GetProjectEnvContentHintBlobReadWriteToken3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintBlobReadWriteToken3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintBlobReadWriteToken3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintBlobReadWriteToken3) GetType() GetProjectEnvTypeBlobReadWriteToken3 { if o == nil { return GetProjectEnvTypeBlobReadWriteToken3("") @@ -690,6 +811,17 @@ type GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIReadOnlyToken3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIReadOnlyToken3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIReadOnlyToken3) GetType() GetProjectEnvTypeRedisRestAPIReadOnlyToken3 { if o == nil { return GetProjectEnvTypeRedisRestAPIReadOnlyToken3("") @@ -732,6 +864,17 @@ type GetProjectEnvContentHintRedisRestAPIToken3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIToken3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIToken3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIToken3) GetType() GetProjectEnvTypeRedisRestAPIToken3 { if o == nil { return GetProjectEnvTypeRedisRestAPIToken3("") @@ -774,6 +917,17 @@ type GetProjectEnvContentHintRedisRestAPIURL3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIURL3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIURL3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIURL3) GetType() GetProjectEnvTypeRedisRestAPIURL3 { if o == nil { return GetProjectEnvTypeRedisRestAPIURL3("") @@ -816,6 +970,17 @@ type GetProjectEnvContentHintRedisURL3 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisURL3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisURL3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisURL3) GetType() GetProjectEnvTypeRedisURL3 { if o == nil { return GetProjectEnvTypeRedisURL3("") @@ -1007,111 +1172,111 @@ func CreateGetProjectEnvContentHintUnion3GetProjectEnvContentHintFlagsConnection func (u *GetProjectEnvContentHintUnion3) UnmarshalJSON(data []byte) error { - var getProjectEnvContentHintPostgresURLNonPooling3 GetProjectEnvContentHintPostgresURLNonPooling3 = GetProjectEnvContentHintPostgresURLNonPooling3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling3, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresURLNonPooling3 = &getProjectEnvContentHintPostgresURLNonPooling3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNonPooling3 + var getProjectEnvContentHintIntegrationStoreSecret3 GetProjectEnvContentHintIntegrationStoreSecret3 = GetProjectEnvContentHintIntegrationStoreSecret3{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret3, "", true, nil); err == nil { + u.GetProjectEnvContentHintIntegrationStoreSecret3 = &getProjectEnvContentHintIntegrationStoreSecret3 + u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintIntegrationStoreSecret3 return nil } - var getProjectEnvContentHintPostgresPassword3 GetProjectEnvContentHintPostgresPassword3 = GetProjectEnvContentHintPostgresPassword3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword3, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresPassword3 = &getProjectEnvContentHintPostgresPassword3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPassword3 + var getProjectEnvContentHintRedisURL3 GetProjectEnvContentHintRedisURL3 = GetProjectEnvContentHintRedisURL3{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL3, "", true, nil); err == nil { + u.GetProjectEnvContentHintRedisURL3 = &getProjectEnvContentHintRedisURL3 + u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisURL3 + return nil + } + + var getProjectEnvContentHintRedisRestAPIURL3 GetProjectEnvContentHintRedisRestAPIURL3 = GetProjectEnvContentHintRedisRestAPIURL3{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL3, "", true, nil); err == nil { + u.GetProjectEnvContentHintRedisRestAPIURL3 = &getProjectEnvContentHintRedisRestAPIURL3 + u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIURL3 return nil } var getProjectEnvContentHintRedisRestAPIToken3 GetProjectEnvContentHintRedisRestAPIToken3 = GetProjectEnvContentHintRedisRestAPIToken3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken3, "", true, nil); err == nil { u.GetProjectEnvContentHintRedisRestAPIToken3 = &getProjectEnvContentHintRedisRestAPIToken3 u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIToken3 return nil } var getProjectEnvContentHintRedisRestAPIReadOnlyToken3 GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 = GetProjectEnvContentHintRedisRestAPIReadOnlyToken3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken3, "", true, nil); err == nil { u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken3 = &getProjectEnvContentHintRedisRestAPIReadOnlyToken3 u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken3 return nil } var getProjectEnvContentHintBlobReadWriteToken3 GetProjectEnvContentHintBlobReadWriteToken3 = GetProjectEnvContentHintBlobReadWriteToken3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken3, "", true, nil); err == nil { u.GetProjectEnvContentHintBlobReadWriteToken3 = &getProjectEnvContentHintBlobReadWriteToken3 u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintBlobReadWriteToken3 return nil } var getProjectEnvContentHintPostgresURL3 GetProjectEnvContentHintPostgresURL3 = GetProjectEnvContentHintPostgresURL3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL3, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresURL3 = &getProjectEnvContentHintPostgresURL3 u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURL3 return nil } - var getProjectEnvContentHintRedisRestAPIURL3 GetProjectEnvContentHintRedisRestAPIURL3 = GetProjectEnvContentHintRedisRestAPIURL3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL3, "", true, true); err == nil { - u.GetProjectEnvContentHintRedisRestAPIURL3 = &getProjectEnvContentHintRedisRestAPIURL3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisRestAPIURL3 + var getProjectEnvContentHintPostgresURLNonPooling3 GetProjectEnvContentHintPostgresURLNonPooling3 = GetProjectEnvContentHintPostgresURLNonPooling3{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling3, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresURLNonPooling3 = &getProjectEnvContentHintPostgresURLNonPooling3 + u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNonPooling3 return nil } - var getProjectEnvContentHintPostgresUser3 GetProjectEnvContentHintPostgresUser3 = GetProjectEnvContentHintPostgresUser3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser3, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresUser3 = &getProjectEnvContentHintPostgresUser3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresUser3 + var getProjectEnvContentHintPostgresPrismaURL3 GetProjectEnvContentHintPostgresPrismaURL3 = GetProjectEnvContentHintPostgresPrismaURL3{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL3, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresPrismaURL3 = &getProjectEnvContentHintPostgresPrismaURL3 + u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPrismaURL3 return nil } - var getProjectEnvContentHintRedisURL3 GetProjectEnvContentHintRedisURL3 = GetProjectEnvContentHintRedisURL3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL3, "", true, true); err == nil { - u.GetProjectEnvContentHintRedisURL3 = &getProjectEnvContentHintRedisURL3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintRedisURL3 + var getProjectEnvContentHintPostgresUser3 GetProjectEnvContentHintPostgresUser3 = GetProjectEnvContentHintPostgresUser3{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser3, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresUser3 = &getProjectEnvContentHintPostgresUser3 + u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresUser3 return nil } var getProjectEnvContentHintPostgresHost3 GetProjectEnvContentHintPostgresHost3 = GetProjectEnvContentHintPostgresHost3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost3, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresHost3 = &getProjectEnvContentHintPostgresHost3 u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresHost3 return nil } - var getProjectEnvContentHintPostgresPrismaURL3 GetProjectEnvContentHintPostgresPrismaURL3 = GetProjectEnvContentHintPostgresPrismaURL3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL3, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresPrismaURL3 = &getProjectEnvContentHintPostgresPrismaURL3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPrismaURL3 + var getProjectEnvContentHintPostgresPassword3 GetProjectEnvContentHintPostgresPassword3 = GetProjectEnvContentHintPostgresPassword3{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword3, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresPassword3 = &getProjectEnvContentHintPostgresPassword3 + u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresPassword3 return nil } var getProjectEnvContentHintPostgresDatabase3 GetProjectEnvContentHintPostgresDatabase3 = GetProjectEnvContentHintPostgresDatabase3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase3, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresDatabase3 = &getProjectEnvContentHintPostgresDatabase3 u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresDatabase3 return nil } var getProjectEnvContentHintPostgresURLNoSsl3 GetProjectEnvContentHintPostgresURLNoSsl3 = GetProjectEnvContentHintPostgresURLNoSsl3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl3, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresURLNoSsl3 = &getProjectEnvContentHintPostgresURLNoSsl3 u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintPostgresURLNoSsl3 return nil } var getProjectEnvContentHintFlagsConnectionString3 GetProjectEnvContentHintFlagsConnectionString3 = GetProjectEnvContentHintFlagsConnectionString3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString3, "", true, nil); err == nil { u.GetProjectEnvContentHintFlagsConnectionString3 = &getProjectEnvContentHintFlagsConnectionString3 u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintFlagsConnectionString3 return nil } - var getProjectEnvContentHintIntegrationStoreSecret3 GetProjectEnvContentHintIntegrationStoreSecret3 = GetProjectEnvContentHintIntegrationStoreSecret3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret3, "", true, true); err == nil { - u.GetProjectEnvContentHintIntegrationStoreSecret3 = &getProjectEnvContentHintIntegrationStoreSecret3 - u.Type = GetProjectEnvContentHintUnion3TypeGetProjectEnvContentHintIntegrationStoreSecret3 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectEnvContentHintUnion3", string(data)) } @@ -1209,6 +1374,17 @@ type GetProjectEnvInternalContentHint3 struct { EncryptedValue string `json:"encryptedValue"` } +func (g GetProjectEnvInternalContentHint3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvInternalContentHint3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvInternalContentHint3) GetType() GetProjectEnvTypeFlagsSecret3 { if o == nil { return GetProjectEnvTypeFlagsSecret3("") @@ -1247,6 +1423,17 @@ type GetProjectEnvResponseBody3 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (g GetProjectEnvResponseBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvResponseBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvResponseBody3) GetTarget() *GetProjectEnvTargetUnion3 { if o == nil { return nil @@ -1473,14 +1660,14 @@ func CreateGetProjectEnvTargetUnion2GetProjectEnvTargetEnum4(getProjectEnvTarget func (u *GetProjectEnvTargetUnion2) UnmarshalJSON(data []byte) error { var arrayOfGetProjectEnvTargetEnum3 []GetProjectEnvTargetEnum3 = []GetProjectEnvTargetEnum3{} - if err := utils.UnmarshalJSON(data, &arrayOfGetProjectEnvTargetEnum3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetProjectEnvTargetEnum3, "", true, nil); err == nil { u.ArrayOfGetProjectEnvTargetEnum3 = arrayOfGetProjectEnvTargetEnum3 u.Type = GetProjectEnvTargetUnion2TypeArrayOfGetProjectEnvTargetEnum3 return nil } var getProjectEnvTargetEnum4 GetProjectEnvTargetEnum4 = GetProjectEnvTargetEnum4("") - if err := utils.UnmarshalJSON(data, &getProjectEnvTargetEnum4, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvTargetEnum4, "", true, nil); err == nil { u.GetProjectEnvTargetEnum4 = &getProjectEnvTargetEnum4 u.Type = GetProjectEnvTargetUnion2TypeGetProjectEnvTargetEnum4 return nil @@ -1564,6 +1751,17 @@ type GetProjectEnvContentHintFlagsConnectionString2 struct { ProjectID string `json:"projectId"` } +func (g GetProjectEnvContentHintFlagsConnectionString2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintFlagsConnectionString2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintFlagsConnectionString2) GetType() GetProjectEnvTypeFlagsConnectionString2 { if o == nil { return GetProjectEnvTypeFlagsConnectionString2("") @@ -1609,6 +1807,17 @@ type GetProjectEnvContentHintIntegrationStoreSecret2 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (g GetProjectEnvContentHintIntegrationStoreSecret2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintIntegrationStoreSecret2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintIntegrationStoreSecret2) GetType() GetProjectEnvTypeIntegrationStoreSecret2 { if o == nil { return GetProjectEnvTypeIntegrationStoreSecret2("") @@ -1672,6 +1881,17 @@ type GetProjectEnvContentHintPostgresURLNoSsl2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURLNoSsl2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURLNoSsl2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURLNoSsl2) GetType() GetProjectEnvTypePostgresURLNoSsl2 { if o == nil { return GetProjectEnvTypePostgresURLNoSsl2("") @@ -1714,6 +1934,17 @@ type GetProjectEnvContentHintPostgresDatabase2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresDatabase2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresDatabase2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresDatabase2) GetType() GetProjectEnvTypePostgresDatabase2 { if o == nil { return GetProjectEnvTypePostgresDatabase2("") @@ -1756,6 +1987,17 @@ type GetProjectEnvContentHintPostgresPassword2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresPassword2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresPassword2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresPassword2) GetType() GetProjectEnvTypePostgresPassword2 { if o == nil { return GetProjectEnvTypePostgresPassword2("") @@ -1798,6 +2040,17 @@ type GetProjectEnvContentHintPostgresHost2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresHost2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresHost2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresHost2) GetType() GetProjectEnvTypePostgresHost2 { if o == nil { return GetProjectEnvTypePostgresHost2("") @@ -1840,6 +2093,17 @@ type GetProjectEnvContentHintPostgresUser2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresUser2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresUser2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresUser2) GetType() GetProjectEnvTypePostgresUser2 { if o == nil { return GetProjectEnvTypePostgresUser2("") @@ -1882,6 +2146,17 @@ type GetProjectEnvContentHintPostgresPrismaURL2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresPrismaURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresPrismaURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresPrismaURL2) GetType() GetProjectEnvTypePostgresPrismaURL2 { if o == nil { return GetProjectEnvTypePostgresPrismaURL2("") @@ -1924,6 +2199,17 @@ type GetProjectEnvContentHintPostgresURLNonPooling2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURLNonPooling2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURLNonPooling2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURLNonPooling2) GetType() GetProjectEnvTypePostgresURLNonPooling2 { if o == nil { return GetProjectEnvTypePostgresURLNonPooling2("") @@ -1966,6 +2252,17 @@ type GetProjectEnvContentHintPostgresURL2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURL2) GetType() GetProjectEnvTypePostgresURL2 { if o == nil { return GetProjectEnvTypePostgresURL2("") @@ -2008,6 +2305,17 @@ type GetProjectEnvContentHintBlobReadWriteToken2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintBlobReadWriteToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintBlobReadWriteToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintBlobReadWriteToken2) GetType() GetProjectEnvTypeBlobReadWriteToken2 { if o == nil { return GetProjectEnvTypeBlobReadWriteToken2("") @@ -2050,6 +2358,17 @@ type GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIReadOnlyToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIReadOnlyToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIReadOnlyToken2) GetType() GetProjectEnvTypeRedisRestAPIReadOnlyToken2 { if o == nil { return GetProjectEnvTypeRedisRestAPIReadOnlyToken2("") @@ -2092,6 +2411,17 @@ type GetProjectEnvContentHintRedisRestAPIToken2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIToken2) GetType() GetProjectEnvTypeRedisRestAPIToken2 { if o == nil { return GetProjectEnvTypeRedisRestAPIToken2("") @@ -2134,6 +2464,17 @@ type GetProjectEnvContentHintRedisRestAPIURL2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIURL2) GetType() GetProjectEnvTypeRedisRestAPIURL2 { if o == nil { return GetProjectEnvTypeRedisRestAPIURL2("") @@ -2176,6 +2517,17 @@ type GetProjectEnvContentHintRedisURL2 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisURL2) GetType() GetProjectEnvTypeRedisURL2 { if o == nil { return GetProjectEnvTypeRedisURL2("") @@ -2367,111 +2719,111 @@ func CreateGetProjectEnvContentHintUnion2GetProjectEnvContentHintFlagsConnection func (u *GetProjectEnvContentHintUnion2) UnmarshalJSON(data []byte) error { - var getProjectEnvContentHintPostgresURLNonPooling2 GetProjectEnvContentHintPostgresURLNonPooling2 = GetProjectEnvContentHintPostgresURLNonPooling2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling2, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresURLNonPooling2 = &getProjectEnvContentHintPostgresURLNonPooling2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNonPooling2 + var getProjectEnvContentHintIntegrationStoreSecret2 GetProjectEnvContentHintIntegrationStoreSecret2 = GetProjectEnvContentHintIntegrationStoreSecret2{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err == nil { + u.GetProjectEnvContentHintIntegrationStoreSecret2 = &getProjectEnvContentHintIntegrationStoreSecret2 + u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintIntegrationStoreSecret2 return nil } - var getProjectEnvContentHintPostgresPassword2 GetProjectEnvContentHintPostgresPassword2 = GetProjectEnvContentHintPostgresPassword2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword2, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresPassword2 = &getProjectEnvContentHintPostgresPassword2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPassword2 + var getProjectEnvContentHintRedisURL2 GetProjectEnvContentHintRedisURL2 = GetProjectEnvContentHintRedisURL2{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL2, "", true, nil); err == nil { + u.GetProjectEnvContentHintRedisURL2 = &getProjectEnvContentHintRedisURL2 + u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisURL2 + return nil + } + + var getProjectEnvContentHintRedisRestAPIURL2 GetProjectEnvContentHintRedisRestAPIURL2 = GetProjectEnvContentHintRedisRestAPIURL2{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err == nil { + u.GetProjectEnvContentHintRedisRestAPIURL2 = &getProjectEnvContentHintRedisRestAPIURL2 + u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIURL2 return nil } var getProjectEnvContentHintRedisRestAPIToken2 GetProjectEnvContentHintRedisRestAPIToken2 = GetProjectEnvContentHintRedisRestAPIToken2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err == nil { u.GetProjectEnvContentHintRedisRestAPIToken2 = &getProjectEnvContentHintRedisRestAPIToken2 u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIToken2 return nil } var getProjectEnvContentHintRedisRestAPIReadOnlyToken2 GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 = GetProjectEnvContentHintRedisRestAPIReadOnlyToken2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err == nil { u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken2 = &getProjectEnvContentHintRedisRestAPIReadOnlyToken2 u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken2 return nil } var getProjectEnvContentHintBlobReadWriteToken2 GetProjectEnvContentHintBlobReadWriteToken2 = GetProjectEnvContentHintBlobReadWriteToken2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err == nil { u.GetProjectEnvContentHintBlobReadWriteToken2 = &getProjectEnvContentHintBlobReadWriteToken2 u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintBlobReadWriteToken2 return nil } var getProjectEnvContentHintPostgresURL2 GetProjectEnvContentHintPostgresURL2 = GetProjectEnvContentHintPostgresURL2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL2, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresURL2 = &getProjectEnvContentHintPostgresURL2 u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURL2 return nil } - var getProjectEnvContentHintRedisRestAPIURL2 GetProjectEnvContentHintRedisRestAPIURL2 = GetProjectEnvContentHintRedisRestAPIURL2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL2, "", true, true); err == nil { - u.GetProjectEnvContentHintRedisRestAPIURL2 = &getProjectEnvContentHintRedisRestAPIURL2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisRestAPIURL2 + var getProjectEnvContentHintPostgresURLNonPooling2 GetProjectEnvContentHintPostgresURLNonPooling2 = GetProjectEnvContentHintPostgresURLNonPooling2{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresURLNonPooling2 = &getProjectEnvContentHintPostgresURLNonPooling2 + u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNonPooling2 return nil } - var getProjectEnvContentHintPostgresUser2 GetProjectEnvContentHintPostgresUser2 = GetProjectEnvContentHintPostgresUser2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser2, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresUser2 = &getProjectEnvContentHintPostgresUser2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresUser2 + var getProjectEnvContentHintPostgresPrismaURL2 GetProjectEnvContentHintPostgresPrismaURL2 = GetProjectEnvContentHintPostgresPrismaURL2{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresPrismaURL2 = &getProjectEnvContentHintPostgresPrismaURL2 + u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPrismaURL2 return nil } - var getProjectEnvContentHintRedisURL2 GetProjectEnvContentHintRedisURL2 = GetProjectEnvContentHintRedisURL2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL2, "", true, true); err == nil { - u.GetProjectEnvContentHintRedisURL2 = &getProjectEnvContentHintRedisURL2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintRedisURL2 + var getProjectEnvContentHintPostgresUser2 GetProjectEnvContentHintPostgresUser2 = GetProjectEnvContentHintPostgresUser2{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser2, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresUser2 = &getProjectEnvContentHintPostgresUser2 + u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresUser2 return nil } var getProjectEnvContentHintPostgresHost2 GetProjectEnvContentHintPostgresHost2 = GetProjectEnvContentHintPostgresHost2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost2, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresHost2 = &getProjectEnvContentHintPostgresHost2 u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresHost2 return nil } - var getProjectEnvContentHintPostgresPrismaURL2 GetProjectEnvContentHintPostgresPrismaURL2 = GetProjectEnvContentHintPostgresPrismaURL2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL2, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresPrismaURL2 = &getProjectEnvContentHintPostgresPrismaURL2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPrismaURL2 + var getProjectEnvContentHintPostgresPassword2 GetProjectEnvContentHintPostgresPassword2 = GetProjectEnvContentHintPostgresPassword2{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword2, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresPassword2 = &getProjectEnvContentHintPostgresPassword2 + u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresPassword2 return nil } var getProjectEnvContentHintPostgresDatabase2 GetProjectEnvContentHintPostgresDatabase2 = GetProjectEnvContentHintPostgresDatabase2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase2, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresDatabase2 = &getProjectEnvContentHintPostgresDatabase2 u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresDatabase2 return nil } var getProjectEnvContentHintPostgresURLNoSsl2 GetProjectEnvContentHintPostgresURLNoSsl2 = GetProjectEnvContentHintPostgresURLNoSsl2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresURLNoSsl2 = &getProjectEnvContentHintPostgresURLNoSsl2 u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintPostgresURLNoSsl2 return nil } var getProjectEnvContentHintFlagsConnectionString2 GetProjectEnvContentHintFlagsConnectionString2 = GetProjectEnvContentHintFlagsConnectionString2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString2, "", true, nil); err == nil { u.GetProjectEnvContentHintFlagsConnectionString2 = &getProjectEnvContentHintFlagsConnectionString2 u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintFlagsConnectionString2 return nil } - var getProjectEnvContentHintIntegrationStoreSecret2 GetProjectEnvContentHintIntegrationStoreSecret2 = GetProjectEnvContentHintIntegrationStoreSecret2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret2, "", true, true); err == nil { - u.GetProjectEnvContentHintIntegrationStoreSecret2 = &getProjectEnvContentHintIntegrationStoreSecret2 - u.Type = GetProjectEnvContentHintUnion2TypeGetProjectEnvContentHintIntegrationStoreSecret2 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectEnvContentHintUnion2", string(data)) } @@ -2569,6 +2921,17 @@ type GetProjectEnvInternalContentHint2 struct { EncryptedValue string `json:"encryptedValue"` } +func (g GetProjectEnvInternalContentHint2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvInternalContentHint2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvInternalContentHint2) GetType() GetProjectEnvTypeFlagsSecret2 { if o == nil { return GetProjectEnvTypeFlagsSecret2("") @@ -2608,6 +2971,17 @@ type GetProjectEnvResponseBody2 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (g GetProjectEnvResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvResponseBody2) GetTarget() *GetProjectEnvTargetUnion2 { if o == nil { return nil @@ -2841,14 +3215,14 @@ func CreateGetProjectEnvTargetUnion1GetProjectEnvTargetEnum2(getProjectEnvTarget func (u *GetProjectEnvTargetUnion1) UnmarshalJSON(data []byte) error { var arrayOfGetProjectEnvTargetEnum1 []GetProjectEnvTargetEnum1 = []GetProjectEnvTargetEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfGetProjectEnvTargetEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetProjectEnvTargetEnum1, "", true, nil); err == nil { u.ArrayOfGetProjectEnvTargetEnum1 = arrayOfGetProjectEnvTargetEnum1 u.Type = GetProjectEnvTargetUnion1TypeArrayOfGetProjectEnvTargetEnum1 return nil } var getProjectEnvTargetEnum2 GetProjectEnvTargetEnum2 = GetProjectEnvTargetEnum2("") - if err := utils.UnmarshalJSON(data, &getProjectEnvTargetEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvTargetEnum2, "", true, nil); err == nil { u.GetProjectEnvTargetEnum2 = &getProjectEnvTargetEnum2 u.Type = GetProjectEnvTargetUnion1TypeGetProjectEnvTargetEnum2 return nil @@ -2932,6 +3306,17 @@ type GetProjectEnvContentHintFlagsConnectionString1 struct { ProjectID string `json:"projectId"` } +func (g GetProjectEnvContentHintFlagsConnectionString1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintFlagsConnectionString1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintFlagsConnectionString1) GetType() GetProjectEnvTypeFlagsConnectionString1 { if o == nil { return GetProjectEnvTypeFlagsConnectionString1("") @@ -2977,6 +3362,17 @@ type GetProjectEnvContentHintIntegrationStoreSecret1 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (g GetProjectEnvContentHintIntegrationStoreSecret1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintIntegrationStoreSecret1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintIntegrationStoreSecret1) GetType() GetProjectEnvTypeIntegrationStoreSecret1 { if o == nil { return GetProjectEnvTypeIntegrationStoreSecret1("") @@ -3040,6 +3436,17 @@ type GetProjectEnvContentHintPostgresURLNoSsl1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURLNoSsl1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURLNoSsl1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURLNoSsl1) GetType() GetProjectEnvTypePostgresURLNoSsl1 { if o == nil { return GetProjectEnvTypePostgresURLNoSsl1("") @@ -3082,6 +3489,17 @@ type GetProjectEnvContentHintPostgresDatabase1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresDatabase1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresDatabase1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresDatabase1) GetType() GetProjectEnvTypePostgresDatabase1 { if o == nil { return GetProjectEnvTypePostgresDatabase1("") @@ -3124,6 +3542,17 @@ type GetProjectEnvContentHintPostgresPassword1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresPassword1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresPassword1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresPassword1) GetType() GetProjectEnvTypePostgresPassword1 { if o == nil { return GetProjectEnvTypePostgresPassword1("") @@ -3166,6 +3595,17 @@ type GetProjectEnvContentHintPostgresHost1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresHost1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresHost1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresHost1) GetType() GetProjectEnvTypePostgresHost1 { if o == nil { return GetProjectEnvTypePostgresHost1("") @@ -3208,6 +3648,17 @@ type GetProjectEnvContentHintPostgresUser1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresUser1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresUser1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresUser1) GetType() GetProjectEnvTypePostgresUser1 { if o == nil { return GetProjectEnvTypePostgresUser1("") @@ -3250,6 +3701,17 @@ type GetProjectEnvContentHintPostgresPrismaURL1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresPrismaURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresPrismaURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresPrismaURL1) GetType() GetProjectEnvTypePostgresPrismaURL1 { if o == nil { return GetProjectEnvTypePostgresPrismaURL1("") @@ -3292,6 +3754,17 @@ type GetProjectEnvContentHintPostgresURLNonPooling1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURLNonPooling1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURLNonPooling1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURLNonPooling1) GetType() GetProjectEnvTypePostgresURLNonPooling1 { if o == nil { return GetProjectEnvTypePostgresURLNonPooling1("") @@ -3334,6 +3807,17 @@ type GetProjectEnvContentHintPostgresURL1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintPostgresURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintPostgresURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintPostgresURL1) GetType() GetProjectEnvTypePostgresURL1 { if o == nil { return GetProjectEnvTypePostgresURL1("") @@ -3376,6 +3860,17 @@ type GetProjectEnvContentHintBlobReadWriteToken1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintBlobReadWriteToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintBlobReadWriteToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintBlobReadWriteToken1) GetType() GetProjectEnvTypeBlobReadWriteToken1 { if o == nil { return GetProjectEnvTypeBlobReadWriteToken1("") @@ -3418,6 +3913,17 @@ type GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIReadOnlyToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIReadOnlyToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIReadOnlyToken1) GetType() GetProjectEnvTypeRedisRestAPIReadOnlyToken1 { if o == nil { return GetProjectEnvTypeRedisRestAPIReadOnlyToken1("") @@ -3460,6 +3966,17 @@ type GetProjectEnvContentHintRedisRestAPIToken1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIToken1) GetType() GetProjectEnvTypeRedisRestAPIToken1 { if o == nil { return GetProjectEnvTypeRedisRestAPIToken1("") @@ -3502,6 +4019,17 @@ type GetProjectEnvContentHintRedisRestAPIURL1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisRestAPIURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisRestAPIURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisRestAPIURL1) GetType() GetProjectEnvTypeRedisRestAPIURL1 { if o == nil { return GetProjectEnvTypeRedisRestAPIURL1("") @@ -3544,6 +4072,17 @@ type GetProjectEnvContentHintRedisURL1 struct { StoreID string `json:"storeId"` } +func (g GetProjectEnvContentHintRedisURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvContentHintRedisURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvContentHintRedisURL1) GetType() GetProjectEnvTypeRedisURL1 { if o == nil { return GetProjectEnvTypeRedisURL1("") @@ -3735,111 +4274,111 @@ func CreateGetProjectEnvContentHintUnion1GetProjectEnvContentHintFlagsConnection func (u *GetProjectEnvContentHintUnion1) UnmarshalJSON(data []byte) error { - var getProjectEnvContentHintPostgresURLNonPooling1 GetProjectEnvContentHintPostgresURLNonPooling1 = GetProjectEnvContentHintPostgresURLNonPooling1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling1, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresURLNonPooling1 = &getProjectEnvContentHintPostgresURLNonPooling1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNonPooling1 + var getProjectEnvContentHintIntegrationStoreSecret1 GetProjectEnvContentHintIntegrationStoreSecret1 = GetProjectEnvContentHintIntegrationStoreSecret1{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err == nil { + u.GetProjectEnvContentHintIntegrationStoreSecret1 = &getProjectEnvContentHintIntegrationStoreSecret1 + u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintIntegrationStoreSecret1 return nil } - var getProjectEnvContentHintPostgresPassword1 GetProjectEnvContentHintPostgresPassword1 = GetProjectEnvContentHintPostgresPassword1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword1, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresPassword1 = &getProjectEnvContentHintPostgresPassword1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPassword1 + var getProjectEnvContentHintRedisURL1 GetProjectEnvContentHintRedisURL1 = GetProjectEnvContentHintRedisURL1{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL1, "", true, nil); err == nil { + u.GetProjectEnvContentHintRedisURL1 = &getProjectEnvContentHintRedisURL1 + u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisURL1 + return nil + } + + var getProjectEnvContentHintRedisRestAPIURL1 GetProjectEnvContentHintRedisRestAPIURL1 = GetProjectEnvContentHintRedisRestAPIURL1{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err == nil { + u.GetProjectEnvContentHintRedisRestAPIURL1 = &getProjectEnvContentHintRedisRestAPIURL1 + u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIURL1 return nil } var getProjectEnvContentHintRedisRestAPIToken1 GetProjectEnvContentHintRedisRestAPIToken1 = GetProjectEnvContentHintRedisRestAPIToken1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err == nil { u.GetProjectEnvContentHintRedisRestAPIToken1 = &getProjectEnvContentHintRedisRestAPIToken1 u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIToken1 return nil } var getProjectEnvContentHintRedisRestAPIReadOnlyToken1 GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 = GetProjectEnvContentHintRedisRestAPIReadOnlyToken1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err == nil { u.GetProjectEnvContentHintRedisRestAPIReadOnlyToken1 = &getProjectEnvContentHintRedisRestAPIReadOnlyToken1 u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIReadOnlyToken1 return nil } var getProjectEnvContentHintBlobReadWriteToken1 GetProjectEnvContentHintBlobReadWriteToken1 = GetProjectEnvContentHintBlobReadWriteToken1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err == nil { u.GetProjectEnvContentHintBlobReadWriteToken1 = &getProjectEnvContentHintBlobReadWriteToken1 u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintBlobReadWriteToken1 return nil } var getProjectEnvContentHintPostgresURL1 GetProjectEnvContentHintPostgresURL1 = GetProjectEnvContentHintPostgresURL1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURL1, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresURL1 = &getProjectEnvContentHintPostgresURL1 u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURL1 return nil } - var getProjectEnvContentHintRedisRestAPIURL1 GetProjectEnvContentHintRedisRestAPIURL1 = GetProjectEnvContentHintRedisRestAPIURL1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisRestAPIURL1, "", true, true); err == nil { - u.GetProjectEnvContentHintRedisRestAPIURL1 = &getProjectEnvContentHintRedisRestAPIURL1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisRestAPIURL1 + var getProjectEnvContentHintPostgresURLNonPooling1 GetProjectEnvContentHintPostgresURLNonPooling1 = GetProjectEnvContentHintPostgresURLNonPooling1{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresURLNonPooling1 = &getProjectEnvContentHintPostgresURLNonPooling1 + u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNonPooling1 return nil } - var getProjectEnvContentHintPostgresUser1 GetProjectEnvContentHintPostgresUser1 = GetProjectEnvContentHintPostgresUser1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser1, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresUser1 = &getProjectEnvContentHintPostgresUser1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresUser1 + var getProjectEnvContentHintPostgresPrismaURL1 GetProjectEnvContentHintPostgresPrismaURL1 = GetProjectEnvContentHintPostgresPrismaURL1{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresPrismaURL1 = &getProjectEnvContentHintPostgresPrismaURL1 + u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPrismaURL1 return nil } - var getProjectEnvContentHintRedisURL1 GetProjectEnvContentHintRedisURL1 = GetProjectEnvContentHintRedisURL1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintRedisURL1, "", true, true); err == nil { - u.GetProjectEnvContentHintRedisURL1 = &getProjectEnvContentHintRedisURL1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintRedisURL1 + var getProjectEnvContentHintPostgresUser1 GetProjectEnvContentHintPostgresUser1 = GetProjectEnvContentHintPostgresUser1{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresUser1, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresUser1 = &getProjectEnvContentHintPostgresUser1 + u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresUser1 return nil } var getProjectEnvContentHintPostgresHost1 GetProjectEnvContentHintPostgresHost1 = GetProjectEnvContentHintPostgresHost1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresHost1, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresHost1 = &getProjectEnvContentHintPostgresHost1 u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresHost1 return nil } - var getProjectEnvContentHintPostgresPrismaURL1 GetProjectEnvContentHintPostgresPrismaURL1 = GetProjectEnvContentHintPostgresPrismaURL1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPrismaURL1, "", true, true); err == nil { - u.GetProjectEnvContentHintPostgresPrismaURL1 = &getProjectEnvContentHintPostgresPrismaURL1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPrismaURL1 + var getProjectEnvContentHintPostgresPassword1 GetProjectEnvContentHintPostgresPassword1 = GetProjectEnvContentHintPostgresPassword1{} + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresPassword1, "", true, nil); err == nil { + u.GetProjectEnvContentHintPostgresPassword1 = &getProjectEnvContentHintPostgresPassword1 + u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresPassword1 return nil } var getProjectEnvContentHintPostgresDatabase1 GetProjectEnvContentHintPostgresDatabase1 = GetProjectEnvContentHintPostgresDatabase1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresDatabase1, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresDatabase1 = &getProjectEnvContentHintPostgresDatabase1 u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresDatabase1 return nil } var getProjectEnvContentHintPostgresURLNoSsl1 GetProjectEnvContentHintPostgresURLNoSsl1 = GetProjectEnvContentHintPostgresURLNoSsl1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err == nil { u.GetProjectEnvContentHintPostgresURLNoSsl1 = &getProjectEnvContentHintPostgresURLNoSsl1 u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintPostgresURLNoSsl1 return nil } var getProjectEnvContentHintFlagsConnectionString1 GetProjectEnvContentHintFlagsConnectionString1 = GetProjectEnvContentHintFlagsConnectionString1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintFlagsConnectionString1, "", true, nil); err == nil { u.GetProjectEnvContentHintFlagsConnectionString1 = &getProjectEnvContentHintFlagsConnectionString1 u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintFlagsConnectionString1 return nil } - var getProjectEnvContentHintIntegrationStoreSecret1 GetProjectEnvContentHintIntegrationStoreSecret1 = GetProjectEnvContentHintIntegrationStoreSecret1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvContentHintIntegrationStoreSecret1, "", true, true); err == nil { - u.GetProjectEnvContentHintIntegrationStoreSecret1 = &getProjectEnvContentHintIntegrationStoreSecret1 - u.Type = GetProjectEnvContentHintUnion1TypeGetProjectEnvContentHintIntegrationStoreSecret1 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectEnvContentHintUnion1", string(data)) } @@ -3937,6 +4476,17 @@ type GetProjectEnvInternalContentHint1 struct { EncryptedValue string `json:"encryptedValue"` } +func (g GetProjectEnvInternalContentHint1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvInternalContentHint1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvInternalContentHint1) GetType() GetProjectEnvTypeFlagsSecret1 { if o == nil { return GetProjectEnvTypeFlagsSecret1("") @@ -3974,6 +4524,17 @@ type GetProjectEnvResponseBody1 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (g GetProjectEnvResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectEnvResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"decrypted", "type", "key"}); err != nil { + return err + } + return nil +} + func (o *GetProjectEnvResponseBody1) GetDecrypted() bool { if o == nil { return false @@ -4146,26 +4707,26 @@ func CreateGetProjectEnvResponseBodyGetProjectEnvResponseBody3(getProjectEnvResp func (u *GetProjectEnvResponseBody) UnmarshalJSON(data []byte) error { var getProjectEnvResponseBody1 GetProjectEnvResponseBody1 = GetProjectEnvResponseBody1{} - if err := utils.UnmarshalJSON(data, &getProjectEnvResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvResponseBody1, "", true, nil); err == nil { u.GetProjectEnvResponseBody1 = &getProjectEnvResponseBody1 u.Type = GetProjectEnvResponseBodyTypeGetProjectEnvResponseBody1 return nil } - var getProjectEnvResponseBody3 GetProjectEnvResponseBody3 = GetProjectEnvResponseBody3{} - if err := utils.UnmarshalJSON(data, &getProjectEnvResponseBody3, "", true, true); err == nil { - u.GetProjectEnvResponseBody3 = &getProjectEnvResponseBody3 - u.Type = GetProjectEnvResponseBodyTypeGetProjectEnvResponseBody3 - return nil - } - var getProjectEnvResponseBody2 GetProjectEnvResponseBody2 = GetProjectEnvResponseBody2{} - if err := utils.UnmarshalJSON(data, &getProjectEnvResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectEnvResponseBody2, "", true, nil); err == nil { u.GetProjectEnvResponseBody2 = &getProjectEnvResponseBody2 u.Type = GetProjectEnvResponseBodyTypeGetProjectEnvResponseBody2 return nil } + var getProjectEnvResponseBody3 GetProjectEnvResponseBody3 = GetProjectEnvResponseBody3{} + if err := utils.UnmarshalJSON(data, &getProjectEnvResponseBody3, "", true, nil); err == nil { + u.GetProjectEnvResponseBody3 = &getProjectEnvResponseBody3 + u.Type = GetProjectEnvResponseBodyTypeGetProjectEnvResponseBody3 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectEnvResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getprojectmembers.go b/src/__tests__/mockserver/internal/sdk/models/operations/getprojectmembers.go index e6e57f59..f2b025a4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getprojectmembers.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getprojectmembers.go @@ -202,6 +202,17 @@ type GetProjectMembersMember struct { TeamRole GetProjectMembersTeamRole `json:"teamRole"` } +func (g GetProjectMembersMember) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectMembersMember) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"email", "role", "computedProjectRole", "uid", "username", "createdAt", "teamRole"}); err != nil { + return err + } + return nil +} + func (o *GetProjectMembersMember) GetAvatar() *string { if o == nil { return nil @@ -275,6 +286,17 @@ type GetProjectMembersPagination struct { Prev *float64 `json:"prev"` } +func (g GetProjectMembersPagination) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectMembersPagination) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"hasNext", "count", "next", "prev"}); err != nil { + return err + } + return nil +} + func (o *GetProjectMembersPagination) GetHasNext() bool { if o == nil { return false @@ -309,6 +331,17 @@ type GetProjectMembersResponseBody2 struct { Pagination GetProjectMembersPagination `json:"pagination"` } +func (g GetProjectMembersResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectMembersResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"members", "pagination"}); err != nil { + return err + } + return nil +} + func (o *GetProjectMembersResponseBody2) GetMembers() []GetProjectMembersMember { if o == nil { return []GetProjectMembersMember{} @@ -326,6 +359,17 @@ func (o *GetProjectMembersResponseBody2) GetPagination() GetProjectMembersPagina type GetProjectMembersResponseBody1 struct { } +func (g GetProjectMembersResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectMembersResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { + return err + } + return nil +} + type GetProjectMembersResponseBodyType string const ( @@ -361,20 +405,20 @@ func CreateGetProjectMembersResponseBodyGetProjectMembersResponseBody2(getProjec func (u *GetProjectMembersResponseBody) UnmarshalJSON(data []byte) error { - var getProjectMembersResponseBody1 GetProjectMembersResponseBody1 = GetProjectMembersResponseBody1{} - if err := utils.UnmarshalJSON(data, &getProjectMembersResponseBody1, "", true, true); err == nil { - u.GetProjectMembersResponseBody1 = &getProjectMembersResponseBody1 - u.Type = GetProjectMembersResponseBodyTypeGetProjectMembersResponseBody1 - return nil - } - var getProjectMembersResponseBody2 GetProjectMembersResponseBody2 = GetProjectMembersResponseBody2{} - if err := utils.UnmarshalJSON(data, &getProjectMembersResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectMembersResponseBody2, "", true, nil); err == nil { u.GetProjectMembersResponseBody2 = &getProjectMembersResponseBody2 u.Type = GetProjectMembersResponseBodyTypeGetProjectMembersResponseBody2 return nil } + var getProjectMembersResponseBody1 GetProjectMembersResponseBody1 = GetProjectMembersResponseBody1{} + if err := utils.UnmarshalJSON(data, &getProjectMembersResponseBody1, "", true, nil); err == nil { + u.GetProjectMembersResponseBody1 = &getProjectMembersResponseBody1 + u.Type = GetProjectMembersResponseBodyTypeGetProjectMembersResponseBody1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectMembersResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getprojects.go b/src/__tests__/mockserver/internal/sdk/models/operations/getprojects.go index 0f8e93dc..87b45b64 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getprojects.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getprojects.go @@ -64,6 +64,33 @@ func (e *ElasticConcurrencyEnabled) UnmarshalJSON(data []byte) error { } } +// SortByElasticConcurrency - Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first +type SortByElasticConcurrency string + +const ( + SortByElasticConcurrencyDesc SortByElasticConcurrency = "desc" + SortByElasticConcurrencyAsc SortByElasticConcurrency = "asc" +) + +func (e SortByElasticConcurrency) ToPointer() *SortByElasticConcurrency { + return &e +} +func (e *SortByElasticConcurrency) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "desc": + fallthrough + case "asc": + *e = SortByElasticConcurrency(v) + return nil + default: + return fmt.Errorf("invalid value for SortByElasticConcurrency: %v", v) + } +} + type GetProjectsRequest struct { // Query only projects updated after the given timestamp From *string `queryParam:"style=form,explode=true,name=from"` @@ -88,6 +115,8 @@ type GetProjectsRequest struct { Deprecated *bool `queryParam:"style=form,explode=true,name=deprecated"` // Filter results by projects with elastic concurrency enabled ElasticConcurrencyEnabled *ElasticConcurrencyEnabled `queryParam:"style=form,explode=true,name=elasticConcurrencyEnabled"` + // Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first + SortByElasticConcurrency *SortByElasticConcurrency `queryParam:"style=form,explode=true,name=sortByElasticConcurrency"` // The Team identifier to perform the request on behalf of. TeamID *string `queryParam:"style=form,explode=true,name=teamId"` // The Team slug to perform the request on behalf of. @@ -178,6 +207,13 @@ func (o *GetProjectsRequest) GetElasticConcurrencyEnabled() *ElasticConcurrencyE return o.ElasticConcurrencyEnabled } +func (o *GetProjectsRequest) GetSortByElasticConcurrency() *SortByElasticConcurrency { + if o == nil { + return nil + } + return o.SortByElasticConcurrency +} + func (o *GetProjectsRequest) GetTeamID() *string { if o == nil { return nil @@ -363,14 +399,14 @@ func CreateGetProjectsEnvIDUnionGetProjectsEnvIDEnum(getProjectsEnvIDEnum GetPro func (u *GetProjectsEnvIDUnion) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetProjectsEnvIDUnionTypeStr return nil } var getProjectsEnvIDEnum GetProjectsEnvIDEnum = GetProjectsEnvIDEnum("") - if err := utils.UnmarshalJSON(data, &getProjectsEnvIDEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsEnvIDEnum, "", true, nil); err == nil { u.GetProjectsEnvIDEnum = &getProjectsEnvIDEnum u.Type = GetProjectsEnvIDUnionTypeGetProjectsEnvIDEnum return nil @@ -580,12 +616,18 @@ func (o *GetProjectsDataCache) GetUnlimited() *bool { return o.Unlimited } +// GetProjectsDeploymentExpiration - Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. type GetProjectsDeploymentExpiration struct { - ExpirationDays *float64 `json:"expirationDays,omitempty"` + // Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. + ExpirationDays *float64 `json:"expirationDays,omitempty"` + // Number of days to keep production deployments before soft deletion. ExpirationDaysProduction *float64 `json:"expirationDaysProduction,omitempty"` - ExpirationDaysCanceled *float64 `json:"expirationDaysCanceled,omitempty"` - ExpirationDaysErrored *float64 `json:"expirationDaysErrored,omitempty"` - DeploymentsToKeep *float64 `json:"deploymentsToKeep,omitempty"` + // Number of days to keep canceled deployments before soft deletion. + ExpirationDaysCanceled *float64 `json:"expirationDaysCanceled,omitempty"` + // Number of days to keep errored deployments before soft deletion. + ExpirationDaysErrored *float64 `json:"expirationDaysErrored,omitempty"` + // Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. + DeploymentsToKeep *float64 `json:"deploymentsToKeep,omitempty"` } func (o *GetProjectsDeploymentExpiration) GetExpirationDays() *float64 { @@ -716,14 +758,14 @@ func CreateGetProjectsTargetUnionGetProjectsTargetEnum2(getProjectsTargetEnum2 G func (u *GetProjectsTargetUnion) UnmarshalJSON(data []byte) error { var arrayOfGetProjectsTargetEnum1 []GetProjectsTargetEnum1 = []GetProjectsTargetEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfGetProjectsTargetEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetProjectsTargetEnum1, "", true, nil); err == nil { u.ArrayOfGetProjectsTargetEnum1 = arrayOfGetProjectsTargetEnum1 u.Type = GetProjectsTargetUnionTypeArrayOfGetProjectsTargetEnum1 return nil } var getProjectsTargetEnum2 GetProjectsTargetEnum2 = GetProjectsTargetEnum2("") - if err := utils.UnmarshalJSON(data, &getProjectsTargetEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsTargetEnum2, "", true, nil); err == nil { u.GetProjectsTargetEnum2 = &getProjectsTargetEnum2 u.Type = GetProjectsTargetUnionTypeGetProjectsTargetEnum2 return nil @@ -807,6 +849,17 @@ type GetProjectsContentHintFlagsConnectionString struct { ProjectID string `json:"projectId"` } +func (g GetProjectsContentHintFlagsConnectionString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintFlagsConnectionString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintFlagsConnectionString) GetType() GetProjectsTypeFlagsConnectionString { if o == nil { return GetProjectsTypeFlagsConnectionString("") @@ -852,6 +905,17 @@ type GetProjectsContentHintIntegrationStoreSecret struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (g GetProjectsContentHintIntegrationStoreSecret) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintIntegrationStoreSecret) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintIntegrationStoreSecret) GetType() GetProjectsTypeIntegrationStoreSecret { if o == nil { return GetProjectsTypeIntegrationStoreSecret("") @@ -915,6 +979,17 @@ type GetProjectsContentHintPostgresURLNoSsl struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintPostgresURLNoSsl) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintPostgresURLNoSsl) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintPostgresURLNoSsl) GetType() GetProjectsTypePostgresURLNoSsl { if o == nil { return GetProjectsTypePostgresURLNoSsl("") @@ -957,6 +1032,17 @@ type GetProjectsContentHintPostgresDatabase struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintPostgresDatabase) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintPostgresDatabase) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintPostgresDatabase) GetType() GetProjectsTypePostgresDatabase { if o == nil { return GetProjectsTypePostgresDatabase("") @@ -999,6 +1085,17 @@ type GetProjectsContentHintPostgresPassword struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintPostgresPassword) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintPostgresPassword) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintPostgresPassword) GetType() GetProjectsTypePostgresPassword { if o == nil { return GetProjectsTypePostgresPassword("") @@ -1041,6 +1138,17 @@ type GetProjectsContentHintPostgresHost struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintPostgresHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintPostgresHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintPostgresHost) GetType() GetProjectsTypePostgresHost { if o == nil { return GetProjectsTypePostgresHost("") @@ -1083,6 +1191,17 @@ type GetProjectsContentHintPostgresUser struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintPostgresUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintPostgresUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintPostgresUser) GetType() GetProjectsTypePostgresUser { if o == nil { return GetProjectsTypePostgresUser("") @@ -1125,6 +1244,17 @@ type GetProjectsContentHintPostgresPrismaURL struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintPostgresPrismaURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintPostgresPrismaURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintPostgresPrismaURL) GetType() GetProjectsTypePostgresPrismaURL { if o == nil { return GetProjectsTypePostgresPrismaURL("") @@ -1167,6 +1297,17 @@ type GetProjectsContentHintPostgresURLNonPooling struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintPostgresURLNonPooling) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintPostgresURLNonPooling) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintPostgresURLNonPooling) GetType() GetProjectsTypePostgresURLNonPooling { if o == nil { return GetProjectsTypePostgresURLNonPooling("") @@ -1209,6 +1350,17 @@ type GetProjectsContentHintPostgresURL struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintPostgresURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintPostgresURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintPostgresURL) GetType() GetProjectsTypePostgresURL { if o == nil { return GetProjectsTypePostgresURL("") @@ -1251,6 +1403,17 @@ type GetProjectsContentHintBlobReadWriteToken struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintBlobReadWriteToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintBlobReadWriteToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintBlobReadWriteToken) GetType() GetProjectsTypeBlobReadWriteToken { if o == nil { return GetProjectsTypeBlobReadWriteToken("") @@ -1293,6 +1456,17 @@ type GetProjectsContentHintRedisRestAPIReadOnlyToken struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintRedisRestAPIReadOnlyToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintRedisRestAPIReadOnlyToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintRedisRestAPIReadOnlyToken) GetType() GetProjectsTypeRedisRestAPIReadOnlyToken { if o == nil { return GetProjectsTypeRedisRestAPIReadOnlyToken("") @@ -1335,6 +1509,17 @@ type GetProjectsContentHintRedisRestAPIToken struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintRedisRestAPIToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintRedisRestAPIToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintRedisRestAPIToken) GetType() GetProjectsTypeRedisRestAPIToken { if o == nil { return GetProjectsTypeRedisRestAPIToken("") @@ -1377,6 +1562,17 @@ type GetProjectsContentHintRedisRestAPIURL struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintRedisRestAPIURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintRedisRestAPIURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintRedisRestAPIURL) GetType() GetProjectsTypeRedisRestAPIURL { if o == nil { return GetProjectsTypeRedisRestAPIURL("") @@ -1419,6 +1615,17 @@ type GetProjectsContentHintRedisURL struct { StoreID string `json:"storeId"` } +func (g GetProjectsContentHintRedisURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsContentHintRedisURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsContentHintRedisURL) GetType() GetProjectsTypeRedisURL { if o == nil { return GetProjectsTypeRedisURL("") @@ -1610,111 +1817,111 @@ func CreateGetProjectsContentHintUnionGetProjectsContentHintFlagsConnectionStrin func (u *GetProjectsContentHintUnion) UnmarshalJSON(data []byte) error { - var getProjectsContentHintPostgresURLNonPooling GetProjectsContentHintPostgresURLNonPooling = GetProjectsContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURLNonPooling, "", true, true); err == nil { - u.GetProjectsContentHintPostgresURLNonPooling = &getProjectsContentHintPostgresURLNonPooling - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNonPooling + var getProjectsContentHintIntegrationStoreSecret GetProjectsContentHintIntegrationStoreSecret = GetProjectsContentHintIntegrationStoreSecret{} + if err := utils.UnmarshalJSON(data, &getProjectsContentHintIntegrationStoreSecret, "", true, nil); err == nil { + u.GetProjectsContentHintIntegrationStoreSecret = &getProjectsContentHintIntegrationStoreSecret + u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintIntegrationStoreSecret return nil } - var getProjectsContentHintPostgresPassword GetProjectsContentHintPostgresPassword = GetProjectsContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresPassword, "", true, true); err == nil { - u.GetProjectsContentHintPostgresPassword = &getProjectsContentHintPostgresPassword - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPassword + var getProjectsContentHintRedisURL GetProjectsContentHintRedisURL = GetProjectsContentHintRedisURL{} + if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisURL, "", true, nil); err == nil { + u.GetProjectsContentHintRedisURL = &getProjectsContentHintRedisURL + u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisURL + return nil + } + + var getProjectsContentHintRedisRestAPIURL GetProjectsContentHintRedisRestAPIURL = GetProjectsContentHintRedisRestAPIURL{} + if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIURL, "", true, nil); err == nil { + u.GetProjectsContentHintRedisRestAPIURL = &getProjectsContentHintRedisRestAPIURL + u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIURL return nil } var getProjectsContentHintRedisRestAPIToken GetProjectsContentHintRedisRestAPIToken = GetProjectsContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIToken, "", true, nil); err == nil { u.GetProjectsContentHintRedisRestAPIToken = &getProjectsContentHintRedisRestAPIToken u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIToken return nil } var getProjectsContentHintRedisRestAPIReadOnlyToken GetProjectsContentHintRedisRestAPIReadOnlyToken = GetProjectsContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIReadOnlyToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { u.GetProjectsContentHintRedisRestAPIReadOnlyToken = &getProjectsContentHintRedisRestAPIReadOnlyToken u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIReadOnlyToken return nil } var getProjectsContentHintBlobReadWriteToken GetProjectsContentHintBlobReadWriteToken = GetProjectsContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintBlobReadWriteToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsContentHintBlobReadWriteToken, "", true, nil); err == nil { u.GetProjectsContentHintBlobReadWriteToken = &getProjectsContentHintBlobReadWriteToken u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintBlobReadWriteToken return nil } var getProjectsContentHintPostgresURL GetProjectsContentHintPostgresURL = GetProjectsContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURL, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURL, "", true, nil); err == nil { u.GetProjectsContentHintPostgresURL = &getProjectsContentHintPostgresURL u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURL return nil } - var getProjectsContentHintRedisRestAPIURL GetProjectsContentHintRedisRestAPIURL = GetProjectsContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisRestAPIURL, "", true, true); err == nil { - u.GetProjectsContentHintRedisRestAPIURL = &getProjectsContentHintRedisRestAPIURL - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisRestAPIURL + var getProjectsContentHintPostgresURLNonPooling GetProjectsContentHintPostgresURLNonPooling = GetProjectsContentHintPostgresURLNonPooling{} + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURLNonPooling, "", true, nil); err == nil { + u.GetProjectsContentHintPostgresURLNonPooling = &getProjectsContentHintPostgresURLNonPooling + u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNonPooling return nil } - var getProjectsContentHintPostgresUser GetProjectsContentHintPostgresUser = GetProjectsContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresUser, "", true, true); err == nil { - u.GetProjectsContentHintPostgresUser = &getProjectsContentHintPostgresUser - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresUser + var getProjectsContentHintPostgresPrismaURL GetProjectsContentHintPostgresPrismaURL = GetProjectsContentHintPostgresPrismaURL{} + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresPrismaURL, "", true, nil); err == nil { + u.GetProjectsContentHintPostgresPrismaURL = &getProjectsContentHintPostgresPrismaURL + u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPrismaURL return nil } - var getProjectsContentHintRedisURL GetProjectsContentHintRedisURL = GetProjectsContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintRedisURL, "", true, true); err == nil { - u.GetProjectsContentHintRedisURL = &getProjectsContentHintRedisURL - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintRedisURL + var getProjectsContentHintPostgresUser GetProjectsContentHintPostgresUser = GetProjectsContentHintPostgresUser{} + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresUser, "", true, nil); err == nil { + u.GetProjectsContentHintPostgresUser = &getProjectsContentHintPostgresUser + u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresUser return nil } var getProjectsContentHintPostgresHost GetProjectsContentHintPostgresHost = GetProjectsContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresHost, "", true, nil); err == nil { u.GetProjectsContentHintPostgresHost = &getProjectsContentHintPostgresHost u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresHost return nil } - var getProjectsContentHintPostgresPrismaURL GetProjectsContentHintPostgresPrismaURL = GetProjectsContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresPrismaURL, "", true, true); err == nil { - u.GetProjectsContentHintPostgresPrismaURL = &getProjectsContentHintPostgresPrismaURL - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPrismaURL + var getProjectsContentHintPostgresPassword GetProjectsContentHintPostgresPassword = GetProjectsContentHintPostgresPassword{} + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresPassword, "", true, nil); err == nil { + u.GetProjectsContentHintPostgresPassword = &getProjectsContentHintPostgresPassword + u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresPassword return nil } var getProjectsContentHintPostgresDatabase GetProjectsContentHintPostgresDatabase = GetProjectsContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresDatabase, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresDatabase, "", true, nil); err == nil { u.GetProjectsContentHintPostgresDatabase = &getProjectsContentHintPostgresDatabase u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresDatabase return nil } var getProjectsContentHintPostgresURLNoSsl GetProjectsContentHintPostgresURLNoSsl = GetProjectsContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURLNoSsl, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsContentHintPostgresURLNoSsl, "", true, nil); err == nil { u.GetProjectsContentHintPostgresURLNoSsl = &getProjectsContentHintPostgresURLNoSsl u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintPostgresURLNoSsl return nil } var getProjectsContentHintFlagsConnectionString GetProjectsContentHintFlagsConnectionString = GetProjectsContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintFlagsConnectionString, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsContentHintFlagsConnectionString, "", true, nil); err == nil { u.GetProjectsContentHintFlagsConnectionString = &getProjectsContentHintFlagsConnectionString u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintFlagsConnectionString return nil } - var getProjectsContentHintIntegrationStoreSecret GetProjectsContentHintIntegrationStoreSecret = GetProjectsContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &getProjectsContentHintIntegrationStoreSecret, "", true, true); err == nil { - u.GetProjectsContentHintIntegrationStoreSecret = &getProjectsContentHintIntegrationStoreSecret - u.Type = GetProjectsContentHintUnionTypeGetProjectsContentHintIntegrationStoreSecret - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectsContentHintUnion", string(data)) } @@ -2800,6 +3007,17 @@ type GetProjectsDeployHook5 struct { URL string `json:"url"` } +func (g GetProjectsDeployHook5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsDeployHook5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsDeployHook5) GetCreatedAt() *float64 { if o == nil { return nil @@ -2851,6 +3069,17 @@ type GetProjectsLinkGithubCustomHost struct { ProductionBranch string `json:"productionBranch"` } +func (g GetProjectsLinkGithubCustomHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsLinkGithubCustomHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"org", "type", "host", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsLinkGithubCustomHost) GetOrg() string { if o == nil { return "" @@ -2966,6 +3195,17 @@ type GetProjectsDeployHook4 struct { URL string `json:"url"` } +func (g GetProjectsDeployHook4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsDeployHook4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsDeployHook4) GetCreatedAt() *float64 { if o == nil { return nil @@ -3016,6 +3256,17 @@ type GetProjectsLinkBitbucket struct { ProductionBranch string `json:"productionBranch"` } +func (g GetProjectsLinkBitbucket) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsLinkBitbucket) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"name", "slug", "owner", "type", "uuid", "workspaceUuid", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsLinkBitbucket) GetName() string { if o == nil { return "" @@ -3131,6 +3382,17 @@ type GetProjectsDeployHook3 struct { URL string `json:"url"` } +func (g GetProjectsDeployHook3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsDeployHook3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsDeployHook3) GetCreatedAt() *float64 { if o == nil { return nil @@ -3183,6 +3445,17 @@ type GetProjectsLinkGitlab struct { ProductionBranch string `json:"productionBranch"` } +func (g GetProjectsLinkGitlab) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsLinkGitlab) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"projectId", "projectName", "projectNameWithNamespace", "projectNamespace", "projectUrl", "type", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsLinkGitlab) GetProjectID() string { if o == nil { return "" @@ -3305,6 +3578,17 @@ type GetProjectsDeployHook2 struct { URL string `json:"url"` } +func (g GetProjectsDeployHook2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsDeployHook2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsDeployHook2) GetCreatedAt() *float64 { if o == nil { return nil @@ -3355,6 +3639,17 @@ type GetProjectsLinkGithubLimited struct { ProductionBranch string `json:"productionBranch"` } +func (g GetProjectsLinkGithubLimited) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsLinkGithubLimited) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "org", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsLinkGithubLimited) GetType() GetProjectsTypeGithubLimited { if o == nil { return GetProjectsTypeGithubLimited("") @@ -3463,6 +3758,17 @@ type GetProjectsDeployHook1 struct { URL string `json:"url"` } +func (g GetProjectsDeployHook1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsDeployHook1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsDeployHook1) GetCreatedAt() *float64 { if o == nil { return nil @@ -3513,6 +3819,17 @@ type GetProjectsLinkGithub struct { ProductionBranch string `json:"productionBranch"` } +func (g GetProjectsLinkGithub) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsLinkGithub) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"org", "type", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsLinkGithub) GetOrg() string { if o == nil { return "" @@ -3657,38 +3974,38 @@ func CreateGetProjectsLinkUnionGetProjectsLinkGithubCustomHost(getProjectsLinkGi func (u *GetProjectsLinkUnion) UnmarshalJSON(data []byte) error { - var getProjectsLinkGithub GetProjectsLinkGithub = GetProjectsLinkGithub{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkGithub, "", true, true); err == nil { - u.GetProjectsLinkGithub = &getProjectsLinkGithub - u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGithub - return nil - } - - var getProjectsLinkGithubLimited GetProjectsLinkGithubLimited = GetProjectsLinkGithubLimited{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkGithubLimited, "", true, true); err == nil { - u.GetProjectsLinkGithubLimited = &getProjectsLinkGithubLimited - u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGithubLimited + var getProjectsLinkGitlab GetProjectsLinkGitlab = GetProjectsLinkGitlab{} + if err := utils.UnmarshalJSON(data, &getProjectsLinkGitlab, "", true, nil); err == nil { + u.GetProjectsLinkGitlab = &getProjectsLinkGitlab + u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGitlab return nil } var getProjectsLinkBitbucket GetProjectsLinkBitbucket = GetProjectsLinkBitbucket{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkBitbucket, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsLinkBitbucket, "", true, nil); err == nil { u.GetProjectsLinkBitbucket = &getProjectsLinkBitbucket u.Type = GetProjectsLinkUnionTypeGetProjectsLinkBitbucket return nil } var getProjectsLinkGithubCustomHost GetProjectsLinkGithubCustomHost = GetProjectsLinkGithubCustomHost{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkGithubCustomHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsLinkGithubCustomHost, "", true, nil); err == nil { u.GetProjectsLinkGithubCustomHost = &getProjectsLinkGithubCustomHost u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGithubCustomHost return nil } - var getProjectsLinkGitlab GetProjectsLinkGitlab = GetProjectsLinkGitlab{} - if err := utils.UnmarshalJSON(data, &getProjectsLinkGitlab, "", true, true); err == nil { - u.GetProjectsLinkGitlab = &getProjectsLinkGitlab - u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGitlab + var getProjectsLinkGithub GetProjectsLinkGithub = GetProjectsLinkGithub{} + if err := utils.UnmarshalJSON(data, &getProjectsLinkGithub, "", true, nil); err == nil { + u.GetProjectsLinkGithub = &getProjectsLinkGithub + u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGithub + return nil + } + + var getProjectsLinkGithubLimited GetProjectsLinkGithubLimited = GetProjectsLinkGithubLimited{} + if err := utils.UnmarshalJSON(data, &getProjectsLinkGithubLimited, "", true, nil); err == nil { + u.GetProjectsLinkGithubLimited = &getProjectsLinkGithubLimited + u.Type = GetProjectsLinkUnionTypeGetProjectsLinkGithubLimited return nil } @@ -3725,6 +4042,17 @@ type GetProjectsMicrofrontends2 struct { Enabled bool `json:"enabled"` } +func (g GetProjectsMicrofrontends2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsMicrofrontends2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsMicrofrontends2) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -3761,6 +4089,17 @@ type GetProjectsMicrofrontends1 struct { RouteObservabilityToThisProject *bool `json:"routeObservabilityToThisProject,omitempty"` } +func (g GetProjectsMicrofrontends1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsMicrofrontends1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsMicrofrontends1) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -3837,20 +4176,20 @@ func CreateGetProjectsMicrofrontendsUnionGetProjectsMicrofrontends2(getProjectsM func (u *GetProjectsMicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var getProjectsMicrofrontends2 GetProjectsMicrofrontends2 = GetProjectsMicrofrontends2{} - if err := utils.UnmarshalJSON(data, &getProjectsMicrofrontends2, "", true, true); err == nil { - u.GetProjectsMicrofrontends2 = &getProjectsMicrofrontends2 - u.Type = GetProjectsMicrofrontendsUnionTypeGetProjectsMicrofrontends2 - return nil - } - var getProjectsMicrofrontends1 GetProjectsMicrofrontends1 = GetProjectsMicrofrontends1{} - if err := utils.UnmarshalJSON(data, &getProjectsMicrofrontends1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsMicrofrontends1, "", true, nil); err == nil { u.GetProjectsMicrofrontends1 = &getProjectsMicrofrontends1 u.Type = GetProjectsMicrofrontendsUnionTypeGetProjectsMicrofrontends1 return nil } + var getProjectsMicrofrontends2 GetProjectsMicrofrontends2 = GetProjectsMicrofrontends2{} + if err := utils.UnmarshalJSON(data, &getProjectsMicrofrontends2, "", true, nil); err == nil { + u.GetProjectsMicrofrontends2 = &getProjectsMicrofrontends2 + u.Type = GetProjectsMicrofrontendsUnionTypeGetProjectsMicrofrontends2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectsMicrofrontendsUnion", string(data)) } @@ -4359,14 +4698,14 @@ func CreateGetProjectsAliasAssignedBoolean(boolean bool) GetProjectsAliasAssigne func (u *GetProjectsAliasAssigned) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetProjectsAliasAssignedTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = GetProjectsAliasAssignedTypeBoolean return nil @@ -6918,6 +7257,17 @@ type GetProjectsProtectionBypassAutomationBypass struct { Scope GetProjectsScopeAutomationBypass `json:"scope"` } +func (g GetProjectsProtectionBypassAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsProtectionBypassAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsProtectionBypassAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -6970,6 +7320,17 @@ type GetProjectsProtectionBypassIntegrationAutomationBypass struct { ConfigurationID string `json:"configurationId"` } +func (g GetProjectsProtectionBypassIntegrationAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsProtectionBypassIntegrationAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"createdAt", "createdBy", "scope", "integrationId", "configurationId"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsProtectionBypassIntegrationAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -7039,20 +7400,20 @@ func CreateGetProjectsProtectionBypassUnionGetProjectsProtectionBypassAutomation func (u *GetProjectsProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var getProjectsProtectionBypassAutomationBypass GetProjectsProtectionBypassAutomationBypass = GetProjectsProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &getProjectsProtectionBypassAutomationBypass, "", true, true); err == nil { - u.GetProjectsProtectionBypassAutomationBypass = &getProjectsProtectionBypassAutomationBypass - u.Type = GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassAutomationBypass - return nil - } - var getProjectsProtectionBypassIntegrationAutomationBypass GetProjectsProtectionBypassIntegrationAutomationBypass = GetProjectsProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &getProjectsProtectionBypassIntegrationAutomationBypass, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { u.GetProjectsProtectionBypassIntegrationAutomationBypass = &getProjectsProtectionBypassIntegrationAutomationBypass u.Type = GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassIntegrationAutomationBypass return nil } + var getProjectsProtectionBypassAutomationBypass GetProjectsProtectionBypassAutomationBypass = GetProjectsProtectionBypassAutomationBypass{} + if err := utils.UnmarshalJSON(data, &getProjectsProtectionBypassAutomationBypass, "", true, nil); err == nil { + u.GetProjectsProtectionBypassAutomationBypass = &getProjectsProtectionBypassAutomationBypass + u.Type = GetProjectsProtectionBypassUnionTypeGetProjectsProtectionBypassAutomationBypass + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectsProtectionBypassUnion", string(data)) } @@ -7107,6 +7468,17 @@ type GetProjectsTrustedIps2 struct { DeploymentType GetProjectsTrustedIpsDeploymentType2 `json:"deploymentType"` } +func (g GetProjectsTrustedIps2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsTrustedIps2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsTrustedIps2) GetDeploymentType() GetProjectsTrustedIpsDeploymentType2 { if o == nil { return GetProjectsTrustedIpsDeploymentType2("") @@ -7154,6 +7526,17 @@ type GetProjectsAddress struct { Note *string `json:"note,omitempty"` } +func (g GetProjectsAddress) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsAddress) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsAddress) GetValue() string { if o == nil { return "" @@ -7200,6 +7583,17 @@ type GetProjectsTrustedIps1 struct { ProtectionMode GetProjectsProtectionMode `json:"protectionMode"` } +func (g GetProjectsTrustedIps1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetProjectsTrustedIps1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"deploymentType", "addresses", "protectionMode"}); err != nil { + return err + } + return nil +} + func (o *GetProjectsTrustedIps1) GetDeploymentType() GetProjectsTrustedIpsDeploymentType1 { if o == nil { return GetProjectsTrustedIpsDeploymentType1("") @@ -7255,20 +7649,20 @@ func CreateGetProjectsTrustedIpsUnionGetProjectsTrustedIps2(getProjectsTrustedIp func (u *GetProjectsTrustedIpsUnion) UnmarshalJSON(data []byte) error { - var getProjectsTrustedIps2 GetProjectsTrustedIps2 = GetProjectsTrustedIps2{} - if err := utils.UnmarshalJSON(data, &getProjectsTrustedIps2, "", true, true); err == nil { - u.GetProjectsTrustedIps2 = &getProjectsTrustedIps2 - u.Type = GetProjectsTrustedIpsUnionTypeGetProjectsTrustedIps2 - return nil - } - var getProjectsTrustedIps1 GetProjectsTrustedIps1 = GetProjectsTrustedIps1{} - if err := utils.UnmarshalJSON(data, &getProjectsTrustedIps1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getProjectsTrustedIps1, "", true, nil); err == nil { u.GetProjectsTrustedIps1 = &getProjectsTrustedIps1 u.Type = GetProjectsTrustedIpsUnionTypeGetProjectsTrustedIps1 return nil } + var getProjectsTrustedIps2 GetProjectsTrustedIps2 = GetProjectsTrustedIps2{} + if err := utils.UnmarshalJSON(data, &getProjectsTrustedIps2, "", true, nil); err == nil { + u.GetProjectsTrustedIps2 = &getProjectsTrustedIps2 + u.Type = GetProjectsTrustedIpsUnionTypeGetProjectsTrustedIps2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetProjectsTrustedIpsUnion", string(data)) } @@ -7771,28 +8165,29 @@ type GetProjectsProject struct { CustomerSupportCodeVisibility *bool `json:"customerSupportCodeVisibility,omitempty"` Crons *GetProjectsCrons `json:"crons,omitempty"` DataCache *GetProjectsDataCache `json:"dataCache,omitempty"` - DeploymentExpiration *GetProjectsDeploymentExpiration `json:"deploymentExpiration,omitempty"` - DevCommand *string `json:"devCommand,omitempty"` - DirectoryListing bool `json:"directoryListing"` - InstallCommand *string `json:"installCommand,omitempty"` - Env []GetProjectsEnv `json:"env,omitempty"` - CustomEnvironments []GetProjectsCustomEnvironment `json:"customEnvironments,omitempty"` - Framework *GetProjectsFramework `json:"framework,omitempty"` - GitForkProtection *bool `json:"gitForkProtection,omitempty"` - GitLFS *bool `json:"gitLFS,omitempty"` - ID string `json:"id"` - IPBuckets []GetProjectsIPBucket `json:"ipBuckets,omitempty"` - LatestDeployments []GetProjectsLatestDeployment `json:"latestDeployments,omitempty"` - Link *GetProjectsLinkUnion `json:"link,omitempty"` - Microfrontends *GetProjectsMicrofrontendsUnion `json:"microfrontends,omitempty"` - Name string `json:"name"` - NodeVersion GetProjectsNodeVersion `json:"nodeVersion"` - OptionsAllowlist *GetProjectsOptionsAllowlist `json:"optionsAllowlist,omitempty"` - OutputDirectory *string `json:"outputDirectory,omitempty"` - PasswordProtection *GetProjectsPasswordProtection `json:"passwordProtection,omitempty"` - ProductionDeploymentsFastLane *bool `json:"productionDeploymentsFastLane,omitempty"` - PublicSource *bool `json:"publicSource,omitempty"` - ResourceConfig GetProjectsResourceConfig `json:"resourceConfig"` + // Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + DeploymentExpiration *GetProjectsDeploymentExpiration `json:"deploymentExpiration,omitempty"` + DevCommand *string `json:"devCommand,omitempty"` + DirectoryListing bool `json:"directoryListing"` + InstallCommand *string `json:"installCommand,omitempty"` + Env []GetProjectsEnv `json:"env,omitempty"` + CustomEnvironments []GetProjectsCustomEnvironment `json:"customEnvironments,omitempty"` + Framework *GetProjectsFramework `json:"framework,omitempty"` + GitForkProtection *bool `json:"gitForkProtection,omitempty"` + GitLFS *bool `json:"gitLFS,omitempty"` + ID string `json:"id"` + IPBuckets []GetProjectsIPBucket `json:"ipBuckets,omitempty"` + LatestDeployments []GetProjectsLatestDeployment `json:"latestDeployments,omitempty"` + Link *GetProjectsLinkUnion `json:"link,omitempty"` + Microfrontends *GetProjectsMicrofrontendsUnion `json:"microfrontends,omitempty"` + Name string `json:"name"` + NodeVersion GetProjectsNodeVersion `json:"nodeVersion"` + OptionsAllowlist *GetProjectsOptionsAllowlist `json:"optionsAllowlist,omitempty"` + OutputDirectory *string `json:"outputDirectory,omitempty"` + PasswordProtection *GetProjectsPasswordProtection `json:"passwordProtection,omitempty"` + ProductionDeploymentsFastLane *bool `json:"productionDeploymentsFastLane,omitempty"` + PublicSource *bool `json:"publicSource,omitempty"` + ResourceConfig GetProjectsResourceConfig `json:"resourceConfig"` // Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. RollbackDescription *GetProjectsRollbackDescription `json:"rollbackDescription,omitempty"` // Project-level rolling release configuration that defines how deployments should be gradually rolled out diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getrecords.go b/src/__tests__/mockserver/internal/sdk/models/operations/getrecords.go index f8bf91e4..e5f6f6d4 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getrecords.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getrecords.go @@ -133,6 +133,17 @@ type Record2 struct { Comment *string `json:"comment,omitempty"` } +func (r Record2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Record2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"id", "slug", "name", "type", "value", "creator", "created", "updated", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *Record2) GetID() string { if o == nil { return "" @@ -238,6 +249,17 @@ type GetRecordsResponseBody2 struct { Pagination components.Pagination `json:"pagination"` } +func (g GetRecordsResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetRecordsResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"records", "pagination"}); err != nil { + return err + } + return nil +} + func (o *GetRecordsResponseBody2) GetRecords() []Record2 { if o == nil { return []Record2{} @@ -319,6 +341,17 @@ type Record1 struct { Comment *string `json:"comment,omitempty"` } +func (r Record1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Record1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"id", "slug", "name", "type", "value", "creator", "created", "updated", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *Record1) GetID() string { if o == nil { return "" @@ -421,6 +454,17 @@ type GetRecordsResponseBody1 struct { Records []Record1 `json:"records"` } +func (g GetRecordsResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetRecordsResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"records"}); err != nil { + return err + } + return nil +} + func (o *GetRecordsResponseBody1) GetRecords() []Record1 { if o == nil { return []Record1{} @@ -474,22 +518,22 @@ func CreateGetRecordsResponseBodyGetRecordsResponseBody2(getRecordsResponseBody2 func (u *GetRecordsResponseBody) UnmarshalJSON(data []byte) error { - var getRecordsResponseBody1 GetRecordsResponseBody1 = GetRecordsResponseBody1{} - if err := utils.UnmarshalJSON(data, &getRecordsResponseBody1, "", true, true); err == nil { - u.GetRecordsResponseBody1 = &getRecordsResponseBody1 - u.Type = GetRecordsResponseBodyTypeGetRecordsResponseBody1 - return nil - } - var getRecordsResponseBody2 GetRecordsResponseBody2 = GetRecordsResponseBody2{} - if err := utils.UnmarshalJSON(data, &getRecordsResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &getRecordsResponseBody2, "", true, nil); err == nil { u.GetRecordsResponseBody2 = &getRecordsResponseBody2 u.Type = GetRecordsResponseBodyTypeGetRecordsResponseBody2 return nil } + var getRecordsResponseBody1 GetRecordsResponseBody1 = GetRecordsResponseBody1{} + if err := utils.UnmarshalJSON(data, &getRecordsResponseBody1, "", true, nil); err == nil { + u.GetRecordsResponseBody1 = &getRecordsResponseBody1 + u.Type = GetRecordsResponseBodyTypeGetRecordsResponseBody1 + return nil + } + var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetRecordsResponseBodyTypeStr 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 2ad785cc..54bc189b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getrollingreleasebillingstatus.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getrollingreleasebillingstatus.go @@ -69,6 +69,17 @@ type AvailableSlots struct { Message string `json:"message"` } +func (a AvailableSlots) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AvailableSlots) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"availableSlots", "reason", "message"}); err != nil { + return err + } + return nil +} + func (o *AvailableSlots) GetAvailableSlots() float64 { if o == nil { return 0.0 @@ -120,6 +131,17 @@ type NoAvailableSlots struct { EnabledProjects []string `json:"enabledProjects"` } +func (n NoAvailableSlots) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(n, "", false) +} + +func (n *NoAvailableSlots) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &n, "", false, []string{"availableSlots", "reason", "message", "enabledProjects"}); err != nil { + return err + } + return nil +} + func (o *NoAvailableSlots) GetAvailableSlots() float64 { if o == nil { return 0.0 @@ -200,6 +222,17 @@ type UnlimitedSlots struct { Message string `json:"message"` } +func (u UnlimitedSlots) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UnlimitedSlots) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"availableSlots", "reason", "message"}); err != nil { + return err + } + return nil +} + func (o *UnlimitedSlots) GetAvailableSlots() AvailableSlotsEnum { if o == nil { return AvailableSlotsEnum("") @@ -250,6 +283,17 @@ type PlanNotSupported struct { Message string `json:"message"` } +func (p PlanNotSupported) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PlanNotSupported) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"availableSlots", "reason", "message"}); err != nil { + return err + } + return nil +} + func (o *PlanNotSupported) GetAvailableSlots() float64 { if o == nil { return 0.0 @@ -327,34 +371,34 @@ 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 + } + var planNotSupported PlanNotSupported = PlanNotSupported{} - if err := utils.UnmarshalJSON(data, &planNotSupported, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &planNotSupported, "", true, nil); err == nil { u.PlanNotSupported = &planNotSupported u.Type = GetRollingReleaseBillingStatusResponseBodyTypePlanNotSupported return nil } var unlimitedSlots UnlimitedSlots = UnlimitedSlots{} - if err := utils.UnmarshalJSON(data, &unlimitedSlots, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &unlimitedSlots, "", true, nil); err == nil { u.UnlimitedSlots = &unlimitedSlots u.Type = GetRollingReleaseBillingStatusResponseBodyTypeUnlimitedSlots return nil } var availableSlots AvailableSlots = AvailableSlots{} - if err := utils.UnmarshalJSON(data, &availableSlots, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &availableSlots, "", true, nil); err == nil { u.AvailableSlots = &availableSlots u.Type = GetRollingReleaseBillingStatusResponseBodyTypeAvailableSlots return nil } - var noAvailableSlots NoAvailableSlots = NoAvailableSlots{} - if err := utils.UnmarshalJSON(data, &noAvailableSlots, "", true, true); err == nil { - u.NoAvailableSlots = &noAvailableSlots - u.Type = GetRollingReleaseBillingStatusResponseBodyTypeNoAvailableSlots - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetRollingReleaseBillingStatusResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getteamaccessrequest.go b/src/__tests__/mockserver/internal/sdk/models/operations/getteamaccessrequest.go index 6ec3ddef..f4380ae1 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getteamaccessrequest.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getteamaccessrequest.go @@ -117,14 +117,14 @@ func CreateGetTeamAccessRequestGitUserIDNumber(number float64) GetTeamAccessRequ func (u *GetTeamAccessRequestGitUserID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetTeamAccessRequestGitUserIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetTeamAccessRequestGitUserIDTypeNumber return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getteammembers.go b/src/__tests__/mockserver/internal/sdk/models/operations/getteammembers.go index e52471ce..8cf76464 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getteammembers.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getteammembers.go @@ -201,12 +201,12 @@ type GetTeamMembersOrigin string const ( GetTeamMembersOriginTeams GetTeamMembersOrigin = "teams" GetTeamMembersOriginLink GetTeamMembersOrigin = "link" - GetTeamMembersOriginSaml GetTeamMembersOrigin = "saml" + GetTeamMembersOriginMail GetTeamMembersOrigin = "mail" + GetTeamMembersOriginImport GetTeamMembersOrigin = "import" GetTeamMembersOriginGithub GetTeamMembersOrigin = "github" GetTeamMembersOriginGitlab GetTeamMembersOrigin = "gitlab" GetTeamMembersOriginBitbucket GetTeamMembersOrigin = "bitbucket" - GetTeamMembersOriginMail GetTeamMembersOrigin = "mail" - GetTeamMembersOriginImport GetTeamMembersOrigin = "import" + GetTeamMembersOriginSaml GetTeamMembersOrigin = "saml" GetTeamMembersOriginDsync GetTeamMembersOrigin = "dsync" GetTeamMembersOriginFeedback GetTeamMembersOrigin = "feedback" GetTeamMembersOriginOrganizationTeams GetTeamMembersOrigin = "organization-teams" @@ -225,7 +225,9 @@ func (e *GetTeamMembersOrigin) UnmarshalJSON(data []byte) error { fallthrough case "link": fallthrough - case "saml": + case "mail": + fallthrough + case "import": fallthrough case "github": fallthrough @@ -233,9 +235,7 @@ func (e *GetTeamMembersOrigin) UnmarshalJSON(data []byte) error { fallthrough case "bitbucket": fallthrough - case "mail": - fallthrough - case "import": + case "saml": fallthrough case "dsync": fallthrough @@ -284,14 +284,14 @@ func CreateGetTeamMembersGitUserIDNumber(number float64) GetTeamMembersGitUserID func (u *GetTeamMembersGitUserID) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GetTeamMembersGitUserIDTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GetTeamMembersGitUserIDTypeNumber return nil @@ -634,6 +634,97 @@ func (e *EmailInviteCodeRole) UnmarshalJSON(data []byte) error { } } +type GetTeamMembersTeamRole string + +const ( + GetTeamMembersTeamRoleOwner GetTeamMembersTeamRole = "OWNER" + GetTeamMembersTeamRoleMember GetTeamMembersTeamRole = "MEMBER" + GetTeamMembersTeamRoleDeveloper GetTeamMembersTeamRole = "DEVELOPER" + GetTeamMembersTeamRoleViewer GetTeamMembersTeamRole = "VIEWER" + GetTeamMembersTeamRoleBilling GetTeamMembersTeamRole = "BILLING" + GetTeamMembersTeamRoleContributor GetTeamMembersTeamRole = "CONTRIBUTOR" + GetTeamMembersTeamRoleSecurity GetTeamMembersTeamRole = "SECURITY" + GetTeamMembersTeamRoleViewerForPlus GetTeamMembersTeamRole = "VIEWER_FOR_PLUS" +) + +func (e GetTeamMembersTeamRole) ToPointer() *GetTeamMembersTeamRole { + return &e +} +func (e *GetTeamMembersTeamRole) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "OWNER": + fallthrough + case "MEMBER": + fallthrough + case "DEVELOPER": + fallthrough + case "VIEWER": + fallthrough + case "BILLING": + fallthrough + case "CONTRIBUTOR": + fallthrough + case "SECURITY": + fallthrough + case "VIEWER_FOR_PLUS": + *e = GetTeamMembersTeamRole(v) + return nil + default: + return fmt.Errorf("invalid value for GetTeamMembersTeamRole: %v", v) + } +} + +type GetTeamMembersTeamPermission string + +const ( + GetTeamMembersTeamPermissionIntegrationManager GetTeamMembersTeamPermission = "IntegrationManager" + GetTeamMembersTeamPermissionCreateProject GetTeamMembersTeamPermission = "CreateProject" + GetTeamMembersTeamPermissionFullProductionDeployment GetTeamMembersTeamPermission = "FullProductionDeployment" + GetTeamMembersTeamPermissionUsageViewer GetTeamMembersTeamPermission = "UsageViewer" + GetTeamMembersTeamPermissionEnvVariableManager GetTeamMembersTeamPermission = "EnvVariableManager" + GetTeamMembersTeamPermissionEnvironmentManager GetTeamMembersTeamPermission = "EnvironmentManager" + GetTeamMembersTeamPermissionV0Builder GetTeamMembersTeamPermission = "V0Builder" + GetTeamMembersTeamPermissionV0Chatter GetTeamMembersTeamPermission = "V0Chatter" + GetTeamMembersTeamPermissionV0Viewer GetTeamMembersTeamPermission = "V0Viewer" +) + +func (e GetTeamMembersTeamPermission) ToPointer() *GetTeamMembersTeamPermission { + return &e +} +func (e *GetTeamMembersTeamPermission) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "IntegrationManager": + fallthrough + case "CreateProject": + fallthrough + case "FullProductionDeployment": + fallthrough + case "UsageViewer": + fallthrough + case "EnvVariableManager": + fallthrough + case "EnvironmentManager": + fallthrough + case "V0Builder": + fallthrough + case "V0Chatter": + fallthrough + case "V0Viewer": + *e = GetTeamMembersTeamPermission(v) + return nil + default: + return fmt.Errorf("invalid value for GetTeamMembersTeamPermission: %v", v) + } +} + type Projects string const ( @@ -664,15 +755,17 @@ func (e *Projects) UnmarshalJSON(data []byte) error { } type EmailInviteCode struct { - AccessGroups []string `json:"accessGroups,omitempty"` - ID string `json:"id"` - Email *string `json:"email,omitempty"` - Role *EmailInviteCodeRole `json:"role,omitempty"` - IsDSyncUser bool `json:"isDSyncUser"` - CreatedAt *float64 `json:"createdAt,omitempty"` - Expired *bool `json:"expired,omitempty"` - Projects map[string]Projects `json:"projects,omitempty"` - Entitlements []string `json:"entitlements,omitempty"` + AccessGroups []string `json:"accessGroups,omitempty"` + ID string `json:"id"` + Email *string `json:"email,omitempty"` + Role *EmailInviteCodeRole `json:"role,omitempty"` + TeamRoles []GetTeamMembersTeamRole `json:"teamRoles,omitempty"` + TeamPermissions []GetTeamMembersTeamPermission `json:"teamPermissions,omitempty"` + IsDSyncUser bool `json:"isDSyncUser"` + CreatedAt *float64 `json:"createdAt,omitempty"` + Expired *bool `json:"expired,omitempty"` + Projects map[string]Projects `json:"projects,omitempty"` + Entitlements []string `json:"entitlements,omitempty"` } func (o *EmailInviteCode) GetAccessGroups() []string { @@ -703,6 +796,20 @@ func (o *EmailInviteCode) GetRole() *EmailInviteCodeRole { return o.Role } +func (o *EmailInviteCode) GetTeamRoles() []GetTeamMembersTeamRole { + if o == nil { + return nil + } + return o.TeamRoles +} + +func (o *EmailInviteCode) GetTeamPermissions() []GetTeamMembersTeamPermission { + if o == nil { + return nil + } + return o.TeamPermissions +} + func (o *EmailInviteCode) GetIsDSyncUser() bool { if o == nil { return false diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getteams.go b/src/__tests__/mockserver/internal/sdk/models/operations/getteams.go index 834b0ae4..f3381167 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getteams.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getteams.go @@ -73,20 +73,20 @@ func CreateGetTeamsTeamTeamLimited(teamLimited components.TeamLimited) GetTeamsT func (u *GetTeamsTeam) UnmarshalJSON(data []byte) error { - var teamLimited components.TeamLimited = components.TeamLimited{} - if err := utils.UnmarshalJSON(data, &teamLimited, "", true, true); err == nil { - u.TeamLimited = &teamLimited - u.Type = GetTeamsTeamTypeTeamLimited - return nil - } - var team components.Team = components.Team{} - if err := utils.UnmarshalJSON(data, &team, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &team, "", true, nil); err == nil { u.Team = &team u.Type = GetTeamsTeamTypeTeam return nil } + var teamLimited components.TeamLimited = components.TeamLimited{} + if err := utils.UnmarshalJSON(data, &teamLimited, "", true, nil); err == nil { + u.TeamLimited = &teamLimited + u.Type = GetTeamsTeamTypeTeamLimited + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetTeamsTeam", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go b/src/__tests__/mockserver/internal/sdk/models/operations/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go new file mode 100644 index 00000000..5002c6bf --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplans.go @@ -0,0 +1,314 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "encoding/json" + "fmt" + "mockserver/internal/sdk/models/components" +) + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansRequest struct { + IntegrationIDOrSlug string `pathParam:"style=simple,explode=false,name=integrationIdOrSlug"` + ProductIDOrSlug string `pathParam:"style=simple,explode=false,name=productIdOrSlug"` + Metadata *string `queryParam:"style=form,explode=true,name=metadata"` +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansRequest) GetIntegrationIDOrSlug() string { + if o == nil { + return "" + } + return o.IntegrationIDOrSlug +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansRequest) GetProductIDOrSlug() string { + if o == nil { + return "" + } + return o.ProductIDOrSlug +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansRequest) GetMetadata() *string { + if o == nil { + return nil + } + return o.Metadata +} + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType string + +const ( + GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansTypePrepayment GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType = "prepayment" + GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansTypeSubscription GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType = "subscription" +) + +func (e GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType) ToPointer() *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType { + return &e +} +func (e *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "prepayment": + fallthrough + case "subscription": + *e = GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType(v) + return nil + default: + return fmt.Errorf("invalid value for GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType: %v", v) + } +} + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope string + +const ( + GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScopeInstallation GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope = "installation" + GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScopeResource GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope = "resource" +) + +func (e GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope) ToPointer() *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope { + return &e +} +func (e *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "installation": + fallthrough + case "resource": + *e = GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope(v) + return nil + default: + return fmt.Errorf("invalid value for GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope: %v", v) + } +} + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansDetail struct { + Label string `json:"label"` + Value *string `json:"value,omitempty"` +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansDetail) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansDetail) GetValue() *string { + if o == nil { + return nil + } + return o.Value +} + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansHighlightedDetail struct { + Label string `json:"label"` + Value *string `json:"value,omitempty"` +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansHighlightedDetail) GetLabel() string { + if o == nil { + return "" + } + return o.Label +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansHighlightedDetail) GetValue() *string { + if o == nil { + return nil + } + return o.Value +} + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansQuote struct { + Line string `json:"line"` + Amount string `json:"amount"` +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansQuote) GetLine() string { + if o == nil { + return "" + } + return o.Line +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansQuote) GetAmount() string { + if o == nil { + return "" + } + return o.Amount +} + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan struct { + Type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType `json:"type"` + ID string `json:"id"` + Name string `json:"name"` + Scope GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope `json:"scope"` + Description string `json:"description"` + PaymentMethodRequired bool `json:"paymentMethodRequired"` + PreauthorizationAmount *float64 `json:"preauthorizationAmount,omitempty"` + InitialCharge *string `json:"initialCharge,omitempty"` + MinimumAmount *string `json:"minimumAmount,omitempty"` + MaximumAmount *string `json:"maximumAmount,omitempty"` + MaximumAmountAutoPurchasePerPeriod *string `json:"maximumAmountAutoPurchasePerPeriod,omitempty"` + Cost *string `json:"cost,omitempty"` + Details []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansDetail `json:"details,omitempty"` + HighlightedDetails []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansHighlightedDetail `json:"highlightedDetails,omitempty"` + Quote []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansQuote `json:"quote,omitempty"` + EffectiveDate *string `json:"effectiveDate,omitempty"` + Disabled *bool `json:"disabled,omitempty"` +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetType() GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType { + if o == nil { + return GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansType("") + } + return o.Type +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetScope() GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope { + if o == nil { + return GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansScope("") + } + return o.Scope +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetDescription() string { + if o == nil { + return "" + } + return o.Description +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetPaymentMethodRequired() bool { + if o == nil { + return false + } + return o.PaymentMethodRequired +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetPreauthorizationAmount() *float64 { + if o == nil { + return nil + } + return o.PreauthorizationAmount +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetInitialCharge() *string { + if o == nil { + return nil + } + return o.InitialCharge +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetMinimumAmount() *string { + if o == nil { + return nil + } + return o.MinimumAmount +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetMaximumAmount() *string { + if o == nil { + return nil + } + return o.MaximumAmount +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetMaximumAmountAutoPurchasePerPeriod() *string { + if o == nil { + return nil + } + return o.MaximumAmountAutoPurchasePerPeriod +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetCost() *string { + if o == nil { + return nil + } + return o.Cost +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetDetails() []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansDetail { + if o == nil { + return nil + } + return o.Details +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetHighlightedDetails() []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansHighlightedDetail { + if o == nil { + return nil + } + return o.HighlightedDetails +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetQuote() []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansQuote { + if o == nil { + return nil + } + return o.Quote +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetEffectiveDate() *string { + if o == nil { + return nil + } + return o.EffectiveDate +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan) GetDisabled() *bool { + if o == nil { + return nil + } + return o.Disabled +} + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponseBody struct { + Plans []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan `json:"plans"` +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponseBody) GetPlans() []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan { + if o == nil { + return []GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansPlan{} + } + return o.Plans +} + +type GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + Object *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponseBody +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponse) GetObject() *GetV1IntegrationsIntegrationIntegrationIDOrSlugProductsProductIDOrSlugPlansResponseBody { + if o == nil { + return nil + } + return o.Object +} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getwebhook.go b/src/__tests__/mockserver/internal/sdk/models/operations/getwebhook.go index 25246410..91bca605 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getwebhook.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getwebhook.go @@ -57,6 +57,7 @@ const ( GetWebhookEventDomainRenewalFailed GetWebhookEvent = "domain.renewal.failed" GetWebhookEventDomainAutoRenewChanged GetWebhookEvent = "domain.auto-renew.changed" GetWebhookEventDeploymentCreated GetWebhookEvent = "deployment.created" + GetWebhookEventDeploymentCleanup GetWebhookEvent = "deployment.cleanup" GetWebhookEventDeploymentError GetWebhookEvent = "deployment.error" GetWebhookEventDeploymentCanceled GetWebhookEvent = "deployment.canceled" GetWebhookEventDeploymentSucceeded GetWebhookEvent = "deployment.succeeded" @@ -109,6 +110,7 @@ const ( GetWebhookEventMarketplaceInvoiceNotpaid GetWebhookEvent = "marketplace.invoice.notpaid" GetWebhookEventMarketplaceInvoiceRefunded GetWebhookEvent = "marketplace.invoice.refunded" GetWebhookEventObservabilityAnomaly GetWebhookEvent = "observability.anomaly" + GetWebhookEventObservabilityAnomalyError GetWebhookEvent = "observability.anomaly-error" GetWebhookEventTestWebhook GetWebhookEvent = "test-webhook" ) @@ -153,6 +155,8 @@ func (e *GetWebhookEvent) UnmarshalJSON(data []byte) error { fallthrough case "deployment.created": fallthrough + case "deployment.cleanup": + fallthrough case "deployment.error": fallthrough case "deployment.canceled": @@ -257,6 +261,8 @@ func (e *GetWebhookEvent) UnmarshalJSON(data []byte) error { fallthrough case "observability.anomaly": fallthrough + case "observability.anomaly-error": + fallthrough case "test-webhook": *e = GetWebhookEvent(v) return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getwebhooks.go b/src/__tests__/mockserver/internal/sdk/models/operations/getwebhooks.go index df07fc82..69a15284 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getwebhooks.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getwebhooks.go @@ -59,6 +59,7 @@ const ( GetWebhooksEvent2DomainRenewalFailed GetWebhooksEvent2 = "domain.renewal.failed" GetWebhooksEvent2DomainAutoRenewChanged GetWebhooksEvent2 = "domain.auto-renew.changed" GetWebhooksEvent2DeploymentCreated GetWebhooksEvent2 = "deployment.created" + GetWebhooksEvent2DeploymentCleanup GetWebhooksEvent2 = "deployment.cleanup" GetWebhooksEvent2DeploymentError GetWebhooksEvent2 = "deployment.error" GetWebhooksEvent2DeploymentCanceled GetWebhooksEvent2 = "deployment.canceled" GetWebhooksEvent2DeploymentSucceeded GetWebhooksEvent2 = "deployment.succeeded" @@ -111,6 +112,7 @@ const ( GetWebhooksEvent2MarketplaceInvoiceNotpaid GetWebhooksEvent2 = "marketplace.invoice.notpaid" GetWebhooksEvent2MarketplaceInvoiceRefunded GetWebhooksEvent2 = "marketplace.invoice.refunded" GetWebhooksEvent2ObservabilityAnomaly GetWebhooksEvent2 = "observability.anomaly" + GetWebhooksEvent2ObservabilityAnomalyError GetWebhooksEvent2 = "observability.anomaly-error" GetWebhooksEvent2TestWebhook GetWebhooksEvent2 = "test-webhook" ) @@ -155,6 +157,8 @@ func (e *GetWebhooksEvent2) UnmarshalJSON(data []byte) error { fallthrough case "deployment.created": fallthrough + case "deployment.cleanup": + fallthrough case "deployment.error": fallthrough case "deployment.canceled": @@ -259,6 +263,8 @@ func (e *GetWebhooksEvent2) UnmarshalJSON(data []byte) error { fallthrough case "observability.anomaly": fallthrough + case "observability.anomaly-error": + fallthrough case "test-webhook": *e = GetWebhooksEvent2(v) return nil @@ -284,6 +290,17 @@ type GetWebhooksResponseBody2 struct { ProjectIds []string `json:"projectIds,omitempty"` } +func (g GetWebhooksResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetWebhooksResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"events", "id", "url", "ownerId", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + func (o *GetWebhooksResponseBody2) GetEvents() []GetWebhooksEvent2 { if o == nil { return []GetWebhooksEvent2{} @@ -503,35 +520,46 @@ func (e *GetWebhooksFramework) UnmarshalJSON(data []byte) error { } } -type ProjectsMetadatum struct { +type GetWebhooksProjectsMetadatum struct { ID string `json:"id"` Name string `json:"name"` Framework *GetWebhooksFramework `json:"framework,omitempty"` LatestDeployment *string `json:"latestDeployment,omitempty"` } -func (o *ProjectsMetadatum) GetID() string { +func (g GetWebhooksProjectsMetadatum) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetWebhooksProjectsMetadatum) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"id", "name"}); err != nil { + return err + } + return nil +} + +func (o *GetWebhooksProjectsMetadatum) GetID() string { if o == nil { return "" } return o.ID } -func (o *ProjectsMetadatum) GetName() string { +func (o *GetWebhooksProjectsMetadatum) GetName() string { if o == nil { return "" } return o.Name } -func (o *ProjectsMetadatum) GetFramework() *GetWebhooksFramework { +func (o *GetWebhooksProjectsMetadatum) GetFramework() *GetWebhooksFramework { if o == nil { return nil } return o.Framework } -func (o *ProjectsMetadatum) GetLatestDeployment() *string { +func (o *GetWebhooksProjectsMetadatum) GetLatestDeployment() *string { if o == nil { return nil } @@ -558,6 +586,7 @@ const ( GetWebhooksEvent1DomainRenewalFailed GetWebhooksEvent1 = "domain.renewal.failed" GetWebhooksEvent1DomainAutoRenewChanged GetWebhooksEvent1 = "domain.auto-renew.changed" GetWebhooksEvent1DeploymentCreated GetWebhooksEvent1 = "deployment.created" + GetWebhooksEvent1DeploymentCleanup GetWebhooksEvent1 = "deployment.cleanup" GetWebhooksEvent1DeploymentError GetWebhooksEvent1 = "deployment.error" GetWebhooksEvent1DeploymentCanceled GetWebhooksEvent1 = "deployment.canceled" GetWebhooksEvent1DeploymentSucceeded GetWebhooksEvent1 = "deployment.succeeded" @@ -610,6 +639,7 @@ const ( GetWebhooksEvent1MarketplaceInvoiceNotpaid GetWebhooksEvent1 = "marketplace.invoice.notpaid" GetWebhooksEvent1MarketplaceInvoiceRefunded GetWebhooksEvent1 = "marketplace.invoice.refunded" GetWebhooksEvent1ObservabilityAnomaly GetWebhooksEvent1 = "observability.anomaly" + GetWebhooksEvent1ObservabilityAnomalyError GetWebhooksEvent1 = "observability.anomaly-error" GetWebhooksEvent1TestWebhook GetWebhooksEvent1 = "test-webhook" ) @@ -654,6 +684,8 @@ func (e *GetWebhooksEvent1) UnmarshalJSON(data []byte) error { fallthrough case "deployment.created": fallthrough + case "deployment.cleanup": + fallthrough case "deployment.error": fallthrough case "deployment.canceled": @@ -758,6 +790,8 @@ func (e *GetWebhooksEvent1) UnmarshalJSON(data []byte) error { fallthrough case "observability.anomaly": fallthrough + case "observability.anomaly-error": + fallthrough case "test-webhook": *e = GetWebhooksEvent1(v) return nil @@ -767,7 +801,7 @@ func (e *GetWebhooksEvent1) UnmarshalJSON(data []byte) error { } type GetWebhooksResponseBody1 struct { - ProjectsMetadata []ProjectsMetadatum `json:"projectsMetadata"` + ProjectsMetadata []GetWebhooksProjectsMetadatum `json:"projectsMetadata"` // The webhooks events Events []GetWebhooksEvent1 `json:"events"` // The webhook id @@ -784,7 +818,18 @@ type GetWebhooksResponseBody1 struct { ProjectIds []string `json:"projectIds,omitempty"` } -func (o *GetWebhooksResponseBody1) GetProjectsMetadata() []ProjectsMetadatum { +func (g GetWebhooksResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(g, "", false) +} + +func (g *GetWebhooksResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &g, "", false, []string{"projectsMetadata", "events", "id", "url", "ownerId", "createdAt", "updatedAt"}); err != nil { + return err + } + return nil +} + +func (o *GetWebhooksResponseBody1) GetProjectsMetadata() []GetWebhooksProjectsMetadatum { if o == nil { return nil } @@ -875,14 +920,14 @@ func CreateGetWebhooksResponseBodyArrayOfGetWebhooksResponseBody2(arrayOfGetWebh func (u *GetWebhooksResponseBody) UnmarshalJSON(data []byte) error { var arrayOfGetWebhooksResponseBody1 []GetWebhooksResponseBody1 = []GetWebhooksResponseBody1{} - if err := utils.UnmarshalJSON(data, &arrayOfGetWebhooksResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetWebhooksResponseBody1, "", true, nil); err == nil { u.ArrayOfGetWebhooksResponseBody1 = arrayOfGetWebhooksResponseBody1 u.Type = GetWebhooksResponseBodyTypeArrayOfGetWebhooksResponseBody1 return nil } var arrayOfGetWebhooksResponseBody2 []GetWebhooksResponseBody2 = []GetWebhooksResponseBody2{} - if err := utils.UnmarshalJSON(data, &arrayOfGetWebhooksResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfGetWebhooksResponseBody2, "", true, nil); err == nil { u.ArrayOfGetWebhooksResponseBody2 = arrayOfGetWebhooksResponseBody2 u.Type = GetWebhooksResponseBodyTypeArrayOfGetWebhooksResponseBody2 return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/importresource.go b/src/__tests__/mockserver/internal/sdk/models/operations/importresource.go index 6e24c61b..5a5aa0a6 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/importresource.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/importresource.go @@ -73,19 +73,19 @@ func (e *ImportResourceType) UnmarshalJSON(data []byte) error { } } -type Detail struct { +type ImportResourceDetail struct { Label string `json:"label"` Value *string `json:"value,omitempty"` } -func (o *Detail) GetLabel() string { +func (o *ImportResourceDetail) GetLabel() string { if o == nil { return "" } return o.Label } -func (o *Detail) GetValue() *string { +func (o *ImportResourceDetail) GetValue() *string { if o == nil { return nil } @@ -112,16 +112,16 @@ func (o *HeightlightedDetail) GetValue() *string { } type ImportResourceBillingPlan struct { - ID string `json:"id"` - Type ImportResourceType `json:"type"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - PaymentMethodRequired *bool `json:"paymentMethodRequired,omitempty"` - Cost *string `json:"cost,omitempty"` - Details []Detail `json:"details,omitempty"` - HeightlightedDetails []HeightlightedDetail `json:"heightlightedDetails,omitempty"` - EffectiveDate *string `json:"effectiveDate,omitempty"` - AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` + ID string `json:"id"` + Type ImportResourceType `json:"type"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + PaymentMethodRequired *bool `json:"paymentMethodRequired,omitempty"` + Cost *string `json:"cost,omitempty"` + Details []ImportResourceDetail `json:"details,omitempty"` + HeightlightedDetails []HeightlightedDetail `json:"heightlightedDetails,omitempty"` + EffectiveDate *string `json:"effectiveDate,omitempty"` + AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` } func (i ImportResourceBillingPlan) MarshalJSON() ([]byte, error) { @@ -129,7 +129,7 @@ func (i ImportResourceBillingPlan) MarshalJSON() ([]byte, error) { } func (i *ImportResourceBillingPlan) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"id", "type", "name"}); err != nil { return err } return nil @@ -177,7 +177,7 @@ func (o *ImportResourceBillingPlan) GetCost() *string { return o.Cost } -func (o *ImportResourceBillingPlan) GetDetails() []Detail { +func (o *ImportResourceBillingPlan) GetDetails() []ImportResourceDetail { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/inviteusertoteam.go b/src/__tests__/mockserver/internal/sdk/models/operations/inviteusertoteam.go index 8bf34654..46efbd10 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/inviteusertoteam.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/inviteusertoteam.go @@ -118,7 +118,7 @@ func (i InviteUserToTeamRequestBody) MarshalJSON() ([]byte, error) { } func (i *InviteUserToTeamRequestBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"email"}); err != nil { return err } return nil @@ -254,29 +254,32 @@ func (e *InviteUserToTeamTeamRole) UnmarshalJSON(data []byte) error { } } -// TeamPermission - The team permissions of the user -type TeamPermission string +// InviteUserToTeamTeamPermission - The team permissions of the user +type InviteUserToTeamTeamPermission string const ( - TeamPermissionCreateProject TeamPermission = "CreateProject" - TeamPermissionFullProductionDeployment TeamPermission = "FullProductionDeployment" - TeamPermissionUsageViewer TeamPermission = "UsageViewer" - TeamPermissionEnvVariableManager TeamPermission = "EnvVariableManager" - TeamPermissionEnvironmentManager TeamPermission = "EnvironmentManager" - TeamPermissionV0Builder TeamPermission = "V0Builder" - TeamPermissionV0Chatter TeamPermission = "V0Chatter" - TeamPermissionV0Viewer TeamPermission = "V0Viewer" + InviteUserToTeamTeamPermissionIntegrationManager InviteUserToTeamTeamPermission = "IntegrationManager" + InviteUserToTeamTeamPermissionCreateProject InviteUserToTeamTeamPermission = "CreateProject" + InviteUserToTeamTeamPermissionFullProductionDeployment InviteUserToTeamTeamPermission = "FullProductionDeployment" + InviteUserToTeamTeamPermissionUsageViewer InviteUserToTeamTeamPermission = "UsageViewer" + InviteUserToTeamTeamPermissionEnvVariableManager InviteUserToTeamTeamPermission = "EnvVariableManager" + InviteUserToTeamTeamPermissionEnvironmentManager InviteUserToTeamTeamPermission = "EnvironmentManager" + InviteUserToTeamTeamPermissionV0Builder InviteUserToTeamTeamPermission = "V0Builder" + InviteUserToTeamTeamPermissionV0Chatter InviteUserToTeamTeamPermission = "V0Chatter" + InviteUserToTeamTeamPermissionV0Viewer InviteUserToTeamTeamPermission = "V0Viewer" ) -func (e TeamPermission) ToPointer() *TeamPermission { +func (e InviteUserToTeamTeamPermission) ToPointer() *InviteUserToTeamTeamPermission { return &e } -func (e *TeamPermission) UnmarshalJSON(data []byte) error { +func (e *InviteUserToTeamTeamPermission) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err } switch v { + case "IntegrationManager": + fallthrough case "CreateProject": fallthrough case "FullProductionDeployment": @@ -292,10 +295,10 @@ func (e *TeamPermission) UnmarshalJSON(data []byte) error { case "V0Chatter": fallthrough case "V0Viewer": - *e = TeamPermission(v) + *e = InviteUserToTeamTeamPermission(v) return nil default: - return fmt.Errorf("invalid value for TeamPermission: %v", v) + return fmt.Errorf("invalid value for InviteUserToTeamTeamPermission: %v", v) } } @@ -312,7 +315,7 @@ type InviteUserToTeamResponseBody struct { // The team roles of the user TeamRoles []InviteUserToTeamTeamRole `json:"teamRoles,omitempty"` // The team permissions of the user - TeamPermissions []TeamPermission `json:"teamPermissions,omitempty"` + TeamPermissions []InviteUserToTeamTeamPermission `json:"teamPermissions,omitempty"` } func (o *InviteUserToTeamResponseBody) GetUID() string { @@ -350,7 +353,7 @@ func (o *InviteUserToTeamResponseBody) GetTeamRoles() []InviteUserToTeamTeamRole return o.TeamRoles } -func (o *InviteUserToTeamResponseBody) GetTeamPermissions() []TeamPermission { +func (o *InviteUserToTeamResponseBody) GetTeamPermissions() []InviteUserToTeamTeamPermission { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listaccessgroups.go b/src/__tests__/mockserver/internal/sdk/models/operations/listaccessgroups.go index 98157c87..366ba36d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listaccessgroups.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listaccessgroups.go @@ -109,6 +109,17 @@ type AccessGroup struct { TeamPermissions []string `json:"teamPermissions,omitempty"` } +func (a AccessGroup) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccessGroup) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"isDsyncManaged", "name", "createdAt", "teamId", "updatedAt", "accessGroupId", "membersCount", "projectsCount"}); err != nil { + return err + } + return nil +} + func (o *AccessGroup) GetMembers() []string { if o == nil { return nil @@ -205,6 +216,17 @@ type ListAccessGroupsPagination struct { Next *string `json:"next"` } +func (l ListAccessGroupsPagination) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAccessGroupsPagination) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"count", "next"}); err != nil { + return err + } + return nil +} + func (o *ListAccessGroupsPagination) GetCount() float64 { if o == nil { return 0.0 @@ -224,6 +246,17 @@ type ListAccessGroupsResponseBody2 struct { Pagination ListAccessGroupsPagination `json:"pagination"` } +func (l ListAccessGroupsResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAccessGroupsResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"accessGroups", "pagination"}); err != nil { + return err + } + return nil +} + func (o *ListAccessGroupsResponseBody2) GetAccessGroups() []AccessGroup { if o == nil { return []AccessGroup{} @@ -241,6 +274,17 @@ func (o *ListAccessGroupsResponseBody2) GetPagination() ListAccessGroupsPaginati type ListAccessGroupsResponseBody1 struct { } +func (l ListAccessGroupsResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAccessGroupsResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { + return err + } + return nil +} + type ListAccessGroupsResponseBodyType string const ( @@ -275,20 +319,20 @@ func CreateListAccessGroupsResponseBodyListAccessGroupsResponseBody2(listAccessG func (u *ListAccessGroupsResponseBody) UnmarshalJSON(data []byte) error { - var listAccessGroupsResponseBody1 ListAccessGroupsResponseBody1 = ListAccessGroupsResponseBody1{} - if err := utils.UnmarshalJSON(data, &listAccessGroupsResponseBody1, "", true, true); err == nil { - u.ListAccessGroupsResponseBody1 = &listAccessGroupsResponseBody1 - u.Type = ListAccessGroupsResponseBodyTypeListAccessGroupsResponseBody1 - return nil - } - var listAccessGroupsResponseBody2 ListAccessGroupsResponseBody2 = ListAccessGroupsResponseBody2{} - if err := utils.UnmarshalJSON(data, &listAccessGroupsResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &listAccessGroupsResponseBody2, "", true, nil); err == nil { u.ListAccessGroupsResponseBody2 = &listAccessGroupsResponseBody2 u.Type = ListAccessGroupsResponseBodyTypeListAccessGroupsResponseBody2 return nil } + var listAccessGroupsResponseBody1 ListAccessGroupsResponseBody1 = ListAccessGroupsResponseBody1{} + if err := utils.UnmarshalJSON(data, &listAccessGroupsResponseBody1, "", true, nil); err == nil { + u.ListAccessGroupsResponseBody1 = &listAccessGroupsResponseBody1 + u.Type = ListAccessGroupsResponseBodyTypeListAccessGroupsResponseBody1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ListAccessGroupsResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listaliases.go b/src/__tests__/mockserver/internal/sdk/models/operations/listaliases.go index 2e7797ab..6c031f4c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listaliases.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listaliases.go @@ -47,14 +47,14 @@ func CreateListAliasesDomainStr(str string) ListAliasesDomain { func (u *ListAliasesDomain) UnmarshalJSON(data []byte) error { var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = ListAliasesDomainTypeArrayOfStr return nil } var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = ListAliasesDomainTypeStr return nil @@ -252,6 +252,17 @@ type ListAliasesProtectionBypassEmailInvite struct { Scope ListAliasesScopeEmailInvite `json:"scope"` } +func (l ListAliasesProtectionBypassEmailInvite) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAliasesProtectionBypassEmailInvite) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"createdAt", "lastUpdatedAt", "lastUpdatedBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *ListAliasesProtectionBypassEmailInvite) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -310,6 +321,17 @@ type ListAliasesProtectionBypassAliasProtectionOverride struct { Scope ListAliasesScopeAliasProtectionOverride `json:"scope"` } +func (l ListAliasesProtectionBypassAliasProtectionOverride) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAliasesProtectionBypassAliasProtectionOverride) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *ListAliasesProtectionBypassAliasProtectionOverride) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -389,6 +411,17 @@ type ListAliasesProtectionBypassUser struct { Scope ListAliasesScopeUser `json:"scope"` } +func (l ListAliasesProtectionBypassUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAliasesProtectionBypassUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"createdAt", "lastUpdatedAt", "lastUpdatedBy", "access", "scope"}); err != nil { + return err + } + return nil +} + func (o *ListAliasesProtectionBypassUser) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -455,6 +488,17 @@ type ListAliasesProtectionBypassShareableLink struct { Expires *float64 `json:"expires,omitempty"` } +func (l ListAliasesProtectionBypassShareableLink) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAliasesProtectionBypassShareableLink) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *ListAliasesProtectionBypassShareableLink) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -539,31 +583,31 @@ func CreateListAliasesProtectionBypassUnionListAliasesProtectionBypassEmailInvit func (u *ListAliasesProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var listAliasesProtectionBypassAliasProtectionOverride ListAliasesProtectionBypassAliasProtectionOverride = ListAliasesProtectionBypassAliasProtectionOverride{} - if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassAliasProtectionOverride, "", true, true); err == nil { - u.ListAliasesProtectionBypassAliasProtectionOverride = &listAliasesProtectionBypassAliasProtectionOverride - u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassAliasProtectionOverride - return nil - } - - var listAliasesProtectionBypassShareableLink ListAliasesProtectionBypassShareableLink = ListAliasesProtectionBypassShareableLink{} - if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassShareableLink, "", true, true); err == nil { - u.ListAliasesProtectionBypassShareableLink = &listAliasesProtectionBypassShareableLink - u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassShareableLink + var listAliasesProtectionBypassUser ListAliasesProtectionBypassUser = ListAliasesProtectionBypassUser{} + if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassUser, "", true, nil); err == nil { + u.ListAliasesProtectionBypassUser = &listAliasesProtectionBypassUser + u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassUser return nil } var listAliasesProtectionBypassEmailInvite ListAliasesProtectionBypassEmailInvite = ListAliasesProtectionBypassEmailInvite{} - if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassEmailInvite, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassEmailInvite, "", true, nil); err == nil { u.ListAliasesProtectionBypassEmailInvite = &listAliasesProtectionBypassEmailInvite u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassEmailInvite return nil } - var listAliasesProtectionBypassUser ListAliasesProtectionBypassUser = ListAliasesProtectionBypassUser{} - if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassUser, "", true, true); err == nil { - u.ListAliasesProtectionBypassUser = &listAliasesProtectionBypassUser - u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassUser + var listAliasesProtectionBypassShareableLink ListAliasesProtectionBypassShareableLink = ListAliasesProtectionBypassShareableLink{} + if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassShareableLink, "", true, nil); err == nil { + u.ListAliasesProtectionBypassShareableLink = &listAliasesProtectionBypassShareableLink + u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassShareableLink + return nil + } + + var listAliasesProtectionBypassAliasProtectionOverride ListAliasesProtectionBypassAliasProtectionOverride = ListAliasesProtectionBypassAliasProtectionOverride{} + if err := utils.UnmarshalJSON(data, &listAliasesProtectionBypassAliasProtectionOverride, "", true, nil); err == nil { + u.ListAliasesProtectionBypassAliasProtectionOverride = &listAliasesProtectionBypassAliasProtectionOverride + u.Type = ListAliasesProtectionBypassUnionTypeListAliasesProtectionBypassAliasProtectionOverride return nil } @@ -616,6 +660,17 @@ type ListAliasesApplications3 struct { ProjectID string `json:"projectId"` } +func (l ListAliasesApplications3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAliasesApplications3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"projectId"}); err != nil { + return err + } + return nil +} + func (o *ListAliasesApplications3) GetDeploymentID() *string { if o == nil { return nil @@ -668,6 +723,17 @@ type ListAliasesApplications2 struct { ProjectID string `json:"projectId"` } +func (l ListAliasesApplications2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAliasesApplications2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"fallbackHost", "branchAlias", "projectId"}); err != nil { + return err + } + return nil +} + func (o *ListAliasesApplications2) GetFallbackHost() string { if o == nil { return "" @@ -697,6 +763,17 @@ type ListAliasesApplications1 struct { ProjectID string `json:"projectId"` } +func (l ListAliasesApplications1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListAliasesApplications1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"fallbackHost", "projectId"}); err != nil { + return err + } + return nil +} + func (o *ListAliasesApplications1) GetFallbackHost() string { if o == nil { return "" @@ -757,21 +834,21 @@ func CreateListAliasesApplicationsUnionArrayOfListAliasesApplications3(arrayOfLi func (u *ListAliasesApplicationsUnion) UnmarshalJSON(data []byte) error { var arrayOfListAliasesApplications1 []ListAliasesApplications1 = []ListAliasesApplications1{} - if err := utils.UnmarshalJSON(data, &arrayOfListAliasesApplications1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfListAliasesApplications1, "", true, nil); err == nil { u.ArrayOfListAliasesApplications1 = arrayOfListAliasesApplications1 u.Type = ListAliasesApplicationsUnionTypeArrayOfListAliasesApplications1 return nil } var arrayOfListAliasesApplications2 []ListAliasesApplications2 = []ListAliasesApplications2{} - if err := utils.UnmarshalJSON(data, &arrayOfListAliasesApplications2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfListAliasesApplications2, "", true, nil); err == nil { u.ArrayOfListAliasesApplications2 = arrayOfListAliasesApplications2 u.Type = ListAliasesApplicationsUnionTypeArrayOfListAliasesApplications2 return nil } var arrayOfListAliasesApplications3 []ListAliasesApplications3 = []ListAliasesApplications3{} - if err := utils.UnmarshalJSON(data, &arrayOfListAliasesApplications3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfListAliasesApplications3, "", true, nil); err == nil { u.ArrayOfListAliasesApplications3 = arrayOfListAliasesApplications3 u.Type = ListAliasesApplicationsUnionTypeArrayOfListAliasesApplications3 return nil @@ -852,7 +929,7 @@ func (l ListAliasesAlias) MarshalJSON() ([]byte, error) { } func (l *ListAliasesAlias) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"alias", "created", "deploymentId", "projectId", "uid"}); err != nil { return err } 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 71f669fb..0848ecda 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listdeploymentaliases.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listdeploymentaliases.go @@ -72,6 +72,17 @@ type ListDeploymentAliasesProtectionBypassEmailInvite struct { Scope ListDeploymentAliasesScopeEmailInvite `json:"scope"` } +func (l ListDeploymentAliasesProtectionBypassEmailInvite) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListDeploymentAliasesProtectionBypassEmailInvite) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"createdAt", "lastUpdatedAt", "lastUpdatedBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *ListDeploymentAliasesProtectionBypassEmailInvite) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -130,6 +141,17 @@ type ListDeploymentAliasesProtectionBypassAliasProtectionOverride struct { Scope ListDeploymentAliasesScopeAliasProtectionOverride `json:"scope"` } +func (l ListDeploymentAliasesProtectionBypassAliasProtectionOverride) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListDeploymentAliasesProtectionBypassAliasProtectionOverride) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *ListDeploymentAliasesProtectionBypassAliasProtectionOverride) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -209,6 +231,17 @@ type ListDeploymentAliasesProtectionBypassUser struct { Scope ListDeploymentAliasesScopeUser `json:"scope"` } +func (l ListDeploymentAliasesProtectionBypassUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListDeploymentAliasesProtectionBypassUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"createdAt", "lastUpdatedAt", "lastUpdatedBy", "access", "scope"}); err != nil { + return err + } + return nil +} + func (o *ListDeploymentAliasesProtectionBypassUser) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -275,6 +308,17 @@ type ListDeploymentAliasesProtectionBypassShareableLink struct { Expires *float64 `json:"expires,omitempty"` } +func (l ListDeploymentAliasesProtectionBypassShareableLink) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListDeploymentAliasesProtectionBypassShareableLink) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *ListDeploymentAliasesProtectionBypassShareableLink) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -359,31 +403,31 @@ func CreateListDeploymentAliasesProtectionBypassUnionListDeploymentAliasesProtec func (u *ListDeploymentAliasesProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var listDeploymentAliasesProtectionBypassAliasProtectionOverride ListDeploymentAliasesProtectionBypassAliasProtectionOverride = ListDeploymentAliasesProtectionBypassAliasProtectionOverride{} - if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassAliasProtectionOverride, "", true, true); err == nil { - u.ListDeploymentAliasesProtectionBypassAliasProtectionOverride = &listDeploymentAliasesProtectionBypassAliasProtectionOverride - u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassAliasProtectionOverride - return nil - } - - var listDeploymentAliasesProtectionBypassShareableLink ListDeploymentAliasesProtectionBypassShareableLink = ListDeploymentAliasesProtectionBypassShareableLink{} - if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassShareableLink, "", true, true); err == nil { - u.ListDeploymentAliasesProtectionBypassShareableLink = &listDeploymentAliasesProtectionBypassShareableLink - u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassShareableLink + var listDeploymentAliasesProtectionBypassUser ListDeploymentAliasesProtectionBypassUser = ListDeploymentAliasesProtectionBypassUser{} + if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassUser, "", true, nil); err == nil { + u.ListDeploymentAliasesProtectionBypassUser = &listDeploymentAliasesProtectionBypassUser + u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassUser return nil } var listDeploymentAliasesProtectionBypassEmailInvite ListDeploymentAliasesProtectionBypassEmailInvite = ListDeploymentAliasesProtectionBypassEmailInvite{} - if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassEmailInvite, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassEmailInvite, "", true, nil); err == nil { u.ListDeploymentAliasesProtectionBypassEmailInvite = &listDeploymentAliasesProtectionBypassEmailInvite u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassEmailInvite return nil } - var listDeploymentAliasesProtectionBypassUser ListDeploymentAliasesProtectionBypassUser = ListDeploymentAliasesProtectionBypassUser{} - if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassUser, "", true, true); err == nil { - u.ListDeploymentAliasesProtectionBypassUser = &listDeploymentAliasesProtectionBypassUser - u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassUser + var listDeploymentAliasesProtectionBypassShareableLink ListDeploymentAliasesProtectionBypassShareableLink = ListDeploymentAliasesProtectionBypassShareableLink{} + if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassShareableLink, "", true, nil); err == nil { + u.ListDeploymentAliasesProtectionBypassShareableLink = &listDeploymentAliasesProtectionBypassShareableLink + u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassShareableLink + return nil + } + + var listDeploymentAliasesProtectionBypassAliasProtectionOverride ListDeploymentAliasesProtectionBypassAliasProtectionOverride = ListDeploymentAliasesProtectionBypassAliasProtectionOverride{} + if err := utils.UnmarshalJSON(data, &listDeploymentAliasesProtectionBypassAliasProtectionOverride, "", true, nil); err == nil { + u.ListDeploymentAliasesProtectionBypassAliasProtectionOverride = &listDeploymentAliasesProtectionBypassAliasProtectionOverride + u.Type = ListDeploymentAliasesProtectionBypassUnionTypeListDeploymentAliasesProtectionBypassAliasProtectionOverride return nil } @@ -429,7 +473,7 @@ func (l ListDeploymentAliasesAlias) MarshalJSON() ([]byte, error) { } func (l *ListDeploymentAliasesAlias) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"uid", "alias", "created"}); err != nil { return err } return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listpromotealiases.go b/src/__tests__/mockserver/internal/sdk/models/operations/listpromotealiases.go index 6627b850..fd9ac263 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listpromotealiases.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/listpromotealiases.go @@ -80,6 +80,17 @@ type ListPromoteAliasesAlias struct { ID string `json:"id"` } +func (l ListPromoteAliasesAlias) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListPromoteAliasesAlias) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"status", "alias", "id"}); err != nil { + return err + } + return nil +} + func (o *ListPromoteAliasesAlias) GetStatus() string { if o == nil { return "" @@ -107,6 +118,17 @@ type ListPromoteAliasesResponseBody2 struct { Pagination components.Pagination `json:"pagination"` } +func (l ListPromoteAliasesResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListPromoteAliasesResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, []string{"aliases", "pagination"}); err != nil { + return err + } + return nil +} + func (o *ListPromoteAliasesResponseBody2) GetAliases() []ListPromoteAliasesAlias { if o == nil { return []ListPromoteAliasesAlias{} @@ -124,6 +146,17 @@ func (o *ListPromoteAliasesResponseBody2) GetPagination() components.Pagination type ListPromoteAliasesResponseBody1 struct { } +func (l ListPromoteAliasesResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(l, "", false) +} + +func (l *ListPromoteAliasesResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { + return err + } + return nil +} + type ListPromoteAliasesResponseBodyType string const ( @@ -158,20 +191,20 @@ func CreateListPromoteAliasesResponseBodyListPromoteAliasesResponseBody2(listPro func (u *ListPromoteAliasesResponseBody) UnmarshalJSON(data []byte) error { - var listPromoteAliasesResponseBody1 ListPromoteAliasesResponseBody1 = ListPromoteAliasesResponseBody1{} - if err := utils.UnmarshalJSON(data, &listPromoteAliasesResponseBody1, "", true, true); err == nil { - u.ListPromoteAliasesResponseBody1 = &listPromoteAliasesResponseBody1 - u.Type = ListPromoteAliasesResponseBodyTypeListPromoteAliasesResponseBody1 - return nil - } - var listPromoteAliasesResponseBody2 ListPromoteAliasesResponseBody2 = ListPromoteAliasesResponseBody2{} - if err := utils.UnmarshalJSON(data, &listPromoteAliasesResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &listPromoteAliasesResponseBody2, "", true, nil); err == nil { u.ListPromoteAliasesResponseBody2 = &listPromoteAliasesResponseBody2 u.Type = ListPromoteAliasesResponseBodyTypeListPromoteAliasesResponseBody2 return nil } + var listPromoteAliasesResponseBody1 ListPromoteAliasesResponseBody1 = ListPromoteAliasesResponseBody1{} + if err := utils.UnmarshalJSON(data, &listPromoteAliasesResponseBody1, "", true, nil); err == nil { + u.ListPromoteAliasesResponseBody1 = &listPromoteAliasesResponseBody1 + u.Type = ListPromoteAliasesResponseBodyTypeListPromoteAliasesResponseBody1 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ListPromoteAliasesResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/patchdomain.go b/src/__tests__/mockserver/internal/sdk/models/operations/patchdomain.go index a8db774a..eccd5c77 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/patchdomain.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/patchdomain.go @@ -16,6 +16,17 @@ type PatchDomainRequestBody2 struct { Destination *string `json:"destination,omitempty"` } +func (p PatchDomainRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchDomainRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *PatchDomainRequestBody2) GetOp() *string { if o == nil { return nil @@ -41,6 +52,17 @@ type PatchDomainRequestBody1 struct { Zone *bool `json:"zone,omitempty"` } +func (p PatchDomainRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchDomainRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *PatchDomainRequestBody1) GetOp() *string { if o == nil { return nil @@ -103,20 +125,20 @@ func CreatePatchDomainRequestBodyPatchDomainRequestBody2(patchDomainRequestBody2 func (u *PatchDomainRequestBody) UnmarshalJSON(data []byte) error { - var patchDomainRequestBody2 PatchDomainRequestBody2 = PatchDomainRequestBody2{} - if err := utils.UnmarshalJSON(data, &patchDomainRequestBody2, "", true, true); err == nil { - u.PatchDomainRequestBody2 = &patchDomainRequestBody2 - u.Type = PatchDomainRequestBodyTypePatchDomainRequestBody2 - return nil - } - var patchDomainRequestBody1 PatchDomainRequestBody1 = PatchDomainRequestBody1{} - if err := utils.UnmarshalJSON(data, &patchDomainRequestBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchDomainRequestBody1, "", true, nil); err == nil { u.PatchDomainRequestBody1 = &patchDomainRequestBody1 u.Type = PatchDomainRequestBodyTypePatchDomainRequestBody1 return nil } + var patchDomainRequestBody2 PatchDomainRequestBody2 = PatchDomainRequestBody2{} + if err := utils.UnmarshalJSON(data, &patchDomainRequestBody2, "", true, nil); err == nil { + u.PatchDomainRequestBody2 = &patchDomainRequestBody2 + u.Type = PatchDomainRequestBodyTypePatchDomainRequestBody2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for PatchDomainRequestBody", string(data)) } @@ -175,6 +197,17 @@ type PatchDomainResponseBody3 struct { Zone *bool `json:"zone,omitempty"` } +func (p PatchDomainResponseBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchDomainResponseBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *PatchDomainResponseBody3) GetRenew() *bool { if o == nil { return nil @@ -201,6 +234,17 @@ type PatchDomainResponseBody2 struct { Token string `json:"token"` } +func (p PatchDomainResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchDomainResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"moved", "token"}); err != nil { + return err + } + return nil +} + func (o *PatchDomainResponseBody2) GetMoved() bool { if o == nil { return false @@ -219,6 +263,17 @@ type PatchDomainResponseBody1 struct { Moved bool `json:"moved"` } +func (p PatchDomainResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchDomainResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"moved"}); err != nil { + return err + } + return nil +} + func (o *PatchDomainResponseBody1) GetMoved() bool { if o == nil { return false @@ -271,22 +326,22 @@ func CreatePatchDomainResponseBodyPatchDomainResponseBody3(patchDomainResponseBo func (u *PatchDomainResponseBody) UnmarshalJSON(data []byte) error { - var patchDomainResponseBody1 PatchDomainResponseBody1 = PatchDomainResponseBody1{} - if err := utils.UnmarshalJSON(data, &patchDomainResponseBody1, "", true, true); err == nil { - u.PatchDomainResponseBody1 = &patchDomainResponseBody1 - u.Type = PatchDomainResponseBodyTypePatchDomainResponseBody1 - return nil - } - var patchDomainResponseBody2 PatchDomainResponseBody2 = PatchDomainResponseBody2{} - if err := utils.UnmarshalJSON(data, &patchDomainResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchDomainResponseBody2, "", true, nil); err == nil { u.PatchDomainResponseBody2 = &patchDomainResponseBody2 u.Type = PatchDomainResponseBodyTypePatchDomainResponseBody2 return nil } + var patchDomainResponseBody1 PatchDomainResponseBody1 = PatchDomainResponseBody1{} + if err := utils.UnmarshalJSON(data, &patchDomainResponseBody1, "", true, nil); err == nil { + u.PatchDomainResponseBody1 = &patchDomainResponseBody1 + u.Type = PatchDomainResponseBodyTypePatchDomainResponseBody1 + return nil + } + var patchDomainResponseBody3 PatchDomainResponseBody3 = PatchDomainResponseBody3{} - if err := utils.UnmarshalJSON(data, &patchDomainResponseBody3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchDomainResponseBody3, "", true, nil); err == nil { u.PatchDomainResponseBody3 = &patchDomainResponseBody3 u.Type = PatchDomainResponseBodyTypePatchDomainResponseBody3 return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/patchedgeconfigitems.go b/src/__tests__/mockserver/internal/sdk/models/operations/patchedgeconfigitems.go index 38750fc0..6eac270e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/patchedgeconfigitems.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/patchedgeconfigitems.go @@ -77,14 +77,14 @@ func CreateDescription3Any(anyT any) Description3 { func (u *Description3) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = Description3TypeStr return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = Description3TypeAny return nil @@ -112,6 +112,17 @@ type PatchEdgeConfigItemsItem3 struct { Description *Description3 `json:"description"` } +func (p PatchEdgeConfigItemsItem3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchEdgeConfigItemsItem3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"operation", "key", "description"}); err != nil { + return err + } + return nil +} + func (o *PatchEdgeConfigItemsItem3) GetOperation() Operation3 { if o == nil { return Operation3("") @@ -207,14 +218,14 @@ func CreateDescription2Any(anyT any) Description2 { func (u *Description2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = Description2TypeStr return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = Description2TypeAny return nil @@ -242,6 +253,17 @@ type PatchEdgeConfigItemsItem2 struct { Description *Description2 `json:"description,omitempty"` } +func (p PatchEdgeConfigItemsItem2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchEdgeConfigItemsItem2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"operation", "key", "value"}); err != nil { + return err + } + return nil +} + func (o *PatchEdgeConfigItemsItem2) GetOperation() Operation2 { if o == nil { return Operation2("") @@ -337,14 +359,14 @@ func CreateDescription1Any(anyT any) Description1 { func (u *Description1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = Description1TypeStr return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = Description1TypeAny return nil @@ -372,6 +394,17 @@ type PatchEdgeConfigItemsItem1 struct { Description *Description1 `json:"description,omitempty"` } +func (p PatchEdgeConfigItemsItem1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchEdgeConfigItemsItem1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"operation", "key", "value"}); err != nil { + return err + } + return nil +} + func (o *PatchEdgeConfigItemsItem1) GetOperation() Operation1 { if o == nil { return Operation1("") @@ -446,21 +479,21 @@ func CreateItemUnion2PatchEdgeConfigItemsItem3(patchEdgeConfigItemsItem3 PatchEd func (u *ItemUnion2) UnmarshalJSON(data []byte) error { var patchEdgeConfigItemsItem1 PatchEdgeConfigItemsItem1 = PatchEdgeConfigItemsItem1{} - if err := utils.UnmarshalJSON(data, &patchEdgeConfigItemsItem1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchEdgeConfigItemsItem1, "", true, nil); err == nil { u.PatchEdgeConfigItemsItem1 = &patchEdgeConfigItemsItem1 u.Type = ItemUnion2TypePatchEdgeConfigItemsItem1 return nil } var patchEdgeConfigItemsItem2 PatchEdgeConfigItemsItem2 = PatchEdgeConfigItemsItem2{} - if err := utils.UnmarshalJSON(data, &patchEdgeConfigItemsItem2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchEdgeConfigItemsItem2, "", true, nil); err == nil { u.PatchEdgeConfigItemsItem2 = &patchEdgeConfigItemsItem2 u.Type = ItemUnion2TypePatchEdgeConfigItemsItem2 return nil } var patchEdgeConfigItemsItem3 PatchEdgeConfigItemsItem3 = PatchEdgeConfigItemsItem3{} - if err := utils.UnmarshalJSON(data, &patchEdgeConfigItemsItem3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchEdgeConfigItemsItem3, "", true, nil); err == nil { u.PatchEdgeConfigItemsItem3 = &patchEdgeConfigItemsItem3 u.Type = ItemUnion2TypePatchEdgeConfigItemsItem3 return nil @@ -509,7 +542,7 @@ func CreateItemUnion1ItemUnion2(itemUnion2 ItemUnion2) ItemUnion1 { func (u *ItemUnion1) UnmarshalJSON(data []byte) error { var itemUnion2 ItemUnion2 = ItemUnion2{} - if err := utils.UnmarshalJSON(data, &itemUnion2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &itemUnion2, "", true, nil); err == nil { u.ItemUnion2 = &itemUnion2 u.Type = ItemUnion1TypeItemUnion2 return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/patchteam.go b/src/__tests__/mockserver/internal/sdk/models/operations/patchteam.go index 09bc2d59..f208cfbc 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/patchteam.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/patchteam.go @@ -14,6 +14,17 @@ type Roles struct { AccessGroupID string `json:"accessGroupId"` } +func (r Roles) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Roles) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"accessGroupId"}); err != nil { + return err + } + return nil +} + func (o *Roles) GetAccessGroupID() string { if o == nil { return "" @@ -100,14 +111,14 @@ func CreateRolesUnionRoles(roles Roles) RolesUnion { func (u *RolesUnion) UnmarshalJSON(data []byte) error { var roles Roles = Roles{} - if err := utils.UnmarshalJSON(data, &roles, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &roles, "", true, nil); err == nil { u.Roles = &roles u.Type = RolesUnionTypeRoles return nil } var rolesEnum RolesEnum = RolesEnum("") - if err := utils.UnmarshalJSON(data, &rolesEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &rolesEnum, "", true, nil); err == nil { u.RolesEnum = &rolesEnum u.Type = RolesUnionTypeRolesEnum return nil @@ -261,7 +272,7 @@ func (p PatchTeamSsoProtection) MarshalJSON() ([]byte, error) { } func (p *PatchTeamSsoProtection) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { return err } return nil @@ -296,6 +307,237 @@ func (o *DefaultDeploymentProtection) GetSsoProtection() *PatchTeamSsoProtection return o.SsoProtection } +// Expiration - The time period to keep non-production deployments for +type Expiration string + +const ( + ExpirationOney Expiration = "1y" + ExpirationSixm Expiration = "6m" + ExpirationThreem Expiration = "3m" + ExpirationTwom Expiration = "2m" + ExpirationOnem Expiration = "1m" + ExpirationTwow Expiration = "2w" + ExpirationOnew Expiration = "1w" + ExpirationOned Expiration = "1d" + ExpirationUnlimited Expiration = "unlimited" +) + +func (e Expiration) ToPointer() *Expiration { + return &e +} +func (e *Expiration) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "1y": + fallthrough + case "6m": + fallthrough + case "3m": + fallthrough + case "2m": + fallthrough + case "1m": + fallthrough + case "2w": + fallthrough + case "1w": + fallthrough + case "1d": + fallthrough + case "unlimited": + *e = Expiration(v) + return nil + default: + return fmt.Errorf("invalid value for Expiration: %v", v) + } +} + +// ExpirationProduction - The time period to keep production deployments for +type ExpirationProduction string + +const ( + ExpirationProductionOney ExpirationProduction = "1y" + ExpirationProductionSixm ExpirationProduction = "6m" + ExpirationProductionThreem ExpirationProduction = "3m" + ExpirationProductionTwom ExpirationProduction = "2m" + ExpirationProductionOnem ExpirationProduction = "1m" + ExpirationProductionTwow ExpirationProduction = "2w" + ExpirationProductionOnew ExpirationProduction = "1w" + ExpirationProductionOned ExpirationProduction = "1d" + ExpirationProductionUnlimited ExpirationProduction = "unlimited" +) + +func (e ExpirationProduction) ToPointer() *ExpirationProduction { + return &e +} +func (e *ExpirationProduction) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "1y": + fallthrough + case "6m": + fallthrough + case "3m": + fallthrough + case "2m": + fallthrough + case "1m": + fallthrough + case "2w": + fallthrough + case "1w": + fallthrough + case "1d": + fallthrough + case "unlimited": + *e = ExpirationProduction(v) + return nil + default: + return fmt.Errorf("invalid value for ExpirationProduction: %v", v) + } +} + +// ExpirationCanceled - The time period to keep canceled deployments for +type ExpirationCanceled string + +const ( + ExpirationCanceledOney ExpirationCanceled = "1y" + ExpirationCanceledSixm ExpirationCanceled = "6m" + ExpirationCanceledThreem ExpirationCanceled = "3m" + ExpirationCanceledTwom ExpirationCanceled = "2m" + ExpirationCanceledOnem ExpirationCanceled = "1m" + ExpirationCanceledTwow ExpirationCanceled = "2w" + ExpirationCanceledOnew ExpirationCanceled = "1w" + ExpirationCanceledOned ExpirationCanceled = "1d" + ExpirationCanceledUnlimited ExpirationCanceled = "unlimited" +) + +func (e ExpirationCanceled) ToPointer() *ExpirationCanceled { + return &e +} +func (e *ExpirationCanceled) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "1y": + fallthrough + case "6m": + fallthrough + case "3m": + fallthrough + case "2m": + fallthrough + case "1m": + fallthrough + case "2w": + fallthrough + case "1w": + fallthrough + case "1d": + fallthrough + case "unlimited": + *e = ExpirationCanceled(v) + return nil + default: + return fmt.Errorf("invalid value for ExpirationCanceled: %v", v) + } +} + +// ExpirationErrored - The time period to keep errored deployments for +type ExpirationErrored string + +const ( + ExpirationErroredOney ExpirationErrored = "1y" + ExpirationErroredSixm ExpirationErrored = "6m" + ExpirationErroredThreem ExpirationErrored = "3m" + ExpirationErroredTwom ExpirationErrored = "2m" + ExpirationErroredOnem ExpirationErrored = "1m" + ExpirationErroredTwow ExpirationErrored = "2w" + ExpirationErroredOnew ExpirationErrored = "1w" + ExpirationErroredOned ExpirationErrored = "1d" + ExpirationErroredUnlimited ExpirationErrored = "unlimited" +) + +func (e ExpirationErrored) ToPointer() *ExpirationErrored { + return &e +} +func (e *ExpirationErrored) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "1y": + fallthrough + case "6m": + fallthrough + case "3m": + fallthrough + case "2m": + fallthrough + case "1m": + fallthrough + case "2w": + fallthrough + case "1w": + fallthrough + case "1d": + fallthrough + case "unlimited": + *e = ExpirationErrored(v) + return nil + default: + return fmt.Errorf("invalid value for ExpirationErrored: %v", v) + } +} + +type DefaultExpirationSettings struct { + // The time period to keep non-production deployments for + Expiration *Expiration `json:"expiration,omitempty"` + // The time period to keep production deployments for + ExpirationProduction *ExpirationProduction `json:"expirationProduction,omitempty"` + // The time period to keep canceled deployments for + ExpirationCanceled *ExpirationCanceled `json:"expirationCanceled,omitempty"` + // The time period to keep errored deployments for + ExpirationErrored *ExpirationErrored `json:"expirationErrored,omitempty"` +} + +func (o *DefaultExpirationSettings) GetExpiration() *Expiration { + if o == nil { + return nil + } + return o.Expiration +} + +func (o *DefaultExpirationSettings) GetExpirationProduction() *ExpirationProduction { + if o == nil { + return nil + } + return o.ExpirationProduction +} + +func (o *DefaultExpirationSettings) GetExpirationCanceled() *ExpirationCanceled { + if o == nil { + return nil + } + return o.ExpirationCanceled +} + +func (o *DefaultExpirationSettings) GetExpirationErrored() *ExpirationErrored { + if o == nil { + return nil + } + return o.ExpirationErrored +} + type PatchTeamRequestBody struct { // The hash value of an uploaded image. Avatar *string `json:"avatar,omitempty"` @@ -325,6 +567,7 @@ type PatchTeamRequestBody struct { HideIPAddressesInLogDrains *bool `json:"hideIpAddressesInLogDrains,omitempty"` // Default deployment protection settings for new projects. DefaultDeploymentProtection *DefaultDeploymentProtection `json:"defaultDeploymentProtection,omitempty"` + DefaultExpirationSettings *DefaultExpirationSettings `json:"defaultExpirationSettings,omitempty"` } func (o *PatchTeamRequestBody) GetAvatar() *string { @@ -432,6 +675,13 @@ func (o *PatchTeamRequestBody) GetDefaultDeploymentProtection() *DefaultDeployme return o.DefaultDeploymentProtection } +func (o *PatchTeamRequestBody) GetDefaultExpirationSettings() *DefaultExpirationSettings { + if o == nil { + return nil + } + return o.DefaultExpirationSettings +} + type PatchTeamRequest struct { // The Team identifier to perform the request on behalf of. TeamID string `pathParam:"style=simple,explode=false,name=teamId"` diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/patchurlprotectionbypass.go b/src/__tests__/mockserver/internal/sdk/models/operations/patchurlprotectionbypass.go index f4685c77..d9ba942f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/patchurlprotectionbypass.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/patchurlprotectionbypass.go @@ -64,6 +64,17 @@ type Override struct { Action PatchURLProtectionBypassAction `json:"action"` } +func (o Override) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *Override) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"scope", "action"}); err != nil { + return err + } + return nil +} + func (o *Override) GetScope() OverrideScope { if o == nil { return OverrideScope("") @@ -82,6 +93,17 @@ type PatchURLProtectionBypassRequestBody3 struct { Override Override `json:"override"` } +func (p PatchURLProtectionBypassRequestBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchURLProtectionBypassRequestBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"override"}); err != nil { + return err + } + return nil +} + func (o *PatchURLProtectionBypassRequestBody3) GetOverride() Override { if o == nil { return Override{} @@ -125,6 +147,17 @@ type PatchURLProtectionBypassScope2 struct { Access PatchURLProtectionBypassAccess2 `json:"access"` } +func (p PatchURLProtectionBypassScope2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchURLProtectionBypassScope2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"email", "access"}); err != nil { + return err + } + return nil +} + func (o *PatchURLProtectionBypassScope2) GetUserID() *string { if o == nil { return nil @@ -182,6 +215,17 @@ type PatchURLProtectionBypassScope1 struct { Access PatchURLProtectionBypassAccess1 `json:"access"` } +func (p PatchURLProtectionBypassScope1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchURLProtectionBypassScope1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"userId", "access"}); err != nil { + return err + } + return nil +} + func (o *PatchURLProtectionBypassScope1) GetUserID() string { if o == nil { return "" @@ -239,14 +283,14 @@ func CreateScopePatchURLProtectionBypassScope2(patchURLProtectionBypassScope2 Pa func (u *Scope) UnmarshalJSON(data []byte) error { var patchURLProtectionBypassScope1 PatchURLProtectionBypassScope1 = PatchURLProtectionBypassScope1{} - if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassScope1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassScope1, "", true, nil); err == nil { u.PatchURLProtectionBypassScope1 = &patchURLProtectionBypassScope1 u.Type = ScopeTypePatchURLProtectionBypassScope1 return nil } var patchURLProtectionBypassScope2 PatchURLProtectionBypassScope2 = PatchURLProtectionBypassScope2{} - if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassScope2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassScope2, "", true, nil); err == nil { u.PatchURLProtectionBypassScope2 = &patchURLProtectionBypassScope2 u.Type = ScopeTypePatchURLProtectionBypassScope2 return nil @@ -272,6 +316,17 @@ type PatchURLProtectionBypassRequestBody2 struct { Scope Scope `json:"scope"` } +func (p PatchURLProtectionBypassRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchURLProtectionBypassRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"scope"}); err != nil { + return err + } + return nil +} + func (o *PatchURLProtectionBypassRequestBody2) GetScope() Scope { if o == nil { return Scope{} @@ -287,6 +342,17 @@ type PatchURLProtectionBypassRevoke struct { Regenerate bool `json:"regenerate"` } +func (p PatchURLProtectionBypassRevoke) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchURLProtectionBypassRevoke) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"secret", "regenerate"}); err != nil { + return err + } + return nil +} + func (o *PatchURLProtectionBypassRevoke) GetSecret() string { if o == nil { return "" @@ -308,6 +374,17 @@ type PatchURLProtectionBypassRequestBody1 struct { Revoke *PatchURLProtectionBypassRevoke `json:"revoke,omitempty"` } +func (p PatchURLProtectionBypassRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PatchURLProtectionBypassRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + func (o *PatchURLProtectionBypassRequestBody1) GetTTL() *float64 { if o == nil { return nil @@ -368,21 +445,21 @@ func CreatePatchURLProtectionBypassRequestBodyPatchURLProtectionBypassRequestBod func (u *PatchURLProtectionBypassRequestBody) UnmarshalJSON(data []byte) error { var patchURLProtectionBypassRequestBody2 PatchURLProtectionBypassRequestBody2 = PatchURLProtectionBypassRequestBody2{} - if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassRequestBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassRequestBody2, "", true, nil); err == nil { u.PatchURLProtectionBypassRequestBody2 = &patchURLProtectionBypassRequestBody2 u.Type = PatchURLProtectionBypassRequestBodyTypePatchURLProtectionBypassRequestBody2 return nil } var patchURLProtectionBypassRequestBody3 PatchURLProtectionBypassRequestBody3 = PatchURLProtectionBypassRequestBody3{} - if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassRequestBody3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassRequestBody3, "", true, nil); err == nil { u.PatchURLProtectionBypassRequestBody3 = &patchURLProtectionBypassRequestBody3 u.Type = PatchURLProtectionBypassRequestBodyTypePatchURLProtectionBypassRequestBody3 return nil } var patchURLProtectionBypassRequestBody1 PatchURLProtectionBypassRequestBody1 = PatchURLProtectionBypassRequestBody1{} - if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassRequestBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &patchURLProtectionBypassRequestBody1, "", true, nil); err == nil { u.PatchURLProtectionBypassRequestBody1 = &patchURLProtectionBypassRequestBody1 u.Type = PatchURLProtectionBypassRequestBodyTypePatchURLProtectionBypassRequestBody1 return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/putfirewallconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/putfirewallconfig.go index 5be4012e..895b8da0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/putfirewallconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/putfirewallconfig.go @@ -10,17 +10,17 @@ import ( "mockserver/internal/sdk/utils" ) -type SdActionRequestBody string +type SdActionRequest string const ( - SdActionRequestBodyDeny SdActionRequestBody = "deny" - SdActionRequestBodyLog SdActionRequestBody = "log" + SdActionRequestDeny SdActionRequest = "deny" + SdActionRequestLog SdActionRequest = "log" ) -func (e SdActionRequestBody) ToPointer() *SdActionRequestBody { +func (e SdActionRequest) ToPointer() *SdActionRequest { return &e } -func (e *SdActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *SdActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -29,17 +29,17 @@ func (e *SdActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = SdActionRequestBody(v) + *e = SdActionRequest(v) return nil default: - return fmt.Errorf("invalid value for SdActionRequestBody: %v", v) + return fmt.Errorf("invalid value for SdActionRequest: %v", v) } } // SdRequest - Scanner Detection - Detect and prevent reconnaissance activities from network scanning tools. type SdRequest struct { - Active bool `json:"active"` - Action SdActionRequestBody `json:"action"` + Active bool `json:"active"` + Action SdActionRequest `json:"action"` } func (o *SdRequest) GetActive() bool { @@ -49,24 +49,24 @@ func (o *SdRequest) GetActive() bool { return o.Active } -func (o *SdRequest) GetAction() SdActionRequestBody { +func (o *SdRequest) GetAction() SdActionRequest { if o == nil { - return SdActionRequestBody("") + return SdActionRequest("") } return o.Action } -type MaActionRequestBody string +type MaActionRequest string const ( - MaActionRequestBodyDeny MaActionRequestBody = "deny" - MaActionRequestBodyLog MaActionRequestBody = "log" + MaActionRequestDeny MaActionRequest = "deny" + MaActionRequestLog MaActionRequest = "log" ) -func (e MaActionRequestBody) ToPointer() *MaActionRequestBody { +func (e MaActionRequest) ToPointer() *MaActionRequest { return &e } -func (e *MaActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *MaActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -75,17 +75,17 @@ func (e *MaActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = MaActionRequestBody(v) + *e = MaActionRequest(v) return nil default: - return fmt.Errorf("invalid value for MaActionRequestBody: %v", v) + return fmt.Errorf("invalid value for MaActionRequest: %v", v) } } // MaRequest - Multipart Attack - Block attempts to bypass security controls using multipart/form-data encoding. type MaRequest struct { - Active bool `json:"active"` - Action MaActionRequestBody `json:"action"` + Active bool `json:"active"` + Action MaActionRequest `json:"action"` } func (o *MaRequest) GetActive() bool { @@ -95,24 +95,24 @@ func (o *MaRequest) GetActive() bool { return o.Active } -func (o *MaRequest) GetAction() MaActionRequestBody { +func (o *MaRequest) GetAction() MaActionRequest { if o == nil { - return MaActionRequestBody("") + return MaActionRequest("") } return o.Action } -type LfiActionRequestBody string +type LfiActionRequest string const ( - LfiActionRequestBodyDeny LfiActionRequestBody = "deny" - LfiActionRequestBodyLog LfiActionRequestBody = "log" + LfiActionRequestDeny LfiActionRequest = "deny" + LfiActionRequestLog LfiActionRequest = "log" ) -func (e LfiActionRequestBody) ToPointer() *LfiActionRequestBody { +func (e LfiActionRequest) ToPointer() *LfiActionRequest { return &e } -func (e *LfiActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *LfiActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -121,17 +121,17 @@ func (e *LfiActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = LfiActionRequestBody(v) + *e = LfiActionRequest(v) return nil default: - return fmt.Errorf("invalid value for LfiActionRequestBody: %v", v) + return fmt.Errorf("invalid value for LfiActionRequest: %v", v) } } // LfiRequest - Local File Inclusion Attack - Prevent unauthorized access to local files through web applications. type LfiRequest struct { - Active bool `json:"active"` - Action LfiActionRequestBody `json:"action"` + Active bool `json:"active"` + Action LfiActionRequest `json:"action"` } func (o *LfiRequest) GetActive() bool { @@ -141,24 +141,24 @@ func (o *LfiRequest) GetActive() bool { return o.Active } -func (o *LfiRequest) GetAction() LfiActionRequestBody { +func (o *LfiRequest) GetAction() LfiActionRequest { if o == nil { - return LfiActionRequestBody("") + return LfiActionRequest("") } return o.Action } -type RfiActionRequestBody string +type RfiActionRequest string const ( - RfiActionRequestBodyDeny RfiActionRequestBody = "deny" - RfiActionRequestBodyLog RfiActionRequestBody = "log" + RfiActionRequestDeny RfiActionRequest = "deny" + RfiActionRequestLog RfiActionRequest = "log" ) -func (e RfiActionRequestBody) ToPointer() *RfiActionRequestBody { +func (e RfiActionRequest) ToPointer() *RfiActionRequest { return &e } -func (e *RfiActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *RfiActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -167,17 +167,17 @@ func (e *RfiActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = RfiActionRequestBody(v) + *e = RfiActionRequest(v) return nil default: - return fmt.Errorf("invalid value for RfiActionRequestBody: %v", v) + return fmt.Errorf("invalid value for RfiActionRequest: %v", v) } } // RfiRequest - Remote File Inclusion Attack - Prohibit unauthorized upload or execution of remote files. type RfiRequest struct { - Active bool `json:"active"` - Action RfiActionRequestBody `json:"action"` + Active bool `json:"active"` + Action RfiActionRequest `json:"action"` } func (o *RfiRequest) GetActive() bool { @@ -187,24 +187,24 @@ func (o *RfiRequest) GetActive() bool { return o.Active } -func (o *RfiRequest) GetAction() RfiActionRequestBody { +func (o *RfiRequest) GetAction() RfiActionRequest { if o == nil { - return RfiActionRequestBody("") + return RfiActionRequest("") } return o.Action } -type RceActionRequestBody string +type RceActionRequest string const ( - RceActionRequestBodyDeny RceActionRequestBody = "deny" - RceActionRequestBodyLog RceActionRequestBody = "log" + RceActionRequestDeny RceActionRequest = "deny" + RceActionRequestLog RceActionRequest = "log" ) -func (e RceActionRequestBody) ToPointer() *RceActionRequestBody { +func (e RceActionRequest) ToPointer() *RceActionRequest { return &e } -func (e *RceActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *RceActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -213,17 +213,17 @@ func (e *RceActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = RceActionRequestBody(v) + *e = RceActionRequest(v) return nil default: - return fmt.Errorf("invalid value for RceActionRequestBody: %v", v) + return fmt.Errorf("invalid value for RceActionRequest: %v", v) } } // RceRequest - Remote Execution Attack - Prevent unauthorized execution of remote scripts or commands. type RceRequest struct { - Active bool `json:"active"` - Action RceActionRequestBody `json:"action"` + Active bool `json:"active"` + Action RceActionRequest `json:"action"` } func (o *RceRequest) GetActive() bool { @@ -233,24 +233,24 @@ func (o *RceRequest) GetActive() bool { return o.Active } -func (o *RceRequest) GetAction() RceActionRequestBody { +func (o *RceRequest) GetAction() RceActionRequest { if o == nil { - return RceActionRequestBody("") + return RceActionRequest("") } return o.Action } -type PhpActionRequestBody string +type PhpActionRequest string const ( - PhpActionRequestBodyDeny PhpActionRequestBody = "deny" - PhpActionRequestBodyLog PhpActionRequestBody = "log" + PhpActionRequestDeny PhpActionRequest = "deny" + PhpActionRequestLog PhpActionRequest = "log" ) -func (e PhpActionRequestBody) ToPointer() *PhpActionRequestBody { +func (e PhpActionRequest) ToPointer() *PhpActionRequest { return &e } -func (e *PhpActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *PhpActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -259,17 +259,17 @@ func (e *PhpActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = PhpActionRequestBody(v) + *e = PhpActionRequest(v) return nil default: - return fmt.Errorf("invalid value for PhpActionRequestBody: %v", v) + return fmt.Errorf("invalid value for PhpActionRequest: %v", v) } } // PhpRequest - PHP Attack - Safeguard against vulnerability exploits in PHP-based applications. type PhpRequest struct { - Active bool `json:"active"` - Action PhpActionRequestBody `json:"action"` + Active bool `json:"active"` + Action PhpActionRequest `json:"action"` } func (o *PhpRequest) GetActive() bool { @@ -279,24 +279,24 @@ func (o *PhpRequest) GetActive() bool { return o.Active } -func (o *PhpRequest) GetAction() PhpActionRequestBody { +func (o *PhpRequest) GetAction() PhpActionRequest { if o == nil { - return PhpActionRequestBody("") + return PhpActionRequest("") } return o.Action } -type GenActionRequestBody string +type GenActionRequest string const ( - GenActionRequestBodyDeny GenActionRequestBody = "deny" - GenActionRequestBodyLog GenActionRequestBody = "log" + GenActionRequestDeny GenActionRequest = "deny" + GenActionRequestLog GenActionRequest = "log" ) -func (e GenActionRequestBody) ToPointer() *GenActionRequestBody { +func (e GenActionRequest) ToPointer() *GenActionRequest { return &e } -func (e *GenActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *GenActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -305,17 +305,17 @@ func (e *GenActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = GenActionRequestBody(v) + *e = GenActionRequest(v) return nil default: - return fmt.Errorf("invalid value for GenActionRequestBody: %v", v) + return fmt.Errorf("invalid value for GenActionRequest: %v", v) } } // GenRequest - Generic Attack - Provide broad protection from various undefined or novel attack vectors. type GenRequest struct { - Active bool `json:"active"` - Action GenActionRequestBody `json:"action"` + Active bool `json:"active"` + Action GenActionRequest `json:"action"` } func (o *GenRequest) GetActive() bool { @@ -325,24 +325,24 @@ func (o *GenRequest) GetActive() bool { return o.Active } -func (o *GenRequest) GetAction() GenActionRequestBody { +func (o *GenRequest) GetAction() GenActionRequest { if o == nil { - return GenActionRequestBody("") + return GenActionRequest("") } return o.Action } -type XSSActionRequestBody string +type XSSActionRequest string const ( - XSSActionRequestBodyDeny XSSActionRequestBody = "deny" - XSSActionRequestBodyLog XSSActionRequestBody = "log" + XSSActionRequestDeny XSSActionRequest = "deny" + XSSActionRequestLog XSSActionRequest = "log" ) -func (e XSSActionRequestBody) ToPointer() *XSSActionRequestBody { +func (e XSSActionRequest) ToPointer() *XSSActionRequest { return &e } -func (e *XSSActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *XSSActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -351,17 +351,17 @@ func (e *XSSActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = XSSActionRequestBody(v) + *e = XSSActionRequest(v) return nil default: - return fmt.Errorf("invalid value for XSSActionRequestBody: %v", v) + return fmt.Errorf("invalid value for XSSActionRequest: %v", v) } } // XSSRequest - XSS Attack - Prevent injection of malicious scripts into trusted webpages. type XSSRequest struct { - Active bool `json:"active"` - Action XSSActionRequestBody `json:"action"` + Active bool `json:"active"` + Action XSSActionRequest `json:"action"` } func (o *XSSRequest) GetActive() bool { @@ -371,24 +371,24 @@ func (o *XSSRequest) GetActive() bool { return o.Active } -func (o *XSSRequest) GetAction() XSSActionRequestBody { +func (o *XSSRequest) GetAction() XSSActionRequest { if o == nil { - return XSSActionRequestBody("") + return XSSActionRequest("") } return o.Action } -type SqliActionRequestBody string +type SqliActionRequest string const ( - SqliActionRequestBodyDeny SqliActionRequestBody = "deny" - SqliActionRequestBodyLog SqliActionRequestBody = "log" + SqliActionRequestDeny SqliActionRequest = "deny" + SqliActionRequestLog SqliActionRequest = "log" ) -func (e SqliActionRequestBody) ToPointer() *SqliActionRequestBody { +func (e SqliActionRequest) ToPointer() *SqliActionRequest { return &e } -func (e *SqliActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *SqliActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -397,17 +397,17 @@ func (e *SqliActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = SqliActionRequestBody(v) + *e = SqliActionRequest(v) return nil default: - return fmt.Errorf("invalid value for SqliActionRequestBody: %v", v) + return fmt.Errorf("invalid value for SqliActionRequest: %v", v) } } // SqliRequest - SQL Injection Attack - Prohibit unauthorized use of SQL commands to manipulate databases. type SqliRequest struct { - Active bool `json:"active"` - Action SqliActionRequestBody `json:"action"` + Active bool `json:"active"` + Action SqliActionRequest `json:"action"` } func (o *SqliRequest) GetActive() bool { @@ -417,24 +417,24 @@ func (o *SqliRequest) GetActive() bool { return o.Active } -func (o *SqliRequest) GetAction() SqliActionRequestBody { +func (o *SqliRequest) GetAction() SqliActionRequest { if o == nil { - return SqliActionRequestBody("") + return SqliActionRequest("") } return o.Action } -type SfActionRequestBody string +type SfActionRequest string const ( - SfActionRequestBodyDeny SfActionRequestBody = "deny" - SfActionRequestBodyLog SfActionRequestBody = "log" + SfActionRequestDeny SfActionRequest = "deny" + SfActionRequestLog SfActionRequest = "log" ) -func (e SfActionRequestBody) ToPointer() *SfActionRequestBody { +func (e SfActionRequest) ToPointer() *SfActionRequest { return &e } -func (e *SfActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *SfActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -443,17 +443,17 @@ func (e *SfActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = SfActionRequestBody(v) + *e = SfActionRequest(v) return nil default: - return fmt.Errorf("invalid value for SfActionRequestBody: %v", v) + return fmt.Errorf("invalid value for SfActionRequest: %v", v) } } // SfRequest - Session Fixation Attack - Prevent unauthorized takeover of user sessions by enforcing unique session IDs. type SfRequest struct { - Active bool `json:"active"` - Action SfActionRequestBody `json:"action"` + Active bool `json:"active"` + Action SfActionRequest `json:"action"` } func (o *SfRequest) GetActive() bool { @@ -463,24 +463,24 @@ func (o *SfRequest) GetActive() bool { return o.Active } -func (o *SfRequest) GetAction() SfActionRequestBody { +func (o *SfRequest) GetAction() SfActionRequest { if o == nil { - return SfActionRequestBody("") + return SfActionRequest("") } return o.Action } -type JavaActionRequestBody string +type JavaActionRequest string const ( - JavaActionRequestBodyDeny JavaActionRequestBody = "deny" - JavaActionRequestBodyLog JavaActionRequestBody = "log" + JavaActionRequestDeny JavaActionRequest = "deny" + JavaActionRequestLog JavaActionRequest = "log" ) -func (e JavaActionRequestBody) ToPointer() *JavaActionRequestBody { +func (e JavaActionRequest) ToPointer() *JavaActionRequest { return &e } -func (e *JavaActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *JavaActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -489,17 +489,17 @@ func (e *JavaActionRequestBody) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "log": - *e = JavaActionRequestBody(v) + *e = JavaActionRequest(v) return nil default: - return fmt.Errorf("invalid value for JavaActionRequestBody: %v", v) + return fmt.Errorf("invalid value for JavaActionRequest: %v", v) } } // JavaRequest - Java Attack - Mitigate risks of exploitation targeting Java-based applications or components. type JavaRequest struct { - Active bool `json:"active"` - Action JavaActionRequestBody `json:"action"` + Active bool `json:"active"` + Action JavaActionRequest `json:"action"` } func (o *JavaRequest) GetActive() bool { @@ -509,9 +509,9 @@ func (o *JavaRequest) GetActive() bool { return o.Active } -func (o *JavaRequest) GetAction() JavaActionRequestBody { +func (o *JavaRequest) GetAction() JavaActionRequest { if o == nil { - return JavaActionRequestBody("") + return JavaActionRequest("") } return o.Action } @@ -817,21 +817,21 @@ func CreatePutFirewallConfigValueRequestNumber(number float64) PutFirewallConfig func (u *PutFirewallConfigValueRequest) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = PutFirewallConfigValueRequestTypeStr return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = PutFirewallConfigValueRequestTypeArrayOfStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = PutFirewallConfigValueRequestTypeNumber return nil @@ -911,21 +911,21 @@ func (o *PutFirewallConfigConditionGroupRequest) GetConditions() []PutFirewallCo return o.Conditions } -type RuleActionRequestBodyEnum string +type RuleActionRequestEnum string const ( - RuleActionRequestBodyEnumLog RuleActionRequestBodyEnum = "log" - RuleActionRequestBodyEnumChallenge RuleActionRequestBodyEnum = "challenge" - RuleActionRequestBodyEnumDeny RuleActionRequestBodyEnum = "deny" - RuleActionRequestBodyEnumBypass RuleActionRequestBodyEnum = "bypass" - RuleActionRequestBodyEnumRateLimit RuleActionRequestBodyEnum = "rate_limit" - RuleActionRequestBodyEnumRedirect RuleActionRequestBodyEnum = "redirect" + RuleActionRequestEnumLog RuleActionRequestEnum = "log" + RuleActionRequestEnumChallenge RuleActionRequestEnum = "challenge" + RuleActionRequestEnumDeny RuleActionRequestEnum = "deny" + RuleActionRequestEnumBypass RuleActionRequestEnum = "bypass" + RuleActionRequestEnumRateLimit RuleActionRequestEnum = "rate_limit" + RuleActionRequestEnumRedirect RuleActionRequestEnum = "redirect" ) -func (e RuleActionRequestBodyEnum) ToPointer() *RuleActionRequestBodyEnum { +func (e RuleActionRequestEnum) ToPointer() *RuleActionRequestEnum { return &e } -func (e *RuleActionRequestBodyEnum) UnmarshalJSON(data []byte) error { +func (e *RuleActionRequestEnum) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -942,10 +942,10 @@ func (e *RuleActionRequestBodyEnum) UnmarshalJSON(data []byte) error { case "rate_limit": fallthrough case "redirect": - *e = RuleActionRequestBodyEnum(v) + *e = RuleActionRequestEnum(v) return nil default: - return fmt.Errorf("invalid value for RuleActionRequestBodyEnum: %v", v) + return fmt.Errorf("invalid value for RuleActionRequestEnum: %v", v) } } @@ -975,19 +975,19 @@ func (e *PutFirewallConfigAlgoRequest) UnmarshalJSON(data []byte) error { } } -type RateLimitActionRuleRequestBodyEnum string +type RateLimitActionRuleRequestEnum string const ( - RateLimitActionRuleRequestBodyEnumLog RateLimitActionRuleRequestBodyEnum = "log" - RateLimitActionRuleRequestBodyEnumChallenge RateLimitActionRuleRequestBodyEnum = "challenge" - RateLimitActionRuleRequestBodyEnumDeny RateLimitActionRuleRequestBodyEnum = "deny" - RateLimitActionRuleRequestBodyEnumRateLimit RateLimitActionRuleRequestBodyEnum = "rate_limit" + RateLimitActionRuleRequestEnumLog RateLimitActionRuleRequestEnum = "log" + RateLimitActionRuleRequestEnumChallenge RateLimitActionRuleRequestEnum = "challenge" + RateLimitActionRuleRequestEnumDeny RateLimitActionRuleRequestEnum = "deny" + RateLimitActionRuleRequestEnumRateLimit RateLimitActionRuleRequestEnum = "rate_limit" ) -func (e RateLimitActionRuleRequestBodyEnum) ToPointer() *RateLimitActionRuleRequestBodyEnum { +func (e RateLimitActionRuleRequestEnum) ToPointer() *RateLimitActionRuleRequestEnum { return &e } -func (e *RateLimitActionRuleRequestBodyEnum) UnmarshalJSON(data []byte) error { +func (e *RateLimitActionRuleRequestEnum) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -1000,33 +1000,33 @@ func (e *RateLimitActionRuleRequestBodyEnum) UnmarshalJSON(data []byte) error { case "deny": fallthrough case "rate_limit": - *e = RateLimitActionRuleRequestBodyEnum(v) + *e = RateLimitActionRuleRequestEnum(v) return nil default: - return fmt.Errorf("invalid value for RateLimitActionRuleRequestBodyEnum: %v", v) + return fmt.Errorf("invalid value for RateLimitActionRuleRequestEnum: %v", v) } } type RuleActionUnionType string const ( - RuleActionUnionTypeRateLimitActionRuleRequestBodyEnum RuleActionUnionType = "rateLimit_action_rule_RequestBody_enum" - RuleActionUnionTypeAny RuleActionUnionType = "any" + RuleActionUnionTypeRateLimitActionRuleRequestEnum RuleActionUnionType = "rateLimit_action_rule_request_enum" + RuleActionUnionTypeAny RuleActionUnionType = "any" ) type RuleActionUnion struct { - RateLimitActionRuleRequestBodyEnum *RateLimitActionRuleRequestBodyEnum `queryParam:"inline"` - Any any `queryParam:"inline"` + RateLimitActionRuleRequestEnum *RateLimitActionRuleRequestEnum `queryParam:"inline"` + Any any `queryParam:"inline"` Type RuleActionUnionType } -func CreateRuleActionUnionRateLimitActionRuleRequestBodyEnum(rateLimitActionRuleRequestBodyEnum RateLimitActionRuleRequestBodyEnum) RuleActionUnion { - typ := RuleActionUnionTypeRateLimitActionRuleRequestBodyEnum +func CreateRuleActionUnionRateLimitActionRuleRequestEnum(rateLimitActionRuleRequestEnum RateLimitActionRuleRequestEnum) RuleActionUnion { + typ := RuleActionUnionTypeRateLimitActionRuleRequestEnum return RuleActionUnion{ - RateLimitActionRuleRequestBodyEnum: &rateLimitActionRuleRequestBodyEnum, - Type: typ, + RateLimitActionRuleRequestEnum: &rateLimitActionRuleRequestEnum, + Type: typ, } } @@ -1041,15 +1041,15 @@ func CreateRuleActionUnionAny(anyT any) RuleActionUnion { func (u *RuleActionUnion) UnmarshalJSON(data []byte) error { - var rateLimitActionRuleRequestBodyEnum RateLimitActionRuleRequestBodyEnum = RateLimitActionRuleRequestBodyEnum("") - if err := utils.UnmarshalJSON(data, &rateLimitActionRuleRequestBodyEnum, "", true, true); err == nil { - u.RateLimitActionRuleRequestBodyEnum = &rateLimitActionRuleRequestBodyEnum - u.Type = RuleActionUnionTypeRateLimitActionRuleRequestBodyEnum + var rateLimitActionRuleRequestEnum RateLimitActionRuleRequestEnum = RateLimitActionRuleRequestEnum("") + if err := utils.UnmarshalJSON(data, &rateLimitActionRuleRequestEnum, "", true, nil); err == nil { + u.RateLimitActionRuleRequestEnum = &rateLimitActionRuleRequestEnum + u.Type = RuleActionUnionTypeRateLimitActionRuleRequestEnum return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = RuleActionUnionTypeAny return nil @@ -1059,8 +1059,8 @@ func (u *RuleActionUnion) UnmarshalJSON(data []byte) error { } func (u RuleActionUnion) MarshalJSON() ([]byte, error) { - if u.RateLimitActionRuleRequestBodyEnum != nil { - return utils.MarshalJSON(u.RateLimitActionRuleRequestBodyEnum, "", true) + if u.RateLimitActionRuleRequestEnum != nil { + return utils.MarshalJSON(u.RateLimitActionRuleRequestEnum, "", true) } if u.Any != nil { @@ -1078,6 +1078,17 @@ type PutFirewallConfigRateLimitRequest struct { Action *RuleActionUnion `json:"action,omitempty"` } +func (p PutFirewallConfigRateLimitRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PutFirewallConfigRateLimitRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"algo", "window", "limit", "keys"}); err != nil { + return err + } + return nil +} + func (o *PutFirewallConfigRateLimitRequest) GetAlgo() PutFirewallConfigAlgoRequest { if o == nil { return PutFirewallConfigAlgoRequest("") @@ -1148,14 +1159,14 @@ func CreatePutFirewallConfigRateLimitUnionAny(anyT any) PutFirewallConfigRateLim func (u *PutFirewallConfigRateLimitUnion) UnmarshalJSON(data []byte) error { var putFirewallConfigRateLimitRequest PutFirewallConfigRateLimitRequest = PutFirewallConfigRateLimitRequest{} - if err := utils.UnmarshalJSON(data, &putFirewallConfigRateLimitRequest, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &putFirewallConfigRateLimitRequest, "", true, nil); err == nil { u.PutFirewallConfigRateLimitRequest = &putFirewallConfigRateLimitRequest u.Type = PutFirewallConfigRateLimitUnionTypePutFirewallConfigRateLimitRequest return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = PutFirewallConfigRateLimitUnionTypeAny return nil @@ -1181,6 +1192,17 @@ type PutFirewallConfigRedirectRequest struct { Permanent bool `json:"permanent"` } +func (p PutFirewallConfigRedirectRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *PutFirewallConfigRedirectRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"location", "permanent"}); err != nil { + return err + } + return nil +} + func (o *PutFirewallConfigRedirectRequest) GetLocation() string { if o == nil { return "" @@ -1230,14 +1252,14 @@ func CreatePutFirewallConfigRedirectUnionAny(anyT any) PutFirewallConfigRedirect func (u *PutFirewallConfigRedirectUnion) UnmarshalJSON(data []byte) error { var putFirewallConfigRedirectRequest PutFirewallConfigRedirectRequest = PutFirewallConfigRedirectRequest{} - if err := utils.UnmarshalJSON(data, &putFirewallConfigRedirectRequest, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &putFirewallConfigRedirectRequest, "", true, nil); err == nil { u.PutFirewallConfigRedirectRequest = &putFirewallConfigRedirectRequest u.Type = PutFirewallConfigRedirectUnionTypePutFirewallConfigRedirectRequest return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = PutFirewallConfigRedirectUnionTypeAny return nil @@ -1259,16 +1281,16 @@ func (u PutFirewallConfigRedirectUnion) MarshalJSON() ([]byte, error) { } type PutFirewallConfigMitigateRequest struct { - Action RuleActionRequestBodyEnum `json:"action"` + Action RuleActionRequestEnum `json:"action"` RateLimit *PutFirewallConfigRateLimitUnion `json:"rateLimit,omitempty"` Redirect *PutFirewallConfigRedirectUnion `json:"redirect,omitempty"` ActionDuration *string `json:"actionDuration,omitempty"` BypassSystem *bool `json:"bypassSystem,omitempty"` } -func (o *PutFirewallConfigMitigateRequest) GetAction() RuleActionRequestBodyEnum { +func (o *PutFirewallConfigMitigateRequest) GetAction() RuleActionRequestEnum { if o == nil { - return RuleActionRequestBodyEnum("") + return RuleActionRequestEnum("") } return o.Action } @@ -1301,11 +1323,11 @@ func (o *PutFirewallConfigMitigateRequest) GetBypassSystem() *bool { return o.BypassSystem } -type RuleActionRequestBody struct { +type RuleActionRequest struct { Mitigate *PutFirewallConfigMitigateRequest `json:"mitigate,omitempty"` } -func (o *RuleActionRequestBody) GetMitigate() *PutFirewallConfigMitigateRequest { +func (o *RuleActionRequest) GetMitigate() *PutFirewallConfigMitigateRequest { if o == nil { return nil } @@ -1318,7 +1340,7 @@ type RuleRequest struct { Description *string `json:"description,omitempty"` Active bool `json:"active"` ConditionGroup []PutFirewallConfigConditionGroupRequest `json:"conditionGroup"` - Action RuleActionRequestBody `json:"action"` + Action RuleActionRequest `json:"action"` } func (o *RuleRequest) GetID() *string { @@ -1356,26 +1378,26 @@ func (o *RuleRequest) GetConditionGroup() []PutFirewallConfigConditionGroupReque return o.ConditionGroup } -func (o *RuleRequest) GetAction() RuleActionRequestBody { +func (o *RuleRequest) GetAction() RuleActionRequest { if o == nil { - return RuleActionRequestBody{} + return RuleActionRequest{} } return o.Action } -type IPActionRequestBody string +type IPActionRequest string const ( - IPActionRequestBodyDeny IPActionRequestBody = "deny" - IPActionRequestBodyChallenge IPActionRequestBody = "challenge" - IPActionRequestBodyLog IPActionRequestBody = "log" - IPActionRequestBodyBypass IPActionRequestBody = "bypass" + IPActionRequestDeny IPActionRequest = "deny" + IPActionRequestChallenge IPActionRequest = "challenge" + IPActionRequestLog IPActionRequest = "log" + IPActionRequestBypass IPActionRequest = "bypass" ) -func (e IPActionRequestBody) ToPointer() *IPActionRequestBody { +func (e IPActionRequest) ToPointer() *IPActionRequest { return &e } -func (e *IPActionRequestBody) UnmarshalJSON(data []byte) error { +func (e *IPActionRequest) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -1388,19 +1410,19 @@ func (e *IPActionRequestBody) UnmarshalJSON(data []byte) error { case "log": fallthrough case "bypass": - *e = IPActionRequestBody(v) + *e = IPActionRequest(v) return nil default: - return fmt.Errorf("invalid value for IPActionRequestBody: %v", v) + return fmt.Errorf("invalid value for IPActionRequest: %v", v) } } type IPRequest struct { - ID *string `json:"id,omitempty"` - Hostname string `json:"hostname"` - IP string `json:"ip"` - Notes *string `json:"notes,omitempty"` - Action IPActionRequestBody `json:"action"` + ID *string `json:"id,omitempty"` + Hostname string `json:"hostname"` + IP string `json:"ip"` + Notes *string `json:"notes,omitempty"` + Action IPActionRequest `json:"action"` } func (o *IPRequest) GetID() *string { @@ -1431,9 +1453,9 @@ func (o *IPRequest) GetNotes() *string { return o.Notes } -func (o *IPRequest) GetAction() IPActionRequestBody { +func (o *IPRequest) GetAction() IPActionRequest { if o == nil { - return IPActionRequestBody("") + return IPActionRequest("") } return o.Action } @@ -2336,21 +2358,21 @@ func CreateActiveValueArrayOfStr(arrayOfStr []string) ActiveValue { func (u *ActiveValue) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = ActiveValueTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = ActiveValueTypeNumber return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = ActiveValueTypeArrayOfStr return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/removebypassip.go b/src/__tests__/mockserver/internal/sdk/models/operations/removebypassip.go index 73628ab2..b65357e8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/removebypassip.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/removebypassip.go @@ -17,6 +17,17 @@ type RemoveBypassIPRequestBody2 struct { Note *string `json:"note,omitempty"` } +func (r RemoveBypassIPRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveBypassIPRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"projectScope"}); err != nil { + return err + } + return nil +} + func (o *RemoveBypassIPRequestBody2) GetDomain() *string { if o == nil { return nil @@ -60,6 +71,17 @@ type RemoveBypassIPRequestBody1 struct { Note *string `json:"note,omitempty"` } +func (r RemoveBypassIPRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveBypassIPRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"domain"}); err != nil { + return err + } + return nil +} + func (o *RemoveBypassIPRequestBody1) GetDomain() string { if o == nil { return "" @@ -130,14 +152,14 @@ func CreateRemoveBypassIPRequestBodyRemoveBypassIPRequestBody2(removeBypassIPReq func (u *RemoveBypassIPRequestBody) UnmarshalJSON(data []byte) error { var removeBypassIPRequestBody1 RemoveBypassIPRequestBody1 = RemoveBypassIPRequestBody1{} - if err := utils.UnmarshalJSON(data, &removeBypassIPRequestBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeBypassIPRequestBody1, "", true, nil); err == nil { u.RemoveBypassIPRequestBody1 = &removeBypassIPRequestBody1 u.Type = RemoveBypassIPRequestBodyTypeRemoveBypassIPRequestBody1 return nil } var removeBypassIPRequestBody2 RemoveBypassIPRequestBody2 = RemoveBypassIPRequestBody2{} - if err := utils.UnmarshalJSON(data, &removeBypassIPRequestBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeBypassIPRequestBody2, "", true, nil); err == nil { u.RemoveBypassIPRequestBody2 = &removeBypassIPRequestBody2 u.Type = RemoveBypassIPRequestBodyTypeRemoveBypassIPRequestBody2 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 0da4193f..7f6fcf3f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/removeprojectenv.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/removeprojectenv.go @@ -151,14 +151,14 @@ func CreateRemoveProjectEnvTargetUnion3RemoveProjectEnvTargetEnum6(removeProject func (u *RemoveProjectEnvTargetUnion3) UnmarshalJSON(data []byte) error { var arrayOfRemoveProjectEnvTargetEnum5 []RemoveProjectEnvTargetEnum5 = []RemoveProjectEnvTargetEnum5{} - if err := utils.UnmarshalJSON(data, &arrayOfRemoveProjectEnvTargetEnum5, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfRemoveProjectEnvTargetEnum5, "", true, nil); err == nil { u.ArrayOfRemoveProjectEnvTargetEnum5 = arrayOfRemoveProjectEnvTargetEnum5 u.Type = RemoveProjectEnvTargetUnion3TypeArrayOfRemoveProjectEnvTargetEnum5 return nil } var removeProjectEnvTargetEnum6 RemoveProjectEnvTargetEnum6 = RemoveProjectEnvTargetEnum6("") - if err := utils.UnmarshalJSON(data, &removeProjectEnvTargetEnum6, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvTargetEnum6, "", true, nil); err == nil { u.RemoveProjectEnvTargetEnum6 = &removeProjectEnvTargetEnum6 u.Type = RemoveProjectEnvTargetUnion3TypeRemoveProjectEnvTargetEnum6 return nil @@ -183,10 +183,10 @@ type RemoveProjectEnvType3 string const ( RemoveProjectEnvType3System RemoveProjectEnvType3 = "system" - RemoveProjectEnvType3Secret RemoveProjectEnvType3 = "secret" RemoveProjectEnvType3Encrypted RemoveProjectEnvType3 = "encrypted" RemoveProjectEnvType3Plain RemoveProjectEnvType3 = "plain" RemoveProjectEnvType3Sensitive RemoveProjectEnvType3 = "sensitive" + RemoveProjectEnvType3Secret RemoveProjectEnvType3 = "secret" ) func (e RemoveProjectEnvType3) ToPointer() *RemoveProjectEnvType3 { @@ -200,13 +200,13 @@ func (e *RemoveProjectEnvType3) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = RemoveProjectEnvType3(v) return nil default: @@ -242,6 +242,17 @@ type RemoveProjectEnvContentHintFlagsConnectionString3 struct { ProjectID string `json:"projectId"` } +func (r RemoveProjectEnvContentHintFlagsConnectionString3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintFlagsConnectionString3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintFlagsConnectionString3) GetType() RemoveProjectEnvTypeFlagsConnectionString3 { if o == nil { return RemoveProjectEnvTypeFlagsConnectionString3("") @@ -287,6 +298,17 @@ type RemoveProjectEnvContentHintIntegrationStoreSecret3 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (r RemoveProjectEnvContentHintIntegrationStoreSecret3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintIntegrationStoreSecret3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintIntegrationStoreSecret3) GetType() RemoveProjectEnvTypeIntegrationStoreSecret3 { if o == nil { return RemoveProjectEnvTypeIntegrationStoreSecret3("") @@ -350,6 +372,17 @@ type RemoveProjectEnvContentHintPostgresURLNoSsl3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURLNoSsl3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURLNoSsl3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURLNoSsl3) GetType() RemoveProjectEnvTypePostgresURLNoSsl3 { if o == nil { return RemoveProjectEnvTypePostgresURLNoSsl3("") @@ -392,6 +425,17 @@ type RemoveProjectEnvContentHintPostgresDatabase3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresDatabase3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresDatabase3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresDatabase3) GetType() RemoveProjectEnvTypePostgresDatabase3 { if o == nil { return RemoveProjectEnvTypePostgresDatabase3("") @@ -434,6 +478,17 @@ type RemoveProjectEnvContentHintPostgresPassword3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresPassword3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresPassword3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresPassword3) GetType() RemoveProjectEnvTypePostgresPassword3 { if o == nil { return RemoveProjectEnvTypePostgresPassword3("") @@ -476,6 +531,17 @@ type RemoveProjectEnvContentHintPostgresHost3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresHost3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresHost3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresHost3) GetType() RemoveProjectEnvTypePostgresHost3 { if o == nil { return RemoveProjectEnvTypePostgresHost3("") @@ -518,6 +584,17 @@ type RemoveProjectEnvContentHintPostgresUser3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresUser3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresUser3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresUser3) GetType() RemoveProjectEnvTypePostgresUser3 { if o == nil { return RemoveProjectEnvTypePostgresUser3("") @@ -560,6 +637,17 @@ type RemoveProjectEnvContentHintPostgresPrismaURL3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresPrismaURL3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresPrismaURL3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresPrismaURL3) GetType() RemoveProjectEnvTypePostgresPrismaURL3 { if o == nil { return RemoveProjectEnvTypePostgresPrismaURL3("") @@ -602,6 +690,17 @@ type RemoveProjectEnvContentHintPostgresURLNonPooling3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURLNonPooling3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURLNonPooling3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURLNonPooling3) GetType() RemoveProjectEnvTypePostgresURLNonPooling3 { if o == nil { return RemoveProjectEnvTypePostgresURLNonPooling3("") @@ -644,6 +743,17 @@ type RemoveProjectEnvContentHintPostgresURL3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURL3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURL3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURL3) GetType() RemoveProjectEnvTypePostgresURL3 { if o == nil { return RemoveProjectEnvTypePostgresURL3("") @@ -686,6 +796,17 @@ type RemoveProjectEnvContentHintBlobReadWriteToken3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintBlobReadWriteToken3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintBlobReadWriteToken3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintBlobReadWriteToken3) GetType() RemoveProjectEnvTypeBlobReadWriteToken3 { if o == nil { return RemoveProjectEnvTypeBlobReadWriteToken3("") @@ -728,6 +849,17 @@ type RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3) GetType() RemoveProjectEnvTypeRedisRestAPIReadOnlyToken3 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIReadOnlyToken3("") @@ -770,6 +902,17 @@ type RemoveProjectEnvContentHintRedisRestAPIToken3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIToken3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIToken3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIToken3) GetType() RemoveProjectEnvTypeRedisRestAPIToken3 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIToken3("") @@ -812,6 +955,17 @@ type RemoveProjectEnvContentHintRedisRestAPIURL3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIURL3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIURL3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIURL3) GetType() RemoveProjectEnvTypeRedisRestAPIURL3 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIURL3("") @@ -854,6 +1008,17 @@ type RemoveProjectEnvContentHintRedisURL3 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisURL3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisURL3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisURL3) GetType() RemoveProjectEnvTypeRedisURL3 { if o == nil { return RemoveProjectEnvTypeRedisURL3("") @@ -1045,111 +1210,111 @@ func CreateRemoveProjectEnvContentHintUnion3RemoveProjectEnvContentHintFlagsConn func (u *RemoveProjectEnvContentHintUnion3) UnmarshalJSON(data []byte) error { - var removeProjectEnvContentHintPostgresURLNonPooling3 RemoveProjectEnvContentHintPostgresURLNonPooling3 = RemoveProjectEnvContentHintPostgresURLNonPooling3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling3, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNonPooling3 = &removeProjectEnvContentHintPostgresURLNonPooling3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNonPooling3 + var removeProjectEnvContentHintIntegrationStoreSecret3 RemoveProjectEnvContentHintIntegrationStoreSecret3 = RemoveProjectEnvContentHintIntegrationStoreSecret3{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret3, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintIntegrationStoreSecret3 = &removeProjectEnvContentHintIntegrationStoreSecret3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintIntegrationStoreSecret3 return nil } - var removeProjectEnvContentHintPostgresPassword3 RemoveProjectEnvContentHintPostgresPassword3 = RemoveProjectEnvContentHintPostgresPassword3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword3, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresPassword3 = &removeProjectEnvContentHintPostgresPassword3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPassword3 + var removeProjectEnvContentHintRedisURL3 RemoveProjectEnvContentHintRedisURL3 = RemoveProjectEnvContentHintRedisURL3{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL3, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintRedisURL3 = &removeProjectEnvContentHintRedisURL3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisURL3 + return nil + } + + var removeProjectEnvContentHintRedisRestAPIURL3 RemoveProjectEnvContentHintRedisRestAPIURL3 = RemoveProjectEnvContentHintRedisRestAPIURL3{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL3, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintRedisRestAPIURL3 = &removeProjectEnvContentHintRedisRestAPIURL3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIURL3 return nil } var removeProjectEnvContentHintRedisRestAPIToken3 RemoveProjectEnvContentHintRedisRestAPIToken3 = RemoveProjectEnvContentHintRedisRestAPIToken3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken3, "", true, nil); err == nil { u.RemoveProjectEnvContentHintRedisRestAPIToken3 = &removeProjectEnvContentHintRedisRestAPIToken3 u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIToken3 return nil } var removeProjectEnvContentHintRedisRestAPIReadOnlyToken3 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 = RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken3, "", true, nil); err == nil { u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 = &removeProjectEnvContentHintRedisRestAPIReadOnlyToken3 u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken3 return nil } var removeProjectEnvContentHintBlobReadWriteToken3 RemoveProjectEnvContentHintBlobReadWriteToken3 = RemoveProjectEnvContentHintBlobReadWriteToken3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken3, "", true, nil); err == nil { u.RemoveProjectEnvContentHintBlobReadWriteToken3 = &removeProjectEnvContentHintBlobReadWriteToken3 u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintBlobReadWriteToken3 return nil } var removeProjectEnvContentHintPostgresURL3 RemoveProjectEnvContentHintPostgresURL3 = RemoveProjectEnvContentHintPostgresURL3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL3, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresURL3 = &removeProjectEnvContentHintPostgresURL3 u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURL3 return nil } - var removeProjectEnvContentHintRedisRestAPIURL3 RemoveProjectEnvContentHintRedisRestAPIURL3 = RemoveProjectEnvContentHintRedisRestAPIURL3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL3, "", true, true); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIURL3 = &removeProjectEnvContentHintRedisRestAPIURL3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisRestAPIURL3 + var removeProjectEnvContentHintPostgresURLNonPooling3 RemoveProjectEnvContentHintPostgresURLNonPooling3 = RemoveProjectEnvContentHintPostgresURLNonPooling3{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling3, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresURLNonPooling3 = &removeProjectEnvContentHintPostgresURLNonPooling3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNonPooling3 return nil } - var removeProjectEnvContentHintPostgresUser3 RemoveProjectEnvContentHintPostgresUser3 = RemoveProjectEnvContentHintPostgresUser3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser3, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresUser3 = &removeProjectEnvContentHintPostgresUser3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresUser3 + var removeProjectEnvContentHintPostgresPrismaURL3 RemoveProjectEnvContentHintPostgresPrismaURL3 = RemoveProjectEnvContentHintPostgresPrismaURL3{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL3, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresPrismaURL3 = &removeProjectEnvContentHintPostgresPrismaURL3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPrismaURL3 return nil } - var removeProjectEnvContentHintRedisURL3 RemoveProjectEnvContentHintRedisURL3 = RemoveProjectEnvContentHintRedisURL3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL3, "", true, true); err == nil { - u.RemoveProjectEnvContentHintRedisURL3 = &removeProjectEnvContentHintRedisURL3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintRedisURL3 + var removeProjectEnvContentHintPostgresUser3 RemoveProjectEnvContentHintPostgresUser3 = RemoveProjectEnvContentHintPostgresUser3{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser3, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresUser3 = &removeProjectEnvContentHintPostgresUser3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresUser3 return nil } var removeProjectEnvContentHintPostgresHost3 RemoveProjectEnvContentHintPostgresHost3 = RemoveProjectEnvContentHintPostgresHost3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost3, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresHost3 = &removeProjectEnvContentHintPostgresHost3 u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresHost3 return nil } - var removeProjectEnvContentHintPostgresPrismaURL3 RemoveProjectEnvContentHintPostgresPrismaURL3 = RemoveProjectEnvContentHintPostgresPrismaURL3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL3, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresPrismaURL3 = &removeProjectEnvContentHintPostgresPrismaURL3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPrismaURL3 + var removeProjectEnvContentHintPostgresPassword3 RemoveProjectEnvContentHintPostgresPassword3 = RemoveProjectEnvContentHintPostgresPassword3{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword3, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresPassword3 = &removeProjectEnvContentHintPostgresPassword3 + u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresPassword3 return nil } var removeProjectEnvContentHintPostgresDatabase3 RemoveProjectEnvContentHintPostgresDatabase3 = RemoveProjectEnvContentHintPostgresDatabase3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase3, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresDatabase3 = &removeProjectEnvContentHintPostgresDatabase3 u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresDatabase3 return nil } var removeProjectEnvContentHintPostgresURLNoSsl3 RemoveProjectEnvContentHintPostgresURLNoSsl3 = RemoveProjectEnvContentHintPostgresURLNoSsl3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl3, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresURLNoSsl3 = &removeProjectEnvContentHintPostgresURLNoSsl3 u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintPostgresURLNoSsl3 return nil } var removeProjectEnvContentHintFlagsConnectionString3 RemoveProjectEnvContentHintFlagsConnectionString3 = RemoveProjectEnvContentHintFlagsConnectionString3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString3, "", true, nil); err == nil { u.RemoveProjectEnvContentHintFlagsConnectionString3 = &removeProjectEnvContentHintFlagsConnectionString3 u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintFlagsConnectionString3 return nil } - var removeProjectEnvContentHintIntegrationStoreSecret3 RemoveProjectEnvContentHintIntegrationStoreSecret3 = RemoveProjectEnvContentHintIntegrationStoreSecret3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret3, "", true, true); err == nil { - u.RemoveProjectEnvContentHintIntegrationStoreSecret3 = &removeProjectEnvContentHintIntegrationStoreSecret3 - u.Type = RemoveProjectEnvContentHintUnion3TypeRemoveProjectEnvContentHintIntegrationStoreSecret3 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for RemoveProjectEnvContentHintUnion3", string(data)) } @@ -1247,6 +1412,17 @@ type RemoveProjectEnvInternalContentHint3 struct { EncryptedValue string `json:"encryptedValue"` } +func (r RemoveProjectEnvInternalContentHint3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvInternalContentHint3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvInternalContentHint3) GetType() RemoveProjectEnvTypeFlagsSecret3 { if o == nil { return RemoveProjectEnvTypeFlagsSecret3("") @@ -1286,6 +1462,17 @@ type RemoveProjectEnvResponseBody3 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (r RemoveProjectEnvResponseBody3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvResponseBody3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvResponseBody3) GetTarget() *RemoveProjectEnvTargetUnion3 { if o == nil { return nil @@ -1519,14 +1706,14 @@ func CreateRemoveProjectEnvTargetUnion2RemoveProjectEnvTargetEnum4(removeProject func (u *RemoveProjectEnvTargetUnion2) UnmarshalJSON(data []byte) error { var arrayOfRemoveProjectEnvTargetEnum3 []RemoveProjectEnvTargetEnum3 = []RemoveProjectEnvTargetEnum3{} - if err := utils.UnmarshalJSON(data, &arrayOfRemoveProjectEnvTargetEnum3, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfRemoveProjectEnvTargetEnum3, "", true, nil); err == nil { u.ArrayOfRemoveProjectEnvTargetEnum3 = arrayOfRemoveProjectEnvTargetEnum3 u.Type = RemoveProjectEnvTargetUnion2TypeArrayOfRemoveProjectEnvTargetEnum3 return nil } var removeProjectEnvTargetEnum4 RemoveProjectEnvTargetEnum4 = RemoveProjectEnvTargetEnum4("") - if err := utils.UnmarshalJSON(data, &removeProjectEnvTargetEnum4, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvTargetEnum4, "", true, nil); err == nil { u.RemoveProjectEnvTargetEnum4 = &removeProjectEnvTargetEnum4 u.Type = RemoveProjectEnvTargetUnion2TypeRemoveProjectEnvTargetEnum4 return nil @@ -1551,10 +1738,10 @@ type RemoveProjectEnvType2 string const ( RemoveProjectEnvType2System RemoveProjectEnvType2 = "system" - RemoveProjectEnvType2Secret RemoveProjectEnvType2 = "secret" RemoveProjectEnvType2Encrypted RemoveProjectEnvType2 = "encrypted" RemoveProjectEnvType2Plain RemoveProjectEnvType2 = "plain" RemoveProjectEnvType2Sensitive RemoveProjectEnvType2 = "sensitive" + RemoveProjectEnvType2Secret RemoveProjectEnvType2 = "secret" ) func (e RemoveProjectEnvType2) ToPointer() *RemoveProjectEnvType2 { @@ -1568,13 +1755,13 @@ func (e *RemoveProjectEnvType2) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = RemoveProjectEnvType2(v) return nil default: @@ -1610,6 +1797,17 @@ type RemoveProjectEnvContentHintFlagsConnectionString2 struct { ProjectID string `json:"projectId"` } +func (r RemoveProjectEnvContentHintFlagsConnectionString2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintFlagsConnectionString2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintFlagsConnectionString2) GetType() RemoveProjectEnvTypeFlagsConnectionString2 { if o == nil { return RemoveProjectEnvTypeFlagsConnectionString2("") @@ -1655,6 +1853,17 @@ type RemoveProjectEnvContentHintIntegrationStoreSecret2 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (r RemoveProjectEnvContentHintIntegrationStoreSecret2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintIntegrationStoreSecret2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintIntegrationStoreSecret2) GetType() RemoveProjectEnvTypeIntegrationStoreSecret2 { if o == nil { return RemoveProjectEnvTypeIntegrationStoreSecret2("") @@ -1718,6 +1927,17 @@ type RemoveProjectEnvContentHintPostgresURLNoSsl2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURLNoSsl2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURLNoSsl2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURLNoSsl2) GetType() RemoveProjectEnvTypePostgresURLNoSsl2 { if o == nil { return RemoveProjectEnvTypePostgresURLNoSsl2("") @@ -1760,6 +1980,17 @@ type RemoveProjectEnvContentHintPostgresDatabase2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresDatabase2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresDatabase2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresDatabase2) GetType() RemoveProjectEnvTypePostgresDatabase2 { if o == nil { return RemoveProjectEnvTypePostgresDatabase2("") @@ -1802,6 +2033,17 @@ type RemoveProjectEnvContentHintPostgresPassword2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresPassword2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresPassword2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresPassword2) GetType() RemoveProjectEnvTypePostgresPassword2 { if o == nil { return RemoveProjectEnvTypePostgresPassword2("") @@ -1844,6 +2086,17 @@ type RemoveProjectEnvContentHintPostgresHost2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresHost2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresHost2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresHost2) GetType() RemoveProjectEnvTypePostgresHost2 { if o == nil { return RemoveProjectEnvTypePostgresHost2("") @@ -1886,6 +2139,17 @@ type RemoveProjectEnvContentHintPostgresUser2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresUser2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresUser2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresUser2) GetType() RemoveProjectEnvTypePostgresUser2 { if o == nil { return RemoveProjectEnvTypePostgresUser2("") @@ -1928,6 +2192,17 @@ type RemoveProjectEnvContentHintPostgresPrismaURL2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresPrismaURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresPrismaURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresPrismaURL2) GetType() RemoveProjectEnvTypePostgresPrismaURL2 { if o == nil { return RemoveProjectEnvTypePostgresPrismaURL2("") @@ -1970,6 +2245,17 @@ type RemoveProjectEnvContentHintPostgresURLNonPooling2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURLNonPooling2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURLNonPooling2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURLNonPooling2) GetType() RemoveProjectEnvTypePostgresURLNonPooling2 { if o == nil { return RemoveProjectEnvTypePostgresURLNonPooling2("") @@ -2012,6 +2298,17 @@ type RemoveProjectEnvContentHintPostgresURL2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURL2) GetType() RemoveProjectEnvTypePostgresURL2 { if o == nil { return RemoveProjectEnvTypePostgresURL2("") @@ -2054,6 +2351,17 @@ type RemoveProjectEnvContentHintBlobReadWriteToken2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintBlobReadWriteToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintBlobReadWriteToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintBlobReadWriteToken2) GetType() RemoveProjectEnvTypeBlobReadWriteToken2 { if o == nil { return RemoveProjectEnvTypeBlobReadWriteToken2("") @@ -2096,6 +2404,17 @@ type RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2) GetType() RemoveProjectEnvTypeRedisRestAPIReadOnlyToken2 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIReadOnlyToken2("") @@ -2138,6 +2457,17 @@ type RemoveProjectEnvContentHintRedisRestAPIToken2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIToken2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIToken2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIToken2) GetType() RemoveProjectEnvTypeRedisRestAPIToken2 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIToken2("") @@ -2180,6 +2510,17 @@ type RemoveProjectEnvContentHintRedisRestAPIURL2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIURL2) GetType() RemoveProjectEnvTypeRedisRestAPIURL2 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIURL2("") @@ -2222,6 +2563,17 @@ type RemoveProjectEnvContentHintRedisURL2 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisURL2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisURL2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisURL2) GetType() RemoveProjectEnvTypeRedisURL2 { if o == nil { return RemoveProjectEnvTypeRedisURL2("") @@ -2413,111 +2765,111 @@ func CreateRemoveProjectEnvContentHintUnion2RemoveProjectEnvContentHintFlagsConn func (u *RemoveProjectEnvContentHintUnion2) UnmarshalJSON(data []byte) error { - var removeProjectEnvContentHintPostgresURLNonPooling2 RemoveProjectEnvContentHintPostgresURLNonPooling2 = RemoveProjectEnvContentHintPostgresURLNonPooling2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling2, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNonPooling2 = &removeProjectEnvContentHintPostgresURLNonPooling2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNonPooling2 + var removeProjectEnvContentHintIntegrationStoreSecret2 RemoveProjectEnvContentHintIntegrationStoreSecret2 = RemoveProjectEnvContentHintIntegrationStoreSecret2{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret2, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintIntegrationStoreSecret2 = &removeProjectEnvContentHintIntegrationStoreSecret2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintIntegrationStoreSecret2 return nil } - var removeProjectEnvContentHintPostgresPassword2 RemoveProjectEnvContentHintPostgresPassword2 = RemoveProjectEnvContentHintPostgresPassword2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword2, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresPassword2 = &removeProjectEnvContentHintPostgresPassword2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPassword2 + var removeProjectEnvContentHintRedisURL2 RemoveProjectEnvContentHintRedisURL2 = RemoveProjectEnvContentHintRedisURL2{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL2, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintRedisURL2 = &removeProjectEnvContentHintRedisURL2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisURL2 + return nil + } + + var removeProjectEnvContentHintRedisRestAPIURL2 RemoveProjectEnvContentHintRedisRestAPIURL2 = RemoveProjectEnvContentHintRedisRestAPIURL2{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL2, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintRedisRestAPIURL2 = &removeProjectEnvContentHintRedisRestAPIURL2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIURL2 return nil } var removeProjectEnvContentHintRedisRestAPIToken2 RemoveProjectEnvContentHintRedisRestAPIToken2 = RemoveProjectEnvContentHintRedisRestAPIToken2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken2, "", true, nil); err == nil { u.RemoveProjectEnvContentHintRedisRestAPIToken2 = &removeProjectEnvContentHintRedisRestAPIToken2 u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIToken2 return nil } var removeProjectEnvContentHintRedisRestAPIReadOnlyToken2 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 = RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken2, "", true, nil); err == nil { u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 = &removeProjectEnvContentHintRedisRestAPIReadOnlyToken2 u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken2 return nil } var removeProjectEnvContentHintBlobReadWriteToken2 RemoveProjectEnvContentHintBlobReadWriteToken2 = RemoveProjectEnvContentHintBlobReadWriteToken2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken2, "", true, nil); err == nil { u.RemoveProjectEnvContentHintBlobReadWriteToken2 = &removeProjectEnvContentHintBlobReadWriteToken2 u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintBlobReadWriteToken2 return nil } var removeProjectEnvContentHintPostgresURL2 RemoveProjectEnvContentHintPostgresURL2 = RemoveProjectEnvContentHintPostgresURL2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL2, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresURL2 = &removeProjectEnvContentHintPostgresURL2 u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURL2 return nil } - var removeProjectEnvContentHintRedisRestAPIURL2 RemoveProjectEnvContentHintRedisRestAPIURL2 = RemoveProjectEnvContentHintRedisRestAPIURL2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL2, "", true, true); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIURL2 = &removeProjectEnvContentHintRedisRestAPIURL2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisRestAPIURL2 + var removeProjectEnvContentHintPostgresURLNonPooling2 RemoveProjectEnvContentHintPostgresURLNonPooling2 = RemoveProjectEnvContentHintPostgresURLNonPooling2{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling2, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresURLNonPooling2 = &removeProjectEnvContentHintPostgresURLNonPooling2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNonPooling2 return nil } - var removeProjectEnvContentHintPostgresUser2 RemoveProjectEnvContentHintPostgresUser2 = RemoveProjectEnvContentHintPostgresUser2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser2, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresUser2 = &removeProjectEnvContentHintPostgresUser2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresUser2 + var removeProjectEnvContentHintPostgresPrismaURL2 RemoveProjectEnvContentHintPostgresPrismaURL2 = RemoveProjectEnvContentHintPostgresPrismaURL2{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL2, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresPrismaURL2 = &removeProjectEnvContentHintPostgresPrismaURL2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPrismaURL2 return nil } - var removeProjectEnvContentHintRedisURL2 RemoveProjectEnvContentHintRedisURL2 = RemoveProjectEnvContentHintRedisURL2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL2, "", true, true); err == nil { - u.RemoveProjectEnvContentHintRedisURL2 = &removeProjectEnvContentHintRedisURL2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintRedisURL2 + var removeProjectEnvContentHintPostgresUser2 RemoveProjectEnvContentHintPostgresUser2 = RemoveProjectEnvContentHintPostgresUser2{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser2, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresUser2 = &removeProjectEnvContentHintPostgresUser2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresUser2 return nil } var removeProjectEnvContentHintPostgresHost2 RemoveProjectEnvContentHintPostgresHost2 = RemoveProjectEnvContentHintPostgresHost2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost2, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresHost2 = &removeProjectEnvContentHintPostgresHost2 u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresHost2 return nil } - var removeProjectEnvContentHintPostgresPrismaURL2 RemoveProjectEnvContentHintPostgresPrismaURL2 = RemoveProjectEnvContentHintPostgresPrismaURL2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL2, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresPrismaURL2 = &removeProjectEnvContentHintPostgresPrismaURL2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPrismaURL2 + var removeProjectEnvContentHintPostgresPassword2 RemoveProjectEnvContentHintPostgresPassword2 = RemoveProjectEnvContentHintPostgresPassword2{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword2, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresPassword2 = &removeProjectEnvContentHintPostgresPassword2 + u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresPassword2 return nil } var removeProjectEnvContentHintPostgresDatabase2 RemoveProjectEnvContentHintPostgresDatabase2 = RemoveProjectEnvContentHintPostgresDatabase2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase2, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresDatabase2 = &removeProjectEnvContentHintPostgresDatabase2 u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresDatabase2 return nil } var removeProjectEnvContentHintPostgresURLNoSsl2 RemoveProjectEnvContentHintPostgresURLNoSsl2 = RemoveProjectEnvContentHintPostgresURLNoSsl2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl2, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresURLNoSsl2 = &removeProjectEnvContentHintPostgresURLNoSsl2 u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintPostgresURLNoSsl2 return nil } var removeProjectEnvContentHintFlagsConnectionString2 RemoveProjectEnvContentHintFlagsConnectionString2 = RemoveProjectEnvContentHintFlagsConnectionString2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString2, "", true, nil); err == nil { u.RemoveProjectEnvContentHintFlagsConnectionString2 = &removeProjectEnvContentHintFlagsConnectionString2 u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintFlagsConnectionString2 return nil } - var removeProjectEnvContentHintIntegrationStoreSecret2 RemoveProjectEnvContentHintIntegrationStoreSecret2 = RemoveProjectEnvContentHintIntegrationStoreSecret2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret2, "", true, true); err == nil { - u.RemoveProjectEnvContentHintIntegrationStoreSecret2 = &removeProjectEnvContentHintIntegrationStoreSecret2 - u.Type = RemoveProjectEnvContentHintUnion2TypeRemoveProjectEnvContentHintIntegrationStoreSecret2 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for RemoveProjectEnvContentHintUnion2", string(data)) } @@ -2615,6 +2967,17 @@ type RemoveProjectEnvInternalContentHint2 struct { EncryptedValue string `json:"encryptedValue"` } +func (r RemoveProjectEnvInternalContentHint2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvInternalContentHint2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvInternalContentHint2) GetType() RemoveProjectEnvTypeFlagsSecret2 { if o == nil { return RemoveProjectEnvTypeFlagsSecret2("") @@ -2655,6 +3018,17 @@ type RemoveProjectEnvResponseBody2 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (r RemoveProjectEnvResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvResponseBody2) GetSystem() *bool { if o == nil { return nil @@ -2895,14 +3269,14 @@ func CreateRemoveProjectEnvTargetUnion1RemoveProjectEnvTargetEnum2(removeProject func (u *RemoveProjectEnvTargetUnion1) UnmarshalJSON(data []byte) error { var arrayOfRemoveProjectEnvTargetEnum1 []RemoveProjectEnvTargetEnum1 = []RemoveProjectEnvTargetEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfRemoveProjectEnvTargetEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfRemoveProjectEnvTargetEnum1, "", true, nil); err == nil { u.ArrayOfRemoveProjectEnvTargetEnum1 = arrayOfRemoveProjectEnvTargetEnum1 u.Type = RemoveProjectEnvTargetUnion1TypeArrayOfRemoveProjectEnvTargetEnum1 return nil } var removeProjectEnvTargetEnum2 RemoveProjectEnvTargetEnum2 = RemoveProjectEnvTargetEnum2("") - if err := utils.UnmarshalJSON(data, &removeProjectEnvTargetEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvTargetEnum2, "", true, nil); err == nil { u.RemoveProjectEnvTargetEnum2 = &removeProjectEnvTargetEnum2 u.Type = RemoveProjectEnvTargetUnion1TypeRemoveProjectEnvTargetEnum2 return nil @@ -2927,10 +3301,10 @@ type RemoveProjectEnvType1 string const ( RemoveProjectEnvType1System RemoveProjectEnvType1 = "system" - RemoveProjectEnvType1Secret RemoveProjectEnvType1 = "secret" RemoveProjectEnvType1Encrypted RemoveProjectEnvType1 = "encrypted" RemoveProjectEnvType1Plain RemoveProjectEnvType1 = "plain" RemoveProjectEnvType1Sensitive RemoveProjectEnvType1 = "sensitive" + RemoveProjectEnvType1Secret RemoveProjectEnvType1 = "secret" ) func (e RemoveProjectEnvType1) ToPointer() *RemoveProjectEnvType1 { @@ -2944,13 +3318,13 @@ func (e *RemoveProjectEnvType1) UnmarshalJSON(data []byte) error { switch v { case "system": fallthrough - case "secret": - fallthrough case "encrypted": fallthrough case "plain": fallthrough case "sensitive": + fallthrough + case "secret": *e = RemoveProjectEnvType1(v) return nil default: @@ -2986,6 +3360,17 @@ type RemoveProjectEnvContentHintFlagsConnectionString1 struct { ProjectID string `json:"projectId"` } +func (r RemoveProjectEnvContentHintFlagsConnectionString1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintFlagsConnectionString1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintFlagsConnectionString1) GetType() RemoveProjectEnvTypeFlagsConnectionString1 { if o == nil { return RemoveProjectEnvTypeFlagsConnectionString1("") @@ -3031,6 +3416,17 @@ type RemoveProjectEnvContentHintIntegrationStoreSecret1 struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (r RemoveProjectEnvContentHintIntegrationStoreSecret1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintIntegrationStoreSecret1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintIntegrationStoreSecret1) GetType() RemoveProjectEnvTypeIntegrationStoreSecret1 { if o == nil { return RemoveProjectEnvTypeIntegrationStoreSecret1("") @@ -3094,6 +3490,17 @@ type RemoveProjectEnvContentHintPostgresURLNoSsl1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURLNoSsl1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURLNoSsl1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURLNoSsl1) GetType() RemoveProjectEnvTypePostgresURLNoSsl1 { if o == nil { return RemoveProjectEnvTypePostgresURLNoSsl1("") @@ -3136,6 +3543,17 @@ type RemoveProjectEnvContentHintPostgresDatabase1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresDatabase1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresDatabase1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresDatabase1) GetType() RemoveProjectEnvTypePostgresDatabase1 { if o == nil { return RemoveProjectEnvTypePostgresDatabase1("") @@ -3178,6 +3596,17 @@ type RemoveProjectEnvContentHintPostgresPassword1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresPassword1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresPassword1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresPassword1) GetType() RemoveProjectEnvTypePostgresPassword1 { if o == nil { return RemoveProjectEnvTypePostgresPassword1("") @@ -3220,6 +3649,17 @@ type RemoveProjectEnvContentHintPostgresHost1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresHost1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresHost1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresHost1) GetType() RemoveProjectEnvTypePostgresHost1 { if o == nil { return RemoveProjectEnvTypePostgresHost1("") @@ -3262,6 +3702,17 @@ type RemoveProjectEnvContentHintPostgresUser1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresUser1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresUser1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresUser1) GetType() RemoveProjectEnvTypePostgresUser1 { if o == nil { return RemoveProjectEnvTypePostgresUser1("") @@ -3304,6 +3755,17 @@ type RemoveProjectEnvContentHintPostgresPrismaURL1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresPrismaURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresPrismaURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresPrismaURL1) GetType() RemoveProjectEnvTypePostgresPrismaURL1 { if o == nil { return RemoveProjectEnvTypePostgresPrismaURL1("") @@ -3346,6 +3808,17 @@ type RemoveProjectEnvContentHintPostgresURLNonPooling1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURLNonPooling1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURLNonPooling1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURLNonPooling1) GetType() RemoveProjectEnvTypePostgresURLNonPooling1 { if o == nil { return RemoveProjectEnvTypePostgresURLNonPooling1("") @@ -3388,6 +3861,17 @@ type RemoveProjectEnvContentHintPostgresURL1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintPostgresURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintPostgresURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintPostgresURL1) GetType() RemoveProjectEnvTypePostgresURL1 { if o == nil { return RemoveProjectEnvTypePostgresURL1("") @@ -3430,6 +3914,17 @@ type RemoveProjectEnvContentHintBlobReadWriteToken1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintBlobReadWriteToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintBlobReadWriteToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintBlobReadWriteToken1) GetType() RemoveProjectEnvTypeBlobReadWriteToken1 { if o == nil { return RemoveProjectEnvTypeBlobReadWriteToken1("") @@ -3472,6 +3967,17 @@ type RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1) GetType() RemoveProjectEnvTypeRedisRestAPIReadOnlyToken1 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIReadOnlyToken1("") @@ -3514,6 +4020,17 @@ type RemoveProjectEnvContentHintRedisRestAPIToken1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIToken1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIToken1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIToken1) GetType() RemoveProjectEnvTypeRedisRestAPIToken1 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIToken1("") @@ -3556,6 +4073,17 @@ type RemoveProjectEnvContentHintRedisRestAPIURL1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisRestAPIURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisRestAPIURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisRestAPIURL1) GetType() RemoveProjectEnvTypeRedisRestAPIURL1 { if o == nil { return RemoveProjectEnvTypeRedisRestAPIURL1("") @@ -3598,6 +4126,17 @@ type RemoveProjectEnvContentHintRedisURL1 struct { StoreID string `json:"storeId"` } +func (r RemoveProjectEnvContentHintRedisURL1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvContentHintRedisURL1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvContentHintRedisURL1) GetType() RemoveProjectEnvTypeRedisURL1 { if o == nil { return RemoveProjectEnvTypeRedisURL1("") @@ -3789,111 +4328,111 @@ func CreateRemoveProjectEnvContentHintUnion1RemoveProjectEnvContentHintFlagsConn func (u *RemoveProjectEnvContentHintUnion1) UnmarshalJSON(data []byte) error { - var removeProjectEnvContentHintPostgresURLNonPooling1 RemoveProjectEnvContentHintPostgresURLNonPooling1 = RemoveProjectEnvContentHintPostgresURLNonPooling1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling1, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresURLNonPooling1 = &removeProjectEnvContentHintPostgresURLNonPooling1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNonPooling1 + var removeProjectEnvContentHintIntegrationStoreSecret1 RemoveProjectEnvContentHintIntegrationStoreSecret1 = RemoveProjectEnvContentHintIntegrationStoreSecret1{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret1, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintIntegrationStoreSecret1 = &removeProjectEnvContentHintIntegrationStoreSecret1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintIntegrationStoreSecret1 return nil } - var removeProjectEnvContentHintPostgresPassword1 RemoveProjectEnvContentHintPostgresPassword1 = RemoveProjectEnvContentHintPostgresPassword1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword1, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresPassword1 = &removeProjectEnvContentHintPostgresPassword1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPassword1 + var removeProjectEnvContentHintRedisURL1 RemoveProjectEnvContentHintRedisURL1 = RemoveProjectEnvContentHintRedisURL1{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL1, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintRedisURL1 = &removeProjectEnvContentHintRedisURL1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisURL1 + return nil + } + + var removeProjectEnvContentHintRedisRestAPIURL1 RemoveProjectEnvContentHintRedisRestAPIURL1 = RemoveProjectEnvContentHintRedisRestAPIURL1{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL1, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintRedisRestAPIURL1 = &removeProjectEnvContentHintRedisRestAPIURL1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIURL1 return nil } var removeProjectEnvContentHintRedisRestAPIToken1 RemoveProjectEnvContentHintRedisRestAPIToken1 = RemoveProjectEnvContentHintRedisRestAPIToken1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIToken1, "", true, nil); err == nil { u.RemoveProjectEnvContentHintRedisRestAPIToken1 = &removeProjectEnvContentHintRedisRestAPIToken1 u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIToken1 return nil } var removeProjectEnvContentHintRedisRestAPIReadOnlyToken1 RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 = RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIReadOnlyToken1, "", true, nil); err == nil { u.RemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 = &removeProjectEnvContentHintRedisRestAPIReadOnlyToken1 u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIReadOnlyToken1 return nil } var removeProjectEnvContentHintBlobReadWriteToken1 RemoveProjectEnvContentHintBlobReadWriteToken1 = RemoveProjectEnvContentHintBlobReadWriteToken1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintBlobReadWriteToken1, "", true, nil); err == nil { u.RemoveProjectEnvContentHintBlobReadWriteToken1 = &removeProjectEnvContentHintBlobReadWriteToken1 u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintBlobReadWriteToken1 return nil } var removeProjectEnvContentHintPostgresURL1 RemoveProjectEnvContentHintPostgresURL1 = RemoveProjectEnvContentHintPostgresURL1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURL1, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresURL1 = &removeProjectEnvContentHintPostgresURL1 u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURL1 return nil } - var removeProjectEnvContentHintRedisRestAPIURL1 RemoveProjectEnvContentHintRedisRestAPIURL1 = RemoveProjectEnvContentHintRedisRestAPIURL1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisRestAPIURL1, "", true, true); err == nil { - u.RemoveProjectEnvContentHintRedisRestAPIURL1 = &removeProjectEnvContentHintRedisRestAPIURL1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisRestAPIURL1 + var removeProjectEnvContentHintPostgresURLNonPooling1 RemoveProjectEnvContentHintPostgresURLNonPooling1 = RemoveProjectEnvContentHintPostgresURLNonPooling1{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNonPooling1, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresURLNonPooling1 = &removeProjectEnvContentHintPostgresURLNonPooling1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNonPooling1 return nil } - var removeProjectEnvContentHintPostgresUser1 RemoveProjectEnvContentHintPostgresUser1 = RemoveProjectEnvContentHintPostgresUser1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser1, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresUser1 = &removeProjectEnvContentHintPostgresUser1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresUser1 + var removeProjectEnvContentHintPostgresPrismaURL1 RemoveProjectEnvContentHintPostgresPrismaURL1 = RemoveProjectEnvContentHintPostgresPrismaURL1{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL1, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresPrismaURL1 = &removeProjectEnvContentHintPostgresPrismaURL1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPrismaURL1 return nil } - var removeProjectEnvContentHintRedisURL1 RemoveProjectEnvContentHintRedisURL1 = RemoveProjectEnvContentHintRedisURL1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintRedisURL1, "", true, true); err == nil { - u.RemoveProjectEnvContentHintRedisURL1 = &removeProjectEnvContentHintRedisURL1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintRedisURL1 + var removeProjectEnvContentHintPostgresUser1 RemoveProjectEnvContentHintPostgresUser1 = RemoveProjectEnvContentHintPostgresUser1{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresUser1, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresUser1 = &removeProjectEnvContentHintPostgresUser1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresUser1 return nil } var removeProjectEnvContentHintPostgresHost1 RemoveProjectEnvContentHintPostgresHost1 = RemoveProjectEnvContentHintPostgresHost1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresHost1, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresHost1 = &removeProjectEnvContentHintPostgresHost1 u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresHost1 return nil } - var removeProjectEnvContentHintPostgresPrismaURL1 RemoveProjectEnvContentHintPostgresPrismaURL1 = RemoveProjectEnvContentHintPostgresPrismaURL1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPrismaURL1, "", true, true); err == nil { - u.RemoveProjectEnvContentHintPostgresPrismaURL1 = &removeProjectEnvContentHintPostgresPrismaURL1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPrismaURL1 + var removeProjectEnvContentHintPostgresPassword1 RemoveProjectEnvContentHintPostgresPassword1 = RemoveProjectEnvContentHintPostgresPassword1{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresPassword1, "", true, nil); err == nil { + u.RemoveProjectEnvContentHintPostgresPassword1 = &removeProjectEnvContentHintPostgresPassword1 + u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresPassword1 return nil } var removeProjectEnvContentHintPostgresDatabase1 RemoveProjectEnvContentHintPostgresDatabase1 = RemoveProjectEnvContentHintPostgresDatabase1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresDatabase1, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresDatabase1 = &removeProjectEnvContentHintPostgresDatabase1 u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresDatabase1 return nil } var removeProjectEnvContentHintPostgresURLNoSsl1 RemoveProjectEnvContentHintPostgresURLNoSsl1 = RemoveProjectEnvContentHintPostgresURLNoSsl1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintPostgresURLNoSsl1, "", true, nil); err == nil { u.RemoveProjectEnvContentHintPostgresURLNoSsl1 = &removeProjectEnvContentHintPostgresURLNoSsl1 u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintPostgresURLNoSsl1 return nil } var removeProjectEnvContentHintFlagsConnectionString1 RemoveProjectEnvContentHintFlagsConnectionString1 = RemoveProjectEnvContentHintFlagsConnectionString1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintFlagsConnectionString1, "", true, nil); err == nil { u.RemoveProjectEnvContentHintFlagsConnectionString1 = &removeProjectEnvContentHintFlagsConnectionString1 u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintFlagsConnectionString1 return nil } - var removeProjectEnvContentHintIntegrationStoreSecret1 RemoveProjectEnvContentHintIntegrationStoreSecret1 = RemoveProjectEnvContentHintIntegrationStoreSecret1{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvContentHintIntegrationStoreSecret1, "", true, true); err == nil { - u.RemoveProjectEnvContentHintIntegrationStoreSecret1 = &removeProjectEnvContentHintIntegrationStoreSecret1 - u.Type = RemoveProjectEnvContentHintUnion1TypeRemoveProjectEnvContentHintIntegrationStoreSecret1 - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for RemoveProjectEnvContentHintUnion1", string(data)) } @@ -3991,6 +4530,17 @@ type RemoveProjectEnvInternalContentHint1 struct { EncryptedValue string `json:"encryptedValue"` } +func (r RemoveProjectEnvInternalContentHint1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvInternalContentHint1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "encryptedValue"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvInternalContentHint1) GetType() RemoveProjectEnvTypeFlagsSecret1 { if o == nil { return RemoveProjectEnvTypeFlagsSecret1("") @@ -4030,6 +4580,17 @@ type RemoveProjectEnvResponseBody1 struct { CustomEnvironmentIds []string `json:"customEnvironmentIds,omitempty"` } +func (r RemoveProjectEnvResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RemoveProjectEnvResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"type", "value", "key"}); err != nil { + return err + } + return nil +} + func (o *RemoveProjectEnvResponseBody1) GetTarget() *RemoveProjectEnvTargetUnion1 { if o == nil { return nil @@ -4216,22 +4777,22 @@ func CreateRemoveProjectEnvResponseBodyRemoveProjectEnvResponseBody3(removeProje func (u *RemoveProjectEnvResponseBody) UnmarshalJSON(data []byte) error { - var removeProjectEnvResponseBody3 RemoveProjectEnvResponseBody3 = RemoveProjectEnvResponseBody3{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvResponseBody3, "", true, true); err == nil { - u.RemoveProjectEnvResponseBody3 = &removeProjectEnvResponseBody3 - u.Type = RemoveProjectEnvResponseBodyTypeRemoveProjectEnvResponseBody3 - return nil - } - var removeProjectEnvResponseBody2 RemoveProjectEnvResponseBody2 = RemoveProjectEnvResponseBody2{} - if err := utils.UnmarshalJSON(data, &removeProjectEnvResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &removeProjectEnvResponseBody2, "", true, nil); err == nil { u.RemoveProjectEnvResponseBody2 = &removeProjectEnvResponseBody2 u.Type = RemoveProjectEnvResponseBodyTypeRemoveProjectEnvResponseBody2 return nil } + var removeProjectEnvResponseBody3 RemoveProjectEnvResponseBody3 = RemoveProjectEnvResponseBody3{} + if err := utils.UnmarshalJSON(data, &removeProjectEnvResponseBody3, "", true, nil); err == nil { + u.RemoveProjectEnvResponseBody3 = &removeProjectEnvResponseBody3 + u.Type = RemoveProjectEnvResponseBodyTypeRemoveProjectEnvResponseBody3 + return nil + } + var arrayOfRemoveProjectEnvResponseBody1 []RemoveProjectEnvResponseBody1 = []RemoveProjectEnvResponseBody1{} - if err := utils.UnmarshalJSON(data, &arrayOfRemoveProjectEnvResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfRemoveProjectEnvResponseBody1, "", true, nil); err == nil { u.ArrayOfRemoveProjectEnvResponseBody1 = arrayOfRemoveProjectEnvResponseBody1 u.Type = RemoveProjectEnvResponseBodyTypeArrayOfRemoveProjectEnvResponseBody1 return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/requestaccesstoteam.go b/src/__tests__/mockserver/internal/sdk/models/operations/requestaccesstoteam.go index 44863b91..5531770f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/requestaccesstoteam.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/requestaccesstoteam.go @@ -88,14 +88,14 @@ func CreateGitUserIDRequestNumber(number float64) GitUserIDRequest { func (u *GitUserIDRequest) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = GitUserIDRequestTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = GitUserIDRequestTypeNumber return nil @@ -291,14 +291,14 @@ func CreateRequestAccessToTeamGitUserIDResponseNumber(number float64) RequestAcc func (u *RequestAccessToTeamGitUserIDResponse) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = RequestAccessToTeamGitUserIDResponseTypeStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = RequestAccessToTeamGitUserIDResponseTypeNumber return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/submitbillingdata.go b/src/__tests__/mockserver/internal/sdk/models/operations/submitbillingdata.go index e3469d15..62b4af0c 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/submitbillingdata.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/submitbillingdata.go @@ -22,7 +22,7 @@ func (s SubmitBillingDataPeriod) MarshalJSON() ([]byte, error) { } func (s *SubmitBillingDataPeriod) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"start", "end"}); err != nil { return err } return nil @@ -70,7 +70,7 @@ func (s SubmitBillingDataItem) MarshalJSON() ([]byte, error) { } func (s *SubmitBillingDataItem) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"billingPlanId", "name", "price", "quantity", "units", "total"}); err != nil { return err } return nil @@ -168,7 +168,7 @@ func (s SubmitBillingDataDiscount) MarshalJSON() ([]byte, error) { } func (s *SubmitBillingDataDiscount) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"billingPlanId", "name", "amount"}); err != nil { return err } return nil @@ -228,6 +228,17 @@ type Billing2 struct { Discounts []SubmitBillingDataDiscount `json:"discounts,omitempty"` } +func (b Billing2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(b, "", false) +} + +func (b *Billing2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"items"}); err != nil { + return err + } + return nil +} + func (o *Billing2) GetItems() []SubmitBillingDataItem { if o == nil { return []SubmitBillingDataItem{} @@ -270,7 +281,7 @@ func (b Billing1) MarshalJSON() ([]byte, error) { } func (b *Billing1) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &b, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &b, "", false, []string{"billingPlanId", "name", "price", "quantity", "units", "total"}); err != nil { return err } return nil @@ -382,14 +393,14 @@ func CreateBillingUnionBilling2(billing2 Billing2) BillingUnion { func (u *BillingUnion) UnmarshalJSON(data []byte) error { var billing2 Billing2 = Billing2{} - if err := utils.UnmarshalJSON(data, &billing2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &billing2, "", true, nil); err == nil { u.Billing2 = &billing2 u.Type = BillingUnionTypeBilling2 return nil } var arrayOfBilling1 []Billing1 = []Billing1{} - if err := utils.UnmarshalJSON(data, &arrayOfBilling1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfBilling1, "", true, nil); err == nil { u.ArrayOfBilling1 = arrayOfBilling1 u.Type = BillingUnionTypeArrayOfBilling1 return nil @@ -523,7 +534,7 @@ func (s SubmitBillingDataRequestBody) MarshalJSON() ([]byte, error) { } func (s *SubmitBillingDataRequestBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"timestamp", "eod", "period", "billing", "usage"}); err != nil { return err } return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/submitinvoice.go b/src/__tests__/mockserver/internal/sdk/models/operations/submitinvoice.go index 309f054e..1dcf28eb 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/submitinvoice.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/submitinvoice.go @@ -21,7 +21,7 @@ func (s SubmitInvoicePeriod) MarshalJSON() ([]byte, error) { } func (s *SubmitInvoicePeriod) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"start", "end"}); err != nil { return err } return nil @@ -65,7 +65,7 @@ func (s SubmitInvoiceItem) MarshalJSON() ([]byte, error) { } func (s *SubmitInvoiceItem) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"billingPlanId", "name", "price", "quantity", "units", "total"}); err != nil { return err } return nil @@ -161,7 +161,7 @@ func (s SubmitInvoiceDiscount) MarshalJSON() ([]byte, error) { } func (s *SubmitInvoiceDiscount) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"billingPlanId", "name", "amount"}); err != nil { return err } return nil @@ -281,7 +281,7 @@ func (s SubmitInvoiceRequestBody) MarshalJSON() ([]byte, error) { } func (s *SubmitInvoiceRequestBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"invoiceDate", "period", "items"}); err != nil { return err } return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/submitprepaymentbalances.go b/src/__tests__/mockserver/internal/sdk/models/operations/submitprepaymentbalances.go index d54f31c3..88000013 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/submitprepaymentbalances.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/submitprepaymentbalances.go @@ -59,7 +59,7 @@ func (s SubmitPrepaymentBalancesRequestBody) MarshalJSON() ([]byte, error) { } func (s *SubmitPrepaymentBalancesRequestBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &s, "", false, []string{"timestamp", "balances"}); err != nil { return err } return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateedgeconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateedgeconfig.go index 3c10e890..6b1429ff 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateedgeconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateedgeconfig.go @@ -117,6 +117,17 @@ type UpdateEdgeConfigPurposeExperimentation struct { ResourceID string `json:"resourceId"` } +func (u UpdateEdgeConfigPurposeExperimentation) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateEdgeConfigPurposeExperimentation) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "resourceId"}); err != nil { + return err + } + return nil +} + func (o *UpdateEdgeConfigPurposeExperimentation) GetType() UpdateEdgeConfigTypeExperimentation { if o == nil { return UpdateEdgeConfigTypeExperimentation("") @@ -159,6 +170,17 @@ type UpdateEdgeConfigPurposeFlags struct { ProjectID string `json:"projectId"` } +func (u UpdateEdgeConfigPurposeFlags) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateEdgeConfigPurposeFlags) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *UpdateEdgeConfigPurposeFlags) GetType() UpdateEdgeConfigTypeFlags { if o == nil { return UpdateEdgeConfigTypeFlags("") @@ -208,14 +230,14 @@ func CreateUpdateEdgeConfigPurposeUnionUpdateEdgeConfigPurposeExperimentation(up func (u *UpdateEdgeConfigPurposeUnion) UnmarshalJSON(data []byte) error { var updateEdgeConfigPurposeFlags UpdateEdgeConfigPurposeFlags = UpdateEdgeConfigPurposeFlags{} - if err := utils.UnmarshalJSON(data, &updateEdgeConfigPurposeFlags, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateEdgeConfigPurposeFlags, "", true, nil); err == nil { u.UpdateEdgeConfigPurposeFlags = &updateEdgeConfigPurposeFlags u.Type = UpdateEdgeConfigPurposeUnionTypeUpdateEdgeConfigPurposeFlags return nil } var updateEdgeConfigPurposeExperimentation UpdateEdgeConfigPurposeExperimentation = UpdateEdgeConfigPurposeExperimentation{} - if err := utils.UnmarshalJSON(data, &updateEdgeConfigPurposeExperimentation, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateEdgeConfigPurposeExperimentation, "", true, nil); err == nil { u.UpdateEdgeConfigPurposeExperimentation = &updateEdgeConfigPurposeExperimentation u.Type = UpdateEdgeConfigPurposeUnionTypeUpdateEdgeConfigPurposeExperimentation return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updatefirewallconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/updatefirewallconfig.go index 50e64975..1f6ea0f7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updatefirewallconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updatefirewallconfig.go @@ -17,6 +17,17 @@ type UpdateFirewallConfigRequestBody2 struct { Value bool `json:"value"` } +func (u UpdateFirewallConfigRequestBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigRequestBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"action", "value"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigRequestBody2) GetAction() string { if o == nil { return "" @@ -104,6 +115,17 @@ type UpdateFirewallConfigValue7 struct { Action *ValueActionEnum5 `json:"action,omitempty"` } +func (u UpdateFirewallConfigValue7) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigValue7) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"active"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigValue7) GetActive() bool { if o == nil { return false @@ -125,6 +147,17 @@ type UpdateFirewallConfigRequestBody1 struct { Value map[string]UpdateFirewallConfigValue7 `json:"value"` } +func (u UpdateFirewallConfigRequestBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigRequestBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"action", "id", "value"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigRequestBody1) GetAction() string { if o == nil { return "" @@ -235,6 +268,17 @@ type UpdateFirewallConfigValue6 struct { Active bool `json:"active"` } +func (u UpdateFirewallConfigValue6) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigValue6) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"active"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigValue6) GetAction() *ValueActionEnum4 { if o == nil { return nil @@ -256,6 +300,17 @@ type ManagedRulesUpdate struct { Value UpdateFirewallConfigValue6 `json:"value"` } +func (m ManagedRulesUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(m, "", false) +} + +func (m *ManagedRulesUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &m, "", false, []string{"action", "id", "value"}); err != nil { + return err + } + return nil +} + func (o *ManagedRulesUpdate) GetAction() ActionManagedRulesUpdate { if o == nil { return ActionManagedRulesUpdate("") @@ -307,6 +362,17 @@ type IPRemove struct { Value any `json:"value,omitempty"` } +func (i IPRemove) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *IPRemove) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"action", "id"}); err != nil { + return err + } + return nil +} + func (o *IPRemove) GetAction() ActionIPRemove { if o == nil { return ActionIPRemove("") @@ -390,6 +456,17 @@ type UpdateFirewallConfigValue5 struct { Action ValueActionEnum3 `json:"action"` } +func (u UpdateFirewallConfigValue5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigValue5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"hostname", "ip", "action"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigValue5) GetHostname() string { if o == nil { return "" @@ -425,6 +502,17 @@ type IPUpdate struct { Value UpdateFirewallConfigValue5 `json:"value"` } +func (i IPUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *IPUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"action", "id", "value"}); err != nil { + return err + } + return nil +} + func (o *IPUpdate) GetAction() ActionIPUpdate { if o == nil { return ActionIPUpdate("") @@ -508,6 +596,17 @@ type UpdateFirewallConfigValue4 struct { Action ValueActionEnum2 `json:"action"` } +func (u UpdateFirewallConfigValue4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigValue4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"hostname", "ip", "action"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigValue4) GetHostname() string { if o == nil { return "" @@ -543,6 +642,17 @@ type IPInsert struct { Value UpdateFirewallConfigValue4 `json:"value"` } +func (i IPInsert) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *IPInsert) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, []string{"action", "value"}); err != nil { + return err + } + return nil +} + func (o *IPInsert) GetAction() ActionIPInsert { if o == nil { return ActionIPInsert("") @@ -594,6 +704,17 @@ type CrsDisable struct { Value any `json:"value,omitempty"` } +func (c CrsDisable) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CrsDisable) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"action"}); err != nil { + return err + } + return nil +} + func (o *CrsDisable) GetAction() ActionCrsDisable { if o == nil { return ActionCrsDisable("") @@ -722,6 +843,17 @@ type UpdateFirewallConfigValue3 struct { Action ValueActionEnum1 `json:"action"` } +func (u UpdateFirewallConfigValue3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigValue3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"active", "action"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigValue3) GetActive() bool { if o == nil { return false @@ -743,6 +875,17 @@ type CrsUpdate struct { Value UpdateFirewallConfigValue3 `json:"value"` } +func (c CrsUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *CrsUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"action", "id", "value"}); err != nil { + return err + } + return nil +} + func (o *CrsUpdate) GetAction() ActionCrsUpdate { if o == nil { return ActionCrsUpdate("") @@ -794,6 +937,17 @@ type RulesPriority struct { Value float64 `json:"value"` } +func (r RulesPriority) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RulesPriority) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"action", "id", "value"}); err != nil { + return err + } + return nil +} + func (o *RulesPriority) GetAction() ActionRulesPriority { if o == nil { return ActionRulesPriority("") @@ -845,6 +999,17 @@ type RulesRemove struct { Value any `json:"value,omitempty"` } +func (r RulesRemove) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RulesRemove) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"action", "id"}); err != nil { + return err + } + return nil +} + func (o *RulesRemove) GetAction() ActionRulesRemove { if o == nil { return ActionRulesRemove("") @@ -1089,21 +1254,21 @@ func CreateUpdateFirewallConfigConditionValue2Number(number float64) UpdateFirew func (u *UpdateFirewallConfigConditionValue2) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = UpdateFirewallConfigConditionValue2TypeStr return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = UpdateFirewallConfigConditionValue2TypeArrayOfStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = UpdateFirewallConfigConditionValue2TypeNumber return nil @@ -1136,6 +1301,17 @@ type UpdateFirewallConfigCondition2 struct { Value *UpdateFirewallConfigConditionValue2 `json:"value,omitempty"` } +func (u UpdateFirewallConfigCondition2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigCondition2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "op"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigCondition2) GetType() UpdateFirewallConfigType2 { if o == nil { return UpdateFirewallConfigType2("") @@ -1175,6 +1351,17 @@ type UpdateFirewallConfigConditionGroup2 struct { Conditions []UpdateFirewallConfigCondition2 `json:"conditions"` } +func (u UpdateFirewallConfigConditionGroup2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigConditionGroup2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"conditions"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigConditionGroup2) GetConditions() []UpdateFirewallConfigCondition2 { if o == nil { return []UpdateFirewallConfigCondition2{} @@ -1313,14 +1500,14 @@ func CreateValueActionUnion2Any(anyT any) ValueActionUnion2 { func (u *ValueActionUnion2) UnmarshalJSON(data []byte) error { var rateLimitActionValueEnum2 RateLimitActionValueEnum2 = RateLimitActionValueEnum2("") - if err := utils.UnmarshalJSON(data, &rateLimitActionValueEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &rateLimitActionValueEnum2, "", true, nil); err == nil { u.RateLimitActionValueEnum2 = &rateLimitActionValueEnum2 u.Type = ValueActionUnion2TypeRateLimitActionValueEnum2 return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = ValueActionUnion2TypeAny return nil @@ -1349,6 +1536,17 @@ type UpdateFirewallConfigRateLimit2 struct { Action *ValueActionUnion2 `json:"action,omitempty"` } +func (u UpdateFirewallConfigRateLimit2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigRateLimit2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"algo", "window", "limit", "keys"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigRateLimit2) GetAlgo() UpdateFirewallConfigAlgo2 { if o == nil { return UpdateFirewallConfigAlgo2("") @@ -1419,14 +1617,14 @@ func CreateUpdateFirewallConfigRateLimitUnion2Any(anyT any) UpdateFirewallConfig func (u *UpdateFirewallConfigRateLimitUnion2) UnmarshalJSON(data []byte) error { var updateFirewallConfigRateLimit2 UpdateFirewallConfigRateLimit2 = UpdateFirewallConfigRateLimit2{} - if err := utils.UnmarshalJSON(data, &updateFirewallConfigRateLimit2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateFirewallConfigRateLimit2, "", true, nil); err == nil { u.UpdateFirewallConfigRateLimit2 = &updateFirewallConfigRateLimit2 u.Type = UpdateFirewallConfigRateLimitUnion2TypeUpdateFirewallConfigRateLimit2 return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = UpdateFirewallConfigRateLimitUnion2TypeAny return nil @@ -1452,6 +1650,17 @@ type UpdateFirewallConfigRedirect2 struct { Permanent bool `json:"permanent"` } +func (u UpdateFirewallConfigRedirect2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigRedirect2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"location", "permanent"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigRedirect2) GetLocation() string { if o == nil { return "" @@ -1501,14 +1710,14 @@ func CreateUpdateFirewallConfigRedirectUnion2Any(anyT any) UpdateFirewallConfigR func (u *UpdateFirewallConfigRedirectUnion2) UnmarshalJSON(data []byte) error { var updateFirewallConfigRedirect2 UpdateFirewallConfigRedirect2 = UpdateFirewallConfigRedirect2{} - if err := utils.UnmarshalJSON(data, &updateFirewallConfigRedirect2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateFirewallConfigRedirect2, "", true, nil); err == nil { u.UpdateFirewallConfigRedirect2 = &updateFirewallConfigRedirect2 u.Type = UpdateFirewallConfigRedirectUnion2TypeUpdateFirewallConfigRedirect2 return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = UpdateFirewallConfigRedirectUnion2TypeAny return nil @@ -1537,6 +1746,17 @@ type UpdateFirewallConfigMitigate2 struct { BypassSystem *bool `json:"bypassSystem,omitempty"` } +func (u UpdateFirewallConfigMitigate2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigMitigate2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"action"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigMitigate2) GetAction() ValueMitigateActionEnum2 { if o == nil { return ValueMitigateActionEnum2("") @@ -1576,6 +1796,17 @@ type ValueAction2 struct { Mitigate *UpdateFirewallConfigMitigate2 `json:"mitigate,omitempty"` } +func (v ValueAction2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(v, "", false) +} + +func (v *ValueAction2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &v, "", false, nil); err != nil { + return err + } + return nil +} + func (o *ValueAction2) GetMitigate() *UpdateFirewallConfigMitigate2 { if o == nil { return nil @@ -1591,6 +1822,17 @@ type UpdateFirewallConfigValue2 struct { Action ValueAction2 `json:"action"` } +func (u UpdateFirewallConfigValue2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigValue2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"name", "active", "conditionGroup", "action"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigValue2) GetName() string { if o == nil { return "" @@ -1633,6 +1875,17 @@ type RulesUpdate struct { Value UpdateFirewallConfigValue2 `json:"value"` } +func (r RulesUpdate) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RulesUpdate) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"action", "id", "value"}); err != nil { + return err + } + return nil +} + func (o *RulesUpdate) GetAction() ActionRulesUpdate { if o == nil { return ActionRulesUpdate("") @@ -1877,21 +2130,21 @@ func CreateUpdateFirewallConfigConditionValue1Number(number float64) UpdateFirew func (u *UpdateFirewallConfigConditionValue1) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = UpdateFirewallConfigConditionValue1TypeStr return nil } var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = UpdateFirewallConfigConditionValue1TypeArrayOfStr return nil } var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = UpdateFirewallConfigConditionValue1TypeNumber return nil @@ -1924,6 +2177,17 @@ type UpdateFirewallConfigCondition1 struct { Value *UpdateFirewallConfigConditionValue1 `json:"value,omitempty"` } +func (u UpdateFirewallConfigCondition1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigCondition1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "op"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigCondition1) GetType() UpdateFirewallConfigType1 { if o == nil { return UpdateFirewallConfigType1("") @@ -1963,6 +2227,17 @@ type UpdateFirewallConfigConditionGroup1 struct { Conditions []UpdateFirewallConfigCondition1 `json:"conditions"` } +func (u UpdateFirewallConfigConditionGroup1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigConditionGroup1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"conditions"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigConditionGroup1) GetConditions() []UpdateFirewallConfigCondition1 { if o == nil { return []UpdateFirewallConfigCondition1{} @@ -2101,14 +2376,14 @@ func CreateValueActionUnion1Any(anyT any) ValueActionUnion1 { func (u *ValueActionUnion1) UnmarshalJSON(data []byte) error { var rateLimitActionValueEnum1 RateLimitActionValueEnum1 = RateLimitActionValueEnum1("") - if err := utils.UnmarshalJSON(data, &rateLimitActionValueEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &rateLimitActionValueEnum1, "", true, nil); err == nil { u.RateLimitActionValueEnum1 = &rateLimitActionValueEnum1 u.Type = ValueActionUnion1TypeRateLimitActionValueEnum1 return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = ValueActionUnion1TypeAny return nil @@ -2137,6 +2412,17 @@ type UpdateFirewallConfigRateLimit1 struct { Action *ValueActionUnion1 `json:"action,omitempty"` } +func (u UpdateFirewallConfigRateLimit1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigRateLimit1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"algo", "window", "limit", "keys"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigRateLimit1) GetAlgo() UpdateFirewallConfigAlgo1 { if o == nil { return UpdateFirewallConfigAlgo1("") @@ -2207,14 +2493,14 @@ func CreateUpdateFirewallConfigRateLimitUnion1Any(anyT any) UpdateFirewallConfig func (u *UpdateFirewallConfigRateLimitUnion1) UnmarshalJSON(data []byte) error { var updateFirewallConfigRateLimit1 UpdateFirewallConfigRateLimit1 = UpdateFirewallConfigRateLimit1{} - if err := utils.UnmarshalJSON(data, &updateFirewallConfigRateLimit1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateFirewallConfigRateLimit1, "", true, nil); err == nil { u.UpdateFirewallConfigRateLimit1 = &updateFirewallConfigRateLimit1 u.Type = UpdateFirewallConfigRateLimitUnion1TypeUpdateFirewallConfigRateLimit1 return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = UpdateFirewallConfigRateLimitUnion1TypeAny return nil @@ -2240,6 +2526,17 @@ type UpdateFirewallConfigRedirect1 struct { Permanent bool `json:"permanent"` } +func (u UpdateFirewallConfigRedirect1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigRedirect1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"location", "permanent"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigRedirect1) GetLocation() string { if o == nil { return "" @@ -2289,14 +2586,14 @@ func CreateUpdateFirewallConfigRedirectUnion1Any(anyT any) UpdateFirewallConfigR func (u *UpdateFirewallConfigRedirectUnion1) UnmarshalJSON(data []byte) error { var updateFirewallConfigRedirect1 UpdateFirewallConfigRedirect1 = UpdateFirewallConfigRedirect1{} - if err := utils.UnmarshalJSON(data, &updateFirewallConfigRedirect1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateFirewallConfigRedirect1, "", true, nil); err == nil { u.UpdateFirewallConfigRedirect1 = &updateFirewallConfigRedirect1 u.Type = UpdateFirewallConfigRedirectUnion1TypeUpdateFirewallConfigRedirect1 return nil } var anyVar any = nil - if err := utils.UnmarshalJSON(data, &anyVar, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &anyVar, "", true, nil); err == nil { u.Any = anyVar u.Type = UpdateFirewallConfigRedirectUnion1TypeAny return nil @@ -2325,6 +2622,17 @@ type UpdateFirewallConfigMitigate1 struct { BypassSystem *bool `json:"bypassSystem,omitempty"` } +func (u UpdateFirewallConfigMitigate1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigMitigate1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"action"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigMitigate1) GetAction() ValueMitigateActionEnum1 { if o == nil { return ValueMitigateActionEnum1("") @@ -2364,6 +2672,17 @@ type ValueAction1 struct { Mitigate *UpdateFirewallConfigMitigate1 `json:"mitigate,omitempty"` } +func (v ValueAction1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(v, "", false) +} + +func (v *ValueAction1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &v, "", false, nil); err != nil { + return err + } + return nil +} + func (o *ValueAction1) GetMitigate() *UpdateFirewallConfigMitigate1 { if o == nil { return nil @@ -2379,6 +2698,17 @@ type UpdateFirewallConfigValue1 struct { Action ValueAction1 `json:"action"` } +func (u UpdateFirewallConfigValue1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateFirewallConfigValue1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"name", "active", "conditionGroup", "action"}); err != nil { + return err + } + return nil +} + func (o *UpdateFirewallConfigValue1) GetName() string { if o == nil { return "" @@ -2421,6 +2751,17 @@ type RulesInsert struct { Value UpdateFirewallConfigValue1 `json:"value"` } +func (r RulesInsert) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *RulesInsert) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"action", "value"}); err != nil { + return err + } + return nil +} + func (o *RulesInsert) GetAction() ActionRulesInsert { if o == nil { return ActionRulesInsert("") @@ -2472,6 +2813,17 @@ type FirewallEnabled struct { Value bool `json:"value"` } +func (f FirewallEnabled) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(f, "", false) +} + +func (f *FirewallEnabled) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &f, "", false, []string{"action", "value"}); err != nil { + return err + } + return nil +} + func (o *FirewallEnabled) GetAction() ActionFirewallEnabled { if o == nil { return ActionFirewallEnabled("") @@ -2648,97 +3000,97 @@ func CreateUpdateFirewallConfigRequestBodyUpdateFirewallConfigRequestBody2(updat func (u *UpdateFirewallConfigRequestBody) UnmarshalJSON(data []byte) error { - var firewallEnabled FirewallEnabled = FirewallEnabled{} - if err := utils.UnmarshalJSON(data, &firewallEnabled, "", true, true); err == nil { - u.FirewallEnabled = &firewallEnabled - u.Type = UpdateFirewallConfigRequestBodyTypeFirewallEnabled - return nil - } - - var rulesInsert RulesInsert = RulesInsert{} - if err := utils.UnmarshalJSON(data, &rulesInsert, "", true, true); err == nil { - u.RulesInsert = &rulesInsert - u.Type = UpdateFirewallConfigRequestBodyTypeRulesInsert - return nil - } - var rulesUpdate RulesUpdate = RulesUpdate{} - if err := utils.UnmarshalJSON(data, &rulesUpdate, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &rulesUpdate, "", true, nil); err == nil { u.RulesUpdate = &rulesUpdate u.Type = UpdateFirewallConfigRequestBodyTypeRulesUpdate return nil } - var rulesRemove RulesRemove = RulesRemove{} - if err := utils.UnmarshalJSON(data, &rulesRemove, "", true, true); err == nil { - u.RulesRemove = &rulesRemove - u.Type = UpdateFirewallConfigRequestBodyTypeRulesRemove - return nil - } - var rulesPriority RulesPriority = RulesPriority{} - if err := utils.UnmarshalJSON(data, &rulesPriority, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &rulesPriority, "", true, nil); err == nil { u.RulesPriority = &rulesPriority u.Type = UpdateFirewallConfigRequestBodyTypeRulesPriority return nil } var crsUpdate CrsUpdate = CrsUpdate{} - if err := utils.UnmarshalJSON(data, &crsUpdate, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &crsUpdate, "", true, nil); err == nil { u.CrsUpdate = &crsUpdate u.Type = UpdateFirewallConfigRequestBodyTypeCrsUpdate return nil } - var crsDisable CrsDisable = CrsDisable{} - if err := utils.UnmarshalJSON(data, &crsDisable, "", true, true); err == nil { - u.CrsDisable = &crsDisable - u.Type = UpdateFirewallConfigRequestBodyTypeCrsDisable - return nil - } - - var ipInsert IPInsert = IPInsert{} - if err := utils.UnmarshalJSON(data, &ipInsert, "", true, true); err == nil { - u.IPInsert = &ipInsert - u.Type = UpdateFirewallConfigRequestBodyTypeIPInsert - return nil - } - var ipUpdate IPUpdate = IPUpdate{} - if err := utils.UnmarshalJSON(data, &ipUpdate, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &ipUpdate, "", true, nil); err == nil { u.IPUpdate = &ipUpdate u.Type = UpdateFirewallConfigRequestBodyTypeIPUpdate return nil } - var ipRemove IPRemove = IPRemove{} - if err := utils.UnmarshalJSON(data, &ipRemove, "", true, true); err == nil { - u.IPRemove = &ipRemove - u.Type = UpdateFirewallConfigRequestBodyTypeIPRemove - return nil - } - var managedRulesUpdate ManagedRulesUpdate = ManagedRulesUpdate{} - if err := utils.UnmarshalJSON(data, &managedRulesUpdate, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &managedRulesUpdate, "", true, nil); err == nil { u.ManagedRulesUpdate = &managedRulesUpdate u.Type = UpdateFirewallConfigRequestBodyTypeManagedRulesUpdate return nil } var updateFirewallConfigRequestBody1 UpdateFirewallConfigRequestBody1 = UpdateFirewallConfigRequestBody1{} - if err := utils.UnmarshalJSON(data, &updateFirewallConfigRequestBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateFirewallConfigRequestBody1, "", true, nil); err == nil { u.UpdateFirewallConfigRequestBody1 = &updateFirewallConfigRequestBody1 u.Type = UpdateFirewallConfigRequestBodyTypeUpdateFirewallConfigRequestBody1 return nil } + var firewallEnabled FirewallEnabled = FirewallEnabled{} + if err := utils.UnmarshalJSON(data, &firewallEnabled, "", true, nil); err == nil { + u.FirewallEnabled = &firewallEnabled + u.Type = UpdateFirewallConfigRequestBodyTypeFirewallEnabled + return nil + } + + var rulesInsert RulesInsert = RulesInsert{} + if err := utils.UnmarshalJSON(data, &rulesInsert, "", true, nil); err == nil { + u.RulesInsert = &rulesInsert + u.Type = UpdateFirewallConfigRequestBodyTypeRulesInsert + return nil + } + + var rulesRemove RulesRemove = RulesRemove{} + if err := utils.UnmarshalJSON(data, &rulesRemove, "", true, nil); err == nil { + u.RulesRemove = &rulesRemove + u.Type = UpdateFirewallConfigRequestBodyTypeRulesRemove + return nil + } + + var ipInsert IPInsert = IPInsert{} + if err := utils.UnmarshalJSON(data, &ipInsert, "", true, nil); err == nil { + u.IPInsert = &ipInsert + u.Type = UpdateFirewallConfigRequestBodyTypeIPInsert + return nil + } + + var ipRemove IPRemove = IPRemove{} + if err := utils.UnmarshalJSON(data, &ipRemove, "", true, nil); err == nil { + u.IPRemove = &ipRemove + u.Type = UpdateFirewallConfigRequestBodyTypeIPRemove + return nil + } + var updateFirewallConfigRequestBody2 UpdateFirewallConfigRequestBody2 = UpdateFirewallConfigRequestBody2{} - if err := utils.UnmarshalJSON(data, &updateFirewallConfigRequestBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateFirewallConfigRequestBody2, "", true, nil); err == nil { u.UpdateFirewallConfigRequestBody2 = &updateFirewallConfigRequestBody2 u.Type = UpdateFirewallConfigRequestBodyTypeUpdateFirewallConfigRequestBody2 return nil } + var crsDisable CrsDisable = CrsDisable{} + if err := utils.UnmarshalJSON(data, &crsDisable, "", true, nil); err == nil { + u.CrsDisable = &crsDisable + u.Type = UpdateFirewallConfigRequestBodyTypeCrsDisable + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateFirewallConfigRequestBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateintegrationdeploymentaction.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateintegrationdeploymentaction.go index 0fa30df0..fbd8c44b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateintegrationdeploymentaction.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateintegrationdeploymentaction.go @@ -44,6 +44,17 @@ type UpdateIntegrationDeploymentActionSecret struct { Value string `json:"value"` } +func (u UpdateIntegrationDeploymentActionSecret) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateIntegrationDeploymentActionSecret) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"name", "value"}); err != nil { + return err + } + return nil +} + func (o *UpdateIntegrationDeploymentActionSecret) GetName() string { if o == nil { return "" @@ -63,6 +74,17 @@ type Outcome struct { Secrets []UpdateIntegrationDeploymentActionSecret `json:"secrets"` } +func (o Outcome) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(o, "", false) +} + +func (o *Outcome) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &o, "", false, []string{"kind", "secrets"}); err != nil { + return err + } + return nil +} + func (o *Outcome) GetKind() string { if o == nil { return "" @@ -101,7 +123,7 @@ func CreateOutcomeUnionOutcome(outcome Outcome) OutcomeUnion { func (u *OutcomeUnion) UnmarshalJSON(data []byte) error { var outcome Outcome = Outcome{} - if err := utils.UnmarshalJSON(data, &outcome, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &outcome, "", true, nil); err == nil { u.Outcome = &outcome u.Type = OutcomeUnionTypeOutcome return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateinvoice.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateinvoice.go index 5e0a7ed7..aa1189dd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateinvoice.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateinvoice.go @@ -4,8 +4,10 @@ package operations import ( "encoding/json" + "errors" "fmt" "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" ) type UpdateInvoiceAction string @@ -31,7 +33,7 @@ func (e *UpdateInvoiceAction) UnmarshalJSON(data []byte) error { } } -type UpdateInvoiceRequestBody struct { +type Refund struct { Action UpdateInvoiceAction `json:"action"` // Refund reason. Reason string `json:"reason"` @@ -39,27 +41,79 @@ type UpdateInvoiceRequestBody struct { Total string `json:"total"` } -func (o *UpdateInvoiceRequestBody) GetAction() UpdateInvoiceAction { +func (r Refund) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(r, "", false) +} + +func (r *Refund) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"action", "reason", "total"}); err != nil { + return err + } + return nil +} + +func (o *Refund) GetAction() UpdateInvoiceAction { if o == nil { return UpdateInvoiceAction("") } return o.Action } -func (o *UpdateInvoiceRequestBody) GetReason() string { +func (o *Refund) GetReason() string { if o == nil { return "" } return o.Reason } -func (o *UpdateInvoiceRequestBody) GetTotal() string { +func (o *Refund) GetTotal() string { if o == nil { return "" } return o.Total } +type UpdateInvoiceRequestBodyType string + +const ( + UpdateInvoiceRequestBodyTypeRefund UpdateInvoiceRequestBodyType = "Refund" +) + +type UpdateInvoiceRequestBody struct { + Refund *Refund `queryParam:"inline"` + + Type UpdateInvoiceRequestBodyType +} + +func CreateUpdateInvoiceRequestBodyRefund(refund Refund) UpdateInvoiceRequestBody { + typ := UpdateInvoiceRequestBodyTypeRefund + + return UpdateInvoiceRequestBody{ + Refund: &refund, + Type: typ, + } +} + +func (u *UpdateInvoiceRequestBody) UnmarshalJSON(data []byte) error { + + var refund Refund = Refund{} + if err := utils.UnmarshalJSON(data, &refund, "", true, nil); err == nil { + u.Refund = &refund + u.Type = UpdateInvoiceRequestBodyTypeRefund + return nil + } + + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateInvoiceRequestBody", string(data)) +} + +func (u UpdateInvoiceRequestBody) MarshalJSON() ([]byte, error) { + if u.Refund != nil { + return utils.MarshalJSON(u.Refund, "", true) + } + + return nil, errors.New("could not marshal union type UpdateInvoiceRequestBody: all fields are null") +} + type UpdateInvoiceRequest struct { IntegrationConfigurationID string `pathParam:"style=simple,explode=false,name=integrationConfigurationId"` InvoiceID string `pathParam:"style=simple,explode=false,name=invoiceId"` diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateproject.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateproject.go index 96470e6b..5ef73c85 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateproject.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateproject.go @@ -389,7 +389,7 @@ func (u UpdateProjectOidcTokenConfigRequest) MarshalJSON() ([]byte, error) { } func (u *UpdateProjectOidcTokenConfigRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil @@ -508,7 +508,7 @@ func (u UpdateProjectSsoProtectionRequest) MarshalJSON() ([]byte, error) { } func (u *UpdateProjectSsoProtectionRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil @@ -670,6 +670,17 @@ type ConnectConfigurationRequest struct { BuildsEnabled bool `json:"buildsEnabled"` } +func (c ConnectConfigurationRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(c, "", false) +} + +func (c *ConnectConfigurationRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &c, "", false, []string{"envId", "connectConfigurationId", "passive", "buildsEnabled"}); err != nil { + return err + } + return nil +} + func (o *ConnectConfigurationRequest) GetEnvID() string { if o == nil { return "" @@ -722,7 +733,7 @@ func CreateConnectConfigurationConnectConfigurationRequest(connectConfigurationR func (u *ConnectConfiguration) UnmarshalJSON(data []byte) error { var connectConfigurationRequest ConnectConfigurationRequest = ConnectConfigurationRequest{} - if err := utils.UnmarshalJSON(data, &connectConfigurationRequest, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &connectConfigurationRequest, "", true, nil); err == nil { u.ConnectConfigurationRequest = &connectConfigurationRequest u.Type = ConnectConfigurationTypeConnectConfigurationRequest return nil @@ -1253,14 +1264,14 @@ func CreateUpdateProjectEnvIDUnionUpdateProjectEnvIDEnum(updateProjectEnvIDEnum func (u *UpdateProjectEnvIDUnion) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = UpdateProjectEnvIDUnionTypeStr return nil } var updateProjectEnvIDEnum UpdateProjectEnvIDEnum = UpdateProjectEnvIDEnum("") - if err := utils.UnmarshalJSON(data, &updateProjectEnvIDEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectEnvIDEnum, "", true, nil); err == nil { u.UpdateProjectEnvIDEnum = &updateProjectEnvIDEnum u.Type = UpdateProjectEnvIDUnionTypeUpdateProjectEnvIDEnum return nil @@ -1470,12 +1481,18 @@ func (o *UpdateProjectDataCache) GetUnlimited() *bool { return o.Unlimited } +// UpdateProjectDeploymentExpiration - Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. type UpdateProjectDeploymentExpiration struct { - ExpirationDays *float64 `json:"expirationDays,omitempty"` + // Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. + ExpirationDays *float64 `json:"expirationDays,omitempty"` + // Number of days to keep production deployments before soft deletion. ExpirationDaysProduction *float64 `json:"expirationDaysProduction,omitempty"` - ExpirationDaysCanceled *float64 `json:"expirationDaysCanceled,omitempty"` - ExpirationDaysErrored *float64 `json:"expirationDaysErrored,omitempty"` - DeploymentsToKeep *float64 `json:"deploymentsToKeep,omitempty"` + // Number of days to keep canceled deployments before soft deletion. + ExpirationDaysCanceled *float64 `json:"expirationDaysCanceled,omitempty"` + // Number of days to keep errored deployments before soft deletion. + ExpirationDaysErrored *float64 `json:"expirationDaysErrored,omitempty"` + // Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. + DeploymentsToKeep *float64 `json:"deploymentsToKeep,omitempty"` } func (o *UpdateProjectDeploymentExpiration) GetExpirationDays() *float64 { @@ -1577,14 +1594,14 @@ func CreateUpdateProjectTargetUnionUpdateProjectTargetEnum(updateProjectTargetEn func (u *UpdateProjectTargetUnion) UnmarshalJSON(data []byte) error { var arrayOfStr []string = []string{} - if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { u.ArrayOfStr = arrayOfStr u.Type = UpdateProjectTargetUnionTypeArrayOfStr return nil } var updateProjectTargetEnum UpdateProjectTargetEnum = UpdateProjectTargetEnum("") - if err := utils.UnmarshalJSON(data, &updateProjectTargetEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectTargetEnum, "", true, nil); err == nil { u.UpdateProjectTargetEnum = &updateProjectTargetEnum u.Type = UpdateProjectTargetUnionTypeUpdateProjectTargetEnum return nil @@ -1668,6 +1685,17 @@ type UpdateProjectContentHintFlagsConnectionString struct { ProjectID string `json:"projectId"` } +func (u UpdateProjectContentHintFlagsConnectionString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintFlagsConnectionString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintFlagsConnectionString) GetType() UpdateProjectTypeFlagsConnectionString { if o == nil { return UpdateProjectTypeFlagsConnectionString("") @@ -1713,6 +1741,17 @@ type UpdateProjectContentHintIntegrationStoreSecret struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (u UpdateProjectContentHintIntegrationStoreSecret) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintIntegrationStoreSecret) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintIntegrationStoreSecret) GetType() UpdateProjectTypeIntegrationStoreSecret { if o == nil { return UpdateProjectTypeIntegrationStoreSecret("") @@ -1776,6 +1815,17 @@ type UpdateProjectContentHintPostgresURLNoSsl struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintPostgresURLNoSsl) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintPostgresURLNoSsl) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintPostgresURLNoSsl) GetType() UpdateProjectTypePostgresURLNoSsl { if o == nil { return UpdateProjectTypePostgresURLNoSsl("") @@ -1818,6 +1868,17 @@ type UpdateProjectContentHintPostgresDatabase struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintPostgresDatabase) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintPostgresDatabase) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintPostgresDatabase) GetType() UpdateProjectTypePostgresDatabase { if o == nil { return UpdateProjectTypePostgresDatabase("") @@ -1860,6 +1921,17 @@ type UpdateProjectContentHintPostgresPassword struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintPostgresPassword) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintPostgresPassword) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintPostgresPassword) GetType() UpdateProjectTypePostgresPassword { if o == nil { return UpdateProjectTypePostgresPassword("") @@ -1902,6 +1974,17 @@ type UpdateProjectContentHintPostgresHost struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintPostgresHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintPostgresHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintPostgresHost) GetType() UpdateProjectTypePostgresHost { if o == nil { return UpdateProjectTypePostgresHost("") @@ -1944,6 +2027,17 @@ type UpdateProjectContentHintPostgresUser struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintPostgresUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintPostgresUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintPostgresUser) GetType() UpdateProjectTypePostgresUser { if o == nil { return UpdateProjectTypePostgresUser("") @@ -1986,6 +2080,17 @@ type UpdateProjectContentHintPostgresPrismaURL struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintPostgresPrismaURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintPostgresPrismaURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintPostgresPrismaURL) GetType() UpdateProjectTypePostgresPrismaURL { if o == nil { return UpdateProjectTypePostgresPrismaURL("") @@ -2028,6 +2133,17 @@ type UpdateProjectContentHintPostgresURLNonPooling struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintPostgresURLNonPooling) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintPostgresURLNonPooling) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintPostgresURLNonPooling) GetType() UpdateProjectTypePostgresURLNonPooling { if o == nil { return UpdateProjectTypePostgresURLNonPooling("") @@ -2070,6 +2186,17 @@ type UpdateProjectContentHintPostgresURL struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintPostgresURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintPostgresURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintPostgresURL) GetType() UpdateProjectTypePostgresURL { if o == nil { return UpdateProjectTypePostgresURL("") @@ -2112,6 +2239,17 @@ type UpdateProjectContentHintBlobReadWriteToken struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintBlobReadWriteToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintBlobReadWriteToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintBlobReadWriteToken) GetType() UpdateProjectTypeBlobReadWriteToken { if o == nil { return UpdateProjectTypeBlobReadWriteToken("") @@ -2154,6 +2292,17 @@ type UpdateProjectContentHintRedisRestAPIReadOnlyToken struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintRedisRestAPIReadOnlyToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintRedisRestAPIReadOnlyToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintRedisRestAPIReadOnlyToken) GetType() UpdateProjectTypeRedisRestAPIReadOnlyToken { if o == nil { return UpdateProjectTypeRedisRestAPIReadOnlyToken("") @@ -2196,6 +2345,17 @@ type UpdateProjectContentHintRedisRestAPIToken struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintRedisRestAPIToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintRedisRestAPIToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintRedisRestAPIToken) GetType() UpdateProjectTypeRedisRestAPIToken { if o == nil { return UpdateProjectTypeRedisRestAPIToken("") @@ -2238,6 +2398,17 @@ type UpdateProjectContentHintRedisRestAPIURL struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintRedisRestAPIURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintRedisRestAPIURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintRedisRestAPIURL) GetType() UpdateProjectTypeRedisRestAPIURL { if o == nil { return UpdateProjectTypeRedisRestAPIURL("") @@ -2280,6 +2451,17 @@ type UpdateProjectContentHintRedisURL struct { StoreID string `json:"storeId"` } +func (u UpdateProjectContentHintRedisURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectContentHintRedisURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectContentHintRedisURL) GetType() UpdateProjectTypeRedisURL { if o == nil { return UpdateProjectTypeRedisURL("") @@ -2471,111 +2653,111 @@ func CreateUpdateProjectContentHintUnionUpdateProjectContentHintFlagsConnectionS func (u *UpdateProjectContentHintUnion) UnmarshalJSON(data []byte) error { - var updateProjectContentHintPostgresURLNonPooling UpdateProjectContentHintPostgresURLNonPooling = UpdateProjectContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURLNonPooling, "", true, true); err == nil { - u.UpdateProjectContentHintPostgresURLNonPooling = &updateProjectContentHintPostgresURLNonPooling - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNonPooling + var updateProjectContentHintIntegrationStoreSecret UpdateProjectContentHintIntegrationStoreSecret = UpdateProjectContentHintIntegrationStoreSecret{} + if err := utils.UnmarshalJSON(data, &updateProjectContentHintIntegrationStoreSecret, "", true, nil); err == nil { + u.UpdateProjectContentHintIntegrationStoreSecret = &updateProjectContentHintIntegrationStoreSecret + u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintIntegrationStoreSecret return nil } - var updateProjectContentHintPostgresPassword UpdateProjectContentHintPostgresPassword = UpdateProjectContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresPassword, "", true, true); err == nil { - u.UpdateProjectContentHintPostgresPassword = &updateProjectContentHintPostgresPassword - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPassword + var updateProjectContentHintRedisURL UpdateProjectContentHintRedisURL = UpdateProjectContentHintRedisURL{} + if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisURL, "", true, nil); err == nil { + u.UpdateProjectContentHintRedisURL = &updateProjectContentHintRedisURL + u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisURL + return nil + } + + var updateProjectContentHintRedisRestAPIURL UpdateProjectContentHintRedisRestAPIURL = UpdateProjectContentHintRedisRestAPIURL{} + if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIURL, "", true, nil); err == nil { + u.UpdateProjectContentHintRedisRestAPIURL = &updateProjectContentHintRedisRestAPIURL + u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIURL return nil } var updateProjectContentHintRedisRestAPIToken UpdateProjectContentHintRedisRestAPIToken = UpdateProjectContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIToken, "", true, nil); err == nil { u.UpdateProjectContentHintRedisRestAPIToken = &updateProjectContentHintRedisRestAPIToken u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIToken return nil } var updateProjectContentHintRedisRestAPIReadOnlyToken UpdateProjectContentHintRedisRestAPIReadOnlyToken = UpdateProjectContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIReadOnlyToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { u.UpdateProjectContentHintRedisRestAPIReadOnlyToken = &updateProjectContentHintRedisRestAPIReadOnlyToken u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIReadOnlyToken return nil } var updateProjectContentHintBlobReadWriteToken UpdateProjectContentHintBlobReadWriteToken = UpdateProjectContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintBlobReadWriteToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectContentHintBlobReadWriteToken, "", true, nil); err == nil { u.UpdateProjectContentHintBlobReadWriteToken = &updateProjectContentHintBlobReadWriteToken u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintBlobReadWriteToken return nil } var updateProjectContentHintPostgresURL UpdateProjectContentHintPostgresURL = UpdateProjectContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURL, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURL, "", true, nil); err == nil { u.UpdateProjectContentHintPostgresURL = &updateProjectContentHintPostgresURL u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURL return nil } - var updateProjectContentHintRedisRestAPIURL UpdateProjectContentHintRedisRestAPIURL = UpdateProjectContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisRestAPIURL, "", true, true); err == nil { - u.UpdateProjectContentHintRedisRestAPIURL = &updateProjectContentHintRedisRestAPIURL - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisRestAPIURL + var updateProjectContentHintPostgresURLNonPooling UpdateProjectContentHintPostgresURLNonPooling = UpdateProjectContentHintPostgresURLNonPooling{} + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURLNonPooling, "", true, nil); err == nil { + u.UpdateProjectContentHintPostgresURLNonPooling = &updateProjectContentHintPostgresURLNonPooling + u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNonPooling return nil } - var updateProjectContentHintPostgresUser UpdateProjectContentHintPostgresUser = UpdateProjectContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresUser, "", true, true); err == nil { - u.UpdateProjectContentHintPostgresUser = &updateProjectContentHintPostgresUser - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresUser + var updateProjectContentHintPostgresPrismaURL UpdateProjectContentHintPostgresPrismaURL = UpdateProjectContentHintPostgresPrismaURL{} + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresPrismaURL, "", true, nil); err == nil { + u.UpdateProjectContentHintPostgresPrismaURL = &updateProjectContentHintPostgresPrismaURL + u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPrismaURL return nil } - var updateProjectContentHintRedisURL UpdateProjectContentHintRedisURL = UpdateProjectContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintRedisURL, "", true, true); err == nil { - u.UpdateProjectContentHintRedisURL = &updateProjectContentHintRedisURL - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintRedisURL + var updateProjectContentHintPostgresUser UpdateProjectContentHintPostgresUser = UpdateProjectContentHintPostgresUser{} + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresUser, "", true, nil); err == nil { + u.UpdateProjectContentHintPostgresUser = &updateProjectContentHintPostgresUser + u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresUser return nil } var updateProjectContentHintPostgresHost UpdateProjectContentHintPostgresHost = UpdateProjectContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresHost, "", true, nil); err == nil { u.UpdateProjectContentHintPostgresHost = &updateProjectContentHintPostgresHost u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresHost return nil } - var updateProjectContentHintPostgresPrismaURL UpdateProjectContentHintPostgresPrismaURL = UpdateProjectContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresPrismaURL, "", true, true); err == nil { - u.UpdateProjectContentHintPostgresPrismaURL = &updateProjectContentHintPostgresPrismaURL - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPrismaURL + var updateProjectContentHintPostgresPassword UpdateProjectContentHintPostgresPassword = UpdateProjectContentHintPostgresPassword{} + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresPassword, "", true, nil); err == nil { + u.UpdateProjectContentHintPostgresPassword = &updateProjectContentHintPostgresPassword + u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresPassword return nil } var updateProjectContentHintPostgresDatabase UpdateProjectContentHintPostgresDatabase = UpdateProjectContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresDatabase, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresDatabase, "", true, nil); err == nil { u.UpdateProjectContentHintPostgresDatabase = &updateProjectContentHintPostgresDatabase u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresDatabase return nil } var updateProjectContentHintPostgresURLNoSsl UpdateProjectContentHintPostgresURLNoSsl = UpdateProjectContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURLNoSsl, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectContentHintPostgresURLNoSsl, "", true, nil); err == nil { u.UpdateProjectContentHintPostgresURLNoSsl = &updateProjectContentHintPostgresURLNoSsl u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintPostgresURLNoSsl return nil } var updateProjectContentHintFlagsConnectionString UpdateProjectContentHintFlagsConnectionString = UpdateProjectContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintFlagsConnectionString, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectContentHintFlagsConnectionString, "", true, nil); err == nil { u.UpdateProjectContentHintFlagsConnectionString = &updateProjectContentHintFlagsConnectionString u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintFlagsConnectionString return nil } - var updateProjectContentHintIntegrationStoreSecret UpdateProjectContentHintIntegrationStoreSecret = UpdateProjectContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &updateProjectContentHintIntegrationStoreSecret, "", true, true); err == nil { - u.UpdateProjectContentHintIntegrationStoreSecret = &updateProjectContentHintIntegrationStoreSecret - u.Type = UpdateProjectContentHintUnionTypeUpdateProjectContentHintIntegrationStoreSecret - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectContentHintUnion", string(data)) } @@ -3661,6 +3843,17 @@ type UpdateProjectDeployHook5 struct { URL string `json:"url"` } +func (u UpdateProjectDeployHook5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDeployHook5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDeployHook5) GetCreatedAt() *float64 { if o == nil { return nil @@ -3712,6 +3905,17 @@ type UpdateProjectLinkGithubCustomHost struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectLinkGithubCustomHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectLinkGithubCustomHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"org", "type", "host", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectLinkGithubCustomHost) GetOrg() string { if o == nil { return "" @@ -3827,6 +4031,17 @@ type UpdateProjectDeployHook4 struct { URL string `json:"url"` } +func (u UpdateProjectDeployHook4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDeployHook4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDeployHook4) GetCreatedAt() *float64 { if o == nil { return nil @@ -3877,6 +4092,17 @@ type UpdateProjectLinkBitbucket struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectLinkBitbucket) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectLinkBitbucket) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"name", "slug", "owner", "type", "uuid", "workspaceUuid", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectLinkBitbucket) GetName() string { if o == nil { return "" @@ -3992,6 +4218,17 @@ type UpdateProjectDeployHook3 struct { URL string `json:"url"` } +func (u UpdateProjectDeployHook3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDeployHook3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDeployHook3) GetCreatedAt() *float64 { if o == nil { return nil @@ -4044,6 +4281,17 @@ type UpdateProjectLinkGitlab struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectLinkGitlab) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectLinkGitlab) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"projectId", "projectName", "projectNameWithNamespace", "projectNamespace", "projectUrl", "type", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectLinkGitlab) GetProjectID() string { if o == nil { return "" @@ -4166,6 +4414,17 @@ type UpdateProjectDeployHook2 struct { URL string `json:"url"` } +func (u UpdateProjectDeployHook2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDeployHook2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDeployHook2) GetCreatedAt() *float64 { if o == nil { return nil @@ -4216,6 +4475,17 @@ type UpdateProjectLinkGithubLimited struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectLinkGithubLimited) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectLinkGithubLimited) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "org", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectLinkGithubLimited) GetType() UpdateProjectTypeGithubLimited { if o == nil { return UpdateProjectTypeGithubLimited("") @@ -4324,6 +4594,17 @@ type UpdateProjectDeployHook1 struct { URL string `json:"url"` } +func (u UpdateProjectDeployHook1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDeployHook1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDeployHook1) GetCreatedAt() *float64 { if o == nil { return nil @@ -4374,6 +4655,17 @@ type UpdateProjectLinkGithub struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectLinkGithub) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectLinkGithub) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"org", "type", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectLinkGithub) GetOrg() string { if o == nil { return "" @@ -4518,38 +4810,38 @@ func CreateUpdateProjectLinkUnionUpdateProjectLinkGithubCustomHost(updateProject func (u *UpdateProjectLinkUnion) UnmarshalJSON(data []byte) error { - var updateProjectLinkGithub UpdateProjectLinkGithub = UpdateProjectLinkGithub{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkGithub, "", true, true); err == nil { - u.UpdateProjectLinkGithub = &updateProjectLinkGithub - u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGithub - return nil - } - - var updateProjectLinkGithubLimited UpdateProjectLinkGithubLimited = UpdateProjectLinkGithubLimited{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkGithubLimited, "", true, true); err == nil { - u.UpdateProjectLinkGithubLimited = &updateProjectLinkGithubLimited - u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGithubLimited + var updateProjectLinkGitlab UpdateProjectLinkGitlab = UpdateProjectLinkGitlab{} + if err := utils.UnmarshalJSON(data, &updateProjectLinkGitlab, "", true, nil); err == nil { + u.UpdateProjectLinkGitlab = &updateProjectLinkGitlab + u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGitlab return nil } var updateProjectLinkBitbucket UpdateProjectLinkBitbucket = UpdateProjectLinkBitbucket{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkBitbucket, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectLinkBitbucket, "", true, nil); err == nil { u.UpdateProjectLinkBitbucket = &updateProjectLinkBitbucket u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkBitbucket return nil } var updateProjectLinkGithubCustomHost UpdateProjectLinkGithubCustomHost = UpdateProjectLinkGithubCustomHost{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkGithubCustomHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectLinkGithubCustomHost, "", true, nil); err == nil { u.UpdateProjectLinkGithubCustomHost = &updateProjectLinkGithubCustomHost u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGithubCustomHost return nil } - var updateProjectLinkGitlab UpdateProjectLinkGitlab = UpdateProjectLinkGitlab{} - if err := utils.UnmarshalJSON(data, &updateProjectLinkGitlab, "", true, true); err == nil { - u.UpdateProjectLinkGitlab = &updateProjectLinkGitlab - u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGitlab + var updateProjectLinkGithub UpdateProjectLinkGithub = UpdateProjectLinkGithub{} + if err := utils.UnmarshalJSON(data, &updateProjectLinkGithub, "", true, nil); err == nil { + u.UpdateProjectLinkGithub = &updateProjectLinkGithub + u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGithub + return nil + } + + var updateProjectLinkGithubLimited UpdateProjectLinkGithubLimited = UpdateProjectLinkGithubLimited{} + if err := utils.UnmarshalJSON(data, &updateProjectLinkGithubLimited, "", true, nil); err == nil { + u.UpdateProjectLinkGithubLimited = &updateProjectLinkGithubLimited + u.Type = UpdateProjectLinkUnionTypeUpdateProjectLinkGithubLimited return nil } @@ -4586,6 +4878,17 @@ type UpdateProjectMicrofrontends2 struct { Enabled bool `json:"enabled"` } +func (u UpdateProjectMicrofrontends2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectMicrofrontends2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectMicrofrontends2) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -4622,6 +4925,17 @@ type UpdateProjectMicrofrontends1 struct { RouteObservabilityToThisProject *bool `json:"routeObservabilityToThisProject,omitempty"` } +func (u UpdateProjectMicrofrontends1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectMicrofrontends1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectMicrofrontends1) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -4698,20 +5012,20 @@ func CreateUpdateProjectMicrofrontendsUnionUpdateProjectMicrofrontends2(updatePr func (u *UpdateProjectMicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var updateProjectMicrofrontends2 UpdateProjectMicrofrontends2 = UpdateProjectMicrofrontends2{} - if err := utils.UnmarshalJSON(data, &updateProjectMicrofrontends2, "", true, true); err == nil { - u.UpdateProjectMicrofrontends2 = &updateProjectMicrofrontends2 - u.Type = UpdateProjectMicrofrontendsUnionTypeUpdateProjectMicrofrontends2 - return nil - } - var updateProjectMicrofrontends1 UpdateProjectMicrofrontends1 = UpdateProjectMicrofrontends1{} - if err := utils.UnmarshalJSON(data, &updateProjectMicrofrontends1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectMicrofrontends1, "", true, nil); err == nil { u.UpdateProjectMicrofrontends1 = &updateProjectMicrofrontends1 u.Type = UpdateProjectMicrofrontendsUnionTypeUpdateProjectMicrofrontends1 return nil } + var updateProjectMicrofrontends2 UpdateProjectMicrofrontends2 = UpdateProjectMicrofrontends2{} + if err := utils.UnmarshalJSON(data, &updateProjectMicrofrontends2, "", true, nil); err == nil { + u.UpdateProjectMicrofrontends2 = &updateProjectMicrofrontends2 + u.Type = UpdateProjectMicrofrontendsUnionTypeUpdateProjectMicrofrontends2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectMicrofrontendsUnion", string(data)) } @@ -5220,14 +5534,14 @@ func CreateUpdateProjectAliasAssignedBoolean(boolean bool) UpdateProjectAliasAss func (u *UpdateProjectAliasAssigned) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = UpdateProjectAliasAssignedTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = UpdateProjectAliasAssignedTypeBoolean return nil @@ -7779,6 +8093,17 @@ type UpdateProjectProtectionBypassAutomationBypass struct { Scope UpdateProjectScopeAutomationBypass `json:"scope"` } +func (u UpdateProjectProtectionBypassAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectProtectionBypassAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectProtectionBypassAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -7831,6 +8156,17 @@ type UpdateProjectProtectionBypassIntegrationAutomationBypass struct { ConfigurationID string `json:"configurationId"` } +func (u UpdateProjectProtectionBypassIntegrationAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectProtectionBypassIntegrationAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"createdAt", "createdBy", "scope", "integrationId", "configurationId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectProtectionBypassIntegrationAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -7900,20 +8236,20 @@ func CreateUpdateProjectProtectionBypassUnionUpdateProjectProtectionBypassAutoma func (u *UpdateProjectProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var updateProjectProtectionBypassAutomationBypass UpdateProjectProtectionBypassAutomationBypass = UpdateProjectProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassAutomationBypass, "", true, true); err == nil { - u.UpdateProjectProtectionBypassAutomationBypass = &updateProjectProtectionBypassAutomationBypass - u.Type = UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassAutomationBypass - return nil - } - var updateProjectProtectionBypassIntegrationAutomationBypass UpdateProjectProtectionBypassIntegrationAutomationBypass = UpdateProjectProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassIntegrationAutomationBypass, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { u.UpdateProjectProtectionBypassIntegrationAutomationBypass = &updateProjectProtectionBypassIntegrationAutomationBypass u.Type = UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassIntegrationAutomationBypass return nil } + var updateProjectProtectionBypassAutomationBypass UpdateProjectProtectionBypassAutomationBypass = UpdateProjectProtectionBypassAutomationBypass{} + if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassAutomationBypass, "", true, nil); err == nil { + u.UpdateProjectProtectionBypassAutomationBypass = &updateProjectProtectionBypassAutomationBypass + u.Type = UpdateProjectProtectionBypassUnionTypeUpdateProjectProtectionBypassAutomationBypass + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectProtectionBypassUnion", string(data)) } @@ -7968,6 +8304,17 @@ type UpdateProjectTrustedIpsResponse2 struct { DeploymentType UpdateProjectTrustedIpsDeploymentTypeResponse2 `json:"deploymentType"` } +func (u UpdateProjectTrustedIpsResponse2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectTrustedIpsResponse2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectTrustedIpsResponse2) GetDeploymentType() UpdateProjectTrustedIpsDeploymentTypeResponse2 { if o == nil { return UpdateProjectTrustedIpsDeploymentTypeResponse2("") @@ -8015,6 +8362,17 @@ type UpdateProjectAddressResponse struct { Note *string `json:"note,omitempty"` } +func (u UpdateProjectAddressResponse) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectAddressResponse) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectAddressResponse) GetValue() string { if o == nil { return "" @@ -8061,6 +8419,17 @@ type UpdateProjectTrustedIpsResponse1 struct { ProtectionMode UpdateProjectProtectionModeResponse `json:"protectionMode"` } +func (u UpdateProjectTrustedIpsResponse1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectTrustedIpsResponse1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"deploymentType", "addresses", "protectionMode"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectTrustedIpsResponse1) GetDeploymentType() UpdateProjectTrustedIpsDeploymentTypeResponse1 { if o == nil { return UpdateProjectTrustedIpsDeploymentTypeResponse1("") @@ -8116,20 +8485,20 @@ func CreateUpdateProjectTrustedIpsUnionUpdateProjectTrustedIpsResponse2(updatePr func (u *UpdateProjectTrustedIpsUnion) UnmarshalJSON(data []byte) error { - var updateProjectTrustedIpsResponse2 UpdateProjectTrustedIpsResponse2 = UpdateProjectTrustedIpsResponse2{} - if err := utils.UnmarshalJSON(data, &updateProjectTrustedIpsResponse2, "", true, true); err == nil { - u.UpdateProjectTrustedIpsResponse2 = &updateProjectTrustedIpsResponse2 - u.Type = UpdateProjectTrustedIpsUnionTypeUpdateProjectTrustedIpsResponse2 - return nil - } - var updateProjectTrustedIpsResponse1 UpdateProjectTrustedIpsResponse1 = UpdateProjectTrustedIpsResponse1{} - if err := utils.UnmarshalJSON(data, &updateProjectTrustedIpsResponse1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectTrustedIpsResponse1, "", true, nil); err == nil { u.UpdateProjectTrustedIpsResponse1 = &updateProjectTrustedIpsResponse1 u.Type = UpdateProjectTrustedIpsUnionTypeUpdateProjectTrustedIpsResponse1 return nil } + var updateProjectTrustedIpsResponse2 UpdateProjectTrustedIpsResponse2 = UpdateProjectTrustedIpsResponse2{} + if err := utils.UnmarshalJSON(data, &updateProjectTrustedIpsResponse2, "", true, nil); err == nil { + u.UpdateProjectTrustedIpsResponse2 = &updateProjectTrustedIpsResponse2 + u.Type = UpdateProjectTrustedIpsUnionTypeUpdateProjectTrustedIpsResponse2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectTrustedIpsUnion", string(data)) } @@ -8633,28 +9002,29 @@ type UpdateProjectResponseBody struct { CustomerSupportCodeVisibility *bool `json:"customerSupportCodeVisibility,omitempty"` Crons *UpdateProjectCrons `json:"crons,omitempty"` DataCache *UpdateProjectDataCache `json:"dataCache,omitempty"` - DeploymentExpiration *UpdateProjectDeploymentExpiration `json:"deploymentExpiration,omitempty"` - DevCommand *string `json:"devCommand,omitempty"` - DirectoryListing bool `json:"directoryListing"` - InstallCommand *string `json:"installCommand,omitempty"` - Env []UpdateProjectEnv `json:"env,omitempty"` - CustomEnvironments []UpdateProjectCustomEnvironment `json:"customEnvironments,omitempty"` - Framework *UpdateProjectFrameworkResponseBody `json:"framework,omitempty"` - GitForkProtection *bool `json:"gitForkProtection,omitempty"` - GitLFS *bool `json:"gitLFS,omitempty"` - ID string `json:"id"` - IPBuckets []UpdateProjectIPBucket `json:"ipBuckets,omitempty"` - LatestDeployments []UpdateProjectLatestDeployment `json:"latestDeployments,omitempty"` - Link *UpdateProjectLinkUnion `json:"link,omitempty"` - Microfrontends *UpdateProjectMicrofrontendsUnion `json:"microfrontends,omitempty"` - Name string `json:"name"` - NodeVersion UpdateProjectNodeVersionResponseBody `json:"nodeVersion"` - OptionsAllowlist *UpdateProjectOptionsAllowlistResponse `json:"optionsAllowlist,omitempty"` - OutputDirectory *string `json:"outputDirectory,omitempty"` - PasswordProtection *UpdateProjectPasswordProtectionResponse `json:"passwordProtection,omitempty"` - ProductionDeploymentsFastLane *bool `json:"productionDeploymentsFastLane,omitempty"` - PublicSource *bool `json:"publicSource,omitempty"` - ResourceConfig UpdateProjectResourceConfigResponse `json:"resourceConfig"` + // Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + DeploymentExpiration *UpdateProjectDeploymentExpiration `json:"deploymentExpiration,omitempty"` + DevCommand *string `json:"devCommand,omitempty"` + DirectoryListing bool `json:"directoryListing"` + InstallCommand *string `json:"installCommand,omitempty"` + Env []UpdateProjectEnv `json:"env,omitempty"` + CustomEnvironments []UpdateProjectCustomEnvironment `json:"customEnvironments,omitempty"` + Framework *UpdateProjectFrameworkResponseBody `json:"framework,omitempty"` + GitForkProtection *bool `json:"gitForkProtection,omitempty"` + GitLFS *bool `json:"gitLFS,omitempty"` + ID string `json:"id"` + IPBuckets []UpdateProjectIPBucket `json:"ipBuckets,omitempty"` + LatestDeployments []UpdateProjectLatestDeployment `json:"latestDeployments,omitempty"` + Link *UpdateProjectLinkUnion `json:"link,omitempty"` + Microfrontends *UpdateProjectMicrofrontendsUnion `json:"microfrontends,omitempty"` + Name string `json:"name"` + NodeVersion UpdateProjectNodeVersionResponseBody `json:"nodeVersion"` + OptionsAllowlist *UpdateProjectOptionsAllowlistResponse `json:"optionsAllowlist,omitempty"` + OutputDirectory *string `json:"outputDirectory,omitempty"` + PasswordProtection *UpdateProjectPasswordProtectionResponse `json:"passwordProtection,omitempty"` + ProductionDeploymentsFastLane *bool `json:"productionDeploymentsFastLane,omitempty"` + PublicSource *bool `json:"publicSource,omitempty"` + ResourceConfig UpdateProjectResourceConfigResponse `json:"resourceConfig"` // Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. RollbackDescription *UpdateProjectRollbackDescription `json:"rollbackDescription,omitempty"` // Project-level rolling release configuration that defines how deployments should be gradually rolled out diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectdatacache.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectdatacache.go index 2b2daddd..d9e9b5d0 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectdatacache.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectdatacache.go @@ -231,14 +231,14 @@ func CreateUpdateProjectDataCacheEnvIDUnionUpdateProjectDataCacheEnvIDEnum(updat func (u *UpdateProjectDataCacheEnvIDUnion) UnmarshalJSON(data []byte) error { var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { u.Str = &str u.Type = UpdateProjectDataCacheEnvIDUnionTypeStr return nil } var updateProjectDataCacheEnvIDEnum UpdateProjectDataCacheEnvIDEnum = UpdateProjectDataCacheEnvIDEnum("") - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheEnvIDEnum, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheEnvIDEnum, "", true, nil); err == nil { u.UpdateProjectDataCacheEnvIDEnum = &updateProjectDataCacheEnvIDEnum u.Type = UpdateProjectDataCacheEnvIDUnionTypeUpdateProjectDataCacheEnvIDEnum return nil @@ -448,12 +448,18 @@ func (o *UpdateProjectDataCacheDataCache) GetUnlimited() *bool { return o.Unlimited } +// UpdateProjectDataCacheDeploymentExpiration - Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. type UpdateProjectDataCacheDeploymentExpiration struct { - ExpirationDays *float64 `json:"expirationDays,omitempty"` + // Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. + ExpirationDays *float64 `json:"expirationDays,omitempty"` + // Number of days to keep production deployments before soft deletion. ExpirationDaysProduction *float64 `json:"expirationDaysProduction,omitempty"` - ExpirationDaysCanceled *float64 `json:"expirationDaysCanceled,omitempty"` - ExpirationDaysErrored *float64 `json:"expirationDaysErrored,omitempty"` - DeploymentsToKeep *float64 `json:"deploymentsToKeep,omitempty"` + // Number of days to keep canceled deployments before soft deletion. + ExpirationDaysCanceled *float64 `json:"expirationDaysCanceled,omitempty"` + // Number of days to keep errored deployments before soft deletion. + ExpirationDaysErrored *float64 `json:"expirationDaysErrored,omitempty"` + // Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. + DeploymentsToKeep *float64 `json:"deploymentsToKeep,omitempty"` } func (o *UpdateProjectDataCacheDeploymentExpiration) GetExpirationDays() *float64 { @@ -584,14 +590,14 @@ func CreateUpdateProjectDataCacheTargetUnionUpdateProjectDataCacheTargetEnum2(up func (u *UpdateProjectDataCacheTargetUnion) UnmarshalJSON(data []byte) error { var arrayOfUpdateProjectDataCacheTargetEnum1 []UpdateProjectDataCacheTargetEnum1 = []UpdateProjectDataCacheTargetEnum1{} - if err := utils.UnmarshalJSON(data, &arrayOfUpdateProjectDataCacheTargetEnum1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &arrayOfUpdateProjectDataCacheTargetEnum1, "", true, nil); err == nil { u.ArrayOfUpdateProjectDataCacheTargetEnum1 = arrayOfUpdateProjectDataCacheTargetEnum1 u.Type = UpdateProjectDataCacheTargetUnionTypeArrayOfUpdateProjectDataCacheTargetEnum1 return nil } var updateProjectDataCacheTargetEnum2 UpdateProjectDataCacheTargetEnum2 = UpdateProjectDataCacheTargetEnum2("") - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheTargetEnum2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheTargetEnum2, "", true, nil); err == nil { u.UpdateProjectDataCacheTargetEnum2 = &updateProjectDataCacheTargetEnum2 u.Type = UpdateProjectDataCacheTargetUnionTypeUpdateProjectDataCacheTargetEnum2 return nil @@ -675,6 +681,17 @@ type UpdateProjectDataCacheContentHintFlagsConnectionString struct { ProjectID string `json:"projectId"` } +func (u UpdateProjectDataCacheContentHintFlagsConnectionString) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintFlagsConnectionString) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "projectId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintFlagsConnectionString) GetType() UpdateProjectDataCacheTypeFlagsConnectionString { if o == nil { return UpdateProjectDataCacheTypeFlagsConnectionString("") @@ -720,6 +737,17 @@ type UpdateProjectDataCacheContentHintIntegrationStoreSecret struct { IntegrationConfigurationID string `json:"integrationConfigurationId"` } +func (u UpdateProjectDataCacheContentHintIntegrationStoreSecret) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintIntegrationStoreSecret) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId", "integrationId", "integrationProductId", "integrationConfigurationId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintIntegrationStoreSecret) GetType() UpdateProjectDataCacheTypeIntegrationStoreSecret { if o == nil { return UpdateProjectDataCacheTypeIntegrationStoreSecret("") @@ -783,6 +811,17 @@ type UpdateProjectDataCacheContentHintPostgresURLNoSsl struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintPostgresURLNoSsl) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintPostgresURLNoSsl) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintPostgresURLNoSsl) GetType() UpdateProjectDataCacheTypePostgresURLNoSsl { if o == nil { return UpdateProjectDataCacheTypePostgresURLNoSsl("") @@ -825,6 +864,17 @@ type UpdateProjectDataCacheContentHintPostgresDatabase struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintPostgresDatabase) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintPostgresDatabase) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintPostgresDatabase) GetType() UpdateProjectDataCacheTypePostgresDatabase { if o == nil { return UpdateProjectDataCacheTypePostgresDatabase("") @@ -867,6 +917,17 @@ type UpdateProjectDataCacheContentHintPostgresPassword struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintPostgresPassword) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintPostgresPassword) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintPostgresPassword) GetType() UpdateProjectDataCacheTypePostgresPassword { if o == nil { return UpdateProjectDataCacheTypePostgresPassword("") @@ -909,6 +970,17 @@ type UpdateProjectDataCacheContentHintPostgresHost struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintPostgresHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintPostgresHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintPostgresHost) GetType() UpdateProjectDataCacheTypePostgresHost { if o == nil { return UpdateProjectDataCacheTypePostgresHost("") @@ -951,6 +1023,17 @@ type UpdateProjectDataCacheContentHintPostgresUser struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintPostgresUser) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintPostgresUser) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintPostgresUser) GetType() UpdateProjectDataCacheTypePostgresUser { if o == nil { return UpdateProjectDataCacheTypePostgresUser("") @@ -993,6 +1076,17 @@ type UpdateProjectDataCacheContentHintPostgresPrismaURL struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintPostgresPrismaURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintPostgresPrismaURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintPostgresPrismaURL) GetType() UpdateProjectDataCacheTypePostgresPrismaURL { if o == nil { return UpdateProjectDataCacheTypePostgresPrismaURL("") @@ -1035,6 +1129,17 @@ type UpdateProjectDataCacheContentHintPostgresURLNonPooling struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintPostgresURLNonPooling) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintPostgresURLNonPooling) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintPostgresURLNonPooling) GetType() UpdateProjectDataCacheTypePostgresURLNonPooling { if o == nil { return UpdateProjectDataCacheTypePostgresURLNonPooling("") @@ -1077,6 +1182,17 @@ type UpdateProjectDataCacheContentHintPostgresURL struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintPostgresURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintPostgresURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintPostgresURL) GetType() UpdateProjectDataCacheTypePostgresURL { if o == nil { return UpdateProjectDataCacheTypePostgresURL("") @@ -1119,6 +1235,17 @@ type UpdateProjectDataCacheContentHintBlobReadWriteToken struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintBlobReadWriteToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintBlobReadWriteToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintBlobReadWriteToken) GetType() UpdateProjectDataCacheTypeBlobReadWriteToken { if o == nil { return UpdateProjectDataCacheTypeBlobReadWriteToken("") @@ -1161,6 +1288,17 @@ type UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken) GetType() UpdateProjectDataCacheTypeRedisRestAPIReadOnlyToken { if o == nil { return UpdateProjectDataCacheTypeRedisRestAPIReadOnlyToken("") @@ -1203,6 +1341,17 @@ type UpdateProjectDataCacheContentHintRedisRestAPIToken struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintRedisRestAPIToken) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintRedisRestAPIToken) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintRedisRestAPIToken) GetType() UpdateProjectDataCacheTypeRedisRestAPIToken { if o == nil { return UpdateProjectDataCacheTypeRedisRestAPIToken("") @@ -1245,6 +1394,17 @@ type UpdateProjectDataCacheContentHintRedisRestAPIURL struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintRedisRestAPIURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintRedisRestAPIURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintRedisRestAPIURL) GetType() UpdateProjectDataCacheTypeRedisRestAPIURL { if o == nil { return UpdateProjectDataCacheTypeRedisRestAPIURL("") @@ -1287,6 +1447,17 @@ type UpdateProjectDataCacheContentHintRedisURL struct { StoreID string `json:"storeId"` } +func (u UpdateProjectDataCacheContentHintRedisURL) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheContentHintRedisURL) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "storeId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheContentHintRedisURL) GetType() UpdateProjectDataCacheTypeRedisURL { if o == nil { return UpdateProjectDataCacheTypeRedisURL("") @@ -1478,111 +1649,111 @@ func CreateUpdateProjectDataCacheContentHintUnionUpdateProjectDataCacheContentHi func (u *UpdateProjectDataCacheContentHintUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheContentHintPostgresURLNonPooling UpdateProjectDataCacheContentHintPostgresURLNonPooling = UpdateProjectDataCacheContentHintPostgresURLNonPooling{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURLNonPooling, "", true, true); err == nil { - u.UpdateProjectDataCacheContentHintPostgresURLNonPooling = &updateProjectDataCacheContentHintPostgresURLNonPooling - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNonPooling + var updateProjectDataCacheContentHintIntegrationStoreSecret UpdateProjectDataCacheContentHintIntegrationStoreSecret = UpdateProjectDataCacheContentHintIntegrationStoreSecret{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintIntegrationStoreSecret, "", true, nil); err == nil { + u.UpdateProjectDataCacheContentHintIntegrationStoreSecret = &updateProjectDataCacheContentHintIntegrationStoreSecret + u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintIntegrationStoreSecret return nil } - var updateProjectDataCacheContentHintPostgresPassword UpdateProjectDataCacheContentHintPostgresPassword = UpdateProjectDataCacheContentHintPostgresPassword{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresPassword, "", true, true); err == nil { - u.UpdateProjectDataCacheContentHintPostgresPassword = &updateProjectDataCacheContentHintPostgresPassword - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPassword + var updateProjectDataCacheContentHintRedisURL UpdateProjectDataCacheContentHintRedisURL = UpdateProjectDataCacheContentHintRedisURL{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisURL, "", true, nil); err == nil { + u.UpdateProjectDataCacheContentHintRedisURL = &updateProjectDataCacheContentHintRedisURL + u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisURL + return nil + } + + var updateProjectDataCacheContentHintRedisRestAPIURL UpdateProjectDataCacheContentHintRedisRestAPIURL = UpdateProjectDataCacheContentHintRedisRestAPIURL{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIURL, "", true, nil); err == nil { + u.UpdateProjectDataCacheContentHintRedisRestAPIURL = &updateProjectDataCacheContentHintRedisRestAPIURL + u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIURL return nil } var updateProjectDataCacheContentHintRedisRestAPIToken UpdateProjectDataCacheContentHintRedisRestAPIToken = UpdateProjectDataCacheContentHintRedisRestAPIToken{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIToken, "", true, nil); err == nil { u.UpdateProjectDataCacheContentHintRedisRestAPIToken = &updateProjectDataCacheContentHintRedisRestAPIToken u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIToken return nil } var updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken = UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken, "", true, nil); err == nil { u.UpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken = &updateProjectDataCacheContentHintRedisRestAPIReadOnlyToken u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIReadOnlyToken return nil } var updateProjectDataCacheContentHintBlobReadWriteToken UpdateProjectDataCacheContentHintBlobReadWriteToken = UpdateProjectDataCacheContentHintBlobReadWriteToken{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintBlobReadWriteToken, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintBlobReadWriteToken, "", true, nil); err == nil { u.UpdateProjectDataCacheContentHintBlobReadWriteToken = &updateProjectDataCacheContentHintBlobReadWriteToken u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintBlobReadWriteToken return nil } var updateProjectDataCacheContentHintPostgresURL UpdateProjectDataCacheContentHintPostgresURL = UpdateProjectDataCacheContentHintPostgresURL{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURL, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURL, "", true, nil); err == nil { u.UpdateProjectDataCacheContentHintPostgresURL = &updateProjectDataCacheContentHintPostgresURL u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURL return nil } - var updateProjectDataCacheContentHintRedisRestAPIURL UpdateProjectDataCacheContentHintRedisRestAPIURL = UpdateProjectDataCacheContentHintRedisRestAPIURL{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisRestAPIURL, "", true, true); err == nil { - u.UpdateProjectDataCacheContentHintRedisRestAPIURL = &updateProjectDataCacheContentHintRedisRestAPIURL - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisRestAPIURL + var updateProjectDataCacheContentHintPostgresURLNonPooling UpdateProjectDataCacheContentHintPostgresURLNonPooling = UpdateProjectDataCacheContentHintPostgresURLNonPooling{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURLNonPooling, "", true, nil); err == nil { + u.UpdateProjectDataCacheContentHintPostgresURLNonPooling = &updateProjectDataCacheContentHintPostgresURLNonPooling + u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNonPooling return nil } - var updateProjectDataCacheContentHintPostgresUser UpdateProjectDataCacheContentHintPostgresUser = UpdateProjectDataCacheContentHintPostgresUser{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresUser, "", true, true); err == nil { - u.UpdateProjectDataCacheContentHintPostgresUser = &updateProjectDataCacheContentHintPostgresUser - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresUser + var updateProjectDataCacheContentHintPostgresPrismaURL UpdateProjectDataCacheContentHintPostgresPrismaURL = UpdateProjectDataCacheContentHintPostgresPrismaURL{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresPrismaURL, "", true, nil); err == nil { + u.UpdateProjectDataCacheContentHintPostgresPrismaURL = &updateProjectDataCacheContentHintPostgresPrismaURL + u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPrismaURL return nil } - var updateProjectDataCacheContentHintRedisURL UpdateProjectDataCacheContentHintRedisURL = UpdateProjectDataCacheContentHintRedisURL{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintRedisURL, "", true, true); err == nil { - u.UpdateProjectDataCacheContentHintRedisURL = &updateProjectDataCacheContentHintRedisURL - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintRedisURL + var updateProjectDataCacheContentHintPostgresUser UpdateProjectDataCacheContentHintPostgresUser = UpdateProjectDataCacheContentHintPostgresUser{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresUser, "", true, nil); err == nil { + u.UpdateProjectDataCacheContentHintPostgresUser = &updateProjectDataCacheContentHintPostgresUser + u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresUser return nil } var updateProjectDataCacheContentHintPostgresHost UpdateProjectDataCacheContentHintPostgresHost = UpdateProjectDataCacheContentHintPostgresHost{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresHost, "", true, nil); err == nil { u.UpdateProjectDataCacheContentHintPostgresHost = &updateProjectDataCacheContentHintPostgresHost u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresHost return nil } - var updateProjectDataCacheContentHintPostgresPrismaURL UpdateProjectDataCacheContentHintPostgresPrismaURL = UpdateProjectDataCacheContentHintPostgresPrismaURL{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresPrismaURL, "", true, true); err == nil { - u.UpdateProjectDataCacheContentHintPostgresPrismaURL = &updateProjectDataCacheContentHintPostgresPrismaURL - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPrismaURL + var updateProjectDataCacheContentHintPostgresPassword UpdateProjectDataCacheContentHintPostgresPassword = UpdateProjectDataCacheContentHintPostgresPassword{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresPassword, "", true, nil); err == nil { + u.UpdateProjectDataCacheContentHintPostgresPassword = &updateProjectDataCacheContentHintPostgresPassword + u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresPassword return nil } var updateProjectDataCacheContentHintPostgresDatabase UpdateProjectDataCacheContentHintPostgresDatabase = UpdateProjectDataCacheContentHintPostgresDatabase{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresDatabase, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresDatabase, "", true, nil); err == nil { u.UpdateProjectDataCacheContentHintPostgresDatabase = &updateProjectDataCacheContentHintPostgresDatabase u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresDatabase return nil } var updateProjectDataCacheContentHintPostgresURLNoSsl UpdateProjectDataCacheContentHintPostgresURLNoSsl = UpdateProjectDataCacheContentHintPostgresURLNoSsl{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURLNoSsl, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintPostgresURLNoSsl, "", true, nil); err == nil { u.UpdateProjectDataCacheContentHintPostgresURLNoSsl = &updateProjectDataCacheContentHintPostgresURLNoSsl u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintPostgresURLNoSsl return nil } var updateProjectDataCacheContentHintFlagsConnectionString UpdateProjectDataCacheContentHintFlagsConnectionString = UpdateProjectDataCacheContentHintFlagsConnectionString{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintFlagsConnectionString, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintFlagsConnectionString, "", true, nil); err == nil { u.UpdateProjectDataCacheContentHintFlagsConnectionString = &updateProjectDataCacheContentHintFlagsConnectionString u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintFlagsConnectionString return nil } - var updateProjectDataCacheContentHintIntegrationStoreSecret UpdateProjectDataCacheContentHintIntegrationStoreSecret = UpdateProjectDataCacheContentHintIntegrationStoreSecret{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheContentHintIntegrationStoreSecret, "", true, true); err == nil { - u.UpdateProjectDataCacheContentHintIntegrationStoreSecret = &updateProjectDataCacheContentHintIntegrationStoreSecret - u.Type = UpdateProjectDataCacheContentHintUnionTypeUpdateProjectDataCacheContentHintIntegrationStoreSecret - return nil - } - return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectDataCacheContentHintUnion", string(data)) } @@ -2668,6 +2839,17 @@ type UpdateProjectDataCacheDeployHook5 struct { URL string `json:"url"` } +func (u UpdateProjectDataCacheDeployHook5) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheDeployHook5) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheDeployHook5) GetCreatedAt() *float64 { if o == nil { return nil @@ -2719,6 +2901,17 @@ type UpdateProjectDataCacheLinkGithubCustomHost struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectDataCacheLinkGithubCustomHost) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheLinkGithubCustomHost) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"org", "type", "host", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheLinkGithubCustomHost) GetOrg() string { if o == nil { return "" @@ -2834,6 +3027,17 @@ type UpdateProjectDataCacheDeployHook4 struct { URL string `json:"url"` } +func (u UpdateProjectDataCacheDeployHook4) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheDeployHook4) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheDeployHook4) GetCreatedAt() *float64 { if o == nil { return nil @@ -2884,6 +3088,17 @@ type UpdateProjectDataCacheLinkBitbucket struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectDataCacheLinkBitbucket) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheLinkBitbucket) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"name", "slug", "owner", "type", "uuid", "workspaceUuid", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheLinkBitbucket) GetName() string { if o == nil { return "" @@ -2999,6 +3214,17 @@ type UpdateProjectDataCacheDeployHook3 struct { URL string `json:"url"` } +func (u UpdateProjectDataCacheDeployHook3) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheDeployHook3) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheDeployHook3) GetCreatedAt() *float64 { if o == nil { return nil @@ -3051,6 +3277,17 @@ type UpdateProjectDataCacheLinkGitlab struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectDataCacheLinkGitlab) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheLinkGitlab) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"projectId", "projectName", "projectNameWithNamespace", "projectNamespace", "projectUrl", "type", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheLinkGitlab) GetProjectID() string { if o == nil { return "" @@ -3173,6 +3410,17 @@ type UpdateProjectDataCacheDeployHook2 struct { URL string `json:"url"` } +func (u UpdateProjectDataCacheDeployHook2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheDeployHook2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheDeployHook2) GetCreatedAt() *float64 { if o == nil { return nil @@ -3223,6 +3471,17 @@ type UpdateProjectDataCacheLinkGithubLimited struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectDataCacheLinkGithubLimited) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheLinkGithubLimited) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"type", "org", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheLinkGithubLimited) GetType() UpdateProjectDataCacheTypeGithubLimited { if o == nil { return UpdateProjectDataCacheTypeGithubLimited("") @@ -3331,6 +3590,17 @@ type UpdateProjectDataCacheDeployHook1 struct { URL string `json:"url"` } +func (u UpdateProjectDataCacheDeployHook1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheDeployHook1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"id", "name", "ref", "url"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheDeployHook1) GetCreatedAt() *float64 { if o == nil { return nil @@ -3381,6 +3651,17 @@ type UpdateProjectDataCacheLinkGithub struct { ProductionBranch string `json:"productionBranch"` } +func (u UpdateProjectDataCacheLinkGithub) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheLinkGithub) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"org", "type", "deployHooks", "gitCredentialId", "productionBranch"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheLinkGithub) GetOrg() string { if o == nil { return "" @@ -3525,38 +3806,38 @@ func CreateUpdateProjectDataCacheLinkUnionUpdateProjectDataCacheLinkGithubCustom func (u *UpdateProjectDataCacheLinkUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheLinkGithub UpdateProjectDataCacheLinkGithub = UpdateProjectDataCacheLinkGithub{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithub, "", true, true); err == nil { - u.UpdateProjectDataCacheLinkGithub = &updateProjectDataCacheLinkGithub - u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithub - return nil - } - - var updateProjectDataCacheLinkGithubLimited UpdateProjectDataCacheLinkGithubLimited = UpdateProjectDataCacheLinkGithubLimited{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithubLimited, "", true, true); err == nil { - u.UpdateProjectDataCacheLinkGithubLimited = &updateProjectDataCacheLinkGithubLimited - u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubLimited + var updateProjectDataCacheLinkGitlab UpdateProjectDataCacheLinkGitlab = UpdateProjectDataCacheLinkGitlab{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGitlab, "", true, nil); err == nil { + u.UpdateProjectDataCacheLinkGitlab = &updateProjectDataCacheLinkGitlab + u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGitlab return nil } var updateProjectDataCacheLinkBitbucket UpdateProjectDataCacheLinkBitbucket = UpdateProjectDataCacheLinkBitbucket{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkBitbucket, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkBitbucket, "", true, nil); err == nil { u.UpdateProjectDataCacheLinkBitbucket = &updateProjectDataCacheLinkBitbucket u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkBitbucket return nil } var updateProjectDataCacheLinkGithubCustomHost UpdateProjectDataCacheLinkGithubCustomHost = UpdateProjectDataCacheLinkGithubCustomHost{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithubCustomHost, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithubCustomHost, "", true, nil); err == nil { u.UpdateProjectDataCacheLinkGithubCustomHost = &updateProjectDataCacheLinkGithubCustomHost u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubCustomHost return nil } - var updateProjectDataCacheLinkGitlab UpdateProjectDataCacheLinkGitlab = UpdateProjectDataCacheLinkGitlab{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGitlab, "", true, true); err == nil { - u.UpdateProjectDataCacheLinkGitlab = &updateProjectDataCacheLinkGitlab - u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGitlab + var updateProjectDataCacheLinkGithub UpdateProjectDataCacheLinkGithub = UpdateProjectDataCacheLinkGithub{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithub, "", true, nil); err == nil { + u.UpdateProjectDataCacheLinkGithub = &updateProjectDataCacheLinkGithub + u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithub + return nil + } + + var updateProjectDataCacheLinkGithubLimited UpdateProjectDataCacheLinkGithubLimited = UpdateProjectDataCacheLinkGithubLimited{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheLinkGithubLimited, "", true, nil); err == nil { + u.UpdateProjectDataCacheLinkGithubLimited = &updateProjectDataCacheLinkGithubLimited + u.Type = UpdateProjectDataCacheLinkUnionTypeUpdateProjectDataCacheLinkGithubLimited return nil } @@ -3593,6 +3874,17 @@ type UpdateProjectDataCacheMicrofrontends2 struct { Enabled bool `json:"enabled"` } +func (u UpdateProjectDataCacheMicrofrontends2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheMicrofrontends2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheMicrofrontends2) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -3629,6 +3921,17 @@ type UpdateProjectDataCacheMicrofrontends1 struct { RouteObservabilityToThisProject *bool `json:"routeObservabilityToThisProject,omitempty"` } +func (u UpdateProjectDataCacheMicrofrontends1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheMicrofrontends1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"updatedAt", "groupIds", "enabled"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheMicrofrontends1) GetUpdatedAt() float64 { if o == nil { return 0.0 @@ -3705,20 +4008,20 @@ func CreateUpdateProjectDataCacheMicrofrontendsUnionUpdateProjectDataCacheMicrof func (u *UpdateProjectDataCacheMicrofrontendsUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheMicrofrontends2 UpdateProjectDataCacheMicrofrontends2 = UpdateProjectDataCacheMicrofrontends2{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheMicrofrontends2, "", true, true); err == nil { - u.UpdateProjectDataCacheMicrofrontends2 = &updateProjectDataCacheMicrofrontends2 - u.Type = UpdateProjectDataCacheMicrofrontendsUnionTypeUpdateProjectDataCacheMicrofrontends2 - return nil - } - var updateProjectDataCacheMicrofrontends1 UpdateProjectDataCacheMicrofrontends1 = UpdateProjectDataCacheMicrofrontends1{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheMicrofrontends1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheMicrofrontends1, "", true, nil); err == nil { u.UpdateProjectDataCacheMicrofrontends1 = &updateProjectDataCacheMicrofrontends1 u.Type = UpdateProjectDataCacheMicrofrontendsUnionTypeUpdateProjectDataCacheMicrofrontends1 return nil } + var updateProjectDataCacheMicrofrontends2 UpdateProjectDataCacheMicrofrontends2 = UpdateProjectDataCacheMicrofrontends2{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheMicrofrontends2, "", true, nil); err == nil { + u.UpdateProjectDataCacheMicrofrontends2 = &updateProjectDataCacheMicrofrontends2 + u.Type = UpdateProjectDataCacheMicrofrontendsUnionTypeUpdateProjectDataCacheMicrofrontends2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectDataCacheMicrofrontendsUnion", string(data)) } @@ -4227,14 +4530,14 @@ func CreateUpdateProjectDataCacheAliasAssignedBoolean(boolean bool) UpdateProjec func (u *UpdateProjectDataCacheAliasAssigned) UnmarshalJSON(data []byte) error { var number float64 = float64(0) - if err := utils.UnmarshalJSON(data, &number, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { u.Number = &number u.Type = UpdateProjectDataCacheAliasAssignedTypeNumber return nil } var boolean bool = false - if err := utils.UnmarshalJSON(data, &boolean, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { u.Boolean = &boolean u.Type = UpdateProjectDataCacheAliasAssignedTypeBoolean return nil @@ -6786,6 +7089,17 @@ type UpdateProjectDataCacheProtectionBypassAutomationBypass struct { Scope UpdateProjectDataCacheScopeAutomationBypass `json:"scope"` } +func (u UpdateProjectDataCacheProtectionBypassAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheProtectionBypassAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheProtectionBypassAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -6838,6 +7152,17 @@ type UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass struct { ConfigurationID string `json:"configurationId"` } +func (u UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"createdAt", "createdBy", "scope", "integrationId", "configurationId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -6907,20 +7232,20 @@ func CreateUpdateProjectDataCacheProtectionBypassUnionUpdateProjectDataCacheProt func (u *UpdateProjectDataCacheProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheProtectionBypassAutomationBypass UpdateProjectDataCacheProtectionBypassAutomationBypass = UpdateProjectDataCacheProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheProtectionBypassAutomationBypass, "", true, true); err == nil { - u.UpdateProjectDataCacheProtectionBypassAutomationBypass = &updateProjectDataCacheProtectionBypassAutomationBypass - u.Type = UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassAutomationBypass - return nil - } - var updateProjectDataCacheProtectionBypassIntegrationAutomationBypass UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass = UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheProtectionBypassIntegrationAutomationBypass, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { u.UpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass = &updateProjectDataCacheProtectionBypassIntegrationAutomationBypass u.Type = UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassIntegrationAutomationBypass return nil } + var updateProjectDataCacheProtectionBypassAutomationBypass UpdateProjectDataCacheProtectionBypassAutomationBypass = UpdateProjectDataCacheProtectionBypassAutomationBypass{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheProtectionBypassAutomationBypass, "", true, nil); err == nil { + u.UpdateProjectDataCacheProtectionBypassAutomationBypass = &updateProjectDataCacheProtectionBypassAutomationBypass + u.Type = UpdateProjectDataCacheProtectionBypassUnionTypeUpdateProjectDataCacheProtectionBypassAutomationBypass + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectDataCacheProtectionBypassUnion", string(data)) } @@ -6975,6 +7300,17 @@ type UpdateProjectDataCacheTrustedIps2 struct { DeploymentType UpdateProjectDataCacheTrustedIpsDeploymentType2 `json:"deploymentType"` } +func (u UpdateProjectDataCacheTrustedIps2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheTrustedIps2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"deploymentType"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheTrustedIps2) GetDeploymentType() UpdateProjectDataCacheTrustedIpsDeploymentType2 { if o == nil { return UpdateProjectDataCacheTrustedIpsDeploymentType2("") @@ -7022,6 +7358,17 @@ type UpdateProjectDataCacheAddress struct { Note *string `json:"note,omitempty"` } +func (u UpdateProjectDataCacheAddress) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheAddress) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"value"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheAddress) GetValue() string { if o == nil { return "" @@ -7068,6 +7415,17 @@ type UpdateProjectDataCacheTrustedIps1 struct { ProtectionMode UpdateProjectDataCacheProtectionMode `json:"protectionMode"` } +func (u UpdateProjectDataCacheTrustedIps1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectDataCacheTrustedIps1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"deploymentType", "addresses", "protectionMode"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectDataCacheTrustedIps1) GetDeploymentType() UpdateProjectDataCacheTrustedIpsDeploymentType1 { if o == nil { return UpdateProjectDataCacheTrustedIpsDeploymentType1("") @@ -7123,20 +7481,20 @@ func CreateUpdateProjectDataCacheTrustedIpsUnionUpdateProjectDataCacheTrustedIps func (u *UpdateProjectDataCacheTrustedIpsUnion) UnmarshalJSON(data []byte) error { - var updateProjectDataCacheTrustedIps2 UpdateProjectDataCacheTrustedIps2 = UpdateProjectDataCacheTrustedIps2{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheTrustedIps2, "", true, true); err == nil { - u.UpdateProjectDataCacheTrustedIps2 = &updateProjectDataCacheTrustedIps2 - u.Type = UpdateProjectDataCacheTrustedIpsUnionTypeUpdateProjectDataCacheTrustedIps2 - return nil - } - var updateProjectDataCacheTrustedIps1 UpdateProjectDataCacheTrustedIps1 = UpdateProjectDataCacheTrustedIps1{} - if err := utils.UnmarshalJSON(data, &updateProjectDataCacheTrustedIps1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheTrustedIps1, "", true, nil); err == nil { u.UpdateProjectDataCacheTrustedIps1 = &updateProjectDataCacheTrustedIps1 u.Type = UpdateProjectDataCacheTrustedIpsUnionTypeUpdateProjectDataCacheTrustedIps1 return nil } + var updateProjectDataCacheTrustedIps2 UpdateProjectDataCacheTrustedIps2 = UpdateProjectDataCacheTrustedIps2{} + if err := utils.UnmarshalJSON(data, &updateProjectDataCacheTrustedIps2, "", true, nil); err == nil { + u.UpdateProjectDataCacheTrustedIps2 = &updateProjectDataCacheTrustedIps2 + u.Type = UpdateProjectDataCacheTrustedIpsUnionTypeUpdateProjectDataCacheTrustedIps2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectDataCacheTrustedIpsUnion", string(data)) } @@ -7639,28 +7997,29 @@ type UpdateProjectDataCacheResponseBody struct { CustomerSupportCodeVisibility *bool `json:"customerSupportCodeVisibility,omitempty"` Crons *UpdateProjectDataCacheCrons `json:"crons,omitempty"` DataCache *UpdateProjectDataCacheDataCache `json:"dataCache,omitempty"` - DeploymentExpiration *UpdateProjectDataCacheDeploymentExpiration `json:"deploymentExpiration,omitempty"` - DevCommand *string `json:"devCommand,omitempty"` - DirectoryListing bool `json:"directoryListing"` - InstallCommand *string `json:"installCommand,omitempty"` - Env []UpdateProjectDataCacheEnv `json:"env,omitempty"` - CustomEnvironments []UpdateProjectDataCacheCustomEnvironment `json:"customEnvironments,omitempty"` - Framework *UpdateProjectDataCacheFramework `json:"framework,omitempty"` - GitForkProtection *bool `json:"gitForkProtection,omitempty"` - GitLFS *bool `json:"gitLFS,omitempty"` - ID string `json:"id"` - IPBuckets []UpdateProjectDataCacheIPBucket `json:"ipBuckets,omitempty"` - LatestDeployments []UpdateProjectDataCacheLatestDeployment `json:"latestDeployments,omitempty"` - Link *UpdateProjectDataCacheLinkUnion `json:"link,omitempty"` - Microfrontends *UpdateProjectDataCacheMicrofrontendsUnion `json:"microfrontends,omitempty"` - Name string `json:"name"` - NodeVersion UpdateProjectDataCacheNodeVersion `json:"nodeVersion"` - OptionsAllowlist *UpdateProjectDataCacheOptionsAllowlist `json:"optionsAllowlist,omitempty"` - OutputDirectory *string `json:"outputDirectory,omitempty"` - PasswordProtection *UpdateProjectDataCachePasswordProtection `json:"passwordProtection,omitempty"` - ProductionDeploymentsFastLane *bool `json:"productionDeploymentsFastLane,omitempty"` - PublicSource *bool `json:"publicSource,omitempty"` - ResourceConfig UpdateProjectDataCacheResourceConfig `json:"resourceConfig"` + // Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + DeploymentExpiration *UpdateProjectDataCacheDeploymentExpiration `json:"deploymentExpiration,omitempty"` + DevCommand *string `json:"devCommand,omitempty"` + DirectoryListing bool `json:"directoryListing"` + InstallCommand *string `json:"installCommand,omitempty"` + Env []UpdateProjectDataCacheEnv `json:"env,omitempty"` + CustomEnvironments []UpdateProjectDataCacheCustomEnvironment `json:"customEnvironments,omitempty"` + Framework *UpdateProjectDataCacheFramework `json:"framework,omitempty"` + GitForkProtection *bool `json:"gitForkProtection,omitempty"` + GitLFS *bool `json:"gitLFS,omitempty"` + ID string `json:"id"` + IPBuckets []UpdateProjectDataCacheIPBucket `json:"ipBuckets,omitempty"` + LatestDeployments []UpdateProjectDataCacheLatestDeployment `json:"latestDeployments,omitempty"` + Link *UpdateProjectDataCacheLinkUnion `json:"link,omitempty"` + Microfrontends *UpdateProjectDataCacheMicrofrontendsUnion `json:"microfrontends,omitempty"` + Name string `json:"name"` + NodeVersion UpdateProjectDataCacheNodeVersion `json:"nodeVersion"` + OptionsAllowlist *UpdateProjectDataCacheOptionsAllowlist `json:"optionsAllowlist,omitempty"` + OutputDirectory *string `json:"outputDirectory,omitempty"` + PasswordProtection *UpdateProjectDataCachePasswordProtection `json:"passwordProtection,omitempty"` + ProductionDeploymentsFastLane *bool `json:"productionDeploymentsFastLane,omitempty"` + PublicSource *bool `json:"publicSource,omitempty"` + ResourceConfig UpdateProjectDataCacheResourceConfig `json:"resourceConfig"` // Description of why a project was rolled back, and by whom. Note that lastAliasRequest contains the from/to details of the rollback. RollbackDescription *UpdateProjectDataCacheRollbackDescription `json:"rollbackDescription,omitempty"` // Project-level rolling release configuration that defines how deployments should be gradually rolled out diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectprotectionbypass.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectprotectionbypass.go index e2b85202..a528d736 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectprotectionbypass.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateprojectprotectionbypass.go @@ -133,6 +133,17 @@ type UpdateProjectProtectionBypassProtectionBypassAutomationBypass struct { Scope UpdateProjectProtectionBypassScopeAutomationBypass `json:"scope"` } +func (u UpdateProjectProtectionBypassProtectionBypassAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectProtectionBypassProtectionBypassAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"createdAt", "createdBy", "scope"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectProtectionBypassProtectionBypassAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -185,6 +196,17 @@ type UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass st ConfigurationID string `json:"configurationId"` } +func (u UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"createdAt", "createdBy", "scope", "integrationId", "configurationId"}); err != nil { + return err + } + return nil +} + func (o *UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass) GetCreatedAt() float64 { if o == nil { return 0.0 @@ -254,20 +276,20 @@ func CreateUpdateProjectProtectionBypassProtectionBypassUnionUpdateProjectProtec func (u *UpdateProjectProtectionBypassProtectionBypassUnion) UnmarshalJSON(data []byte) error { - var updateProjectProtectionBypassProtectionBypassAutomationBypass UpdateProjectProtectionBypassProtectionBypassAutomationBypass = UpdateProjectProtectionBypassProtectionBypassAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassProtectionBypassAutomationBypass, "", true, true); err == nil { - u.UpdateProjectProtectionBypassProtectionBypassAutomationBypass = &updateProjectProtectionBypassProtectionBypassAutomationBypass - u.Type = UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassAutomationBypass - return nil - } - var updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass = UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass{} - if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass, "", true, nil); err == nil { u.UpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass = &updateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass u.Type = UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassIntegrationAutomationBypass return nil } + var updateProjectProtectionBypassProtectionBypassAutomationBypass UpdateProjectProtectionBypassProtectionBypassAutomationBypass = UpdateProjectProtectionBypassProtectionBypassAutomationBypass{} + if err := utils.UnmarshalJSON(data, &updateProjectProtectionBypassProtectionBypassAutomationBypass, "", true, nil); err == nil { + u.UpdateProjectProtectionBypassProtectionBypassAutomationBypass = &updateProjectProtectionBypassProtectionBypassAutomationBypass + u.Type = UpdateProjectProtectionBypassProtectionBypassUnionTypeUpdateProjectProtectionBypassProtectionBypassAutomationBypass + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UpdateProjectProtectionBypassProtectionBypassUnion", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updaterollingreleaseconfig.go b/src/__tests__/mockserver/internal/sdk/models/operations/updaterollingreleaseconfig.go index 54e42f40..b214d049 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updaterollingreleaseconfig.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updaterollingreleaseconfig.go @@ -49,6 +49,17 @@ type UpdateRollingReleaseConfigStage struct { Duration *float64 `json:"duration,omitempty"` } +func (u UpdateRollingReleaseConfigStage) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateRollingReleaseConfigStage) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"targetPercentage"}); err != nil { + return err + } + return nil +} + func (o *UpdateRollingReleaseConfigStage) GetTargetPercentage() float64 { if o == nil { return 0.0 @@ -74,6 +85,17 @@ type UpdateRollingReleaseConfigRollingRelease struct { Stages []UpdateRollingReleaseConfigStage `json:"stages,omitempty"` } +func (u UpdateRollingReleaseConfigRollingRelease) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateRollingReleaseConfigRollingRelease) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + func (o *UpdateRollingReleaseConfigRollingRelease) GetStages() []UpdateRollingReleaseConfigStage { if o == nil { return nil @@ -85,6 +107,17 @@ type UpdateRollingReleaseConfigResponseBody2 struct { RollingRelease *UpdateRollingReleaseConfigRollingRelease `json:"rollingRelease"` } +func (u UpdateRollingReleaseConfigResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateRollingReleaseConfigResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"rollingRelease"}); err != nil { + return err + } + return nil +} + func (o *UpdateRollingReleaseConfigResponseBody2) GetRollingRelease() *UpdateRollingReleaseConfigRollingRelease { if o == nil { return nil @@ -96,6 +129,17 @@ type UpdateRollingReleaseConfigResponseBody1 struct { RollingRelease any `json:"rollingRelease"` } +func (u UpdateRollingReleaseConfigResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UpdateRollingReleaseConfigResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"rollingRelease"}); err != nil { + return err + } + return nil +} + func (o *UpdateRollingReleaseConfigResponseBody1) GetRollingRelease() any { if o == nil { return nil @@ -138,14 +182,14 @@ func CreateUpdateRollingReleaseConfigResponseBodyUpdateRollingReleaseConfigRespo func (u *UpdateRollingReleaseConfigResponseBody) UnmarshalJSON(data []byte) error { var updateRollingReleaseConfigResponseBody1 UpdateRollingReleaseConfigResponseBody1 = UpdateRollingReleaseConfigResponseBody1{} - if err := utils.UnmarshalJSON(data, &updateRollingReleaseConfigResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateRollingReleaseConfigResponseBody1, "", true, nil); err == nil { u.UpdateRollingReleaseConfigResponseBody1 = &updateRollingReleaseConfigResponseBody1 u.Type = UpdateRollingReleaseConfigResponseBodyTypeUpdateRollingReleaseConfigResponseBody1 return nil } var updateRollingReleaseConfigResponseBody2 UpdateRollingReleaseConfigResponseBody2 = UpdateRollingReleaseConfigResponseBody2{} - if err := utils.UnmarshalJSON(data, &updateRollingReleaseConfigResponseBody2, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &updateRollingReleaseConfigResponseBody2, "", true, nil); err == nil { u.UpdateRollingReleaseConfigResponseBody2 = &updateRollingReleaseConfigResponseBody2 u.Type = UpdateRollingReleaseConfigResponseBodyTypeUpdateRollingReleaseConfigResponseBody2 return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/updateteammember.go b/src/__tests__/mockserver/internal/sdk/models/operations/updateteammember.go index c2dc88ab..caa8683a 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/updateteammember.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/updateteammember.go @@ -85,7 +85,7 @@ func (u UpdateTeamMemberRequestBody) MarshalJSON() ([]byte, error) { } func (u *UpdateTeamMemberRequestBody) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, false); err != nil { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { return err } return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/uploadfile.go b/src/__tests__/mockserver/internal/sdk/models/operations/uploadfile.go index 952b1362..9f53e3e2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/uploadfile.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/uploadfile.go @@ -87,11 +87,33 @@ func (o *UploadFileRequest) GetRequestBody() *io.Reader { type UploadFileResponseBody2 struct { } +func (u UploadFileResponseBody2) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UploadFileResponseBody2) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { + return err + } + return nil +} + type UploadFileResponseBody1 struct { // Array of URLs where the file was updated Urls []string `json:"urls"` } +func (u UploadFileResponseBody1) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(u, "", false) +} + +func (u *UploadFileResponseBody1) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &u, "", false, []string{"urls"}); err != nil { + return err + } + return nil +} + func (o *UploadFileResponseBody1) GetUrls() []string { if o == nil { return []string{} @@ -135,20 +157,20 @@ func CreateUploadFileResponseBodyUploadFileResponseBody2(uploadFileResponseBody2 func (u *UploadFileResponseBody) UnmarshalJSON(data []byte) error { - var uploadFileResponseBody2 UploadFileResponseBody2 = UploadFileResponseBody2{} - if err := utils.UnmarshalJSON(data, &uploadFileResponseBody2, "", true, true); err == nil { - u.UploadFileResponseBody2 = &uploadFileResponseBody2 - u.Type = UploadFileResponseBodyTypeUploadFileResponseBody2 - return nil - } - var uploadFileResponseBody1 UploadFileResponseBody1 = UploadFileResponseBody1{} - if err := utils.UnmarshalJSON(data, &uploadFileResponseBody1, "", true, true); err == nil { + if err := utils.UnmarshalJSON(data, &uploadFileResponseBody1, "", true, nil); err == nil { u.UploadFileResponseBody1 = &uploadFileResponseBody1 u.Type = UploadFileResponseBodyTypeUploadFileResponseBody1 return nil } + var uploadFileResponseBody2 UploadFileResponseBody2 = UploadFileResponseBody2{} + if err := utils.UnmarshalJSON(data, &uploadFileResponseBody2, "", true, nil); err == nil { + u.UploadFileResponseBody2 = &uploadFileResponseBody2 + u.Type = UploadFileResponseBodyTypeUploadFileResponseBody2 + return nil + } + return fmt.Errorf("could not unmarshal `%s` into any supported union types for UploadFileResponseBody", string(data)) } diff --git a/src/__tests__/mockserver/internal/sdk/utils/json.go b/src/__tests__/mockserver/internal/sdk/utils/json.go index ca93aa5b..764f6454 100644 --- a/src/__tests__/mockserver/internal/sdk/utils/json.go +++ b/src/__tests__/mockserver/internal/sdk/utils/json.go @@ -114,7 +114,7 @@ func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, e } } -func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool, disallowUnknownFields bool) error { +func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool, requiredFields []string) error { if reflect.TypeOf(v).Kind() != reflect.Ptr { return fmt.Errorf("v must be a pointer") } @@ -124,19 +124,25 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool switch { case isModelType(typ): if topLevel || bytes.Equal(b, []byte("null")) { - d := json.NewDecoder(bytes.NewReader(b)) - if disallowUnknownFields { - d.DisallowUnknownFields() - } - return d.Decode(v) + return json.Unmarshal(b, v) } - var unmarhsaled map[string]json.RawMessage + var unmarshaled map[string]json.RawMessage - if err := json.Unmarshal(b, &unmarhsaled); err != nil { + if err := json.Unmarshal(b, &unmarshaled); err != nil { return err } + missingFields := []string{} + for _, requiredField := range requiredFields { + if _, ok := unmarshaled[requiredField]; !ok { + missingFields = append(missingFields, requiredField) + } + } + if len(missingFields) > 0 { + return fmt.Errorf("missing required fields: %s", strings.Join(missingFields, ", ")) + } + var additionalPropertiesField *reflect.StructField var additionalPropertiesValue *reflect.Value @@ -163,7 +169,7 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool // If we receive a value for a const field ignore it but mark it as unmarshaled if field.Tag.Get("const") != "" { - if r, ok := unmarhsaled[fieldName]; ok { + if r, ok := unmarshaled[fieldName]; ok { val := string(r) if strings.HasPrefix(val, `"`) && strings.HasSuffix(val, `"`) { @@ -178,13 +184,13 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool return fmt.Errorf("const field `%s` does not match expected value `%s` got `%s`", fieldName, constValue, val) } - delete(unmarhsaled, fieldName) + delete(unmarshaled, fieldName) } } else if !field.IsExported() { continue } - value, ok := unmarhsaled[fieldName] + value, ok := unmarshaled[fieldName] if !ok { defaultTag := field.Tag.Get("default") if defaultTag != "" { @@ -192,26 +198,22 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool ok = true } } else { - delete(unmarhsaled, fieldName) + delete(unmarshaled, fieldName) } if ok { - if err := unmarshalValue(value, fieldVal, field.Tag, disallowUnknownFields); err != nil { + if err := unmarshalValue(value, fieldVal, field.Tag); err != nil { return err } } } - keys := make([]string, 0, len(unmarhsaled)) - for k := range unmarhsaled { + keys := make([]string, 0, len(unmarshaled)) + for k := range unmarshaled { keys = append(keys, k) } if len(keys) > 0 { - if disallowUnknownFields && (additionalPropertiesField == nil || additionalPropertiesValue == nil) { - return fmt.Errorf("unknown fields: %v", keys) - } - if additionalPropertiesField != nil && additionalPropertiesValue != nil { typeOfMap := additionalPropertiesField.Type if additionalPropertiesValue.Type().Kind() == reflect.Interface { @@ -222,10 +224,10 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool mapValue := reflect.MakeMap(typeOfMap) - for key, value := range unmarhsaled { + for key, value := range unmarshaled { val := reflect.New(typeOfMap.Elem()) - if err := unmarshalValue(value, val, additionalPropertiesField.Tag, disallowUnknownFields); err != nil { + if err := unmarshalValue(value, val, additionalPropertiesField.Tag); err != nil { return err } @@ -244,7 +246,7 @@ func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool } } default: - return unmarshalValue(b, reflect.ValueOf(v), tag, disallowUnknownFields) + return unmarshalValue(b, reflect.ValueOf(v), tag) } return nil @@ -394,7 +396,7 @@ func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.Struc return []byte(tagValue) } -func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTag, disallowUnknownFields bool) error { +func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTag) error { if bytes.Equal(value, []byte("null")) { if v.CanAddr() { return json.Unmarshal(value, v.Addr().Interface()) @@ -466,18 +468,18 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa } } - var unmarhsaled map[string]json.RawMessage + var unmarshaled map[string]json.RawMessage - if err := json.Unmarshal(value, &unmarhsaled); err != nil { + if err := json.Unmarshal(value, &unmarshaled); err != nil { return err } m := reflect.MakeMap(typ) - for k, value := range unmarhsaled { + for k, value := range unmarshaled { itemVal := reflect.New(typ.Elem()) - if err := unmarshalValue(value, itemVal, tag, disallowUnknownFields); err != nil { + if err := unmarshalValue(value, itemVal, tag); err != nil { return err } @@ -498,7 +500,7 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa for index, value := range unmarshaled { itemVal := reflect.New(typ.Elem()) - if err := unmarshalValue(value, itemVal, tag, disallowUnknownFields); err != nil { + if err := unmarshalValue(value, itemVal, tag); err != nil { return err } @@ -616,11 +618,7 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa val = v.Interface() } - d := json.NewDecoder(bytes.NewReader(value)) - if disallowUnknownFields { - d.DisallowUnknownFields() - } - return d.Decode(val) + return json.Unmarshal(value, val) } func dereferencePointers(typ reflect.Type, val reflect.Value) (reflect.Type, reflect.Value) { diff --git a/src/__tests__/rollingrelease.test.ts b/src/__tests__/rollingrelease.test.ts index fd9b53ad..815a6e9d 100644 --- a/src/__tests__/rollingrelease.test.ts +++ b/src/__tests__/rollingrelease.test.ts @@ -362,12 +362,8 @@ test("Rolling Release Get Rolling Release Billing Status", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - availableSlots: 7151.9, - reason: "no_available_slots", + availableSlots: 9636.63, + reason: "available_slots", message: "", - enabledProjects: [ - "", - "", - ], }); }); diff --git a/src/__tests__/security.test.ts b/src/__tests__/security.test.ts index 0d0358d3..76af72df 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: "whole-godparent.net", - ip: "ce11:0cbd:fbab:2e3e:b95b:ac0d:ddef:79f1", - createdAt: "1725180754472", - updatedAt: "1735661142441", - updatedAtHour: "", - }, - ], + result: [], }); }); diff --git a/src/__tests__/vercel.test.ts b/src/__tests__/vercel.test.ts index 214d9a45..9324d6be 100644 --- a/src/__tests__/vercel.test.ts +++ b/src/__tests__/vercel.test.ts @@ -2,7 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { assert, it } from "vitest"; +import { assert, expect, it, test } from "vitest"; +import { Vercel } from "../index.js"; +import { createTestHTTPClient } from "./testclient.js"; it.skip("Vercel Post /Domains", async () => { assert.fail( @@ -33,3 +35,36 @@ it.skip("Vercel Patch /Projects/{project Id}/logs Presets/{id}", async () => { "incomplete test found please make sure to address the following errors: [`workflow step patch_/projects/{projectId}/logs-presets/{id}.test referencing operation patch_/projects/{projectId}/logs-presets/{id} not found in document`]", ); }); + +test("Vercel Get /V1 /Integrations/integration/{integration Id Or Slug}/products/{product Id Or Slug}/plans", async () => { + const testHttpClient = createTestHTTPClient( + "get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans", + ); + + const vercel = new Vercel({ + serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080", + httpClient: testHttpClient, + }); + + const result = await vercel + .getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + { + integrationIdOrSlug: "", + productIdOrSlug: "", + }, + ); + expect(result).toBeDefined(); + expect(result).toEqual({ + plans: [ + { + type: "prepayment", + id: "", + name: "", + scope: "resource", + description: + "cope unless hierarchy versus ouch more regarding tabulate", + paymentMethodRequired: false, + }, + ], + }); +}); diff --git a/src/funcs/domainsCheckDomainPrice.ts b/src/funcs/domainsCheckDomainPrice.ts index 8a5f2215..608e8932 100644 --- a/src/funcs/domainsCheckDomainPrice.ts +++ b/src/funcs/domainsCheckDomainPrice.ts @@ -152,7 +152,7 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["400", "401", "403", "4XX", "5XX"], + errorCodes: ["400", "401", "403", "4XX", "500", "5XX"], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -182,7 +182,7 @@ async function $do( M.jsonErr(400, VercelBadRequestError$inboundSchema), M.jsonErr(401, VercelForbiddenError$inboundSchema), M.fail([403, "4XX"]), - M.fail("5XX"), + M.fail([500, "5XX"]), )(response, req, { extraFields: responseFields }); if (!result.ok) { return [result, { status: "complete", request: req, response }]; diff --git a/src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts b/src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts new file mode 100644 index 00000000..d47f0244 --- /dev/null +++ b/src/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts @@ -0,0 +1,207 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { VercelCore } from "../core.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { pathToFunc } from "../lib/url.js"; +import { + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$outboundSchema, + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$inboundSchema, +} from "../models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/httpclienterrors.js"; +import { ResponseValidationError } from "../models/responsevalidationerror.js"; +import { SDKValidationError } from "../models/sdkvalidationerror.js"; +import { + VercelBadRequestError, + VercelBadRequestError$inboundSchema, +} from "../models/vercelbadrequesterror.js"; +import { VercelError } from "../models/vercelerror.js"; +import { + VercelForbiddenError, + VercelForbiddenError$inboundSchema, +} from "../models/vercelforbiddenerror.js"; +import { + VercelNotFoundError, + VercelNotFoundError$inboundSchema, +} from "../models/vercelnotfounderror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +export function getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + client: VercelCore, + request: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, + options?: RequestOptions, +): APIPromise< + Result< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: VercelCore, + request: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, + options?: RequestOptions, +): Promise< + [ + Result< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$outboundSchema + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + integrationIdOrSlug: encodeSimple( + "integrationIdOrSlug", + payload.integrationIdOrSlug, + { explode: false, charEncoding: "percent" }, + ), + productIdOrSlug: encodeSimple("productIdOrSlug", payload.productIdOrSlug, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc( + "/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans", + )(pathParams); + + const query = encodeFormQuery({ + "metadata": payload.metadata, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: + "get_/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans", + oAuth2Scopes: [], + + resolvedSecurity: null, + + securitySource: null, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "403", "404", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json( + 200, + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$inboundSchema, + ), + M.jsonErr(400, VercelBadRequestError$inboundSchema), + M.jsonErr(401, VercelForbiddenError$inboundSchema), + M.jsonErr(404, VercelNotFoundError$inboundSchema), + M.fail([403, "4XX"]), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsConnectIntegrationResourceToProject.ts b/src/funcs/integrationsConnectIntegrationResourceToProject.ts new file mode 100644 index 00000000..d021fae3 --- /dev/null +++ b/src/funcs/integrationsConnectIntegrationResourceToProject.ts @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { VercelCore } from "../core.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectIntegrationResourceToProjectRequest, + ConnectIntegrationResourceToProjectRequest$outboundSchema, +} from "../models/connectintegrationresourcetoprojectop.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/httpclienterrors.js"; +import { ResponseValidationError } from "../models/responsevalidationerror.js"; +import { SDKValidationError } from "../models/sdkvalidationerror.js"; +import { + VercelBadRequestError, + VercelBadRequestError$inboundSchema, +} from "../models/vercelbadrequesterror.js"; +import { VercelError } from "../models/vercelerror.js"; +import { + VercelForbiddenError, + VercelForbiddenError$inboundSchema, +} from "../models/vercelforbiddenerror.js"; +import { + VercelNotFoundError, + VercelNotFoundError$inboundSchema, +} from "../models/vercelnotfounderror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Connect integration resource to project + * + * @remarks + * Connects an integration resource to a Vercel project. This endpoint establishes a connection between a provisioned integration resource (from storage APIs like `POST /v1/storage/stores/integration/direct`) and a specific Vercel project. + */ +export function integrationsConnectIntegrationResourceToProject( + client: VercelCore, + request: ConnectIntegrationResourceToProjectRequest, + options?: RequestOptions, +): APIPromise< + Result< + void, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: VercelCore, + request: ConnectIntegrationResourceToProjectRequest, + options?: RequestOptions, +): Promise< + [ + Result< + void, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + ConnectIntegrationResourceToProjectRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.RequestBody, { explode: true }); + + const pathParams = { + integrationConfigurationId: encodeSimple( + "integrationConfigurationId", + payload.integrationConfigurationId, + { explode: false, charEncoding: "percent" }, + ), + resourceId: encodeSimple("resourceId", payload.resourceId, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc( + "/v1/integrations/installations/{integrationConfigurationId}/resources/{resourceId}/connections", + )(pathParams); + + const query = encodeFormQuery({ + "slug": payload.slug, + "teamId": payload.teamId, + }); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerToken); + const securityInput = secConfig == null ? {} : { bearerToken: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "connectIntegrationResourceToProject", + oAuth2Scopes: [], + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerToken, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "403", "404", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + void, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil(201, z.void()), + M.jsonErr(400, VercelBadRequestError$inboundSchema), + M.jsonErr(401, VercelForbiddenError$inboundSchema), + M.jsonErr(404, VercelNotFoundError$inboundSchema), + M.fail([403, "4XX"]), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/integrationsCreateIntegrationStoreDirect.ts b/src/funcs/integrationsCreateIntegrationStoreDirect.ts new file mode 100644 index 00000000..c8c1403f --- /dev/null +++ b/src/funcs/integrationsCreateIntegrationStoreDirect.ts @@ -0,0 +1,207 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { VercelCore } from "../core.js"; +import { encodeFormQuery, encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + CreateIntegrationStoreDirectRequest, + CreateIntegrationStoreDirectRequest$outboundSchema, + CreateIntegrationStoreDirectResponseBody, + CreateIntegrationStoreDirectResponseBody$inboundSchema, +} from "../models/createintegrationstoredirectop.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/httpclienterrors.js"; +import { ResponseValidationError } from "../models/responsevalidationerror.js"; +import { SDKValidationError } from "../models/sdkvalidationerror.js"; +import { + VercelBadRequestError, + VercelBadRequestError$inboundSchema, +} from "../models/vercelbadrequesterror.js"; +import { VercelError } from "../models/vercelerror.js"; +import { + VercelForbiddenError, + VercelForbiddenError$inboundSchema, +} from "../models/vercelforbiddenerror.js"; +import { + VercelNotFoundError, + VercelNotFoundError$inboundSchema, +} from "../models/vercelnotfounderror.js"; +import { + VercelRateLimitError, + VercelRateLimitError$inboundSchema, +} from "../models/vercelratelimiterror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Create integration store (free and paid plans) + * + * @remarks + * Creates an integration store for both FREE and PAID billing plans. This simplified endpoint automatically provisions real integration storage resources while handling billing complexity behind the scenes. It supports both free and paid billing plans with automatic authorization creation for paid resources. ## How it works 1. Validates the integration configuration and product 2. For free resources: Auto-discovers available free billing plans 3. For paid resources: Creates billing authorization inline using provided billingPlanId 4. Provisions real resources through the Vercel Marketplace 5. Returns the created store with connection details ## Workflow Before using this endpoint, discover available products and billing plans: 1. List your configurations: `GET /v1/integrations/configurations` 2. Get products for a configuration: `GET /v1/integrations/configuration/{id}/products` 3. Get billing plans for a product: `GET /integrations/integration/{integrationId}/products/{productId}/plans` 4. Review the `metadataSchema` for each product to understand required metadata 5. Create storage with discovered product: `POST /v1/storage/stores/integration/direct` ## Usage Patterns - **Free resources**: Omit `billingPlanId` - endpoint will auto-discover free plans - **Paid resources**: Provide `billingPlanId` from billing plans discovery - **Prepayment plans**: Also provide `prepaymentAmountCents` for variable amount plans ## Limitations - **Admin access required**: Only integration configuration admins can create stores - **Storage limits apply**: Subject to your team's storage quotas - **Payment method required**: For paid plans, ensure valid payment method is configured ## Error Responses - `400 Bad Request`: Invalid input, no plans available, or billing issues - `403 Forbidden`: Insufficient permissions (non-admin users) - `404 Not Found`: Integration configuration or product not found - `429 Too Many Requests`: Rate limit exceeded + */ +export function integrationsCreateIntegrationStoreDirect( + client: VercelCore, + request: CreateIntegrationStoreDirectRequest, + options?: RequestOptions, +): APIPromise< + Result< + CreateIntegrationStoreDirectResponseBody, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelRateLimitError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: VercelCore, + request: CreateIntegrationStoreDirectRequest, + options?: RequestOptions, +): Promise< + [ + Result< + CreateIntegrationStoreDirectResponseBody, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelRateLimitError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => CreateIntegrationStoreDirectRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.RequestBody, { explode: true }); + + const path = pathToFunc("/v1/storage/stores/integration/direct")(); + + const query = encodeFormQuery({ + "slug": payload.slug, + "teamId": payload.teamId, + }); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerToken); + const securityInput = secConfig == null ? {} : { bearerToken: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "createIntegrationStoreDirect", + oAuth2Scopes: [], + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerToken, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "402", "403", "404", "429", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + CreateIntegrationStoreDirectResponseBody, + | VercelBadRequestError + | VercelForbiddenError + | VercelNotFoundError + | VercelRateLimitError + | VercelError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, CreateIntegrationStoreDirectResponseBody$inboundSchema), + M.jsonErr(400, VercelBadRequestError$inboundSchema), + M.jsonErr(401, VercelForbiddenError$inboundSchema), + M.jsonErr(404, VercelNotFoundError$inboundSchema), + M.jsonErr(429, VercelRateLimitError$inboundSchema), + M.fail([402, 403, "4XX"]), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/marketplaceExchangeSsoToken.ts b/src/funcs/marketplaceExchangeSsoToken.ts index bab6a99a..9952d593 100644 --- a/src/funcs/marketplaceExchangeSsoToken.ts +++ b/src/funcs/marketplaceExchangeSsoToken.ts @@ -139,7 +139,7 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["400", "404", "4XX", "500", "5XX"], + errorCodes: ["400", "403", "404", "4XX", "500", "5XX"], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -168,7 +168,7 @@ async function $do( M.json(200, ExchangeSsoTokenResponseBody$inboundSchema), M.jsonErr(400, VercelBadRequestError$inboundSchema), M.jsonErr(404, VercelNotFoundError$inboundSchema), - M.fail("4XX"), + M.fail([403, "4XX"]), M.fail([500, "5XX"]), )(response, req, { extraFields: responseFields }); if (!result.ok) { diff --git a/src/funcs/marketplaceSubmitInvoice.ts b/src/funcs/marketplaceSubmitInvoice.ts index ae150de4..b9d94787 100644 --- a/src/funcs/marketplaceSubmitInvoice.ts +++ b/src/funcs/marketplaceSubmitInvoice.ts @@ -161,7 +161,7 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["400", "401", "403", "404", "4XX", "5XX"], + errorCodes: ["400", "401", "403", "404", "409", "4XX", "5XX"], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -192,7 +192,7 @@ async function $do( M.jsonErr(400, VercelBadRequestError$inboundSchema), M.jsonErr(401, VercelForbiddenError$inboundSchema), M.jsonErr(404, VercelNotFoundError$inboundSchema), - M.fail([403, "4XX"]), + M.fail([403, 409, "4XX"]), M.fail("5XX"), )(response, req, { extraFields: responseFields }); if (!result.ok) { diff --git a/src/funcs/marketplaceUpdateInvoice.ts b/src/funcs/marketplaceUpdateInvoice.ts index ed7c43fe..ff965e5e 100644 --- a/src/funcs/marketplaceUpdateInvoice.ts +++ b/src/funcs/marketplaceUpdateInvoice.ts @@ -164,7 +164,7 @@ async function $do( const doResult = await client._do(req, { context, - errorCodes: ["400", "401", "403", "404", "4XX", "5XX"], + errorCodes: ["400", "401", "403", "404", "409", "4XX", "5XX"], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -195,7 +195,7 @@ async function $do( M.jsonErr(400, VercelBadRequestError$inboundSchema), M.jsonErr(401, VercelForbiddenError$inboundSchema), M.jsonErr(404, VercelNotFoundError$inboundSchema), - M.fail([403, "4XX"]), + M.fail([403, 409, "4XX"]), M.fail("5XX"), )(response, req, { extraFields: responseFields }); if (!result.ok) { diff --git a/src/funcs/projectsGetProjects.ts b/src/funcs/projectsGetProjects.ts index 3d25e48f..b7986bd2 100644 --- a/src/funcs/projectsGetProjects.ts +++ b/src/funcs/projectsGetProjects.ts @@ -118,6 +118,7 @@ async function $do( "repoUrl": payload.repoUrl, "search": payload.search, "slug": payload.slug, + "sortByElasticConcurrency": payload.sortByElasticConcurrency, "teamId": payload.teamId, }); diff --git a/src/lib/config.ts b/src/lib/config.ts index 4e391e6c..dec25b15 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.10.6", - genVersion: "2.687.1", - userAgent: "speakeasy-sdk/typescript 1.10.6 2.687.1 0.0.1 @vercel/sdk", + sdkVersion: "1.10.7", + genVersion: "2.692.0", + userAgent: "speakeasy-sdk/typescript 1.10.7 2.692.0 0.0.1 @vercel/sdk", } as const; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index e81f5e09..3ab508fa 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.10.6", + currentVersion: "1.10.7", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 8ce21f51..c34ba120 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -95,6 +95,9 @@ import { tool$environmentGetCustomEnvironment } from "./tools/environmentGetCust import { tool$environmentGetV9ProjectsIdOrNameCustomEnvironments } from "./tools/environmentGetV9ProjectsIdOrNameCustomEnvironments.js"; import { tool$environmentRemoveCustomEnvironment } from "./tools/environmentRemoveCustomEnvironment.js"; import { tool$environmentUpdateCustomEnvironment } from "./tools/environmentUpdateCustomEnvironment.js"; +import { tool$getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans } from "./tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js"; +import { tool$integrationsConnectIntegrationResourceToProject } from "./tools/integrationsConnectIntegrationResourceToProject.js"; +import { tool$integrationsCreateIntegrationStoreDirect } from "./tools/integrationsCreateIntegrationStoreDirect.js"; import { tool$integrationsDeleteConfiguration } from "./tools/integrationsDeleteConfiguration.js"; import { tool$integrationsGetConfiguration } from "./tools/integrationsGetConfiguration.js"; import { tool$integrationsGetConfigurationProducts } from "./tools/integrationsGetConfigurationProducts.js"; @@ -196,7 +199,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Vercel", - version: "1.10.6", + version: "1.10.7", }); const client = new VercelCore({ @@ -226,6 +229,9 @@ export function createMCPServer(deps: { const register = { tool, resource, resourceTemplate, prompt }; void register; // suppress unused warnings + tool( + tool$getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans, + ); tool(tool$accessGroupsReadAccessGroup); tool(tool$accessGroupsUpdateAccessGroup); tool(tool$accessGroupsDeleteAccessGroup); @@ -282,10 +288,12 @@ export function createMCPServer(deps: { tool(tool$deploymentsGetDeploymentFileContents); tool(tool$deploymentsGetDeployments); tool(tool$deploymentsDeleteDeployment); + tool(tool$integrationsConnectIntegrationResourceToProject); tool(tool$integrationsGetConfigurations); tool(tool$integrationsGetConfiguration); tool(tool$integrationsDeleteConfiguration); tool(tool$integrationsGetConfigurationProducts); + tool(tool$integrationsCreateIntegrationStoreDirect); tool(tool$domainsBuyDomain); tool(tool$domainsCheckDomainPrice); tool(tool$domainsCheckDomainStatus); diff --git a/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts b/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts new file mode 100644 index 00000000..38cdf7e9 --- /dev/null +++ b/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans } from "../../funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js"; +import { + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$inboundSchema, +} from "../../models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$inboundSchema, +}; + +export const tool$getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans: + ToolDefinition = { + name: + "get-v1-integrations-integration-integration-id-or-slug-products-product-id-or-slug-plans", + description: ``, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = + await getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, + }; diff --git a/src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts b/src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts new file mode 100644 index 00000000..5ecd9123 --- /dev/null +++ b/src/mcp-server/tools/integrationsConnectIntegrationResourceToProject.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsConnectIntegrationResourceToProject } from "../../funcs/integrationsConnectIntegrationResourceToProject.js"; +import { ConnectIntegrationResourceToProjectRequest$inboundSchema } from "../../models/connectintegrationresourcetoprojectop.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: ConnectIntegrationResourceToProjectRequest$inboundSchema, +}; + +export const tool$integrationsConnectIntegrationResourceToProject: + ToolDefinition = { + name: "integrations-connect-integration-resource-to-project", + description: `Connect integration resource to project + +Connects an integration resource to a Vercel project. This endpoint establishes a connection between a provisioned integration resource (from storage APIs like \`POST /v1/storage/stores/integration/direct\`) and a specific Vercel project.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = + await integrationsConnectIntegrationResourceToProject( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, + }; diff --git a/src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts b/src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts new file mode 100644 index 00000000..1ec33ad0 --- /dev/null +++ b/src/mcp-server/tools/integrationsCreateIntegrationStoreDirect.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { integrationsCreateIntegrationStoreDirect } from "../../funcs/integrationsCreateIntegrationStoreDirect.js"; +import { CreateIntegrationStoreDirectRequest$inboundSchema } from "../../models/createintegrationstoredirectop.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: CreateIntegrationStoreDirectRequest$inboundSchema, +}; + +export const tool$integrationsCreateIntegrationStoreDirect: ToolDefinition< + typeof args +> = { + name: "integrations-create-integration-store-direct", + description: `Create integration store (free and paid plans) + +Creates an integration store for both FREE and PAID billing plans. This simplified endpoint automatically provisions real integration storage resources while handling billing complexity behind the scenes. It supports both free and paid billing plans with automatic authorization creation for paid resources. ## How it works 1. Validates the integration configuration and product 2. For free resources: Auto-discovers available free billing plans 3. For paid resources: Creates billing authorization inline using provided billingPlanId 4. Provisions real resources through the Vercel Marketplace 5. Returns the created store with connection details ## Workflow Before using this endpoint, discover available products and billing plans: 1. List your configurations: \`GET /v1/integrations/configurations\` 2. Get products for a configuration: \`GET /v1/integrations/configuration/{id}/products\` 3. Get billing plans for a product: \`GET /integrations/integration/{integrationId}/products/{productId}/plans\` 4. Review the \`metadataSchema\` for each product to understand required metadata 5. Create storage with discovered product: \`POST /v1/storage/stores/integration/direct\` ## Usage Patterns - **Free resources**: Omit \`billingPlanId\` - endpoint will auto-discover free plans - **Paid resources**: Provide \`billingPlanId\` from billing plans discovery - **Prepayment plans**: Also provide \`prepaymentAmountCents\` for variable amount plans ## Limitations - **Admin access required**: Only integration configuration admins can create stores - **Storage limits apply**: Subject to your team's storage quotas - **Payment method required**: For paid plans, ensure valid payment method is configured ## Error Responses - \`400 Bad Request\`: Invalid input, no plans available, or billing issues - \`403 Forbidden\`: Insufficient permissions (non-admin users) - \`404 Not Found\`: Integration configuration or product not found - \`429 Too Many Requests\`: Rate limit exceeded`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await integrationsCreateIntegrationStoreDirect( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/models/acceptprojecttransferrequestop.ts b/src/models/acceptprojecttransferrequestop.ts index 1a8a60c0..4541b5d4 100644 --- a/src/models/acceptprojecttransferrequestop.ts +++ b/src/models/acceptprojecttransferrequestop.ts @@ -4,7 +4,10 @@ import * as z from "zod"; import { remap as remap$ } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; +import { + collectExtraKeys as collectExtraKeys$, + safeParse, +} from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; @@ -15,12 +18,19 @@ export type PaidFeatures = { previewDeploymentSuffix?: boolean | null | undefined; }; +export type AcceptedPolicies = { + eula: Date; + privacy: Date; + additionalProperties?: { [k: string]: Date }; +}; + export type AcceptProjectTransferRequestRequestBody = { /** * The desired name for the project */ newProjectName?: string | undefined; paidFeatures?: PaidFeatures | undefined; + acceptedPolicies?: { [k: string]: AcceptedPolicies } | undefined; }; export type AcceptProjectTransferRequestRequest = { @@ -133,6 +143,78 @@ export function paidFeaturesFromJSON( ); } +/** @internal */ +export const AcceptedPolicies$inboundSchema: z.ZodType< + AcceptedPolicies, + z.ZodTypeDef, + unknown +> = collectExtraKeys$( + z.object({ + eula: z.string().datetime({ offset: true }).transform(v => new Date(v)), + privacy: z.string().datetime({ offset: true }).transform(v => new Date(v)), + }).catchall( + z.string().datetime({ offset: true }).transform(v => new Date(v)), + ), + "additionalProperties", + true, +); + +/** @internal */ +export type AcceptedPolicies$Outbound = { + eula: string; + privacy: string; + [additionalProperties: string]: unknown; +}; + +/** @internal */ +export const AcceptedPolicies$outboundSchema: z.ZodType< + AcceptedPolicies$Outbound, + z.ZodTypeDef, + AcceptedPolicies +> = z.object({ + eula: z.date().transform(v => v.toISOString()), + privacy: z.date().transform(v => v.toISOString()), + additionalProperties: z.record(z.date().transform(v => v.toISOString())), +}).transform((v) => { + return { + ...v.additionalProperties, + ...remap$(v, { + additionalProperties: null, + }), + }; +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AcceptedPolicies$ { + /** @deprecated use `AcceptedPolicies$inboundSchema` instead. */ + export const inboundSchema = AcceptedPolicies$inboundSchema; + /** @deprecated use `AcceptedPolicies$outboundSchema` instead. */ + export const outboundSchema = AcceptedPolicies$outboundSchema; + /** @deprecated use `AcceptedPolicies$Outbound` instead. */ + export type Outbound = AcceptedPolicies$Outbound; +} + +export function acceptedPoliciesToJSON( + acceptedPolicies: AcceptedPolicies, +): string { + return JSON.stringify( + AcceptedPolicies$outboundSchema.parse(acceptedPolicies), + ); +} + +export function acceptedPoliciesFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AcceptedPolicies$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AcceptedPolicies' from JSON`, + ); +} + /** @internal */ export const AcceptProjectTransferRequestRequestBody$inboundSchema: z.ZodType< AcceptProjectTransferRequestRequestBody, @@ -141,12 +223,15 @@ export const AcceptProjectTransferRequestRequestBody$inboundSchema: z.ZodType< > = z.object({ newProjectName: z.string().optional(), paidFeatures: z.lazy(() => PaidFeatures$inboundSchema).optional(), + acceptedPolicies: z.record(z.lazy(() => AcceptedPolicies$inboundSchema)) + .optional(), }); /** @internal */ export type AcceptProjectTransferRequestRequestBody$Outbound = { newProjectName?: string | undefined; paidFeatures?: PaidFeatures$Outbound | undefined; + acceptedPolicies?: { [k: string]: AcceptedPolicies$Outbound } | undefined; }; /** @internal */ @@ -157,6 +242,8 @@ export const AcceptProjectTransferRequestRequestBody$outboundSchema: z.ZodType< > = z.object({ newProjectName: z.string().optional(), paidFeatures: z.lazy(() => PaidFeatures$outboundSchema).optional(), + acceptedPolicies: z.record(z.lazy(() => AcceptedPolicies$outboundSchema)) + .optional(), }); /** diff --git a/src/models/authuser.ts b/src/models/authuser.ts index e420dec4..f5e1b02b 100644 --- a/src/models/authuser.ts +++ b/src/models/authuser.ts @@ -289,9 +289,9 @@ export type ImportFlowGitNamespace = string | number; export type ImportFlowGitNamespaceId = string | number; export const ImportFlowGitProvider = { - Github: "github", Gitlab: "gitlab", Bitbucket: "bitbucket", + Github: "github", GithubLimited: "github-limited", GithubCustomHost: "github-custom-host", } as const; diff --git a/src/models/canceldeploymentop.ts b/src/models/canceldeploymentop.ts index 4d42a6b4..5e02c55a 100644 --- a/src/models/canceldeploymentop.ts +++ b/src/models/canceldeploymentop.ts @@ -127,11 +127,11 @@ export type CancelDeploymentProjectSettings = { }; export const CancelDeploymentDeploymentsStatus = { - Error: "error", - Timeout: "timeout", Skipped: "skipped", Pending: "pending", Ready: "ready", + Error: "error", + Timeout: "timeout", } as const; export type CancelDeploymentDeploymentsStatus = ClosedEnum< typeof CancelDeploymentDeploymentsStatus @@ -229,8 +229,8 @@ export type CancelDeploymentCreator = { }; export const CancelDeploymentDeploymentsReadyState = { - Error: "ERROR", Building: "BUILDING", + Error: "ERROR", Initializing: "INITIALIZING", Ready: "READY", } as const; @@ -268,8 +268,8 @@ export type CancelDeploymentStatus = ClosedEnum; export type CancelDeploymentTeam = { id: string; name: string; - slug: string; avatar?: string | undefined; + slug: string; }; export type CancelDeploymentCustomEnvironment2 = { @@ -891,6 +891,7 @@ export type CancelDeploymentFunctions = { experimentalTriggers?: | Array | undefined; + supportsCancellation?: boolean | undefined; }; export const CancelDeploymentPlan = { @@ -907,12 +908,12 @@ export type CancelDeploymentRoutes3 = { }; export const RoutesHandle = { - Filesystem: "filesystem", Error: "error", + Filesystem: "filesystem", Hit: "hit", Miss: "miss", - Resource: "resource", Rewrite: "rewrite", + Resource: "resource", } as const; export type RoutesHandle = ClosedEnum; @@ -1081,8 +1082,8 @@ export type CancelDeploymentRoutesType = ClosedEnum< >; export const RoutesOp = { - Set: "set", Append: "append", + Set: "set", Delete: "delete", } as const; export type RoutesOp = ClosedEnum; @@ -1167,8 +1168,8 @@ export type CancelDeploymentGitRepoDeploymentsResponseType = ClosedEnum< >; export const CancelDeploymentGitRepoDeploymentsResponseOwnerType = { - User: "user", Team: "team", + User: "user", } as const; export type CancelDeploymentGitRepoDeploymentsResponseOwnerType = ClosedEnum< typeof CancelDeploymentGitRepoDeploymentsResponseOwnerType @@ -1195,8 +1196,8 @@ export type CancelDeploymentGitRepoDeploymentsType = ClosedEnum< >; export const CancelDeploymentGitRepoDeploymentsOwnerType = { - User: "user", Team: "team", + User: "user", } as const; export type CancelDeploymentGitRepoDeploymentsOwnerType = ClosedEnum< typeof CancelDeploymentGitRepoDeploymentsOwnerType @@ -1223,8 +1224,8 @@ export type CancelDeploymentGitRepoType = ClosedEnum< >; export const CancelDeploymentGitRepoOwnerType = { - User: "user", Team: "team", + User: "user", } as const; export type CancelDeploymentGitRepoOwnerType = ClosedEnum< typeof CancelDeploymentGitRepoOwnerType @@ -1275,7 +1276,7 @@ export type CancelDeploymentFlags = | Array; /** - * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. */ export type MicrofrontendsApplications = { isDefaultApp?: boolean | undefined; @@ -1290,12 +1291,31 @@ export type MicrofrontendsApplications = { deploymentHost?: string | undefined; }; +/** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ +export const MicrofrontendsMfeConfigUploadState = { + Error: "error", + Success: "success", + NoConfig: "no_config", +} as const; +/** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ +export type MicrofrontendsMfeConfigUploadState = ClosedEnum< + typeof MicrofrontendsMfeConfigUploadState +>; + export type CancelDeploymentMicrofrontends2 = { + isDefaultApp: boolean; /** - * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. */ applications?: { [k: string]: MicrofrontendsApplications } | undefined; - isDefaultApp: boolean; + /** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ + mfeConfigUploadState?: MicrofrontendsMfeConfigUploadState | undefined; /** * The project name of the default app of this deployment's microfrontends group. */ @@ -1315,9 +1335,6 @@ export type CancelDeploymentMicrofrontends2 = { }; export type CancelDeploymentMicrofrontends1 = { - /** - * Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. - */ isDefaultApp?: boolean | undefined; /** * The project name of the default app of this deployment's microfrontends group. @@ -1342,16 +1359,16 @@ export type CancelDeploymentMicrofrontends = | CancelDeploymentMicrofrontends1; export const CancelDeploymentFunctionType = { - Standard: "standard", Fluid: "fluid", + Standard: "standard", } as const; export type CancelDeploymentFunctionType = ClosedEnum< typeof CancelDeploymentFunctionType >; export const CancelDeploymentFunctionMemoryType = { - StandardLegacy: "standard_legacy", Standard: "standard", + StandardLegacy: "standard_legacy", Performance: "performance", } as const; export type CancelDeploymentFunctionMemoryType = ClosedEnum< @@ -2618,16 +2635,16 @@ export const CancelDeploymentTeam$inboundSchema: z.ZodType< > = z.object({ id: z.string(), name: z.string(), - slug: z.string(), avatar: z.string().optional(), + slug: z.string(), }); /** @internal */ export type CancelDeploymentTeam$Outbound = { id: string; name: string; - slug: string; avatar?: string | undefined; + slug: string; }; /** @internal */ @@ -2638,8 +2655,8 @@ export const CancelDeploymentTeam$outboundSchema: z.ZodType< > = z.object({ id: z.string(), name: z.string(), - slug: z.string(), avatar: z.string().optional(), + slug: z.string(), }); /** @@ -5552,6 +5569,7 @@ export const CancelDeploymentFunctions$inboundSchema: z.ZodType< experimentalTriggers: z.array( z.lazy(() => CancelDeploymentExperimentalTriggers$inboundSchema), ).optional(), + supportsCancellation: z.boolean().optional(), }); /** @internal */ @@ -5565,6 +5583,7 @@ export type CancelDeploymentFunctions$Outbound = { experimentalTriggers?: | Array | undefined; + supportsCancellation?: boolean | undefined; }; /** @internal */ @@ -5582,6 +5601,7 @@ export const CancelDeploymentFunctions$outboundSchema: z.ZodType< experimentalTriggers: z.array( z.lazy(() => CancelDeploymentExperimentalTriggers$outboundSchema), ).optional(), + supportsCancellation: z.boolean().optional(), }); /** @@ -8518,15 +8538,39 @@ export function microfrontendsApplicationsFromJSON( ); } +/** @internal */ +export const MicrofrontendsMfeConfigUploadState$inboundSchema: z.ZodNativeEnum< + typeof MicrofrontendsMfeConfigUploadState +> = z.nativeEnum(MicrofrontendsMfeConfigUploadState); + +/** @internal */ +export const MicrofrontendsMfeConfigUploadState$outboundSchema: z.ZodNativeEnum< + typeof MicrofrontendsMfeConfigUploadState +> = MicrofrontendsMfeConfigUploadState$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MicrofrontendsMfeConfigUploadState$ { + /** @deprecated use `MicrofrontendsMfeConfigUploadState$inboundSchema` instead. */ + export const inboundSchema = MicrofrontendsMfeConfigUploadState$inboundSchema; + /** @deprecated use `MicrofrontendsMfeConfigUploadState$outboundSchema` instead. */ + export const outboundSchema = + MicrofrontendsMfeConfigUploadState$outboundSchema; +} + /** @internal */ export const CancelDeploymentMicrofrontends2$inboundSchema: z.ZodType< CancelDeploymentMicrofrontends2, z.ZodTypeDef, unknown > = z.object({ + isDefaultApp: z.boolean(), applications: z.record(z.lazy(() => MicrofrontendsApplications$inboundSchema)) .optional(), - isDefaultApp: z.boolean(), + mfeConfigUploadState: MicrofrontendsMfeConfigUploadState$inboundSchema + .optional(), defaultAppProjectName: z.string(), defaultRoute: z.string().optional(), groupIds: z.array(z.string()), @@ -8535,10 +8579,11 @@ export const CancelDeploymentMicrofrontends2$inboundSchema: z.ZodType< /** @internal */ export type CancelDeploymentMicrofrontends2$Outbound = { + isDefaultApp: boolean; applications?: | { [k: string]: MicrofrontendsApplications$Outbound } | undefined; - isDefaultApp: boolean; + mfeConfigUploadState?: string | undefined; defaultAppProjectName: string; defaultRoute?: string | undefined; groupIds: Array; @@ -8551,10 +8596,12 @@ export const CancelDeploymentMicrofrontends2$outboundSchema: z.ZodType< z.ZodTypeDef, CancelDeploymentMicrofrontends2 > = z.object({ + isDefaultApp: z.boolean(), applications: z.record( z.lazy(() => MicrofrontendsApplications$outboundSchema), ).optional(), - isDefaultApp: z.boolean(), + mfeConfigUploadState: MicrofrontendsMfeConfigUploadState$outboundSchema + .optional(), defaultAppProjectName: z.string(), defaultRoute: z.string().optional(), groupIds: z.array(z.string()), diff --git a/src/models/connectintegrationresourcetoprojectop.ts b/src/models/connectintegrationresourcetoprojectop.ts new file mode 100644 index 00000000..b6b86f4f --- /dev/null +++ b/src/models/connectintegrationresourcetoprojectop.ts @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { Result as SafeParseResult } from "../types/fp.js"; +import { SDKValidationError } from "./sdkvalidationerror.js"; + +export type ConnectIntegrationResourceToProjectRequestBody = { + projectId: string; +}; + +export type ConnectIntegrationResourceToProjectRequest = { + integrationConfigurationId: string; + resourceId: string; + /** + * The Team identifier to perform the request on behalf of. + */ + teamId?: string | undefined; + /** + * The Team slug to perform the request on behalf of. + */ + slug?: string | undefined; + requestBody?: ConnectIntegrationResourceToProjectRequestBody | undefined; +}; + +/** @internal */ +export const ConnectIntegrationResourceToProjectRequestBody$inboundSchema: + z.ZodType< + ConnectIntegrationResourceToProjectRequestBody, + z.ZodTypeDef, + unknown + > = z.object({ + projectId: z.string(), + }); + +/** @internal */ +export type ConnectIntegrationResourceToProjectRequestBody$Outbound = { + projectId: string; +}; + +/** @internal */ +export const ConnectIntegrationResourceToProjectRequestBody$outboundSchema: + z.ZodType< + ConnectIntegrationResourceToProjectRequestBody$Outbound, + z.ZodTypeDef, + ConnectIntegrationResourceToProjectRequestBody + > = z.object({ + projectId: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ConnectIntegrationResourceToProjectRequestBody$ { + /** @deprecated use `ConnectIntegrationResourceToProjectRequestBody$inboundSchema` instead. */ + export const inboundSchema = + ConnectIntegrationResourceToProjectRequestBody$inboundSchema; + /** @deprecated use `ConnectIntegrationResourceToProjectRequestBody$outboundSchema` instead. */ + export const outboundSchema = + ConnectIntegrationResourceToProjectRequestBody$outboundSchema; + /** @deprecated use `ConnectIntegrationResourceToProjectRequestBody$Outbound` instead. */ + export type Outbound = + ConnectIntegrationResourceToProjectRequestBody$Outbound; +} + +export function connectIntegrationResourceToProjectRequestBodyToJSON( + connectIntegrationResourceToProjectRequestBody: + ConnectIntegrationResourceToProjectRequestBody, +): string { + return JSON.stringify( + ConnectIntegrationResourceToProjectRequestBody$outboundSchema.parse( + connectIntegrationResourceToProjectRequestBody, + ), + ); +} + +export function connectIntegrationResourceToProjectRequestBodyFromJSON( + jsonString: string, +): SafeParseResult< + ConnectIntegrationResourceToProjectRequestBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ConnectIntegrationResourceToProjectRequestBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ConnectIntegrationResourceToProjectRequestBody' from JSON`, + ); +} + +/** @internal */ +export const ConnectIntegrationResourceToProjectRequest$inboundSchema: + z.ZodType = + z.object({ + integrationConfigurationId: z.string(), + resourceId: z.string(), + teamId: z.string().optional(), + slug: z.string().optional(), + RequestBody: z.lazy(() => + ConnectIntegrationResourceToProjectRequestBody$inboundSchema + ).optional(), + }).transform((v) => { + return remap$(v, { + "RequestBody": "requestBody", + }); + }); + +/** @internal */ +export type ConnectIntegrationResourceToProjectRequest$Outbound = { + integrationConfigurationId: string; + resourceId: string; + teamId?: string | undefined; + slug?: string | undefined; + RequestBody?: + | ConnectIntegrationResourceToProjectRequestBody$Outbound + | undefined; +}; + +/** @internal */ +export const ConnectIntegrationResourceToProjectRequest$outboundSchema: + z.ZodType< + ConnectIntegrationResourceToProjectRequest$Outbound, + z.ZodTypeDef, + ConnectIntegrationResourceToProjectRequest + > = z.object({ + integrationConfigurationId: z.string(), + resourceId: z.string(), + teamId: z.string().optional(), + slug: z.string().optional(), + requestBody: z.lazy(() => + ConnectIntegrationResourceToProjectRequestBody$outboundSchema + ).optional(), + }).transform((v) => { + return remap$(v, { + requestBody: "RequestBody", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ConnectIntegrationResourceToProjectRequest$ { + /** @deprecated use `ConnectIntegrationResourceToProjectRequest$inboundSchema` instead. */ + export const inboundSchema = + ConnectIntegrationResourceToProjectRequest$inboundSchema; + /** @deprecated use `ConnectIntegrationResourceToProjectRequest$outboundSchema` instead. */ + export const outboundSchema = + ConnectIntegrationResourceToProjectRequest$outboundSchema; + /** @deprecated use `ConnectIntegrationResourceToProjectRequest$Outbound` instead. */ + export type Outbound = ConnectIntegrationResourceToProjectRequest$Outbound; +} + +export function connectIntegrationResourceToProjectRequestToJSON( + connectIntegrationResourceToProjectRequest: + ConnectIntegrationResourceToProjectRequest, +): string { + return JSON.stringify( + ConnectIntegrationResourceToProjectRequest$outboundSchema.parse( + connectIntegrationResourceToProjectRequest, + ), + ); +} + +export function connectIntegrationResourceToProjectRequestFromJSON( + jsonString: string, +): SafeParseResult< + ConnectIntegrationResourceToProjectRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + ConnectIntegrationResourceToProjectRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'ConnectIntegrationResourceToProjectRequest' from JSON`, + ); +} diff --git a/src/models/createdeploymentop.ts b/src/models/createdeploymentop.ts index 02f88774..1c25f848 100644 --- a/src/models/createdeploymentop.ts +++ b/src/models/createdeploymentop.ts @@ -526,11 +526,11 @@ export type CreateDeploymentProjectSettings = { }; export const CreateDeploymentDeploymentsStatus = { - Error: "error", - Timeout: "timeout", Skipped: "skipped", Pending: "pending", Ready: "ready", + Error: "error", + Timeout: "timeout", } as const; export type CreateDeploymentDeploymentsStatus = ClosedEnum< typeof CreateDeploymentDeploymentsStatus @@ -622,8 +622,8 @@ export type Creator = { }; export const CreateDeploymentReadyState = { - Error: "ERROR", Building: "BUILDING", + Error: "ERROR", Initializing: "INITIALIZING", Ready: "READY", } as const; @@ -1154,25 +1154,18 @@ export const CreateDeploymentTarget = { } as const; export type CreateDeploymentTarget = ClosedEnum; -export type AliasWarning = { +export type AliasError = { code: string; message: string; - link?: string | undefined; - action?: string | undefined; }; -export type AliasError = { +export type AliasWarning = { code: string; message: string; + link?: string | undefined; + action?: string | undefined; }; -export const ChecksState = { - Registered: "registered", - Running: "running", - Completed: "completed", -} as const; -export type ChecksState = ClosedEnum; - export const ChecksConclusion = { Succeeded: "succeeded", Failed: "failed", @@ -1181,18 +1174,12 @@ export const ChecksConclusion = { } as const; export type ChecksConclusion = ClosedEnum; -/** - * Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic - */ -export const ReadySubstate = { - Staged: "STAGED", - Rolling: "ROLLING", - Promoted: "PROMOTED", +export const ChecksState = { + Registered: "registered", + Running: "running", + Completed: "completed", } as const; -/** - * Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic - */ -export type ReadySubstate = ClosedEnum; +export type ChecksState = ClosedEnum; export type OidcTokenClaims = { iss: string; @@ -1206,6 +1193,19 @@ export type OidcTokenClaims = { environment: string; }; +/** + * Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic + */ +export const ReadySubstate = { + Staged: "STAGED", + Rolling: "ROLLING", + Promoted: "PROMOTED", +} as const; +/** + * Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic + */ +export type ReadySubstate = ClosedEnum; + export const CreateDeploymentPlan = { Hobby: "hobby", Pro: "pro", @@ -1214,14 +1214,14 @@ export const CreateDeploymentPlan = { export type CreateDeploymentPlan = ClosedEnum; export const FunctionType = { - Standard: "standard", Fluid: "fluid", + Standard: "standard", } as const; export type FunctionType = ClosedEnum; export const FunctionMemoryType = { - StandardLegacy: "standard_legacy", Standard: "standard", + StandardLegacy: "standard_legacy", Performance: "performance", } as const; export type FunctionMemoryType = ClosedEnum; @@ -1296,6 +1296,7 @@ export type Functions = { includeFiles?: string | undefined; excludeFiles?: string | undefined; experimentalTriggers?: Array | undefined; + supportsCancellation?: boolean | undefined; }; export type Routes3 = { @@ -1305,12 +1306,12 @@ export type Routes3 = { }; export const Handle = { - Filesystem: "filesystem", Error: "error", + Filesystem: "filesystem", Hit: "hit", Miss: "miss", - Resource: "resource", Rewrite: "rewrite", + Resource: "resource", } as const; export type Handle = ClosedEnum; @@ -1469,8 +1470,8 @@ export const RoutesType = { export type RoutesType = ClosedEnum; export const CreateDeploymentRoutesOp = { - Set: "set", Append: "append", + Set: "set", Delete: "delete", } as const; export type CreateDeploymentRoutesOp = ClosedEnum< @@ -1573,7 +1574,7 @@ export type CreateDeploymentChecks = { }; /** - * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. */ export type CreateDeploymentMicrofrontendsApplications = { isDefaultApp?: boolean | undefined; @@ -1588,14 +1589,31 @@ export type CreateDeploymentMicrofrontendsApplications = { deploymentHost?: string | undefined; }; +/** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ +export const MfeConfigUploadState = { + Error: "error", + Success: "success", + NoConfig: "no_config", +} as const; +/** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ +export type MfeConfigUploadState = ClosedEnum; + export type CreateDeploymentMicrofrontends2 = { + isDefaultApp: boolean; /** - * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. */ applications?: | { [k: string]: CreateDeploymentMicrofrontendsApplications } | undefined; - isDefaultApp: boolean; + /** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ + mfeConfigUploadState?: MfeConfigUploadState | undefined; /** * The project name of the default app of this deployment's microfrontends group. */ @@ -1615,9 +1633,6 @@ export type CreateDeploymentMicrofrontends2 = { }; export type CreateDeploymentMicrofrontends1 = { - /** - * Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. - */ isDefaultApp?: boolean | undefined; /** * The project name of the default app of this deployment's microfrontends group. @@ -1641,6 +1656,31 @@ export type CreateDeploymentMicrofrontends = | CreateDeploymentMicrofrontends2 | CreateDeploymentMicrofrontends1; +/** + * Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. + */ +export type Flags2 = {}; + +export type Options = { + value: FlagJSONValue | null; + label?: string | undefined; +}; + +export type FlagsDefinitions = { + options?: Array | undefined; + url?: string | undefined; + description?: string | undefined; +}; + +/** + * Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. + */ +export type Flags1 = { + definitions: { [k: string]: FlagsDefinitions }; +}; + +export type Flags = Flags1 | Array; + export const CreateDeploymentGitRepoDeploymentsType = { Bitbucket: "bitbucket", } as const; @@ -1649,8 +1689,8 @@ export type CreateDeploymentGitRepoDeploymentsType = ClosedEnum< >; export const CreateDeploymentGitRepoOwnerType = { - User: "user", Team: "team", + User: "user", } as const; export type CreateDeploymentGitRepoOwnerType = ClosedEnum< typeof CreateDeploymentGitRepoOwnerType @@ -1677,8 +1717,8 @@ export type CreateDeploymentGitRepoType = ClosedEnum< >; export const GitRepoOwnerType = { - User: "user", Team: "team", + User: "user", } as const; export type GitRepoOwnerType = ClosedEnum; @@ -1701,8 +1741,8 @@ export const GitRepoType = { export type GitRepoType = ClosedEnum; export const OwnerType = { - User: "user", Team: "team", + User: "user", } as const; export type OwnerType = ClosedEnum; @@ -1720,31 +1760,6 @@ export type GitRepo1 = { export type GitRepo = GitRepo2 | GitRepo3 | GitRepo1; -/** - * Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. - */ -export type Flags2 = {}; - -export type Options = { - value: FlagJSONValue | null; - label?: string | undefined; -}; - -export type FlagsDefinitions = { - options?: Array | undefined; - url?: string | undefined; - description?: string | undefined; -}; - -/** - * Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags. - */ -export type Flags1 = { - definitions: { [k: string]: FlagsDefinitions }; -}; - -export type Flags = Flags1 | Array; - /** * The successfully created deployment */ @@ -1826,22 +1841,23 @@ export type CreateDeploymentResponseBody = { */ passiveRegions?: Array | undefined; regions: Array; - aliasWarning?: AliasWarning | null | undefined; aliasError?: AliasError | null | undefined; aliasFinal?: string | null | undefined; + aliasWarning?: AliasWarning | null | undefined; automaticAliases?: Array | undefined; buildErrorAt?: number | undefined; - checksState?: ChecksState | undefined; + canceledAt?: number | undefined; checksConclusion?: ChecksConclusion | undefined; + checksState?: ChecksState | undefined; /** * Computed field that is only available for deployments with a microfrontend configuration. */ defaultRoute?: string | undefined; - canceledAt?: number | undefined; errorCode?: string | undefined; errorLink?: string | undefined; errorStep?: string | undefined; originCacheRegion?: string | undefined; + oidcTokenClaims?: OidcTokenClaims | undefined; /** * Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic */ @@ -1849,7 +1865,6 @@ export type CreateDeploymentResponseBody = { softDeletedByRetention?: boolean | undefined; undeletedAt?: number | undefined; url: string; - oidcTokenClaims?: OidcTokenClaims | undefined; projectId: string; ownerId: string; monorepoManager?: string | null | undefined; @@ -1873,8 +1888,8 @@ export type CreateDeploymentResponseBody = { * Since November 2023 this field defines a Secure Compute network that will only be used to deploy passive lambdas to (as in passiveRegions) */ passiveConnectConfigurationId?: string | undefined; - gitRepo?: GitRepo2 | GitRepo3 | GitRepo1 | null | undefined; flags?: Flags1 | Array | undefined; + gitRepo?: GitRepo2 | GitRepo3 | GitRepo1 | null | undefined; }; /** @internal */ @@ -6454,136 +6469,117 @@ export namespace CreateDeploymentTarget$ { } /** @internal */ -export const AliasWarning$inboundSchema: z.ZodType< - AliasWarning, +export const AliasError$inboundSchema: z.ZodType< + AliasError, z.ZodTypeDef, unknown > = z.object({ code: z.string(), message: z.string(), - link: z.string().optional(), - action: z.string().optional(), }); /** @internal */ -export type AliasWarning$Outbound = { +export type AliasError$Outbound = { code: string; message: string; - link?: string | undefined; - action?: string | undefined; }; /** @internal */ -export const AliasWarning$outboundSchema: z.ZodType< - AliasWarning$Outbound, +export const AliasError$outboundSchema: z.ZodType< + AliasError$Outbound, z.ZodTypeDef, - AliasWarning + AliasError > = z.object({ code: z.string(), message: z.string(), - link: z.string().optional(), - action: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace AliasWarning$ { - /** @deprecated use `AliasWarning$inboundSchema` instead. */ - export const inboundSchema = AliasWarning$inboundSchema; - /** @deprecated use `AliasWarning$outboundSchema` instead. */ - export const outboundSchema = AliasWarning$outboundSchema; - /** @deprecated use `AliasWarning$Outbound` instead. */ - export type Outbound = AliasWarning$Outbound; +export namespace AliasError$ { + /** @deprecated use `AliasError$inboundSchema` instead. */ + export const inboundSchema = AliasError$inboundSchema; + /** @deprecated use `AliasError$outboundSchema` instead. */ + export const outboundSchema = AliasError$outboundSchema; + /** @deprecated use `AliasError$Outbound` instead. */ + export type Outbound = AliasError$Outbound; } -export function aliasWarningToJSON(aliasWarning: AliasWarning): string { - return JSON.stringify(AliasWarning$outboundSchema.parse(aliasWarning)); +export function aliasErrorToJSON(aliasError: AliasError): string { + return JSON.stringify(AliasError$outboundSchema.parse(aliasError)); } -export function aliasWarningFromJSON( +export function aliasErrorFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AliasWarning$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AliasWarning' from JSON`, + (x) => AliasError$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AliasError' from JSON`, ); } /** @internal */ -export const AliasError$inboundSchema: z.ZodType< - AliasError, +export const AliasWarning$inboundSchema: z.ZodType< + AliasWarning, z.ZodTypeDef, unknown > = z.object({ code: z.string(), message: z.string(), + link: z.string().optional(), + action: z.string().optional(), }); /** @internal */ -export type AliasError$Outbound = { +export type AliasWarning$Outbound = { code: string; message: string; + link?: string | undefined; + action?: string | undefined; }; /** @internal */ -export const AliasError$outboundSchema: z.ZodType< - AliasError$Outbound, +export const AliasWarning$outboundSchema: z.ZodType< + AliasWarning$Outbound, z.ZodTypeDef, - AliasError + AliasWarning > = z.object({ code: z.string(), message: z.string(), + link: z.string().optional(), + action: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace AliasError$ { - /** @deprecated use `AliasError$inboundSchema` instead. */ - export const inboundSchema = AliasError$inboundSchema; - /** @deprecated use `AliasError$outboundSchema` instead. */ - export const outboundSchema = AliasError$outboundSchema; - /** @deprecated use `AliasError$Outbound` instead. */ - export type Outbound = AliasError$Outbound; +export namespace AliasWarning$ { + /** @deprecated use `AliasWarning$inboundSchema` instead. */ + export const inboundSchema = AliasWarning$inboundSchema; + /** @deprecated use `AliasWarning$outboundSchema` instead. */ + export const outboundSchema = AliasWarning$outboundSchema; + /** @deprecated use `AliasWarning$Outbound` instead. */ + export type Outbound = AliasWarning$Outbound; } -export function aliasErrorToJSON(aliasError: AliasError): string { - return JSON.stringify(AliasError$outboundSchema.parse(aliasError)); +export function aliasWarningToJSON(aliasWarning: AliasWarning): string { + return JSON.stringify(AliasWarning$outboundSchema.parse(aliasWarning)); } -export function aliasErrorFromJSON( +export function aliasWarningFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AliasError$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AliasError' from JSON`, + (x) => AliasWarning$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AliasWarning' from JSON`, ); } -/** @internal */ -export const ChecksState$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(ChecksState); - -/** @internal */ -export const ChecksState$outboundSchema: z.ZodNativeEnum = - ChecksState$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChecksState$ { - /** @deprecated use `ChecksState$inboundSchema` instead. */ - export const inboundSchema = ChecksState$inboundSchema; - /** @deprecated use `ChecksState$outboundSchema` instead. */ - export const outboundSchema = ChecksState$outboundSchema; -} - /** @internal */ export const ChecksConclusion$inboundSchema: z.ZodNativeEnum< typeof ChecksConclusion @@ -6606,24 +6602,22 @@ export namespace ChecksConclusion$ { } /** @internal */ -export const ReadySubstate$inboundSchema: z.ZodNativeEnum< - typeof ReadySubstate -> = z.nativeEnum(ReadySubstate); +export const ChecksState$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(ChecksState); /** @internal */ -export const ReadySubstate$outboundSchema: z.ZodNativeEnum< - typeof ReadySubstate -> = ReadySubstate$inboundSchema; +export const ChecksState$outboundSchema: z.ZodNativeEnum = + ChecksState$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace ReadySubstate$ { - /** @deprecated use `ReadySubstate$inboundSchema` instead. */ - export const inboundSchema = ReadySubstate$inboundSchema; - /** @deprecated use `ReadySubstate$outboundSchema` instead. */ - export const outboundSchema = ReadySubstate$outboundSchema; +export namespace ChecksState$ { + /** @deprecated use `ChecksState$inboundSchema` instead. */ + export const inboundSchema = ChecksState$inboundSchema; + /** @deprecated use `ChecksState$outboundSchema` instead. */ + export const outboundSchema = ChecksState$outboundSchema; } /** @internal */ @@ -6712,6 +6706,27 @@ export function oidcTokenClaimsFromJSON( ); } +/** @internal */ +export const ReadySubstate$inboundSchema: z.ZodNativeEnum< + typeof ReadySubstate +> = z.nativeEnum(ReadySubstate); + +/** @internal */ +export const ReadySubstate$outboundSchema: z.ZodNativeEnum< + typeof ReadySubstate +> = ReadySubstate$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ReadySubstate$ { + /** @deprecated use `ReadySubstate$inboundSchema` instead. */ + export const inboundSchema = ReadySubstate$inboundSchema; + /** @deprecated use `ReadySubstate$outboundSchema` instead. */ + export const outboundSchema = ReadySubstate$outboundSchema; +} + /** @internal */ export const CreateDeploymentPlan$inboundSchema: z.ZodNativeEnum< typeof CreateDeploymentPlan @@ -6962,6 +6977,7 @@ export const Functions$inboundSchema: z.ZodType< experimentalTriggers: z.array( z.lazy(() => ExperimentalTriggers$inboundSchema), ).optional(), + supportsCancellation: z.boolean().optional(), }); /** @internal */ @@ -6973,6 +6989,7 @@ export type Functions$Outbound = { includeFiles?: string | undefined; excludeFiles?: string | undefined; experimentalTriggers?: Array | undefined; + supportsCancellation?: boolean | undefined; }; /** @internal */ @@ -6990,6 +7007,7 @@ export const Functions$outboundSchema: z.ZodType< experimentalTriggers: z.array( z.lazy(() => ExperimentalTriggers$outboundSchema), ).optional(), + supportsCancellation: z.boolean().optional(), }); /** @@ -9210,16 +9228,38 @@ export function createDeploymentMicrofrontendsApplicationsFromJSON( ); } +/** @internal */ +export const MfeConfigUploadState$inboundSchema: z.ZodNativeEnum< + typeof MfeConfigUploadState +> = z.nativeEnum(MfeConfigUploadState); + +/** @internal */ +export const MfeConfigUploadState$outboundSchema: z.ZodNativeEnum< + typeof MfeConfigUploadState +> = MfeConfigUploadState$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MfeConfigUploadState$ { + /** @deprecated use `MfeConfigUploadState$inboundSchema` instead. */ + export const inboundSchema = MfeConfigUploadState$inboundSchema; + /** @deprecated use `MfeConfigUploadState$outboundSchema` instead. */ + export const outboundSchema = MfeConfigUploadState$outboundSchema; +} + /** @internal */ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType< CreateDeploymentMicrofrontends2, z.ZodTypeDef, unknown > = z.object({ + isDefaultApp: z.boolean(), applications: z.record( z.lazy(() => CreateDeploymentMicrofrontendsApplications$inboundSchema), ).optional(), - isDefaultApp: z.boolean(), + mfeConfigUploadState: MfeConfigUploadState$inboundSchema.optional(), defaultAppProjectName: z.string(), defaultRoute: z.string().optional(), groupIds: z.array(z.string()), @@ -9228,10 +9268,11 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType< /** @internal */ export type CreateDeploymentMicrofrontends2$Outbound = { + isDefaultApp: boolean; applications?: { [k: string]: CreateDeploymentMicrofrontendsApplications$Outbound; } | undefined; - isDefaultApp: boolean; + mfeConfigUploadState?: string | undefined; defaultAppProjectName: string; defaultRoute?: string | undefined; groupIds: Array; @@ -9244,10 +9285,11 @@ export const CreateDeploymentMicrofrontends2$outboundSchema: z.ZodType< z.ZodTypeDef, CreateDeploymentMicrofrontends2 > = z.object({ + isDefaultApp: z.boolean(), applications: z.record( z.lazy(() => CreateDeploymentMicrofrontendsApplications$outboundSchema), ).optional(), - isDefaultApp: z.boolean(), + mfeConfigUploadState: MfeConfigUploadState$outboundSchema.optional(), defaultAppProjectName: z.string(), defaultRoute: z.string().optional(), groupIds: z.array(z.string()), @@ -9414,151 +9456,396 @@ export function createDeploymentMicrofrontendsFromJSON( } /** @internal */ -export const CreateDeploymentGitRepoDeploymentsType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - CreateDeploymentGitRepoDeploymentsType, - ); +export const Flags2$inboundSchema: z.ZodType = z + .object({}); /** @internal */ -export const CreateDeploymentGitRepoDeploymentsType$outboundSchema: - z.ZodNativeEnum = - CreateDeploymentGitRepoDeploymentsType$inboundSchema; +export type Flags2$Outbound = {}; + +/** @internal */ +export const Flags2$outboundSchema: z.ZodType< + Flags2$Outbound, + z.ZodTypeDef, + Flags2 +> = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace CreateDeploymentGitRepoDeploymentsType$ { - /** @deprecated use `CreateDeploymentGitRepoDeploymentsType$inboundSchema` instead. */ - export const inboundSchema = - CreateDeploymentGitRepoDeploymentsType$inboundSchema; - /** @deprecated use `CreateDeploymentGitRepoDeploymentsType$outboundSchema` instead. */ - export const outboundSchema = - CreateDeploymentGitRepoDeploymentsType$outboundSchema; +export namespace Flags2$ { + /** @deprecated use `Flags2$inboundSchema` instead. */ + export const inboundSchema = Flags2$inboundSchema; + /** @deprecated use `Flags2$outboundSchema` instead. */ + export const outboundSchema = Flags2$outboundSchema; + /** @deprecated use `Flags2$Outbound` instead. */ + export type Outbound = Flags2$Outbound; +} + +export function flags2ToJSON(flags2: Flags2): string { + return JSON.stringify(Flags2$outboundSchema.parse(flags2)); +} + +export function flags2FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Flags2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Flags2' from JSON`, + ); } /** @internal */ -export const CreateDeploymentGitRepoOwnerType$inboundSchema: z.ZodNativeEnum< - typeof CreateDeploymentGitRepoOwnerType -> = z.nativeEnum(CreateDeploymentGitRepoOwnerType); +export const Options$inboundSchema: z.ZodType = + z.object({ + value: z.nullable(FlagJSONValue$inboundSchema), + label: z.string().optional(), + }); /** @internal */ -export const CreateDeploymentGitRepoOwnerType$outboundSchema: z.ZodNativeEnum< - typeof CreateDeploymentGitRepoOwnerType -> = CreateDeploymentGitRepoOwnerType$inboundSchema; +export type Options$Outbound = { + value: FlagJSONValue$Outbound | null; + label?: string | undefined; +}; + +/** @internal */ +export const Options$outboundSchema: z.ZodType< + Options$Outbound, + z.ZodTypeDef, + Options +> = z.object({ + value: z.nullable(FlagJSONValue$outboundSchema), + label: z.string().optional(), +}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace CreateDeploymentGitRepoOwnerType$ { - /** @deprecated use `CreateDeploymentGitRepoOwnerType$inboundSchema` instead. */ - export const inboundSchema = CreateDeploymentGitRepoOwnerType$inboundSchema; - /** @deprecated use `CreateDeploymentGitRepoOwnerType$outboundSchema` instead. */ - export const outboundSchema = CreateDeploymentGitRepoOwnerType$outboundSchema; +export namespace Options$ { + /** @deprecated use `Options$inboundSchema` instead. */ + export const inboundSchema = Options$inboundSchema; + /** @deprecated use `Options$outboundSchema` instead. */ + export const outboundSchema = Options$outboundSchema; + /** @deprecated use `Options$Outbound` instead. */ + export type Outbound = Options$Outbound; +} + +export function optionsToJSON(options: Options): string { + return JSON.stringify(Options$outboundSchema.parse(options)); +} + +export function optionsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Options$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Options' from JSON`, + ); } /** @internal */ -export const GitRepo3$inboundSchema: z.ZodType< - GitRepo3, +export const FlagsDefinitions$inboundSchema: z.ZodType< + FlagsDefinitions, z.ZodTypeDef, unknown > = z.object({ - owner: z.string(), - repoUuid: z.string(), - slug: z.string(), - type: CreateDeploymentGitRepoDeploymentsType$inboundSchema, - workspaceUuid: z.string(), - path: z.string(), - defaultBranch: z.string(), - name: z.string(), - private: z.boolean(), - ownerType: CreateDeploymentGitRepoOwnerType$inboundSchema, + options: z.array(z.lazy(() => Options$inboundSchema)).optional(), + url: z.string().optional(), + description: z.string().optional(), }); /** @internal */ -export type GitRepo3$Outbound = { - owner: string; - repoUuid: string; - slug: string; - type: string; - workspaceUuid: string; - path: string; - defaultBranch: string; - name: string; - private: boolean; - ownerType: string; +export type FlagsDefinitions$Outbound = { + options?: Array | undefined; + url?: string | undefined; + description?: string | undefined; }; /** @internal */ -export const GitRepo3$outboundSchema: z.ZodType< - GitRepo3$Outbound, +export const FlagsDefinitions$outboundSchema: z.ZodType< + FlagsDefinitions$Outbound, z.ZodTypeDef, - GitRepo3 + FlagsDefinitions > = z.object({ - owner: z.string(), - repoUuid: z.string(), - slug: z.string(), - type: CreateDeploymentGitRepoDeploymentsType$outboundSchema, - workspaceUuid: z.string(), - path: z.string(), - defaultBranch: z.string(), - name: z.string(), - private: z.boolean(), - ownerType: CreateDeploymentGitRepoOwnerType$outboundSchema, + options: z.array(z.lazy(() => Options$outboundSchema)).optional(), + url: z.string().optional(), + description: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GitRepo3$ { - /** @deprecated use `GitRepo3$inboundSchema` instead. */ - export const inboundSchema = GitRepo3$inboundSchema; - /** @deprecated use `GitRepo3$outboundSchema` instead. */ - export const outboundSchema = GitRepo3$outboundSchema; - /** @deprecated use `GitRepo3$Outbound` instead. */ - export type Outbound = GitRepo3$Outbound; +export namespace FlagsDefinitions$ { + /** @deprecated use `FlagsDefinitions$inboundSchema` instead. */ + export const inboundSchema = FlagsDefinitions$inboundSchema; + /** @deprecated use `FlagsDefinitions$outboundSchema` instead. */ + export const outboundSchema = FlagsDefinitions$outboundSchema; + /** @deprecated use `FlagsDefinitions$Outbound` instead. */ + export type Outbound = FlagsDefinitions$Outbound; } -export function gitRepo3ToJSON(gitRepo3: GitRepo3): string { - return JSON.stringify(GitRepo3$outboundSchema.parse(gitRepo3)); +export function flagsDefinitionsToJSON( + flagsDefinitions: FlagsDefinitions, +): string { + return JSON.stringify( + FlagsDefinitions$outboundSchema.parse(flagsDefinitions), + ); } -export function gitRepo3FromJSON( +export function flagsDefinitionsFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GitRepo3$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitRepo3' from JSON`, + (x) => FlagsDefinitions$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'FlagsDefinitions' from JSON`, ); } /** @internal */ -export const CreateDeploymentGitRepoType$inboundSchema: z.ZodNativeEnum< - typeof CreateDeploymentGitRepoType -> = z.nativeEnum(CreateDeploymentGitRepoType); +export const Flags1$inboundSchema: z.ZodType = z + .object({ + definitions: z.record(z.lazy(() => FlagsDefinitions$inboundSchema)), + }); /** @internal */ -export const CreateDeploymentGitRepoType$outboundSchema: z.ZodNativeEnum< - typeof CreateDeploymentGitRepoType -> = CreateDeploymentGitRepoType$inboundSchema; +export type Flags1$Outbound = { + definitions: { [k: string]: FlagsDefinitions$Outbound }; +}; + +/** @internal */ +export const Flags1$outboundSchema: z.ZodType< + Flags1$Outbound, + z.ZodTypeDef, + Flags1 +> = z.object({ + definitions: z.record(z.lazy(() => FlagsDefinitions$outboundSchema)), +}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace CreateDeploymentGitRepoType$ { - /** @deprecated use `CreateDeploymentGitRepoType$inboundSchema` instead. */ - export const inboundSchema = CreateDeploymentGitRepoType$inboundSchema; - /** @deprecated use `CreateDeploymentGitRepoType$outboundSchema` instead. */ - export const outboundSchema = CreateDeploymentGitRepoType$outboundSchema; -} - -/** @internal */ -export const GitRepoOwnerType$inboundSchema: z.ZodNativeEnum< - typeof GitRepoOwnerType +export namespace Flags1$ { + /** @deprecated use `Flags1$inboundSchema` instead. */ + export const inboundSchema = Flags1$inboundSchema; + /** @deprecated use `Flags1$outboundSchema` instead. */ + export const outboundSchema = Flags1$outboundSchema; + /** @deprecated use `Flags1$Outbound` instead. */ + export type Outbound = Flags1$Outbound; +} + +export function flags1ToJSON(flags1: Flags1): string { + return JSON.stringify(Flags1$outboundSchema.parse(flags1)); +} + +export function flags1FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Flags1$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Flags1' from JSON`, + ); +} + +/** @internal */ +export const Flags$inboundSchema: z.ZodType = z + .union([ + z.lazy(() => Flags1$inboundSchema), + z.array(z.lazy(() => Flags2$inboundSchema)), + ]); + +/** @internal */ +export type Flags$Outbound = Flags1$Outbound | Array; + +/** @internal */ +export const Flags$outboundSchema: z.ZodType< + Flags$Outbound, + z.ZodTypeDef, + Flags +> = z.union([ + z.lazy(() => Flags1$outboundSchema), + z.array(z.lazy(() => Flags2$outboundSchema)), +]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Flags$ { + /** @deprecated use `Flags$inboundSchema` instead. */ + export const inboundSchema = Flags$inboundSchema; + /** @deprecated use `Flags$outboundSchema` instead. */ + export const outboundSchema = Flags$outboundSchema; + /** @deprecated use `Flags$Outbound` instead. */ + export type Outbound = Flags$Outbound; +} + +export function flagsToJSON(flags: Flags): string { + return JSON.stringify(Flags$outboundSchema.parse(flags)); +} + +export function flagsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Flags$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Flags' from JSON`, + ); +} + +/** @internal */ +export const CreateDeploymentGitRepoDeploymentsType$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + CreateDeploymentGitRepoDeploymentsType, + ); + +/** @internal */ +export const CreateDeploymentGitRepoDeploymentsType$outboundSchema: + z.ZodNativeEnum = + CreateDeploymentGitRepoDeploymentsType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateDeploymentGitRepoDeploymentsType$ { + /** @deprecated use `CreateDeploymentGitRepoDeploymentsType$inboundSchema` instead. */ + export const inboundSchema = + CreateDeploymentGitRepoDeploymentsType$inboundSchema; + /** @deprecated use `CreateDeploymentGitRepoDeploymentsType$outboundSchema` instead. */ + export const outboundSchema = + CreateDeploymentGitRepoDeploymentsType$outboundSchema; +} + +/** @internal */ +export const CreateDeploymentGitRepoOwnerType$inboundSchema: z.ZodNativeEnum< + typeof CreateDeploymentGitRepoOwnerType +> = z.nativeEnum(CreateDeploymentGitRepoOwnerType); + +/** @internal */ +export const CreateDeploymentGitRepoOwnerType$outboundSchema: z.ZodNativeEnum< + typeof CreateDeploymentGitRepoOwnerType +> = CreateDeploymentGitRepoOwnerType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateDeploymentGitRepoOwnerType$ { + /** @deprecated use `CreateDeploymentGitRepoOwnerType$inboundSchema` instead. */ + export const inboundSchema = CreateDeploymentGitRepoOwnerType$inboundSchema; + /** @deprecated use `CreateDeploymentGitRepoOwnerType$outboundSchema` instead. */ + export const outboundSchema = CreateDeploymentGitRepoOwnerType$outboundSchema; +} + +/** @internal */ +export const GitRepo3$inboundSchema: z.ZodType< + GitRepo3, + z.ZodTypeDef, + unknown +> = z.object({ + owner: z.string(), + repoUuid: z.string(), + slug: z.string(), + type: CreateDeploymentGitRepoDeploymentsType$inboundSchema, + workspaceUuid: z.string(), + path: z.string(), + defaultBranch: z.string(), + name: z.string(), + private: z.boolean(), + ownerType: CreateDeploymentGitRepoOwnerType$inboundSchema, +}); + +/** @internal */ +export type GitRepo3$Outbound = { + owner: string; + repoUuid: string; + slug: string; + type: string; + workspaceUuid: string; + path: string; + defaultBranch: string; + name: string; + private: boolean; + ownerType: string; +}; + +/** @internal */ +export const GitRepo3$outboundSchema: z.ZodType< + GitRepo3$Outbound, + z.ZodTypeDef, + GitRepo3 +> = z.object({ + owner: z.string(), + repoUuid: z.string(), + slug: z.string(), + type: CreateDeploymentGitRepoDeploymentsType$outboundSchema, + workspaceUuid: z.string(), + path: z.string(), + defaultBranch: z.string(), + name: z.string(), + private: z.boolean(), + ownerType: CreateDeploymentGitRepoOwnerType$outboundSchema, +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GitRepo3$ { + /** @deprecated use `GitRepo3$inboundSchema` instead. */ + export const inboundSchema = GitRepo3$inboundSchema; + /** @deprecated use `GitRepo3$outboundSchema` instead. */ + export const outboundSchema = GitRepo3$outboundSchema; + /** @deprecated use `GitRepo3$Outbound` instead. */ + export type Outbound = GitRepo3$Outbound; +} + +export function gitRepo3ToJSON(gitRepo3: GitRepo3): string { + return JSON.stringify(GitRepo3$outboundSchema.parse(gitRepo3)); +} + +export function gitRepo3FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GitRepo3$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GitRepo3' from JSON`, + ); +} + +/** @internal */ +export const CreateDeploymentGitRepoType$inboundSchema: z.ZodNativeEnum< + typeof CreateDeploymentGitRepoType +> = z.nativeEnum(CreateDeploymentGitRepoType); + +/** @internal */ +export const CreateDeploymentGitRepoType$outboundSchema: z.ZodNativeEnum< + typeof CreateDeploymentGitRepoType +> = CreateDeploymentGitRepoType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateDeploymentGitRepoType$ { + /** @deprecated use `CreateDeploymentGitRepoType$inboundSchema` instead. */ + export const inboundSchema = CreateDeploymentGitRepoType$inboundSchema; + /** @deprecated use `CreateDeploymentGitRepoType$outboundSchema` instead. */ + export const outboundSchema = CreateDeploymentGitRepoType$outboundSchema; +} + +/** @internal */ +export const GitRepoOwnerType$inboundSchema: z.ZodNativeEnum< + typeof GitRepoOwnerType > = z.nativeEnum(GitRepoOwnerType); /** @internal */ @@ -9818,251 +10105,6 @@ export function gitRepoFromJSON( ); } -/** @internal */ -export const Flags2$inboundSchema: z.ZodType = z - .object({}); - -/** @internal */ -export type Flags2$Outbound = {}; - -/** @internal */ -export const Flags2$outboundSchema: z.ZodType< - Flags2$Outbound, - z.ZodTypeDef, - Flags2 -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Flags2$ { - /** @deprecated use `Flags2$inboundSchema` instead. */ - export const inboundSchema = Flags2$inboundSchema; - /** @deprecated use `Flags2$outboundSchema` instead. */ - export const outboundSchema = Flags2$outboundSchema; - /** @deprecated use `Flags2$Outbound` instead. */ - export type Outbound = Flags2$Outbound; -} - -export function flags2ToJSON(flags2: Flags2): string { - return JSON.stringify(Flags2$outboundSchema.parse(flags2)); -} - -export function flags2FromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Flags2$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Flags2' from JSON`, - ); -} - -/** @internal */ -export const Options$inboundSchema: z.ZodType = - z.object({ - value: z.nullable(FlagJSONValue$inboundSchema), - label: z.string().optional(), - }); - -/** @internal */ -export type Options$Outbound = { - value: FlagJSONValue$Outbound | null; - label?: string | undefined; -}; - -/** @internal */ -export const Options$outboundSchema: z.ZodType< - Options$Outbound, - z.ZodTypeDef, - Options -> = z.object({ - value: z.nullable(FlagJSONValue$outboundSchema), - label: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Options$ { - /** @deprecated use `Options$inboundSchema` instead. */ - export const inboundSchema = Options$inboundSchema; - /** @deprecated use `Options$outboundSchema` instead. */ - export const outboundSchema = Options$outboundSchema; - /** @deprecated use `Options$Outbound` instead. */ - export type Outbound = Options$Outbound; -} - -export function optionsToJSON(options: Options): string { - return JSON.stringify(Options$outboundSchema.parse(options)); -} - -export function optionsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Options$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Options' from JSON`, - ); -} - -/** @internal */ -export const FlagsDefinitions$inboundSchema: z.ZodType< - FlagsDefinitions, - z.ZodTypeDef, - unknown -> = z.object({ - options: z.array(z.lazy(() => Options$inboundSchema)).optional(), - url: z.string().optional(), - description: z.string().optional(), -}); - -/** @internal */ -export type FlagsDefinitions$Outbound = { - options?: Array | undefined; - url?: string | undefined; - description?: string | undefined; -}; - -/** @internal */ -export const FlagsDefinitions$outboundSchema: z.ZodType< - FlagsDefinitions$Outbound, - z.ZodTypeDef, - FlagsDefinitions -> = z.object({ - options: z.array(z.lazy(() => Options$outboundSchema)).optional(), - url: z.string().optional(), - description: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FlagsDefinitions$ { - /** @deprecated use `FlagsDefinitions$inboundSchema` instead. */ - export const inboundSchema = FlagsDefinitions$inboundSchema; - /** @deprecated use `FlagsDefinitions$outboundSchema` instead. */ - export const outboundSchema = FlagsDefinitions$outboundSchema; - /** @deprecated use `FlagsDefinitions$Outbound` instead. */ - export type Outbound = FlagsDefinitions$Outbound; -} - -export function flagsDefinitionsToJSON( - flagsDefinitions: FlagsDefinitions, -): string { - return JSON.stringify( - FlagsDefinitions$outboundSchema.parse(flagsDefinitions), - ); -} - -export function flagsDefinitionsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FlagsDefinitions$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FlagsDefinitions' from JSON`, - ); -} - -/** @internal */ -export const Flags1$inboundSchema: z.ZodType = z - .object({ - definitions: z.record(z.lazy(() => FlagsDefinitions$inboundSchema)), - }); - -/** @internal */ -export type Flags1$Outbound = { - definitions: { [k: string]: FlagsDefinitions$Outbound }; -}; - -/** @internal */ -export const Flags1$outboundSchema: z.ZodType< - Flags1$Outbound, - z.ZodTypeDef, - Flags1 -> = z.object({ - definitions: z.record(z.lazy(() => FlagsDefinitions$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Flags1$ { - /** @deprecated use `Flags1$inboundSchema` instead. */ - export const inboundSchema = Flags1$inboundSchema; - /** @deprecated use `Flags1$outboundSchema` instead. */ - export const outboundSchema = Flags1$outboundSchema; - /** @deprecated use `Flags1$Outbound` instead. */ - export type Outbound = Flags1$Outbound; -} - -export function flags1ToJSON(flags1: Flags1): string { - return JSON.stringify(Flags1$outboundSchema.parse(flags1)); -} - -export function flags1FromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Flags1$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Flags1' from JSON`, - ); -} - -/** @internal */ -export const Flags$inboundSchema: z.ZodType = z - .union([ - z.lazy(() => Flags1$inboundSchema), - z.array(z.lazy(() => Flags2$inboundSchema)), - ]); - -/** @internal */ -export type Flags$Outbound = Flags1$Outbound | Array; - -/** @internal */ -export const Flags$outboundSchema: z.ZodType< - Flags$Outbound, - z.ZodTypeDef, - Flags -> = z.union([ - z.lazy(() => Flags1$outboundSchema), - z.array(z.lazy(() => Flags2$outboundSchema)), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Flags$ { - /** @deprecated use `Flags$inboundSchema` instead. */ - export const inboundSchema = Flags$inboundSchema; - /** @deprecated use `Flags$outboundSchema` instead. */ - export const outboundSchema = Flags$outboundSchema; - /** @deprecated use `Flags$Outbound` instead. */ - export type Outbound = Flags$Outbound; -} - -export function flagsToJSON(flags: Flags): string { - return JSON.stringify(Flags$outboundSchema.parse(flags)); -} - -export function flagsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Flags$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Flags' from JSON`, - ); -} - /** @internal */ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType< CreateDeploymentResponseBody, @@ -10137,24 +10179,24 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType< errorMessage: z.nullable(z.string()).optional(), passiveRegions: z.array(z.string()).optional(), regions: z.array(z.string()), - aliasWarning: z.nullable(z.lazy(() => AliasWarning$inboundSchema)).optional(), aliasError: z.nullable(z.lazy(() => AliasError$inboundSchema)).optional(), aliasFinal: z.nullable(z.string()).optional(), + aliasWarning: z.nullable(z.lazy(() => AliasWarning$inboundSchema)).optional(), automaticAliases: z.array(z.string()).optional(), buildErrorAt: z.number().optional(), - checksState: ChecksState$inboundSchema.optional(), + canceledAt: z.number().optional(), checksConclusion: ChecksConclusion$inboundSchema.optional(), + checksState: ChecksState$inboundSchema.optional(), defaultRoute: z.string().optional(), - canceledAt: z.number().optional(), errorCode: z.string().optional(), errorLink: z.string().optional(), errorStep: z.string().optional(), originCacheRegion: z.string().optional(), + oidcTokenClaims: z.lazy(() => OidcTokenClaims$inboundSchema).optional(), readySubstate: ReadySubstate$inboundSchema.optional(), softDeletedByRetention: z.boolean().optional(), undeletedAt: z.number().optional(), url: z.string(), - oidcTokenClaims: z.lazy(() => OidcTokenClaims$inboundSchema).optional(), projectId: z.string(), ownerId: z.string(), monorepoManager: z.nullable(z.string()).optional(), @@ -10181,6 +10223,10 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType< connectConfigurationId: z.string().optional(), createdIn: z.string(), passiveConnectConfigurationId: z.string().optional(), + flags: z.union([ + z.lazy(() => Flags1$inboundSchema), + z.array(z.lazy(() => Flags2$inboundSchema)), + ]).optional(), gitRepo: z.nullable( z.union([ z.lazy(() => GitRepo2$inboundSchema), @@ -10188,10 +10234,6 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType< z.lazy(() => GitRepo1$inboundSchema), ]), ).optional(), - flags: z.union([ - z.lazy(() => Flags1$inboundSchema), - z.array(z.lazy(() => Flags2$inboundSchema)), - ]).optional(), }); /** @internal */ @@ -10264,24 +10306,24 @@ export type CreateDeploymentResponseBody$Outbound = { errorMessage?: string | null | undefined; passiveRegions?: Array | undefined; regions: Array; - aliasWarning?: AliasWarning$Outbound | null | undefined; aliasError?: AliasError$Outbound | null | undefined; aliasFinal?: string | null | undefined; + aliasWarning?: AliasWarning$Outbound | null | undefined; automaticAliases?: Array | undefined; buildErrorAt?: number | undefined; - checksState?: string | undefined; + canceledAt?: number | undefined; checksConclusion?: string | undefined; + checksState?: string | undefined; defaultRoute?: string | undefined; - canceledAt?: number | undefined; errorCode?: string | undefined; errorLink?: string | undefined; errorStep?: string | undefined; originCacheRegion?: string | undefined; + oidcTokenClaims?: OidcTokenClaims$Outbound | undefined; readySubstate?: string | undefined; softDeletedByRetention?: boolean | undefined; undeletedAt?: number | undefined; url: string; - oidcTokenClaims?: OidcTokenClaims$Outbound | undefined; projectId: string; ownerId: string; monorepoManager?: string | null | undefined; @@ -10299,13 +10341,13 @@ export type CreateDeploymentResponseBody$Outbound = { connectConfigurationId?: string | undefined; createdIn: string; passiveConnectConfigurationId?: string | undefined; + flags?: Flags1$Outbound | Array | undefined; gitRepo?: | GitRepo2$Outbound | GitRepo3$Outbound | GitRepo1$Outbound | null | undefined; - flags?: Flags1$Outbound | Array | undefined; }; /** @internal */ @@ -10382,25 +10424,25 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType< errorMessage: z.nullable(z.string()).optional(), passiveRegions: z.array(z.string()).optional(), regions: z.array(z.string()), - aliasWarning: z.nullable(z.lazy(() => AliasWarning$outboundSchema)) - .optional(), aliasError: z.nullable(z.lazy(() => AliasError$outboundSchema)).optional(), aliasFinal: z.nullable(z.string()).optional(), + aliasWarning: z.nullable(z.lazy(() => AliasWarning$outboundSchema)) + .optional(), automaticAliases: z.array(z.string()).optional(), buildErrorAt: z.number().optional(), - checksState: ChecksState$outboundSchema.optional(), + canceledAt: z.number().optional(), checksConclusion: ChecksConclusion$outboundSchema.optional(), + checksState: ChecksState$outboundSchema.optional(), defaultRoute: z.string().optional(), - canceledAt: z.number().optional(), errorCode: z.string().optional(), errorLink: z.string().optional(), errorStep: z.string().optional(), originCacheRegion: z.string().optional(), + oidcTokenClaims: z.lazy(() => OidcTokenClaims$outboundSchema).optional(), readySubstate: ReadySubstate$outboundSchema.optional(), softDeletedByRetention: z.boolean().optional(), undeletedAt: z.number().optional(), url: z.string(), - oidcTokenClaims: z.lazy(() => OidcTokenClaims$outboundSchema).optional(), projectId: z.string(), ownerId: z.string(), monorepoManager: z.nullable(z.string()).optional(), @@ -10427,6 +10469,10 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType< connectConfigurationId: z.string().optional(), createdIn: z.string(), passiveConnectConfigurationId: z.string().optional(), + flags: z.union([ + z.lazy(() => Flags1$outboundSchema), + z.array(z.lazy(() => Flags2$outboundSchema)), + ]).optional(), gitRepo: z.nullable( z.union([ z.lazy(() => GitRepo2$outboundSchema), @@ -10434,10 +10480,6 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType< z.lazy(() => GitRepo1$outboundSchema), ]), ).optional(), - flags: z.union([ - z.lazy(() => Flags1$outboundSchema), - z.array(z.lazy(() => Flags2$outboundSchema)), - ]).optional(), }); /** diff --git a/src/models/createintegrationstoredirectop.ts b/src/models/createintegrationstoredirectop.ts new file mode 100644 index 00000000..c2cff8c3 --- /dev/null +++ b/src/models/createintegrationstoredirectop.ts @@ -0,0 +1,15739 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +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 type Metadata = + | string + | number + | boolean + | Array + | Array; + +export type CreateIntegrationStoreDirectRequestBody = { + /** + * Human-readable name for the storage resource + */ + name: string; + /** + * ID of your integration configuration. Get this from GET /v1/integrations/configurations + */ + integrationConfigurationId: string; + /** + * ID or slug of the integration product. Get available products from GET /v1/integrations/configuration/{id}/products + */ + integrationProductIdOrSlug?: any | undefined; + /** + * Optional key-value pairs for resource metadata + */ + metadata?: { + [k: string]: string | number | boolean | Array | Array; + } | undefined; + /** + * Optional external identifier for tracking purposes + */ + externalId?: string | undefined; + /** + * Protocol-specific configuration settings + */ + protocolSettings?: { [k: string]: any } | undefined; + /** + * Source of the store creation request + */ + source?: string | undefined; + /** + * ID of the billing plan for paid resources. Get available plans from GET /integrations/integration/{id}/products/{productId}/plans. If not provided, automatically discovers free billing plans. + */ + billingPlanId?: string | undefined; + /** + * Payment method ID for paid resources. Optional - uses default payment method if not provided. + */ + paymentMethodId?: string | undefined; + /** + * Amount in cents for prepayment billing plans. Required only for prepayment plans with variable amounts. + */ + prepaymentAmountCents?: number | undefined; +}; + +export type CreateIntegrationStoreDirectRequest = { + /** + * The Team identifier to perform the request on behalf of. + */ + teamId?: string | undefined; + /** + * The Team slug to perform the request on behalf of. + */ + slug?: string | undefined; + requestBody?: CreateIntegrationStoreDirectRequestBody | undefined; +}; + +export const CreateIntegrationStoreDirectFramework = { + Blitzjs: "blitzjs", + Nextjs: "nextjs", + Gatsby: "gatsby", + Remix: "remix", + ReactRouter: "react-router", + Astro: "astro", + Hexo: "hexo", + Eleventy: "eleventy", + Docusaurus2: "docusaurus-2", + Docusaurus: "docusaurus", + Preact: "preact", + Solidstart1: "solidstart-1", + Solidstart: "solidstart", + Dojo: "dojo", + Ember: "ember", + Vue: "vue", + Scully: "scully", + IonicAngular: "ionic-angular", + Angular: "angular", + Polymer: "polymer", + Svelte: "svelte", + Sveltekit: "sveltekit", + Sveltekit1: "sveltekit-1", + IonicReact: "ionic-react", + CreateReactApp: "create-react-app", + Gridsome: "gridsome", + Umijs: "umijs", + Sapper: "sapper", + Saber: "saber", + Stencil: "stencil", + Nuxtjs: "nuxtjs", + Redwoodjs: "redwoodjs", + Hugo: "hugo", + Jekyll: "jekyll", + Brunch: "brunch", + Middleman: "middleman", + Zola: "zola", + Hydrogen: "hydrogen", + Vite: "vite", + Vitepress: "vitepress", + Vuepress: "vuepress", + Parcel: "parcel", + Fasthtml: "fasthtml", + SanityV3: "sanity-v3", + Sanity: "sanity", + Storybook: "storybook", + Nitro: "nitro", + Hono: "hono", + Express: "express", + Xmcp: "xmcp", +} as const; +export type CreateIntegrationStoreDirectFramework = ClosedEnum< + typeof CreateIntegrationStoreDirectFramework +>; + +export const CreateIntegrationStoreDirectEnvironments = { + Production: "production", + Preview: "preview", + Development: "development", +} as const; +export type CreateIntegrationStoreDirectEnvironments = ClosedEnum< + typeof CreateIntegrationStoreDirectEnvironments +>; + +export const CreateIntegrationStoreDirectIntegrationsEnvironments = { + Production: "production", + Preview: "preview", + Development: "development", +} as const; +export type CreateIntegrationStoreDirectIntegrationsEnvironments = ClosedEnum< + typeof CreateIntegrationStoreDirectIntegrationsEnvironments +>; + +export type Actions = { + slug: string; + environments: Array; +}; + +export type CreateIntegrationStoreDirectDeployments = { + required: boolean; + actions: Array; +}; + +export type ProjectsMetadata = { + id: string; + projectId: string; + name: string; + framework?: CreateIntegrationStoreDirectFramework | null | undefined; + latestDeployment?: string | undefined; + environments: Array; + envVarPrefix: string | null; + environmentVariables: Array; + deployments?: CreateIntegrationStoreDirectDeployments | undefined; +}; + +export const CreateIntegrationStoreDirectStatus = { + Available: "available", + Error: "error", + Suspended: "suspended", + LimitsExceededSuspended: "limits-exceeded-suspended", + LimitsExceededSuspendedStoreCount: "limits-exceeded-suspended-store-count", + Initializing: "initializing", + Uninstalled: "uninstalled", +} as const; +export type CreateIntegrationStoreDirectStatus = ClosedEnum< + typeof CreateIntegrationStoreDirectStatus +>; + +export type CreateIntegrationStoreDirectMetadata = + | string + | number + | boolean + | Array + | Array; + +export const ExternalResourceStatus = { + Error: "error", + Suspended: "suspended", + Uninstalled: "uninstalled", + Ready: "ready", + Pending: "pending", + Resumed: "resumed", +} as const; +export type ExternalResourceStatus = ClosedEnum; + +export const CreateIntegrationStoreDirectIntegrationsType = { + Object: "object", +} as const; +export type CreateIntegrationStoreDirectIntegrationsType = ClosedEnum< + typeof CreateIntegrationStoreDirectIntegrationsType +>; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesValue = { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822; +}; + +export const CreateIntegrationStoreDirectDisabled3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectDisabled3 = ClosedEnum< + typeof CreateIntegrationStoreDirectDisabled3 +>; + +export type CreateIntegrationStoreDirectDisabled2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesDisabled = + | CreateIntegrationStoreDirectDisabled2 + | boolean + | CreateIntegrationStoreDirectDisabled3; + +export const CreateIntegrationStoreDirectHidden3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectHidden3 = ClosedEnum< + typeof CreateIntegrationStoreDirectHidden3 +>; + +export type CreateIntegrationStoreDirectHidden2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesHidden = + | CreateIntegrationStoreDirectHidden2 + | boolean + | CreateIntegrationStoreDirectHidden3; + +export type CreateIntegrationStoreDirectProperties8 = { + value: CreateIntegrationStoreDirectPropertiesValue; + disabled?: + | CreateIntegrationStoreDirectDisabled2 + | boolean + | CreateIntegrationStoreDirectDisabled3 + | undefined; + hidden?: + | CreateIntegrationStoreDirectHidden2 + | boolean + | CreateIntegrationStoreDirectHidden3 + | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType = + { + String: "string", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType + >; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl = + { + VercelRegion: "vercel-region", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl + >; + +export type CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822 = {}; + +export type CreateIntegrationStoreDirectUiOptionsValue = { + atBRANDAt7822: CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822; +}; + +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 = + ClosedEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 + >; + +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse2002 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled = + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2003; + +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 = + ClosedEnum; + +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse2002 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectUiOptionsIntegrationsHidden = + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2003; + +export type CreateIntegrationStoreDirectUiOptions3 = { + value: CreateIntegrationStoreDirectUiOptionsValue; + disabled?: + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 + | undefined; + hidden?: + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 + | undefined; +}; + +export type UiOptionsAtBRANDAt7822 = {}; + +export type CreateIntegrationStoreDirectUiOptions2 = { + atBRANDAt7822: UiOptionsAtBRANDAt7822; +}; + +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 + >; + +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectUiOptionsDisabled = + | CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3; + +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 + >; + +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectUiOptionsHidden = + | CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3; + +export type CreateIntegrationStoreDirectUiOptions1 = { + value: string; + label: string; + disabled?: + | CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 + | undefined; + hidden?: + | CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 + | undefined; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions = + | CreateIntegrationStoreDirectUiOptions1 + | CreateIntegrationStoreDirectUiOptions2 + | CreateIntegrationStoreDirectUiOptions3; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength = + { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength = + { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern = + { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822; + }; + +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 + >; + +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3; + +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 + >; + +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3; + +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 + >; + +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3; + +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2 + | string; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectProperties7 = { + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType; + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl; + uiOptions: Array< + | CreateIntegrationStoreDirectUiOptions1 + | CreateIntegrationStoreDirectUiOptions2 + | CreateIntegrationStoreDirectUiOptions3 + >; + enum?: Array | undefined; + maxLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength + | undefined; + minLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength + | undefined; + pattern?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern + | undefined; + description?: string | undefined; + default?: string | undefined; + uiLabel?: string | undefined; + uiReadOnly?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 + | undefined; + uiHidden?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 + | undefined; + uiDisabled?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 + | undefined; + uiDescription?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2 + | string + | undefined; + uiFormattedValue?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue + | undefined; + uiPlaceholder?: string | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType = + { + Array: "array", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType + >; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType = + { + String: "string", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType + >; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength = + { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength = + { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern = + { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsItems = { + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType; + description?: string | undefined; + minLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength + | undefined; + maxLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength + | undefined; + pattern?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern + | undefined; + default?: string | undefined; + enum?: Array | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl = + { + MultiSelect: "multi-select", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl + >; + +export const CreateIntegrationStoreDirectDisabledIntegrations3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectDisabledIntegrations3 = ClosedEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrations3 +>; + +export type CreateIntegrationStoreDirectDisabledIntegrations2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsDisabled = + | CreateIntegrationStoreDirectDisabledIntegrations2 + | boolean + | CreateIntegrationStoreDirectDisabledIntegrations3; + +export const CreateIntegrationStoreDirectHiddenIntegrations3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectHiddenIntegrations3 = ClosedEnum< + typeof CreateIntegrationStoreDirectHiddenIntegrations3 +>; + +export type CreateIntegrationStoreDirectHiddenIntegrations2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsHidden = + | CreateIntegrationStoreDirectHiddenIntegrations2 + | boolean + | CreateIntegrationStoreDirectHiddenIntegrations3; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions = { + value: string; + label: string; + disabled?: + | CreateIntegrationStoreDirectDisabledIntegrations2 + | boolean + | CreateIntegrationStoreDirectDisabledIntegrations3 + | undefined; + hidden?: + | CreateIntegrationStoreDirectHiddenIntegrations2 + | boolean + | CreateIntegrationStoreDirectHiddenIntegrations3 + | undefined; +}; + +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 + >; + +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3; + +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 + >; + +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3; + +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 + >; + +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3; + +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2 + | string; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectProperties6 = { + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType; + items: CreateIntegrationStoreDirectPropertiesIntegrationsItems; + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl; + uiOptions: Array; + maxItems?: number | undefined; + minItems?: number | undefined; + description?: string | undefined; + uiLabel?: string | undefined; + uiReadOnly?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 + | undefined; + uiHidden?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 + | undefined; + uiDisabled?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 + | undefined; + uiDescription?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2 + | string + | undefined; + uiFormattedValue?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue + | undefined; + uiPlaceholder?: string | undefined; + default?: Array | undefined; + example?: Array | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType = + { + String: "string", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType + >; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl = + { + Select: "select", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl + >; + +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse3 = + ClosedEnum; + +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled = + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectDisabledIntegrationsResponse3; + +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse3 = + ClosedEnum; + +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden = + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectHiddenIntegrationsResponse3; + +export type CreateIntegrationStoreDirectPropertiesUiOptions = { + value: string; + label: string; + disabled?: + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectDisabledIntegrationsResponse3 + | undefined; + hidden?: + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectHiddenIntegrationsResponse3 + | undefined; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength = { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsMinLength = { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsPattern = { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822; +}; + +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 + >; + +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3; + +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 + >; + +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3; + +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 = + { + Update: "update", + Create: "create", + } as const; +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 + >; + +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3; + +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 + | string; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectProperties5 = { + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType; + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl; + uiOptions: Array; + enum?: Array | undefined; + maxLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength + | undefined; + minLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsMinLength + | undefined; + pattern?: + | CreateIntegrationStoreDirectPropertiesIntegrationsPattern + | undefined; + description?: string | undefined; + default?: string | undefined; + uiLabel?: string | undefined; + uiReadOnly?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 + | undefined; + uiHidden?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 + | undefined; + uiDisabled?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 + | undefined; + uiDescription?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 + | string + | undefined; + uiFormattedValue?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue + | undefined; + uiPlaceholder?: string | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type = + { + Array: "array", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type + >; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType = + { + Number: "number", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType + >; + +export type CreateIntegrationStoreDirectPropertiesItems = { + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType; + description?: string | undefined; + minimum?: number | undefined; + exclusiveMinimum?: number | undefined; + maximum?: number | undefined; + exclusiveMaximum?: number | undefined; + default?: number | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl = + { + Slider: "slider", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl + >; + +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 + >; + +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003; + +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 + >; + +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003; + +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 + >; + +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003; + +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 + | string; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectProperties4 = { + type: CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type; + items: CreateIntegrationStoreDirectPropertiesItems; + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl; + uiSteps: Array; + maxItems?: number | undefined; + minItems?: number | undefined; + description?: string | undefined; + uiLabel?: string | undefined; + uiReadOnly?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 + | undefined; + uiHidden?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 + | undefined; + uiDisabled?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 + | undefined; + uiDescription?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 + | string + | undefined; + uiFormattedValue?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue + | undefined; + default?: Array | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseType = { + Boolean: "boolean", +} as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseType = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseType + >; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl = + { + Toggle: "toggle", + } as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl + >; + +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 + >; + +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3; + +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 = + ClosedEnum; + +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3; + +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 = + ClosedEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 + >; + +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3; + +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 + | string; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectProperties3 = { + type: CreateIntegrationStoreDirectPropertiesIntegrationsResponseType; + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl; + description?: string | undefined; + default?: boolean | undefined; + uiLabel?: string | undefined; + uiReadOnly?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 + | undefined; + uiHidden?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 + | undefined; + uiDisabled?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 + | undefined; + uiDescription?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 + | string + | undefined; + uiFormattedValue?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue + | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsType = { + Number: "number", +} as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsType = ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsType +>; + +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiControl = { + Input: "input", +} as const; +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiControl = + ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsUiControl + >; + +export const CreateIntegrationStoreDirectUiReadOnlyIntegrations3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiReadOnlyIntegrations3 = ClosedEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrations3 +>; + +export type CreateIntegrationStoreDirectUiReadOnlyIntegrations2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly = + | CreateIntegrationStoreDirectUiReadOnlyIntegrations2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrations3; + +export const CreateIntegrationStoreDirectUiHiddenIntegrations3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiHiddenIntegrations3 = ClosedEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrations3 +>; + +export type CreateIntegrationStoreDirectUiHiddenIntegrations2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden = + | CreateIntegrationStoreDirectUiHiddenIntegrations2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrations3; + +export const CreateIntegrationStoreDirectUiDisabledIntegrations3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiDisabledIntegrations3 = ClosedEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrations3 +>; + +export type CreateIntegrationStoreDirectUiDisabledIntegrations2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled = + | CreateIntegrationStoreDirectUiDisabledIntegrations2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrations3; + +export type CreateIntegrationStoreDirectUiDescriptionIntegrations2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription = + | CreateIntegrationStoreDirectUiDescriptionIntegrations2 + | string; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue = + { + expr: string; + }; + +export type CreateIntegrationStoreDirectProperties2 = { + type: CreateIntegrationStoreDirectPropertiesIntegrationsType; + uiControl: CreateIntegrationStoreDirectPropertiesIntegrationsUiControl; + maximum?: number | undefined; + exclusiveMaximum?: number | undefined; + minimum?: number | undefined; + exclusiveMinimum?: number | undefined; + description?: string | undefined; + default?: number | undefined; + uiLabel?: string | undefined; + uiReadOnly?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrations2 + | boolean + | CreateIntegrationStoreDirectUiReadOnlyIntegrations3 + | undefined; + uiHidden?: + | CreateIntegrationStoreDirectUiHiddenIntegrations2 + | boolean + | CreateIntegrationStoreDirectUiHiddenIntegrations3 + | undefined; + uiDisabled?: + | CreateIntegrationStoreDirectUiDisabledIntegrations2 + | boolean + | CreateIntegrationStoreDirectUiDisabledIntegrations3 + | undefined; + uiDescription?: + | CreateIntegrationStoreDirectUiDescriptionIntegrations2 + | string + | undefined; + uiFormattedValue?: + | CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue + | undefined; + uiPlaceholder?: string | undefined; +}; + +export const CreateIntegrationStoreDirectPropertiesType = { + String: "string", +} as const; +export type CreateIntegrationStoreDirectPropertiesType = ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesType +>; + +export const CreateIntegrationStoreDirectPropertiesUiControl = { + Input: "input", +} as const; +export type CreateIntegrationStoreDirectPropertiesUiControl = ClosedEnum< + typeof CreateIntegrationStoreDirectPropertiesUiControl +>; + +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822 = + {}; + +export type CreateIntegrationStoreDirectPropertiesMaxLength = { + atBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822; +}; + +export type PropertiesAtBRANDAt7822 = {}; + +export type CreateIntegrationStoreDirectPropertiesMinLength = { + atBRANDAt7822: PropertiesAtBRANDAt7822; +}; + +export type CreateIntegrationStoreDirectPropertiesAtBRANDAt7822 = {}; + +export type CreateIntegrationStoreDirectPropertiesPattern = { + atBRANDAt7822: CreateIntegrationStoreDirectPropertiesAtBRANDAt7822; +}; + +export const CreateIntegrationStoreDirectUiReadOnly3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiReadOnly3 = ClosedEnum< + typeof CreateIntegrationStoreDirectUiReadOnly3 +>; + +export type CreateIntegrationStoreDirectUiReadOnly2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesUiReadOnly = + | CreateIntegrationStoreDirectUiReadOnly2 + | boolean + | CreateIntegrationStoreDirectUiReadOnly3; + +export const CreateIntegrationStoreDirectUiHidden3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiHidden3 = ClosedEnum< + typeof CreateIntegrationStoreDirectUiHidden3 +>; + +export type CreateIntegrationStoreDirectUiHidden2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesUiHidden = + | CreateIntegrationStoreDirectUiHidden2 + | boolean + | CreateIntegrationStoreDirectUiHidden3; + +export const CreateIntegrationStoreDirectUiDisabled3 = { + Update: "update", + Create: "create", +} as const; +export type CreateIntegrationStoreDirectUiDisabled3 = ClosedEnum< + typeof CreateIntegrationStoreDirectUiDisabled3 +>; + +export type CreateIntegrationStoreDirectUiDisabled2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesUiDisabled = + | CreateIntegrationStoreDirectUiDisabled2 + | boolean + | CreateIntegrationStoreDirectUiDisabled3; + +export type CreateIntegrationStoreDirectUiDescription2 = { + expr: string; +}; + +export type CreateIntegrationStoreDirectPropertiesUiDescription = + | CreateIntegrationStoreDirectUiDescription2 + | string; + +export type CreateIntegrationStoreDirectPropertiesUiFormattedValue = { + expr: string; +}; + +export type CreateIntegrationStoreDirectProperties1 = { + type: CreateIntegrationStoreDirectPropertiesType; + uiControl: CreateIntegrationStoreDirectPropertiesUiControl; + enum?: Array | undefined; + maxLength?: CreateIntegrationStoreDirectPropertiesMaxLength | undefined; + minLength?: CreateIntegrationStoreDirectPropertiesMinLength | undefined; + pattern?: CreateIntegrationStoreDirectPropertiesPattern | undefined; + description?: string | undefined; + default?: string | undefined; + uiLabel?: string | undefined; + uiReadOnly?: + | CreateIntegrationStoreDirectUiReadOnly2 + | boolean + | CreateIntegrationStoreDirectUiReadOnly3 + | undefined; + uiHidden?: + | CreateIntegrationStoreDirectUiHidden2 + | boolean + | CreateIntegrationStoreDirectUiHidden3 + | undefined; + uiDisabled?: + | CreateIntegrationStoreDirectUiDisabled2 + | boolean + | CreateIntegrationStoreDirectUiDisabled3 + | undefined; + uiDescription?: + | CreateIntegrationStoreDirectUiDescription2 + | string + | undefined; + uiFormattedValue?: + | CreateIntegrationStoreDirectPropertiesUiFormattedValue + | undefined; + uiPlaceholder?: string | undefined; +}; + +export type CreateIntegrationStoreDirectProperties = + | CreateIntegrationStoreDirectProperties4 + | CreateIntegrationStoreDirectProperties6 + | CreateIntegrationStoreDirectProperties5 + | CreateIntegrationStoreDirectProperties7 + | CreateIntegrationStoreDirectProperties1 + | CreateIntegrationStoreDirectProperties2 + | CreateIntegrationStoreDirectProperties3 + | CreateIntegrationStoreDirectProperties8; + +export type CreateIntegrationStoreDirectMetadataSchema = { + type: CreateIntegrationStoreDirectIntegrationsType; + properties: { + [k: string]: + | CreateIntegrationStoreDirectProperties4 + | CreateIntegrationStoreDirectProperties6 + | CreateIntegrationStoreDirectProperties5 + | CreateIntegrationStoreDirectProperties7 + | CreateIntegrationStoreDirectProperties1 + | CreateIntegrationStoreDirectProperties2 + | CreateIntegrationStoreDirectProperties3 + | CreateIntegrationStoreDirectProperties8; + }; + required?: Array | undefined; +}; + +export type ResourceLinks = { + href: string; + title: string; +}; + +export const Tags = { + EdgeConfig: "edge-config", + Redis: "redis", + Postgres: "postgres", + Blob: "blob", + Checks: "checks", + Experimentation: "experimentation", + Storage: "storage", + Ai: "ai", + Observability: "observability", + Video: "video", + Authentication: "authentication", + Workflow: "workflow", + LogDrain: "logDrain", + Messaging: "messaging", + Other: "other", + Mysql: "mysql", + Vector: "vector", + TagAi: "tag_ai", + TagAnalytics: "tag_analytics", + TagAuthentication: "tag_authentication", + TagCms: "tag_cms", + TagCodeRepository: "tag_code_repository", + TagCommerce: "tag_commerce", + TagDatabases: "tag_databases", + TagDevTools: "tag_dev_tools", + TagExperimentation: "tag_experimentation", + TagFlags: "tag_flags", + TagLogging: "tag_logging", + TagMessaging: "tag_messaging", + TagMonitoring: "tag_monitoring", + TagObservability: "tag_observability", + TagPerformance: "tag_performance", + TagProductivity: "tag_productivity", + TagSearching: "tag_searching", + TagSecurity: "tag_security", + TagTesting: "tag_testing", + TagVideo: "tag_video", + TagWorkflow: "tag_workflow", + TagChecks: "tag_checks", + TagStorage: "tag_storage", + TagLogDrain: "tag_logDrain", + TagOther: "tag_other", +} as const; +export type Tags = ClosedEnum; + +export const ProjectConnectionScopes = { + ReadDeployment: "read:deployment", + ReadDomain: "read:domain", + ReadProject: "read:project", + ReadWriteDeployment: "read-write:deployment", + ReadWriteDeploymentCheck: "read-write:deployment-check", + ReadWriteDomain: "read-write:domain", + ReadWriteGlobalProjectEnvVars: "read-write:global-project-env-vars", + ReadWriteIntegrationDeploymentAction: + "read-write:integration-deployment-action", + ReadWriteLogDrain: "read-write:log-drain", + ReadWriteProjectEnvVars: "read-write:project-env-vars", + ReadWriteProjectProtectionBypass: "read-write:project-protection-bypass", +} as const; +export type ProjectConnectionScopes = ClosedEnum< + typeof ProjectConnectionScopes +>; + +export type Repl = { + enabled: boolean; + supportsReadOnlyMode: boolean; + welcomeMessage?: string | undefined; +}; + +export const CreateIntegrationStoreDirectIntegrationsResponseType = { + ConnectToProject: "connect_to_project", + ConfigureProjectConnections: "configure_project_connections", +} as const; +export type CreateIntegrationStoreDirectIntegrationsResponseType = ClosedEnum< + typeof CreateIntegrationStoreDirectIntegrationsResponseType +>; + +export type CreateIntegrationStoreDirectActions = { + type: CreateIntegrationStoreDirectIntegrationsResponseType; +}; + +export type Steps = { + title: string; + content: string; + actions?: Array | undefined; +}; + +export type Guides = { + framework: string; + title: string; + steps: Array; +}; + +export type AtBRANDAt7822 = {}; + +export type CreateIntegrationStoreDirectValue = { + atBRANDAt7822: AtBRANDAt7822; +}; + +export const Disabled3 = { + Update: "update", + Create: "create", +} as const; +export type Disabled3 = ClosedEnum; + +export type Disabled2 = { + expr: string; +}; + +export type Disabled = Disabled2 | boolean | Disabled3; + +export const Hidden3 = { + Update: "update", + Create: "create", +} as const; +export type Hidden3 = ClosedEnum; + +export type Hidden2 = { + expr: string; +}; + +export type Hidden = Hidden2 | boolean | Hidden3; + +export type Product = { + id?: string | undefined; + name?: string | undefined; + slug?: string | undefined; + iconUrl?: string | undefined; + shortDescription?: string | undefined; + metadataSchema?: CreateIntegrationStoreDirectMetadataSchema | undefined; + resourceLinks?: Array | undefined; + tags?: Array | undefined; + projectConnectionScopes?: Array | undefined; + showSSOLinkOnProjectConnection?: boolean | undefined; + disableResourceRenaming?: boolean | undefined; + repl?: Repl | undefined; + guides?: Array | undefined; + value: CreateIntegrationStoreDirectValue; + disabled?: Disabled2 | boolean | Disabled3 | undefined; + hidden?: Hidden2 | boolean | Hidden3 | undefined; +}; + +export type CreateIntegrationStoreDirectExperimentation = { + edgeConfigSyncingEnabled?: boolean | undefined; + edgeConfigId?: string | undefined; + edgeConfigTokenId?: string | undefined; +}; + +export type CreateIntegrationStoreDirectProtocolSettings = { + experimentation?: CreateIntegrationStoreDirectExperimentation | undefined; +}; + +export const CreateIntegrationStoreDirectLevel = { + Error: "error", + Info: "info", + Warn: "warn", +} as const; +export type CreateIntegrationStoreDirectLevel = ClosedEnum< + typeof CreateIntegrationStoreDirectLevel +>; + +export type CreateIntegrationStoreDirectNotification = { + title: string; + level: CreateIntegrationStoreDirectLevel; + message?: string | undefined; + href?: string | undefined; +}; + +export type CreateIntegrationStoreDirectSecrets = { + name: string; + length: number; +}; + +export const CreateIntegrationStoreDirectType = { + Prepayment: "prepayment", + Subscription: "subscription", +} as const; +export type CreateIntegrationStoreDirectType = ClosedEnum< + typeof CreateIntegrationStoreDirectType +>; + +export const CreateIntegrationStoreDirectScope = { + Installation: "installation", + Resource: "resource", +} as const; +export type CreateIntegrationStoreDirectScope = ClosedEnum< + typeof CreateIntegrationStoreDirectScope +>; + +export type CreateIntegrationStoreDirectDetails = { + label: string; + value?: string | undefined; +}; + +export type CreateIntegrationStoreDirectHighlightedDetails = { + label: string; + value?: string | undefined; +}; + +export type CreateIntegrationStoreDirectQuote = { + line: string; + amount: string; +}; + +export type CreateIntegrationStoreDirectBillingPlan = { + type: CreateIntegrationStoreDirectType; + description: string; + id: string; + name: string; + scope: CreateIntegrationStoreDirectScope; + paymentMethodRequired: boolean; + preauthorizationAmount?: number | undefined; + initialCharge?: string | undefined; + minimumAmount?: string | undefined; + maximumAmount?: string | undefined; + maximumAmountAutoPurchasePerPeriod?: string | undefined; + cost?: string | undefined; + details?: Array | undefined; + highlightedDetails?: + | Array + | undefined; + quote?: Array | undefined; + effectiveDate?: string | undefined; + disabled?: boolean | undefined; +}; + +export type CreateIntegrationStoreDirectStore = { + projectsMetadata: Array; + totalConnectedProjects?: number | undefined; + usageQuotaExceeded: boolean; + status: CreateIntegrationStoreDirectStatus | null; + metadata?: { + [k: string]: string | number | boolean | Array | Array; + } | undefined; + externalResourceId: string; + externalResourceStatus?: ExternalResourceStatus | null | undefined; + product: Product; + protocolSettings?: CreateIntegrationStoreDirectProtocolSettings | undefined; + notification?: CreateIntegrationStoreDirectNotification | undefined; + secrets: Array; + billingPlan?: CreateIntegrationStoreDirectBillingPlan | undefined; +}; + +export type CreateIntegrationStoreDirectResponseBody = { + store: CreateIntegrationStoreDirectStore | null; +}; + +/** @internal */ +export const Metadata$inboundSchema: z.ZodType< + Metadata, + z.ZodTypeDef, + unknown +> = z.union([ + z.string(), + z.number(), + z.boolean(), + z.array(z.string()), + z.array(z.number()), +]); + +/** @internal */ +export type Metadata$Outbound = + | string + | number + | boolean + | Array + | Array; + +/** @internal */ +export const Metadata$outboundSchema: z.ZodType< + Metadata$Outbound, + z.ZodTypeDef, + Metadata +> = z.union([ + z.string(), + z.number(), + z.boolean(), + z.array(z.string()), + z.array(z.number()), +]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Metadata$ { + /** @deprecated use `Metadata$inboundSchema` instead. */ + export const inboundSchema = Metadata$inboundSchema; + /** @deprecated use `Metadata$outboundSchema` instead. */ + export const outboundSchema = Metadata$outboundSchema; + /** @deprecated use `Metadata$Outbound` instead. */ + export type Outbound = Metadata$Outbound; +} + +export function metadataToJSON(metadata: Metadata): string { + return JSON.stringify(Metadata$outboundSchema.parse(metadata)); +} + +export function metadataFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Metadata$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Metadata' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectRequestBody$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectRequestBody, + z.ZodTypeDef, + unknown +> = z.object({ + name: z.string(), + integrationConfigurationId: z.string(), + integrationProductIdOrSlug: z.any().optional(), + metadata: z.record( + z.union([ + z.string(), + z.number(), + z.boolean(), + z.array(z.string()), + z.array(z.number()), + ]), + ).optional(), + externalId: z.string().optional(), + protocolSettings: z.record(z.any()).optional(), + source: z.string().default("marketplace"), + billingPlanId: z.string().optional(), + paymentMethodId: z.string().optional(), + prepaymentAmountCents: z.number().optional(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectRequestBody$Outbound = { + name: string; + integrationConfigurationId: string; + integrationProductIdOrSlug?: any | undefined; + metadata?: { + [k: string]: string | number | boolean | Array | Array; + } | undefined; + externalId?: string | undefined; + protocolSettings?: { [k: string]: any } | undefined; + source: string; + billingPlanId?: string | undefined; + paymentMethodId?: string | undefined; + prepaymentAmountCents?: number | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectRequestBody$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectRequestBody$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectRequestBody +> = z.object({ + name: z.string(), + integrationConfigurationId: z.string(), + integrationProductIdOrSlug: z.any().optional(), + metadata: z.record( + z.union([ + z.string(), + z.number(), + z.boolean(), + z.array(z.string()), + z.array(z.number()), + ]), + ).optional(), + externalId: z.string().optional(), + protocolSettings: z.record(z.any()).optional(), + source: z.string().default("marketplace"), + billingPlanId: z.string().optional(), + paymentMethodId: z.string().optional(), + prepaymentAmountCents: z.number().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectRequestBody$ { + /** @deprecated use `CreateIntegrationStoreDirectRequestBody$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectRequestBody$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectRequestBody$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectRequestBody$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectRequestBody$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectRequestBody$Outbound; +} + +export function createIntegrationStoreDirectRequestBodyToJSON( + createIntegrationStoreDirectRequestBody: + CreateIntegrationStoreDirectRequestBody, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectRequestBody$outboundSchema.parse( + createIntegrationStoreDirectRequestBody, + ), + ); +} + +export function createIntegrationStoreDirectRequestBodyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectRequestBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectRequestBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectRequestBody' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectRequest$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectRequest, + z.ZodTypeDef, + unknown +> = z.object({ + teamId: z.string().optional(), + slug: z.string().optional(), + RequestBody: z.lazy(() => + CreateIntegrationStoreDirectRequestBody$inboundSchema + ).optional(), +}).transform((v) => { + return remap$(v, { + "RequestBody": "requestBody", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectRequest$Outbound = { + teamId?: string | undefined; + slug?: string | undefined; + RequestBody?: CreateIntegrationStoreDirectRequestBody$Outbound | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectRequest$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectRequest$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectRequest +> = z.object({ + teamId: z.string().optional(), + slug: z.string().optional(), + requestBody: z.lazy(() => + CreateIntegrationStoreDirectRequestBody$outboundSchema + ).optional(), +}).transform((v) => { + return remap$(v, { + requestBody: "RequestBody", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectRequest$ { + /** @deprecated use `CreateIntegrationStoreDirectRequest$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectRequest$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectRequest$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectRequest$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectRequest$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectRequest$Outbound; +} + +export function createIntegrationStoreDirectRequestToJSON( + createIntegrationStoreDirectRequest: CreateIntegrationStoreDirectRequest, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectRequest$outboundSchema.parse( + createIntegrationStoreDirectRequest, + ), + ); +} + +export function createIntegrationStoreDirectRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectRequest' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectFramework$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + CreateIntegrationStoreDirectFramework, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectFramework$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectFramework$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectFramework$ { + /** @deprecated use `CreateIntegrationStoreDirectFramework$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectFramework$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectFramework$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectFramework$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectEnvironments$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectEnvironments); + +/** @internal */ +export const CreateIntegrationStoreDirectEnvironments$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectEnvironments$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectEnvironments$ { + /** @deprecated use `CreateIntegrationStoreDirectEnvironments$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectEnvironments$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectEnvironments$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectEnvironments$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectIntegrationsEnvironments$inboundSchema: + z.ZodNativeEnum = + z.nativeEnum(CreateIntegrationStoreDirectIntegrationsEnvironments); + +/** @internal */ +export const CreateIntegrationStoreDirectIntegrationsEnvironments$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectIntegrationsEnvironments$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectIntegrationsEnvironments$ { + /** @deprecated use `CreateIntegrationStoreDirectIntegrationsEnvironments$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectIntegrationsEnvironments$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectIntegrationsEnvironments$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectIntegrationsEnvironments$outboundSchema; +} + +/** @internal */ +export const Actions$inboundSchema: z.ZodType = + z.object({ + slug: z.string(), + environments: z.array( + CreateIntegrationStoreDirectIntegrationsEnvironments$inboundSchema, + ), + }); + +/** @internal */ +export type Actions$Outbound = { + slug: string; + environments: Array; +}; + +/** @internal */ +export const Actions$outboundSchema: z.ZodType< + Actions$Outbound, + z.ZodTypeDef, + Actions +> = z.object({ + slug: z.string(), + environments: z.array( + CreateIntegrationStoreDirectIntegrationsEnvironments$outboundSchema, + ), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Actions$ { + /** @deprecated use `Actions$inboundSchema` instead. */ + export const inboundSchema = Actions$inboundSchema; + /** @deprecated use `Actions$outboundSchema` instead. */ + export const outboundSchema = Actions$outboundSchema; + /** @deprecated use `Actions$Outbound` instead. */ + export type Outbound = Actions$Outbound; +} + +export function actionsToJSON(actions: Actions): string { + return JSON.stringify(Actions$outboundSchema.parse(actions)); +} + +export function actionsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Actions$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Actions' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectDeployments$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectDeployments, + z.ZodTypeDef, + unknown +> = z.object({ + required: z.boolean(), + actions: z.array(z.lazy(() => Actions$inboundSchema)), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectDeployments$Outbound = { + required: boolean; + actions: Array; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectDeployments$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectDeployments$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectDeployments +> = z.object({ + required: z.boolean(), + actions: z.array(z.lazy(() => Actions$outboundSchema)), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDeployments$ { + /** @deprecated use `CreateIntegrationStoreDirectDeployments$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDeployments$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDeployments$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDeployments$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDeployments$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectDeployments$Outbound; +} + +export function createIntegrationStoreDirectDeploymentsToJSON( + createIntegrationStoreDirectDeployments: + CreateIntegrationStoreDirectDeployments, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectDeployments$outboundSchema.parse( + createIntegrationStoreDirectDeployments, + ), + ); +} + +export function createIntegrationStoreDirectDeploymentsFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectDeployments, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectDeployments$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectDeployments' from JSON`, + ); +} + +/** @internal */ +export const ProjectsMetadata$inboundSchema: z.ZodType< + ProjectsMetadata, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + projectId: z.string(), + name: z.string(), + framework: z.nullable(CreateIntegrationStoreDirectFramework$inboundSchema) + .optional(), + latestDeployment: z.string().optional(), + environments: z.array(CreateIntegrationStoreDirectEnvironments$inboundSchema), + envVarPrefix: z.nullable(z.string()), + environmentVariables: z.array(z.string()), + deployments: z.lazy(() => + CreateIntegrationStoreDirectDeployments$inboundSchema + ).optional(), +}); + +/** @internal */ +export type ProjectsMetadata$Outbound = { + id: string; + projectId: string; + name: string; + framework?: string | null | undefined; + latestDeployment?: string | undefined; + environments: Array; + envVarPrefix: string | null; + environmentVariables: Array; + deployments?: CreateIntegrationStoreDirectDeployments$Outbound | undefined; +}; + +/** @internal */ +export const ProjectsMetadata$outboundSchema: z.ZodType< + ProjectsMetadata$Outbound, + z.ZodTypeDef, + ProjectsMetadata +> = z.object({ + id: z.string(), + projectId: z.string(), + name: z.string(), + framework: z.nullable(CreateIntegrationStoreDirectFramework$outboundSchema) + .optional(), + latestDeployment: z.string().optional(), + environments: z.array( + CreateIntegrationStoreDirectEnvironments$outboundSchema, + ), + envVarPrefix: z.nullable(z.string()), + environmentVariables: z.array(z.string()), + deployments: z.lazy(() => + CreateIntegrationStoreDirectDeployments$outboundSchema + ).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectsMetadata$ { + /** @deprecated use `ProjectsMetadata$inboundSchema` instead. */ + export const inboundSchema = ProjectsMetadata$inboundSchema; + /** @deprecated use `ProjectsMetadata$outboundSchema` instead. */ + export const outboundSchema = ProjectsMetadata$outboundSchema; + /** @deprecated use `ProjectsMetadata$Outbound` instead. */ + export type Outbound = ProjectsMetadata$Outbound; +} + +export function projectsMetadataToJSON( + projectsMetadata: ProjectsMetadata, +): string { + return JSON.stringify( + ProjectsMetadata$outboundSchema.parse(projectsMetadata), + ); +} + +export function projectsMetadataFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ProjectsMetadata$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ProjectsMetadata' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectStatus$inboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectStatus +> = z.nativeEnum(CreateIntegrationStoreDirectStatus); + +/** @internal */ +export const CreateIntegrationStoreDirectStatus$outboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectStatus +> = CreateIntegrationStoreDirectStatus$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectStatus$ { + /** @deprecated use `CreateIntegrationStoreDirectStatus$inboundSchema` instead. */ + export const inboundSchema = CreateIntegrationStoreDirectStatus$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectStatus$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectStatus$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectMetadata$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectMetadata, + z.ZodTypeDef, + unknown +> = z.union([ + z.string(), + z.number(), + z.boolean(), + z.array(z.string()), + z.array(z.number()), +]); + +/** @internal */ +export type CreateIntegrationStoreDirectMetadata$Outbound = + | string + | number + | boolean + | Array + | Array; + +/** @internal */ +export const CreateIntegrationStoreDirectMetadata$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectMetadata$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectMetadata +> = z.union([ + z.string(), + z.number(), + z.boolean(), + z.array(z.string()), + z.array(z.number()), +]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectMetadata$ { + /** @deprecated use `CreateIntegrationStoreDirectMetadata$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectMetadata$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectMetadata$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectMetadata$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectMetadata$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectMetadata$Outbound; +} + +export function createIntegrationStoreDirectMetadataToJSON( + createIntegrationStoreDirectMetadata: CreateIntegrationStoreDirectMetadata, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectMetadata$outboundSchema.parse( + createIntegrationStoreDirectMetadata, + ), + ); +} + +export function createIntegrationStoreDirectMetadataFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectMetadata$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectMetadata' from JSON`, + ); +} + +/** @internal */ +export const ExternalResourceStatus$inboundSchema: z.ZodNativeEnum< + typeof ExternalResourceStatus +> = z.nativeEnum(ExternalResourceStatus); + +/** @internal */ +export const ExternalResourceStatus$outboundSchema: z.ZodNativeEnum< + typeof ExternalResourceStatus +> = ExternalResourceStatus$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ExternalResourceStatus$ { + /** @deprecated use `ExternalResourceStatus$inboundSchema` instead. */ + export const inboundSchema = ExternalResourceStatus$inboundSchema; + /** @deprecated use `ExternalResourceStatus$outboundSchema` instead. */ + export const outboundSchema = ExternalResourceStatus$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectIntegrationsType$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectIntegrationsType); + +/** @internal */ +export const CreateIntegrationStoreDirectIntegrationsType$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectIntegrationsType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectIntegrationsType$ { + /** @deprecated use `CreateIntegrationStoreDirectIntegrationsType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectIntegrationsType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectIntegrationsType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectIntegrationsType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesValue$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesValue, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesValue$Outbound = { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$Outbound; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesValue + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesValue$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesValue$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectPropertiesValue$Outbound; +} + +export function createIntegrationStoreDirectPropertiesValueToJSON( + createIntegrationStoreDirectPropertiesValue: + CreateIntegrationStoreDirectPropertiesValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesValue$outboundSchema.parse( + createIntegrationStoreDirectPropertiesValue, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesValue$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabled3$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + CreateIntegrationStoreDirectDisabled3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectDisabled3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectDisabled3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabled3$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabled3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabled3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabled3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabled3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabled2$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectDisabled2, + z.ZodTypeDef, + unknown +> = z.object({ + expr: z.string(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectDisabled2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectDisabled2$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectDisabled2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectDisabled2 +> = z.object({ + expr: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabled2$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabled2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabled2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabled2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabled2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabled2$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectDisabled2$Outbound; +} + +export function createIntegrationStoreDirectDisabled2ToJSON( + createIntegrationStoreDirectDisabled2: CreateIntegrationStoreDirectDisabled2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectDisabled2$outboundSchema.parse( + createIntegrationStoreDirectDisabled2, + ), + ); +} + +export function createIntegrationStoreDirectDisabled2FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectDisabled2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectDisabled2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectDisabled2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectDisabled3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesDisabled$Outbound = + | CreateIntegrationStoreDirectDisabled2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesDisabled + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectDisabled2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectDisabled3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesDisabledToJSON( + createIntegrationStoreDirectPropertiesDisabled: + CreateIntegrationStoreDirectPropertiesDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesDisabled$outboundSchema.parse( + createIntegrationStoreDirectPropertiesDisabled, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesDisabled$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectHidden3$inboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectHidden3 +> = z.nativeEnum(CreateIntegrationStoreDirectHidden3); + +/** @internal */ +export const CreateIntegrationStoreDirectHidden3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectHidden3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHidden3$ { + /** @deprecated use `CreateIntegrationStoreDirectHidden3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHidden3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHidden3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHidden3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectHidden2$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectHidden2, + z.ZodTypeDef, + unknown +> = z.object({ + expr: z.string(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectHidden2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectHidden2$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectHidden2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectHidden2 +> = z.object({ + expr: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHidden2$ { + /** @deprecated use `CreateIntegrationStoreDirectHidden2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHidden2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHidden2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHidden2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHidden2$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectHidden2$Outbound; +} + +export function createIntegrationStoreDirectHidden2ToJSON( + createIntegrationStoreDirectHidden2: CreateIntegrationStoreDirectHidden2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectHidden2$outboundSchema.parse( + createIntegrationStoreDirectHidden2, + ), + ); +} + +export function createIntegrationStoreDirectHidden2FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectHidden2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectHidden2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectHidden2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectHidden3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesHidden$Outbound = + | CreateIntegrationStoreDirectHidden2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesHidden + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectHidden2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectHidden3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesHidden$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectPropertiesHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesHiddenToJSON( + createIntegrationStoreDirectPropertiesHidden: + CreateIntegrationStoreDirectPropertiesHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesHidden$outboundSchema.parse( + createIntegrationStoreDirectPropertiesHidden, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesHidden$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties8$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties8, + z.ZodTypeDef, + unknown +> = z.object({ + value: z.lazy(() => + CreateIntegrationStoreDirectPropertiesValue$inboundSchema + ), + disabled: z.union([ + z.lazy(() => CreateIntegrationStoreDirectDisabled2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectDisabled3$inboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => CreateIntegrationStoreDirectHidden2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectHidden3$inboundSchema, + ]).optional(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties8$Outbound = { + value: CreateIntegrationStoreDirectPropertiesValue$Outbound; + disabled?: + | CreateIntegrationStoreDirectDisabled2$Outbound + | boolean + | string + | undefined; + hidden?: + | CreateIntegrationStoreDirectHidden2$Outbound + | boolean + | string + | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties8$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties8$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties8 +> = z.object({ + value: z.lazy(() => + CreateIntegrationStoreDirectPropertiesValue$outboundSchema + ), + disabled: z.union([ + z.lazy(() => CreateIntegrationStoreDirectDisabled2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectDisabled3$outboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => CreateIntegrationStoreDirectHidden2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectHidden3$outboundSchema, + ]).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties8$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties8$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties8$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties8$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties8$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties8$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties8$Outbound; +} + +export function createIntegrationStoreDirectProperties8ToJSON( + createIntegrationStoreDirectProperties8: + CreateIntegrationStoreDirectProperties8, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties8$outboundSchema.parse( + createIntegrationStoreDirectProperties8, + ), + ); +} + +export function createIntegrationStoreDirectProperties8FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProperties8, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties8$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProperties8' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$Outbound = {}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectUiOptionsAtBRANDAt7822ToJSON( + createIntegrationStoreDirectUiOptionsAtBRANDAt7822: + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$outboundSchema.parse( + createIntegrationStoreDirectUiOptionsAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectUiOptionsAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsValue$inboundSchema: + z.ZodType = + z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptionsValue$Outbound = { + "__@BRAND@7822": CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$Outbound; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptionsValue + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectUiOptionsAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptionsValue$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptionsValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptionsValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsValue$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiOptionsValue$Outbound; +} + +export function createIntegrationStoreDirectUiOptionsValueToJSON( + createIntegrationStoreDirectUiOptionsValue: + CreateIntegrationStoreDirectUiOptionsValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptionsValue$outboundSchema.parse( + createIntegrationStoreDirectUiOptionsValue, + ), + ); +} + +export function createIntegrationStoreDirectUiOptionsValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiOptionsValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptionsValue$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiOptionsValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 + > = z.nativeEnum( + CreateIntegrationStoreDirectDisabledIntegrationsResponse2003, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse2003 + > = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$Outbound; +} + +export function createIntegrationStoreDirectDisabledIntegrationsResponse2002ToJSON( + createIntegrationStoreDirectDisabledIntegrationsResponse2002: + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$outboundSchema + .parse(createIntegrationStoreDirectDisabledIntegrationsResponse2002), + ); +} + +export function createIntegrationStoreDirectDisabledIntegrationsResponse2002FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse2002' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$Outbound = + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$Outbound; +} + +export function createIntegrationStoreDirectUiOptionsIntegrationsDisabledToJSON( + createIntegrationStoreDirectUiOptionsIntegrationsDisabled: + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$outboundSchema + .parse(createIntegrationStoreDirectUiOptionsIntegrationsDisabled), + ); +} + +export function createIntegrationStoreDirectUiOptionsIntegrationsDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 + > = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse2003); + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse2003 + > = CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$ { + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$ { + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$Outbound; +} + +export function createIntegrationStoreDirectHiddenIntegrationsResponse2002ToJSON( + createIntegrationStoreDirectHiddenIntegrationsResponse2002: + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$outboundSchema + .parse(createIntegrationStoreDirectHiddenIntegrationsResponse2002), + ); +} + +export function createIntegrationStoreDirectHiddenIntegrationsResponse2002FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse2002' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$Outbound = + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$Outbound; +} + +export function createIntegrationStoreDirectUiOptionsIntegrationsHiddenToJSON( + createIntegrationStoreDirectUiOptionsIntegrationsHidden: + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$outboundSchema + .parse(createIntegrationStoreDirectUiOptionsIntegrationsHidden), + ); +} + +export function createIntegrationStoreDirectUiOptionsIntegrationsHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptionsIntegrationsHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiOptionsIntegrationsHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptions3$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiOptions3, + z.ZodTypeDef, + unknown +> = z.object({ + value: z.lazy(() => CreateIntegrationStoreDirectUiOptionsValue$inboundSchema), + disabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$inboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$inboundSchema, + ]).optional(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptions3$Outbound = { + value: CreateIntegrationStoreDirectUiOptionsValue$Outbound; + disabled?: + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$Outbound + | boolean + | string + | undefined; + hidden?: + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$Outbound + | boolean + | string + | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptions3$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiOptions3$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptions3 +> = z.object({ + value: z.lazy(() => + CreateIntegrationStoreDirectUiOptionsValue$outboundSchema + ), + disabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse2003$outboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse2003$outboundSchema, + ]).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptions3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptions3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptions3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptions3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptions3$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptions3$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiOptions3$Outbound; +} + +export function createIntegrationStoreDirectUiOptions3ToJSON( + createIntegrationStoreDirectUiOptions3: + CreateIntegrationStoreDirectUiOptions3, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptions3$outboundSchema.parse( + createIntegrationStoreDirectUiOptions3, + ), + ); +} + +export function createIntegrationStoreDirectUiOptions3FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptions3$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiOptions3' from JSON`, + ); +} + +/** @internal */ +export const UiOptionsAtBRANDAt7822$inboundSchema: z.ZodType< + UiOptionsAtBRANDAt7822, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UiOptionsAtBRANDAt7822$Outbound = {}; + +/** @internal */ +export const UiOptionsAtBRANDAt7822$outboundSchema: z.ZodType< + UiOptionsAtBRANDAt7822$Outbound, + z.ZodTypeDef, + UiOptionsAtBRANDAt7822 +> = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UiOptionsAtBRANDAt7822$ { + /** @deprecated use `UiOptionsAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = UiOptionsAtBRANDAt7822$inboundSchema; + /** @deprecated use `UiOptionsAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = UiOptionsAtBRANDAt7822$outboundSchema; + /** @deprecated use `UiOptionsAtBRANDAt7822$Outbound` instead. */ + export type Outbound = UiOptionsAtBRANDAt7822$Outbound; +} + +export function uiOptionsAtBRANDAt7822ToJSON( + uiOptionsAtBRANDAt7822: UiOptionsAtBRANDAt7822, +): string { + return JSON.stringify( + UiOptionsAtBRANDAt7822$outboundSchema.parse(uiOptionsAtBRANDAt7822), + ); +} + +export function uiOptionsAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UiOptionsAtBRANDAt7822$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UiOptionsAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptions2$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiOptions2, + z.ZodTypeDef, + unknown +> = z.object({ + "__@BRAND@7822": z.lazy(() => UiOptionsAtBRANDAt7822$inboundSchema), +}).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptions2$Outbound = { + "__@BRAND@7822": UiOptionsAtBRANDAt7822$Outbound; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptions2$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiOptions2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptions2 +> = z.object({ + atBRANDAt7822: z.lazy(() => UiOptionsAtBRANDAt7822$outboundSchema), +}).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptions2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptions2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptions2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptions2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptions2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptions2$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiOptions2$Outbound; +} + +export function createIntegrationStoreDirectUiOptions2ToJSON( + createIntegrationStoreDirectUiOptions2: + CreateIntegrationStoreDirectUiOptions2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptions2$outboundSchema.parse( + createIntegrationStoreDirectUiOptions2, + ), + ); +} + +export function createIntegrationStoreDirectUiOptions2FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptions2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiOptions2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 + > = z.nativeEnum( + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3 + > = + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$Outbound; +} + +export function createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSON2ToJSON( + createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2: + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$outboundSchema + .parse( + createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2, + ), + ); +} + +export function createIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJSON2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptionsDisabled$Outbound = + | CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptionsDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptionsDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptionsDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptionsDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsDisabled$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiOptionsDisabled$Outbound; +} + +export function createIntegrationStoreDirectUiOptionsDisabledToJSON( + createIntegrationStoreDirectUiOptionsDisabled: + CreateIntegrationStoreDirectUiOptionsDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptionsDisabled$outboundSchema.parse( + createIntegrationStoreDirectUiOptionsDisabled, + ), + ); +} + +export function createIntegrationStoreDirectUiOptionsDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiOptionsDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptionsDisabled$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiOptionsDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 + > = z.nativeEnum( + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3 + > = + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$ { + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$ { + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$Outbound; +} + +export function createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSON2ToJSON( + createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2: + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$outboundSchema + .parse( + createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2, + ), + ); +} + +export function createIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJSON2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptionsHidden$Outbound = + | CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptionsHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiOptionsHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptionsHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptionsHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptionsHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptionsHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptionsHidden$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiOptionsHidden$Outbound; +} + +export function createIntegrationStoreDirectUiOptionsHiddenToJSON( + createIntegrationStoreDirectUiOptionsHidden: + CreateIntegrationStoreDirectUiOptionsHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptionsHidden$outboundSchema.parse( + createIntegrationStoreDirectUiOptionsHidden, + ), + ); +} + +export function createIntegrationStoreDirectUiOptionsHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiOptionsHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptionsHidden$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiOptionsHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptions1$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiOptions1, + z.ZodTypeDef, + unknown +> = z.object({ + value: z.string(), + label: z.string(), + disabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$inboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$inboundSchema, + ]).optional(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectUiOptions1$Outbound = { + value: string; + label: string; + disabled?: + | CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string + | undefined; + hidden?: + | CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string + | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiOptions1$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiOptions1$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiOptions1 +> = z.object({ + value: z.string(), + label: z.string(), + disabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse200ApplicationJson3$outboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse200ApplicationJson3$outboundSchema, + ]).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiOptions1$ { + /** @deprecated use `CreateIntegrationStoreDirectUiOptions1$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiOptions1$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptions1$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiOptions1$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiOptions1$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiOptions1$Outbound; +} + +export function createIntegrationStoreDirectUiOptions1ToJSON( + createIntegrationStoreDirectUiOptions1: + CreateIntegrationStoreDirectUiOptions1, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiOptions1$outboundSchema.parse( + createIntegrationStoreDirectUiOptions1, + ), + ); +} + +export function createIntegrationStoreDirectUiOptions1FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiOptions1$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiOptions1' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiOptions1$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectUiOptions2$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectUiOptions3$inboundSchema), + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$Outbound = + | CreateIntegrationStoreDirectUiOptions1$Outbound + | CreateIntegrationStoreDirectUiOptions2$Outbound + | CreateIntegrationStoreDirectUiOptions3$Outbound; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiOptions1$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectUiOptions2$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectUiOptions3$outboundSchema), + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiOptionsToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiOptionsFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiOptions' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseMaxLengthToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseMaxLengthFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseMinLengthToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseMinLength: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseMinLength, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseMinLengthFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponsePatternToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponsePattern: + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsResponsePattern), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponsePatternFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3 + > = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound; +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2ToJSON( + createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + .parse( + createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2, + ), + ); +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$Outbound = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnlyToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnlyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiReadOnly' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3 + > = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound; +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2ToJSON( + createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + .parse( + createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2, + ), + ); +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$Outbound = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHiddenToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3 + > = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound; +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2ToJSON( + createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + .parse( + createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2, + ), + ); +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$Outbound = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabledToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound; +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2ToJSON( + createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2: + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + .parse( + createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2, + ), + ); +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + ), + z.string(), + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$Outbound = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + ), + z.string(), + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescriptionToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescriptionFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiDescription' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValueToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties7$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties7, + z.ZodTypeDef, + unknown +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$inboundSchema, + "ui:control": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$inboundSchema, + "ui:options": z.array( + z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiOptions1$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectUiOptions2$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectUiOptions3$inboundSchema), + ]), + ), + enum: z.array(z.string()).optional(), + maxLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$inboundSchema + ).optional(), + minLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$inboundSchema + ).optional(), + pattern: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$inboundSchema + ).optional(), + description: z.string().optional(), + default: z.string().optional(), + "ui:label": z.string().optional(), + "ui:read-only": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema, + ]).optional(), + "ui:hidden": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema, + ]).optional(), + "ui:disabled": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$inboundSchema, + ]).optional(), + "ui:description": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$inboundSchema + ), + z.string(), + ]).optional(), + "ui:formatted-value": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$inboundSchema + ).optional(), + "ui:placeholder": z.string().optional(), +}).transform((v) => { + return remap$(v, { + "ui:control": "uiControl", + "ui:options": "uiOptions", + "ui:label": "uiLabel", + "ui:read-only": "uiReadOnly", + "ui:hidden": "uiHidden", + "ui:disabled": "uiDisabled", + "ui:description": "uiDescription", + "ui:formatted-value": "uiFormattedValue", + "ui:placeholder": "uiPlaceholder", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties7$Outbound = { + type: string; + "ui:control": string; + "ui:options": Array< + | CreateIntegrationStoreDirectUiOptions1$Outbound + | CreateIntegrationStoreDirectUiOptions2$Outbound + | CreateIntegrationStoreDirectUiOptions3$Outbound + >; + enum?: Array | undefined; + maxLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$Outbound + | undefined; + minLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$Outbound + | undefined; + pattern?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$Outbound + | undefined; + description?: string | undefined; + default?: string | undefined; + "ui:label"?: string | undefined; + "ui:read-only"?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound + | boolean + | string + | undefined; + "ui:hidden"?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound + | boolean + | string + | undefined; + "ui:disabled"?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound + | boolean + | string + | undefined; + "ui:description"?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$Outbound + | string + | undefined; + "ui:formatted-value"?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$Outbound + | undefined; + "ui:placeholder"?: string | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties7$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties7$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties7 +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreType$outboundSchema, + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiControl$outboundSchema, + uiOptions: z.array( + z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiOptions1$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectUiOptions2$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectUiOptions3$outboundSchema), + ]), + ), + enum: z.array(z.string()).optional(), + maxLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMaxLength$outboundSchema + ).optional(), + minLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseMinLength$outboundSchema + ).optional(), + pattern: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponsePattern$outboundSchema + ).optional(), + description: z.string().optional(), + default: z.string().optional(), + uiLabel: z.string().optional(), + uiReadOnly: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema, + ]).optional(), + uiHidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema, + ]).optional(), + uiDisabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBodyStore3$outboundSchema, + ]).optional(), + uiDescription: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBodyStore2$outboundSchema + ), + z.string(), + ]).optional(), + uiFormattedValue: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreUiFormattedValue$outboundSchema + ).optional(), + uiPlaceholder: z.string().optional(), +}).transform((v) => { + return remap$(v, { + uiControl: "ui:control", + uiOptions: "ui:options", + uiLabel: "ui:label", + uiReadOnly: "ui:read-only", + uiHidden: "ui:hidden", + uiDisabled: "ui:disabled", + uiDescription: "ui:description", + uiFormattedValue: "ui:formatted-value", + uiPlaceholder: "ui:placeholder", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties7$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties7$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties7$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties7$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties7$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties7$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties7$Outbound; +} + +export function createIntegrationStoreDirectProperties7ToJSON( + createIntegrationStoreDirectProperties7: + CreateIntegrationStoreDirectProperties7, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties7$outboundSchema.parse( + createIntegrationStoreDirectProperties7, + ), + ); +} + +export function createIntegrationStoreDirectProperties7FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProperties7, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties7$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProperties7' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200MinLengthToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200MinLengthFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6ItemsMaxLengthAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLengthToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLengthFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchema6AtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200PatternToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200PatternFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsItems, + z.ZodTypeDef, + unknown + > = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$inboundSchema, + description: z.string().optional(), + minLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$inboundSchema + ).optional(), + maxLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$inboundSchema + ).optional(), + pattern: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$inboundSchema + ).optional(), + default: z.string().optional(), + enum: z.array(z.string()).optional(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsItems$Outbound = { + type: string; + description?: string | undefined; + minLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$Outbound + | undefined; + maxLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$Outbound + | undefined; + pattern?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$Outbound + | undefined; + default?: string | undefined; + enum?: Array | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsItems$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsItems$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsItems + > = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductType$outboundSchema, + description: z.string().optional(), + minLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MinLength$outboundSchema + ).optional(), + maxLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200MaxLength$outboundSchema + ).optional(), + pattern: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Pattern$outboundSchema + ).optional(), + default: z.string().optional(), + enum: z.array(z.string()).optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsItems$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsItems$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsItems$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsItems$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsItems$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsItemsToJSON( + createIntegrationStoreDirectPropertiesIntegrationsItems: + CreateIntegrationStoreDirectPropertiesIntegrationsItems, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsItems$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsItems), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsItemsFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsItems, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsItems' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectDisabledIntegrations3); + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrations3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabledIntegrations3$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrations3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabledIntegrations3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrations2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectDisabledIntegrations2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectDisabledIntegrations2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrations2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectDisabledIntegrations2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectDisabledIntegrations2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabledIntegrations2$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrations2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabledIntegrations2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrations2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabledIntegrations2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrations2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectDisabledIntegrations2$Outbound; +} + +export function createIntegrationStoreDirectDisabledIntegrations2ToJSON( + createIntegrationStoreDirectDisabledIntegrations2: + CreateIntegrationStoreDirectDisabledIntegrations2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectDisabledIntegrations2$outboundSchema.parse( + createIntegrationStoreDirectDisabledIntegrations2, + ), + ); +} + +export function createIntegrationStoreDirectDisabledIntegrations2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectDisabledIntegrations2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectDisabledIntegrations2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrations2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$Outbound = + | CreateIntegrationStoreDirectDisabledIntegrations2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrations3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsDisabledToJSON( + createIntegrationStoreDirectPropertiesIntegrationsDisabled: + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsDisabled), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectHiddenIntegrations3); + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrations3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHiddenIntegrations3$ { + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrations3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHiddenIntegrations3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrations2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHiddenIntegrations2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectHiddenIntegrations2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrations2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHiddenIntegrations2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectHiddenIntegrations2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHiddenIntegrations2$ { + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrations2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHiddenIntegrations2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrations2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHiddenIntegrations2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrations2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectHiddenIntegrations2$Outbound; +} + +export function createIntegrationStoreDirectHiddenIntegrations2ToJSON( + createIntegrationStoreDirectHiddenIntegrations2: + CreateIntegrationStoreDirectHiddenIntegrations2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectHiddenIntegrations2$outboundSchema.parse( + createIntegrationStoreDirectHiddenIntegrations2, + ), + ); +} + +export function createIntegrationStoreDirectHiddenIntegrations2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectHiddenIntegrations2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectHiddenIntegrations2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrations2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectHiddenIntegrations2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsHidden$Outbound = + | CreateIntegrationStoreDirectHiddenIntegrations2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrations3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsHiddenToJSON( + createIntegrationStoreDirectPropertiesIntegrationsHidden: + CreateIntegrationStoreDirectPropertiesIntegrationsHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsHidden$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsHidden), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions, + z.ZodTypeDef, + unknown + > = z.object({ + value: z.string(), + label: z.string(), + disabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrations3$inboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrations3$inboundSchema, + ]).optional(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$Outbound = + { + value: string; + label: string; + disabled?: + | CreateIntegrationStoreDirectDisabledIntegrations2$Outbound + | boolean + | string + | undefined; + hidden?: + | CreateIntegrationStoreDirectHiddenIntegrations2$Outbound + | boolean + | string + | undefined; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions + > = z.object({ + value: z.string(), + label: z.string(), + disabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrations3$outboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrations3$outboundSchema, + ]).optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiOptionsToJSON( + createIntegrationStoreDirectPropertiesIntegrationsUiOptions: + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsUiOptions), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiOptionsFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 + > = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$Outbound; +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2ToJSON( + createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + .parse( + createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2, + ), + ); +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$Outbound = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnlyToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnlyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiReadOnly' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3 + > = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$Outbound; +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2ToJSON( + createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + .parse( + createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2, + ), + ); +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$Outbound = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHiddenToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3 + > = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$Outbound; +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2ToJSON( + createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + .parse( + createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2, + ), + ); +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$Outbound = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabledToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$Outbound; +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2ToJSON( + createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2: + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + .parse( + createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2, + ), + ); +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + ), + z.string(), + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$Outbound = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$Outbound + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + ), + z.string(), + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescriptionToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescriptionFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiDescription' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValueToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties6$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties6, + z.ZodTypeDef, + unknown +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$inboundSchema, + items: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsItems$inboundSchema + ), + "ui:control": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$inboundSchema, + "ui:options": z.array( + z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$inboundSchema + ), + ), + maxItems: z.number().optional(), + minItems: z.number().optional(), + description: z.string().optional(), + "ui:label": z.string().optional(), + "ui:read-only": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema, + ]).optional(), + "ui:hidden": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema, + ]).optional(), + "ui:disabled": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$inboundSchema, + ]).optional(), + "ui:description": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$inboundSchema + ), + z.string(), + ]).optional(), + "ui:formatted-value": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$inboundSchema + ).optional(), + "ui:placeholder": z.string().optional(), + default: z.array(z.string()).optional(), + example: z.array(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + "ui:control": "uiControl", + "ui:options": "uiOptions", + "ui:label": "uiLabel", + "ui:read-only": "uiReadOnly", + "ui:hidden": "uiHidden", + "ui:disabled": "uiDisabled", + "ui:description": "uiDescription", + "ui:formatted-value": "uiFormattedValue", + "ui:placeholder": "uiPlaceholder", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties6$Outbound = { + type: string; + items: CreateIntegrationStoreDirectPropertiesIntegrationsItems$Outbound; + "ui:control": string; + "ui:options": Array< + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$Outbound + >; + maxItems?: number | undefined; + minItems?: number | undefined; + description?: string | undefined; + "ui:label"?: string | undefined; + "ui:read-only"?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$Outbound + | boolean + | string + | undefined; + "ui:hidden"?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$Outbound + | boolean + | string + | undefined; + "ui:disabled"?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$Outbound + | boolean + | string + | undefined; + "ui:description"?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$Outbound + | string + | undefined; + "ui:formatted-value"?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$Outbound + | undefined; + "ui:placeholder"?: string | undefined; + default?: Array | undefined; + example?: Array | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties6$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties6$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties6 +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyType$outboundSchema, + items: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsItems$outboundSchema + ), + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiControl$outboundSchema, + uiOptions: z.array( + z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsUiOptions$outboundSchema + ), + ), + maxItems: z.number().optional(), + minItems: z.number().optional(), + description: z.string().optional(), + uiLabel: z.string().optional(), + uiReadOnly: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema, + ]).optional(), + uiHidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema, + ]).optional(), + uiDisabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSONResponseBody3$outboundSchema, + ]).optional(), + uiDescription: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSONResponseBody2$outboundSchema + ), + z.string(), + ]).optional(), + uiFormattedValue: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyUiFormattedValue$outboundSchema + ).optional(), + uiPlaceholder: z.string().optional(), + default: z.array(z.string()).optional(), + example: z.array(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + uiControl: "ui:control", + uiOptions: "ui:options", + uiLabel: "ui:label", + uiReadOnly: "ui:read-only", + uiHidden: "ui:hidden", + uiDisabled: "ui:disabled", + uiDescription: "ui:description", + uiFormattedValue: "ui:formatted-value", + uiPlaceholder: "ui:placeholder", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties6$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties6$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties6$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties6$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties6$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties6$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties6$Outbound; +} + +export function createIntegrationStoreDirectProperties6ToJSON( + createIntegrationStoreDirectProperties6: + CreateIntegrationStoreDirectProperties6, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties6$outboundSchema.parse( + createIntegrationStoreDirectProperties6, + ), + ); +} + +export function createIntegrationStoreDirectProperties6FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProperties6, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties6$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProperties6' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse3 + > = z.nativeEnum(CreateIntegrationStoreDirectDisabledIntegrationsResponse3); + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectDisabledIntegrationsResponse3 + > = CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabledIntegrationsResponse3$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectDisabledIntegrationsResponse2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectDisabledIntegrationsResponse2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectDisabledIntegrationsResponse2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectDisabledIntegrationsResponse2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDisabledIntegrationsResponse2$ { + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDisabledIntegrationsResponse2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$Outbound; +} + +export function createIntegrationStoreDirectDisabledIntegrationsResponse2ToJSON( + createIntegrationStoreDirectDisabledIntegrationsResponse2: + CreateIntegrationStoreDirectDisabledIntegrationsResponse2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$outboundSchema + .parse(createIntegrationStoreDirectDisabledIntegrationsResponse2), + ); +} + +export function createIntegrationStoreDirectDisabledIntegrationsResponse2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectDisabledIntegrationsResponse2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectDisabledIntegrationsResponse2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$Outbound = + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseDisabledToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseDisabled: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseDisabled, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse3 + > = z.nativeEnum(CreateIntegrationStoreDirectHiddenIntegrationsResponse3); + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectHiddenIntegrationsResponse3 + > = CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHiddenIntegrationsResponse3$ { + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHiddenIntegrationsResponse2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectHiddenIntegrationsResponse2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectHiddenIntegrationsResponse2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectHiddenIntegrationsResponse2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHiddenIntegrationsResponse2$ { + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHiddenIntegrationsResponse2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$Outbound; +} + +export function createIntegrationStoreDirectHiddenIntegrationsResponse2ToJSON( + createIntegrationStoreDirectHiddenIntegrationsResponse2: + CreateIntegrationStoreDirectHiddenIntegrationsResponse2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$outboundSchema + .parse(createIntegrationStoreDirectHiddenIntegrationsResponse2), + ); +} + +export function createIntegrationStoreDirectHiddenIntegrationsResponse2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectHiddenIntegrationsResponse2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectHiddenIntegrationsResponse2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$Outbound = + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseHiddenToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseHidden: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsResponseHidden), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiOptions$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiOptions, + z.ZodTypeDef, + unknown + > = z.object({ + value: z.string(), + label: z.string(), + disabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse3$inboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse3$inboundSchema, + ]).optional(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesUiOptions$Outbound = { + value: string; + label: string; + disabled?: + | CreateIntegrationStoreDirectDisabledIntegrationsResponse2$Outbound + | boolean + | string + | undefined; + hidden?: + | CreateIntegrationStoreDirectHiddenIntegrationsResponse2$Outbound + | boolean + | string + | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiOptions$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiOptions$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesUiOptions + > = z.object({ + value: z.string(), + label: z.string(), + disabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectDisabledIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectDisabledIntegrationsResponse3$outboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectHiddenIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectHiddenIntegrationsResponse3$outboundSchema, + ]).optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesUiOptions$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiOptions$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesUiOptions$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiOptions$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesUiOptions$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiOptions$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesUiOptions$Outbound; +} + +export function createIntegrationStoreDirectPropertiesUiOptionsToJSON( + createIntegrationStoreDirectPropertiesUiOptions: + CreateIntegrationStoreDirectPropertiesUiOptions, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesUiOptions$outboundSchema.parse( + createIntegrationStoreDirectPropertiesUiOptions, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesUiOptionsFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesUiOptions, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesUiOptions$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesUiOptions' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsMaxLengthToJSON( + createIntegrationStoreDirectPropertiesIntegrationsMaxLength: + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsMaxLength), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsMaxLengthFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsMinLengthToJSON( + createIntegrationStoreDirectPropertiesIntegrationsMinLength: + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsMinLength), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsMinLengthFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsMinLength' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsPattern$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsPattern, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsPattern$Outbound = + { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$Outbound; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsPattern$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsPattern$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsPattern + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200AtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsPattern$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsPattern$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsPattern$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsPattern$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsPattern$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsPattern$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsPattern$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsPatternToJSON( + createIntegrationStoreDirectPropertiesIntegrationsPattern: + CreateIntegrationStoreDirectPropertiesIntegrationsPattern, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsPattern$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsPattern), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsPatternFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsPattern, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsPattern$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsPattern' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3 + > = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$Outbound; +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSON2ToJSON( + createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$outboundSchema + .parse( + createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2, + ), + ); +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJSON2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$Outbound = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnlyToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnlyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiReadOnly' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3 + > = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$Outbound; +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSON2ToJSON( + createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$outboundSchema + .parse( + createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2, + ), + ); +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJSON2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$Outbound = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHiddenToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3 + > = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$Outbound; +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSON2ToJSON( + createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$outboundSchema + .parse( + createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2, + ), + ); +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJSON2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$Outbound = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabledToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$Outbound; +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSON2ToJSON( + createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2: + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$outboundSchema + .parse( + createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2, + ), + ); +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJSON2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.string(), + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$Outbound = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$Outbound + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.string(), + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescriptionToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescriptionFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiDescription' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValueToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties5$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties5, + z.ZodTypeDef, + unknown +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$inboundSchema, + "ui:control": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$inboundSchema, + "ui:options": z.array( + z.lazy(() => CreateIntegrationStoreDirectPropertiesUiOptions$inboundSchema), + ), + enum: z.array(z.string()).optional(), + maxLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$inboundSchema + ).optional(), + minLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$inboundSchema + ).optional(), + pattern: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsPattern$inboundSchema + ).optional(), + description: z.string().optional(), + default: z.string().optional(), + "ui:label": z.string().optional(), + "ui:read-only": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$inboundSchema, + ]).optional(), + "ui:hidden": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$inboundSchema, + ]).optional(), + "ui:disabled": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$inboundSchema, + ]).optional(), + "ui:description": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$inboundSchema + ), + z.string(), + ]).optional(), + "ui:formatted-value": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$inboundSchema + ).optional(), + "ui:placeholder": z.string().optional(), +}).transform((v) => { + return remap$(v, { + "ui:control": "uiControl", + "ui:options": "uiOptions", + "ui:label": "uiLabel", + "ui:read-only": "uiReadOnly", + "ui:hidden": "uiHidden", + "ui:disabled": "uiDisabled", + "ui:description": "uiDescription", + "ui:formatted-value": "uiFormattedValue", + "ui:placeholder": "uiPlaceholder", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties5$Outbound = { + type: string; + "ui:control": string; + "ui:options": Array; + enum?: Array | undefined; + maxLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$Outbound + | undefined; + minLength?: + | CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$Outbound + | undefined; + pattern?: + | CreateIntegrationStoreDirectPropertiesIntegrationsPattern$Outbound + | undefined; + description?: string | undefined; + default?: string | undefined; + "ui:label"?: string | undefined; + "ui:read-only"?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string + | undefined; + "ui:hidden"?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string + | undefined; + "ui:disabled"?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$Outbound + | boolean + | string + | undefined; + "ui:description"?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$Outbound + | string + | undefined; + "ui:formatted-value"?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$Outbound + | undefined; + "ui:placeholder"?: string | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties5$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties5$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties5 +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONType$outboundSchema, + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiControl$outboundSchema, + uiOptions: z.array( + z.lazy(() => + CreateIntegrationStoreDirectPropertiesUiOptions$outboundSchema + ), + ), + enum: z.array(z.string()).optional(), + maxLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsMaxLength$outboundSchema + ).optional(), + minLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsMinLength$outboundSchema + ).optional(), + pattern: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsPattern$outboundSchema + ).optional(), + description: z.string().optional(), + default: z.string().optional(), + uiLabel: z.string().optional(), + uiReadOnly: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse200ApplicationJson3$outboundSchema, + ]).optional(), + uiHidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse200ApplicationJson3$outboundSchema, + ]).optional(), + uiDisabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse200ApplicationJson3$outboundSchema, + ]).optional(), + uiDescription: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse200ApplicationJson2$outboundSchema + ), + z.string(), + ]).optional(), + uiFormattedValue: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONUiFormattedValue$outboundSchema + ).optional(), + uiPlaceholder: z.string().optional(), +}).transform((v) => { + return remap$(v, { + uiControl: "ui:control", + uiOptions: "ui:options", + uiLabel: "ui:label", + uiReadOnly: "ui:read-only", + uiHidden: "ui:hidden", + uiDisabled: "ui:disabled", + uiDescription: "ui:description", + uiFormattedValue: "ui:formatted-value", + uiPlaceholder: "ui:placeholder", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties5$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties5$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties5$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties5$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties5$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties5$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties5$Outbound; +} + +export function createIntegrationStoreDirectProperties5ToJSON( + createIntegrationStoreDirectProperties5: + CreateIntegrationStoreDirectProperties5, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties5$outboundSchema.parse( + createIntegrationStoreDirectProperties5, + ), + ); +} + +export function createIntegrationStoreDirectProperties5FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProperties5, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties5$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProperties5' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesItems$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesItems, + z.ZodTypeDef, + unknown + > = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$inboundSchema, + description: z.string().optional(), + minimum: z.number().optional(), + exclusiveMinimum: z.number().optional(), + maximum: z.number().optional(), + exclusiveMaximum: z.number().optional(), + default: z.number().optional(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesItems$Outbound = { + type: string; + description?: string | undefined; + minimum?: number | undefined; + exclusiveMinimum?: number | undefined; + maximum?: number | undefined; + exclusiveMaximum?: number | undefined; + default?: number | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesItems$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesItems$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesItems + > = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaType$outboundSchema, + description: z.string().optional(), + minimum: z.number().optional(), + exclusiveMinimum: z.number().optional(), + maximum: z.number().optional(), + exclusiveMaximum: z.number().optional(), + default: z.number().optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesItems$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesItems$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesItems$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesItems$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesItems$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesItems$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectPropertiesItems$Outbound; +} + +export function createIntegrationStoreDirectPropertiesItemsToJSON( + createIntegrationStoreDirectPropertiesItems: + CreateIntegrationStoreDirectPropertiesItems, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesItems$outboundSchema.parse( + createIntegrationStoreDirectPropertiesItems, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesItemsFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesItems, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesItems$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesItems' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003 + > = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$Outbound; +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002ToJSON( + createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$outboundSchema + .parse(createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002), + ); +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$Outbound = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnlyToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnlyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiReadOnly' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003 + > = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$Outbound; +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse2002ToJSON( + createIntegrationStoreDirectUiHiddenIntegrationsResponse2002: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$outboundSchema + .parse(createIntegrationStoreDirectUiHiddenIntegrationsResponse2002), + ); +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse2002FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$Outbound = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiHiddenToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 + > = z.nativeEnum( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003 + > = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$Outbound; +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse2002ToJSON( + createIntegrationStoreDirectUiDisabledIntegrationsResponse2002: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$outboundSchema + .parse(createIntegrationStoreDirectUiDisabledIntegrationsResponse2002), + ); +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse2002FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$Outbound = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabledToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$Outbound; +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse2002ToJSON( + createIntegrationStoreDirectUiDescriptionIntegrationsResponse2002: + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$outboundSchema + .parse(createIntegrationStoreDirectUiDescriptionIntegrationsResponse2002), + ); +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse2002FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema + ), + z.string(), + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$Outbound = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$Outbound + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$outboundSchema + ), + z.string(), + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescriptionToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescriptionFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiDescription' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValueToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties4$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties4, + z.ZodTypeDef, + unknown +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$inboundSchema, + items: z.lazy(() => + CreateIntegrationStoreDirectPropertiesItems$inboundSchema + ), + "ui:control": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$inboundSchema, + "ui:steps": z.array(z.number()), + maxItems: z.number().optional(), + minItems: z.number().optional(), + description: z.string().optional(), + "ui:label": z.string().optional(), + "ui:read-only": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$inboundSchema, + ]).optional(), + "ui:hidden": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$inboundSchema, + ]).optional(), + "ui:disabled": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$inboundSchema, + ]).optional(), + "ui:description": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$inboundSchema + ), + z.string(), + ]).optional(), + "ui:formatted-value": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$inboundSchema + ).optional(), + default: z.array(z.number()).optional(), +}).transform((v) => { + return remap$(v, { + "ui:control": "uiControl", + "ui:steps": "uiSteps", + "ui:label": "uiLabel", + "ui:read-only": "uiReadOnly", + "ui:hidden": "uiHidden", + "ui:disabled": "uiDisabled", + "ui:description": "uiDescription", + "ui:formatted-value": "uiFormattedValue", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties4$Outbound = { + type: string; + items: CreateIntegrationStoreDirectPropertiesItems$Outbound; + "ui:control": string; + "ui:steps": Array; + maxItems?: number | undefined; + minItems?: number | undefined; + description?: string | undefined; + "ui:label"?: string | undefined; + "ui:read-only"?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$Outbound + | boolean + | string + | undefined; + "ui:hidden"?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$Outbound + | boolean + | string + | undefined; + "ui:disabled"?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$Outbound + | boolean + | string + | undefined; + "ui:description"?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$Outbound + | string + | undefined; + "ui:formatted-value"?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$Outbound + | undefined; + default?: Array | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties4$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties4$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties4 +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200Type$outboundSchema, + items: z.lazy(() => + CreateIntegrationStoreDirectPropertiesItems$outboundSchema + ), + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiControl$outboundSchema, + uiSteps: z.array(z.number()), + maxItems: z.number().optional(), + minItems: z.number().optional(), + description: z.string().optional(), + uiLabel: z.string().optional(), + uiReadOnly: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2003$outboundSchema, + ]).optional(), + uiHidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2003$outboundSchema, + ]).optional(), + uiDisabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2002$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2003$outboundSchema, + ]).optional(), + uiDescription: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2002$outboundSchema + ), + z.string(), + ]).optional(), + uiFormattedValue: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200UiFormattedValue$outboundSchema + ).optional(), + default: z.array(z.number()).optional(), +}).transform((v) => { + return remap$(v, { + uiControl: "ui:control", + uiSteps: "ui:steps", + uiLabel: "ui:label", + uiReadOnly: "ui:read-only", + uiHidden: "ui:hidden", + uiDisabled: "ui:disabled", + uiDescription: "ui:description", + uiFormattedValue: "ui:formatted-value", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties4$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties4$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties4$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties4$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties4$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties4$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties4$Outbound; +} + +export function createIntegrationStoreDirectProperties4ToJSON( + createIntegrationStoreDirectProperties4: + CreateIntegrationStoreDirectProperties4, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties4$outboundSchema.parse( + createIntegrationStoreDirectProperties4, + ), + ); +} + +export function createIntegrationStoreDirectProperties4FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProperties4, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties4$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProperties4' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseType + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseType, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseType + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl + > = z.nativeEnum( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl + > = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 + > = z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3); + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3 + > = CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$Outbound; +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2ToJSON( + createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2: + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$outboundSchema + .parse(createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2), + ); +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrationsResponse2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$Outbound = + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnlyToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnlyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiReadOnly' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 + > = z.nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3); + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3 + > = CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$Outbound; +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse2ToJSON( + createIntegrationStoreDirectUiHiddenIntegrationsResponse2: + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$outboundSchema + .parse(createIntegrationStoreDirectUiHiddenIntegrationsResponse2), + ); +} + +export function createIntegrationStoreDirectUiHiddenIntegrationsResponse2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$Outbound = + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiHiddenToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 + > = z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3); + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3 + > = CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$Outbound; +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse2ToJSON( + createIntegrationStoreDirectUiDisabledIntegrationsResponse2: + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$outboundSchema + .parse(createIntegrationStoreDirectUiDisabledIntegrationsResponse2), + ); +} + +export function createIntegrationStoreDirectUiDisabledIntegrationsResponse2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$Outbound = + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabledToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$Outbound; +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse2ToJSON( + createIntegrationStoreDirectUiDescriptionIntegrationsResponse2: + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$outboundSchema + .parse(createIntegrationStoreDirectUiDescriptionIntegrationsResponse2), + ); +} + +export function createIntegrationStoreDirectUiDescriptionIntegrationsResponse2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema + ), + z.string(), + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$Outbound = + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$Outbound + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$outboundSchema + ), + z.string(), + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiDescriptionToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiDescriptionFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiDescription' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValueToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties3$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties3, + z.ZodTypeDef, + unknown +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$inboundSchema, + "ui:control": + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$inboundSchema, + description: z.string().optional(), + default: z.boolean().optional(), + "ui:label": z.string().optional(), + "ui:read-only": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$inboundSchema, + ]).optional(), + "ui:hidden": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$inboundSchema, + ]).optional(), + "ui:disabled": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$inboundSchema, + ]).optional(), + "ui:description": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$inboundSchema + ), + z.string(), + ]).optional(), + "ui:formatted-value": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$inboundSchema + ).optional(), +}).transform((v) => { + return remap$(v, { + "ui:control": "uiControl", + "ui:label": "uiLabel", + "ui:read-only": "uiReadOnly", + "ui:hidden": "uiHidden", + "ui:disabled": "uiDisabled", + "ui:description": "uiDescription", + "ui:formatted-value": "uiFormattedValue", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties3$Outbound = { + type: string; + "ui:control": string; + description?: string | undefined; + default?: boolean | undefined; + "ui:label"?: string | undefined; + "ui:read-only"?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$Outbound + | boolean + | string + | undefined; + "ui:hidden"?: + | CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$Outbound + | boolean + | string + | undefined; + "ui:disabled"?: + | CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$Outbound + | boolean + | string + | undefined; + "ui:description"?: + | CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$Outbound + | string + | undefined; + "ui:formatted-value"?: + | CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$Outbound + | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties3$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties3$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties3 +> = z.object({ + type: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseType$outboundSchema, + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiControl$outboundSchema, + description: z.string().optional(), + default: z.boolean().optional(), + uiLabel: z.string().optional(), + uiReadOnly: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrationsResponse3$outboundSchema, + ]).optional(), + uiHidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrationsResponse3$outboundSchema, + ]).optional(), + uiDisabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrationsResponse3$outboundSchema, + ]).optional(), + uiDescription: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrationsResponse2$outboundSchema + ), + z.string(), + ]).optional(), + uiFormattedValue: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponseUiFormattedValue$outboundSchema + ).optional(), +}).transform((v) => { + return remap$(v, { + uiControl: "ui:control", + uiLabel: "ui:label", + uiReadOnly: "ui:read-only", + uiHidden: "ui:hidden", + uiDisabled: "ui:disabled", + uiDescription: "ui:description", + uiFormattedValue: "ui:formatted-value", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties3$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties3$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties3$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties3$Outbound; +} + +export function createIntegrationStoreDirectProperties3ToJSON( + createIntegrationStoreDirectProperties3: + CreateIntegrationStoreDirectProperties3, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties3$outboundSchema.parse( + createIntegrationStoreDirectProperties3, + ), + ); +} + +export function createIntegrationStoreDirectProperties3FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProperties3, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties3$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProperties3' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsType$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsType + > = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsType); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsType$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsType + > = CreateIntegrationStoreDirectPropertiesIntegrationsType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsType$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$inboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsUiControl + > = z.nativeEnum(CreateIntegrationStoreDirectPropertiesIntegrationsUiControl); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$outboundSchema: + z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectPropertiesIntegrationsUiControl + > = CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema: + z.ZodNativeEnum = + z.nativeEnum(CreateIntegrationStoreDirectUiReadOnlyIntegrations3); + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrations3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrations3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrations3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrations3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrations2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrations2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiReadOnlyIntegrations2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnlyIntegrations2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiReadOnlyIntegrations2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnlyIntegrations2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrations2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrations2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnlyIntegrations2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$Outbound; +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrations2ToJSON( + createIntegrationStoreDirectUiReadOnlyIntegrations2: + CreateIntegrationStoreDirectUiReadOnlyIntegrations2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$outboundSchema.parse( + createIntegrationStoreDirectUiReadOnlyIntegrations2, + ), + ); +} + +export function createIntegrationStoreDirectUiReadOnlyIntegrations2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiReadOnlyIntegrations2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiReadOnlyIntegrations2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$Outbound = + | CreateIntegrationStoreDirectUiReadOnlyIntegrations2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrations3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiReadOnlyToJSON( + createIntegrationStoreDirectPropertiesIntegrationsUiReadOnly: + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsUiReadOnly), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiReadOnlyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiReadOnly' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectUiHiddenIntegrations3); + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrations3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrations3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrations3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrations3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrations2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrations2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiHiddenIntegrations2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiHiddenIntegrations2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiHiddenIntegrations2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiHiddenIntegrations2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHiddenIntegrations2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrations2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrations2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrations2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHiddenIntegrations2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHiddenIntegrations2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiHiddenIntegrations2$Outbound; +} + +export function createIntegrationStoreDirectUiHiddenIntegrations2ToJSON( + createIntegrationStoreDirectUiHiddenIntegrations2: + CreateIntegrationStoreDirectUiHiddenIntegrations2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiHiddenIntegrations2$outboundSchema.parse( + createIntegrationStoreDirectUiHiddenIntegrations2, + ), + ); +} + +export function createIntegrationStoreDirectUiHiddenIntegrations2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiHiddenIntegrations2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiHiddenIntegrations2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiHiddenIntegrations2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$Outbound = + | CreateIntegrationStoreDirectUiHiddenIntegrations2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrations3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiHiddenToJSON( + createIntegrationStoreDirectPropertiesIntegrationsUiHidden: + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsUiHidden), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema: + z.ZodNativeEnum = + z.nativeEnum(CreateIntegrationStoreDirectUiDisabledIntegrations3); + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrations3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrations3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrations3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrations3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrations2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrations2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDisabledIntegrations2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabledIntegrations2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDisabledIntegrations2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDisabledIntegrations2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabledIntegrations2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrations2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrations2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrations2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabledIntegrations2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabledIntegrations2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDisabledIntegrations2$Outbound; +} + +export function createIntegrationStoreDirectUiDisabledIntegrations2ToJSON( + createIntegrationStoreDirectUiDisabledIntegrations2: + CreateIntegrationStoreDirectUiDisabledIntegrations2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDisabledIntegrations2$outboundSchema.parse( + createIntegrationStoreDirectUiDisabledIntegrations2, + ), + ); +} + +export function createIntegrationStoreDirectUiDisabledIntegrations2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDisabledIntegrations2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDisabledIntegrations2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiDisabledIntegrations2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$Outbound = + | CreateIntegrationStoreDirectUiDisabledIntegrations2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrations3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiDisabledToJSON( + createIntegrationStoreDirectPropertiesIntegrationsUiDisabled: + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsUiDisabled), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrations2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDescriptionIntegrations2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescriptionIntegrations2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescriptionIntegrations2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDescriptionIntegrations2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDescriptionIntegrations2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrations2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDescriptionIntegrations2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescriptionIntegrations2$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectUiDescriptionIntegrations2$Outbound; +} + +export function createIntegrationStoreDirectUiDescriptionIntegrations2ToJSON( + createIntegrationStoreDirectUiDescriptionIntegrations2: + CreateIntegrationStoreDirectUiDescriptionIntegrations2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDescriptionIntegrations2$outboundSchema.parse( + createIntegrationStoreDirectUiDescriptionIntegrations2, + ), + ); +} + +export function createIntegrationStoreDirectUiDescriptionIntegrations2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDescriptionIntegrations2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiDescriptionIntegrations2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema + ), + z.string(), + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$Outbound = + | CreateIntegrationStoreDirectUiDescriptionIntegrations2$Outbound + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription + > = z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrations2$outboundSchema + ), + z.string(), + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiDescriptionToJSON( + createIntegrationStoreDirectPropertiesIntegrationsUiDescription: + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$outboundSchema + .parse(createIntegrationStoreDirectPropertiesIntegrationsUiDescription), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiDescriptionFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiDescription' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$Outbound = + { + expr: string; + }; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiFormattedValueToJSON( + createIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue: + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsUiFormattedValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties2$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties2, + z.ZodTypeDef, + unknown +> = z.object({ + type: CreateIntegrationStoreDirectPropertiesIntegrationsType$inboundSchema, + "ui:control": + CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$inboundSchema, + maximum: z.number().optional(), + exclusiveMaximum: z.number().optional(), + minimum: z.number().optional(), + exclusiveMinimum: z.number().optional(), + description: z.string().optional(), + default: z.number().optional(), + "ui:label": z.string().optional(), + "ui:read-only": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrations3$inboundSchema, + ]).optional(), + "ui:hidden": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrations3$inboundSchema, + ]).optional(), + "ui:disabled": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrations2$inboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrations3$inboundSchema, + ]).optional(), + "ui:description": z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrations2$inboundSchema + ), + z.string(), + ]).optional(), + "ui:formatted-value": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$inboundSchema + ).optional(), + "ui:placeholder": z.string().optional(), +}).transform((v) => { + return remap$(v, { + "ui:control": "uiControl", + "ui:label": "uiLabel", + "ui:read-only": "uiReadOnly", + "ui:hidden": "uiHidden", + "ui:disabled": "uiDisabled", + "ui:description": "uiDescription", + "ui:formatted-value": "uiFormattedValue", + "ui:placeholder": "uiPlaceholder", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties2$Outbound = { + type: string; + "ui:control": string; + maximum?: number | undefined; + exclusiveMaximum?: number | undefined; + minimum?: number | undefined; + exclusiveMinimum?: number | undefined; + description?: string | undefined; + default?: number | undefined; + "ui:label"?: string | undefined; + "ui:read-only"?: + | CreateIntegrationStoreDirectUiReadOnlyIntegrations2$Outbound + | boolean + | string + | undefined; + "ui:hidden"?: + | CreateIntegrationStoreDirectUiHiddenIntegrations2$Outbound + | boolean + | string + | undefined; + "ui:disabled"?: + | CreateIntegrationStoreDirectUiDisabledIntegrations2$Outbound + | boolean + | string + | undefined; + "ui:description"?: + | CreateIntegrationStoreDirectUiDescriptionIntegrations2$Outbound + | string + | undefined; + "ui:formatted-value"?: + | CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$Outbound + | undefined; + "ui:placeholder"?: string | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties2$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties2 +> = z.object({ + type: CreateIntegrationStoreDirectPropertiesIntegrationsType$outboundSchema, + uiControl: + CreateIntegrationStoreDirectPropertiesIntegrationsUiControl$outboundSchema, + maximum: z.number().optional(), + exclusiveMaximum: z.number().optional(), + minimum: z.number().optional(), + exclusiveMinimum: z.number().optional(), + description: z.string().optional(), + default: z.number().optional(), + uiLabel: z.string().optional(), + uiReadOnly: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiReadOnlyIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnlyIntegrations3$outboundSchema, + ]).optional(), + uiHidden: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiHiddenIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiHiddenIntegrations3$outboundSchema, + ]).optional(), + uiDisabled: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDisabledIntegrations2$outboundSchema + ), + z.boolean(), + CreateIntegrationStoreDirectUiDisabledIntegrations3$outboundSchema, + ]).optional(), + uiDescription: z.union([ + z.lazy(() => + CreateIntegrationStoreDirectUiDescriptionIntegrations2$outboundSchema + ), + z.string(), + ]).optional(), + uiFormattedValue: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsUiFormattedValue$outboundSchema + ).optional(), + uiPlaceholder: z.string().optional(), +}).transform((v) => { + return remap$(v, { + uiControl: "ui:control", + uiLabel: "ui:label", + uiReadOnly: "ui:read-only", + uiHidden: "ui:hidden", + uiDisabled: "ui:disabled", + uiDescription: "ui:description", + uiFormattedValue: "ui:formatted-value", + uiPlaceholder: "ui:placeholder", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties2$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties2$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties2$Outbound; +} + +export function createIntegrationStoreDirectProperties2ToJSON( + createIntegrationStoreDirectProperties2: + CreateIntegrationStoreDirectProperties2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties2$outboundSchema.parse( + createIntegrationStoreDirectProperties2, + ), + ); +} + +export function createIntegrationStoreDirectProperties2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProperties2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProperties2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesType$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectPropertiesType); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesType$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectPropertiesType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesType$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiControl$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectPropertiesUiControl); + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiControl$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectPropertiesUiControl$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesUiControl$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiControl$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesUiControl$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiControl$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesUiControl$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$Outbound = + {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$outboundSchema + .parse( + createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesMaxLength$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesMaxLength, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesMaxLength$Outbound = { + "__@BRAND@7822": + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$Outbound; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesMaxLength$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesMaxLength$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesMaxLength + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesIntegrationsResponse200ApplicationJSONResponseBodyStoreProductMetadataSchemaAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesMaxLength$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesMaxLength$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesMaxLength$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesMaxLength$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesMaxLength$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesMaxLength$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesMaxLength$Outbound; +} + +export function createIntegrationStoreDirectPropertiesMaxLengthToJSON( + createIntegrationStoreDirectPropertiesMaxLength: + CreateIntegrationStoreDirectPropertiesMaxLength, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesMaxLength$outboundSchema.parse( + createIntegrationStoreDirectPropertiesMaxLength, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesMaxLengthFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesMaxLength, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesMaxLength$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesMaxLength' from JSON`, + ); +} + +/** @internal */ +export const PropertiesAtBRANDAt7822$inboundSchema: z.ZodType< + PropertiesAtBRANDAt7822, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type PropertiesAtBRANDAt7822$Outbound = {}; + +/** @internal */ +export const PropertiesAtBRANDAt7822$outboundSchema: z.ZodType< + PropertiesAtBRANDAt7822$Outbound, + z.ZodTypeDef, + PropertiesAtBRANDAt7822 +> = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PropertiesAtBRANDAt7822$ { + /** @deprecated use `PropertiesAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = PropertiesAtBRANDAt7822$inboundSchema; + /** @deprecated use `PropertiesAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = PropertiesAtBRANDAt7822$outboundSchema; + /** @deprecated use `PropertiesAtBRANDAt7822$Outbound` instead. */ + export type Outbound = PropertiesAtBRANDAt7822$Outbound; +} + +export function propertiesAtBRANDAt7822ToJSON( + propertiesAtBRANDAt7822: PropertiesAtBRANDAt7822, +): string { + return JSON.stringify( + PropertiesAtBRANDAt7822$outboundSchema.parse(propertiesAtBRANDAt7822), + ); +} + +export function propertiesAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => PropertiesAtBRANDAt7822$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PropertiesAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesMinLength$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesMinLength, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => PropertiesAtBRANDAt7822$inboundSchema), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesMinLength$Outbound = { + "__@BRAND@7822": PropertiesAtBRANDAt7822$Outbound; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesMinLength$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesMinLength$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesMinLength + > = z.object({ + atBRANDAt7822: z.lazy(() => PropertiesAtBRANDAt7822$outboundSchema), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesMinLength$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesMinLength$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesMinLength$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesMinLength$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesMinLength$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesMinLength$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesMinLength$Outbound; +} + +export function createIntegrationStoreDirectPropertiesMinLengthToJSON( + createIntegrationStoreDirectPropertiesMinLength: + CreateIntegrationStoreDirectPropertiesMinLength, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesMinLength$outboundSchema.parse( + createIntegrationStoreDirectPropertiesMinLength, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesMinLengthFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesMinLength, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesMinLength$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesMinLength' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822, + z.ZodTypeDef, + unknown + > = z.object({}); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$Outbound = {}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822 + > = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$Outbound; +} + +export function createIntegrationStoreDirectPropertiesAtBRANDAt7822ToJSON( + createIntegrationStoreDirectPropertiesAtBRANDAt7822: + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$outboundSchema.parse( + createIntegrationStoreDirectPropertiesAtBRANDAt7822, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesAtBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesAtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesPattern$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesPattern, + z.ZodTypeDef, + unknown + > = z.object({ + "__@BRAND@7822": z.lazy(() => + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$inboundSchema + ), + }).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesPattern$Outbound = { + "__@BRAND@7822": CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$Outbound; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesPattern$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesPattern$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesPattern + > = z.object({ + atBRANDAt7822: z.lazy(() => + CreateIntegrationStoreDirectPropertiesAtBRANDAt7822$outboundSchema + ), + }).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesPattern$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesPattern$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesPattern$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesPattern$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesPattern$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesPattern$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectPropertiesPattern$Outbound; +} + +export function createIntegrationStoreDirectPropertiesPatternToJSON( + createIntegrationStoreDirectPropertiesPattern: + CreateIntegrationStoreDirectPropertiesPattern, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesPattern$outboundSchema.parse( + createIntegrationStoreDirectPropertiesPattern, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesPatternFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesPattern, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesPattern$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesPattern' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnly3$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectUiReadOnly3); + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnly3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectUiReadOnly3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnly3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnly3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnly3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnly3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnly3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnly2$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiReadOnly2, + z.ZodTypeDef, + unknown +> = z.object({ + expr: z.string(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectUiReadOnly2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiReadOnly2$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiReadOnly2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiReadOnly2 +> = z.object({ + expr: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiReadOnly2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnly2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiReadOnly2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnly2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiReadOnly2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiReadOnly2$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiReadOnly2$Outbound; +} + +export function createIntegrationStoreDirectUiReadOnly2ToJSON( + createIntegrationStoreDirectUiReadOnly2: + CreateIntegrationStoreDirectUiReadOnly2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiReadOnly2$outboundSchema.parse( + createIntegrationStoreDirectUiReadOnly2, + ), + ); +} + +export function createIntegrationStoreDirectUiReadOnly2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiReadOnly2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiReadOnly2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiReadOnly2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiReadOnly$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiReadOnly, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiReadOnly2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnly3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesUiReadOnly$Outbound = + | CreateIntegrationStoreDirectUiReadOnly2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiReadOnly$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiReadOnly$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesUiReadOnly + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiReadOnly2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnly3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesUiReadOnly$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiReadOnly$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesUiReadOnly$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiReadOnly$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesUiReadOnly$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiReadOnly$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesUiReadOnly$Outbound; +} + +export function createIntegrationStoreDirectPropertiesUiReadOnlyToJSON( + createIntegrationStoreDirectPropertiesUiReadOnly: + CreateIntegrationStoreDirectPropertiesUiReadOnly, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesUiReadOnly$outboundSchema.parse( + createIntegrationStoreDirectPropertiesUiReadOnly, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesUiReadOnlyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesUiReadOnly, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesUiReadOnly$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesUiReadOnly' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHidden3$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + CreateIntegrationStoreDirectUiHidden3, + ); + +/** @internal */ +export const CreateIntegrationStoreDirectUiHidden3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectUiHidden3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHidden3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHidden3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHidden3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHidden3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHidden3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiHidden2$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiHidden2, + z.ZodTypeDef, + unknown +> = z.object({ + expr: z.string(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectUiHidden2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiHidden2$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiHidden2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiHidden2 +> = z.object({ + expr: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiHidden2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiHidden2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiHidden2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHidden2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiHidden2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiHidden2$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiHidden2$Outbound; +} + +export function createIntegrationStoreDirectUiHidden2ToJSON( + createIntegrationStoreDirectUiHidden2: CreateIntegrationStoreDirectUiHidden2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiHidden2$outboundSchema.parse( + createIntegrationStoreDirectUiHidden2, + ), + ); +} + +export function createIntegrationStoreDirectUiHidden2FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiHidden2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectUiHidden2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiHidden$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiHidden2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiHidden3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesUiHidden$Outbound = + | CreateIntegrationStoreDirectUiHidden2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiHidden$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiHidden$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesUiHidden + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiHidden2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiHidden3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesUiHidden$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiHidden$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesUiHidden$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiHidden$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesUiHidden$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiHidden$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesUiHidden$Outbound; +} + +export function createIntegrationStoreDirectPropertiesUiHiddenToJSON( + createIntegrationStoreDirectPropertiesUiHidden: + CreateIntegrationStoreDirectPropertiesUiHidden, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesUiHidden$outboundSchema.parse( + createIntegrationStoreDirectPropertiesUiHidden, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesUiHiddenFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesUiHidden, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesUiHidden$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesUiHidden' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabled3$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(CreateIntegrationStoreDirectUiDisabled3); + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabled3$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectUiDisabled3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabled3$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabled3$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabled3$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabled3$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabled3$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabled2$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiDisabled2, + z.ZodTypeDef, + unknown +> = z.object({ + expr: z.string(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDisabled2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDisabled2$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectUiDisabled2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDisabled2 +> = z.object({ + expr: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDisabled2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDisabled2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDisabled2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabled2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDisabled2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDisabled2$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiDisabled2$Outbound; +} + +export function createIntegrationStoreDirectUiDisabled2ToJSON( + createIntegrationStoreDirectUiDisabled2: + CreateIntegrationStoreDirectUiDisabled2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDisabled2$outboundSchema.parse( + createIntegrationStoreDirectUiDisabled2, + ), + ); +} + +export function createIntegrationStoreDirectUiDisabled2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDisabled2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDisabled2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiDisabled2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiDisabled$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiDisabled2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiDisabled3$inboundSchema, + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesUiDisabled$Outbound = + | CreateIntegrationStoreDirectUiDisabled2$Outbound + | boolean + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiDisabled$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiDisabled$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesUiDisabled + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiDisabled2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiDisabled3$outboundSchema, + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesUiDisabled$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiDisabled$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesUiDisabled$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiDisabled$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesUiDisabled$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiDisabled$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesUiDisabled$Outbound; +} + +export function createIntegrationStoreDirectPropertiesUiDisabledToJSON( + createIntegrationStoreDirectPropertiesUiDisabled: + CreateIntegrationStoreDirectPropertiesUiDisabled, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesUiDisabled$outboundSchema.parse( + createIntegrationStoreDirectPropertiesUiDisabled, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesUiDisabledFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesUiDisabled, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesUiDisabled$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesUiDisabled' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescription2$inboundSchema: + z.ZodType = + z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectUiDescription2$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectUiDescription2$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectUiDescription2$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectUiDescription2 + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectUiDescription2$ { + /** @deprecated use `CreateIntegrationStoreDirectUiDescription2$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectUiDescription2$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescription2$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectUiDescription2$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectUiDescription2$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectUiDescription2$Outbound; +} + +export function createIntegrationStoreDirectUiDescription2ToJSON( + createIntegrationStoreDirectUiDescription2: + CreateIntegrationStoreDirectUiDescription2, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectUiDescription2$outboundSchema.parse( + createIntegrationStoreDirectUiDescription2, + ), + ); +} + +export function createIntegrationStoreDirectUiDescription2FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectUiDescription2, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectUiDescription2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectUiDescription2' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiDescription$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiDescription, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiDescription2$inboundSchema), + z.string(), + ]); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesUiDescription$Outbound = + | CreateIntegrationStoreDirectUiDescription2$Outbound + | string; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiDescription$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiDescription$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesUiDescription + > = z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiDescription2$outboundSchema), + z.string(), + ]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesUiDescription$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiDescription$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesUiDescription$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiDescription$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesUiDescription$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiDescription$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesUiDescription$Outbound; +} + +export function createIntegrationStoreDirectPropertiesUiDescriptionToJSON( + createIntegrationStoreDirectPropertiesUiDescription: + CreateIntegrationStoreDirectPropertiesUiDescription, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesUiDescription$outboundSchema.parse( + createIntegrationStoreDirectPropertiesUiDescription, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesUiDescriptionFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesUiDescription, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesUiDescription$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesUiDescription' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiFormattedValue$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiFormattedValue, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectPropertiesUiFormattedValue$Outbound = { + expr: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectPropertiesUiFormattedValue$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectPropertiesUiFormattedValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectPropertiesUiFormattedValue + > = z.object({ + expr: z.string(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectPropertiesUiFormattedValue$ { + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiFormattedValue$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectPropertiesUiFormattedValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiFormattedValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectPropertiesUiFormattedValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectPropertiesUiFormattedValue$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectPropertiesUiFormattedValue$Outbound; +} + +export function createIntegrationStoreDirectPropertiesUiFormattedValueToJSON( + createIntegrationStoreDirectPropertiesUiFormattedValue: + CreateIntegrationStoreDirectPropertiesUiFormattedValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectPropertiesUiFormattedValue$outboundSchema.parse( + createIntegrationStoreDirectPropertiesUiFormattedValue, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesUiFormattedValueFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectPropertiesUiFormattedValue, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectPropertiesUiFormattedValue$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectPropertiesUiFormattedValue' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties1$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties1, + z.ZodTypeDef, + unknown +> = z.object({ + type: CreateIntegrationStoreDirectPropertiesType$inboundSchema, + "ui:control": CreateIntegrationStoreDirectPropertiesUiControl$inboundSchema, + enum: z.array(z.string()).optional(), + maxLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesMaxLength$inboundSchema + ).optional(), + minLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesMinLength$inboundSchema + ).optional(), + pattern: z.lazy(() => + CreateIntegrationStoreDirectPropertiesPattern$inboundSchema + ).optional(), + description: z.string().optional(), + default: z.string().optional(), + "ui:label": z.string().optional(), + "ui:read-only": z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiReadOnly2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnly3$inboundSchema, + ]).optional(), + "ui:hidden": z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiHidden2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiHidden3$inboundSchema, + ]).optional(), + "ui:disabled": z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiDisabled2$inboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiDisabled3$inboundSchema, + ]).optional(), + "ui:description": z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiDescription2$inboundSchema), + z.string(), + ]).optional(), + "ui:formatted-value": z.lazy(() => + CreateIntegrationStoreDirectPropertiesUiFormattedValue$inboundSchema + ).optional(), + "ui:placeholder": z.string().optional(), +}).transform((v) => { + return remap$(v, { + "ui:control": "uiControl", + "ui:label": "uiLabel", + "ui:read-only": "uiReadOnly", + "ui:hidden": "uiHidden", + "ui:disabled": "uiDisabled", + "ui:description": "uiDescription", + "ui:formatted-value": "uiFormattedValue", + "ui:placeholder": "uiPlaceholder", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties1$Outbound = { + type: string; + "ui:control": string; + enum?: Array | undefined; + maxLength?: + | CreateIntegrationStoreDirectPropertiesMaxLength$Outbound + | undefined; + minLength?: + | CreateIntegrationStoreDirectPropertiesMinLength$Outbound + | undefined; + pattern?: CreateIntegrationStoreDirectPropertiesPattern$Outbound | undefined; + description?: string | undefined; + default?: string | undefined; + "ui:label"?: string | undefined; + "ui:read-only"?: + | CreateIntegrationStoreDirectUiReadOnly2$Outbound + | boolean + | string + | undefined; + "ui:hidden"?: + | CreateIntegrationStoreDirectUiHidden2$Outbound + | boolean + | string + | undefined; + "ui:disabled"?: + | CreateIntegrationStoreDirectUiDisabled2$Outbound + | boolean + | string + | undefined; + "ui:description"?: + | CreateIntegrationStoreDirectUiDescription2$Outbound + | string + | undefined; + "ui:formatted-value"?: + | CreateIntegrationStoreDirectPropertiesUiFormattedValue$Outbound + | undefined; + "ui:placeholder"?: string | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties1$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties1$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties1 +> = z.object({ + type: CreateIntegrationStoreDirectPropertiesType$outboundSchema, + uiControl: CreateIntegrationStoreDirectPropertiesUiControl$outboundSchema, + enum: z.array(z.string()).optional(), + maxLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesMaxLength$outboundSchema + ).optional(), + minLength: z.lazy(() => + CreateIntegrationStoreDirectPropertiesMinLength$outboundSchema + ).optional(), + pattern: z.lazy(() => + CreateIntegrationStoreDirectPropertiesPattern$outboundSchema + ).optional(), + description: z.string().optional(), + default: z.string().optional(), + uiLabel: z.string().optional(), + uiReadOnly: z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiReadOnly2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiReadOnly3$outboundSchema, + ]).optional(), + uiHidden: z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiHidden2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiHidden3$outboundSchema, + ]).optional(), + uiDisabled: z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiDisabled2$outboundSchema), + z.boolean(), + CreateIntegrationStoreDirectUiDisabled3$outboundSchema, + ]).optional(), + uiDescription: z.union([ + z.lazy(() => CreateIntegrationStoreDirectUiDescription2$outboundSchema), + z.string(), + ]).optional(), + uiFormattedValue: z.lazy(() => + CreateIntegrationStoreDirectPropertiesUiFormattedValue$outboundSchema + ).optional(), + uiPlaceholder: z.string().optional(), +}).transform((v) => { + return remap$(v, { + uiControl: "ui:control", + uiLabel: "ui:label", + uiReadOnly: "ui:read-only", + uiHidden: "ui:hidden", + uiDisabled: "ui:disabled", + uiDescription: "ui:description", + uiFormattedValue: "ui:formatted-value", + uiPlaceholder: "ui:placeholder", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties1$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties1$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties1$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties1$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties1$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties1$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties1$Outbound; +} + +export function createIntegrationStoreDirectProperties1ToJSON( + createIntegrationStoreDirectProperties1: + CreateIntegrationStoreDirectProperties1, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties1$outboundSchema.parse( + createIntegrationStoreDirectProperties1, + ), + ); +} + +export function createIntegrationStoreDirectProperties1FromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProperties1, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties1$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProperties1' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProperties$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties, + z.ZodTypeDef, + unknown +> = z.union([ + z.lazy(() => CreateIntegrationStoreDirectProperties4$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties6$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties5$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties7$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties1$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties2$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties3$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties8$inboundSchema), +]); + +/** @internal */ +export type CreateIntegrationStoreDirectProperties$Outbound = + | CreateIntegrationStoreDirectProperties4$Outbound + | CreateIntegrationStoreDirectProperties6$Outbound + | CreateIntegrationStoreDirectProperties5$Outbound + | CreateIntegrationStoreDirectProperties7$Outbound + | CreateIntegrationStoreDirectProperties1$Outbound + | CreateIntegrationStoreDirectProperties2$Outbound + | CreateIntegrationStoreDirectProperties3$Outbound + | CreateIntegrationStoreDirectProperties8$Outbound; + +/** @internal */ +export const CreateIntegrationStoreDirectProperties$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectProperties$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProperties +> = z.union([ + z.lazy(() => CreateIntegrationStoreDirectProperties4$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties6$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties5$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties7$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties1$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties2$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties3$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties8$outboundSchema), +]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProperties$ { + /** @deprecated use `CreateIntegrationStoreDirectProperties$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProperties$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProperties$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProperties$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProperties$Outbound; +} + +export function createIntegrationStoreDirectPropertiesToJSON( + createIntegrationStoreDirectProperties: + CreateIntegrationStoreDirectProperties, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProperties$outboundSchema.parse( + createIntegrationStoreDirectProperties, + ), + ); +} + +export function createIntegrationStoreDirectPropertiesFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProperties$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectProperties' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectMetadataSchema$inboundSchema: + z.ZodType = + z.object({ + type: CreateIntegrationStoreDirectIntegrationsType$inboundSchema, + properties: z.record( + z.union([ + z.lazy(() => CreateIntegrationStoreDirectProperties4$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties6$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties5$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties7$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties1$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties2$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties3$inboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties8$inboundSchema), + ]), + ), + required: z.array(z.string()).optional(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectMetadataSchema$Outbound = { + type: string; + properties: { + [k: string]: + | CreateIntegrationStoreDirectProperties4$Outbound + | CreateIntegrationStoreDirectProperties6$Outbound + | CreateIntegrationStoreDirectProperties5$Outbound + | CreateIntegrationStoreDirectProperties7$Outbound + | CreateIntegrationStoreDirectProperties1$Outbound + | CreateIntegrationStoreDirectProperties2$Outbound + | CreateIntegrationStoreDirectProperties3$Outbound + | CreateIntegrationStoreDirectProperties8$Outbound; + }; + required?: Array | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectMetadataSchema$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectMetadataSchema$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectMetadataSchema + > = z.object({ + type: CreateIntegrationStoreDirectIntegrationsType$outboundSchema, + properties: z.record( + z.union([ + z.lazy(() => CreateIntegrationStoreDirectProperties4$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties6$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties5$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties7$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties1$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties2$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties3$outboundSchema), + z.lazy(() => CreateIntegrationStoreDirectProperties8$outboundSchema), + ]), + ), + required: z.array(z.string()).optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectMetadataSchema$ { + /** @deprecated use `CreateIntegrationStoreDirectMetadataSchema$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectMetadataSchema$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectMetadataSchema$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectMetadataSchema$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectMetadataSchema$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectMetadataSchema$Outbound; +} + +export function createIntegrationStoreDirectMetadataSchemaToJSON( + createIntegrationStoreDirectMetadataSchema: + CreateIntegrationStoreDirectMetadataSchema, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectMetadataSchema$outboundSchema.parse( + createIntegrationStoreDirectMetadataSchema, + ), + ); +} + +export function createIntegrationStoreDirectMetadataSchemaFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectMetadataSchema, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectMetadataSchema$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectMetadataSchema' from JSON`, + ); +} + +/** @internal */ +export const ResourceLinks$inboundSchema: z.ZodType< + ResourceLinks, + z.ZodTypeDef, + unknown +> = z.object({ + href: z.string(), + title: z.string(), +}); + +/** @internal */ +export type ResourceLinks$Outbound = { + href: string; + title: string; +}; + +/** @internal */ +export const ResourceLinks$outboundSchema: z.ZodType< + ResourceLinks$Outbound, + z.ZodTypeDef, + ResourceLinks +> = z.object({ + href: z.string(), + title: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ResourceLinks$ { + /** @deprecated use `ResourceLinks$inboundSchema` instead. */ + export const inboundSchema = ResourceLinks$inboundSchema; + /** @deprecated use `ResourceLinks$outboundSchema` instead. */ + export const outboundSchema = ResourceLinks$outboundSchema; + /** @deprecated use `ResourceLinks$Outbound` instead. */ + export type Outbound = ResourceLinks$Outbound; +} + +export function resourceLinksToJSON(resourceLinks: ResourceLinks): string { + return JSON.stringify(ResourceLinks$outboundSchema.parse(resourceLinks)); +} + +export function resourceLinksFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ResourceLinks$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ResourceLinks' from JSON`, + ); +} + +/** @internal */ +export const Tags$inboundSchema: z.ZodNativeEnum = z.nativeEnum( + Tags, +); + +/** @internal */ +export const Tags$outboundSchema: z.ZodNativeEnum = + Tags$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Tags$ { + /** @deprecated use `Tags$inboundSchema` instead. */ + export const inboundSchema = Tags$inboundSchema; + /** @deprecated use `Tags$outboundSchema` instead. */ + export const outboundSchema = Tags$outboundSchema; +} + +/** @internal */ +export const ProjectConnectionScopes$inboundSchema: z.ZodNativeEnum< + typeof ProjectConnectionScopes +> = z.nativeEnum(ProjectConnectionScopes); + +/** @internal */ +export const ProjectConnectionScopes$outboundSchema: z.ZodNativeEnum< + typeof ProjectConnectionScopes +> = ProjectConnectionScopes$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectConnectionScopes$ { + /** @deprecated use `ProjectConnectionScopes$inboundSchema` instead. */ + export const inboundSchema = ProjectConnectionScopes$inboundSchema; + /** @deprecated use `ProjectConnectionScopes$outboundSchema` instead. */ + export const outboundSchema = ProjectConnectionScopes$outboundSchema; +} + +/** @internal */ +export const Repl$inboundSchema: z.ZodType = z + .object({ + enabled: z.boolean(), + supportsReadOnlyMode: z.boolean(), + welcomeMessage: z.string().optional(), + }); + +/** @internal */ +export type Repl$Outbound = { + enabled: boolean; + supportsReadOnlyMode: boolean; + welcomeMessage?: string | undefined; +}; + +/** @internal */ +export const Repl$outboundSchema: z.ZodType = + z.object({ + enabled: z.boolean(), + supportsReadOnlyMode: z.boolean(), + welcomeMessage: z.string().optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Repl$ { + /** @deprecated use `Repl$inboundSchema` instead. */ + export const inboundSchema = Repl$inboundSchema; + /** @deprecated use `Repl$outboundSchema` instead. */ + export const outboundSchema = Repl$outboundSchema; + /** @deprecated use `Repl$Outbound` instead. */ + export type Outbound = Repl$Outbound; +} + +export function replToJSON(repl: Repl): string { + return JSON.stringify(Repl$outboundSchema.parse(repl)); +} + +export function replFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Repl$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Repl' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectIntegrationsResponseType$inboundSchema: + z.ZodNativeEnum = + z.nativeEnum(CreateIntegrationStoreDirectIntegrationsResponseType); + +/** @internal */ +export const CreateIntegrationStoreDirectIntegrationsResponseType$outboundSchema: + z.ZodNativeEnum = + CreateIntegrationStoreDirectIntegrationsResponseType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectIntegrationsResponseType$ { + /** @deprecated use `CreateIntegrationStoreDirectIntegrationsResponseType$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectIntegrationsResponseType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectIntegrationsResponseType$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectIntegrationsResponseType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectActions$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectActions, + z.ZodTypeDef, + unknown +> = z.object({ + type: CreateIntegrationStoreDirectIntegrationsResponseType$inboundSchema, +}); + +/** @internal */ +export type CreateIntegrationStoreDirectActions$Outbound = { + type: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectActions$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectActions$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectActions +> = z.object({ + type: CreateIntegrationStoreDirectIntegrationsResponseType$outboundSchema, +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectActions$ { + /** @deprecated use `CreateIntegrationStoreDirectActions$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectActions$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectActions$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectActions$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectActions$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectActions$Outbound; +} + +export function createIntegrationStoreDirectActionsToJSON( + createIntegrationStoreDirectActions: CreateIntegrationStoreDirectActions, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectActions$outboundSchema.parse( + createIntegrationStoreDirectActions, + ), + ); +} + +export function createIntegrationStoreDirectActionsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectActions$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectActions' from JSON`, + ); +} + +/** @internal */ +export const Steps$inboundSchema: z.ZodType = z + .object({ + title: z.string(), + content: z.string(), + actions: z.array( + z.lazy(() => CreateIntegrationStoreDirectActions$inboundSchema), + ).optional(), + }); + +/** @internal */ +export type Steps$Outbound = { + title: string; + content: string; + actions?: Array | undefined; +}; + +/** @internal */ +export const Steps$outboundSchema: z.ZodType< + Steps$Outbound, + z.ZodTypeDef, + Steps +> = z.object({ + title: z.string(), + content: z.string(), + actions: z.array( + z.lazy(() => CreateIntegrationStoreDirectActions$outboundSchema), + ).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Steps$ { + /** @deprecated use `Steps$inboundSchema` instead. */ + export const inboundSchema = Steps$inboundSchema; + /** @deprecated use `Steps$outboundSchema` instead. */ + export const outboundSchema = Steps$outboundSchema; + /** @deprecated use `Steps$Outbound` instead. */ + export type Outbound = Steps$Outbound; +} + +export function stepsToJSON(steps: Steps): string { + return JSON.stringify(Steps$outboundSchema.parse(steps)); +} + +export function stepsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Steps$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Steps' from JSON`, + ); +} + +/** @internal */ +export const Guides$inboundSchema: z.ZodType = z + .object({ + framework: z.string(), + title: z.string(), + steps: z.array(z.lazy(() => Steps$inboundSchema)), + }); + +/** @internal */ +export type Guides$Outbound = { + framework: string; + title: string; + steps: Array; +}; + +/** @internal */ +export const Guides$outboundSchema: z.ZodType< + Guides$Outbound, + z.ZodTypeDef, + Guides +> = z.object({ + framework: z.string(), + title: z.string(), + steps: z.array(z.lazy(() => Steps$outboundSchema)), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Guides$ { + /** @deprecated use `Guides$inboundSchema` instead. */ + export const inboundSchema = Guides$inboundSchema; + /** @deprecated use `Guides$outboundSchema` instead. */ + export const outboundSchema = Guides$outboundSchema; + /** @deprecated use `Guides$Outbound` instead. */ + export type Outbound = Guides$Outbound; +} + +export function guidesToJSON(guides: Guides): string { + return JSON.stringify(Guides$outboundSchema.parse(guides)); +} + +export function guidesFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Guides$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Guides' from JSON`, + ); +} + +/** @internal */ +export const AtBRANDAt7822$inboundSchema: z.ZodType< + AtBRANDAt7822, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type AtBRANDAt7822$Outbound = {}; + +/** @internal */ +export const AtBRANDAt7822$outboundSchema: z.ZodType< + AtBRANDAt7822$Outbound, + z.ZodTypeDef, + AtBRANDAt7822 +> = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AtBRANDAt7822$ { + /** @deprecated use `AtBRANDAt7822$inboundSchema` instead. */ + export const inboundSchema = AtBRANDAt7822$inboundSchema; + /** @deprecated use `AtBRANDAt7822$outboundSchema` instead. */ + export const outboundSchema = AtBRANDAt7822$outboundSchema; + /** @deprecated use `AtBRANDAt7822$Outbound` instead. */ + export type Outbound = AtBRANDAt7822$Outbound; +} + +export function atBRANDAt7822ToJSON(atBRANDAt7822: AtBRANDAt7822): string { + return JSON.stringify(AtBRANDAt7822$outboundSchema.parse(atBRANDAt7822)); +} + +export function atBRANDAt7822FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AtBRANDAt7822$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AtBRANDAt7822' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectValue$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectValue, + z.ZodTypeDef, + unknown +> = z.object({ + "__@BRAND@7822": z.lazy(() => AtBRANDAt7822$inboundSchema), +}).transform((v) => { + return remap$(v, { + "__@BRAND@7822": "atBRANDAt7822", + }); +}); + +/** @internal */ +export type CreateIntegrationStoreDirectValue$Outbound = { + "__@BRAND@7822": AtBRANDAt7822$Outbound; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectValue$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectValue$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectValue +> = z.object({ + atBRANDAt7822: z.lazy(() => AtBRANDAt7822$outboundSchema), +}).transform((v) => { + return remap$(v, { + atBRANDAt7822: "__@BRAND@7822", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectValue$ { + /** @deprecated use `CreateIntegrationStoreDirectValue$inboundSchema` instead. */ + export const inboundSchema = CreateIntegrationStoreDirectValue$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectValue$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectValue$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectValue$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectValue$Outbound; +} + +export function createIntegrationStoreDirectValueToJSON( + createIntegrationStoreDirectValue: CreateIntegrationStoreDirectValue, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectValue$outboundSchema.parse( + createIntegrationStoreDirectValue, + ), + ); +} + +export function createIntegrationStoreDirectValueFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateIntegrationStoreDirectValue$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectValue' from JSON`, + ); +} + +/** @internal */ +export const Disabled3$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(Disabled3); + +/** @internal */ +export const Disabled3$outboundSchema: z.ZodNativeEnum = + Disabled3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Disabled3$ { + /** @deprecated use `Disabled3$inboundSchema` instead. */ + export const inboundSchema = Disabled3$inboundSchema; + /** @deprecated use `Disabled3$outboundSchema` instead. */ + export const outboundSchema = Disabled3$outboundSchema; +} + +/** @internal */ +export const Disabled2$inboundSchema: z.ZodType< + Disabled2, + z.ZodTypeDef, + unknown +> = z.object({ + expr: z.string(), +}); + +/** @internal */ +export type Disabled2$Outbound = { + expr: string; +}; + +/** @internal */ +export const Disabled2$outboundSchema: z.ZodType< + Disabled2$Outbound, + z.ZodTypeDef, + Disabled2 +> = z.object({ + expr: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Disabled2$ { + /** @deprecated use `Disabled2$inboundSchema` instead. */ + export const inboundSchema = Disabled2$inboundSchema; + /** @deprecated use `Disabled2$outboundSchema` instead. */ + export const outboundSchema = Disabled2$outboundSchema; + /** @deprecated use `Disabled2$Outbound` instead. */ + export type Outbound = Disabled2$Outbound; +} + +export function disabled2ToJSON(disabled2: Disabled2): string { + return JSON.stringify(Disabled2$outboundSchema.parse(disabled2)); +} + +export function disabled2FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Disabled2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Disabled2' from JSON`, + ); +} + +/** @internal */ +export const Disabled$inboundSchema: z.ZodType< + Disabled, + z.ZodTypeDef, + unknown +> = z.union([ + z.lazy(() => Disabled2$inboundSchema), + z.boolean(), + Disabled3$inboundSchema, +]); + +/** @internal */ +export type Disabled$Outbound = Disabled2$Outbound | boolean | string; + +/** @internal */ +export const Disabled$outboundSchema: z.ZodType< + Disabled$Outbound, + z.ZodTypeDef, + Disabled +> = z.union([ + z.lazy(() => Disabled2$outboundSchema), + z.boolean(), + Disabled3$outboundSchema, +]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Disabled$ { + /** @deprecated use `Disabled$inboundSchema` instead. */ + export const inboundSchema = Disabled$inboundSchema; + /** @deprecated use `Disabled$outboundSchema` instead. */ + export const outboundSchema = Disabled$outboundSchema; + /** @deprecated use `Disabled$Outbound` instead. */ + export type Outbound = Disabled$Outbound; +} + +export function disabledToJSON(disabled: Disabled): string { + return JSON.stringify(Disabled$outboundSchema.parse(disabled)); +} + +export function disabledFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Disabled$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Disabled' from JSON`, + ); +} + +/** @internal */ +export const Hidden3$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(Hidden3); + +/** @internal */ +export const Hidden3$outboundSchema: z.ZodNativeEnum = + Hidden3$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Hidden3$ { + /** @deprecated use `Hidden3$inboundSchema` instead. */ + export const inboundSchema = Hidden3$inboundSchema; + /** @deprecated use `Hidden3$outboundSchema` instead. */ + export const outboundSchema = Hidden3$outboundSchema; +} + +/** @internal */ +export const Hidden2$inboundSchema: z.ZodType = + z.object({ + expr: z.string(), + }); + +/** @internal */ +export type Hidden2$Outbound = { + expr: string; +}; + +/** @internal */ +export const Hidden2$outboundSchema: z.ZodType< + Hidden2$Outbound, + z.ZodTypeDef, + Hidden2 +> = z.object({ + expr: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Hidden2$ { + /** @deprecated use `Hidden2$inboundSchema` instead. */ + export const inboundSchema = Hidden2$inboundSchema; + /** @deprecated use `Hidden2$outboundSchema` instead. */ + export const outboundSchema = Hidden2$outboundSchema; + /** @deprecated use `Hidden2$Outbound` instead. */ + export type Outbound = Hidden2$Outbound; +} + +export function hidden2ToJSON(hidden2: Hidden2): string { + return JSON.stringify(Hidden2$outboundSchema.parse(hidden2)); +} + +export function hidden2FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Hidden2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Hidden2' from JSON`, + ); +} + +/** @internal */ +export const Hidden$inboundSchema: z.ZodType = z + .union([ + z.lazy(() => Hidden2$inboundSchema), + z.boolean(), + Hidden3$inboundSchema, + ]); + +/** @internal */ +export type Hidden$Outbound = Hidden2$Outbound | boolean | string; + +/** @internal */ +export const Hidden$outboundSchema: z.ZodType< + Hidden$Outbound, + z.ZodTypeDef, + Hidden +> = z.union([ + z.lazy(() => Hidden2$outboundSchema), + z.boolean(), + Hidden3$outboundSchema, +]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Hidden$ { + /** @deprecated use `Hidden$inboundSchema` instead. */ + export const inboundSchema = Hidden$inboundSchema; + /** @deprecated use `Hidden$outboundSchema` instead. */ + export const outboundSchema = Hidden$outboundSchema; + /** @deprecated use `Hidden$Outbound` instead. */ + export type Outbound = Hidden$Outbound; +} + +export function hiddenToJSON(hidden: Hidden): string { + return JSON.stringify(Hidden$outboundSchema.parse(hidden)); +} + +export function hiddenFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Hidden$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Hidden' from JSON`, + ); +} + +/** @internal */ +export const Product$inboundSchema: z.ZodType = + z.object({ + id: z.string().optional(), + name: z.string().optional(), + slug: z.string().optional(), + iconUrl: z.string().optional(), + shortDescription: z.string().optional(), + metadataSchema: z.lazy(() => + CreateIntegrationStoreDirectMetadataSchema$inboundSchema + ).optional(), + resourceLinks: z.array(z.lazy(() => ResourceLinks$inboundSchema)) + .optional(), + tags: z.array(Tags$inboundSchema).optional(), + projectConnectionScopes: z.array(ProjectConnectionScopes$inboundSchema) + .optional(), + showSSOLinkOnProjectConnection: z.boolean().optional(), + disableResourceRenaming: z.boolean().optional(), + repl: z.lazy(() => Repl$inboundSchema).optional(), + guides: z.array(z.lazy(() => Guides$inboundSchema)).optional(), + value: z.lazy(() => CreateIntegrationStoreDirectValue$inboundSchema), + disabled: z.union([ + z.lazy(() => Disabled2$inboundSchema), + z.boolean(), + Disabled3$inboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => Hidden2$inboundSchema), + z.boolean(), + Hidden3$inboundSchema, + ]).optional(), + }); + +/** @internal */ +export type Product$Outbound = { + id?: string | undefined; + name?: string | undefined; + slug?: string | undefined; + iconUrl?: string | undefined; + shortDescription?: string | undefined; + metadataSchema?: + | CreateIntegrationStoreDirectMetadataSchema$Outbound + | undefined; + resourceLinks?: Array | undefined; + tags?: Array | undefined; + projectConnectionScopes?: Array | undefined; + showSSOLinkOnProjectConnection?: boolean | undefined; + disableResourceRenaming?: boolean | undefined; + repl?: Repl$Outbound | undefined; + guides?: Array | undefined; + value: CreateIntegrationStoreDirectValue$Outbound; + disabled?: Disabled2$Outbound | boolean | string | undefined; + hidden?: Hidden2$Outbound | boolean | string | undefined; +}; + +/** @internal */ +export const Product$outboundSchema: z.ZodType< + Product$Outbound, + z.ZodTypeDef, + Product +> = z.object({ + id: z.string().optional(), + name: z.string().optional(), + slug: z.string().optional(), + iconUrl: z.string().optional(), + shortDescription: z.string().optional(), + metadataSchema: z.lazy(() => + CreateIntegrationStoreDirectMetadataSchema$outboundSchema + ).optional(), + resourceLinks: z.array(z.lazy(() => ResourceLinks$outboundSchema)).optional(), + tags: z.array(Tags$outboundSchema).optional(), + projectConnectionScopes: z.array(ProjectConnectionScopes$outboundSchema) + .optional(), + showSSOLinkOnProjectConnection: z.boolean().optional(), + disableResourceRenaming: z.boolean().optional(), + repl: z.lazy(() => Repl$outboundSchema).optional(), + guides: z.array(z.lazy(() => Guides$outboundSchema)).optional(), + value: z.lazy(() => CreateIntegrationStoreDirectValue$outboundSchema), + disabled: z.union([ + z.lazy(() => Disabled2$outboundSchema), + z.boolean(), + Disabled3$outboundSchema, + ]).optional(), + hidden: z.union([ + z.lazy(() => Hidden2$outboundSchema), + z.boolean(), + Hidden3$outboundSchema, + ]).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Product$ { + /** @deprecated use `Product$inboundSchema` instead. */ + export const inboundSchema = Product$inboundSchema; + /** @deprecated use `Product$outboundSchema` instead. */ + export const outboundSchema = Product$outboundSchema; + /** @deprecated use `Product$Outbound` instead. */ + export type Outbound = Product$Outbound; +} + +export function productToJSON(product: Product): string { + return JSON.stringify(Product$outboundSchema.parse(product)); +} + +export function productFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Product$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Product' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectExperimentation$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectExperimentation, + z.ZodTypeDef, + unknown + > = z.object({ + edgeConfigSyncingEnabled: z.boolean().optional(), + edgeConfigId: z.string().optional(), + edgeConfigTokenId: z.string().optional(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectExperimentation$Outbound = { + edgeConfigSyncingEnabled?: boolean | undefined; + edgeConfigId?: string | undefined; + edgeConfigTokenId?: string | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectExperimentation$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectExperimentation$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectExperimentation + > = z.object({ + edgeConfigSyncingEnabled: z.boolean().optional(), + edgeConfigId: z.string().optional(), + edgeConfigTokenId: z.string().optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectExperimentation$ { + /** @deprecated use `CreateIntegrationStoreDirectExperimentation$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectExperimentation$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectExperimentation$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectExperimentation$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectExperimentation$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectExperimentation$Outbound; +} + +export function createIntegrationStoreDirectExperimentationToJSON( + createIntegrationStoreDirectExperimentation: + CreateIntegrationStoreDirectExperimentation, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectExperimentation$outboundSchema.parse( + createIntegrationStoreDirectExperimentation, + ), + ); +} + +export function createIntegrationStoreDirectExperimentationFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectExperimentation, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectExperimentation$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectExperimentation' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectProtocolSettings$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectProtocolSettings, + z.ZodTypeDef, + unknown + > = z.object({ + experimentation: z.lazy(() => + CreateIntegrationStoreDirectExperimentation$inboundSchema + ).optional(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectProtocolSettings$Outbound = { + experimentation?: + | CreateIntegrationStoreDirectExperimentation$Outbound + | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectProtocolSettings$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectProtocolSettings$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectProtocolSettings + > = z.object({ + experimentation: z.lazy(() => + CreateIntegrationStoreDirectExperimentation$outboundSchema + ).optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectProtocolSettings$ { + /** @deprecated use `CreateIntegrationStoreDirectProtocolSettings$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectProtocolSettings$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProtocolSettings$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectProtocolSettings$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectProtocolSettings$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectProtocolSettings$Outbound; +} + +export function createIntegrationStoreDirectProtocolSettingsToJSON( + createIntegrationStoreDirectProtocolSettings: + CreateIntegrationStoreDirectProtocolSettings, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectProtocolSettings$outboundSchema.parse( + createIntegrationStoreDirectProtocolSettings, + ), + ); +} + +export function createIntegrationStoreDirectProtocolSettingsFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectProtocolSettings, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectProtocolSettings$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectProtocolSettings' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectLevel$inboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectLevel +> = z.nativeEnum(CreateIntegrationStoreDirectLevel); + +/** @internal */ +export const CreateIntegrationStoreDirectLevel$outboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectLevel +> = CreateIntegrationStoreDirectLevel$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectLevel$ { + /** @deprecated use `CreateIntegrationStoreDirectLevel$inboundSchema` instead. */ + export const inboundSchema = CreateIntegrationStoreDirectLevel$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectLevel$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectLevel$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectNotification$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectNotification, + z.ZodTypeDef, + unknown +> = z.object({ + title: z.string(), + level: CreateIntegrationStoreDirectLevel$inboundSchema, + message: z.string().optional(), + href: z.string().optional(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectNotification$Outbound = { + title: string; + level: string; + message?: string | undefined; + href?: string | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectNotification$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectNotification$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectNotification +> = z.object({ + title: z.string(), + level: CreateIntegrationStoreDirectLevel$outboundSchema, + message: z.string().optional(), + href: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectNotification$ { + /** @deprecated use `CreateIntegrationStoreDirectNotification$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectNotification$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectNotification$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectNotification$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectNotification$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectNotification$Outbound; +} + +export function createIntegrationStoreDirectNotificationToJSON( + createIntegrationStoreDirectNotification: + CreateIntegrationStoreDirectNotification, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectNotification$outboundSchema.parse( + createIntegrationStoreDirectNotification, + ), + ); +} + +export function createIntegrationStoreDirectNotificationFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectNotification, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectNotification$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectNotification' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectSecrets$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectSecrets, + z.ZodTypeDef, + unknown +> = z.object({ + name: z.string(), + length: z.number(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectSecrets$Outbound = { + name: string; + length: number; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectSecrets$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectSecrets$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectSecrets +> = z.object({ + name: z.string(), + length: z.number(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectSecrets$ { + /** @deprecated use `CreateIntegrationStoreDirectSecrets$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectSecrets$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectSecrets$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectSecrets$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectSecrets$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectSecrets$Outbound; +} + +export function createIntegrationStoreDirectSecretsToJSON( + createIntegrationStoreDirectSecrets: CreateIntegrationStoreDirectSecrets, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectSecrets$outboundSchema.parse( + createIntegrationStoreDirectSecrets, + ), + ); +} + +export function createIntegrationStoreDirectSecretsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectSecrets$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectSecrets' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectType$inboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectType +> = z.nativeEnum(CreateIntegrationStoreDirectType); + +/** @internal */ +export const CreateIntegrationStoreDirectType$outboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectType +> = CreateIntegrationStoreDirectType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectType$ { + /** @deprecated use `CreateIntegrationStoreDirectType$inboundSchema` instead. */ + export const inboundSchema = CreateIntegrationStoreDirectType$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectType$outboundSchema` instead. */ + export const outboundSchema = CreateIntegrationStoreDirectType$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectScope$inboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectScope +> = z.nativeEnum(CreateIntegrationStoreDirectScope); + +/** @internal */ +export const CreateIntegrationStoreDirectScope$outboundSchema: z.ZodNativeEnum< + typeof CreateIntegrationStoreDirectScope +> = CreateIntegrationStoreDirectScope$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectScope$ { + /** @deprecated use `CreateIntegrationStoreDirectScope$inboundSchema` instead. */ + export const inboundSchema = CreateIntegrationStoreDirectScope$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectScope$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectScope$outboundSchema; +} + +/** @internal */ +export const CreateIntegrationStoreDirectDetails$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectDetails, + z.ZodTypeDef, + unknown +> = z.object({ + label: z.string(), + value: z.string().optional(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectDetails$Outbound = { + label: string; + value?: string | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectDetails$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectDetails$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectDetails +> = z.object({ + label: z.string(), + value: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectDetails$ { + /** @deprecated use `CreateIntegrationStoreDirectDetails$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectDetails$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDetails$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectDetails$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectDetails$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectDetails$Outbound; +} + +export function createIntegrationStoreDirectDetailsToJSON( + createIntegrationStoreDirectDetails: CreateIntegrationStoreDirectDetails, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectDetails$outboundSchema.parse( + createIntegrationStoreDirectDetails, + ), + ); +} + +export function createIntegrationStoreDirectDetailsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectDetails$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectDetails' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectHighlightedDetails$inboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHighlightedDetails, + z.ZodTypeDef, + unknown + > = z.object({ + label: z.string(), + value: z.string().optional(), + }); + +/** @internal */ +export type CreateIntegrationStoreDirectHighlightedDetails$Outbound = { + label: string; + value?: string | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectHighlightedDetails$outboundSchema: + z.ZodType< + CreateIntegrationStoreDirectHighlightedDetails$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectHighlightedDetails + > = z.object({ + label: z.string(), + value: z.string().optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectHighlightedDetails$ { + /** @deprecated use `CreateIntegrationStoreDirectHighlightedDetails$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectHighlightedDetails$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHighlightedDetails$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectHighlightedDetails$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectHighlightedDetails$Outbound` instead. */ + export type Outbound = + CreateIntegrationStoreDirectHighlightedDetails$Outbound; +} + +export function createIntegrationStoreDirectHighlightedDetailsToJSON( + createIntegrationStoreDirectHighlightedDetails: + CreateIntegrationStoreDirectHighlightedDetails, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectHighlightedDetails$outboundSchema.parse( + createIntegrationStoreDirectHighlightedDetails, + ), + ); +} + +export function createIntegrationStoreDirectHighlightedDetailsFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectHighlightedDetails, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectHighlightedDetails$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectHighlightedDetails' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectQuote$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectQuote, + z.ZodTypeDef, + unknown +> = z.object({ + line: z.string(), + amount: z.string(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectQuote$Outbound = { + line: string; + amount: string; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectQuote$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectQuote$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectQuote +> = z.object({ + line: z.string(), + amount: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectQuote$ { + /** @deprecated use `CreateIntegrationStoreDirectQuote$inboundSchema` instead. */ + export const inboundSchema = CreateIntegrationStoreDirectQuote$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectQuote$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectQuote$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectQuote$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectQuote$Outbound; +} + +export function createIntegrationStoreDirectQuoteToJSON( + createIntegrationStoreDirectQuote: CreateIntegrationStoreDirectQuote, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectQuote$outboundSchema.parse( + createIntegrationStoreDirectQuote, + ), + ); +} + +export function createIntegrationStoreDirectQuoteFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateIntegrationStoreDirectQuote$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectQuote' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectBillingPlan$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectBillingPlan, + z.ZodTypeDef, + unknown +> = z.object({ + type: CreateIntegrationStoreDirectType$inboundSchema, + description: z.string(), + id: z.string(), + name: z.string(), + scope: CreateIntegrationStoreDirectScope$inboundSchema, + paymentMethodRequired: z.boolean(), + preauthorizationAmount: z.number().optional(), + initialCharge: z.string().optional(), + minimumAmount: z.string().optional(), + maximumAmount: z.string().optional(), + maximumAmountAutoPurchasePerPeriod: z.string().optional(), + cost: z.string().optional(), + details: z.array( + z.lazy(() => CreateIntegrationStoreDirectDetails$inboundSchema), + ).optional(), + highlightedDetails: z.array( + z.lazy(() => CreateIntegrationStoreDirectHighlightedDetails$inboundSchema), + ).optional(), + quote: z.array(z.lazy(() => CreateIntegrationStoreDirectQuote$inboundSchema)) + .optional(), + effectiveDate: z.string().optional(), + disabled: z.boolean().optional(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectBillingPlan$Outbound = { + type: string; + description: string; + id: string; + name: string; + scope: string; + paymentMethodRequired: boolean; + preauthorizationAmount?: number | undefined; + initialCharge?: string | undefined; + minimumAmount?: string | undefined; + maximumAmount?: string | undefined; + maximumAmountAutoPurchasePerPeriod?: string | undefined; + cost?: string | undefined; + details?: Array | undefined; + highlightedDetails?: + | Array + | undefined; + quote?: Array | undefined; + effectiveDate?: string | undefined; + disabled?: boolean | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectBillingPlan$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectBillingPlan$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectBillingPlan +> = z.object({ + type: CreateIntegrationStoreDirectType$outboundSchema, + description: z.string(), + id: z.string(), + name: z.string(), + scope: CreateIntegrationStoreDirectScope$outboundSchema, + paymentMethodRequired: z.boolean(), + preauthorizationAmount: z.number().optional(), + initialCharge: z.string().optional(), + minimumAmount: z.string().optional(), + maximumAmount: z.string().optional(), + maximumAmountAutoPurchasePerPeriod: z.string().optional(), + cost: z.string().optional(), + details: z.array( + z.lazy(() => CreateIntegrationStoreDirectDetails$outboundSchema), + ).optional(), + highlightedDetails: z.array( + z.lazy(() => CreateIntegrationStoreDirectHighlightedDetails$outboundSchema), + ).optional(), + quote: z.array(z.lazy(() => CreateIntegrationStoreDirectQuote$outboundSchema)) + .optional(), + effectiveDate: z.string().optional(), + disabled: z.boolean().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectBillingPlan$ { + /** @deprecated use `CreateIntegrationStoreDirectBillingPlan$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectBillingPlan$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectBillingPlan$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectBillingPlan$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectBillingPlan$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectBillingPlan$Outbound; +} + +export function createIntegrationStoreDirectBillingPlanToJSON( + createIntegrationStoreDirectBillingPlan: + CreateIntegrationStoreDirectBillingPlan, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectBillingPlan$outboundSchema.parse( + createIntegrationStoreDirectBillingPlan, + ), + ); +} + +export function createIntegrationStoreDirectBillingPlanFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectBillingPlan, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectBillingPlan$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectBillingPlan' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectStore$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectStore, + z.ZodTypeDef, + unknown +> = z.object({ + projectsMetadata: z.array(z.lazy(() => ProjectsMetadata$inboundSchema)), + totalConnectedProjects: z.number().optional(), + usageQuotaExceeded: z.boolean(), + status: z.nullable(CreateIntegrationStoreDirectStatus$inboundSchema), + metadata: z.record( + z.union([ + z.string(), + z.number(), + z.boolean(), + z.array(z.string()), + z.array(z.number()), + ]), + ).optional(), + externalResourceId: z.string(), + externalResourceStatus: z.nullable(ExternalResourceStatus$inboundSchema) + .optional(), + product: z.lazy(() => Product$inboundSchema), + protocolSettings: z.lazy(() => + CreateIntegrationStoreDirectProtocolSettings$inboundSchema + ).optional(), + notification: z.lazy(() => + CreateIntegrationStoreDirectNotification$inboundSchema + ).optional(), + secrets: z.array( + z.lazy(() => CreateIntegrationStoreDirectSecrets$inboundSchema), + ), + billingPlan: z.lazy(() => + CreateIntegrationStoreDirectBillingPlan$inboundSchema + ).optional(), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectStore$Outbound = { + projectsMetadata: Array; + totalConnectedProjects?: number | undefined; + usageQuotaExceeded: boolean; + status: string | null; + metadata?: { + [k: string]: string | number | boolean | Array | Array; + } | undefined; + externalResourceId: string; + externalResourceStatus?: string | null | undefined; + product: Product$Outbound; + protocolSettings?: + | CreateIntegrationStoreDirectProtocolSettings$Outbound + | undefined; + notification?: CreateIntegrationStoreDirectNotification$Outbound | undefined; + secrets: Array; + billingPlan?: CreateIntegrationStoreDirectBillingPlan$Outbound | undefined; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectStore$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectStore$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectStore +> = z.object({ + projectsMetadata: z.array(z.lazy(() => ProjectsMetadata$outboundSchema)), + totalConnectedProjects: z.number().optional(), + usageQuotaExceeded: z.boolean(), + status: z.nullable(CreateIntegrationStoreDirectStatus$outboundSchema), + metadata: z.record( + z.union([ + z.string(), + z.number(), + z.boolean(), + z.array(z.string()), + z.array(z.number()), + ]), + ).optional(), + externalResourceId: z.string(), + externalResourceStatus: z.nullable(ExternalResourceStatus$outboundSchema) + .optional(), + product: z.lazy(() => Product$outboundSchema), + protocolSettings: z.lazy(() => + CreateIntegrationStoreDirectProtocolSettings$outboundSchema + ).optional(), + notification: z.lazy(() => + CreateIntegrationStoreDirectNotification$outboundSchema + ).optional(), + secrets: z.array( + z.lazy(() => CreateIntegrationStoreDirectSecrets$outboundSchema), + ), + billingPlan: z.lazy(() => + CreateIntegrationStoreDirectBillingPlan$outboundSchema + ).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectStore$ { + /** @deprecated use `CreateIntegrationStoreDirectStore$inboundSchema` instead. */ + export const inboundSchema = CreateIntegrationStoreDirectStore$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectStore$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectStore$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectStore$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectStore$Outbound; +} + +export function createIntegrationStoreDirectStoreToJSON( + createIntegrationStoreDirectStore: CreateIntegrationStoreDirectStore, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectStore$outboundSchema.parse( + createIntegrationStoreDirectStore, + ), + ); +} + +export function createIntegrationStoreDirectStoreFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateIntegrationStoreDirectStore$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIntegrationStoreDirectStore' from JSON`, + ); +} + +/** @internal */ +export const CreateIntegrationStoreDirectResponseBody$inboundSchema: z.ZodType< + CreateIntegrationStoreDirectResponseBody, + z.ZodTypeDef, + unknown +> = z.object({ + store: z.nullable( + z.lazy(() => CreateIntegrationStoreDirectStore$inboundSchema), + ), +}); + +/** @internal */ +export type CreateIntegrationStoreDirectResponseBody$Outbound = { + store: CreateIntegrationStoreDirectStore$Outbound | null; +}; + +/** @internal */ +export const CreateIntegrationStoreDirectResponseBody$outboundSchema: z.ZodType< + CreateIntegrationStoreDirectResponseBody$Outbound, + z.ZodTypeDef, + CreateIntegrationStoreDirectResponseBody +> = z.object({ + store: z.nullable( + z.lazy(() => CreateIntegrationStoreDirectStore$outboundSchema), + ), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateIntegrationStoreDirectResponseBody$ { + /** @deprecated use `CreateIntegrationStoreDirectResponseBody$inboundSchema` instead. */ + export const inboundSchema = + CreateIntegrationStoreDirectResponseBody$inboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectResponseBody$outboundSchema` instead. */ + export const outboundSchema = + CreateIntegrationStoreDirectResponseBody$outboundSchema; + /** @deprecated use `CreateIntegrationStoreDirectResponseBody$Outbound` instead. */ + export type Outbound = CreateIntegrationStoreDirectResponseBody$Outbound; +} + +export function createIntegrationStoreDirectResponseBodyToJSON( + createIntegrationStoreDirectResponseBody: + CreateIntegrationStoreDirectResponseBody, +): string { + return JSON.stringify( + CreateIntegrationStoreDirectResponseBody$outboundSchema.parse( + createIntegrationStoreDirectResponseBody, + ), + ); +} + +export function createIntegrationStoreDirectResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + CreateIntegrationStoreDirectResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CreateIntegrationStoreDirectResponseBody$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CreateIntegrationStoreDirectResponseBody' from JSON`, + ); +} diff --git a/src/models/createprojectenvop.ts b/src/models/createprojectenvop.ts index 1e74c92b..458ac3c4 100644 --- a/src/models/createprojectenvop.ts +++ b/src/models/createprojectenvop.ts @@ -271,10 +271,10 @@ export type CreateProjectEnvCreatedTarget = export const CreateProjectEnvCreatedType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type CreateProjectEnvCreatedType = ClosedEnum< typeof CreateProjectEnvCreatedType @@ -617,10 +617,10 @@ export type CreatedTarget = export const CreatedType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type CreatedType = ClosedEnum; diff --git a/src/models/createprojectop.ts b/src/models/createprojectop.ts index d25d83de..5352ebd1 100644 --- a/src/models/createprojectop.ts +++ b/src/models/createprojectop.ts @@ -420,11 +420,29 @@ export type CreateProjectDataCache = { unlimited?: boolean | undefined; }; +/** + * Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + */ export type CreateProjectDeploymentExpiration = { + /** + * Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. + */ expirationDays?: number | undefined; + /** + * Number of days to keep production deployments before soft deletion. + */ expirationDaysProduction?: number | undefined; + /** + * Number of days to keep canceled deployments before soft deletion. + */ expirationDaysCanceled?: number | undefined; + /** + * Number of days to keep errored deployments before soft deletion. + */ expirationDaysErrored?: number | undefined; + /** + * Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. + */ deploymentsToKeep?: number | undefined; }; @@ -448,10 +466,10 @@ export type CreateProjectProjectsTarget = export const CreateProjectProjectsResponseType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type CreateProjectProjectsResponseType = ClosedEnum< typeof CreateProjectProjectsResponseType @@ -1210,18 +1228,18 @@ export type CreateProjectLinkProjectsDeployHooks = { export type CreateProjectLink2 = { type: CreateProjectLinkProjectsType; + repo?: string | undefined; + repoId?: number | undefined; updatedAt?: number | undefined; createdAt?: number | undefined; - repo?: string | undefined; - sourceless?: boolean | undefined; org: string; /** * 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. */ repoOwnerId?: number | undefined; - repoId?: number | undefined; deployHooks: Array; gitCredentialId: string; + sourceless?: boolean | undefined; productionBranch: string; }; @@ -1341,6 +1359,7 @@ export type CreateProjectBuildMachineType = ClosedEnum< >; export type CreateProjectProjectsResourceConfig = { + elasticConcurrencyEnabled?: boolean | undefined; fluid?: boolean | undefined; functionDefaultRegions: Array; functionDefaultTimeout?: number | undefined; @@ -1348,7 +1367,6 @@ export type CreateProjectProjectsResourceConfig = { | CreateProjectFunctionDefaultMemoryType | undefined; functionZeroConfigFailover?: boolean | undefined; - elasticConcurrencyEnabled?: boolean | undefined; buildMachineType?: CreateProjectBuildMachineType | undefined; isNSNBDisabled?: boolean | undefined; }; @@ -1429,6 +1447,7 @@ export type CreateProjectProjectsBuildMachineType = ClosedEnum< >; export type CreateProjectDefaultResourceConfig = { + elasticConcurrencyEnabled?: boolean | undefined; fluid?: boolean | undefined; functionDefaultRegions: Array; functionDefaultTimeout?: number | undefined; @@ -1436,14 +1455,13 @@ export type CreateProjectDefaultResourceConfig = { | CreateProjectProjectsFunctionDefaultMemoryType | undefined; functionZeroConfigFailover?: boolean | undefined; - elasticConcurrencyEnabled?: boolean | undefined; buildMachineType?: CreateProjectProjectsBuildMachineType | undefined; isNSNBDisabled?: boolean | undefined; }; export const CreateProjectProjectsDeploymentType = { - All: "all", Preview: "preview", + All: "all", ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews", AllExceptCustomDomains: "all_except_custom_domains", } as const; @@ -1616,6 +1634,73 @@ export type CreateProjectTargets = { }; export type CreateProjectPermissions = { + aliasProject?: Array | undefined; + aliasProtectionBypass?: Array | undefined; + buildMachine?: Array | undefined; + productionAliasProtectionBypass?: Array | undefined; + connectConfigurationLink?: Array | undefined; + dataCacheNamespace?: Array | undefined; + deployment?: Array | undefined; + deploymentBuildLogs?: Array | undefined; + deploymentCheck?: Array | undefined; + deploymentCheckPreview?: Array | undefined; + deploymentCheckReRunFromProductionBranch?: Array | undefined; + deploymentProductionGit?: Array | undefined; + deploymentV0?: Array | undefined; + deploymentPreview?: Array | undefined; + deploymentPrivate?: Array | undefined; + deploymentPromote?: Array | undefined; + deploymentRollback?: Array | undefined; + edgeCacheNamespace?: Array | undefined; + environments?: Array | undefined; + logs?: Array | undefined; + logsPreset?: Array | undefined; + passwordProtection?: Array | undefined; + optionsAllowlist?: Array | undefined; + job?: Array | undefined; + observabilityData?: Array | undefined; + onDemandBuild?: Array | undefined; + onDemandConcurrency?: Array | undefined; + project?: Array | undefined; + projectFromV0?: Array | undefined; + projectAccessGroup?: Array | undefined; + projectAnalyticsSampling?: Array | undefined; + projectCheck?: Array | undefined; + projectCheckRun?: Array | undefined; + projectDeploymentHook?: Array | undefined; + projectDomain?: Array | undefined; + projectDomainMove?: Array | undefined; + projectDomainCheckConfig?: Array | undefined; + projectEnvVars?: Array | undefined; + projectEnvVarsProduction?: Array | undefined; + projectEnvVarsUnownedByIntegration?: Array | undefined; + projectFlags?: Array | undefined; + projectId?: Array | undefined; + projectIntegrationConfiguration?: Array | undefined; + projectLink?: Array | undefined; + projectMember?: Array | undefined; + projectMonitoring?: Array | undefined; + projectPermissions?: Array | undefined; + projectProductionBranch?: Array | undefined; + projectTransfer?: Array | undefined; + projectTransferOut?: Array | undefined; + projectProtectionBypass?: Array | undefined; + projectUsage?: Array | undefined; + projectAnalyticsUsage?: Array | undefined; + projectSupportCase?: Array | undefined; + projectSupportCaseComment?: Array | undefined; + projectDeploymentExpiration?: Array | undefined; + projectRollingRelease?: Array | undefined; + projectTier?: Array | undefined; + projectOIDCToken?: Array | undefined; + seawallConfig?: Array | undefined; + skewProtection?: Array | undefined; + analytics?: Array | undefined; + trustedIps?: Array | undefined; + v0Chat?: Array | undefined; + webAnalytics?: Array | undefined; + sharedEnvVarConnection?: Array | undefined; + sonar?: Array | undefined; oauth2Connection?: Array | undefined; user?: Array | undefined; userConnection?: Array | undefined; @@ -1761,73 +1846,6 @@ export type CreateProjectPermissions = { vercelRunExec?: Array | undefined; apiKey?: Array | undefined; apiKeyOwnedBySelf?: Array | undefined; - aliasProject?: Array | undefined; - aliasProtectionBypass?: Array | undefined; - buildMachine?: Array | undefined; - productionAliasProtectionBypass?: Array | undefined; - connectConfigurationLink?: Array | undefined; - dataCacheNamespace?: Array | undefined; - deployment?: Array | undefined; - deploymentBuildLogs?: Array | undefined; - deploymentCheck?: Array | undefined; - deploymentCheckPreview?: Array | undefined; - deploymentCheckReRunFromProductionBranch?: Array | undefined; - deploymentProductionGit?: Array | undefined; - deploymentV0?: Array | undefined; - deploymentPreview?: Array | undefined; - deploymentPrivate?: Array | undefined; - deploymentPromote?: Array | undefined; - deploymentRollback?: Array | undefined; - edgeCacheNamespace?: Array | undefined; - environments?: Array | undefined; - logs?: Array | undefined; - logsPreset?: Array | undefined; - passwordProtection?: Array | undefined; - optionsAllowlist?: Array | undefined; - job?: Array | undefined; - observabilityData?: Array | undefined; - onDemandBuild?: Array | undefined; - onDemandConcurrency?: Array | undefined; - project?: Array | undefined; - projectFromV0?: Array | undefined; - projectAccessGroup?: Array | undefined; - projectAnalyticsSampling?: Array | undefined; - projectCheck?: Array | undefined; - projectCheckRun?: Array | undefined; - projectDeploymentHook?: Array | undefined; - projectDomain?: Array | undefined; - projectDomainMove?: Array | undefined; - projectDomainCheckConfig?: Array | undefined; - projectEnvVars?: Array | undefined; - projectEnvVarsProduction?: Array | undefined; - projectEnvVarsUnownedByIntegration?: Array | undefined; - projectFlags?: Array | undefined; - projectId?: Array | undefined; - projectIntegrationConfiguration?: Array | undefined; - projectLink?: Array | undefined; - projectMember?: Array | undefined; - projectMonitoring?: Array | undefined; - projectPermissions?: Array | undefined; - projectProductionBranch?: Array | undefined; - projectTransfer?: Array | undefined; - projectTransferOut?: Array | undefined; - projectProtectionBypass?: Array | undefined; - projectUsage?: Array | undefined; - projectAnalyticsUsage?: Array | undefined; - projectSupportCase?: Array | undefined; - projectSupportCaseComment?: Array | undefined; - projectDeploymentExpiration?: Array | undefined; - projectRollingRelease?: Array | undefined; - projectTier?: Array | undefined; - projectOIDCToken?: Array | undefined; - seawallConfig?: Array | undefined; - skewProtection?: Array | undefined; - analytics?: Array | undefined; - trustedIps?: Array | undefined; - v0Chat?: Array | undefined; - webAnalytics?: Array | undefined; - sharedEnvVarConnection?: Array | undefined; - sonar?: Array | undefined; }; export type CreateProjectLastRollbackTarget = {}; @@ -1897,11 +1915,11 @@ export type CreateProjectProtectionBypass = | CreateProjectProtectionBypass2; export const CreateProjectTrustedIpsProjectsDeploymentType = { - All: "all", Preview: "preview", + Production: "production", + All: "all", ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews", AllExceptCustomDomains: "all_except_custom_domains", - Production: "production", } as const; export type CreateProjectTrustedIpsProjectsDeploymentType = ClosedEnum< typeof CreateProjectTrustedIpsProjectsDeploymentType @@ -1912,11 +1930,11 @@ export type CreateProjectTrustedIps2 = { }; export const CreateProjectTrustedIpsDeploymentType = { - All: "all", Preview: "preview", + Production: "production", + All: "all", ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews", AllExceptCustomDomains: "all_except_custom_domains", - Production: "production", } as const; export type CreateProjectTrustedIpsDeploymentType = ClosedEnum< typeof CreateProjectTrustedIpsDeploymentType @@ -2109,6 +2127,9 @@ export type CreateProjectResponseBody = { customerSupportCodeVisibility?: boolean | undefined; crons?: CreateProjectCrons | undefined; dataCache?: CreateProjectDataCache | undefined; + /** + * Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + */ deploymentExpiration?: CreateProjectDeploymentExpiration | null | undefined; devCommand?: string | null | undefined; directoryListing: boolean; @@ -7109,32 +7130,32 @@ export const CreateProjectLink2$inboundSchema: z.ZodType< unknown > = z.object({ type: CreateProjectLinkProjectsType$inboundSchema, + repo: z.string().optional(), + repoId: z.number().optional(), updatedAt: z.number().optional(), createdAt: z.number().optional(), - repo: z.string().optional(), - sourceless: z.boolean().optional(), org: z.string(), repoOwnerId: z.number().optional(), - repoId: z.number().optional(), deployHooks: z.array( z.lazy(() => CreateProjectLinkProjectsDeployHooks$inboundSchema), ), gitCredentialId: z.string(), + sourceless: z.boolean().optional(), productionBranch: z.string(), }); /** @internal */ export type CreateProjectLink2$Outbound = { type: string; + repo?: string | undefined; + repoId?: number | undefined; updatedAt?: number | undefined; createdAt?: number | undefined; - repo?: string | undefined; - sourceless?: boolean | undefined; org: string; repoOwnerId?: number | undefined; - repoId?: number | undefined; deployHooks: Array; gitCredentialId: string; + sourceless?: boolean | undefined; productionBranch: string; }; @@ -7145,17 +7166,17 @@ export const CreateProjectLink2$outboundSchema: z.ZodType< CreateProjectLink2 > = z.object({ type: CreateProjectLinkProjectsType$outboundSchema, + repo: z.string().optional(), + repoId: z.number().optional(), updatedAt: z.number().optional(), createdAt: z.number().optional(), - repo: z.string().optional(), - sourceless: z.boolean().optional(), org: z.string(), repoOwnerId: z.number().optional(), - repoId: z.number().optional(), deployHooks: z.array( z.lazy(() => CreateProjectLinkProjectsDeployHooks$outboundSchema), ), gitCredentialId: z.string(), + sourceless: z.boolean().optional(), productionBranch: z.string(), }); @@ -7855,25 +7876,25 @@ export const CreateProjectProjectsResourceConfig$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + elasticConcurrencyEnabled: z.boolean().optional(), fluid: z.boolean().optional(), functionDefaultRegions: z.array(z.string()), functionDefaultTimeout: z.number().optional(), functionDefaultMemoryType: CreateProjectFunctionDefaultMemoryType$inboundSchema.optional(), functionZeroConfigFailover: z.boolean().optional(), - elasticConcurrencyEnabled: z.boolean().optional(), buildMachineType: CreateProjectBuildMachineType$inboundSchema.optional(), isNSNBDisabled: z.boolean().optional(), }); /** @internal */ export type CreateProjectProjectsResourceConfig$Outbound = { + elasticConcurrencyEnabled?: boolean | undefined; fluid?: boolean | undefined; functionDefaultRegions: Array; functionDefaultTimeout?: number | undefined; functionDefaultMemoryType?: string | undefined; functionZeroConfigFailover?: boolean | undefined; - elasticConcurrencyEnabled?: boolean | undefined; buildMachineType?: string | undefined; isNSNBDisabled?: boolean | undefined; }; @@ -7884,13 +7905,13 @@ export const CreateProjectProjectsResourceConfig$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectProjectsResourceConfig > = z.object({ + elasticConcurrencyEnabled: z.boolean().optional(), fluid: z.boolean().optional(), functionDefaultRegions: z.array(z.string()), functionDefaultTimeout: z.number().optional(), functionDefaultMemoryType: CreateProjectFunctionDefaultMemoryType$outboundSchema.optional(), functionZeroConfigFailover: z.boolean().optional(), - elasticConcurrencyEnabled: z.boolean().optional(), buildMachineType: CreateProjectBuildMachineType$outboundSchema.optional(), isNSNBDisabled: z.boolean().optional(), }); @@ -8173,13 +8194,13 @@ export const CreateProjectDefaultResourceConfig$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + elasticConcurrencyEnabled: z.boolean().optional(), fluid: z.boolean().optional(), functionDefaultRegions: z.array(z.string()), functionDefaultTimeout: z.number().optional(), functionDefaultMemoryType: CreateProjectProjectsFunctionDefaultMemoryType$inboundSchema.optional(), functionZeroConfigFailover: z.boolean().optional(), - elasticConcurrencyEnabled: z.boolean().optional(), buildMachineType: CreateProjectProjectsBuildMachineType$inboundSchema .optional(), isNSNBDisabled: z.boolean().optional(), @@ -8187,12 +8208,12 @@ export const CreateProjectDefaultResourceConfig$inboundSchema: z.ZodType< /** @internal */ export type CreateProjectDefaultResourceConfig$Outbound = { + elasticConcurrencyEnabled?: boolean | undefined; fluid?: boolean | undefined; functionDefaultRegions: Array; functionDefaultTimeout?: number | undefined; functionDefaultMemoryType?: string | undefined; functionZeroConfigFailover?: boolean | undefined; - elasticConcurrencyEnabled?: boolean | undefined; buildMachineType?: string | undefined; isNSNBDisabled?: boolean | undefined; }; @@ -8203,13 +8224,13 @@ export const CreateProjectDefaultResourceConfig$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectDefaultResourceConfig > = z.object({ + elasticConcurrencyEnabled: z.boolean().optional(), fluid: z.boolean().optional(), functionDefaultRegions: z.array(z.string()), functionDefaultTimeout: z.number().optional(), functionDefaultMemoryType: CreateProjectProjectsFunctionDefaultMemoryType$outboundSchema.optional(), functionZeroConfigFailover: z.boolean().optional(), - elasticConcurrencyEnabled: z.boolean().optional(), buildMachineType: CreateProjectProjectsBuildMachineType$outboundSchema .optional(), isNSNBDisabled: z.boolean().optional(), @@ -9086,52 +9107,121 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - oauth2Connection: z.array(ACLAction$inboundSchema).optional(), - user: z.array(ACLAction$inboundSchema).optional(), - userConnection: z.array(ACLAction$inboundSchema).optional(), - userSudo: z.array(ACLAction$inboundSchema).optional(), - webAuthn: z.array(ACLAction$inboundSchema).optional(), - accessGroup: z.array(ACLAction$inboundSchema).optional(), - aliasGlobal: z.array(ACLAction$inboundSchema).optional(), - analyticsSampling: z.array(ACLAction$inboundSchema).optional(), - analyticsUsage: z.array(ACLAction$inboundSchema).optional(), - auditLog: z.array(ACLAction$inboundSchema).optional(), - billingAddress: z.array(ACLAction$inboundSchema).optional(), - billingInformation: z.array(ACLAction$inboundSchema).optional(), - billingInvoice: z.array(ACLAction$inboundSchema).optional(), - billingInvoiceEmailRecipient: z.array(ACLAction$inboundSchema).optional(), - billingInvoiceLanguage: z.array(ACLAction$inboundSchema).optional(), - billingPlan: z.array(ACLAction$inboundSchema).optional(), - billingPurchaseOrder: z.array(ACLAction$inboundSchema).optional(), - billingRefund: z.array(ACLAction$inboundSchema).optional(), - billingTaxId: z.array(ACLAction$inboundSchema).optional(), - blob: z.array(ACLAction$inboundSchema).optional(), - budget: z.array(ACLAction$inboundSchema).optional(), - cacheArtifact: z.array(ACLAction$inboundSchema).optional(), - cacheArtifactUsageEvent: z.array(ACLAction$inboundSchema).optional(), - codeChecks: z.array(ACLAction$inboundSchema).optional(), - concurrentBuilds: z.array(ACLAction$inboundSchema).optional(), - connect: z.array(ACLAction$inboundSchema).optional(), - connectConfiguration: z.array(ACLAction$inboundSchema).optional(), - defaultDeploymentProtection: z.array(ACLAction$inboundSchema).optional(), - domain: z.array(ACLAction$inboundSchema).optional(), - domainAcceptDelegation: z.array(ACLAction$inboundSchema).optional(), - domainAuthCodes: z.array(ACLAction$inboundSchema).optional(), - domainCertificate: z.array(ACLAction$inboundSchema).optional(), - domainCheckConfig: z.array(ACLAction$inboundSchema).optional(), - domainMove: z.array(ACLAction$inboundSchema).optional(), - domainPurchase: z.array(ACLAction$inboundSchema).optional(), - domainRecord: z.array(ACLAction$inboundSchema).optional(), - domainTransferIn: z.array(ACLAction$inboundSchema).optional(), - event: z.array(ACLAction$inboundSchema).optional(), - ownEvent: z.array(ACLAction$inboundSchema).optional(), - sensitiveEnvironmentVariablePolicy: z.array(ACLAction$inboundSchema) + aliasProject: z.array(ACLAction$inboundSchema).optional(), + aliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(), + buildMachine: z.array(ACLAction$inboundSchema).optional(), + productionAliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(), + connectConfigurationLink: z.array(ACLAction$inboundSchema).optional(), + dataCacheNamespace: z.array(ACLAction$inboundSchema).optional(), + deployment: z.array(ACLAction$inboundSchema).optional(), + deploymentBuildLogs: z.array(ACLAction$inboundSchema).optional(), + deploymentCheck: z.array(ACLAction$inboundSchema).optional(), + deploymentCheckPreview: z.array(ACLAction$inboundSchema).optional(), + deploymentCheckReRunFromProductionBranch: z.array(ACLAction$inboundSchema) .optional(), - fileUpload: z.array(ACLAction$inboundSchema).optional(), - flagsExplorerSubscription: z.array(ACLAction$inboundSchema).optional(), - gitRepository: z.array(ACLAction$inboundSchema).optional(), - ipBlocking: z.array(ACLAction$inboundSchema).optional(), - imageOptimizationNewPrice: z.array(ACLAction$inboundSchema).optional(), + deploymentProductionGit: z.array(ACLAction$inboundSchema).optional(), + deploymentV0: z.array(ACLAction$inboundSchema).optional(), + deploymentPreview: z.array(ACLAction$inboundSchema).optional(), + deploymentPrivate: z.array(ACLAction$inboundSchema).optional(), + deploymentPromote: z.array(ACLAction$inboundSchema).optional(), + deploymentRollback: z.array(ACLAction$inboundSchema).optional(), + edgeCacheNamespace: z.array(ACLAction$inboundSchema).optional(), + environments: z.array(ACLAction$inboundSchema).optional(), + logs: z.array(ACLAction$inboundSchema).optional(), + logsPreset: z.array(ACLAction$inboundSchema).optional(), + passwordProtection: z.array(ACLAction$inboundSchema).optional(), + optionsAllowlist: z.array(ACLAction$inboundSchema).optional(), + job: z.array(ACLAction$inboundSchema).optional(), + observabilityData: z.array(ACLAction$inboundSchema).optional(), + onDemandBuild: z.array(ACLAction$inboundSchema).optional(), + onDemandConcurrency: z.array(ACLAction$inboundSchema).optional(), + project: z.array(ACLAction$inboundSchema).optional(), + projectFromV0: z.array(ACLAction$inboundSchema).optional(), + projectAccessGroup: z.array(ACLAction$inboundSchema).optional(), + projectAnalyticsSampling: z.array(ACLAction$inboundSchema).optional(), + projectCheck: z.array(ACLAction$inboundSchema).optional(), + projectCheckRun: z.array(ACLAction$inboundSchema).optional(), + projectDeploymentHook: z.array(ACLAction$inboundSchema).optional(), + projectDomain: z.array(ACLAction$inboundSchema).optional(), + projectDomainMove: z.array(ACLAction$inboundSchema).optional(), + projectDomainCheckConfig: z.array(ACLAction$inboundSchema).optional(), + projectEnvVars: z.array(ACLAction$inboundSchema).optional(), + projectEnvVarsProduction: z.array(ACLAction$inboundSchema).optional(), + projectEnvVarsUnownedByIntegration: z.array(ACLAction$inboundSchema) + .optional(), + projectFlags: z.array(ACLAction$inboundSchema).optional(), + projectId: z.array(ACLAction$inboundSchema).optional(), + projectIntegrationConfiguration: z.array(ACLAction$inboundSchema).optional(), + projectLink: z.array(ACLAction$inboundSchema).optional(), + projectMember: z.array(ACLAction$inboundSchema).optional(), + projectMonitoring: z.array(ACLAction$inboundSchema).optional(), + projectPermissions: z.array(ACLAction$inboundSchema).optional(), + projectProductionBranch: z.array(ACLAction$inboundSchema).optional(), + projectTransfer: z.array(ACLAction$inboundSchema).optional(), + projectTransferOut: z.array(ACLAction$inboundSchema).optional(), + projectProtectionBypass: z.array(ACLAction$inboundSchema).optional(), + projectUsage: z.array(ACLAction$inboundSchema).optional(), + projectAnalyticsUsage: z.array(ACLAction$inboundSchema).optional(), + projectSupportCase: z.array(ACLAction$inboundSchema).optional(), + projectSupportCaseComment: z.array(ACLAction$inboundSchema).optional(), + projectDeploymentExpiration: z.array(ACLAction$inboundSchema).optional(), + projectRollingRelease: z.array(ACLAction$inboundSchema).optional(), + projectTier: z.array(ACLAction$inboundSchema).optional(), + projectOIDCToken: z.array(ACLAction$inboundSchema).optional(), + seawallConfig: z.array(ACLAction$inboundSchema).optional(), + skewProtection: z.array(ACLAction$inboundSchema).optional(), + analytics: z.array(ACLAction$inboundSchema).optional(), + trustedIps: z.array(ACLAction$inboundSchema).optional(), + v0Chat: z.array(ACLAction$inboundSchema).optional(), + webAnalytics: z.array(ACLAction$inboundSchema).optional(), + sharedEnvVarConnection: z.array(ACLAction$inboundSchema).optional(), + sonar: z.array(ACLAction$inboundSchema).optional(), + oauth2Connection: z.array(ACLAction$inboundSchema).optional(), + user: z.array(ACLAction$inboundSchema).optional(), + userConnection: z.array(ACLAction$inboundSchema).optional(), + userSudo: z.array(ACLAction$inboundSchema).optional(), + webAuthn: z.array(ACLAction$inboundSchema).optional(), + accessGroup: z.array(ACLAction$inboundSchema).optional(), + aliasGlobal: z.array(ACLAction$inboundSchema).optional(), + analyticsSampling: z.array(ACLAction$inboundSchema).optional(), + analyticsUsage: z.array(ACLAction$inboundSchema).optional(), + auditLog: z.array(ACLAction$inboundSchema).optional(), + billingAddress: z.array(ACLAction$inboundSchema).optional(), + billingInformation: z.array(ACLAction$inboundSchema).optional(), + billingInvoice: z.array(ACLAction$inboundSchema).optional(), + billingInvoiceEmailRecipient: z.array(ACLAction$inboundSchema).optional(), + billingInvoiceLanguage: z.array(ACLAction$inboundSchema).optional(), + billingPlan: z.array(ACLAction$inboundSchema).optional(), + billingPurchaseOrder: z.array(ACLAction$inboundSchema).optional(), + billingRefund: z.array(ACLAction$inboundSchema).optional(), + billingTaxId: z.array(ACLAction$inboundSchema).optional(), + blob: z.array(ACLAction$inboundSchema).optional(), + budget: z.array(ACLAction$inboundSchema).optional(), + cacheArtifact: z.array(ACLAction$inboundSchema).optional(), + cacheArtifactUsageEvent: z.array(ACLAction$inboundSchema).optional(), + codeChecks: z.array(ACLAction$inboundSchema).optional(), + concurrentBuilds: z.array(ACLAction$inboundSchema).optional(), + connect: z.array(ACLAction$inboundSchema).optional(), + connectConfiguration: z.array(ACLAction$inboundSchema).optional(), + defaultDeploymentProtection: z.array(ACLAction$inboundSchema).optional(), + domain: z.array(ACLAction$inboundSchema).optional(), + domainAcceptDelegation: z.array(ACLAction$inboundSchema).optional(), + domainAuthCodes: z.array(ACLAction$inboundSchema).optional(), + domainCertificate: z.array(ACLAction$inboundSchema).optional(), + domainCheckConfig: z.array(ACLAction$inboundSchema).optional(), + domainMove: z.array(ACLAction$inboundSchema).optional(), + domainPurchase: z.array(ACLAction$inboundSchema).optional(), + domainRecord: z.array(ACLAction$inboundSchema).optional(), + domainTransferIn: z.array(ACLAction$inboundSchema).optional(), + event: z.array(ACLAction$inboundSchema).optional(), + ownEvent: z.array(ACLAction$inboundSchema).optional(), + sensitiveEnvironmentVariablePolicy: z.array(ACLAction$inboundSchema) + .optional(), + fileUpload: z.array(ACLAction$inboundSchema).optional(), + flagsExplorerSubscription: z.array(ACLAction$inboundSchema).optional(), + gitRepository: z.array(ACLAction$inboundSchema).optional(), + ipBlocking: z.array(ACLAction$inboundSchema).optional(), + imageOptimizationNewPrice: z.array(ACLAction$inboundSchema).optional(), integration: z.array(ACLAction$inboundSchema).optional(), integrationAccount: z.array(ACLAction$inboundSchema).optional(), integrationConfiguration: z.array(ACLAction$inboundSchema).optional(), @@ -9234,75 +9324,6 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType< vercelRunExec: z.array(ACLAction$inboundSchema).optional(), apiKey: z.array(ACLAction$inboundSchema).optional(), apiKeyOwnedBySelf: z.array(ACLAction$inboundSchema).optional(), - aliasProject: z.array(ACLAction$inboundSchema).optional(), - aliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(), - buildMachine: z.array(ACLAction$inboundSchema).optional(), - productionAliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(), - connectConfigurationLink: z.array(ACLAction$inboundSchema).optional(), - dataCacheNamespace: z.array(ACLAction$inboundSchema).optional(), - deployment: z.array(ACLAction$inboundSchema).optional(), - deploymentBuildLogs: z.array(ACLAction$inboundSchema).optional(), - deploymentCheck: z.array(ACLAction$inboundSchema).optional(), - deploymentCheckPreview: z.array(ACLAction$inboundSchema).optional(), - deploymentCheckReRunFromProductionBranch: z.array(ACLAction$inboundSchema) - .optional(), - deploymentProductionGit: z.array(ACLAction$inboundSchema).optional(), - deploymentV0: z.array(ACLAction$inboundSchema).optional(), - deploymentPreview: z.array(ACLAction$inboundSchema).optional(), - deploymentPrivate: z.array(ACLAction$inboundSchema).optional(), - deploymentPromote: z.array(ACLAction$inboundSchema).optional(), - deploymentRollback: z.array(ACLAction$inboundSchema).optional(), - edgeCacheNamespace: z.array(ACLAction$inboundSchema).optional(), - environments: z.array(ACLAction$inboundSchema).optional(), - logs: z.array(ACLAction$inboundSchema).optional(), - logsPreset: z.array(ACLAction$inboundSchema).optional(), - passwordProtection: z.array(ACLAction$inboundSchema).optional(), - optionsAllowlist: z.array(ACLAction$inboundSchema).optional(), - job: z.array(ACLAction$inboundSchema).optional(), - observabilityData: z.array(ACLAction$inboundSchema).optional(), - onDemandBuild: z.array(ACLAction$inboundSchema).optional(), - onDemandConcurrency: z.array(ACLAction$inboundSchema).optional(), - project: z.array(ACLAction$inboundSchema).optional(), - projectFromV0: z.array(ACLAction$inboundSchema).optional(), - projectAccessGroup: z.array(ACLAction$inboundSchema).optional(), - projectAnalyticsSampling: z.array(ACLAction$inboundSchema).optional(), - projectCheck: z.array(ACLAction$inboundSchema).optional(), - projectCheckRun: z.array(ACLAction$inboundSchema).optional(), - projectDeploymentHook: z.array(ACLAction$inboundSchema).optional(), - projectDomain: z.array(ACLAction$inboundSchema).optional(), - projectDomainMove: z.array(ACLAction$inboundSchema).optional(), - projectDomainCheckConfig: z.array(ACLAction$inboundSchema).optional(), - projectEnvVars: z.array(ACLAction$inboundSchema).optional(), - projectEnvVarsProduction: z.array(ACLAction$inboundSchema).optional(), - projectEnvVarsUnownedByIntegration: z.array(ACLAction$inboundSchema) - .optional(), - projectFlags: z.array(ACLAction$inboundSchema).optional(), - projectId: z.array(ACLAction$inboundSchema).optional(), - projectIntegrationConfiguration: z.array(ACLAction$inboundSchema).optional(), - projectLink: z.array(ACLAction$inboundSchema).optional(), - projectMember: z.array(ACLAction$inboundSchema).optional(), - projectMonitoring: z.array(ACLAction$inboundSchema).optional(), - projectPermissions: z.array(ACLAction$inboundSchema).optional(), - projectProductionBranch: z.array(ACLAction$inboundSchema).optional(), - projectTransfer: z.array(ACLAction$inboundSchema).optional(), - projectTransferOut: z.array(ACLAction$inboundSchema).optional(), - projectProtectionBypass: z.array(ACLAction$inboundSchema).optional(), - projectUsage: z.array(ACLAction$inboundSchema).optional(), - projectAnalyticsUsage: z.array(ACLAction$inboundSchema).optional(), - projectSupportCase: z.array(ACLAction$inboundSchema).optional(), - projectSupportCaseComment: z.array(ACLAction$inboundSchema).optional(), - projectDeploymentExpiration: z.array(ACLAction$inboundSchema).optional(), - projectRollingRelease: z.array(ACLAction$inboundSchema).optional(), - projectTier: z.array(ACLAction$inboundSchema).optional(), - projectOIDCToken: z.array(ACLAction$inboundSchema).optional(), - seawallConfig: z.array(ACLAction$inboundSchema).optional(), - skewProtection: z.array(ACLAction$inboundSchema).optional(), - analytics: z.array(ACLAction$inboundSchema).optional(), - trustedIps: z.array(ACLAction$inboundSchema).optional(), - v0Chat: z.array(ACLAction$inboundSchema).optional(), - webAnalytics: z.array(ACLAction$inboundSchema).optional(), - sharedEnvVarConnection: z.array(ACLAction$inboundSchema).optional(), - sonar: z.array(ACLAction$inboundSchema).optional(), }).transform((v) => { return remap$(v, { "Monitoring": "monitoring", @@ -9313,6 +9334,73 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType< /** @internal */ export type CreateProjectPermissions$Outbound = { + aliasProject?: Array | undefined; + aliasProtectionBypass?: Array | undefined; + buildMachine?: Array | undefined; + productionAliasProtectionBypass?: Array | undefined; + connectConfigurationLink?: Array | undefined; + dataCacheNamespace?: Array | undefined; + deployment?: Array | undefined; + deploymentBuildLogs?: Array | undefined; + deploymentCheck?: Array | undefined; + deploymentCheckPreview?: Array | undefined; + deploymentCheckReRunFromProductionBranch?: Array | undefined; + deploymentProductionGit?: Array | undefined; + deploymentV0?: Array | undefined; + deploymentPreview?: Array | undefined; + deploymentPrivate?: Array | undefined; + deploymentPromote?: Array | undefined; + deploymentRollback?: Array | undefined; + edgeCacheNamespace?: Array | undefined; + environments?: Array | undefined; + logs?: Array | undefined; + logsPreset?: Array | undefined; + passwordProtection?: Array | undefined; + optionsAllowlist?: Array | undefined; + job?: Array | undefined; + observabilityData?: Array | undefined; + onDemandBuild?: Array | undefined; + onDemandConcurrency?: Array | undefined; + project?: Array | undefined; + projectFromV0?: Array | undefined; + projectAccessGroup?: Array | undefined; + projectAnalyticsSampling?: Array | undefined; + projectCheck?: Array | undefined; + projectCheckRun?: Array | undefined; + projectDeploymentHook?: Array | undefined; + projectDomain?: Array | undefined; + projectDomainMove?: Array | undefined; + projectDomainCheckConfig?: Array | undefined; + projectEnvVars?: Array | undefined; + projectEnvVarsProduction?: Array | undefined; + projectEnvVarsUnownedByIntegration?: Array | undefined; + projectFlags?: Array | undefined; + projectId?: Array | undefined; + projectIntegrationConfiguration?: Array | undefined; + projectLink?: Array | undefined; + projectMember?: Array | undefined; + projectMonitoring?: Array | undefined; + projectPermissions?: Array | undefined; + projectProductionBranch?: Array | undefined; + projectTransfer?: Array | undefined; + projectTransferOut?: Array | undefined; + projectProtectionBypass?: Array | undefined; + projectUsage?: Array | undefined; + projectAnalyticsUsage?: Array | undefined; + projectSupportCase?: Array | undefined; + projectSupportCaseComment?: Array | undefined; + projectDeploymentExpiration?: Array | undefined; + projectRollingRelease?: Array | undefined; + projectTier?: Array | undefined; + projectOIDCToken?: Array | undefined; + seawallConfig?: Array | undefined; + skewProtection?: Array | undefined; + analytics?: Array | undefined; + trustedIps?: Array | undefined; + v0Chat?: Array | undefined; + webAnalytics?: Array | undefined; + sharedEnvVarConnection?: Array | undefined; + sonar?: Array | undefined; oauth2Connection?: Array | undefined; user?: Array | undefined; userConnection?: Array | undefined; @@ -9458,73 +9546,6 @@ export type CreateProjectPermissions$Outbound = { vercelRunExec?: Array | undefined; apiKey?: Array | undefined; apiKeyOwnedBySelf?: Array | undefined; - aliasProject?: Array | undefined; - aliasProtectionBypass?: Array | undefined; - buildMachine?: Array | undefined; - productionAliasProtectionBypass?: Array | undefined; - connectConfigurationLink?: Array | undefined; - dataCacheNamespace?: Array | undefined; - deployment?: Array | undefined; - deploymentBuildLogs?: Array | undefined; - deploymentCheck?: Array | undefined; - deploymentCheckPreview?: Array | undefined; - deploymentCheckReRunFromProductionBranch?: Array | undefined; - deploymentProductionGit?: Array | undefined; - deploymentV0?: Array | undefined; - deploymentPreview?: Array | undefined; - deploymentPrivate?: Array | undefined; - deploymentPromote?: Array | undefined; - deploymentRollback?: Array | undefined; - edgeCacheNamespace?: Array | undefined; - environments?: Array | undefined; - logs?: Array | undefined; - logsPreset?: Array | undefined; - passwordProtection?: Array | undefined; - optionsAllowlist?: Array | undefined; - job?: Array | undefined; - observabilityData?: Array | undefined; - onDemandBuild?: Array | undefined; - onDemandConcurrency?: Array | undefined; - project?: Array | undefined; - projectFromV0?: Array | undefined; - projectAccessGroup?: Array | undefined; - projectAnalyticsSampling?: Array | undefined; - projectCheck?: Array | undefined; - projectCheckRun?: Array | undefined; - projectDeploymentHook?: Array | undefined; - projectDomain?: Array | undefined; - projectDomainMove?: Array | undefined; - projectDomainCheckConfig?: Array | undefined; - projectEnvVars?: Array | undefined; - projectEnvVarsProduction?: Array | undefined; - projectEnvVarsUnownedByIntegration?: Array | undefined; - projectFlags?: Array | undefined; - projectId?: Array | undefined; - projectIntegrationConfiguration?: Array | undefined; - projectLink?: Array | undefined; - projectMember?: Array | undefined; - projectMonitoring?: Array | undefined; - projectPermissions?: Array | undefined; - projectProductionBranch?: Array | undefined; - projectTransfer?: Array | undefined; - projectTransferOut?: Array | undefined; - projectProtectionBypass?: Array | undefined; - projectUsage?: Array | undefined; - projectAnalyticsUsage?: Array | undefined; - projectSupportCase?: Array | undefined; - projectSupportCaseComment?: Array | undefined; - projectDeploymentExpiration?: Array | undefined; - projectRollingRelease?: Array | undefined; - projectTier?: Array | undefined; - projectOIDCToken?: Array | undefined; - seawallConfig?: Array | undefined; - skewProtection?: Array | undefined; - analytics?: Array | undefined; - trustedIps?: Array | undefined; - v0Chat?: Array | undefined; - webAnalytics?: Array | undefined; - sharedEnvVarConnection?: Array | undefined; - sonar?: Array | undefined; }; /** @internal */ @@ -9533,6 +9554,75 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType< z.ZodTypeDef, CreateProjectPermissions > = z.object({ + aliasProject: z.array(ACLAction$outboundSchema).optional(), + aliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(), + buildMachine: z.array(ACLAction$outboundSchema).optional(), + productionAliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(), + connectConfigurationLink: z.array(ACLAction$outboundSchema).optional(), + dataCacheNamespace: z.array(ACLAction$outboundSchema).optional(), + deployment: z.array(ACLAction$outboundSchema).optional(), + deploymentBuildLogs: z.array(ACLAction$outboundSchema).optional(), + deploymentCheck: z.array(ACLAction$outboundSchema).optional(), + deploymentCheckPreview: z.array(ACLAction$outboundSchema).optional(), + deploymentCheckReRunFromProductionBranch: z.array(ACLAction$outboundSchema) + .optional(), + deploymentProductionGit: z.array(ACLAction$outboundSchema).optional(), + deploymentV0: z.array(ACLAction$outboundSchema).optional(), + deploymentPreview: z.array(ACLAction$outboundSchema).optional(), + deploymentPrivate: z.array(ACLAction$outboundSchema).optional(), + deploymentPromote: z.array(ACLAction$outboundSchema).optional(), + deploymentRollback: z.array(ACLAction$outboundSchema).optional(), + edgeCacheNamespace: z.array(ACLAction$outboundSchema).optional(), + environments: z.array(ACLAction$outboundSchema).optional(), + logs: z.array(ACLAction$outboundSchema).optional(), + logsPreset: z.array(ACLAction$outboundSchema).optional(), + passwordProtection: z.array(ACLAction$outboundSchema).optional(), + optionsAllowlist: z.array(ACLAction$outboundSchema).optional(), + job: z.array(ACLAction$outboundSchema).optional(), + observabilityData: z.array(ACLAction$outboundSchema).optional(), + onDemandBuild: z.array(ACLAction$outboundSchema).optional(), + onDemandConcurrency: z.array(ACLAction$outboundSchema).optional(), + project: z.array(ACLAction$outboundSchema).optional(), + projectFromV0: z.array(ACLAction$outboundSchema).optional(), + projectAccessGroup: z.array(ACLAction$outboundSchema).optional(), + projectAnalyticsSampling: z.array(ACLAction$outboundSchema).optional(), + projectCheck: z.array(ACLAction$outboundSchema).optional(), + projectCheckRun: z.array(ACLAction$outboundSchema).optional(), + projectDeploymentHook: z.array(ACLAction$outboundSchema).optional(), + projectDomain: z.array(ACLAction$outboundSchema).optional(), + projectDomainMove: z.array(ACLAction$outboundSchema).optional(), + projectDomainCheckConfig: z.array(ACLAction$outboundSchema).optional(), + projectEnvVars: z.array(ACLAction$outboundSchema).optional(), + projectEnvVarsProduction: z.array(ACLAction$outboundSchema).optional(), + projectEnvVarsUnownedByIntegration: z.array(ACLAction$outboundSchema) + .optional(), + projectFlags: z.array(ACLAction$outboundSchema).optional(), + projectId: z.array(ACLAction$outboundSchema).optional(), + projectIntegrationConfiguration: z.array(ACLAction$outboundSchema).optional(), + projectLink: z.array(ACLAction$outboundSchema).optional(), + projectMember: z.array(ACLAction$outboundSchema).optional(), + projectMonitoring: z.array(ACLAction$outboundSchema).optional(), + projectPermissions: z.array(ACLAction$outboundSchema).optional(), + projectProductionBranch: z.array(ACLAction$outboundSchema).optional(), + projectTransfer: z.array(ACLAction$outboundSchema).optional(), + projectTransferOut: z.array(ACLAction$outboundSchema).optional(), + projectProtectionBypass: z.array(ACLAction$outboundSchema).optional(), + projectUsage: z.array(ACLAction$outboundSchema).optional(), + projectAnalyticsUsage: z.array(ACLAction$outboundSchema).optional(), + projectSupportCase: z.array(ACLAction$outboundSchema).optional(), + projectSupportCaseComment: z.array(ACLAction$outboundSchema).optional(), + projectDeploymentExpiration: z.array(ACLAction$outboundSchema).optional(), + projectRollingRelease: z.array(ACLAction$outboundSchema).optional(), + projectTier: z.array(ACLAction$outboundSchema).optional(), + projectOIDCToken: z.array(ACLAction$outboundSchema).optional(), + seawallConfig: z.array(ACLAction$outboundSchema).optional(), + skewProtection: z.array(ACLAction$outboundSchema).optional(), + analytics: z.array(ACLAction$outboundSchema).optional(), + trustedIps: z.array(ACLAction$outboundSchema).optional(), + v0Chat: z.array(ACLAction$outboundSchema).optional(), + webAnalytics: z.array(ACLAction$outboundSchema).optional(), + sharedEnvVarConnection: z.array(ACLAction$outboundSchema).optional(), + sonar: z.array(ACLAction$outboundSchema).optional(), oauth2Connection: z.array(ACLAction$outboundSchema).optional(), user: z.array(ACLAction$outboundSchema).optional(), userConnection: z.array(ACLAction$outboundSchema).optional(), @@ -9683,75 +9773,6 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType< vercelRunExec: z.array(ACLAction$outboundSchema).optional(), apiKey: z.array(ACLAction$outboundSchema).optional(), apiKeyOwnedBySelf: z.array(ACLAction$outboundSchema).optional(), - aliasProject: z.array(ACLAction$outboundSchema).optional(), - aliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(), - buildMachine: z.array(ACLAction$outboundSchema).optional(), - productionAliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(), - connectConfigurationLink: z.array(ACLAction$outboundSchema).optional(), - dataCacheNamespace: z.array(ACLAction$outboundSchema).optional(), - deployment: z.array(ACLAction$outboundSchema).optional(), - deploymentBuildLogs: z.array(ACLAction$outboundSchema).optional(), - deploymentCheck: z.array(ACLAction$outboundSchema).optional(), - deploymentCheckPreview: z.array(ACLAction$outboundSchema).optional(), - deploymentCheckReRunFromProductionBranch: z.array(ACLAction$outboundSchema) - .optional(), - deploymentProductionGit: z.array(ACLAction$outboundSchema).optional(), - deploymentV0: z.array(ACLAction$outboundSchema).optional(), - deploymentPreview: z.array(ACLAction$outboundSchema).optional(), - deploymentPrivate: z.array(ACLAction$outboundSchema).optional(), - deploymentPromote: z.array(ACLAction$outboundSchema).optional(), - deploymentRollback: z.array(ACLAction$outboundSchema).optional(), - edgeCacheNamespace: z.array(ACLAction$outboundSchema).optional(), - environments: z.array(ACLAction$outboundSchema).optional(), - logs: z.array(ACLAction$outboundSchema).optional(), - logsPreset: z.array(ACLAction$outboundSchema).optional(), - passwordProtection: z.array(ACLAction$outboundSchema).optional(), - optionsAllowlist: z.array(ACLAction$outboundSchema).optional(), - job: z.array(ACLAction$outboundSchema).optional(), - observabilityData: z.array(ACLAction$outboundSchema).optional(), - onDemandBuild: z.array(ACLAction$outboundSchema).optional(), - onDemandConcurrency: z.array(ACLAction$outboundSchema).optional(), - project: z.array(ACLAction$outboundSchema).optional(), - projectFromV0: z.array(ACLAction$outboundSchema).optional(), - projectAccessGroup: z.array(ACLAction$outboundSchema).optional(), - projectAnalyticsSampling: z.array(ACLAction$outboundSchema).optional(), - projectCheck: z.array(ACLAction$outboundSchema).optional(), - projectCheckRun: z.array(ACLAction$outboundSchema).optional(), - projectDeploymentHook: z.array(ACLAction$outboundSchema).optional(), - projectDomain: z.array(ACLAction$outboundSchema).optional(), - projectDomainMove: z.array(ACLAction$outboundSchema).optional(), - projectDomainCheckConfig: z.array(ACLAction$outboundSchema).optional(), - projectEnvVars: z.array(ACLAction$outboundSchema).optional(), - projectEnvVarsProduction: z.array(ACLAction$outboundSchema).optional(), - projectEnvVarsUnownedByIntegration: z.array(ACLAction$outboundSchema) - .optional(), - projectFlags: z.array(ACLAction$outboundSchema).optional(), - projectId: z.array(ACLAction$outboundSchema).optional(), - projectIntegrationConfiguration: z.array(ACLAction$outboundSchema).optional(), - projectLink: z.array(ACLAction$outboundSchema).optional(), - projectMember: z.array(ACLAction$outboundSchema).optional(), - projectMonitoring: z.array(ACLAction$outboundSchema).optional(), - projectPermissions: z.array(ACLAction$outboundSchema).optional(), - projectProductionBranch: z.array(ACLAction$outboundSchema).optional(), - projectTransfer: z.array(ACLAction$outboundSchema).optional(), - projectTransferOut: z.array(ACLAction$outboundSchema).optional(), - projectProtectionBypass: z.array(ACLAction$outboundSchema).optional(), - projectUsage: z.array(ACLAction$outboundSchema).optional(), - projectAnalyticsUsage: z.array(ACLAction$outboundSchema).optional(), - projectSupportCase: z.array(ACLAction$outboundSchema).optional(), - projectSupportCaseComment: z.array(ACLAction$outboundSchema).optional(), - projectDeploymentExpiration: z.array(ACLAction$outboundSchema).optional(), - projectRollingRelease: z.array(ACLAction$outboundSchema).optional(), - projectTier: z.array(ACLAction$outboundSchema).optional(), - projectOIDCToken: z.array(ACLAction$outboundSchema).optional(), - seawallConfig: z.array(ACLAction$outboundSchema).optional(), - skewProtection: z.array(ACLAction$outboundSchema).optional(), - analytics: z.array(ACLAction$outboundSchema).optional(), - trustedIps: z.array(ACLAction$outboundSchema).optional(), - v0Chat: z.array(ACLAction$outboundSchema).optional(), - webAnalytics: z.array(ACLAction$outboundSchema).optional(), - sharedEnvVarConnection: z.array(ACLAction$outboundSchema).optional(), - sonar: z.array(ACLAction$outboundSchema).optional(), }).transform((v) => { return remap$(v, { monitoring: "Monitoring", diff --git a/src/models/createwebhookop.ts b/src/models/createwebhookop.ts index b68698f3..c1ad961b 100644 --- a/src/models/createwebhookop.ts +++ b/src/models/createwebhookop.ts @@ -26,6 +26,7 @@ export const Events = { DomainRenewalFailed: "domain.renewal.failed", DomainAutoRenewChanged: "domain.auto-renew.changed", DeploymentCreated: "deployment.created", + DeploymentCleanup: "deployment.cleanup", DeploymentError: "deployment.error", DeploymentCanceled: "deployment.canceled", DeploymentSucceeded: "deployment.succeeded", @@ -83,6 +84,7 @@ export const Events = { MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid", MarketplaceInvoiceRefunded: "marketplace.invoice.refunded", ObservabilityAnomaly: "observability.anomaly", + ObservabilityAnomalyError: "observability.anomaly-error", TestWebhook: "test-webhook", } as const; export type Events = ClosedEnum; @@ -125,6 +127,7 @@ export const CreateWebhookEvents = { DomainRenewalFailed: "domain.renewal.failed", DomainAutoRenewChanged: "domain.auto-renew.changed", DeploymentCreated: "deployment.created", + DeploymentCleanup: "deployment.cleanup", DeploymentError: "deployment.error", DeploymentCanceled: "deployment.canceled", DeploymentSucceeded: "deployment.succeeded", @@ -182,6 +185,7 @@ export const CreateWebhookEvents = { MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid", MarketplaceInvoiceRefunded: "marketplace.invoice.refunded", ObservabilityAnomaly: "observability.anomaly", + ObservabilityAnomalyError: "observability.anomaly-error", TestWebhook: "test-webhook", } as const; /** diff --git a/src/models/editprojectenvop.ts b/src/models/editprojectenvop.ts index 1fb50ca4..1f3bdb64 100644 --- a/src/models/editprojectenvop.ts +++ b/src/models/editprojectenvop.ts @@ -97,10 +97,10 @@ export type EditProjectEnvResponseBodyTarget = export const EditProjectEnvResponseBodyType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type EditProjectEnvResponseBodyType = ClosedEnum< typeof EditProjectEnvResponseBodyType diff --git a/src/models/filterprojectenvsop.ts b/src/models/filterprojectenvsop.ts index f46d10f8..6f7d0f06 100644 --- a/src/models/filterprojectenvsop.ts +++ b/src/models/filterprojectenvsop.ts @@ -89,10 +89,10 @@ export type FilterProjectEnvsResponseBodyProjectsResponseTarget = export const FilterProjectEnvsResponseBodyProjectsResponse200Type = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type FilterProjectEnvsResponseBodyProjectsResponse200Type = ClosedEnum< typeof FilterProjectEnvsResponseBodyProjectsResponse200Type @@ -447,10 +447,10 @@ export type FilterProjectEnvsResponseBodyProjectsTarget = export const FilterProjectEnvsResponseBodyProjectsResponseType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type FilterProjectEnvsResponseBodyProjectsResponseType = ClosedEnum< typeof FilterProjectEnvsResponseBodyProjectsResponseType @@ -806,10 +806,10 @@ export type FilterProjectEnvsResponseBodyTarget = export const FilterProjectEnvsResponseBodyType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type FilterProjectEnvsResponseBodyType = ClosedEnum< typeof FilterProjectEnvsResponseBodyType diff --git a/src/models/getconfigurationop.ts b/src/models/getconfigurationop.ts index 73e0596e..0035b8ca 100644 --- a/src/models/getconfigurationop.ts +++ b/src/models/getconfigurationop.ts @@ -133,6 +133,7 @@ export const GetConfigurationResponseBodyIntegrationsSource = { DeployButton: "deploy-button", External: "external", V0: "v0", + ResourceClaims: "resource-claims", } as const; /** * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics. @@ -261,6 +262,7 @@ export const GetConfigurationResponseBodySource = { DeployButton: "deploy-button", External: "external", V0: "v0", + ResourceClaims: "resource-claims", } as const; /** * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics. diff --git a/src/models/getconfigurationproductsop.ts b/src/models/getconfigurationproductsop.ts index 54c9fefa..ebed37a2 100644 --- a/src/models/getconfigurationproductsop.ts +++ b/src/models/getconfigurationproductsop.ts @@ -32,7 +32,7 @@ export type GetConfigurationProductsStatus = ClosedEnum< typeof GetConfigurationProductsStatus >; -export type Repl = { +export type GetConfigurationProductsRepl = { enabled: boolean; supportsReadOnlyMode: boolean; welcomeMessage?: string | undefined; @@ -40,7 +40,7 @@ export type Repl = { export type Storage = { status: GetConfigurationProductsStatus; - repl?: Repl | undefined; + repl?: GetConfigurationProductsRepl | undefined; }; export const GetConfigurationProductsIntegrationsStatus = { @@ -229,42 +229,60 @@ export type GetConfigurationProductsType = ClosedEnum< typeof GetConfigurationProductsType >; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540 = {}; export type PropertiesValue = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540; }; -export const Disabled3 = { +export const GetConfigurationProductsDisabled3 = { Update: "update", Create: "create", } as const; -export type Disabled3 = ClosedEnum; +export type GetConfigurationProductsDisabled3 = ClosedEnum< + typeof GetConfigurationProductsDisabled3 +>; -export type Disabled2 = { +export type GetConfigurationProductsDisabled2 = { expr: string; }; -export type Disabled = Disabled2 | boolean | Disabled3; +export type PropertiesDisabled = + | GetConfigurationProductsDisabled2 + | boolean + | GetConfigurationProductsDisabled3; -export const Hidden3 = { +export const GetConfigurationProductsHidden3 = { Update: "update", Create: "create", } as const; -export type Hidden3 = ClosedEnum; +export type GetConfigurationProductsHidden3 = ClosedEnum< + typeof GetConfigurationProductsHidden3 +>; -export type Hidden2 = { +export type GetConfigurationProductsHidden2 = { expr: string; }; -export type Hidden = Hidden2 | boolean | Hidden3; +export type PropertiesHidden = + | GetConfigurationProductsHidden2 + | boolean + | GetConfigurationProductsHidden3; export type Properties9 = { value: PropertiesValue; - disabled?: Disabled2 | boolean | Disabled3 | undefined; - hidden?: Hidden2 | boolean | Hidden3 | undefined; + disabled?: + | GetConfigurationProductsDisabled2 + | boolean + | GetConfigurationProductsDisabled3 + | undefined; + hidden?: + | GetConfigurationProductsHidden2 + | boolean + | GetConfigurationProductsHidden3 + | undefined; }; export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsType = @@ -294,28 +312,28 @@ export type GetConfigurationProductsPropertiesIntegrationsResponse200Application typeof GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8Type >; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesIntegrationsResponseMinLength = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesIntegrationsResponseMaxLength = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesIntegrationsResponsePattern = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540; }; export type GetConfigurationProductsPropertiesIntegrationsItems = { @@ -335,12 +353,12 @@ export type GetConfigurationProductsPropertiesIntegrationsItems = { enum?: Array | undefined; }; -export type GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943 = +export type GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540 = {}; export type GetConfigurationProductsUiOptionsValue = { - atBRANDAt447943: - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540; }; export const GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJson3 = @@ -397,10 +415,10 @@ export type GetConfigurationProductsUiOptions3 = { | undefined; }; -export type GetConfigurationProductsUiOptionsAtBRANDAt447943 = {}; +export type GetConfigurationProductsUiOptionsAtBRANDAt502540 = {}; export type GetConfigurationProductsUiOptions2 = { - atBRANDAt447943: GetConfigurationProductsUiOptionsAtBRANDAt447943; + atBRANDAt502540: GetConfigurationProductsUiOptionsAtBRANDAt502540; }; export const GetConfigurationProductsDisabledIntegrationsResponse2003 = { @@ -530,20 +548,20 @@ export type GetConfigurationProductsPropertiesIntegrationsResponse200Application expr: string; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540 = {}; export type Default = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540 = {}; export type Example = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540; }; export type Properties8 = { @@ -606,64 +624,70 @@ export type GetConfigurationProductsPropertiesIntegrationsResponse200Application typeof GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONUiControl >; -export type GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943 = {}; +export type GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540 = {}; export type UiOptionsValue = { - atBRANDAt447943: GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943; + atBRANDAt502540: GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540; }; -export const GetConfigurationProductsDisabledIntegrationsResponse3 = { - Update: "update", - Create: "create", -} as const; -export type GetConfigurationProductsDisabledIntegrationsResponse3 = ClosedEnum< - typeof GetConfigurationProductsDisabledIntegrationsResponse3 ->; +export const GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 = + { + Update: "update", + Create: "create", + } as const; +export type GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 = + ClosedEnum< + typeof GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 + >; -export type GetConfigurationProductsDisabledIntegrationsResponse2 = { - expr: string; -}; +export type GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2 = + { + expr: string; + }; export type GetConfigurationProductsUiOptionsDisabled = - | GetConfigurationProductsDisabledIntegrationsResponse2 + | GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2 | boolean - | GetConfigurationProductsDisabledIntegrationsResponse3; + | GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3; -export const GetConfigurationProductsHiddenIntegrationsResponse3 = { - Update: "update", - Create: "create", -} as const; -export type GetConfigurationProductsHiddenIntegrationsResponse3 = ClosedEnum< - typeof GetConfigurationProductsHiddenIntegrationsResponse3 ->; +export const GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 = + { + Update: "update", + Create: "create", + } as const; +export type GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 = + ClosedEnum< + typeof GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 + >; -export type GetConfigurationProductsHiddenIntegrationsResponse2 = { - expr: string; -}; +export type GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2 = + { + expr: string; + }; export type GetConfigurationProductsUiOptionsHidden = - | GetConfigurationProductsHiddenIntegrationsResponse2 + | GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2 | boolean - | GetConfigurationProductsHiddenIntegrationsResponse3; + | GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3; export type UiOptions3 = { value: UiOptionsValue; disabled?: - | GetConfigurationProductsDisabledIntegrationsResponse2 + | GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2 | boolean - | GetConfigurationProductsDisabledIntegrationsResponse3 + | GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 | undefined; hidden?: - | GetConfigurationProductsHiddenIntegrationsResponse2 + | GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2 | boolean - | GetConfigurationProductsHiddenIntegrationsResponse3 + | GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 | undefined; }; -export type UiOptionsAtBRANDAt447943 = {}; +export type UiOptionsAtBRANDAt502540 = {}; export type UiOptions2 = { - atBRANDAt447943: UiOptionsAtBRANDAt447943; + atBRANDAt502540: UiOptionsAtBRANDAt502540; }; export const GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBody3 = @@ -726,28 +750,28 @@ export type GetConfigurationProductsPropertiesUiOptions = | UiOptions2 | UiOptions3; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesMinLength = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesMaxLength = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesPattern = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540; }; export const GetConfigurationProductsUiReadOnlyIntegrationsResponse200ApplicationJSONResponseBody3 = @@ -889,28 +913,28 @@ export type GetConfigurationProductsPropertiesIntegrationsResponse200Application typeof GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6Type >; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesIntegrationsMinLength = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesIntegrationsMaxLength = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540 = {}; export type GetConfigurationProductsPropertiesIntegrationsPattern = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540; }; export type GetConfigurationProductsPropertiesItems = { @@ -928,52 +952,52 @@ export type GetConfigurationProductsPropertiesItems = { enum?: Array | undefined; }; -export const GetConfigurationProductsDisabled3 = { +export const GetConfigurationProductsDisabledIntegrationsResponse3 = { Update: "update", Create: "create", } as const; -export type GetConfigurationProductsDisabled3 = ClosedEnum< - typeof GetConfigurationProductsDisabled3 +export type GetConfigurationProductsDisabledIntegrationsResponse3 = ClosedEnum< + typeof GetConfigurationProductsDisabledIntegrationsResponse3 >; -export type GetConfigurationProductsDisabled2 = { +export type GetConfigurationProductsDisabledIntegrationsResponse2 = { expr: string; }; -export type PropertiesDisabled = - | GetConfigurationProductsDisabled2 +export type GetConfigurationProductsPropertiesIntegrationsDisabled = + | GetConfigurationProductsDisabledIntegrationsResponse2 | boolean - | GetConfigurationProductsDisabled3; + | GetConfigurationProductsDisabledIntegrationsResponse3; -export const GetConfigurationProductsHidden3 = { +export const GetConfigurationProductsHiddenIntegrationsResponse3 = { Update: "update", Create: "create", } as const; -export type GetConfigurationProductsHidden3 = ClosedEnum< - typeof GetConfigurationProductsHidden3 +export type GetConfigurationProductsHiddenIntegrationsResponse3 = ClosedEnum< + typeof GetConfigurationProductsHiddenIntegrationsResponse3 >; -export type GetConfigurationProductsHidden2 = { +export type GetConfigurationProductsHiddenIntegrationsResponse2 = { expr: string; }; -export type PropertiesHidden = - | GetConfigurationProductsHidden2 +export type GetConfigurationProductsPropertiesIntegrationsHidden = + | GetConfigurationProductsHiddenIntegrationsResponse2 | boolean - | GetConfigurationProductsHidden3; + | GetConfigurationProductsHiddenIntegrationsResponse3; export type PropertiesUiOptions = { value: string; label: string; disabled?: - | GetConfigurationProductsDisabled2 + | GetConfigurationProductsDisabledIntegrationsResponse2 | boolean - | GetConfigurationProductsDisabled3 + | GetConfigurationProductsDisabledIntegrationsResponse3 | undefined; hidden?: - | GetConfigurationProductsHidden2 + | GetConfigurationProductsHiddenIntegrationsResponse2 | boolean - | GetConfigurationProductsHidden3 + | GetConfigurationProductsHiddenIntegrationsResponse3 | undefined; }; @@ -1153,27 +1177,27 @@ export type UiOptions = { | undefined; }; -export type GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943 = {}; +export type GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540 = {}; export type PropertiesMinLength = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540 = {}; export type PropertiesMaxLength = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943 = +export type GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540 = {}; export type PropertiesPattern = { - atBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943; + atBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540; }; export const GetConfigurationProductsUiReadOnlyIntegrationsResponse2003 = { @@ -1622,22 +1646,22 @@ export const UiControl = { } as const; export type UiControl = ClosedEnum; -export type AtBRANDAt447943 = {}; +export type AtBRANDAt502540 = {}; export type MinLength = { - atBRANDAt447943: AtBRANDAt447943; + atBRANDAt502540: AtBRANDAt502540; }; -export type PropertiesAtBRANDAt447943 = {}; +export type PropertiesAtBRANDAt502540 = {}; export type MaxLength = { - atBRANDAt447943: PropertiesAtBRANDAt447943; + atBRANDAt502540: PropertiesAtBRANDAt502540; }; -export type GetConfigurationProductsPropertiesAtBRANDAt447943 = {}; +export type GetConfigurationProductsPropertiesAtBRANDAt502540 = {}; export type Pattern = { - atBRANDAt447943: GetConfigurationProductsPropertiesAtBRANDAt447943; + atBRANDAt502540: GetConfigurationProductsPropertiesAtBRANDAt502540; }; export const UiReadOnly3 = { @@ -1844,52 +1868,64 @@ export namespace GetConfigurationProductsStatus$ { } /** @internal */ -export const Repl$inboundSchema: z.ZodType = z - .object({ - enabled: z.boolean(), - supportsReadOnlyMode: z.boolean(), - welcomeMessage: z.string().optional(), - }); +export const GetConfigurationProductsRepl$inboundSchema: z.ZodType< + GetConfigurationProductsRepl, + z.ZodTypeDef, + unknown +> = z.object({ + enabled: z.boolean(), + supportsReadOnlyMode: z.boolean(), + welcomeMessage: z.string().optional(), +}); /** @internal */ -export type Repl$Outbound = { +export type GetConfigurationProductsRepl$Outbound = { enabled: boolean; supportsReadOnlyMode: boolean; welcomeMessage?: string | undefined; }; /** @internal */ -export const Repl$outboundSchema: z.ZodType = - z.object({ - enabled: z.boolean(), - supportsReadOnlyMode: z.boolean(), - welcomeMessage: z.string().optional(), - }); +export const GetConfigurationProductsRepl$outboundSchema: z.ZodType< + GetConfigurationProductsRepl$Outbound, + z.ZodTypeDef, + GetConfigurationProductsRepl +> = z.object({ + enabled: z.boolean(), + supportsReadOnlyMode: z.boolean(), + welcomeMessage: z.string().optional(), +}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Repl$ { - /** @deprecated use `Repl$inboundSchema` instead. */ - export const inboundSchema = Repl$inboundSchema; - /** @deprecated use `Repl$outboundSchema` instead. */ - export const outboundSchema = Repl$outboundSchema; - /** @deprecated use `Repl$Outbound` instead. */ - export type Outbound = Repl$Outbound; +export namespace GetConfigurationProductsRepl$ { + /** @deprecated use `GetConfigurationProductsRepl$inboundSchema` instead. */ + export const inboundSchema = GetConfigurationProductsRepl$inboundSchema; + /** @deprecated use `GetConfigurationProductsRepl$outboundSchema` instead. */ + export const outboundSchema = GetConfigurationProductsRepl$outboundSchema; + /** @deprecated use `GetConfigurationProductsRepl$Outbound` instead. */ + export type Outbound = GetConfigurationProductsRepl$Outbound; } -export function replToJSON(repl: Repl): string { - return JSON.stringify(Repl$outboundSchema.parse(repl)); +export function getConfigurationProductsReplToJSON( + getConfigurationProductsRepl: GetConfigurationProductsRepl, +): string { + return JSON.stringify( + GetConfigurationProductsRepl$outboundSchema.parse( + getConfigurationProductsRepl, + ), + ); } -export function replFromJSON( +export function getConfigurationProductsReplFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => Repl$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Repl' from JSON`, + (x) => GetConfigurationProductsRepl$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetConfigurationProductsRepl' from JSON`, ); } @@ -1897,13 +1933,13 @@ export function replFromJSON( export const Storage$inboundSchema: z.ZodType = z.object({ status: GetConfigurationProductsStatus$inboundSchema, - repl: z.lazy(() => Repl$inboundSchema).optional(), + repl: z.lazy(() => GetConfigurationProductsRepl$inboundSchema).optional(), }); /** @internal */ export type Storage$Outbound = { status: string; - repl?: Repl$Outbound | undefined; + repl?: GetConfigurationProductsRepl$Outbound | undefined; }; /** @internal */ @@ -1913,7 +1949,7 @@ export const Storage$outboundSchema: z.ZodType< Storage > = z.object({ status: GetConfigurationProductsStatus$outboundSchema, - repl: z.lazy(() => Repl$outboundSchema).optional(), + repl: z.lazy(() => GetConfigurationProductsRepl$outboundSchema).optional(), }); /** @@ -2893,65 +2929,65 @@ export namespace GetConfigurationProductsType$ { } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540' from JSON`, ); } @@ -2961,19 +2997,19 @@ export const PropertiesValue$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type PropertiesValue$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$Outbound; }; /** @internal */ @@ -2982,12 +3018,12 @@ export const PropertiesValue$outboundSchema: z.ZodType< z.ZodTypeDef, PropertiesValue > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema9AtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -3021,27 +3057,30 @@ export function propertiesValueFromJSON( } /** @internal */ -export const Disabled3$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Disabled3); +export const GetConfigurationProductsDisabled3$inboundSchema: z.ZodNativeEnum< + typeof GetConfigurationProductsDisabled3 +> = z.nativeEnum(GetConfigurationProductsDisabled3); /** @internal */ -export const Disabled3$outboundSchema: z.ZodNativeEnum = - Disabled3$inboundSchema; +export const GetConfigurationProductsDisabled3$outboundSchema: z.ZodNativeEnum< + typeof GetConfigurationProductsDisabled3 +> = GetConfigurationProductsDisabled3$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Disabled3$ { - /** @deprecated use `Disabled3$inboundSchema` instead. */ - export const inboundSchema = Disabled3$inboundSchema; - /** @deprecated use `Disabled3$outboundSchema` instead. */ - export const outboundSchema = Disabled3$outboundSchema; +export namespace GetConfigurationProductsDisabled3$ { + /** @deprecated use `GetConfigurationProductsDisabled3$inboundSchema` instead. */ + export const inboundSchema = GetConfigurationProductsDisabled3$inboundSchema; + /** @deprecated use `GetConfigurationProductsDisabled3$outboundSchema` instead. */ + export const outboundSchema = + GetConfigurationProductsDisabled3$outboundSchema; } /** @internal */ -export const Disabled2$inboundSchema: z.ZodType< - Disabled2, +export const GetConfigurationProductsDisabled2$inboundSchema: z.ZodType< + GetConfigurationProductsDisabled2, z.ZodTypeDef, unknown > = z.object({ @@ -3049,15 +3088,15 @@ export const Disabled2$inboundSchema: z.ZodType< }); /** @internal */ -export type Disabled2$Outbound = { +export type GetConfigurationProductsDisabled2$Outbound = { expr: string; }; /** @internal */ -export const Disabled2$outboundSchema: z.ZodType< - Disabled2$Outbound, +export const GetConfigurationProductsDisabled2$outboundSchema: z.ZodType< + GetConfigurationProductsDisabled2$Outbound, z.ZodTypeDef, - Disabled2 + GetConfigurationProductsDisabled2 > = z.object({ expr: z.string(), }); @@ -3066,116 +3105,135 @@ export const Disabled2$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Disabled2$ { - /** @deprecated use `Disabled2$inboundSchema` instead. */ - export const inboundSchema = Disabled2$inboundSchema; - /** @deprecated use `Disabled2$outboundSchema` instead. */ - export const outboundSchema = Disabled2$outboundSchema; - /** @deprecated use `Disabled2$Outbound` instead. */ - export type Outbound = Disabled2$Outbound; +export namespace GetConfigurationProductsDisabled2$ { + /** @deprecated use `GetConfigurationProductsDisabled2$inboundSchema` instead. */ + export const inboundSchema = GetConfigurationProductsDisabled2$inboundSchema; + /** @deprecated use `GetConfigurationProductsDisabled2$outboundSchema` instead. */ + export const outboundSchema = + GetConfigurationProductsDisabled2$outboundSchema; + /** @deprecated use `GetConfigurationProductsDisabled2$Outbound` instead. */ + export type Outbound = GetConfigurationProductsDisabled2$Outbound; } -export function disabled2ToJSON(disabled2: Disabled2): string { - return JSON.stringify(Disabled2$outboundSchema.parse(disabled2)); +export function getConfigurationProductsDisabled2ToJSON( + getConfigurationProductsDisabled2: GetConfigurationProductsDisabled2, +): string { + return JSON.stringify( + GetConfigurationProductsDisabled2$outboundSchema.parse( + getConfigurationProductsDisabled2, + ), + ); } -export function disabled2FromJSON( +export function getConfigurationProductsDisabled2FromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => Disabled2$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Disabled2' from JSON`, + (x) => GetConfigurationProductsDisabled2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetConfigurationProductsDisabled2' from JSON`, ); } /** @internal */ -export const Disabled$inboundSchema: z.ZodType< - Disabled, +export const PropertiesDisabled$inboundSchema: z.ZodType< + PropertiesDisabled, z.ZodTypeDef, unknown > = z.union([ - z.lazy(() => Disabled2$inboundSchema), + z.lazy(() => GetConfigurationProductsDisabled2$inboundSchema), z.boolean(), - Disabled3$inboundSchema, + GetConfigurationProductsDisabled3$inboundSchema, ]); /** @internal */ -export type Disabled$Outbound = Disabled2$Outbound | boolean | string; +export type PropertiesDisabled$Outbound = + | GetConfigurationProductsDisabled2$Outbound + | boolean + | string; /** @internal */ -export const Disabled$outboundSchema: z.ZodType< - Disabled$Outbound, +export const PropertiesDisabled$outboundSchema: z.ZodType< + PropertiesDisabled$Outbound, z.ZodTypeDef, - Disabled + PropertiesDisabled > = z.union([ - z.lazy(() => Disabled2$outboundSchema), + z.lazy(() => GetConfigurationProductsDisabled2$outboundSchema), z.boolean(), - Disabled3$outboundSchema, + GetConfigurationProductsDisabled3$outboundSchema, ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Disabled$ { - /** @deprecated use `Disabled$inboundSchema` instead. */ - export const inboundSchema = Disabled$inboundSchema; - /** @deprecated use `Disabled$outboundSchema` instead. */ - export const outboundSchema = Disabled$outboundSchema; - /** @deprecated use `Disabled$Outbound` instead. */ - export type Outbound = Disabled$Outbound; +export namespace PropertiesDisabled$ { + /** @deprecated use `PropertiesDisabled$inboundSchema` instead. */ + export const inboundSchema = PropertiesDisabled$inboundSchema; + /** @deprecated use `PropertiesDisabled$outboundSchema` instead. */ + export const outboundSchema = PropertiesDisabled$outboundSchema; + /** @deprecated use `PropertiesDisabled$Outbound` instead. */ + export type Outbound = PropertiesDisabled$Outbound; } -export function disabledToJSON(disabled: Disabled): string { - return JSON.stringify(Disabled$outboundSchema.parse(disabled)); +export function propertiesDisabledToJSON( + propertiesDisabled: PropertiesDisabled, +): string { + return JSON.stringify( + PropertiesDisabled$outboundSchema.parse(propertiesDisabled), + ); } -export function disabledFromJSON( +export function propertiesDisabledFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => Disabled$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Disabled' from JSON`, + (x) => PropertiesDisabled$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PropertiesDisabled' from JSON`, ); } /** @internal */ -export const Hidden3$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Hidden3); +export const GetConfigurationProductsHidden3$inboundSchema: z.ZodNativeEnum< + typeof GetConfigurationProductsHidden3 +> = z.nativeEnum(GetConfigurationProductsHidden3); /** @internal */ -export const Hidden3$outboundSchema: z.ZodNativeEnum = - Hidden3$inboundSchema; +export const GetConfigurationProductsHidden3$outboundSchema: z.ZodNativeEnum< + typeof GetConfigurationProductsHidden3 +> = GetConfigurationProductsHidden3$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Hidden3$ { - /** @deprecated use `Hidden3$inboundSchema` instead. */ - export const inboundSchema = Hidden3$inboundSchema; - /** @deprecated use `Hidden3$outboundSchema` instead. */ - export const outboundSchema = Hidden3$outboundSchema; +export namespace GetConfigurationProductsHidden3$ { + /** @deprecated use `GetConfigurationProductsHidden3$inboundSchema` instead. */ + export const inboundSchema = GetConfigurationProductsHidden3$inboundSchema; + /** @deprecated use `GetConfigurationProductsHidden3$outboundSchema` instead. */ + export const outboundSchema = GetConfigurationProductsHidden3$outboundSchema; } /** @internal */ -export const Hidden2$inboundSchema: z.ZodType = - z.object({ - expr: z.string(), - }); +export const GetConfigurationProductsHidden2$inboundSchema: z.ZodType< + GetConfigurationProductsHidden2, + z.ZodTypeDef, + unknown +> = z.object({ + expr: z.string(), +}); /** @internal */ -export type Hidden2$Outbound = { +export type GetConfigurationProductsHidden2$Outbound = { expr: string; }; /** @internal */ -export const Hidden2$outboundSchema: z.ZodType< - Hidden2$Outbound, +export const GetConfigurationProductsHidden2$outboundSchema: z.ZodType< + GetConfigurationProductsHidden2$Outbound, z.ZodTypeDef, - Hidden2 + GetConfigurationProductsHidden2 > = z.object({ expr: z.string(), }); @@ -3184,75 +3242,91 @@ export const Hidden2$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Hidden2$ { - /** @deprecated use `Hidden2$inboundSchema` instead. */ - export const inboundSchema = Hidden2$inboundSchema; - /** @deprecated use `Hidden2$outboundSchema` instead. */ - export const outboundSchema = Hidden2$outboundSchema; - /** @deprecated use `Hidden2$Outbound` instead. */ - export type Outbound = Hidden2$Outbound; +export namespace GetConfigurationProductsHidden2$ { + /** @deprecated use `GetConfigurationProductsHidden2$inboundSchema` instead. */ + export const inboundSchema = GetConfigurationProductsHidden2$inboundSchema; + /** @deprecated use `GetConfigurationProductsHidden2$outboundSchema` instead. */ + export const outboundSchema = GetConfigurationProductsHidden2$outboundSchema; + /** @deprecated use `GetConfigurationProductsHidden2$Outbound` instead. */ + export type Outbound = GetConfigurationProductsHidden2$Outbound; } -export function hidden2ToJSON(hidden2: Hidden2): string { - return JSON.stringify(Hidden2$outboundSchema.parse(hidden2)); +export function getConfigurationProductsHidden2ToJSON( + getConfigurationProductsHidden2: GetConfigurationProductsHidden2, +): string { + return JSON.stringify( + GetConfigurationProductsHidden2$outboundSchema.parse( + getConfigurationProductsHidden2, + ), + ); } -export function hidden2FromJSON( +export function getConfigurationProductsHidden2FromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => Hidden2$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Hidden2' from JSON`, + (x) => GetConfigurationProductsHidden2$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetConfigurationProductsHidden2' from JSON`, ); } /** @internal */ -export const Hidden$inboundSchema: z.ZodType = z - .union([ - z.lazy(() => Hidden2$inboundSchema), - z.boolean(), - Hidden3$inboundSchema, - ]); +export const PropertiesHidden$inboundSchema: z.ZodType< + PropertiesHidden, + z.ZodTypeDef, + unknown +> = z.union([ + z.lazy(() => GetConfigurationProductsHidden2$inboundSchema), + z.boolean(), + GetConfigurationProductsHidden3$inboundSchema, +]); /** @internal */ -export type Hidden$Outbound = Hidden2$Outbound | boolean | string; +export type PropertiesHidden$Outbound = + | GetConfigurationProductsHidden2$Outbound + | boolean + | string; /** @internal */ -export const Hidden$outboundSchema: z.ZodType< - Hidden$Outbound, +export const PropertiesHidden$outboundSchema: z.ZodType< + PropertiesHidden$Outbound, z.ZodTypeDef, - Hidden + PropertiesHidden > = z.union([ - z.lazy(() => Hidden2$outboundSchema), + z.lazy(() => GetConfigurationProductsHidden2$outboundSchema), z.boolean(), - Hidden3$outboundSchema, + GetConfigurationProductsHidden3$outboundSchema, ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Hidden$ { - /** @deprecated use `Hidden$inboundSchema` instead. */ - export const inboundSchema = Hidden$inboundSchema; - /** @deprecated use `Hidden$outboundSchema` instead. */ - export const outboundSchema = Hidden$outboundSchema; - /** @deprecated use `Hidden$Outbound` instead. */ - export type Outbound = Hidden$Outbound; -} +export namespace PropertiesHidden$ { + /** @deprecated use `PropertiesHidden$inboundSchema` instead. */ + export const inboundSchema = PropertiesHidden$inboundSchema; + /** @deprecated use `PropertiesHidden$outboundSchema` instead. */ + export const outboundSchema = PropertiesHidden$outboundSchema; + /** @deprecated use `PropertiesHidden$Outbound` instead. */ + export type Outbound = PropertiesHidden$Outbound; +} -export function hiddenToJSON(hidden: Hidden): string { - return JSON.stringify(Hidden$outboundSchema.parse(hidden)); +export function propertiesHiddenToJSON( + propertiesHidden: PropertiesHidden, +): string { + return JSON.stringify( + PropertiesHidden$outboundSchema.parse(propertiesHidden), + ); } -export function hiddenFromJSON( +export function propertiesHiddenFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => Hidden$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Hidden' from JSON`, + (x) => PropertiesHidden$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PropertiesHidden' from JSON`, ); } @@ -3264,22 +3338,30 @@ export const Properties9$inboundSchema: z.ZodType< > = z.object({ value: z.lazy(() => PropertiesValue$inboundSchema), disabled: z.union([ - z.lazy(() => Disabled2$inboundSchema), + z.lazy(() => GetConfigurationProductsDisabled2$inboundSchema), z.boolean(), - Disabled3$inboundSchema, + GetConfigurationProductsDisabled3$inboundSchema, ]).optional(), hidden: z.union([ - z.lazy(() => Hidden2$inboundSchema), + z.lazy(() => GetConfigurationProductsHidden2$inboundSchema), z.boolean(), - Hidden3$inboundSchema, + GetConfigurationProductsHidden3$inboundSchema, ]).optional(), }); /** @internal */ export type Properties9$Outbound = { value: PropertiesValue$Outbound; - disabled?: Disabled2$Outbound | boolean | string | undefined; - hidden?: Hidden2$Outbound | boolean | string | undefined; + disabled?: + | GetConfigurationProductsDisabled2$Outbound + | boolean + | string + | undefined; + hidden?: + | GetConfigurationProductsHidden2$Outbound + | boolean + | string + | undefined; }; /** @internal */ @@ -3290,14 +3372,14 @@ export const Properties9$outboundSchema: z.ZodType< > = z.object({ value: z.lazy(() => PropertiesValue$outboundSchema), disabled: z.union([ - z.lazy(() => Disabled2$outboundSchema), + z.lazy(() => GetConfigurationProductsDisabled2$outboundSchema), z.boolean(), - Disabled3$outboundSchema, + GetConfigurationProductsDisabled3$outboundSchema, ]).optional(), hidden: z.union([ - z.lazy(() => Hidden2$outboundSchema), + z.lazy(() => GetConfigurationProductsHidden2$outboundSchema), z.boolean(), - Hidden3$outboundSchema, + GetConfigurationProductsHidden3$outboundSchema, ]).optional(), }); @@ -3413,65 +3495,65 @@ export namespace GetConfigurationProductsPropertiesIntegrationsResponse200Applic } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540' from JSON`, ); } @@ -3482,20 +3564,20 @@ export const GetConfigurationProductsPropertiesIntegrationsResponseMinLength$inb z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesIntegrationsResponseMinLength$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$Outbound; }; /** @internal */ @@ -3505,12 +3587,12 @@ export const GetConfigurationProductsPropertiesIntegrationsResponseMinLength$out z.ZodTypeDef, GetConfigurationProductsPropertiesIntegrationsResponseMinLength > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsMinLengthAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -3556,65 +3638,65 @@ export function getConfigurationProductsPropertiesIntegrationsResponseMinLengthF } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540' from JSON`, ); } @@ -3625,20 +3707,20 @@ export const GetConfigurationProductsPropertiesIntegrationsResponseMaxLength$inb z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesIntegrationsResponseMaxLength$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$Outbound; }; /** @internal */ @@ -3648,12 +3730,12 @@ export const GetConfigurationProductsPropertiesIntegrationsResponseMaxLength$out z.ZodTypeDef, GetConfigurationProductsPropertiesIntegrationsResponseMaxLength > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -3699,65 +3781,65 @@ export function getConfigurationProductsPropertiesIntegrationsResponseMaxLengthF } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540' from JSON`, ); } @@ -3768,20 +3850,20 @@ export const GetConfigurationProductsPropertiesIntegrationsResponsePattern$inbou z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesIntegrationsResponsePattern$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$Outbound; }; /** @internal */ @@ -3791,12 +3873,12 @@ export const GetConfigurationProductsPropertiesIntegrationsResponsePattern$outbo z.ZodTypeDef, GetConfigurationProductsPropertiesIntegrationsResponsePattern > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8ItemsPatternAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -3948,65 +4030,65 @@ export function getConfigurationProductsPropertiesIntegrationsItemsFromJSON( } /** @internal */ -export const GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943, + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$Outbound = +export type GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$Outbound, + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943 + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$Outbound; + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$Outbound; } -export function getConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943ToJSON( - getConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943: - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943, +export function getConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540ToJSON( + getConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540: + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$outboundSchema + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943, + getConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540, ), ); } -export function getConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943FromJSON( +export function getConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943, + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$inboundSchema + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540' from JSON`, ); } @@ -4016,19 +4098,19 @@ export const GetConfigurationProductsUiOptionsValue$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsUiOptionsValue$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$Outbound; }; /** @internal */ @@ -4037,12 +4119,12 @@ export const GetConfigurationProductsUiOptionsValue$outboundSchema: z.ZodType< z.ZodTypeDef, GetConfigurationProductsUiOptionsValue > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsUiOptionsIntegrationsResponseAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -4524,64 +4606,64 @@ export function getConfigurationProductsUiOptions3FromJSON( } /** @internal */ -export const GetConfigurationProductsUiOptionsAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsUiOptionsAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsUiOptionsAtBRANDAt447943, + GetConfigurationProductsUiOptionsAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsUiOptionsAtBRANDAt447943$Outbound = {}; +export type GetConfigurationProductsUiOptionsAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsUiOptionsAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsUiOptionsAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsUiOptionsAtBRANDAt447943$Outbound, + GetConfigurationProductsUiOptionsAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsUiOptionsAtBRANDAt447943 + GetConfigurationProductsUiOptionsAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsUiOptionsAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsUiOptionsAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsUiOptionsAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsUiOptionsAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsUiOptionsAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsUiOptionsAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsUiOptionsAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsUiOptionsAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsUiOptionsAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsUiOptionsAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsUiOptionsAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsUiOptionsAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsUiOptionsAtBRANDAt447943$Outbound; + GetConfigurationProductsUiOptionsAtBRANDAt502540$Outbound; } -export function getConfigurationProductsUiOptionsAtBRANDAt447943ToJSON( - getConfigurationProductsUiOptionsAtBRANDAt447943: - GetConfigurationProductsUiOptionsAtBRANDAt447943, +export function getConfigurationProductsUiOptionsAtBRANDAt502540ToJSON( + getConfigurationProductsUiOptionsAtBRANDAt502540: + GetConfigurationProductsUiOptionsAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsUiOptionsAtBRANDAt447943$outboundSchema.parse( - getConfigurationProductsUiOptionsAtBRANDAt447943, + GetConfigurationProductsUiOptionsAtBRANDAt502540$outboundSchema.parse( + getConfigurationProductsUiOptionsAtBRANDAt502540, ), ); } -export function getConfigurationProductsUiOptionsAtBRANDAt447943FromJSON( +export function getConfigurationProductsUiOptionsAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsUiOptionsAtBRANDAt447943, + GetConfigurationProductsUiOptionsAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsUiOptionsAtBRANDAt447943$inboundSchema.parse( + GetConfigurationProductsUiOptionsAtBRANDAt502540$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'GetConfigurationProductsUiOptionsAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsUiOptionsAtBRANDAt502540' from JSON`, ); } @@ -4591,18 +4673,18 @@ export const GetConfigurationProductsUiOptions2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsUiOptionsAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsUiOptionsAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsUiOptions2$Outbound = { - "__@BRAND@447943": GetConfigurationProductsUiOptionsAtBRANDAt447943$Outbound; + "__@BRAND@502540": GetConfigurationProductsUiOptionsAtBRANDAt502540$Outbound; }; /** @internal */ @@ -4611,12 +4693,12 @@ export const GetConfigurationProductsUiOptions2$outboundSchema: z.ZodType< z.ZodTypeDef, GetConfigurationProductsUiOptions2 > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsUiOptionsAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsUiOptionsAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -5898,84 +5980,84 @@ export function getConfigurationProductsPropertiesIntegrationsResponse200Applica } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540' from JSON`, ); } /** @internal */ export const Default$inboundSchema: z.ZodType = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type Default$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$Outbound; }; /** @internal */ @@ -5984,12 +6066,12 @@ export const Default$outboundSchema: z.ZodType< z.ZodTypeDef, Default > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchemaAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -6021,84 +6103,84 @@ export function defaultFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540' from JSON`, ); } /** @internal */ export const Example$inboundSchema: z.ZodType = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type Example$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$Outbound; }; /** @internal */ @@ -6107,12 +6189,12 @@ export const Example$outboundSchema: z.ZodType< z.ZodTypeDef, Example > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema8AtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -6410,63 +6492,63 @@ export namespace GetConfigurationProductsPropertiesIntegrationsResponse200Applic } /** @internal */ -export const GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943, + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$Outbound = +export type GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$Outbound, + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943 + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$Outbound; + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$Outbound; } -export function getConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943ToJSON( - getConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943: - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943, +export function getConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540ToJSON( + getConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540: + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$outboundSchema - .parse(getConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943), + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$outboundSchema + .parse(getConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540), ); } -export function getConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943FromJSON( +export function getConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943, + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$inboundSchema + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540' from JSON`, ); } @@ -6476,19 +6558,19 @@ export const UiOptionsValue$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type UiOptionsValue$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$Outbound; }; /** @internal */ @@ -6497,12 +6579,12 @@ export const UiOptionsValue$outboundSchema: z.ZodType< z.ZodTypeDef, UiOptionsValue > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsUiOptionsIntegrationsAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -6534,34 +6616,37 @@ export function uiOptionsValueFromJSON( } /** @internal */ -export const GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema: +export const GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema: z.ZodNativeEnum< - typeof GetConfigurationProductsDisabledIntegrationsResponse3 - > = z.nativeEnum(GetConfigurationProductsDisabledIntegrationsResponse3); + typeof GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 + > = z.nativeEnum( + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3, + ); /** @internal */ -export const GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema: +export const GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema: z.ZodNativeEnum< - typeof GetConfigurationProductsDisabledIntegrationsResponse3 - > = GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema; + typeof GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3 + > = + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsDisabledIntegrationsResponse3$ { - /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema` instead. */ +export namespace GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$ { + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema; - /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema` instead. */ + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema; + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema; + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema; } /** @internal */ -export const GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema: +export const GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema: z.ZodType< - GetConfigurationProductsDisabledIntegrationsResponse2, + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2, z.ZodTypeDef, unknown > = z.object({ @@ -6569,16 +6654,17 @@ export const GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema }); /** @internal */ -export type GetConfigurationProductsDisabledIntegrationsResponse2$Outbound = { - expr: string; -}; +export type GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound = + { + expr: string; + }; /** @internal */ -export const GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema: +export const GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema: z.ZodType< - GetConfigurationProductsDisabledIntegrationsResponse2$Outbound, + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound, z.ZodTypeDef, - GetConfigurationProductsDisabledIntegrationsResponse2 + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2 > = z.object({ expr: z.string(), }); @@ -6587,42 +6673,42 @@ export const GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchem * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsDisabledIntegrationsResponse2$ { - /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema` instead. */ +export namespace GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$ { + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema; - /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema` instead. */ + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema; + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema; - /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse2$Outbound` instead. */ + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema; + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound` instead. */ export type Outbound = - GetConfigurationProductsDisabledIntegrationsResponse2$Outbound; + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound; } -export function getConfigurationProductsDisabledIntegrationsResponse2ToJSON( - getConfigurationProductsDisabledIntegrationsResponse2: - GetConfigurationProductsDisabledIntegrationsResponse2, +export function getConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2ToJSON( + getConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2: + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2, ): string { return JSON.stringify( - GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema.parse( - getConfigurationProductsDisabledIntegrationsResponse2, - ), + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema + .parse( + getConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2, + ), ); } -export function getConfigurationProductsDisabledIntegrationsResponse2FromJSON( +export function getConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsDisabledIntegrationsResponse2, + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetConfigurationProductsDisabledIntegrationsResponse2' from JSON`, + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2' from JSON`, ); } @@ -6633,15 +6719,15 @@ export const GetConfigurationProductsUiOptionsDisabled$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => - GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema ), z.boolean(), - GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema, + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema, ]); /** @internal */ export type GetConfigurationProductsUiOptionsDisabled$Outbound = - | GetConfigurationProductsDisabledIntegrationsResponse2$Outbound + | GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound | boolean | string; @@ -6653,10 +6739,10 @@ export const GetConfigurationProductsUiOptionsDisabled$outboundSchema: GetConfigurationProductsUiOptionsDisabled > = z.union([ z.lazy(() => - GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema ), z.boolean(), - GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema, + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema, ]); /** @@ -6702,32 +6788,37 @@ export function getConfigurationProductsUiOptionsDisabledFromJSON( } /** @internal */ -export const GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema: - z.ZodNativeEnum = - z.nativeEnum(GetConfigurationProductsHiddenIntegrationsResponse3); +export const GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema: + z.ZodNativeEnum< + typeof GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 + > = z.nativeEnum( + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3, + ); /** @internal */ -export const GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema: - z.ZodNativeEnum = - GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema; +export const GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema: + z.ZodNativeEnum< + typeof GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3 + > = + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsHiddenIntegrationsResponse3$ { - /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema` instead. */ +export namespace GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$ { + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema; - /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema` instead. */ + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema; + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema; + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema; } /** @internal */ -export const GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema: +export const GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema: z.ZodType< - GetConfigurationProductsHiddenIntegrationsResponse2, + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2, z.ZodTypeDef, unknown > = z.object({ @@ -6735,16 +6826,17 @@ export const GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema: }); /** @internal */ -export type GetConfigurationProductsHiddenIntegrationsResponse2$Outbound = { - expr: string; -}; +export type GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound = + { + expr: string; + }; /** @internal */ -export const GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema: +export const GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema: z.ZodType< - GetConfigurationProductsHiddenIntegrationsResponse2$Outbound, + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound, z.ZodTypeDef, - GetConfigurationProductsHiddenIntegrationsResponse2 + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2 > = z.object({ expr: z.string(), }); @@ -6753,42 +6845,42 @@ export const GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema: * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsHiddenIntegrationsResponse2$ { - /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema` instead. */ +export namespace GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$ { + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema; - /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema` instead. */ + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema; + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema; - /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse2$Outbound` instead. */ + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema; + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound` instead. */ export type Outbound = - GetConfigurationProductsHiddenIntegrationsResponse2$Outbound; + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound; } -export function getConfigurationProductsHiddenIntegrationsResponse2ToJSON( - getConfigurationProductsHiddenIntegrationsResponse2: - GetConfigurationProductsHiddenIntegrationsResponse2, +export function getConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2ToJSON( + getConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2: + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2, ): string { return JSON.stringify( - GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema.parse( - getConfigurationProductsHiddenIntegrationsResponse2, - ), + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema + .parse( + getConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2, + ), ); } -export function getConfigurationProductsHiddenIntegrationsResponse2FromJSON( +export function getConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsHiddenIntegrationsResponse2, + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'GetConfigurationProductsHiddenIntegrationsResponse2' from JSON`, + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2' from JSON`, ); } @@ -6799,15 +6891,15 @@ export const GetConfigurationProductsUiOptionsHidden$inboundSchema: z.ZodType< unknown > = z.union([ z.lazy(() => - GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema ), z.boolean(), - GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema, + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema, ]); /** @internal */ export type GetConfigurationProductsUiOptionsHidden$Outbound = - | GetConfigurationProductsHiddenIntegrationsResponse2$Outbound + | GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound | boolean | string; @@ -6818,10 +6910,10 @@ export const GetConfigurationProductsUiOptionsHidden$outboundSchema: z.ZodType< GetConfigurationProductsUiOptionsHidden > = z.union([ z.lazy(() => - GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema ), z.boolean(), - GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema, + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema, ]); /** @@ -6875,17 +6967,17 @@ export const UiOptions3$inboundSchema: z.ZodType< value: z.lazy(() => UiOptionsValue$inboundSchema), disabled: z.union([ z.lazy(() => - GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema ), z.boolean(), - GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema, + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema, ]).optional(), hidden: z.union([ z.lazy(() => - GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$inboundSchema ), z.boolean(), - GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema, + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$inboundSchema, ]).optional(), }); @@ -6893,12 +6985,12 @@ export const UiOptions3$inboundSchema: z.ZodType< export type UiOptions3$Outbound = { value: UiOptionsValue$Outbound; disabled?: - | GetConfigurationProductsDisabledIntegrationsResponse2$Outbound + | GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound | boolean | string | undefined; hidden?: - | GetConfigurationProductsHiddenIntegrationsResponse2$Outbound + | GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$Outbound | boolean | string | undefined; @@ -6913,17 +7005,17 @@ export const UiOptions3$outboundSchema: z.ZodType< value: z.lazy(() => UiOptionsValue$outboundSchema), disabled: z.union([ z.lazy(() => - GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema ), z.boolean(), - GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema, + GetConfigurationProductsDisabledIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema, ]).optional(), hidden: z.union([ z.lazy(() => - GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts2$outboundSchema ), z.boolean(), - GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema, + GetConfigurationProductsHiddenIntegrationsResponse200ApplicationJSONResponseBodyProducts3$outboundSchema, ]).optional(), }); @@ -6955,50 +7047,50 @@ export function uiOptions3FromJSON( } /** @internal */ -export const UiOptionsAtBRANDAt447943$inboundSchema: z.ZodType< - UiOptionsAtBRANDAt447943, +export const UiOptionsAtBRANDAt502540$inboundSchema: z.ZodType< + UiOptionsAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type UiOptionsAtBRANDAt447943$Outbound = {}; +export type UiOptionsAtBRANDAt502540$Outbound = {}; /** @internal */ -export const UiOptionsAtBRANDAt447943$outboundSchema: z.ZodType< - UiOptionsAtBRANDAt447943$Outbound, +export const UiOptionsAtBRANDAt502540$outboundSchema: z.ZodType< + UiOptionsAtBRANDAt502540$Outbound, z.ZodTypeDef, - UiOptionsAtBRANDAt447943 + UiOptionsAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UiOptionsAtBRANDAt447943$ { - /** @deprecated use `UiOptionsAtBRANDAt447943$inboundSchema` instead. */ - export const inboundSchema = UiOptionsAtBRANDAt447943$inboundSchema; - /** @deprecated use `UiOptionsAtBRANDAt447943$outboundSchema` instead. */ - export const outboundSchema = UiOptionsAtBRANDAt447943$outboundSchema; - /** @deprecated use `UiOptionsAtBRANDAt447943$Outbound` instead. */ - export type Outbound = UiOptionsAtBRANDAt447943$Outbound; +export namespace UiOptionsAtBRANDAt502540$ { + /** @deprecated use `UiOptionsAtBRANDAt502540$inboundSchema` instead. */ + export const inboundSchema = UiOptionsAtBRANDAt502540$inboundSchema; + /** @deprecated use `UiOptionsAtBRANDAt502540$outboundSchema` instead. */ + export const outboundSchema = UiOptionsAtBRANDAt502540$outboundSchema; + /** @deprecated use `UiOptionsAtBRANDAt502540$Outbound` instead. */ + export type Outbound = UiOptionsAtBRANDAt502540$Outbound; } -export function uiOptionsAtBRANDAt447943ToJSON( - uiOptionsAtBRANDAt447943: UiOptionsAtBRANDAt447943, +export function uiOptionsAtBRANDAt502540ToJSON( + uiOptionsAtBRANDAt502540: UiOptionsAtBRANDAt502540, ): string { return JSON.stringify( - UiOptionsAtBRANDAt447943$outboundSchema.parse(uiOptionsAtBRANDAt447943), + UiOptionsAtBRANDAt502540$outboundSchema.parse(uiOptionsAtBRANDAt502540), ); } -export function uiOptionsAtBRANDAt447943FromJSON( +export function uiOptionsAtBRANDAt502540FromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UiOptionsAtBRANDAt447943$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UiOptionsAtBRANDAt447943' from JSON`, + (x) => UiOptionsAtBRANDAt502540$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UiOptionsAtBRANDAt502540' from JSON`, ); } @@ -7008,16 +7100,16 @@ export const UiOptions2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => UiOptionsAtBRANDAt447943$inboundSchema), + "__@BRAND@502540": z.lazy(() => UiOptionsAtBRANDAt502540$inboundSchema), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type UiOptions2$Outbound = { - "__@BRAND@447943": UiOptionsAtBRANDAt447943$Outbound; + "__@BRAND@502540": UiOptionsAtBRANDAt502540$Outbound; }; /** @internal */ @@ -7026,10 +7118,10 @@ export const UiOptions2$outboundSchema: z.ZodType< z.ZodTypeDef, UiOptions2 > = z.object({ - atBRANDAt447943: z.lazy(() => UiOptionsAtBRANDAt447943$outboundSchema), + atBRANDAt502540: z.lazy(() => UiOptionsAtBRANDAt502540$outboundSchema), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -7542,65 +7634,65 @@ export function getConfigurationProductsPropertiesUiOptionsFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540' from JSON`, ); } @@ -7611,19 +7703,19 @@ export const GetConfigurationProductsPropertiesMinLength$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesMinLength$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$Outbound; }; /** @internal */ @@ -7633,12 +7725,12 @@ export const GetConfigurationProductsPropertiesMinLength$outboundSchema: z.ZodTypeDef, GetConfigurationProductsPropertiesMinLength > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -7685,65 +7777,65 @@ export function getConfigurationProductsPropertiesMinLengthFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540' from JSON`, ); } @@ -7754,19 +7846,19 @@ export const GetConfigurationProductsPropertiesMaxLength$inboundSchema: z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesMaxLength$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$Outbound; }; /** @internal */ @@ -7776,12 +7868,12 @@ export const GetConfigurationProductsPropertiesMaxLength$outboundSchema: z.ZodTypeDef, GetConfigurationProductsPropertiesMaxLength > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -7828,65 +7920,65 @@ export function getConfigurationProductsPropertiesMaxLengthFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540' from JSON`, ); } @@ -7896,19 +7988,19 @@ export const GetConfigurationProductsPropertiesPattern$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesPattern$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$Outbound; }; /** @internal */ @@ -7918,12 +8010,12 @@ export const GetConfigurationProductsPropertiesPattern$outboundSchema: z.ZodTypeDef, GetConfigurationProductsPropertiesPattern > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -9003,65 +9095,65 @@ export namespace GetConfigurationProductsPropertiesIntegrationsResponse200Applic } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540' from JSON`, ); } @@ -9072,19 +9164,19 @@ export const GetConfigurationProductsPropertiesIntegrationsMinLength$inboundSche z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesIntegrationsMinLength$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$Outbound; }; /** @internal */ @@ -9094,12 +9186,12 @@ export const GetConfigurationProductsPropertiesIntegrationsMinLength$outboundSch z.ZodTypeDef, GetConfigurationProductsPropertiesIntegrationsMinLength > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsMinLengthAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -9145,65 +9237,65 @@ export function getConfigurationProductsPropertiesIntegrationsMinLengthFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540' from JSON`, ); } @@ -9214,19 +9306,19 @@ export const GetConfigurationProductsPropertiesIntegrationsMaxLength$inboundSche z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesIntegrationsMaxLength$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$Outbound; }; /** @internal */ @@ -9236,12 +9328,12 @@ export const GetConfigurationProductsPropertiesIntegrationsMaxLength$outboundSch z.ZodTypeDef, GetConfigurationProductsPropertiesIntegrationsMaxLength > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6AtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -9287,65 +9379,65 @@ export function getConfigurationProductsPropertiesIntegrationsMaxLengthFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540' from JSON`, ); } @@ -9356,19 +9448,19 @@ export const GetConfigurationProductsPropertiesIntegrationsPattern$inboundSchema z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type GetConfigurationProductsPropertiesIntegrationsPattern$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$Outbound; }; /** @internal */ @@ -9378,12 +9470,12 @@ export const GetConfigurationProductsPropertiesIntegrationsPattern$outboundSchem z.ZodTypeDef, GetConfigurationProductsPropertiesIntegrationsPattern > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200ApplicationJSONResponseBodyProductsMetadataSchema6ItemsAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -9534,276 +9626,339 @@ export function getConfigurationProductsPropertiesItemsFromJSON( } /** @internal */ -export const GetConfigurationProductsDisabled3$inboundSchema: z.ZodNativeEnum< - typeof GetConfigurationProductsDisabled3 -> = z.nativeEnum(GetConfigurationProductsDisabled3); +export const GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema: + z.ZodNativeEnum< + typeof GetConfigurationProductsDisabledIntegrationsResponse3 + > = z.nativeEnum(GetConfigurationProductsDisabledIntegrationsResponse3); /** @internal */ -export const GetConfigurationProductsDisabled3$outboundSchema: z.ZodNativeEnum< - typeof GetConfigurationProductsDisabled3 -> = GetConfigurationProductsDisabled3$inboundSchema; +export const GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema: + z.ZodNativeEnum< + typeof GetConfigurationProductsDisabledIntegrationsResponse3 + > = GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsDisabled3$ { - /** @deprecated use `GetConfigurationProductsDisabled3$inboundSchema` instead. */ - export const inboundSchema = GetConfigurationProductsDisabled3$inboundSchema; - /** @deprecated use `GetConfigurationProductsDisabled3$outboundSchema` instead. */ +export namespace GetConfigurationProductsDisabledIntegrationsResponse3$ { + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema` instead. */ + export const inboundSchema = + GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema; + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsDisabled3$outboundSchema; + GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema; } /** @internal */ -export const GetConfigurationProductsDisabled2$inboundSchema: z.ZodType< - GetConfigurationProductsDisabled2, - z.ZodTypeDef, - unknown -> = z.object({ - expr: z.string(), -}); +export const GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema: + z.ZodType< + GetConfigurationProductsDisabledIntegrationsResponse2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); /** @internal */ -export type GetConfigurationProductsDisabled2$Outbound = { +export type GetConfigurationProductsDisabledIntegrationsResponse2$Outbound = { expr: string; }; /** @internal */ -export const GetConfigurationProductsDisabled2$outboundSchema: z.ZodType< - GetConfigurationProductsDisabled2$Outbound, - z.ZodTypeDef, - GetConfigurationProductsDisabled2 -> = z.object({ - expr: z.string(), -}); +export const GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema: + z.ZodType< + GetConfigurationProductsDisabledIntegrationsResponse2$Outbound, + z.ZodTypeDef, + GetConfigurationProductsDisabledIntegrationsResponse2 + > = z.object({ + expr: z.string(), + }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsDisabled2$ { - /** @deprecated use `GetConfigurationProductsDisabled2$inboundSchema` instead. */ - export const inboundSchema = GetConfigurationProductsDisabled2$inboundSchema; - /** @deprecated use `GetConfigurationProductsDisabled2$outboundSchema` instead. */ +export namespace GetConfigurationProductsDisabledIntegrationsResponse2$ { + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema` instead. */ + export const inboundSchema = + GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema; + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsDisabled2$outboundSchema; - /** @deprecated use `GetConfigurationProductsDisabled2$Outbound` instead. */ - export type Outbound = GetConfigurationProductsDisabled2$Outbound; + GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema; + /** @deprecated use `GetConfigurationProductsDisabledIntegrationsResponse2$Outbound` instead. */ + export type Outbound = + GetConfigurationProductsDisabledIntegrationsResponse2$Outbound; } -export function getConfigurationProductsDisabled2ToJSON( - getConfigurationProductsDisabled2: GetConfigurationProductsDisabled2, +export function getConfigurationProductsDisabledIntegrationsResponse2ToJSON( + getConfigurationProductsDisabledIntegrationsResponse2: + GetConfigurationProductsDisabledIntegrationsResponse2, ): string { return JSON.stringify( - GetConfigurationProductsDisabled2$outboundSchema.parse( - getConfigurationProductsDisabled2, + GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema.parse( + getConfigurationProductsDisabledIntegrationsResponse2, ), ); } -export function getConfigurationProductsDisabled2FromJSON( +export function getConfigurationProductsDisabledIntegrationsResponse2FromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult< + GetConfigurationProductsDisabledIntegrationsResponse2, + SDKValidationError +> { return safeParse( jsonString, - (x) => GetConfigurationProductsDisabled2$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsDisabled2' from JSON`, + (x) => + GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'GetConfigurationProductsDisabledIntegrationsResponse2' from JSON`, ); } /** @internal */ -export const PropertiesDisabled$inboundSchema: z.ZodType< - PropertiesDisabled, - z.ZodTypeDef, - unknown -> = z.union([ - z.lazy(() => GetConfigurationProductsDisabled2$inboundSchema), - z.boolean(), - GetConfigurationProductsDisabled3$inboundSchema, -]); +export const GetConfigurationProductsPropertiesIntegrationsDisabled$inboundSchema: + z.ZodType< + GetConfigurationProductsPropertiesIntegrationsDisabled, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema + ), + z.boolean(), + GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema, + ]); /** @internal */ -export type PropertiesDisabled$Outbound = - | GetConfigurationProductsDisabled2$Outbound +export type GetConfigurationProductsPropertiesIntegrationsDisabled$Outbound = + | GetConfigurationProductsDisabledIntegrationsResponse2$Outbound | boolean | string; /** @internal */ -export const PropertiesDisabled$outboundSchema: z.ZodType< - PropertiesDisabled$Outbound, - z.ZodTypeDef, - PropertiesDisabled -> = z.union([ - z.lazy(() => GetConfigurationProductsDisabled2$outboundSchema), - z.boolean(), - GetConfigurationProductsDisabled3$outboundSchema, -]); +export const GetConfigurationProductsPropertiesIntegrationsDisabled$outboundSchema: + z.ZodType< + GetConfigurationProductsPropertiesIntegrationsDisabled$Outbound, + z.ZodTypeDef, + GetConfigurationProductsPropertiesIntegrationsDisabled + > = z.union([ + z.lazy(() => + GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema + ), + z.boolean(), + GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema, + ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace PropertiesDisabled$ { - /** @deprecated use `PropertiesDisabled$inboundSchema` instead. */ - export const inboundSchema = PropertiesDisabled$inboundSchema; - /** @deprecated use `PropertiesDisabled$outboundSchema` instead. */ - export const outboundSchema = PropertiesDisabled$outboundSchema; - /** @deprecated use `PropertiesDisabled$Outbound` instead. */ - export type Outbound = PropertiesDisabled$Outbound; +export namespace GetConfigurationProductsPropertiesIntegrationsDisabled$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsDisabled$inboundSchema` instead. */ + export const inboundSchema = + GetConfigurationProductsPropertiesIntegrationsDisabled$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsDisabled$outboundSchema` instead. */ + export const outboundSchema = + GetConfigurationProductsPropertiesIntegrationsDisabled$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsDisabled$Outbound` instead. */ + export type Outbound = + GetConfigurationProductsPropertiesIntegrationsDisabled$Outbound; } -export function propertiesDisabledToJSON( - propertiesDisabled: PropertiesDisabled, +export function getConfigurationProductsPropertiesIntegrationsDisabledToJSON( + getConfigurationProductsPropertiesIntegrationsDisabled: + GetConfigurationProductsPropertiesIntegrationsDisabled, ): string { return JSON.stringify( - PropertiesDisabled$outboundSchema.parse(propertiesDisabled), + GetConfigurationProductsPropertiesIntegrationsDisabled$outboundSchema.parse( + getConfigurationProductsPropertiesIntegrationsDisabled, + ), ); } -export function propertiesDisabledFromJSON( +export function getConfigurationProductsPropertiesIntegrationsDisabledFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult< + GetConfigurationProductsPropertiesIntegrationsDisabled, + SDKValidationError +> { return safeParse( jsonString, - (x) => PropertiesDisabled$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PropertiesDisabled' from JSON`, + (x) => + GetConfigurationProductsPropertiesIntegrationsDisabled$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsDisabled' from JSON`, ); } /** @internal */ -export const GetConfigurationProductsHidden3$inboundSchema: z.ZodNativeEnum< - typeof GetConfigurationProductsHidden3 -> = z.nativeEnum(GetConfigurationProductsHidden3); +export const GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema: + z.ZodNativeEnum = + z.nativeEnum(GetConfigurationProductsHiddenIntegrationsResponse3); /** @internal */ -export const GetConfigurationProductsHidden3$outboundSchema: z.ZodNativeEnum< - typeof GetConfigurationProductsHidden3 -> = GetConfigurationProductsHidden3$inboundSchema; +export const GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema: + z.ZodNativeEnum = + GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsHidden3$ { - /** @deprecated use `GetConfigurationProductsHidden3$inboundSchema` instead. */ - export const inboundSchema = GetConfigurationProductsHidden3$inboundSchema; - /** @deprecated use `GetConfigurationProductsHidden3$outboundSchema` instead. */ - export const outboundSchema = GetConfigurationProductsHidden3$outboundSchema; +export namespace GetConfigurationProductsHiddenIntegrationsResponse3$ { + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema` instead. */ + export const inboundSchema = + GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema; + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema` instead. */ + export const outboundSchema = + GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema; } /** @internal */ -export const GetConfigurationProductsHidden2$inboundSchema: z.ZodType< - GetConfigurationProductsHidden2, - z.ZodTypeDef, - unknown -> = z.object({ - expr: z.string(), -}); +export const GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema: + z.ZodType< + GetConfigurationProductsHiddenIntegrationsResponse2, + z.ZodTypeDef, + unknown + > = z.object({ + expr: z.string(), + }); /** @internal */ -export type GetConfigurationProductsHidden2$Outbound = { +export type GetConfigurationProductsHiddenIntegrationsResponse2$Outbound = { expr: string; }; /** @internal */ -export const GetConfigurationProductsHidden2$outboundSchema: z.ZodType< - GetConfigurationProductsHidden2$Outbound, - z.ZodTypeDef, - GetConfigurationProductsHidden2 -> = z.object({ - expr: z.string(), -}); +export const GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema: + z.ZodType< + GetConfigurationProductsHiddenIntegrationsResponse2$Outbound, + z.ZodTypeDef, + GetConfigurationProductsHiddenIntegrationsResponse2 + > = z.object({ + expr: z.string(), + }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsHidden2$ { - /** @deprecated use `GetConfigurationProductsHidden2$inboundSchema` instead. */ - export const inboundSchema = GetConfigurationProductsHidden2$inboundSchema; - /** @deprecated use `GetConfigurationProductsHidden2$outboundSchema` instead. */ - export const outboundSchema = GetConfigurationProductsHidden2$outboundSchema; - /** @deprecated use `GetConfigurationProductsHidden2$Outbound` instead. */ - export type Outbound = GetConfigurationProductsHidden2$Outbound; +export namespace GetConfigurationProductsHiddenIntegrationsResponse2$ { + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema` instead. */ + export const inboundSchema = + GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema; + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema` instead. */ + export const outboundSchema = + GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema; + /** @deprecated use `GetConfigurationProductsHiddenIntegrationsResponse2$Outbound` instead. */ + export type Outbound = + GetConfigurationProductsHiddenIntegrationsResponse2$Outbound; } -export function getConfigurationProductsHidden2ToJSON( - getConfigurationProductsHidden2: GetConfigurationProductsHidden2, +export function getConfigurationProductsHiddenIntegrationsResponse2ToJSON( + getConfigurationProductsHiddenIntegrationsResponse2: + GetConfigurationProductsHiddenIntegrationsResponse2, ): string { return JSON.stringify( - GetConfigurationProductsHidden2$outboundSchema.parse( - getConfigurationProductsHidden2, + GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema.parse( + getConfigurationProductsHiddenIntegrationsResponse2, ), ); } -export function getConfigurationProductsHidden2FromJSON( +export function getConfigurationProductsHiddenIntegrationsResponse2FromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult< + GetConfigurationProductsHiddenIntegrationsResponse2, + SDKValidationError +> { return safeParse( jsonString, - (x) => GetConfigurationProductsHidden2$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsHidden2' from JSON`, + (x) => + GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'GetConfigurationProductsHiddenIntegrationsResponse2' from JSON`, ); } /** @internal */ -export const PropertiesHidden$inboundSchema: z.ZodType< - PropertiesHidden, - z.ZodTypeDef, - unknown -> = z.union([ - z.lazy(() => GetConfigurationProductsHidden2$inboundSchema), - z.boolean(), - GetConfigurationProductsHidden3$inboundSchema, -]); +export const GetConfigurationProductsPropertiesIntegrationsHidden$inboundSchema: + z.ZodType< + GetConfigurationProductsPropertiesIntegrationsHidden, + z.ZodTypeDef, + unknown + > = z.union([ + z.lazy(() => + GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema + ), + z.boolean(), + GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema, + ]); /** @internal */ -export type PropertiesHidden$Outbound = - | GetConfigurationProductsHidden2$Outbound +export type GetConfigurationProductsPropertiesIntegrationsHidden$Outbound = + | GetConfigurationProductsHiddenIntegrationsResponse2$Outbound | boolean | string; /** @internal */ -export const PropertiesHidden$outboundSchema: z.ZodType< - PropertiesHidden$Outbound, - z.ZodTypeDef, - PropertiesHidden -> = z.union([ - z.lazy(() => GetConfigurationProductsHidden2$outboundSchema), - z.boolean(), - GetConfigurationProductsHidden3$outboundSchema, -]); +export const GetConfigurationProductsPropertiesIntegrationsHidden$outboundSchema: + z.ZodType< + GetConfigurationProductsPropertiesIntegrationsHidden$Outbound, + z.ZodTypeDef, + GetConfigurationProductsPropertiesIntegrationsHidden + > = z.union([ + z.lazy(() => + GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema + ), + z.boolean(), + GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema, + ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace PropertiesHidden$ { - /** @deprecated use `PropertiesHidden$inboundSchema` instead. */ - export const inboundSchema = PropertiesHidden$inboundSchema; - /** @deprecated use `PropertiesHidden$outboundSchema` instead. */ - export const outboundSchema = PropertiesHidden$outboundSchema; - /** @deprecated use `PropertiesHidden$Outbound` instead. */ - export type Outbound = PropertiesHidden$Outbound; +export namespace GetConfigurationProductsPropertiesIntegrationsHidden$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsHidden$inboundSchema` instead. */ + export const inboundSchema = + GetConfigurationProductsPropertiesIntegrationsHidden$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsHidden$outboundSchema` instead. */ + export const outboundSchema = + GetConfigurationProductsPropertiesIntegrationsHidden$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsHidden$Outbound` instead. */ + export type Outbound = + GetConfigurationProductsPropertiesIntegrationsHidden$Outbound; } -export function propertiesHiddenToJSON( - propertiesHidden: PropertiesHidden, +export function getConfigurationProductsPropertiesIntegrationsHiddenToJSON( + getConfigurationProductsPropertiesIntegrationsHidden: + GetConfigurationProductsPropertiesIntegrationsHidden, ): string { return JSON.stringify( - PropertiesHidden$outboundSchema.parse(propertiesHidden), + GetConfigurationProductsPropertiesIntegrationsHidden$outboundSchema.parse( + getConfigurationProductsPropertiesIntegrationsHidden, + ), ); } -export function propertiesHiddenFromJSON( +export function getConfigurationProductsPropertiesIntegrationsHiddenFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult< + GetConfigurationProductsPropertiesIntegrationsHidden, + SDKValidationError +> { return safeParse( jsonString, - (x) => PropertiesHidden$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PropertiesHidden' from JSON`, + (x) => + GetConfigurationProductsPropertiesIntegrationsHidden$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsHidden' from JSON`, ); } @@ -9816,14 +9971,18 @@ export const PropertiesUiOptions$inboundSchema: z.ZodType< value: z.string(), label: z.string(), disabled: z.union([ - z.lazy(() => GetConfigurationProductsDisabled2$inboundSchema), + z.lazy(() => + GetConfigurationProductsDisabledIntegrationsResponse2$inboundSchema + ), z.boolean(), - GetConfigurationProductsDisabled3$inboundSchema, + GetConfigurationProductsDisabledIntegrationsResponse3$inboundSchema, ]).optional(), hidden: z.union([ - z.lazy(() => GetConfigurationProductsHidden2$inboundSchema), + z.lazy(() => + GetConfigurationProductsHiddenIntegrationsResponse2$inboundSchema + ), z.boolean(), - GetConfigurationProductsHidden3$inboundSchema, + GetConfigurationProductsHiddenIntegrationsResponse3$inboundSchema, ]).optional(), }); @@ -9832,12 +9991,12 @@ export type PropertiesUiOptions$Outbound = { value: string; label: string; disabled?: - | GetConfigurationProductsDisabled2$Outbound + | GetConfigurationProductsDisabledIntegrationsResponse2$Outbound | boolean | string | undefined; hidden?: - | GetConfigurationProductsHidden2$Outbound + | GetConfigurationProductsHiddenIntegrationsResponse2$Outbound | boolean | string | undefined; @@ -9852,14 +10011,18 @@ export const PropertiesUiOptions$outboundSchema: z.ZodType< value: z.string(), label: z.string(), disabled: z.union([ - z.lazy(() => GetConfigurationProductsDisabled2$outboundSchema), + z.lazy(() => + GetConfigurationProductsDisabledIntegrationsResponse2$outboundSchema + ), z.boolean(), - GetConfigurationProductsDisabled3$outboundSchema, + GetConfigurationProductsDisabledIntegrationsResponse3$outboundSchema, ]).optional(), hidden: z.union([ - z.lazy(() => GetConfigurationProductsHidden2$outboundSchema), + z.lazy(() => + GetConfigurationProductsHiddenIntegrationsResponse2$outboundSchema + ), z.boolean(), - GetConfigurationProductsHidden3$outboundSchema, + GetConfigurationProductsHiddenIntegrationsResponse3$outboundSchema, ]).optional(), }); @@ -11275,63 +11438,63 @@ export function uiOptionsFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$outboundSchema - .parse(getConfigurationProductsPropertiesIntegrationsAtBRANDAt447943), + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$outboundSchema + .parse(getConfigurationProductsPropertiesIntegrationsAtBRANDAt502540), ); } -export function getConfigurationProductsPropertiesIntegrationsAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540' from JSON`, ); } @@ -11341,19 +11504,19 @@ export const PropertiesMinLength$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type PropertiesMinLength$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$Outbound; }; /** @internal */ @@ -11362,12 +11525,12 @@ export const PropertiesMinLength$outboundSchema: z.ZodType< z.ZodTypeDef, PropertiesMinLength > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -11403,65 +11566,65 @@ export function propertiesMinLengthFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540' from JSON`, ); } @@ -11471,19 +11634,19 @@ export const PropertiesMaxLength$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type PropertiesMaxLength$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$Outbound; }; /** @internal */ @@ -11492,12 +11655,12 @@ export const PropertiesMaxLength$outboundSchema: z.ZodType< z.ZodTypeDef, PropertiesMaxLength > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponseAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -11533,65 +11696,65 @@ export function propertiesMaxLengthFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$Outbound = +export type GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943 + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943: - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943, +export function getConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540: + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$outboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$outboundSchema .parse( - getConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943, + getConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943, + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$inboundSchema + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$inboundSchema .parse(JSON.parse(x)), - `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540' from JSON`, ); } @@ -11601,19 +11764,19 @@ export const PropertiesPattern$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type PropertiesPattern$Outbound = { - "__@BRAND@447943": - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$Outbound; + "__@BRAND@502540": + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$Outbound; }; /** @internal */ @@ -11622,12 +11785,12 @@ export const PropertiesPattern$outboundSchema: z.ZodType< z.ZodTypeDef, PropertiesPattern > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesIntegrationsResponse200AtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -15340,48 +15503,48 @@ export namespace UiControl$ { } /** @internal */ -export const AtBRANDAt447943$inboundSchema: z.ZodType< - AtBRANDAt447943, +export const AtBRANDAt502540$inboundSchema: z.ZodType< + AtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type AtBRANDAt447943$Outbound = {}; +export type AtBRANDAt502540$Outbound = {}; /** @internal */ -export const AtBRANDAt447943$outboundSchema: z.ZodType< - AtBRANDAt447943$Outbound, +export const AtBRANDAt502540$outboundSchema: z.ZodType< + AtBRANDAt502540$Outbound, z.ZodTypeDef, - AtBRANDAt447943 + AtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace AtBRANDAt447943$ { - /** @deprecated use `AtBRANDAt447943$inboundSchema` instead. */ - export const inboundSchema = AtBRANDAt447943$inboundSchema; - /** @deprecated use `AtBRANDAt447943$outboundSchema` instead. */ - export const outboundSchema = AtBRANDAt447943$outboundSchema; - /** @deprecated use `AtBRANDAt447943$Outbound` instead. */ - export type Outbound = AtBRANDAt447943$Outbound; +export namespace AtBRANDAt502540$ { + /** @deprecated use `AtBRANDAt502540$inboundSchema` instead. */ + export const inboundSchema = AtBRANDAt502540$inboundSchema; + /** @deprecated use `AtBRANDAt502540$outboundSchema` instead. */ + export const outboundSchema = AtBRANDAt502540$outboundSchema; + /** @deprecated use `AtBRANDAt502540$Outbound` instead. */ + export type Outbound = AtBRANDAt502540$Outbound; } -export function atBRANDAt447943ToJSON( - atBRANDAt447943: AtBRANDAt447943, +export function atBRANDAt502540ToJSON( + atBRANDAt502540: AtBRANDAt502540, ): string { - return JSON.stringify(AtBRANDAt447943$outboundSchema.parse(atBRANDAt447943)); + return JSON.stringify(AtBRANDAt502540$outboundSchema.parse(atBRANDAt502540)); } -export function atBRANDAt447943FromJSON( +export function atBRANDAt502540FromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AtBRANDAt447943$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AtBRANDAt447943' from JSON`, + (x) => AtBRANDAt502540$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AtBRANDAt502540' from JSON`, ); } @@ -15391,16 +15554,16 @@ export const MinLength$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => AtBRANDAt447943$inboundSchema), + "__@BRAND@502540": z.lazy(() => AtBRANDAt502540$inboundSchema), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type MinLength$Outbound = { - "__@BRAND@447943": AtBRANDAt447943$Outbound; + "__@BRAND@502540": AtBRANDAt502540$Outbound; }; /** @internal */ @@ -15409,10 +15572,10 @@ export const MinLength$outboundSchema: z.ZodType< z.ZodTypeDef, MinLength > = z.object({ - atBRANDAt447943: z.lazy(() => AtBRANDAt447943$outboundSchema), + atBRANDAt502540: z.lazy(() => AtBRANDAt502540$outboundSchema), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -15444,50 +15607,50 @@ export function minLengthFromJSON( } /** @internal */ -export const PropertiesAtBRANDAt447943$inboundSchema: z.ZodType< - PropertiesAtBRANDAt447943, +export const PropertiesAtBRANDAt502540$inboundSchema: z.ZodType< + PropertiesAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type PropertiesAtBRANDAt447943$Outbound = {}; +export type PropertiesAtBRANDAt502540$Outbound = {}; /** @internal */ -export const PropertiesAtBRANDAt447943$outboundSchema: z.ZodType< - PropertiesAtBRANDAt447943$Outbound, +export const PropertiesAtBRANDAt502540$outboundSchema: z.ZodType< + PropertiesAtBRANDAt502540$Outbound, z.ZodTypeDef, - PropertiesAtBRANDAt447943 + PropertiesAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace PropertiesAtBRANDAt447943$ { - /** @deprecated use `PropertiesAtBRANDAt447943$inboundSchema` instead. */ - export const inboundSchema = PropertiesAtBRANDAt447943$inboundSchema; - /** @deprecated use `PropertiesAtBRANDAt447943$outboundSchema` instead. */ - export const outboundSchema = PropertiesAtBRANDAt447943$outboundSchema; - /** @deprecated use `PropertiesAtBRANDAt447943$Outbound` instead. */ - export type Outbound = PropertiesAtBRANDAt447943$Outbound; +export namespace PropertiesAtBRANDAt502540$ { + /** @deprecated use `PropertiesAtBRANDAt502540$inboundSchema` instead. */ + export const inboundSchema = PropertiesAtBRANDAt502540$inboundSchema; + /** @deprecated use `PropertiesAtBRANDAt502540$outboundSchema` instead. */ + export const outboundSchema = PropertiesAtBRANDAt502540$outboundSchema; + /** @deprecated use `PropertiesAtBRANDAt502540$Outbound` instead. */ + export type Outbound = PropertiesAtBRANDAt502540$Outbound; } -export function propertiesAtBRANDAt447943ToJSON( - propertiesAtBRANDAt447943: PropertiesAtBRANDAt447943, +export function propertiesAtBRANDAt502540ToJSON( + propertiesAtBRANDAt502540: PropertiesAtBRANDAt502540, ): string { return JSON.stringify( - PropertiesAtBRANDAt447943$outboundSchema.parse(propertiesAtBRANDAt447943), + PropertiesAtBRANDAt502540$outboundSchema.parse(propertiesAtBRANDAt502540), ); } -export function propertiesAtBRANDAt447943FromJSON( +export function propertiesAtBRANDAt502540FromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => PropertiesAtBRANDAt447943$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PropertiesAtBRANDAt447943' from JSON`, + (x) => PropertiesAtBRANDAt502540$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PropertiesAtBRANDAt502540' from JSON`, ); } @@ -15497,16 +15660,16 @@ export const MaxLength$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "__@BRAND@447943": z.lazy(() => PropertiesAtBRANDAt447943$inboundSchema), + "__@BRAND@502540": z.lazy(() => PropertiesAtBRANDAt502540$inboundSchema), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type MaxLength$Outbound = { - "__@BRAND@447943": PropertiesAtBRANDAt447943$Outbound; + "__@BRAND@502540": PropertiesAtBRANDAt502540$Outbound; }; /** @internal */ @@ -15515,10 +15678,10 @@ export const MaxLength$outboundSchema: z.ZodType< z.ZodTypeDef, MaxLength > = z.object({ - atBRANDAt447943: z.lazy(() => PropertiesAtBRANDAt447943$outboundSchema), + atBRANDAt502540: z.lazy(() => PropertiesAtBRANDAt502540$outboundSchema), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); @@ -15550,82 +15713,82 @@ export function maxLengthFromJSON( } /** @internal */ -export const GetConfigurationProductsPropertiesAtBRANDAt447943$inboundSchema: +export const GetConfigurationProductsPropertiesAtBRANDAt502540$inboundSchema: z.ZodType< - GetConfigurationProductsPropertiesAtBRANDAt447943, + GetConfigurationProductsPropertiesAtBRANDAt502540, z.ZodTypeDef, unknown > = z.object({}); /** @internal */ -export type GetConfigurationProductsPropertiesAtBRANDAt447943$Outbound = {}; +export type GetConfigurationProductsPropertiesAtBRANDAt502540$Outbound = {}; /** @internal */ -export const GetConfigurationProductsPropertiesAtBRANDAt447943$outboundSchema: +export const GetConfigurationProductsPropertiesAtBRANDAt502540$outboundSchema: z.ZodType< - GetConfigurationProductsPropertiesAtBRANDAt447943$Outbound, + GetConfigurationProductsPropertiesAtBRANDAt502540$Outbound, z.ZodTypeDef, - GetConfigurationProductsPropertiesAtBRANDAt447943 + GetConfigurationProductsPropertiesAtBRANDAt502540 > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace GetConfigurationProductsPropertiesAtBRANDAt447943$ { - /** @deprecated use `GetConfigurationProductsPropertiesAtBRANDAt447943$inboundSchema` instead. */ +export namespace GetConfigurationProductsPropertiesAtBRANDAt502540$ { + /** @deprecated use `GetConfigurationProductsPropertiesAtBRANDAt502540$inboundSchema` instead. */ export const inboundSchema = - GetConfigurationProductsPropertiesAtBRANDAt447943$inboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesAtBRANDAt447943$outboundSchema` instead. */ + GetConfigurationProductsPropertiesAtBRANDAt502540$inboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesAtBRANDAt502540$outboundSchema` instead. */ export const outboundSchema = - GetConfigurationProductsPropertiesAtBRANDAt447943$outboundSchema; - /** @deprecated use `GetConfigurationProductsPropertiesAtBRANDAt447943$Outbound` instead. */ + GetConfigurationProductsPropertiesAtBRANDAt502540$outboundSchema; + /** @deprecated use `GetConfigurationProductsPropertiesAtBRANDAt502540$Outbound` instead. */ export type Outbound = - GetConfigurationProductsPropertiesAtBRANDAt447943$Outbound; + GetConfigurationProductsPropertiesAtBRANDAt502540$Outbound; } -export function getConfigurationProductsPropertiesAtBRANDAt447943ToJSON( - getConfigurationProductsPropertiesAtBRANDAt447943: - GetConfigurationProductsPropertiesAtBRANDAt447943, +export function getConfigurationProductsPropertiesAtBRANDAt502540ToJSON( + getConfigurationProductsPropertiesAtBRANDAt502540: + GetConfigurationProductsPropertiesAtBRANDAt502540, ): string { return JSON.stringify( - GetConfigurationProductsPropertiesAtBRANDAt447943$outboundSchema.parse( - getConfigurationProductsPropertiesAtBRANDAt447943, + GetConfigurationProductsPropertiesAtBRANDAt502540$outboundSchema.parse( + getConfigurationProductsPropertiesAtBRANDAt502540, ), ); } -export function getConfigurationProductsPropertiesAtBRANDAt447943FromJSON( +export function getConfigurationProductsPropertiesAtBRANDAt502540FromJSON( jsonString: string, ): SafeParseResult< - GetConfigurationProductsPropertiesAtBRANDAt447943, + GetConfigurationProductsPropertiesAtBRANDAt502540, SDKValidationError > { return safeParse( jsonString, (x) => - GetConfigurationProductsPropertiesAtBRANDAt447943$inboundSchema.parse( + GetConfigurationProductsPropertiesAtBRANDAt502540$inboundSchema.parse( JSON.parse(x), ), - `Failed to parse 'GetConfigurationProductsPropertiesAtBRANDAt447943' from JSON`, + `Failed to parse 'GetConfigurationProductsPropertiesAtBRANDAt502540' from JSON`, ); } /** @internal */ export const Pattern$inboundSchema: z.ZodType = z.object({ - "__@BRAND@447943": z.lazy(() => - GetConfigurationProductsPropertiesAtBRANDAt447943$inboundSchema + "__@BRAND@502540": z.lazy(() => + GetConfigurationProductsPropertiesAtBRANDAt502540$inboundSchema ), }).transform((v) => { return remap$(v, { - "__@BRAND@447943": "atBRANDAt447943", + "__@BRAND@502540": "atBRANDAt502540", }); }); /** @internal */ export type Pattern$Outbound = { - "__@BRAND@447943": GetConfigurationProductsPropertiesAtBRANDAt447943$Outbound; + "__@BRAND@502540": GetConfigurationProductsPropertiesAtBRANDAt502540$Outbound; }; /** @internal */ @@ -15634,12 +15797,12 @@ export const Pattern$outboundSchema: z.ZodType< z.ZodTypeDef, Pattern > = z.object({ - atBRANDAt447943: z.lazy(() => - GetConfigurationProductsPropertiesAtBRANDAt447943$outboundSchema + atBRANDAt502540: z.lazy(() => + GetConfigurationProductsPropertiesAtBRANDAt502540$outboundSchema ), }).transform((v) => { return remap$(v, { - atBRANDAt447943: "__@BRAND@447943", + atBRANDAt502540: "__@BRAND@502540", }); }); diff --git a/src/models/getconfigurationsop.ts b/src/models/getconfigurationsop.ts index e34fbf5c..5799c2b4 100644 --- a/src/models/getconfigurationsop.ts +++ b/src/models/getconfigurationsop.ts @@ -79,6 +79,7 @@ export const GetConfigurationsResponseBodyIntegrationsSource = { DeployButton: "deploy-button", External: "external", V0: "v0", + ResourceClaims: "resource-claims", } as const; /** * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics. @@ -198,6 +199,7 @@ export const GetConfigurationsResponseBodySource = { DeployButton: "deploy-button", External: "external", V0: "v0", + ResourceClaims: "resource-claims", } as const; /** * Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics. diff --git a/src/models/getdeploymentop.ts b/src/models/getdeploymentop.ts index 9b6a1698..54664f9c 100644 --- a/src/models/getdeploymentop.ts +++ b/src/models/getdeploymentop.ts @@ -1615,6 +1615,7 @@ export type ResponseBodyFunctions = { includeFiles?: string | undefined; excludeFiles?: string | undefined; experimentalTriggers?: Array | undefined; + supportsCancellation?: boolean | undefined; }; export type GetDeploymentRoutes3 = { @@ -1992,7 +1993,7 @@ export type ResponseBodyFlags = | Array; /** - * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. */ export type GetDeploymentMicrofrontendsApplications = { isDefaultApp?: boolean | undefined; @@ -2007,14 +2008,35 @@ export type GetDeploymentMicrofrontendsApplications = { deploymentHost?: string | undefined; }; +/** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ +export const GetDeploymentMicrofrontendsMfeConfigUploadState = { + Error: "error", + Success: "success", + NoConfig: "no_config", +} as const; +/** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ +export type GetDeploymentMicrofrontendsMfeConfigUploadState = ClosedEnum< + typeof GetDeploymentMicrofrontendsMfeConfigUploadState +>; + export type GetDeploymentMicrofrontends2 = { + isDefaultApp: boolean; /** - * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. + * A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out. */ applications?: | { [k: string]: GetDeploymentMicrofrontendsApplications } | undefined; - isDefaultApp: boolean; + /** + * The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet. + */ + mfeConfigUploadState?: + | GetDeploymentMicrofrontendsMfeConfigUploadState + | undefined; /** * The project name of the default app of this deployment's microfrontends group. */ @@ -2034,9 +2056,6 @@ export type GetDeploymentMicrofrontends2 = { }; export type GetDeploymentMicrofrontends1 = { - /** - * Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends. - */ isDefaultApp?: boolean | undefined; /** * The project name of the default app of this deployment's microfrontends group. @@ -9825,6 +9844,7 @@ export const ResponseBodyFunctions$inboundSchema: z.ZodType< experimentalTriggers: z.array( z.lazy(() => ResponseBodyExperimentalTriggers$inboundSchema), ).optional(), + supportsCancellation: z.boolean().optional(), }); /** @internal */ @@ -9838,6 +9858,7 @@ export type ResponseBodyFunctions$Outbound = { experimentalTriggers?: | Array | undefined; + supportsCancellation?: boolean | undefined; }; /** @internal */ @@ -9855,6 +9876,7 @@ export const ResponseBodyFunctions$outboundSchema: z.ZodType< experimentalTriggers: z.array( z.lazy(() => ResponseBodyExperimentalTriggers$outboundSchema), ).optional(), + supportsCancellation: z.boolean().optional(), }); /** @@ -12785,16 +12807,41 @@ export function getDeploymentMicrofrontendsApplicationsFromJSON( ); } +/** @internal */ +export const GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(GetDeploymentMicrofrontendsMfeConfigUploadState); + +/** @internal */ +export const GetDeploymentMicrofrontendsMfeConfigUploadState$outboundSchema: + z.ZodNativeEnum = + GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetDeploymentMicrofrontendsMfeConfigUploadState$ { + /** @deprecated use `GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema` instead. */ + export const inboundSchema = + GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema; + /** @deprecated use `GetDeploymentMicrofrontendsMfeConfigUploadState$outboundSchema` instead. */ + export const outboundSchema = + GetDeploymentMicrofrontendsMfeConfigUploadState$outboundSchema; +} + /** @internal */ export const GetDeploymentMicrofrontends2$inboundSchema: z.ZodType< GetDeploymentMicrofrontends2, z.ZodTypeDef, unknown > = z.object({ + isDefaultApp: z.boolean(), applications: z.record( z.lazy(() => GetDeploymentMicrofrontendsApplications$inboundSchema), ).optional(), - isDefaultApp: z.boolean(), + mfeConfigUploadState: + GetDeploymentMicrofrontendsMfeConfigUploadState$inboundSchema.optional(), defaultAppProjectName: z.string(), defaultRoute: z.string().optional(), groupIds: z.array(z.string()), @@ -12803,10 +12850,11 @@ export const GetDeploymentMicrofrontends2$inboundSchema: z.ZodType< /** @internal */ export type GetDeploymentMicrofrontends2$Outbound = { + isDefaultApp: boolean; applications?: { [k: string]: GetDeploymentMicrofrontendsApplications$Outbound; } | undefined; - isDefaultApp: boolean; + mfeConfigUploadState?: string | undefined; defaultAppProjectName: string; defaultRoute?: string | undefined; groupIds: Array; @@ -12819,10 +12867,12 @@ export const GetDeploymentMicrofrontends2$outboundSchema: z.ZodType< z.ZodTypeDef, GetDeploymentMicrofrontends2 > = z.object({ + isDefaultApp: z.boolean(), applications: z.record( z.lazy(() => GetDeploymentMicrofrontendsApplications$outboundSchema), ).optional(), - isDefaultApp: z.boolean(), + mfeConfigUploadState: + GetDeploymentMicrofrontendsMfeConfigUploadState$outboundSchema.optional(), defaultAppProjectName: z.string(), defaultRoute: z.string().optional(), groupIds: z.array(z.string()), diff --git a/src/models/getintegrationresourceop.ts b/src/models/getintegrationresourceop.ts index e9ca57d9..581d0b56 100644 --- a/src/models/getintegrationresourceop.ts +++ b/src/models/getintegrationresourceop.ts @@ -69,7 +69,7 @@ export type GetIntegrationResourceNotification = { href?: string | undefined; }; -export type Metadata = +export type GetIntegrationResourceMetadata = | string | number | boolean @@ -398,8 +398,8 @@ export function getIntegrationResourceNotificationFromJSON( } /** @internal */ -export const Metadata$inboundSchema: z.ZodType< - Metadata, +export const GetIntegrationResourceMetadata$inboundSchema: z.ZodType< + GetIntegrationResourceMetadata, z.ZodTypeDef, unknown > = z.union([ @@ -411,7 +411,7 @@ export const Metadata$inboundSchema: z.ZodType< ]); /** @internal */ -export type Metadata$Outbound = +export type GetIntegrationResourceMetadata$Outbound = | string | number | boolean @@ -419,10 +419,10 @@ export type Metadata$Outbound = | Array; /** @internal */ -export const Metadata$outboundSchema: z.ZodType< - Metadata$Outbound, +export const GetIntegrationResourceMetadata$outboundSchema: z.ZodType< + GetIntegrationResourceMetadata$Outbound, z.ZodTypeDef, - Metadata + GetIntegrationResourceMetadata > = z.union([ z.string(), z.number(), @@ -435,26 +435,32 @@ export const Metadata$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Metadata$ { - /** @deprecated use `Metadata$inboundSchema` instead. */ - export const inboundSchema = Metadata$inboundSchema; - /** @deprecated use `Metadata$outboundSchema` instead. */ - export const outboundSchema = Metadata$outboundSchema; - /** @deprecated use `Metadata$Outbound` instead. */ - export type Outbound = Metadata$Outbound; +export namespace GetIntegrationResourceMetadata$ { + /** @deprecated use `GetIntegrationResourceMetadata$inboundSchema` instead. */ + export const inboundSchema = GetIntegrationResourceMetadata$inboundSchema; + /** @deprecated use `GetIntegrationResourceMetadata$outboundSchema` instead. */ + export const outboundSchema = GetIntegrationResourceMetadata$outboundSchema; + /** @deprecated use `GetIntegrationResourceMetadata$Outbound` instead. */ + export type Outbound = GetIntegrationResourceMetadata$Outbound; } -export function metadataToJSON(metadata: Metadata): string { - return JSON.stringify(Metadata$outboundSchema.parse(metadata)); +export function getIntegrationResourceMetadataToJSON( + getIntegrationResourceMetadata: GetIntegrationResourceMetadata, +): string { + return JSON.stringify( + GetIntegrationResourceMetadata$outboundSchema.parse( + getIntegrationResourceMetadata, + ), + ); } -export function metadataFromJSON( +export function getIntegrationResourceMetadataFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => Metadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Metadata' from JSON`, + (x) => GetIntegrationResourceMetadata$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetIntegrationResourceMetadata' from JSON`, ); } diff --git a/src/models/getprojectsop.ts b/src/models/getprojectsop.ts index 5921df44..682b3ef8 100644 --- a/src/models/getprojectsop.ts +++ b/src/models/getprojectsop.ts @@ -46,6 +46,20 @@ export type ElasticConcurrencyEnabled = ClosedEnum< typeof ElasticConcurrencyEnabled >; +/** + * Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first + */ +export const SortByElasticConcurrency = { + Desc: "desc", + Asc: "asc", +} as const; +/** + * Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first + */ +export type SortByElasticConcurrency = ClosedEnum< + typeof SortByElasticConcurrency +>; + export type GetProjectsRequest = { /** * Query only projects updated after the given timestamp @@ -92,6 +106,10 @@ export type GetProjectsRequest = { * Filter results by projects with elastic concurrency enabled */ elasticConcurrencyEnabled?: ElasticConcurrencyEnabled | undefined; + /** + * Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first + */ + sortByElasticConcurrency?: SortByElasticConcurrency | undefined; /** * The Team identifier to perform the request on behalf of. */ @@ -183,11 +201,29 @@ export type GetProjectsDataCache = { unlimited?: boolean | undefined; }; +/** + * Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + */ export type GetProjectsDeploymentExpiration = { + /** + * Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. + */ expirationDays?: number | undefined; + /** + * Number of days to keep production deployments before soft deletion. + */ expirationDaysProduction?: number | undefined; + /** + * Number of days to keep canceled deployments before soft deletion. + */ expirationDaysCanceled?: number | undefined; + /** + * Number of days to keep errored deployments before soft deletion. + */ expirationDaysErrored?: number | undefined; + /** + * Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. + */ deploymentsToKeep?: number | undefined; }; @@ -1849,6 +1885,9 @@ export type GetProjectsProjects = { customerSupportCodeVisibility?: boolean | undefined; crons?: GetProjectsCrons | undefined; dataCache?: GetProjectsDataCache | undefined; + /** + * Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + */ deploymentExpiration?: GetProjectsDeploymentExpiration | null | undefined; devCommand?: string | null | undefined; directoryListing: boolean; @@ -1983,6 +2022,27 @@ export namespace ElasticConcurrencyEnabled$ { export const outboundSchema = ElasticConcurrencyEnabled$outboundSchema; } +/** @internal */ +export const SortByElasticConcurrency$inboundSchema: z.ZodNativeEnum< + typeof SortByElasticConcurrency +> = z.nativeEnum(SortByElasticConcurrency); + +/** @internal */ +export const SortByElasticConcurrency$outboundSchema: z.ZodNativeEnum< + typeof SortByElasticConcurrency +> = SortByElasticConcurrency$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace SortByElasticConcurrency$ { + /** @deprecated use `SortByElasticConcurrency$inboundSchema` instead. */ + export const inboundSchema = SortByElasticConcurrency$inboundSchema; + /** @deprecated use `SortByElasticConcurrency$outboundSchema` instead. */ + export const outboundSchema = SortByElasticConcurrency$outboundSchema; +} + /** @internal */ export const GetProjectsRequest$inboundSchema: z.ZodType< GetProjectsRequest, @@ -2001,6 +2061,7 @@ export const GetProjectsRequest$inboundSchema: z.ZodType< edgeConfigTokenId: z.string().optional(), deprecated: z.boolean().optional(), elasticConcurrencyEnabled: ElasticConcurrencyEnabled$inboundSchema.optional(), + sortByElasticConcurrency: SortByElasticConcurrency$inboundSchema.optional(), teamId: z.string().optional(), slug: z.string().optional(), }); @@ -2019,6 +2080,7 @@ export type GetProjectsRequest$Outbound = { edgeConfigTokenId?: string | undefined; deprecated?: boolean | undefined; elasticConcurrencyEnabled?: string | undefined; + sortByElasticConcurrency?: string | undefined; teamId?: string | undefined; slug?: string | undefined; }; @@ -2042,6 +2104,7 @@ export const GetProjectsRequest$outboundSchema: z.ZodType< deprecated: z.boolean().optional(), elasticConcurrencyEnabled: ElasticConcurrencyEnabled$outboundSchema .optional(), + sortByElasticConcurrency: SortByElasticConcurrency$outboundSchema.optional(), teamId: z.string().optional(), slug: z.string().optional(), }); diff --git a/src/models/getteammembersop.ts b/src/models/getteammembersop.ts index b31b17a8..fc396df4 100644 --- a/src/models/getteammembersop.ts +++ b/src/models/getteammembersop.ts @@ -97,12 +97,12 @@ export type GetTeamMembersRole = ClosedEnum; export const GetTeamMembersOrigin = { Teams: "teams", Link: "link", - Saml: "saml", + Mail: "mail", + Import: "import", Github: "github", Gitlab: "gitlab", Bitbucket: "bitbucket", - Mail: "mail", - Import: "import", + Saml: "saml", Dsync: "dsync", Feedback: "feedback", OrganizationTeams: "organization-teams", @@ -219,6 +219,35 @@ export type GetTeamMembersTeamsRole = ClosedEnum< typeof GetTeamMembersTeamsRole >; +export const GetTeamMembersTeamRoles = { + Owner: "OWNER", + Member: "MEMBER", + Developer: "DEVELOPER", + Viewer: "VIEWER", + Billing: "BILLING", + Contributor: "CONTRIBUTOR", + Security: "SECURITY", + ViewerForPlus: "VIEWER_FOR_PLUS", +} as const; +export type GetTeamMembersTeamRoles = ClosedEnum< + typeof GetTeamMembersTeamRoles +>; + +export const GetTeamMembersTeamPermissions = { + IntegrationManager: "IntegrationManager", + CreateProject: "CreateProject", + FullProductionDeployment: "FullProductionDeployment", + UsageViewer: "UsageViewer", + EnvVariableManager: "EnvVariableManager", + EnvironmentManager: "EnvironmentManager", + V0Builder: "V0Builder", + V0Chatter: "V0Chatter", + V0Viewer: "V0Viewer", +} as const; +export type GetTeamMembersTeamPermissions = ClosedEnum< + typeof GetTeamMembersTeamPermissions +>; + export const GetTeamMembersTeamsProjects = { Admin: "ADMIN", ProjectDeveloper: "PROJECT_DEVELOPER", @@ -233,6 +262,8 @@ export type EmailInviteCodes = { id: string; email?: string | undefined; role?: GetTeamMembersTeamsRole | undefined; + teamRoles?: Array | undefined; + teamPermissions?: Array | undefined; isDSyncUser: boolean; createdAt?: number | undefined; expired?: boolean | undefined; @@ -888,6 +919,48 @@ export namespace GetTeamMembersTeamsRole$ { export const outboundSchema = GetTeamMembersTeamsRole$outboundSchema; } +/** @internal */ +export const GetTeamMembersTeamRoles$inboundSchema: z.ZodNativeEnum< + typeof GetTeamMembersTeamRoles +> = z.nativeEnum(GetTeamMembersTeamRoles); + +/** @internal */ +export const GetTeamMembersTeamRoles$outboundSchema: z.ZodNativeEnum< + typeof GetTeamMembersTeamRoles +> = GetTeamMembersTeamRoles$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTeamMembersTeamRoles$ { + /** @deprecated use `GetTeamMembersTeamRoles$inboundSchema` instead. */ + export const inboundSchema = GetTeamMembersTeamRoles$inboundSchema; + /** @deprecated use `GetTeamMembersTeamRoles$outboundSchema` instead. */ + export const outboundSchema = GetTeamMembersTeamRoles$outboundSchema; +} + +/** @internal */ +export const GetTeamMembersTeamPermissions$inboundSchema: z.ZodNativeEnum< + typeof GetTeamMembersTeamPermissions +> = z.nativeEnum(GetTeamMembersTeamPermissions); + +/** @internal */ +export const GetTeamMembersTeamPermissions$outboundSchema: z.ZodNativeEnum< + typeof GetTeamMembersTeamPermissions +> = GetTeamMembersTeamPermissions$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetTeamMembersTeamPermissions$ { + /** @deprecated use `GetTeamMembersTeamPermissions$inboundSchema` instead. */ + export const inboundSchema = GetTeamMembersTeamPermissions$inboundSchema; + /** @deprecated use `GetTeamMembersTeamPermissions$outboundSchema` instead. */ + export const outboundSchema = GetTeamMembersTeamPermissions$outboundSchema; +} + /** @internal */ export const GetTeamMembersTeamsProjects$inboundSchema: z.ZodNativeEnum< typeof GetTeamMembersTeamsProjects @@ -919,6 +992,9 @@ export const EmailInviteCodes$inboundSchema: z.ZodType< id: z.string(), email: z.string().optional(), role: GetTeamMembersTeamsRole$inboundSchema.optional(), + teamRoles: z.array(GetTeamMembersTeamRoles$inboundSchema).optional(), + teamPermissions: z.array(GetTeamMembersTeamPermissions$inboundSchema) + .optional(), isDSyncUser: z.boolean(), createdAt: z.number().optional(), expired: z.boolean().optional(), @@ -932,6 +1008,8 @@ export type EmailInviteCodes$Outbound = { id: string; email?: string | undefined; role?: string | undefined; + teamRoles?: Array | undefined; + teamPermissions?: Array | undefined; isDSyncUser: boolean; createdAt?: number | undefined; expired?: boolean | undefined; @@ -949,6 +1027,9 @@ export const EmailInviteCodes$outboundSchema: z.ZodType< id: z.string(), email: z.string().optional(), role: GetTeamMembersTeamsRole$outboundSchema.optional(), + teamRoles: z.array(GetTeamMembersTeamRoles$outboundSchema).optional(), + teamPermissions: z.array(GetTeamMembersTeamPermissions$outboundSchema) + .optional(), isDSyncUser: z.boolean(), createdAt: z.number().optional(), expired: z.boolean().optional(), diff --git a/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts b/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts new file mode 100644 index 00000000..1d3338ba --- /dev/null +++ b/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts @@ -0,0 +1,575 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +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 type GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest = + { + integrationIdOrSlug: string; + productIdOrSlug: string; + metadata?: string | undefined; + }; + +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType = + { + Prepayment: "prepayment", + Subscription: "subscription", + } as const; +export type GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType = + ClosedEnum< + typeof GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType + >; + +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope = + { + Installation: "installation", + Resource: "resource", + } as const; +export type GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope = + ClosedEnum< + typeof GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope + >; + +export type GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails = + { + label: string; + value?: string | undefined; + }; + +export type HighlightedDetails = { + label: string; + value?: string | undefined; +}; + +export type Quote = { + line: string; + amount: string; +}; + +export type Plans = { + type: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType; + id: string; + name: string; + scope: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope; + description: string; + paymentMethodRequired: boolean; + preauthorizationAmount?: number | undefined; + initialCharge?: string | undefined; + minimumAmount?: string | undefined; + maximumAmount?: string | undefined; + maximumAmountAutoPurchasePerPeriod?: string | undefined; + cost?: string | undefined; + details?: + | Array< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails + > + | undefined; + highlightedDetails?: Array | undefined; + quote?: Array | undefined; + effectiveDate?: string | undefined; + disabled?: boolean | undefined; +}; + +export type GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody = + { + plans: Array; + }; + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$inboundSchema: + z.ZodType< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, + z.ZodTypeDef, + unknown + > = z.object({ + integrationIdOrSlug: z.string(), + productIdOrSlug: z.string(), + metadata: z.string().optional(), + }); + +/** @internal */ +export type GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$Outbound = + { + integrationIdOrSlug: string; + productIdOrSlug: string; + metadata?: string | undefined; + }; + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$outboundSchema: + z.ZodType< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$Outbound, + z.ZodTypeDef, + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest + > = z.object({ + integrationIdOrSlug: z.string(), + productIdOrSlug: z.string(), + metadata: z.string().optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$ { + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$inboundSchema` instead. */ + export const inboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$inboundSchema; + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$outboundSchema` instead. */ + export const outboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$outboundSchema; + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$Outbound` instead. */ + export type Outbound = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$Outbound; +} + +export function getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequestToJSON( + getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, +): string { + return JSON.stringify( + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$outboundSchema + .parse( + getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, + ), + ); +} + +export function getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequestFromJSON( + jsonString: string, +): SafeParseResult< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest' from JSON`, + ); +} + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$inboundSchema: + z.ZodNativeEnum< + typeof GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType + > = z.nativeEnum( + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType, + ); + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$outboundSchema: + z.ZodNativeEnum< + typeof GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType + > = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$ { + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$inboundSchema` instead. */ + export const inboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$inboundSchema; + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$outboundSchema` instead. */ + export const outboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$outboundSchema; +} + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$inboundSchema: + z.ZodNativeEnum< + typeof GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope + > = z.nativeEnum( + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope, + ); + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$outboundSchema: + z.ZodNativeEnum< + typeof GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope + > = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$ { + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$inboundSchema` instead. */ + export const inboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$inboundSchema; + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$outboundSchema` instead. */ + export const outboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$outboundSchema; +} + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$inboundSchema: + z.ZodType< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails, + z.ZodTypeDef, + unknown + > = z.object({ + label: z.string(), + value: z.string().optional(), + }); + +/** @internal */ +export type GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$Outbound = + { + label: string; + value?: string | undefined; + }; + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$outboundSchema: + z.ZodType< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$Outbound, + z.ZodTypeDef, + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails + > = z.object({ + label: z.string(), + value: z.string().optional(), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$ { + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$inboundSchema` instead. */ + export const inboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$inboundSchema; + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$outboundSchema` instead. */ + export const outboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$outboundSchema; + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$Outbound` instead. */ + export type Outbound = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$Outbound; +} + +export function getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetailsToJSON( + getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails, +): string { + return JSON.stringify( + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$outboundSchema + .parse( + getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails, + ), + ); +} + +export function getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetailsFromJSON( + jsonString: string, +): SafeParseResult< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails' from JSON`, + ); +} + +/** @internal */ +export const HighlightedDetails$inboundSchema: z.ZodType< + HighlightedDetails, + z.ZodTypeDef, + unknown +> = z.object({ + label: z.string(), + value: z.string().optional(), +}); + +/** @internal */ +export type HighlightedDetails$Outbound = { + label: string; + value?: string | undefined; +}; + +/** @internal */ +export const HighlightedDetails$outboundSchema: z.ZodType< + HighlightedDetails$Outbound, + z.ZodTypeDef, + HighlightedDetails +> = z.object({ + label: z.string(), + value: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace HighlightedDetails$ { + /** @deprecated use `HighlightedDetails$inboundSchema` instead. */ + export const inboundSchema = HighlightedDetails$inboundSchema; + /** @deprecated use `HighlightedDetails$outboundSchema` instead. */ + export const outboundSchema = HighlightedDetails$outboundSchema; + /** @deprecated use `HighlightedDetails$Outbound` instead. */ + export type Outbound = HighlightedDetails$Outbound; +} + +export function highlightedDetailsToJSON( + highlightedDetails: HighlightedDetails, +): string { + return JSON.stringify( + HighlightedDetails$outboundSchema.parse(highlightedDetails), + ); +} + +export function highlightedDetailsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => HighlightedDetails$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'HighlightedDetails' from JSON`, + ); +} + +/** @internal */ +export const Quote$inboundSchema: z.ZodType = z + .object({ + line: z.string(), + amount: z.string(), + }); + +/** @internal */ +export type Quote$Outbound = { + line: string; + amount: string; +}; + +/** @internal */ +export const Quote$outboundSchema: z.ZodType< + Quote$Outbound, + z.ZodTypeDef, + Quote +> = z.object({ + line: z.string(), + amount: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Quote$ { + /** @deprecated use `Quote$inboundSchema` instead. */ + export const inboundSchema = Quote$inboundSchema; + /** @deprecated use `Quote$outboundSchema` instead. */ + export const outboundSchema = Quote$outboundSchema; + /** @deprecated use `Quote$Outbound` instead. */ + export type Outbound = Quote$Outbound; +} + +export function quoteToJSON(quote: Quote): string { + return JSON.stringify(Quote$outboundSchema.parse(quote)); +} + +export function quoteFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Quote$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Quote' from JSON`, + ); +} + +/** @internal */ +export const Plans$inboundSchema: z.ZodType = z + .object({ + type: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$inboundSchema, + id: z.string(), + name: z.string(), + scope: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$inboundSchema, + description: z.string(), + paymentMethodRequired: z.boolean(), + preauthorizationAmount: z.number().optional(), + initialCharge: z.string().optional(), + minimumAmount: z.string().optional(), + maximumAmount: z.string().optional(), + maximumAmountAutoPurchasePerPeriod: z.string().optional(), + cost: z.string().optional(), + details: z.array( + z.lazy(() => + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$inboundSchema + ), + ).optional(), + highlightedDetails: z.array(z.lazy(() => HighlightedDetails$inboundSchema)) + .optional(), + quote: z.array(z.lazy(() => Quote$inboundSchema)).optional(), + effectiveDate: z.string().optional(), + disabled: z.boolean().optional(), + }); + +/** @internal */ +export type Plans$Outbound = { + type: string; + id: string; + name: string; + scope: string; + description: string; + paymentMethodRequired: boolean; + preauthorizationAmount?: number | undefined; + initialCharge?: string | undefined; + minimumAmount?: string | undefined; + maximumAmount?: string | undefined; + maximumAmountAutoPurchasePerPeriod?: string | undefined; + cost?: string | undefined; + details?: + | Array< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$Outbound + > + | undefined; + highlightedDetails?: Array | undefined; + quote?: Array | undefined; + effectiveDate?: string | undefined; + disabled?: boolean | undefined; +}; + +/** @internal */ +export const Plans$outboundSchema: z.ZodType< + Plans$Outbound, + z.ZodTypeDef, + Plans +> = z.object({ + type: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansType$outboundSchema, + id: z.string(), + name: z.string(), + scope: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansScope$outboundSchema, + description: z.string(), + paymentMethodRequired: z.boolean(), + preauthorizationAmount: z.number().optional(), + initialCharge: z.string().optional(), + minimumAmount: z.string().optional(), + maximumAmount: z.string().optional(), + maximumAmountAutoPurchasePerPeriod: z.string().optional(), + cost: z.string().optional(), + details: z.array( + z.lazy(() => + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansDetails$outboundSchema + ), + ).optional(), + highlightedDetails: z.array(z.lazy(() => HighlightedDetails$outboundSchema)) + .optional(), + quote: z.array(z.lazy(() => Quote$outboundSchema)).optional(), + effectiveDate: z.string().optional(), + disabled: z.boolean().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Plans$ { + /** @deprecated use `Plans$inboundSchema` instead. */ + export const inboundSchema = Plans$inboundSchema; + /** @deprecated use `Plans$outboundSchema` instead. */ + export const outboundSchema = Plans$outboundSchema; + /** @deprecated use `Plans$Outbound` instead. */ + export type Outbound = Plans$Outbound; +} + +export function plansToJSON(plans: Plans): string { + return JSON.stringify(Plans$outboundSchema.parse(plans)); +} + +export function plansFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Plans$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Plans' from JSON`, + ); +} + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$inboundSchema: + z.ZodType< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, + z.ZodTypeDef, + unknown + > = z.object({ + plans: z.array(z.lazy(() => Plans$inboundSchema)), + }); + +/** @internal */ +export type GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$Outbound = + { + plans: Array; + }; + +/** @internal */ +export const GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$outboundSchema: + z.ZodType< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$Outbound, + z.ZodTypeDef, + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody + > = z.object({ + plans: z.array(z.lazy(() => Plans$outboundSchema)), + }); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$ { + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$inboundSchema` instead. */ + export const inboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$inboundSchema; + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$outboundSchema` instead. */ + export const outboundSchema = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$outboundSchema; + /** @deprecated use `GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$Outbound` instead. */ + export type Outbound = + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$Outbound; +} + +export function getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBodyToJSON( + getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, +): string { + return JSON.stringify( + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$outboundSchema + .parse( + getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, + ), + ); +} + +export function getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBodyFromJSON( + jsonString: string, +): SafeParseResult< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody$inboundSchema + .parse(JSON.parse(x)), + `Failed to parse 'GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody' from JSON`, + ); +} diff --git a/src/models/getwebhookop.ts b/src/models/getwebhookop.ts index b1676938..10faf4ee 100644 --- a/src/models/getwebhookop.ts +++ b/src/models/getwebhookop.ts @@ -40,6 +40,7 @@ export const GetWebhookEvents = { DomainRenewalFailed: "domain.renewal.failed", DomainAutoRenewChanged: "domain.auto-renew.changed", DeploymentCreated: "deployment.created", + DeploymentCleanup: "deployment.cleanup", DeploymentError: "deployment.error", DeploymentCanceled: "deployment.canceled", DeploymentSucceeded: "deployment.succeeded", @@ -97,6 +98,7 @@ export const GetWebhookEvents = { MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid", MarketplaceInvoiceRefunded: "marketplace.invoice.refunded", ObservabilityAnomaly: "observability.anomaly", + ObservabilityAnomalyError: "observability.anomaly-error", TestWebhook: "test-webhook", } as const; /** diff --git a/src/models/getwebhooksop.ts b/src/models/getwebhooksop.ts index 4915e1ef..6777acb6 100644 --- a/src/models/getwebhooksop.ts +++ b/src/models/getwebhooksop.ts @@ -40,6 +40,7 @@ export const GetWebhooksResponseBodyEvents = { DomainRenewalFailed: "domain.renewal.failed", DomainAutoRenewChanged: "domain.auto-renew.changed", DeploymentCreated: "deployment.created", + DeploymentCleanup: "deployment.cleanup", DeploymentError: "deployment.error", DeploymentCanceled: "deployment.canceled", DeploymentSucceeded: "deployment.succeeded", @@ -97,6 +98,7 @@ export const GetWebhooksResponseBodyEvents = { MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid", MarketplaceInvoiceRefunded: "marketplace.invoice.refunded", ObservabilityAnomaly: "observability.anomaly", + ObservabilityAnomalyError: "observability.anomaly-error", TestWebhook: "test-webhook", } as const; /** @@ -193,7 +195,7 @@ export type GetWebhooksResponseBodyFramework = ClosedEnum< typeof GetWebhooksResponseBodyFramework >; -export type ProjectsMetadata = { +export type ResponseBodyProjectsMetadata = { id: string; name: string; framework?: GetWebhooksResponseBodyFramework | null | undefined; @@ -220,6 +222,7 @@ export const ResponseBodyEvents = { DomainRenewalFailed: "domain.renewal.failed", DomainAutoRenewChanged: "domain.auto-renew.changed", DeploymentCreated: "deployment.created", + DeploymentCleanup: "deployment.cleanup", DeploymentError: "deployment.error", DeploymentCanceled: "deployment.canceled", DeploymentSucceeded: "deployment.succeeded", @@ -277,6 +280,7 @@ export const ResponseBodyEvents = { MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid", MarketplaceInvoiceRefunded: "marketplace.invoice.refunded", ObservabilityAnomaly: "observability.anomaly", + ObservabilityAnomalyError: "observability.anomaly-error", TestWebhook: "test-webhook", } as const; /** @@ -285,7 +289,7 @@ export const ResponseBodyEvents = { export type ResponseBodyEvents = ClosedEnum; export type GetWebhooksResponseBody1 = { - projectsMetadata: Array | null; + projectsMetadata: Array | null; /** * The webhooks events */ @@ -495,8 +499,8 @@ export namespace GetWebhooksResponseBodyFramework$ { } /** @internal */ -export const ProjectsMetadata$inboundSchema: z.ZodType< - ProjectsMetadata, +export const ResponseBodyProjectsMetadata$inboundSchema: z.ZodType< + ResponseBodyProjectsMetadata, z.ZodTypeDef, unknown > = z.object({ @@ -508,7 +512,7 @@ export const ProjectsMetadata$inboundSchema: z.ZodType< }); /** @internal */ -export type ProjectsMetadata$Outbound = { +export type ResponseBodyProjectsMetadata$Outbound = { id: string; name: string; framework?: string | null | undefined; @@ -516,10 +520,10 @@ export type ProjectsMetadata$Outbound = { }; /** @internal */ -export const ProjectsMetadata$outboundSchema: z.ZodType< - ProjectsMetadata$Outbound, +export const ResponseBodyProjectsMetadata$outboundSchema: z.ZodType< + ResponseBodyProjectsMetadata$Outbound, z.ZodTypeDef, - ProjectsMetadata + ResponseBodyProjectsMetadata > = z.object({ id: z.string(), name: z.string(), @@ -532,30 +536,32 @@ export const ProjectsMetadata$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace ProjectsMetadata$ { - /** @deprecated use `ProjectsMetadata$inboundSchema` instead. */ - export const inboundSchema = ProjectsMetadata$inboundSchema; - /** @deprecated use `ProjectsMetadata$outboundSchema` instead. */ - export const outboundSchema = ProjectsMetadata$outboundSchema; - /** @deprecated use `ProjectsMetadata$Outbound` instead. */ - export type Outbound = ProjectsMetadata$Outbound; +export namespace ResponseBodyProjectsMetadata$ { + /** @deprecated use `ResponseBodyProjectsMetadata$inboundSchema` instead. */ + export const inboundSchema = ResponseBodyProjectsMetadata$inboundSchema; + /** @deprecated use `ResponseBodyProjectsMetadata$outboundSchema` instead. */ + export const outboundSchema = ResponseBodyProjectsMetadata$outboundSchema; + /** @deprecated use `ResponseBodyProjectsMetadata$Outbound` instead. */ + export type Outbound = ResponseBodyProjectsMetadata$Outbound; } -export function projectsMetadataToJSON( - projectsMetadata: ProjectsMetadata, +export function responseBodyProjectsMetadataToJSON( + responseBodyProjectsMetadata: ResponseBodyProjectsMetadata, ): string { return JSON.stringify( - ProjectsMetadata$outboundSchema.parse(projectsMetadata), + ResponseBodyProjectsMetadata$outboundSchema.parse( + responseBodyProjectsMetadata, + ), ); } -export function projectsMetadataFromJSON( +export function responseBodyProjectsMetadataFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => ProjectsMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProjectsMetadata' from JSON`, + (x) => ResponseBodyProjectsMetadata$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ResponseBodyProjectsMetadata' from JSON`, ); } @@ -587,7 +593,7 @@ export const GetWebhooksResponseBody1$inboundSchema: z.ZodType< unknown > = z.object({ projectsMetadata: z.nullable( - z.array(z.lazy(() => ProjectsMetadata$inboundSchema)), + z.array(z.lazy(() => ResponseBodyProjectsMetadata$inboundSchema)), ), events: z.array(ResponseBodyEvents$inboundSchema), id: z.string(), @@ -600,7 +606,7 @@ export const GetWebhooksResponseBody1$inboundSchema: z.ZodType< /** @internal */ export type GetWebhooksResponseBody1$Outbound = { - projectsMetadata: Array | null; + projectsMetadata: Array | null; events: Array; id: string; url: string; @@ -617,7 +623,7 @@ export const GetWebhooksResponseBody1$outboundSchema: z.ZodType< GetWebhooksResponseBody1 > = z.object({ projectsMetadata: z.nullable( - z.array(z.lazy(() => ProjectsMetadata$outboundSchema)), + z.array(z.lazy(() => ResponseBodyProjectsMetadata$outboundSchema)), ), events: z.array(ResponseBodyEvents$outboundSchema), id: z.string(), diff --git a/src/models/inviteusertoteamop.ts b/src/models/inviteusertoteamop.ts index 7020b77f..1c6af4c3 100644 --- a/src/models/inviteusertoteamop.ts +++ b/src/models/inviteusertoteamop.ts @@ -114,6 +114,7 @@ export type InviteUserToTeamTeamRoles = ClosedEnum< * The team permissions of the user */ export const InviteUserToTeamTeamPermissions = { + IntegrationManager: "IntegrationManager", CreateProject: "CreateProject", FullProductionDeployment: "FullProductionDeployment", UsageViewer: "UsageViewer", diff --git a/src/models/patchteamop.ts b/src/models/patchteamop.ts index 2808473b..1e64f6a8 100644 --- a/src/models/patchteamop.ts +++ b/src/models/patchteamop.ts @@ -118,6 +118,101 @@ export type PatchTeamDefaultDeploymentProtection = { ssoProtection?: PatchTeamSsoProtection | null | undefined; }; +/** + * The time period to keep non-production deployments for + */ +export const Expiration = { + Oney: "1y", + Sixm: "6m", + Threem: "3m", + Twom: "2m", + Onem: "1m", + Twow: "2w", + Onew: "1w", + Oned: "1d", + Unlimited: "unlimited", +} as const; +/** + * The time period to keep non-production deployments for + */ +export type Expiration = ClosedEnum; + +/** + * The time period to keep production deployments for + */ +export const ExpirationProduction = { + Oney: "1y", + Sixm: "6m", + Threem: "3m", + Twom: "2m", + Onem: "1m", + Twow: "2w", + Onew: "1w", + Oned: "1d", + Unlimited: "unlimited", +} as const; +/** + * The time period to keep production deployments for + */ +export type ExpirationProduction = ClosedEnum; + +/** + * The time period to keep canceled deployments for + */ +export const ExpirationCanceled = { + Oney: "1y", + Sixm: "6m", + Threem: "3m", + Twom: "2m", + Onem: "1m", + Twow: "2w", + Onew: "1w", + Oned: "1d", + Unlimited: "unlimited", +} as const; +/** + * The time period to keep canceled deployments for + */ +export type ExpirationCanceled = ClosedEnum; + +/** + * The time period to keep errored deployments for + */ +export const ExpirationErrored = { + Oney: "1y", + Sixm: "6m", + Threem: "3m", + Twom: "2m", + Onem: "1m", + Twow: "2w", + Onew: "1w", + Oned: "1d", + Unlimited: "unlimited", +} as const; +/** + * The time period to keep errored deployments for + */ +export type ExpirationErrored = ClosedEnum; + +export type PatchTeamDefaultExpirationSettings = { + /** + * The time period to keep non-production deployments for + */ + expiration?: Expiration | undefined; + /** + * The time period to keep production deployments for + */ + expirationProduction?: ExpirationProduction | undefined; + /** + * The time period to keep canceled deployments for + */ + expirationCanceled?: ExpirationCanceled | undefined; + /** + * The time period to keep errored deployments for + */ + expirationErrored?: ExpirationErrored | undefined; +}; + export type PatchTeamRequestBody = { /** * The hash value of an uploaded image. @@ -175,6 +270,7 @@ export type PatchTeamRequestBody = { defaultDeploymentProtection?: | PatchTeamDefaultDeploymentProtection | undefined; + defaultExpirationSettings?: PatchTeamDefaultExpirationSettings | undefined; }; export type PatchTeamRequest = { @@ -654,6 +750,155 @@ export function patchTeamDefaultDeploymentProtectionFromJSON( ); } +/** @internal */ +export const Expiration$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(Expiration); + +/** @internal */ +export const Expiration$outboundSchema: z.ZodNativeEnum = + Expiration$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Expiration$ { + /** @deprecated use `Expiration$inboundSchema` instead. */ + export const inboundSchema = Expiration$inboundSchema; + /** @deprecated use `Expiration$outboundSchema` instead. */ + export const outboundSchema = Expiration$outboundSchema; +} + +/** @internal */ +export const ExpirationProduction$inboundSchema: z.ZodNativeEnum< + typeof ExpirationProduction +> = z.nativeEnum(ExpirationProduction); + +/** @internal */ +export const ExpirationProduction$outboundSchema: z.ZodNativeEnum< + typeof ExpirationProduction +> = ExpirationProduction$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ExpirationProduction$ { + /** @deprecated use `ExpirationProduction$inboundSchema` instead. */ + export const inboundSchema = ExpirationProduction$inboundSchema; + /** @deprecated use `ExpirationProduction$outboundSchema` instead. */ + export const outboundSchema = ExpirationProduction$outboundSchema; +} + +/** @internal */ +export const ExpirationCanceled$inboundSchema: z.ZodNativeEnum< + typeof ExpirationCanceled +> = z.nativeEnum(ExpirationCanceled); + +/** @internal */ +export const ExpirationCanceled$outboundSchema: z.ZodNativeEnum< + typeof ExpirationCanceled +> = ExpirationCanceled$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ExpirationCanceled$ { + /** @deprecated use `ExpirationCanceled$inboundSchema` instead. */ + export const inboundSchema = ExpirationCanceled$inboundSchema; + /** @deprecated use `ExpirationCanceled$outboundSchema` instead. */ + export const outboundSchema = ExpirationCanceled$outboundSchema; +} + +/** @internal */ +export const ExpirationErrored$inboundSchema: z.ZodNativeEnum< + typeof ExpirationErrored +> = z.nativeEnum(ExpirationErrored); + +/** @internal */ +export const ExpirationErrored$outboundSchema: z.ZodNativeEnum< + typeof ExpirationErrored +> = ExpirationErrored$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ExpirationErrored$ { + /** @deprecated use `ExpirationErrored$inboundSchema` instead. */ + export const inboundSchema = ExpirationErrored$inboundSchema; + /** @deprecated use `ExpirationErrored$outboundSchema` instead. */ + export const outboundSchema = ExpirationErrored$outboundSchema; +} + +/** @internal */ +export const PatchTeamDefaultExpirationSettings$inboundSchema: z.ZodType< + PatchTeamDefaultExpirationSettings, + z.ZodTypeDef, + unknown +> = z.object({ + expiration: Expiration$inboundSchema.optional(), + expirationProduction: ExpirationProduction$inboundSchema.optional(), + expirationCanceled: ExpirationCanceled$inboundSchema.optional(), + expirationErrored: ExpirationErrored$inboundSchema.optional(), +}); + +/** @internal */ +export type PatchTeamDefaultExpirationSettings$Outbound = { + expiration?: string | undefined; + expirationProduction?: string | undefined; + expirationCanceled?: string | undefined; + expirationErrored?: string | undefined; +}; + +/** @internal */ +export const PatchTeamDefaultExpirationSettings$outboundSchema: z.ZodType< + PatchTeamDefaultExpirationSettings$Outbound, + z.ZodTypeDef, + PatchTeamDefaultExpirationSettings +> = z.object({ + expiration: Expiration$outboundSchema.optional(), + expirationProduction: ExpirationProduction$outboundSchema.optional(), + expirationCanceled: ExpirationCanceled$outboundSchema.optional(), + expirationErrored: ExpirationErrored$outboundSchema.optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace PatchTeamDefaultExpirationSettings$ { + /** @deprecated use `PatchTeamDefaultExpirationSettings$inboundSchema` instead. */ + export const inboundSchema = PatchTeamDefaultExpirationSettings$inboundSchema; + /** @deprecated use `PatchTeamDefaultExpirationSettings$outboundSchema` instead. */ + export const outboundSchema = + PatchTeamDefaultExpirationSettings$outboundSchema; + /** @deprecated use `PatchTeamDefaultExpirationSettings$Outbound` instead. */ + export type Outbound = PatchTeamDefaultExpirationSettings$Outbound; +} + +export function patchTeamDefaultExpirationSettingsToJSON( + patchTeamDefaultExpirationSettings: PatchTeamDefaultExpirationSettings, +): string { + return JSON.stringify( + PatchTeamDefaultExpirationSettings$outboundSchema.parse( + patchTeamDefaultExpirationSettings, + ), + ); +} + +export function patchTeamDefaultExpirationSettingsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + PatchTeamDefaultExpirationSettings$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PatchTeamDefaultExpirationSettings' from JSON`, + ); +} + /** @internal */ export const PatchTeamRequestBody$inboundSchema: z.ZodType< PatchTeamRequestBody, @@ -677,6 +922,9 @@ export const PatchTeamRequestBody$inboundSchema: z.ZodType< defaultDeploymentProtection: z.lazy(() => PatchTeamDefaultDeploymentProtection$inboundSchema ).optional(), + defaultExpirationSettings: z.lazy(() => + PatchTeamDefaultExpirationSettings$inboundSchema + ).optional(), }); /** @internal */ @@ -698,6 +946,9 @@ export type PatchTeamRequestBody$Outbound = { defaultDeploymentProtection?: | PatchTeamDefaultDeploymentProtection$Outbound | undefined; + defaultExpirationSettings?: + | PatchTeamDefaultExpirationSettings$Outbound + | undefined; }; /** @internal */ @@ -723,6 +974,9 @@ export const PatchTeamRequestBody$outboundSchema: z.ZodType< defaultDeploymentProtection: z.lazy(() => PatchTeamDefaultDeploymentProtection$outboundSchema ).optional(), + defaultExpirationSettings: z.lazy(() => + PatchTeamDefaultExpirationSettings$outboundSchema + ).optional(), }); /** diff --git a/src/models/removeprojectenvop.ts b/src/models/removeprojectenvop.ts index 09a5e35d..57c42dc8 100644 --- a/src/models/removeprojectenvop.ts +++ b/src/models/removeprojectenvop.ts @@ -55,10 +55,10 @@ export type RemoveProjectEnvResponseBodyProjectsResponseTarget = export const RemoveProjectEnvResponseBodyProjectsResponseType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type RemoveProjectEnvResponseBodyProjectsResponseType = ClosedEnum< typeof RemoveProjectEnvResponseBodyProjectsResponseType @@ -405,10 +405,10 @@ export type RemoveProjectEnvResponseBodyProjectsTarget = export const RemoveProjectEnvResponseBodyProjectsType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type RemoveProjectEnvResponseBodyProjectsType = ClosedEnum< typeof RemoveProjectEnvResponseBodyProjectsType @@ -754,10 +754,10 @@ export type RemoveProjectEnvResponseBodyTarget = export const RemoveProjectEnvResponseBodyType = { System: "system", - Secret: "secret", Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", + Secret: "secret", } as const; export type RemoveProjectEnvResponseBodyType = ClosedEnum< typeof RemoveProjectEnvResponseBodyType diff --git a/src/models/team.ts b/src/models/team.ts index 2ac5f7f5..e95079c2 100644 --- a/src/models/team.ts +++ b/src/models/team.ts @@ -185,6 +185,16 @@ export type DefaultDeploymentProtection = { ssoProtection?: SsoProtection | undefined; }; +/** + * Default deployment expiration settings for this team + */ +export type DefaultExpirationSettings = { + expiration?: string | undefined; + expirationProduction?: string | undefined; + expirationCanceled?: string | undefined; + expirationErrored?: string | undefined; +}; + /** * Whether toolbar is enabled on preview deployments */ @@ -268,6 +278,7 @@ export const TeamRoles = { export type TeamRoles = ClosedEnum; export const TeamPermissions = { + IntegrationManager: "IntegrationManager", CreateProject: "CreateProject", FullProductionDeployment: "FullProductionDeployment", UsageViewer: "UsageViewer", @@ -365,6 +376,10 @@ export type Team = { * The hostname that is current set as preview deployment suffix. */ previewDeploymentSuffix?: string | null | undefined; + /** + * Whether the team is a platform team. + */ + platform?: boolean | undefined; disableHardAutoBlocks?: number | boolean | undefined; /** * Is remote caching enabled for this team @@ -374,6 +389,10 @@ export type Team = { * Default deployment protection for this team */ defaultDeploymentProtection?: DefaultDeploymentProtection | undefined; + /** + * Default deployment expiration settings for this team + */ + defaultExpirationSettings?: DefaultExpirationSettings | undefined; /** * Whether toolbar is enabled on preview deployments */ @@ -1168,6 +1187,69 @@ export function defaultDeploymentProtectionFromJSON( ); } +/** @internal */ +export const DefaultExpirationSettings$inboundSchema: z.ZodType< + DefaultExpirationSettings, + z.ZodTypeDef, + unknown +> = z.object({ + expiration: z.string().optional(), + expirationProduction: z.string().optional(), + expirationCanceled: z.string().optional(), + expirationErrored: z.string().optional(), +}); + +/** @internal */ +export type DefaultExpirationSettings$Outbound = { + expiration?: string | undefined; + expirationProduction?: string | undefined; + expirationCanceled?: string | undefined; + expirationErrored?: string | undefined; +}; + +/** @internal */ +export const DefaultExpirationSettings$outboundSchema: z.ZodType< + DefaultExpirationSettings$Outbound, + z.ZodTypeDef, + DefaultExpirationSettings +> = z.object({ + expiration: z.string().optional(), + expirationProduction: z.string().optional(), + expirationCanceled: z.string().optional(), + expirationErrored: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DefaultExpirationSettings$ { + /** @deprecated use `DefaultExpirationSettings$inboundSchema` instead. */ + export const inboundSchema = DefaultExpirationSettings$inboundSchema; + /** @deprecated use `DefaultExpirationSettings$outboundSchema` instead. */ + export const outboundSchema = DefaultExpirationSettings$outboundSchema; + /** @deprecated use `DefaultExpirationSettings$Outbound` instead. */ + export type Outbound = DefaultExpirationSettings$Outbound; +} + +export function defaultExpirationSettingsToJSON( + defaultExpirationSettings: DefaultExpirationSettings, +): string { + return JSON.stringify( + DefaultExpirationSettings$outboundSchema.parse(defaultExpirationSettings), + ); +} + +export function defaultExpirationSettingsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DefaultExpirationSettings$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DefaultExpirationSettings' from JSON`, + ); +} + /** @internal */ export const EnablePreviewFeedback$inboundSchema: z.ZodNativeEnum< typeof EnablePreviewFeedback @@ -1632,11 +1714,15 @@ export const Team$inboundSchema: z.ZodType = stagingPrefix: z.string(), resourceConfig: z.lazy(() => ResourceConfig$inboundSchema).optional(), previewDeploymentSuffix: z.nullable(z.string()).optional(), + platform: z.boolean().optional(), disableHardAutoBlocks: z.union([z.number(), z.boolean()]).optional(), remoteCaching: z.lazy(() => RemoteCaching$inboundSchema).optional(), defaultDeploymentProtection: z.lazy(() => DefaultDeploymentProtection$inboundSchema ).optional(), + defaultExpirationSettings: z.lazy(() => + DefaultExpirationSettings$inboundSchema + ).optional(), enablePreviewFeedback: z.nullable(EnablePreviewFeedback$inboundSchema) .optional(), enableProductionFeedback: z.nullable( @@ -1671,11 +1757,13 @@ export type Team$Outbound = { stagingPrefix: string; resourceConfig?: ResourceConfig$Outbound | undefined; previewDeploymentSuffix?: string | null | undefined; + platform?: boolean | undefined; disableHardAutoBlocks?: number | boolean | undefined; remoteCaching?: RemoteCaching$Outbound | undefined; defaultDeploymentProtection?: | DefaultDeploymentProtection$Outbound | undefined; + defaultExpirationSettings?: DefaultExpirationSettings$Outbound | undefined; enablePreviewFeedback?: string | null | undefined; enableProductionFeedback?: string | null | undefined; sensitiveEnvironmentVariablePolicy?: string | null | undefined; @@ -1704,11 +1792,15 @@ export const Team$outboundSchema: z.ZodType = stagingPrefix: z.string(), resourceConfig: z.lazy(() => ResourceConfig$outboundSchema).optional(), previewDeploymentSuffix: z.nullable(z.string()).optional(), + platform: z.boolean().optional(), disableHardAutoBlocks: z.union([z.number(), z.boolean()]).optional(), remoteCaching: z.lazy(() => RemoteCaching$outboundSchema).optional(), defaultDeploymentProtection: z.lazy(() => DefaultDeploymentProtection$outboundSchema ).optional(), + defaultExpirationSettings: z.lazy(() => + DefaultExpirationSettings$outboundSchema + ).optional(), enablePreviewFeedback: z.nullable(EnablePreviewFeedback$outboundSchema) .optional(), enableProductionFeedback: z.nullable( diff --git a/src/models/teamlimited.ts b/src/models/teamlimited.ts index 320f766d..c0c0ed1c 100644 --- a/src/models/teamlimited.ts +++ b/src/models/teamlimited.ts @@ -109,6 +109,7 @@ export const TeamLimitedTeamRoles = { export type TeamLimitedTeamRoles = ClosedEnum; export const TeamLimitedTeamPermissions = { + IntegrationManager: "IntegrationManager", CreateProject: "CreateProject", FullProductionDeployment: "FullProductionDeployment", UsageViewer: "UsageViewer", diff --git a/src/models/updatefirewallconfigop.ts b/src/models/updatefirewallconfigop.ts index f89e63ed..f1014d30 100644 --- a/src/models/updatefirewallconfigop.ts +++ b/src/models/updatefirewallconfigop.ts @@ -247,27 +247,27 @@ export type UpdateFirewallConfigRequestBody5 = { value: number; }; -export const UpdateFirewallConfigRequestBodySecurityRequestAction = { +export const UpdateFirewallConfigRequestBodySecurityRequest4Action = { RulesRemove: "rules.remove", } as const; -export type UpdateFirewallConfigRequestBodySecurityRequestAction = ClosedEnum< - typeof UpdateFirewallConfigRequestBodySecurityRequestAction +export type UpdateFirewallConfigRequestBodySecurityRequest4Action = ClosedEnum< + typeof UpdateFirewallConfigRequestBodySecurityRequest4Action >; /** * Remove a custom rule */ export type UpdateFirewallConfigRequestBody4 = { - action: UpdateFirewallConfigRequestBodySecurityRequestAction; + action: UpdateFirewallConfigRequestBodySecurityRequest4Action; id: string; value?: any | null | undefined; }; -export const UpdateFirewallConfigRequestBodySecurityAction = { +export const UpdateFirewallConfigRequestBodySecurityRequestAction = { RulesUpdate: "rules.update", } as const; -export type UpdateFirewallConfigRequestBodySecurityAction = ClosedEnum< - typeof UpdateFirewallConfigRequestBodySecurityAction +export type UpdateFirewallConfigRequestBodySecurityRequestAction = ClosedEnum< + typeof UpdateFirewallConfigRequestBodySecurityRequestAction >; export const UpdateFirewallConfigRequestBodySecurityType = { @@ -415,16 +415,16 @@ export type UpdateFirewallConfigRequestBodyValue = { * Update a custom rule */ export type UpdateFirewallConfigRequestBody3 = { - action: UpdateFirewallConfigRequestBodySecurityAction; + action: UpdateFirewallConfigRequestBodySecurityRequestAction; id: string; value: UpdateFirewallConfigRequestBodyValue; }; -export const UpdateFirewallConfigRequestBodyAction = { +export const UpdateFirewallConfigRequestBodySecurityAction = { RulesInsert: "rules.insert", } as const; -export type UpdateFirewallConfigRequestBodyAction = ClosedEnum< - typeof UpdateFirewallConfigRequestBodyAction +export type UpdateFirewallConfigRequestBodySecurityAction = ClosedEnum< + typeof UpdateFirewallConfigRequestBodySecurityAction >; export const UpdateFirewallConfigRequestBodyType = { @@ -564,21 +564,23 @@ export type RequestBodyValue = { * Add a custom rule */ export type UpdateFirewallConfigRequestBody2 = { - action: UpdateFirewallConfigRequestBodyAction; + action: UpdateFirewallConfigRequestBodySecurityAction; id?: any | null | undefined; value: RequestBodyValue; }; -export const RequestBodyAction = { +export const UpdateFirewallConfigRequestBodyAction = { FirewallEnabled: "firewallEnabled", } as const; -export type RequestBodyAction = ClosedEnum; +export type UpdateFirewallConfigRequestBodyAction = ClosedEnum< + typeof UpdateFirewallConfigRequestBodyAction +>; /** * Enable Firewall */ export type UpdateFirewallConfigRequestBody1 = { - action: RequestBodyAction; + action: UpdateFirewallConfigRequestBodyAction; id?: any | null | undefined; value: boolean; }; @@ -1933,26 +1935,28 @@ export function updateFirewallConfigRequestBody5FromJSON( } /** @internal */ -export const UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema: - z.ZodNativeEnum = - z.nativeEnum(UpdateFirewallConfigRequestBodySecurityRequestAction); +export const UpdateFirewallConfigRequestBodySecurityRequest4Action$inboundSchema: + z.ZodNativeEnum< + typeof UpdateFirewallConfigRequestBodySecurityRequest4Action + > = z.nativeEnum(UpdateFirewallConfigRequestBodySecurityRequest4Action); /** @internal */ -export const UpdateFirewallConfigRequestBodySecurityRequestAction$outboundSchema: - z.ZodNativeEnum = - UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema; +export const UpdateFirewallConfigRequestBodySecurityRequest4Action$outboundSchema: + z.ZodNativeEnum< + typeof UpdateFirewallConfigRequestBodySecurityRequest4Action + > = UpdateFirewallConfigRequestBodySecurityRequest4Action$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UpdateFirewallConfigRequestBodySecurityRequestAction$ { - /** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema` instead. */ +export namespace UpdateFirewallConfigRequestBodySecurityRequest4Action$ { + /** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequest4Action$inboundSchema` instead. */ export const inboundSchema = - UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema; - /** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestAction$outboundSchema` instead. */ + UpdateFirewallConfigRequestBodySecurityRequest4Action$inboundSchema; + /** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequest4Action$outboundSchema` instead. */ export const outboundSchema = - UpdateFirewallConfigRequestBodySecurityRequestAction$outboundSchema; + UpdateFirewallConfigRequestBodySecurityRequest4Action$outboundSchema; } /** @internal */ @@ -1961,7 +1965,7 @@ export const UpdateFirewallConfigRequestBody4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema, + action: UpdateFirewallConfigRequestBodySecurityRequest4Action$inboundSchema, id: z.string(), value: z.nullable(z.any()).optional(), }); @@ -1979,7 +1983,7 @@ export const UpdateFirewallConfigRequestBody4$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateFirewallConfigRequestBody4 > = z.object({ - action: UpdateFirewallConfigRequestBodySecurityRequestAction$outboundSchema, + action: UpdateFirewallConfigRequestBodySecurityRequest4Action$outboundSchema, id: z.string(), value: z.nullable(z.any()).optional(), }); @@ -2018,26 +2022,26 @@ export function updateFirewallConfigRequestBody4FromJSON( } /** @internal */ -export const UpdateFirewallConfigRequestBodySecurityAction$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(UpdateFirewallConfigRequestBodySecurityAction); +export const UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema: + z.ZodNativeEnum = + z.nativeEnum(UpdateFirewallConfigRequestBodySecurityRequestAction); /** @internal */ -export const UpdateFirewallConfigRequestBodySecurityAction$outboundSchema: - z.ZodNativeEnum = - UpdateFirewallConfigRequestBodySecurityAction$inboundSchema; +export const UpdateFirewallConfigRequestBodySecurityRequestAction$outboundSchema: + z.ZodNativeEnum = + UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UpdateFirewallConfigRequestBodySecurityAction$ { - /** @deprecated use `UpdateFirewallConfigRequestBodySecurityAction$inboundSchema` instead. */ +export namespace UpdateFirewallConfigRequestBodySecurityRequestAction$ { + /** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema` instead. */ export const inboundSchema = - UpdateFirewallConfigRequestBodySecurityAction$inboundSchema; - /** @deprecated use `UpdateFirewallConfigRequestBodySecurityAction$outboundSchema` instead. */ + UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema; + /** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestAction$outboundSchema` instead. */ export const outboundSchema = - UpdateFirewallConfigRequestBodySecurityAction$outboundSchema; + UpdateFirewallConfigRequestBodySecurityRequestAction$outboundSchema; } /** @internal */ @@ -2966,7 +2970,7 @@ export const UpdateFirewallConfigRequestBody3$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: UpdateFirewallConfigRequestBodySecurityAction$inboundSchema, + action: UpdateFirewallConfigRequestBodySecurityRequestAction$inboundSchema, id: z.string(), value: z.lazy(() => UpdateFirewallConfigRequestBodyValue$inboundSchema), }); @@ -2984,7 +2988,7 @@ export const UpdateFirewallConfigRequestBody3$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateFirewallConfigRequestBody3 > = z.object({ - action: UpdateFirewallConfigRequestBodySecurityAction$outboundSchema, + action: UpdateFirewallConfigRequestBodySecurityRequestAction$outboundSchema, id: z.string(), value: z.lazy(() => UpdateFirewallConfigRequestBodyValue$outboundSchema), }); @@ -3023,27 +3027,26 @@ export function updateFirewallConfigRequestBody3FromJSON( } /** @internal */ -export const UpdateFirewallConfigRequestBodyAction$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - UpdateFirewallConfigRequestBodyAction, - ); +export const UpdateFirewallConfigRequestBodySecurityAction$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(UpdateFirewallConfigRequestBodySecurityAction); /** @internal */ -export const UpdateFirewallConfigRequestBodyAction$outboundSchema: - z.ZodNativeEnum = - UpdateFirewallConfigRequestBodyAction$inboundSchema; +export const UpdateFirewallConfigRequestBodySecurityAction$outboundSchema: + z.ZodNativeEnum = + UpdateFirewallConfigRequestBodySecurityAction$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UpdateFirewallConfigRequestBodyAction$ { - /** @deprecated use `UpdateFirewallConfigRequestBodyAction$inboundSchema` instead. */ +export namespace UpdateFirewallConfigRequestBodySecurityAction$ { + /** @deprecated use `UpdateFirewallConfigRequestBodySecurityAction$inboundSchema` instead. */ export const inboundSchema = - UpdateFirewallConfigRequestBodyAction$inboundSchema; - /** @deprecated use `UpdateFirewallConfigRequestBodyAction$outboundSchema` instead. */ + UpdateFirewallConfigRequestBodySecurityAction$inboundSchema; + /** @deprecated use `UpdateFirewallConfigRequestBodySecurityAction$outboundSchema` instead. */ export const outboundSchema = - UpdateFirewallConfigRequestBodyAction$outboundSchema; + UpdateFirewallConfigRequestBodySecurityAction$outboundSchema; } /** @internal */ @@ -3874,7 +3877,7 @@ export const UpdateFirewallConfigRequestBody2$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: UpdateFirewallConfigRequestBodyAction$inboundSchema, + action: UpdateFirewallConfigRequestBodySecurityAction$inboundSchema, id: z.nullable(z.any()).optional(), value: z.lazy(() => RequestBodyValue$inboundSchema), }); @@ -3892,7 +3895,7 @@ export const UpdateFirewallConfigRequestBody2$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateFirewallConfigRequestBody2 > = z.object({ - action: UpdateFirewallConfigRequestBodyAction$outboundSchema, + action: UpdateFirewallConfigRequestBodySecurityAction$outboundSchema, id: z.nullable(z.any()).optional(), value: z.lazy(() => RequestBodyValue$outboundSchema), }); @@ -3931,24 +3934,27 @@ export function updateFirewallConfigRequestBody2FromJSON( } /** @internal */ -export const RequestBodyAction$inboundSchema: z.ZodNativeEnum< - typeof RequestBodyAction -> = z.nativeEnum(RequestBodyAction); +export const UpdateFirewallConfigRequestBodyAction$inboundSchema: + z.ZodNativeEnum = z.nativeEnum( + UpdateFirewallConfigRequestBodyAction, + ); /** @internal */ -export const RequestBodyAction$outboundSchema: z.ZodNativeEnum< - typeof RequestBodyAction -> = RequestBodyAction$inboundSchema; +export const UpdateFirewallConfigRequestBodyAction$outboundSchema: + z.ZodNativeEnum = + UpdateFirewallConfigRequestBodyAction$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace RequestBodyAction$ { - /** @deprecated use `RequestBodyAction$inboundSchema` instead. */ - export const inboundSchema = RequestBodyAction$inboundSchema; - /** @deprecated use `RequestBodyAction$outboundSchema` instead. */ - export const outboundSchema = RequestBodyAction$outboundSchema; +export namespace UpdateFirewallConfigRequestBodyAction$ { + /** @deprecated use `UpdateFirewallConfigRequestBodyAction$inboundSchema` instead. */ + export const inboundSchema = + UpdateFirewallConfigRequestBodyAction$inboundSchema; + /** @deprecated use `UpdateFirewallConfigRequestBodyAction$outboundSchema` instead. */ + export const outboundSchema = + UpdateFirewallConfigRequestBodyAction$outboundSchema; } /** @internal */ @@ -3957,7 +3963,7 @@ export const UpdateFirewallConfigRequestBody1$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - action: RequestBodyAction$inboundSchema, + action: UpdateFirewallConfigRequestBodyAction$inboundSchema, id: z.nullable(z.any()).optional(), value: z.boolean(), }); @@ -3975,7 +3981,7 @@ export const UpdateFirewallConfigRequestBody1$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateFirewallConfigRequestBody1 > = z.object({ - action: RequestBodyAction$outboundSchema, + action: UpdateFirewallConfigRequestBodyAction$outboundSchema, id: z.nullable(z.any()).optional(), value: z.boolean(), }); diff --git a/src/models/updateinvoiceop.ts b/src/models/updateinvoiceop.ts index a4602707..28751605 100644 --- a/src/models/updateinvoiceop.ts +++ b/src/models/updateinvoiceop.ts @@ -9,13 +9,13 @@ import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; -export const UpdateInvoiceAction = { +export const RequestBodyAction = { Refund: "refund", } as const; -export type UpdateInvoiceAction = ClosedEnum; +export type RequestBodyAction = ClosedEnum; -export type UpdateInvoiceRequestBody = { - action: UpdateInvoiceAction; +export type UpdateInvoiceRequestBody1 = { + action: RequestBodyAction; /** * Refund reason. */ @@ -26,62 +26,113 @@ export type UpdateInvoiceRequestBody = { total: string; }; +export type UpdateInvoiceRequestBody = UpdateInvoiceRequestBody1; + export type UpdateInvoiceRequest = { integrationConfigurationId: string; invoiceId: string; - requestBody: UpdateInvoiceRequestBody; + requestBody: UpdateInvoiceRequestBody1; }; /** @internal */ -export const UpdateInvoiceAction$inboundSchema: z.ZodNativeEnum< - typeof UpdateInvoiceAction -> = z.nativeEnum(UpdateInvoiceAction); +export const RequestBodyAction$inboundSchema: z.ZodNativeEnum< + typeof RequestBodyAction +> = z.nativeEnum(RequestBodyAction); /** @internal */ -export const UpdateInvoiceAction$outboundSchema: z.ZodNativeEnum< - typeof UpdateInvoiceAction -> = UpdateInvoiceAction$inboundSchema; +export const RequestBodyAction$outboundSchema: z.ZodNativeEnum< + typeof RequestBodyAction +> = RequestBodyAction$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UpdateInvoiceAction$ { - /** @deprecated use `UpdateInvoiceAction$inboundSchema` instead. */ - export const inboundSchema = UpdateInvoiceAction$inboundSchema; - /** @deprecated use `UpdateInvoiceAction$outboundSchema` instead. */ - export const outboundSchema = UpdateInvoiceAction$outboundSchema; +export namespace RequestBodyAction$ { + /** @deprecated use `RequestBodyAction$inboundSchema` instead. */ + export const inboundSchema = RequestBodyAction$inboundSchema; + /** @deprecated use `RequestBodyAction$outboundSchema` instead. */ + export const outboundSchema = RequestBodyAction$outboundSchema; } /** @internal */ -export const UpdateInvoiceRequestBody$inboundSchema: z.ZodType< - UpdateInvoiceRequestBody, +export const UpdateInvoiceRequestBody1$inboundSchema: z.ZodType< + UpdateInvoiceRequestBody1, z.ZodTypeDef, unknown > = z.object({ - action: UpdateInvoiceAction$inboundSchema, + action: RequestBodyAction$inboundSchema, reason: z.string(), total: z.string(), }); /** @internal */ -export type UpdateInvoiceRequestBody$Outbound = { +export type UpdateInvoiceRequestBody1$Outbound = { action: string; reason: string; total: string; }; /** @internal */ -export const UpdateInvoiceRequestBody$outboundSchema: z.ZodType< - UpdateInvoiceRequestBody$Outbound, +export const UpdateInvoiceRequestBody1$outboundSchema: z.ZodType< + UpdateInvoiceRequestBody1$Outbound, z.ZodTypeDef, - UpdateInvoiceRequestBody + UpdateInvoiceRequestBody1 > = z.object({ - action: UpdateInvoiceAction$outboundSchema, + action: RequestBodyAction$outboundSchema, reason: z.string(), total: z.string(), }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateInvoiceRequestBody1$ { + /** @deprecated use `UpdateInvoiceRequestBody1$inboundSchema` instead. */ + export const inboundSchema = UpdateInvoiceRequestBody1$inboundSchema; + /** @deprecated use `UpdateInvoiceRequestBody1$outboundSchema` instead. */ + export const outboundSchema = UpdateInvoiceRequestBody1$outboundSchema; + /** @deprecated use `UpdateInvoiceRequestBody1$Outbound` instead. */ + export type Outbound = UpdateInvoiceRequestBody1$Outbound; +} + +export function updateInvoiceRequestBody1ToJSON( + updateInvoiceRequestBody1: UpdateInvoiceRequestBody1, +): string { + return JSON.stringify( + UpdateInvoiceRequestBody1$outboundSchema.parse(updateInvoiceRequestBody1), + ); +} + +export function updateInvoiceRequestBody1FromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateInvoiceRequestBody1$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateInvoiceRequestBody1' from JSON`, + ); +} + +/** @internal */ +export const UpdateInvoiceRequestBody$inboundSchema: z.ZodType< + UpdateInvoiceRequestBody, + z.ZodTypeDef, + unknown +> = z.lazy(() => UpdateInvoiceRequestBody1$inboundSchema); + +/** @internal */ +export type UpdateInvoiceRequestBody$Outbound = + UpdateInvoiceRequestBody1$Outbound; + +/** @internal */ +export const UpdateInvoiceRequestBody$outboundSchema: z.ZodType< + UpdateInvoiceRequestBody$Outbound, + z.ZodTypeDef, + UpdateInvoiceRequestBody +> = z.lazy(() => UpdateInvoiceRequestBody1$outboundSchema); + /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. @@ -121,7 +172,7 @@ export const UpdateInvoiceRequest$inboundSchema: z.ZodType< > = z.object({ integrationConfigurationId: z.string(), invoiceId: z.string(), - RequestBody: z.lazy(() => UpdateInvoiceRequestBody$inboundSchema), + RequestBody: z.lazy(() => UpdateInvoiceRequestBody1$inboundSchema), }).transform((v) => { return remap$(v, { "RequestBody": "requestBody", @@ -132,7 +183,7 @@ export const UpdateInvoiceRequest$inboundSchema: z.ZodType< export type UpdateInvoiceRequest$Outbound = { integrationConfigurationId: string; invoiceId: string; - RequestBody: UpdateInvoiceRequestBody$Outbound; + RequestBody: UpdateInvoiceRequestBody1$Outbound; }; /** @internal */ @@ -143,7 +194,7 @@ export const UpdateInvoiceRequest$outboundSchema: z.ZodType< > = z.object({ integrationConfigurationId: z.string(), invoiceId: z.string(), - requestBody: z.lazy(() => UpdateInvoiceRequestBody$outboundSchema), + requestBody: z.lazy(() => UpdateInvoiceRequestBody1$outboundSchema), }).transform((v) => { return remap$(v, { requestBody: "RequestBody", diff --git a/src/models/updateprojectdatacacheop.ts b/src/models/updateprojectdatacacheop.ts index 53ec4db3..f359831b 100644 --- a/src/models/updateprojectdatacacheop.ts +++ b/src/models/updateprojectdatacacheop.ts @@ -120,11 +120,29 @@ export type UpdateProjectDataCacheDataCache = { unlimited?: boolean | undefined; }; +/** + * Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + */ export type DeploymentExpiration = { + /** + * Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. + */ expirationDays?: number | undefined; + /** + * Number of days to keep production deployments before soft deletion. + */ expirationDaysProduction?: number | undefined; + /** + * Number of days to keep canceled deployments before soft deletion. + */ expirationDaysCanceled?: number | undefined; + /** + * Number of days to keep errored deployments before soft deletion. + */ expirationDaysErrored?: number | undefined; + /** + * Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. + */ deploymentsToKeep?: number | undefined; }; @@ -1800,6 +1818,9 @@ export type UpdateProjectDataCacheResponseBody = { customerSupportCodeVisibility?: boolean | undefined; crons?: Crons | undefined; dataCache?: UpdateProjectDataCacheDataCache | undefined; + /** + * Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + */ deploymentExpiration?: DeploymentExpiration | null | undefined; devCommand?: string | null | undefined; directoryListing: boolean; diff --git a/src/models/updateprojectop.ts b/src/models/updateprojectop.ts index aac03ecc..70f44ee7 100644 --- a/src/models/updateprojectop.ts +++ b/src/models/updateprojectop.ts @@ -522,11 +522,29 @@ export type UpdateProjectDataCache = { unlimited?: boolean | undefined; }; +/** + * Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + */ export type UpdateProjectDeploymentExpiration = { + /** + * Number of days to keep non-production deployments (mostly preview deployments) before soft deletion. + */ expirationDays?: number | undefined; + /** + * Number of days to keep production deployments before soft deletion. + */ expirationDaysProduction?: number | undefined; + /** + * Number of days to keep canceled deployments before soft deletion. + */ expirationDaysCanceled?: number | undefined; + /** + * Number of days to keep errored deployments before soft deletion. + */ expirationDaysErrored?: number | undefined; + /** + * Minimum number of production deployments to keep for this project, even if they are over the production expiration limit. + */ deploymentsToKeep?: number | undefined; }; @@ -2195,6 +2213,9 @@ export type UpdateProjectResponseBody = { customerSupportCodeVisibility?: boolean | undefined; crons?: UpdateProjectCrons | undefined; dataCache?: UpdateProjectDataCache | undefined; + /** + * Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects. + */ deploymentExpiration?: UpdateProjectDeploymentExpiration | null | undefined; devCommand?: string | null | undefined; directoryListing: boolean; diff --git a/src/models/userevent.ts b/src/models/userevent.ts index 13a9f164..7bd15838 100644 --- a/src/models/userevent.ts +++ b/src/models/userevent.ts @@ -163,7 +163,7 @@ export type AuthMethod = ClosedEnum; /** * The payload of the event, if requested. */ -export type OneHundredAndFiftyEight = { +export type OneHundredAndSixtyOne = { grantType: GrantType; appName: string; /** @@ -178,12 +178,12 @@ export type OneHundredAndFiftyEight = { authMethod: AuthMethod; }; -export type UserEventPayload157Team = { +export type UserEventPayload160Team = { id: string; name: string; }; -export type UserEventPayload157Configuration = { +export type UserEventPayload160Configuration = { id: string; name?: string | undefined; }; @@ -196,19 +196,19 @@ export type UserEventPayloadPeering = { /** * The payload of the event, if requested. */ -export type OneHundredAndFiftySeven = { - team: UserEventPayload157Team; - configuration: UserEventPayload157Configuration; +export type OneHundredAndSixty = { + team: UserEventPayload160Team; + configuration: UserEventPayload160Configuration; peering: UserEventPayloadPeering; newName?: string | undefined; }; -export type UserEventPayload156Team = { +export type UserEventPayload159Team = { id: string; name: string; }; -export type UserEventPayload156Configuration = { +export type UserEventPayload159Configuration = { id: string; name?: string | undefined; }; @@ -221,18 +221,18 @@ export type PayloadPeering = { /** * The payload of the event, if requested. */ -export type OneHundredAndFiftySix = { - team: UserEventPayload156Team; - configuration: UserEventPayload156Configuration; +export type OneHundredAndFiftyNine = { + team: UserEventPayload159Team; + configuration: UserEventPayload159Configuration; peering: PayloadPeering; }; -export type UserEventPayload155Team = { +export type UserEventPayload158Team = { id: string; name: string; }; -export type UserEventPayload155Configuration = { +export type UserEventPayload158Configuration = { id: string; name?: string | undefined; }; @@ -247,16 +247,33 @@ export type Peering = { /** * The payload of the event, if requested. */ -export type OneHundredAndFiftyFive = { - team: UserEventPayload155Team; - configuration: UserEventPayload155Configuration; +export type OneHundredAndFiftyEight = { + team: UserEventPayload158Team; + configuration: UserEventPayload158Configuration; peering: Peering; }; /** * The payload of the event, if requested. */ -export type OneHundredAndFiftyFour = { +export type OneHundredAndFiftySeven = { + appName: string; + appId?: string | undefined; + installationId?: string | undefined; +}; + +/** + * The payload of the event, if requested. + */ +export type OneHundredAndFiftySix = { + appName: string; + appId?: string | undefined; +}; + +/** + * The payload of the event, if requested. + */ +export type OneHundredAndFiftyFive = { appName: string; appId: string; }; @@ -264,14 +281,14 @@ export type OneHundredAndFiftyFour = { /** * The payload of the event, if requested. */ -export type OneHundredAndFiftyThree = { +export type OneHundredAndFiftyFour = { appName: string; }; /** * The payload of the event, if requested. */ -export type OneHundredAndFiftyTwo = { +export type OneHundredAndFiftyThree = { appName: string; nextScopes: Array; }; @@ -279,7 +296,7 @@ export type OneHundredAndFiftyTwo = { /** * The payload of the event, if requested. */ -export type OneHundredAndFiftyOne = { +export type OneHundredAndFiftyTwo = { appName: string; scopes: Array; }; @@ -287,7 +304,7 @@ export type OneHundredAndFiftyOne = { /** * The payload of the event, if requested. */ -export type OneHundredAndFifty = { +export type OneHundredAndFiftyOne = { oldName: string; newName: string; }; @@ -301,7 +318,7 @@ export type Tier = ClosedEnum; /** * The payload of the event, if requested. */ -export type OneHundredAndFortyNine = { +export type OneHundredAndFifty = { tier: Tier; }; @@ -324,7 +341,7 @@ export type PrevProjectWebAnalytics = { /** * The payload of the event, if requested. */ -export type OneHundredAndFortyEight = { +export type OneHundredAndFortyNine = { projectId: string; projectName: string; projectWebAnalytics?: ProjectWebAnalytics | undefined; @@ -366,7 +383,7 @@ export type Microfrontends1 = { export type Microfrontends = Microfrontends1 | Microfrontends2; -export type UserEventPayload147Project = { +export type UserEventPayload148Project = { id: string; name: string; microfrontends?: Microfrontends1 | Microfrontends2 | undefined; @@ -409,7 +426,7 @@ export type PayloadMicrofrontends = | UserEventMicrofrontends1 | UserEventMicrofrontends2; -export type UserEventPayload147PrevProject = { +export type UserEventPayload148PrevProject = { microfrontends?: | UserEventMicrofrontends1 | UserEventMicrofrontends2 @@ -417,7 +434,7 @@ export type UserEventPayload147PrevProject = { }; export type PayloadPrev = { - project: UserEventPayload147PrevProject; + project: UserEventPayload148PrevProject; }; export type PayloadGroup = { @@ -429,13 +446,13 @@ export type PayloadGroup = { /** * The payload of the event, if requested. */ -export type OneHundredAndFortySeven = { - project: UserEventPayload147Project; +export type OneHundredAndFortyEight = { + project: UserEventPayload148Project; prev: PayloadPrev; group: PayloadGroup; }; -export type UserEventPayload146Project = { +export type UserEventPayload147Project = { id: string; name: string; }; @@ -449,8 +466,8 @@ export type Group = { /** * The payload of the event, if requested. */ -export type OneHundredAndFortySix = { - project: UserEventPayload146Project; +export type OneHundredAndFortySeven = { + project: UserEventPayload147Project; group: Group; }; @@ -463,7 +480,7 @@ export type Prev = { /** * The payload of the event, if requested. */ -export type OneHundredAndFortyFive = { +export type OneHundredAndFortySix = { id: string; slug?: string | undefined; name?: string | undefined; @@ -474,31 +491,31 @@ export type OneHundredAndFortyFive = { /** * The payload of the event, if requested. */ -export type OneHundredAndFortyFour = { +export type OneHundredAndFortyFive = { id: string; slug: string; name: string; }; -export const UserEventPayload143Action = { +export const UserEventPayload144Action = { Enable: "enable", Disable: "disable", } as const; -export type UserEventPayload143Action = ClosedEnum< - typeof UserEventPayload143Action +export type UserEventPayload144Action = ClosedEnum< + typeof UserEventPayload144Action >; /** * The payload of the event, if requested. */ -export type OneHundredAndFortyThree = { - action: UserEventPayload143Action; +export type OneHundredAndFortyFour = { + action: UserEventPayload144Action; }; /** * The payload of the event, if requested. */ -export type OneHundredAndFortyTwo = { +export type OneHundredAndFortyThree = { edgeConfigId: string; edgeConfigSlug: string; /** @@ -510,7 +527,7 @@ export type OneHundredAndFortyTwo = { /** * The payload of the event, if requested. */ -export type OneHundredAndFortyOne = { +export type OneHundredAndFortyTwo = { edgeConfigId: string; edgeConfigSlug: string; edgeConfigTokenId: string; @@ -520,12 +537,20 @@ export type OneHundredAndFortyOne = { /** * The payload of the event, if requested. */ -export type OneHundredAndForty = { +export type OneHundredAndFortyOne = { edgeConfigId: string; edgeConfigSlug: string; edgeConfigDigest: string; }; +/** + * The payload of the event, if requested. + */ +export type OneHundredAndForty = { + projectName: string; + urls: Array; +}; + /** * The payload of the event, if requested. */ @@ -890,6 +915,9 @@ export type OneHundredAndTwelve = { role?: string | undefined; uid: string; origin?: string | undefined; + teamRoles?: Array | undefined; + teamPermissions?: Array | undefined; + entitlements?: Array | undefined; }; export type DeletedUser = { @@ -2284,6 +2312,7 @@ export const PayloadTeamRoles = { export type PayloadTeamRoles = ClosedEnum; export const PayloadTeamPermissions = { + IntegrationManager: "IntegrationManager", CreateProject: "CreateProject", FullProductionDeployment: "FullProductionDeployment", UsageViewer: "UsageViewer", @@ -4313,12 +4342,12 @@ export type Payload = | SixtyFour | SixtySeven | OneHundredAndThirtyOne - | OneHundredAndFiftyEight + | OneHundredAndSixtyOne | Payload2 | FortyFive | SixtyEight | OneHundredAndOne - | OneHundredAndFortyOne + | OneHundredAndFortyTwo | Twelve | Sixteen | TwentyNine @@ -4342,13 +4371,13 @@ export type Payload = | OneHundredAndNine | OneHundredAndThirtyThree | OneHundredAndThirtyFour - | OneHundredAndForty - | OneHundredAndFortyTwo - | OneHundredAndFortyFour - | OneHundredAndFortySeven - | OneHundredAndFiftyFive - | OneHundredAndFiftySix - | OneHundredAndFiftySeven + | OneHundredAndFortyOne + | OneHundredAndFortyThree + | OneHundredAndFortyFive + | OneHundredAndFortyEight + | OneHundredAndFiftyEight + | OneHundredAndFiftyNine + | OneHundredAndSixty | Four | Five | Six @@ -4388,13 +4417,14 @@ export type Payload = | OneHundredAndThirtySix | OneHundredAndThirtySeven | OneHundredAndThirtyNine - | OneHundredAndFortyFive + | OneHundredAndForty | OneHundredAndFortySix - | OneHundredAndFortyEight - | OneHundredAndFifty + | OneHundredAndFortySeven + | OneHundredAndFortyNine | OneHundredAndFiftyOne | OneHundredAndFiftyTwo - | OneHundredAndFiftyFour + | OneHundredAndFiftyThree + | OneHundredAndFiftyFive | Three | Fifteen | Twenty @@ -4436,9 +4466,11 @@ export type Payload = | OneHundredAndTwentyNine | OneHundredAndThirty | OneHundredAndThirtyEight - | OneHundredAndFortyThree - | OneHundredAndFortyNine - | OneHundredAndFiftyThree + | OneHundredAndFortyFour + | OneHundredAndFifty + | OneHundredAndFiftyFour + | OneHundredAndFiftySix + | OneHundredAndFiftySeven | Payload1 | Seven | Eight @@ -4514,12 +4546,12 @@ export type UserEvent = { | SixtyFour | SixtySeven | OneHundredAndThirtyOne - | OneHundredAndFiftyEight + | OneHundredAndSixtyOne | Payload2 | FortyFive | SixtyEight | OneHundredAndOne - | OneHundredAndFortyOne + | OneHundredAndFortyTwo | Twelve | Sixteen | TwentyNine @@ -4543,13 +4575,13 @@ export type UserEvent = { | OneHundredAndNine | OneHundredAndThirtyThree | OneHundredAndThirtyFour - | OneHundredAndForty - | OneHundredAndFortyTwo - | OneHundredAndFortyFour - | OneHundredAndFortySeven - | OneHundredAndFiftyFive - | OneHundredAndFiftySix - | OneHundredAndFiftySeven + | OneHundredAndFortyOne + | OneHundredAndFortyThree + | OneHundredAndFortyFive + | OneHundredAndFortyEight + | OneHundredAndFiftyEight + | OneHundredAndFiftyNine + | OneHundredAndSixty | Four | Five | Six @@ -4589,13 +4621,14 @@ export type UserEvent = { | OneHundredAndThirtySix | OneHundredAndThirtySeven | OneHundredAndThirtyNine - | OneHundredAndFortyFive + | OneHundredAndForty | OneHundredAndFortySix - | OneHundredAndFortyEight - | OneHundredAndFifty + | OneHundredAndFortySeven + | OneHundredAndFortyNine | OneHundredAndFiftyOne | OneHundredAndFiftyTwo - | OneHundredAndFiftyFour + | OneHundredAndFiftyThree + | OneHundredAndFiftyFive | Three | Fifteen | Twenty @@ -4637,9 +4670,11 @@ export type UserEvent = { | OneHundredAndTwentyNine | OneHundredAndThirty | OneHundredAndThirtyEight - | OneHundredAndFortyThree - | OneHundredAndFortyNine - | OneHundredAndFiftyThree + | OneHundredAndFortyFour + | OneHundredAndFifty + | OneHundredAndFiftyFour + | OneHundredAndFiftySix + | OneHundredAndFiftySeven | Payload1 | Seven | Eight @@ -5227,8 +5262,8 @@ export namespace AuthMethod$ { } /** @internal */ -export const OneHundredAndFiftyEight$inboundSchema: z.ZodType< - OneHundredAndFiftyEight, +export const OneHundredAndSixtyOne$inboundSchema: z.ZodType< + OneHundredAndSixtyOne, z.ZodTypeDef, unknown > = z.object({ @@ -5241,7 +5276,7 @@ export const OneHundredAndFiftyEight$inboundSchema: z.ZodType< }); /** @internal */ -export type OneHundredAndFiftyEight$Outbound = { +export type OneHundredAndSixtyOne$Outbound = { grantType: string; appName: string; atTTL: number; @@ -5251,10 +5286,10 @@ export type OneHundredAndFiftyEight$Outbound = { }; /** @internal */ -export const OneHundredAndFiftyEight$outboundSchema: z.ZodType< - OneHundredAndFiftyEight$Outbound, +export const OneHundredAndSixtyOne$outboundSchema: z.ZodType< + OneHundredAndSixtyOne$Outbound, z.ZodTypeDef, - OneHundredAndFiftyEight + OneHundredAndSixtyOne > = z.object({ grantType: GrantType$outboundSchema, appName: z.string(), @@ -5268,36 +5303,36 @@ export const OneHundredAndFiftyEight$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFiftyEight$ { - /** @deprecated use `OneHundredAndFiftyEight$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFiftyEight$inboundSchema; - /** @deprecated use `OneHundredAndFiftyEight$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFiftyEight$outboundSchema; - /** @deprecated use `OneHundredAndFiftyEight$Outbound` instead. */ - export type Outbound = OneHundredAndFiftyEight$Outbound; +export namespace OneHundredAndSixtyOne$ { + /** @deprecated use `OneHundredAndSixtyOne$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndSixtyOne$inboundSchema; + /** @deprecated use `OneHundredAndSixtyOne$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndSixtyOne$outboundSchema; + /** @deprecated use `OneHundredAndSixtyOne$Outbound` instead. */ + export type Outbound = OneHundredAndSixtyOne$Outbound; } -export function oneHundredAndFiftyEightToJSON( - oneHundredAndFiftyEight: OneHundredAndFiftyEight, +export function oneHundredAndSixtyOneToJSON( + oneHundredAndSixtyOne: OneHundredAndSixtyOne, ): string { return JSON.stringify( - OneHundredAndFiftyEight$outboundSchema.parse(oneHundredAndFiftyEight), + OneHundredAndSixtyOne$outboundSchema.parse(oneHundredAndSixtyOne), ); } -export function oneHundredAndFiftyEightFromJSON( +export function oneHundredAndSixtyOneFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OneHundredAndFiftyEight$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFiftyEight' from JSON`, + (x) => OneHundredAndSixtyOne$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndSixtyOne' from JSON`, ); } /** @internal */ -export const UserEventPayload157Team$inboundSchema: z.ZodType< - UserEventPayload157Team, +export const UserEventPayload160Team$inboundSchema: z.ZodType< + UserEventPayload160Team, z.ZodTypeDef, unknown > = z.object({ @@ -5306,16 +5341,16 @@ export const UserEventPayload157Team$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload157Team$Outbound = { +export type UserEventPayload160Team$Outbound = { id: string; name: string; }; /** @internal */ -export const UserEventPayload157Team$outboundSchema: z.ZodType< - UserEventPayload157Team$Outbound, +export const UserEventPayload160Team$outboundSchema: z.ZodType< + UserEventPayload160Team$Outbound, z.ZodTypeDef, - UserEventPayload157Team + UserEventPayload160Team > = z.object({ id: z.string(), name: z.string(), @@ -5325,36 +5360,36 @@ export const UserEventPayload157Team$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload157Team$ { - /** @deprecated use `UserEventPayload157Team$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload157Team$inboundSchema; - /** @deprecated use `UserEventPayload157Team$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload157Team$outboundSchema; - /** @deprecated use `UserEventPayload157Team$Outbound` instead. */ - export type Outbound = UserEventPayload157Team$Outbound; +export namespace UserEventPayload160Team$ { + /** @deprecated use `UserEventPayload160Team$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload160Team$inboundSchema; + /** @deprecated use `UserEventPayload160Team$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload160Team$outboundSchema; + /** @deprecated use `UserEventPayload160Team$Outbound` instead. */ + export type Outbound = UserEventPayload160Team$Outbound; } -export function userEventPayload157TeamToJSON( - userEventPayload157Team: UserEventPayload157Team, +export function userEventPayload160TeamToJSON( + userEventPayload160Team: UserEventPayload160Team, ): string { return JSON.stringify( - UserEventPayload157Team$outboundSchema.parse(userEventPayload157Team), + UserEventPayload160Team$outboundSchema.parse(userEventPayload160Team), ); } -export function userEventPayload157TeamFromJSON( +export function userEventPayload160TeamFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload157Team$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload157Team' from JSON`, + (x) => UserEventPayload160Team$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload160Team' from JSON`, ); } /** @internal */ -export const UserEventPayload157Configuration$inboundSchema: z.ZodType< - UserEventPayload157Configuration, +export const UserEventPayload160Configuration$inboundSchema: z.ZodType< + UserEventPayload160Configuration, z.ZodTypeDef, unknown > = z.object({ @@ -5363,16 +5398,16 @@ export const UserEventPayload157Configuration$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload157Configuration$Outbound = { +export type UserEventPayload160Configuration$Outbound = { id: string; name?: string | undefined; }; /** @internal */ -export const UserEventPayload157Configuration$outboundSchema: z.ZodType< - UserEventPayload157Configuration$Outbound, +export const UserEventPayload160Configuration$outboundSchema: z.ZodType< + UserEventPayload160Configuration$Outbound, z.ZodTypeDef, - UserEventPayload157Configuration + UserEventPayload160Configuration > = z.object({ id: z.string(), name: z.string().optional(), @@ -5382,32 +5417,32 @@ export const UserEventPayload157Configuration$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload157Configuration$ { - /** @deprecated use `UserEventPayload157Configuration$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload157Configuration$inboundSchema; - /** @deprecated use `UserEventPayload157Configuration$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload157Configuration$outboundSchema; - /** @deprecated use `UserEventPayload157Configuration$Outbound` instead. */ - export type Outbound = UserEventPayload157Configuration$Outbound; +export namespace UserEventPayload160Configuration$ { + /** @deprecated use `UserEventPayload160Configuration$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload160Configuration$inboundSchema; + /** @deprecated use `UserEventPayload160Configuration$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload160Configuration$outboundSchema; + /** @deprecated use `UserEventPayload160Configuration$Outbound` instead. */ + export type Outbound = UserEventPayload160Configuration$Outbound; } -export function userEventPayload157ConfigurationToJSON( - userEventPayload157Configuration: UserEventPayload157Configuration, +export function userEventPayload160ConfigurationToJSON( + userEventPayload160Configuration: UserEventPayload160Configuration, ): string { return JSON.stringify( - UserEventPayload157Configuration$outboundSchema.parse( - userEventPayload157Configuration, + UserEventPayload160Configuration$outboundSchema.parse( + userEventPayload160Configuration, ), ); } -export function userEventPayload157ConfigurationFromJSON( +export function userEventPayload160ConfigurationFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload157Configuration$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload157Configuration' from JSON`, + (x) => UserEventPayload160Configuration$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload160Configuration' from JSON`, ); } @@ -5469,33 +5504,33 @@ export function userEventPayloadPeeringFromJSON( } /** @internal */ -export const OneHundredAndFiftySeven$inboundSchema: z.ZodType< - OneHundredAndFiftySeven, +export const OneHundredAndSixty$inboundSchema: z.ZodType< + OneHundredAndSixty, z.ZodTypeDef, unknown > = z.object({ - team: z.lazy(() => UserEventPayload157Team$inboundSchema), - configuration: z.lazy(() => UserEventPayload157Configuration$inboundSchema), + team: z.lazy(() => UserEventPayload160Team$inboundSchema), + configuration: z.lazy(() => UserEventPayload160Configuration$inboundSchema), peering: z.lazy(() => UserEventPayloadPeering$inboundSchema), newName: z.string().optional(), }); /** @internal */ -export type OneHundredAndFiftySeven$Outbound = { - team: UserEventPayload157Team$Outbound; - configuration: UserEventPayload157Configuration$Outbound; +export type OneHundredAndSixty$Outbound = { + team: UserEventPayload160Team$Outbound; + configuration: UserEventPayload160Configuration$Outbound; peering: UserEventPayloadPeering$Outbound; newName?: string | undefined; }; /** @internal */ -export const OneHundredAndFiftySeven$outboundSchema: z.ZodType< - OneHundredAndFiftySeven$Outbound, +export const OneHundredAndSixty$outboundSchema: z.ZodType< + OneHundredAndSixty$Outbound, z.ZodTypeDef, - OneHundredAndFiftySeven + OneHundredAndSixty > = z.object({ - team: z.lazy(() => UserEventPayload157Team$outboundSchema), - configuration: z.lazy(() => UserEventPayload157Configuration$outboundSchema), + team: z.lazy(() => UserEventPayload160Team$outboundSchema), + configuration: z.lazy(() => UserEventPayload160Configuration$outboundSchema), peering: z.lazy(() => UserEventPayloadPeering$outboundSchema), newName: z.string().optional(), }); @@ -5504,36 +5539,36 @@ export const OneHundredAndFiftySeven$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFiftySeven$ { - /** @deprecated use `OneHundredAndFiftySeven$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFiftySeven$inboundSchema; - /** @deprecated use `OneHundredAndFiftySeven$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFiftySeven$outboundSchema; - /** @deprecated use `OneHundredAndFiftySeven$Outbound` instead. */ - export type Outbound = OneHundredAndFiftySeven$Outbound; +export namespace OneHundredAndSixty$ { + /** @deprecated use `OneHundredAndSixty$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndSixty$inboundSchema; + /** @deprecated use `OneHundredAndSixty$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndSixty$outboundSchema; + /** @deprecated use `OneHundredAndSixty$Outbound` instead. */ + export type Outbound = OneHundredAndSixty$Outbound; } -export function oneHundredAndFiftySevenToJSON( - oneHundredAndFiftySeven: OneHundredAndFiftySeven, +export function oneHundredAndSixtyToJSON( + oneHundredAndSixty: OneHundredAndSixty, ): string { return JSON.stringify( - OneHundredAndFiftySeven$outboundSchema.parse(oneHundredAndFiftySeven), + OneHundredAndSixty$outboundSchema.parse(oneHundredAndSixty), ); } -export function oneHundredAndFiftySevenFromJSON( +export function oneHundredAndSixtyFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OneHundredAndFiftySeven$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFiftySeven' from JSON`, + (x) => OneHundredAndSixty$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndSixty' from JSON`, ); } /** @internal */ -export const UserEventPayload156Team$inboundSchema: z.ZodType< - UserEventPayload156Team, +export const UserEventPayload159Team$inboundSchema: z.ZodType< + UserEventPayload159Team, z.ZodTypeDef, unknown > = z.object({ @@ -5542,16 +5577,16 @@ export const UserEventPayload156Team$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload156Team$Outbound = { +export type UserEventPayload159Team$Outbound = { id: string; name: string; }; /** @internal */ -export const UserEventPayload156Team$outboundSchema: z.ZodType< - UserEventPayload156Team$Outbound, +export const UserEventPayload159Team$outboundSchema: z.ZodType< + UserEventPayload159Team$Outbound, z.ZodTypeDef, - UserEventPayload156Team + UserEventPayload159Team > = z.object({ id: z.string(), name: z.string(), @@ -5561,36 +5596,36 @@ export const UserEventPayload156Team$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload156Team$ { - /** @deprecated use `UserEventPayload156Team$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload156Team$inboundSchema; - /** @deprecated use `UserEventPayload156Team$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload156Team$outboundSchema; - /** @deprecated use `UserEventPayload156Team$Outbound` instead. */ - export type Outbound = UserEventPayload156Team$Outbound; +export namespace UserEventPayload159Team$ { + /** @deprecated use `UserEventPayload159Team$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload159Team$inboundSchema; + /** @deprecated use `UserEventPayload159Team$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload159Team$outboundSchema; + /** @deprecated use `UserEventPayload159Team$Outbound` instead. */ + export type Outbound = UserEventPayload159Team$Outbound; } -export function userEventPayload156TeamToJSON( - userEventPayload156Team: UserEventPayload156Team, +export function userEventPayload159TeamToJSON( + userEventPayload159Team: UserEventPayload159Team, ): string { return JSON.stringify( - UserEventPayload156Team$outboundSchema.parse(userEventPayload156Team), + UserEventPayload159Team$outboundSchema.parse(userEventPayload159Team), ); } -export function userEventPayload156TeamFromJSON( +export function userEventPayload159TeamFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload156Team$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload156Team' from JSON`, + (x) => UserEventPayload159Team$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload159Team' from JSON`, ); } /** @internal */ -export const UserEventPayload156Configuration$inboundSchema: z.ZodType< - UserEventPayload156Configuration, +export const UserEventPayload159Configuration$inboundSchema: z.ZodType< + UserEventPayload159Configuration, z.ZodTypeDef, unknown > = z.object({ @@ -5599,16 +5634,16 @@ export const UserEventPayload156Configuration$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload156Configuration$Outbound = { +export type UserEventPayload159Configuration$Outbound = { id: string; name?: string | undefined; }; /** @internal */ -export const UserEventPayload156Configuration$outboundSchema: z.ZodType< - UserEventPayload156Configuration$Outbound, +export const UserEventPayload159Configuration$outboundSchema: z.ZodType< + UserEventPayload159Configuration$Outbound, z.ZodTypeDef, - UserEventPayload156Configuration + UserEventPayload159Configuration > = z.object({ id: z.string(), name: z.string().optional(), @@ -5618,32 +5653,32 @@ export const UserEventPayload156Configuration$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload156Configuration$ { - /** @deprecated use `UserEventPayload156Configuration$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload156Configuration$inboundSchema; - /** @deprecated use `UserEventPayload156Configuration$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload156Configuration$outboundSchema; - /** @deprecated use `UserEventPayload156Configuration$Outbound` instead. */ - export type Outbound = UserEventPayload156Configuration$Outbound; +export namespace UserEventPayload159Configuration$ { + /** @deprecated use `UserEventPayload159Configuration$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload159Configuration$inboundSchema; + /** @deprecated use `UserEventPayload159Configuration$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload159Configuration$outboundSchema; + /** @deprecated use `UserEventPayload159Configuration$Outbound` instead. */ + export type Outbound = UserEventPayload159Configuration$Outbound; } -export function userEventPayload156ConfigurationToJSON( - userEventPayload156Configuration: UserEventPayload156Configuration, +export function userEventPayload159ConfigurationToJSON( + userEventPayload159Configuration: UserEventPayload159Configuration, ): string { return JSON.stringify( - UserEventPayload156Configuration$outboundSchema.parse( - userEventPayload156Configuration, + UserEventPayload159Configuration$outboundSchema.parse( + userEventPayload159Configuration, ), ); } -export function userEventPayload156ConfigurationFromJSON( +export function userEventPayload159ConfigurationFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload156Configuration$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload156Configuration' from JSON`, + (x) => UserEventPayload159Configuration$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload159Configuration' from JSON`, ); } @@ -5701,31 +5736,31 @@ export function payloadPeeringFromJSON( } /** @internal */ -export const OneHundredAndFiftySix$inboundSchema: z.ZodType< - OneHundredAndFiftySix, +export const OneHundredAndFiftyNine$inboundSchema: z.ZodType< + OneHundredAndFiftyNine, z.ZodTypeDef, unknown > = z.object({ - team: z.lazy(() => UserEventPayload156Team$inboundSchema), - configuration: z.lazy(() => UserEventPayload156Configuration$inboundSchema), + team: z.lazy(() => UserEventPayload159Team$inboundSchema), + configuration: z.lazy(() => UserEventPayload159Configuration$inboundSchema), peering: z.lazy(() => PayloadPeering$inboundSchema), }); /** @internal */ -export type OneHundredAndFiftySix$Outbound = { - team: UserEventPayload156Team$Outbound; - configuration: UserEventPayload156Configuration$Outbound; +export type OneHundredAndFiftyNine$Outbound = { + team: UserEventPayload159Team$Outbound; + configuration: UserEventPayload159Configuration$Outbound; peering: PayloadPeering$Outbound; }; /** @internal */ -export const OneHundredAndFiftySix$outboundSchema: z.ZodType< - OneHundredAndFiftySix$Outbound, +export const OneHundredAndFiftyNine$outboundSchema: z.ZodType< + OneHundredAndFiftyNine$Outbound, z.ZodTypeDef, - OneHundredAndFiftySix + OneHundredAndFiftyNine > = z.object({ - team: z.lazy(() => UserEventPayload156Team$outboundSchema), - configuration: z.lazy(() => UserEventPayload156Configuration$outboundSchema), + team: z.lazy(() => UserEventPayload159Team$outboundSchema), + configuration: z.lazy(() => UserEventPayload159Configuration$outboundSchema), peering: z.lazy(() => PayloadPeering$outboundSchema), }); @@ -5733,36 +5768,36 @@ export const OneHundredAndFiftySix$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFiftySix$ { - /** @deprecated use `OneHundredAndFiftySix$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFiftySix$inboundSchema; - /** @deprecated use `OneHundredAndFiftySix$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFiftySix$outboundSchema; - /** @deprecated use `OneHundredAndFiftySix$Outbound` instead. */ - export type Outbound = OneHundredAndFiftySix$Outbound; +export namespace OneHundredAndFiftyNine$ { + /** @deprecated use `OneHundredAndFiftyNine$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFiftyNine$inboundSchema; + /** @deprecated use `OneHundredAndFiftyNine$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFiftyNine$outboundSchema; + /** @deprecated use `OneHundredAndFiftyNine$Outbound` instead. */ + export type Outbound = OneHundredAndFiftyNine$Outbound; } -export function oneHundredAndFiftySixToJSON( - oneHundredAndFiftySix: OneHundredAndFiftySix, +export function oneHundredAndFiftyNineToJSON( + oneHundredAndFiftyNine: OneHundredAndFiftyNine, ): string { return JSON.stringify( - OneHundredAndFiftySix$outboundSchema.parse(oneHundredAndFiftySix), + OneHundredAndFiftyNine$outboundSchema.parse(oneHundredAndFiftyNine), ); } -export function oneHundredAndFiftySixFromJSON( +export function oneHundredAndFiftyNineFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OneHundredAndFiftySix$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFiftySix' from JSON`, + (x) => OneHundredAndFiftyNine$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFiftyNine' from JSON`, ); } /** @internal */ -export const UserEventPayload155Team$inboundSchema: z.ZodType< - UserEventPayload155Team, +export const UserEventPayload158Team$inboundSchema: z.ZodType< + UserEventPayload158Team, z.ZodTypeDef, unknown > = z.object({ @@ -5771,16 +5806,16 @@ export const UserEventPayload155Team$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload155Team$Outbound = { +export type UserEventPayload158Team$Outbound = { id: string; name: string; }; /** @internal */ -export const UserEventPayload155Team$outboundSchema: z.ZodType< - UserEventPayload155Team$Outbound, +export const UserEventPayload158Team$outboundSchema: z.ZodType< + UserEventPayload158Team$Outbound, z.ZodTypeDef, - UserEventPayload155Team + UserEventPayload158Team > = z.object({ id: z.string(), name: z.string(), @@ -5790,36 +5825,36 @@ export const UserEventPayload155Team$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload155Team$ { - /** @deprecated use `UserEventPayload155Team$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload155Team$inboundSchema; - /** @deprecated use `UserEventPayload155Team$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload155Team$outboundSchema; - /** @deprecated use `UserEventPayload155Team$Outbound` instead. */ - export type Outbound = UserEventPayload155Team$Outbound; +export namespace UserEventPayload158Team$ { + /** @deprecated use `UserEventPayload158Team$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload158Team$inboundSchema; + /** @deprecated use `UserEventPayload158Team$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload158Team$outboundSchema; + /** @deprecated use `UserEventPayload158Team$Outbound` instead. */ + export type Outbound = UserEventPayload158Team$Outbound; } -export function userEventPayload155TeamToJSON( - userEventPayload155Team: UserEventPayload155Team, +export function userEventPayload158TeamToJSON( + userEventPayload158Team: UserEventPayload158Team, ): string { return JSON.stringify( - UserEventPayload155Team$outboundSchema.parse(userEventPayload155Team), + UserEventPayload158Team$outboundSchema.parse(userEventPayload158Team), ); } -export function userEventPayload155TeamFromJSON( +export function userEventPayload158TeamFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload155Team$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload155Team' from JSON`, + (x) => UserEventPayload158Team$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload158Team' from JSON`, ); } /** @internal */ -export const UserEventPayload155Configuration$inboundSchema: z.ZodType< - UserEventPayload155Configuration, +export const UserEventPayload158Configuration$inboundSchema: z.ZodType< + UserEventPayload158Configuration, z.ZodTypeDef, unknown > = z.object({ @@ -5828,16 +5863,16 @@ export const UserEventPayload155Configuration$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload155Configuration$Outbound = { +export type UserEventPayload158Configuration$Outbound = { id: string; name?: string | undefined; }; /** @internal */ -export const UserEventPayload155Configuration$outboundSchema: z.ZodType< - UserEventPayload155Configuration$Outbound, +export const UserEventPayload158Configuration$outboundSchema: z.ZodType< + UserEventPayload158Configuration$Outbound, z.ZodTypeDef, - UserEventPayload155Configuration + UserEventPayload158Configuration > = z.object({ id: z.string(), name: z.string().optional(), @@ -5847,32 +5882,32 @@ export const UserEventPayload155Configuration$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload155Configuration$ { - /** @deprecated use `UserEventPayload155Configuration$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload155Configuration$inboundSchema; - /** @deprecated use `UserEventPayload155Configuration$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload155Configuration$outboundSchema; - /** @deprecated use `UserEventPayload155Configuration$Outbound` instead. */ - export type Outbound = UserEventPayload155Configuration$Outbound; +export namespace UserEventPayload158Configuration$ { + /** @deprecated use `UserEventPayload158Configuration$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload158Configuration$inboundSchema; + /** @deprecated use `UserEventPayload158Configuration$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload158Configuration$outboundSchema; + /** @deprecated use `UserEventPayload158Configuration$Outbound` instead. */ + export type Outbound = UserEventPayload158Configuration$Outbound; } -export function userEventPayload155ConfigurationToJSON( - userEventPayload155Configuration: UserEventPayload155Configuration, +export function userEventPayload158ConfigurationToJSON( + userEventPayload158Configuration: UserEventPayload158Configuration, ): string { return JSON.stringify( - UserEventPayload155Configuration$outboundSchema.parse( - userEventPayload155Configuration, + UserEventPayload158Configuration$outboundSchema.parse( + userEventPayload158Configuration, ), ); } -export function userEventPayload155ConfigurationFromJSON( +export function userEventPayload158ConfigurationFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload155Configuration$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload155Configuration' from JSON`, + (x) => UserEventPayload158Configuration$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload158Configuration' from JSON`, ); } @@ -5933,31 +5968,31 @@ export function peeringFromJSON( } /** @internal */ -export const OneHundredAndFiftyFive$inboundSchema: z.ZodType< - OneHundredAndFiftyFive, +export const OneHundredAndFiftyEight$inboundSchema: z.ZodType< + OneHundredAndFiftyEight, z.ZodTypeDef, unknown > = z.object({ - team: z.lazy(() => UserEventPayload155Team$inboundSchema), - configuration: z.lazy(() => UserEventPayload155Configuration$inboundSchema), + team: z.lazy(() => UserEventPayload158Team$inboundSchema), + configuration: z.lazy(() => UserEventPayload158Configuration$inboundSchema), peering: z.lazy(() => Peering$inboundSchema), }); /** @internal */ -export type OneHundredAndFiftyFive$Outbound = { - team: UserEventPayload155Team$Outbound; - configuration: UserEventPayload155Configuration$Outbound; +export type OneHundredAndFiftyEight$Outbound = { + team: UserEventPayload158Team$Outbound; + configuration: UserEventPayload158Configuration$Outbound; peering: Peering$Outbound; }; /** @internal */ -export const OneHundredAndFiftyFive$outboundSchema: z.ZodType< - OneHundredAndFiftyFive$Outbound, +export const OneHundredAndFiftyEight$outboundSchema: z.ZodType< + OneHundredAndFiftyEight$Outbound, z.ZodTypeDef, - OneHundredAndFiftyFive + OneHundredAndFiftyEight > = z.object({ - team: z.lazy(() => UserEventPayload155Team$outboundSchema), - configuration: z.lazy(() => UserEventPayload155Configuration$outboundSchema), + team: z.lazy(() => UserEventPayload158Team$outboundSchema), + configuration: z.lazy(() => UserEventPayload158Configuration$outboundSchema), peering: z.lazy(() => Peering$outboundSchema), }); @@ -5965,70 +6000,241 @@ export const OneHundredAndFiftyFive$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFiftyFive$ { - /** @deprecated use `OneHundredAndFiftyFive$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFiftyFive$inboundSchema; - /** @deprecated use `OneHundredAndFiftyFive$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFiftyFive$outboundSchema; - /** @deprecated use `OneHundredAndFiftyFive$Outbound` instead. */ - export type Outbound = OneHundredAndFiftyFive$Outbound; +export namespace OneHundredAndFiftyEight$ { + /** @deprecated use `OneHundredAndFiftyEight$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFiftyEight$inboundSchema; + /** @deprecated use `OneHundredAndFiftyEight$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFiftyEight$outboundSchema; + /** @deprecated use `OneHundredAndFiftyEight$Outbound` instead. */ + export type Outbound = OneHundredAndFiftyEight$Outbound; } -export function oneHundredAndFiftyFiveToJSON( - oneHundredAndFiftyFive: OneHundredAndFiftyFive, +export function oneHundredAndFiftyEightToJSON( + oneHundredAndFiftyEight: OneHundredAndFiftyEight, ): string { return JSON.stringify( - OneHundredAndFiftyFive$outboundSchema.parse(oneHundredAndFiftyFive), + OneHundredAndFiftyEight$outboundSchema.parse(oneHundredAndFiftyEight), ); } -export function oneHundredAndFiftyFiveFromJSON( +export function oneHundredAndFiftyEightFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OneHundredAndFiftyFive$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFiftyFive' from JSON`, + (x) => OneHundredAndFiftyEight$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFiftyEight' from JSON`, ); } /** @internal */ -export const OneHundredAndFiftyFour$inboundSchema: z.ZodType< - OneHundredAndFiftyFour, +export const OneHundredAndFiftySeven$inboundSchema: z.ZodType< + OneHundredAndFiftySeven, z.ZodTypeDef, unknown > = z.object({ appName: z.string(), - appId: z.string(), + appId: z.string().optional(), + installationId: z.string().optional(), }); /** @internal */ -export type OneHundredAndFiftyFour$Outbound = { +export type OneHundredAndFiftySeven$Outbound = { appName: string; - appId: string; + appId?: string | undefined; + installationId?: string | undefined; }; /** @internal */ -export const OneHundredAndFiftyFour$outboundSchema: z.ZodType< - OneHundredAndFiftyFour$Outbound, +export const OneHundredAndFiftySeven$outboundSchema: z.ZodType< + OneHundredAndFiftySeven$Outbound, z.ZodTypeDef, - OneHundredAndFiftyFour + OneHundredAndFiftySeven > = z.object({ appName: z.string(), - appId: z.string(), + appId: z.string().optional(), + installationId: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFiftyFour$ { - /** @deprecated use `OneHundredAndFiftyFour$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFiftyFour$inboundSchema; - /** @deprecated use `OneHundredAndFiftyFour$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFiftyFour$outboundSchema; - /** @deprecated use `OneHundredAndFiftyFour$Outbound` instead. */ - export type Outbound = OneHundredAndFiftyFour$Outbound; +export namespace OneHundredAndFiftySeven$ { + /** @deprecated use `OneHundredAndFiftySeven$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFiftySeven$inboundSchema; + /** @deprecated use `OneHundredAndFiftySeven$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFiftySeven$outboundSchema; + /** @deprecated use `OneHundredAndFiftySeven$Outbound` instead. */ + export type Outbound = OneHundredAndFiftySeven$Outbound; +} + +export function oneHundredAndFiftySevenToJSON( + oneHundredAndFiftySeven: OneHundredAndFiftySeven, +): string { + return JSON.stringify( + OneHundredAndFiftySeven$outboundSchema.parse(oneHundredAndFiftySeven), + ); +} + +export function oneHundredAndFiftySevenFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OneHundredAndFiftySeven$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFiftySeven' from JSON`, + ); +} + +/** @internal */ +export const OneHundredAndFiftySix$inboundSchema: z.ZodType< + OneHundredAndFiftySix, + z.ZodTypeDef, + unknown +> = z.object({ + appName: z.string(), + appId: z.string().optional(), +}); + +/** @internal */ +export type OneHundredAndFiftySix$Outbound = { + appName: string; + appId?: string | undefined; +}; + +/** @internal */ +export const OneHundredAndFiftySix$outboundSchema: z.ZodType< + OneHundredAndFiftySix$Outbound, + z.ZodTypeDef, + OneHundredAndFiftySix +> = z.object({ + appName: z.string(), + appId: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace OneHundredAndFiftySix$ { + /** @deprecated use `OneHundredAndFiftySix$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFiftySix$inboundSchema; + /** @deprecated use `OneHundredAndFiftySix$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFiftySix$outboundSchema; + /** @deprecated use `OneHundredAndFiftySix$Outbound` instead. */ + export type Outbound = OneHundredAndFiftySix$Outbound; +} + +export function oneHundredAndFiftySixToJSON( + oneHundredAndFiftySix: OneHundredAndFiftySix, +): string { + return JSON.stringify( + OneHundredAndFiftySix$outboundSchema.parse(oneHundredAndFiftySix), + ); +} + +export function oneHundredAndFiftySixFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OneHundredAndFiftySix$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFiftySix' from JSON`, + ); +} + +/** @internal */ +export const OneHundredAndFiftyFive$inboundSchema: z.ZodType< + OneHundredAndFiftyFive, + z.ZodTypeDef, + unknown +> = z.object({ + appName: z.string(), + appId: z.string(), +}); + +/** @internal */ +export type OneHundredAndFiftyFive$Outbound = { + appName: string; + appId: string; +}; + +/** @internal */ +export const OneHundredAndFiftyFive$outboundSchema: z.ZodType< + OneHundredAndFiftyFive$Outbound, + z.ZodTypeDef, + OneHundredAndFiftyFive +> = z.object({ + appName: z.string(), + appId: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace OneHundredAndFiftyFive$ { + /** @deprecated use `OneHundredAndFiftyFive$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFiftyFive$inboundSchema; + /** @deprecated use `OneHundredAndFiftyFive$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFiftyFive$outboundSchema; + /** @deprecated use `OneHundredAndFiftyFive$Outbound` instead. */ + export type Outbound = OneHundredAndFiftyFive$Outbound; +} + +export function oneHundredAndFiftyFiveToJSON( + oneHundredAndFiftyFive: OneHundredAndFiftyFive, +): string { + return JSON.stringify( + OneHundredAndFiftyFive$outboundSchema.parse(oneHundredAndFiftyFive), + ); +} + +export function oneHundredAndFiftyFiveFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OneHundredAndFiftyFive$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFiftyFive' from JSON`, + ); +} + +/** @internal */ +export const OneHundredAndFiftyFour$inboundSchema: z.ZodType< + OneHundredAndFiftyFour, + z.ZodTypeDef, + unknown +> = z.object({ + appName: z.string(), +}); + +/** @internal */ +export type OneHundredAndFiftyFour$Outbound = { + appName: string; +}; + +/** @internal */ +export const OneHundredAndFiftyFour$outboundSchema: z.ZodType< + OneHundredAndFiftyFour$Outbound, + z.ZodTypeDef, + OneHundredAndFiftyFour +> = z.object({ + appName: z.string(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace OneHundredAndFiftyFour$ { + /** @deprecated use `OneHundredAndFiftyFour$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFiftyFour$inboundSchema; + /** @deprecated use `OneHundredAndFiftyFour$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFiftyFour$outboundSchema; + /** @deprecated use `OneHundredAndFiftyFour$Outbound` instead. */ + export type Outbound = OneHundredAndFiftyFour$Outbound; } export function oneHundredAndFiftyFourToJSON( @@ -6056,11 +6262,13 @@ export const OneHundredAndFiftyThree$inboundSchema: z.ZodType< unknown > = z.object({ appName: z.string(), + nextScopes: z.array(z.string()), }); /** @internal */ export type OneHundredAndFiftyThree$Outbound = { appName: string; + nextScopes: Array; }; /** @internal */ @@ -6070,6 +6278,7 @@ export const OneHundredAndFiftyThree$outboundSchema: z.ZodType< OneHundredAndFiftyThree > = z.object({ appName: z.string(), + nextScopes: z.array(z.string()), }); /** @@ -6110,13 +6319,13 @@ export const OneHundredAndFiftyTwo$inboundSchema: z.ZodType< unknown > = z.object({ appName: z.string(), - nextScopes: z.array(z.string()), + scopes: z.array(z.string()), }); /** @internal */ export type OneHundredAndFiftyTwo$Outbound = { appName: string; - nextScopes: Array; + scopes: Array; }; /** @internal */ @@ -6126,7 +6335,7 @@ export const OneHundredAndFiftyTwo$outboundSchema: z.ZodType< OneHundredAndFiftyTwo > = z.object({ appName: z.string(), - nextScopes: z.array(z.string()), + scopes: z.array(z.string()), }); /** @@ -6166,14 +6375,14 @@ export const OneHundredAndFiftyOne$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - appName: z.string(), - scopes: z.array(z.string()), + oldName: z.string(), + newName: z.string(), }); /** @internal */ export type OneHundredAndFiftyOne$Outbound = { - appName: string; - scopes: Array; + oldName: string; + newName: string; }; /** @internal */ @@ -6182,8 +6391,8 @@ export const OneHundredAndFiftyOne$outboundSchema: z.ZodType< z.ZodTypeDef, OneHundredAndFiftyOne > = z.object({ - appName: z.string(), - scopes: z.array(z.string()), + oldName: z.string(), + newName: z.string(), }); /** @@ -6217,63 +6426,6 @@ export function oneHundredAndFiftyOneFromJSON( ); } -/** @internal */ -export const OneHundredAndFifty$inboundSchema: z.ZodType< - OneHundredAndFifty, - z.ZodTypeDef, - unknown -> = z.object({ - oldName: z.string(), - newName: z.string(), -}); - -/** @internal */ -export type OneHundredAndFifty$Outbound = { - oldName: string; - newName: string; -}; - -/** @internal */ -export const OneHundredAndFifty$outboundSchema: z.ZodType< - OneHundredAndFifty$Outbound, - z.ZodTypeDef, - OneHundredAndFifty -> = z.object({ - oldName: z.string(), - newName: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OneHundredAndFifty$ { - /** @deprecated use `OneHundredAndFifty$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFifty$inboundSchema; - /** @deprecated use `OneHundredAndFifty$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFifty$outboundSchema; - /** @deprecated use `OneHundredAndFifty$Outbound` instead. */ - export type Outbound = OneHundredAndFifty$Outbound; -} - -export function oneHundredAndFiftyToJSON( - oneHundredAndFifty: OneHundredAndFifty, -): string { - return JSON.stringify( - OneHundredAndFifty$outboundSchema.parse(oneHundredAndFifty), - ); -} - -export function oneHundredAndFiftyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OneHundredAndFifty$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFifty' from JSON`, - ); -} - /** @internal */ export const Tier$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Tier, @@ -6295,8 +6447,8 @@ export namespace Tier$ { } /** @internal */ -export const OneHundredAndFortyNine$inboundSchema: z.ZodType< - OneHundredAndFortyNine, +export const OneHundredAndFifty$inboundSchema: z.ZodType< + OneHundredAndFifty, z.ZodTypeDef, unknown > = z.object({ @@ -6304,15 +6456,15 @@ export const OneHundredAndFortyNine$inboundSchema: z.ZodType< }); /** @internal */ -export type OneHundredAndFortyNine$Outbound = { +export type OneHundredAndFifty$Outbound = { tier: string; }; /** @internal */ -export const OneHundredAndFortyNine$outboundSchema: z.ZodType< - OneHundredAndFortyNine$Outbound, +export const OneHundredAndFifty$outboundSchema: z.ZodType< + OneHundredAndFifty$Outbound, z.ZodTypeDef, - OneHundredAndFortyNine + OneHundredAndFifty > = z.object({ tier: Tier$outboundSchema, }); @@ -6321,30 +6473,30 @@ export const OneHundredAndFortyNine$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFortyNine$ { - /** @deprecated use `OneHundredAndFortyNine$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFortyNine$inboundSchema; - /** @deprecated use `OneHundredAndFortyNine$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFortyNine$outboundSchema; - /** @deprecated use `OneHundredAndFortyNine$Outbound` instead. */ - export type Outbound = OneHundredAndFortyNine$Outbound; +export namespace OneHundredAndFifty$ { + /** @deprecated use `OneHundredAndFifty$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFifty$inboundSchema; + /** @deprecated use `OneHundredAndFifty$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFifty$outboundSchema; + /** @deprecated use `OneHundredAndFifty$Outbound` instead. */ + export type Outbound = OneHundredAndFifty$Outbound; } -export function oneHundredAndFortyNineToJSON( - oneHundredAndFortyNine: OneHundredAndFortyNine, +export function oneHundredAndFiftyToJSON( + oneHundredAndFifty: OneHundredAndFifty, ): string { return JSON.stringify( - OneHundredAndFortyNine$outboundSchema.parse(oneHundredAndFortyNine), + OneHundredAndFifty$outboundSchema.parse(oneHundredAndFifty), ); } -export function oneHundredAndFortyNineFromJSON( +export function oneHundredAndFiftyFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( - jsonString, - (x) => OneHundredAndFortyNine$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFortyNine' from JSON`, + jsonString, + (x) => OneHundredAndFifty$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFifty' from JSON`, ); } @@ -6481,8 +6633,8 @@ export function prevProjectWebAnalyticsFromJSON( } /** @internal */ -export const OneHundredAndFortyEight$inboundSchema: z.ZodType< - OneHundredAndFortyEight, +export const OneHundredAndFortyNine$inboundSchema: z.ZodType< + OneHundredAndFortyNine, z.ZodTypeDef, unknown > = z.object({ @@ -6496,7 +6648,7 @@ export const OneHundredAndFortyEight$inboundSchema: z.ZodType< }); /** @internal */ -export type OneHundredAndFortyEight$Outbound = { +export type OneHundredAndFortyNine$Outbound = { projectId: string; projectName: string; projectWebAnalytics?: ProjectWebAnalytics$Outbound | undefined; @@ -6504,10 +6656,10 @@ export type OneHundredAndFortyEight$Outbound = { }; /** @internal */ -export const OneHundredAndFortyEight$outboundSchema: z.ZodType< - OneHundredAndFortyEight$Outbound, +export const OneHundredAndFortyNine$outboundSchema: z.ZodType< + OneHundredAndFortyNine$Outbound, z.ZodTypeDef, - OneHundredAndFortyEight + OneHundredAndFortyNine > = z.object({ projectId: z.string(), projectName: z.string(), @@ -6522,30 +6674,30 @@ export const OneHundredAndFortyEight$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFortyEight$ { - /** @deprecated use `OneHundredAndFortyEight$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFortyEight$inboundSchema; - /** @deprecated use `OneHundredAndFortyEight$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFortyEight$outboundSchema; - /** @deprecated use `OneHundredAndFortyEight$Outbound` instead. */ - export type Outbound = OneHundredAndFortyEight$Outbound; +export namespace OneHundredAndFortyNine$ { + /** @deprecated use `OneHundredAndFortyNine$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFortyNine$inboundSchema; + /** @deprecated use `OneHundredAndFortyNine$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFortyNine$outboundSchema; + /** @deprecated use `OneHundredAndFortyNine$Outbound` instead. */ + export type Outbound = OneHundredAndFortyNine$Outbound; } -export function oneHundredAndFortyEightToJSON( - oneHundredAndFortyEight: OneHundredAndFortyEight, +export function oneHundredAndFortyNineToJSON( + oneHundredAndFortyNine: OneHundredAndFortyNine, ): string { return JSON.stringify( - OneHundredAndFortyEight$outboundSchema.parse(oneHundredAndFortyEight), + OneHundredAndFortyNine$outboundSchema.parse(oneHundredAndFortyNine), ); } -export function oneHundredAndFortyEightFromJSON( +export function oneHundredAndFortyNineFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OneHundredAndFortyEight$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFortyEight' from JSON`, + (x) => OneHundredAndFortyNine$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFortyNine' from JSON`, ); } @@ -6727,8 +6879,8 @@ export function microfrontendsFromJSON( } /** @internal */ -export const UserEventPayload147Project$inboundSchema: z.ZodType< - UserEventPayload147Project, +export const UserEventPayload148Project$inboundSchema: z.ZodType< + UserEventPayload148Project, z.ZodTypeDef, unknown > = z.object({ @@ -6741,7 +6893,7 @@ export const UserEventPayload147Project$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload147Project$Outbound = { +export type UserEventPayload148Project$Outbound = { id: string; name: string; microfrontends?: @@ -6751,10 +6903,10 @@ export type UserEventPayload147Project$Outbound = { }; /** @internal */ -export const UserEventPayload147Project$outboundSchema: z.ZodType< - UserEventPayload147Project$Outbound, +export const UserEventPayload148Project$outboundSchema: z.ZodType< + UserEventPayload148Project$Outbound, z.ZodTypeDef, - UserEventPayload147Project + UserEventPayload148Project > = z.object({ id: z.string(), name: z.string(), @@ -6768,30 +6920,30 @@ export const UserEventPayload147Project$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload147Project$ { - /** @deprecated use `UserEventPayload147Project$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload147Project$inboundSchema; - /** @deprecated use `UserEventPayload147Project$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload147Project$outboundSchema; - /** @deprecated use `UserEventPayload147Project$Outbound` instead. */ - export type Outbound = UserEventPayload147Project$Outbound; +export namespace UserEventPayload148Project$ { + /** @deprecated use `UserEventPayload148Project$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload148Project$inboundSchema; + /** @deprecated use `UserEventPayload148Project$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload148Project$outboundSchema; + /** @deprecated use `UserEventPayload148Project$Outbound` instead. */ + export type Outbound = UserEventPayload148Project$Outbound; } -export function userEventPayload147ProjectToJSON( - userEventPayload147Project: UserEventPayload147Project, +export function userEventPayload148ProjectToJSON( + userEventPayload148Project: UserEventPayload148Project, ): string { return JSON.stringify( - UserEventPayload147Project$outboundSchema.parse(userEventPayload147Project), + UserEventPayload148Project$outboundSchema.parse(userEventPayload148Project), ); } -export function userEventPayload147ProjectFromJSON( +export function userEventPayload148ProjectFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload147Project$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload147Project' from JSON`, + (x) => UserEventPayload148Project$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload148Project' from JSON`, ); } @@ -6981,8 +7133,8 @@ export function payloadMicrofrontendsFromJSON( } /** @internal */ -export const UserEventPayload147PrevProject$inboundSchema: z.ZodType< - UserEventPayload147PrevProject, +export const UserEventPayload148PrevProject$inboundSchema: z.ZodType< + UserEventPayload148PrevProject, z.ZodTypeDef, unknown > = z.object({ @@ -6993,7 +7145,7 @@ export const UserEventPayload147PrevProject$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload147PrevProject$Outbound = { +export type UserEventPayload148PrevProject$Outbound = { microfrontends?: | UserEventMicrofrontends1$Outbound | UserEventMicrofrontends2$Outbound @@ -7001,10 +7153,10 @@ export type UserEventPayload147PrevProject$Outbound = { }; /** @internal */ -export const UserEventPayload147PrevProject$outboundSchema: z.ZodType< - UserEventPayload147PrevProject$Outbound, +export const UserEventPayload148PrevProject$outboundSchema: z.ZodType< + UserEventPayload148PrevProject$Outbound, z.ZodTypeDef, - UserEventPayload147PrevProject + UserEventPayload148PrevProject > = z.object({ microfrontends: z.union([ z.lazy(() => UserEventMicrofrontends1$outboundSchema), @@ -7016,32 +7168,32 @@ export const UserEventPayload147PrevProject$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload147PrevProject$ { - /** @deprecated use `UserEventPayload147PrevProject$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload147PrevProject$inboundSchema; - /** @deprecated use `UserEventPayload147PrevProject$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload147PrevProject$outboundSchema; - /** @deprecated use `UserEventPayload147PrevProject$Outbound` instead. */ - export type Outbound = UserEventPayload147PrevProject$Outbound; +export namespace UserEventPayload148PrevProject$ { + /** @deprecated use `UserEventPayload148PrevProject$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload148PrevProject$inboundSchema; + /** @deprecated use `UserEventPayload148PrevProject$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload148PrevProject$outboundSchema; + /** @deprecated use `UserEventPayload148PrevProject$Outbound` instead. */ + export type Outbound = UserEventPayload148PrevProject$Outbound; } -export function userEventPayload147PrevProjectToJSON( - userEventPayload147PrevProject: UserEventPayload147PrevProject, +export function userEventPayload148PrevProjectToJSON( + userEventPayload148PrevProject: UserEventPayload148PrevProject, ): string { return JSON.stringify( - UserEventPayload147PrevProject$outboundSchema.parse( - userEventPayload147PrevProject, + UserEventPayload148PrevProject$outboundSchema.parse( + userEventPayload148PrevProject, ), ); } -export function userEventPayload147PrevProjectFromJSON( +export function userEventPayload148PrevProjectFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload147PrevProject$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload147PrevProject' from JSON`, + (x) => UserEventPayload148PrevProject$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload148PrevProject' from JSON`, ); } @@ -7051,12 +7203,12 @@ export const PayloadPrev$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - project: z.lazy(() => UserEventPayload147PrevProject$inboundSchema), + project: z.lazy(() => UserEventPayload148PrevProject$inboundSchema), }); /** @internal */ export type PayloadPrev$Outbound = { - project: UserEventPayload147PrevProject$Outbound; + project: UserEventPayload148PrevProject$Outbound; }; /** @internal */ @@ -7065,7 +7217,7 @@ export const PayloadPrev$outboundSchema: z.ZodType< z.ZodTypeDef, PayloadPrev > = z.object({ - project: z.lazy(() => UserEventPayload147PrevProject$outboundSchema), + project: z.lazy(() => UserEventPayload148PrevProject$outboundSchema), }); /** @@ -7152,30 +7304,30 @@ export function payloadGroupFromJSON( } /** @internal */ -export const OneHundredAndFortySeven$inboundSchema: z.ZodType< - OneHundredAndFortySeven, +export const OneHundredAndFortyEight$inboundSchema: z.ZodType< + OneHundredAndFortyEight, z.ZodTypeDef, unknown > = z.object({ - project: z.lazy(() => UserEventPayload147Project$inboundSchema), + project: z.lazy(() => UserEventPayload148Project$inboundSchema), prev: z.lazy(() => PayloadPrev$inboundSchema), group: z.lazy(() => PayloadGroup$inboundSchema), }); /** @internal */ -export type OneHundredAndFortySeven$Outbound = { - project: UserEventPayload147Project$Outbound; +export type OneHundredAndFortyEight$Outbound = { + project: UserEventPayload148Project$Outbound; prev: PayloadPrev$Outbound; group: PayloadGroup$Outbound; }; /** @internal */ -export const OneHundredAndFortySeven$outboundSchema: z.ZodType< - OneHundredAndFortySeven$Outbound, +export const OneHundredAndFortyEight$outboundSchema: z.ZodType< + OneHundredAndFortyEight$Outbound, z.ZodTypeDef, - OneHundredAndFortySeven + OneHundredAndFortyEight > = z.object({ - project: z.lazy(() => UserEventPayload147Project$outboundSchema), + project: z.lazy(() => UserEventPayload148Project$outboundSchema), prev: z.lazy(() => PayloadPrev$outboundSchema), group: z.lazy(() => PayloadGroup$outboundSchema), }); @@ -7184,36 +7336,36 @@ export const OneHundredAndFortySeven$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFortySeven$ { - /** @deprecated use `OneHundredAndFortySeven$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFortySeven$inboundSchema; - /** @deprecated use `OneHundredAndFortySeven$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFortySeven$outboundSchema; - /** @deprecated use `OneHundredAndFortySeven$Outbound` instead. */ - export type Outbound = OneHundredAndFortySeven$Outbound; +export namespace OneHundredAndFortyEight$ { + /** @deprecated use `OneHundredAndFortyEight$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFortyEight$inboundSchema; + /** @deprecated use `OneHundredAndFortyEight$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFortyEight$outboundSchema; + /** @deprecated use `OneHundredAndFortyEight$Outbound` instead. */ + export type Outbound = OneHundredAndFortyEight$Outbound; } -export function oneHundredAndFortySevenToJSON( - oneHundredAndFortySeven: OneHundredAndFortySeven, +export function oneHundredAndFortyEightToJSON( + oneHundredAndFortyEight: OneHundredAndFortyEight, ): string { return JSON.stringify( - OneHundredAndFortySeven$outboundSchema.parse(oneHundredAndFortySeven), + OneHundredAndFortyEight$outboundSchema.parse(oneHundredAndFortyEight), ); } -export function oneHundredAndFortySevenFromJSON( +export function oneHundredAndFortyEightFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OneHundredAndFortySeven$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFortySeven' from JSON`, + (x) => OneHundredAndFortyEight$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFortyEight' from JSON`, ); } /** @internal */ -export const UserEventPayload146Project$inboundSchema: z.ZodType< - UserEventPayload146Project, +export const UserEventPayload147Project$inboundSchema: z.ZodType< + UserEventPayload147Project, z.ZodTypeDef, unknown > = z.object({ @@ -7222,16 +7374,16 @@ export const UserEventPayload146Project$inboundSchema: z.ZodType< }); /** @internal */ -export type UserEventPayload146Project$Outbound = { +export type UserEventPayload147Project$Outbound = { id: string; name: string; }; /** @internal */ -export const UserEventPayload146Project$outboundSchema: z.ZodType< - UserEventPayload146Project$Outbound, +export const UserEventPayload147Project$outboundSchema: z.ZodType< + UserEventPayload147Project$Outbound, z.ZodTypeDef, - UserEventPayload146Project + UserEventPayload147Project > = z.object({ id: z.string(), name: z.string(), @@ -7241,30 +7393,30 @@ export const UserEventPayload146Project$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace UserEventPayload146Project$ { - /** @deprecated use `UserEventPayload146Project$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload146Project$inboundSchema; - /** @deprecated use `UserEventPayload146Project$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload146Project$outboundSchema; - /** @deprecated use `UserEventPayload146Project$Outbound` instead. */ - export type Outbound = UserEventPayload146Project$Outbound; +export namespace UserEventPayload147Project$ { + /** @deprecated use `UserEventPayload147Project$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload147Project$inboundSchema; + /** @deprecated use `UserEventPayload147Project$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload147Project$outboundSchema; + /** @deprecated use `UserEventPayload147Project$Outbound` instead. */ + export type Outbound = UserEventPayload147Project$Outbound; } -export function userEventPayload146ProjectToJSON( - userEventPayload146Project: UserEventPayload146Project, +export function userEventPayload147ProjectToJSON( + userEventPayload147Project: UserEventPayload147Project, ): string { return JSON.stringify( - UserEventPayload146Project$outboundSchema.parse(userEventPayload146Project), + UserEventPayload147Project$outboundSchema.parse(userEventPayload147Project), ); } -export function userEventPayload146ProjectFromJSON( +export function userEventPayload147ProjectFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => UserEventPayload146Project$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UserEventPayload146Project' from JSON`, + (x) => UserEventPayload147Project$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UserEventPayload147Project' from JSON`, ); } @@ -7322,28 +7474,28 @@ export function groupFromJSON( } /** @internal */ -export const OneHundredAndFortySix$inboundSchema: z.ZodType< - OneHundredAndFortySix, +export const OneHundredAndFortySeven$inboundSchema: z.ZodType< + OneHundredAndFortySeven, z.ZodTypeDef, unknown > = z.object({ - project: z.lazy(() => UserEventPayload146Project$inboundSchema), + project: z.lazy(() => UserEventPayload147Project$inboundSchema), group: z.lazy(() => Group$inboundSchema), }); /** @internal */ -export type OneHundredAndFortySix$Outbound = { - project: UserEventPayload146Project$Outbound; +export type OneHundredAndFortySeven$Outbound = { + project: UserEventPayload147Project$Outbound; group: Group$Outbound; }; /** @internal */ -export const OneHundredAndFortySix$outboundSchema: z.ZodType< - OneHundredAndFortySix$Outbound, +export const OneHundredAndFortySeven$outboundSchema: z.ZodType< + OneHundredAndFortySeven$Outbound, z.ZodTypeDef, - OneHundredAndFortySix + OneHundredAndFortySeven > = z.object({ - project: z.lazy(() => UserEventPayload146Project$outboundSchema), + project: z.lazy(() => UserEventPayload147Project$outboundSchema), group: z.lazy(() => Group$outboundSchema), }); @@ -7351,30 +7503,30 @@ export const OneHundredAndFortySix$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace OneHundredAndFortySix$ { - /** @deprecated use `OneHundredAndFortySix$inboundSchema` instead. */ - export const inboundSchema = OneHundredAndFortySix$inboundSchema; - /** @deprecated use `OneHundredAndFortySix$outboundSchema` instead. */ - export const outboundSchema = OneHundredAndFortySix$outboundSchema; - /** @deprecated use `OneHundredAndFortySix$Outbound` instead. */ - export type Outbound = OneHundredAndFortySix$Outbound; +export namespace OneHundredAndFortySeven$ { + /** @deprecated use `OneHundredAndFortySeven$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFortySeven$inboundSchema; + /** @deprecated use `OneHundredAndFortySeven$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFortySeven$outboundSchema; + /** @deprecated use `OneHundredAndFortySeven$Outbound` instead. */ + export type Outbound = OneHundredAndFortySeven$Outbound; } -export function oneHundredAndFortySixToJSON( - oneHundredAndFortySix: OneHundredAndFortySix, +export function oneHundredAndFortySevenToJSON( + oneHundredAndFortySeven: OneHundredAndFortySeven, ): string { return JSON.stringify( - OneHundredAndFortySix$outboundSchema.parse(oneHundredAndFortySix), + OneHundredAndFortySeven$outboundSchema.parse(oneHundredAndFortySeven), ); } -export function oneHundredAndFortySixFromJSON( +export function oneHundredAndFortySevenFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OneHundredAndFortySix$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OneHundredAndFortySix' from JSON`, + (x) => OneHundredAndFortySeven$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFortySeven' from JSON`, ); } @@ -7429,8 +7581,8 @@ export function prevFromJSON( } /** @internal */ -export const OneHundredAndFortyFive$inboundSchema: z.ZodType< - OneHundredAndFortyFive, +export const OneHundredAndFortySix$inboundSchema: z.ZodType< + OneHundredAndFortySix, z.ZodTypeDef, unknown > = z.object({ @@ -7442,7 +7594,7 @@ export const OneHundredAndFortyFive$inboundSchema: z.ZodType< }); /** @internal */ -export type OneHundredAndFortyFive$Outbound = { +export type OneHundredAndFortySix$Outbound = { id: string; slug?: string | undefined; name?: string | undefined; @@ -7451,10 +7603,10 @@ export type OneHundredAndFortyFive$Outbound = { }; /** @internal */ -export const OneHundredAndFortyFive$outboundSchema: z.ZodType< - OneHundredAndFortyFive$Outbound, +export const OneHundredAndFortySix$outboundSchema: z.ZodType< + OneHundredAndFortySix$Outbound, z.ZodTypeDef, - OneHundredAndFortyFive + OneHundredAndFortySix > = z.object({ id: z.string(), slug: z.string().optional(), @@ -7463,6 +7615,66 @@ export const OneHundredAndFortyFive$outboundSchema: z.ZodType< prev: z.lazy(() => Prev$outboundSchema), }); +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace OneHundredAndFortySix$ { + /** @deprecated use `OneHundredAndFortySix$inboundSchema` instead. */ + export const inboundSchema = OneHundredAndFortySix$inboundSchema; + /** @deprecated use `OneHundredAndFortySix$outboundSchema` instead. */ + export const outboundSchema = OneHundredAndFortySix$outboundSchema; + /** @deprecated use `OneHundredAndFortySix$Outbound` instead. */ + export type Outbound = OneHundredAndFortySix$Outbound; +} + +export function oneHundredAndFortySixToJSON( + oneHundredAndFortySix: OneHundredAndFortySix, +): string { + return JSON.stringify( + OneHundredAndFortySix$outboundSchema.parse(oneHundredAndFortySix), + ); +} + +export function oneHundredAndFortySixFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OneHundredAndFortySix$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OneHundredAndFortySix' from JSON`, + ); +} + +/** @internal */ +export const OneHundredAndFortyFive$inboundSchema: z.ZodType< + OneHundredAndFortyFive, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + slug: z.string(), + name: z.string(), +}); + +/** @internal */ +export type OneHundredAndFortyFive$Outbound = { + id: string; + slug: string; + name: string; +}; + +/** @internal */ +export const OneHundredAndFortyFive$outboundSchema: z.ZodType< + OneHundredAndFortyFive$Outbound, + z.ZodTypeDef, + OneHundredAndFortyFive +> = z.object({ + id: z.string(), + slug: z.string(), + name: z.string(), +}); + /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. @@ -7494,22 +7706,39 @@ export function oneHundredAndFortyFiveFromJSON( ); } +/** @internal */ +export const UserEventPayload144Action$inboundSchema: z.ZodNativeEnum< + typeof UserEventPayload144Action +> = z.nativeEnum(UserEventPayload144Action); + +/** @internal */ +export const UserEventPayload144Action$outboundSchema: z.ZodNativeEnum< + typeof UserEventPayload144Action +> = UserEventPayload144Action$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UserEventPayload144Action$ { + /** @deprecated use `UserEventPayload144Action$inboundSchema` instead. */ + export const inboundSchema = UserEventPayload144Action$inboundSchema; + /** @deprecated use `UserEventPayload144Action$outboundSchema` instead. */ + export const outboundSchema = UserEventPayload144Action$outboundSchema; +} + /** @internal */ export const OneHundredAndFortyFour$inboundSchema: z.ZodType< OneHundredAndFortyFour, z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - slug: z.string(), - name: z.string(), + unknown +> = z.object({ + action: UserEventPayload144Action$inboundSchema, }); /** @internal */ export type OneHundredAndFortyFour$Outbound = { - id: string; - slug: string; - name: string; + action: string; }; /** @internal */ @@ -7518,9 +7747,7 @@ export const OneHundredAndFortyFour$outboundSchema: z.ZodType< z.ZodTypeDef, OneHundredAndFortyFour > = z.object({ - id: z.string(), - slug: z.string(), - name: z.string(), + action: UserEventPayload144Action$outboundSchema, }); /** @@ -7554,39 +7781,22 @@ export function oneHundredAndFortyFourFromJSON( ); } -/** @internal */ -export const UserEventPayload143Action$inboundSchema: z.ZodNativeEnum< - typeof UserEventPayload143Action -> = z.nativeEnum(UserEventPayload143Action); - -/** @internal */ -export const UserEventPayload143Action$outboundSchema: z.ZodNativeEnum< - typeof UserEventPayload143Action -> = UserEventPayload143Action$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserEventPayload143Action$ { - /** @deprecated use `UserEventPayload143Action$inboundSchema` instead. */ - export const inboundSchema = UserEventPayload143Action$inboundSchema; - /** @deprecated use `UserEventPayload143Action$outboundSchema` instead. */ - export const outboundSchema = UserEventPayload143Action$outboundSchema; -} - /** @internal */ export const OneHundredAndFortyThree$inboundSchema: z.ZodType< OneHundredAndFortyThree, z.ZodTypeDef, unknown > = z.object({ - action: UserEventPayload143Action$inboundSchema, + edgeConfigId: z.string(), + edgeConfigSlug: z.string(), + edgeConfigTokenIds: z.array(z.string()), }); /** @internal */ export type OneHundredAndFortyThree$Outbound = { - action: string; + edgeConfigId: string; + edgeConfigSlug: string; + edgeConfigTokenIds: Array; }; /** @internal */ @@ -7595,7 +7805,9 @@ export const OneHundredAndFortyThree$outboundSchema: z.ZodType< z.ZodTypeDef, OneHundredAndFortyThree > = z.object({ - action: UserEventPayload143Action$outboundSchema, + edgeConfigId: z.string(), + edgeConfigSlug: z.string(), + edgeConfigTokenIds: z.array(z.string()), }); /** @@ -7637,14 +7849,16 @@ export const OneHundredAndFortyTwo$inboundSchema: z.ZodType< > = z.object({ edgeConfigId: z.string(), edgeConfigSlug: z.string(), - edgeConfigTokenIds: z.array(z.string()), + edgeConfigTokenId: z.string(), + label: z.string(), }); /** @internal */ export type OneHundredAndFortyTwo$Outbound = { edgeConfigId: string; edgeConfigSlug: string; - edgeConfigTokenIds: Array; + edgeConfigTokenId: string; + label: string; }; /** @internal */ @@ -7655,7 +7869,8 @@ export const OneHundredAndFortyTwo$outboundSchema: z.ZodType< > = z.object({ edgeConfigId: z.string(), edgeConfigSlug: z.string(), - edgeConfigTokenIds: z.array(z.string()), + edgeConfigTokenId: z.string(), + label: z.string(), }); /** @@ -7697,16 +7912,14 @@ export const OneHundredAndFortyOne$inboundSchema: z.ZodType< > = z.object({ edgeConfigId: z.string(), edgeConfigSlug: z.string(), - edgeConfigTokenId: z.string(), - label: z.string(), + edgeConfigDigest: z.string(), }); /** @internal */ export type OneHundredAndFortyOne$Outbound = { edgeConfigId: string; edgeConfigSlug: string; - edgeConfigTokenId: string; - label: string; + edgeConfigDigest: string; }; /** @internal */ @@ -7717,8 +7930,7 @@ export const OneHundredAndFortyOne$outboundSchema: z.ZodType< > = z.object({ edgeConfigId: z.string(), edgeConfigSlug: z.string(), - edgeConfigTokenId: z.string(), - label: z.string(), + edgeConfigDigest: z.string(), }); /** @@ -7758,16 +7970,14 @@ export const OneHundredAndForty$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - edgeConfigId: z.string(), - edgeConfigSlug: z.string(), - edgeConfigDigest: z.string(), + projectName: z.string(), + urls: z.array(z.string()), }); /** @internal */ export type OneHundredAndForty$Outbound = { - edgeConfigId: string; - edgeConfigSlug: string; - edgeConfigDigest: string; + projectName: string; + urls: Array; }; /** @internal */ @@ -7776,9 +7986,8 @@ export const OneHundredAndForty$outboundSchema: z.ZodType< z.ZodTypeDef, OneHundredAndForty > = z.object({ - edgeConfigId: z.string(), - edgeConfigSlug: z.string(), - edgeConfigDigest: z.string(), + projectName: z.string(), + urls: z.array(z.string()), }); /** @@ -10279,6 +10488,9 @@ export const OneHundredAndTwelve$inboundSchema: z.ZodType< role: z.string().optional(), uid: z.string(), origin: z.string().optional(), + teamRoles: z.array(z.string()).optional(), + teamPermissions: z.array(z.string()).optional(), + entitlements: z.array(z.string()).optional(), }); /** @internal */ @@ -10286,6 +10498,9 @@ export type OneHundredAndTwelve$Outbound = { role?: string | undefined; uid: string; origin?: string | undefined; + teamRoles?: Array | undefined; + teamPermissions?: Array | undefined; + entitlements?: Array | undefined; }; /** @internal */ @@ -10297,6 +10512,9 @@ export const OneHundredAndTwelve$outboundSchema: z.ZodType< role: z.string().optional(), uid: z.string(), origin: z.string().optional(), + teamRoles: z.array(z.string()).optional(), + teamPermissions: z.array(z.string()).optional(), + entitlements: z.array(z.string()).optional(), }); /** @@ -29040,12 +29258,12 @@ export const Payload$inboundSchema: z.ZodType = z.lazy(() => SixtyFour$inboundSchema), z.lazy(() => SixtySeven$inboundSchema), z.lazy(() => OneHundredAndThirtyOne$inboundSchema), - z.lazy(() => OneHundredAndFiftyEight$inboundSchema), + z.lazy(() => OneHundredAndSixtyOne$inboundSchema), z.lazy(() => Payload2$inboundSchema), z.lazy(() => FortyFive$inboundSchema), z.lazy(() => SixtyEight$inboundSchema), z.lazy(() => OneHundredAndOne$inboundSchema), - z.lazy(() => OneHundredAndFortyOne$inboundSchema), + z.lazy(() => OneHundredAndFortyTwo$inboundSchema), z.lazy(() => Twelve$inboundSchema), z.lazy(() => Sixteen$inboundSchema), z.lazy(() => TwentyNine$inboundSchema), @@ -29069,13 +29287,13 @@ export const Payload$inboundSchema: z.ZodType = z.lazy(() => OneHundredAndNine$inboundSchema), z.lazy(() => OneHundredAndThirtyThree$inboundSchema), z.lazy(() => OneHundredAndThirtyFour$inboundSchema), - z.lazy(() => OneHundredAndForty$inboundSchema), - z.lazy(() => OneHundredAndFortyTwo$inboundSchema), - z.lazy(() => OneHundredAndFortyFour$inboundSchema), - z.lazy(() => OneHundredAndFortySeven$inboundSchema), - z.lazy(() => OneHundredAndFiftyFive$inboundSchema), - z.lazy(() => OneHundredAndFiftySix$inboundSchema), - z.lazy(() => OneHundredAndFiftySeven$inboundSchema), + z.lazy(() => OneHundredAndFortyOne$inboundSchema), + z.lazy(() => OneHundredAndFortyThree$inboundSchema), + z.lazy(() => OneHundredAndFortyFive$inboundSchema), + z.lazy(() => OneHundredAndFortyEight$inboundSchema), + z.lazy(() => OneHundredAndFiftyEight$inboundSchema), + z.lazy(() => OneHundredAndFiftyNine$inboundSchema), + z.lazy(() => OneHundredAndSixty$inboundSchema), z.lazy(() => Four$inboundSchema), z.lazy(() => Five$inboundSchema), z.lazy(() => Six$inboundSchema), @@ -29115,13 +29333,14 @@ export const Payload$inboundSchema: z.ZodType = z.lazy(() => OneHundredAndThirtySix$inboundSchema), z.lazy(() => OneHundredAndThirtySeven$inboundSchema), z.lazy(() => OneHundredAndThirtyNine$inboundSchema), - z.lazy(() => OneHundredAndFortyFive$inboundSchema), + z.lazy(() => OneHundredAndForty$inboundSchema), z.lazy(() => OneHundredAndFortySix$inboundSchema), - z.lazy(() => OneHundredAndFortyEight$inboundSchema), - z.lazy(() => OneHundredAndFifty$inboundSchema), + z.lazy(() => OneHundredAndFortySeven$inboundSchema), + z.lazy(() => OneHundredAndFortyNine$inboundSchema), z.lazy(() => OneHundredAndFiftyOne$inboundSchema), z.lazy(() => OneHundredAndFiftyTwo$inboundSchema), - z.lazy(() => OneHundredAndFiftyFour$inboundSchema), + z.lazy(() => OneHundredAndFiftyThree$inboundSchema), + z.lazy(() => OneHundredAndFiftyFive$inboundSchema), z.lazy(() => Three$inboundSchema), z.lazy(() => Fifteen$inboundSchema), z.lazy(() => Twenty$inboundSchema), @@ -29163,9 +29382,11 @@ export const Payload$inboundSchema: z.ZodType = z.lazy(() => OneHundredAndTwentyNine$inboundSchema), z.lazy(() => OneHundredAndThirty$inboundSchema), z.lazy(() => OneHundredAndThirtyEight$inboundSchema), - z.lazy(() => OneHundredAndFortyThree$inboundSchema), - z.lazy(() => OneHundredAndFortyNine$inboundSchema), - z.lazy(() => OneHundredAndFiftyThree$inboundSchema), + z.lazy(() => OneHundredAndFortyFour$inboundSchema), + z.lazy(() => OneHundredAndFifty$inboundSchema), + z.lazy(() => OneHundredAndFiftyFour$inboundSchema), + z.lazy(() => OneHundredAndFiftySix$inboundSchema), + z.lazy(() => OneHundredAndFiftySeven$inboundSchema), z.lazy(() => Payload1$inboundSchema), z.lazy(() => Seven$inboundSchema), z.lazy(() => Eight$inboundSchema), @@ -29202,12 +29423,12 @@ export type Payload$Outbound = | SixtyFour$Outbound | SixtySeven$Outbound | OneHundredAndThirtyOne$Outbound - | OneHundredAndFiftyEight$Outbound + | OneHundredAndSixtyOne$Outbound | Payload2$Outbound | FortyFive$Outbound | SixtyEight$Outbound | OneHundredAndOne$Outbound - | OneHundredAndFortyOne$Outbound + | OneHundredAndFortyTwo$Outbound | Twelve$Outbound | Sixteen$Outbound | TwentyNine$Outbound @@ -29231,13 +29452,13 @@ export type Payload$Outbound = | OneHundredAndNine$Outbound | OneHundredAndThirtyThree$Outbound | OneHundredAndThirtyFour$Outbound - | OneHundredAndForty$Outbound - | OneHundredAndFortyTwo$Outbound - | OneHundredAndFortyFour$Outbound - | OneHundredAndFortySeven$Outbound - | OneHundredAndFiftyFive$Outbound - | OneHundredAndFiftySix$Outbound - | OneHundredAndFiftySeven$Outbound + | OneHundredAndFortyOne$Outbound + | OneHundredAndFortyThree$Outbound + | OneHundredAndFortyFive$Outbound + | OneHundredAndFortyEight$Outbound + | OneHundredAndFiftyEight$Outbound + | OneHundredAndFiftyNine$Outbound + | OneHundredAndSixty$Outbound | Four$Outbound | Five$Outbound | Six$Outbound @@ -29277,13 +29498,14 @@ export type Payload$Outbound = | OneHundredAndThirtySix$Outbound | OneHundredAndThirtySeven$Outbound | OneHundredAndThirtyNine$Outbound - | OneHundredAndFortyFive$Outbound + | OneHundredAndForty$Outbound | OneHundredAndFortySix$Outbound - | OneHundredAndFortyEight$Outbound - | OneHundredAndFifty$Outbound + | OneHundredAndFortySeven$Outbound + | OneHundredAndFortyNine$Outbound | OneHundredAndFiftyOne$Outbound | OneHundredAndFiftyTwo$Outbound - | OneHundredAndFiftyFour$Outbound + | OneHundredAndFiftyThree$Outbound + | OneHundredAndFiftyFive$Outbound | Three$Outbound | Fifteen$Outbound | Twenty$Outbound @@ -29325,9 +29547,11 @@ export type Payload$Outbound = | OneHundredAndTwentyNine$Outbound | OneHundredAndThirty$Outbound | OneHundredAndThirtyEight$Outbound - | OneHundredAndFortyThree$Outbound - | OneHundredAndFortyNine$Outbound - | OneHundredAndFiftyThree$Outbound + | OneHundredAndFortyFour$Outbound + | OneHundredAndFifty$Outbound + | OneHundredAndFiftyFour$Outbound + | OneHundredAndFiftySix$Outbound + | OneHundredAndFiftySeven$Outbound | Payload1$Outbound | Seven$Outbound | Eight$Outbound @@ -29367,12 +29591,12 @@ export const Payload$outboundSchema: z.ZodType< z.lazy(() => SixtyFour$outboundSchema), z.lazy(() => SixtySeven$outboundSchema), z.lazy(() => OneHundredAndThirtyOne$outboundSchema), - z.lazy(() => OneHundredAndFiftyEight$outboundSchema), + z.lazy(() => OneHundredAndSixtyOne$outboundSchema), z.lazy(() => Payload2$outboundSchema), z.lazy(() => FortyFive$outboundSchema), z.lazy(() => SixtyEight$outboundSchema), z.lazy(() => OneHundredAndOne$outboundSchema), - z.lazy(() => OneHundredAndFortyOne$outboundSchema), + z.lazy(() => OneHundredAndFortyTwo$outboundSchema), z.lazy(() => Twelve$outboundSchema), z.lazy(() => Sixteen$outboundSchema), z.lazy(() => TwentyNine$outboundSchema), @@ -29396,13 +29620,13 @@ export const Payload$outboundSchema: z.ZodType< z.lazy(() => OneHundredAndNine$outboundSchema), z.lazy(() => OneHundredAndThirtyThree$outboundSchema), z.lazy(() => OneHundredAndThirtyFour$outboundSchema), - z.lazy(() => OneHundredAndForty$outboundSchema), - z.lazy(() => OneHundredAndFortyTwo$outboundSchema), - z.lazy(() => OneHundredAndFortyFour$outboundSchema), - z.lazy(() => OneHundredAndFortySeven$outboundSchema), - z.lazy(() => OneHundredAndFiftyFive$outboundSchema), - z.lazy(() => OneHundredAndFiftySix$outboundSchema), - z.lazy(() => OneHundredAndFiftySeven$outboundSchema), + z.lazy(() => OneHundredAndFortyOne$outboundSchema), + z.lazy(() => OneHundredAndFortyThree$outboundSchema), + z.lazy(() => OneHundredAndFortyFive$outboundSchema), + z.lazy(() => OneHundredAndFortyEight$outboundSchema), + z.lazy(() => OneHundredAndFiftyEight$outboundSchema), + z.lazy(() => OneHundredAndFiftyNine$outboundSchema), + z.lazy(() => OneHundredAndSixty$outboundSchema), z.lazy(() => Four$outboundSchema), z.lazy(() => Five$outboundSchema), z.lazy(() => Six$outboundSchema), @@ -29442,13 +29666,14 @@ export const Payload$outboundSchema: z.ZodType< z.lazy(() => OneHundredAndThirtySix$outboundSchema), z.lazy(() => OneHundredAndThirtySeven$outboundSchema), z.lazy(() => OneHundredAndThirtyNine$outboundSchema), - z.lazy(() => OneHundredAndFortyFive$outboundSchema), + z.lazy(() => OneHundredAndForty$outboundSchema), z.lazy(() => OneHundredAndFortySix$outboundSchema), - z.lazy(() => OneHundredAndFortyEight$outboundSchema), - z.lazy(() => OneHundredAndFifty$outboundSchema), + z.lazy(() => OneHundredAndFortySeven$outboundSchema), + z.lazy(() => OneHundredAndFortyNine$outboundSchema), z.lazy(() => OneHundredAndFiftyOne$outboundSchema), z.lazy(() => OneHundredAndFiftyTwo$outboundSchema), - z.lazy(() => OneHundredAndFiftyFour$outboundSchema), + z.lazy(() => OneHundredAndFiftyThree$outboundSchema), + z.lazy(() => OneHundredAndFiftyFive$outboundSchema), z.lazy(() => Three$outboundSchema), z.lazy(() => Fifteen$outboundSchema), z.lazy(() => Twenty$outboundSchema), @@ -29490,9 +29715,11 @@ export const Payload$outboundSchema: z.ZodType< z.lazy(() => OneHundredAndTwentyNine$outboundSchema), z.lazy(() => OneHundredAndThirty$outboundSchema), z.lazy(() => OneHundredAndThirtyEight$outboundSchema), - z.lazy(() => OneHundredAndFortyThree$outboundSchema), - z.lazy(() => OneHundredAndFortyNine$outboundSchema), - z.lazy(() => OneHundredAndFiftyThree$outboundSchema), + z.lazy(() => OneHundredAndFortyFour$outboundSchema), + z.lazy(() => OneHundredAndFifty$outboundSchema), + z.lazy(() => OneHundredAndFiftyFour$outboundSchema), + z.lazy(() => OneHundredAndFiftySix$outboundSchema), + z.lazy(() => OneHundredAndFiftySeven$outboundSchema), z.lazy(() => Payload1$outboundSchema), z.lazy(() => Seven$outboundSchema), z.lazy(() => Eight$outboundSchema), @@ -29579,12 +29806,12 @@ export const UserEvent$inboundSchema: z.ZodType< z.lazy(() => SixtyFour$inboundSchema), z.lazy(() => SixtySeven$inboundSchema), z.lazy(() => OneHundredAndThirtyOne$inboundSchema), - z.lazy(() => OneHundredAndFiftyEight$inboundSchema), + z.lazy(() => OneHundredAndSixtyOne$inboundSchema), z.lazy(() => Payload2$inboundSchema), z.lazy(() => FortyFive$inboundSchema), z.lazy(() => SixtyEight$inboundSchema), z.lazy(() => OneHundredAndOne$inboundSchema), - z.lazy(() => OneHundredAndFortyOne$inboundSchema), + z.lazy(() => OneHundredAndFortyTwo$inboundSchema), z.lazy(() => Twelve$inboundSchema), z.lazy(() => Sixteen$inboundSchema), z.lazy(() => TwentyNine$inboundSchema), @@ -29608,13 +29835,13 @@ export const UserEvent$inboundSchema: z.ZodType< z.lazy(() => OneHundredAndNine$inboundSchema), z.lazy(() => OneHundredAndThirtyThree$inboundSchema), z.lazy(() => OneHundredAndThirtyFour$inboundSchema), - z.lazy(() => OneHundredAndForty$inboundSchema), - z.lazy(() => OneHundredAndFortyTwo$inboundSchema), - z.lazy(() => OneHundredAndFortyFour$inboundSchema), - z.lazy(() => OneHundredAndFortySeven$inboundSchema), - z.lazy(() => OneHundredAndFiftyFive$inboundSchema), - z.lazy(() => OneHundredAndFiftySix$inboundSchema), - z.lazy(() => OneHundredAndFiftySeven$inboundSchema), + z.lazy(() => OneHundredAndFortyOne$inboundSchema), + z.lazy(() => OneHundredAndFortyThree$inboundSchema), + z.lazy(() => OneHundredAndFortyFive$inboundSchema), + z.lazy(() => OneHundredAndFortyEight$inboundSchema), + z.lazy(() => OneHundredAndFiftyEight$inboundSchema), + z.lazy(() => OneHundredAndFiftyNine$inboundSchema), + z.lazy(() => OneHundredAndSixty$inboundSchema), z.lazy(() => Four$inboundSchema), z.lazy(() => Five$inboundSchema), z.lazy(() => Six$inboundSchema), @@ -29654,13 +29881,14 @@ export const UserEvent$inboundSchema: z.ZodType< z.lazy(() => OneHundredAndThirtySix$inboundSchema), z.lazy(() => OneHundredAndThirtySeven$inboundSchema), z.lazy(() => OneHundredAndThirtyNine$inboundSchema), - z.lazy(() => OneHundredAndFortyFive$inboundSchema), + z.lazy(() => OneHundredAndForty$inboundSchema), z.lazy(() => OneHundredAndFortySix$inboundSchema), - z.lazy(() => OneHundredAndFortyEight$inboundSchema), - z.lazy(() => OneHundredAndFifty$inboundSchema), + z.lazy(() => OneHundredAndFortySeven$inboundSchema), + z.lazy(() => OneHundredAndFortyNine$inboundSchema), z.lazy(() => OneHundredAndFiftyOne$inboundSchema), z.lazy(() => OneHundredAndFiftyTwo$inboundSchema), - z.lazy(() => OneHundredAndFiftyFour$inboundSchema), + z.lazy(() => OneHundredAndFiftyThree$inboundSchema), + z.lazy(() => OneHundredAndFiftyFive$inboundSchema), z.lazy(() => Three$inboundSchema), z.lazy(() => Fifteen$inboundSchema), z.lazy(() => Twenty$inboundSchema), @@ -29702,9 +29930,11 @@ export const UserEvent$inboundSchema: z.ZodType< z.lazy(() => OneHundredAndTwentyNine$inboundSchema), z.lazy(() => OneHundredAndThirty$inboundSchema), z.lazy(() => OneHundredAndThirtyEight$inboundSchema), - z.lazy(() => OneHundredAndFortyThree$inboundSchema), - z.lazy(() => OneHundredAndFortyNine$inboundSchema), - z.lazy(() => OneHundredAndFiftyThree$inboundSchema), + z.lazy(() => OneHundredAndFortyFour$inboundSchema), + z.lazy(() => OneHundredAndFifty$inboundSchema), + z.lazy(() => OneHundredAndFiftyFour$inboundSchema), + z.lazy(() => OneHundredAndFiftySix$inboundSchema), + z.lazy(() => OneHundredAndFiftySeven$inboundSchema), z.lazy(() => Payload1$inboundSchema), z.lazy(() => Seven$inboundSchema), z.lazy(() => Eight$inboundSchema), @@ -29753,12 +29983,12 @@ export type UserEvent$Outbound = { | SixtyFour$Outbound | SixtySeven$Outbound | OneHundredAndThirtyOne$Outbound - | OneHundredAndFiftyEight$Outbound + | OneHundredAndSixtyOne$Outbound | Payload2$Outbound | FortyFive$Outbound | SixtyEight$Outbound | OneHundredAndOne$Outbound - | OneHundredAndFortyOne$Outbound + | OneHundredAndFortyTwo$Outbound | Twelve$Outbound | Sixteen$Outbound | TwentyNine$Outbound @@ -29782,13 +30012,13 @@ export type UserEvent$Outbound = { | OneHundredAndNine$Outbound | OneHundredAndThirtyThree$Outbound | OneHundredAndThirtyFour$Outbound - | OneHundredAndForty$Outbound - | OneHundredAndFortyTwo$Outbound - | OneHundredAndFortyFour$Outbound - | OneHundredAndFortySeven$Outbound - | OneHundredAndFiftyFive$Outbound - | OneHundredAndFiftySix$Outbound - | OneHundredAndFiftySeven$Outbound + | OneHundredAndFortyOne$Outbound + | OneHundredAndFortyThree$Outbound + | OneHundredAndFortyFive$Outbound + | OneHundredAndFortyEight$Outbound + | OneHundredAndFiftyEight$Outbound + | OneHundredAndFiftyNine$Outbound + | OneHundredAndSixty$Outbound | Four$Outbound | Five$Outbound | Six$Outbound @@ -29828,13 +30058,14 @@ export type UserEvent$Outbound = { | OneHundredAndThirtySix$Outbound | OneHundredAndThirtySeven$Outbound | OneHundredAndThirtyNine$Outbound - | OneHundredAndFortyFive$Outbound + | OneHundredAndForty$Outbound | OneHundredAndFortySix$Outbound - | OneHundredAndFortyEight$Outbound - | OneHundredAndFifty$Outbound + | OneHundredAndFortySeven$Outbound + | OneHundredAndFortyNine$Outbound | OneHundredAndFiftyOne$Outbound | OneHundredAndFiftyTwo$Outbound - | OneHundredAndFiftyFour$Outbound + | OneHundredAndFiftyThree$Outbound + | OneHundredAndFiftyFive$Outbound | Three$Outbound | Fifteen$Outbound | Twenty$Outbound @@ -29876,9 +30107,11 @@ export type UserEvent$Outbound = { | OneHundredAndTwentyNine$Outbound | OneHundredAndThirty$Outbound | OneHundredAndThirtyEight$Outbound - | OneHundredAndFortyThree$Outbound - | OneHundredAndFortyNine$Outbound - | OneHundredAndFiftyThree$Outbound + | OneHundredAndFortyFour$Outbound + | OneHundredAndFifty$Outbound + | OneHundredAndFiftyFour$Outbound + | OneHundredAndFiftySix$Outbound + | OneHundredAndFiftySeven$Outbound | Payload1$Outbound | Seven$Outbound | Eight$Outbound @@ -29939,12 +30172,12 @@ export const UserEvent$outboundSchema: z.ZodType< z.lazy(() => SixtyFour$outboundSchema), z.lazy(() => SixtySeven$outboundSchema), z.lazy(() => OneHundredAndThirtyOne$outboundSchema), - z.lazy(() => OneHundredAndFiftyEight$outboundSchema), + z.lazy(() => OneHundredAndSixtyOne$outboundSchema), z.lazy(() => Payload2$outboundSchema), z.lazy(() => FortyFive$outboundSchema), z.lazy(() => SixtyEight$outboundSchema), z.lazy(() => OneHundredAndOne$outboundSchema), - z.lazy(() => OneHundredAndFortyOne$outboundSchema), + z.lazy(() => OneHundredAndFortyTwo$outboundSchema), z.lazy(() => Twelve$outboundSchema), z.lazy(() => Sixteen$outboundSchema), z.lazy(() => TwentyNine$outboundSchema), @@ -29968,13 +30201,13 @@ export const UserEvent$outboundSchema: z.ZodType< z.lazy(() => OneHundredAndNine$outboundSchema), z.lazy(() => OneHundredAndThirtyThree$outboundSchema), z.lazy(() => OneHundredAndThirtyFour$outboundSchema), - z.lazy(() => OneHundredAndForty$outboundSchema), - z.lazy(() => OneHundredAndFortyTwo$outboundSchema), - z.lazy(() => OneHundredAndFortyFour$outboundSchema), - z.lazy(() => OneHundredAndFortySeven$outboundSchema), - z.lazy(() => OneHundredAndFiftyFive$outboundSchema), - z.lazy(() => OneHundredAndFiftySix$outboundSchema), - z.lazy(() => OneHundredAndFiftySeven$outboundSchema), + z.lazy(() => OneHundredAndFortyOne$outboundSchema), + z.lazy(() => OneHundredAndFortyThree$outboundSchema), + z.lazy(() => OneHundredAndFortyFive$outboundSchema), + z.lazy(() => OneHundredAndFortyEight$outboundSchema), + z.lazy(() => OneHundredAndFiftyEight$outboundSchema), + z.lazy(() => OneHundredAndFiftyNine$outboundSchema), + z.lazy(() => OneHundredAndSixty$outboundSchema), z.lazy(() => Four$outboundSchema), z.lazy(() => Five$outboundSchema), z.lazy(() => Six$outboundSchema), @@ -30014,13 +30247,14 @@ export const UserEvent$outboundSchema: z.ZodType< z.lazy(() => OneHundredAndThirtySix$outboundSchema), z.lazy(() => OneHundredAndThirtySeven$outboundSchema), z.lazy(() => OneHundredAndThirtyNine$outboundSchema), - z.lazy(() => OneHundredAndFortyFive$outboundSchema), + z.lazy(() => OneHundredAndForty$outboundSchema), z.lazy(() => OneHundredAndFortySix$outboundSchema), - z.lazy(() => OneHundredAndFortyEight$outboundSchema), - z.lazy(() => OneHundredAndFifty$outboundSchema), + z.lazy(() => OneHundredAndFortySeven$outboundSchema), + z.lazy(() => OneHundredAndFortyNine$outboundSchema), z.lazy(() => OneHundredAndFiftyOne$outboundSchema), z.lazy(() => OneHundredAndFiftyTwo$outboundSchema), - z.lazy(() => OneHundredAndFiftyFour$outboundSchema), + z.lazy(() => OneHundredAndFiftyThree$outboundSchema), + z.lazy(() => OneHundredAndFiftyFive$outboundSchema), z.lazy(() => Three$outboundSchema), z.lazy(() => Fifteen$outboundSchema), z.lazy(() => Twenty$outboundSchema), @@ -30062,9 +30296,11 @@ export const UserEvent$outboundSchema: z.ZodType< z.lazy(() => OneHundredAndTwentyNine$outboundSchema), z.lazy(() => OneHundredAndThirty$outboundSchema), z.lazy(() => OneHundredAndThirtyEight$outboundSchema), - z.lazy(() => OneHundredAndFortyThree$outboundSchema), - z.lazy(() => OneHundredAndFortyNine$outboundSchema), - z.lazy(() => OneHundredAndFiftyThree$outboundSchema), + z.lazy(() => OneHundredAndFortyFour$outboundSchema), + z.lazy(() => OneHundredAndFifty$outboundSchema), + z.lazy(() => OneHundredAndFiftyFour$outboundSchema), + z.lazy(() => OneHundredAndFiftySix$outboundSchema), + z.lazy(() => OneHundredAndFiftySeven$outboundSchema), z.lazy(() => Payload1$outboundSchema), z.lazy(() => Seven$outboundSchema), z.lazy(() => Eight$outboundSchema), diff --git a/src/sdk/integrations.ts b/src/sdk/integrations.ts index a8134799..3556f274 100644 --- a/src/sdk/integrations.ts +++ b/src/sdk/integrations.ts @@ -3,11 +3,18 @@ */ import { deploymentsUpdateIntegrationDeploymentAction } from "../funcs/deploymentsUpdateIntegrationDeploymentAction.js"; +import { integrationsConnectIntegrationResourceToProject } from "../funcs/integrationsConnectIntegrationResourceToProject.js"; +import { integrationsCreateIntegrationStoreDirect } from "../funcs/integrationsCreateIntegrationStoreDirect.js"; import { integrationsDeleteConfiguration } from "../funcs/integrationsDeleteConfiguration.js"; import { integrationsGetConfiguration } from "../funcs/integrationsGetConfiguration.js"; import { integrationsGetConfigurationProducts } from "../funcs/integrationsGetConfigurationProducts.js"; import { integrationsGetConfigurations } from "../funcs/integrationsGetConfigurations.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import { ConnectIntegrationResourceToProjectRequest } from "../models/connectintegrationresourcetoprojectop.js"; +import { + CreateIntegrationStoreDirectRequest, + CreateIntegrationStoreDirectResponseBody, +} from "../models/createintegrationstoredirectop.js"; import { DeleteConfigurationRequest } from "../models/deleteconfigurationop.js"; import { GetConfigurationRequest, @@ -42,6 +49,23 @@ export class Integrations extends ClientSDK { )); } + /** + * Connect integration resource to project + * + * @remarks + * Connects an integration resource to a Vercel project. This endpoint establishes a connection between a provisioned integration resource (from storage APIs like `POST /v1/storage/stores/integration/direct`) and a specific Vercel project. + */ + async connectIntegrationResourceToProject( + request: ConnectIntegrationResourceToProjectRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsConnectIntegrationResourceToProject( + this, + request, + options, + )); + } + /** * Get configurations for the authenticated user or team * @@ -109,4 +133,21 @@ export class Integrations extends ClientSDK { options, )); } + + /** + * Create integration store (free and paid plans) + * + * @remarks + * Creates an integration store for both FREE and PAID billing plans. This simplified endpoint automatically provisions real integration storage resources while handling billing complexity behind the scenes. It supports both free and paid billing plans with automatic authorization creation for paid resources. ## How it works 1. Validates the integration configuration and product 2. For free resources: Auto-discovers available free billing plans 3. For paid resources: Creates billing authorization inline using provided billingPlanId 4. Provisions real resources through the Vercel Marketplace 5. Returns the created store with connection details ## Workflow Before using this endpoint, discover available products and billing plans: 1. List your configurations: `GET /v1/integrations/configurations` 2. Get products for a configuration: `GET /v1/integrations/configuration/{id}/products` 3. Get billing plans for a product: `GET /integrations/integration/{integrationId}/products/{productId}/plans` 4. Review the `metadataSchema` for each product to understand required metadata 5. Create storage with discovered product: `POST /v1/storage/stores/integration/direct` ## Usage Patterns - **Free resources**: Omit `billingPlanId` - endpoint will auto-discover free plans - **Paid resources**: Provide `billingPlanId` from billing plans discovery - **Prepayment plans**: Also provide `prepaymentAmountCents` for variable amount plans ## Limitations - **Admin access required**: Only integration configuration admins can create stores - **Storage limits apply**: Subject to your team's storage quotas - **Payment method required**: For paid plans, ensure valid payment method is configured ## Error Responses - `400 Bad Request`: Invalid input, no plans available, or billing issues - `403 Forbidden`: Insufficient permissions (non-admin users) - `404 Not Found`: Integration configuration or product not found - `429 Too Many Requests`: Rate limit exceeded + */ + async createIntegrationStoreDirect( + request: CreateIntegrationStoreDirectRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(integrationsCreateIntegrationStoreDirect( + this, + request, + options, + )); + } } diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index 534ae7b8..07a928de 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -2,7 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { ClientSDK } from "../lib/sdks.js"; +import { getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans } from "../funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js"; +import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import { + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody, +} from "../models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js"; +import { unwrapAsync } from "../types/fp.js"; import { AccessGroups } from "./accessgroups.js"; import { Aliases } from "./aliases.js"; import { Artifacts } from "./artifacts.js"; @@ -136,4 +142,20 @@ export class Vercel extends ClientSDK { get certs(): Certs { return (this._certs ??= new Certs(this._options)); } + + async getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + request: + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansRequest, + options?: RequestOptions, + ): Promise< + GetV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlansResponseBody + > { + return unwrapAsync( + getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans( + this, + request, + options, + ), + ); + } } diff --git a/vercel-spec.json b/vercel-spec.json index dd88a9be..ba67a3fd 100644 --- a/vercel-spec.json +++ b/vercel-spec.json @@ -4354,22 +4354,28 @@ "nullable": true, "properties": { "expirationDays": { - "type": "number" + "type": "number", + "description": "Number of days to keep non-production deployments (mostly preview deployments) before soft deletion." }, "expirationDaysProduction": { - "type": "number" + "type": "number", + "description": "Number of days to keep production deployments before soft deletion." }, "expirationDaysCanceled": { - "type": "number" + "type": "number", + "description": "Number of days to keep canceled deployments before soft deletion." }, "expirationDaysErrored": { - "type": "number" + "type": "number", + "description": "Number of days to keep errored deployments before soft deletion." }, "deploymentsToKeep": { - "type": "number" + "type": "number", + "description": "Minimum number of production deployments to keep for this project, even if they are over the production expiration limit." } }, - "type": "object" + "type": "object", + "description": "Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects." }, "devCommand": { "nullable": true, @@ -10603,6 +10609,9 @@ "description": "Queue trigger event for Vercel's queue system. Handles \"queue/v1beta\" events with queue-specific configuration." }, "type": "array" + }, + "supportsCancellation": { + "type": "boolean" } }, "type": "object" @@ -11407,8 +11416,7 @@ { "properties": { "isDefaultApp": { - "type": "boolean", - "description": "Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends." + "type": "boolean" }, "defaultAppProjectName": { "type": "string", @@ -11447,6 +11455,9 @@ }, { "properties": { + "isDefaultApp": { + "type": "boolean" + }, "applications": { "additionalProperties": { "properties": { @@ -11469,13 +11480,19 @@ "productionHost" ], "type": "object", - "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment." + "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out." }, "type": "object", - "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment." + "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out." }, - "isDefaultApp": { - "type": "boolean" + "mfeConfigUploadState": { + "type": "string", + "enum": [ + "error", + "success", + "no_config" + ], + "description": "The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet." }, "defaultAppProjectName": { "type": "string", @@ -13053,11 +13070,11 @@ "status": { "type": "string", "enum": [ - "error", - "timeout", "skipped", "pending", - "ready" + "ready", + "error", + "timeout" ] }, "startedAt": { @@ -13236,8 +13253,8 @@ "readyState": { "type": "string", "enum": [ - "ERROR", "BUILDING", + "ERROR", "INITIALIZING", "READY" ] @@ -14132,7 +14149,7 @@ }, "type": "array" }, - "aliasWarning": { + "aliasError": { "nullable": true, "properties": { "code": { @@ -14140,12 +14157,6 @@ }, "message": { "type": "string" - }, - "link": { - "type": "string" - }, - "action": { - "type": "string" } }, "required": [ @@ -14154,7 +14165,11 @@ ], "type": "object" }, - "aliasError": { + "aliasFinal": { + "nullable": true, + "type": "string" + }, + "aliasWarning": { "nullable": true, "properties": { "code": { @@ -14162,6 +14177,12 @@ }, "message": { "type": "string" + }, + "link": { + "type": "string" + }, + "action": { + "type": "string" } }, "required": [ @@ -14170,10 +14191,6 @@ ], "type": "object" }, - "aliasFinal": { - "nullable": true, - "type": "string" - }, "automaticAliases": { "items": { "type": "string" @@ -14183,13 +14200,8 @@ "buildErrorAt": { "type": "number" }, - "checksState": { - "type": "string", - "enum": [ - "registered", - "running", - "completed" - ] + "canceledAt": { + "type": "number" }, "checksConclusion": { "type": "string", @@ -14200,13 +14212,18 @@ "canceled" ] }, + "checksState": { + "type": "string", + "enum": [ + "registered", + "running", + "completed" + ] + }, "defaultRoute": { "type": "string", "description": "Computed field that is only available for deployments with a microfrontend configuration." }, - "canceledAt": { - "type": "number" - }, "errorCode": { "type": "string" }, @@ -14219,24 +14236,6 @@ "originCacheRegion": { "type": "string" }, - "readySubstate": { - "type": "string", - "enum": [ - "STAGED", - "ROLLING", - "PROMOTED" - ], - "description": "Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic" - }, - "softDeletedByRetention": { - "type": "boolean" - }, - "undeletedAt": { - "type": "number" - }, - "url": { - "type": "string" - }, "oidcTokenClaims": { "properties": { "iss": { @@ -14280,6 +14279,24 @@ ], "type": "object" }, + "readySubstate": { + "type": "string", + "enum": [ + "STAGED", + "ROLLING", + "PROMOTED" + ], + "description": "Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic" + }, + "softDeletedByRetention": { + "type": "boolean" + }, + "undeletedAt": { + "type": "number" + }, + "url": { + "type": "string" + }, "projectId": { "type": "string" }, @@ -14306,15 +14323,15 @@ "functionType": { "type": "string", "enum": [ - "standard", - "fluid" + "fluid", + "standard" ] }, "functionMemoryType": { "type": "string", "enum": [ - "standard_legacy", "standard", + "standard_legacy", "performance" ] }, @@ -14410,6 +14427,9 @@ "description": "Queue trigger event for Vercel's queue system. Handles \"queue/v1beta\" events with queue-specific configuration." }, "type": "array" + }, + "supportsCancellation": { + "type": "boolean" } }, "type": "object" @@ -14803,8 +14823,8 @@ "op": { "type": "string", "enum": [ - "set", "append", + "set", "delete" ] }, @@ -14934,12 +14954,12 @@ "handle": { "type": "string", "enum": [ - "filesystem", "error", + "filesystem", "hit", "miss", - "resource", - "rewrite" + "rewrite", + "resource" ] }, "src": { @@ -15038,8 +15058,7 @@ { "properties": { "isDefaultApp": { - "type": "boolean", - "description": "Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends." + "type": "boolean" }, "defaultAppProjectName": { "type": "string", @@ -15078,6 +15097,9 @@ }, { "properties": { + "isDefaultApp": { + "type": "boolean" + }, "applications": { "additionalProperties": { "properties": { @@ -15100,13 +15122,19 @@ "productionHost" ], "type": "object", - "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment." + "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out." }, "type": "object", - "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment." + "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out." }, - "isDefaultApp": { - "type": "boolean" + "mfeConfigUploadState": { + "type": "string", + "enum": [ + "error", + "success", + "no_config" + ], + "description": "The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet." }, "defaultAppProjectName": { "type": "string", @@ -15159,6 +15187,58 @@ "type": "string", "description": "Since November 2023 this field defines a Secure Compute network that will only be used to deploy passive lambdas to (as in passiveRegions)" }, + "flags": { + "oneOf": [ + { + "properties": { + "definitions": { + "additionalProperties": { + "properties": { + "options": { + "items": { + "properties": { + "value": { + "$ref": "#/components/schemas/FlagJSONValue" + }, + "label": { + "type": "string" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "type": "array" + }, + "url": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "type": "object" + }, + "type": "object" + } + }, + "required": [ + "definitions" + ], + "type": "object", + "description": "Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags." + }, + { + "items": { + "type": "object", + "description": "Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags." + }, + "type": "array", + "description": "Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags." + } + ] + }, "gitRepo": { "nullable": true, "oneOf": [ @@ -15194,8 +15274,8 @@ "ownerType": { "type": "string", "enum": [ - "user", - "team" + "team", + "user" ] } }, @@ -15247,8 +15327,8 @@ "ownerType": { "type": "string", "enum": [ - "user", - "team" + "team", + "user" ] } }, @@ -15301,8 +15381,8 @@ "ownerType": { "type": "string", "enum": [ - "user", - "team" + "team", + "user" ] } }, @@ -15321,58 +15401,6 @@ "type": "object" } ] - }, - "flags": { - "oneOf": [ - { - "properties": { - "definitions": { - "additionalProperties": { - "properties": { - "options": { - "items": { - "properties": { - "value": { - "$ref": "#/components/schemas/FlagJSONValue" - }, - "label": { - "type": "string" - } - }, - "required": [ - "value" - ], - "type": "object" - }, - "type": "array" - }, - "url": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "type": "object" - }, - "type": "object" - } - }, - "required": [ - "definitions" - ], - "type": "object", - "description": "Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags." - }, - { - "items": { - "type": "object", - "description": "Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags." - }, - "type": "array", - "description": "Flags defined in the Build Output API, used by this deployment. Primarily used by the Toolbar to know about the used flags." - } - ] } }, "required": [ @@ -16215,11 +16243,11 @@ "status": { "type": "string", "enum": [ - "error", - "timeout", "skipped", "pending", - "ready" + "ready", + "error", + "timeout" ] }, "startedAt": { @@ -16398,8 +16426,8 @@ "readyState": { "type": "string", "enum": [ - "ERROR", "BUILDING", + "ERROR", "INITIALIZING", "READY" ] @@ -16464,10 +16492,10 @@ "name": { "type": "string" }, - "slug": { + "avatar": { "type": "string" }, - "avatar": { + "slug": { "type": "string" } }, @@ -17535,6 +17563,9 @@ "description": "Queue trigger event for Vercel's queue system. Handles \"queue/v1beta\" events with queue-specific configuration." }, "type": "array" + }, + "supportsCancellation": { + "type": "boolean" } }, "type": "object" @@ -17950,8 +17981,8 @@ "op": { "type": "string", "enum": [ - "set", "append", + "set", "delete" ] }, @@ -18081,12 +18112,12 @@ "handle": { "type": "string", "enum": [ - "filesystem", "error", + "filesystem", "hit", "miss", - "resource", - "rewrite" + "rewrite", + "resource" ] }, "src": { @@ -18165,8 +18196,8 @@ "ownerType": { "type": "string", "enum": [ - "user", - "team" + "team", + "user" ] } }, @@ -18218,8 +18249,8 @@ "ownerType": { "type": "string", "enum": [ - "user", - "team" + "team", + "user" ] } }, @@ -18272,8 +18303,8 @@ "ownerType": { "type": "string", "enum": [ - "user", - "team" + "team", + "user" ] } }, @@ -18350,8 +18381,7 @@ { "properties": { "isDefaultApp": { - "type": "boolean", - "description": "Whether this project is the default application for the microfrontends group. The default application is the one that is used as the top level shell for the microfrontends group and hosts the other microfrontends." + "type": "boolean" }, "defaultAppProjectName": { "type": "string", @@ -18390,6 +18420,9 @@ }, { "properties": { + "isDefaultApp": { + "type": "boolean" + }, "applications": { "additionalProperties": { "properties": { @@ -18412,13 +18445,19 @@ "productionHost" ], "type": "object", - "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment." + "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out." }, "type": "object", - "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment." + "description": "A map of the other applications that are part of this group. Only defined on the default application. The field is set after deployments have been created, so can be undefined, but should be there for a successful deployment. Note: this field will be removed when MFE alias routing is fully rolled out." }, - "isDefaultApp": { - "type": "boolean" + "mfeConfigUploadState": { + "type": "string", + "enum": [ + "error", + "success", + "no_config" + ], + "description": "The result of the microfrontends config upload during deployment creation. Only set for default app deployments. - `success` - The config was uploaded successfully. - `error` - The config upload failed. - `no_config` - No config was found to upload. - `undefined` - The config upload has not been attempted yet." }, "defaultAppProjectName": { "type": "string", @@ -18466,15 +18505,15 @@ "functionType": { "type": "string", "enum": [ - "standard", - "fluid" + "fluid", + "standard" ] }, "functionMemoryType": { "type": "string", "enum": [ - "standard_legacy", "standard", + "standard_legacy", "performance" ] }, @@ -18922,11 +18961,6 @@ }, "period": { "type": "number", - "enum": [ - 1, - 2, - 10 - ], "description": "The number of years the domain could be held before paying again.", "example": 1 } @@ -18963,6 +18997,9 @@ }, "403": { "description": "You do not have permission to access this resource." + }, + "500": { + "description": "" } }, "parameters": [ @@ -24462,6 +24499,313 @@ ] } }, + "/v1/integrations/integration/{integrationIdOrSlug}/products/{productIdOrSlug}/plans": { + "get": { + "description": "", + "security": [], + "tags": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "properties": { + "plans": { + "items": { + "properties": { + "type": { + "type": "string", + "enum": [ + "prepayment", + "subscription" + ] + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "scope": { + "type": "string", + "enum": [ + "installation", + "resource" + ] + }, + "description": { + "type": "string" + }, + "paymentMethodRequired": { + "type": "boolean" + }, + "preauthorizationAmount": { + "type": "number" + }, + "initialCharge": { + "type": "string" + }, + "minimumAmount": { + "type": "string" + }, + "maximumAmount": { + "type": "string" + }, + "maximumAmountAutoPurchasePerPeriod": { + "type": "string" + }, + "cost": { + "type": "string" + }, + "details": { + "items": { + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label" + ], + "type": "object" + }, + "type": "array" + }, + "highlightedDetails": { + "items": { + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label" + ], + "type": "object" + }, + "type": "array" + }, + "quote": { + "items": { + "properties": { + "line": { + "type": "string" + }, + "amount": { + "type": "string" + } + }, + "required": [ + "line", + "amount" + ], + "type": "object" + }, + "type": "array" + }, + "effectiveDate": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "required": [ + "type", + "id", + "name", + "scope", + "description", + "paymentMethodRequired" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "plans" + ], + "type": "object" + } + } + } + }, + "400": { + "description": "One of the provided values in the request query is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelBadRequestError" + } + } + } + }, + "401": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelForbiddenError" + } + } + } + }, + "403": { + "description": "You do not have permission to access this resource." + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelNotFoundError" + } + } + } + } + }, + "parameters": [ + { + "name": "integrationIdOrSlug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "productIdOrSlug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "metadata", + "in": "query", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/v1/integrations/installations/{integrationConfigurationId}/resources/{resourceId}/connections": { + "post": { + "description": "Connects an integration resource to a Vercel project. This endpoint establishes a connection between a provisioned integration resource (from storage APIs like `POST /v1/storage/stores/integration/direct`) and a specific Vercel project.", + "operationId": "connectIntegrationResourceToProject", + "security": [ + { + "bearerToken": [] + } + ], + "summary": "Connect integration resource to project", + "tags": [ + "integrations" + ], + "responses": { + "201": { + "description": "" + }, + "400": { + "description": "One of the provided values in the request body is invalid.\nOne of the provided values in the request query is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelBadRequestError" + } + } + } + }, + "401": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelForbiddenError" + } + } + } + }, + "403": { + "description": "You do not have permission to access this resource." + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelNotFoundError" + } + } + } + } + }, + "parameters": [ + { + "name": "integrationConfigurationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "resourceId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "The Team identifier to perform the request on behalf of.", + "in": "query", + "name": "teamId", + "schema": { + "type": "string", + "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" + } + }, + { + "description": "The Team slug to perform the request on behalf of.", + "in": "query", + "name": "slug", + "schema": { + "type": "string", + "example": "my-team-url-slug" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "projectId" + ], + "properties": { + "projectId": { + "type": "string" + } + } + } + } + } + } + } + }, "/v1/installations/{integrationConfigurationId}/account": { "get": { "description": "Fetches the best account or user’s contact info", @@ -25924,6 +26268,9 @@ } } } + }, + "409": { + "description": "" } }, "parameters": [ @@ -26417,6 +26764,9 @@ } } } + }, + "409": { + "description": "" } }, "parameters": [ @@ -26437,303 +26787,307 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "refund" + ] + }, + "reason": { + "type": "string", + "description": "Refund reason." + }, + "total": { + "description": "The total amount to be refunded. Must be less than or equal to the total amount of the invoice.", + "type": "string", + "pattern": "^[0-9]+(\\\\.[0-9]+)?$" + } + }, + "required": [ + "action", + "reason", + "total" + ], + "additionalProperties": false + } + ] + } + } + }, + "required": true + } + } + }, + "/v1/installations/{integrationConfigurationId}/billing/balance": { + "post": { + "description": "Sends the prepayment balances. The partner should do this at least once a day and ideally once per hour. \u003cbr/\u003e Use the `credentials.access_token` we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.", + "operationId": "submit-prepayment-balances", + "security": [ + { + "bearerToken": [] + } + ], + "summary": "Submit Prepayment Balances", + "tags": [ + "marketplace" + ], + "responses": { + "201": { + "description": "" + }, + "400": { + "description": "One of the provided values in the request body is invalid.\nOne of the provided values in the request query is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelBadRequestError" + } + } + } + }, + "401": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelForbiddenError" + } + } + } + }, + "403": { + "description": "You do not have permission to access this resource." + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelNotFoundError" + } + } + } + } + }, + "parameters": [ + { + "name": "integrationConfigurationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { - "action": { - "type": "string", - "enum": [ - "refund" - ] - }, - "reason": { + "timestamp": { + "description": "Server time of your integration, used to determine the most recent data for race conditions \u0026 updates. Only the latest usage data for a given day, week, and month will be kept.", "type": "string", - "description": "Refund reason." + "format": "date-time" }, - "total": { - "description": "The total amount to be refunded. Must be less than or equal to the total amount of the invoice.", - "type": "string", - "pattern": "^[0-9]+(\\\\.[0-9]+)?$" + "balances": { + "type": "array", + "items": { + "type": "object", + "description": "A credit balance for a particular token type", + "properties": { + "resourceId": { + "type": "string", + "description": "Partner's resource ID, exclude if credits are tied to the installation and not an individual resource." + }, + "credit": { + "type": "string", + "description": "A human-readable description of the credits the user currently has, e.g. \\\"2,000 Tokens\\\"" + }, + "nameLabel": { + "type": "string", + "description": "The name of the credits, for display purposes, e.g. \\\"Tokens\\\"" + }, + "currencyValueInCents": { + "type": "number", + "description": "The dollar value of the credit balance, in USD and provided in cents, which is used to trigger automatic purchase thresholds." + } + }, + "required": [ + "currencyValueInCents" + ], + "additionalProperties": false + } } }, "required": [ - "action", - "reason", - "total" + "timestamp", + "balances" ], "additionalProperties": false } } + } + } + } + }, + "/v1/installations/{integrationConfigurationId}/products/{integrationProductIdOrSlug}/resources/{resourceId}/secrets": { + "put": { + "description": "This endpoint is deprecated and replaced with the endpoint [Update Resource Secrets](#update-resource-secrets). \u003cbr/\u003e This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.\u003cbr/\u003e \u003cbr/\u003e Use cases for this endpoint:\u003cbr/\u003e \u003cbr/\u003e - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.\u003cbr/\u003e", + "operationId": "update-resource-secrets", + "security": [ + { + "bearerToken": [] + } + ], + "summary": "Update Resource Secrets (Deprecated)", + "tags": [ + "marketplace" + ], + "responses": { + "201": { + "description": "" + }, + "400": { + "description": "One of the provided values in the request body is invalid.\nOne of the provided values in the request query is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelBadRequestError" + } + } + } + }, + "401": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelForbiddenError" + } + } + } + }, + "403": { + "description": "You do not have permission to access this resource." + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelNotFoundError" + } + } + } + } + }, + "parameters": [ + { + "name": "integrationConfigurationId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "integrationProductIdOrSlug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "resourceId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "secrets" + ], + "properties": { + "secrets": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "environmentOverrides": { + "type": "object", + "description": "A map of environments to override values for the secret, used for setting different values across deployments in production, preview, and development environments. Note: the same value will be used for all deployments in the given environment.", + "properties": { + "development": { + "type": "string", + "description": "Value used for development environment." + }, + "preview": { + "type": "string", + "description": "Value used for preview environment." + }, + "production": { + "type": "string", + "description": "Value used for production environment." + } + } + } + }, + "additionalProperties": false + } + }, + "partial": { + "type": "boolean", + "description": "If true, will only update the provided secrets" + } + }, + "additionalProperties": false + } + } }, "required": true } } }, - "/v1/installations/{integrationConfigurationId}/billing/balance": { - "post": { - "description": "Sends the prepayment balances. The partner should do this at least once a day and ideally once per hour. \u003cbr/\u003e Use the `credentials.access_token` we provided in the [Upsert Installation](#upsert-installation) body to authorize this request.", - "operationId": "submit-prepayment-balances", + "/v1/installations/{integrationConfigurationId}/resources/{resourceId}/secrets": { + "put": { + "description": "This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.\u003cbr/\u003e \u003cbr/\u003e Use cases for this endpoint:\u003cbr/\u003e \u003cbr/\u003e - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.\u003cbr/\u003e", + "operationId": "update-resource-secrets-by-id", "security": [ { "bearerToken": [] } ], - "summary": "Submit Prepayment Balances", - "tags": [ - "marketplace" - ], - "responses": { - "201": { - "description": "" - }, - "400": { - "description": "One of the provided values in the request body is invalid.\nOne of the provided values in the request query is invalid.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelBadRequestError" - } - } - } - }, - "401": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelForbiddenError" - } - } - } - }, - "403": { - "description": "You do not have permission to access this resource." - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelNotFoundError" - } - } - } - } - }, - "parameters": [ - { - "name": "integrationConfigurationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "timestamp": { - "description": "Server time of your integration, used to determine the most recent data for race conditions \u0026 updates. Only the latest usage data for a given day, week, and month will be kept.", - "type": "string", - "format": "date-time" - }, - "balances": { - "type": "array", - "items": { - "type": "object", - "description": "A credit balance for a particular token type", - "properties": { - "resourceId": { - "type": "string", - "description": "Partner's resource ID, exclude if credits are tied to the installation and not an individual resource." - }, - "credit": { - "type": "string", - "description": "A human-readable description of the credits the user currently has, e.g. \\\"2,000 Tokens\\\"" - }, - "nameLabel": { - "type": "string", - "description": "The name of the credits, for display purposes, e.g. \\\"Tokens\\\"" - }, - "currencyValueInCents": { - "type": "number", - "description": "The dollar value of the credit balance, in USD and provided in cents, which is used to trigger automatic purchase thresholds." - } - }, - "required": [ - "currencyValueInCents" - ], - "additionalProperties": false - } - } - }, - "required": [ - "timestamp", - "balances" - ], - "additionalProperties": false - } - } - } - } - } - }, - "/v1/installations/{integrationConfigurationId}/products/{integrationProductIdOrSlug}/resources/{resourceId}/secrets": { - "put": { - "description": "This endpoint is deprecated and replaced with the endpoint [Update Resource Secrets](#update-resource-secrets). \u003cbr/\u003e This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.\u003cbr/\u003e \u003cbr/\u003e Use cases for this endpoint:\u003cbr/\u003e \u003cbr/\u003e - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.\u003cbr/\u003e", - "operationId": "update-resource-secrets", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Update Resource Secrets (Deprecated)", - "tags": [ - "marketplace" - ], - "responses": { - "201": { - "description": "" - }, - "400": { - "description": "One of the provided values in the request body is invalid.\nOne of the provided values in the request query is invalid.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelBadRequestError" - } - } - } - }, - "401": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelForbiddenError" - } - } - } - }, - "403": { - "description": "You do not have permission to access this resource." - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelNotFoundError" - } - } - } - } - }, - "parameters": [ - { - "name": "integrationConfigurationId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "integrationProductIdOrSlug", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "resourceId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "secrets" - ], - "properties": { - "secrets": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "environmentOverrides": { - "type": "object", - "description": "A map of environments to override values for the secret, used for setting different values across deployments in production, preview, and development environments. Note: the same value will be used for all deployments in the given environment.", - "properties": { - "development": { - "type": "string", - "description": "Value used for development environment." - }, - "preview": { - "type": "string", - "description": "Value used for preview environment." - }, - "production": { - "type": "string", - "description": "Value used for production environment." - } - } - } - }, - "additionalProperties": false - } - }, - "partial": { - "type": "boolean", - "description": "If true, will only update the provided secrets" - } - }, - "additionalProperties": false - } - } - }, - "required": true - } - } - }, - "/v1/installations/{integrationConfigurationId}/resources/{resourceId}/secrets": { - "put": { - "description": "This endpoint updates the secrets of a resource. If a resource has projects connected, the connected secrets are updated with the new secrets. The old secrets may still be used by existing connected projects because they are not automatically redeployed. Redeployment is a manual action and must be completed by the user. All new project connections will use the new secrets.\u003cbr/\u003e \u003cbr/\u003e Use cases for this endpoint:\u003cbr/\u003e \u003cbr/\u003e - Resetting the credentials of a database in the partner. If the user requests the credentials to be updated in the partner’s application, the partner post the new set of secrets to Vercel, the user should redeploy their application and the expire the old credentials.\u003cbr/\u003e", - "operationId": "update-resource-secrets-by-id", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Update Resource Secrets", + "summary": "Update Resource Secrets", "tags": [ "marketplace" ], @@ -26921,7 +27275,8 @@ "marketplace", "deploy-button", "external", - "v0" + "v0", + "resource-claims" ], "description": "Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.", "example": "marketplace" @@ -27108,7 +27463,8 @@ "marketplace", "deploy-button", "external", - "v0" + "v0", + "resource-claims" ], "description": "Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.", "example": "marketplace" @@ -27353,7 +27709,8 @@ "marketplace", "deploy-button", "external", - "v0" + "v0", + "resource-claims" ], "description": "Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.", "example": "marketplace" @@ -27693,7 +28050,8 @@ "marketplace", "deploy-button", "external", - "v0" + "v0", + "resource-claims" ], "description": "Source defines where the configuration was installed from. It is used to analyze user engagement for integration installations in product metrics.", "example": "marketplace" @@ -28231,34 +28589,34 @@ "minLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "maxLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "pattern": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "default": { @@ -28941,34 +29299,34 @@ "minLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "maxLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "pattern": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "default": { @@ -29126,34 +29484,34 @@ "minLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "maxLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "pattern": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "default": { @@ -29464,12 +29822,12 @@ { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, { @@ -29477,12 +29835,12 @@ "value": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "disabled": { @@ -29551,34 +29909,34 @@ "minLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "maxLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "pattern": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "default": { @@ -29736,34 +30094,34 @@ "minLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "maxLength": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "pattern": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "default": { @@ -29852,12 +30210,12 @@ { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, { @@ -29865,12 +30223,12 @@ "value": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "disabled": { @@ -30056,12 +30414,12 @@ "items": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "type": "array" @@ -30070,12 +30428,12 @@ "items": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "type": "array" @@ -30094,12 +30452,12 @@ "value": { "type": "object", "properties": { - "__@BRAND@447943": { + "__@BRAND@502540": { "type": "object" } }, "required": [ - "__@BRAND@447943" + "__@BRAND@502540" ] }, "disabled": { @@ -30347,6 +30705,9 @@ } } }, + "403": { + "description": "" + }, "404": { "description": "", "content": { @@ -32472,22 +32833,28 @@ "nullable": true, "properties": { "expirationDays": { - "type": "number" + "type": "number", + "description": "Number of days to keep non-production deployments (mostly preview deployments) before soft deletion." }, "expirationDaysProduction": { - "type": "number" + "type": "number", + "description": "Number of days to keep production deployments before soft deletion." }, "expirationDaysCanceled": { - "type": "number" + "type": "number", + "description": "Number of days to keep canceled deployments before soft deletion." }, "expirationDaysErrored": { - "type": "number" + "type": "number", + "description": "Number of days to keep errored deployments before soft deletion." }, "deploymentsToKeep": { - "type": "number" + "type": "number", + "description": "Minimum number of production deployments to keep for this project, even if they are over the production expiration limit." } }, - "type": "object" + "type": "object", + "description": "Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects." }, "devCommand": { "nullable": true, @@ -36346,6 +36713,20 @@ "example": "1" } }, + { + "name": "sortByElasticConcurrency", + "description": "Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first", + "in": "query", + "schema": { + "description": "Sort results by elastic concurrency status. desc = enabled projects first, asc = disabled projects first", + "type": "string", + "enum": [ + "desc", + "asc" + ], + "example": "desc" + } + }, { "description": "The Team identifier to perform the request on behalf of.", "in": "query", @@ -36630,22 +37011,28 @@ "nullable": true, "properties": { "expirationDays": { - "type": "number" + "type": "number", + "description": "Number of days to keep non-production deployments (mostly preview deployments) before soft deletion." }, "expirationDaysProduction": { - "type": "number" + "type": "number", + "description": "Number of days to keep production deployments before soft deletion." }, "expirationDaysCanceled": { - "type": "number" + "type": "number", + "description": "Number of days to keep canceled deployments before soft deletion." }, "expirationDaysErrored": { - "type": "number" + "type": "number", + "description": "Number of days to keep errored deployments before soft deletion." }, "deploymentsToKeep": { - "type": "number" + "type": "number", + "description": "Minimum number of production deployments to keep for this project, even if they are over the production expiration limit." } }, - "type": "object" + "type": "object", + "description": "Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects." }, "devCommand": { "nullable": true, @@ -36692,10 +37079,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -37697,18 +38084,241 @@ "github-limited" ] }, + "repo": { + "type": "string" + }, + "repoId": { + "type": "number" + }, "updatedAt": { "type": "number" }, "createdAt": { "type": "number" }, - "repo": { + "org": { + "type": "string" + }, + "repoOwnerId": { + "type": "number", + "description": "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." + }, + "deployHooks": { + "items": { + "properties": { + "createdAt": { + "type": "number" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "ref", + "url" + ], + "type": "object" + }, + "type": "array" + }, + "gitCredentialId": { + "type": "string" + }, + "sourceless": { + "type": "boolean" + }, + "productionBranch": { + "type": "string" + } + }, + "required": [ + "type", + "org", + "gitCredentialId", + "productionBranch", + "deployHooks" + ], + "type": "object" + }, + { + "properties": { + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "projectNameWithNamespace": { + "type": "string" + }, + "projectNamespace": { + "type": "string" + }, + "projectOwnerId": { + "type": "number", + "description": "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": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "gitlab" + ] + }, + "createdAt": { + "type": "number" + }, + "deployHooks": { + "items": { + "properties": { + "createdAt": { + "type": "number" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "ref", + "url" + ], + "type": "object" + }, + "type": "array" + }, + "gitCredentialId": { + "type": "string" + }, + "updatedAt": { + "type": "number" + }, + "sourceless": { + "type": "boolean" + }, + "productionBranch": { + "type": "string" + } + }, + "required": [ + "projectId", + "projectName", + "projectNameWithNamespace", + "projectNamespace", + "projectUrl", + "type", + "gitCredentialId", + "productionBranch", + "deployHooks" + ], + "type": "object" + }, + { + "properties": { + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "owner": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "bitbucket" + ] + }, + "uuid": { + "type": "string" + }, + "workspaceUuid": { + "type": "string" + }, + "createdAt": { + "type": "number" + }, + "deployHooks": { + "items": { + "properties": { + "createdAt": { + "type": "number" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "ref", + "url" + ], + "type": "object" + }, + "type": "array" + }, + "gitCredentialId": { "type": "string" }, + "updatedAt": { + "type": "number" + }, "sourceless": { "type": "boolean" }, + "productionBranch": { + "type": "string" + } + }, + "required": [ + "name", + "slug", + "owner", + "type", + "uuid", + "workspaceUuid", + "gitCredentialId", + "productionBranch", + "deployHooks" + ], + "type": "object" + }, + { + "properties": { "org": { "type": "string" }, @@ -37716,245 +38326,22 @@ "type": "number", "description": "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": { + "type": "string" + }, "repoId": { - "type": "number" - }, - "deployHooks": { - "items": { - "properties": { - "createdAt": { - "type": "number" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ref": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "required": [ - "id", - "name", - "ref", - "url" - ], - "type": "object" - }, - "type": "array" - }, - "gitCredentialId": { - "type": "string" - }, - "productionBranch": { - "type": "string" - } - }, - "required": [ - "type", - "org", - "gitCredentialId", - "productionBranch", - "deployHooks" - ], - "type": "object" - }, - { - "properties": { - "projectId": { - "type": "string" - }, - "projectName": { - "type": "string" - }, - "projectNameWithNamespace": { - "type": "string" - }, - "projectNamespace": { - "type": "string" - }, - "projectOwnerId": { - "type": "number", - "description": "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": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "gitlab" - ] - }, - "createdAt": { - "type": "number" - }, - "deployHooks": { - "items": { - "properties": { - "createdAt": { - "type": "number" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ref": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "required": [ - "id", - "name", - "ref", - "url" - ], - "type": "object" - }, - "type": "array" - }, - "gitCredentialId": { - "type": "string" - }, - "updatedAt": { - "type": "number" - }, - "sourceless": { - "type": "boolean" - }, - "productionBranch": { - "type": "string" - } - }, - "required": [ - "projectId", - "projectName", - "projectNameWithNamespace", - "projectNamespace", - "projectUrl", - "type", - "gitCredentialId", - "productionBranch", - "deployHooks" - ], - "type": "object" - }, - { - "properties": { - "name": { - "type": "string" - }, - "slug": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "bitbucket" - ] - }, - "uuid": { - "type": "string" - }, - "workspaceUuid": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "deployHooks": { - "items": { - "properties": { - "createdAt": { - "type": "number" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ref": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "required": [ - "id", - "name", - "ref", - "url" - ], - "type": "object" - }, - "type": "array" - }, - "gitCredentialId": { - "type": "string" - }, - "updatedAt": { - "type": "number" - }, - "sourceless": { - "type": "boolean" - }, - "productionBranch": { - "type": "string" - } - }, - "required": [ - "name", - "slug", - "owner", - "type", - "uuid", - "workspaceUuid", - "gitCredentialId", - "productionBranch", - "deployHooks" - ], - "type": "object" - }, - { - "properties": { - "org": { - "type": "string" - }, - "repoOwnerId": { - "type": "number", - "description": "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": { - "type": "string" - }, - "repoId": { - "type": "number" - }, - "type": { - "type": "string", - "enum": [ - "github-custom-host" - ] - }, - "host": { - "type": "string" - }, - "createdAt": { + "type": "number" + }, + "type": { + "type": "string", + "enum": [ + "github-custom-host" + ] + }, + "host": { + "type": "string" + }, + "createdAt": { "type": "number" }, "deployHooks": { @@ -38141,6 +38528,9 @@ }, "resourceConfig": { "properties": { + "elasticConcurrencyEnabled": { + "type": "boolean" + }, "fluid": { "type": "boolean" }, @@ -38164,9 +38554,6 @@ "functionZeroConfigFailover": { "type": "boolean" }, - "elasticConcurrencyEnabled": { - "type": "boolean" - }, "buildMachineType": { "type": "string", "enum": [ @@ -38262,6 +38649,9 @@ }, "defaultResourceConfig": { "properties": { + "elasticConcurrencyEnabled": { + "type": "boolean" + }, "fluid": { "type": "boolean" }, @@ -38285,9 +38675,6 @@ "functionZeroConfigFailover": { "type": "boolean" }, - "elasticConcurrencyEnabled": { - "type": "boolean" - }, "buildMachineType": { "type": "string", "enum": [ @@ -38332,8 +38719,8 @@ "deploymentType": { "type": "string", "enum": [ - "all", "preview", + "all", "prod_deployment_urls_and_all_previews", "all_except_custom_domains" ] @@ -38670,1273 +39057,1273 @@ }, "permissions": { "properties": { - "oauth2Connection": { + "aliasProject": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "user": { + "aliasProtectionBypass": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "userConnection": { + "buildMachine": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "userSudo": { + "productionAliasProtectionBypass": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "webAuthn": { + "connectConfigurationLink": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "accessGroup": { + "dataCacheNamespace": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "aliasGlobal": { + "deployment": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "analyticsSampling": { + "deploymentBuildLogs": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "analyticsUsage": { + "deploymentCheck": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "auditLog": { + "deploymentCheckPreview": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingAddress": { + "deploymentCheckReRunFromProductionBranch": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingInformation": { + "deploymentProductionGit": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingInvoice": { + "deploymentV0": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingInvoiceEmailRecipient": { + "deploymentPreview": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingInvoiceLanguage": { + "deploymentPrivate": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingPlan": { + "deploymentPromote": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingPurchaseOrder": { + "deploymentRollback": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingRefund": { + "edgeCacheNamespace": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "billingTaxId": { + "environments": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "blob": { + "logs": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "budget": { + "logsPreset": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "cacheArtifact": { + "passwordProtection": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "cacheArtifactUsageEvent": { + "optionsAllowlist": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "codeChecks": { + "job": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "concurrentBuilds": { + "observabilityData": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "connect": { + "onDemandBuild": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "connectConfiguration": { + "onDemandConcurrency": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "defaultDeploymentProtection": { + "project": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domain": { + "projectFromV0": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domainAcceptDelegation": { + "projectAccessGroup": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domainAuthCodes": { + "projectAnalyticsSampling": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domainCertificate": { + "projectCheck": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domainCheckConfig": { + "projectCheckRun": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domainMove": { + "projectDeploymentHook": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domainPurchase": { + "projectDomain": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domainRecord": { + "projectDomainMove": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "domainTransferIn": { + "projectDomainCheckConfig": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "event": { + "projectEnvVars": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "ownEvent": { + "projectEnvVarsProduction": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "sensitiveEnvironmentVariablePolicy": { + "projectEnvVarsUnownedByIntegration": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "fileUpload": { + "projectFlags": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "flagsExplorerSubscription": { + "projectId": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "gitRepository": { + "projectIntegrationConfiguration": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "ipBlocking": { + "projectLink": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "imageOptimizationNewPrice": { + "projectMember": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integration": { + "projectMonitoring": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationAccount": { + "projectPermissions": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationConfiguration": { + "projectProductionBranch": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationConfigurationTransfer": { + "projectTransfer": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationConfigurationProjects": { + "projectTransferOut": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationVercelConfigurationOverride": { + "projectProtectionBypass": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationConfigurationRole": { + "projectUsage": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationSSOSession": { + "projectAnalyticsUsage": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationResource": { + "projectSupportCase": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationEvent": { + "projectSupportCaseComment": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationResourceSecrets": { + "projectDeploymentExpiration": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationDeploymentAction": { + "projectRollingRelease": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "marketplaceInstallationMember": { + "projectTier": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "marketplaceBillingData": { + "projectOIDCToken": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "marketplaceInvoice": { + "seawallConfig": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "marketplaceSettings": { + "skewProtection": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "marketplaceExperimentationItem": { + "analytics": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "marketplaceExperimentationEdgeConfigData": { + "trustedIps": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "jobGlobal": { + "v0Chat": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "drain": { + "webAnalytics": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "logDrain": { + "sharedEnvVarConnection": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "Monitoring": { + "sonar": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "monitoringSettings": { + "oauth2Connection": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "monitoringQuery": { + "user": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "monitoringChart": { + "userConnection": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "monitoringAlert": { + "userSudo": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationDeploymentFailed": { + "webAuthn": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationDomainConfiguration": { + "accessGroup": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationDomainExpire": { + "aliasGlobal": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationDomainMoved": { + "analyticsSampling": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationDomainPurchase": { + "analyticsUsage": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationDomainRenewal": { + "auditLog": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationDomainTransfer": { + "billingAddress": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationDomainUnverified": { + "billingInformation": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "NotificationMonitoringAlert": { + "billingInvoice": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationPaymentFailed": { + "billingInvoiceEmailRecipient": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationUsageAlert": { + "billingInvoiceLanguage": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationPreferences": { + "billingPlan": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationCustomerBudget": { + "billingPurchaseOrder": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "notificationStatementOfReasons": { + "billingRefund": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "observabilityConfiguration": { + "billingTaxId": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "observabilityNotebook": { + "blob": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "observabilityFunnel": { + "budget": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "openTelemetryEndpoint": { + "cacheArtifact": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "vercelAppInstallation": { + "cacheArtifactUsageEvent": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "vercelAppInstallationRequest": { + "codeChecks": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "paymentMethod": { + "concurrentBuilds": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "permissions": { + "connect": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "postgres": { + "connectConfiguration": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "previewDeploymentSuffix": { + "defaultDeploymentProtection": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "proTrialOnboarding": { + "domain": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "sharedEnvVars": { + "domainAcceptDelegation": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "sharedEnvVarsProduction": { + "domainAuthCodes": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "space": { + "domainCertificate": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "spaceRun": { + "domainCheckConfig": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "passwordProtectionInvoiceItem": { + "domainMove": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "rateLimit": { + "domainPurchase": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "redis": { + "domainRecord": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "repository": { + "domainTransferIn": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "remoteCaching": { + "event": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "samlConfig": { + "ownEvent": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "secret": { + "sensitiveEnvironmentVariablePolicy": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "redisStoreTokenSet": { + "fileUpload": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "blobStoreTokenSet": { + "flagsExplorerSubscription": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "postgresStoreTokenSet": { + "gitRepository": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationStoreTokenSet": { + "ipBlocking": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "integrationResourceReplCommand": { + "imageOptimizationNewPrice": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "storeTransfer": { + "integration": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "supportCase": { + "integrationAccount": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "supportCaseComment": { + "integrationConfiguration": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "dataCacheBillingSettings": { + "integrationConfigurationTransfer": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "team": { + "integrationConfigurationProjects": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamAccessRequest": { + "integrationVercelConfigurationOverride": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamFellowMembership": { + "integrationConfigurationRole": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamGitExclusivity": { + "integrationSSOSession": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamInvite": { + "integrationResource": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamInviteCode": { + "integrationEvent": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamJoin": { + "integrationResourceSecrets": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamMemberMfaStatus": { + "integrationDeploymentAction": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamMicrofrontends": { + "marketplaceInstallationMember": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamOwnMembership": { + "marketplaceBillingData": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "teamOwnMembershipDisconnectSAML": { + "marketplaceInvoice": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "token": { + "marketplaceSettings": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "usage": { + "marketplaceExperimentationItem": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "usageCycle": { + "marketplaceExperimentationEdgeConfigData": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "vpcPeeringConnection": { + "jobGlobal": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "webAnalyticsPlan": { + "drain": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "edgeConfig": { + "logDrain": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "edgeConfigItem": { + "Monitoring": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "edgeConfigSchema": { + "monitoringSettings": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "edgeConfigToken": { + "monitoringQuery": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "webhook": { + "monitoringChart": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "webhook-event": { + "monitoringAlert": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "endpointVerification": { + "notificationDeploymentFailed": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectTransferIn": { + "notificationDomainConfiguration": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "oauth2Application": { + "notificationDomainExpire": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "vercelRun": { + "notificationDomainMoved": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "vercelRunExec": { + "notificationDomainPurchase": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "apiKey": { + "notificationDomainRenewal": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "apiKeyOwnedBySelf": { + "notificationDomainTransfer": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "aliasProject": { + "notificationDomainUnverified": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "aliasProtectionBypass": { + "NotificationMonitoringAlert": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "buildMachine": { + "notificationPaymentFailed": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "productionAliasProtectionBypass": { + "notificationUsageAlert": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "connectConfigurationLink": { + "notificationPreferences": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "dataCacheNamespace": { + "notificationCustomerBudget": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deployment": { + "notificationStatementOfReasons": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentBuildLogs": { + "observabilityConfiguration": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentCheck": { + "observabilityNotebook": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentCheckPreview": { + "observabilityFunnel": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentCheckReRunFromProductionBranch": { + "openTelemetryEndpoint": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentProductionGit": { + "vercelAppInstallation": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentV0": { + "vercelAppInstallationRequest": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentPreview": { + "paymentMethod": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentPrivate": { + "permissions": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentPromote": { + "postgres": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "deploymentRollback": { + "previewDeploymentSuffix": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "edgeCacheNamespace": { + "proTrialOnboarding": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "environments": { + "sharedEnvVars": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "logs": { + "sharedEnvVarsProduction": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "logsPreset": { + "space": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "passwordProtection": { + "spaceRun": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "optionsAllowlist": { + "passwordProtectionInvoiceItem": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "job": { + "rateLimit": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "observabilityData": { + "redis": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "onDemandBuild": { + "repository": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "onDemandConcurrency": { + "remoteCaching": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "project": { + "samlConfig": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectFromV0": { + "secret": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectAccessGroup": { + "redisStoreTokenSet": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectAnalyticsSampling": { + "blobStoreTokenSet": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectCheck": { + "postgresStoreTokenSet": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectCheckRun": { + "integrationStoreTokenSet": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectDeploymentHook": { + "integrationResourceReplCommand": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectDomain": { + "storeTransfer": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectDomainMove": { + "supportCase": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectDomainCheckConfig": { + "supportCaseComment": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectEnvVars": { + "dataCacheBillingSettings": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectEnvVarsProduction": { + "team": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectEnvVarsUnownedByIntegration": { + "teamAccessRequest": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectFlags": { + "teamFellowMembership": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectId": { + "teamGitExclusivity": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectIntegrationConfiguration": { + "teamInvite": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectLink": { + "teamInviteCode": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectMember": { + "teamJoin": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectMonitoring": { + "teamMemberMfaStatus": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectPermissions": { + "teamMicrofrontends": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectProductionBranch": { + "teamOwnMembership": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectTransfer": { + "teamOwnMembershipDisconnectSAML": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectTransferOut": { + "token": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectProtectionBypass": { + "usage": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectUsage": { + "usageCycle": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectAnalyticsUsage": { + "vpcPeeringConnection": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectSupportCase": { + "webAnalyticsPlan": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectSupportCaseComment": { + "edgeConfig": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectDeploymentExpiration": { + "edgeConfigItem": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectRollingRelease": { + "edgeConfigSchema": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectTier": { + "edgeConfigToken": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "projectOIDCToken": { + "webhook": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "seawallConfig": { + "webhook-event": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "skewProtection": { + "endpointVerification": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "analytics": { + "projectTransferIn": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "trustedIps": { + "oauth2Application": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "v0Chat": { + "vercelRun": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "webAnalytics": { + "vercelRunExec": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "sharedEnvVarConnection": { + "apiKey": { "items": { "$ref": "#/components/schemas/ACLAction" }, "type": "array" }, - "sonar": { + "apiKeyOwnedBySelf": { "items": { "$ref": "#/components/schemas/ACLAction" }, @@ -40062,11 +40449,11 @@ "deploymentType": { "type": "string", "enum": [ - "all", "preview", + "production", + "all", "prod_deployment_urls_and_all_previews", - "all_except_custom_domains", - "production" + "all_except_custom_domains" ] }, "addresses": { @@ -40106,11 +40493,11 @@ "deploymentType": { "type": "string", "enum": [ - "all", "preview", + "production", + "all", "prod_deployment_urls_and_all_previews", - "all_except_custom_domains", - "production" + "all_except_custom_domains" ] } }, @@ -41053,22 +41440,28 @@ "nullable": true, "properties": { "expirationDays": { - "type": "number" + "type": "number", + "description": "Number of days to keep non-production deployments (mostly preview deployments) before soft deletion." }, "expirationDaysProduction": { - "type": "number" + "type": "number", + "description": "Number of days to keep production deployments before soft deletion." }, "expirationDaysCanceled": { - "type": "number" + "type": "number", + "description": "Number of days to keep canceled deployments before soft deletion." }, "expirationDaysErrored": { - "type": "number" + "type": "number", + "description": "Number of days to keep errored deployments before soft deletion." }, "deploymentsToKeep": { - "type": "number" + "type": "number", + "description": "Minimum number of production deployments to keep for this project, even if they are over the production expiration limit." } }, - "type": "object" + "type": "object", + "description": "Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects." }, "devCommand": { "nullable": true, @@ -45093,22 +45486,28 @@ "nullable": true, "properties": { "expirationDays": { - "type": "number" + "type": "number", + "description": "Number of days to keep non-production deployments (mostly preview deployments) before soft deletion." }, "expirationDaysProduction": { - "type": "number" + "type": "number", + "description": "Number of days to keep production deployments before soft deletion." }, "expirationDaysCanceled": { - "type": "number" + "type": "number", + "description": "Number of days to keep canceled deployments before soft deletion." }, "expirationDaysErrored": { - "type": "number" + "type": "number", + "description": "Number of days to keep errored deployments before soft deletion." }, "deploymentsToKeep": { - "type": "number" + "type": "number", + "description": "Minimum number of production deployments to keep for this project, even if they are over the production expiration limit." } }, - "type": "object" + "type": "object", + "description": "Retention policies for deployments. These are enforced at the project level, but we also maintain an instance of this at the team level as a default policy that gets applied to new projects." }, "devCommand": { "nullable": true, @@ -52285,10 +52684,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -52703,10 +53102,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -53133,10 +53532,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -53697,10 +54096,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -54104,10 +54503,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -56215,10 +56614,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -56630,10 +57029,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -57040,10 +57439,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -57558,10 +57957,10 @@ "type": "string", "enum": [ "system", - "secret", "encrypted", "plain", - "sensitive" + "sensitive", + "secret" ] }, "sunsetSecretId": { @@ -60493,6 +60892,30 @@ "nullable": true } } + }, + "acceptedPolicies": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "type": "string", + "format": "date-time" + }, + "required": [ + "eula", + "privacy" + ], + "properties": { + "eula": { + "type": "string", + "format": "date-time" + }, + "privacy": { + "type": "string", + "format": "date-time" + } + } + } } } } @@ -64813,181 +65236,2637 @@ "application/json": { "schema": { "type": "object", - "additionalProperties": false, - "oneOf": [ - { - "required": [ - "domain" - ] - }, - { - "required": [ - "projectScope" - ] - } + "additionalProperties": false, + "oneOf": [ + { + "required": [ + "domain" + ] + }, + { + "required": [ + "projectScope" + ] + } + ], + "properties": { + "domain": { + "type": "string", + "pattern": "([a-z]+[a-z.]+)$", + "maxLength": 2544 + }, + "projectScope": { + "type": "boolean", + "description": "If the specified bypass will apply to all domains for a project." + }, + "sourceIp": { + "type": "string" + }, + "allSources": { + "type": "boolean" + }, + "ttl": { + "type": "number", + "description": "Time to live in milliseconds" + }, + "note": { + "type": "string", + "maxLength": 500 + } + } + } + } + } + } + }, + "delete": { + "description": "Remove system bypass rules", + "operationId": "removeBypassIp", + "security": [ + { + "bearerToken": [] + } + ], + "summary": "Remove System Bypass Rule", + "tags": [ + "security" + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "properties": { + "ok": { + "type": "boolean" + } + }, + "required": [ + "ok" + ], + "type": "object" + } + } + } + }, + "400": { + "description": "One of the provided values in the request body is invalid.\nOne of the provided values in the request query is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelBadRequestError" + } + } + } + }, + "401": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelForbiddenError" + } + } + } + }, + "403": { + "description": "You do not have permission to access this resource." + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelNotFoundError" + } + } + } + }, + "500": { + "description": "" + } + }, + "parameters": [ + { + "name": "projectId", + "in": "query", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "The Team identifier to perform the request on behalf of.", + "in": "query", + "name": "teamId", + "schema": { + "type": "string", + "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" + } + }, + { + "description": "The Team slug to perform the request on behalf of.", + "in": "query", + "name": "slug", + "schema": { + "type": "string", + "example": "my-team-url-slug" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": false, + "oneOf": [ + { + "required": [ + "domain" + ] + }, + { + "required": [ + "projectScope" + ] + } + ], + "properties": { + "domain": { + "type": "string", + "pattern": "([a-z]+[a-z.]+)$", + "maxLength": 2544 + }, + "projectScope": { + "type": "boolean" + }, + "sourceIp": { + "type": "string" + }, + "allSources": { + "type": "boolean" + }, + "note": { + "type": "string", + "maxLength": 500 + } + } + } + } + } + } + } + }, + "/v1/storage/stores/integration/direct": { + "post": { + "description": "Creates an integration store for both FREE and PAID billing plans. This simplified endpoint automatically provisions real integration storage resources while handling billing complexity behind the scenes. It supports both free and paid billing plans with automatic authorization creation for paid resources. ## How it works 1. Validates the integration configuration and product 2. For free resources: Auto-discovers available free billing plans 3. For paid resources: Creates billing authorization inline using provided billingPlanId 4. Provisions real resources through the Vercel Marketplace 5. Returns the created store with connection details ## Workflow Before using this endpoint, discover available products and billing plans: 1. List your configurations: `GET /v1/integrations/configurations` 2. Get products for a configuration: `GET /v1/integrations/configuration/{id}/products` 3. Get billing plans for a product: `GET /integrations/integration/{integrationId}/products/{productId}/plans` 4. Review the `metadataSchema` for each product to understand required metadata 5. Create storage with discovered product: `POST /v1/storage/stores/integration/direct` ## Usage Patterns - **Free resources**: Omit `billingPlanId` - endpoint will auto-discover free plans - **Paid resources**: Provide `billingPlanId` from billing plans discovery - **Prepayment plans**: Also provide `prepaymentAmountCents` for variable amount plans ## Limitations - **Admin access required**: Only integration configuration admins can create stores - **Storage limits apply**: Subject to your team's storage quotas - **Payment method required**: For paid plans, ensure valid payment method is configured ## Error Responses - `400 Bad Request`: Invalid input, no plans available, or billing issues - `403 Forbidden`: Insufficient permissions (non-admin users) - `404 Not Found`: Integration configuration or product not found - `429 Too Many Requests`: Rate limit exceeded", + "operationId": "createIntegrationStoreDirect", + "security": [ + { + "bearerToken": [] + } + ], + "summary": "Create integration store (free and paid plans)", + "tags": [ + "integrations" + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "properties": { + "store": { + "nullable": true, + "type": "object", + "properties": { + "projectsMetadata": { + "items": { + "properties": { + "id": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "framework": { + "nullable": true, + "type": "string", + "enum": [ + "blitzjs", + "nextjs", + "gatsby", + "remix", + "react-router", + "astro", + "hexo", + "eleventy", + "docusaurus-2", + "docusaurus", + "preact", + "solidstart-1", + "solidstart", + "dojo", + "ember", + "vue", + "scully", + "ionic-angular", + "angular", + "polymer", + "svelte", + "sveltekit", + "sveltekit-1", + "ionic-react", + "create-react-app", + "gridsome", + "umijs", + "sapper", + "saber", + "stencil", + "nuxtjs", + "redwoodjs", + "hugo", + "jekyll", + "brunch", + "middleman", + "zola", + "hydrogen", + "vite", + "vitepress", + "vuepress", + "parcel", + "fasthtml", + "sanity-v3", + "sanity", + "storybook", + "nitro", + "hono", + "express", + "xmcp" + ] + }, + "latestDeployment": { + "type": "string" + }, + "environments": { + "items": { + "type": "string", + "enum": [ + "production", + "preview", + "development" + ] + }, + "type": "array" + }, + "envVarPrefix": { + "nullable": true, + "type": "string" + }, + "environmentVariables": { + "items": { + "type": "string" + }, + "type": "array" + }, + "deployments": { + "properties": { + "required": { + "type": "boolean" + }, + "actions": { + "items": { + "properties": { + "slug": { + "type": "string" + }, + "environments": { + "items": { + "type": "string", + "enum": [ + "production", + "preview", + "development" + ] + }, + "type": "array" + } + }, + "required": [ + "slug", + "environments" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "required", + "actions" + ], + "type": "object" + } + }, + "required": [ + "id", + "projectId", + "name", + "environments", + "envVarPrefix", + "environmentVariables" + ], + "type": "object" + }, + "type": "array" + }, + "totalConnectedProjects": { + "type": "number" + }, + "usageQuotaExceeded": { + "type": "boolean" + }, + "status": { + "nullable": true, + "type": "string", + "enum": [ + "available", + "error", + "suspended", + "limits-exceeded-suspended", + "limits-exceeded-suspended-store-count", + "initializing", + "uninstalled" + ] + }, + "metadata": { + "additionalProperties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "items": { + "type": "number" + }, + "type": "array" + } + ] + }, + "type": "object" + }, + "externalResourceId": { + "type": "string" + }, + "externalResourceStatus": { + "nullable": true, + "type": "string", + "enum": [ + "error", + "suspended", + "uninstalled", + "ready", + "pending", + "resumed" + ] + }, + "product": { + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "iconUrl": { + "type": "string" + }, + "shortDescription": { + "type": "string" + }, + "metadataSchema": { + "properties": { + "type": { + "type": "string", + "enum": [ + "object" + ] + }, + "properties": { + "additionalProperties": { + "oneOf": [ + { + "properties": { + "type": { + "type": "string", + "enum": [ + "string" + ] + }, + "ui:control": { + "type": "string", + "enum": [ + "input" + ] + }, + "enum": { + "items": { + "type": "string" + }, + "type": "array" + }, + "maxLength": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "minLength": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "pattern": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "description": { + "type": "string" + }, + "default": { + "type": "string" + }, + "ui:label": { + "type": "string" + }, + "ui:read-only": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:description": { + "oneOf": [ + { + "type": "string" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + } + ] + }, + "ui:formatted-value": { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + "ui:placeholder": { + "type": "string" + } + }, + "required": [ + "type", + "ui:control" + ], + "type": "object" + }, + { + "properties": { + "type": { + "type": "string", + "enum": [ + "number" + ] + }, + "ui:control": { + "type": "string", + "enum": [ + "input" + ] + }, + "maximum": { + "type": "number" + }, + "exclusiveMaximum": { + "type": "number" + }, + "minimum": { + "type": "number" + }, + "exclusiveMinimum": { + "type": "number" + }, + "description": { + "type": "string" + }, + "default": { + "type": "number" + }, + "ui:label": { + "type": "string" + }, + "ui:read-only": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:description": { + "oneOf": [ + { + "type": "string" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + } + ] + }, + "ui:formatted-value": { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + "ui:placeholder": { + "type": "string" + } + }, + "required": [ + "type", + "ui:control" + ], + "type": "object" + }, + { + "properties": { + "type": { + "type": "string", + "enum": [ + "boolean" + ] + }, + "ui:control": { + "type": "string", + "enum": [ + "toggle" + ] + }, + "description": { + "type": "string" + }, + "default": { + "type": "boolean" + }, + "ui:label": { + "type": "string" + }, + "ui:read-only": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:description": { + "oneOf": [ + { + "type": "string" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + } + ] + }, + "ui:formatted-value": { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + } + }, + "required": [ + "type", + "ui:control" + ], + "type": "object" + }, + { + "properties": { + "type": { + "type": "string", + "enum": [ + "array" + ] + }, + "items": { + "properties": { + "type": { + "type": "string", + "enum": [ + "number" + ] + }, + "description": { + "type": "string" + }, + "minimum": { + "type": "number" + }, + "exclusiveMinimum": { + "type": "number" + }, + "maximum": { + "type": "number" + }, + "exclusiveMaximum": { + "type": "number" + }, + "default": { + "type": "number" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ui:control": { + "type": "string", + "enum": [ + "slider" + ] + }, + "ui:steps": { + "items": { + "type": "number" + }, + "type": "array" + }, + "maxItems": { + "type": "number" + }, + "minItems": { + "type": "number" + }, + "description": { + "type": "string" + }, + "ui:label": { + "type": "string" + }, + "ui:read-only": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:description": { + "oneOf": [ + { + "type": "string" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + } + ] + }, + "ui:formatted-value": { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + "default": { + "items": { + "type": "number" + }, + "type": "array" + } + }, + "required": [ + "type", + "items", + "ui:control", + "ui:steps" + ], + "type": "object" + }, + { + "properties": { + "type": { + "type": "string", + "enum": [ + "string" + ] + }, + "ui:control": { + "type": "string", + "enum": [ + "select" + ] + }, + "ui:options": { + "items": { + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + }, + "disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + } + }, + "required": [ + "value", + "label" + ], + "type": "object" + }, + "type": "array" + }, + "enum": { + "items": { + "type": "string" + }, + "type": "array" + }, + "maxLength": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "minLength": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "pattern": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "description": { + "type": "string" + }, + "default": { + "type": "string" + }, + "ui:label": { + "type": "string" + }, + "ui:read-only": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:description": { + "oneOf": [ + { + "type": "string" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + } + ] + }, + "ui:formatted-value": { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + "ui:placeholder": { + "type": "string" + } + }, + "required": [ + "type", + "ui:control", + "ui:options" + ], + "type": "object" + }, + { + "properties": { + "type": { + "type": "string", + "enum": [ + "array" + ] + }, + "items": { + "properties": { + "type": { + "type": "string", + "enum": [ + "string" + ] + }, + "description": { + "type": "string" + }, + "minLength": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "maxLength": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "pattern": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "default": { + "type": "string" + }, + "enum": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ui:control": { + "type": "string", + "enum": [ + "multi-select" + ] + }, + "ui:options": { + "items": { + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + }, + "disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + } + }, + "required": [ + "value", + "label" + ], + "type": "object" + }, + "type": "array" + }, + "maxItems": { + "type": "number" + }, + "minItems": { + "type": "number" + }, + "description": { + "type": "string" + }, + "ui:label": { + "type": "string" + }, + "ui:read-only": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:description": { + "oneOf": [ + { + "type": "string" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + } + ] + }, + "ui:formatted-value": { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + "ui:placeholder": { + "type": "string" + }, + "default": { + "items": { + "type": "string" + }, + "type": "array" + }, + "example": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "type", + "items", + "ui:control", + "ui:options" + ], + "type": "object" + }, + { + "properties": { + "type": { + "type": "string", + "enum": [ + "string" + ] + }, + "ui:control": { + "type": "string", + "enum": [ + "vercel-region" + ] + }, + "ui:options": { + "items": { + "oneOf": [ + { + "properties": { + "value": { + "type": "string" + }, + "label": { + "type": "string" + }, + "disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + } + }, + "required": [ + "value", + "label" + ], + "type": "object" + }, + { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + { + "properties": { + "value": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + } + }, + "required": [ + "value" + ], + "type": "object" + } + ] + }, + "type": "array" + }, + "enum": { + "items": { + "type": "string" + }, + "type": "array" + }, + "maxLength": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "minLength": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "pattern": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "description": { + "type": "string" + }, + "default": { + "type": "string" + }, + "ui:label": { + "type": "string" + }, + "ui:read-only": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "ui:description": { + "oneOf": [ + { + "type": "string" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + } + ] + }, + "ui:formatted-value": { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + "ui:placeholder": { + "type": "string" + } + }, + "required": [ + "type", + "ui:control", + "ui:options" + ], + "type": "object" + }, + { + "properties": { + "value": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + } + }, + "required": [ + "value" + ], + "type": "object" + } + ] + }, + "type": "object" + }, + "required": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "type", + "properties" + ], + "type": "object" + }, + "resourceLinks": { + "items": { + "properties": { + "href": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "required": [ + "href", + "title" + ], + "type": "object" + }, + "type": "array" + }, + "tags": { + "items": { + "type": "string", + "enum": [ + "edge-config", + "redis", + "postgres", + "blob", + "checks", + "experimentation", + "storage", + "ai", + "observability", + "video", + "authentication", + "workflow", + "logDrain", + "messaging", + "other", + "mysql", + "vector", + "tag_ai", + "tag_analytics", + "tag_authentication", + "tag_cms", + "tag_code_repository", + "tag_commerce", + "tag_databases", + "tag_dev_tools", + "tag_experimentation", + "tag_flags", + "tag_logging", + "tag_messaging", + "tag_monitoring", + "tag_observability", + "tag_performance", + "tag_productivity", + "tag_searching", + "tag_security", + "tag_testing", + "tag_video", + "tag_workflow", + "tag_checks", + "tag_storage", + "tag_logDrain", + "tag_other" + ] + }, + "type": "array" + }, + "projectConnectionScopes": { + "items": { + "type": "string", + "enum": [ + "read:deployment", + "read:domain", + "read:project", + "read-write:deployment", + "read-write:deployment-check", + "read-write:domain", + "read-write:global-project-env-vars", + "read-write:integration-deployment-action", + "read-write:log-drain", + "read-write:project-env-vars", + "read-write:project-protection-bypass" + ] + }, + "type": "array" + }, + "showSSOLinkOnProjectConnection": { + "type": "boolean" + }, + "disableResourceRenaming": { + "type": "boolean" + }, + "repl": { + "properties": { + "enabled": { + "type": "boolean" + }, + "supportsReadOnlyMode": { + "type": "boolean" + }, + "welcomeMessage": { + "type": "string" + } + }, + "required": [ + "enabled", + "supportsReadOnlyMode" + ], + "type": "object" + }, + "guides": { + "items": { + "properties": { + "framework": { + "type": "string" + }, + "title": { + "type": "string" + }, + "steps": { + "items": { + "properties": { + "title": { + "type": "string" + }, + "content": { + "type": "string" + }, + "actions": { + "items": { + "properties": { + "type": { + "type": "string", + "enum": [ + "connect_to_project", + "configure_project_connections" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "title", + "content" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "framework", + "title", + "steps" + ], + "type": "object" + }, + "type": "array" + }, + "value": { + "type": "object", + "properties": { + "__@BRAND@7822": { + "type": "object" + } + }, + "required": [ + "__@BRAND@7822" + ] + }, + "disabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + }, + "hidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "properties": { + "expr": { + "type": "string" + } + }, + "required": [ + "expr" + ], + "type": "object" + }, + { + "type": "string", + "enum": [ + "update", + "create" + ] + } + ] + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "protocolSettings": { + "properties": { + "experimentation": { + "properties": { + "edgeConfigSyncingEnabled": { + "type": "boolean" + }, + "edgeConfigId": { + "type": "string" + }, + "edgeConfigTokenId": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "notification": { + "properties": { + "title": { + "type": "string" + }, + "level": { + "type": "string", + "enum": [ + "error", + "info", + "warn" + ] + }, + "message": { + "type": "string" + }, + "href": { + "type": "string" + } + }, + "required": [ + "title", + "level" + ], + "type": "object" + }, + "secrets": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "length": { + "type": "number" + } + }, + "required": [ + "name", + "length" + ], + "type": "object" + }, + "type": "array" + }, + "billingPlan": { + "properties": { + "type": { + "type": "string", + "enum": [ + "prepayment", + "subscription" + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "scope": { + "type": "string", + "enum": [ + "installation", + "resource" + ] + }, + "paymentMethodRequired": { + "type": "boolean" + }, + "preauthorizationAmount": { + "type": "number" + }, + "initialCharge": { + "type": "string" + }, + "minimumAmount": { + "type": "string" + }, + "maximumAmount": { + "type": "string" + }, + "maximumAmountAutoPurchasePerPeriod": { + "type": "string" + }, + "cost": { + "type": "string" + }, + "details": { + "items": { + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label" + ], + "type": "object" + }, + "type": "array" + }, + "highlightedDetails": { + "items": { + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label" + ], + "type": "object" + }, + "type": "array" + }, + "quote": { + "items": { + "properties": { + "line": { + "type": "string" + }, + "amount": { + "type": "string" + } + }, + "required": [ + "line", + "amount" + ], + "type": "object" + }, + "type": "array" + }, + "effectiveDate": { + "type": "string" + }, + "disabled": { + "type": "boolean" + } + }, + "required": [ + "type", + "description", + "id", + "name", + "scope", + "paymentMethodRequired" + ], + "type": "object" + } + }, + "required": [ + "projectsMetadata", + "usageQuotaExceeded", + "status", + "externalResourceId", + "product", + "secrets" + ] + } + }, + "required": [ + "store" + ], + "type": "object" + } + } + } + }, + "400": { + "description": "One of the provided values in the request body is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelBadRequestError" + } + } + } + }, + "401": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelForbiddenError" + } + } + } + }, + "402": { + "description": "The account was soft-blocked for an unhandled reason.\nThe account is missing a payment so payment method must be updated" + }, + "403": { + "description": "You do not have permission to access this resource." + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelNotFoundError" + } + } + } + }, + "429": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VercelRateLimitError" + } + } + } + } + }, + "parameters": [ + { + "description": "The Team identifier to perform the request on behalf of.", + "in": "query", + "name": "teamId", + "schema": { + "type": "string", + "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" + } + }, + { + "description": "The Team slug to perform the request on behalf of.", + "in": "query", + "name": "slug", + "schema": { + "type": "string", + "example": "my-team-url-slug" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "name", + "integrationConfigurationId", + "integrationProductIdOrSlug" ], "properties": { - "domain": { + "name": { "type": "string", - "pattern": "([a-z]+[a-z.]+)$", - "maxLength": 2544 - }, - "projectScope": { - "type": "boolean", - "description": "If the specified bypass will apply to all domains for a project." + "maxLength": 128, + "description": "Human-readable name for the storage resource", + "example": "my-dev-database" }, - "sourceIp": { - "type": "string" - }, - "allSources": { - "type": "boolean" - }, - "ttl": { - "type": "number", - "description": "Time to live in milliseconds" - }, - "note": { + "integrationConfigurationId": { "type": "string", - "maxLength": 500 - } - } - } - } - } - } - }, - "delete": { - "description": "Remove system bypass rules", - "operationId": "removeBypassIp", - "security": [ - { - "bearerToken": [] - } - ], - "summary": "Remove System Bypass Rule", - "tags": [ - "security" - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "properties": { - "ok": { - "type": "boolean" - } + "description": "ID of your integration configuration. Get this from GET /v1/integrations/configurations", + "example": "icfg_cuwj0AdCdH3BwWT4LPijCC7t", + "pattern": "^icfg_[a-zA-Z0-9]+$" }, - "required": [ - "ok" - ], - "type": "object" - } - } - } - }, - "400": { - "description": "One of the provided values in the request body is invalid.\nOne of the provided values in the request query is invalid.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelBadRequestError" - } - } - } - }, - "401": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelForbiddenError" - } - } - } - }, - "403": { - "description": "You do not have permission to access this resource." - }, - "404": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/VercelNotFoundError" - } - } - } - }, - "500": { - "description": "" - } - }, - "parameters": [ - { - "name": "projectId", - "in": "query", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "The Team identifier to perform the request on behalf of.", - "in": "query", - "name": "teamId", - "schema": { - "type": "string", - "example": "team_1a2b3c4d5e6f7g8h9i0j1k2l" - } - }, - { - "description": "The Team slug to perform the request on behalf of.", - "in": "query", - "name": "slug", - "schema": { - "type": "string", - "example": "my-team-url-slug" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": false, - "oneOf": [ - { - "required": [ - "domain" + "integrationProductIdOrSlug": { + "type": "string", + "description": "ID or slug of the integration product. Get available products from GET /v1/integrations/configuration/{id}/products", + "example": "iap_postgres_db", + "oneOf": [ + { + "pattern": "^iap_[a-zA-Z0-9_]+$", + "description": "Product ID format" + }, + { + "pattern": "^[a-z0-9-]+$", + "description": "Product slug format" + } ] }, - { - "required": [ - "projectScope" - ] - } - ], - "properties": { - "domain": { + "metadata": { + "type": "object", + "description": "Optional key-value pairs for resource metadata", + "additionalProperties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "number" + } + } + ] + }, + "example": { + "environment": "development", + "project": "my-app", + "tags": [ + "database", + "postgres" + ] + } + }, + "externalId": { "type": "string", - "pattern": "([a-z]+[a-z.]+)$", - "maxLength": 2544 + "description": "Optional external identifier for tracking purposes", + "example": "dev-db-001" }, - "projectScope": { - "type": "boolean" + "protocolSettings": { + "type": "object", + "description": "Protocol-specific configuration settings", + "additionalProperties": true, + "example": { + "experimentation": { + "edgeConfigSyncingEnabled": true + } + } }, - "sourceIp": { - "type": "string" + "source": { + "type": "string", + "description": "Source of the store creation request", + "example": "api", + "default": "marketplace" }, - "allSources": { - "type": "boolean" + "billingPlanId": { + "type": "string", + "description": "ID of the billing plan for paid resources. Get available plans from GET /integrations/integration/{id}/products/{productId}/plans. If not provided, automatically discovers free billing plans.", + "example": "bp_abc123def456" }, - "note": { + "paymentMethodId": { "type": "string", - "maxLength": 500 + "description": "Payment method ID for paid resources. Optional - uses default payment method if not provided.", + "example": "pm_1AbcDefGhiJklMno" + }, + "prepaymentAmountCents": { + "type": "number", + "minimum": 50, + "description": "Amount in cents for prepayment billing plans. Required only for prepayment plans with variable amounts.", + "example": 5000 } } } @@ -65108,12 +67987,12 @@ "enum": [ "teams", "link", - "saml", + "mail", + "import", "github", "gitlab", "bitbucket", - "mail", - "import", + "saml", "dsync", "feedback", "organization-teams" @@ -65232,6 +68111,39 @@ "VIEWER_FOR_PLUS" ] }, + "teamRoles": { + "items": { + "type": "string", + "enum": [ + "OWNER", + "MEMBER", + "DEVELOPER", + "VIEWER", + "BILLING", + "CONTRIBUTOR", + "SECURITY", + "VIEWER_FOR_PLUS" + ] + }, + "type": "array" + }, + "teamPermissions": { + "items": { + "type": "string", + "enum": [ + "IntegrationManager", + "CreateProject", + "FullProductionDeployment", + "UsageViewer", + "EnvVariableManager", + "EnvironmentManager", + "V0Builder", + "V0Chatter", + "V0Viewer" + ] + }, + "type": "array" + }, "isDSyncUser": { "type": "boolean" }, @@ -65508,6 +68420,7 @@ "items": { "type": "string", "enum": [ + "IntegrationManager", "CreateProject", "FullProductionDeployment", "UsageViewer", @@ -66847,6 +69760,76 @@ "nullable": true } } + }, + "defaultExpirationSettings": { + "properties": { + "expiration": { + "description": "The time period to keep non-production deployments for", + "example": "1y", + "type": "string", + "enum": [ + "1y", + "6m", + "3m", + "2m", + "1m", + "2w", + "1w", + "1d", + "unlimited" + ] + }, + "expirationProduction": { + "description": "The time period to keep production deployments for", + "example": "1y", + "type": "string", + "enum": [ + "1y", + "6m", + "3m", + "2m", + "1m", + "2w", + "1w", + "1d", + "unlimited" + ] + }, + "expirationCanceled": { + "description": "The time period to keep canceled deployments for", + "example": "1y", + "type": "string", + "enum": [ + "1y", + "6m", + "3m", + "2m", + "1m", + "2w", + "1w", + "1d", + "unlimited" + ] + }, + "expirationErrored": { + "description": "The time period to keep errored deployments for", + "example": "1y", + "type": "string", + "enum": [ + "1y", + "6m", + "3m", + "2m", + "1m", + "2w", + "1w", + "1d", + "unlimited" + ] + } + }, + "type": "object", + "additionalProperties": false } } } @@ -68042,6 +71025,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -68094,6 +71078,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ], "description": "The webhooks events", @@ -68115,6 +71100,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -68167,6 +71153,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ] }, @@ -68306,6 +71293,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -68358,6 +71346,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ], "x-speakeasy-enums": [ @@ -68377,6 +71366,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -68429,6 +71419,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ] } @@ -68569,6 +71560,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -68621,6 +71613,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ], "description": "The webhooks events", @@ -68642,6 +71635,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -68694,6 +71688,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ] }, @@ -68773,6 +71768,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -68825,6 +71821,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ], "description": "The webhooks events", @@ -68846,6 +71843,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -68898,6 +71896,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ] }, @@ -69052,6 +72051,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -69104,6 +72104,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ], "description": "The webhooks events", @@ -69125,6 +72126,7 @@ "domain.renewal.failed", "domain.auto-renew.changed", "deployment.created", + "deployment.cleanup", "deployment.error", "deployment.canceled", "deployment.succeeded", @@ -69177,6 +72179,7 @@ "marketplace.invoice.notpaid", "marketplace.invoice.refunded", "observability.anomaly", + "observability.anomaly-error", "test-webhook" ] }, @@ -75938,6 +78941,7 @@ "items": { "type": "string", "enum": [ + "IntegrationManager", "CreateProject", "FullProductionDeployment", "UsageViewer", @@ -79250,6 +82254,24 @@ }, "origin": { "type": "string" + }, + "teamRoles": { + "items": { + "type": "string" + }, + "type": "array" + }, + "teamPermissions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "entitlements": { + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ @@ -79945,6 +82967,25 @@ "type": "object", "description": "The payload of the event, if requested." }, + { + "properties": { + "projectName": { + "type": "string" + }, + "urls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "projectName", + "urls" + ], + "type": "object", + "description": "The payload of the event, if requested." + }, { "properties": { "edgeConfigId": { @@ -80501,6 +83542,39 @@ "type": "object", "description": "The payload of the event, if requested." }, + { + "properties": { + "appName": { + "type": "string" + }, + "appId": { + "type": "string" + } + }, + "required": [ + "appName" + ], + "type": "object", + "description": "The payload of the event, if requested." + }, + { + "properties": { + "appName": { + "type": "string" + }, + "appId": { + "type": "string" + }, + "installationId": { + "type": "string" + } + }, + "required": [ + "appName" + ], + "type": "object", + "description": "The payload of the event, if requested." + }, { "properties": { "team": { @@ -80953,6 +84027,11 @@ "description": "The hostname that is current set as preview deployment suffix.", "example": "example.dev" }, + "platform": { + "type": "boolean", + "description": "Whether the team is a platform team.", + "example": true + }, "disableHardAutoBlocks": { "oneOf": [ { @@ -81000,6 +84079,24 @@ "type": "object", "description": "Default deployment protection for this team" }, + "defaultExpirationSettings": { + "properties": { + "expiration": { + "type": "string" + }, + "expirationProduction": { + "type": "string" + }, + "expirationCanceled": { + "type": "string" + }, + "expirationErrored": { + "type": "string" + } + }, + "type": "object", + "description": "Default deployment expiration settings for this team" + }, "enablePreviewFeedback": { "nullable": true, "type": "string", @@ -81146,6 +84243,7 @@ "items": { "type": "string", "enum": [ + "IntegrationManager", "CreateProject", "FullProductionDeployment", "UsageViewer", @@ -81437,6 +84535,7 @@ "items": { "type": "string", "enum": [ + "IntegrationManager", "CreateProject", "FullProductionDeployment", "UsageViewer", @@ -82013,9 +85112,9 @@ "nullable": true, "type": "string", "enum": [ - "github", "gitlab", "bitbucket", + "github", "github-limited", "github-custom-host" ]