@vercel/sdk 1.18.3 → 1.18.5

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 (290) hide show
  1. package/README.md +42 -22
  2. package/_speakeasy/.github/action-inputs-config.json +53 -0
  3. package/_speakeasy/.github/action-security-config.json +88 -0
  4. package/bin/mcp-server.js +45798 -27507
  5. package/bin/mcp-server.js.map +232 -65
  6. package/esm/__tests__/accessgroups.test.js +1 -3
  7. package/esm/__tests__/accessgroups.test.js.map +1 -1
  8. package/esm/__tests__/bulkredirects.test.d.ts +2 -0
  9. package/esm/__tests__/bulkredirects.test.d.ts.map +1 -0
  10. package/esm/__tests__/bulkredirects.test.js +171 -0
  11. package/esm/__tests__/bulkredirects.test.js.map +1 -0
  12. package/esm/__tests__/domains.test.js +5 -5
  13. package/esm/__tests__/domains.test.js.map +1 -1
  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 +1 -3
  18. package/esm/__tests__/logdrains.test.js.map +1 -1
  19. package/esm/__tests__/security.test.js +23 -14
  20. package/esm/__tests__/security.test.js.map +1 -1
  21. package/esm/__tests__/vercel.test.js +15 -143
  22. package/esm/__tests__/vercel.test.js.map +1 -1
  23. package/esm/funcs/{deleteV1BulkRedirects.d.ts → bulkRedirectsDeleteRedirects.d.ts} +6 -3
  24. package/esm/funcs/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
  25. package/esm/funcs/{deleteV1BulkRedirects.js → bulkRedirectsDeleteRedirects.js} +18 -8
  26. package/esm/funcs/bulkRedirectsDeleteRedirects.js.map +1 -0
  27. package/esm/funcs/{patchV1BulkRedirects.d.ts → bulkRedirectsEditRedirect.d.ts} +6 -3
  28. package/esm/funcs/bulkRedirectsEditRedirect.d.ts.map +1 -0
  29. package/esm/funcs/{patchV1BulkRedirects.js → bulkRedirectsEditRedirect.js} +18 -8
  30. package/esm/funcs/bulkRedirectsEditRedirect.js.map +1 -0
  31. package/esm/funcs/{getV1BulkRedirects.d.ts → bulkRedirectsGetRedirects.d.ts} +6 -3
  32. package/esm/funcs/bulkRedirectsGetRedirects.d.ts.map +1 -0
  33. package/esm/funcs/{getV1BulkRedirects.js → bulkRedirectsGetRedirects.js} +18 -8
  34. package/esm/funcs/bulkRedirectsGetRedirects.js.map +1 -0
  35. package/esm/funcs/{getV1BulkRedirectsVersions.d.ts → bulkRedirectsGetVersions.d.ts} +6 -3
  36. package/esm/funcs/bulkRedirectsGetVersions.d.ts.map +1 -0
  37. package/esm/funcs/{getV1BulkRedirectsVersions.js → bulkRedirectsGetVersions.js} +18 -8
  38. package/esm/funcs/bulkRedirectsGetVersions.js.map +1 -0
  39. package/esm/funcs/{postV1BulkRedirectsRestore.d.ts → bulkRedirectsRestoreRedirects.d.ts} +6 -3
  40. package/esm/funcs/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
  41. package/esm/funcs/{postV1BulkRedirectsRestore.js → bulkRedirectsRestoreRedirects.js} +18 -8
  42. package/esm/funcs/bulkRedirectsRestoreRedirects.js.map +1 -0
  43. package/esm/funcs/bulkRedirectsStageRedirects.d.ts +17 -0
  44. package/esm/funcs/bulkRedirectsStageRedirects.d.ts.map +1 -0
  45. package/esm/funcs/bulkRedirectsStageRedirects.js +83 -0
  46. package/esm/funcs/bulkRedirectsStageRedirects.js.map +1 -0
  47. package/esm/funcs/{postV1BulkRedirectsVersions.d.ts → bulkRedirectsUpdateVersion.d.ts} +6 -3
  48. package/esm/funcs/bulkRedirectsUpdateVersion.d.ts.map +1 -0
  49. package/esm/funcs/{postV1BulkRedirectsVersions.js → bulkRedirectsUpdateVersion.js} +18 -8
  50. package/esm/funcs/bulkRedirectsUpdateVersion.js.map +1 -0
  51. package/esm/lib/config.d.ts +3 -3
  52. package/esm/lib/config.js +3 -3
  53. package/esm/mcp-server/mcp-server.js +1 -1
  54. package/esm/mcp-server/prompts.d.ts +3 -3
  55. package/esm/mcp-server/prompts.d.ts.map +1 -1
  56. package/esm/mcp-server/prompts.js.map +1 -1
  57. package/esm/mcp-server/resources.d.ts +3 -3
  58. package/esm/mcp-server/resources.d.ts.map +1 -1
  59. package/esm/mcp-server/resources.js.map +1 -1
  60. package/esm/mcp-server/server.js +15 -15
  61. package/esm/mcp-server/server.js.map +1 -1
  62. package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts +7 -0
  63. package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
  64. package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js +28 -0
  65. package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js.map +1 -0
  66. package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts +7 -0
  67. package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts.map +1 -0
  68. package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js +28 -0
  69. package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js.map +1 -0
  70. package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts +7 -0
  71. package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts.map +1 -0
  72. package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js +28 -0
  73. package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js.map +1 -0
  74. package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts +7 -0
  75. package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts.map +1 -0
  76. package/esm/mcp-server/tools/bulkRedirectsGetVersions.js +28 -0
  77. package/esm/mcp-server/tools/bulkRedirectsGetVersions.js.map +1 -0
  78. package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts +7 -0
  79. package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
  80. package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js +28 -0
  81. package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js.map +1 -0
  82. package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts +7 -0
  83. package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts.map +1 -0
  84. package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js +28 -0
  85. package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js.map +1 -0
  86. package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts +7 -0
  87. package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts.map +1 -0
  88. package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js +28 -0
  89. package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js.map +1 -0
  90. package/esm/mcp-server/tools.d.ts +3 -3
  91. package/esm/mcp-server/tools.d.ts.map +1 -1
  92. package/esm/mcp-server/tools.js.map +1 -1
  93. package/esm/models/artifactqueryop.d.ts +8 -8
  94. package/esm/models/artifactqueryop.d.ts.map +1 -1
  95. package/esm/models/artifactqueryop.js +8 -8
  96. package/esm/models/artifactqueryop.js.map +1 -1
  97. package/esm/models/createintegrationstoredirectop.d.ts +152 -152
  98. package/esm/models/createintegrationstoredirectop.js +218 -218
  99. package/esm/models/createwebhookop.d.ts +0 -2
  100. package/esm/models/createwebhookop.d.ts.map +1 -1
  101. package/esm/models/createwebhookop.js +0 -2
  102. package/esm/models/createwebhookop.js.map +1 -1
  103. package/esm/models/deleteredirectsop.d.ts +112 -0
  104. package/esm/models/deleteredirectsop.d.ts.map +1 -0
  105. package/esm/models/deleteredirectsop.js +99 -0
  106. package/esm/models/deleteredirectsop.js.map +1 -0
  107. package/esm/models/{patchv1bulkredirectsop.d.ts → editredirectop.d.ts} +39 -29
  108. package/esm/models/editredirectop.d.ts.map +1 -0
  109. package/esm/models/editredirectop.js +123 -0
  110. package/esm/models/editredirectop.js.map +1 -0
  111. package/esm/models/getconfigurationproductsop.d.ts +200 -200
  112. package/esm/models/getconfigurationproductsop.js +290 -290
  113. package/esm/models/getfirewallconfigop.d.ts +8 -8
  114. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  115. package/esm/models/getfirewallconfigop.js +10 -8
  116. package/esm/models/getfirewallconfigop.js.map +1 -1
  117. package/esm/models/{getv1bulkredirectsop.d.ts → getredirectsop.d.ts} +37 -27
  118. package/esm/models/getredirectsop.d.ts.map +1 -0
  119. package/esm/models/{getv1bulkredirectsop.js → getredirectsop.js} +38 -28
  120. package/esm/models/getredirectsop.js.map +1 -0
  121. package/esm/models/{getv1bulkredirectsversionsop.d.ts → getversionsop.d.ts} +23 -13
  122. package/esm/models/getversionsop.d.ts.map +1 -0
  123. package/esm/models/{getv1bulkredirectsversionsop.js → getversionsop.js} +17 -13
  124. package/esm/models/getversionsop.js.map +1 -0
  125. package/esm/models/getwebhookop.d.ts +0 -1
  126. package/esm/models/getwebhookop.d.ts.map +1 -1
  127. package/esm/models/getwebhookop.js +0 -1
  128. package/esm/models/getwebhookop.js.map +1 -1
  129. package/esm/models/getwebhooksop.d.ts +0 -2
  130. package/esm/models/getwebhooksop.d.ts.map +1 -1
  131. package/esm/models/getwebhooksop.js +0 -2
  132. package/esm/models/getwebhooksop.js.map +1 -1
  133. package/esm/models/listaccessgroupsop.d.ts +8 -8
  134. package/esm/models/listaccessgroupsop.d.ts.map +1 -1
  135. package/esm/models/listaccessgroupsop.js +8 -8
  136. package/esm/models/listaccessgroupsop.js.map +1 -1
  137. package/esm/models/putfirewallconfigop.d.ts +11 -6
  138. package/esm/models/putfirewallconfigop.d.ts.map +1 -1
  139. package/esm/models/putfirewallconfigop.js +12 -2
  140. package/esm/models/putfirewallconfigop.js.map +1 -1
  141. package/esm/models/restoreredirectsop.d.ts +114 -0
  142. package/esm/models/restoreredirectsop.d.ts.map +1 -0
  143. package/esm/models/restoreredirectsop.js +101 -0
  144. package/esm/models/restoreredirectsop.js.map +1 -0
  145. package/esm/models/{putv1bulkredirectsop.d.ts → stageredirectsop.d.ts} +44 -21
  146. package/esm/models/stageredirectsop.d.ts.map +1 -0
  147. package/esm/models/stageredirectsop.js +136 -0
  148. package/esm/models/stageredirectsop.js.map +1 -0
  149. package/esm/models/team.d.ts +6 -6
  150. package/esm/models/team.d.ts.map +1 -1
  151. package/esm/models/team.js +6 -4
  152. package/esm/models/team.js.map +1 -1
  153. package/esm/models/updateversionop.d.ts +120 -0
  154. package/esm/models/updateversionop.d.ts.map +1 -0
  155. package/esm/models/updateversionop.js +106 -0
  156. package/esm/models/updateversionop.js.map +1 -0
  157. package/esm/sdk/bulkredirects.d.ts +60 -0
  158. package/esm/sdk/bulkredirects.d.ts.map +1 -0
  159. package/esm/sdk/bulkredirects.js +78 -0
  160. package/esm/sdk/bulkredirects.js.map +1 -0
  161. package/esm/sdk/sdk.d.ts +4 -33
  162. package/esm/sdk/sdk.d.ts.map +1 -1
  163. package/esm/sdk/sdk.js +4 -47
  164. package/esm/sdk/sdk.js.map +1 -1
  165. package/examples/package-lock.json +2 -2
  166. package/jsr.json +1 -1
  167. package/package.json +2 -2
  168. package/src/__tests__/accessgroups.test.ts +1 -3
  169. package/src/__tests__/bulkredirects.test.ts +192 -0
  170. package/src/__tests__/domains.test.ts +5 -5
  171. package/src/__tests__/edgeconfig.test.ts +6 -6
  172. package/src/__tests__/integrations.test.ts +1 -1
  173. package/src/__tests__/logdrains.test.ts +1 -3
  174. package/src/__tests__/security.test.ts +23 -14
  175. package/src/__tests__/vercel.test.ts +26 -160
  176. package/src/funcs/{deleteV1BulkRedirects.ts → bulkRedirectsDeleteRedirects.ts} +27 -16
  177. package/src/funcs/{patchV1BulkRedirects.ts → bulkRedirectsEditRedirect.ts} +28 -17
  178. package/src/funcs/{getV1BulkRedirects.ts → bulkRedirectsGetRedirects.ts} +27 -16
  179. package/src/funcs/{getV1BulkRedirectsVersions.ts → bulkRedirectsGetVersions.ts} +27 -16
  180. package/src/funcs/{postV1BulkRedirectsRestore.ts → bulkRedirectsRestoreRedirects.ts} +28 -17
  181. package/src/funcs/bulkRedirectsStageRedirects.ts +171 -0
  182. package/src/funcs/{postV1BulkRedirectsVersions.ts → bulkRedirectsUpdateVersion.ts} +28 -17
  183. package/src/lib/config.ts +3 -3
  184. package/src/mcp-server/mcp-server.ts +1 -1
  185. package/src/mcp-server/prompts.ts +7 -3
  186. package/src/mcp-server/resources.ts +7 -3
  187. package/src/mcp-server/server.ts +15 -15
  188. package/src/mcp-server/tools/bulkRedirectsDeleteRedirects.ts +37 -0
  189. package/src/mcp-server/tools/bulkRedirectsEditRedirect.ts +37 -0
  190. package/src/mcp-server/tools/{getV1BulkRedirects.ts → bulkRedirectsGetRedirects.ts} +9 -7
  191. package/src/mcp-server/tools/{putV1BulkRedirects.ts → bulkRedirectsGetVersions.ts} +9 -7
  192. package/src/mcp-server/tools/bulkRedirectsRestoreRedirects.ts +38 -0
  193. package/src/mcp-server/tools/bulkRedirectsStageRedirects.ts +37 -0
  194. package/src/mcp-server/tools/bulkRedirectsUpdateVersion.ts +38 -0
  195. package/src/mcp-server/tools.ts +7 -3
  196. package/src/models/artifactqueryop.ts +17 -21
  197. package/src/models/createintegrationstoredirectop.ts +471 -471
  198. package/src/models/createwebhookop.ts +0 -2
  199. package/src/models/deleteredirectsop.ts +275 -0
  200. package/src/models/{patchv1bulkredirectsop.ts → editredirectop.ts} +78 -74
  201. package/src/models/getconfigurationproductsop.ts +627 -627
  202. package/src/models/getfirewallconfigop.ts +25 -17
  203. package/src/models/{getv1bulkredirectsop.ts → getredirectsop.ts} +91 -66
  204. package/src/models/{getv1bulkredirectsversionsop.ts → getversionsop.ts} +42 -34
  205. package/src/models/getwebhookop.ts +0 -1
  206. package/src/models/getwebhooksop.ts +0 -2
  207. package/src/models/listaccessgroupsop.ts +18 -26
  208. package/src/models/putfirewallconfigop.ts +35 -4
  209. package/src/models/restoreredirectsop.ts +281 -0
  210. package/src/models/{putv1bulkredirectsop.ts → stageredirectsop.ts} +113 -50
  211. package/src/models/team.ts +14 -10
  212. package/src/models/updateversionop.ts +285 -0
  213. package/src/sdk/bulkredirects.ts +162 -0
  214. package/src/sdk/sdk.ts +7 -132
  215. package/vercel-spec.json +297 -131
  216. package/esm/funcs/deleteV1BulkRedirects.d.ts.map +0 -1
  217. package/esm/funcs/deleteV1BulkRedirects.js.map +0 -1
  218. package/esm/funcs/getV1BulkRedirects.d.ts.map +0 -1
  219. package/esm/funcs/getV1BulkRedirects.js.map +0 -1
  220. package/esm/funcs/getV1BulkRedirectsVersions.d.ts.map +0 -1
  221. package/esm/funcs/getV1BulkRedirectsVersions.js.map +0 -1
  222. package/esm/funcs/patchV1BulkRedirects.d.ts.map +0 -1
  223. package/esm/funcs/patchV1BulkRedirects.js.map +0 -1
  224. package/esm/funcs/postV1BulkRedirectsRestore.d.ts.map +0 -1
  225. package/esm/funcs/postV1BulkRedirectsRestore.js.map +0 -1
  226. package/esm/funcs/postV1BulkRedirectsVersions.d.ts.map +0 -1
  227. package/esm/funcs/postV1BulkRedirectsVersions.js.map +0 -1
  228. package/esm/funcs/putV1BulkRedirects.d.ts +0 -11
  229. package/esm/funcs/putV1BulkRedirects.d.ts.map +0 -1
  230. package/esm/funcs/putV1BulkRedirects.js +0 -69
  231. package/esm/funcs/putV1BulkRedirects.js.map +0 -1
  232. package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts +0 -7
  233. package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts.map +0 -1
  234. package/esm/mcp-server/tools/deleteV1BulkRedirects.js +0 -26
  235. package/esm/mcp-server/tools/deleteV1BulkRedirects.js.map +0 -1
  236. package/esm/mcp-server/tools/getV1BulkRedirects.d.ts +0 -7
  237. package/esm/mcp-server/tools/getV1BulkRedirects.d.ts.map +0 -1
  238. package/esm/mcp-server/tools/getV1BulkRedirects.js +0 -26
  239. package/esm/mcp-server/tools/getV1BulkRedirects.js.map +0 -1
  240. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts +0 -7
  241. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts.map +0 -1
  242. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js +0 -26
  243. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js.map +0 -1
  244. package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts +0 -7
  245. package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts.map +0 -1
  246. package/esm/mcp-server/tools/patchV1BulkRedirects.js +0 -26
  247. package/esm/mcp-server/tools/patchV1BulkRedirects.js.map +0 -1
  248. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts +0 -7
  249. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts.map +0 -1
  250. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js +0 -26
  251. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js.map +0 -1
  252. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts +0 -7
  253. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts.map +0 -1
  254. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js +0 -26
  255. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js.map +0 -1
  256. package/esm/mcp-server/tools/putV1BulkRedirects.d.ts +0 -7
  257. package/esm/mcp-server/tools/putV1BulkRedirects.d.ts.map +0 -1
  258. package/esm/mcp-server/tools/putV1BulkRedirects.js +0 -26
  259. package/esm/mcp-server/tools/putV1BulkRedirects.js.map +0 -1
  260. package/esm/models/deletev1bulkredirectsop.d.ts +0 -102
  261. package/esm/models/deletev1bulkredirectsop.d.ts.map +0 -1
  262. package/esm/models/deletev1bulkredirectsop.js +0 -95
  263. package/esm/models/deletev1bulkredirectsop.js.map +0 -1
  264. package/esm/models/getv1bulkredirectsop.d.ts.map +0 -1
  265. package/esm/models/getv1bulkredirectsop.js.map +0 -1
  266. package/esm/models/getv1bulkredirectsversionsop.d.ts.map +0 -1
  267. package/esm/models/getv1bulkredirectsversionsop.js.map +0 -1
  268. package/esm/models/patchv1bulkredirectsop.d.ts.map +0 -1
  269. package/esm/models/patchv1bulkredirectsop.js +0 -121
  270. package/esm/models/patchv1bulkredirectsop.js.map +0 -1
  271. package/esm/models/postv1bulkredirectsrestoreop.d.ts +0 -104
  272. package/esm/models/postv1bulkredirectsrestoreop.d.ts.map +0 -1
  273. package/esm/models/postv1bulkredirectsrestoreop.js +0 -96
  274. package/esm/models/postv1bulkredirectsrestoreop.js.map +0 -1
  275. package/esm/models/postv1bulkredirectsversionsop.d.ts +0 -110
  276. package/esm/models/postv1bulkredirectsversionsop.d.ts.map +0 -1
  277. package/esm/models/postv1bulkredirectsversionsop.js +0 -102
  278. package/esm/models/postv1bulkredirectsversionsop.js.map +0 -1
  279. package/esm/models/putv1bulkredirectsop.d.ts.map +0 -1
  280. package/esm/models/putv1bulkredirectsop.js +0 -108
  281. package/esm/models/putv1bulkredirectsop.js.map +0 -1
  282. package/src/funcs/putV1BulkRedirects.ts +0 -156
  283. package/src/mcp-server/tools/deleteV1BulkRedirects.ts +0 -36
  284. package/src/mcp-server/tools/getV1BulkRedirectsVersions.ts +0 -35
  285. package/src/mcp-server/tools/patchV1BulkRedirects.ts +0 -36
  286. package/src/mcp-server/tools/postV1BulkRedirectsRestore.ts +0 -36
  287. package/src/mcp-server/tools/postV1BulkRedirectsVersions.ts +0 -36
  288. package/src/models/deletev1bulkredirectsop.ts +0 -267
  289. package/src/models/postv1bulkredirectsrestoreop.ts +0 -275
  290. package/src/models/postv1bulkredirectsversionsop.ts +0 -296
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../lib/primitives.js";
6
7
  import { safeParse } from "../lib/schemas.js";
7
8
  import { Result as SafeParseResult } from "../types/fp.js";
8
9
  import { SDKValidationError } from "./sdkvalidationerror.js";
@@ -18,7 +19,7 @@ export type Redirects = {
18
19
  query?: boolean | undefined;
19
20
  };
20
21
 
21
- export type PutV1BulkRedirectsRequestBody = {
22
+ export type StageRedirectsRequestBody = {
22
23
  projectId: string;
23
24
  teamId: string;
24
25
  overwrite?: boolean | undefined;
@@ -26,7 +27,19 @@ export type PutV1BulkRedirectsRequestBody = {
26
27
  redirects?: Array<Redirects> | undefined;
27
28
  };
28
29
 
29
- export type PutV1BulkRedirectsVersion = {
30
+ export type StageRedirectsRequest = {
31
+ /**
32
+ * The Team identifier to perform the request on behalf of.
33
+ */
34
+ teamId?: string | undefined;
35
+ /**
36
+ * The Team slug to perform the request on behalf of.
37
+ */
38
+ slug?: string | undefined;
39
+ requestBody?: StageRedirectsRequestBody | undefined;
40
+ };
41
+
42
+ export type StageRedirectsVersion = {
30
43
  /**
31
44
  * The unique identifier for the version.
32
45
  */
@@ -59,9 +72,9 @@ export type PutV1BulkRedirectsVersion = {
59
72
  alias?: string | undefined;
60
73
  };
61
74
 
62
- export type PutV1BulkRedirectsResponseBody = {
75
+ export type StageRedirectsResponseBody = {
63
76
  alias: string | null;
64
- version: PutV1BulkRedirectsVersion;
77
+ version: StageRedirectsVersion;
65
78
  };
66
79
 
67
80
  /** @internal */
@@ -144,8 +157,8 @@ export function redirectsFromJSON(
144
157
  }
145
158
 
146
159
  /** @internal */
147
- export const PutV1BulkRedirectsRequestBody$inboundSchema: z.ZodType<
148
- PutV1BulkRedirectsRequestBody,
160
+ export const StageRedirectsRequestBody$inboundSchema: z.ZodType<
161
+ StageRedirectsRequestBody,
149
162
  z.ZodTypeDef,
150
163
  unknown
151
164
  > = z.object({
@@ -156,7 +169,7 @@ export const PutV1BulkRedirectsRequestBody$inboundSchema: z.ZodType<
156
169
  redirects: z.array(z.lazy(() => Redirects$inboundSchema)).optional(),
157
170
  });
158
171
  /** @internal */
159
- export type PutV1BulkRedirectsRequestBody$Outbound = {
172
+ export type StageRedirectsRequestBody$Outbound = {
160
173
  projectId: string;
161
174
  teamId: string;
162
175
  overwrite?: boolean | undefined;
@@ -165,10 +178,10 @@ export type PutV1BulkRedirectsRequestBody$Outbound = {
165
178
  };
166
179
 
167
180
  /** @internal */
168
- export const PutV1BulkRedirectsRequestBody$outboundSchema: z.ZodType<
169
- PutV1BulkRedirectsRequestBody$Outbound,
181
+ export const StageRedirectsRequestBody$outboundSchema: z.ZodType<
182
+ StageRedirectsRequestBody$Outbound,
170
183
  z.ZodTypeDef,
171
- PutV1BulkRedirectsRequestBody
184
+ StageRedirectsRequestBody
172
185
  > = z.object({
173
186
  projectId: z.string(),
174
187
  teamId: z.string(),
@@ -177,28 +190,80 @@ export const PutV1BulkRedirectsRequestBody$outboundSchema: z.ZodType<
177
190
  redirects: z.array(z.lazy(() => Redirects$outboundSchema)).optional(),
178
191
  });
179
192
 
180
- export function putV1BulkRedirectsRequestBodyToJSON(
181
- putV1BulkRedirectsRequestBody: PutV1BulkRedirectsRequestBody,
193
+ export function stageRedirectsRequestBodyToJSON(
194
+ stageRedirectsRequestBody: StageRedirectsRequestBody,
195
+ ): string {
196
+ return JSON.stringify(
197
+ StageRedirectsRequestBody$outboundSchema.parse(stageRedirectsRequestBody),
198
+ );
199
+ }
200
+ export function stageRedirectsRequestBodyFromJSON(
201
+ jsonString: string,
202
+ ): SafeParseResult<StageRedirectsRequestBody, SDKValidationError> {
203
+ return safeParse(
204
+ jsonString,
205
+ (x) => StageRedirectsRequestBody$inboundSchema.parse(JSON.parse(x)),
206
+ `Failed to parse 'StageRedirectsRequestBody' from JSON`,
207
+ );
208
+ }
209
+
210
+ /** @internal */
211
+ export const StageRedirectsRequest$inboundSchema: z.ZodType<
212
+ StageRedirectsRequest,
213
+ z.ZodTypeDef,
214
+ unknown
215
+ > = z.object({
216
+ teamId: z.string().optional(),
217
+ slug: z.string().optional(),
218
+ RequestBody: z.lazy(() => StageRedirectsRequestBody$inboundSchema).optional(),
219
+ }).transform((v) => {
220
+ return remap$(v, {
221
+ "RequestBody": "requestBody",
222
+ });
223
+ });
224
+ /** @internal */
225
+ export type StageRedirectsRequest$Outbound = {
226
+ teamId?: string | undefined;
227
+ slug?: string | undefined;
228
+ RequestBody?: StageRedirectsRequestBody$Outbound | undefined;
229
+ };
230
+
231
+ /** @internal */
232
+ export const StageRedirectsRequest$outboundSchema: z.ZodType<
233
+ StageRedirectsRequest$Outbound,
234
+ z.ZodTypeDef,
235
+ StageRedirectsRequest
236
+ > = z.object({
237
+ teamId: z.string().optional(),
238
+ slug: z.string().optional(),
239
+ requestBody: z.lazy(() => StageRedirectsRequestBody$outboundSchema)
240
+ .optional(),
241
+ }).transform((v) => {
242
+ return remap$(v, {
243
+ requestBody: "RequestBody",
244
+ });
245
+ });
246
+
247
+ export function stageRedirectsRequestToJSON(
248
+ stageRedirectsRequest: StageRedirectsRequest,
182
249
  ): string {
183
250
  return JSON.stringify(
184
- PutV1BulkRedirectsRequestBody$outboundSchema.parse(
185
- putV1BulkRedirectsRequestBody,
186
- ),
251
+ StageRedirectsRequest$outboundSchema.parse(stageRedirectsRequest),
187
252
  );
188
253
  }
189
- export function putV1BulkRedirectsRequestBodyFromJSON(
254
+ export function stageRedirectsRequestFromJSON(
190
255
  jsonString: string,
191
- ): SafeParseResult<PutV1BulkRedirectsRequestBody, SDKValidationError> {
256
+ ): SafeParseResult<StageRedirectsRequest, SDKValidationError> {
192
257
  return safeParse(
193
258
  jsonString,
194
- (x) => PutV1BulkRedirectsRequestBody$inboundSchema.parse(JSON.parse(x)),
195
- `Failed to parse 'PutV1BulkRedirectsRequestBody' from JSON`,
259
+ (x) => StageRedirectsRequest$inboundSchema.parse(JSON.parse(x)),
260
+ `Failed to parse 'StageRedirectsRequest' from JSON`,
196
261
  );
197
262
  }
198
263
 
199
264
  /** @internal */
200
- export const PutV1BulkRedirectsVersion$inboundSchema: z.ZodType<
201
- PutV1BulkRedirectsVersion,
265
+ export const StageRedirectsVersion$inboundSchema: z.ZodType<
266
+ StageRedirectsVersion,
202
267
  z.ZodTypeDef,
203
268
  unknown
204
269
  > = z.object({
@@ -213,7 +278,7 @@ export const PutV1BulkRedirectsVersion$inboundSchema: z.ZodType<
213
278
  alias: z.string().optional(),
214
279
  });
215
280
  /** @internal */
216
- export type PutV1BulkRedirectsVersion$Outbound = {
281
+ export type StageRedirectsVersion$Outbound = {
217
282
  id: string;
218
283
  key: string;
219
284
  lastModified: number;
@@ -226,10 +291,10 @@ export type PutV1BulkRedirectsVersion$Outbound = {
226
291
  };
227
292
 
228
293
  /** @internal */
229
- export const PutV1BulkRedirectsVersion$outboundSchema: z.ZodType<
230
- PutV1BulkRedirectsVersion$Outbound,
294
+ export const StageRedirectsVersion$outboundSchema: z.ZodType<
295
+ StageRedirectsVersion$Outbound,
231
296
  z.ZodTypeDef,
232
- PutV1BulkRedirectsVersion
297
+ StageRedirectsVersion
233
298
  > = z.object({
234
299
  id: z.string(),
235
300
  key: z.string(),
@@ -242,63 +307,61 @@ export const PutV1BulkRedirectsVersion$outboundSchema: z.ZodType<
242
307
  alias: z.string().optional(),
243
308
  });
244
309
 
245
- export function putV1BulkRedirectsVersionToJSON(
246
- putV1BulkRedirectsVersion: PutV1BulkRedirectsVersion,
310
+ export function stageRedirectsVersionToJSON(
311
+ stageRedirectsVersion: StageRedirectsVersion,
247
312
  ): string {
248
313
  return JSON.stringify(
249
- PutV1BulkRedirectsVersion$outboundSchema.parse(putV1BulkRedirectsVersion),
314
+ StageRedirectsVersion$outboundSchema.parse(stageRedirectsVersion),
250
315
  );
251
316
  }
252
- export function putV1BulkRedirectsVersionFromJSON(
317
+ export function stageRedirectsVersionFromJSON(
253
318
  jsonString: string,
254
- ): SafeParseResult<PutV1BulkRedirectsVersion, SDKValidationError> {
319
+ ): SafeParseResult<StageRedirectsVersion, SDKValidationError> {
255
320
  return safeParse(
256
321
  jsonString,
257
- (x) => PutV1BulkRedirectsVersion$inboundSchema.parse(JSON.parse(x)),
258
- `Failed to parse 'PutV1BulkRedirectsVersion' from JSON`,
322
+ (x) => StageRedirectsVersion$inboundSchema.parse(JSON.parse(x)),
323
+ `Failed to parse 'StageRedirectsVersion' from JSON`,
259
324
  );
260
325
  }
261
326
 
262
327
  /** @internal */
263
- export const PutV1BulkRedirectsResponseBody$inboundSchema: z.ZodType<
264
- PutV1BulkRedirectsResponseBody,
328
+ export const StageRedirectsResponseBody$inboundSchema: z.ZodType<
329
+ StageRedirectsResponseBody,
265
330
  z.ZodTypeDef,
266
331
  unknown
267
332
  > = z.object({
268
333
  alias: z.nullable(z.string()),
269
- version: z.lazy(() => PutV1BulkRedirectsVersion$inboundSchema),
334
+ version: z.lazy(() => StageRedirectsVersion$inboundSchema),
270
335
  });
271
336
  /** @internal */
272
- export type PutV1BulkRedirectsResponseBody$Outbound = {
337
+ export type StageRedirectsResponseBody$Outbound = {
273
338
  alias: string | null;
274
- version: PutV1BulkRedirectsVersion$Outbound;
339
+ version: StageRedirectsVersion$Outbound;
275
340
  };
276
341
 
277
342
  /** @internal */
278
- export const PutV1BulkRedirectsResponseBody$outboundSchema: z.ZodType<
279
- PutV1BulkRedirectsResponseBody$Outbound,
343
+ export const StageRedirectsResponseBody$outboundSchema: z.ZodType<
344
+ StageRedirectsResponseBody$Outbound,
280
345
  z.ZodTypeDef,
281
- PutV1BulkRedirectsResponseBody
346
+ StageRedirectsResponseBody
282
347
  > = z.object({
283
348
  alias: z.nullable(z.string()),
284
- version: z.lazy(() => PutV1BulkRedirectsVersion$outboundSchema),
349
+ version: z.lazy(() => StageRedirectsVersion$outboundSchema),
285
350
  });
286
351
 
287
- export function putV1BulkRedirectsResponseBodyToJSON(
288
- putV1BulkRedirectsResponseBody: PutV1BulkRedirectsResponseBody,
352
+ export function stageRedirectsResponseBodyToJSON(
353
+ stageRedirectsResponseBody: StageRedirectsResponseBody,
289
354
  ): string {
290
355
  return JSON.stringify(
291
- PutV1BulkRedirectsResponseBody$outboundSchema.parse(
292
- putV1BulkRedirectsResponseBody,
293
- ),
356
+ StageRedirectsResponseBody$outboundSchema.parse(stageRedirectsResponseBody),
294
357
  );
295
358
  }
296
- export function putV1BulkRedirectsResponseBodyFromJSON(
359
+ export function stageRedirectsResponseBodyFromJSON(
297
360
  jsonString: string,
298
- ): SafeParseResult<PutV1BulkRedirectsResponseBody, SDKValidationError> {
361
+ ): SafeParseResult<StageRedirectsResponseBody, SDKValidationError> {
299
362
  return safeParse(
300
363
  jsonString,
301
- (x) => PutV1BulkRedirectsResponseBody$inboundSchema.parse(JSON.parse(x)),
302
- `Failed to parse 'PutV1BulkRedirectsResponseBody' from JSON`,
364
+ (x) => StageRedirectsResponseBody$inboundSchema.parse(JSON.parse(x)),
365
+ `Failed to parse 'StageRedirectsResponseBody' from JSON`,
303
366
  );
304
367
  }
@@ -219,11 +219,11 @@ export type SsoProtection = {
219
219
  };
220
220
 
221
221
  /**
222
- * Default deployment protection for this team
222
+ * Default deployment protection for this team null indicates protection is disabled
223
223
  */
224
224
  export type DefaultDeploymentProtection = {
225
- passwordProtection?: PasswordProtection | undefined;
226
- ssoProtection?: SsoProtection | undefined;
225
+ passwordProtection?: PasswordProtection | null | undefined;
226
+ ssoProtection?: SsoProtection | null | undefined;
227
227
  };
228
228
 
229
229
  /**
@@ -451,7 +451,7 @@ export type Team = {
451
451
  */
452
452
  remoteCaching?: RemoteCaching | undefined;
453
453
  /**
454
- * Default deployment protection for this team
454
+ * Default deployment protection for this team null indicates protection is disabled
455
455
  */
456
456
  defaultDeploymentProtection?: DefaultDeploymentProtection | undefined;
457
457
  /**
@@ -1056,13 +1056,15 @@ export const DefaultDeploymentProtection$inboundSchema: z.ZodType<
1056
1056
  z.ZodTypeDef,
1057
1057
  unknown
1058
1058
  > = z.object({
1059
- passwordProtection: z.lazy(() => PasswordProtection$inboundSchema).optional(),
1060
- ssoProtection: z.lazy(() => SsoProtection$inboundSchema).optional(),
1059
+ passwordProtection: z.nullable(z.lazy(() => PasswordProtection$inboundSchema))
1060
+ .optional(),
1061
+ ssoProtection: z.nullable(z.lazy(() => SsoProtection$inboundSchema))
1062
+ .optional(),
1061
1063
  });
1062
1064
  /** @internal */
1063
1065
  export type DefaultDeploymentProtection$Outbound = {
1064
- passwordProtection?: PasswordProtection$Outbound | undefined;
1065
- ssoProtection?: SsoProtection$Outbound | undefined;
1066
+ passwordProtection?: PasswordProtection$Outbound | null | undefined;
1067
+ ssoProtection?: SsoProtection$Outbound | null | undefined;
1066
1068
  };
1067
1069
 
1068
1070
  /** @internal */
@@ -1071,9 +1073,11 @@ export const DefaultDeploymentProtection$outboundSchema: z.ZodType<
1071
1073
  z.ZodTypeDef,
1072
1074
  DefaultDeploymentProtection
1073
1075
  > = z.object({
1074
- passwordProtection: z.lazy(() => PasswordProtection$outboundSchema)
1076
+ passwordProtection: z.nullable(
1077
+ z.lazy(() => PasswordProtection$outboundSchema),
1078
+ ).optional(),
1079
+ ssoProtection: z.nullable(z.lazy(() => SsoProtection$outboundSchema))
1075
1080
  .optional(),
1076
- ssoProtection: z.lazy(() => SsoProtection$outboundSchema).optional(),
1077
1081
  });
1078
1082
 
1079
1083
  export function defaultDeploymentProtectionToJSON(
@@ -0,0 +1,285 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { ClosedEnum } from "../types/enums.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import { SDKValidationError } from "./sdkvalidationerror.js";
11
+
12
+ export const UpdateVersionAction = {
13
+ Promote: "promote",
14
+ Restore: "restore",
15
+ Discard: "discard",
16
+ } as const;
17
+ export type UpdateVersionAction = ClosedEnum<typeof UpdateVersionAction>;
18
+
19
+ export type UpdateVersionRequestBody = {
20
+ id: string;
21
+ action: UpdateVersionAction;
22
+ name?: string | undefined;
23
+ };
24
+
25
+ export type UpdateVersionRequest = {
26
+ projectId: string;
27
+ /**
28
+ * The Team identifier to perform the request on behalf of.
29
+ */
30
+ teamId?: string | undefined;
31
+ /**
32
+ * The Team slug to perform the request on behalf of.
33
+ */
34
+ slug?: string | undefined;
35
+ requestBody?: UpdateVersionRequestBody | undefined;
36
+ };
37
+
38
+ export type UpdateVersionVersion = {
39
+ /**
40
+ * The unique identifier for the version.
41
+ */
42
+ id: string;
43
+ /**
44
+ * The key of the version. The key may be duplicated across versions if the contents are the same as a different version.
45
+ */
46
+ key: string;
47
+ lastModified: number;
48
+ createdBy: string;
49
+ /**
50
+ * Optional name for the version. If not provided, defaults to an ISO timestamp string.
51
+ */
52
+ name?: string | undefined;
53
+ /**
54
+ * Whether this version has not been promoted to production yet and is not serving end users.
55
+ */
56
+ isStaging?: boolean | undefined;
57
+ /**
58
+ * Whether this version is currently live in production.
59
+ */
60
+ isLive?: boolean | undefined;
61
+ /**
62
+ * The number of redirects in this version.
63
+ */
64
+ redirectCount?: number | undefined;
65
+ /**
66
+ * The staging link for previewing redirects in this version.
67
+ */
68
+ alias?: string | undefined;
69
+ };
70
+
71
+ export type UpdateVersionResponseBody = {
72
+ version: UpdateVersionVersion;
73
+ };
74
+
75
+ /** @internal */
76
+ export const UpdateVersionAction$inboundSchema: z.ZodNativeEnum<
77
+ typeof UpdateVersionAction
78
+ > = z.nativeEnum(UpdateVersionAction);
79
+ /** @internal */
80
+ export const UpdateVersionAction$outboundSchema: z.ZodNativeEnum<
81
+ typeof UpdateVersionAction
82
+ > = UpdateVersionAction$inboundSchema;
83
+
84
+ /** @internal */
85
+ export const UpdateVersionRequestBody$inboundSchema: z.ZodType<
86
+ UpdateVersionRequestBody,
87
+ z.ZodTypeDef,
88
+ unknown
89
+ > = z.object({
90
+ id: z.string(),
91
+ action: UpdateVersionAction$inboundSchema,
92
+ name: z.string().optional(),
93
+ });
94
+ /** @internal */
95
+ export type UpdateVersionRequestBody$Outbound = {
96
+ id: string;
97
+ action: string;
98
+ name?: string | undefined;
99
+ };
100
+
101
+ /** @internal */
102
+ export const UpdateVersionRequestBody$outboundSchema: z.ZodType<
103
+ UpdateVersionRequestBody$Outbound,
104
+ z.ZodTypeDef,
105
+ UpdateVersionRequestBody
106
+ > = z.object({
107
+ id: z.string(),
108
+ action: UpdateVersionAction$outboundSchema,
109
+ name: z.string().optional(),
110
+ });
111
+
112
+ export function updateVersionRequestBodyToJSON(
113
+ updateVersionRequestBody: UpdateVersionRequestBody,
114
+ ): string {
115
+ return JSON.stringify(
116
+ UpdateVersionRequestBody$outboundSchema.parse(updateVersionRequestBody),
117
+ );
118
+ }
119
+ export function updateVersionRequestBodyFromJSON(
120
+ jsonString: string,
121
+ ): SafeParseResult<UpdateVersionRequestBody, SDKValidationError> {
122
+ return safeParse(
123
+ jsonString,
124
+ (x) => UpdateVersionRequestBody$inboundSchema.parse(JSON.parse(x)),
125
+ `Failed to parse 'UpdateVersionRequestBody' from JSON`,
126
+ );
127
+ }
128
+
129
+ /** @internal */
130
+ export const UpdateVersionRequest$inboundSchema: z.ZodType<
131
+ UpdateVersionRequest,
132
+ z.ZodTypeDef,
133
+ unknown
134
+ > = z.object({
135
+ projectId: z.string(),
136
+ teamId: z.string().optional(),
137
+ slug: z.string().optional(),
138
+ RequestBody: z.lazy(() => UpdateVersionRequestBody$inboundSchema).optional(),
139
+ }).transform((v) => {
140
+ return remap$(v, {
141
+ "RequestBody": "requestBody",
142
+ });
143
+ });
144
+ /** @internal */
145
+ export type UpdateVersionRequest$Outbound = {
146
+ projectId: string;
147
+ teamId?: string | undefined;
148
+ slug?: string | undefined;
149
+ RequestBody?: UpdateVersionRequestBody$Outbound | undefined;
150
+ };
151
+
152
+ /** @internal */
153
+ export const UpdateVersionRequest$outboundSchema: z.ZodType<
154
+ UpdateVersionRequest$Outbound,
155
+ z.ZodTypeDef,
156
+ UpdateVersionRequest
157
+ > = z.object({
158
+ projectId: z.string(),
159
+ teamId: z.string().optional(),
160
+ slug: z.string().optional(),
161
+ requestBody: z.lazy(() => UpdateVersionRequestBody$outboundSchema).optional(),
162
+ }).transform((v) => {
163
+ return remap$(v, {
164
+ requestBody: "RequestBody",
165
+ });
166
+ });
167
+
168
+ export function updateVersionRequestToJSON(
169
+ updateVersionRequest: UpdateVersionRequest,
170
+ ): string {
171
+ return JSON.stringify(
172
+ UpdateVersionRequest$outboundSchema.parse(updateVersionRequest),
173
+ );
174
+ }
175
+ export function updateVersionRequestFromJSON(
176
+ jsonString: string,
177
+ ): SafeParseResult<UpdateVersionRequest, SDKValidationError> {
178
+ return safeParse(
179
+ jsonString,
180
+ (x) => UpdateVersionRequest$inboundSchema.parse(JSON.parse(x)),
181
+ `Failed to parse 'UpdateVersionRequest' from JSON`,
182
+ );
183
+ }
184
+
185
+ /** @internal */
186
+ export const UpdateVersionVersion$inboundSchema: z.ZodType<
187
+ UpdateVersionVersion,
188
+ z.ZodTypeDef,
189
+ unknown
190
+ > = z.object({
191
+ id: z.string(),
192
+ key: z.string(),
193
+ lastModified: z.number(),
194
+ createdBy: z.string(),
195
+ name: z.string().optional(),
196
+ isStaging: z.boolean().optional(),
197
+ isLive: z.boolean().optional(),
198
+ redirectCount: z.number().optional(),
199
+ alias: z.string().optional(),
200
+ });
201
+ /** @internal */
202
+ export type UpdateVersionVersion$Outbound = {
203
+ id: string;
204
+ key: string;
205
+ lastModified: number;
206
+ createdBy: string;
207
+ name?: string | undefined;
208
+ isStaging?: boolean | undefined;
209
+ isLive?: boolean | undefined;
210
+ redirectCount?: number | undefined;
211
+ alias?: string | undefined;
212
+ };
213
+
214
+ /** @internal */
215
+ export const UpdateVersionVersion$outboundSchema: z.ZodType<
216
+ UpdateVersionVersion$Outbound,
217
+ z.ZodTypeDef,
218
+ UpdateVersionVersion
219
+ > = z.object({
220
+ id: z.string(),
221
+ key: z.string(),
222
+ lastModified: z.number(),
223
+ createdBy: z.string(),
224
+ name: z.string().optional(),
225
+ isStaging: z.boolean().optional(),
226
+ isLive: z.boolean().optional(),
227
+ redirectCount: z.number().optional(),
228
+ alias: z.string().optional(),
229
+ });
230
+
231
+ export function updateVersionVersionToJSON(
232
+ updateVersionVersion: UpdateVersionVersion,
233
+ ): string {
234
+ return JSON.stringify(
235
+ UpdateVersionVersion$outboundSchema.parse(updateVersionVersion),
236
+ );
237
+ }
238
+ export function updateVersionVersionFromJSON(
239
+ jsonString: string,
240
+ ): SafeParseResult<UpdateVersionVersion, SDKValidationError> {
241
+ return safeParse(
242
+ jsonString,
243
+ (x) => UpdateVersionVersion$inboundSchema.parse(JSON.parse(x)),
244
+ `Failed to parse 'UpdateVersionVersion' from JSON`,
245
+ );
246
+ }
247
+
248
+ /** @internal */
249
+ export const UpdateVersionResponseBody$inboundSchema: z.ZodType<
250
+ UpdateVersionResponseBody,
251
+ z.ZodTypeDef,
252
+ unknown
253
+ > = z.object({
254
+ version: z.lazy(() => UpdateVersionVersion$inboundSchema),
255
+ });
256
+ /** @internal */
257
+ export type UpdateVersionResponseBody$Outbound = {
258
+ version: UpdateVersionVersion$Outbound;
259
+ };
260
+
261
+ /** @internal */
262
+ export const UpdateVersionResponseBody$outboundSchema: z.ZodType<
263
+ UpdateVersionResponseBody$Outbound,
264
+ z.ZodTypeDef,
265
+ UpdateVersionResponseBody
266
+ > = z.object({
267
+ version: z.lazy(() => UpdateVersionVersion$outboundSchema),
268
+ });
269
+
270
+ export function updateVersionResponseBodyToJSON(
271
+ updateVersionResponseBody: UpdateVersionResponseBody,
272
+ ): string {
273
+ return JSON.stringify(
274
+ UpdateVersionResponseBody$outboundSchema.parse(updateVersionResponseBody),
275
+ );
276
+ }
277
+ export function updateVersionResponseBodyFromJSON(
278
+ jsonString: string,
279
+ ): SafeParseResult<UpdateVersionResponseBody, SDKValidationError> {
280
+ return safeParse(
281
+ jsonString,
282
+ (x) => UpdateVersionResponseBody$inboundSchema.parse(JSON.parse(x)),
283
+ `Failed to parse 'UpdateVersionResponseBody' from JSON`,
284
+ );
285
+ }