@vercel/sdk 1.13.7 → 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 (269) hide show
  1. package/README.md +3 -1
  2. package/bin/mcp-server.js +1422 -1192
  3. package/bin/mcp-server.js.map +58 -57
  4. package/docs/sdks/domainsregistrar/README.md +73 -32
  5. package/esm/__tests__/accessgroups.test.js +2 -6
  6. package/esm/__tests__/accessgroups.test.js.map +1 -1
  7. package/esm/__tests__/domains.test.js +7 -2
  8. package/esm/__tests__/domains.test.js.map +1 -1
  9. package/esm/__tests__/domainsregistrar.test.js +33 -15
  10. package/esm/__tests__/domainsregistrar.test.js.map +1 -1
  11. package/esm/__tests__/edgeconfig.test.js +6 -6
  12. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  13. package/esm/__tests__/integrations.test.js +1 -1
  14. package/esm/__tests__/rollingrelease.test.js +2 -6
  15. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  16. package/esm/__tests__/security.test.js +4 -4
  17. package/esm/__tests__/security.test.js.map +1 -1
  18. package/esm/__tests__/teams.test.js +2 -2
  19. package/esm/__tests__/teams.test.js.map +1 -1
  20. package/esm/funcs/domainsRegistrarBuyDomains.d.ts +2 -2
  21. package/esm/funcs/domainsRegistrarBuyDomains.d.ts.map +1 -1
  22. package/esm/funcs/domainsRegistrarBuyDomains.js +8 -4
  23. package/esm/funcs/domainsRegistrarBuyDomains.js.map +1 -1
  24. package/esm/funcs/domainsRegistrarBuySingleDomain.js +5 -1
  25. package/esm/funcs/domainsRegistrarBuySingleDomain.js.map +1 -1
  26. package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts +2 -2
  27. package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts.map +1 -1
  28. package/esm/funcs/domainsRegistrarGetBulkAvailability.js +8 -4
  29. package/esm/funcs/domainsRegistrarGetBulkAvailability.js.map +1 -1
  30. package/esm/funcs/domainsRegistrarGetContactInfoSchema.js +5 -1
  31. package/esm/funcs/domainsRegistrarGetContactInfoSchema.js.map +1 -1
  32. package/esm/funcs/domainsRegistrarGetDomainAuthCode.js +5 -1
  33. package/esm/funcs/domainsRegistrarGetDomainAuthCode.js.map +1 -1
  34. package/esm/funcs/domainsRegistrarGetDomainAvailability.js +5 -1
  35. package/esm/funcs/domainsRegistrarGetDomainAvailability.js.map +1 -1
  36. package/esm/funcs/domainsRegistrarGetDomainPrice.js +1 -0
  37. package/esm/funcs/domainsRegistrarGetDomainPrice.js.map +1 -1
  38. package/esm/funcs/domainsRegistrarGetDomainTransferIn.js +5 -1
  39. package/esm/funcs/domainsRegistrarGetDomainTransferIn.js.map +1 -1
  40. package/esm/funcs/domainsRegistrarGetOrder.js +5 -1
  41. package/esm/funcs/domainsRegistrarGetOrder.js.map +1 -1
  42. package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts +2 -1
  43. package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts.map +1 -1
  44. package/esm/funcs/domainsRegistrarGetSupportedTlds.js +17 -3
  45. package/esm/funcs/domainsRegistrarGetSupportedTlds.js.map +1 -1
  46. package/esm/funcs/domainsRegistrarGetTldPrice.js +1 -0
  47. package/esm/funcs/domainsRegistrarGetTldPrice.js.map +1 -1
  48. package/esm/funcs/domainsRegistrarRenewDomain.js +5 -1
  49. package/esm/funcs/domainsRegistrarRenewDomain.js.map +1 -1
  50. package/esm/funcs/domainsRegistrarTransferInDomain.js +5 -1
  51. package/esm/funcs/domainsRegistrarTransferInDomain.js.map +1 -1
  52. package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js +5 -1
  53. package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -1
  54. package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js +5 -1
  55. package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js.map +1 -1
  56. package/esm/funcs/projectsPauseProject.js +2 -2
  57. package/esm/funcs/projectsPauseProject.js.map +1 -1
  58. package/esm/lib/config.d.ts +3 -3
  59. package/esm/lib/config.js +3 -3
  60. package/esm/lib/config.js.map +1 -1
  61. package/esm/mcp-server/mcp-server.js +1 -1
  62. package/esm/mcp-server/server.js +1 -1
  63. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.d.ts +1 -1
  64. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js +2 -2
  65. package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js.map +1 -1
  66. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.d.ts +1 -1
  67. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js +2 -2
  68. package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js.map +1 -1
  69. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts +5 -1
  70. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts.map +1 -1
  71. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js +7 -2
  72. package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js.map +1 -1
  73. package/esm/models/buydomainsop.d.ts +27 -0
  74. package/esm/models/buydomainsop.d.ts.map +1 -1
  75. package/esm/models/buydomainsop.js +35 -0
  76. package/esm/models/buydomainsop.js.map +1 -1
  77. package/esm/models/buysingledomainop.d.ts +2 -0
  78. package/esm/models/buysingledomainop.d.ts.map +1 -1
  79. package/esm/models/buysingledomainop.js +2 -0
  80. package/esm/models/buysingledomainop.js.map +1 -1
  81. package/esm/models/canceldeploymentop.d.ts +3 -10
  82. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  83. package/esm/models/canceldeploymentop.js +1 -4
  84. package/esm/models/canceldeploymentop.js.map +1 -1
  85. package/esm/models/createdeploymentop.d.ts +6 -10
  86. package/esm/models/createdeploymentop.d.ts.map +1 -1
  87. package/esm/models/createdeploymentop.js +2 -4
  88. package/esm/models/createdeploymentop.js.map +1 -1
  89. package/esm/models/createintegrationstoredirectop.d.ts +415 -285
  90. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  91. package/esm/models/createintegrationstoredirectop.js +477 -351
  92. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  93. package/esm/models/createprojectenvop.d.ts +6 -6
  94. package/esm/models/createprojectenvop.js +2 -2
  95. package/esm/models/createprojectenvop.js.map +1 -1
  96. package/esm/models/createprojectop.d.ts +38 -30
  97. package/esm/models/createprojectop.d.ts.map +1 -1
  98. package/esm/models/createprojectop.js +22 -18
  99. package/esm/models/createprojectop.js.map +1 -1
  100. package/esm/models/editprojectenvop.d.ts +3 -3
  101. package/esm/models/editprojectenvop.js +1 -1
  102. package/esm/models/editprojectenvop.js.map +1 -1
  103. package/esm/models/filterprojectenvsop.d.ts +9 -9
  104. package/esm/models/filterprojectenvsop.js +3 -3
  105. package/esm/models/filterprojectenvsop.js.map +1 -1
  106. package/esm/models/getbulkavailabilityop.d.ts +27 -0
  107. package/esm/models/getbulkavailabilityop.d.ts.map +1 -1
  108. package/esm/models/getbulkavailabilityop.js +36 -0
  109. package/esm/models/getbulkavailabilityop.js.map +1 -1
  110. package/esm/models/getconfigurationproductsop.d.ts +375 -375
  111. package/esm/models/getconfigurationproductsop.js +465 -465
  112. package/esm/models/getcontactinfoschemaop.d.ts +2 -0
  113. package/esm/models/getcontactinfoschemaop.d.ts.map +1 -1
  114. package/esm/models/getcontactinfoschemaop.js +2 -0
  115. package/esm/models/getcontactinfoschemaop.js.map +1 -1
  116. package/esm/models/getdeploymentop.d.ts +3 -10
  117. package/esm/models/getdeploymentop.d.ts.map +1 -1
  118. package/esm/models/getdeploymentop.js +1 -4
  119. package/esm/models/getdeploymentop.js.map +1 -1
  120. package/esm/models/getdeploymentsop.d.ts +3 -0
  121. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  122. package/esm/models/getdeploymentsop.js +1 -0
  123. package/esm/models/getdeploymentsop.js.map +1 -1
  124. package/esm/models/getdomainauthcodeop.d.ts +2 -0
  125. package/esm/models/getdomainauthcodeop.d.ts.map +1 -1
  126. package/esm/models/getdomainauthcodeop.js +2 -0
  127. package/esm/models/getdomainauthcodeop.js.map +1 -1
  128. package/esm/models/getdomainavailabilityop.d.ts +2 -0
  129. package/esm/models/getdomainavailabilityop.d.ts.map +1 -1
  130. package/esm/models/getdomainavailabilityop.js +2 -0
  131. package/esm/models/getdomainavailabilityop.js.map +1 -1
  132. package/esm/models/getdomainpriceop.d.ts +2 -0
  133. package/esm/models/getdomainpriceop.d.ts.map +1 -1
  134. package/esm/models/getdomainpriceop.js +2 -0
  135. package/esm/models/getdomainpriceop.js.map +1 -1
  136. package/esm/models/getdomaintransferinop.d.ts +2 -0
  137. package/esm/models/getdomaintransferinop.d.ts.map +1 -1
  138. package/esm/models/getdomaintransferinop.js +2 -0
  139. package/esm/models/getdomaintransferinop.js.map +1 -1
  140. package/esm/models/getorderop.d.ts +2 -0
  141. package/esm/models/getorderop.d.ts.map +1 -1
  142. package/esm/models/getorderop.js +2 -0
  143. package/esm/models/getorderop.js.map +1 -1
  144. package/esm/models/getprojectenvop.d.ts +9 -9
  145. package/esm/models/getprojectenvop.js +3 -3
  146. package/esm/models/getprojectenvop.js.map +1 -1
  147. package/esm/models/getprojectsop.d.ts +5 -0
  148. package/esm/models/getprojectsop.d.ts.map +1 -1
  149. package/esm/models/getprojectsop.js +3 -0
  150. package/esm/models/getprojectsop.js.map +1 -1
  151. package/esm/models/getsupportedtldsop.d.ts +29 -0
  152. package/esm/models/getsupportedtldsop.d.ts.map +1 -0
  153. package/esm/models/getsupportedtldsop.js +31 -0
  154. package/esm/models/getsupportedtldsop.js.map +1 -0
  155. package/esm/models/gettldpriceop.d.ts +2 -0
  156. package/esm/models/gettldpriceop.d.ts.map +1 -1
  157. package/esm/models/gettldpriceop.js +2 -0
  158. package/esm/models/gettldpriceop.js.map +1 -1
  159. package/esm/models/getwebhooksop.d.ts +3 -0
  160. package/esm/models/getwebhooksop.d.ts.map +1 -1
  161. package/esm/models/getwebhooksop.js +1 -0
  162. package/esm/models/getwebhooksop.js.map +1 -1
  163. package/esm/models/removeprojectenvop.d.ts +9 -9
  164. package/esm/models/removeprojectenvop.js +3 -3
  165. package/esm/models/removeprojectenvop.js.map +1 -1
  166. package/esm/models/renewdomainop.d.ts +2 -0
  167. package/esm/models/renewdomainop.d.ts.map +1 -1
  168. package/esm/models/renewdomainop.js +2 -0
  169. package/esm/models/renewdomainop.js.map +1 -1
  170. package/esm/models/team.d.ts +10 -10
  171. package/esm/models/team.d.ts.map +1 -1
  172. package/esm/models/team.js +5 -5
  173. package/esm/models/team.js.map +1 -1
  174. package/esm/models/transferindomainop.d.ts +2 -0
  175. package/esm/models/transferindomainop.d.ts.map +1 -1
  176. package/esm/models/transferindomainop.js +2 -0
  177. package/esm/models/transferindomainop.js.map +1 -1
  178. package/esm/models/updatedomainautorenewop.d.ts +2 -0
  179. package/esm/models/updatedomainautorenewop.d.ts.map +1 -1
  180. package/esm/models/updatedomainautorenewop.js +2 -0
  181. package/esm/models/updatedomainautorenewop.js.map +1 -1
  182. package/esm/models/updatedomainnameserversop.d.ts +2 -0
  183. package/esm/models/updatedomainnameserversop.d.ts.map +1 -1
  184. package/esm/models/updatedomainnameserversop.js +2 -0
  185. package/esm/models/updatedomainnameserversop.js.map +1 -1
  186. package/esm/models/updateprojectdatacacheop.d.ts +5 -0
  187. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  188. package/esm/models/updateprojectdatacacheop.js +3 -0
  189. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  190. package/esm/models/updateprojectop.d.ts +38 -30
  191. package/esm/models/updateprojectop.d.ts.map +1 -1
  192. package/esm/models/updateprojectop.js +22 -18
  193. package/esm/models/updateprojectop.js.map +1 -1
  194. package/esm/models/userevent.d.ts +30 -0
  195. package/esm/models/userevent.d.ts.map +1 -1
  196. package/esm/models/userevent.js +22 -0
  197. package/esm/models/userevent.js.map +1 -1
  198. package/esm/sdk/domainsregistrar.d.ts +6 -5
  199. package/esm/sdk/domainsregistrar.d.ts.map +1 -1
  200. package/esm/sdk/domainsregistrar.js +2 -2
  201. package/esm/sdk/domainsregistrar.js.map +1 -1
  202. package/examples/package-lock.json +1 -1
  203. package/jsr.json +1 -1
  204. package/package.json +1 -1
  205. package/src/__tests__/accessgroups.test.ts +2 -6
  206. package/src/__tests__/domains.test.ts +7 -2
  207. package/src/__tests__/domainsregistrar.test.ts +33 -15
  208. package/src/__tests__/edgeconfig.test.ts +6 -6
  209. package/src/__tests__/integrations.test.ts +1 -1
  210. package/src/__tests__/rollingrelease.test.ts +2 -6
  211. package/src/__tests__/security.test.ts +4 -4
  212. package/src/__tests__/teams.test.ts +2 -2
  213. package/src/funcs/domainsRegistrarBuyDomains.ts +12 -7
  214. package/src/funcs/domainsRegistrarBuySingleDomain.ts +6 -1
  215. package/src/funcs/domainsRegistrarGetBulkAvailability.ts +12 -7
  216. package/src/funcs/domainsRegistrarGetContactInfoSchema.ts +6 -1
  217. package/src/funcs/domainsRegistrarGetDomainAuthCode.ts +6 -1
  218. package/src/funcs/domainsRegistrarGetDomainAvailability.ts +6 -1
  219. package/src/funcs/domainsRegistrarGetDomainPrice.ts +1 -0
  220. package/src/funcs/domainsRegistrarGetDomainTransferIn.ts +6 -1
  221. package/src/funcs/domainsRegistrarGetOrder.ts +6 -1
  222. package/src/funcs/domainsRegistrarGetSupportedTlds.ts +26 -0
  223. package/src/funcs/domainsRegistrarGetTldPrice.ts +1 -0
  224. package/src/funcs/domainsRegistrarRenewDomain.ts +6 -1
  225. package/src/funcs/domainsRegistrarTransferInDomain.ts +6 -1
  226. package/src/funcs/domainsRegistrarUpdateDomainAutoRenew.ts +6 -1
  227. package/src/funcs/domainsRegistrarUpdateDomainNameservers.ts +6 -1
  228. package/src/funcs/projectsPauseProject.ts +2 -2
  229. package/src/lib/config.ts +3 -3
  230. package/src/mcp-server/mcp-server.ts +1 -1
  231. package/src/mcp-server/server.ts +1 -1
  232. package/src/mcp-server/tools/domainsRegistrarBuyDomains.ts +2 -2
  233. package/src/mcp-server/tools/domainsRegistrarGetBulkAvailability.ts +2 -2
  234. package/src/mcp-server/tools/domainsRegistrarGetSupportedTlds.ts +11 -2
  235. package/src/models/buydomainsop.ts +70 -0
  236. package/src/models/buysingledomainop.ts +4 -0
  237. package/src/models/canceldeploymentop.ts +1 -14
  238. package/src/models/createdeploymentop.ts +2 -14
  239. package/src/models/createintegrationstoredirectop.ts +821 -604
  240. package/src/models/createprojectenvop.ts +2 -2
  241. package/src/models/createprojectop.ts +36 -30
  242. package/src/models/editprojectenvop.ts +1 -1
  243. package/src/models/filterprojectenvsop.ts +3 -3
  244. package/src/models/getbulkavailabilityop.ts +71 -0
  245. package/src/models/getconfigurationproductsop.ts +802 -802
  246. package/src/models/getcontactinfoschemaop.ts +4 -0
  247. package/src/models/getdeploymentop.ts +1 -14
  248. package/src/models/getdeploymentsop.ts +1 -0
  249. package/src/models/getdomainauthcodeop.ts +4 -0
  250. package/src/models/getdomainavailabilityop.ts +4 -0
  251. package/src/models/getdomainpriceop.ts +4 -0
  252. package/src/models/getdomaintransferinop.ts +4 -0
  253. package/src/models/getorderop.ts +4 -0
  254. package/src/models/getprojectenvop.ts +3 -3
  255. package/src/models/getprojectsop.ts +5 -0
  256. package/src/models/getsupportedtldsop.ts +66 -0
  257. package/src/models/gettldpriceop.ts +4 -0
  258. package/src/models/getwebhooksop.ts +1 -0
  259. package/src/models/removeprojectenvop.ts +3 -3
  260. package/src/models/renewdomainop.ts +4 -0
  261. package/src/models/team.ts +12 -12
  262. package/src/models/transferindomainop.ts +4 -0
  263. package/src/models/updatedomainautorenewop.ts +4 -0
  264. package/src/models/updatedomainnameserversop.ts +4 -0
  265. package/src/models/updateprojectdatacacheop.ts +5 -0
  266. package/src/models/updateprojectop.ts +36 -30
  267. package/src/models/userevent.ts +32 -0
  268. package/src/sdk/domainsregistrar.ts +7 -4
  269. package/vercel-spec.json +434 -225
@@ -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) {
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.7",
65
- genVersion: "2.723.8",
66
- userAgent: "speakeasy-sdk/typescript 1.13.7 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.7",
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.7",
222
+ version: "1.13.8",
223
223
  });
224
224
 
225
225
  const client = new VercelCore({
@@ -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
 
@@ -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
  /**
@@ -307,6 +307,7 @@ export const Framework = {
307
307
  Vuepress: "vuepress",
308
308
  Parcel: "parcel",
309
309
  Fastapi: "fastapi",
310
+ Flask: "flask",
310
311
  Fasthtml: "fasthtml",
311
312
  SanityV3: "sanity-v3",
312
313
  Sanity: "sanity",
@@ -525,6 +526,7 @@ export const CreateDeploymentFramework = {
525
526
  Vuepress: "vuepress",
526
527
  Parcel: "parcel",
527
528
  Fastapi: "fastapi",
529
+ Flask: "flask",
528
530
  Fasthtml: "fasthtml",
529
531
  SanityV3: "sanity-v3",
530
532
  Sanity: "sanity",
@@ -1679,10 +1681,6 @@ export type CreateDeploymentMicrofrontends2 = {
1679
1681
  * Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not.
1680
1682
  */
1681
1683
  microfrontendsAlias2Enabled?: boolean | undefined;
1682
- /**
1683
- * Temporary flag to safely test MFE alias routing in vercel-site production for specific production hosts (not vercel.com)
1684
- */
1685
- microfrontendsAliasRoutingVercelSiteProdTestHost?: boolean | undefined;
1686
1684
  };
1687
1685
 
1688
1686
  export type CreateDeploymentMicrofrontends1 = {
@@ -1703,10 +1701,6 @@ export type CreateDeploymentMicrofrontends1 = {
1703
1701
  * Whether the MicrofrontendsAlias2 team flag should be considered enabled for this deployment or not.
1704
1702
  */
1705
1703
  microfrontendsAlias2Enabled?: boolean | undefined;
1706
- /**
1707
- * Temporary flag to safely test MFE alias routing in vercel-site production for specific production hosts (not vercel.com)
1708
- */
1709
- microfrontendsAliasRoutingVercelSiteProdTestHost?: boolean | undefined;
1710
1704
  };
1711
1705
 
1712
1706
  export type CreateDeploymentMicrofrontends =
@@ -9615,7 +9609,6 @@ export const CreateDeploymentMicrofrontends2$inboundSchema: z.ZodType<
9615
9609
  defaultRoute: z.string().optional(),
9616
9610
  groupIds: z.array(z.string()),
9617
9611
  microfrontendsAlias2Enabled: z.boolean().optional(),
9618
- microfrontendsAliasRoutingVercelSiteProdTestHost: z.boolean().optional(),
9619
9612
  });
9620
9613
 
9621
9614
  /** @internal */
@@ -9629,7 +9622,6 @@ export type CreateDeploymentMicrofrontends2$Outbound = {
9629
9622
  defaultRoute?: string | undefined;
9630
9623
  groupIds: Array<string>;
9631
9624
  microfrontendsAlias2Enabled?: boolean | undefined;
9632
- microfrontendsAliasRoutingVercelSiteProdTestHost?: boolean | undefined;
9633
9625
  };
9634
9626
 
9635
9627
  /** @internal */
@@ -9647,7 +9639,6 @@ export const CreateDeploymentMicrofrontends2$outboundSchema: z.ZodType<
9647
9639
  defaultRoute: z.string().optional(),
9648
9640
  groupIds: z.array(z.string()),
9649
9641
  microfrontendsAlias2Enabled: z.boolean().optional(),
9650
- microfrontendsAliasRoutingVercelSiteProdTestHost: z.boolean().optional(),
9651
9642
  });
9652
9643
 
9653
9644
  /**
@@ -9694,7 +9685,6 @@ export const CreateDeploymentMicrofrontends1$inboundSchema: z.ZodType<
9694
9685
  defaultRoute: z.string().optional(),
9695
9686
  groupIds: z.array(z.string()),
9696
9687
  microfrontendsAlias2Enabled: z.boolean().optional(),
9697
- microfrontendsAliasRoutingVercelSiteProdTestHost: z.boolean().optional(),
9698
9688
  });
9699
9689
 
9700
9690
  /** @internal */
@@ -9704,7 +9694,6 @@ export type CreateDeploymentMicrofrontends1$Outbound = {
9704
9694
  defaultRoute?: string | undefined;
9705
9695
  groupIds: Array<string>;
9706
9696
  microfrontendsAlias2Enabled?: boolean | undefined;
9707
- microfrontendsAliasRoutingVercelSiteProdTestHost?: boolean | undefined;
9708
9697
  };
9709
9698
 
9710
9699
  /** @internal */
@@ -9718,7 +9707,6 @@ export const CreateDeploymentMicrofrontends1$outboundSchema: z.ZodType<
9718
9707
  defaultRoute: z.string().optional(),
9719
9708
  groupIds: z.array(z.string()),
9720
9709
  microfrontendsAlias2Enabled: z.boolean().optional(),
9721
- microfrontendsAliasRoutingVercelSiteProdTestHost: z.boolean().optional(),
9722
9710
  });
9723
9711
 
9724
9712
  /**