@vercel/sdk 1.13.4 → 1.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -45
- package/bin/mcp-server.js +223 -670
- package/bin/mcp-server.js.map +81 -81
- package/docs/sdks/domains/README.md +11 -11
- package/docs/sdks/domainsregistrar/README.md +55 -55
- package/esm/__tests__/accessgroups.test.js +6 -2
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/logdrains.test.js +1 -3
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +5 -2
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +11 -1
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/domainsBuyDomain.d.ts +2 -2
- package/esm/funcs/domainsBuyDomain.js +2 -2
- package/esm/funcs/domainsCheckDomainPrice.d.ts +2 -2
- package/esm/funcs/domainsCheckDomainPrice.js +2 -2
- package/esm/funcs/domainsCheckDomainStatus.d.ts +2 -2
- package/esm/funcs/domainsCheckDomainStatus.js +2 -2
- package/esm/funcs/domainsCreateOrTransferDomain.d.ts +2 -2
- package/esm/funcs/domainsCreateOrTransferDomain.js +2 -2
- package/esm/funcs/domainsGetDomainTransfer.d.ts +2 -2
- package/esm/funcs/domainsGetDomainTransfer.js +2 -2
- package/esm/funcs/domainsPatchDomain.d.ts +1 -1
- package/esm/funcs/domainsPatchDomain.js +1 -1
- package/esm/funcs/domainsRegistrarBuyDomains.d.ts +2 -2
- package/esm/funcs/domainsRegistrarBuyDomains.js +2 -2
- package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts +1 -1
- package/esm/funcs/domainsRegistrarGetBulkAvailability.js +1 -1
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.d.ts +2 -2
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.js +2 -2
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.d.ts +1 -1
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.js +1 -1
- package/esm/funcs/domainsRegistrarGetDomainAvailability.d.ts +2 -2
- package/esm/funcs/domainsRegistrarGetDomainAvailability.js +2 -2
- package/esm/funcs/domainsRegistrarGetDomainPrice.d.ts +1 -1
- package/esm/funcs/domainsRegistrarGetDomainPrice.js +1 -1
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.d.ts +2 -2
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.js +2 -2
- package/esm/funcs/domainsRegistrarGetOrder.d.ts +2 -2
- package/esm/funcs/domainsRegistrarGetOrder.js +2 -2
- package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts +2 -2
- package/esm/funcs/domainsRegistrarGetSupportedTlds.js +2 -2
- package/esm/funcs/domainsRegistrarGetTldPrice.d.ts +2 -2
- package/esm/funcs/domainsRegistrarGetTldPrice.js +2 -2
- package/esm/funcs/domainsRegistrarTransferInDomain.d.ts +2 -2
- package/esm/funcs/domainsRegistrarTransferInDomain.js +2 -2
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.d.ts +2 -2
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js +2 -2
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.d.ts +2 -2
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js +2 -2
- package/esm/funcs/projectsUploadProjectClientCert.js +2 -2
- package/esm/funcs/projectsUploadProjectClientCert.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/domainsBuyDomain.js +2 -2
- package/esm/mcp-server/tools/domainsBuyDomain.js.map +1 -1
- package/esm/mcp-server/tools/domainsCheckDomainPrice.js +2 -2
- package/esm/mcp-server/tools/domainsCheckDomainPrice.js.map +1 -1
- package/esm/mcp-server/tools/domainsCheckDomainStatus.js +2 -2
- package/esm/mcp-server/tools/domainsCheckDomainStatus.js.map +1 -1
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.js +2 -2
- package/esm/mcp-server/tools/domainsCreateOrTransferDomain.js.map +1 -1
- package/esm/mcp-server/tools/domainsGetDomainTransfer.js +2 -2
- package/esm/mcp-server/tools/domainsGetDomainTransfer.js.map +1 -1
- package/esm/mcp-server/tools/domainsPatchDomain.js +1 -1
- package/esm/mcp-server/tools/domainsPatchDomain.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.d.ts.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.js +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.js +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetOrder.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarGetOrder.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.js.map +1 -1
- package/esm/models/additionalcontactinforequired.d.ts +6 -25
- package/esm/models/additionalcontactinforequired.d.ts.map +1 -1
- package/esm/models/additionalcontactinforequired.js +4 -30
- package/esm/models/additionalcontactinforequired.js.map +1 -1
- package/esm/models/badrequest.d.ts +0 -25
- package/esm/models/badrequest.d.ts.map +1 -1
- package/esm/models/badrequest.js +1 -30
- package/esm/models/badrequest.js.map +1 -1
- package/esm/models/buydomainsop.d.ts +15 -3
- package/esm/models/buydomainsop.d.ts.map +1 -1
- package/esm/models/buydomainsop.js +16 -16
- package/esm/models/buydomainsop.js.map +1 -1
- package/esm/models/buysingledomainop.d.ts +15 -3
- package/esm/models/buysingledomainop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.js +12 -12
- package/esm/models/buysingledomainop.js.map +1 -1
- package/esm/models/createortransferdomainop.d.ts +5 -3
- package/esm/models/createortransferdomainop.d.ts.map +1 -1
- package/esm/models/createortransferdomainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +30 -30
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +18 -18
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/domainalreadyrenewing.d.ts +6 -25
- package/esm/models/domainalreadyrenewing.d.ts.map +1 -1
- package/esm/models/domainalreadyrenewing.js +4 -30
- package/esm/models/domainalreadyrenewing.js.map +1 -1
- package/esm/models/domainnotavailable.d.ts +6 -25
- package/esm/models/domainnotavailable.d.ts.map +1 -1
- package/esm/models/domainnotavailable.js +4 -30
- package/esm/models/domainnotavailable.js.map +1 -1
- package/esm/models/domainnotfound.d.ts +6 -25
- package/esm/models/domainnotfound.d.ts.map +1 -1
- package/esm/models/domainnotfound.js +4 -30
- package/esm/models/domainnotfound.js.map +1 -1
- package/esm/models/domainnotregistered.d.ts +6 -25
- package/esm/models/domainnotregistered.d.ts.map +1 -1
- package/esm/models/domainnotregistered.js +4 -30
- package/esm/models/domainnotregistered.js.map +1 -1
- package/esm/models/domainnotrenewable.d.ts +6 -25
- package/esm/models/domainnotrenewable.d.ts.map +1 -1
- package/esm/models/domainnotrenewable.js +4 -30
- package/esm/models/domainnotrenewable.js.map +1 -1
- package/esm/models/duplicatedomains.d.ts +6 -25
- package/esm/models/duplicatedomains.d.ts.map +1 -1
- package/esm/models/duplicatedomains.js +4 -30
- package/esm/models/duplicatedomains.js.map +1 -1
- package/esm/models/expectedpricemismatch.d.ts +6 -25
- package/esm/models/expectedpricemismatch.d.ts.map +1 -1
- package/esm/models/expectedpricemismatch.js +4 -30
- package/esm/models/expectedpricemismatch.js.map +1 -1
- package/esm/models/forbidden.d.ts +0 -25
- package/esm/models/forbidden.d.ts.map +1 -1
- package/esm/models/forbidden.js +1 -30
- package/esm/models/forbidden.js.map +1 -1
- package/esm/models/getcontactinfoschemaop.d.ts +2 -2
- package/esm/models/getcontactinfoschemaop.d.ts.map +1 -1
- package/esm/models/getcontactinfoschemaop.js +2 -2
- package/esm/models/getcontactinfoschemaop.js.map +1 -1
- package/esm/models/getdomainauthcodeop.d.ts +2 -2
- package/esm/models/getdomainauthcodeop.d.ts.map +1 -1
- package/esm/models/getdomainauthcodeop.js +2 -2
- package/esm/models/getdomainauthcodeop.js.map +1 -1
- package/esm/models/getdomainpriceop.d.ts +5 -5
- package/esm/models/getdomainpriceop.d.ts.map +1 -1
- package/esm/models/getdomainpriceop.js +4 -4
- package/esm/models/getdomainpriceop.js.map +1 -1
- package/esm/models/getorderop.d.ts +3 -3
- package/esm/models/gettldpriceop.d.ts +8 -5
- package/esm/models/gettldpriceop.d.ts.map +1 -1
- package/esm/models/gettldpriceop.js +2 -2
- package/esm/models/gettldpriceop.js.map +1 -1
- package/esm/models/httpapidecodeerror.d.ts +0 -26
- package/esm/models/httpapidecodeerror.d.ts.map +1 -1
- package/esm/models/httpapidecodeerror.js +1 -30
- package/esm/models/httpapidecodeerror.js.map +1 -1
- package/esm/models/internalservererror.d.ts +0 -25
- package/esm/models/internalservererror.d.ts.map +1 -1
- package/esm/models/internalservererror.js +1 -30
- package/esm/models/internalservererror.js.map +1 -1
- package/esm/models/invalidadditionalcontactinfo.d.ts +6 -25
- package/esm/models/invalidadditionalcontactinfo.d.ts.map +1 -1
- package/esm/models/invalidadditionalcontactinfo.js +4 -30
- package/esm/models/invalidadditionalcontactinfo.js.map +1 -1
- package/esm/models/issue.d.ts +0 -55
- package/esm/models/issue.d.ts.map +1 -1
- package/esm/models/issue.js +0 -39
- package/esm/models/issue.js.map +1 -1
- package/esm/models/notauthorizedforscope.d.ts +0 -25
- package/esm/models/notauthorizedforscope.d.ts.map +1 -1
- package/esm/models/notauthorizedforscope.js +1 -30
- package/esm/models/notauthorizedforscope.js.map +1 -1
- package/esm/models/notfound.d.ts +0 -25
- package/esm/models/notfound.d.ts.map +1 -1
- package/esm/models/notfound.js +1 -31
- package/esm/models/notfound.js.map +1 -1
- package/esm/models/ordertooexpensive.d.ts +6 -25
- package/esm/models/ordertooexpensive.d.ts.map +1 -1
- package/esm/models/ordertooexpensive.js +4 -30
- package/esm/models/ordertooexpensive.js.map +1 -1
- package/esm/models/patchdomainop.d.ts +6 -2
- package/esm/models/patchdomainop.d.ts.map +1 -1
- package/esm/models/patchdomainop.js.map +1 -1
- package/esm/models/propertykey.d.ts +8 -8
- package/esm/models/propertykey.d.ts.map +1 -1
- package/esm/models/propertykey.js +12 -12
- package/esm/models/propertykey.js.map +1 -1
- package/esm/models/renewdomainop.d.ts +6 -3
- package/esm/models/renewdomainop.d.ts.map +1 -1
- package/esm/models/renewdomainop.js +10 -10
- package/esm/models/renewdomainop.js.map +1 -1
- package/esm/models/tldnotsupported.d.ts +6 -25
- package/esm/models/tldnotsupported.d.ts.map +1 -1
- package/esm/models/tldnotsupported.js +4 -30
- package/esm/models/tldnotsupported.js.map +1 -1
- package/esm/models/toomanydomains.d.ts +6 -25
- package/esm/models/toomanydomains.d.ts.map +1 -1
- package/esm/models/toomanydomains.js +4 -30
- package/esm/models/toomanydomains.js.map +1 -1
- package/esm/models/toomanyrequests.d.ts +0 -25
- package/esm/models/toomanyrequests.d.ts.map +1 -1
- package/esm/models/toomanyrequests.js +1 -30
- package/esm/models/toomanyrequests.js.map +1 -1
- package/esm/models/transferindomainop.d.ts +9 -3
- package/esm/models/transferindomainop.d.ts.map +1 -1
- package/esm/models/transferindomainop.js +8 -8
- package/esm/models/transferindomainop.js.map +1 -1
- package/esm/models/unauthorized.d.ts +0 -25
- package/esm/models/unauthorized.d.ts.map +1 -1
- package/esm/models/unauthorized.js +1 -30
- package/esm/models/unauthorized.js.map +1 -1
- package/esm/models/updatedomainautorenewop.d.ts +2 -2
- package/esm/models/updatedomainautorenewop.d.ts.map +1 -1
- package/esm/models/updatedomainautorenewop.js +6 -6
- package/esm/models/updatedomainautorenewop.js.map +1 -1
- package/esm/models/updatedomainnameserversop.d.ts +2 -2
- package/esm/models/updatedomainnameserversop.d.ts.map +1 -1
- package/esm/models/updatedomainnameserversop.js +2 -2
- package/esm/models/updatedomainnameserversop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +30 -30
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +18 -18
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/sdk/domains.d.ts +11 -11
- package/esm/sdk/domains.js +11 -11
- package/esm/sdk/domainsregistrar.d.ts +23 -23
- package/esm/sdk/domainsregistrar.js +23 -23
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +6 -2
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/logdrains.test.ts +1 -3
- package/src/__tests__/rollingrelease.test.ts +5 -2
- package/src/__tests__/security.test.ts +11 -1
- package/src/funcs/domainsBuyDomain.ts +2 -2
- package/src/funcs/domainsCheckDomainPrice.ts +2 -2
- package/src/funcs/domainsCheckDomainStatus.ts +2 -2
- package/src/funcs/domainsCreateOrTransferDomain.ts +2 -2
- package/src/funcs/domainsGetDomainTransfer.ts +2 -2
- package/src/funcs/domainsPatchDomain.ts +1 -1
- package/src/funcs/domainsRegistrarBuyDomains.ts +2 -2
- package/src/funcs/domainsRegistrarGetBulkAvailability.ts +1 -1
- package/src/funcs/domainsRegistrarGetContactInfoSchema.ts +2 -2
- package/src/funcs/domainsRegistrarGetDomainAuthCode.ts +1 -1
- package/src/funcs/domainsRegistrarGetDomainAvailability.ts +2 -2
- package/src/funcs/domainsRegistrarGetDomainPrice.ts +1 -1
- package/src/funcs/domainsRegistrarGetDomainTransferIn.ts +2 -2
- package/src/funcs/domainsRegistrarGetOrder.ts +2 -2
- package/src/funcs/domainsRegistrarGetSupportedTlds.ts +2 -2
- package/src/funcs/domainsRegistrarGetTldPrice.ts +2 -2
- package/src/funcs/domainsRegistrarTransferInDomain.ts +2 -2
- package/src/funcs/domainsRegistrarUpdateDomainAutoRenew.ts +2 -2
- package/src/funcs/domainsRegistrarUpdateDomainNameservers.ts +2 -2
- package/src/funcs/projectsUploadProjectClientCert.ts +2 -2
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/domainsBuyDomain.ts +2 -2
- package/src/mcp-server/tools/domainsCheckDomainPrice.ts +2 -2
- package/src/mcp-server/tools/domainsCheckDomainStatus.ts +2 -2
- package/src/mcp-server/tools/domainsCreateOrTransferDomain.ts +2 -2
- package/src/mcp-server/tools/domainsGetDomainTransfer.ts +2 -2
- package/src/mcp-server/tools/domainsPatchDomain.ts +1 -1
- package/src/mcp-server/tools/domainsRegistrarBuyDomains.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetBulkAvailability.ts +1 -1
- package/src/mcp-server/tools/domainsRegistrarGetContactInfoSchema.ts +2 -3
- package/src/mcp-server/tools/domainsRegistrarGetDomainAuthCode.ts +1 -1
- package/src/mcp-server/tools/domainsRegistrarGetDomainAvailability.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetDomainPrice.ts +1 -1
- package/src/mcp-server/tools/domainsRegistrarGetDomainTransferIn.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetOrder.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetSupportedTlds.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetTldPrice.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarTransferInDomain.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.ts +2 -2
- package/src/models/additionalcontactinforequired.ts +12 -51
- package/src/models/badrequest.ts +6 -49
- package/src/models/buydomainsop.ts +45 -33
- package/src/models/buysingledomainop.ts +37 -25
- package/src/models/createortransferdomainop.ts +5 -3
- package/src/models/createprojectop.ts +30 -30
- package/src/models/domainalreadyrenewing.ts +12 -51
- package/src/models/domainnotavailable.ts +12 -49
- package/src/models/domainnotfound.ts +12 -49
- package/src/models/domainnotregistered.ts +12 -49
- package/src/models/domainnotrenewable.ts +12 -49
- package/src/models/duplicatedomains.ts +12 -49
- package/src/models/expectedpricemismatch.ts +12 -51
- package/src/models/forbidden.ts +6 -47
- package/src/models/getcontactinfoschemaop.ts +6 -6
- package/src/models/getdomainauthcodeop.ts +6 -6
- package/src/models/getdomainpriceop.ts +11 -11
- package/src/models/getorderop.ts +3 -3
- package/src/models/gettldpriceop.ts +12 -9
- package/src/models/httpapidecodeerror.ts +5 -49
- package/src/models/internalservererror.ts +6 -49
- package/src/models/invalidadditionalcontactinfo.ts +12 -51
- package/src/models/issue.ts +0 -53
- package/src/models/notauthorizedforscope.ts +6 -51
- package/src/models/notfound.ts +6 -47
- package/src/models/ordertooexpensive.ts +12 -49
- package/src/models/patchdomainop.ts +6 -2
- package/src/models/propertykey.ts +13 -16
- package/src/models/renewdomainop.ts +24 -21
- package/src/models/tldnotsupported.ts +12 -49
- package/src/models/toomanydomains.ts +12 -49
- package/src/models/toomanyrequests.ts +8 -51
- package/src/models/transferindomainop.ts +23 -17
- package/src/models/unauthorized.ts +6 -49
- package/src/models/updatedomainautorenewop.ts +12 -12
- package/src/models/updatedomainnameserversop.ts +6 -6
- package/src/models/updateprojectop.ts +30 -30
- package/src/sdk/domains.ts +11 -11
- package/src/sdk/domainsregistrar.ts +23 -23
- package/vercel-spec.json +204 -330
|
@@ -53,7 +53,7 @@ import { Result } from "../types/fp.js";
|
|
|
53
53
|
* Get the auth code for a domain
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* Get the auth code for a domain
|
|
56
|
+
* Get the auth code for a domain. This is required to transfer a domain from Vercel to another registrar.
|
|
57
57
|
*/
|
|
58
58
|
export function domainsRegistrarGetDomainAuthCode(
|
|
59
59
|
client: VercelCore,
|
|
@@ -51,10 +51,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
51
51
|
import { Result } from "../types/fp.js";
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Get availability for a
|
|
54
|
+
* Get availability for a domain
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
* Get availability for a specific domain
|
|
57
|
+
* Get availability for a specific domain. If the domain is available, it can be purchased using the [Buy a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-a-domain) endpoint or the [Buy multiple domains](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-multiple-domains) endpoint.
|
|
58
58
|
*/
|
|
59
59
|
export function domainsRegistrarGetDomainAvailability(
|
|
60
60
|
client: VercelCore,
|
|
@@ -49,10 +49,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
49
49
|
import { Result } from "../types/fp.js";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Get
|
|
52
|
+
* Get a domain's transfer status
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Get
|
|
55
|
+
* Get the transfer status for a domain
|
|
56
56
|
*/
|
|
57
57
|
export function domainsRegistrarGetDomainTransferIn(
|
|
58
58
|
client: VercelCore,
|
|
@@ -49,10 +49,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
49
49
|
import { Result } from "../types/fp.js";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Get
|
|
52
|
+
* Get a domain order
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Get a domain order
|
|
55
|
+
* Get information about a domain order by its ID
|
|
56
56
|
*/
|
|
57
57
|
export function domainsRegistrarGetOrder(
|
|
58
58
|
client: VercelCore,
|
|
@@ -43,10 +43,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
43
43
|
import { Result } from "../types/fp.js";
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Get
|
|
46
|
+
* Get supported TLDs
|
|
47
47
|
*
|
|
48
48
|
* @remarks
|
|
49
|
-
* Get supported
|
|
49
|
+
* Get a list of TLDs supported by Vercel
|
|
50
50
|
*/
|
|
51
51
|
export function domainsRegistrarGetSupportedTlds(
|
|
52
52
|
client: VercelCore,
|
|
@@ -48,10 +48,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
48
48
|
import { Result } from "../types/fp.js";
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Get price data
|
|
51
|
+
* Get TLD price data
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Get TLD price data
|
|
54
|
+
* Get price data for a specific TLD. This only reflects base prices for the given TLD. Premium domains may have different prices. Use the [Get price data for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-price-data-for-a-domain) endpoint to get the price data for a specific domain.
|
|
55
55
|
*/
|
|
56
56
|
export function domainsRegistrarGetTldPrice(
|
|
57
57
|
client: VercelCore,
|
|
@@ -46,10 +46,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
46
46
|
import { Result } from "../types/fp.js";
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Transfer a domain
|
|
49
|
+
* Transfer-in a domain
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Transfer
|
|
52
|
+
* Transfer a domain in from another registrar
|
|
53
53
|
*/
|
|
54
54
|
export function domainsRegistrarTransferInDomain(
|
|
55
55
|
client: VercelCore,
|
|
@@ -49,10 +49,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
49
49
|
import { Result } from "../types/fp.js";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Update
|
|
52
|
+
* Update auto-renew for a domain
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Update auto-renew for a domain
|
|
55
|
+
* Update the auto-renew setting for a domain
|
|
56
56
|
*/
|
|
57
57
|
export function domainsRegistrarUpdateDomainAutoRenew(
|
|
58
58
|
client: VercelCore,
|
|
@@ -49,10 +49,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
49
49
|
import { Result } from "../types/fp.js";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Update
|
|
52
|
+
* Update nameservers for a domain
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Update nameservers for a domain
|
|
55
|
+
* Update the nameservers for a domain. Pass an empty array to use Vercel's default nameservers.
|
|
56
56
|
*/
|
|
57
57
|
export function domainsRegistrarUpdateDomainNameservers(
|
|
58
58
|
client: VercelCore,
|
|
@@ -146,7 +146,7 @@ async function $do(
|
|
|
146
146
|
|
|
147
147
|
const doResult = await client._do(req, {
|
|
148
148
|
context,
|
|
149
|
-
errorCodes: ["400", "401", "402", "403", "409", "4XX", "500", "5XX"],
|
|
149
|
+
errorCodes: ["400", "401", "402", "403", "404", "409", "4XX", "500", "5XX"],
|
|
150
150
|
retryConfig: context.retryConfig,
|
|
151
151
|
retryCodes: context.retryCodes,
|
|
152
152
|
});
|
|
@@ -167,7 +167,7 @@ async function $do(
|
|
|
167
167
|
| SDKValidationError
|
|
168
168
|
>(
|
|
169
169
|
M.json(200, UploadProjectClientCertResponseBody$inboundSchema),
|
|
170
|
-
M.fail([400, 401, 402, 403, 409, "4XX"]),
|
|
170
|
+
M.fail([400, 401, 402, 403, 404, 409, "4XX"]),
|
|
171
171
|
M.fail([500, "5XX"]),
|
|
172
172
|
)(response, req);
|
|
173
173
|
if (!result.ok) {
|
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
|
-
sdkVersion: "1.13.
|
|
64
|
+
sdkVersion: "1.13.5",
|
|
65
65
|
genVersion: "2.723.2",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.13.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.13.5 2.723.2 0.0.1 @vercel/sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -12,9 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$domainsBuyDomain: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "domains-buy-domain",
|
|
15
|
-
description: `Purchase a domain
|
|
15
|
+
description: `Purchase a domain (deprecated)
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
This endpoint is deprecated and replaced with the endpoint [Buy a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-a-domain). Purchases the specified domain.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsBuyDomain(
|
|
@@ -12,9 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$domainsCheckDomainPrice: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "domains-check-domain-price",
|
|
15
|
-
description: `Check the price for a domain
|
|
15
|
+
description: `Check the price for a domain (deprecated)
|
|
16
16
|
|
|
17
|
-
Check the price to purchase a domain and how long a single purchase period is.`,
|
|
17
|
+
This endpoint is deprecated and replaced with the endpoint [Get price data for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-price-data-for-a-domain). Check the price to purchase a domain and how long a single purchase period is.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsCheckDomainPrice(
|
|
@@ -12,9 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$domainsCheckDomainStatus: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "domains-check-domain-status",
|
|
15
|
-
description: `Check a Domain Availability
|
|
15
|
+
description: `Check a Domain Availability (deprecated)
|
|
16
16
|
|
|
17
|
-
Check if a domain name is available for purchase.`,
|
|
17
|
+
This endpoint is deprecated and replaced with the endpoint [Get availability for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-availability-for-a-domain). Check if a domain name is available for purchase.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsCheckDomainStatus(
|
|
@@ -12,9 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$domainsCreateOrTransferDomain: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "domains-create-or-transfer-domain",
|
|
15
|
-
description: `
|
|
15
|
+
description: `Add an existing domain to the Vercel platform
|
|
16
16
|
|
|
17
|
-
This endpoint is used for adding a new apex domain name with Vercel for the authenticating user.
|
|
17
|
+
This endpoint is used for adding a new apex domain name with Vercel for the authenticating user. Note: This endpoint is no longer used for initiating domain transfers from external registrars to Vercel. For this, please use the endpoint [Transfer-in a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/transfer-in-a-domain).`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsCreateOrTransferDomain(
|
|
@@ -12,9 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$domainsGetDomainTransfer: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "domains-get-domain-transfer",
|
|
15
|
-
description: `Get domain transfer info
|
|
15
|
+
description: `Get domain transfer info (deprecated)
|
|
16
16
|
|
|
17
|
-
Fetch domain transfer availability or transfer status if a transfer is in progress.`,
|
|
17
|
+
This endpoint is deprecated and replaced with the endpoint [Get a domain's transfer status](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-a-domain-s-transfer-status). Fetch domain transfer availability or transfer status if a transfer is in progress.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsGetDomainTransfer(
|
|
@@ -14,7 +14,7 @@ export const tool$domainsPatchDomain: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "domains-patch-domain",
|
|
15
15
|
description: `Update or move apex domain
|
|
16
16
|
|
|
17
|
-
Update or move apex domain.`,
|
|
17
|
+
Update or move apex domain. Note: This endpoint is no longer used for updating auto-renew or nameservers. For this, please use the endpoints [Update auto-renew for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/update-auto-renew-for-a-domain) and [Update nameservers for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/update-nameservers-for-a-domain).`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsPatchDomain(
|
|
@@ -12,9 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$domainsRegistrarBuyDomains: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "domains-registrar-buy-domains",
|
|
15
|
-
description: `Buy multiple domains
|
|
15
|
+
description: `Buy multiple domains
|
|
16
16
|
|
|
17
|
-
Buy multiple domains`,
|
|
17
|
+
Buy multiple domains at once`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsRegistrarBuyDomains(
|
|
@@ -16,7 +16,7 @@ export const tool$domainsRegistrarGetBulkAvailability: ToolDefinition<
|
|
|
16
16
|
name: "domains-registrar-get-bulk-availability",
|
|
17
17
|
description: `Get availability for multiple domains
|
|
18
18
|
|
|
19
|
-
Get availability for multiple domains
|
|
19
|
+
Get availability for multiple domains. If the domains are available, they can be purchased using the [Buy a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-a-domain) endpoint or the [Buy multiple domains](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-multiple-domains) endpoint.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await domainsRegistrarGetBulkAvailability(
|
|
@@ -14,10 +14,9 @@ export const tool$domainsRegistrarGetContactInfoSchema: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "domains-registrar-get-contact-info-schema",
|
|
17
|
-
description:
|
|
18
|
-
`Get the schema for the tld-specific contact information for a domain
|
|
17
|
+
description: `Get contact info schema
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Some TLDs require additional contact information. Use this endpoint to get the schema for the tld-specific contact information for a domain.`,
|
|
21
20
|
args,
|
|
22
21
|
tool: async (client, args, ctx) => {
|
|
23
22
|
const [result, apiCall] = await domainsRegistrarGetContactInfoSchema(
|
|
@@ -16,7 +16,7 @@ export const tool$domainsRegistrarGetDomainAuthCode: ToolDefinition<
|
|
|
16
16
|
name: "domains-registrar-get-domain-auth-code",
|
|
17
17
|
description: `Get the auth code for a domain
|
|
18
18
|
|
|
19
|
-
Get the auth code for a domain
|
|
19
|
+
Get the auth code for a domain. This is required to transfer a domain from Vercel to another registrar.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await domainsRegistrarGetDomainAuthCode(
|
|
@@ -14,9 +14,9 @@ export const tool$domainsRegistrarGetDomainAvailability: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "domains-registrar-get-domain-availability",
|
|
17
|
-
description: `Get availability for a
|
|
17
|
+
description: `Get availability for a domain
|
|
18
18
|
|
|
19
|
-
Get availability for a specific domain
|
|
19
|
+
Get availability for a specific domain. If the domain is available, it can be purchased using the [Buy a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-a-domain) endpoint or the [Buy multiple domains](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/buy-multiple-domains) endpoint.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await domainsRegistrarGetDomainAvailability(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$domainsRegistrarGetDomainPrice: ToolDefinition<typeof args> =
|
|
14
14
|
{
|
|
15
15
|
name: "domains-registrar-get-domain-price",
|
|
16
|
-
description: `Get price data for a
|
|
16
|
+
description: `Get price data for a domain
|
|
17
17
|
|
|
18
18
|
Get price data for a specific domain`,
|
|
19
19
|
args,
|
|
@@ -14,9 +14,9 @@ export const tool$domainsRegistrarGetDomainTransferIn: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "domains-registrar-get-domain-transfer-in",
|
|
17
|
-
description: `Get
|
|
17
|
+
description: `Get a domain's transfer status
|
|
18
18
|
|
|
19
|
-
Get
|
|
19
|
+
Get the transfer status for a domain`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await domainsRegistrarGetDomainTransferIn(
|
|
@@ -12,9 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$domainsRegistrarGetOrder: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "domains-registrar-get-order",
|
|
15
|
-
description: `Get
|
|
15
|
+
description: `Get a domain order
|
|
16
16
|
|
|
17
|
-
Get a domain order`,
|
|
17
|
+
Get information about a domain order by its ID`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsRegistrarGetOrder(
|
|
@@ -7,9 +7,9 @@ import { formatResult, ToolDefinition } from "../tools.js";
|
|
|
7
7
|
|
|
8
8
|
export const tool$domainsRegistrarGetSupportedTlds: ToolDefinition = {
|
|
9
9
|
name: "domains-registrar-get-supported-tlds",
|
|
10
|
-
description: `Get
|
|
10
|
+
description: `Get supported TLDs
|
|
11
11
|
|
|
12
|
-
Get supported
|
|
12
|
+
Get a list of TLDs supported by Vercel`,
|
|
13
13
|
tool: async (client, ctx) => {
|
|
14
14
|
const [result, apiCall] = await domainsRegistrarGetSupportedTlds(
|
|
15
15
|
client,
|
|
@@ -12,9 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$domainsRegistrarGetTldPrice: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "domains-registrar-get-tld-price",
|
|
15
|
-
description: `Get price data
|
|
15
|
+
description: `Get TLD price data
|
|
16
16
|
|
|
17
|
-
Get TLD price data
|
|
17
|
+
Get price data for a specific TLD. This only reflects base prices for the given TLD. Premium domains may have different prices. Use the [Get price data for a domain](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-price-data-for-a-domain) endpoint to get the price data for a specific domain.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await domainsRegistrarGetTldPrice(
|
|
@@ -14,9 +14,9 @@ export const tool$domainsRegistrarTransferInDomain: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "domains-registrar-transfer-in-domain",
|
|
17
|
-
description: `Transfer a domain
|
|
17
|
+
description: `Transfer-in a domain
|
|
18
18
|
|
|
19
|
-
Transfer
|
|
19
|
+
Transfer a domain in from another registrar`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await domainsRegistrarTransferInDomain(
|
|
@@ -14,9 +14,9 @@ export const tool$domainsRegistrarUpdateDomainAutoRenew: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "domains-registrar-update-domain-auto-renew",
|
|
17
|
-
description: `Update
|
|
17
|
+
description: `Update auto-renew for a domain
|
|
18
18
|
|
|
19
|
-
Update auto-renew for a domain`,
|
|
19
|
+
Update the auto-renew setting for a domain`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await domainsRegistrarUpdateDomainAutoRenew(
|
|
@@ -14,9 +14,9 @@ export const tool$domainsRegistrarUpdateDomainNameservers: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "domains-registrar-update-domain-nameservers",
|
|
17
|
-
description: `Update
|
|
17
|
+
description: `Update nameservers for a domain
|
|
18
18
|
|
|
19
|
-
Update nameservers for a domain
|
|
19
|
+
Update the nameservers for a domain. Pass an empty array to use Vercel's default nameservers.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await domainsRegistrarUpdateDomainNameservers(
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
6
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
7
|
import { VercelError } from "./vercelerror.js";
|
|
9
8
|
|
|
@@ -14,24 +13,21 @@ export type AdditionalContactInfoRequiredCode = ClosedEnum<
|
|
|
14
13
|
typeof AdditionalContactInfoRequiredCode
|
|
15
14
|
>;
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export type AdditionalContactInfoRequiredTag = ClosedEnum<
|
|
21
|
-
typeof AdditionalContactInfoRequiredTag
|
|
22
|
-
>;
|
|
23
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Additional contact information is required for the TLD.
|
|
18
|
+
*/
|
|
24
19
|
export type AdditionalContactInfoRequiredData = {
|
|
25
20
|
status: number;
|
|
26
21
|
code: AdditionalContactInfoRequiredCode;
|
|
27
22
|
message: string;
|
|
28
|
-
tag: AdditionalContactInfoRequiredTag;
|
|
29
23
|
};
|
|
30
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Additional contact information is required for the TLD.
|
|
27
|
+
*/
|
|
31
28
|
export class AdditionalContactInfoRequired extends VercelError {
|
|
32
29
|
status: number;
|
|
33
30
|
code: AdditionalContactInfoRequiredCode;
|
|
34
|
-
tag: AdditionalContactInfoRequiredTag;
|
|
35
31
|
|
|
36
32
|
/** The original data that was passed to this error instance. */
|
|
37
33
|
data$: AdditionalContactInfoRequiredData;
|
|
@@ -45,7 +41,6 @@ export class AdditionalContactInfoRequired extends VercelError {
|
|
|
45
41
|
this.data$ = err;
|
|
46
42
|
this.status = err.status;
|
|
47
43
|
this.code = err.code;
|
|
48
|
-
this.tag = err.tag;
|
|
49
44
|
|
|
50
45
|
this.name = "AdditionalContactInfoRequired";
|
|
51
46
|
}
|
|
@@ -73,27 +68,6 @@ export namespace AdditionalContactInfoRequiredCode$ {
|
|
|
73
68
|
AdditionalContactInfoRequiredCode$outboundSchema;
|
|
74
69
|
}
|
|
75
70
|
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const AdditionalContactInfoRequiredTag$inboundSchema: z.ZodNativeEnum<
|
|
78
|
-
typeof AdditionalContactInfoRequiredTag
|
|
79
|
-
> = z.nativeEnum(AdditionalContactInfoRequiredTag);
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const AdditionalContactInfoRequiredTag$outboundSchema: z.ZodNativeEnum<
|
|
83
|
-
typeof AdditionalContactInfoRequiredTag
|
|
84
|
-
> = AdditionalContactInfoRequiredTag$inboundSchema;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
-
*/
|
|
90
|
-
export namespace AdditionalContactInfoRequiredTag$ {
|
|
91
|
-
/** @deprecated use `AdditionalContactInfoRequiredTag$inboundSchema` instead. */
|
|
92
|
-
export const inboundSchema = AdditionalContactInfoRequiredTag$inboundSchema;
|
|
93
|
-
/** @deprecated use `AdditionalContactInfoRequiredTag$outboundSchema` instead. */
|
|
94
|
-
export const outboundSchema = AdditionalContactInfoRequiredTag$outboundSchema;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
71
|
/** @internal */
|
|
98
72
|
export const AdditionalContactInfoRequired$inboundSchema: z.ZodType<
|
|
99
73
|
AdditionalContactInfoRequired,
|
|
@@ -103,17 +77,12 @@ export const AdditionalContactInfoRequired$inboundSchema: z.ZodType<
|
|
|
103
77
|
status: z.number(),
|
|
104
78
|
code: AdditionalContactInfoRequiredCode$inboundSchema,
|
|
105
79
|
message: z.string(),
|
|
106
|
-
_tag: AdditionalContactInfoRequiredTag$inboundSchema,
|
|
107
80
|
request$: z.instanceof(Request),
|
|
108
81
|
response$: z.instanceof(Response),
|
|
109
82
|
body$: z.string(),
|
|
110
83
|
})
|
|
111
84
|
.transform((v) => {
|
|
112
|
-
|
|
113
|
-
"_tag": "tag",
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
return new AdditionalContactInfoRequired(remapped, {
|
|
85
|
+
return new AdditionalContactInfoRequired(v, {
|
|
117
86
|
request: v.request$,
|
|
118
87
|
response: v.response$,
|
|
119
88
|
body: v.body$,
|
|
@@ -125,7 +94,6 @@ export type AdditionalContactInfoRequired$Outbound = {
|
|
|
125
94
|
status: number;
|
|
126
95
|
code: string;
|
|
127
96
|
message: string;
|
|
128
|
-
_tag: string;
|
|
129
97
|
};
|
|
130
98
|
|
|
131
99
|
/** @internal */
|
|
@@ -135,18 +103,11 @@ export const AdditionalContactInfoRequired$outboundSchema: z.ZodType<
|
|
|
135
103
|
AdditionalContactInfoRequired
|
|
136
104
|
> = z.instanceof(AdditionalContactInfoRequired)
|
|
137
105
|
.transform(v => v.data$)
|
|
138
|
-
.pipe(
|
|
139
|
-
z.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
tag: AdditionalContactInfoRequiredTag$outboundSchema,
|
|
144
|
-
}).transform((v) => {
|
|
145
|
-
return remap$(v, {
|
|
146
|
-
tag: "_tag",
|
|
147
|
-
});
|
|
148
|
-
}),
|
|
149
|
-
);
|
|
106
|
+
.pipe(z.object({
|
|
107
|
+
status: z.number(),
|
|
108
|
+
code: AdditionalContactInfoRequiredCode$outboundSchema,
|
|
109
|
+
message: z.string(),
|
|
110
|
+
}));
|
|
150
111
|
|
|
151
112
|
/**
|
|
152
113
|
* @internal
|