@vercel/sdk 1.13.6 → 1.13.8

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 (287) hide show
  1. package/README.md +3 -1
  2. package/bin/mcp-server.js +1424 -1191
  3. package/bin/mcp-server.js.map +62 -61
  4. package/docs/sdks/domains/README.md +1 -1
  5. package/docs/sdks/domainsregistrar/README.md +73 -32
  6. package/docs/sdks/security/README.md +1 -1
  7. package/esm/__tests__/accessgroups.test.js +2 -6
  8. package/esm/__tests__/accessgroups.test.js.map +1 -1
  9. package/esm/__tests__/domains.test.js +4 -11
  10. package/esm/__tests__/domains.test.js.map +1 -1
  11. package/esm/__tests__/domainsregistrar.test.js +33 -15
  12. package/esm/__tests__/domainsregistrar.test.js.map +1 -1
  13. package/esm/__tests__/edgeconfig.test.js +6 -6
  14. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  15. package/esm/__tests__/integrations.test.js +1 -1
  16. package/esm/__tests__/rollingrelease.test.js +2 -2
  17. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  18. package/esm/__tests__/security.test.js +4 -4
  19. package/esm/__tests__/security.test.js.map +1 -1
  20. package/esm/funcs/domainsGetDomainTransfer.d.ts +1 -1
  21. package/esm/funcs/domainsGetDomainTransfer.js +1 -1
  22. package/esm/funcs/domainsRegistrarBuyDomains.d.ts +2 -2
  23. package/esm/funcs/domainsRegistrarBuyDomains.d.ts.map +1 -1
  24. package/esm/funcs/domainsRegistrarBuyDomains.js +8 -4
  25. package/esm/funcs/domainsRegistrarBuyDomains.js.map +1 -1
  26. package/esm/funcs/domainsRegistrarBuySingleDomain.js +5 -1
  27. package/esm/funcs/domainsRegistrarBuySingleDomain.js.map +1 -1
  28. package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts +2 -2
  29. package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts.map +1 -1
  30. package/esm/funcs/domainsRegistrarGetBulkAvailability.js +8 -4
  31. package/esm/funcs/domainsRegistrarGetBulkAvailability.js.map +1 -1
  32. package/esm/funcs/domainsRegistrarGetContactInfoSchema.js +5 -1
  33. package/esm/funcs/domainsRegistrarGetContactInfoSchema.js.map +1 -1
  34. package/esm/funcs/domainsRegistrarGetDomainAuthCode.js +5 -1
  35. package/esm/funcs/domainsRegistrarGetDomainAuthCode.js.map +1 -1
  36. package/esm/funcs/domainsRegistrarGetDomainAvailability.js +5 -1
  37. package/esm/funcs/domainsRegistrarGetDomainAvailability.js.map +1 -1
  38. package/esm/funcs/domainsRegistrarGetDomainPrice.js +1 -0
  39. package/esm/funcs/domainsRegistrarGetDomainPrice.js.map +1 -1
  40. package/esm/funcs/domainsRegistrarGetDomainTransferIn.js +5 -1
  41. package/esm/funcs/domainsRegistrarGetDomainTransferIn.js.map +1 -1
  42. package/esm/funcs/domainsRegistrarGetOrder.js +5 -1
  43. package/esm/funcs/domainsRegistrarGetOrder.js.map +1 -1
  44. package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts +2 -1
  45. package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts.map +1 -1
  46. package/esm/funcs/domainsRegistrarGetSupportedTlds.js +17 -3
  47. package/esm/funcs/domainsRegistrarGetSupportedTlds.js.map +1 -1
  48. package/esm/funcs/domainsRegistrarGetTldPrice.js +1 -0
  49. package/esm/funcs/domainsRegistrarGetTldPrice.js.map +1 -1
  50. package/esm/funcs/domainsRegistrarRenewDomain.js +5 -1
  51. package/esm/funcs/domainsRegistrarRenewDomain.js.map +1 -1
  52. package/esm/funcs/domainsRegistrarTransferInDomain.js +5 -1
  53. package/esm/funcs/domainsRegistrarTransferInDomain.js.map +1 -1
  54. package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js +5 -1
  55. package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -1
  56. package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js +5 -1
  57. package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js.map +1 -1
  58. package/esm/funcs/projectsPauseProject.js +2 -2
  59. package/esm/funcs/projectsPauseProject.js.map +1 -1
  60. package/esm/funcs/securityGetActiveAttackStatus.d.ts +1 -1
  61. package/esm/funcs/securityGetActiveAttackStatus.js +2 -1
  62. package/esm/funcs/securityGetActiveAttackStatus.js.map +1 -1
  63. package/esm/lib/config.d.ts +3 -3
  64. package/esm/lib/config.js +3 -3
  65. package/esm/lib/config.js.map +1 -1
  66. package/esm/mcp-server/mcp-server.js +1 -1
  67. package/esm/mcp-server/server.js +1 -1
  68. package/esm/mcp-server/tools/domainsGetDomainTransfer.js +1 -1
  69. package/esm/mcp-server/tools/domainsGetDomainTransfer.js.map +1 -1
  70. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.d.ts +1 -1
  71. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js +2 -2
  72. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js.map +1 -1
  73. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.d.ts +1 -1
  74. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js +2 -2
  75. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js.map +1 -1
  76. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts +5 -1
  77. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts.map +1 -1
  78. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js +7 -2
  79. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js.map +1 -1
  80. package/esm/mcp-server/tools/securityGetActiveAttackStatus.js +1 -1
  81. package/esm/mcp-server/tools/securityGetActiveAttackStatus.js.map +1 -1
  82. package/esm/models/buydomainsop.d.ts +27 -0
  83. package/esm/models/buydomainsop.d.ts.map +1 -1
  84. package/esm/models/buydomainsop.js +35 -0
  85. package/esm/models/buydomainsop.js.map +1 -1
  86. package/esm/models/buysingledomainop.d.ts +2 -0
  87. package/esm/models/buysingledomainop.d.ts.map +1 -1
  88. package/esm/models/buysingledomainop.js +2 -0
  89. package/esm/models/buysingledomainop.js.map +1 -1
  90. package/esm/models/canceldeploymentop.d.ts +3 -10
  91. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  92. package/esm/models/canceldeploymentop.js +1 -4
  93. package/esm/models/canceldeploymentop.js.map +1 -1
  94. package/esm/models/createdeploymentop.d.ts +6 -10
  95. package/esm/models/createdeploymentop.d.ts.map +1 -1
  96. package/esm/models/createdeploymentop.js +2 -4
  97. package/esm/models/createdeploymentop.js.map +1 -1
  98. package/esm/models/createintegrationstoredirectop.d.ts +415 -285
  99. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  100. package/esm/models/createintegrationstoredirectop.js +477 -351
  101. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  102. package/esm/models/createprojectenvop.d.ts +6 -6
  103. package/esm/models/createprojectenvop.js +2 -2
  104. package/esm/models/createprojectenvop.js.map +1 -1
  105. package/esm/models/createprojectop.d.ts +38 -30
  106. package/esm/models/createprojectop.d.ts.map +1 -1
  107. package/esm/models/createprojectop.js +22 -18
  108. package/esm/models/createprojectop.js.map +1 -1
  109. package/esm/models/editprojectenvop.d.ts +3 -3
  110. package/esm/models/editprojectenvop.js +1 -1
  111. package/esm/models/editprojectenvop.js.map +1 -1
  112. package/esm/models/filterprojectenvsop.d.ts +9 -9
  113. package/esm/models/filterprojectenvsop.js +3 -3
  114. package/esm/models/filterprojectenvsop.js.map +1 -1
  115. package/esm/models/getactiveattackstatusop.d.ts +4 -2
  116. package/esm/models/getactiveattackstatusop.d.ts.map +1 -1
  117. package/esm/models/getactiveattackstatusop.js +4 -2
  118. package/esm/models/getactiveattackstatusop.js.map +1 -1
  119. package/esm/models/getbulkavailabilityop.d.ts +27 -0
  120. package/esm/models/getbulkavailabilityop.d.ts.map +1 -1
  121. package/esm/models/getbulkavailabilityop.js +36 -0
  122. package/esm/models/getbulkavailabilityop.js.map +1 -1
  123. package/esm/models/getconfigurationproductsop.d.ts +375 -375
  124. package/esm/models/getconfigurationproductsop.js +465 -465
  125. package/esm/models/getcontactinfoschemaop.d.ts +2 -0
  126. package/esm/models/getcontactinfoschemaop.d.ts.map +1 -1
  127. package/esm/models/getcontactinfoschemaop.js +2 -0
  128. package/esm/models/getcontactinfoschemaop.js.map +1 -1
  129. package/esm/models/getdeploymentop.d.ts +3 -10
  130. package/esm/models/getdeploymentop.d.ts.map +1 -1
  131. package/esm/models/getdeploymentop.js +1 -4
  132. package/esm/models/getdeploymentop.js.map +1 -1
  133. package/esm/models/getdeploymentsop.d.ts +3 -0
  134. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  135. package/esm/models/getdeploymentsop.js +1 -0
  136. package/esm/models/getdeploymentsop.js.map +1 -1
  137. package/esm/models/getdomainauthcodeop.d.ts +2 -0
  138. package/esm/models/getdomainauthcodeop.d.ts.map +1 -1
  139. package/esm/models/getdomainauthcodeop.js +2 -0
  140. package/esm/models/getdomainauthcodeop.js.map +1 -1
  141. package/esm/models/getdomainavailabilityop.d.ts +2 -0
  142. package/esm/models/getdomainavailabilityop.d.ts.map +1 -1
  143. package/esm/models/getdomainavailabilityop.js +2 -0
  144. package/esm/models/getdomainavailabilityop.js.map +1 -1
  145. package/esm/models/getdomainpriceop.d.ts +2 -0
  146. package/esm/models/getdomainpriceop.d.ts.map +1 -1
  147. package/esm/models/getdomainpriceop.js +2 -0
  148. package/esm/models/getdomainpriceop.js.map +1 -1
  149. package/esm/models/getdomaintransferinop.d.ts +2 -0
  150. package/esm/models/getdomaintransferinop.d.ts.map +1 -1
  151. package/esm/models/getdomaintransferinop.js +2 -0
  152. package/esm/models/getdomaintransferinop.js.map +1 -1
  153. package/esm/models/getorderop.d.ts +2 -0
  154. package/esm/models/getorderop.d.ts.map +1 -1
  155. package/esm/models/getorderop.js +2 -0
  156. package/esm/models/getorderop.js.map +1 -1
  157. package/esm/models/getprojectenvop.d.ts +9 -9
  158. package/esm/models/getprojectenvop.js +3 -3
  159. package/esm/models/getprojectenvop.js.map +1 -1
  160. package/esm/models/getprojectsop.d.ts +5 -0
  161. package/esm/models/getprojectsop.d.ts.map +1 -1
  162. package/esm/models/getprojectsop.js +3 -0
  163. package/esm/models/getprojectsop.js.map +1 -1
  164. package/esm/models/getsupportedtldsop.d.ts +29 -0
  165. package/esm/models/getsupportedtldsop.d.ts.map +1 -0
  166. package/esm/models/getsupportedtldsop.js +31 -0
  167. package/esm/models/getsupportedtldsop.js.map +1 -0
  168. package/esm/models/gettldpriceop.d.ts +2 -0
  169. package/esm/models/gettldpriceop.d.ts.map +1 -1
  170. package/esm/models/gettldpriceop.js +2 -0
  171. package/esm/models/gettldpriceop.js.map +1 -1
  172. package/esm/models/getwebhooksop.d.ts +3 -0
  173. package/esm/models/getwebhooksop.d.ts.map +1 -1
  174. package/esm/models/getwebhooksop.js +1 -0
  175. package/esm/models/getwebhooksop.js.map +1 -1
  176. package/esm/models/removeprojectenvop.d.ts +9 -9
  177. package/esm/models/removeprojectenvop.js +3 -3
  178. package/esm/models/removeprojectenvop.js.map +1 -1
  179. package/esm/models/renewdomainop.d.ts +2 -0
  180. package/esm/models/renewdomainop.d.ts.map +1 -1
  181. package/esm/models/renewdomainop.js +2 -0
  182. package/esm/models/renewdomainop.js.map +1 -1
  183. package/esm/models/transferindomainop.d.ts +2 -0
  184. package/esm/models/transferindomainop.d.ts.map +1 -1
  185. package/esm/models/transferindomainop.js +2 -0
  186. package/esm/models/transferindomainop.js.map +1 -1
  187. package/esm/models/updatedomainautorenewop.d.ts +2 -0
  188. package/esm/models/updatedomainautorenewop.d.ts.map +1 -1
  189. package/esm/models/updatedomainautorenewop.js +2 -0
  190. package/esm/models/updatedomainautorenewop.js.map +1 -1
  191. package/esm/models/updatedomainnameserversop.d.ts +2 -0
  192. package/esm/models/updatedomainnameserversop.d.ts.map +1 -1
  193. package/esm/models/updatedomainnameserversop.js +2 -0
  194. package/esm/models/updatedomainnameserversop.js.map +1 -1
  195. package/esm/models/updateprojectdatacacheop.d.ts +5 -0
  196. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  197. package/esm/models/updateprojectdatacacheop.js +3 -0
  198. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  199. package/esm/models/updateprojectop.d.ts +38 -30
  200. package/esm/models/updateprojectop.d.ts.map +1 -1
  201. package/esm/models/updateprojectop.js +22 -18
  202. package/esm/models/updateprojectop.js.map +1 -1
  203. package/esm/models/userevent.d.ts +30 -0
  204. package/esm/models/userevent.d.ts.map +1 -1
  205. package/esm/models/userevent.js +22 -0
  206. package/esm/models/userevent.js.map +1 -1
  207. package/esm/sdk/domains.d.ts +1 -1
  208. package/esm/sdk/domains.js +1 -1
  209. package/esm/sdk/domainsregistrar.d.ts +6 -5
  210. package/esm/sdk/domainsregistrar.d.ts.map +1 -1
  211. package/esm/sdk/domainsregistrar.js +2 -2
  212. package/esm/sdk/domainsregistrar.js.map +1 -1
  213. package/esm/sdk/security.d.ts +1 -1
  214. package/esm/sdk/security.js +1 -1
  215. package/examples/package-lock.json +1 -1
  216. package/jsr.json +1 -1
  217. package/package.json +1 -1
  218. package/src/__tests__/accessgroups.test.ts +2 -6
  219. package/src/__tests__/domains.test.ts +4 -11
  220. package/src/__tests__/domainsregistrar.test.ts +33 -15
  221. package/src/__tests__/edgeconfig.test.ts +6 -6
  222. package/src/__tests__/integrations.test.ts +1 -1
  223. package/src/__tests__/rollingrelease.test.ts +2 -2
  224. package/src/__tests__/security.test.ts +4 -4
  225. package/src/funcs/domainsGetDomainTransfer.ts +1 -1
  226. package/src/funcs/domainsRegistrarBuyDomains.ts +12 -7
  227. package/src/funcs/domainsRegistrarBuySingleDomain.ts +6 -1
  228. package/src/funcs/domainsRegistrarGetBulkAvailability.ts +12 -7
  229. package/src/funcs/domainsRegistrarGetContactInfoSchema.ts +6 -1
  230. package/src/funcs/domainsRegistrarGetDomainAuthCode.ts +6 -1
  231. package/src/funcs/domainsRegistrarGetDomainAvailability.ts +6 -1
  232. package/src/funcs/domainsRegistrarGetDomainPrice.ts +1 -0
  233. package/src/funcs/domainsRegistrarGetDomainTransferIn.ts +6 -1
  234. package/src/funcs/domainsRegistrarGetOrder.ts +6 -1
  235. package/src/funcs/domainsRegistrarGetSupportedTlds.ts +26 -0
  236. package/src/funcs/domainsRegistrarGetTldPrice.ts +1 -0
  237. package/src/funcs/domainsRegistrarRenewDomain.ts +6 -1
  238. package/src/funcs/domainsRegistrarTransferInDomain.ts +6 -1
  239. package/src/funcs/domainsRegistrarUpdateDomainAutoRenew.ts +6 -1
  240. package/src/funcs/domainsRegistrarUpdateDomainNameservers.ts +6 -1
  241. package/src/funcs/projectsPauseProject.ts +2 -2
  242. package/src/funcs/securityGetActiveAttackStatus.ts +2 -1
  243. package/src/lib/config.ts +3 -3
  244. package/src/mcp-server/mcp-server.ts +1 -1
  245. package/src/mcp-server/server.ts +1 -1
  246. package/src/mcp-server/tools/domainsGetDomainTransfer.ts +1 -1
  247. package/src/mcp-server/tools/domainsRegistrarBuyDomains.ts +2 -2
  248. package/src/mcp-server/tools/domainsRegistrarGetBulkAvailability.ts +2 -2
  249. package/src/mcp-server/tools/domainsRegistrarGetSupportedTlds.ts +11 -2
  250. package/src/mcp-server/tools/securityGetActiveAttackStatus.ts +1 -1
  251. package/src/models/buydomainsop.ts +70 -0
  252. package/src/models/buysingledomainop.ts +4 -0
  253. package/src/models/canceldeploymentop.ts +1 -14
  254. package/src/models/createdeploymentop.ts +2 -14
  255. package/src/models/createintegrationstoredirectop.ts +821 -604
  256. package/src/models/createprojectenvop.ts +2 -2
  257. package/src/models/createprojectop.ts +36 -30
  258. package/src/models/editprojectenvop.ts +1 -1
  259. package/src/models/filterprojectenvsop.ts +3 -3
  260. package/src/models/getactiveattackstatusop.ts +8 -4
  261. package/src/models/getbulkavailabilityop.ts +71 -0
  262. package/src/models/getconfigurationproductsop.ts +802 -802
  263. package/src/models/getcontactinfoschemaop.ts +4 -0
  264. package/src/models/getdeploymentop.ts +1 -14
  265. package/src/models/getdeploymentsop.ts +1 -0
  266. package/src/models/getdomainauthcodeop.ts +4 -0
  267. package/src/models/getdomainavailabilityop.ts +4 -0
  268. package/src/models/getdomainpriceop.ts +4 -0
  269. package/src/models/getdomaintransferinop.ts +4 -0
  270. package/src/models/getorderop.ts +4 -0
  271. package/src/models/getprojectenvop.ts +3 -3
  272. package/src/models/getprojectsop.ts +5 -0
  273. package/src/models/getsupportedtldsop.ts +66 -0
  274. package/src/models/gettldpriceop.ts +4 -0
  275. package/src/models/getwebhooksop.ts +1 -0
  276. package/src/models/removeprojectenvop.ts +3 -3
  277. package/src/models/renewdomainop.ts +4 -0
  278. package/src/models/transferindomainop.ts +4 -0
  279. package/src/models/updatedomainautorenewop.ts +4 -0
  280. package/src/models/updatedomainnameserversop.ts +4 -0
  281. package/src/models/updateprojectdatacacheop.ts +5 -0
  282. package/src/models/updateprojectop.ts +36 -30
  283. package/src/models/userevent.ts +32 -0
  284. package/src/sdk/domains.ts +1 -1
  285. package/src/sdk/domainsregistrar.ts +7 -4
  286. package/src/sdk/security.ts +1 -1
  287. package/vercel-spec.json +518 -236
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { VercelCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -134,6 +134,10 @@ async function $do(
134
134
  pathParams,
135
135
  );
136
136
 
137
+ const query = encodeFormQuery({
138
+ "teamId": payload.teamId,
139
+ });
140
+
137
141
  const headers = new Headers(compactMap({
138
142
  Accept: "application/json",
139
143
  }));
@@ -163,6 +167,7 @@ async function $do(
163
167
  baseURL: options?.serverURL,
164
168
  path: path,
165
169
  headers: headers,
170
+ query: query,
166
171
  body: body,
167
172
  userAgent: client._options.userAgent,
168
173
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -128,6 +128,7 @@ async function $do(
128
128
  const path = pathToFunc("/v1/registrar/domains/{domain}/price")(pathParams);
129
129
 
130
130
  const query = encodeFormQuery({
131
+ "teamId": payload.teamId,
131
132
  "years": payload.years,
132
133
  });
133
134
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { VercelCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -132,6 +132,10 @@ async function $do(
132
132
  pathParams,
133
133
  );
134
134
 
135
+ const query = encodeFormQuery({
136
+ "teamId": payload.teamId,
137
+ });
138
+
135
139
  const headers = new Headers(compactMap({
136
140
  Accept: "application/json",
137
141
  }));
@@ -161,6 +165,7 @@ async function $do(
161
165
  baseURL: options?.serverURL,
162
166
  path: path,
163
167
  headers: headers,
168
+ query: query,
164
169
  body: body,
165
170
  userAgent: client._options.userAgent,
166
171
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { VercelCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -130,6 +130,10 @@ async function $do(
130
130
 
131
131
  const path = pathToFunc("/v1/registrar/orders/{orderId}")(pathParams);
132
132
 
133
+ const query = encodeFormQuery({
134
+ "teamId": payload.teamId,
135
+ });
136
+
133
137
  const headers = new Headers(compactMap({
134
138
  Accept: "application/json",
135
139
  }));
@@ -159,6 +163,7 @@ async function $do(
159
163
  baseURL: options?.serverURL,
160
164
  path: path,
161
165
  headers: headers,
166
+ query: query,
162
167
  body: body,
163
168
  userAgent: client._options.userAgent,
164
169
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -4,11 +4,17 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { VercelCore } from "../core.js";
7
+ import { encodeFormQuery } from "../lib/encodings.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
9
11
  import { RequestOptions } from "../lib/sdks.js";
10
12
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
13
  import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ GetSupportedTldsRequest,
16
+ GetSupportedTldsRequest$outboundSchema,
17
+ } from "../models/getsupportedtldsop.js";
12
18
  import {
13
19
  HttpApiDecodeError,
14
20
  HttpApiDecodeError$inboundSchema,
@@ -50,6 +56,7 @@ import { Result } from "../types/fp.js";
50
56
  */
51
57
  export function domainsRegistrarGetSupportedTlds(
52
58
  client: VercelCore,
59
+ request: GetSupportedTldsRequest,
53
60
  options?: RequestOptions,
54
61
  ): APIPromise<
55
62
  Result<
@@ -71,12 +78,14 @@ export function domainsRegistrarGetSupportedTlds(
71
78
  > {
72
79
  return new APIPromise($do(
73
80
  client,
81
+ request,
74
82
  options,
75
83
  ));
76
84
  }
77
85
 
78
86
  async function $do(
79
87
  client: VercelCore,
88
+ request: GetSupportedTldsRequest,
80
89
  options?: RequestOptions,
81
90
  ): Promise<
82
91
  [
@@ -99,8 +108,23 @@ async function $do(
99
108
  APICall,
100
109
  ]
101
110
  > {
111
+ const parsed = safeParse(
112
+ request,
113
+ (value) => GetSupportedTldsRequest$outboundSchema.parse(value),
114
+ "Input validation failed",
115
+ );
116
+ if (!parsed.ok) {
117
+ return [parsed, { status: "invalid" }];
118
+ }
119
+ const payload = parsed.value;
120
+ const body = null;
121
+
102
122
  const path = pathToFunc("/v1/registrar/tlds/supported")();
103
123
 
124
+ const query = encodeFormQuery({
125
+ "teamId": payload.teamId,
126
+ });
127
+
104
128
  const headers = new Headers(compactMap({
105
129
  Accept: "application/json",
106
130
  }));
@@ -130,6 +154,8 @@ async function $do(
130
154
  baseURL: options?.serverURL,
131
155
  path: path,
132
156
  headers: headers,
157
+ query: query,
158
+ body: body,
133
159
  userAgent: client._options.userAgent,
134
160
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
161
  }, options);
@@ -128,6 +128,7 @@ async function $do(
128
128
  const path = pathToFunc("/v1/registrar/tlds/{tld}/price")(pathParams);
129
129
 
130
130
  const query = encodeFormQuery({
131
+ "teamId": payload.teamId,
131
132
  "years": payload.years,
132
133
  });
133
134
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { VercelCore } from "../core.js";
6
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -131,6 +131,10 @@ async function $do(
131
131
 
132
132
  const path = pathToFunc("/v1/registrar/domains/{domain}/renew")(pathParams);
133
133
 
134
+ const query = encodeFormQuery({
135
+ "teamId": payload.teamId,
136
+ });
137
+
134
138
  const headers = new Headers(compactMap({
135
139
  "Content-Type": "application/json",
136
140
  Accept: "application/json",
@@ -161,6 +165,7 @@ async function $do(
161
165
  baseURL: options?.serverURL,
162
166
  path: path,
163
167
  headers: headers,
168
+ query: query,
164
169
  body: body,
165
170
  userAgent: client._options.userAgent,
166
171
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { VercelCore } from "../core.js";
6
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -127,6 +127,10 @@ async function $do(
127
127
  pathParams,
128
128
  );
129
129
 
130
+ const query = encodeFormQuery({
131
+ "teamId": payload.teamId,
132
+ });
133
+
130
134
  const headers = new Headers(compactMap({
131
135
  "Content-Type": "application/json",
132
136
  Accept: "application/json",
@@ -157,6 +161,7 @@ async function $do(
157
161
  baseURL: options?.serverURL,
158
162
  path: path,
159
163
  headers: headers,
164
+ query: query,
160
165
  body: body,
161
166
  userAgent: client._options.userAgent,
162
167
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { VercelCore } from "../core.js";
7
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
10
10
  import { safeParse } from "../lib/schemas.js";
@@ -132,6 +132,10 @@ async function $do(
132
132
  pathParams,
133
133
  );
134
134
 
135
+ const query = encodeFormQuery({
136
+ "teamId": payload.teamId,
137
+ });
138
+
135
139
  const headers = new Headers(compactMap({
136
140
  "Content-Type": "application/json",
137
141
  Accept: "application/json",
@@ -162,6 +166,7 @@ async function $do(
162
166
  baseURL: options?.serverURL,
163
167
  path: path,
164
168
  headers: headers,
169
+ query: query,
165
170
  body: body,
166
171
  userAgent: client._options.userAgent,
167
172
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { VercelCore } from "../core.js";
7
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
10
10
  import { safeParse } from "../lib/schemas.js";
@@ -132,6 +132,10 @@ async function $do(
132
132
  pathParams,
133
133
  );
134
134
 
135
+ const query = encodeFormQuery({
136
+ "teamId": payload.teamId,
137
+ });
138
+
135
139
  const headers = new Headers(compactMap({
136
140
  "Content-Type": "application/json",
137
141
  Accept: "application/json",
@@ -162,6 +166,7 @@ async function $do(
162
166
  baseURL: options?.serverURL,
163
167
  path: path,
164
168
  headers: headers,
169
+ query: query,
165
170
  body: body,
166
171
  userAgent: client._options.userAgent,
167
172
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -144,7 +144,7 @@ async function $do(
144
144
 
145
145
  const doResult = await client._do(req, {
146
146
  context,
147
- errorCodes: ["400", "401", "402", "403", "4XX", "500", "5XX"],
147
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
148
148
  retryConfig: context.retryConfig,
149
149
  retryCodes: context.retryCodes,
150
150
  });
@@ -165,7 +165,7 @@ async function $do(
165
165
  | SDKValidationError
166
166
  >(
167
167
  M.nil(200, z.void()),
168
- M.fail([400, 401, 402, 403, "4XX"]),
168
+ M.fail([400, 401, 403, "4XX"]),
169
169
  M.fail([500, "5XX"]),
170
170
  )(response, req);
171
171
  if (!result.ok) {
@@ -33,7 +33,7 @@ import { Result } from "../types/fp.js";
33
33
  * Read active attack data
34
34
  *
35
35
  * @remarks
36
- * Retrieve active attack data within the last 24h window
36
+ * Retrieve active attack data within the last N days (default: 1 day)
37
37
  */
38
38
  export function securityGetActiveAttackStatus(
39
39
  client: VercelCore,
@@ -94,6 +94,7 @@ async function $do(
94
94
 
95
95
  const query = encodeFormQuery({
96
96
  "projectId": payload.projectId,
97
+ "since": payload.since,
97
98
  "slug": payload.slug,
98
99
  "teamId": payload.teamId,
99
100
  });
package/src/lib/config.ts CHANGED
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "0.0.1",
64
- sdkVersion: "1.13.6",
65
- genVersion: "2.723.8",
66
- userAgent: "speakeasy-sdk/typescript 1.13.6 2.723.8 0.0.1 @vercel/sdk",
64
+ sdkVersion: "1.13.8",
65
+ genVersion: "2.723.11",
66
+ userAgent: "speakeasy-sdk/typescript 1.13.8 2.723.11 0.0.1 @vercel/sdk",
67
67
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "1.13.6",
22
+ currentVersion: "1.13.8",
23
23
  },
24
24
  });
25
25
 
@@ -219,7 +219,7 @@ export function createMCPServer(deps: {
219
219
  }) {
220
220
  const server = new McpServer({
221
221
  name: "Vercel",
222
- version: "1.13.6",
222
+ version: "1.13.8",
223
223
  });
224
224
 
225
225
  const client = new VercelCore({
@@ -14,7 +14,7 @@ export const tool$domainsGetDomainTransfer: ToolDefinition<typeof args> = {
14
14
  name: "domains-get-domain-transfer",
15
15
  description: `Get domain transfer info (deprecated)
16
16
 
17
- This endpoint is deprecated and replaced with the endpoint [Get a domain's transfer status](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-a-domain-s-transfer-status). Fetch domain transfer availability or transfer status if a transfer is in progress.`,
17
+ This endpoint is deprecated and replaced with the endpoint [Get a domain's transfer status](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-a-domains-transfer-status). Fetch domain transfer availability or transfer status if a transfer is in progress.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await domainsGetDomainTransfer(
@@ -3,11 +3,11 @@
3
3
  */
4
4
 
5
5
  import { domainsRegistrarBuyDomains } from "../../funcs/domainsRegistrarBuyDomains.js";
6
- import { BuyDomainsRequestBody$inboundSchema } from "../../models/buydomainsop.js";
6
+ import { BuyDomainsRequest$inboundSchema } from "../../models/buydomainsop.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
9
9
  const args = {
10
- request: BuyDomainsRequestBody$inboundSchema,
10
+ request: BuyDomainsRequest$inboundSchema,
11
11
  };
12
12
 
13
13
  export const tool$domainsRegistrarBuyDomains: ToolDefinition<typeof args> = {
@@ -3,11 +3,11 @@
3
3
  */
4
4
 
5
5
  import { domainsRegistrarGetBulkAvailability } from "../../funcs/domainsRegistrarGetBulkAvailability.js";
6
- import { GetBulkAvailabilityRequestBody$inboundSchema } from "../../models/getbulkavailabilityop.js";
6
+ import { GetBulkAvailabilityRequest$inboundSchema } from "../../models/getbulkavailabilityop.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
9
9
  const args = {
10
- request: GetBulkAvailabilityRequestBody$inboundSchema,
10
+ request: GetBulkAvailabilityRequest$inboundSchema,
11
11
  };
12
12
 
13
13
  export const tool$domainsRegistrarGetBulkAvailability: ToolDefinition<
@@ -3,16 +3,25 @@
3
3
  */
4
4
 
5
5
  import { domainsRegistrarGetSupportedTlds } from "../../funcs/domainsRegistrarGetSupportedTlds.js";
6
+ import { GetSupportedTldsRequest$inboundSchema } from "../../models/getsupportedtldsop.js";
6
7
  import { formatResult, ToolDefinition } from "../tools.js";
7
8
 
8
- export const tool$domainsRegistrarGetSupportedTlds: ToolDefinition = {
9
+ const args = {
10
+ request: GetSupportedTldsRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$domainsRegistrarGetSupportedTlds: ToolDefinition<
14
+ typeof args
15
+ > = {
9
16
  name: "domains-registrar-get-supported-tlds",
10
17
  description: `Get supported TLDs
11
18
 
12
19
  Get a list of TLDs supported by Vercel`,
13
- tool: async (client, ctx) => {
20
+ args,
21
+ tool: async (client, args, ctx) => {
14
22
  const [result, apiCall] = await domainsRegistrarGetSupportedTlds(
15
23
  client,
24
+ args.request,
16
25
  { fetchOptions: { signal: ctx.signal } },
17
26
  ).$inspect();
18
27
 
@@ -14,7 +14,7 @@ export const tool$securityGetActiveAttackStatus: ToolDefinition<typeof args> = {
14
14
  name: "security-get-active-attack-status",
15
15
  description: `Read active attack data
16
16
 
17
- Retrieve active attack data within the last 24h window`,
17
+ Retrieve active attack data within the last N days (default: 1 day)`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await securityGetActiveAttackStatus(
@@ -156,6 +156,11 @@ export type BuyDomainsRequestBody = {
156
156
  contactInformation: BuyDomainsContactInformation;
157
157
  };
158
158
 
159
+ export type BuyDomainsRequest = {
160
+ teamId?: string | undefined;
161
+ requestBody: BuyDomainsRequestBody;
162
+ };
163
+
159
164
  /**
160
165
  * NotAuthorizedForScope
161
166
  */
@@ -452,6 +457,71 @@ export function buyDomainsRequestBodyFromJSON(
452
457
  );
453
458
  }
454
459
 
460
+ /** @internal */
461
+ export const BuyDomainsRequest$inboundSchema: z.ZodType<
462
+ BuyDomainsRequest,
463
+ z.ZodTypeDef,
464
+ unknown
465
+ > = z.object({
466
+ teamId: z.string().optional(),
467
+ RequestBody: z.lazy(() => BuyDomainsRequestBody$inboundSchema),
468
+ }).transform((v) => {
469
+ return remap$(v, {
470
+ "RequestBody": "requestBody",
471
+ });
472
+ });
473
+
474
+ /** @internal */
475
+ export type BuyDomainsRequest$Outbound = {
476
+ teamId?: string | undefined;
477
+ RequestBody: BuyDomainsRequestBody$Outbound;
478
+ };
479
+
480
+ /** @internal */
481
+ export const BuyDomainsRequest$outboundSchema: z.ZodType<
482
+ BuyDomainsRequest$Outbound,
483
+ z.ZodTypeDef,
484
+ BuyDomainsRequest
485
+ > = z.object({
486
+ teamId: z.string().optional(),
487
+ requestBody: z.lazy(() => BuyDomainsRequestBody$outboundSchema),
488
+ }).transform((v) => {
489
+ return remap$(v, {
490
+ requestBody: "RequestBody",
491
+ });
492
+ });
493
+
494
+ /**
495
+ * @internal
496
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
497
+ */
498
+ export namespace BuyDomainsRequest$ {
499
+ /** @deprecated use `BuyDomainsRequest$inboundSchema` instead. */
500
+ export const inboundSchema = BuyDomainsRequest$inboundSchema;
501
+ /** @deprecated use `BuyDomainsRequest$outboundSchema` instead. */
502
+ export const outboundSchema = BuyDomainsRequest$outboundSchema;
503
+ /** @deprecated use `BuyDomainsRequest$Outbound` instead. */
504
+ export type Outbound = BuyDomainsRequest$Outbound;
505
+ }
506
+
507
+ export function buyDomainsRequestToJSON(
508
+ buyDomainsRequest: BuyDomainsRequest,
509
+ ): string {
510
+ return JSON.stringify(
511
+ BuyDomainsRequest$outboundSchema.parse(buyDomainsRequest),
512
+ );
513
+ }
514
+
515
+ export function buyDomainsRequestFromJSON(
516
+ jsonString: string,
517
+ ): SafeParseResult<BuyDomainsRequest, SDKValidationError> {
518
+ return safeParse(
519
+ jsonString,
520
+ (x) => BuyDomainsRequest$inboundSchema.parse(JSON.parse(x)),
521
+ `Failed to parse 'BuyDomainsRequest' from JSON`,
522
+ );
523
+ }
524
+
455
525
  /** @internal */
456
526
  export const BuyDomainsDomainsRegistrarResponseResponseBody$inboundSchema:
457
527
  z.ZodType<
@@ -141,6 +141,7 @@ export type BuySingleDomainRequestBody = {
141
141
 
142
142
  export type BuySingleDomainRequest = {
143
143
  domain: string;
144
+ teamId?: string | undefined;
144
145
  requestBody: BuySingleDomainRequestBody;
145
146
  };
146
147
 
@@ -389,6 +390,7 @@ export const BuySingleDomainRequest$inboundSchema: z.ZodType<
389
390
  unknown
390
391
  > = z.object({
391
392
  domain: z.string(),
393
+ teamId: z.string().optional(),
392
394
  RequestBody: z.lazy(() => BuySingleDomainRequestBody$inboundSchema),
393
395
  }).transform((v) => {
394
396
  return remap$(v, {
@@ -399,6 +401,7 @@ export const BuySingleDomainRequest$inboundSchema: z.ZodType<
399
401
  /** @internal */
400
402
  export type BuySingleDomainRequest$Outbound = {
401
403
  domain: string;
404
+ teamId?: string | undefined;
402
405
  RequestBody: BuySingleDomainRequestBody$Outbound;
403
406
  };
404
407
 
@@ -409,6 +412,7 @@ export const BuySingleDomainRequest$outboundSchema: z.ZodType<
409
412
  BuySingleDomainRequest
410
413
  > = z.object({
411
414
  domain: z.string(),
415
+ teamId: z.string().optional(),
412
416
  requestBody: z.lazy(() => BuySingleDomainRequestBody$outboundSchema),
413
417
  }).transform((v) => {
414
418
  return remap$(v, {
@@ -86,6 +86,7 @@ export const CancelDeploymentFramework = {
86
86
  Vuepress: "vuepress",
87
87
  Parcel: "parcel",
88
88
  Fastapi: "fastapi",
89
+ Flask: "flask",
89
90
  Fasthtml: "fasthtml",
90
91
  SanityV3: "sanity-v3",
91
92
  Sanity: "sanity",
@@ -1337,10 +1338,6 @@ export type CancelDeploymentMicrofrontends2 = {
1337
1338
  * Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not.
1338
1339
  */
1339
1340
  microfrontendsAlias2Enabled?: boolean | undefined;
1340
- /**
1341
- * Temporary flag to safely test MFE alias routing in vercel-site production for specific production hosts (not vercel.com)
1342
- */
1343
- microfrontendsAliasRoutingVercelSiteProdTestHost?: boolean | undefined;
1344
1341
  };
1345
1342
 
1346
1343
  export type CancelDeploymentMicrofrontends1 = {
@@ -1361,10 +1358,6 @@ export type CancelDeploymentMicrofrontends1 = {
1361
1358
  * Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not.
1362
1359
  */
1363
1360
  microfrontendsAlias2Enabled?: boolean | undefined;
1364
- /**
1365
- * Temporary flag to safely test MFE alias routing in vercel-site production for specific production hosts (not vercel.com)
1366
- */
1367
- microfrontendsAliasRoutingVercelSiteProdTestHost?: boolean | undefined;
1368
1361
  };
1369
1362
 
1370
1363
  export type CancelDeploymentMicrofrontends =
@@ -8614,7 +8607,6 @@ export const CancelDeploymentMicrofrontends2$inboundSchema: z.ZodType<
8614
8607
  defaultRoute: z.string().optional(),
8615
8608
  groupIds: z.array(z.string()),
8616
8609
  microfrontendsAlias2Enabled: z.boolean().optional(),
8617
- microfrontendsAliasRoutingVercelSiteProdTestHost: z.boolean().optional(),
8618
8610
  });
8619
8611
 
8620
8612
  /** @internal */
@@ -8628,7 +8620,6 @@ export type CancelDeploymentMicrofrontends2$Outbound = {
8628
8620
  defaultRoute?: string | undefined;
8629
8621
  groupIds: Array<string>;
8630
8622
  microfrontendsAlias2Enabled?: boolean | undefined;
8631
- microfrontendsAliasRoutingVercelSiteProdTestHost?: boolean | undefined;
8632
8623
  };
8633
8624
 
8634
8625
  /** @internal */
@@ -8647,7 +8638,6 @@ export const CancelDeploymentMicrofrontends2$outboundSchema: z.ZodType<
8647
8638
  defaultRoute: z.string().optional(),
8648
8639
  groupIds: z.array(z.string()),
8649
8640
  microfrontendsAlias2Enabled: z.boolean().optional(),
8650
- microfrontendsAliasRoutingVercelSiteProdTestHost: z.boolean().optional(),
8651
8641
  });
8652
8642
 
8653
8643
  /**
@@ -8694,7 +8684,6 @@ export const CancelDeploymentMicrofrontends1$inboundSchema: z.ZodType<
8694
8684
  defaultRoute: z.string().optional(),
8695
8685
  groupIds: z.array(z.string()),
8696
8686
  microfrontendsAlias2Enabled: z.boolean().optional(),
8697
- microfrontendsAliasRoutingVercelSiteProdTestHost: z.boolean().optional(),
8698
8687
  });
8699
8688
 
8700
8689
  /** @internal */
@@ -8704,7 +8693,6 @@ export type CancelDeploymentMicrofrontends1$Outbound = {
8704
8693
  defaultRoute?: string | undefined;
8705
8694
  groupIds: Array<string>;
8706
8695
  microfrontendsAlias2Enabled?: boolean | undefined;
8707
- microfrontendsAliasRoutingVercelSiteProdTestHost?: boolean | undefined;
8708
8696
  };
8709
8697
 
8710
8698
  /** @internal */
@@ -8718,7 +8706,6 @@ export const CancelDeploymentMicrofrontends1$outboundSchema: z.ZodType<
8718
8706
  defaultRoute: z.string().optional(),
8719
8707
  groupIds: z.array(z.string()),
8720
8708
  microfrontendsAlias2Enabled: z.boolean().optional(),
8721
- microfrontendsAliasRoutingVercelSiteProdTestHost: z.boolean().optional(),
8722
8709
  });
8723
8710
 
8724
8711
  /**