@vercel/sdk 1.12.2 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -3
- package/bin/mcp-server.js +4976 -1639
- package/bin/mcp-server.js.map +61 -12
- package/docs/sdks/domains/README.md +1 -0
- package/docs/sdks/domainsregistrar/README.md +1337 -0
- 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 +2 -6
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +4 -4
- 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/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__/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 +2 -6
- package/src/__tests__/security.test.ts +4 -4
- 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/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 +3309 -215
|
@@ -0,0 +1,593 @@
|
|
|
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 Additional = {};
|
|
31
|
+
|
|
32
|
+
export type ContactInformation = {
|
|
33
|
+
/**
|
|
34
|
+
* a non empty string
|
|
35
|
+
*/
|
|
36
|
+
firstName: string;
|
|
37
|
+
/**
|
|
38
|
+
* a non empty string
|
|
39
|
+
*/
|
|
40
|
+
lastName: string;
|
|
41
|
+
/**
|
|
42
|
+
* a non empty string
|
|
43
|
+
*/
|
|
44
|
+
email: string;
|
|
45
|
+
/**
|
|
46
|
+
* A valid E.164 phone number
|
|
47
|
+
*/
|
|
48
|
+
phone: string;
|
|
49
|
+
/**
|
|
50
|
+
* a non empty string
|
|
51
|
+
*/
|
|
52
|
+
address1: string;
|
|
53
|
+
/**
|
|
54
|
+
* a non empty string
|
|
55
|
+
*/
|
|
56
|
+
address2?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* a non empty string
|
|
59
|
+
*/
|
|
60
|
+
city: string;
|
|
61
|
+
/**
|
|
62
|
+
* a non empty string
|
|
63
|
+
*/
|
|
64
|
+
state: string;
|
|
65
|
+
/**
|
|
66
|
+
* a non empty string
|
|
67
|
+
*/
|
|
68
|
+
zip: string;
|
|
69
|
+
/**
|
|
70
|
+
* A valid ISO 3166-1 alpha-2 country code
|
|
71
|
+
*/
|
|
72
|
+
country: string;
|
|
73
|
+
/**
|
|
74
|
+
* a non empty string
|
|
75
|
+
*/
|
|
76
|
+
companyName?: string | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* A valid E.164 phone number
|
|
79
|
+
*/
|
|
80
|
+
fax?: string | undefined;
|
|
81
|
+
additional?: Additional | undefined;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type BuySingleDomainRequestBody = {
|
|
85
|
+
autoRenew: boolean;
|
|
86
|
+
years: number;
|
|
87
|
+
/**
|
|
88
|
+
* Represents a monetary amount in USD dollars
|
|
89
|
+
*/
|
|
90
|
+
expectedPrice: number;
|
|
91
|
+
contactInformation: ContactInformation;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type BuySingleDomainRequest = {
|
|
95
|
+
domain: string;
|
|
96
|
+
requestBody: BuySingleDomainRequestBody;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Unauthorized
|
|
101
|
+
*/
|
|
102
|
+
export type BuySingleDomainDomainsRegistrarResponseBody =
|
|
103
|
+
| Unauthorized
|
|
104
|
+
| NotAuthorizedForScope
|
|
105
|
+
| InternalServerError;
|
|
106
|
+
|
|
107
|
+
export const Method = {
|
|
108
|
+
Get: "GET",
|
|
109
|
+
} as const;
|
|
110
|
+
export type Method = ClosedEnum<typeof Method>;
|
|
111
|
+
|
|
112
|
+
export type Links = {
|
|
113
|
+
href: string;
|
|
114
|
+
method: Method;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Success
|
|
119
|
+
*/
|
|
120
|
+
export type BuySingleDomainResponseBody = {
|
|
121
|
+
orderId: string;
|
|
122
|
+
links: { [k: string]: Links };
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const Additional$inboundSchema: z.ZodType<
|
|
127
|
+
Additional,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
unknown
|
|
130
|
+
> = z.object({});
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export type Additional$Outbound = {};
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const Additional$outboundSchema: z.ZodType<
|
|
137
|
+
Additional$Outbound,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
Additional
|
|
140
|
+
> = z.object({});
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
145
|
+
*/
|
|
146
|
+
export namespace Additional$ {
|
|
147
|
+
/** @deprecated use `Additional$inboundSchema` instead. */
|
|
148
|
+
export const inboundSchema = Additional$inboundSchema;
|
|
149
|
+
/** @deprecated use `Additional$outboundSchema` instead. */
|
|
150
|
+
export const outboundSchema = Additional$outboundSchema;
|
|
151
|
+
/** @deprecated use `Additional$Outbound` instead. */
|
|
152
|
+
export type Outbound = Additional$Outbound;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function additionalToJSON(additional: Additional): string {
|
|
156
|
+
return JSON.stringify(Additional$outboundSchema.parse(additional));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function additionalFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<Additional, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) => Additional$inboundSchema.parse(JSON.parse(x)),
|
|
165
|
+
`Failed to parse 'Additional' from JSON`,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** @internal */
|
|
170
|
+
export const ContactInformation$inboundSchema: z.ZodType<
|
|
171
|
+
ContactInformation,
|
|
172
|
+
z.ZodTypeDef,
|
|
173
|
+
unknown
|
|
174
|
+
> = z.object({
|
|
175
|
+
firstName: z.string(),
|
|
176
|
+
lastName: z.string(),
|
|
177
|
+
email: z.string(),
|
|
178
|
+
phone: z.string(),
|
|
179
|
+
address1: z.string(),
|
|
180
|
+
address2: z.string().optional(),
|
|
181
|
+
city: z.string(),
|
|
182
|
+
state: z.string(),
|
|
183
|
+
zip: z.string(),
|
|
184
|
+
country: z.string(),
|
|
185
|
+
companyName: z.string().optional(),
|
|
186
|
+
fax: z.string().optional(),
|
|
187
|
+
additional: z.lazy(() => Additional$inboundSchema).optional(),
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
/** @internal */
|
|
191
|
+
export type ContactInformation$Outbound = {
|
|
192
|
+
firstName: string;
|
|
193
|
+
lastName: string;
|
|
194
|
+
email: string;
|
|
195
|
+
phone: string;
|
|
196
|
+
address1: string;
|
|
197
|
+
address2?: string | undefined;
|
|
198
|
+
city: string;
|
|
199
|
+
state: string;
|
|
200
|
+
zip: string;
|
|
201
|
+
country: string;
|
|
202
|
+
companyName?: string | undefined;
|
|
203
|
+
fax?: string | undefined;
|
|
204
|
+
additional?: Additional$Outbound | undefined;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export const ContactInformation$outboundSchema: z.ZodType<
|
|
209
|
+
ContactInformation$Outbound,
|
|
210
|
+
z.ZodTypeDef,
|
|
211
|
+
ContactInformation
|
|
212
|
+
> = z.object({
|
|
213
|
+
firstName: z.string(),
|
|
214
|
+
lastName: z.string(),
|
|
215
|
+
email: z.string(),
|
|
216
|
+
phone: z.string(),
|
|
217
|
+
address1: z.string(),
|
|
218
|
+
address2: z.string().optional(),
|
|
219
|
+
city: z.string(),
|
|
220
|
+
state: z.string(),
|
|
221
|
+
zip: z.string(),
|
|
222
|
+
country: z.string(),
|
|
223
|
+
companyName: z.string().optional(),
|
|
224
|
+
fax: z.string().optional(),
|
|
225
|
+
additional: z.lazy(() => Additional$outboundSchema).optional(),
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @internal
|
|
230
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
231
|
+
*/
|
|
232
|
+
export namespace ContactInformation$ {
|
|
233
|
+
/** @deprecated use `ContactInformation$inboundSchema` instead. */
|
|
234
|
+
export const inboundSchema = ContactInformation$inboundSchema;
|
|
235
|
+
/** @deprecated use `ContactInformation$outboundSchema` instead. */
|
|
236
|
+
export const outboundSchema = ContactInformation$outboundSchema;
|
|
237
|
+
/** @deprecated use `ContactInformation$Outbound` instead. */
|
|
238
|
+
export type Outbound = ContactInformation$Outbound;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function contactInformationToJSON(
|
|
242
|
+
contactInformation: ContactInformation,
|
|
243
|
+
): string {
|
|
244
|
+
return JSON.stringify(
|
|
245
|
+
ContactInformation$outboundSchema.parse(contactInformation),
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export function contactInformationFromJSON(
|
|
250
|
+
jsonString: string,
|
|
251
|
+
): SafeParseResult<ContactInformation, SDKValidationError> {
|
|
252
|
+
return safeParse(
|
|
253
|
+
jsonString,
|
|
254
|
+
(x) => ContactInformation$inboundSchema.parse(JSON.parse(x)),
|
|
255
|
+
`Failed to parse 'ContactInformation' from JSON`,
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/** @internal */
|
|
260
|
+
export const BuySingleDomainRequestBody$inboundSchema: z.ZodType<
|
|
261
|
+
BuySingleDomainRequestBody,
|
|
262
|
+
z.ZodTypeDef,
|
|
263
|
+
unknown
|
|
264
|
+
> = z.object({
|
|
265
|
+
autoRenew: z.boolean(),
|
|
266
|
+
years: z.number(),
|
|
267
|
+
expectedPrice: z.number(),
|
|
268
|
+
contactInformation: z.lazy(() => ContactInformation$inboundSchema),
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
/** @internal */
|
|
272
|
+
export type BuySingleDomainRequestBody$Outbound = {
|
|
273
|
+
autoRenew: boolean;
|
|
274
|
+
years: number;
|
|
275
|
+
expectedPrice: number;
|
|
276
|
+
contactInformation: ContactInformation$Outbound;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
/** @internal */
|
|
280
|
+
export const BuySingleDomainRequestBody$outboundSchema: z.ZodType<
|
|
281
|
+
BuySingleDomainRequestBody$Outbound,
|
|
282
|
+
z.ZodTypeDef,
|
|
283
|
+
BuySingleDomainRequestBody
|
|
284
|
+
> = z.object({
|
|
285
|
+
autoRenew: z.boolean(),
|
|
286
|
+
years: z.number(),
|
|
287
|
+
expectedPrice: z.number(),
|
|
288
|
+
contactInformation: z.lazy(() => ContactInformation$outboundSchema),
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @internal
|
|
293
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
294
|
+
*/
|
|
295
|
+
export namespace BuySingleDomainRequestBody$ {
|
|
296
|
+
/** @deprecated use `BuySingleDomainRequestBody$inboundSchema` instead. */
|
|
297
|
+
export const inboundSchema = BuySingleDomainRequestBody$inboundSchema;
|
|
298
|
+
/** @deprecated use `BuySingleDomainRequestBody$outboundSchema` instead. */
|
|
299
|
+
export const outboundSchema = BuySingleDomainRequestBody$outboundSchema;
|
|
300
|
+
/** @deprecated use `BuySingleDomainRequestBody$Outbound` instead. */
|
|
301
|
+
export type Outbound = BuySingleDomainRequestBody$Outbound;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export function buySingleDomainRequestBodyToJSON(
|
|
305
|
+
buySingleDomainRequestBody: BuySingleDomainRequestBody,
|
|
306
|
+
): string {
|
|
307
|
+
return JSON.stringify(
|
|
308
|
+
BuySingleDomainRequestBody$outboundSchema.parse(buySingleDomainRequestBody),
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export function buySingleDomainRequestBodyFromJSON(
|
|
313
|
+
jsonString: string,
|
|
314
|
+
): SafeParseResult<BuySingleDomainRequestBody, SDKValidationError> {
|
|
315
|
+
return safeParse(
|
|
316
|
+
jsonString,
|
|
317
|
+
(x) => BuySingleDomainRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
318
|
+
`Failed to parse 'BuySingleDomainRequestBody' from JSON`,
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** @internal */
|
|
323
|
+
export const BuySingleDomainRequest$inboundSchema: z.ZodType<
|
|
324
|
+
BuySingleDomainRequest,
|
|
325
|
+
z.ZodTypeDef,
|
|
326
|
+
unknown
|
|
327
|
+
> = z.object({
|
|
328
|
+
domain: z.string(),
|
|
329
|
+
RequestBody: z.lazy(() => BuySingleDomainRequestBody$inboundSchema),
|
|
330
|
+
}).transform((v) => {
|
|
331
|
+
return remap$(v, {
|
|
332
|
+
"RequestBody": "requestBody",
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
/** @internal */
|
|
337
|
+
export type BuySingleDomainRequest$Outbound = {
|
|
338
|
+
domain: string;
|
|
339
|
+
RequestBody: BuySingleDomainRequestBody$Outbound;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/** @internal */
|
|
343
|
+
export const BuySingleDomainRequest$outboundSchema: z.ZodType<
|
|
344
|
+
BuySingleDomainRequest$Outbound,
|
|
345
|
+
z.ZodTypeDef,
|
|
346
|
+
BuySingleDomainRequest
|
|
347
|
+
> = z.object({
|
|
348
|
+
domain: z.string(),
|
|
349
|
+
requestBody: z.lazy(() => BuySingleDomainRequestBody$outboundSchema),
|
|
350
|
+
}).transform((v) => {
|
|
351
|
+
return remap$(v, {
|
|
352
|
+
requestBody: "RequestBody",
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @internal
|
|
358
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
359
|
+
*/
|
|
360
|
+
export namespace BuySingleDomainRequest$ {
|
|
361
|
+
/** @deprecated use `BuySingleDomainRequest$inboundSchema` instead. */
|
|
362
|
+
export const inboundSchema = BuySingleDomainRequest$inboundSchema;
|
|
363
|
+
/** @deprecated use `BuySingleDomainRequest$outboundSchema` instead. */
|
|
364
|
+
export const outboundSchema = BuySingleDomainRequest$outboundSchema;
|
|
365
|
+
/** @deprecated use `BuySingleDomainRequest$Outbound` instead. */
|
|
366
|
+
export type Outbound = BuySingleDomainRequest$Outbound;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export function buySingleDomainRequestToJSON(
|
|
370
|
+
buySingleDomainRequest: BuySingleDomainRequest,
|
|
371
|
+
): string {
|
|
372
|
+
return JSON.stringify(
|
|
373
|
+
BuySingleDomainRequest$outboundSchema.parse(buySingleDomainRequest),
|
|
374
|
+
);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export function buySingleDomainRequestFromJSON(
|
|
378
|
+
jsonString: string,
|
|
379
|
+
): SafeParseResult<BuySingleDomainRequest, SDKValidationError> {
|
|
380
|
+
return safeParse(
|
|
381
|
+
jsonString,
|
|
382
|
+
(x) => BuySingleDomainRequest$inboundSchema.parse(JSON.parse(x)),
|
|
383
|
+
`Failed to parse 'BuySingleDomainRequest' from JSON`,
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/** @internal */
|
|
388
|
+
export const BuySingleDomainDomainsRegistrarResponseBody$inboundSchema:
|
|
389
|
+
z.ZodType<
|
|
390
|
+
BuySingleDomainDomainsRegistrarResponseBody,
|
|
391
|
+
z.ZodTypeDef,
|
|
392
|
+
unknown
|
|
393
|
+
> = z.union([
|
|
394
|
+
Unauthorized$inboundSchema,
|
|
395
|
+
NotAuthorizedForScope$inboundSchema,
|
|
396
|
+
InternalServerError$inboundSchema,
|
|
397
|
+
]);
|
|
398
|
+
|
|
399
|
+
/** @internal */
|
|
400
|
+
export type BuySingleDomainDomainsRegistrarResponseBody$Outbound =
|
|
401
|
+
| Unauthorized$Outbound
|
|
402
|
+
| NotAuthorizedForScope$Outbound
|
|
403
|
+
| InternalServerError$Outbound;
|
|
404
|
+
|
|
405
|
+
/** @internal */
|
|
406
|
+
export const BuySingleDomainDomainsRegistrarResponseBody$outboundSchema:
|
|
407
|
+
z.ZodType<
|
|
408
|
+
BuySingleDomainDomainsRegistrarResponseBody$Outbound,
|
|
409
|
+
z.ZodTypeDef,
|
|
410
|
+
BuySingleDomainDomainsRegistrarResponseBody
|
|
411
|
+
> = z.union([
|
|
412
|
+
Unauthorized$outboundSchema,
|
|
413
|
+
NotAuthorizedForScope$outboundSchema,
|
|
414
|
+
InternalServerError$outboundSchema,
|
|
415
|
+
]);
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @internal
|
|
419
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
420
|
+
*/
|
|
421
|
+
export namespace BuySingleDomainDomainsRegistrarResponseBody$ {
|
|
422
|
+
/** @deprecated use `BuySingleDomainDomainsRegistrarResponseBody$inboundSchema` instead. */
|
|
423
|
+
export const inboundSchema =
|
|
424
|
+
BuySingleDomainDomainsRegistrarResponseBody$inboundSchema;
|
|
425
|
+
/** @deprecated use `BuySingleDomainDomainsRegistrarResponseBody$outboundSchema` instead. */
|
|
426
|
+
export const outboundSchema =
|
|
427
|
+
BuySingleDomainDomainsRegistrarResponseBody$outboundSchema;
|
|
428
|
+
/** @deprecated use `BuySingleDomainDomainsRegistrarResponseBody$Outbound` instead. */
|
|
429
|
+
export type Outbound = BuySingleDomainDomainsRegistrarResponseBody$Outbound;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export function buySingleDomainDomainsRegistrarResponseBodyToJSON(
|
|
433
|
+
buySingleDomainDomainsRegistrarResponseBody:
|
|
434
|
+
BuySingleDomainDomainsRegistrarResponseBody,
|
|
435
|
+
): string {
|
|
436
|
+
return JSON.stringify(
|
|
437
|
+
BuySingleDomainDomainsRegistrarResponseBody$outboundSchema.parse(
|
|
438
|
+
buySingleDomainDomainsRegistrarResponseBody,
|
|
439
|
+
),
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export function buySingleDomainDomainsRegistrarResponseBodyFromJSON(
|
|
444
|
+
jsonString: string,
|
|
445
|
+
): SafeParseResult<
|
|
446
|
+
BuySingleDomainDomainsRegistrarResponseBody,
|
|
447
|
+
SDKValidationError
|
|
448
|
+
> {
|
|
449
|
+
return safeParse(
|
|
450
|
+
jsonString,
|
|
451
|
+
(x) =>
|
|
452
|
+
BuySingleDomainDomainsRegistrarResponseBody$inboundSchema.parse(
|
|
453
|
+
JSON.parse(x),
|
|
454
|
+
),
|
|
455
|
+
`Failed to parse 'BuySingleDomainDomainsRegistrarResponseBody' from JSON`,
|
|
456
|
+
);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/** @internal */
|
|
460
|
+
export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
|
|
461
|
+
.nativeEnum(Method);
|
|
462
|
+
|
|
463
|
+
/** @internal */
|
|
464
|
+
export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> =
|
|
465
|
+
Method$inboundSchema;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @internal
|
|
469
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
470
|
+
*/
|
|
471
|
+
export namespace Method$ {
|
|
472
|
+
/** @deprecated use `Method$inboundSchema` instead. */
|
|
473
|
+
export const inboundSchema = Method$inboundSchema;
|
|
474
|
+
/** @deprecated use `Method$outboundSchema` instead. */
|
|
475
|
+
export const outboundSchema = Method$outboundSchema;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/** @internal */
|
|
479
|
+
export const Links$inboundSchema: z.ZodType<Links, z.ZodTypeDef, unknown> = z
|
|
480
|
+
.object({
|
|
481
|
+
href: z.string(),
|
|
482
|
+
method: Method$inboundSchema,
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
/** @internal */
|
|
486
|
+
export type Links$Outbound = {
|
|
487
|
+
href: string;
|
|
488
|
+
method: string;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
/** @internal */
|
|
492
|
+
export const Links$outboundSchema: z.ZodType<
|
|
493
|
+
Links$Outbound,
|
|
494
|
+
z.ZodTypeDef,
|
|
495
|
+
Links
|
|
496
|
+
> = z.object({
|
|
497
|
+
href: z.string(),
|
|
498
|
+
method: Method$outboundSchema,
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* @internal
|
|
503
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
504
|
+
*/
|
|
505
|
+
export namespace Links$ {
|
|
506
|
+
/** @deprecated use `Links$inboundSchema` instead. */
|
|
507
|
+
export const inboundSchema = Links$inboundSchema;
|
|
508
|
+
/** @deprecated use `Links$outboundSchema` instead. */
|
|
509
|
+
export const outboundSchema = Links$outboundSchema;
|
|
510
|
+
/** @deprecated use `Links$Outbound` instead. */
|
|
511
|
+
export type Outbound = Links$Outbound;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export function linksToJSON(links: Links): string {
|
|
515
|
+
return JSON.stringify(Links$outboundSchema.parse(links));
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export function linksFromJSON(
|
|
519
|
+
jsonString: string,
|
|
520
|
+
): SafeParseResult<Links, SDKValidationError> {
|
|
521
|
+
return safeParse(
|
|
522
|
+
jsonString,
|
|
523
|
+
(x) => Links$inboundSchema.parse(JSON.parse(x)),
|
|
524
|
+
`Failed to parse 'Links' from JSON`,
|
|
525
|
+
);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/** @internal */
|
|
529
|
+
export const BuySingleDomainResponseBody$inboundSchema: z.ZodType<
|
|
530
|
+
BuySingleDomainResponseBody,
|
|
531
|
+
z.ZodTypeDef,
|
|
532
|
+
unknown
|
|
533
|
+
> = z.object({
|
|
534
|
+
orderId: z.string(),
|
|
535
|
+
_links: z.record(z.lazy(() => Links$inboundSchema)),
|
|
536
|
+
}).transform((v) => {
|
|
537
|
+
return remap$(v, {
|
|
538
|
+
"_links": "links",
|
|
539
|
+
});
|
|
540
|
+
});
|
|
541
|
+
|
|
542
|
+
/** @internal */
|
|
543
|
+
export type BuySingleDomainResponseBody$Outbound = {
|
|
544
|
+
orderId: string;
|
|
545
|
+
_links: { [k: string]: Links$Outbound };
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
/** @internal */
|
|
549
|
+
export const BuySingleDomainResponseBody$outboundSchema: z.ZodType<
|
|
550
|
+
BuySingleDomainResponseBody$Outbound,
|
|
551
|
+
z.ZodTypeDef,
|
|
552
|
+
BuySingleDomainResponseBody
|
|
553
|
+
> = z.object({
|
|
554
|
+
orderId: z.string(),
|
|
555
|
+
links: z.record(z.lazy(() => Links$outboundSchema)),
|
|
556
|
+
}).transform((v) => {
|
|
557
|
+
return remap$(v, {
|
|
558
|
+
links: "_links",
|
|
559
|
+
});
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* @internal
|
|
564
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
565
|
+
*/
|
|
566
|
+
export namespace BuySingleDomainResponseBody$ {
|
|
567
|
+
/** @deprecated use `BuySingleDomainResponseBody$inboundSchema` instead. */
|
|
568
|
+
export const inboundSchema = BuySingleDomainResponseBody$inboundSchema;
|
|
569
|
+
/** @deprecated use `BuySingleDomainResponseBody$outboundSchema` instead. */
|
|
570
|
+
export const outboundSchema = BuySingleDomainResponseBody$outboundSchema;
|
|
571
|
+
/** @deprecated use `BuySingleDomainResponseBody$Outbound` instead. */
|
|
572
|
+
export type Outbound = BuySingleDomainResponseBody$Outbound;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export function buySingleDomainResponseBodyToJSON(
|
|
576
|
+
buySingleDomainResponseBody: BuySingleDomainResponseBody,
|
|
577
|
+
): string {
|
|
578
|
+
return JSON.stringify(
|
|
579
|
+
BuySingleDomainResponseBody$outboundSchema.parse(
|
|
580
|
+
buySingleDomainResponseBody,
|
|
581
|
+
),
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export function buySingleDomainResponseBodyFromJSON(
|
|
586
|
+
jsonString: string,
|
|
587
|
+
): SafeParseResult<BuySingleDomainResponseBody, SDKValidationError> {
|
|
588
|
+
return safeParse(
|
|
589
|
+
jsonString,
|
|
590
|
+
(x) => BuySingleDomainResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
591
|
+
`Failed to parse 'BuySingleDomainResponseBody' from JSON`,
|
|
592
|
+
);
|
|
593
|
+
}
|