@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
|
@@ -468,10 +468,10 @@ export type CreateProjectProjectsTarget =
|
|
|
468
468
|
|
|
469
469
|
export const CreateProjectProjectsResponseType = {
|
|
470
470
|
System: "system",
|
|
471
|
-
Secret: "secret",
|
|
472
471
|
Encrypted: "encrypted",
|
|
473
472
|
Plain: "plain",
|
|
474
473
|
Sensitive: "sensitive",
|
|
474
|
+
Secret: "secret",
|
|
475
475
|
} as const;
|
|
476
476
|
export type CreateProjectProjectsResponseType = ClosedEnum<
|
|
477
477
|
typeof CreateProjectProjectsResponseType
|
|
@@ -1232,18 +1232,18 @@ export type CreateProjectLinkProjectsDeployHooks = {
|
|
|
1232
1232
|
|
|
1233
1233
|
export type CreateProjectLink2 = {
|
|
1234
1234
|
type: CreateProjectLinkProjectsType;
|
|
1235
|
-
updatedAt?: number | undefined;
|
|
1236
|
-
createdAt?: number | undefined;
|
|
1237
1235
|
repo?: string | undefined;
|
|
1238
|
-
|
|
1236
|
+
repoId?: number | undefined;
|
|
1237
|
+
createdAt?: number | undefined;
|
|
1238
|
+
updatedAt?: number | undefined;
|
|
1239
1239
|
org: string;
|
|
1240
1240
|
/**
|
|
1241
1241
|
* A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes.
|
|
1242
1242
|
*/
|
|
1243
1243
|
repoOwnerId?: number | undefined;
|
|
1244
|
-
repoId?: number | undefined;
|
|
1245
1244
|
deployHooks: Array<CreateProjectLinkProjectsDeployHooks>;
|
|
1246
1245
|
gitCredentialId: string;
|
|
1246
|
+
sourceless?: boolean | undefined;
|
|
1247
1247
|
productionBranch: string;
|
|
1248
1248
|
};
|
|
1249
1249
|
|
|
@@ -1363,6 +1363,7 @@ export type CreateProjectBuildMachineType = ClosedEnum<
|
|
|
1363
1363
|
>;
|
|
1364
1364
|
|
|
1365
1365
|
export type CreateProjectProjectsResourceConfig = {
|
|
1366
|
+
elasticConcurrencyEnabled?: boolean | undefined;
|
|
1366
1367
|
fluid?: boolean | undefined;
|
|
1367
1368
|
functionDefaultRegions: Array<string>;
|
|
1368
1369
|
functionDefaultTimeout?: number | undefined;
|
|
@@ -1370,7 +1371,6 @@ export type CreateProjectProjectsResourceConfig = {
|
|
|
1370
1371
|
| CreateProjectFunctionDefaultMemoryType
|
|
1371
1372
|
| undefined;
|
|
1372
1373
|
functionZeroConfigFailover?: boolean | undefined;
|
|
1373
|
-
elasticConcurrencyEnabled?: boolean | undefined;
|
|
1374
1374
|
buildMachineType?: CreateProjectBuildMachineType | undefined;
|
|
1375
1375
|
isNSNBDisabled?: boolean | undefined;
|
|
1376
1376
|
};
|
|
@@ -1455,6 +1455,7 @@ export type CreateProjectProjectsBuildMachineType = ClosedEnum<
|
|
|
1455
1455
|
>;
|
|
1456
1456
|
|
|
1457
1457
|
export type CreateProjectDefaultResourceConfig = {
|
|
1458
|
+
elasticConcurrencyEnabled?: boolean | undefined;
|
|
1458
1459
|
fluid?: boolean | undefined;
|
|
1459
1460
|
functionDefaultRegions: Array<string>;
|
|
1460
1461
|
functionDefaultTimeout?: number | undefined;
|
|
@@ -1462,14 +1463,13 @@ export type CreateProjectDefaultResourceConfig = {
|
|
|
1462
1463
|
| CreateProjectProjectsFunctionDefaultMemoryType
|
|
1463
1464
|
| undefined;
|
|
1464
1465
|
functionZeroConfigFailover?: boolean | undefined;
|
|
1465
|
-
elasticConcurrencyEnabled?: boolean | undefined;
|
|
1466
1466
|
buildMachineType?: CreateProjectProjectsBuildMachineType | undefined;
|
|
1467
1467
|
isNSNBDisabled?: boolean | undefined;
|
|
1468
1468
|
};
|
|
1469
1469
|
|
|
1470
1470
|
export const CreateProjectProjectsDeploymentType = {
|
|
1471
|
-
All: "all",
|
|
1472
1471
|
Preview: "preview",
|
|
1472
|
+
All: "all",
|
|
1473
1473
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1474
1474
|
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1475
1475
|
} as const;
|
|
@@ -1925,11 +1925,11 @@ export type CreateProjectProtectionBypass =
|
|
|
1925
1925
|
| CreateProjectProtectionBypass2;
|
|
1926
1926
|
|
|
1927
1927
|
export const CreateProjectTrustedIpsProjectsDeploymentType = {
|
|
1928
|
-
All: "all",
|
|
1929
1928
|
Preview: "preview",
|
|
1929
|
+
Production: "production",
|
|
1930
|
+
All: "all",
|
|
1930
1931
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1931
1932
|
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1932
|
-
Production: "production",
|
|
1933
1933
|
} as const;
|
|
1934
1934
|
export type CreateProjectTrustedIpsProjectsDeploymentType = ClosedEnum<
|
|
1935
1935
|
typeof CreateProjectTrustedIpsProjectsDeploymentType
|
|
@@ -1940,11 +1940,11 @@ export type CreateProjectTrustedIps2 = {
|
|
|
1940
1940
|
};
|
|
1941
1941
|
|
|
1942
1942
|
export const CreateProjectTrustedIpsDeploymentType = {
|
|
1943
|
-
All: "all",
|
|
1944
1943
|
Preview: "preview",
|
|
1944
|
+
Production: "production",
|
|
1945
|
+
All: "all",
|
|
1945
1946
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1946
1947
|
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1947
|
-
Production: "production",
|
|
1948
1948
|
} as const;
|
|
1949
1949
|
export type CreateProjectTrustedIpsDeploymentType = ClosedEnum<
|
|
1950
1950
|
typeof CreateProjectTrustedIpsDeploymentType
|
|
@@ -7468,32 +7468,32 @@ export const CreateProjectLink2$inboundSchema: z.ZodType<
|
|
|
7468
7468
|
unknown
|
|
7469
7469
|
> = z.object({
|
|
7470
7470
|
type: CreateProjectLinkProjectsType$inboundSchema,
|
|
7471
|
-
updatedAt: z.number().optional(),
|
|
7472
|
-
createdAt: z.number().optional(),
|
|
7473
7471
|
repo: z.string().optional(),
|
|
7474
|
-
|
|
7472
|
+
repoId: z.number().optional(),
|
|
7473
|
+
createdAt: z.number().optional(),
|
|
7474
|
+
updatedAt: z.number().optional(),
|
|
7475
7475
|
org: z.string(),
|
|
7476
7476
|
repoOwnerId: z.number().optional(),
|
|
7477
|
-
repoId: z.number().optional(),
|
|
7478
7477
|
deployHooks: z.array(
|
|
7479
7478
|
z.lazy(() => CreateProjectLinkProjectsDeployHooks$inboundSchema),
|
|
7480
7479
|
),
|
|
7481
7480
|
gitCredentialId: z.string(),
|
|
7481
|
+
sourceless: z.boolean().optional(),
|
|
7482
7482
|
productionBranch: z.string(),
|
|
7483
7483
|
});
|
|
7484
7484
|
|
|
7485
7485
|
/** @internal */
|
|
7486
7486
|
export type CreateProjectLink2$Outbound = {
|
|
7487
7487
|
type: string;
|
|
7488
|
-
updatedAt?: number | undefined;
|
|
7489
|
-
createdAt?: number | undefined;
|
|
7490
7488
|
repo?: string | undefined;
|
|
7491
|
-
|
|
7489
|
+
repoId?: number | undefined;
|
|
7490
|
+
createdAt?: number | undefined;
|
|
7491
|
+
updatedAt?: number | undefined;
|
|
7492
7492
|
org: string;
|
|
7493
7493
|
repoOwnerId?: number | undefined;
|
|
7494
|
-
repoId?: number | undefined;
|
|
7495
7494
|
deployHooks: Array<CreateProjectLinkProjectsDeployHooks$Outbound>;
|
|
7496
7495
|
gitCredentialId: string;
|
|
7496
|
+
sourceless?: boolean | undefined;
|
|
7497
7497
|
productionBranch: string;
|
|
7498
7498
|
};
|
|
7499
7499
|
|
|
@@ -7504,17 +7504,17 @@ export const CreateProjectLink2$outboundSchema: z.ZodType<
|
|
|
7504
7504
|
CreateProjectLink2
|
|
7505
7505
|
> = z.object({
|
|
7506
7506
|
type: CreateProjectLinkProjectsType$outboundSchema,
|
|
7507
|
-
updatedAt: z.number().optional(),
|
|
7508
|
-
createdAt: z.number().optional(),
|
|
7509
7507
|
repo: z.string().optional(),
|
|
7510
|
-
|
|
7508
|
+
repoId: z.number().optional(),
|
|
7509
|
+
createdAt: z.number().optional(),
|
|
7510
|
+
updatedAt: z.number().optional(),
|
|
7511
7511
|
org: z.string(),
|
|
7512
7512
|
repoOwnerId: z.number().optional(),
|
|
7513
|
-
repoId: z.number().optional(),
|
|
7514
7513
|
deployHooks: z.array(
|
|
7515
7514
|
z.lazy(() => CreateProjectLinkProjectsDeployHooks$outboundSchema),
|
|
7516
7515
|
),
|
|
7517
7516
|
gitCredentialId: z.string(),
|
|
7517
|
+
sourceless: z.boolean().optional(),
|
|
7518
7518
|
productionBranch: z.string(),
|
|
7519
7519
|
});
|
|
7520
7520
|
|
|
@@ -8214,25 +8214,25 @@ export const CreateProjectProjectsResourceConfig$inboundSchema: z.ZodType<
|
|
|
8214
8214
|
z.ZodTypeDef,
|
|
8215
8215
|
unknown
|
|
8216
8216
|
> = z.object({
|
|
8217
|
+
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
8217
8218
|
fluid: z.boolean().optional(),
|
|
8218
8219
|
functionDefaultRegions: z.array(z.string()),
|
|
8219
8220
|
functionDefaultTimeout: z.number().optional(),
|
|
8220
8221
|
functionDefaultMemoryType:
|
|
8221
8222
|
CreateProjectFunctionDefaultMemoryType$inboundSchema.optional(),
|
|
8222
8223
|
functionZeroConfigFailover: z.boolean().optional(),
|
|
8223
|
-
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
8224
8224
|
buildMachineType: CreateProjectBuildMachineType$inboundSchema.optional(),
|
|
8225
8225
|
isNSNBDisabled: z.boolean().optional(),
|
|
8226
8226
|
});
|
|
8227
8227
|
|
|
8228
8228
|
/** @internal */
|
|
8229
8229
|
export type CreateProjectProjectsResourceConfig$Outbound = {
|
|
8230
|
+
elasticConcurrencyEnabled?: boolean | undefined;
|
|
8230
8231
|
fluid?: boolean | undefined;
|
|
8231
8232
|
functionDefaultRegions: Array<string>;
|
|
8232
8233
|
functionDefaultTimeout?: number | undefined;
|
|
8233
8234
|
functionDefaultMemoryType?: string | undefined;
|
|
8234
8235
|
functionZeroConfigFailover?: boolean | undefined;
|
|
8235
|
-
elasticConcurrencyEnabled?: boolean | undefined;
|
|
8236
8236
|
buildMachineType?: string | undefined;
|
|
8237
8237
|
isNSNBDisabled?: boolean | undefined;
|
|
8238
8238
|
};
|
|
@@ -8243,13 +8243,13 @@ export const CreateProjectProjectsResourceConfig$outboundSchema: z.ZodType<
|
|
|
8243
8243
|
z.ZodTypeDef,
|
|
8244
8244
|
CreateProjectProjectsResourceConfig
|
|
8245
8245
|
> = z.object({
|
|
8246
|
+
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
8246
8247
|
fluid: z.boolean().optional(),
|
|
8247
8248
|
functionDefaultRegions: z.array(z.string()),
|
|
8248
8249
|
functionDefaultTimeout: z.number().optional(),
|
|
8249
8250
|
functionDefaultMemoryType:
|
|
8250
8251
|
CreateProjectFunctionDefaultMemoryType$outboundSchema.optional(),
|
|
8251
8252
|
functionZeroConfigFailover: z.boolean().optional(),
|
|
8252
|
-
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
8253
8253
|
buildMachineType: CreateProjectBuildMachineType$outboundSchema.optional(),
|
|
8254
8254
|
isNSNBDisabled: z.boolean().optional(),
|
|
8255
8255
|
});
|
|
@@ -8535,13 +8535,13 @@ export const CreateProjectDefaultResourceConfig$inboundSchema: z.ZodType<
|
|
|
8535
8535
|
z.ZodTypeDef,
|
|
8536
8536
|
unknown
|
|
8537
8537
|
> = z.object({
|
|
8538
|
+
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
8538
8539
|
fluid: z.boolean().optional(),
|
|
8539
8540
|
functionDefaultRegions: z.array(z.string()),
|
|
8540
8541
|
functionDefaultTimeout: z.number().optional(),
|
|
8541
8542
|
functionDefaultMemoryType:
|
|
8542
8543
|
CreateProjectProjectsFunctionDefaultMemoryType$inboundSchema.optional(),
|
|
8543
8544
|
functionZeroConfigFailover: z.boolean().optional(),
|
|
8544
|
-
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
8545
8545
|
buildMachineType: CreateProjectProjectsBuildMachineType$inboundSchema
|
|
8546
8546
|
.optional(),
|
|
8547
8547
|
isNSNBDisabled: z.boolean().optional(),
|
|
@@ -8549,12 +8549,12 @@ export const CreateProjectDefaultResourceConfig$inboundSchema: z.ZodType<
|
|
|
8549
8549
|
|
|
8550
8550
|
/** @internal */
|
|
8551
8551
|
export type CreateProjectDefaultResourceConfig$Outbound = {
|
|
8552
|
+
elasticConcurrencyEnabled?: boolean | undefined;
|
|
8552
8553
|
fluid?: boolean | undefined;
|
|
8553
8554
|
functionDefaultRegions: Array<string>;
|
|
8554
8555
|
functionDefaultTimeout?: number | undefined;
|
|
8555
8556
|
functionDefaultMemoryType?: string | undefined;
|
|
8556
8557
|
functionZeroConfigFailover?: boolean | undefined;
|
|
8557
|
-
elasticConcurrencyEnabled?: boolean | undefined;
|
|
8558
8558
|
buildMachineType?: string | undefined;
|
|
8559
8559
|
isNSNBDisabled?: boolean | undefined;
|
|
8560
8560
|
};
|
|
@@ -8565,13 +8565,13 @@ export const CreateProjectDefaultResourceConfig$outboundSchema: z.ZodType<
|
|
|
8565
8565
|
z.ZodTypeDef,
|
|
8566
8566
|
CreateProjectDefaultResourceConfig
|
|
8567
8567
|
> = z.object({
|
|
8568
|
+
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
8568
8569
|
fluid: z.boolean().optional(),
|
|
8569
8570
|
functionDefaultRegions: z.array(z.string()),
|
|
8570
8571
|
functionDefaultTimeout: z.number().optional(),
|
|
8571
8572
|
functionDefaultMemoryType:
|
|
8572
8573
|
CreateProjectProjectsFunctionDefaultMemoryType$outboundSchema.optional(),
|
|
8573
8574
|
functionZeroConfigFailover: z.boolean().optional(),
|
|
8574
|
-
elasticConcurrencyEnabled: z.boolean().optional(),
|
|
8575
8575
|
buildMachineType: CreateProjectProjectsBuildMachineType$outboundSchema
|
|
8576
8576
|
.optional(),
|
|
8577
8577
|
isNSNBDisabled: z.boolean().optional(),
|
|
@@ -0,0 +1,155 @@
|
|
|
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 ForbiddenCode = {
|
|
11
|
+
Forbidden: "forbidden",
|
|
12
|
+
} as const;
|
|
13
|
+
export type ForbiddenCode = ClosedEnum<typeof ForbiddenCode>;
|
|
14
|
+
|
|
15
|
+
export const ForbiddenTag = {
|
|
16
|
+
Forbidden: "Forbidden",
|
|
17
|
+
} as const;
|
|
18
|
+
export type ForbiddenTag = ClosedEnum<typeof ForbiddenTag>;
|
|
19
|
+
|
|
20
|
+
export type ForbiddenData = {
|
|
21
|
+
status: number;
|
|
22
|
+
code: ForbiddenCode;
|
|
23
|
+
message: string;
|
|
24
|
+
tag: ForbiddenTag;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export class Forbidden extends VercelError {
|
|
28
|
+
status: number;
|
|
29
|
+
code: ForbiddenCode;
|
|
30
|
+
tag: ForbiddenTag;
|
|
31
|
+
|
|
32
|
+
/** The original data that was passed to this error instance. */
|
|
33
|
+
data$: ForbiddenData;
|
|
34
|
+
|
|
35
|
+
constructor(
|
|
36
|
+
err: ForbiddenData,
|
|
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 = "Forbidden";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const ForbiddenCode$inboundSchema: z.ZodNativeEnum<
|
|
52
|
+
typeof ForbiddenCode
|
|
53
|
+
> = z.nativeEnum(ForbiddenCode);
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const ForbiddenCode$outboundSchema: z.ZodNativeEnum<
|
|
57
|
+
typeof ForbiddenCode
|
|
58
|
+
> = ForbiddenCode$inboundSchema;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace ForbiddenCode$ {
|
|
65
|
+
/** @deprecated use `ForbiddenCode$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = ForbiddenCode$inboundSchema;
|
|
67
|
+
/** @deprecated use `ForbiddenCode$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = ForbiddenCode$outboundSchema;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ForbiddenTag$inboundSchema: z.ZodNativeEnum<typeof ForbiddenTag> =
|
|
73
|
+
z.nativeEnum(ForbiddenTag);
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const ForbiddenTag$outboundSchema: z.ZodNativeEnum<typeof ForbiddenTag> =
|
|
77
|
+
ForbiddenTag$inboundSchema;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export namespace ForbiddenTag$ {
|
|
84
|
+
/** @deprecated use `ForbiddenTag$inboundSchema` instead. */
|
|
85
|
+
export const inboundSchema = ForbiddenTag$inboundSchema;
|
|
86
|
+
/** @deprecated use `ForbiddenTag$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema = ForbiddenTag$outboundSchema;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** @internal */
|
|
91
|
+
export const Forbidden$inboundSchema: z.ZodType<
|
|
92
|
+
Forbidden,
|
|
93
|
+
z.ZodTypeDef,
|
|
94
|
+
unknown
|
|
95
|
+
> = z.object({
|
|
96
|
+
status: z.number(),
|
|
97
|
+
code: ForbiddenCode$inboundSchema,
|
|
98
|
+
message: z.string(),
|
|
99
|
+
_tag: ForbiddenTag$inboundSchema,
|
|
100
|
+
request$: z.instanceof(Request),
|
|
101
|
+
response$: z.instanceof(Response),
|
|
102
|
+
body$: z.string(),
|
|
103
|
+
})
|
|
104
|
+
.transform((v) => {
|
|
105
|
+
const remapped = remap$(v, {
|
|
106
|
+
"_tag": "tag",
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
return new Forbidden(remapped, {
|
|
110
|
+
request: v.request$,
|
|
111
|
+
response: v.response$,
|
|
112
|
+
body: v.body$,
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type Forbidden$Outbound = {
|
|
118
|
+
status: number;
|
|
119
|
+
code: string;
|
|
120
|
+
message: string;
|
|
121
|
+
_tag: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const Forbidden$outboundSchema: z.ZodType<
|
|
126
|
+
Forbidden$Outbound,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
Forbidden
|
|
129
|
+
> = z.instanceof(Forbidden)
|
|
130
|
+
.transform(v => v.data$)
|
|
131
|
+
.pipe(
|
|
132
|
+
z.object({
|
|
133
|
+
status: z.number(),
|
|
134
|
+
code: ForbiddenCode$outboundSchema,
|
|
135
|
+
message: z.string(),
|
|
136
|
+
tag: ForbiddenTag$outboundSchema,
|
|
137
|
+
}).transform((v) => {
|
|
138
|
+
return remap$(v, {
|
|
139
|
+
tag: "_tag",
|
|
140
|
+
});
|
|
141
|
+
}),
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @internal
|
|
146
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
147
|
+
*/
|
|
148
|
+
export namespace Forbidden$ {
|
|
149
|
+
/** @deprecated use `Forbidden$inboundSchema` instead. */
|
|
150
|
+
export const inboundSchema = Forbidden$inboundSchema;
|
|
151
|
+
/** @deprecated use `Forbidden$outboundSchema` instead. */
|
|
152
|
+
export const outboundSchema = Forbidden$outboundSchema;
|
|
153
|
+
/** @deprecated use `Forbidden$Outbound` instead. */
|
|
154
|
+
export type Outbound = Forbidden$Outbound;
|
|
155
|
+
}
|
|
@@ -0,0 +1,288 @@
|
|
|
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 GetBulkAvailabilityRequestBody = {
|
|
29
|
+
/**
|
|
30
|
+
* an array of at most 50 item(s)
|
|
31
|
+
*/
|
|
32
|
+
domains: Array<string>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Unauthorized
|
|
37
|
+
*/
|
|
38
|
+
export type GetBulkAvailabilityDomainsRegistrarResponseBody =
|
|
39
|
+
| Unauthorized
|
|
40
|
+
| NotAuthorizedForScope
|
|
41
|
+
| InternalServerError;
|
|
42
|
+
|
|
43
|
+
export type Results = {
|
|
44
|
+
domain: string;
|
|
45
|
+
available: boolean;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Success
|
|
50
|
+
*/
|
|
51
|
+
export type GetBulkAvailabilityResponseBody = {
|
|
52
|
+
results: Array<Results>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const GetBulkAvailabilityRequestBody$inboundSchema: z.ZodType<
|
|
57
|
+
GetBulkAvailabilityRequestBody,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.object({
|
|
61
|
+
domains: z.array(z.string()),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type GetBulkAvailabilityRequestBody$Outbound = {
|
|
66
|
+
domains: Array<string>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const GetBulkAvailabilityRequestBody$outboundSchema: z.ZodType<
|
|
71
|
+
GetBulkAvailabilityRequestBody$Outbound,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
GetBulkAvailabilityRequestBody
|
|
74
|
+
> = z.object({
|
|
75
|
+
domains: z.array(z.string()),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace GetBulkAvailabilityRequestBody$ {
|
|
83
|
+
/** @deprecated use `GetBulkAvailabilityRequestBody$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = GetBulkAvailabilityRequestBody$inboundSchema;
|
|
85
|
+
/** @deprecated use `GetBulkAvailabilityRequestBody$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = GetBulkAvailabilityRequestBody$outboundSchema;
|
|
87
|
+
/** @deprecated use `GetBulkAvailabilityRequestBody$Outbound` instead. */
|
|
88
|
+
export type Outbound = GetBulkAvailabilityRequestBody$Outbound;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function getBulkAvailabilityRequestBodyToJSON(
|
|
92
|
+
getBulkAvailabilityRequestBody: GetBulkAvailabilityRequestBody,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
GetBulkAvailabilityRequestBody$outboundSchema.parse(
|
|
96
|
+
getBulkAvailabilityRequestBody,
|
|
97
|
+
),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function getBulkAvailabilityRequestBodyFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<GetBulkAvailabilityRequestBody, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => GetBulkAvailabilityRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'GetBulkAvailabilityRequestBody' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const GetBulkAvailabilityDomainsRegistrarResponseBody$inboundSchema:
|
|
113
|
+
z.ZodType<
|
|
114
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
unknown
|
|
117
|
+
> = z.union([
|
|
118
|
+
Unauthorized$inboundSchema,
|
|
119
|
+
NotAuthorizedForScope$inboundSchema,
|
|
120
|
+
InternalServerError$inboundSchema,
|
|
121
|
+
]);
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export type GetBulkAvailabilityDomainsRegistrarResponseBody$Outbound =
|
|
125
|
+
| Unauthorized$Outbound
|
|
126
|
+
| NotAuthorizedForScope$Outbound
|
|
127
|
+
| InternalServerError$Outbound;
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const GetBulkAvailabilityDomainsRegistrarResponseBody$outboundSchema:
|
|
131
|
+
z.ZodType<
|
|
132
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody$Outbound,
|
|
133
|
+
z.ZodTypeDef,
|
|
134
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody
|
|
135
|
+
> = z.union([
|
|
136
|
+
Unauthorized$outboundSchema,
|
|
137
|
+
NotAuthorizedForScope$outboundSchema,
|
|
138
|
+
InternalServerError$outboundSchema,
|
|
139
|
+
]);
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @internal
|
|
143
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
144
|
+
*/
|
|
145
|
+
export namespace GetBulkAvailabilityDomainsRegistrarResponseBody$ {
|
|
146
|
+
/** @deprecated use `GetBulkAvailabilityDomainsRegistrarResponseBody$inboundSchema` instead. */
|
|
147
|
+
export const inboundSchema =
|
|
148
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody$inboundSchema;
|
|
149
|
+
/** @deprecated use `GetBulkAvailabilityDomainsRegistrarResponseBody$outboundSchema` instead. */
|
|
150
|
+
export const outboundSchema =
|
|
151
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody$outboundSchema;
|
|
152
|
+
/** @deprecated use `GetBulkAvailabilityDomainsRegistrarResponseBody$Outbound` instead. */
|
|
153
|
+
export type Outbound =
|
|
154
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody$Outbound;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function getBulkAvailabilityDomainsRegistrarResponseBodyToJSON(
|
|
158
|
+
getBulkAvailabilityDomainsRegistrarResponseBody:
|
|
159
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody,
|
|
160
|
+
): string {
|
|
161
|
+
return JSON.stringify(
|
|
162
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody$outboundSchema.parse(
|
|
163
|
+
getBulkAvailabilityDomainsRegistrarResponseBody,
|
|
164
|
+
),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function getBulkAvailabilityDomainsRegistrarResponseBodyFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<
|
|
171
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody,
|
|
172
|
+
SDKValidationError
|
|
173
|
+
> {
|
|
174
|
+
return safeParse(
|
|
175
|
+
jsonString,
|
|
176
|
+
(x) =>
|
|
177
|
+
GetBulkAvailabilityDomainsRegistrarResponseBody$inboundSchema.parse(
|
|
178
|
+
JSON.parse(x),
|
|
179
|
+
),
|
|
180
|
+
`Failed to parse 'GetBulkAvailabilityDomainsRegistrarResponseBody' from JSON`,
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/** @internal */
|
|
185
|
+
export const Results$inboundSchema: z.ZodType<Results, z.ZodTypeDef, unknown> =
|
|
186
|
+
z.object({
|
|
187
|
+
domain: z.string(),
|
|
188
|
+
available: z.boolean(),
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
/** @internal */
|
|
192
|
+
export type Results$Outbound = {
|
|
193
|
+
domain: string;
|
|
194
|
+
available: boolean;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
/** @internal */
|
|
198
|
+
export const Results$outboundSchema: z.ZodType<
|
|
199
|
+
Results$Outbound,
|
|
200
|
+
z.ZodTypeDef,
|
|
201
|
+
Results
|
|
202
|
+
> = z.object({
|
|
203
|
+
domain: z.string(),
|
|
204
|
+
available: z.boolean(),
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @internal
|
|
209
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
210
|
+
*/
|
|
211
|
+
export namespace Results$ {
|
|
212
|
+
/** @deprecated use `Results$inboundSchema` instead. */
|
|
213
|
+
export const inboundSchema = Results$inboundSchema;
|
|
214
|
+
/** @deprecated use `Results$outboundSchema` instead. */
|
|
215
|
+
export const outboundSchema = Results$outboundSchema;
|
|
216
|
+
/** @deprecated use `Results$Outbound` instead. */
|
|
217
|
+
export type Outbound = Results$Outbound;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function resultsToJSON(results: Results): string {
|
|
221
|
+
return JSON.stringify(Results$outboundSchema.parse(results));
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function resultsFromJSON(
|
|
225
|
+
jsonString: string,
|
|
226
|
+
): SafeParseResult<Results, SDKValidationError> {
|
|
227
|
+
return safeParse(
|
|
228
|
+
jsonString,
|
|
229
|
+
(x) => Results$inboundSchema.parse(JSON.parse(x)),
|
|
230
|
+
`Failed to parse 'Results' from JSON`,
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** @internal */
|
|
235
|
+
export const GetBulkAvailabilityResponseBody$inboundSchema: z.ZodType<
|
|
236
|
+
GetBulkAvailabilityResponseBody,
|
|
237
|
+
z.ZodTypeDef,
|
|
238
|
+
unknown
|
|
239
|
+
> = z.object({
|
|
240
|
+
results: z.array(z.lazy(() => Results$inboundSchema)),
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
/** @internal */
|
|
244
|
+
export type GetBulkAvailabilityResponseBody$Outbound = {
|
|
245
|
+
results: Array<Results$Outbound>;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export const GetBulkAvailabilityResponseBody$outboundSchema: z.ZodType<
|
|
250
|
+
GetBulkAvailabilityResponseBody$Outbound,
|
|
251
|
+
z.ZodTypeDef,
|
|
252
|
+
GetBulkAvailabilityResponseBody
|
|
253
|
+
> = z.object({
|
|
254
|
+
results: z.array(z.lazy(() => Results$outboundSchema)),
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
260
|
+
*/
|
|
261
|
+
export namespace GetBulkAvailabilityResponseBody$ {
|
|
262
|
+
/** @deprecated use `GetBulkAvailabilityResponseBody$inboundSchema` instead. */
|
|
263
|
+
export const inboundSchema = GetBulkAvailabilityResponseBody$inboundSchema;
|
|
264
|
+
/** @deprecated use `GetBulkAvailabilityResponseBody$outboundSchema` instead. */
|
|
265
|
+
export const outboundSchema = GetBulkAvailabilityResponseBody$outboundSchema;
|
|
266
|
+
/** @deprecated use `GetBulkAvailabilityResponseBody$Outbound` instead. */
|
|
267
|
+
export type Outbound = GetBulkAvailabilityResponseBody$Outbound;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export function getBulkAvailabilityResponseBodyToJSON(
|
|
271
|
+
getBulkAvailabilityResponseBody: GetBulkAvailabilityResponseBody,
|
|
272
|
+
): string {
|
|
273
|
+
return JSON.stringify(
|
|
274
|
+
GetBulkAvailabilityResponseBody$outboundSchema.parse(
|
|
275
|
+
getBulkAvailabilityResponseBody,
|
|
276
|
+
),
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export function getBulkAvailabilityResponseBodyFromJSON(
|
|
281
|
+
jsonString: string,
|
|
282
|
+
): SafeParseResult<GetBulkAvailabilityResponseBody, SDKValidationError> {
|
|
283
|
+
return safeParse(
|
|
284
|
+
jsonString,
|
|
285
|
+
(x) => GetBulkAvailabilityResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
286
|
+
`Failed to parse 'GetBulkAvailabilityResponseBody' from JSON`,
|
|
287
|
+
);
|
|
288
|
+
}
|