@vercel/sdk 1.12.2 → 1.13.1

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.
Files changed (335) hide show
  1. package/README.md +40 -4
  2. package/bin/mcp-server.js +4898 -1561
  3. package/bin/mcp-server.js.map +63 -14
  4. package/docs/sdks/domains/README.md +1 -0
  5. package/docs/sdks/domainsregistrar/README.md +1335 -0
  6. package/esm/__tests__/accessgroups.test.js +3 -1
  7. package/esm/__tests__/accessgroups.test.js.map +1 -1
  8. package/esm/__tests__/domains.test.js +6 -9
  9. package/esm/__tests__/domains.test.js.map +1 -1
  10. package/esm/__tests__/domainsregistrar.test.d.ts +2 -0
  11. package/esm/__tests__/domainsregistrar.test.d.ts.map +1 -0
  12. package/esm/__tests__/domainsregistrar.test.js +274 -0
  13. package/esm/__tests__/domainsregistrar.test.js.map +1 -0
  14. package/esm/__tests__/edgeconfig.test.js +6 -6
  15. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  16. package/esm/__tests__/integrations.test.js +1 -1
  17. package/esm/__tests__/logdrains.test.js +7 -5
  18. package/esm/__tests__/logdrains.test.js.map +1 -1
  19. package/esm/__tests__/rollingrelease.test.js +1 -2
  20. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  21. package/esm/__tests__/security.test.js +1 -11
  22. package/esm/__tests__/security.test.js.map +1 -1
  23. package/esm/funcs/domainsCheckDomainPrice.d.ts +2 -1
  24. package/esm/funcs/domainsCheckDomainPrice.d.ts.map +1 -1
  25. package/esm/funcs/domainsCheckDomainPrice.js +3 -2
  26. package/esm/funcs/domainsCheckDomainPrice.js.map +1 -1
  27. package/esm/funcs/domainsRegistrarBuyDomains.d.ts +21 -0
  28. package/esm/funcs/domainsRegistrarBuyDomains.d.ts.map +1 -0
  29. package/esm/funcs/domainsRegistrarBuyDomains.js +85 -0
  30. package/esm/funcs/domainsRegistrarBuyDomains.js.map +1 -0
  31. package/esm/funcs/domainsRegistrarBuySingleDomain.d.ts +21 -0
  32. package/esm/funcs/domainsRegistrarBuySingleDomain.d.ts.map +1 -0
  33. package/esm/funcs/domainsRegistrarBuySingleDomain.js +91 -0
  34. package/esm/funcs/domainsRegistrarBuySingleDomain.js.map +1 -0
  35. package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts +20 -0
  36. package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts.map +1 -0
  37. package/esm/funcs/domainsRegistrarGetBulkAvailability.js +84 -0
  38. package/esm/funcs/domainsRegistrarGetBulkAvailability.js.map +1 -0
  39. package/esm/funcs/domainsRegistrarGetContactInfoSchema.d.ts +20 -0
  40. package/esm/funcs/domainsRegistrarGetContactInfoSchema.d.ts.map +1 -0
  41. package/esm/funcs/domainsRegistrarGetContactInfoSchema.js +89 -0
  42. package/esm/funcs/domainsRegistrarGetContactInfoSchema.js.map +1 -0
  43. package/esm/funcs/domainsRegistrarGetDomainAuthCode.d.ts +22 -0
  44. package/esm/funcs/domainsRegistrarGetDomainAuthCode.d.ts.map +1 -0
  45. package/esm/funcs/domainsRegistrarGetDomainAuthCode.js +91 -0
  46. package/esm/funcs/domainsRegistrarGetDomainAuthCode.js.map +1 -0
  47. package/esm/funcs/domainsRegistrarGetDomainAvailability.d.ts +21 -0
  48. package/esm/funcs/domainsRegistrarGetDomainAvailability.d.ts.map +1 -0
  49. package/esm/funcs/domainsRegistrarGetDomainAvailability.js +90 -0
  50. package/esm/funcs/domainsRegistrarGetDomainAvailability.js.map +1 -0
  51. package/esm/funcs/domainsRegistrarGetDomainPrice.d.ts +20 -0
  52. package/esm/funcs/domainsRegistrarGetDomainPrice.d.ts.map +1 -0
  53. package/esm/funcs/domainsRegistrarGetDomainPrice.js +93 -0
  54. package/esm/funcs/domainsRegistrarGetDomainPrice.js.map +1 -0
  55. package/esm/funcs/domainsRegistrarGetDomainTransferIn.d.ts +22 -0
  56. package/esm/funcs/domainsRegistrarGetDomainTransferIn.d.ts.map +1 -0
  57. package/esm/funcs/domainsRegistrarGetDomainTransferIn.js +91 -0
  58. package/esm/funcs/domainsRegistrarGetDomainTransferIn.js.map +1 -0
  59. package/esm/funcs/domainsRegistrarGetOrder.d.ts +22 -0
  60. package/esm/funcs/domainsRegistrarGetOrder.d.ts.map +1 -0
  61. package/esm/funcs/domainsRegistrarGetOrder.js +91 -0
  62. package/esm/funcs/domainsRegistrarGetOrder.js.map +1 -0
  63. package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts +20 -0
  64. package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts.map +1 -0
  65. package/esm/funcs/domainsRegistrarGetSupportedTlds.js +75 -0
  66. package/esm/funcs/domainsRegistrarGetSupportedTlds.js.map +1 -0
  67. package/esm/funcs/domainsRegistrarGetTldPrice.d.ts +21 -0
  68. package/esm/funcs/domainsRegistrarGetTldPrice.d.ts.map +1 -0
  69. package/esm/funcs/domainsRegistrarGetTldPrice.js +94 -0
  70. package/esm/funcs/domainsRegistrarGetTldPrice.js.map +1 -0
  71. package/esm/funcs/domainsRegistrarRenewDomain.d.ts +22 -0
  72. package/esm/funcs/domainsRegistrarRenewDomain.d.ts.map +1 -0
  73. package/esm/funcs/domainsRegistrarRenewDomain.js +92 -0
  74. package/esm/funcs/domainsRegistrarRenewDomain.js.map +1 -0
  75. package/esm/funcs/domainsRegistrarTransferInDomain.d.ts +21 -0
  76. package/esm/funcs/domainsRegistrarTransferInDomain.d.ts.map +1 -0
  77. package/esm/funcs/domainsRegistrarTransferInDomain.js +91 -0
  78. package/esm/funcs/domainsRegistrarTransferInDomain.js.map +1 -0
  79. package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.d.ts +22 -0
  80. package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.d.ts.map +1 -0
  81. package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js +93 -0
  82. package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -0
  83. package/esm/funcs/domainsRegistrarUpdateDomainNameservers.d.ts +22 -0
  84. package/esm/funcs/domainsRegistrarUpdateDomainNameservers.d.ts.map +1 -0
  85. package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js +93 -0
  86. package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js.map +1 -0
  87. package/esm/lib/config.d.ts +3 -3
  88. package/esm/lib/config.js +3 -3
  89. package/esm/mcp-server/mcp-server.js +1 -1
  90. package/esm/mcp-server/server.d.ts.map +1 -1
  91. package/esm/mcp-server/server.js +31 -1
  92. package/esm/mcp-server/server.js.map +1 -1
  93. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.d.ts +7 -0
  94. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.d.ts.map +1 -0
  95. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js +28 -0
  96. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js.map +1 -0
  97. package/esm/mcp-server/tools/domainsRegistrarBuySingleDomain.d.ts +7 -0
  98. package/esm/mcp-server/tools/domainsRegistrarBuySingleDomain.d.ts.map +1 -0
  99. package/esm/mcp-server/tools/domainsRegistrarBuySingleDomain.js +28 -0
  100. package/esm/mcp-server/tools/domainsRegistrarBuySingleDomain.js.map +1 -0
  101. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.d.ts +7 -0
  102. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.d.ts.map +1 -0
  103. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js +28 -0
  104. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js.map +1 -0
  105. package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.d.ts +7 -0
  106. package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.d.ts.map +1 -0
  107. package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.js +28 -0
  108. package/esm/mcp-server/tools/domainsRegistrarGetContactInfoSchema.js.map +1 -0
  109. package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.d.ts +7 -0
  110. package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.d.ts.map +1 -0
  111. package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.js +28 -0
  112. package/esm/mcp-server/tools/domainsRegistrarGetDomainAuthCode.js.map +1 -0
  113. package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.d.ts +7 -0
  114. package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.d.ts.map +1 -0
  115. package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.js +28 -0
  116. package/esm/mcp-server/tools/domainsRegistrarGetDomainAvailability.js.map +1 -0
  117. package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.d.ts +7 -0
  118. package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.d.ts.map +1 -0
  119. package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.js +28 -0
  120. package/esm/mcp-server/tools/domainsRegistrarGetDomainPrice.js.map +1 -0
  121. package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.d.ts +7 -0
  122. package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.d.ts.map +1 -0
  123. package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.js +28 -0
  124. package/esm/mcp-server/tools/domainsRegistrarGetDomainTransferIn.js.map +1 -0
  125. package/esm/mcp-server/tools/domainsRegistrarGetOrder.d.ts +7 -0
  126. package/esm/mcp-server/tools/domainsRegistrarGetOrder.d.ts.map +1 -0
  127. package/esm/mcp-server/tools/domainsRegistrarGetOrder.js +28 -0
  128. package/esm/mcp-server/tools/domainsRegistrarGetOrder.js.map +1 -0
  129. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts +3 -0
  130. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts.map +1 -0
  131. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js +23 -0
  132. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js.map +1 -0
  133. package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.d.ts +7 -0
  134. package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.d.ts.map +1 -0
  135. package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.js +28 -0
  136. package/esm/mcp-server/tools/domainsRegistrarGetTldPrice.js.map +1 -0
  137. package/esm/mcp-server/tools/domainsRegistrarRenewDomain.d.ts +7 -0
  138. package/esm/mcp-server/tools/domainsRegistrarRenewDomain.d.ts.map +1 -0
  139. package/esm/mcp-server/tools/domainsRegistrarRenewDomain.js +28 -0
  140. package/esm/mcp-server/tools/domainsRegistrarRenewDomain.js.map +1 -0
  141. package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.d.ts +7 -0
  142. package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.d.ts.map +1 -0
  143. package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.js +28 -0
  144. package/esm/mcp-server/tools/domainsRegistrarTransferInDomain.js.map +1 -0
  145. package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.d.ts +7 -0
  146. package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.d.ts.map +1 -0
  147. package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.js +27 -0
  148. package/esm/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -0
  149. package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.d.ts +7 -0
  150. package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.d.ts.map +1 -0
  151. package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.js +27 -0
  152. package/esm/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.js.map +1 -0
  153. package/esm/models/buydomainsop.d.ts +282 -0
  154. package/esm/models/buydomainsop.d.ts.map +1 -0
  155. package/esm/models/buydomainsop.js +247 -0
  156. package/esm/models/buydomainsop.js.map +1 -0
  157. package/esm/models/buysingledomainop.d.ts +282 -0
  158. package/esm/models/buysingledomainop.d.ts.map +1 -0
  159. package/esm/models/buysingledomainop.js +257 -0
  160. package/esm/models/buysingledomainop.js.map +1 -0
  161. package/esm/models/canceldeploymentop.d.ts +34 -34
  162. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  163. package/esm/models/canceldeploymentop.js +14 -14
  164. package/esm/models/canceldeploymentop.js.map +1 -1
  165. package/esm/models/createdeploymentop.d.ts +32 -32
  166. package/esm/models/createdeploymentop.d.ts.map +1 -1
  167. package/esm/models/createdeploymentop.js +12 -12
  168. package/esm/models/createdeploymentop.js.map +1 -1
  169. package/esm/models/createintegrationstoredirectop.d.ts +285 -285
  170. package/esm/models/createintegrationstoredirectop.js +351 -351
  171. package/esm/models/createprojectop.d.ts +30 -30
  172. package/esm/models/createprojectop.d.ts.map +1 -1
  173. package/esm/models/createprojectop.js +18 -18
  174. package/esm/models/createprojectop.js.map +1 -1
  175. package/esm/models/forbidden.d.ts +89 -0
  176. package/esm/models/forbidden.d.ts.map +1 -0
  177. package/esm/models/forbidden.js +98 -0
  178. package/esm/models/forbidden.js.map +1 -0
  179. package/esm/models/getbulkavailabilityop.d.ts +114 -0
  180. package/esm/models/getbulkavailabilityop.d.ts.map +1 -0
  181. package/esm/models/getbulkavailabilityop.js +115 -0
  182. package/esm/models/getbulkavailabilityop.js.map +1 -0
  183. package/esm/models/getconfigurationproductsop.d.ts +375 -375
  184. package/esm/models/getconfigurationproductsop.js +465 -465
  185. package/esm/models/getcontactinfoschemaop.d.ts +80 -0
  186. package/esm/models/getcontactinfoschemaop.d.ts.map +1 -0
  187. package/esm/models/getcontactinfoschemaop.js +84 -0
  188. package/esm/models/getcontactinfoschemaop.js.map +1 -0
  189. package/esm/models/getdomainauthcodeop.d.ts +84 -0
  190. package/esm/models/getdomainauthcodeop.d.ts.map +1 -0
  191. package/esm/models/getdomainauthcodeop.js +88 -0
  192. package/esm/models/getdomainauthcodeop.js.map +1 -0
  193. package/esm/models/getdomainavailabilityop.d.ts +84 -0
  194. package/esm/models/getdomainavailabilityop.d.ts.map +1 -0
  195. package/esm/models/getdomainavailabilityop.js +88 -0
  196. package/esm/models/getdomainavailabilityop.js.map +1 -0
  197. package/esm/models/getdomainpriceop.d.ts +101 -0
  198. package/esm/models/getdomainpriceop.d.ts.map +1 -0
  199. package/esm/models/getdomainpriceop.js +96 -0
  200. package/esm/models/getdomainpriceop.js.map +1 -0
  201. package/esm/models/getdomainsop.d.ts +15 -15
  202. package/esm/models/getdomainsop.d.ts.map +1 -1
  203. package/esm/models/getdomainsop.js +15 -15
  204. package/esm/models/getdomainsop.js.map +1 -1
  205. package/esm/models/getdomaintransferinop.d.ts +140 -0
  206. package/esm/models/getdomaintransferinop.d.ts.map +1 -0
  207. package/esm/models/getdomaintransferinop.js +117 -0
  208. package/esm/models/getdomaintransferinop.js.map +1 -0
  209. package/esm/models/getorderop.d.ts +715 -0
  210. package/esm/models/getorderop.d.ts.map +1 -0
  211. package/esm/models/getorderop.js +679 -0
  212. package/esm/models/getorderop.js.map +1 -0
  213. package/esm/models/getsupportedtldsop.d.ts +31 -0
  214. package/esm/models/getsupportedtldsop.d.ts.map +1 -0
  215. package/esm/models/getsupportedtldsop.js +38 -0
  216. package/esm/models/getsupportedtldsop.js.map +1 -0
  217. package/esm/models/gettldpriceop.d.ts +101 -0
  218. package/esm/models/gettldpriceop.d.ts.map +1 -0
  219. package/esm/models/gettldpriceop.js +96 -0
  220. package/esm/models/gettldpriceop.js.map +1 -0
  221. package/esm/models/internalservererror.d.ts +89 -0
  222. package/esm/models/internalservererror.d.ts.map +1 -0
  223. package/esm/models/internalservererror.js +98 -0
  224. package/esm/models/internalservererror.js.map +1 -0
  225. package/esm/models/notauthorizedforscope.d.ts +89 -0
  226. package/esm/models/notauthorizedforscope.d.ts.map +1 -0
  227. package/esm/models/notauthorizedforscope.js +98 -0
  228. package/esm/models/notauthorizedforscope.js.map +1 -0
  229. package/esm/models/renewdomainop.d.ts +257 -0
  230. package/esm/models/renewdomainop.d.ts.map +1 -0
  231. package/esm/models/renewdomainop.js +232 -0
  232. package/esm/models/renewdomainop.js.map +1 -0
  233. package/esm/models/transferindomainop.d.ts +261 -0
  234. package/esm/models/transferindomainop.d.ts.map +1 -0
  235. package/esm/models/transferindomainop.js +234 -0
  236. package/esm/models/transferindomainop.js.map +1 -0
  237. package/esm/models/unauthorized.d.ts +89 -0
  238. package/esm/models/unauthorized.d.ts.map +1 -0
  239. package/esm/models/unauthorized.js +98 -0
  240. package/esm/models/unauthorized.js.map +1 -0
  241. package/esm/models/updatedomainautorenewop.d.ts +83 -0
  242. package/esm/models/updatedomainautorenewop.d.ts.map +1 -0
  243. package/esm/models/updatedomainautorenewop.js +99 -0
  244. package/esm/models/updatedomainautorenewop.js.map +1 -0
  245. package/esm/models/updatedomainnameserversop.d.ts +83 -0
  246. package/esm/models/updatedomainnameserversop.d.ts.map +1 -0
  247. package/esm/models/updatedomainnameserversop.js +99 -0
  248. package/esm/models/updatedomainnameserversop.js.map +1 -0
  249. package/esm/models/updateprojectop.d.ts +30 -30
  250. package/esm/models/updateprojectop.d.ts.map +1 -1
  251. package/esm/models/updateprojectop.js +18 -18
  252. package/esm/models/updateprojectop.js.map +1 -1
  253. package/esm/sdk/domainsregistrar.d.ts +123 -0
  254. package/esm/sdk/domainsregistrar.d.ts.map +1 -0
  255. package/esm/sdk/domainsregistrar.js +158 -0
  256. package/esm/sdk/domainsregistrar.js.map +1 -0
  257. package/esm/sdk/sdk.d.ts +3 -0
  258. package/esm/sdk/sdk.d.ts.map +1 -1
  259. package/esm/sdk/sdk.js +4 -0
  260. package/esm/sdk/sdk.js.map +1 -1
  261. package/examples/package-lock.json +1 -1
  262. package/jsr.json +1 -1
  263. package/package.json +1 -1
  264. package/src/__tests__/accessgroups.test.ts +3 -1
  265. package/src/__tests__/domains.test.ts +6 -9
  266. package/src/__tests__/domainsregistrar.test.ts +313 -0
  267. package/src/__tests__/edgeconfig.test.ts +6 -6
  268. package/src/__tests__/integrations.test.ts +1 -1
  269. package/src/__tests__/logdrains.test.ts +7 -5
  270. package/src/__tests__/rollingrelease.test.ts +1 -2
  271. package/src/__tests__/security.test.ts +1 -11
  272. package/src/funcs/domainsCheckDomainPrice.ts +9 -1
  273. package/src/funcs/domainsRegistrarBuyDomains.ts +204 -0
  274. package/src/funcs/domainsRegistrarBuySingleDomain.ts +211 -0
  275. package/src/funcs/domainsRegistrarGetBulkAvailability.ts +202 -0
  276. package/src/funcs/domainsRegistrarGetContactInfoSchema.ts +210 -0
  277. package/src/funcs/domainsRegistrarGetDomainAuthCode.ts +220 -0
  278. package/src/funcs/domainsRegistrarGetDomainAvailability.ts +218 -0
  279. package/src/funcs/domainsRegistrarGetDomainPrice.ts +210 -0
  280. package/src/funcs/domainsRegistrarGetDomainTransferIn.ts +223 -0
  281. package/src/funcs/domainsRegistrarGetOrder.ts +218 -0
  282. package/src/funcs/domainsRegistrarGetSupportedTlds.ts +178 -0
  283. package/src/funcs/domainsRegistrarGetTldPrice.ts +218 -0
  284. package/src/funcs/domainsRegistrarRenewDomain.ts +219 -0
  285. package/src/funcs/domainsRegistrarTransferInDomain.ts +213 -0
  286. package/src/funcs/domainsRegistrarUpdateDomainAutoRenew.ts +220 -0
  287. package/src/funcs/domainsRegistrarUpdateDomainNameservers.ts +220 -0
  288. package/src/lib/config.ts +3 -3
  289. package/src/mcp-server/mcp-server.ts +1 -1
  290. package/src/mcp-server/server.ts +31 -1
  291. package/src/mcp-server/tools/domainsRegistrarBuyDomains.ts +37 -0
  292. package/src/mcp-server/tools/domainsRegistrarBuySingleDomain.ts +38 -0
  293. package/src/mcp-server/tools/domainsRegistrarGetBulkAvailability.ts +39 -0
  294. package/src/mcp-server/tools/domainsRegistrarGetContactInfoSchema.ts +40 -0
  295. package/src/mcp-server/tools/domainsRegistrarGetDomainAuthCode.ts +39 -0
  296. package/src/mcp-server/tools/domainsRegistrarGetDomainAvailability.ts +39 -0
  297. package/src/mcp-server/tools/domainsRegistrarGetDomainPrice.ts +38 -0
  298. package/src/mcp-server/tools/domainsRegistrarGetDomainTransferIn.ts +39 -0
  299. package/src/mcp-server/tools/domainsRegistrarGetOrder.ts +37 -0
  300. package/src/mcp-server/tools/domainsRegistrarGetSupportedTlds.ts +30 -0
  301. package/src/mcp-server/tools/domainsRegistrarGetTldPrice.ts +37 -0
  302. package/src/mcp-server/tools/domainsRegistrarRenewDomain.ts +37 -0
  303. package/src/mcp-server/tools/domainsRegistrarTransferInDomain.ts +39 -0
  304. package/src/mcp-server/tools/domainsRegistrarUpdateDomainAutoRenew.ts +37 -0
  305. package/src/mcp-server/tools/domainsRegistrarUpdateDomainNameservers.ts +37 -0
  306. package/src/models/buydomainsop.ts +582 -0
  307. package/src/models/buysingledomainop.ts +593 -0
  308. package/src/models/canceldeploymentop.ts +18 -18
  309. package/src/models/createdeploymentop.ts +14 -14
  310. package/src/models/createintegrationstoredirectop.ts +604 -604
  311. package/src/models/createprojectop.ts +30 -30
  312. package/src/models/forbidden.ts +155 -0
  313. package/src/models/getbulkavailabilityop.ts +288 -0
  314. package/src/models/getconfigurationproductsop.ts +802 -802
  315. package/src/models/getcontactinfoschemaop.ts +222 -0
  316. package/src/models/getdomainauthcodeop.ts +227 -0
  317. package/src/models/getdomainavailabilityop.ts +231 -0
  318. package/src/models/getdomainpriceop.ts +247 -0
  319. package/src/models/getdomainsop.ts +50 -43
  320. package/src/models/getdomaintransferinop.ts +268 -0
  321. package/src/models/getorderop.ts +1298 -0
  322. package/src/models/getsupportedtldsop.ts +95 -0
  323. package/src/models/gettldpriceop.ts +248 -0
  324. package/src/models/internalservererror.ts +159 -0
  325. package/src/models/notauthorizedforscope.ts +161 -0
  326. package/src/models/renewdomainop.ts +548 -0
  327. package/src/models/transferindomainop.ts +566 -0
  328. package/src/models/unauthorized.ts +153 -0
  329. package/src/models/updatedomainautorenewop.ts +229 -0
  330. package/src/models/updatedomainnameserversop.ts +233 -0
  331. package/src/models/updateprojectop.ts +30 -30
  332. package/src/sdk/domainsregistrar.ts +323 -0
  333. package/src/sdk/sdk.ts +6 -0
  334. package/vercel-spec.json +3343 -255
  335. package/docs/sdks/vercel/README.md +0 -7
@@ -0,0 +1,1335 @@
1
+ # DomainsRegistrar
2
+ (*domainsRegistrar*)
3
+
4
+ ## Overview
5
+
6
+ ### Available Operations
7
+
8
+ * [getSupportedTlds](#getsupportedtlds) - Get a list of TLDs supported by Vercel
9
+ * [getTldPrice](#gettldprice) - Get price data for a specific TLD
10
+ * [getDomainAvailability](#getdomainavailability) - Get availability for a specific domain
11
+ * [getDomainPrice](#getdomainprice) - Get price data for a specific domain
12
+ * [getBulkAvailability](#getbulkavailability) - Get availability for multiple domains
13
+ * [getDomainAuthCode](#getdomainauthcode) - Get the auth code for a domain
14
+ * [buySingleDomain](#buysingledomain) - Buy a domain
15
+ * [buyDomains](#buydomains) - Buy multiple domains at once
16
+ * [transferInDomain](#transferindomain) - Transfer a domain in from another registrar
17
+ * [getDomainTransferIn](#getdomaintransferin) - Get the transfer status for a domain
18
+ * [renewDomain](#renewdomain) - Renew a domain
19
+ * [updateDomainAutoRenew](#updatedomainautorenew) - Update the auto-renew setting for a domain
20
+ * [updateDomainNameservers](#updatedomainnameservers) - Update the nameservers for a domain
21
+ * [getContactInfoSchema](#getcontactinfoschema) - Get the schema for the tld-specific contact information for a domain
22
+ * [getOrder](#getorder) - Get information about a domain order by its ID
23
+
24
+ ## getSupportedTlds
25
+
26
+ Get supported TLDs
27
+
28
+ ### Example Usage
29
+
30
+ <!-- UsageSnippet language="typescript" operationID="getSupportedTlds" method="get" path="/v1/registrar/tlds/supported" -->
31
+ ```typescript
32
+ import { Vercel } from "@vercel/sdk";
33
+
34
+ const vercel = new Vercel({
35
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
36
+ });
37
+
38
+ async function run() {
39
+ const result = await vercel.domainsRegistrar.getSupportedTlds();
40
+
41
+ console.log(result);
42
+ }
43
+
44
+ run();
45
+ ```
46
+
47
+ ### Standalone function
48
+
49
+ The standalone function version of this method:
50
+
51
+ ```typescript
52
+ import { VercelCore } from "@vercel/sdk/core.js";
53
+ import { domainsRegistrarGetSupportedTlds } from "@vercel/sdk/funcs/domainsRegistrarGetSupportedTlds.js";
54
+
55
+ // Use `VercelCore` for best tree-shaking performance.
56
+ // You can create one instance of it to use across an application.
57
+ const vercel = new VercelCore({
58
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
59
+ });
60
+
61
+ async function run() {
62
+ const res = await domainsRegistrarGetSupportedTlds(vercel);
63
+ if (res.ok) {
64
+ const { value: result } = res;
65
+ console.log(result);
66
+ } else {
67
+ console.log("domainsRegistrarGetSupportedTlds failed:", res.error);
68
+ }
69
+ }
70
+
71
+ run();
72
+ ```
73
+
74
+ ### Parameters
75
+
76
+ | Parameter | Type | Required | Description |
77
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
78
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
79
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
80
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
81
+
82
+ ### Response
83
+
84
+ **Promise\<[string[]](../../models/.md)\>**
85
+
86
+ ### Errors
87
+
88
+ | Error Type | Status Code | Content Type |
89
+ | ---------------------------- | ---------------------------- | ---------------------------- |
90
+ | models.VercelBadRequestError | 400 | application/json |
91
+ | models.VercelForbiddenError | 401 | application/json |
92
+ | models.VercelRateLimitError | 429 | application/json |
93
+ | models.Unauthorized | 500 | application/json |
94
+ | models.NotAuthorizedForScope | 500 | application/json |
95
+ | models.InternalServerError | 500 | application/json |
96
+ | models.SDKError | 4XX, 5XX | \*/\* |
97
+
98
+ ## getTldPrice
99
+
100
+ Get TLD price data
101
+
102
+ ### Example Usage
103
+
104
+ <!-- UsageSnippet language="typescript" operationID="getTldPrice" method="get" path="/v1/registrar/tlds/{tld}/price" -->
105
+ ```typescript
106
+ import { Vercel } from "@vercel/sdk";
107
+
108
+ const vercel = new Vercel({
109
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
110
+ });
111
+
112
+ async function run() {
113
+ const result = await vercel.domainsRegistrar.getTldPrice({
114
+ tld: "<value>",
115
+ });
116
+
117
+ console.log(result);
118
+ }
119
+
120
+ run();
121
+ ```
122
+
123
+ ### Standalone function
124
+
125
+ The standalone function version of this method:
126
+
127
+ ```typescript
128
+ import { VercelCore } from "@vercel/sdk/core.js";
129
+ import { domainsRegistrarGetTldPrice } from "@vercel/sdk/funcs/domainsRegistrarGetTldPrice.js";
130
+
131
+ // Use `VercelCore` for best tree-shaking performance.
132
+ // You can create one instance of it to use across an application.
133
+ const vercel = new VercelCore({
134
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
135
+ });
136
+
137
+ async function run() {
138
+ const res = await domainsRegistrarGetTldPrice(vercel, {
139
+ tld: "<value>",
140
+ });
141
+ if (res.ok) {
142
+ const { value: result } = res;
143
+ console.log(result);
144
+ } else {
145
+ console.log("domainsRegistrarGetTldPrice failed:", res.error);
146
+ }
147
+ }
148
+
149
+ run();
150
+ ```
151
+
152
+ ### Parameters
153
+
154
+ | Parameter | Type | Required | Description |
155
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
156
+ | `request` | [models.GetTldPriceRequest](../../models/gettldpricerequest.md) | :heavy_check_mark: | The request object to use for the request. |
157
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
158
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
159
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
160
+
161
+ ### Response
162
+
163
+ **Promise\<[models.GetTldPriceResponseBody](../../models/gettldpriceresponsebody.md)\>**
164
+
165
+ ### Errors
166
+
167
+ | Error Type | Status Code | Content Type |
168
+ | ---------------------------- | ---------------------------- | ---------------------------- |
169
+ | models.VercelBadRequestError | 400 | application/json |
170
+ | models.VercelForbiddenError | 401 | application/json |
171
+ | models.VercelNotFoundError | 404 | application/json |
172
+ | models.VercelRateLimitError | 429 | application/json |
173
+ | models.Unauthorized | 500 | application/json |
174
+ | models.NotAuthorizedForScope | 500 | application/json |
175
+ | models.InternalServerError | 500 | application/json |
176
+ | models.SDKError | 4XX, 5XX | \*/\* |
177
+
178
+ ## getDomainAvailability
179
+
180
+ Get availability for a specific domain
181
+
182
+ ### Example Usage
183
+
184
+ <!-- UsageSnippet language="typescript" operationID="getDomainAvailability" method="get" path="/v1/registrar/domains/{domain}/availability" -->
185
+ ```typescript
186
+ import { Vercel } from "@vercel/sdk";
187
+
188
+ const vercel = new Vercel({
189
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
190
+ });
191
+
192
+ async function run() {
193
+ const result = await vercel.domainsRegistrar.getDomainAvailability({
194
+ domain: "hungry-birdbath.info",
195
+ });
196
+
197
+ console.log(result);
198
+ }
199
+
200
+ run();
201
+ ```
202
+
203
+ ### Standalone function
204
+
205
+ The standalone function version of this method:
206
+
207
+ ```typescript
208
+ import { VercelCore } from "@vercel/sdk/core.js";
209
+ import { domainsRegistrarGetDomainAvailability } from "@vercel/sdk/funcs/domainsRegistrarGetDomainAvailability.js";
210
+
211
+ // Use `VercelCore` for best tree-shaking performance.
212
+ // You can create one instance of it to use across an application.
213
+ const vercel = new VercelCore({
214
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
215
+ });
216
+
217
+ async function run() {
218
+ const res = await domainsRegistrarGetDomainAvailability(vercel, {
219
+ domain: "hungry-birdbath.info",
220
+ });
221
+ if (res.ok) {
222
+ const { value: result } = res;
223
+ console.log(result);
224
+ } else {
225
+ console.log("domainsRegistrarGetDomainAvailability failed:", res.error);
226
+ }
227
+ }
228
+
229
+ run();
230
+ ```
231
+
232
+ ### Parameters
233
+
234
+ | Parameter | Type | Required | Description |
235
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
236
+ | `request` | [models.GetDomainAvailabilityRequest](../../models/getdomainavailabilityrequest.md) | :heavy_check_mark: | The request object to use for the request. |
237
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
238
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
239
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
240
+
241
+ ### Response
242
+
243
+ **Promise\<[models.GetDomainAvailabilityResponseBody](../../models/getdomainavailabilityresponsebody.md)\>**
244
+
245
+ ### Errors
246
+
247
+ | Error Type | Status Code | Content Type |
248
+ | ---------------------------- | ---------------------------- | ---------------------------- |
249
+ | models.VercelBadRequestError | 400 | application/json |
250
+ | models.VercelForbiddenError | 401 | application/json |
251
+ | models.VercelNotFoundError | 404 | application/json |
252
+ | models.VercelRateLimitError | 429 | application/json |
253
+ | models.Unauthorized | 500 | application/json |
254
+ | models.NotAuthorizedForScope | 500 | application/json |
255
+ | models.InternalServerError | 500 | application/json |
256
+ | models.SDKError | 4XX, 5XX | \*/\* |
257
+
258
+ ## getDomainPrice
259
+
260
+ Get price data for a specific domain
261
+
262
+ ### Example Usage
263
+
264
+ <!-- UsageSnippet language="typescript" operationID="getDomainPrice" method="get" path="/v1/registrar/domains/{domain}/price" -->
265
+ ```typescript
266
+ import { Vercel } from "@vercel/sdk";
267
+
268
+ const vercel = new Vercel({
269
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
270
+ });
271
+
272
+ async function run() {
273
+ const result = await vercel.domainsRegistrar.getDomainPrice({
274
+ domain: "excited-dwell.org",
275
+ });
276
+
277
+ console.log(result);
278
+ }
279
+
280
+ run();
281
+ ```
282
+
283
+ ### Standalone function
284
+
285
+ The standalone function version of this method:
286
+
287
+ ```typescript
288
+ import { VercelCore } from "@vercel/sdk/core.js";
289
+ import { domainsRegistrarGetDomainPrice } from "@vercel/sdk/funcs/domainsRegistrarGetDomainPrice.js";
290
+
291
+ // Use `VercelCore` for best tree-shaking performance.
292
+ // You can create one instance of it to use across an application.
293
+ const vercel = new VercelCore({
294
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
295
+ });
296
+
297
+ async function run() {
298
+ const res = await domainsRegistrarGetDomainPrice(vercel, {
299
+ domain: "excited-dwell.org",
300
+ });
301
+ if (res.ok) {
302
+ const { value: result } = res;
303
+ console.log(result);
304
+ } else {
305
+ console.log("domainsRegistrarGetDomainPrice failed:", res.error);
306
+ }
307
+ }
308
+
309
+ run();
310
+ ```
311
+
312
+ ### Parameters
313
+
314
+ | Parameter | Type | Required | Description |
315
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
316
+ | `request` | [models.GetDomainPriceRequest](../../models/getdomainpricerequest.md) | :heavy_check_mark: | The request object to use for the request. |
317
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
318
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
319
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
320
+
321
+ ### Response
322
+
323
+ **Promise\<[models.GetDomainPriceResponseBody](../../models/getdomainpriceresponsebody.md)\>**
324
+
325
+ ### Errors
326
+
327
+ | Error Type | Status Code | Content Type |
328
+ | ---------------------------- | ---------------------------- | ---------------------------- |
329
+ | models.VercelBadRequestError | 400 | application/json |
330
+ | models.VercelForbiddenError | 401 | application/json |
331
+ | models.VercelRateLimitError | 429 | application/json |
332
+ | models.Unauthorized | 500 | application/json |
333
+ | models.NotAuthorizedForScope | 500 | application/json |
334
+ | models.InternalServerError | 500 | application/json |
335
+ | models.SDKError | 4XX, 5XX | \*/\* |
336
+
337
+ ## getBulkAvailability
338
+
339
+ Get availability for multiple domains
340
+
341
+ ### Example Usage
342
+
343
+ <!-- UsageSnippet language="typescript" operationID="getBulkAvailability" method="post" path="/v1/registrar/domains/availability" -->
344
+ ```typescript
345
+ import { Vercel } from "@vercel/sdk";
346
+
347
+ const vercel = new Vercel({
348
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
349
+ });
350
+
351
+ async function run() {
352
+ const result = await vercel.domainsRegistrar.getBulkAvailability({
353
+ domains: [
354
+ "<value 1>",
355
+ ],
356
+ });
357
+
358
+ console.log(result);
359
+ }
360
+
361
+ run();
362
+ ```
363
+
364
+ ### Standalone function
365
+
366
+ The standalone function version of this method:
367
+
368
+ ```typescript
369
+ import { VercelCore } from "@vercel/sdk/core.js";
370
+ import { domainsRegistrarGetBulkAvailability } from "@vercel/sdk/funcs/domainsRegistrarGetBulkAvailability.js";
371
+
372
+ // Use `VercelCore` for best tree-shaking performance.
373
+ // You can create one instance of it to use across an application.
374
+ const vercel = new VercelCore({
375
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
376
+ });
377
+
378
+ async function run() {
379
+ const res = await domainsRegistrarGetBulkAvailability(vercel, {
380
+ domains: [
381
+ "<value 1>",
382
+ ],
383
+ });
384
+ if (res.ok) {
385
+ const { value: result } = res;
386
+ console.log(result);
387
+ } else {
388
+ console.log("domainsRegistrarGetBulkAvailability failed:", res.error);
389
+ }
390
+ }
391
+
392
+ run();
393
+ ```
394
+
395
+ ### Parameters
396
+
397
+ | Parameter | Type | Required | Description |
398
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
399
+ | `request` | [models.GetBulkAvailabilityRequestBody](../../models/getbulkavailabilityrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
400
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
401
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
402
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
403
+
404
+ ### Response
405
+
406
+ **Promise\<[models.GetBulkAvailabilityResponseBody](../../models/getbulkavailabilityresponsebody.md)\>**
407
+
408
+ ### Errors
409
+
410
+ | Error Type | Status Code | Content Type |
411
+ | ---------------------------- | ---------------------------- | ---------------------------- |
412
+ | models.VercelBadRequestError | 400 | application/json |
413
+ | models.VercelForbiddenError | 401 | application/json |
414
+ | models.VercelRateLimitError | 429 | application/json |
415
+ | models.Unauthorized | 500 | application/json |
416
+ | models.NotAuthorizedForScope | 500 | application/json |
417
+ | models.InternalServerError | 500 | application/json |
418
+ | models.SDKError | 4XX, 5XX | \*/\* |
419
+
420
+ ## getDomainAuthCode
421
+
422
+ Get the auth code for a domain
423
+
424
+ ### Example Usage
425
+
426
+ <!-- UsageSnippet language="typescript" operationID="getDomainAuthCode" method="get" path="/v1/registrar/domains/{domain}/auth-code" -->
427
+ ```typescript
428
+ import { Vercel } from "@vercel/sdk";
429
+
430
+ const vercel = new Vercel({
431
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
432
+ });
433
+
434
+ async function run() {
435
+ const result = await vercel.domainsRegistrar.getDomainAuthCode({
436
+ domain: "ruddy-coil.org",
437
+ });
438
+
439
+ console.log(result);
440
+ }
441
+
442
+ run();
443
+ ```
444
+
445
+ ### Standalone function
446
+
447
+ The standalone function version of this method:
448
+
449
+ ```typescript
450
+ import { VercelCore } from "@vercel/sdk/core.js";
451
+ import { domainsRegistrarGetDomainAuthCode } from "@vercel/sdk/funcs/domainsRegistrarGetDomainAuthCode.js";
452
+
453
+ // Use `VercelCore` for best tree-shaking performance.
454
+ // You can create one instance of it to use across an application.
455
+ const vercel = new VercelCore({
456
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
457
+ });
458
+
459
+ async function run() {
460
+ const res = await domainsRegistrarGetDomainAuthCode(vercel, {
461
+ domain: "ruddy-coil.org",
462
+ });
463
+ if (res.ok) {
464
+ const { value: result } = res;
465
+ console.log(result);
466
+ } else {
467
+ console.log("domainsRegistrarGetDomainAuthCode failed:", res.error);
468
+ }
469
+ }
470
+
471
+ run();
472
+ ```
473
+
474
+ ### Parameters
475
+
476
+ | Parameter | Type | Required | Description |
477
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
478
+ | `request` | [models.GetDomainAuthCodeRequest](../../models/getdomainauthcoderequest.md) | :heavy_check_mark: | The request object to use for the request. |
479
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
480
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
481
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
482
+
483
+ ### Response
484
+
485
+ **Promise\<[models.GetDomainAuthCodeResponseBody](../../models/getdomainauthcoderesponsebody.md)\>**
486
+
487
+ ### Errors
488
+
489
+ | Error Type | Status Code | Content Type |
490
+ | ---------------------------- | ---------------------------- | ---------------------------- |
491
+ | models.VercelBadRequestError | 400 | application/json |
492
+ | models.VercelForbiddenError | 401 | application/json |
493
+ | models.Forbidden | 403 | application/json |
494
+ | models.VercelNotFoundError | 404 | application/json |
495
+ | models.VercelRateLimitError | 429 | application/json |
496
+ | models.Unauthorized | 500 | application/json |
497
+ | models.NotAuthorizedForScope | 500 | application/json |
498
+ | models.InternalServerError | 500 | application/json |
499
+ | models.SDKError | 4XX, 5XX | \*/\* |
500
+
501
+ ## buySingleDomain
502
+
503
+ Buy a domain
504
+
505
+ ### Example Usage
506
+
507
+ <!-- UsageSnippet language="typescript" operationID="buySingleDomain" method="post" path="/v1/registrar/domains/{domain}/buy" -->
508
+ ```typescript
509
+ import { Vercel } from "@vercel/sdk";
510
+
511
+ const vercel = new Vercel({
512
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
513
+ });
514
+
515
+ async function run() {
516
+ const result = await vercel.domainsRegistrar.buySingleDomain({
517
+ domain: "metallic-simple.com",
518
+ requestBody: {
519
+ autoRenew: false,
520
+ years: 7602.67,
521
+ expectedPrice: 7390.34,
522
+ contactInformation: {
523
+ firstName: "Lexie",
524
+ lastName: "Lemke",
525
+ email: "Lionel21@gmail.com",
526
+ phone: "550.220.6330 x258",
527
+ address1: "<value>",
528
+ city: "Spencerport",
529
+ state: "West Virginia",
530
+ zip: "46432",
531
+ country: "Sweden",
532
+ },
533
+ },
534
+ });
535
+
536
+ console.log(result);
537
+ }
538
+
539
+ run();
540
+ ```
541
+
542
+ ### Standalone function
543
+
544
+ The standalone function version of this method:
545
+
546
+ ```typescript
547
+ import { VercelCore } from "@vercel/sdk/core.js";
548
+ import { domainsRegistrarBuySingleDomain } from "@vercel/sdk/funcs/domainsRegistrarBuySingleDomain.js";
549
+
550
+ // Use `VercelCore` for best tree-shaking performance.
551
+ // You can create one instance of it to use across an application.
552
+ const vercel = new VercelCore({
553
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
554
+ });
555
+
556
+ async function run() {
557
+ const res = await domainsRegistrarBuySingleDomain(vercel, {
558
+ domain: "metallic-simple.com",
559
+ requestBody: {
560
+ autoRenew: false,
561
+ years: 7602.67,
562
+ expectedPrice: 7390.34,
563
+ contactInformation: {
564
+ firstName: "Lexie",
565
+ lastName: "Lemke",
566
+ email: "Lionel21@gmail.com",
567
+ phone: "550.220.6330 x258",
568
+ address1: "<value>",
569
+ city: "Spencerport",
570
+ state: "West Virginia",
571
+ zip: "46432",
572
+ country: "Sweden",
573
+ },
574
+ },
575
+ });
576
+ if (res.ok) {
577
+ const { value: result } = res;
578
+ console.log(result);
579
+ } else {
580
+ console.log("domainsRegistrarBuySingleDomain failed:", res.error);
581
+ }
582
+ }
583
+
584
+ run();
585
+ ```
586
+
587
+ ### Parameters
588
+
589
+ | Parameter | Type | Required | Description |
590
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
591
+ | `request` | [models.BuySingleDomainRequest](../../models/buysingledomainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
592
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
593
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
594
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
595
+
596
+ ### Response
597
+
598
+ **Promise\<[models.BuySingleDomainResponseBody](../../models/buysingledomainresponsebody.md)\>**
599
+
600
+ ### Errors
601
+
602
+ | Error Type | Status Code | Content Type |
603
+ | ---------------------------- | ---------------------------- | ---------------------------- |
604
+ | models.VercelBadRequestError | 400 | application/json |
605
+ | models.VercelForbiddenError | 401 | application/json |
606
+ | models.Forbidden | 403 | application/json |
607
+ | models.VercelRateLimitError | 429 | application/json |
608
+ | models.Unauthorized | 500 | application/json |
609
+ | models.NotAuthorizedForScope | 500 | application/json |
610
+ | models.InternalServerError | 500 | application/json |
611
+ | models.SDKError | 4XX, 5XX | \*/\* |
612
+
613
+ ## buyDomains
614
+
615
+ Buy multiple domains
616
+
617
+ ### Example Usage
618
+
619
+ <!-- UsageSnippet language="typescript" operationID="buyDomains" method="post" path="/v1/registrar/domains/buy" -->
620
+ ```typescript
621
+ import { Vercel } from "@vercel/sdk";
622
+
623
+ const vercel = new Vercel({
624
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
625
+ });
626
+
627
+ async function run() {
628
+ const result = await vercel.domainsRegistrar.buyDomains({
629
+ domains: [],
630
+ contactInformation: {
631
+ firstName: "Leonie",
632
+ lastName: "Johnston",
633
+ email: "Anna_Fisher13@hotmail.com",
634
+ phone: "(688) 699-0656",
635
+ address1: "<value>",
636
+ city: "Rennerland",
637
+ state: "New Jersey",
638
+ zip: "70054",
639
+ country: "Peru",
640
+ },
641
+ });
642
+
643
+ console.log(result);
644
+ }
645
+
646
+ run();
647
+ ```
648
+
649
+ ### Standalone function
650
+
651
+ The standalone function version of this method:
652
+
653
+ ```typescript
654
+ import { VercelCore } from "@vercel/sdk/core.js";
655
+ import { domainsRegistrarBuyDomains } from "@vercel/sdk/funcs/domainsRegistrarBuyDomains.js";
656
+
657
+ // Use `VercelCore` for best tree-shaking performance.
658
+ // You can create one instance of it to use across an application.
659
+ const vercel = new VercelCore({
660
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
661
+ });
662
+
663
+ async function run() {
664
+ const res = await domainsRegistrarBuyDomains(vercel, {
665
+ domains: [],
666
+ contactInformation: {
667
+ firstName: "Leonie",
668
+ lastName: "Johnston",
669
+ email: "Anna_Fisher13@hotmail.com",
670
+ phone: "(688) 699-0656",
671
+ address1: "<value>",
672
+ city: "Rennerland",
673
+ state: "New Jersey",
674
+ zip: "70054",
675
+ country: "Peru",
676
+ },
677
+ });
678
+ if (res.ok) {
679
+ const { value: result } = res;
680
+ console.log(result);
681
+ } else {
682
+ console.log("domainsRegistrarBuyDomains failed:", res.error);
683
+ }
684
+ }
685
+
686
+ run();
687
+ ```
688
+
689
+ ### Parameters
690
+
691
+ | Parameter | Type | Required | Description |
692
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
693
+ | `request` | [models.BuyDomainsRequestBody](../../models/buydomainsrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
694
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
695
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
696
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
697
+
698
+ ### Response
699
+
700
+ **Promise\<[models.BuyDomainsResponseBody](../../models/buydomainsresponsebody.md)\>**
701
+
702
+ ### Errors
703
+
704
+ | Error Type | Status Code | Content Type |
705
+ | ---------------------------- | ---------------------------- | ---------------------------- |
706
+ | models.VercelBadRequestError | 400 | application/json |
707
+ | models.VercelForbiddenError | 401 | application/json |
708
+ | models.Forbidden | 403 | application/json |
709
+ | models.VercelRateLimitError | 429 | application/json |
710
+ | models.Unauthorized | 500 | application/json |
711
+ | models.NotAuthorizedForScope | 500 | application/json |
712
+ | models.InternalServerError | 500 | application/json |
713
+ | models.SDKError | 4XX, 5XX | \*/\* |
714
+
715
+ ## transferInDomain
716
+
717
+ Transfer-in a domain
718
+
719
+ ### Example Usage
720
+
721
+ <!-- UsageSnippet language="typescript" operationID="transferInDomain" method="post" path="/v1/registrar/domains/{domain}/transfer" -->
722
+ ```typescript
723
+ import { Vercel } from "@vercel/sdk";
724
+
725
+ const vercel = new Vercel({
726
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
727
+ });
728
+
729
+ async function run() {
730
+ const result = await vercel.domainsRegistrar.transferInDomain({
731
+ domain: "silky-fund.org",
732
+ requestBody: {
733
+ authCode: "<value>",
734
+ autoRenew: true,
735
+ years: 298.08,
736
+ expectedPrice: 5092.5,
737
+ contactInformation: {
738
+ firstName: "Gabrielle",
739
+ lastName: "Hackett",
740
+ email: "Keshawn99@yahoo.com",
741
+ phone: "(758) 385-1802 x13762",
742
+ address1: "<value>",
743
+ city: "Pattiestead",
744
+ state: "Idaho",
745
+ zip: "64653-9022",
746
+ country: "Bolivia",
747
+ },
748
+ },
749
+ });
750
+
751
+ console.log(result);
752
+ }
753
+
754
+ run();
755
+ ```
756
+
757
+ ### Standalone function
758
+
759
+ The standalone function version of this method:
760
+
761
+ ```typescript
762
+ import { VercelCore } from "@vercel/sdk/core.js";
763
+ import { domainsRegistrarTransferInDomain } from "@vercel/sdk/funcs/domainsRegistrarTransferInDomain.js";
764
+
765
+ // Use `VercelCore` for best tree-shaking performance.
766
+ // You can create one instance of it to use across an application.
767
+ const vercel = new VercelCore({
768
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
769
+ });
770
+
771
+ async function run() {
772
+ const res = await domainsRegistrarTransferInDomain(vercel, {
773
+ domain: "silky-fund.org",
774
+ requestBody: {
775
+ authCode: "<value>",
776
+ autoRenew: true,
777
+ years: 298.08,
778
+ expectedPrice: 5092.5,
779
+ contactInformation: {
780
+ firstName: "Gabrielle",
781
+ lastName: "Hackett",
782
+ email: "Keshawn99@yahoo.com",
783
+ phone: "(758) 385-1802 x13762",
784
+ address1: "<value>",
785
+ city: "Pattiestead",
786
+ state: "Idaho",
787
+ zip: "64653-9022",
788
+ country: "Bolivia",
789
+ },
790
+ },
791
+ });
792
+ if (res.ok) {
793
+ const { value: result } = res;
794
+ console.log(result);
795
+ } else {
796
+ console.log("domainsRegistrarTransferInDomain failed:", res.error);
797
+ }
798
+ }
799
+
800
+ run();
801
+ ```
802
+
803
+ ### Parameters
804
+
805
+ | Parameter | Type | Required | Description |
806
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
807
+ | `request` | [models.TransferInDomainRequest](../../models/transferindomainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
808
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
809
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
810
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
811
+
812
+ ### Response
813
+
814
+ **Promise\<[models.TransferInDomainResponseBody](../../models/transferindomainresponsebody.md)\>**
815
+
816
+ ### Errors
817
+
818
+ | Error Type | Status Code | Content Type |
819
+ | ---------------------------- | ---------------------------- | ---------------------------- |
820
+ | models.VercelBadRequestError | 400 | application/json |
821
+ | models.VercelForbiddenError | 401 | application/json |
822
+ | models.Forbidden | 403 | application/json |
823
+ | models.VercelRateLimitError | 429 | application/json |
824
+ | models.Unauthorized | 500 | application/json |
825
+ | models.NotAuthorizedForScope | 500 | application/json |
826
+ | models.InternalServerError | 500 | application/json |
827
+ | models.SDKError | 4XX, 5XX | \*/\* |
828
+
829
+ ## getDomainTransferIn
830
+
831
+ Get a domain's transfer status
832
+
833
+ ### Example Usage
834
+
835
+ <!-- UsageSnippet language="typescript" operationID="getDomainTransferIn" method="get" path="/v1/registrar/domains/{domain}/transfer" -->
836
+ ```typescript
837
+ import { Vercel } from "@vercel/sdk";
838
+
839
+ const vercel = new Vercel({
840
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
841
+ });
842
+
843
+ async function run() {
844
+ const result = await vercel.domainsRegistrar.getDomainTransferIn({
845
+ domain: "unsung-antelope.com",
846
+ });
847
+
848
+ console.log(result);
849
+ }
850
+
851
+ run();
852
+ ```
853
+
854
+ ### Standalone function
855
+
856
+ The standalone function version of this method:
857
+
858
+ ```typescript
859
+ import { VercelCore } from "@vercel/sdk/core.js";
860
+ import { domainsRegistrarGetDomainTransferIn } from "@vercel/sdk/funcs/domainsRegistrarGetDomainTransferIn.js";
861
+
862
+ // Use `VercelCore` for best tree-shaking performance.
863
+ // You can create one instance of it to use across an application.
864
+ const vercel = new VercelCore({
865
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
866
+ });
867
+
868
+ async function run() {
869
+ const res = await domainsRegistrarGetDomainTransferIn(vercel, {
870
+ domain: "unsung-antelope.com",
871
+ });
872
+ if (res.ok) {
873
+ const { value: result } = res;
874
+ console.log(result);
875
+ } else {
876
+ console.log("domainsRegistrarGetDomainTransferIn failed:", res.error);
877
+ }
878
+ }
879
+
880
+ run();
881
+ ```
882
+
883
+ ### Parameters
884
+
885
+ | Parameter | Type | Required | Description |
886
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
887
+ | `request` | [models.GetDomainTransferInRequest](../../models/getdomaintransferinrequest.md) | :heavy_check_mark: | The request object to use for the request. |
888
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
889
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
890
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
891
+
892
+ ### Response
893
+
894
+ **Promise\<[models.GetDomainTransferInResponseBody](../../models/getdomaintransferinresponsebody.md)\>**
895
+
896
+ ### Errors
897
+
898
+ | Error Type | Status Code | Content Type |
899
+ | ---------------------------- | ---------------------------- | ---------------------------- |
900
+ | models.VercelBadRequestError | 400 | application/json |
901
+ | models.VercelForbiddenError | 401 | application/json |
902
+ | models.Forbidden | 403 | application/json |
903
+ | models.VercelNotFoundError | 404 | application/json |
904
+ | models.VercelRateLimitError | 429 | application/json |
905
+ | models.Unauthorized | 500 | application/json |
906
+ | models.NotAuthorizedForScope | 500 | application/json |
907
+ | models.InternalServerError | 500 | application/json |
908
+ | models.SDKError | 4XX, 5XX | \*/\* |
909
+
910
+ ## renewDomain
911
+
912
+ Renew a domain
913
+
914
+ ### Example Usage
915
+
916
+ <!-- UsageSnippet language="typescript" operationID="renewDomain" method="post" path="/v1/registrar/domains/{domain}/renew" -->
917
+ ```typescript
918
+ import { Vercel } from "@vercel/sdk";
919
+
920
+ const vercel = new Vercel({
921
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
922
+ });
923
+
924
+ async function run() {
925
+ const result = await vercel.domainsRegistrar.renewDomain({
926
+ domain: "scaly-daughter.biz",
927
+ requestBody: {
928
+ years: 1981.72,
929
+ expectedPrice: 7096.16,
930
+ },
931
+ });
932
+
933
+ console.log(result);
934
+ }
935
+
936
+ run();
937
+ ```
938
+
939
+ ### Standalone function
940
+
941
+ The standalone function version of this method:
942
+
943
+ ```typescript
944
+ import { VercelCore } from "@vercel/sdk/core.js";
945
+ import { domainsRegistrarRenewDomain } from "@vercel/sdk/funcs/domainsRegistrarRenewDomain.js";
946
+
947
+ // Use `VercelCore` for best tree-shaking performance.
948
+ // You can create one instance of it to use across an application.
949
+ const vercel = new VercelCore({
950
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
951
+ });
952
+
953
+ async function run() {
954
+ const res = await domainsRegistrarRenewDomain(vercel, {
955
+ domain: "scaly-daughter.biz",
956
+ requestBody: {
957
+ years: 1981.72,
958
+ expectedPrice: 7096.16,
959
+ },
960
+ });
961
+ if (res.ok) {
962
+ const { value: result } = res;
963
+ console.log(result);
964
+ } else {
965
+ console.log("domainsRegistrarRenewDomain failed:", res.error);
966
+ }
967
+ }
968
+
969
+ run();
970
+ ```
971
+
972
+ ### Parameters
973
+
974
+ | Parameter | Type | Required | Description |
975
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
976
+ | `request` | [models.RenewDomainRequest](../../models/renewdomainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
977
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
978
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
979
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
980
+
981
+ ### Response
982
+
983
+ **Promise\<[models.RenewDomainResponseBody](../../models/renewdomainresponsebody.md)\>**
984
+
985
+ ### Errors
986
+
987
+ | Error Type | Status Code | Content Type |
988
+ | ---------------------------- | ---------------------------- | ---------------------------- |
989
+ | models.VercelBadRequestError | 400 | application/json |
990
+ | models.VercelForbiddenError | 401 | application/json |
991
+ | models.Forbidden | 403 | application/json |
992
+ | models.VercelNotFoundError | 404 | application/json |
993
+ | models.VercelRateLimitError | 429 | application/json |
994
+ | models.Unauthorized | 500 | application/json |
995
+ | models.NotAuthorizedForScope | 500 | application/json |
996
+ | models.InternalServerError | 500 | application/json |
997
+ | models.SDKError | 4XX, 5XX | \*/\* |
998
+
999
+ ## updateDomainAutoRenew
1000
+
1001
+ Update auto-renew for a domain
1002
+
1003
+ ### Example Usage
1004
+
1005
+ <!-- UsageSnippet language="typescript" operationID="updateDomainAutoRenew" method="patch" path="/v1/registrar/domains/{domain}/auto-renew" -->
1006
+ ```typescript
1007
+ import { Vercel } from "@vercel/sdk";
1008
+
1009
+ const vercel = new Vercel({
1010
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
1011
+ });
1012
+
1013
+ async function run() {
1014
+ await vercel.domainsRegistrar.updateDomainAutoRenew({
1015
+ domain: "worthwhile-dwell.net",
1016
+ requestBody: {
1017
+ autoRenew: true,
1018
+ },
1019
+ });
1020
+
1021
+
1022
+ }
1023
+
1024
+ run();
1025
+ ```
1026
+
1027
+ ### Standalone function
1028
+
1029
+ The standalone function version of this method:
1030
+
1031
+ ```typescript
1032
+ import { VercelCore } from "@vercel/sdk/core.js";
1033
+ import { domainsRegistrarUpdateDomainAutoRenew } from "@vercel/sdk/funcs/domainsRegistrarUpdateDomainAutoRenew.js";
1034
+
1035
+ // Use `VercelCore` for best tree-shaking performance.
1036
+ // You can create one instance of it to use across an application.
1037
+ const vercel = new VercelCore({
1038
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
1039
+ });
1040
+
1041
+ async function run() {
1042
+ const res = await domainsRegistrarUpdateDomainAutoRenew(vercel, {
1043
+ domain: "worthwhile-dwell.net",
1044
+ requestBody: {
1045
+ autoRenew: true,
1046
+ },
1047
+ });
1048
+ if (res.ok) {
1049
+ const { value: result } = res;
1050
+
1051
+ } else {
1052
+ console.log("domainsRegistrarUpdateDomainAutoRenew failed:", res.error);
1053
+ }
1054
+ }
1055
+
1056
+ run();
1057
+ ```
1058
+
1059
+ ### Parameters
1060
+
1061
+ | Parameter | Type | Required | Description |
1062
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1063
+ | `request` | [models.UpdateDomainAutoRenewRequest](../../models/updatedomainautorenewrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1064
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1065
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
1066
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1067
+
1068
+ ### Response
1069
+
1070
+ **Promise\<void\>**
1071
+
1072
+ ### Errors
1073
+
1074
+ | Error Type | Status Code | Content Type |
1075
+ | ---------------------------- | ---------------------------- | ---------------------------- |
1076
+ | models.VercelBadRequestError | 400 | application/json |
1077
+ | models.VercelForbiddenError | 401 | application/json |
1078
+ | models.Forbidden | 403 | application/json |
1079
+ | models.VercelNotFoundError | 404 | application/json |
1080
+ | models.VercelRateLimitError | 429 | application/json |
1081
+ | models.Unauthorized | 500 | application/json |
1082
+ | models.NotAuthorizedForScope | 500 | application/json |
1083
+ | models.InternalServerError | 500 | application/json |
1084
+ | models.SDKError | 4XX, 5XX | \*/\* |
1085
+
1086
+ ## updateDomainNameservers
1087
+
1088
+ Update nameservers for a domain
1089
+
1090
+ ### Example Usage
1091
+
1092
+ <!-- UsageSnippet language="typescript" operationID="updateDomainNameservers" method="patch" path="/v1/registrar/domains/{domain}/nameservers" -->
1093
+ ```typescript
1094
+ import { Vercel } from "@vercel/sdk";
1095
+
1096
+ const vercel = new Vercel({
1097
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
1098
+ });
1099
+
1100
+ async function run() {
1101
+ await vercel.domainsRegistrar.updateDomainNameservers({
1102
+ domain: "unique-formula.biz",
1103
+ requestBody: {
1104
+ nameservers: [
1105
+ "<value 1>",
1106
+ ],
1107
+ },
1108
+ });
1109
+
1110
+
1111
+ }
1112
+
1113
+ run();
1114
+ ```
1115
+
1116
+ ### Standalone function
1117
+
1118
+ The standalone function version of this method:
1119
+
1120
+ ```typescript
1121
+ import { VercelCore } from "@vercel/sdk/core.js";
1122
+ import { domainsRegistrarUpdateDomainNameservers } from "@vercel/sdk/funcs/domainsRegistrarUpdateDomainNameservers.js";
1123
+
1124
+ // Use `VercelCore` for best tree-shaking performance.
1125
+ // You can create one instance of it to use across an application.
1126
+ const vercel = new VercelCore({
1127
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
1128
+ });
1129
+
1130
+ async function run() {
1131
+ const res = await domainsRegistrarUpdateDomainNameservers(vercel, {
1132
+ domain: "unique-formula.biz",
1133
+ requestBody: {
1134
+ nameservers: [
1135
+ "<value 1>",
1136
+ ],
1137
+ },
1138
+ });
1139
+ if (res.ok) {
1140
+ const { value: result } = res;
1141
+
1142
+ } else {
1143
+ console.log("domainsRegistrarUpdateDomainNameservers failed:", res.error);
1144
+ }
1145
+ }
1146
+
1147
+ run();
1148
+ ```
1149
+
1150
+ ### Parameters
1151
+
1152
+ | Parameter | Type | Required | Description |
1153
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1154
+ | `request` | [models.UpdateDomainNameserversRequest](../../models/updatedomainnameserversrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1155
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1156
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
1157
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1158
+
1159
+ ### Response
1160
+
1161
+ **Promise\<void\>**
1162
+
1163
+ ### Errors
1164
+
1165
+ | Error Type | Status Code | Content Type |
1166
+ | ---------------------------- | ---------------------------- | ---------------------------- |
1167
+ | models.VercelBadRequestError | 400 | application/json |
1168
+ | models.VercelForbiddenError | 401 | application/json |
1169
+ | models.Forbidden | 403 | application/json |
1170
+ | models.VercelNotFoundError | 404 | application/json |
1171
+ | models.VercelRateLimitError | 429 | application/json |
1172
+ | models.Unauthorized | 500 | application/json |
1173
+ | models.NotAuthorizedForScope | 500 | application/json |
1174
+ | models.InternalServerError | 500 | application/json |
1175
+ | models.SDKError | 4XX, 5XX | \*/\* |
1176
+
1177
+ ## getContactInfoSchema
1178
+
1179
+ Get contact info schema
1180
+
1181
+ ### Example Usage
1182
+
1183
+ <!-- UsageSnippet language="typescript" operationID="getContactInfoSchema" method="get" path="/v1/registrar/domains/{domain}/contact-info/schema" -->
1184
+ ```typescript
1185
+ import { Vercel } from "@vercel/sdk";
1186
+
1187
+ const vercel = new Vercel({
1188
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
1189
+ });
1190
+
1191
+ async function run() {
1192
+ const result = await vercel.domainsRegistrar.getContactInfoSchema({
1193
+ domain: "tricky-issue.name",
1194
+ });
1195
+
1196
+ console.log(result);
1197
+ }
1198
+
1199
+ run();
1200
+ ```
1201
+
1202
+ ### Standalone function
1203
+
1204
+ The standalone function version of this method:
1205
+
1206
+ ```typescript
1207
+ import { VercelCore } from "@vercel/sdk/core.js";
1208
+ import { domainsRegistrarGetContactInfoSchema } from "@vercel/sdk/funcs/domainsRegistrarGetContactInfoSchema.js";
1209
+
1210
+ // Use `VercelCore` for best tree-shaking performance.
1211
+ // You can create one instance of it to use across an application.
1212
+ const vercel = new VercelCore({
1213
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
1214
+ });
1215
+
1216
+ async function run() {
1217
+ const res = await domainsRegistrarGetContactInfoSchema(vercel, {
1218
+ domain: "tricky-issue.name",
1219
+ });
1220
+ if (res.ok) {
1221
+ const { value: result } = res;
1222
+ console.log(result);
1223
+ } else {
1224
+ console.log("domainsRegistrarGetContactInfoSchema failed:", res.error);
1225
+ }
1226
+ }
1227
+
1228
+ run();
1229
+ ```
1230
+
1231
+ ### Parameters
1232
+
1233
+ | Parameter | Type | Required | Description |
1234
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1235
+ | `request` | [models.GetContactInfoSchemaRequest](../../models/getcontactinfoschemarequest.md) | :heavy_check_mark: | The request object to use for the request. |
1236
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1237
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
1238
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1239
+
1240
+ ### Response
1241
+
1242
+ **Promise\<[models.GetContactInfoSchemaResponseBody](../../models/getcontactinfoschemaresponsebody.md)\>**
1243
+
1244
+ ### Errors
1245
+
1246
+ | Error Type | Status Code | Content Type |
1247
+ | ---------------------------- | ---------------------------- | ---------------------------- |
1248
+ | models.VercelBadRequestError | 400 | application/json |
1249
+ | models.VercelForbiddenError | 401 | application/json |
1250
+ | models.VercelRateLimitError | 429 | application/json |
1251
+ | models.Unauthorized | 500 | application/json |
1252
+ | models.NotAuthorizedForScope | 500 | application/json |
1253
+ | models.InternalServerError | 500 | application/json |
1254
+ | models.SDKError | 4XX, 5XX | \*/\* |
1255
+
1256
+ ## getOrder
1257
+
1258
+ Get a domain order
1259
+
1260
+ ### Example Usage
1261
+
1262
+ <!-- UsageSnippet language="typescript" operationID="getOrder" method="get" path="/v1/registrar/orders/{orderId}" -->
1263
+ ```typescript
1264
+ import { Vercel } from "@vercel/sdk";
1265
+
1266
+ const vercel = new Vercel({
1267
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
1268
+ });
1269
+
1270
+ async function run() {
1271
+ const result = await vercel.domainsRegistrar.getOrder({
1272
+ orderId: "<id>",
1273
+ });
1274
+
1275
+ console.log(result);
1276
+ }
1277
+
1278
+ run();
1279
+ ```
1280
+
1281
+ ### Standalone function
1282
+
1283
+ The standalone function version of this method:
1284
+
1285
+ ```typescript
1286
+ import { VercelCore } from "@vercel/sdk/core.js";
1287
+ import { domainsRegistrarGetOrder } from "@vercel/sdk/funcs/domainsRegistrarGetOrder.js";
1288
+
1289
+ // Use `VercelCore` for best tree-shaking performance.
1290
+ // You can create one instance of it to use across an application.
1291
+ const vercel = new VercelCore({
1292
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
1293
+ });
1294
+
1295
+ async function run() {
1296
+ const res = await domainsRegistrarGetOrder(vercel, {
1297
+ orderId: "<id>",
1298
+ });
1299
+ if (res.ok) {
1300
+ const { value: result } = res;
1301
+ console.log(result);
1302
+ } else {
1303
+ console.log("domainsRegistrarGetOrder failed:", res.error);
1304
+ }
1305
+ }
1306
+
1307
+ run();
1308
+ ```
1309
+
1310
+ ### Parameters
1311
+
1312
+ | Parameter | Type | Required | Description |
1313
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1314
+ | `request` | [models.GetOrderRequest](../../models/getorderrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1315
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1316
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
1317
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1318
+
1319
+ ### Response
1320
+
1321
+ **Promise\<[models.GetOrderResponseBody](../../models/getorderresponsebody.md)\>**
1322
+
1323
+ ### Errors
1324
+
1325
+ | Error Type | Status Code | Content Type |
1326
+ | ---------------------------- | ---------------------------- | ---------------------------- |
1327
+ | models.VercelBadRequestError | 400 | application/json |
1328
+ | models.VercelForbiddenError | 401 | application/json |
1329
+ | models.Forbidden | 403 | application/json |
1330
+ | models.VercelNotFoundError | 404 | application/json |
1331
+ | models.VercelRateLimitError | 429 | application/json |
1332
+ | models.Unauthorized | 500 | application/json |
1333
+ | models.NotAuthorizedForScope | 500 | application/json |
1334
+ | models.InternalServerError | 500 | application/json |
1335
+ | models.SDKError | 4XX, 5XX | \*/\* |