@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,566 @@
|
|
|
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 TransferInDomainContactInformation = {
|
|
31
|
+
/**
|
|
32
|
+
* a non empty string
|
|
33
|
+
*/
|
|
34
|
+
firstName: string;
|
|
35
|
+
/**
|
|
36
|
+
* a non empty string
|
|
37
|
+
*/
|
|
38
|
+
lastName: string;
|
|
39
|
+
/**
|
|
40
|
+
* a non empty string
|
|
41
|
+
*/
|
|
42
|
+
email: string;
|
|
43
|
+
/**
|
|
44
|
+
* A valid E.164 phone number
|
|
45
|
+
*/
|
|
46
|
+
phone: string;
|
|
47
|
+
/**
|
|
48
|
+
* a non empty string
|
|
49
|
+
*/
|
|
50
|
+
address1: string;
|
|
51
|
+
/**
|
|
52
|
+
* a non empty string
|
|
53
|
+
*/
|
|
54
|
+
address2?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* a non empty string
|
|
57
|
+
*/
|
|
58
|
+
city: string;
|
|
59
|
+
/**
|
|
60
|
+
* a non empty string
|
|
61
|
+
*/
|
|
62
|
+
state: string;
|
|
63
|
+
/**
|
|
64
|
+
* a non empty string
|
|
65
|
+
*/
|
|
66
|
+
zip: string;
|
|
67
|
+
/**
|
|
68
|
+
* A valid ISO 3166-1 alpha-2 country code
|
|
69
|
+
*/
|
|
70
|
+
country: string;
|
|
71
|
+
/**
|
|
72
|
+
* a non empty string
|
|
73
|
+
*/
|
|
74
|
+
companyName?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* A valid E.164 phone number
|
|
77
|
+
*/
|
|
78
|
+
fax?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type TransferInDomainRequestBody = {
|
|
82
|
+
authCode: string;
|
|
83
|
+
autoRenew: boolean;
|
|
84
|
+
years: number;
|
|
85
|
+
/**
|
|
86
|
+
* Represents a monetary amount in USD dollars
|
|
87
|
+
*/
|
|
88
|
+
expectedPrice: number;
|
|
89
|
+
contactInformation: TransferInDomainContactInformation;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export type TransferInDomainRequest = {
|
|
93
|
+
domain: string;
|
|
94
|
+
requestBody: TransferInDomainRequestBody;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Unauthorized
|
|
99
|
+
*/
|
|
100
|
+
export type TransferInDomainDomainsRegistrarResponseBody =
|
|
101
|
+
| Unauthorized
|
|
102
|
+
| NotAuthorizedForScope
|
|
103
|
+
| InternalServerError;
|
|
104
|
+
|
|
105
|
+
export const TransferInDomainMethod = {
|
|
106
|
+
Get: "GET",
|
|
107
|
+
} as const;
|
|
108
|
+
export type TransferInDomainMethod = ClosedEnum<typeof TransferInDomainMethod>;
|
|
109
|
+
|
|
110
|
+
export type TransferInDomainLinks = {
|
|
111
|
+
href: string;
|
|
112
|
+
method: TransferInDomainMethod;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Success
|
|
117
|
+
*/
|
|
118
|
+
export type TransferInDomainResponseBody = {
|
|
119
|
+
orderId: string;
|
|
120
|
+
links: { [k: string]: TransferInDomainLinks };
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const TransferInDomainContactInformation$inboundSchema: z.ZodType<
|
|
125
|
+
TransferInDomainContactInformation,
|
|
126
|
+
z.ZodTypeDef,
|
|
127
|
+
unknown
|
|
128
|
+
> = z.object({
|
|
129
|
+
firstName: z.string(),
|
|
130
|
+
lastName: z.string(),
|
|
131
|
+
email: z.string(),
|
|
132
|
+
phone: z.string(),
|
|
133
|
+
address1: z.string(),
|
|
134
|
+
address2: z.string().optional(),
|
|
135
|
+
city: z.string(),
|
|
136
|
+
state: z.string(),
|
|
137
|
+
zip: z.string(),
|
|
138
|
+
country: z.string(),
|
|
139
|
+
companyName: z.string().optional(),
|
|
140
|
+
fax: z.string().optional(),
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export type TransferInDomainContactInformation$Outbound = {
|
|
145
|
+
firstName: string;
|
|
146
|
+
lastName: string;
|
|
147
|
+
email: string;
|
|
148
|
+
phone: string;
|
|
149
|
+
address1: string;
|
|
150
|
+
address2?: string | undefined;
|
|
151
|
+
city: string;
|
|
152
|
+
state: string;
|
|
153
|
+
zip: string;
|
|
154
|
+
country: string;
|
|
155
|
+
companyName?: string | undefined;
|
|
156
|
+
fax?: string | undefined;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const TransferInDomainContactInformation$outboundSchema: z.ZodType<
|
|
161
|
+
TransferInDomainContactInformation$Outbound,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
TransferInDomainContactInformation
|
|
164
|
+
> = z.object({
|
|
165
|
+
firstName: z.string(),
|
|
166
|
+
lastName: z.string(),
|
|
167
|
+
email: z.string(),
|
|
168
|
+
phone: z.string(),
|
|
169
|
+
address1: z.string(),
|
|
170
|
+
address2: z.string().optional(),
|
|
171
|
+
city: z.string(),
|
|
172
|
+
state: z.string(),
|
|
173
|
+
zip: z.string(),
|
|
174
|
+
country: z.string(),
|
|
175
|
+
companyName: z.string().optional(),
|
|
176
|
+
fax: z.string().optional(),
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
182
|
+
*/
|
|
183
|
+
export namespace TransferInDomainContactInformation$ {
|
|
184
|
+
/** @deprecated use `TransferInDomainContactInformation$inboundSchema` instead. */
|
|
185
|
+
export const inboundSchema = TransferInDomainContactInformation$inboundSchema;
|
|
186
|
+
/** @deprecated use `TransferInDomainContactInformation$outboundSchema` instead. */
|
|
187
|
+
export const outboundSchema =
|
|
188
|
+
TransferInDomainContactInformation$outboundSchema;
|
|
189
|
+
/** @deprecated use `TransferInDomainContactInformation$Outbound` instead. */
|
|
190
|
+
export type Outbound = TransferInDomainContactInformation$Outbound;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function transferInDomainContactInformationToJSON(
|
|
194
|
+
transferInDomainContactInformation: TransferInDomainContactInformation,
|
|
195
|
+
): string {
|
|
196
|
+
return JSON.stringify(
|
|
197
|
+
TransferInDomainContactInformation$outboundSchema.parse(
|
|
198
|
+
transferInDomainContactInformation,
|
|
199
|
+
),
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export function transferInDomainContactInformationFromJSON(
|
|
204
|
+
jsonString: string,
|
|
205
|
+
): SafeParseResult<TransferInDomainContactInformation, SDKValidationError> {
|
|
206
|
+
return safeParse(
|
|
207
|
+
jsonString,
|
|
208
|
+
(x) =>
|
|
209
|
+
TransferInDomainContactInformation$inboundSchema.parse(JSON.parse(x)),
|
|
210
|
+
`Failed to parse 'TransferInDomainContactInformation' from JSON`,
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export const TransferInDomainRequestBody$inboundSchema: z.ZodType<
|
|
216
|
+
TransferInDomainRequestBody,
|
|
217
|
+
z.ZodTypeDef,
|
|
218
|
+
unknown
|
|
219
|
+
> = z.object({
|
|
220
|
+
authCode: z.string(),
|
|
221
|
+
autoRenew: z.boolean(),
|
|
222
|
+
years: z.number(),
|
|
223
|
+
expectedPrice: z.number(),
|
|
224
|
+
contactInformation: z.lazy(() =>
|
|
225
|
+
TransferInDomainContactInformation$inboundSchema
|
|
226
|
+
),
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
/** @internal */
|
|
230
|
+
export type TransferInDomainRequestBody$Outbound = {
|
|
231
|
+
authCode: string;
|
|
232
|
+
autoRenew: boolean;
|
|
233
|
+
years: number;
|
|
234
|
+
expectedPrice: number;
|
|
235
|
+
contactInformation: TransferInDomainContactInformation$Outbound;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/** @internal */
|
|
239
|
+
export const TransferInDomainRequestBody$outboundSchema: z.ZodType<
|
|
240
|
+
TransferInDomainRequestBody$Outbound,
|
|
241
|
+
z.ZodTypeDef,
|
|
242
|
+
TransferInDomainRequestBody
|
|
243
|
+
> = z.object({
|
|
244
|
+
authCode: z.string(),
|
|
245
|
+
autoRenew: z.boolean(),
|
|
246
|
+
years: z.number(),
|
|
247
|
+
expectedPrice: z.number(),
|
|
248
|
+
contactInformation: z.lazy(() =>
|
|
249
|
+
TransferInDomainContactInformation$outboundSchema
|
|
250
|
+
),
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @internal
|
|
255
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
256
|
+
*/
|
|
257
|
+
export namespace TransferInDomainRequestBody$ {
|
|
258
|
+
/** @deprecated use `TransferInDomainRequestBody$inboundSchema` instead. */
|
|
259
|
+
export const inboundSchema = TransferInDomainRequestBody$inboundSchema;
|
|
260
|
+
/** @deprecated use `TransferInDomainRequestBody$outboundSchema` instead. */
|
|
261
|
+
export const outboundSchema = TransferInDomainRequestBody$outboundSchema;
|
|
262
|
+
/** @deprecated use `TransferInDomainRequestBody$Outbound` instead. */
|
|
263
|
+
export type Outbound = TransferInDomainRequestBody$Outbound;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export function transferInDomainRequestBodyToJSON(
|
|
267
|
+
transferInDomainRequestBody: TransferInDomainRequestBody,
|
|
268
|
+
): string {
|
|
269
|
+
return JSON.stringify(
|
|
270
|
+
TransferInDomainRequestBody$outboundSchema.parse(
|
|
271
|
+
transferInDomainRequestBody,
|
|
272
|
+
),
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export function transferInDomainRequestBodyFromJSON(
|
|
277
|
+
jsonString: string,
|
|
278
|
+
): SafeParseResult<TransferInDomainRequestBody, SDKValidationError> {
|
|
279
|
+
return safeParse(
|
|
280
|
+
jsonString,
|
|
281
|
+
(x) => TransferInDomainRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
282
|
+
`Failed to parse 'TransferInDomainRequestBody' from JSON`,
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** @internal */
|
|
287
|
+
export const TransferInDomainRequest$inboundSchema: z.ZodType<
|
|
288
|
+
TransferInDomainRequest,
|
|
289
|
+
z.ZodTypeDef,
|
|
290
|
+
unknown
|
|
291
|
+
> = z.object({
|
|
292
|
+
domain: z.string(),
|
|
293
|
+
RequestBody: z.lazy(() => TransferInDomainRequestBody$inboundSchema),
|
|
294
|
+
}).transform((v) => {
|
|
295
|
+
return remap$(v, {
|
|
296
|
+
"RequestBody": "requestBody",
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
/** @internal */
|
|
301
|
+
export type TransferInDomainRequest$Outbound = {
|
|
302
|
+
domain: string;
|
|
303
|
+
RequestBody: TransferInDomainRequestBody$Outbound;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
/** @internal */
|
|
307
|
+
export const TransferInDomainRequest$outboundSchema: z.ZodType<
|
|
308
|
+
TransferInDomainRequest$Outbound,
|
|
309
|
+
z.ZodTypeDef,
|
|
310
|
+
TransferInDomainRequest
|
|
311
|
+
> = z.object({
|
|
312
|
+
domain: z.string(),
|
|
313
|
+
requestBody: z.lazy(() => TransferInDomainRequestBody$outboundSchema),
|
|
314
|
+
}).transform((v) => {
|
|
315
|
+
return remap$(v, {
|
|
316
|
+
requestBody: "RequestBody",
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
323
|
+
*/
|
|
324
|
+
export namespace TransferInDomainRequest$ {
|
|
325
|
+
/** @deprecated use `TransferInDomainRequest$inboundSchema` instead. */
|
|
326
|
+
export const inboundSchema = TransferInDomainRequest$inboundSchema;
|
|
327
|
+
/** @deprecated use `TransferInDomainRequest$outboundSchema` instead. */
|
|
328
|
+
export const outboundSchema = TransferInDomainRequest$outboundSchema;
|
|
329
|
+
/** @deprecated use `TransferInDomainRequest$Outbound` instead. */
|
|
330
|
+
export type Outbound = TransferInDomainRequest$Outbound;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export function transferInDomainRequestToJSON(
|
|
334
|
+
transferInDomainRequest: TransferInDomainRequest,
|
|
335
|
+
): string {
|
|
336
|
+
return JSON.stringify(
|
|
337
|
+
TransferInDomainRequest$outboundSchema.parse(transferInDomainRequest),
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export function transferInDomainRequestFromJSON(
|
|
342
|
+
jsonString: string,
|
|
343
|
+
): SafeParseResult<TransferInDomainRequest, SDKValidationError> {
|
|
344
|
+
return safeParse(
|
|
345
|
+
jsonString,
|
|
346
|
+
(x) => TransferInDomainRequest$inboundSchema.parse(JSON.parse(x)),
|
|
347
|
+
`Failed to parse 'TransferInDomainRequest' from JSON`,
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/** @internal */
|
|
352
|
+
export const TransferInDomainDomainsRegistrarResponseBody$inboundSchema:
|
|
353
|
+
z.ZodType<
|
|
354
|
+
TransferInDomainDomainsRegistrarResponseBody,
|
|
355
|
+
z.ZodTypeDef,
|
|
356
|
+
unknown
|
|
357
|
+
> = z.union([
|
|
358
|
+
Unauthorized$inboundSchema,
|
|
359
|
+
NotAuthorizedForScope$inboundSchema,
|
|
360
|
+
InternalServerError$inboundSchema,
|
|
361
|
+
]);
|
|
362
|
+
|
|
363
|
+
/** @internal */
|
|
364
|
+
export type TransferInDomainDomainsRegistrarResponseBody$Outbound =
|
|
365
|
+
| Unauthorized$Outbound
|
|
366
|
+
| NotAuthorizedForScope$Outbound
|
|
367
|
+
| InternalServerError$Outbound;
|
|
368
|
+
|
|
369
|
+
/** @internal */
|
|
370
|
+
export const TransferInDomainDomainsRegistrarResponseBody$outboundSchema:
|
|
371
|
+
z.ZodType<
|
|
372
|
+
TransferInDomainDomainsRegistrarResponseBody$Outbound,
|
|
373
|
+
z.ZodTypeDef,
|
|
374
|
+
TransferInDomainDomainsRegistrarResponseBody
|
|
375
|
+
> = z.union([
|
|
376
|
+
Unauthorized$outboundSchema,
|
|
377
|
+
NotAuthorizedForScope$outboundSchema,
|
|
378
|
+
InternalServerError$outboundSchema,
|
|
379
|
+
]);
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @internal
|
|
383
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
384
|
+
*/
|
|
385
|
+
export namespace TransferInDomainDomainsRegistrarResponseBody$ {
|
|
386
|
+
/** @deprecated use `TransferInDomainDomainsRegistrarResponseBody$inboundSchema` instead. */
|
|
387
|
+
export const inboundSchema =
|
|
388
|
+
TransferInDomainDomainsRegistrarResponseBody$inboundSchema;
|
|
389
|
+
/** @deprecated use `TransferInDomainDomainsRegistrarResponseBody$outboundSchema` instead. */
|
|
390
|
+
export const outboundSchema =
|
|
391
|
+
TransferInDomainDomainsRegistrarResponseBody$outboundSchema;
|
|
392
|
+
/** @deprecated use `TransferInDomainDomainsRegistrarResponseBody$Outbound` instead. */
|
|
393
|
+
export type Outbound = TransferInDomainDomainsRegistrarResponseBody$Outbound;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export function transferInDomainDomainsRegistrarResponseBodyToJSON(
|
|
397
|
+
transferInDomainDomainsRegistrarResponseBody:
|
|
398
|
+
TransferInDomainDomainsRegistrarResponseBody,
|
|
399
|
+
): string {
|
|
400
|
+
return JSON.stringify(
|
|
401
|
+
TransferInDomainDomainsRegistrarResponseBody$outboundSchema.parse(
|
|
402
|
+
transferInDomainDomainsRegistrarResponseBody,
|
|
403
|
+
),
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export function transferInDomainDomainsRegistrarResponseBodyFromJSON(
|
|
408
|
+
jsonString: string,
|
|
409
|
+
): SafeParseResult<
|
|
410
|
+
TransferInDomainDomainsRegistrarResponseBody,
|
|
411
|
+
SDKValidationError
|
|
412
|
+
> {
|
|
413
|
+
return safeParse(
|
|
414
|
+
jsonString,
|
|
415
|
+
(x) =>
|
|
416
|
+
TransferInDomainDomainsRegistrarResponseBody$inboundSchema.parse(
|
|
417
|
+
JSON.parse(x),
|
|
418
|
+
),
|
|
419
|
+
`Failed to parse 'TransferInDomainDomainsRegistrarResponseBody' from JSON`,
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/** @internal */
|
|
424
|
+
export const TransferInDomainMethod$inboundSchema: z.ZodNativeEnum<
|
|
425
|
+
typeof TransferInDomainMethod
|
|
426
|
+
> = z.nativeEnum(TransferInDomainMethod);
|
|
427
|
+
|
|
428
|
+
/** @internal */
|
|
429
|
+
export const TransferInDomainMethod$outboundSchema: z.ZodNativeEnum<
|
|
430
|
+
typeof TransferInDomainMethod
|
|
431
|
+
> = TransferInDomainMethod$inboundSchema;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @internal
|
|
435
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
436
|
+
*/
|
|
437
|
+
export namespace TransferInDomainMethod$ {
|
|
438
|
+
/** @deprecated use `TransferInDomainMethod$inboundSchema` instead. */
|
|
439
|
+
export const inboundSchema = TransferInDomainMethod$inboundSchema;
|
|
440
|
+
/** @deprecated use `TransferInDomainMethod$outboundSchema` instead. */
|
|
441
|
+
export const outboundSchema = TransferInDomainMethod$outboundSchema;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/** @internal */
|
|
445
|
+
export const TransferInDomainLinks$inboundSchema: z.ZodType<
|
|
446
|
+
TransferInDomainLinks,
|
|
447
|
+
z.ZodTypeDef,
|
|
448
|
+
unknown
|
|
449
|
+
> = z.object({
|
|
450
|
+
href: z.string(),
|
|
451
|
+
method: TransferInDomainMethod$inboundSchema,
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
/** @internal */
|
|
455
|
+
export type TransferInDomainLinks$Outbound = {
|
|
456
|
+
href: string;
|
|
457
|
+
method: string;
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
/** @internal */
|
|
461
|
+
export const TransferInDomainLinks$outboundSchema: z.ZodType<
|
|
462
|
+
TransferInDomainLinks$Outbound,
|
|
463
|
+
z.ZodTypeDef,
|
|
464
|
+
TransferInDomainLinks
|
|
465
|
+
> = z.object({
|
|
466
|
+
href: z.string(),
|
|
467
|
+
method: TransferInDomainMethod$outboundSchema,
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* @internal
|
|
472
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
473
|
+
*/
|
|
474
|
+
export namespace TransferInDomainLinks$ {
|
|
475
|
+
/** @deprecated use `TransferInDomainLinks$inboundSchema` instead. */
|
|
476
|
+
export const inboundSchema = TransferInDomainLinks$inboundSchema;
|
|
477
|
+
/** @deprecated use `TransferInDomainLinks$outboundSchema` instead. */
|
|
478
|
+
export const outboundSchema = TransferInDomainLinks$outboundSchema;
|
|
479
|
+
/** @deprecated use `TransferInDomainLinks$Outbound` instead. */
|
|
480
|
+
export type Outbound = TransferInDomainLinks$Outbound;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export function transferInDomainLinksToJSON(
|
|
484
|
+
transferInDomainLinks: TransferInDomainLinks,
|
|
485
|
+
): string {
|
|
486
|
+
return JSON.stringify(
|
|
487
|
+
TransferInDomainLinks$outboundSchema.parse(transferInDomainLinks),
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export function transferInDomainLinksFromJSON(
|
|
492
|
+
jsonString: string,
|
|
493
|
+
): SafeParseResult<TransferInDomainLinks, SDKValidationError> {
|
|
494
|
+
return safeParse(
|
|
495
|
+
jsonString,
|
|
496
|
+
(x) => TransferInDomainLinks$inboundSchema.parse(JSON.parse(x)),
|
|
497
|
+
`Failed to parse 'TransferInDomainLinks' from JSON`,
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** @internal */
|
|
502
|
+
export const TransferInDomainResponseBody$inboundSchema: z.ZodType<
|
|
503
|
+
TransferInDomainResponseBody,
|
|
504
|
+
z.ZodTypeDef,
|
|
505
|
+
unknown
|
|
506
|
+
> = z.object({
|
|
507
|
+
orderId: z.string(),
|
|
508
|
+
_links: z.record(z.lazy(() => TransferInDomainLinks$inboundSchema)),
|
|
509
|
+
}).transform((v) => {
|
|
510
|
+
return remap$(v, {
|
|
511
|
+
"_links": "links",
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
|
|
515
|
+
/** @internal */
|
|
516
|
+
export type TransferInDomainResponseBody$Outbound = {
|
|
517
|
+
orderId: string;
|
|
518
|
+
_links: { [k: string]: TransferInDomainLinks$Outbound };
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
/** @internal */
|
|
522
|
+
export const TransferInDomainResponseBody$outboundSchema: z.ZodType<
|
|
523
|
+
TransferInDomainResponseBody$Outbound,
|
|
524
|
+
z.ZodTypeDef,
|
|
525
|
+
TransferInDomainResponseBody
|
|
526
|
+
> = z.object({
|
|
527
|
+
orderId: z.string(),
|
|
528
|
+
links: z.record(z.lazy(() => TransferInDomainLinks$outboundSchema)),
|
|
529
|
+
}).transform((v) => {
|
|
530
|
+
return remap$(v, {
|
|
531
|
+
links: "_links",
|
|
532
|
+
});
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @internal
|
|
537
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
538
|
+
*/
|
|
539
|
+
export namespace TransferInDomainResponseBody$ {
|
|
540
|
+
/** @deprecated use `TransferInDomainResponseBody$inboundSchema` instead. */
|
|
541
|
+
export const inboundSchema = TransferInDomainResponseBody$inboundSchema;
|
|
542
|
+
/** @deprecated use `TransferInDomainResponseBody$outboundSchema` instead. */
|
|
543
|
+
export const outboundSchema = TransferInDomainResponseBody$outboundSchema;
|
|
544
|
+
/** @deprecated use `TransferInDomainResponseBody$Outbound` instead. */
|
|
545
|
+
export type Outbound = TransferInDomainResponseBody$Outbound;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export function transferInDomainResponseBodyToJSON(
|
|
549
|
+
transferInDomainResponseBody: TransferInDomainResponseBody,
|
|
550
|
+
): string {
|
|
551
|
+
return JSON.stringify(
|
|
552
|
+
TransferInDomainResponseBody$outboundSchema.parse(
|
|
553
|
+
transferInDomainResponseBody,
|
|
554
|
+
),
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export function transferInDomainResponseBodyFromJSON(
|
|
559
|
+
jsonString: string,
|
|
560
|
+
): SafeParseResult<TransferInDomainResponseBody, SDKValidationError> {
|
|
561
|
+
return safeParse(
|
|
562
|
+
jsonString,
|
|
563
|
+
(x) => TransferInDomainResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
564
|
+
`Failed to parse 'TransferInDomainResponseBody' from JSON`,
|
|
565
|
+
);
|
|
566
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { VercelError } from "./vercelerror.js";
|
|
9
|
+
|
|
10
|
+
export const Code = {
|
|
11
|
+
Unauthorized: "unauthorized",
|
|
12
|
+
} as const;
|
|
13
|
+
export type Code = ClosedEnum<typeof Code>;
|
|
14
|
+
|
|
15
|
+
export const Tag = {
|
|
16
|
+
Unauthorized: "Unauthorized",
|
|
17
|
+
} as const;
|
|
18
|
+
export type Tag = ClosedEnum<typeof Tag>;
|
|
19
|
+
|
|
20
|
+
export type UnauthorizedData = {
|
|
21
|
+
status: number;
|
|
22
|
+
code: Code;
|
|
23
|
+
message: string;
|
|
24
|
+
tag: Tag;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export class Unauthorized extends VercelError {
|
|
28
|
+
status: number;
|
|
29
|
+
code: Code;
|
|
30
|
+
tag: Tag;
|
|
31
|
+
|
|
32
|
+
/** The original data that was passed to this error instance. */
|
|
33
|
+
data$: UnauthorizedData;
|
|
34
|
+
|
|
35
|
+
constructor(
|
|
36
|
+
err: UnauthorizedData,
|
|
37
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
38
|
+
) {
|
|
39
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
40
|
+
super(message, httpMeta);
|
|
41
|
+
this.data$ = err;
|
|
42
|
+
this.status = err.status;
|
|
43
|
+
this.code = err.code;
|
|
44
|
+
this.tag = err.tag;
|
|
45
|
+
|
|
46
|
+
this.name = "Unauthorized";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const Code$inboundSchema: z.ZodNativeEnum<typeof Code> = z.nativeEnum(
|
|
52
|
+
Code,
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const Code$outboundSchema: z.ZodNativeEnum<typeof Code> =
|
|
57
|
+
Code$inboundSchema;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace Code$ {
|
|
64
|
+
/** @deprecated use `Code$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema = Code$inboundSchema;
|
|
66
|
+
/** @deprecated use `Code$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema = Code$outboundSchema;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const Tag$inboundSchema: z.ZodNativeEnum<typeof Tag> = z.nativeEnum(Tag);
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const Tag$outboundSchema: z.ZodNativeEnum<typeof Tag> =
|
|
75
|
+
Tag$inboundSchema;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace Tag$ {
|
|
82
|
+
/** @deprecated use `Tag$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema = Tag$inboundSchema;
|
|
84
|
+
/** @deprecated use `Tag$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema = Tag$outboundSchema;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const Unauthorized$inboundSchema: z.ZodType<
|
|
90
|
+
Unauthorized,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
unknown
|
|
93
|
+
> = z.object({
|
|
94
|
+
status: z.number(),
|
|
95
|
+
code: Code$inboundSchema,
|
|
96
|
+
message: z.string(),
|
|
97
|
+
_tag: Tag$inboundSchema,
|
|
98
|
+
request$: z.instanceof(Request),
|
|
99
|
+
response$: z.instanceof(Response),
|
|
100
|
+
body$: z.string(),
|
|
101
|
+
})
|
|
102
|
+
.transform((v) => {
|
|
103
|
+
const remapped = remap$(v, {
|
|
104
|
+
"_tag": "tag",
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
return new Unauthorized(remapped, {
|
|
108
|
+
request: v.request$,
|
|
109
|
+
response: v.response$,
|
|
110
|
+
body: v.body$,
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type Unauthorized$Outbound = {
|
|
116
|
+
status: number;
|
|
117
|
+
code: string;
|
|
118
|
+
message: string;
|
|
119
|
+
_tag: string;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const Unauthorized$outboundSchema: z.ZodType<
|
|
124
|
+
Unauthorized$Outbound,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
Unauthorized
|
|
127
|
+
> = z.instanceof(Unauthorized)
|
|
128
|
+
.transform(v => v.data$)
|
|
129
|
+
.pipe(
|
|
130
|
+
z.object({
|
|
131
|
+
status: z.number(),
|
|
132
|
+
code: Code$outboundSchema,
|
|
133
|
+
message: z.string(),
|
|
134
|
+
tag: Tag$outboundSchema,
|
|
135
|
+
}).transform((v) => {
|
|
136
|
+
return remap$(v, {
|
|
137
|
+
tag: "_tag",
|
|
138
|
+
});
|
|
139
|
+
}),
|
|
140
|
+
);
|
|
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 Unauthorized$ {
|
|
147
|
+
/** @deprecated use `Unauthorized$inboundSchema` instead. */
|
|
148
|
+
export const inboundSchema = Unauthorized$inboundSchema;
|
|
149
|
+
/** @deprecated use `Unauthorized$outboundSchema` instead. */
|
|
150
|
+
export const outboundSchema = Unauthorized$outboundSchema;
|
|
151
|
+
/** @deprecated use `Unauthorized$Outbound` instead. */
|
|
152
|
+
export type Outbound = Unauthorized$Outbound;
|
|
153
|
+
}
|