@mutagent/sdk 0.3.48 → 0.3.49

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 (275) hide show
  1. package/README.md +16 -6
  2. package/dist/commonjs/funcs/sandbox-delete-api-sandbox-environments-by-name.d.ts +18 -0
  3. package/dist/commonjs/funcs/sandbox-delete-api-sandbox-environments-by-name.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/sandbox-delete-api-sandbox-environments-by-name.js +124 -0
  5. package/dist/commonjs/funcs/sandbox-delete-api-sandbox-environments-by-name.js.map +1 -0
  6. package/dist/commonjs/funcs/sandbox-get-api-sandbox-environments-by-name.d.ts +19 -0
  7. package/dist/commonjs/funcs/sandbox-get-api-sandbox-environments-by-name.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/sandbox-get-api-sandbox-environments-by-name.js +125 -0
  9. package/dist/commonjs/funcs/sandbox-get-api-sandbox-environments-by-name.js.map +1 -0
  10. package/dist/commonjs/funcs/sandbox-get-api-sandbox-environments.d.ts +18 -0
  11. package/dist/commonjs/funcs/sandbox-get-api-sandbox-environments.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/sandbox-get-api-sandbox-environments.js +108 -0
  13. package/dist/commonjs/funcs/sandbox-get-api-sandbox-environments.js.map +1 -0
  14. package/dist/commonjs/funcs/sandbox-patch-api-sandbox-environments-by-name.d.ts +19 -0
  15. package/dist/commonjs/funcs/sandbox-patch-api-sandbox-environments-by-name.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/sandbox-patch-api-sandbox-environments-by-name.js +130 -0
  17. package/dist/commonjs/funcs/sandbox-patch-api-sandbox-environments-by-name.js.map +1 -0
  18. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts +1 -1
  19. package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.js +1 -1
  20. package/dist/commonjs/funcs/sandbox-put-api-sandbox-environments-by-name.d.ts +19 -0
  21. package/dist/commonjs/funcs/sandbox-put-api-sandbox-environments-by-name.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/sandbox-put-api-sandbox-environments-by-name.js +130 -0
  23. package/dist/commonjs/funcs/sandbox-put-api-sandbox-environments-by-name.js.map +1 -0
  24. package/dist/commonjs/lib/config.d.ts +2 -2
  25. package/dist/commonjs/lib/config.js +2 -2
  26. package/dist/commonjs/models/index.d.ts +5 -2
  27. package/dist/commonjs/models/index.d.ts.map +1 -1
  28. package/dist/commonjs/models/index.js +5 -2
  29. package/dist/commonjs/models/index.js.map +1 -1
  30. package/dist/commonjs/models/mode-arm-args.d.ts +9 -4
  31. package/dist/commonjs/models/mode-arm-args.d.ts.map +1 -1
  32. package/dist/commonjs/models/mode-arm-args.js +4 -3
  33. package/dist/commonjs/models/mode-arm-args.js.map +1 -1
  34. package/dist/commonjs/models/name-vars-secrets.d.ts +61 -0
  35. package/dist/commonjs/models/name-vars-secrets.d.ts.map +1 -0
  36. package/dist/commonjs/models/name-vars-secrets.js +73 -0
  37. package/dist/commonjs/models/name-vars-secrets.js.map +1 -0
  38. package/dist/commonjs/models/operations/delete-api-sandbox-environments-by-name.d.ts +24 -0
  39. package/dist/commonjs/models/operations/delete-api-sandbox-environments-by-name.d.ts.map +1 -0
  40. package/dist/commonjs/models/operations/delete-api-sandbox-environments-by-name.js +60 -0
  41. package/dist/commonjs/models/operations/delete-api-sandbox-environments-by-name.js.map +1 -0
  42. package/dist/commonjs/models/operations/get-api-sandbox-environments-by-name.d.ts +12 -0
  43. package/dist/commonjs/models/operations/get-api-sandbox-environments-by-name.d.ts.map +1 -0
  44. package/dist/commonjs/models/operations/get-api-sandbox-environments-by-name.js +49 -0
  45. package/dist/commonjs/models/operations/get-api-sandbox-environments-by-name.js.map +1 -0
  46. package/dist/commonjs/models/operations/get-api-sandbox-environments.d.ts +14 -0
  47. package/dist/commonjs/models/operations/get-api-sandbox-environments.d.ts.map +1 -0
  48. package/dist/commonjs/models/operations/get-api-sandbox-environments.js +51 -0
  49. package/dist/commonjs/models/operations/get-api-sandbox-environments.js.map +1 -0
  50. package/dist/commonjs/models/operations/index.d.ts +5 -0
  51. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/index.js +5 -0
  53. package/dist/commonjs/models/operations/index.js.map +1 -1
  54. package/dist/commonjs/models/operations/patch-api-sandbox-environments-by-name.d.ts +20 -0
  55. package/dist/commonjs/models/operations/patch-api-sandbox-environments-by-name.d.ts.map +1 -0
  56. package/dist/commonjs/models/operations/patch-api-sandbox-environments-by-name.js +52 -0
  57. package/dist/commonjs/models/operations/patch-api-sandbox-environments-by-name.js.map +1 -0
  58. package/dist/commonjs/models/operations/post-api-sandbox-agent-run.d.ts +1 -15
  59. package/dist/commonjs/models/operations/post-api-sandbox-agent-run.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/post-api-sandbox-agent-run.js +2 -14
  61. package/dist/commonjs/models/operations/post-api-sandbox-agent-run.js.map +1 -1
  62. package/dist/commonjs/models/operations/post-api-sandbox-by-id-exec.d.ts +1 -15
  63. package/dist/commonjs/models/operations/post-api-sandbox-by-id-exec.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/post-api-sandbox-by-id-exec.js +2 -14
  65. package/dist/commonjs/models/operations/post-api-sandbox-by-id-exec.js.map +1 -1
  66. package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.d.ts +2 -2
  67. package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.js +2 -2
  68. package/dist/commonjs/models/operations/put-api-sandbox-environments-by-name.d.ts +20 -0
  69. package/dist/commonjs/models/operations/put-api-sandbox-environments-by-name.d.ts.map +1 -0
  70. package/dist/commonjs/models/operations/put-api-sandbox-environments-by-name.js +52 -0
  71. package/dist/commonjs/models/operations/put-api-sandbox-environments-by-name.js.map +1 -0
  72. package/dist/commonjs/models/operations/update-organization-member.d.ts +1 -1
  73. package/dist/commonjs/models/operations/update-organization-member.d.ts.map +1 -1
  74. package/dist/commonjs/models/operations/update-organization-member.js +1 -1
  75. package/dist/commonjs/models/operations/update-organization-member.js.map +1 -1
  76. package/dist/commonjs/models/operations/update-workspace-member.d.ts +1 -1
  77. package/dist/commonjs/models/operations/update-workspace-member.js +1 -1
  78. package/dist/commonjs/models/preset-timeout-ms-keep.d.ts +5 -0
  79. package/dist/commonjs/models/preset-timeout-ms-keep.d.ts.map +1 -1
  80. package/dist/commonjs/models/preset-timeout-ms-keep.js +1 -0
  81. package/dist/commonjs/models/preset-timeout-ms-keep.js.map +1 -1
  82. package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts +5 -0
  83. package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts.map +1 -1
  84. package/dist/commonjs/models/preset-timeout-ms-keep2.js +1 -0
  85. package/dist/commonjs/models/preset-timeout-ms-keep2.js.map +1 -1
  86. package/dist/commonjs/models/schemadefaul10.d.ts +10 -0
  87. package/dist/commonjs/models/schemadefaul10.d.ts.map +1 -0
  88. package/dist/commonjs/models/schemadefaul10.js +50 -0
  89. package/dist/commonjs/models/schemadefaul10.js.map +1 -0
  90. package/dist/commonjs/models/schemadefaul12.d.ts +9 -0
  91. package/dist/{esm/models/schemadefaul11.d.ts.map → commonjs/models/schemadefaul12.d.ts.map} +1 -1
  92. package/dist/commonjs/models/{schemadefaul11.js → schemadefaul12.js} +9 -9
  93. package/dist/commonjs/models/{schemadefaul11.js.map → schemadefaul12.js.map} +1 -1
  94. package/dist/commonjs/models/schemadefaul6.d.ts +5 -7
  95. package/dist/commonjs/models/schemadefaul6.d.ts.map +1 -1
  96. package/dist/commonjs/models/schemadefaul6.js +7 -7
  97. package/dist/commonjs/models/schemadefaul6.js.map +1 -1
  98. package/dist/commonjs/models/schemadefaul7.d.ts +2 -3
  99. package/dist/commonjs/models/schemadefaul7.d.ts.map +1 -1
  100. package/dist/commonjs/models/schemadefaul7.js +2 -3
  101. package/dist/commonjs/models/schemadefaul7.js.map +1 -1
  102. package/dist/commonjs/models/schemadefaul8.d.ts +13 -0
  103. package/dist/commonjs/models/schemadefaul8.d.ts.map +1 -0
  104. package/dist/commonjs/models/schemadefaul8.js +51 -0
  105. package/dist/commonjs/models/schemadefaul8.js.map +1 -0
  106. package/dist/commonjs/models/snapshot-id-definition-partial.d.ts +14 -0
  107. package/dist/commonjs/models/snapshot-id-definition-partial.d.ts.map +1 -1
  108. package/dist/commonjs/models/snapshot-id-definition-partial.js +2 -0
  109. package/dist/commonjs/models/snapshot-id-definition-partial.js.map +1 -1
  110. package/dist/commonjs/models/vars-secrets.d.ts +28 -0
  111. package/dist/commonjs/models/vars-secrets.d.ts.map +1 -0
  112. package/dist/commonjs/models/{schemadefaul9.js → vars-secrets.js} +10 -10
  113. package/dist/commonjs/models/vars-secrets.js.map +1 -0
  114. package/dist/commonjs/sdk/sandbox.d.ts +36 -1
  115. package/dist/commonjs/sdk/sandbox.d.ts.map +1 -1
  116. package/dist/commonjs/sdk/sandbox.js +51 -1
  117. package/dist/commonjs/sdk/sandbox.js.map +1 -1
  118. package/dist/esm/funcs/sandbox-delete-api-sandbox-environments-by-name.d.ts +18 -0
  119. package/dist/esm/funcs/sandbox-delete-api-sandbox-environments-by-name.d.ts.map +1 -0
  120. package/dist/esm/funcs/sandbox-delete-api-sandbox-environments-by-name.js +88 -0
  121. package/dist/esm/funcs/sandbox-delete-api-sandbox-environments-by-name.js.map +1 -0
  122. package/dist/esm/funcs/sandbox-get-api-sandbox-environments-by-name.d.ts +19 -0
  123. package/dist/esm/funcs/sandbox-get-api-sandbox-environments-by-name.d.ts.map +1 -0
  124. package/dist/esm/funcs/sandbox-get-api-sandbox-environments-by-name.js +89 -0
  125. package/dist/esm/funcs/sandbox-get-api-sandbox-environments-by-name.js.map +1 -0
  126. package/dist/esm/funcs/sandbox-get-api-sandbox-environments.d.ts +18 -0
  127. package/dist/esm/funcs/sandbox-get-api-sandbox-environments.d.ts.map +1 -0
  128. package/dist/esm/funcs/sandbox-get-api-sandbox-environments.js +72 -0
  129. package/dist/esm/funcs/sandbox-get-api-sandbox-environments.js.map +1 -0
  130. package/dist/esm/funcs/sandbox-patch-api-sandbox-environments-by-name.d.ts +19 -0
  131. package/dist/esm/funcs/sandbox-patch-api-sandbox-environments-by-name.d.ts.map +1 -0
  132. package/dist/esm/funcs/sandbox-patch-api-sandbox-environments-by-name.js +94 -0
  133. package/dist/esm/funcs/sandbox-patch-api-sandbox-environments-by-name.js.map +1 -0
  134. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts +1 -1
  135. package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.js +1 -1
  136. package/dist/esm/funcs/sandbox-put-api-sandbox-environments-by-name.d.ts +19 -0
  137. package/dist/esm/funcs/sandbox-put-api-sandbox-environments-by-name.d.ts.map +1 -0
  138. package/dist/esm/funcs/sandbox-put-api-sandbox-environments-by-name.js +94 -0
  139. package/dist/esm/funcs/sandbox-put-api-sandbox-environments-by-name.js.map +1 -0
  140. package/dist/esm/lib/config.d.ts +2 -2
  141. package/dist/esm/lib/config.js +2 -2
  142. package/dist/esm/models/index.d.ts +5 -2
  143. package/dist/esm/models/index.d.ts.map +1 -1
  144. package/dist/esm/models/index.js +5 -2
  145. package/dist/esm/models/index.js.map +1 -1
  146. package/dist/esm/models/mode-arm-args.d.ts +9 -4
  147. package/dist/esm/models/mode-arm-args.d.ts.map +1 -1
  148. package/dist/esm/models/mode-arm-args.js +4 -3
  149. package/dist/esm/models/mode-arm-args.js.map +1 -1
  150. package/dist/esm/models/name-vars-secrets.d.ts +61 -0
  151. package/dist/esm/models/name-vars-secrets.d.ts.map +1 -0
  152. package/dist/esm/models/name-vars-secrets.js +34 -0
  153. package/dist/esm/models/name-vars-secrets.js.map +1 -0
  154. package/dist/esm/models/operations/delete-api-sandbox-environments-by-name.d.ts +24 -0
  155. package/dist/esm/models/operations/delete-api-sandbox-environments-by-name.d.ts.map +1 -0
  156. package/dist/esm/models/operations/delete-api-sandbox-environments-by-name.js +22 -0
  157. package/dist/esm/models/operations/delete-api-sandbox-environments-by-name.js.map +1 -0
  158. package/dist/esm/models/operations/get-api-sandbox-environments-by-name.d.ts +12 -0
  159. package/dist/esm/models/operations/get-api-sandbox-environments-by-name.d.ts.map +1 -0
  160. package/dist/esm/models/operations/get-api-sandbox-environments-by-name.js +12 -0
  161. package/dist/esm/models/operations/get-api-sandbox-environments-by-name.js.map +1 -0
  162. package/dist/esm/models/operations/get-api-sandbox-environments.d.ts +14 -0
  163. package/dist/esm/models/operations/get-api-sandbox-environments.d.ts.map +1 -0
  164. package/dist/esm/models/operations/get-api-sandbox-environments.js +14 -0
  165. package/dist/esm/models/operations/get-api-sandbox-environments.js.map +1 -0
  166. package/dist/esm/models/operations/index.d.ts +5 -0
  167. package/dist/esm/models/operations/index.d.ts.map +1 -1
  168. package/dist/esm/models/operations/index.js +5 -0
  169. package/dist/esm/models/operations/index.js.map +1 -1
  170. package/dist/esm/models/operations/patch-api-sandbox-environments-by-name.d.ts +20 -0
  171. package/dist/esm/models/operations/patch-api-sandbox-environments-by-name.d.ts.map +1 -0
  172. package/dist/esm/models/operations/patch-api-sandbox-environments-by-name.js +15 -0
  173. package/dist/esm/models/operations/patch-api-sandbox-environments-by-name.js.map +1 -0
  174. package/dist/esm/models/operations/post-api-sandbox-agent-run.d.ts +1 -15
  175. package/dist/esm/models/operations/post-api-sandbox-agent-run.d.ts.map +1 -1
  176. package/dist/esm/models/operations/post-api-sandbox-agent-run.js +1 -13
  177. package/dist/esm/models/operations/post-api-sandbox-agent-run.js.map +1 -1
  178. package/dist/esm/models/operations/post-api-sandbox-by-id-exec.d.ts +1 -15
  179. package/dist/esm/models/operations/post-api-sandbox-by-id-exec.d.ts.map +1 -1
  180. package/dist/esm/models/operations/post-api-sandbox-by-id-exec.js +1 -13
  181. package/dist/esm/models/operations/post-api-sandbox-by-id-exec.js.map +1 -1
  182. package/dist/esm/models/operations/post-api-sandbox-by-id-session.d.ts +2 -2
  183. package/dist/esm/models/operations/post-api-sandbox-by-id-session.js +2 -2
  184. package/dist/esm/models/operations/put-api-sandbox-environments-by-name.d.ts +20 -0
  185. package/dist/esm/models/operations/put-api-sandbox-environments-by-name.d.ts.map +1 -0
  186. package/dist/esm/models/operations/put-api-sandbox-environments-by-name.js +15 -0
  187. package/dist/esm/models/operations/put-api-sandbox-environments-by-name.js.map +1 -0
  188. package/dist/esm/models/operations/update-organization-member.d.ts +1 -1
  189. package/dist/esm/models/operations/update-organization-member.d.ts.map +1 -1
  190. package/dist/esm/models/operations/update-organization-member.js +1 -1
  191. package/dist/esm/models/operations/update-organization-member.js.map +1 -1
  192. package/dist/esm/models/operations/update-workspace-member.d.ts +1 -1
  193. package/dist/esm/models/operations/update-workspace-member.js +1 -1
  194. package/dist/esm/models/preset-timeout-ms-keep.d.ts +5 -0
  195. package/dist/esm/models/preset-timeout-ms-keep.d.ts.map +1 -1
  196. package/dist/esm/models/preset-timeout-ms-keep.js +1 -0
  197. package/dist/esm/models/preset-timeout-ms-keep.js.map +1 -1
  198. package/dist/esm/models/preset-timeout-ms-keep2.d.ts +5 -0
  199. package/dist/esm/models/preset-timeout-ms-keep2.d.ts.map +1 -1
  200. package/dist/esm/models/preset-timeout-ms-keep2.js +1 -0
  201. package/dist/esm/models/preset-timeout-ms-keep2.js.map +1 -1
  202. package/dist/esm/models/schemadefaul10.d.ts +10 -0
  203. package/dist/esm/models/schemadefaul10.d.ts.map +1 -0
  204. package/dist/esm/models/schemadefaul10.js +14 -0
  205. package/dist/esm/models/schemadefaul10.js.map +1 -0
  206. package/dist/esm/models/schemadefaul12.d.ts +9 -0
  207. package/dist/{commonjs/models/schemadefaul11.d.ts.map → esm/models/schemadefaul12.d.ts.map} +1 -1
  208. package/dist/esm/models/schemadefaul12.js +13 -0
  209. package/dist/esm/models/{schemadefaul11.js.map → schemadefaul12.js.map} +1 -1
  210. package/dist/esm/models/schemadefaul6.d.ts +5 -7
  211. package/dist/esm/models/schemadefaul6.d.ts.map +1 -1
  212. package/dist/esm/models/schemadefaul6.js +6 -6
  213. package/dist/esm/models/schemadefaul6.js.map +1 -1
  214. package/dist/esm/models/schemadefaul7.d.ts +2 -3
  215. package/dist/esm/models/schemadefaul7.d.ts.map +1 -1
  216. package/dist/esm/models/schemadefaul7.js +2 -3
  217. package/dist/esm/models/schemadefaul7.js.map +1 -1
  218. package/dist/esm/models/schemadefaul8.d.ts +13 -0
  219. package/dist/esm/models/schemadefaul8.d.ts.map +1 -0
  220. package/dist/esm/models/schemadefaul8.js +15 -0
  221. package/dist/esm/models/schemadefaul8.js.map +1 -0
  222. package/dist/esm/models/snapshot-id-definition-partial.d.ts +14 -0
  223. package/dist/esm/models/snapshot-id-definition-partial.d.ts.map +1 -1
  224. package/dist/esm/models/snapshot-id-definition-partial.js +2 -0
  225. package/dist/esm/models/snapshot-id-definition-partial.js.map +1 -1
  226. package/dist/esm/models/vars-secrets.d.ts +28 -0
  227. package/dist/esm/models/vars-secrets.d.ts.map +1 -0
  228. package/dist/esm/models/vars-secrets.js +13 -0
  229. package/dist/esm/models/vars-secrets.js.map +1 -0
  230. package/dist/esm/sdk/sandbox.d.ts +36 -1
  231. package/dist/esm/sdk/sandbox.d.ts.map +1 -1
  232. package/dist/esm/sdk/sandbox.js +51 -1
  233. package/dist/esm/sdk/sandbox.js.map +1 -1
  234. package/package.json +1 -1
  235. package/src/funcs/sandbox-delete-api-sandbox-environments-by-name.ts +188 -0
  236. package/src/funcs/sandbox-get-api-sandbox-environments-by-name.ts +185 -0
  237. package/src/funcs/sandbox-get-api-sandbox-environments.ts +156 -0
  238. package/src/funcs/sandbox-patch-api-sandbox-environments-by-name.ts +192 -0
  239. package/src/funcs/sandbox-post-api-sandbox-by-id-restore.ts +1 -1
  240. package/src/funcs/sandbox-put-api-sandbox-environments-by-name.ts +192 -0
  241. package/src/lib/config.ts +2 -2
  242. package/src/models/index.ts +5 -2
  243. package/src/models/mode-arm-args.ts +16 -10
  244. package/src/models/name-vars-secrets.ts +114 -0
  245. package/src/models/operations/delete-api-sandbox-environments-by-name.ts +71 -0
  246. package/src/models/operations/get-api-sandbox-environments-by-name.ts +34 -0
  247. package/src/models/operations/get-api-sandbox-environments.ts +34 -0
  248. package/src/models/operations/index.ts +5 -0
  249. package/src/models/operations/patch-api-sandbox-environments-by-name.ts +47 -0
  250. package/src/models/operations/post-api-sandbox-agent-run.ts +3 -21
  251. package/src/models/operations/post-api-sandbox-by-id-exec.ts +3 -21
  252. package/src/models/operations/post-api-sandbox-by-id-session.ts +6 -6
  253. package/src/models/operations/put-api-sandbox-environments-by-name.ts +47 -0
  254. package/src/models/operations/update-organization-member.ts +3 -3
  255. package/src/models/operations/update-workspace-member.ts +3 -3
  256. package/src/models/preset-timeout-ms-keep.ts +6 -0
  257. package/src/models/preset-timeout-ms-keep2.ts +6 -0
  258. package/src/models/{schemadefaul9.ts → schemadefaul10.ts} +4 -3
  259. package/src/models/{schemadefaul11.ts → schemadefaul12.ts} +4 -4
  260. package/src/models/schemadefaul6.ts +6 -14
  261. package/src/models/schemadefaul7.ts +2 -3
  262. package/src/models/schemadefaul8.ts +25 -0
  263. package/src/models/snapshot-id-definition-partial.ts +12 -0
  264. package/src/models/vars-secrets.ts +35 -0
  265. package/src/sdk/sandbox.ts +89 -1
  266. package/dist/commonjs/models/schemadefaul11.d.ts +0 -9
  267. package/dist/commonjs/models/schemadefaul9.d.ts +0 -10
  268. package/dist/commonjs/models/schemadefaul9.d.ts.map +0 -1
  269. package/dist/commonjs/models/schemadefaul9.js.map +0 -1
  270. package/dist/esm/models/schemadefaul11.d.ts +0 -9
  271. package/dist/esm/models/schemadefaul11.js +0 -13
  272. package/dist/esm/models/schemadefaul9.d.ts +0 -10
  273. package/dist/esm/models/schemadefaul9.d.ts.map +0 -1
  274. package/dist/esm/models/schemadefaul9.js +0 -14
  275. package/dist/esm/models/schemadefaul9.js.map +0 -1
@@ -0,0 +1,192 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { MutagentCore } from "../core.js";
7
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/http-client-errors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { MutagentError } from "../models/errors/mutagent-error.js";
24
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
25
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
26
+ import * as models from "../models/index.js";
27
+ import * as operations from "../models/operations/index.js";
28
+ import { APICall, APIPromise } from "../types/async.js";
29
+ import { Result } from "../types/fp.js";
30
+
31
+ /**
32
+ * Set or unset entries of a workspace Environment
33
+ *
34
+ * @remarks
35
+ * Merges into the existing Environment: a string value sets the entry, `null` unsets it, entries not mentioned stay. Creates the Environment when it does not exist yet, so `mutagent env set` is one step. Same rules and the same 409 as PUT.
36
+ */
37
+ export function sandboxPatchApiSandboxEnvironmentsByName(
38
+ client: MutagentCore,
39
+ request: operations.PatchApiSandboxEnvironmentsByNameRequest,
40
+ options?: RequestOptions,
41
+ ): APIPromise<
42
+ Result<
43
+ models.NameVarsSecrets,
44
+ | errors.ErrorMessage
45
+ | errors.ErrorMessageStatusCode
46
+ | MutagentError
47
+ | ResponseValidationError
48
+ | ConnectionError
49
+ | RequestAbortedError
50
+ | RequestTimeoutError
51
+ | InvalidRequestError
52
+ | UnexpectedClientError
53
+ | SDKValidationError
54
+ >
55
+ > {
56
+ return new APIPromise($do(
57
+ client,
58
+ request,
59
+ options,
60
+ ));
61
+ }
62
+
63
+ async function $do(
64
+ client: MutagentCore,
65
+ request: operations.PatchApiSandboxEnvironmentsByNameRequest,
66
+ options?: RequestOptions,
67
+ ): Promise<
68
+ [
69
+ Result<
70
+ models.NameVarsSecrets,
71
+ | errors.ErrorMessage
72
+ | errors.ErrorMessageStatusCode
73
+ | MutagentError
74
+ | ResponseValidationError
75
+ | ConnectionError
76
+ | RequestAbortedError
77
+ | RequestTimeoutError
78
+ | InvalidRequestError
79
+ | UnexpectedClientError
80
+ | SDKValidationError
81
+ >,
82
+ APICall,
83
+ ]
84
+ > {
85
+ const parsed = safeParse(
86
+ request,
87
+ (value) =>
88
+ z.parse(
89
+ operations.PatchApiSandboxEnvironmentsByNameRequest$outboundSchema,
90
+ value,
91
+ ),
92
+ "Input validation failed",
93
+ );
94
+ if (!parsed.ok) {
95
+ return [parsed, { status: "invalid" }];
96
+ }
97
+ const payload = parsed.value;
98
+ const body = encodeJSON("body", payload.body, { explode: true });
99
+
100
+ const pathParams = {
101
+ name: encodeSimple("name", payload.name, {
102
+ explode: false,
103
+ charEncoding: "percent",
104
+ }),
105
+ };
106
+ const path = pathToFunc("/api/sandbox/environments/{name}")(pathParams);
107
+
108
+ const query = encodeFormQuery({
109
+ "allowProviderKey": payload.allowProviderKey,
110
+ });
111
+
112
+ const headers = new Headers(compactMap({
113
+ "Content-Type": "application/json",
114
+ Accept: "application/json",
115
+ }));
116
+
117
+ const securityInput = await extractSecurity(client._options.security);
118
+ const requestSecurity = resolveGlobalSecurity(securityInput);
119
+
120
+ const context = {
121
+ options: client._options,
122
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
123
+ operationID: "patchApiSandboxEnvironmentsByName",
124
+ oAuth2Scopes: null,
125
+
126
+ resolvedSecurity: requestSecurity,
127
+
128
+ securitySource: client._options.security,
129
+ retryConfig: options?.retries
130
+ || client._options.retryConfig
131
+ || { strategy: "none" },
132
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
133
+ };
134
+
135
+ const requestRes = client._createRequest(context, {
136
+ security: requestSecurity,
137
+ method: "PATCH",
138
+ baseURL: options?.serverURL,
139
+ path: path,
140
+ headers: headers,
141
+ query: query,
142
+ body: body,
143
+ userAgent: client._options.userAgent,
144
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
145
+ }, options);
146
+ if (!requestRes.ok) {
147
+ return [requestRes, { status: "invalid" }];
148
+ }
149
+ const req = requestRes.value;
150
+
151
+ const doResult = await client._do(req, {
152
+ context,
153
+ isErrorStatusCode: (statusCode: number) =>
154
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
155
+ retryConfig: context.retryConfig,
156
+ retryCodes: context.retryCodes,
157
+ });
158
+ if (!doResult.ok) {
159
+ return [doResult, { status: "request-error", request: req }];
160
+ }
161
+ const response = doResult.value;
162
+
163
+ const responseFields = {
164
+ HttpMeta: { Response: response, Request: req },
165
+ };
166
+
167
+ const [result] = await M.match<
168
+ models.NameVarsSecrets,
169
+ | errors.ErrorMessage
170
+ | errors.ErrorMessageStatusCode
171
+ | MutagentError
172
+ | ResponseValidationError
173
+ | ConnectionError
174
+ | RequestAbortedError
175
+ | RequestTimeoutError
176
+ | InvalidRequestError
177
+ | UnexpectedClientError
178
+ | SDKValidationError
179
+ >(
180
+ M.json(200, models.NameVarsSecrets$inboundSchema),
181
+ M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema),
182
+ M.jsonErr(409, errors.ErrorMessageStatusCode$inboundSchema),
183
+ M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema),
184
+ M.fail("4XX"),
185
+ M.fail("5XX"),
186
+ )(response, req, { extraFields: responseFields });
187
+ if (!result.ok) {
188
+ return [result, { status: "complete", request: req, response }];
189
+ }
190
+
191
+ return [result, { status: "complete", request: req, response }];
192
+ }
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Rebuild this sandbox from a checkpoint, with full state
32
32
  *
33
33
  * @remarks
34
- * A cloud equivalent of a local `/resume`, and it does NOT require the old box to still exist — a reaped or torn-down sandbox is the ordinary input. In order: a fresh box is spawned for the SAME sandbox id at generation+1 with the same secret NAMES (values are re-minted, never stored); the relay's seq counter is seeded from the persisted high-water mark so a client's `?since=` cursor stays valid; the workspace and `$HOME/.mutagent` are extracted BEFORE Helix starts; a session is started in the checkpoint's cwd; the conversation is written in, its sha256 compared against the box's own, and only then switched onto; the runtime settings and pending queue are replayed; and a `session {status:"restored"}` frame is appended to the stream with a real seq. A digest mismatch is a 422 and the session is NOT switched. 404 if the snapshot is not in this workspace. Read `notRestored` — a restore that carried only the conversation is legitimate and says so there. A DEFAULTED restore uses the newest checkpoint that has a manifest and lists newer rows it passed over in `skippedSnapshots`. `partial: true` restores the incremental transcript prefix beyond the checkpoint when one exists (the frame then carries `partial: true`); its tail may end on a tool call with no result, which the harness answers with a synthetic error on the next turn — the accepted risk of asking for it.
34
+ * A cloud equivalent of a local `/resume`, and it does NOT require the old box to still exist — a reaped or torn-down sandbox is the ordinary input. In order: a fresh box is spawned for the SAME sandbox id at generation+1 with the same secret NAMES (values are re-minted, never stored); the relay's seq counter is seeded from the persisted high-water mark so a client's `?since=` cursor stays valid; the workspace and `$HOME/.mutagent` are extracted BEFORE Helix starts; a session is started in the checkpoint's cwd; the conversation is written in, its sha256 compared against the box's own, and only then switched onto; the runtime settings and pending queue are replayed; and a `session {status:"restored"}` frame is appended to the stream with a real seq. A digest mismatch is a 422 and the session is NOT switched. 404 if the snapshot is not in this workspace. Read `notRestored` — a restore that carried only the conversation is legitimate and says so there. A DEFAULTED restore uses the newest checkpoint that has a manifest and lists newer rows it passed over in `skippedSnapshots`. `partial: true` restores the incremental transcript prefix beyond the checkpoint when one exists (the frame then carries `partial: true`); its tail may end on a tool call with no result, which the harness answers with a synthetic error on the next turn — the accepted risk of asking for it. ENVIRONMENT: `environment` and `env` layer onto the restored session exactly as on session start (provider keys, then the Environment, then per-call `env`, then platform-owned variables). The Environment a session was started with is recorded by NAME in the checkpoint manifest and re-resolved when `environment` is omitted; a name in the body wins, and an unknown one is a 404 before the old box is touched. Per-call `env` values are NEVER stored, so a restore that omits `env` does not bring them back — send a model key given as `env` again.
35
35
  */
36
36
  export function sandboxPostApiSandboxByIdRestore(
37
37
  client: MutagentCore,
@@ -0,0 +1,192 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { MutagentCore } from "../core.js";
7
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/http-client-errors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { MutagentError } from "../models/errors/mutagent-error.js";
24
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
25
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
26
+ import * as models from "../models/index.js";
27
+ import * as operations from "../models/operations/index.js";
28
+ import { APICall, APIPromise } from "../types/async.js";
29
+ import { Result } from "../types/fp.js";
30
+
31
+ /**
32
+ * Create or replace a workspace Environment
33
+ *
34
+ * @remarks
35
+ * The whole Environment. Entries the body omits are REMOVED, secrets included. Values are accepted here and never returned by any route; secrets are encrypted at rest with the same key as provider credentials. Names: Environment `^[A-Za-z0-9._-]{1,64}$`, variables `^[A-Z_][A-Z0-9_]*$`, 64 KiB per Environment. 409 for a variable named like a harness provider key unless `?allowProviderKey=1`.
36
+ */
37
+ export function sandboxPutApiSandboxEnvironmentsByName(
38
+ client: MutagentCore,
39
+ request: operations.PutApiSandboxEnvironmentsByNameRequest,
40
+ options?: RequestOptions,
41
+ ): APIPromise<
42
+ Result<
43
+ models.NameVarsSecrets,
44
+ | errors.ErrorMessage
45
+ | errors.ErrorMessageStatusCode
46
+ | MutagentError
47
+ | ResponseValidationError
48
+ | ConnectionError
49
+ | RequestAbortedError
50
+ | RequestTimeoutError
51
+ | InvalidRequestError
52
+ | UnexpectedClientError
53
+ | SDKValidationError
54
+ >
55
+ > {
56
+ return new APIPromise($do(
57
+ client,
58
+ request,
59
+ options,
60
+ ));
61
+ }
62
+
63
+ async function $do(
64
+ client: MutagentCore,
65
+ request: operations.PutApiSandboxEnvironmentsByNameRequest,
66
+ options?: RequestOptions,
67
+ ): Promise<
68
+ [
69
+ Result<
70
+ models.NameVarsSecrets,
71
+ | errors.ErrorMessage
72
+ | errors.ErrorMessageStatusCode
73
+ | MutagentError
74
+ | ResponseValidationError
75
+ | ConnectionError
76
+ | RequestAbortedError
77
+ | RequestTimeoutError
78
+ | InvalidRequestError
79
+ | UnexpectedClientError
80
+ | SDKValidationError
81
+ >,
82
+ APICall,
83
+ ]
84
+ > {
85
+ const parsed = safeParse(
86
+ request,
87
+ (value) =>
88
+ z.parse(
89
+ operations.PutApiSandboxEnvironmentsByNameRequest$outboundSchema,
90
+ value,
91
+ ),
92
+ "Input validation failed",
93
+ );
94
+ if (!parsed.ok) {
95
+ return [parsed, { status: "invalid" }];
96
+ }
97
+ const payload = parsed.value;
98
+ const body = encodeJSON("body", payload.body, { explode: true });
99
+
100
+ const pathParams = {
101
+ name: encodeSimple("name", payload.name, {
102
+ explode: false,
103
+ charEncoding: "percent",
104
+ }),
105
+ };
106
+ const path = pathToFunc("/api/sandbox/environments/{name}")(pathParams);
107
+
108
+ const query = encodeFormQuery({
109
+ "allowProviderKey": payload.allowProviderKey,
110
+ });
111
+
112
+ const headers = new Headers(compactMap({
113
+ "Content-Type": "application/json",
114
+ Accept: "application/json",
115
+ }));
116
+
117
+ const securityInput = await extractSecurity(client._options.security);
118
+ const requestSecurity = resolveGlobalSecurity(securityInput);
119
+
120
+ const context = {
121
+ options: client._options,
122
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
123
+ operationID: "putApiSandboxEnvironmentsByName",
124
+ oAuth2Scopes: null,
125
+
126
+ resolvedSecurity: requestSecurity,
127
+
128
+ securitySource: client._options.security,
129
+ retryConfig: options?.retries
130
+ || client._options.retryConfig
131
+ || { strategy: "none" },
132
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
133
+ };
134
+
135
+ const requestRes = client._createRequest(context, {
136
+ security: requestSecurity,
137
+ method: "PUT",
138
+ baseURL: options?.serverURL,
139
+ path: path,
140
+ headers: headers,
141
+ query: query,
142
+ body: body,
143
+ userAgent: client._options.userAgent,
144
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
145
+ }, options);
146
+ if (!requestRes.ok) {
147
+ return [requestRes, { status: "invalid" }];
148
+ }
149
+ const req = requestRes.value;
150
+
151
+ const doResult = await client._do(req, {
152
+ context,
153
+ isErrorStatusCode: (statusCode: number) =>
154
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
155
+ retryConfig: context.retryConfig,
156
+ retryCodes: context.retryCodes,
157
+ });
158
+ if (!doResult.ok) {
159
+ return [doResult, { status: "request-error", request: req }];
160
+ }
161
+ const response = doResult.value;
162
+
163
+ const responseFields = {
164
+ HttpMeta: { Response: response, Request: req },
165
+ };
166
+
167
+ const [result] = await M.match<
168
+ models.NameVarsSecrets,
169
+ | errors.ErrorMessage
170
+ | errors.ErrorMessageStatusCode
171
+ | MutagentError
172
+ | ResponseValidationError
173
+ | ConnectionError
174
+ | RequestAbortedError
175
+ | RequestTimeoutError
176
+ | InvalidRequestError
177
+ | UnexpectedClientError
178
+ | SDKValidationError
179
+ >(
180
+ M.json(200, models.NameVarsSecrets$inboundSchema),
181
+ M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema),
182
+ M.jsonErr(409, errors.ErrorMessageStatusCode$inboundSchema),
183
+ M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema),
184
+ M.fail("4XX"),
185
+ M.fail("5XX"),
186
+ )(response, req, { extraFields: responseFields });
187
+ if (!result.ok) {
188
+ return [result, { status: "complete", request: req, response }];
189
+ }
190
+
191
+ return [result, { status: "complete", request: req, response }];
192
+ }
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "2.0.0",
68
- sdkVersion: "0.3.48",
68
+ sdkVersion: "0.3.49",
69
69
  genVersion: "2.935.1",
70
- userAgent: "speakeasy-sdk/typescript 0.3.48 2.935.1 2.0.0 @mutagent/sdk",
70
+ userAgent: "speakeasy-sdk/typescript 0.3.49 2.935.1 2.0.0 @mutagent/sdk",
71
71
  } as const;
@@ -27,6 +27,7 @@ export * from "./name-slug-description2.js";
27
27
  export * from "./name-slug-description3.js";
28
28
  export * from "./name-slug-description4.js";
29
29
  export * from "./name-slug-description5.js";
30
+ export * from "./name-vars-secrets.js";
30
31
  export * from "./org-member-count-or-error-union.js";
31
32
  export * from "./org-success-or-error-union.js";
32
33
  export * from "./organization-list-or-error-union.js";
@@ -37,11 +38,12 @@ export * from "./provider-config.js";
37
38
  export * from "./provider-configs-list.js";
38
39
  export * from "./provider-success.js";
39
40
  export * from "./schemadefaul.js";
40
- export * from "./schemadefaul11.js";
41
+ export * from "./schemadefaul10.js";
42
+ export * from "./schemadefaul12.js";
41
43
  export * from "./schemadefaul5.js";
42
44
  export * from "./schemadefaul6.js";
43
45
  export * from "./schemadefaul7.js";
44
- export * from "./schemadefaul9.js";
46
+ export * from "./schemadefaul8.js";
45
47
  export * from "./security.js";
46
48
  export * from "./session-id-line.js";
47
49
  export * from "./session-id-signal.js";
@@ -50,6 +52,7 @@ export * from "./success-message.js";
50
52
  export * from "./test-connection-result.js";
51
53
  export * from "./user-id-role-status.js";
52
54
  export * from "./user-id-role.js";
55
+ export * from "./vars-secrets.js";
53
56
  export * from "./workspace-model-listing.js";
54
57
  export * from "./workspace.js";
55
58
  export * from "./workspaces-list.js";
@@ -3,16 +3,16 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
- import {
7
- Schemadefaul6,
8
- Schemadefaul6$outboundSchema,
9
- Schemadefaul6Open,
10
- } from "./schemadefaul6.js";
11
6
  import {
12
7
  Schemadefaul7,
13
8
  Schemadefaul7$outboundSchema,
14
9
  Schemadefaul7Open,
15
10
  } from "./schemadefaul7.js";
11
+ import {
12
+ Schemadefaul8,
13
+ Schemadefaul8$outboundSchema,
14
+ Schemadefaul8Open,
15
+ } from "./schemadefaul8.js";
16
16
 
17
17
  /**
18
18
  * Per-session override of what continuous capture carries.
@@ -28,19 +28,23 @@ export type ModeArmArgs = {
28
28
  /**
29
29
  * Defaults to `oneshot` — the pre-existing behaviour. `rpc` starts a duplex session that emits `rpc` events on the stream and accepts `POST /:id/input`.
30
30
  */
31
- mode?: Schemadefaul6Open | undefined;
31
+ mode?: Schemadefaul7Open | undefined;
32
32
  /**
33
33
  * Which launcher arm to run. `classic` = `helix …` (orchestrator loaded), `prime` = `helix --prime …`, `agent` = `helix agent …`. Defaults to `agent`.
34
34
  */
35
- arm?: Schemadefaul7Open | undefined;
35
+ arm?: Schemadefaul8Open | undefined;
36
36
  /**
37
37
  * Arguments for the Helix binary. Omitted starts it with none.
38
38
  */
39
39
  args?: Array<string> | undefined;
40
40
  /**
41
- * Per-call environment, merged OVER the sandbox's own scoped material. Rides the invocation payload, so it does not mint a new Runtime.
41
+ * Per-call environment, merged OVER the sandbox's own scoped material and OVER `environment`. Rides the invocation payload, so it does not mint a new Runtime.
42
42
  */
43
43
  env?: { [k: string]: string } | undefined;
44
+ /**
45
+ * A workspace Environment (GET /api/sandbox/environments) to load into this session, resolved server-side and layered UNDER `env`. 404 when the workspace has none by that name.
46
+ */
47
+ environment?: string | undefined;
44
48
  /**
45
49
  * Working directory for the agent. Omitted, an `rpc` session runs in `$HOME` (writable by construction); `oneshot` inherits the server cwd exactly as it always has.
46
50
  */
@@ -78,6 +82,7 @@ export type ModeArmArgs$Outbound = {
78
82
  arm: string;
79
83
  args?: Array<string> | undefined;
80
84
  env?: { [k: string]: string } | undefined;
85
+ environment?: string | undefined;
81
86
  cwd?: string | undefined;
82
87
  capture?: ModeArmArgsCapture$Outbound | undefined;
83
88
  };
@@ -87,10 +92,11 @@ export const ModeArmArgs$outboundSchema: z.ZodMiniType<
87
92
  ModeArmArgs$Outbound,
88
93
  ModeArmArgs
89
94
  > = z.object({
90
- mode: z._default(Schemadefaul6$outboundSchema, Schemadefaul6.Oneshot),
91
- arm: z._default(Schemadefaul7$outboundSchema, Schemadefaul7.Classic),
95
+ mode: z._default(Schemadefaul7$outboundSchema, Schemadefaul7.Oneshot),
96
+ arm: z._default(Schemadefaul8$outboundSchema, Schemadefaul8.Classic),
92
97
  args: z.optional(z.array(z.string())),
93
98
  env: z.optional(z.record(z.string(), z.string())),
99
+ environment: z.optional(z.string()),
94
100
  cwd: z.optional(z.string()),
95
101
  capture: z.optional(z.lazy(() => ModeArmArgsCapture$outboundSchema)),
96
102
  });
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import * as types from "../types/primitives.js";
9
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
10
+
11
+ /**
12
+ * A name and the fingerprint of its value.
13
+ */
14
+ export type Var = {
15
+ /**
16
+ * Variable name
17
+ */
18
+ name: string;
19
+ /**
20
+ * First 8 hex characters of sha256(value). Never the value.
21
+ */
22
+ fingerprint: string;
23
+ };
24
+
25
+ /**
26
+ * A name and the fingerprint of its value.
27
+ */
28
+ export type Secret = {
29
+ /**
30
+ * Variable name
31
+ */
32
+ name: string;
33
+ /**
34
+ * First 8 hex characters of sha256(value). Never the value.
35
+ */
36
+ fingerprint: string;
37
+ };
38
+
39
+ export type NameVarsSecrets = {
40
+ /**
41
+ * Environment name — e.g. staging, e2e, prod
42
+ */
43
+ name: string;
44
+ /**
45
+ * Non-secret variables: names + fingerprints.
46
+ */
47
+ vars: Array<Var>;
48
+ /**
49
+ * Secrets: names + fingerprints. Values are encrypted at rest and never returned.
50
+ */
51
+ secrets: Array<Secret>;
52
+ /**
53
+ * ISO timestamp, when the store keeps one.
54
+ */
55
+ createdAt: string | null;
56
+ /**
57
+ * ISO timestamp of the last write, when the store keeps one.
58
+ */
59
+ updatedAt: string | null;
60
+ };
61
+
62
+ /** @internal */
63
+ export const Var$inboundSchema: z.ZodMiniType<Var, unknown> = z.object({
64
+ name: types.string(),
65
+ fingerprint: types.string(),
66
+ });
67
+
68
+ export function varFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<Var, SDKValidationError> {
71
+ return safeParse(
72
+ jsonString,
73
+ (x) => Var$inboundSchema.parse(JSON.parse(x)),
74
+ `Failed to parse 'Var' from JSON`,
75
+ );
76
+ }
77
+
78
+ /** @internal */
79
+ export const Secret$inboundSchema: z.ZodMiniType<Secret, unknown> = z.object({
80
+ name: types.string(),
81
+ fingerprint: types.string(),
82
+ });
83
+
84
+ export function secretFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<Secret, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) => Secret$inboundSchema.parse(JSON.parse(x)),
90
+ `Failed to parse 'Secret' from JSON`,
91
+ );
92
+ }
93
+
94
+ /** @internal */
95
+ export const NameVarsSecrets$inboundSchema: z.ZodMiniType<
96
+ NameVarsSecrets,
97
+ unknown
98
+ > = z.object({
99
+ name: types.string(),
100
+ vars: z.array(z.lazy(() => Var$inboundSchema)),
101
+ secrets: z.array(z.lazy(() => Secret$inboundSchema)),
102
+ createdAt: types.nullable(types.string()),
103
+ updatedAt: types.nullable(types.string()),
104
+ });
105
+
106
+ export function nameVarsSecretsFromJSON(
107
+ jsonString: string,
108
+ ): SafeParseResult<NameVarsSecrets, SDKValidationError> {
109
+ return safeParse(
110
+ jsonString,
111
+ (x) => NameVarsSecrets$inboundSchema.parse(JSON.parse(x)),
112
+ `Failed to parse 'NameVarsSecrets' from JSON`,
113
+ );
114
+ }
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
+
11
+ export type DeleteApiSandboxEnvironmentsByNameRequest = {
12
+ name: string;
13
+ };
14
+
15
+ /**
16
+ * Response for status 200
17
+ */
18
+ export type DeleteApiSandboxEnvironmentsByNameResponse = {
19
+ deleted: true;
20
+ name: string;
21
+ };
22
+
23
+ /** @internal */
24
+ export type DeleteApiSandboxEnvironmentsByNameRequest$Outbound = {
25
+ name: string;
26
+ };
27
+
28
+ /** @internal */
29
+ export const DeleteApiSandboxEnvironmentsByNameRequest$outboundSchema:
30
+ z.ZodMiniType<
31
+ DeleteApiSandboxEnvironmentsByNameRequest$Outbound,
32
+ DeleteApiSandboxEnvironmentsByNameRequest
33
+ > = z.object({
34
+ name: z.string(),
35
+ });
36
+
37
+ export function deleteApiSandboxEnvironmentsByNameRequestToJSON(
38
+ deleteApiSandboxEnvironmentsByNameRequest:
39
+ DeleteApiSandboxEnvironmentsByNameRequest,
40
+ ): string {
41
+ return JSON.stringify(
42
+ DeleteApiSandboxEnvironmentsByNameRequest$outboundSchema.parse(
43
+ deleteApiSandboxEnvironmentsByNameRequest,
44
+ ),
45
+ );
46
+ }
47
+
48
+ /** @internal */
49
+ export const DeleteApiSandboxEnvironmentsByNameResponse$inboundSchema:
50
+ z.ZodMiniType<DeleteApiSandboxEnvironmentsByNameResponse, unknown> = z.object(
51
+ {
52
+ deleted: types.literal(true),
53
+ name: types.string(),
54
+ },
55
+ );
56
+
57
+ export function deleteApiSandboxEnvironmentsByNameResponseFromJSON(
58
+ jsonString: string,
59
+ ): SafeParseResult<
60
+ DeleteApiSandboxEnvironmentsByNameResponse,
61
+ SDKValidationError
62
+ > {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) =>
66
+ DeleteApiSandboxEnvironmentsByNameResponse$inboundSchema.parse(
67
+ JSON.parse(x),
68
+ ),
69
+ `Failed to parse 'DeleteApiSandboxEnvironmentsByNameResponse' from JSON`,
70
+ );
71
+ }