@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
@@ -2,14 +2,18 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import { sandboxDeleteApiSandboxById } from "../funcs/sandbox-delete-api-sandbox-by-id.js";
5
+ import { sandboxDeleteApiSandboxEnvironmentsByName } from "../funcs/sandbox-delete-api-sandbox-environments-by-name.js";
5
6
  import { sandboxGetApiSandboxByIdCheckpoints } from "../funcs/sandbox-get-api-sandbox-by-id-checkpoints.js";
6
7
  import { sandboxGetApiSandboxByIdSessions } from "../funcs/sandbox-get-api-sandbox-by-id-sessions.js";
7
8
  import { sandboxGetApiSandboxByIdStream } from "../funcs/sandbox-get-api-sandbox-by-id-stream.js";
8
9
  import { sandboxGetApiSandboxByIdTraces } from "../funcs/sandbox-get-api-sandbox-by-id-traces.js";
9
10
  import { sandboxGetApiSandboxById } from "../funcs/sandbox-get-api-sandbox-by-id.js";
11
+ import { sandboxGetApiSandboxEnvironmentsByName } from "../funcs/sandbox-get-api-sandbox-environments-by-name.js";
12
+ import { sandboxGetApiSandboxEnvironments } from "../funcs/sandbox-get-api-sandbox-environments.js";
10
13
  import { sandboxGetApiSandboxPresets } from "../funcs/sandbox-get-api-sandbox-presets.js";
11
14
  import { sandboxGetApiSandboxProviders } from "../funcs/sandbox-get-api-sandbox-providers.js";
12
15
  import { sandboxGetApiSandbox } from "../funcs/sandbox-get-api-sandbox.js";
16
+ import { sandboxPatchApiSandboxEnvironmentsByName } from "../funcs/sandbox-patch-api-sandbox-environments-by-name.js";
13
17
  import { sandboxPostApiSandboxAgentRun } from "../funcs/sandbox-post-api-sandbox-agent-run.js";
14
18
  import { sandboxPostApiSandboxByIdCheckpoint } from "../funcs/sandbox-post-api-sandbox-by-id-checkpoint.js";
15
19
  import { sandboxPostApiSandboxByIdExec } from "../funcs/sandbox-post-api-sandbox-by-id-exec.js";
@@ -22,6 +26,7 @@ import { sandboxPostApiSandboxRun } from "../funcs/sandbox-post-api-sandbox-run.
22
26
  import { sandboxPostApiSandboxTelemetryV1Traces } from "../funcs/sandbox-post-api-sandbox-telemetry-v1-traces.js";
23
27
  import { sandboxPostApiSandboxToken } from "../funcs/sandbox-post-api-sandbox-token.js";
24
28
  import { sandboxPostApiSandbox } from "../funcs/sandbox-post-api-sandbox.js";
29
+ import { sandboxPutApiSandboxEnvironmentsByName } from "../funcs/sandbox-put-api-sandbox-environments-by-name.js";
25
30
  import { ClientSDK } from "../lib/sdks.js";
26
31
  import { unwrapAsync } from "../types/fp.js";
27
32
  export class Sandbox extends ClientSDK {
@@ -127,6 +132,51 @@ export class Sandbox extends ClientSDK {
127
132
  async getApiSandboxByIdTraces(request, options) {
128
133
  return unwrapAsync(sandboxGetApiSandboxByIdTraces(this, request, options));
129
134
  }
135
+ /**
136
+ * List workspace Environments
137
+ *
138
+ * @remarks
139
+ * Every Environment in the token's workspace: its name, the names of its variables and secrets with a `sha256(value)[:8]` fingerprint each, and timestamps. No value is ever returned — compare fingerprints to tell whether what you hold is what is stored. Environments carry the variables and secrets an agent's TOOLS need; LLM provider credentials are `/api/providers`, a different thing. 503 when the deployment has not migrated the table.
140
+ */
141
+ async getApiSandboxEnvironments(options) {
142
+ return unwrapAsync(sandboxGetApiSandboxEnvironments(this, options));
143
+ }
144
+ /**
145
+ * Describe one workspace Environment
146
+ *
147
+ * @remarks
148
+ * Names and fingerprints only — the same shape as one entry of the list. 404 for a name this workspace does not have, including one another workspace does.
149
+ */
150
+ async getApiSandboxEnvironmentsByName(request, options) {
151
+ return unwrapAsync(sandboxGetApiSandboxEnvironmentsByName(this, request, options));
152
+ }
153
+ /**
154
+ * Create or replace a workspace Environment
155
+ *
156
+ * @remarks
157
+ * 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`.
158
+ */
159
+ async putApiSandboxEnvironmentsByName(request, options) {
160
+ return unwrapAsync(sandboxPutApiSandboxEnvironmentsByName(this, request, options));
161
+ }
162
+ /**
163
+ * Set or unset entries of a workspace Environment
164
+ *
165
+ * @remarks
166
+ * 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.
167
+ */
168
+ async patchApiSandboxEnvironmentsByName(request, options) {
169
+ return unwrapAsync(sandboxPatchApiSandboxEnvironmentsByName(this, request, options));
170
+ }
171
+ /**
172
+ * Delete a workspace Environment
173
+ *
174
+ * @remarks
175
+ * Removes the Environment and its encrypted secrets. Boxes already running keep what they were handed; the next spawn naming this Environment answers 404. 404 when there is nothing to delete — a retried delete is not a success.
176
+ */
177
+ async deleteApiSandboxEnvironmentsByName(request, options) {
178
+ return unwrapAsync(sandboxDeleteApiSandboxEnvironmentsByName(this, request, options));
179
+ }
130
180
  /**
131
181
  * Start a Helix session in a sandbox
132
182
  *
@@ -185,7 +235,7 @@ export class Sandbox extends ClientSDK {
185
235
  * Rebuild this sandbox from a checkpoint, with full state
186
236
  *
187
237
  * @remarks
188
- * 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.
238
+ * 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.
189
239
  */
190
240
  async postApiSandboxByIdRestore(request, options) {
191
241
  return unwrapAsync(sandboxPostApiSandboxByIdRestore(this, request, options));
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../src/sdk/sandbox.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,mCAAmC,EAAE,MAAM,uDAAuD,CAAC;AAC5G,OAAO,EAAE,gCAAgC,EAAE,MAAM,oDAAoD,CAAC;AACtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kDAAkD,CAAC;AAClG,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC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ACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutagent/sdk",
3
- "version": "0.3.48",
3
+ "version": "0.3.49",
4
4
  "author": "Speakeasy",
5
5
  "tshy": {
6
6
  "sourceDialects": [
@@ -0,0 +1,188 @@
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 { 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 operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Delete a workspace Environment
32
+ *
33
+ * @remarks
34
+ * Removes the Environment and its encrypted secrets. Boxes already running keep what they were handed; the next spawn naming this Environment answers 404. 404 when there is nothing to delete — a retried delete is not a success.
35
+ */
36
+ export function sandboxDeleteApiSandboxEnvironmentsByName(
37
+ client: MutagentCore,
38
+ request: operations.DeleteApiSandboxEnvironmentsByNameRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ operations.DeleteApiSandboxEnvironmentsByNameResponse,
43
+ | errors.ErrorMessage
44
+ | errors.ErrorMessageStatusCode
45
+ | MutagentError
46
+ | ResponseValidationError
47
+ | ConnectionError
48
+ | RequestAbortedError
49
+ | RequestTimeoutError
50
+ | InvalidRequestError
51
+ | UnexpectedClientError
52
+ | SDKValidationError
53
+ >
54
+ > {
55
+ return new APIPromise($do(
56
+ client,
57
+ request,
58
+ options,
59
+ ));
60
+ }
61
+
62
+ async function $do(
63
+ client: MutagentCore,
64
+ request: operations.DeleteApiSandboxEnvironmentsByNameRequest,
65
+ options?: RequestOptions,
66
+ ): Promise<
67
+ [
68
+ Result<
69
+ operations.DeleteApiSandboxEnvironmentsByNameResponse,
70
+ | errors.ErrorMessage
71
+ | errors.ErrorMessageStatusCode
72
+ | MutagentError
73
+ | ResponseValidationError
74
+ | ConnectionError
75
+ | RequestAbortedError
76
+ | RequestTimeoutError
77
+ | InvalidRequestError
78
+ | UnexpectedClientError
79
+ | SDKValidationError
80
+ >,
81
+ APICall,
82
+ ]
83
+ > {
84
+ const parsed = safeParse(
85
+ request,
86
+ (value) =>
87
+ z.parse(
88
+ operations.DeleteApiSandboxEnvironmentsByNameRequest$outboundSchema,
89
+ value,
90
+ ),
91
+ "Input validation failed",
92
+ );
93
+ if (!parsed.ok) {
94
+ return [parsed, { status: "invalid" }];
95
+ }
96
+ const payload = parsed.value;
97
+ const body = null;
98
+
99
+ const pathParams = {
100
+ name: encodeSimple("name", payload.name, {
101
+ explode: false,
102
+ charEncoding: "percent",
103
+ }),
104
+ };
105
+ const path = pathToFunc("/api/sandbox/environments/{name}")(pathParams);
106
+
107
+ const headers = new Headers(compactMap({
108
+ Accept: "application/json",
109
+ }));
110
+
111
+ const securityInput = await extractSecurity(client._options.security);
112
+ const requestSecurity = resolveGlobalSecurity(securityInput);
113
+
114
+ const context = {
115
+ options: client._options,
116
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
117
+ operationID: "deleteApiSandboxEnvironmentsByName",
118
+ oAuth2Scopes: null,
119
+
120
+ resolvedSecurity: requestSecurity,
121
+
122
+ securitySource: client._options.security,
123
+ retryConfig: options?.retries
124
+ || client._options.retryConfig
125
+ || { strategy: "none" },
126
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
127
+ };
128
+
129
+ const requestRes = client._createRequest(context, {
130
+ security: requestSecurity,
131
+ method: "DELETE",
132
+ baseURL: options?.serverURL,
133
+ path: path,
134
+ headers: headers,
135
+ body: body,
136
+ userAgent: client._options.userAgent,
137
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
138
+ }, options);
139
+ if (!requestRes.ok) {
140
+ return [requestRes, { status: "invalid" }];
141
+ }
142
+ const req = requestRes.value;
143
+
144
+ const doResult = await client._do(req, {
145
+ context,
146
+ isErrorStatusCode: (statusCode: number) =>
147
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
148
+ retryConfig: context.retryConfig,
149
+ retryCodes: context.retryCodes,
150
+ });
151
+ if (!doResult.ok) {
152
+ return [doResult, { status: "request-error", request: req }];
153
+ }
154
+ const response = doResult.value;
155
+
156
+ const responseFields = {
157
+ HttpMeta: { Response: response, Request: req },
158
+ };
159
+
160
+ const [result] = await M.match<
161
+ operations.DeleteApiSandboxEnvironmentsByNameResponse,
162
+ | errors.ErrorMessage
163
+ | errors.ErrorMessageStatusCode
164
+ | MutagentError
165
+ | ResponseValidationError
166
+ | ConnectionError
167
+ | RequestAbortedError
168
+ | RequestTimeoutError
169
+ | InvalidRequestError
170
+ | UnexpectedClientError
171
+ | SDKValidationError
172
+ >(
173
+ M.json(
174
+ 200,
175
+ operations.DeleteApiSandboxEnvironmentsByNameResponse$inboundSchema,
176
+ ),
177
+ M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema),
178
+ M.jsonErr(409, errors.ErrorMessageStatusCode$inboundSchema),
179
+ M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema),
180
+ M.fail("4XX"),
181
+ M.fail("5XX"),
182
+ )(response, req, { extraFields: responseFields });
183
+ if (!result.ok) {
184
+ return [result, { status: "complete", request: req, response }];
185
+ }
186
+
187
+ return [result, { status: "complete", request: req, response }];
188
+ }
@@ -0,0 +1,185 @@
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 { 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
+ * Describe one workspace Environment
33
+ *
34
+ * @remarks
35
+ * Names and fingerprints only — the same shape as one entry of the list. 404 for a name this workspace does not have, including one another workspace does.
36
+ */
37
+ export function sandboxGetApiSandboxEnvironmentsByName(
38
+ client: MutagentCore,
39
+ request: operations.GetApiSandboxEnvironmentsByNameRequest,
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.GetApiSandboxEnvironmentsByNameRequest,
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.GetApiSandboxEnvironmentsByNameRequest$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 = null;
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 headers = new Headers(compactMap({
109
+ Accept: "application/json",
110
+ }));
111
+
112
+ const securityInput = await extractSecurity(client._options.security);
113
+ const requestSecurity = resolveGlobalSecurity(securityInput);
114
+
115
+ const context = {
116
+ options: client._options,
117
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
118
+ operationID: "getApiSandboxEnvironmentsByName",
119
+ oAuth2Scopes: null,
120
+
121
+ resolvedSecurity: requestSecurity,
122
+
123
+ securitySource: client._options.security,
124
+ retryConfig: options?.retries
125
+ || client._options.retryConfig
126
+ || { strategy: "none" },
127
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
128
+ };
129
+
130
+ const requestRes = client._createRequest(context, {
131
+ security: requestSecurity,
132
+ method: "GET",
133
+ baseURL: options?.serverURL,
134
+ path: path,
135
+ headers: headers,
136
+ body: body,
137
+ userAgent: client._options.userAgent,
138
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
139
+ }, options);
140
+ if (!requestRes.ok) {
141
+ return [requestRes, { status: "invalid" }];
142
+ }
143
+ const req = requestRes.value;
144
+
145
+ const doResult = await client._do(req, {
146
+ context,
147
+ isErrorStatusCode: (statusCode: number) =>
148
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
149
+ retryConfig: context.retryConfig,
150
+ retryCodes: context.retryCodes,
151
+ });
152
+ if (!doResult.ok) {
153
+ return [doResult, { status: "request-error", request: req }];
154
+ }
155
+ const response = doResult.value;
156
+
157
+ const responseFields = {
158
+ HttpMeta: { Response: response, Request: req },
159
+ };
160
+
161
+ const [result] = await M.match<
162
+ models.NameVarsSecrets,
163
+ | errors.ErrorMessage
164
+ | errors.ErrorMessageStatusCode
165
+ | MutagentError
166
+ | ResponseValidationError
167
+ | ConnectionError
168
+ | RequestAbortedError
169
+ | RequestTimeoutError
170
+ | InvalidRequestError
171
+ | UnexpectedClientError
172
+ | SDKValidationError
173
+ >(
174
+ M.json(200, models.NameVarsSecrets$inboundSchema),
175
+ M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema),
176
+ M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema),
177
+ M.fail("4XX"),
178
+ M.fail("5XX"),
179
+ )(response, req, { extraFields: responseFields });
180
+ if (!result.ok) {
181
+ return [result, { status: "complete", request: req, response }];
182
+ }
183
+
184
+ return [result, { status: "complete", request: req, response }];
185
+ }
@@ -0,0 +1,156 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MutagentCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/http-client-errors.js";
19
+ import * as errors from "../models/errors/index.js";
20
+ import { MutagentError } from "../models/errors/mutagent-error.js";
21
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
22
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { APICall, APIPromise } from "../types/async.js";
25
+ import { Result } from "../types/fp.js";
26
+
27
+ /**
28
+ * List workspace Environments
29
+ *
30
+ * @remarks
31
+ * Every Environment in the token's workspace: its name, the names of its variables and secrets with a `sha256(value)[:8]` fingerprint each, and timestamps. No value is ever returned — compare fingerprints to tell whether what you hold is what is stored. Environments carry the variables and secrets an agent's TOOLS need; LLM provider credentials are `/api/providers`, a different thing. 503 when the deployment has not migrated the table.
32
+ */
33
+ export function sandboxGetApiSandboxEnvironments(
34
+ client: MutagentCore,
35
+ options?: RequestOptions,
36
+ ): APIPromise<
37
+ Result<
38
+ operations.GetApiSandboxEnvironmentsResponse,
39
+ | errors.ErrorMessage
40
+ | errors.ErrorMessageStatusCode
41
+ | MutagentError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
+ | RequestAbortedError
45
+ | RequestTimeoutError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
49
+ >
50
+ > {
51
+ return new APIPromise($do(
52
+ client,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client: MutagentCore,
59
+ options?: RequestOptions,
60
+ ): Promise<
61
+ [
62
+ Result<
63
+ operations.GetApiSandboxEnvironmentsResponse,
64
+ | errors.ErrorMessage
65
+ | errors.ErrorMessageStatusCode
66
+ | MutagentError
67
+ | ResponseValidationError
68
+ | ConnectionError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
74
+ >,
75
+ APICall,
76
+ ]
77
+ > {
78
+ const path = pathToFunc("/api/sandbox/environments")();
79
+
80
+ const headers = new Headers(compactMap({
81
+ Accept: "application/json",
82
+ }));
83
+
84
+ const securityInput = await extractSecurity(client._options.security);
85
+ const requestSecurity = resolveGlobalSecurity(securityInput);
86
+
87
+ const context = {
88
+ options: client._options,
89
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
90
+ operationID: "getApiSandboxEnvironments",
91
+ oAuth2Scopes: null,
92
+
93
+ resolvedSecurity: requestSecurity,
94
+
95
+ securitySource: client._options.security,
96
+ retryConfig: options?.retries
97
+ || client._options.retryConfig
98
+ || { strategy: "none" },
99
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
100
+ };
101
+
102
+ const requestRes = client._createRequest(context, {
103
+ security: requestSecurity,
104
+ method: "GET",
105
+ baseURL: options?.serverURL,
106
+ path: path,
107
+ headers: headers,
108
+ userAgent: client._options.userAgent,
109
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
110
+ }, options);
111
+ if (!requestRes.ok) {
112
+ return [requestRes, { status: "invalid" }];
113
+ }
114
+ const req = requestRes.value;
115
+
116
+ const doResult = await client._do(req, {
117
+ context,
118
+ isErrorStatusCode: (statusCode: number) =>
119
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
120
+ retryConfig: context.retryConfig,
121
+ retryCodes: context.retryCodes,
122
+ });
123
+ if (!doResult.ok) {
124
+ return [doResult, { status: "request-error", request: req }];
125
+ }
126
+ const response = doResult.value;
127
+
128
+ const responseFields = {
129
+ HttpMeta: { Response: response, Request: req },
130
+ };
131
+
132
+ const [result] = await M.match<
133
+ operations.GetApiSandboxEnvironmentsResponse,
134
+ | errors.ErrorMessage
135
+ | errors.ErrorMessageStatusCode
136
+ | MutagentError
137
+ | ResponseValidationError
138
+ | ConnectionError
139
+ | RequestAbortedError
140
+ | RequestTimeoutError
141
+ | InvalidRequestError
142
+ | UnexpectedClientError
143
+ | SDKValidationError
144
+ >(
145
+ M.json(200, operations.GetApiSandboxEnvironmentsResponse$inboundSchema),
146
+ M.jsonErr([400, 401, 403, 404], errors.ErrorMessage$inboundSchema),
147
+ M.jsonErr(500, errors.ErrorMessageStatusCode$inboundSchema),
148
+ M.fail("4XX"),
149
+ M.fail("5XX"),
150
+ )(response, req, { extraFields: responseFields });
151
+ if (!result.ok) {
152
+ return [result, { status: "complete", request: req, response }];
153
+ }
154
+
155
+ return [result, { status: "complete", request: req, response }];
156
+ }