@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,95 @@
|
|
|
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 { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import {
|
|
9
|
+
InternalServerError,
|
|
10
|
+
InternalServerError$inboundSchema,
|
|
11
|
+
InternalServerError$Outbound,
|
|
12
|
+
InternalServerError$outboundSchema,
|
|
13
|
+
} from "./internalservererror.js";
|
|
14
|
+
import {
|
|
15
|
+
NotAuthorizedForScope,
|
|
16
|
+
NotAuthorizedForScope$inboundSchema,
|
|
17
|
+
NotAuthorizedForScope$Outbound,
|
|
18
|
+
NotAuthorizedForScope$outboundSchema,
|
|
19
|
+
} from "./notauthorizedforscope.js";
|
|
20
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
Unauthorized,
|
|
23
|
+
Unauthorized$inboundSchema,
|
|
24
|
+
Unauthorized$Outbound,
|
|
25
|
+
Unauthorized$outboundSchema,
|
|
26
|
+
} from "./unauthorized.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Unauthorized
|
|
30
|
+
*/
|
|
31
|
+
export type GetSupportedTldsResponseBody =
|
|
32
|
+
| Unauthorized
|
|
33
|
+
| NotAuthorizedForScope
|
|
34
|
+
| InternalServerError;
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const GetSupportedTldsResponseBody$inboundSchema: z.ZodType<
|
|
38
|
+
GetSupportedTldsResponseBody,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.union([
|
|
42
|
+
Unauthorized$inboundSchema,
|
|
43
|
+
NotAuthorizedForScope$inboundSchema,
|
|
44
|
+
InternalServerError$inboundSchema,
|
|
45
|
+
]);
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type GetSupportedTldsResponseBody$Outbound =
|
|
49
|
+
| Unauthorized$Outbound
|
|
50
|
+
| NotAuthorizedForScope$Outbound
|
|
51
|
+
| InternalServerError$Outbound;
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const GetSupportedTldsResponseBody$outboundSchema: z.ZodType<
|
|
55
|
+
GetSupportedTldsResponseBody$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
GetSupportedTldsResponseBody
|
|
58
|
+
> = z.union([
|
|
59
|
+
Unauthorized$outboundSchema,
|
|
60
|
+
NotAuthorizedForScope$outboundSchema,
|
|
61
|
+
InternalServerError$outboundSchema,
|
|
62
|
+
]);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace GetSupportedTldsResponseBody$ {
|
|
69
|
+
/** @deprecated use `GetSupportedTldsResponseBody$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = GetSupportedTldsResponseBody$inboundSchema;
|
|
71
|
+
/** @deprecated use `GetSupportedTldsResponseBody$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = GetSupportedTldsResponseBody$outboundSchema;
|
|
73
|
+
/** @deprecated use `GetSupportedTldsResponseBody$Outbound` instead. */
|
|
74
|
+
export type Outbound = GetSupportedTldsResponseBody$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function getSupportedTldsResponseBodyToJSON(
|
|
78
|
+
getSupportedTldsResponseBody: GetSupportedTldsResponseBody,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
GetSupportedTldsResponseBody$outboundSchema.parse(
|
|
82
|
+
getSupportedTldsResponseBody,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function getSupportedTldsResponseBodyFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<GetSupportedTldsResponseBody, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => GetSupportedTldsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'GetSupportedTldsResponseBody' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
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 { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import {
|
|
9
|
+
InternalServerError,
|
|
10
|
+
InternalServerError$inboundSchema,
|
|
11
|
+
InternalServerError$Outbound,
|
|
12
|
+
InternalServerError$outboundSchema,
|
|
13
|
+
} from "./internalservererror.js";
|
|
14
|
+
import {
|
|
15
|
+
NotAuthorizedForScope,
|
|
16
|
+
NotAuthorizedForScope$inboundSchema,
|
|
17
|
+
NotAuthorizedForScope$Outbound,
|
|
18
|
+
NotAuthorizedForScope$outboundSchema,
|
|
19
|
+
} from "./notauthorizedforscope.js";
|
|
20
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
Unauthorized,
|
|
23
|
+
Unauthorized$inboundSchema,
|
|
24
|
+
Unauthorized$Outbound,
|
|
25
|
+
Unauthorized$outboundSchema,
|
|
26
|
+
} from "./unauthorized.js";
|
|
27
|
+
|
|
28
|
+
export type GetTldPriceRequest = {
|
|
29
|
+
tld: string;
|
|
30
|
+
years?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Unauthorized
|
|
35
|
+
*/
|
|
36
|
+
export type GetTldPriceDomainsRegistrarResponseBody =
|
|
37
|
+
| Unauthorized
|
|
38
|
+
| NotAuthorizedForScope
|
|
39
|
+
| InternalServerError;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Success
|
|
43
|
+
*/
|
|
44
|
+
export type GetTldPriceResponseBody = {
|
|
45
|
+
years: number;
|
|
46
|
+
/**
|
|
47
|
+
* Represents a monetary amount in USD dollars
|
|
48
|
+
*/
|
|
49
|
+
purchasePrice: number;
|
|
50
|
+
/**
|
|
51
|
+
* Represents a monetary amount in USD dollars
|
|
52
|
+
*/
|
|
53
|
+
renewalPrice: number;
|
|
54
|
+
/**
|
|
55
|
+
* Represents a monetary amount in USD dollars
|
|
56
|
+
*/
|
|
57
|
+
transferPrice: number;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const GetTldPriceRequest$inboundSchema: z.ZodType<
|
|
62
|
+
GetTldPriceRequest,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
tld: z.string(),
|
|
67
|
+
years: z.string().optional(),
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type GetTldPriceRequest$Outbound = {
|
|
72
|
+
tld: string;
|
|
73
|
+
years?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const GetTldPriceRequest$outboundSchema: z.ZodType<
|
|
78
|
+
GetTldPriceRequest$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
GetTldPriceRequest
|
|
81
|
+
> = z.object({
|
|
82
|
+
tld: z.string(),
|
|
83
|
+
years: z.string().optional(),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
+
*/
|
|
90
|
+
export namespace GetTldPriceRequest$ {
|
|
91
|
+
/** @deprecated use `GetTldPriceRequest$inboundSchema` instead. */
|
|
92
|
+
export const inboundSchema = GetTldPriceRequest$inboundSchema;
|
|
93
|
+
/** @deprecated use `GetTldPriceRequest$outboundSchema` instead. */
|
|
94
|
+
export const outboundSchema = GetTldPriceRequest$outboundSchema;
|
|
95
|
+
/** @deprecated use `GetTldPriceRequest$Outbound` instead. */
|
|
96
|
+
export type Outbound = GetTldPriceRequest$Outbound;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function getTldPriceRequestToJSON(
|
|
100
|
+
getTldPriceRequest: GetTldPriceRequest,
|
|
101
|
+
): string {
|
|
102
|
+
return JSON.stringify(
|
|
103
|
+
GetTldPriceRequest$outboundSchema.parse(getTldPriceRequest),
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function getTldPriceRequestFromJSON(
|
|
108
|
+
jsonString: string,
|
|
109
|
+
): SafeParseResult<GetTldPriceRequest, SDKValidationError> {
|
|
110
|
+
return safeParse(
|
|
111
|
+
jsonString,
|
|
112
|
+
(x) => GetTldPriceRequest$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
+
`Failed to parse 'GetTldPriceRequest' from JSON`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const GetTldPriceDomainsRegistrarResponseBody$inboundSchema: z.ZodType<
|
|
119
|
+
GetTldPriceDomainsRegistrarResponseBody,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
unknown
|
|
122
|
+
> = z.union([
|
|
123
|
+
Unauthorized$inboundSchema,
|
|
124
|
+
NotAuthorizedForScope$inboundSchema,
|
|
125
|
+
InternalServerError$inboundSchema,
|
|
126
|
+
]);
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export type GetTldPriceDomainsRegistrarResponseBody$Outbound =
|
|
130
|
+
| Unauthorized$Outbound
|
|
131
|
+
| NotAuthorizedForScope$Outbound
|
|
132
|
+
| InternalServerError$Outbound;
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const GetTldPriceDomainsRegistrarResponseBody$outboundSchema: z.ZodType<
|
|
136
|
+
GetTldPriceDomainsRegistrarResponseBody$Outbound,
|
|
137
|
+
z.ZodTypeDef,
|
|
138
|
+
GetTldPriceDomainsRegistrarResponseBody
|
|
139
|
+
> = z.union([
|
|
140
|
+
Unauthorized$outboundSchema,
|
|
141
|
+
NotAuthorizedForScope$outboundSchema,
|
|
142
|
+
InternalServerError$outboundSchema,
|
|
143
|
+
]);
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
148
|
+
*/
|
|
149
|
+
export namespace GetTldPriceDomainsRegistrarResponseBody$ {
|
|
150
|
+
/** @deprecated use `GetTldPriceDomainsRegistrarResponseBody$inboundSchema` instead. */
|
|
151
|
+
export const inboundSchema =
|
|
152
|
+
GetTldPriceDomainsRegistrarResponseBody$inboundSchema;
|
|
153
|
+
/** @deprecated use `GetTldPriceDomainsRegistrarResponseBody$outboundSchema` instead. */
|
|
154
|
+
export const outboundSchema =
|
|
155
|
+
GetTldPriceDomainsRegistrarResponseBody$outboundSchema;
|
|
156
|
+
/** @deprecated use `GetTldPriceDomainsRegistrarResponseBody$Outbound` instead. */
|
|
157
|
+
export type Outbound = GetTldPriceDomainsRegistrarResponseBody$Outbound;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function getTldPriceDomainsRegistrarResponseBodyToJSON(
|
|
161
|
+
getTldPriceDomainsRegistrarResponseBody:
|
|
162
|
+
GetTldPriceDomainsRegistrarResponseBody,
|
|
163
|
+
): string {
|
|
164
|
+
return JSON.stringify(
|
|
165
|
+
GetTldPriceDomainsRegistrarResponseBody$outboundSchema.parse(
|
|
166
|
+
getTldPriceDomainsRegistrarResponseBody,
|
|
167
|
+
),
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function getTldPriceDomainsRegistrarResponseBodyFromJSON(
|
|
172
|
+
jsonString: string,
|
|
173
|
+
): SafeParseResult<
|
|
174
|
+
GetTldPriceDomainsRegistrarResponseBody,
|
|
175
|
+
SDKValidationError
|
|
176
|
+
> {
|
|
177
|
+
return safeParse(
|
|
178
|
+
jsonString,
|
|
179
|
+
(x) =>
|
|
180
|
+
GetTldPriceDomainsRegistrarResponseBody$inboundSchema.parse(
|
|
181
|
+
JSON.parse(x),
|
|
182
|
+
),
|
|
183
|
+
`Failed to parse 'GetTldPriceDomainsRegistrarResponseBody' from JSON`,
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const GetTldPriceResponseBody$inboundSchema: z.ZodType<
|
|
189
|
+
GetTldPriceResponseBody,
|
|
190
|
+
z.ZodTypeDef,
|
|
191
|
+
unknown
|
|
192
|
+
> = z.object({
|
|
193
|
+
years: z.number(),
|
|
194
|
+
purchasePrice: z.number(),
|
|
195
|
+
renewalPrice: z.number(),
|
|
196
|
+
transferPrice: z.number(),
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export type GetTldPriceResponseBody$Outbound = {
|
|
201
|
+
years: number;
|
|
202
|
+
purchasePrice: number;
|
|
203
|
+
renewalPrice: number;
|
|
204
|
+
transferPrice: number;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/** @internal */
|
|
208
|
+
export const GetTldPriceResponseBody$outboundSchema: z.ZodType<
|
|
209
|
+
GetTldPriceResponseBody$Outbound,
|
|
210
|
+
z.ZodTypeDef,
|
|
211
|
+
GetTldPriceResponseBody
|
|
212
|
+
> = z.object({
|
|
213
|
+
years: z.number(),
|
|
214
|
+
purchasePrice: z.number(),
|
|
215
|
+
renewalPrice: z.number(),
|
|
216
|
+
transferPrice: z.number(),
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
222
|
+
*/
|
|
223
|
+
export namespace GetTldPriceResponseBody$ {
|
|
224
|
+
/** @deprecated use `GetTldPriceResponseBody$inboundSchema` instead. */
|
|
225
|
+
export const inboundSchema = GetTldPriceResponseBody$inboundSchema;
|
|
226
|
+
/** @deprecated use `GetTldPriceResponseBody$outboundSchema` instead. */
|
|
227
|
+
export const outboundSchema = GetTldPriceResponseBody$outboundSchema;
|
|
228
|
+
/** @deprecated use `GetTldPriceResponseBody$Outbound` instead. */
|
|
229
|
+
export type Outbound = GetTldPriceResponseBody$Outbound;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export function getTldPriceResponseBodyToJSON(
|
|
233
|
+
getTldPriceResponseBody: GetTldPriceResponseBody,
|
|
234
|
+
): string {
|
|
235
|
+
return JSON.stringify(
|
|
236
|
+
GetTldPriceResponseBody$outboundSchema.parse(getTldPriceResponseBody),
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export function getTldPriceResponseBodyFromJSON(
|
|
241
|
+
jsonString: string,
|
|
242
|
+
): SafeParseResult<GetTldPriceResponseBody, SDKValidationError> {
|
|
243
|
+
return safeParse(
|
|
244
|
+
jsonString,
|
|
245
|
+
(x) => GetTldPriceResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
246
|
+
`Failed to parse 'GetTldPriceResponseBody' from JSON`,
|
|
247
|
+
);
|
|
248
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
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 InternalServerErrorCode = {
|
|
11
|
+
InternalServerError: "internal_server_error",
|
|
12
|
+
} as const;
|
|
13
|
+
export type InternalServerErrorCode = ClosedEnum<
|
|
14
|
+
typeof InternalServerErrorCode
|
|
15
|
+
>;
|
|
16
|
+
|
|
17
|
+
export const InternalServerErrorTag = {
|
|
18
|
+
InternalServerError: "InternalServerError",
|
|
19
|
+
} as const;
|
|
20
|
+
export type InternalServerErrorTag = ClosedEnum<typeof InternalServerErrorTag>;
|
|
21
|
+
|
|
22
|
+
export type InternalServerErrorData = {
|
|
23
|
+
status: number;
|
|
24
|
+
code: InternalServerErrorCode;
|
|
25
|
+
message: string;
|
|
26
|
+
tag: InternalServerErrorTag;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export class InternalServerError extends VercelError {
|
|
30
|
+
status: number;
|
|
31
|
+
code: InternalServerErrorCode;
|
|
32
|
+
tag: InternalServerErrorTag;
|
|
33
|
+
|
|
34
|
+
/** The original data that was passed to this error instance. */
|
|
35
|
+
data$: InternalServerErrorData;
|
|
36
|
+
|
|
37
|
+
constructor(
|
|
38
|
+
err: InternalServerErrorData,
|
|
39
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
40
|
+
) {
|
|
41
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
42
|
+
super(message, httpMeta);
|
|
43
|
+
this.data$ = err;
|
|
44
|
+
this.status = err.status;
|
|
45
|
+
this.code = err.code;
|
|
46
|
+
this.tag = err.tag;
|
|
47
|
+
|
|
48
|
+
this.name = "InternalServerError";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const InternalServerErrorCode$inboundSchema: z.ZodNativeEnum<
|
|
54
|
+
typeof InternalServerErrorCode
|
|
55
|
+
> = z.nativeEnum(InternalServerErrorCode);
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const InternalServerErrorCode$outboundSchema: z.ZodNativeEnum<
|
|
59
|
+
typeof InternalServerErrorCode
|
|
60
|
+
> = InternalServerErrorCode$inboundSchema;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace InternalServerErrorCode$ {
|
|
67
|
+
/** @deprecated use `InternalServerErrorCode$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = InternalServerErrorCode$inboundSchema;
|
|
69
|
+
/** @deprecated use `InternalServerErrorCode$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = InternalServerErrorCode$outboundSchema;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const InternalServerErrorTag$inboundSchema: z.ZodNativeEnum<
|
|
75
|
+
typeof InternalServerErrorTag
|
|
76
|
+
> = z.nativeEnum(InternalServerErrorTag);
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const InternalServerErrorTag$outboundSchema: z.ZodNativeEnum<
|
|
80
|
+
typeof InternalServerErrorTag
|
|
81
|
+
> = InternalServerErrorTag$inboundSchema;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace InternalServerErrorTag$ {
|
|
88
|
+
/** @deprecated use `InternalServerErrorTag$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema = InternalServerErrorTag$inboundSchema;
|
|
90
|
+
/** @deprecated use `InternalServerErrorTag$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema = InternalServerErrorTag$outboundSchema;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const InternalServerError$inboundSchema: z.ZodType<
|
|
96
|
+
InternalServerError,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
unknown
|
|
99
|
+
> = z.object({
|
|
100
|
+
status: z.number(),
|
|
101
|
+
code: InternalServerErrorCode$inboundSchema,
|
|
102
|
+
message: z.string(),
|
|
103
|
+
_tag: InternalServerErrorTag$inboundSchema,
|
|
104
|
+
request$: z.instanceof(Request),
|
|
105
|
+
response$: z.instanceof(Response),
|
|
106
|
+
body$: z.string(),
|
|
107
|
+
})
|
|
108
|
+
.transform((v) => {
|
|
109
|
+
const remapped = remap$(v, {
|
|
110
|
+
"_tag": "tag",
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
return new InternalServerError(remapped, {
|
|
114
|
+
request: v.request$,
|
|
115
|
+
response: v.response$,
|
|
116
|
+
body: v.body$,
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type InternalServerError$Outbound = {
|
|
122
|
+
status: number;
|
|
123
|
+
code: string;
|
|
124
|
+
message: string;
|
|
125
|
+
_tag: string;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const InternalServerError$outboundSchema: z.ZodType<
|
|
130
|
+
InternalServerError$Outbound,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
InternalServerError
|
|
133
|
+
> = z.instanceof(InternalServerError)
|
|
134
|
+
.transform(v => v.data$)
|
|
135
|
+
.pipe(
|
|
136
|
+
z.object({
|
|
137
|
+
status: z.number(),
|
|
138
|
+
code: InternalServerErrorCode$outboundSchema,
|
|
139
|
+
message: z.string(),
|
|
140
|
+
tag: InternalServerErrorTag$outboundSchema,
|
|
141
|
+
}).transform((v) => {
|
|
142
|
+
return remap$(v, {
|
|
143
|
+
tag: "_tag",
|
|
144
|
+
});
|
|
145
|
+
}),
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
+
*/
|
|
152
|
+
export namespace InternalServerError$ {
|
|
153
|
+
/** @deprecated use `InternalServerError$inboundSchema` instead. */
|
|
154
|
+
export const inboundSchema = InternalServerError$inboundSchema;
|
|
155
|
+
/** @deprecated use `InternalServerError$outboundSchema` instead. */
|
|
156
|
+
export const outboundSchema = InternalServerError$outboundSchema;
|
|
157
|
+
/** @deprecated use `InternalServerError$Outbound` instead. */
|
|
158
|
+
export type Outbound = InternalServerError$Outbound;
|
|
159
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
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 NotAuthorizedForScopeCode = {
|
|
11
|
+
NotAuthorizedForScope: "not_authorized_for_scope",
|
|
12
|
+
} as const;
|
|
13
|
+
export type NotAuthorizedForScopeCode = ClosedEnum<
|
|
14
|
+
typeof NotAuthorizedForScopeCode
|
|
15
|
+
>;
|
|
16
|
+
|
|
17
|
+
export const NotAuthorizedForScopeTag = {
|
|
18
|
+
NotAuthorizedForScope: "NotAuthorizedForScope",
|
|
19
|
+
} as const;
|
|
20
|
+
export type NotAuthorizedForScopeTag = ClosedEnum<
|
|
21
|
+
typeof NotAuthorizedForScopeTag
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type NotAuthorizedForScopeData = {
|
|
25
|
+
status: number;
|
|
26
|
+
code: NotAuthorizedForScopeCode;
|
|
27
|
+
message: string;
|
|
28
|
+
tag: NotAuthorizedForScopeTag;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export class NotAuthorizedForScope extends VercelError {
|
|
32
|
+
status: number;
|
|
33
|
+
code: NotAuthorizedForScopeCode;
|
|
34
|
+
tag: NotAuthorizedForScopeTag;
|
|
35
|
+
|
|
36
|
+
/** The original data that was passed to this error instance. */
|
|
37
|
+
data$: NotAuthorizedForScopeData;
|
|
38
|
+
|
|
39
|
+
constructor(
|
|
40
|
+
err: NotAuthorizedForScopeData,
|
|
41
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
42
|
+
) {
|
|
43
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
44
|
+
super(message, httpMeta);
|
|
45
|
+
this.data$ = err;
|
|
46
|
+
this.status = err.status;
|
|
47
|
+
this.code = err.code;
|
|
48
|
+
this.tag = err.tag;
|
|
49
|
+
|
|
50
|
+
this.name = "NotAuthorizedForScope";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const NotAuthorizedForScopeCode$inboundSchema: z.ZodNativeEnum<
|
|
56
|
+
typeof NotAuthorizedForScopeCode
|
|
57
|
+
> = z.nativeEnum(NotAuthorizedForScopeCode);
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const NotAuthorizedForScopeCode$outboundSchema: z.ZodNativeEnum<
|
|
61
|
+
typeof NotAuthorizedForScopeCode
|
|
62
|
+
> = NotAuthorizedForScopeCode$inboundSchema;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace NotAuthorizedForScopeCode$ {
|
|
69
|
+
/** @deprecated use `NotAuthorizedForScopeCode$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = NotAuthorizedForScopeCode$inboundSchema;
|
|
71
|
+
/** @deprecated use `NotAuthorizedForScopeCode$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = NotAuthorizedForScopeCode$outboundSchema;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const NotAuthorizedForScopeTag$inboundSchema: z.ZodNativeEnum<
|
|
77
|
+
typeof NotAuthorizedForScopeTag
|
|
78
|
+
> = z.nativeEnum(NotAuthorizedForScopeTag);
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const NotAuthorizedForScopeTag$outboundSchema: z.ZodNativeEnum<
|
|
82
|
+
typeof NotAuthorizedForScopeTag
|
|
83
|
+
> = NotAuthorizedForScopeTag$inboundSchema;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export namespace NotAuthorizedForScopeTag$ {
|
|
90
|
+
/** @deprecated use `NotAuthorizedForScopeTag$inboundSchema` instead. */
|
|
91
|
+
export const inboundSchema = NotAuthorizedForScopeTag$inboundSchema;
|
|
92
|
+
/** @deprecated use `NotAuthorizedForScopeTag$outboundSchema` instead. */
|
|
93
|
+
export const outboundSchema = NotAuthorizedForScopeTag$outboundSchema;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const NotAuthorizedForScope$inboundSchema: z.ZodType<
|
|
98
|
+
NotAuthorizedForScope,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
unknown
|
|
101
|
+
> = z.object({
|
|
102
|
+
status: z.number(),
|
|
103
|
+
code: NotAuthorizedForScopeCode$inboundSchema,
|
|
104
|
+
message: z.string(),
|
|
105
|
+
_tag: NotAuthorizedForScopeTag$inboundSchema,
|
|
106
|
+
request$: z.instanceof(Request),
|
|
107
|
+
response$: z.instanceof(Response),
|
|
108
|
+
body$: z.string(),
|
|
109
|
+
})
|
|
110
|
+
.transform((v) => {
|
|
111
|
+
const remapped = remap$(v, {
|
|
112
|
+
"_tag": "tag",
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
return new NotAuthorizedForScope(remapped, {
|
|
116
|
+
request: v.request$,
|
|
117
|
+
response: v.response$,
|
|
118
|
+
body: v.body$,
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type NotAuthorizedForScope$Outbound = {
|
|
124
|
+
status: number;
|
|
125
|
+
code: string;
|
|
126
|
+
message: string;
|
|
127
|
+
_tag: string;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const NotAuthorizedForScope$outboundSchema: z.ZodType<
|
|
132
|
+
NotAuthorizedForScope$Outbound,
|
|
133
|
+
z.ZodTypeDef,
|
|
134
|
+
NotAuthorizedForScope
|
|
135
|
+
> = z.instanceof(NotAuthorizedForScope)
|
|
136
|
+
.transform(v => v.data$)
|
|
137
|
+
.pipe(
|
|
138
|
+
z.object({
|
|
139
|
+
status: z.number(),
|
|
140
|
+
code: NotAuthorizedForScopeCode$outboundSchema,
|
|
141
|
+
message: z.string(),
|
|
142
|
+
tag: NotAuthorizedForScopeTag$outboundSchema,
|
|
143
|
+
}).transform((v) => {
|
|
144
|
+
return remap$(v, {
|
|
145
|
+
tag: "_tag",
|
|
146
|
+
});
|
|
147
|
+
}),
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
153
|
+
*/
|
|
154
|
+
export namespace NotAuthorizedForScope$ {
|
|
155
|
+
/** @deprecated use `NotAuthorizedForScope$inboundSchema` instead. */
|
|
156
|
+
export const inboundSchema = NotAuthorizedForScope$inboundSchema;
|
|
157
|
+
/** @deprecated use `NotAuthorizedForScope$outboundSchema` instead. */
|
|
158
|
+
export const outboundSchema = NotAuthorizedForScope$outboundSchema;
|
|
159
|
+
/** @deprecated use `NotAuthorizedForScope$Outbound` instead. */
|
|
160
|
+
export type Outbound = NotAuthorizedForScope$Outbound;
|
|
161
|
+
}
|