@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,1298 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import {
|
|
10
|
+
InternalServerError,
|
|
11
|
+
InternalServerError$inboundSchema,
|
|
12
|
+
InternalServerError$Outbound,
|
|
13
|
+
InternalServerError$outboundSchema,
|
|
14
|
+
} from "./internalservererror.js";
|
|
15
|
+
import {
|
|
16
|
+
NotAuthorizedForScope,
|
|
17
|
+
NotAuthorizedForScope$inboundSchema,
|
|
18
|
+
NotAuthorizedForScope$Outbound,
|
|
19
|
+
NotAuthorizedForScope$outboundSchema,
|
|
20
|
+
} from "./notauthorizedforscope.js";
|
|
21
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
Unauthorized,
|
|
24
|
+
Unauthorized$inboundSchema,
|
|
25
|
+
Unauthorized$Outbound,
|
|
26
|
+
Unauthorized$outboundSchema,
|
|
27
|
+
} from "./unauthorized.js";
|
|
28
|
+
|
|
29
|
+
export type GetOrderRequest = {
|
|
30
|
+
orderId: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Unauthorized
|
|
35
|
+
*/
|
|
36
|
+
export type GetOrderDomainsRegistrarResponseBody =
|
|
37
|
+
| Unauthorized
|
|
38
|
+
| NotAuthorizedForScope
|
|
39
|
+
| InternalServerError;
|
|
40
|
+
|
|
41
|
+
export const GetOrderDomainsPurchaseType = {
|
|
42
|
+
Transfer: "transfer",
|
|
43
|
+
} as const;
|
|
44
|
+
export type GetOrderDomainsPurchaseType = ClosedEnum<
|
|
45
|
+
typeof GetOrderDomainsPurchaseType
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
export const GetOrderDomainsDomainsRegistrarStatus = {
|
|
49
|
+
Pending: "pending",
|
|
50
|
+
Completed: "completed",
|
|
51
|
+
Failed: "failed",
|
|
52
|
+
Refunded: "refunded",
|
|
53
|
+
RefundFailed: "refund-failed",
|
|
54
|
+
} as const;
|
|
55
|
+
export type GetOrderDomainsDomainsRegistrarStatus = ClosedEnum<
|
|
56
|
+
typeof GetOrderDomainsDomainsRegistrarStatus
|
|
57
|
+
>;
|
|
58
|
+
|
|
59
|
+
export type Domains3 = {
|
|
60
|
+
purchaseType: GetOrderDomainsPurchaseType;
|
|
61
|
+
autoRenew: boolean;
|
|
62
|
+
domainName: string;
|
|
63
|
+
status: GetOrderDomainsDomainsRegistrarStatus;
|
|
64
|
+
/**
|
|
65
|
+
* Represents a monetary amount in USD dollars
|
|
66
|
+
*/
|
|
67
|
+
price: number;
|
|
68
|
+
years: number;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const DomainsPurchaseType = {
|
|
72
|
+
Renewal: "renewal",
|
|
73
|
+
} as const;
|
|
74
|
+
export type DomainsPurchaseType = ClosedEnum<typeof DomainsPurchaseType>;
|
|
75
|
+
|
|
76
|
+
export const GetOrderDomainsStatus = {
|
|
77
|
+
Pending: "pending",
|
|
78
|
+
Completed: "completed",
|
|
79
|
+
Failed: "failed",
|
|
80
|
+
Refunded: "refunded",
|
|
81
|
+
RefundFailed: "refund-failed",
|
|
82
|
+
} as const;
|
|
83
|
+
export type GetOrderDomainsStatus = ClosedEnum<typeof GetOrderDomainsStatus>;
|
|
84
|
+
|
|
85
|
+
export type Domains2 = {
|
|
86
|
+
purchaseType: DomainsPurchaseType;
|
|
87
|
+
domainName: string;
|
|
88
|
+
status: GetOrderDomainsStatus;
|
|
89
|
+
/**
|
|
90
|
+
* Represents a monetary amount in USD dollars
|
|
91
|
+
*/
|
|
92
|
+
price: number;
|
|
93
|
+
years: number;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export const GetOrderDomainsDomainsRegistrarPurchaseType = {
|
|
97
|
+
Purchase: "purchase",
|
|
98
|
+
} as const;
|
|
99
|
+
export type GetOrderDomainsDomainsRegistrarPurchaseType = ClosedEnum<
|
|
100
|
+
typeof GetOrderDomainsDomainsRegistrarPurchaseType
|
|
101
|
+
>;
|
|
102
|
+
|
|
103
|
+
export const DomainsStatus = {
|
|
104
|
+
Pending: "pending",
|
|
105
|
+
Completed: "completed",
|
|
106
|
+
Failed: "failed",
|
|
107
|
+
Refunded: "refunded",
|
|
108
|
+
RefundFailed: "refund-failed",
|
|
109
|
+
} as const;
|
|
110
|
+
export type DomainsStatus = ClosedEnum<typeof DomainsStatus>;
|
|
111
|
+
|
|
112
|
+
export type Domains1 = {
|
|
113
|
+
purchaseType: GetOrderDomainsDomainsRegistrarPurchaseType;
|
|
114
|
+
autoRenew: boolean;
|
|
115
|
+
domainName: string;
|
|
116
|
+
status: DomainsStatus;
|
|
117
|
+
/**
|
|
118
|
+
* Represents a monetary amount in USD dollars
|
|
119
|
+
*/
|
|
120
|
+
price: number;
|
|
121
|
+
years: number;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type GetOrderDomains = Domains1 | Domains3 | Domains2;
|
|
125
|
+
|
|
126
|
+
export const GetOrderStatus = {
|
|
127
|
+
Draft: "draft",
|
|
128
|
+
Purchasing: "purchasing",
|
|
129
|
+
Completed: "completed",
|
|
130
|
+
Failed: "failed",
|
|
131
|
+
} as const;
|
|
132
|
+
export type GetOrderStatus = ClosedEnum<typeof GetOrderStatus>;
|
|
133
|
+
|
|
134
|
+
export const GetOrderErrorDomainsRegistrarResponseCode = {
|
|
135
|
+
UnexpectedError: "unexpected-error",
|
|
136
|
+
} as const;
|
|
137
|
+
export type GetOrderErrorDomainsRegistrarResponseCode = ClosedEnum<
|
|
138
|
+
typeof GetOrderErrorDomainsRegistrarResponseCode
|
|
139
|
+
>;
|
|
140
|
+
|
|
141
|
+
export type Error4 = {
|
|
142
|
+
code: GetOrderErrorDomainsRegistrarResponseCode;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export const GetOrderErrorDomainsRegistrarCode = {
|
|
146
|
+
PriceMismatch: "price-mismatch",
|
|
147
|
+
} as const;
|
|
148
|
+
export type GetOrderErrorDomainsRegistrarCode = ClosedEnum<
|
|
149
|
+
typeof GetOrderErrorDomainsRegistrarCode
|
|
150
|
+
>;
|
|
151
|
+
|
|
152
|
+
export type ErrorDetails = {
|
|
153
|
+
expectedPrice: number;
|
|
154
|
+
actualPrice?: number | undefined;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export type Error3 = {
|
|
158
|
+
code: GetOrderErrorDomainsRegistrarCode;
|
|
159
|
+
details: ErrorDetails;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export const GetOrderErrorCode = {
|
|
163
|
+
TldOutage: "tld-outage",
|
|
164
|
+
} as const;
|
|
165
|
+
export type GetOrderErrorCode = ClosedEnum<typeof GetOrderErrorCode>;
|
|
166
|
+
|
|
167
|
+
export type Tlds = {
|
|
168
|
+
tldName: string;
|
|
169
|
+
endsAt: string;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export type GetOrderErrorDetails = {
|
|
173
|
+
tlds: Array<Tlds>;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export type Error2 = {
|
|
177
|
+
code: GetOrderErrorCode;
|
|
178
|
+
details: GetOrderErrorDetails;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export const ErrorCode = {
|
|
182
|
+
PaymentFailed: "payment-failed",
|
|
183
|
+
} as const;
|
|
184
|
+
export type ErrorCode = ClosedEnum<typeof ErrorCode>;
|
|
185
|
+
|
|
186
|
+
export type Error1 = {
|
|
187
|
+
code: ErrorCode;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export type GetOrderError = Error2 | Error3 | Error1 | Error4;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Success
|
|
194
|
+
*/
|
|
195
|
+
export type GetOrderResponseBody = {
|
|
196
|
+
orderId: string;
|
|
197
|
+
domains: Array<Domains1 | Domains3 | Domains2>;
|
|
198
|
+
status: GetOrderStatus;
|
|
199
|
+
error?: Error2 | Error3 | Error1 | Error4 | undefined;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
/** @internal */
|
|
203
|
+
export const GetOrderRequest$inboundSchema: z.ZodType<
|
|
204
|
+
GetOrderRequest,
|
|
205
|
+
z.ZodTypeDef,
|
|
206
|
+
unknown
|
|
207
|
+
> = z.object({
|
|
208
|
+
orderId: z.string(),
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export type GetOrderRequest$Outbound = {
|
|
213
|
+
orderId: string;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const GetOrderRequest$outboundSchema: z.ZodType<
|
|
218
|
+
GetOrderRequest$Outbound,
|
|
219
|
+
z.ZodTypeDef,
|
|
220
|
+
GetOrderRequest
|
|
221
|
+
> = z.object({
|
|
222
|
+
orderId: z.string(),
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @internal
|
|
227
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
228
|
+
*/
|
|
229
|
+
export namespace GetOrderRequest$ {
|
|
230
|
+
/** @deprecated use `GetOrderRequest$inboundSchema` instead. */
|
|
231
|
+
export const inboundSchema = GetOrderRequest$inboundSchema;
|
|
232
|
+
/** @deprecated use `GetOrderRequest$outboundSchema` instead. */
|
|
233
|
+
export const outboundSchema = GetOrderRequest$outboundSchema;
|
|
234
|
+
/** @deprecated use `GetOrderRequest$Outbound` instead. */
|
|
235
|
+
export type Outbound = GetOrderRequest$Outbound;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export function getOrderRequestToJSON(
|
|
239
|
+
getOrderRequest: GetOrderRequest,
|
|
240
|
+
): string {
|
|
241
|
+
return JSON.stringify(GetOrderRequest$outboundSchema.parse(getOrderRequest));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export function getOrderRequestFromJSON(
|
|
245
|
+
jsonString: string,
|
|
246
|
+
): SafeParseResult<GetOrderRequest, SDKValidationError> {
|
|
247
|
+
return safeParse(
|
|
248
|
+
jsonString,
|
|
249
|
+
(x) => GetOrderRequest$inboundSchema.parse(JSON.parse(x)),
|
|
250
|
+
`Failed to parse 'GetOrderRequest' from JSON`,
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** @internal */
|
|
255
|
+
export const GetOrderDomainsRegistrarResponseBody$inboundSchema: z.ZodType<
|
|
256
|
+
GetOrderDomainsRegistrarResponseBody,
|
|
257
|
+
z.ZodTypeDef,
|
|
258
|
+
unknown
|
|
259
|
+
> = z.union([
|
|
260
|
+
Unauthorized$inboundSchema,
|
|
261
|
+
NotAuthorizedForScope$inboundSchema,
|
|
262
|
+
InternalServerError$inboundSchema,
|
|
263
|
+
]);
|
|
264
|
+
|
|
265
|
+
/** @internal */
|
|
266
|
+
export type GetOrderDomainsRegistrarResponseBody$Outbound =
|
|
267
|
+
| Unauthorized$Outbound
|
|
268
|
+
| NotAuthorizedForScope$Outbound
|
|
269
|
+
| InternalServerError$Outbound;
|
|
270
|
+
|
|
271
|
+
/** @internal */
|
|
272
|
+
export const GetOrderDomainsRegistrarResponseBody$outboundSchema: z.ZodType<
|
|
273
|
+
GetOrderDomainsRegistrarResponseBody$Outbound,
|
|
274
|
+
z.ZodTypeDef,
|
|
275
|
+
GetOrderDomainsRegistrarResponseBody
|
|
276
|
+
> = z.union([
|
|
277
|
+
Unauthorized$outboundSchema,
|
|
278
|
+
NotAuthorizedForScope$outboundSchema,
|
|
279
|
+
InternalServerError$outboundSchema,
|
|
280
|
+
]);
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
285
|
+
*/
|
|
286
|
+
export namespace GetOrderDomainsRegistrarResponseBody$ {
|
|
287
|
+
/** @deprecated use `GetOrderDomainsRegistrarResponseBody$inboundSchema` instead. */
|
|
288
|
+
export const inboundSchema =
|
|
289
|
+
GetOrderDomainsRegistrarResponseBody$inboundSchema;
|
|
290
|
+
/** @deprecated use `GetOrderDomainsRegistrarResponseBody$outboundSchema` instead. */
|
|
291
|
+
export const outboundSchema =
|
|
292
|
+
GetOrderDomainsRegistrarResponseBody$outboundSchema;
|
|
293
|
+
/** @deprecated use `GetOrderDomainsRegistrarResponseBody$Outbound` instead. */
|
|
294
|
+
export type Outbound = GetOrderDomainsRegistrarResponseBody$Outbound;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export function getOrderDomainsRegistrarResponseBodyToJSON(
|
|
298
|
+
getOrderDomainsRegistrarResponseBody: GetOrderDomainsRegistrarResponseBody,
|
|
299
|
+
): string {
|
|
300
|
+
return JSON.stringify(
|
|
301
|
+
GetOrderDomainsRegistrarResponseBody$outboundSchema.parse(
|
|
302
|
+
getOrderDomainsRegistrarResponseBody,
|
|
303
|
+
),
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export function getOrderDomainsRegistrarResponseBodyFromJSON(
|
|
308
|
+
jsonString: string,
|
|
309
|
+
): SafeParseResult<GetOrderDomainsRegistrarResponseBody, SDKValidationError> {
|
|
310
|
+
return safeParse(
|
|
311
|
+
jsonString,
|
|
312
|
+
(x) =>
|
|
313
|
+
GetOrderDomainsRegistrarResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
314
|
+
`Failed to parse 'GetOrderDomainsRegistrarResponseBody' from JSON`,
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/** @internal */
|
|
319
|
+
export const GetOrderDomainsPurchaseType$inboundSchema: z.ZodNativeEnum<
|
|
320
|
+
typeof GetOrderDomainsPurchaseType
|
|
321
|
+
> = z.nativeEnum(GetOrderDomainsPurchaseType);
|
|
322
|
+
|
|
323
|
+
/** @internal */
|
|
324
|
+
export const GetOrderDomainsPurchaseType$outboundSchema: z.ZodNativeEnum<
|
|
325
|
+
typeof GetOrderDomainsPurchaseType
|
|
326
|
+
> = GetOrderDomainsPurchaseType$inboundSchema;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @internal
|
|
330
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
331
|
+
*/
|
|
332
|
+
export namespace GetOrderDomainsPurchaseType$ {
|
|
333
|
+
/** @deprecated use `GetOrderDomainsPurchaseType$inboundSchema` instead. */
|
|
334
|
+
export const inboundSchema = GetOrderDomainsPurchaseType$inboundSchema;
|
|
335
|
+
/** @deprecated use `GetOrderDomainsPurchaseType$outboundSchema` instead. */
|
|
336
|
+
export const outboundSchema = GetOrderDomainsPurchaseType$outboundSchema;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/** @internal */
|
|
340
|
+
export const GetOrderDomainsDomainsRegistrarStatus$inboundSchema:
|
|
341
|
+
z.ZodNativeEnum<typeof GetOrderDomainsDomainsRegistrarStatus> = z.nativeEnum(
|
|
342
|
+
GetOrderDomainsDomainsRegistrarStatus,
|
|
343
|
+
);
|
|
344
|
+
|
|
345
|
+
/** @internal */
|
|
346
|
+
export const GetOrderDomainsDomainsRegistrarStatus$outboundSchema:
|
|
347
|
+
z.ZodNativeEnum<typeof GetOrderDomainsDomainsRegistrarStatus> =
|
|
348
|
+
GetOrderDomainsDomainsRegistrarStatus$inboundSchema;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @internal
|
|
352
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
353
|
+
*/
|
|
354
|
+
export namespace GetOrderDomainsDomainsRegistrarStatus$ {
|
|
355
|
+
/** @deprecated use `GetOrderDomainsDomainsRegistrarStatus$inboundSchema` instead. */
|
|
356
|
+
export const inboundSchema =
|
|
357
|
+
GetOrderDomainsDomainsRegistrarStatus$inboundSchema;
|
|
358
|
+
/** @deprecated use `GetOrderDomainsDomainsRegistrarStatus$outboundSchema` instead. */
|
|
359
|
+
export const outboundSchema =
|
|
360
|
+
GetOrderDomainsDomainsRegistrarStatus$outboundSchema;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/** @internal */
|
|
364
|
+
export const Domains3$inboundSchema: z.ZodType<
|
|
365
|
+
Domains3,
|
|
366
|
+
z.ZodTypeDef,
|
|
367
|
+
unknown
|
|
368
|
+
> = z.object({
|
|
369
|
+
purchaseType: GetOrderDomainsPurchaseType$inboundSchema,
|
|
370
|
+
autoRenew: z.boolean(),
|
|
371
|
+
domainName: z.string(),
|
|
372
|
+
status: GetOrderDomainsDomainsRegistrarStatus$inboundSchema,
|
|
373
|
+
price: z.number(),
|
|
374
|
+
years: z.number(),
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
/** @internal */
|
|
378
|
+
export type Domains3$Outbound = {
|
|
379
|
+
purchaseType: string;
|
|
380
|
+
autoRenew: boolean;
|
|
381
|
+
domainName: string;
|
|
382
|
+
status: string;
|
|
383
|
+
price: number;
|
|
384
|
+
years: number;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/** @internal */
|
|
388
|
+
export const Domains3$outboundSchema: z.ZodType<
|
|
389
|
+
Domains3$Outbound,
|
|
390
|
+
z.ZodTypeDef,
|
|
391
|
+
Domains3
|
|
392
|
+
> = z.object({
|
|
393
|
+
purchaseType: GetOrderDomainsPurchaseType$outboundSchema,
|
|
394
|
+
autoRenew: z.boolean(),
|
|
395
|
+
domainName: z.string(),
|
|
396
|
+
status: GetOrderDomainsDomainsRegistrarStatus$outboundSchema,
|
|
397
|
+
price: z.number(),
|
|
398
|
+
years: z.number(),
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* @internal
|
|
403
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
404
|
+
*/
|
|
405
|
+
export namespace Domains3$ {
|
|
406
|
+
/** @deprecated use `Domains3$inboundSchema` instead. */
|
|
407
|
+
export const inboundSchema = Domains3$inboundSchema;
|
|
408
|
+
/** @deprecated use `Domains3$outboundSchema` instead. */
|
|
409
|
+
export const outboundSchema = Domains3$outboundSchema;
|
|
410
|
+
/** @deprecated use `Domains3$Outbound` instead. */
|
|
411
|
+
export type Outbound = Domains3$Outbound;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export function domains3ToJSON(domains3: Domains3): string {
|
|
415
|
+
return JSON.stringify(Domains3$outboundSchema.parse(domains3));
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export function domains3FromJSON(
|
|
419
|
+
jsonString: string,
|
|
420
|
+
): SafeParseResult<Domains3, SDKValidationError> {
|
|
421
|
+
return safeParse(
|
|
422
|
+
jsonString,
|
|
423
|
+
(x) => Domains3$inboundSchema.parse(JSON.parse(x)),
|
|
424
|
+
`Failed to parse 'Domains3' from JSON`,
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/** @internal */
|
|
429
|
+
export const DomainsPurchaseType$inboundSchema: z.ZodNativeEnum<
|
|
430
|
+
typeof DomainsPurchaseType
|
|
431
|
+
> = z.nativeEnum(DomainsPurchaseType);
|
|
432
|
+
|
|
433
|
+
/** @internal */
|
|
434
|
+
export const DomainsPurchaseType$outboundSchema: z.ZodNativeEnum<
|
|
435
|
+
typeof DomainsPurchaseType
|
|
436
|
+
> = DomainsPurchaseType$inboundSchema;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @internal
|
|
440
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
441
|
+
*/
|
|
442
|
+
export namespace DomainsPurchaseType$ {
|
|
443
|
+
/** @deprecated use `DomainsPurchaseType$inboundSchema` instead. */
|
|
444
|
+
export const inboundSchema = DomainsPurchaseType$inboundSchema;
|
|
445
|
+
/** @deprecated use `DomainsPurchaseType$outboundSchema` instead. */
|
|
446
|
+
export const outboundSchema = DomainsPurchaseType$outboundSchema;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/** @internal */
|
|
450
|
+
export const GetOrderDomainsStatus$inboundSchema: z.ZodNativeEnum<
|
|
451
|
+
typeof GetOrderDomainsStatus
|
|
452
|
+
> = z.nativeEnum(GetOrderDomainsStatus);
|
|
453
|
+
|
|
454
|
+
/** @internal */
|
|
455
|
+
export const GetOrderDomainsStatus$outboundSchema: z.ZodNativeEnum<
|
|
456
|
+
typeof GetOrderDomainsStatus
|
|
457
|
+
> = GetOrderDomainsStatus$inboundSchema;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @internal
|
|
461
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
462
|
+
*/
|
|
463
|
+
export namespace GetOrderDomainsStatus$ {
|
|
464
|
+
/** @deprecated use `GetOrderDomainsStatus$inboundSchema` instead. */
|
|
465
|
+
export const inboundSchema = GetOrderDomainsStatus$inboundSchema;
|
|
466
|
+
/** @deprecated use `GetOrderDomainsStatus$outboundSchema` instead. */
|
|
467
|
+
export const outboundSchema = GetOrderDomainsStatus$outboundSchema;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/** @internal */
|
|
471
|
+
export const Domains2$inboundSchema: z.ZodType<
|
|
472
|
+
Domains2,
|
|
473
|
+
z.ZodTypeDef,
|
|
474
|
+
unknown
|
|
475
|
+
> = z.object({
|
|
476
|
+
purchaseType: DomainsPurchaseType$inboundSchema,
|
|
477
|
+
domainName: z.string(),
|
|
478
|
+
status: GetOrderDomainsStatus$inboundSchema,
|
|
479
|
+
price: z.number(),
|
|
480
|
+
years: z.number(),
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
/** @internal */
|
|
484
|
+
export type Domains2$Outbound = {
|
|
485
|
+
purchaseType: string;
|
|
486
|
+
domainName: string;
|
|
487
|
+
status: string;
|
|
488
|
+
price: number;
|
|
489
|
+
years: number;
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
/** @internal */
|
|
493
|
+
export const Domains2$outboundSchema: z.ZodType<
|
|
494
|
+
Domains2$Outbound,
|
|
495
|
+
z.ZodTypeDef,
|
|
496
|
+
Domains2
|
|
497
|
+
> = z.object({
|
|
498
|
+
purchaseType: DomainsPurchaseType$outboundSchema,
|
|
499
|
+
domainName: z.string(),
|
|
500
|
+
status: GetOrderDomainsStatus$outboundSchema,
|
|
501
|
+
price: z.number(),
|
|
502
|
+
years: z.number(),
|
|
503
|
+
});
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* @internal
|
|
507
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
508
|
+
*/
|
|
509
|
+
export namespace Domains2$ {
|
|
510
|
+
/** @deprecated use `Domains2$inboundSchema` instead. */
|
|
511
|
+
export const inboundSchema = Domains2$inboundSchema;
|
|
512
|
+
/** @deprecated use `Domains2$outboundSchema` instead. */
|
|
513
|
+
export const outboundSchema = Domains2$outboundSchema;
|
|
514
|
+
/** @deprecated use `Domains2$Outbound` instead. */
|
|
515
|
+
export type Outbound = Domains2$Outbound;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export function domains2ToJSON(domains2: Domains2): string {
|
|
519
|
+
return JSON.stringify(Domains2$outboundSchema.parse(domains2));
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export function domains2FromJSON(
|
|
523
|
+
jsonString: string,
|
|
524
|
+
): SafeParseResult<Domains2, SDKValidationError> {
|
|
525
|
+
return safeParse(
|
|
526
|
+
jsonString,
|
|
527
|
+
(x) => Domains2$inboundSchema.parse(JSON.parse(x)),
|
|
528
|
+
`Failed to parse 'Domains2' from JSON`,
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/** @internal */
|
|
533
|
+
export const GetOrderDomainsDomainsRegistrarPurchaseType$inboundSchema:
|
|
534
|
+
z.ZodNativeEnum<typeof GetOrderDomainsDomainsRegistrarPurchaseType> = z
|
|
535
|
+
.nativeEnum(GetOrderDomainsDomainsRegistrarPurchaseType);
|
|
536
|
+
|
|
537
|
+
/** @internal */
|
|
538
|
+
export const GetOrderDomainsDomainsRegistrarPurchaseType$outboundSchema:
|
|
539
|
+
z.ZodNativeEnum<typeof GetOrderDomainsDomainsRegistrarPurchaseType> =
|
|
540
|
+
GetOrderDomainsDomainsRegistrarPurchaseType$inboundSchema;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* @internal
|
|
544
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
545
|
+
*/
|
|
546
|
+
export namespace GetOrderDomainsDomainsRegistrarPurchaseType$ {
|
|
547
|
+
/** @deprecated use `GetOrderDomainsDomainsRegistrarPurchaseType$inboundSchema` instead. */
|
|
548
|
+
export const inboundSchema =
|
|
549
|
+
GetOrderDomainsDomainsRegistrarPurchaseType$inboundSchema;
|
|
550
|
+
/** @deprecated use `GetOrderDomainsDomainsRegistrarPurchaseType$outboundSchema` instead. */
|
|
551
|
+
export const outboundSchema =
|
|
552
|
+
GetOrderDomainsDomainsRegistrarPurchaseType$outboundSchema;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/** @internal */
|
|
556
|
+
export const DomainsStatus$inboundSchema: z.ZodNativeEnum<
|
|
557
|
+
typeof DomainsStatus
|
|
558
|
+
> = z.nativeEnum(DomainsStatus);
|
|
559
|
+
|
|
560
|
+
/** @internal */
|
|
561
|
+
export const DomainsStatus$outboundSchema: z.ZodNativeEnum<
|
|
562
|
+
typeof DomainsStatus
|
|
563
|
+
> = DomainsStatus$inboundSchema;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @internal
|
|
567
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
568
|
+
*/
|
|
569
|
+
export namespace DomainsStatus$ {
|
|
570
|
+
/** @deprecated use `DomainsStatus$inboundSchema` instead. */
|
|
571
|
+
export const inboundSchema = DomainsStatus$inboundSchema;
|
|
572
|
+
/** @deprecated use `DomainsStatus$outboundSchema` instead. */
|
|
573
|
+
export const outboundSchema = DomainsStatus$outboundSchema;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/** @internal */
|
|
577
|
+
export const Domains1$inboundSchema: z.ZodType<
|
|
578
|
+
Domains1,
|
|
579
|
+
z.ZodTypeDef,
|
|
580
|
+
unknown
|
|
581
|
+
> = z.object({
|
|
582
|
+
purchaseType: GetOrderDomainsDomainsRegistrarPurchaseType$inboundSchema,
|
|
583
|
+
autoRenew: z.boolean(),
|
|
584
|
+
domainName: z.string(),
|
|
585
|
+
status: DomainsStatus$inboundSchema,
|
|
586
|
+
price: z.number(),
|
|
587
|
+
years: z.number(),
|
|
588
|
+
});
|
|
589
|
+
|
|
590
|
+
/** @internal */
|
|
591
|
+
export type Domains1$Outbound = {
|
|
592
|
+
purchaseType: string;
|
|
593
|
+
autoRenew: boolean;
|
|
594
|
+
domainName: string;
|
|
595
|
+
status: string;
|
|
596
|
+
price: number;
|
|
597
|
+
years: number;
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
/** @internal */
|
|
601
|
+
export const Domains1$outboundSchema: z.ZodType<
|
|
602
|
+
Domains1$Outbound,
|
|
603
|
+
z.ZodTypeDef,
|
|
604
|
+
Domains1
|
|
605
|
+
> = z.object({
|
|
606
|
+
purchaseType: GetOrderDomainsDomainsRegistrarPurchaseType$outboundSchema,
|
|
607
|
+
autoRenew: z.boolean(),
|
|
608
|
+
domainName: z.string(),
|
|
609
|
+
status: DomainsStatus$outboundSchema,
|
|
610
|
+
price: z.number(),
|
|
611
|
+
years: z.number(),
|
|
612
|
+
});
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @internal
|
|
616
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
617
|
+
*/
|
|
618
|
+
export namespace Domains1$ {
|
|
619
|
+
/** @deprecated use `Domains1$inboundSchema` instead. */
|
|
620
|
+
export const inboundSchema = Domains1$inboundSchema;
|
|
621
|
+
/** @deprecated use `Domains1$outboundSchema` instead. */
|
|
622
|
+
export const outboundSchema = Domains1$outboundSchema;
|
|
623
|
+
/** @deprecated use `Domains1$Outbound` instead. */
|
|
624
|
+
export type Outbound = Domains1$Outbound;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export function domains1ToJSON(domains1: Domains1): string {
|
|
628
|
+
return JSON.stringify(Domains1$outboundSchema.parse(domains1));
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export function domains1FromJSON(
|
|
632
|
+
jsonString: string,
|
|
633
|
+
): SafeParseResult<Domains1, SDKValidationError> {
|
|
634
|
+
return safeParse(
|
|
635
|
+
jsonString,
|
|
636
|
+
(x) => Domains1$inboundSchema.parse(JSON.parse(x)),
|
|
637
|
+
`Failed to parse 'Domains1' from JSON`,
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/** @internal */
|
|
642
|
+
export const GetOrderDomains$inboundSchema: z.ZodType<
|
|
643
|
+
GetOrderDomains,
|
|
644
|
+
z.ZodTypeDef,
|
|
645
|
+
unknown
|
|
646
|
+
> = z.union([
|
|
647
|
+
z.lazy(() => Domains1$inboundSchema),
|
|
648
|
+
z.lazy(() => Domains3$inboundSchema),
|
|
649
|
+
z.lazy(() => Domains2$inboundSchema),
|
|
650
|
+
]);
|
|
651
|
+
|
|
652
|
+
/** @internal */
|
|
653
|
+
export type GetOrderDomains$Outbound =
|
|
654
|
+
| Domains1$Outbound
|
|
655
|
+
| Domains3$Outbound
|
|
656
|
+
| Domains2$Outbound;
|
|
657
|
+
|
|
658
|
+
/** @internal */
|
|
659
|
+
export const GetOrderDomains$outboundSchema: z.ZodType<
|
|
660
|
+
GetOrderDomains$Outbound,
|
|
661
|
+
z.ZodTypeDef,
|
|
662
|
+
GetOrderDomains
|
|
663
|
+
> = z.union([
|
|
664
|
+
z.lazy(() => Domains1$outboundSchema),
|
|
665
|
+
z.lazy(() => Domains3$outboundSchema),
|
|
666
|
+
z.lazy(() => Domains2$outboundSchema),
|
|
667
|
+
]);
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* @internal
|
|
671
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
672
|
+
*/
|
|
673
|
+
export namespace GetOrderDomains$ {
|
|
674
|
+
/** @deprecated use `GetOrderDomains$inboundSchema` instead. */
|
|
675
|
+
export const inboundSchema = GetOrderDomains$inboundSchema;
|
|
676
|
+
/** @deprecated use `GetOrderDomains$outboundSchema` instead. */
|
|
677
|
+
export const outboundSchema = GetOrderDomains$outboundSchema;
|
|
678
|
+
/** @deprecated use `GetOrderDomains$Outbound` instead. */
|
|
679
|
+
export type Outbound = GetOrderDomains$Outbound;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
export function getOrderDomainsToJSON(
|
|
683
|
+
getOrderDomains: GetOrderDomains,
|
|
684
|
+
): string {
|
|
685
|
+
return JSON.stringify(GetOrderDomains$outboundSchema.parse(getOrderDomains));
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export function getOrderDomainsFromJSON(
|
|
689
|
+
jsonString: string,
|
|
690
|
+
): SafeParseResult<GetOrderDomains, SDKValidationError> {
|
|
691
|
+
return safeParse(
|
|
692
|
+
jsonString,
|
|
693
|
+
(x) => GetOrderDomains$inboundSchema.parse(JSON.parse(x)),
|
|
694
|
+
`Failed to parse 'GetOrderDomains' from JSON`,
|
|
695
|
+
);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/** @internal */
|
|
699
|
+
export const GetOrderStatus$inboundSchema: z.ZodNativeEnum<
|
|
700
|
+
typeof GetOrderStatus
|
|
701
|
+
> = z.nativeEnum(GetOrderStatus);
|
|
702
|
+
|
|
703
|
+
/** @internal */
|
|
704
|
+
export const GetOrderStatus$outboundSchema: z.ZodNativeEnum<
|
|
705
|
+
typeof GetOrderStatus
|
|
706
|
+
> = GetOrderStatus$inboundSchema;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* @internal
|
|
710
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
711
|
+
*/
|
|
712
|
+
export namespace GetOrderStatus$ {
|
|
713
|
+
/** @deprecated use `GetOrderStatus$inboundSchema` instead. */
|
|
714
|
+
export const inboundSchema = GetOrderStatus$inboundSchema;
|
|
715
|
+
/** @deprecated use `GetOrderStatus$outboundSchema` instead. */
|
|
716
|
+
export const outboundSchema = GetOrderStatus$outboundSchema;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/** @internal */
|
|
720
|
+
export const GetOrderErrorDomainsRegistrarResponseCode$inboundSchema:
|
|
721
|
+
z.ZodNativeEnum<typeof GetOrderErrorDomainsRegistrarResponseCode> = z
|
|
722
|
+
.nativeEnum(GetOrderErrorDomainsRegistrarResponseCode);
|
|
723
|
+
|
|
724
|
+
/** @internal */
|
|
725
|
+
export const GetOrderErrorDomainsRegistrarResponseCode$outboundSchema:
|
|
726
|
+
z.ZodNativeEnum<typeof GetOrderErrorDomainsRegistrarResponseCode> =
|
|
727
|
+
GetOrderErrorDomainsRegistrarResponseCode$inboundSchema;
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* @internal
|
|
731
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
732
|
+
*/
|
|
733
|
+
export namespace GetOrderErrorDomainsRegistrarResponseCode$ {
|
|
734
|
+
/** @deprecated use `GetOrderErrorDomainsRegistrarResponseCode$inboundSchema` instead. */
|
|
735
|
+
export const inboundSchema =
|
|
736
|
+
GetOrderErrorDomainsRegistrarResponseCode$inboundSchema;
|
|
737
|
+
/** @deprecated use `GetOrderErrorDomainsRegistrarResponseCode$outboundSchema` instead. */
|
|
738
|
+
export const outboundSchema =
|
|
739
|
+
GetOrderErrorDomainsRegistrarResponseCode$outboundSchema;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/** @internal */
|
|
743
|
+
export const Error4$inboundSchema: z.ZodType<Error4, z.ZodTypeDef, unknown> = z
|
|
744
|
+
.object({
|
|
745
|
+
code: GetOrderErrorDomainsRegistrarResponseCode$inboundSchema,
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
/** @internal */
|
|
749
|
+
export type Error4$Outbound = {
|
|
750
|
+
code: string;
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
/** @internal */
|
|
754
|
+
export const Error4$outboundSchema: z.ZodType<
|
|
755
|
+
Error4$Outbound,
|
|
756
|
+
z.ZodTypeDef,
|
|
757
|
+
Error4
|
|
758
|
+
> = z.object({
|
|
759
|
+
code: GetOrderErrorDomainsRegistrarResponseCode$outboundSchema,
|
|
760
|
+
});
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* @internal
|
|
764
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
765
|
+
*/
|
|
766
|
+
export namespace Error4$ {
|
|
767
|
+
/** @deprecated use `Error4$inboundSchema` instead. */
|
|
768
|
+
export const inboundSchema = Error4$inboundSchema;
|
|
769
|
+
/** @deprecated use `Error4$outboundSchema` instead. */
|
|
770
|
+
export const outboundSchema = Error4$outboundSchema;
|
|
771
|
+
/** @deprecated use `Error4$Outbound` instead. */
|
|
772
|
+
export type Outbound = Error4$Outbound;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export function error4ToJSON(error4: Error4): string {
|
|
776
|
+
return JSON.stringify(Error4$outboundSchema.parse(error4));
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export function error4FromJSON(
|
|
780
|
+
jsonString: string,
|
|
781
|
+
): SafeParseResult<Error4, SDKValidationError> {
|
|
782
|
+
return safeParse(
|
|
783
|
+
jsonString,
|
|
784
|
+
(x) => Error4$inboundSchema.parse(JSON.parse(x)),
|
|
785
|
+
`Failed to parse 'Error4' from JSON`,
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/** @internal */
|
|
790
|
+
export const GetOrderErrorDomainsRegistrarCode$inboundSchema: z.ZodNativeEnum<
|
|
791
|
+
typeof GetOrderErrorDomainsRegistrarCode
|
|
792
|
+
> = z.nativeEnum(GetOrderErrorDomainsRegistrarCode);
|
|
793
|
+
|
|
794
|
+
/** @internal */
|
|
795
|
+
export const GetOrderErrorDomainsRegistrarCode$outboundSchema: z.ZodNativeEnum<
|
|
796
|
+
typeof GetOrderErrorDomainsRegistrarCode
|
|
797
|
+
> = GetOrderErrorDomainsRegistrarCode$inboundSchema;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* @internal
|
|
801
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
802
|
+
*/
|
|
803
|
+
export namespace GetOrderErrorDomainsRegistrarCode$ {
|
|
804
|
+
/** @deprecated use `GetOrderErrorDomainsRegistrarCode$inboundSchema` instead. */
|
|
805
|
+
export const inboundSchema = GetOrderErrorDomainsRegistrarCode$inboundSchema;
|
|
806
|
+
/** @deprecated use `GetOrderErrorDomainsRegistrarCode$outboundSchema` instead. */
|
|
807
|
+
export const outboundSchema =
|
|
808
|
+
GetOrderErrorDomainsRegistrarCode$outboundSchema;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/** @internal */
|
|
812
|
+
export const ErrorDetails$inboundSchema: z.ZodType<
|
|
813
|
+
ErrorDetails,
|
|
814
|
+
z.ZodTypeDef,
|
|
815
|
+
unknown
|
|
816
|
+
> = z.object({
|
|
817
|
+
expectedPrice: z.number(),
|
|
818
|
+
actualPrice: z.number().optional(),
|
|
819
|
+
});
|
|
820
|
+
|
|
821
|
+
/** @internal */
|
|
822
|
+
export type ErrorDetails$Outbound = {
|
|
823
|
+
expectedPrice: number;
|
|
824
|
+
actualPrice?: number | undefined;
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
/** @internal */
|
|
828
|
+
export const ErrorDetails$outboundSchema: z.ZodType<
|
|
829
|
+
ErrorDetails$Outbound,
|
|
830
|
+
z.ZodTypeDef,
|
|
831
|
+
ErrorDetails
|
|
832
|
+
> = z.object({
|
|
833
|
+
expectedPrice: z.number(),
|
|
834
|
+
actualPrice: z.number().optional(),
|
|
835
|
+
});
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* @internal
|
|
839
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
840
|
+
*/
|
|
841
|
+
export namespace ErrorDetails$ {
|
|
842
|
+
/** @deprecated use `ErrorDetails$inboundSchema` instead. */
|
|
843
|
+
export const inboundSchema = ErrorDetails$inboundSchema;
|
|
844
|
+
/** @deprecated use `ErrorDetails$outboundSchema` instead. */
|
|
845
|
+
export const outboundSchema = ErrorDetails$outboundSchema;
|
|
846
|
+
/** @deprecated use `ErrorDetails$Outbound` instead. */
|
|
847
|
+
export type Outbound = ErrorDetails$Outbound;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export function errorDetailsToJSON(errorDetails: ErrorDetails): string {
|
|
851
|
+
return JSON.stringify(ErrorDetails$outboundSchema.parse(errorDetails));
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
export function errorDetailsFromJSON(
|
|
855
|
+
jsonString: string,
|
|
856
|
+
): SafeParseResult<ErrorDetails, SDKValidationError> {
|
|
857
|
+
return safeParse(
|
|
858
|
+
jsonString,
|
|
859
|
+
(x) => ErrorDetails$inboundSchema.parse(JSON.parse(x)),
|
|
860
|
+
`Failed to parse 'ErrorDetails' from JSON`,
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/** @internal */
|
|
865
|
+
export const Error3$inboundSchema: z.ZodType<Error3, z.ZodTypeDef, unknown> = z
|
|
866
|
+
.object({
|
|
867
|
+
code: GetOrderErrorDomainsRegistrarCode$inboundSchema,
|
|
868
|
+
details: z.lazy(() => ErrorDetails$inboundSchema),
|
|
869
|
+
});
|
|
870
|
+
|
|
871
|
+
/** @internal */
|
|
872
|
+
export type Error3$Outbound = {
|
|
873
|
+
code: string;
|
|
874
|
+
details: ErrorDetails$Outbound;
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
/** @internal */
|
|
878
|
+
export const Error3$outboundSchema: z.ZodType<
|
|
879
|
+
Error3$Outbound,
|
|
880
|
+
z.ZodTypeDef,
|
|
881
|
+
Error3
|
|
882
|
+
> = z.object({
|
|
883
|
+
code: GetOrderErrorDomainsRegistrarCode$outboundSchema,
|
|
884
|
+
details: z.lazy(() => ErrorDetails$outboundSchema),
|
|
885
|
+
});
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* @internal
|
|
889
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
890
|
+
*/
|
|
891
|
+
export namespace Error3$ {
|
|
892
|
+
/** @deprecated use `Error3$inboundSchema` instead. */
|
|
893
|
+
export const inboundSchema = Error3$inboundSchema;
|
|
894
|
+
/** @deprecated use `Error3$outboundSchema` instead. */
|
|
895
|
+
export const outboundSchema = Error3$outboundSchema;
|
|
896
|
+
/** @deprecated use `Error3$Outbound` instead. */
|
|
897
|
+
export type Outbound = Error3$Outbound;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export function error3ToJSON(error3: Error3): string {
|
|
901
|
+
return JSON.stringify(Error3$outboundSchema.parse(error3));
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export function error3FromJSON(
|
|
905
|
+
jsonString: string,
|
|
906
|
+
): SafeParseResult<Error3, SDKValidationError> {
|
|
907
|
+
return safeParse(
|
|
908
|
+
jsonString,
|
|
909
|
+
(x) => Error3$inboundSchema.parse(JSON.parse(x)),
|
|
910
|
+
`Failed to parse 'Error3' from JSON`,
|
|
911
|
+
);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/** @internal */
|
|
915
|
+
export const GetOrderErrorCode$inboundSchema: z.ZodNativeEnum<
|
|
916
|
+
typeof GetOrderErrorCode
|
|
917
|
+
> = z.nativeEnum(GetOrderErrorCode);
|
|
918
|
+
|
|
919
|
+
/** @internal */
|
|
920
|
+
export const GetOrderErrorCode$outboundSchema: z.ZodNativeEnum<
|
|
921
|
+
typeof GetOrderErrorCode
|
|
922
|
+
> = GetOrderErrorCode$inboundSchema;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* @internal
|
|
926
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
927
|
+
*/
|
|
928
|
+
export namespace GetOrderErrorCode$ {
|
|
929
|
+
/** @deprecated use `GetOrderErrorCode$inboundSchema` instead. */
|
|
930
|
+
export const inboundSchema = GetOrderErrorCode$inboundSchema;
|
|
931
|
+
/** @deprecated use `GetOrderErrorCode$outboundSchema` instead. */
|
|
932
|
+
export const outboundSchema = GetOrderErrorCode$outboundSchema;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/** @internal */
|
|
936
|
+
export const Tlds$inboundSchema: z.ZodType<Tlds, z.ZodTypeDef, unknown> = z
|
|
937
|
+
.object({
|
|
938
|
+
tldName: z.string(),
|
|
939
|
+
endsAt: z.string(),
|
|
940
|
+
});
|
|
941
|
+
|
|
942
|
+
/** @internal */
|
|
943
|
+
export type Tlds$Outbound = {
|
|
944
|
+
tldName: string;
|
|
945
|
+
endsAt: string;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
/** @internal */
|
|
949
|
+
export const Tlds$outboundSchema: z.ZodType<Tlds$Outbound, z.ZodTypeDef, Tlds> =
|
|
950
|
+
z.object({
|
|
951
|
+
tldName: z.string(),
|
|
952
|
+
endsAt: z.string(),
|
|
953
|
+
});
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* @internal
|
|
957
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
958
|
+
*/
|
|
959
|
+
export namespace Tlds$ {
|
|
960
|
+
/** @deprecated use `Tlds$inboundSchema` instead. */
|
|
961
|
+
export const inboundSchema = Tlds$inboundSchema;
|
|
962
|
+
/** @deprecated use `Tlds$outboundSchema` instead. */
|
|
963
|
+
export const outboundSchema = Tlds$outboundSchema;
|
|
964
|
+
/** @deprecated use `Tlds$Outbound` instead. */
|
|
965
|
+
export type Outbound = Tlds$Outbound;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
export function tldsToJSON(tlds: Tlds): string {
|
|
969
|
+
return JSON.stringify(Tlds$outboundSchema.parse(tlds));
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export function tldsFromJSON(
|
|
973
|
+
jsonString: string,
|
|
974
|
+
): SafeParseResult<Tlds, SDKValidationError> {
|
|
975
|
+
return safeParse(
|
|
976
|
+
jsonString,
|
|
977
|
+
(x) => Tlds$inboundSchema.parse(JSON.parse(x)),
|
|
978
|
+
`Failed to parse 'Tlds' from JSON`,
|
|
979
|
+
);
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/** @internal */
|
|
983
|
+
export const GetOrderErrorDetails$inboundSchema: z.ZodType<
|
|
984
|
+
GetOrderErrorDetails,
|
|
985
|
+
z.ZodTypeDef,
|
|
986
|
+
unknown
|
|
987
|
+
> = z.object({
|
|
988
|
+
tlds: z.array(z.lazy(() => Tlds$inboundSchema)),
|
|
989
|
+
});
|
|
990
|
+
|
|
991
|
+
/** @internal */
|
|
992
|
+
export type GetOrderErrorDetails$Outbound = {
|
|
993
|
+
tlds: Array<Tlds$Outbound>;
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
/** @internal */
|
|
997
|
+
export const GetOrderErrorDetails$outboundSchema: z.ZodType<
|
|
998
|
+
GetOrderErrorDetails$Outbound,
|
|
999
|
+
z.ZodTypeDef,
|
|
1000
|
+
GetOrderErrorDetails
|
|
1001
|
+
> = z.object({
|
|
1002
|
+
tlds: z.array(z.lazy(() => Tlds$outboundSchema)),
|
|
1003
|
+
});
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* @internal
|
|
1007
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1008
|
+
*/
|
|
1009
|
+
export namespace GetOrderErrorDetails$ {
|
|
1010
|
+
/** @deprecated use `GetOrderErrorDetails$inboundSchema` instead. */
|
|
1011
|
+
export const inboundSchema = GetOrderErrorDetails$inboundSchema;
|
|
1012
|
+
/** @deprecated use `GetOrderErrorDetails$outboundSchema` instead. */
|
|
1013
|
+
export const outboundSchema = GetOrderErrorDetails$outboundSchema;
|
|
1014
|
+
/** @deprecated use `GetOrderErrorDetails$Outbound` instead. */
|
|
1015
|
+
export type Outbound = GetOrderErrorDetails$Outbound;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
export function getOrderErrorDetailsToJSON(
|
|
1019
|
+
getOrderErrorDetails: GetOrderErrorDetails,
|
|
1020
|
+
): string {
|
|
1021
|
+
return JSON.stringify(
|
|
1022
|
+
GetOrderErrorDetails$outboundSchema.parse(getOrderErrorDetails),
|
|
1023
|
+
);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
export function getOrderErrorDetailsFromJSON(
|
|
1027
|
+
jsonString: string,
|
|
1028
|
+
): SafeParseResult<GetOrderErrorDetails, SDKValidationError> {
|
|
1029
|
+
return safeParse(
|
|
1030
|
+
jsonString,
|
|
1031
|
+
(x) => GetOrderErrorDetails$inboundSchema.parse(JSON.parse(x)),
|
|
1032
|
+
`Failed to parse 'GetOrderErrorDetails' from JSON`,
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
/** @internal */
|
|
1037
|
+
export const Error2$inboundSchema: z.ZodType<Error2, z.ZodTypeDef, unknown> = z
|
|
1038
|
+
.object({
|
|
1039
|
+
code: GetOrderErrorCode$inboundSchema,
|
|
1040
|
+
details: z.lazy(() => GetOrderErrorDetails$inboundSchema),
|
|
1041
|
+
});
|
|
1042
|
+
|
|
1043
|
+
/** @internal */
|
|
1044
|
+
export type Error2$Outbound = {
|
|
1045
|
+
code: string;
|
|
1046
|
+
details: GetOrderErrorDetails$Outbound;
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
/** @internal */
|
|
1050
|
+
export const Error2$outboundSchema: z.ZodType<
|
|
1051
|
+
Error2$Outbound,
|
|
1052
|
+
z.ZodTypeDef,
|
|
1053
|
+
Error2
|
|
1054
|
+
> = z.object({
|
|
1055
|
+
code: GetOrderErrorCode$outboundSchema,
|
|
1056
|
+
details: z.lazy(() => GetOrderErrorDetails$outboundSchema),
|
|
1057
|
+
});
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* @internal
|
|
1061
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1062
|
+
*/
|
|
1063
|
+
export namespace Error2$ {
|
|
1064
|
+
/** @deprecated use `Error2$inboundSchema` instead. */
|
|
1065
|
+
export const inboundSchema = Error2$inboundSchema;
|
|
1066
|
+
/** @deprecated use `Error2$outboundSchema` instead. */
|
|
1067
|
+
export const outboundSchema = Error2$outboundSchema;
|
|
1068
|
+
/** @deprecated use `Error2$Outbound` instead. */
|
|
1069
|
+
export type Outbound = Error2$Outbound;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
export function error2ToJSON(error2: Error2): string {
|
|
1073
|
+
return JSON.stringify(Error2$outboundSchema.parse(error2));
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
export function error2FromJSON(
|
|
1077
|
+
jsonString: string,
|
|
1078
|
+
): SafeParseResult<Error2, SDKValidationError> {
|
|
1079
|
+
return safeParse(
|
|
1080
|
+
jsonString,
|
|
1081
|
+
(x) => Error2$inboundSchema.parse(JSON.parse(x)),
|
|
1082
|
+
`Failed to parse 'Error2' from JSON`,
|
|
1083
|
+
);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/** @internal */
|
|
1087
|
+
export const ErrorCode$inboundSchema: z.ZodNativeEnum<typeof ErrorCode> = z
|
|
1088
|
+
.nativeEnum(ErrorCode);
|
|
1089
|
+
|
|
1090
|
+
/** @internal */
|
|
1091
|
+
export const ErrorCode$outboundSchema: z.ZodNativeEnum<typeof ErrorCode> =
|
|
1092
|
+
ErrorCode$inboundSchema;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* @internal
|
|
1096
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1097
|
+
*/
|
|
1098
|
+
export namespace ErrorCode$ {
|
|
1099
|
+
/** @deprecated use `ErrorCode$inboundSchema` instead. */
|
|
1100
|
+
export const inboundSchema = ErrorCode$inboundSchema;
|
|
1101
|
+
/** @deprecated use `ErrorCode$outboundSchema` instead. */
|
|
1102
|
+
export const outboundSchema = ErrorCode$outboundSchema;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/** @internal */
|
|
1106
|
+
export const Error1$inboundSchema: z.ZodType<Error1, z.ZodTypeDef, unknown> = z
|
|
1107
|
+
.object({
|
|
1108
|
+
code: ErrorCode$inboundSchema,
|
|
1109
|
+
});
|
|
1110
|
+
|
|
1111
|
+
/** @internal */
|
|
1112
|
+
export type Error1$Outbound = {
|
|
1113
|
+
code: string;
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
/** @internal */
|
|
1117
|
+
export const Error1$outboundSchema: z.ZodType<
|
|
1118
|
+
Error1$Outbound,
|
|
1119
|
+
z.ZodTypeDef,
|
|
1120
|
+
Error1
|
|
1121
|
+
> = z.object({
|
|
1122
|
+
code: ErrorCode$outboundSchema,
|
|
1123
|
+
});
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* @internal
|
|
1127
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1128
|
+
*/
|
|
1129
|
+
export namespace Error1$ {
|
|
1130
|
+
/** @deprecated use `Error1$inboundSchema` instead. */
|
|
1131
|
+
export const inboundSchema = Error1$inboundSchema;
|
|
1132
|
+
/** @deprecated use `Error1$outboundSchema` instead. */
|
|
1133
|
+
export const outboundSchema = Error1$outboundSchema;
|
|
1134
|
+
/** @deprecated use `Error1$Outbound` instead. */
|
|
1135
|
+
export type Outbound = Error1$Outbound;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
export function error1ToJSON(error1: Error1): string {
|
|
1139
|
+
return JSON.stringify(Error1$outboundSchema.parse(error1));
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
export function error1FromJSON(
|
|
1143
|
+
jsonString: string,
|
|
1144
|
+
): SafeParseResult<Error1, SDKValidationError> {
|
|
1145
|
+
return safeParse(
|
|
1146
|
+
jsonString,
|
|
1147
|
+
(x) => Error1$inboundSchema.parse(JSON.parse(x)),
|
|
1148
|
+
`Failed to parse 'Error1' from JSON`,
|
|
1149
|
+
);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/** @internal */
|
|
1153
|
+
export const GetOrderError$inboundSchema: z.ZodType<
|
|
1154
|
+
GetOrderError,
|
|
1155
|
+
z.ZodTypeDef,
|
|
1156
|
+
unknown
|
|
1157
|
+
> = z.union([
|
|
1158
|
+
z.lazy(() => Error2$inboundSchema),
|
|
1159
|
+
z.lazy(() => Error3$inboundSchema),
|
|
1160
|
+
z.lazy(() => Error1$inboundSchema),
|
|
1161
|
+
z.lazy(() => Error4$inboundSchema),
|
|
1162
|
+
]);
|
|
1163
|
+
|
|
1164
|
+
/** @internal */
|
|
1165
|
+
export type GetOrderError$Outbound =
|
|
1166
|
+
| Error2$Outbound
|
|
1167
|
+
| Error3$Outbound
|
|
1168
|
+
| Error1$Outbound
|
|
1169
|
+
| Error4$Outbound;
|
|
1170
|
+
|
|
1171
|
+
/** @internal */
|
|
1172
|
+
export const GetOrderError$outboundSchema: z.ZodType<
|
|
1173
|
+
GetOrderError$Outbound,
|
|
1174
|
+
z.ZodTypeDef,
|
|
1175
|
+
GetOrderError
|
|
1176
|
+
> = z.union([
|
|
1177
|
+
z.lazy(() => Error2$outboundSchema),
|
|
1178
|
+
z.lazy(() => Error3$outboundSchema),
|
|
1179
|
+
z.lazy(() => Error1$outboundSchema),
|
|
1180
|
+
z.lazy(() => Error4$outboundSchema),
|
|
1181
|
+
]);
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* @internal
|
|
1185
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1186
|
+
*/
|
|
1187
|
+
export namespace GetOrderError$ {
|
|
1188
|
+
/** @deprecated use `GetOrderError$inboundSchema` instead. */
|
|
1189
|
+
export const inboundSchema = GetOrderError$inboundSchema;
|
|
1190
|
+
/** @deprecated use `GetOrderError$outboundSchema` instead. */
|
|
1191
|
+
export const outboundSchema = GetOrderError$outboundSchema;
|
|
1192
|
+
/** @deprecated use `GetOrderError$Outbound` instead. */
|
|
1193
|
+
export type Outbound = GetOrderError$Outbound;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
export function getOrderErrorToJSON(getOrderError: GetOrderError): string {
|
|
1197
|
+
return JSON.stringify(GetOrderError$outboundSchema.parse(getOrderError));
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export function getOrderErrorFromJSON(
|
|
1201
|
+
jsonString: string,
|
|
1202
|
+
): SafeParseResult<GetOrderError, SDKValidationError> {
|
|
1203
|
+
return safeParse(
|
|
1204
|
+
jsonString,
|
|
1205
|
+
(x) => GetOrderError$inboundSchema.parse(JSON.parse(x)),
|
|
1206
|
+
`Failed to parse 'GetOrderError' from JSON`,
|
|
1207
|
+
);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/** @internal */
|
|
1211
|
+
export const GetOrderResponseBody$inboundSchema: z.ZodType<
|
|
1212
|
+
GetOrderResponseBody,
|
|
1213
|
+
z.ZodTypeDef,
|
|
1214
|
+
unknown
|
|
1215
|
+
> = z.object({
|
|
1216
|
+
orderId: z.string(),
|
|
1217
|
+
domains: z.array(
|
|
1218
|
+
z.union([
|
|
1219
|
+
z.lazy(() => Domains1$inboundSchema),
|
|
1220
|
+
z.lazy(() => Domains3$inboundSchema),
|
|
1221
|
+
z.lazy(() => Domains2$inboundSchema),
|
|
1222
|
+
]),
|
|
1223
|
+
),
|
|
1224
|
+
status: GetOrderStatus$inboundSchema,
|
|
1225
|
+
error: z.union([
|
|
1226
|
+
z.lazy(() => Error2$inboundSchema),
|
|
1227
|
+
z.lazy(() => Error3$inboundSchema),
|
|
1228
|
+
z.lazy(() => Error1$inboundSchema),
|
|
1229
|
+
z.lazy(() => Error4$inboundSchema),
|
|
1230
|
+
]).optional(),
|
|
1231
|
+
});
|
|
1232
|
+
|
|
1233
|
+
/** @internal */
|
|
1234
|
+
export type GetOrderResponseBody$Outbound = {
|
|
1235
|
+
orderId: string;
|
|
1236
|
+
domains: Array<Domains1$Outbound | Domains3$Outbound | Domains2$Outbound>;
|
|
1237
|
+
status: string;
|
|
1238
|
+
error?:
|
|
1239
|
+
| Error2$Outbound
|
|
1240
|
+
| Error3$Outbound
|
|
1241
|
+
| Error1$Outbound
|
|
1242
|
+
| Error4$Outbound
|
|
1243
|
+
| undefined;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
/** @internal */
|
|
1247
|
+
export const GetOrderResponseBody$outboundSchema: z.ZodType<
|
|
1248
|
+
GetOrderResponseBody$Outbound,
|
|
1249
|
+
z.ZodTypeDef,
|
|
1250
|
+
GetOrderResponseBody
|
|
1251
|
+
> = z.object({
|
|
1252
|
+
orderId: z.string(),
|
|
1253
|
+
domains: z.array(
|
|
1254
|
+
z.union([
|
|
1255
|
+
z.lazy(() => Domains1$outboundSchema),
|
|
1256
|
+
z.lazy(() => Domains3$outboundSchema),
|
|
1257
|
+
z.lazy(() => Domains2$outboundSchema),
|
|
1258
|
+
]),
|
|
1259
|
+
),
|
|
1260
|
+
status: GetOrderStatus$outboundSchema,
|
|
1261
|
+
error: z.union([
|
|
1262
|
+
z.lazy(() => Error2$outboundSchema),
|
|
1263
|
+
z.lazy(() => Error3$outboundSchema),
|
|
1264
|
+
z.lazy(() => Error1$outboundSchema),
|
|
1265
|
+
z.lazy(() => Error4$outboundSchema),
|
|
1266
|
+
]).optional(),
|
|
1267
|
+
});
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* @internal
|
|
1271
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1272
|
+
*/
|
|
1273
|
+
export namespace GetOrderResponseBody$ {
|
|
1274
|
+
/** @deprecated use `GetOrderResponseBody$inboundSchema` instead. */
|
|
1275
|
+
export const inboundSchema = GetOrderResponseBody$inboundSchema;
|
|
1276
|
+
/** @deprecated use `GetOrderResponseBody$outboundSchema` instead. */
|
|
1277
|
+
export const outboundSchema = GetOrderResponseBody$outboundSchema;
|
|
1278
|
+
/** @deprecated use `GetOrderResponseBody$Outbound` instead. */
|
|
1279
|
+
export type Outbound = GetOrderResponseBody$Outbound;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
export function getOrderResponseBodyToJSON(
|
|
1283
|
+
getOrderResponseBody: GetOrderResponseBody,
|
|
1284
|
+
): string {
|
|
1285
|
+
return JSON.stringify(
|
|
1286
|
+
GetOrderResponseBody$outboundSchema.parse(getOrderResponseBody),
|
|
1287
|
+
);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
export function getOrderResponseBodyFromJSON(
|
|
1291
|
+
jsonString: string,
|
|
1292
|
+
): SafeParseResult<GetOrderResponseBody, SDKValidationError> {
|
|
1293
|
+
return safeParse(
|
|
1294
|
+
jsonString,
|
|
1295
|
+
(x) => GetOrderResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1296
|
+
`Failed to parse 'GetOrderResponseBody' from JSON`,
|
|
1297
|
+
);
|
|
1298
|
+
}
|