@vercel/sdk 1.12.2 → 1.13.1
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 +40 -4
- package/bin/mcp-server.js +4898 -1561
- package/bin/mcp-server.js.map +63 -14
- package/docs/sdks/domains/README.md +1 -0
- package/docs/sdks/domainsregistrar/README.md +1335 -0
- package/esm/__tests__/accessgroups.test.js +3 -1
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +6 -9
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/domainsregistrar.test.d.ts +2 -0
- package/esm/__tests__/domainsregistrar.test.d.ts.map +1 -0
- package/esm/__tests__/domainsregistrar.test.js +274 -0
- package/esm/__tests__/domainsregistrar.test.js.map +1 -0
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +7 -5
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +1 -2
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +1 -11
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/domainsCheckDomainPrice.d.ts +2 -1
- package/esm/funcs/domainsCheckDomainPrice.d.ts.map +1 -1
- package/esm/funcs/domainsCheckDomainPrice.js +3 -2
- package/esm/funcs/domainsCheckDomainPrice.js.map +1 -1
- package/esm/funcs/domainsRegistrarBuyDomains.d.ts +21 -0
- package/esm/funcs/domainsRegistrarBuyDomains.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarBuyDomains.js +85 -0
- package/esm/funcs/domainsRegistrarBuyDomains.js.map +1 -0
- package/esm/funcs/domainsRegistrarBuySingleDomain.d.ts +21 -0
- package/esm/funcs/domainsRegistrarBuySingleDomain.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarBuySingleDomain.js +91 -0
- package/esm/funcs/domainsRegistrarBuySingleDomain.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts +20 -0
- package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetBulkAvailability.js +84 -0
- package/esm/funcs/domainsRegistrarGetBulkAvailability.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.d.ts +20 -0
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.js +89 -0
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.d.ts +22 -0
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.js +91 -0
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetDomainAvailability.d.ts +21 -0
- package/esm/funcs/domainsRegistrarGetDomainAvailability.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetDomainAvailability.js +90 -0
- package/esm/funcs/domainsRegistrarGetDomainAvailability.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetDomainPrice.d.ts +20 -0
- package/esm/funcs/domainsRegistrarGetDomainPrice.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetDomainPrice.js +93 -0
- package/esm/funcs/domainsRegistrarGetDomainPrice.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.d.ts +22 -0
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.js +91 -0
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetOrder.d.ts +22 -0
- package/esm/funcs/domainsRegistrarGetOrder.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetOrder.js +91 -0
- package/esm/funcs/domainsRegistrarGetOrder.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts +20 -0
- package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetSupportedTlds.js +75 -0
- package/esm/funcs/domainsRegistrarGetSupportedTlds.js.map +1 -0
- package/esm/funcs/domainsRegistrarGetTldPrice.d.ts +21 -0
- package/esm/funcs/domainsRegistrarGetTldPrice.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarGetTldPrice.js +94 -0
- package/esm/funcs/domainsRegistrarGetTldPrice.js.map +1 -0
- package/esm/funcs/domainsRegistrarRenewDomain.d.ts +22 -0
- package/esm/funcs/domainsRegistrarRenewDomain.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarRenewDomain.js +92 -0
- package/esm/funcs/domainsRegistrarRenewDomain.js.map +1 -0
- package/esm/funcs/domainsRegistrarTransferInDomain.d.ts +21 -0
- package/esm/funcs/domainsRegistrarTransferInDomain.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarTransferInDomain.js +91 -0
- package/esm/funcs/domainsRegistrarTransferInDomain.js.map +1 -0
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.d.ts +22 -0
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js +93 -0
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -0
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.d.ts +22 -0
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.d.ts.map +1 -0
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js +93 -0
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +31 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarBuySingleDomain.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarBuySingleDomain.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarBuySingleDomain.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarBuySingleDomain.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetOrder.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarGetOrder.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetOrder.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarGetOrder.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts +3 -0
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js +23 -0
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarRenewDomain.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarRenewDomain.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarRenewDomain.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarRenewDomain.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.js +28 -0
- package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.js +27 -0
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.d.ts +7 -0
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.d.ts.map +1 -0
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.js +27 -0
- package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.js.map +1 -0
- package/esm/models/buydomainsop.d.ts +282 -0
- package/esm/models/buydomainsop.d.ts.map +1 -0
- package/esm/models/buydomainsop.js +247 -0
- package/esm/models/buydomainsop.js.map +1 -0
- package/esm/models/buysingledomainop.d.ts +282 -0
- package/esm/models/buysingledomainop.d.ts.map +1 -0
- package/esm/models/buysingledomainop.js +257 -0
- package/esm/models/buysingledomainop.js.map +1 -0
- package/esm/models/canceldeploymentop.d.ts +34 -34
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +14 -14
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +32 -32
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +12 -12
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +285 -285
- package/esm/models/createintegrationstoredirectop.js +351 -351
- 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/forbidden.d.ts +89 -0
- package/esm/models/forbidden.d.ts.map +1 -0
- package/esm/models/forbidden.js +98 -0
- package/esm/models/forbidden.js.map +1 -0
- package/esm/models/getbulkavailabilityop.d.ts +114 -0
- package/esm/models/getbulkavailabilityop.d.ts.map +1 -0
- package/esm/models/getbulkavailabilityop.js +115 -0
- package/esm/models/getbulkavailabilityop.js.map +1 -0
- package/esm/models/getconfigurationproductsop.d.ts +375 -375
- package/esm/models/getconfigurationproductsop.js +465 -465
- package/esm/models/getcontactinfoschemaop.d.ts +80 -0
- package/esm/models/getcontactinfoschemaop.d.ts.map +1 -0
- package/esm/models/getcontactinfoschemaop.js +84 -0
- package/esm/models/getcontactinfoschemaop.js.map +1 -0
- package/esm/models/getdomainauthcodeop.d.ts +84 -0
- package/esm/models/getdomainauthcodeop.d.ts.map +1 -0
- package/esm/models/getdomainauthcodeop.js +88 -0
- package/esm/models/getdomainauthcodeop.js.map +1 -0
- package/esm/models/getdomainavailabilityop.d.ts +84 -0
- package/esm/models/getdomainavailabilityop.d.ts.map +1 -0
- package/esm/models/getdomainavailabilityop.js +88 -0
- package/esm/models/getdomainavailabilityop.js.map +1 -0
- package/esm/models/getdomainpriceop.d.ts +101 -0
- package/esm/models/getdomainpriceop.d.ts.map +1 -0
- package/esm/models/getdomainpriceop.js +96 -0
- package/esm/models/getdomainpriceop.js.map +1 -0
- package/esm/models/getdomainsop.d.ts +15 -15
- package/esm/models/getdomainsop.d.ts.map +1 -1
- package/esm/models/getdomainsop.js +15 -15
- package/esm/models/getdomainsop.js.map +1 -1
- package/esm/models/getdomaintransferinop.d.ts +140 -0
- package/esm/models/getdomaintransferinop.d.ts.map +1 -0
- package/esm/models/getdomaintransferinop.js +117 -0
- package/esm/models/getdomaintransferinop.js.map +1 -0
- package/esm/models/getorderop.d.ts +715 -0
- package/esm/models/getorderop.d.ts.map +1 -0
- package/esm/models/getorderop.js +679 -0
- package/esm/models/getorderop.js.map +1 -0
- package/esm/models/getsupportedtldsop.d.ts +31 -0
- package/esm/models/getsupportedtldsop.d.ts.map +1 -0
- package/esm/models/getsupportedtldsop.js +38 -0
- package/esm/models/getsupportedtldsop.js.map +1 -0
- package/esm/models/gettldpriceop.d.ts +101 -0
- package/esm/models/gettldpriceop.d.ts.map +1 -0
- package/esm/models/gettldpriceop.js +96 -0
- package/esm/models/gettldpriceop.js.map +1 -0
- package/esm/models/internalservererror.d.ts +89 -0
- package/esm/models/internalservererror.d.ts.map +1 -0
- package/esm/models/internalservererror.js +98 -0
- package/esm/models/internalservererror.js.map +1 -0
- package/esm/models/notauthorizedforscope.d.ts +89 -0
- package/esm/models/notauthorizedforscope.d.ts.map +1 -0
- package/esm/models/notauthorizedforscope.js +98 -0
- package/esm/models/notauthorizedforscope.js.map +1 -0
- package/esm/models/renewdomainop.d.ts +257 -0
- package/esm/models/renewdomainop.d.ts.map +1 -0
- package/esm/models/renewdomainop.js +232 -0
- package/esm/models/renewdomainop.js.map +1 -0
- package/esm/models/transferindomainop.d.ts +261 -0
- package/esm/models/transferindomainop.d.ts.map +1 -0
- package/esm/models/transferindomainop.js +234 -0
- package/esm/models/transferindomainop.js.map +1 -0
- package/esm/models/unauthorized.d.ts +89 -0
- package/esm/models/unauthorized.d.ts.map +1 -0
- package/esm/models/unauthorized.js +98 -0
- package/esm/models/unauthorized.js.map +1 -0
- package/esm/models/updatedomainautorenewop.d.ts +83 -0
- package/esm/models/updatedomainautorenewop.d.ts.map +1 -0
- package/esm/models/updatedomainautorenewop.js +99 -0
- package/esm/models/updatedomainautorenewop.js.map +1 -0
- package/esm/models/updatedomainnameserversop.d.ts +83 -0
- package/esm/models/updatedomainnameserversop.d.ts.map +1 -0
- package/esm/models/updatedomainnameserversop.js +99 -0
- package/esm/models/updatedomainnameserversop.js.map +1 -0
- 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/domainsregistrar.d.ts +123 -0
- package/esm/sdk/domainsregistrar.d.ts.map +1 -0
- package/esm/sdk/domainsregistrar.js +158 -0
- package/esm/sdk/domainsregistrar.js.map +1 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +3 -1
- package/src/__tests__/domains.test.ts +6 -9
- package/src/__tests__/domainsregistrar.test.ts +313 -0
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +7 -5
- package/src/__tests__/rollingrelease.test.ts +1 -2
- package/src/__tests__/security.test.ts +1 -11
- package/src/funcs/domainsCheckDomainPrice.ts +9 -1
- package/src/funcs/domainsRegistrarBuyDomains.ts +204 -0
- package/src/funcs/domainsRegistrarBuySingleDomain.ts +211 -0
- package/src/funcs/domainsRegistrarGetBulkAvailability.ts +202 -0
- package/src/funcs/domainsRegistrarGetContactInfoSchema.ts +210 -0
- package/src/funcs/domainsRegistrarGetDomainAuthCode.ts +220 -0
- package/src/funcs/domainsRegistrarGetDomainAvailability.ts +218 -0
- package/src/funcs/domainsRegistrarGetDomainPrice.ts +210 -0
- package/src/funcs/domainsRegistrarGetDomainTransferIn.ts +223 -0
- package/src/funcs/domainsRegistrarGetOrder.ts +218 -0
- package/src/funcs/domainsRegistrarGetSupportedTlds.ts +178 -0
- package/src/funcs/domainsRegistrarGetTldPrice.ts +218 -0
- package/src/funcs/domainsRegistrarRenewDomain.ts +219 -0
- package/src/funcs/domainsRegistrarTransferInDomain.ts +213 -0
- package/src/funcs/domainsRegistrarUpdateDomainAutoRenew.ts +220 -0
- package/src/funcs/domainsRegistrarUpdateDomainNameservers.ts +220 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +31 -1
- package/src/mcp-server/tools/domainsRegistrarBuyDomains.ts +37 -0
- package/src/mcp-server/tools/domainsRegistrarBuySingleDomain.ts +38 -0
- package/src/mcp-server/tools/domainsRegistrarGetBulkAvailability.ts +39 -0
- package/src/mcp-server/tools/domainsRegistrarGetContactInfoSchema.ts +40 -0
- package/src/mcp-server/tools/domainsRegistrarGetDomainAuthCode.ts +39 -0
- package/src/mcp-server/tools/domainsRegistrarGetDomainAvailability.ts +39 -0
- package/src/mcp-server/tools/domainsRegistrarGetDomainPrice.ts +38 -0
- package/src/mcp-server/tools/domainsRegistrarGetDomainTransferIn.ts +39 -0
- package/src/mcp-server/tools/domainsRegistrarGetOrder.ts +37 -0
- package/src/mcp-server/tools/domainsRegistrarGetSupportedTlds.ts +30 -0
- package/src/mcp-server/tools/domainsRegistrarGetTldPrice.ts +37 -0
- package/src/mcp-server/tools/domainsRegistrarRenewDomain.ts +37 -0
- package/src/mcp-server/tools/domainsRegistrarTransferInDomain.ts +39 -0
- package/src/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.ts +37 -0
- package/src/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.ts +37 -0
- package/src/models/buydomainsop.ts +582 -0
- package/src/models/buysingledomainop.ts +593 -0
- package/src/models/canceldeploymentop.ts +18 -18
- package/src/models/createdeploymentop.ts +14 -14
- package/src/models/createintegrationstoredirectop.ts +604 -604
- package/src/models/createprojectop.ts +30 -30
- package/src/models/forbidden.ts +155 -0
- package/src/models/getbulkavailabilityop.ts +288 -0
- package/src/models/getconfigurationproductsop.ts +802 -802
- package/src/models/getcontactinfoschemaop.ts +222 -0
- package/src/models/getdomainauthcodeop.ts +227 -0
- package/src/models/getdomainavailabilityop.ts +231 -0
- package/src/models/getdomainpriceop.ts +247 -0
- package/src/models/getdomainsop.ts +50 -43
- package/src/models/getdomaintransferinop.ts +268 -0
- package/src/models/getorderop.ts +1298 -0
- package/src/models/getsupportedtldsop.ts +95 -0
- package/src/models/gettldpriceop.ts +248 -0
- package/src/models/internalservererror.ts +159 -0
- package/src/models/notauthorizedforscope.ts +161 -0
- package/src/models/renewdomainop.ts +548 -0
- package/src/models/transferindomainop.ts +566 -0
- package/src/models/unauthorized.ts +153 -0
- package/src/models/updatedomainautorenewop.ts +229 -0
- package/src/models/updatedomainnameserversop.ts +233 -0
- package/src/models/updateprojectop.ts +30 -30
- package/src/sdk/domainsregistrar.ts +323 -0
- package/src/sdk/sdk.ts +6 -0
- package/vercel-spec.json +3343 -255
- package/docs/sdks/vercel/README.md +0 -7
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import {
|
|
11
|
+
InternalServerError,
|
|
12
|
+
InternalServerError$inboundSchema,
|
|
13
|
+
InternalServerError$Outbound,
|
|
14
|
+
InternalServerError$outboundSchema,
|
|
15
|
+
} from "./internalservererror.js";
|
|
16
|
+
import {
|
|
17
|
+
NotAuthorizedForScope,
|
|
18
|
+
NotAuthorizedForScope$inboundSchema,
|
|
19
|
+
NotAuthorizedForScope$Outbound,
|
|
20
|
+
NotAuthorizedForScope$outboundSchema,
|
|
21
|
+
} from "./notauthorizedforscope.js";
|
|
22
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
23
|
+
import {
|
|
24
|
+
Unauthorized,
|
|
25
|
+
Unauthorized$inboundSchema,
|
|
26
|
+
Unauthorized$Outbound,
|
|
27
|
+
Unauthorized$outboundSchema,
|
|
28
|
+
} from "./unauthorized.js";
|
|
29
|
+
|
|
30
|
+
export type Domains = {
|
|
31
|
+
domainName: string;
|
|
32
|
+
autoRenew: boolean;
|
|
33
|
+
years: number;
|
|
34
|
+
/**
|
|
35
|
+
* Represents a monetary amount in USD dollars
|
|
36
|
+
*/
|
|
37
|
+
expectedPrice: number;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type BuyDomainsAdditional = {};
|
|
41
|
+
|
|
42
|
+
export type BuyDomainsContactInformation = {
|
|
43
|
+
/**
|
|
44
|
+
* a non empty string
|
|
45
|
+
*/
|
|
46
|
+
firstName: string;
|
|
47
|
+
/**
|
|
48
|
+
* a non empty string
|
|
49
|
+
*/
|
|
50
|
+
lastName: string;
|
|
51
|
+
/**
|
|
52
|
+
* a non empty string
|
|
53
|
+
*/
|
|
54
|
+
email: string;
|
|
55
|
+
/**
|
|
56
|
+
* A valid E.164 phone number
|
|
57
|
+
*/
|
|
58
|
+
phone: string;
|
|
59
|
+
/**
|
|
60
|
+
* a non empty string
|
|
61
|
+
*/
|
|
62
|
+
address1: string;
|
|
63
|
+
/**
|
|
64
|
+
* a non empty string
|
|
65
|
+
*/
|
|
66
|
+
address2?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* a non empty string
|
|
69
|
+
*/
|
|
70
|
+
city: string;
|
|
71
|
+
/**
|
|
72
|
+
* a non empty string
|
|
73
|
+
*/
|
|
74
|
+
state: string;
|
|
75
|
+
/**
|
|
76
|
+
* a non empty string
|
|
77
|
+
*/
|
|
78
|
+
zip: string;
|
|
79
|
+
/**
|
|
80
|
+
* A valid ISO 3166-1 alpha-2 country code
|
|
81
|
+
*/
|
|
82
|
+
country: string;
|
|
83
|
+
/**
|
|
84
|
+
* a non empty string
|
|
85
|
+
*/
|
|
86
|
+
companyName?: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* A valid E.164 phone number
|
|
89
|
+
*/
|
|
90
|
+
fax?: string | undefined;
|
|
91
|
+
additional?: BuyDomainsAdditional | undefined;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type BuyDomainsRequestBody = {
|
|
95
|
+
domains: Array<Domains>;
|
|
96
|
+
contactInformation: BuyDomainsContactInformation;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Unauthorized
|
|
101
|
+
*/
|
|
102
|
+
export type BuyDomainsDomainsRegistrarResponseBody =
|
|
103
|
+
| Unauthorized
|
|
104
|
+
| NotAuthorizedForScope
|
|
105
|
+
| InternalServerError;
|
|
106
|
+
|
|
107
|
+
export const BuyDomainsMethod = {
|
|
108
|
+
Get: "GET",
|
|
109
|
+
} as const;
|
|
110
|
+
export type BuyDomainsMethod = ClosedEnum<typeof BuyDomainsMethod>;
|
|
111
|
+
|
|
112
|
+
export type BuyDomainsLinks = {
|
|
113
|
+
href: string;
|
|
114
|
+
method: BuyDomainsMethod;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Success
|
|
119
|
+
*/
|
|
120
|
+
export type BuyDomainsResponseBody = {
|
|
121
|
+
orderId: string;
|
|
122
|
+
links: { [k: string]: BuyDomainsLinks };
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const Domains$inboundSchema: z.ZodType<Domains, z.ZodTypeDef, unknown> =
|
|
127
|
+
z.object({
|
|
128
|
+
domainName: z.string(),
|
|
129
|
+
autoRenew: z.boolean(),
|
|
130
|
+
years: z.number(),
|
|
131
|
+
expectedPrice: z.number(),
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export type Domains$Outbound = {
|
|
136
|
+
domainName: string;
|
|
137
|
+
autoRenew: boolean;
|
|
138
|
+
years: number;
|
|
139
|
+
expectedPrice: number;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const Domains$outboundSchema: z.ZodType<
|
|
144
|
+
Domains$Outbound,
|
|
145
|
+
z.ZodTypeDef,
|
|
146
|
+
Domains
|
|
147
|
+
> = z.object({
|
|
148
|
+
domainName: z.string(),
|
|
149
|
+
autoRenew: z.boolean(),
|
|
150
|
+
years: z.number(),
|
|
151
|
+
expectedPrice: z.number(),
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
157
|
+
*/
|
|
158
|
+
export namespace Domains$ {
|
|
159
|
+
/** @deprecated use `Domains$inboundSchema` instead. */
|
|
160
|
+
export const inboundSchema = Domains$inboundSchema;
|
|
161
|
+
/** @deprecated use `Domains$outboundSchema` instead. */
|
|
162
|
+
export const outboundSchema = Domains$outboundSchema;
|
|
163
|
+
/** @deprecated use `Domains$Outbound` instead. */
|
|
164
|
+
export type Outbound = Domains$Outbound;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function domainsToJSON(domains: Domains): string {
|
|
168
|
+
return JSON.stringify(Domains$outboundSchema.parse(domains));
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function domainsFromJSON(
|
|
172
|
+
jsonString: string,
|
|
173
|
+
): SafeParseResult<Domains, SDKValidationError> {
|
|
174
|
+
return safeParse(
|
|
175
|
+
jsonString,
|
|
176
|
+
(x) => Domains$inboundSchema.parse(JSON.parse(x)),
|
|
177
|
+
`Failed to parse 'Domains' from JSON`,
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/** @internal */
|
|
182
|
+
export const BuyDomainsAdditional$inboundSchema: z.ZodType<
|
|
183
|
+
BuyDomainsAdditional,
|
|
184
|
+
z.ZodTypeDef,
|
|
185
|
+
unknown
|
|
186
|
+
> = z.object({});
|
|
187
|
+
|
|
188
|
+
/** @internal */
|
|
189
|
+
export type BuyDomainsAdditional$Outbound = {};
|
|
190
|
+
|
|
191
|
+
/** @internal */
|
|
192
|
+
export const BuyDomainsAdditional$outboundSchema: z.ZodType<
|
|
193
|
+
BuyDomainsAdditional$Outbound,
|
|
194
|
+
z.ZodTypeDef,
|
|
195
|
+
BuyDomainsAdditional
|
|
196
|
+
> = z.object({});
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @internal
|
|
200
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
201
|
+
*/
|
|
202
|
+
export namespace BuyDomainsAdditional$ {
|
|
203
|
+
/** @deprecated use `BuyDomainsAdditional$inboundSchema` instead. */
|
|
204
|
+
export const inboundSchema = BuyDomainsAdditional$inboundSchema;
|
|
205
|
+
/** @deprecated use `BuyDomainsAdditional$outboundSchema` instead. */
|
|
206
|
+
export const outboundSchema = BuyDomainsAdditional$outboundSchema;
|
|
207
|
+
/** @deprecated use `BuyDomainsAdditional$Outbound` instead. */
|
|
208
|
+
export type Outbound = BuyDomainsAdditional$Outbound;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function buyDomainsAdditionalToJSON(
|
|
212
|
+
buyDomainsAdditional: BuyDomainsAdditional,
|
|
213
|
+
): string {
|
|
214
|
+
return JSON.stringify(
|
|
215
|
+
BuyDomainsAdditional$outboundSchema.parse(buyDomainsAdditional),
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function buyDomainsAdditionalFromJSON(
|
|
220
|
+
jsonString: string,
|
|
221
|
+
): SafeParseResult<BuyDomainsAdditional, SDKValidationError> {
|
|
222
|
+
return safeParse(
|
|
223
|
+
jsonString,
|
|
224
|
+
(x) => BuyDomainsAdditional$inboundSchema.parse(JSON.parse(x)),
|
|
225
|
+
`Failed to parse 'BuyDomainsAdditional' from JSON`,
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/** @internal */
|
|
230
|
+
export const BuyDomainsContactInformation$inboundSchema: z.ZodType<
|
|
231
|
+
BuyDomainsContactInformation,
|
|
232
|
+
z.ZodTypeDef,
|
|
233
|
+
unknown
|
|
234
|
+
> = z.object({
|
|
235
|
+
firstName: z.string(),
|
|
236
|
+
lastName: z.string(),
|
|
237
|
+
email: z.string(),
|
|
238
|
+
phone: z.string(),
|
|
239
|
+
address1: z.string(),
|
|
240
|
+
address2: z.string().optional(),
|
|
241
|
+
city: z.string(),
|
|
242
|
+
state: z.string(),
|
|
243
|
+
zip: z.string(),
|
|
244
|
+
country: z.string(),
|
|
245
|
+
companyName: z.string().optional(),
|
|
246
|
+
fax: z.string().optional(),
|
|
247
|
+
additional: z.lazy(() => BuyDomainsAdditional$inboundSchema).optional(),
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export type BuyDomainsContactInformation$Outbound = {
|
|
252
|
+
firstName: string;
|
|
253
|
+
lastName: string;
|
|
254
|
+
email: string;
|
|
255
|
+
phone: string;
|
|
256
|
+
address1: string;
|
|
257
|
+
address2?: string | undefined;
|
|
258
|
+
city: string;
|
|
259
|
+
state: string;
|
|
260
|
+
zip: string;
|
|
261
|
+
country: string;
|
|
262
|
+
companyName?: string | undefined;
|
|
263
|
+
fax?: string | undefined;
|
|
264
|
+
additional?: BuyDomainsAdditional$Outbound | undefined;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/** @internal */
|
|
268
|
+
export const BuyDomainsContactInformation$outboundSchema: z.ZodType<
|
|
269
|
+
BuyDomainsContactInformation$Outbound,
|
|
270
|
+
z.ZodTypeDef,
|
|
271
|
+
BuyDomainsContactInformation
|
|
272
|
+
> = z.object({
|
|
273
|
+
firstName: z.string(),
|
|
274
|
+
lastName: z.string(),
|
|
275
|
+
email: z.string(),
|
|
276
|
+
phone: z.string(),
|
|
277
|
+
address1: z.string(),
|
|
278
|
+
address2: z.string().optional(),
|
|
279
|
+
city: z.string(),
|
|
280
|
+
state: z.string(),
|
|
281
|
+
zip: z.string(),
|
|
282
|
+
country: z.string(),
|
|
283
|
+
companyName: z.string().optional(),
|
|
284
|
+
fax: z.string().optional(),
|
|
285
|
+
additional: z.lazy(() => BuyDomainsAdditional$outboundSchema).optional(),
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @internal
|
|
290
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
291
|
+
*/
|
|
292
|
+
export namespace BuyDomainsContactInformation$ {
|
|
293
|
+
/** @deprecated use `BuyDomainsContactInformation$inboundSchema` instead. */
|
|
294
|
+
export const inboundSchema = BuyDomainsContactInformation$inboundSchema;
|
|
295
|
+
/** @deprecated use `BuyDomainsContactInformation$outboundSchema` instead. */
|
|
296
|
+
export const outboundSchema = BuyDomainsContactInformation$outboundSchema;
|
|
297
|
+
/** @deprecated use `BuyDomainsContactInformation$Outbound` instead. */
|
|
298
|
+
export type Outbound = BuyDomainsContactInformation$Outbound;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function buyDomainsContactInformationToJSON(
|
|
302
|
+
buyDomainsContactInformation: BuyDomainsContactInformation,
|
|
303
|
+
): string {
|
|
304
|
+
return JSON.stringify(
|
|
305
|
+
BuyDomainsContactInformation$outboundSchema.parse(
|
|
306
|
+
buyDomainsContactInformation,
|
|
307
|
+
),
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export function buyDomainsContactInformationFromJSON(
|
|
312
|
+
jsonString: string,
|
|
313
|
+
): SafeParseResult<BuyDomainsContactInformation, SDKValidationError> {
|
|
314
|
+
return safeParse(
|
|
315
|
+
jsonString,
|
|
316
|
+
(x) => BuyDomainsContactInformation$inboundSchema.parse(JSON.parse(x)),
|
|
317
|
+
`Failed to parse 'BuyDomainsContactInformation' from JSON`,
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/** @internal */
|
|
322
|
+
export const BuyDomainsRequestBody$inboundSchema: z.ZodType<
|
|
323
|
+
BuyDomainsRequestBody,
|
|
324
|
+
z.ZodTypeDef,
|
|
325
|
+
unknown
|
|
326
|
+
> = z.object({
|
|
327
|
+
domains: z.array(z.lazy(() => Domains$inboundSchema)),
|
|
328
|
+
contactInformation: z.lazy(() => BuyDomainsContactInformation$inboundSchema),
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
/** @internal */
|
|
332
|
+
export type BuyDomainsRequestBody$Outbound = {
|
|
333
|
+
domains: Array<Domains$Outbound>;
|
|
334
|
+
contactInformation: BuyDomainsContactInformation$Outbound;
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
/** @internal */
|
|
338
|
+
export const BuyDomainsRequestBody$outboundSchema: z.ZodType<
|
|
339
|
+
BuyDomainsRequestBody$Outbound,
|
|
340
|
+
z.ZodTypeDef,
|
|
341
|
+
BuyDomainsRequestBody
|
|
342
|
+
> = z.object({
|
|
343
|
+
domains: z.array(z.lazy(() => Domains$outboundSchema)),
|
|
344
|
+
contactInformation: z.lazy(() => BuyDomainsContactInformation$outboundSchema),
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @internal
|
|
349
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
350
|
+
*/
|
|
351
|
+
export namespace BuyDomainsRequestBody$ {
|
|
352
|
+
/** @deprecated use `BuyDomainsRequestBody$inboundSchema` instead. */
|
|
353
|
+
export const inboundSchema = BuyDomainsRequestBody$inboundSchema;
|
|
354
|
+
/** @deprecated use `BuyDomainsRequestBody$outboundSchema` instead. */
|
|
355
|
+
export const outboundSchema = BuyDomainsRequestBody$outboundSchema;
|
|
356
|
+
/** @deprecated use `BuyDomainsRequestBody$Outbound` instead. */
|
|
357
|
+
export type Outbound = BuyDomainsRequestBody$Outbound;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export function buyDomainsRequestBodyToJSON(
|
|
361
|
+
buyDomainsRequestBody: BuyDomainsRequestBody,
|
|
362
|
+
): string {
|
|
363
|
+
return JSON.stringify(
|
|
364
|
+
BuyDomainsRequestBody$outboundSchema.parse(buyDomainsRequestBody),
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export function buyDomainsRequestBodyFromJSON(
|
|
369
|
+
jsonString: string,
|
|
370
|
+
): SafeParseResult<BuyDomainsRequestBody, SDKValidationError> {
|
|
371
|
+
return safeParse(
|
|
372
|
+
jsonString,
|
|
373
|
+
(x) => BuyDomainsRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
374
|
+
`Failed to parse 'BuyDomainsRequestBody' from JSON`,
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/** @internal */
|
|
379
|
+
export const BuyDomainsDomainsRegistrarResponseBody$inboundSchema: z.ZodType<
|
|
380
|
+
BuyDomainsDomainsRegistrarResponseBody,
|
|
381
|
+
z.ZodTypeDef,
|
|
382
|
+
unknown
|
|
383
|
+
> = z.union([
|
|
384
|
+
Unauthorized$inboundSchema,
|
|
385
|
+
NotAuthorizedForScope$inboundSchema,
|
|
386
|
+
InternalServerError$inboundSchema,
|
|
387
|
+
]);
|
|
388
|
+
|
|
389
|
+
/** @internal */
|
|
390
|
+
export type BuyDomainsDomainsRegistrarResponseBody$Outbound =
|
|
391
|
+
| Unauthorized$Outbound
|
|
392
|
+
| NotAuthorizedForScope$Outbound
|
|
393
|
+
| InternalServerError$Outbound;
|
|
394
|
+
|
|
395
|
+
/** @internal */
|
|
396
|
+
export const BuyDomainsDomainsRegistrarResponseBody$outboundSchema: z.ZodType<
|
|
397
|
+
BuyDomainsDomainsRegistrarResponseBody$Outbound,
|
|
398
|
+
z.ZodTypeDef,
|
|
399
|
+
BuyDomainsDomainsRegistrarResponseBody
|
|
400
|
+
> = z.union([
|
|
401
|
+
Unauthorized$outboundSchema,
|
|
402
|
+
NotAuthorizedForScope$outboundSchema,
|
|
403
|
+
InternalServerError$outboundSchema,
|
|
404
|
+
]);
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @internal
|
|
408
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
409
|
+
*/
|
|
410
|
+
export namespace BuyDomainsDomainsRegistrarResponseBody$ {
|
|
411
|
+
/** @deprecated use `BuyDomainsDomainsRegistrarResponseBody$inboundSchema` instead. */
|
|
412
|
+
export const inboundSchema =
|
|
413
|
+
BuyDomainsDomainsRegistrarResponseBody$inboundSchema;
|
|
414
|
+
/** @deprecated use `BuyDomainsDomainsRegistrarResponseBody$outboundSchema` instead. */
|
|
415
|
+
export const outboundSchema =
|
|
416
|
+
BuyDomainsDomainsRegistrarResponseBody$outboundSchema;
|
|
417
|
+
/** @deprecated use `BuyDomainsDomainsRegistrarResponseBody$Outbound` instead. */
|
|
418
|
+
export type Outbound = BuyDomainsDomainsRegistrarResponseBody$Outbound;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export function buyDomainsDomainsRegistrarResponseBodyToJSON(
|
|
422
|
+
buyDomainsDomainsRegistrarResponseBody:
|
|
423
|
+
BuyDomainsDomainsRegistrarResponseBody,
|
|
424
|
+
): string {
|
|
425
|
+
return JSON.stringify(
|
|
426
|
+
BuyDomainsDomainsRegistrarResponseBody$outboundSchema.parse(
|
|
427
|
+
buyDomainsDomainsRegistrarResponseBody,
|
|
428
|
+
),
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export function buyDomainsDomainsRegistrarResponseBodyFromJSON(
|
|
433
|
+
jsonString: string,
|
|
434
|
+
): SafeParseResult<BuyDomainsDomainsRegistrarResponseBody, SDKValidationError> {
|
|
435
|
+
return safeParse(
|
|
436
|
+
jsonString,
|
|
437
|
+
(x) =>
|
|
438
|
+
BuyDomainsDomainsRegistrarResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
439
|
+
`Failed to parse 'BuyDomainsDomainsRegistrarResponseBody' from JSON`,
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/** @internal */
|
|
444
|
+
export const BuyDomainsMethod$inboundSchema: z.ZodNativeEnum<
|
|
445
|
+
typeof BuyDomainsMethod
|
|
446
|
+
> = z.nativeEnum(BuyDomainsMethod);
|
|
447
|
+
|
|
448
|
+
/** @internal */
|
|
449
|
+
export const BuyDomainsMethod$outboundSchema: z.ZodNativeEnum<
|
|
450
|
+
typeof BuyDomainsMethod
|
|
451
|
+
> = BuyDomainsMethod$inboundSchema;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @internal
|
|
455
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
456
|
+
*/
|
|
457
|
+
export namespace BuyDomainsMethod$ {
|
|
458
|
+
/** @deprecated use `BuyDomainsMethod$inboundSchema` instead. */
|
|
459
|
+
export const inboundSchema = BuyDomainsMethod$inboundSchema;
|
|
460
|
+
/** @deprecated use `BuyDomainsMethod$outboundSchema` instead. */
|
|
461
|
+
export const outboundSchema = BuyDomainsMethod$outboundSchema;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/** @internal */
|
|
465
|
+
export const BuyDomainsLinks$inboundSchema: z.ZodType<
|
|
466
|
+
BuyDomainsLinks,
|
|
467
|
+
z.ZodTypeDef,
|
|
468
|
+
unknown
|
|
469
|
+
> = z.object({
|
|
470
|
+
href: z.string(),
|
|
471
|
+
method: BuyDomainsMethod$inboundSchema,
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
/** @internal */
|
|
475
|
+
export type BuyDomainsLinks$Outbound = {
|
|
476
|
+
href: string;
|
|
477
|
+
method: string;
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
/** @internal */
|
|
481
|
+
export const BuyDomainsLinks$outboundSchema: z.ZodType<
|
|
482
|
+
BuyDomainsLinks$Outbound,
|
|
483
|
+
z.ZodTypeDef,
|
|
484
|
+
BuyDomainsLinks
|
|
485
|
+
> = z.object({
|
|
486
|
+
href: z.string(),
|
|
487
|
+
method: BuyDomainsMethod$outboundSchema,
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* @internal
|
|
492
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
493
|
+
*/
|
|
494
|
+
export namespace BuyDomainsLinks$ {
|
|
495
|
+
/** @deprecated use `BuyDomainsLinks$inboundSchema` instead. */
|
|
496
|
+
export const inboundSchema = BuyDomainsLinks$inboundSchema;
|
|
497
|
+
/** @deprecated use `BuyDomainsLinks$outboundSchema` instead. */
|
|
498
|
+
export const outboundSchema = BuyDomainsLinks$outboundSchema;
|
|
499
|
+
/** @deprecated use `BuyDomainsLinks$Outbound` instead. */
|
|
500
|
+
export type Outbound = BuyDomainsLinks$Outbound;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export function buyDomainsLinksToJSON(
|
|
504
|
+
buyDomainsLinks: BuyDomainsLinks,
|
|
505
|
+
): string {
|
|
506
|
+
return JSON.stringify(BuyDomainsLinks$outboundSchema.parse(buyDomainsLinks));
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export function buyDomainsLinksFromJSON(
|
|
510
|
+
jsonString: string,
|
|
511
|
+
): SafeParseResult<BuyDomainsLinks, SDKValidationError> {
|
|
512
|
+
return safeParse(
|
|
513
|
+
jsonString,
|
|
514
|
+
(x) => BuyDomainsLinks$inboundSchema.parse(JSON.parse(x)),
|
|
515
|
+
`Failed to parse 'BuyDomainsLinks' from JSON`,
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/** @internal */
|
|
520
|
+
export const BuyDomainsResponseBody$inboundSchema: z.ZodType<
|
|
521
|
+
BuyDomainsResponseBody,
|
|
522
|
+
z.ZodTypeDef,
|
|
523
|
+
unknown
|
|
524
|
+
> = z.object({
|
|
525
|
+
orderId: z.string(),
|
|
526
|
+
_links: z.record(z.lazy(() => BuyDomainsLinks$inboundSchema)),
|
|
527
|
+
}).transform((v) => {
|
|
528
|
+
return remap$(v, {
|
|
529
|
+
"_links": "links",
|
|
530
|
+
});
|
|
531
|
+
});
|
|
532
|
+
|
|
533
|
+
/** @internal */
|
|
534
|
+
export type BuyDomainsResponseBody$Outbound = {
|
|
535
|
+
orderId: string;
|
|
536
|
+
_links: { [k: string]: BuyDomainsLinks$Outbound };
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
/** @internal */
|
|
540
|
+
export const BuyDomainsResponseBody$outboundSchema: z.ZodType<
|
|
541
|
+
BuyDomainsResponseBody$Outbound,
|
|
542
|
+
z.ZodTypeDef,
|
|
543
|
+
BuyDomainsResponseBody
|
|
544
|
+
> = z.object({
|
|
545
|
+
orderId: z.string(),
|
|
546
|
+
links: z.record(z.lazy(() => BuyDomainsLinks$outboundSchema)),
|
|
547
|
+
}).transform((v) => {
|
|
548
|
+
return remap$(v, {
|
|
549
|
+
links: "_links",
|
|
550
|
+
});
|
|
551
|
+
});
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @internal
|
|
555
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
556
|
+
*/
|
|
557
|
+
export namespace BuyDomainsResponseBody$ {
|
|
558
|
+
/** @deprecated use `BuyDomainsResponseBody$inboundSchema` instead. */
|
|
559
|
+
export const inboundSchema = BuyDomainsResponseBody$inboundSchema;
|
|
560
|
+
/** @deprecated use `BuyDomainsResponseBody$outboundSchema` instead. */
|
|
561
|
+
export const outboundSchema = BuyDomainsResponseBody$outboundSchema;
|
|
562
|
+
/** @deprecated use `BuyDomainsResponseBody$Outbound` instead. */
|
|
563
|
+
export type Outbound = BuyDomainsResponseBody$Outbound;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export function buyDomainsResponseBodyToJSON(
|
|
567
|
+
buyDomainsResponseBody: BuyDomainsResponseBody,
|
|
568
|
+
): string {
|
|
569
|
+
return JSON.stringify(
|
|
570
|
+
BuyDomainsResponseBody$outboundSchema.parse(buyDomainsResponseBody),
|
|
571
|
+
);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export function buyDomainsResponseBodyFromJSON(
|
|
575
|
+
jsonString: string,
|
|
576
|
+
): SafeParseResult<BuyDomainsResponseBody, SDKValidationError> {
|
|
577
|
+
return safeParse(
|
|
578
|
+
jsonString,
|
|
579
|
+
(x) => BuyDomainsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
580
|
+
`Failed to parse 'BuyDomainsResponseBody' from JSON`,
|
|
581
|
+
);
|
|
582
|
+
}
|