@mutagent/sdk 0.3.34 → 0.3.36
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.
- package/README.md +114 -7
- package/dist/commonjs/funcs/sandbox-delete-api-sandbox-by-id.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-delete-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-delete-api-sandbox-by-id.js +124 -0
- package/dist/commonjs/funcs/sandbox-delete-api-sandbox-by-id.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-stream.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-stream.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-stream.js +128 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-stream.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-traces.d.ts +15 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-traces.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-traces.js +121 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-traces.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id.d.ts +15 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id.js +121 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-presets.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-presets.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-presets.js +108 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-presets.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-providers.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-providers.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-providers.js +108 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-providers.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox.js +109 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.js +123 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-agent-run.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-exec.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-exec.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-exec.js +129 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-exec.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-preflight.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-preflight.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-preflight.js +119 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-preflight.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-run.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-run.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-run.js +119 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-run.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.js +108 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-token.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-token.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-token.js +119 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-token.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox.js +119 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/errors/delete-api-sandbox-by-id.d.ts +137 -0
- package/dist/commonjs/models/errors/delete-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/commonjs/models/errors/delete-api-sandbox-by-id.js +207 -0
- package/dist/commonjs/models/errors/delete-api-sandbox-by-id.js.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id-stream.d.ts +114 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id-stream.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id-stream.js +179 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id-stream.js.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id-traces.d.ts +114 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id-traces.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id-traces.js +179 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id-traces.js.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id.d.ts +114 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id.js +179 -0
- package/dist/commonjs/models/errors/get-api-sandbox-by-id.js.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-presets.d.ts +114 -0
- package/dist/commonjs/models/errors/get-api-sandbox-presets.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-presets.js +179 -0
- package/dist/commonjs/models/errors/get-api-sandbox-presets.js.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-providers.d.ts +114 -0
- package/dist/commonjs/models/errors/get-api-sandbox-providers.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox-providers.js +179 -0
- package/dist/commonjs/models/errors/get-api-sandbox-providers.js.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox.d.ts +114 -0
- package/dist/commonjs/models/errors/get-api-sandbox.d.ts.map +1 -0
- package/dist/commonjs/models/errors/get-api-sandbox.js +179 -0
- package/dist/commonjs/models/errors/get-api-sandbox.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +14 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +14 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.d.ts +137 -0
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.js +207 -0
- package/dist/commonjs/models/errors/post-api-sandbox-agent-run.js.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-by-id-exec.d.ts +137 -0
- package/dist/commonjs/models/errors/post-api-sandbox-by-id-exec.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-by-id-exec.js +207 -0
- package/dist/commonjs/models/errors/post-api-sandbox-by-id-exec.js.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-preflight.d.ts +137 -0
- package/dist/commonjs/models/errors/post-api-sandbox-preflight.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-preflight.js +207 -0
- package/dist/commonjs/models/errors/post-api-sandbox-preflight.js.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-run.d.ts +137 -0
- package/dist/commonjs/models/errors/post-api-sandbox-run.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-run.js +207 -0
- package/dist/commonjs/models/errors/post-api-sandbox-run.js.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-telemetry-v1-traces.d.ts +137 -0
- package/dist/commonjs/models/errors/post-api-sandbox-telemetry-v1-traces.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-telemetry-v1-traces.js +211 -0
- package/dist/commonjs/models/errors/post-api-sandbox-telemetry-v1-traces.js.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-token.d.ts +91 -0
- package/dist/commonjs/models/errors/post-api-sandbox-token.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox-token.js +151 -0
- package/dist/commonjs/models/errors/post-api-sandbox-token.js.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox.d.ts +137 -0
- package/dist/commonjs/models/errors/post-api-sandbox.d.ts.map +1 -0
- package/dist/commonjs/models/errors/post-api-sandbox.js +207 -0
- package/dist/commonjs/models/errors/post-api-sandbox.js.map +1 -0
- package/dist/commonjs/models/operations/delete-api-sandbox-by-id.d.ts +23 -0
- package/dist/commonjs/models/operations/delete-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/commonjs/models/operations/delete-api-sandbox-by-id.js +59 -0
- package/dist/commonjs/models/operations/delete-api-sandbox-by-id.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-stream.d.ts +26 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-stream.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-stream.js +57 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-stream.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-traces.d.ts +27 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-traces.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-traces.js +64 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-traces.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.d.ts +36 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.js +71 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-presets.d.ts +47 -0
- package/dist/commonjs/models/operations/get-api-sandbox-presets.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-presets.js +75 -0
- package/dist/commonjs/models/operations/get-api-sandbox-presets.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-providers.d.ts +14 -0
- package/dist/commonjs/models/operations/get-api-sandbox-providers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-providers.js +52 -0
- package/dist/commonjs/models/operations/get-api-sandbox-providers.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox.d.ts +61 -0
- package/dist/commonjs/models/operations/get-api-sandbox.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox.js +81 -0
- package/dist/commonjs/models/operations/get-api-sandbox.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +14 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +14 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.d.ts +101 -0
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.js +91 -0
- package/dist/commonjs/models/operations/post-api-sandbox-agent-run.js.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-exec.d.ts +67 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-exec.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-exec.js +86 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-exec.js.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-preflight.d.ts +208 -0
- package/dist/commonjs/models/operations/post-api-sandbox-preflight.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-preflight.js +146 -0
- package/dist/commonjs/models/operations/post-api-sandbox-preflight.js.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-run.d.ts +69 -0
- package/dist/commonjs/models/operations/post-api-sandbox-run.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-run.js +70 -0
- package/dist/commonjs/models/operations/post-api-sandbox-run.js.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-telemetry-v1-traces.d.ts +13 -0
- package/dist/commonjs/models/operations/post-api-sandbox-telemetry-v1-traces.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-telemetry-v1-traces.js +51 -0
- package/dist/commonjs/models/operations/post-api-sandbox-telemetry-v1-traces.js.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-token.d.ts +36 -0
- package/dist/commonjs/models/operations/post-api-sandbox-token.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-token.js +60 -0
- package/dist/commonjs/models/operations/post-api-sandbox-token.js.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox.d.ts +254 -0
- package/dist/commonjs/models/operations/post-api-sandbox.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox.js +174 -0
- package/dist/commonjs/models/operations/post-api-sandbox.js.map +1 -0
- package/dist/commonjs/sdk/sandbox.d.ts +97 -0
- package/dist/commonjs/sdk/sandbox.d.ts.map +1 -0
- package/dist/commonjs/sdk/sandbox.js +146 -0
- package/dist/commonjs/sdk/sandbox.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/sandbox-delete-api-sandbox-by-id.d.ts +18 -0
- package/dist/esm/funcs/sandbox-delete-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-delete-api-sandbox-by-id.js +88 -0
- package/dist/esm/funcs/sandbox-delete-api-sandbox-by-id.js.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-stream.d.ts +18 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-stream.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-stream.js +92 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-stream.js.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-traces.d.ts +15 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-traces.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-traces.js +85 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-traces.js.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id.d.ts +15 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id.js +85 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id.js.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-presets.d.ts +18 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-presets.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-presets.js +72 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-presets.js.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-providers.d.ts +18 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-providers.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-providers.js +72 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-providers.js.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox.d.ts +18 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox.js +73 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.js +87 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-agent-run.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-exec.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-exec.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-exec.js +93 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-exec.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-preflight.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-preflight.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-preflight.js +83 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-preflight.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-run.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-run.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-run.js +83 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-run.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.js +72 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-token.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-token.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-token.js +83 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-token.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox.js +83 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/errors/delete-api-sandbox-by-id.d.ts +137 -0
- package/dist/esm/models/errors/delete-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/esm/models/errors/delete-api-sandbox-by-id.js +165 -0
- package/dist/esm/models/errors/delete-api-sandbox-by-id.js.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id-stream.d.ts +114 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id-stream.d.ts.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id-stream.js +138 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id-stream.js.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id-traces.d.ts +114 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id-traces.d.ts.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id-traces.js +138 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id-traces.js.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id.d.ts +114 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id.js +138 -0
- package/dist/esm/models/errors/get-api-sandbox-by-id.js.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-presets.d.ts +114 -0
- package/dist/esm/models/errors/get-api-sandbox-presets.d.ts.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-presets.js +138 -0
- package/dist/esm/models/errors/get-api-sandbox-presets.js.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-providers.d.ts +114 -0
- package/dist/esm/models/errors/get-api-sandbox-providers.d.ts.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox-providers.js +138 -0
- package/dist/esm/models/errors/get-api-sandbox-providers.js.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox.d.ts +114 -0
- package/dist/esm/models/errors/get-api-sandbox.d.ts.map +1 -0
- package/dist/esm/models/errors/get-api-sandbox.js +138 -0
- package/dist/esm/models/errors/get-api-sandbox.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +14 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +14 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/post-api-sandbox-agent-run.d.ts +137 -0
- package/dist/esm/models/errors/post-api-sandbox-agent-run.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-agent-run.js +165 -0
- package/dist/esm/models/errors/post-api-sandbox-agent-run.js.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-by-id-exec.d.ts +137 -0
- package/dist/esm/models/errors/post-api-sandbox-by-id-exec.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-by-id-exec.js +165 -0
- package/dist/esm/models/errors/post-api-sandbox-by-id-exec.js.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-preflight.d.ts +137 -0
- package/dist/esm/models/errors/post-api-sandbox-preflight.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-preflight.js +165 -0
- package/dist/esm/models/errors/post-api-sandbox-preflight.js.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-run.d.ts +137 -0
- package/dist/esm/models/errors/post-api-sandbox-run.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-run.js +165 -0
- package/dist/esm/models/errors/post-api-sandbox-run.js.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-telemetry-v1-traces.d.ts +137 -0
- package/dist/esm/models/errors/post-api-sandbox-telemetry-v1-traces.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-telemetry-v1-traces.js +169 -0
- package/dist/esm/models/errors/post-api-sandbox-telemetry-v1-traces.js.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-token.d.ts +91 -0
- package/dist/esm/models/errors/post-api-sandbox-token.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox-token.js +111 -0
- package/dist/esm/models/errors/post-api-sandbox-token.js.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox.d.ts +137 -0
- package/dist/esm/models/errors/post-api-sandbox.d.ts.map +1 -0
- package/dist/esm/models/errors/post-api-sandbox.js +165 -0
- package/dist/esm/models/errors/post-api-sandbox.js.map +1 -0
- package/dist/esm/models/operations/delete-api-sandbox-by-id.d.ts +23 -0
- package/dist/esm/models/operations/delete-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/esm/models/operations/delete-api-sandbox-by-id.js +21 -0
- package/dist/esm/models/operations/delete-api-sandbox-by-id.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-stream.d.ts +26 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-stream.d.ts.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-stream.js +19 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-stream.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-traces.d.ts +27 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-traces.d.ts.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-traces.js +25 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-traces.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id.d.ts +36 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id.d.ts.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id.js +33 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-presets.d.ts +47 -0
- package/dist/esm/models/operations/get-api-sandbox-presets.d.ts.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-presets.js +37 -0
- package/dist/esm/models/operations/get-api-sandbox-presets.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-providers.d.ts +14 -0
- package/dist/esm/models/operations/get-api-sandbox-providers.d.ts.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-providers.js +15 -0
- package/dist/esm/models/operations/get-api-sandbox-providers.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox.d.ts +61 -0
- package/dist/esm/models/operations/get-api-sandbox.d.ts.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox.js +44 -0
- package/dist/esm/models/operations/get-api-sandbox.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +14 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +14 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-agent-run.d.ts +101 -0
- package/dist/esm/models/operations/post-api-sandbox-agent-run.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-agent-run.js +52 -0
- package/dist/esm/models/operations/post-api-sandbox-agent-run.js.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-exec.d.ts +67 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-exec.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-exec.js +47 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-exec.js.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-preflight.d.ts +208 -0
- package/dist/esm/models/operations/post-api-sandbox-preflight.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-preflight.js +103 -0
- package/dist/esm/models/operations/post-api-sandbox-preflight.js.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-run.d.ts +69 -0
- package/dist/esm/models/operations/post-api-sandbox-run.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-run.js +32 -0
- package/dist/esm/models/operations/post-api-sandbox-run.js.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-telemetry-v1-traces.d.ts +13 -0
- package/dist/esm/models/operations/post-api-sandbox-telemetry-v1-traces.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-telemetry-v1-traces.js +14 -0
- package/dist/esm/models/operations/post-api-sandbox-telemetry-v1-traces.js.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-token.d.ts +36 -0
- package/dist/esm/models/operations/post-api-sandbox-token.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-token.js +22 -0
- package/dist/esm/models/operations/post-api-sandbox-token.js.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox.d.ts +254 -0
- package/dist/esm/models/operations/post-api-sandbox.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox.js +131 -0
- package/dist/esm/models/operations/post-api-sandbox.js.map +1 -0
- package/dist/esm/sdk/sandbox.d.ts +97 -0
- package/dist/esm/sdk/sandbox.d.ts.map +1 -0
- package/dist/esm/sdk/sandbox.js +142 -0
- package/dist/esm/sdk/sandbox.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/sandbox-delete-api-sandbox-by-id.ts +200 -0
- package/src/funcs/sandbox-get-api-sandbox-by-id-stream.ts +204 -0
- package/src/funcs/sandbox-get-api-sandbox-by-id-traces.ts +196 -0
- package/src/funcs/sandbox-get-api-sandbox-by-id.ts +190 -0
- package/src/funcs/sandbox-get-api-sandbox-presets.ts +171 -0
- package/src/funcs/sandbox-get-api-sandbox-providers.ts +174 -0
- package/src/funcs/sandbox-get-api-sandbox.ts +169 -0
- package/src/funcs/sandbox-post-api-sandbox-agent-run.ts +203 -0
- package/src/funcs/sandbox-post-api-sandbox-by-id-exec.ts +209 -0
- package/src/funcs/sandbox-post-api-sandbox-preflight.ts +198 -0
- package/src/funcs/sandbox-post-api-sandbox-run.ts +192 -0
- package/src/funcs/sandbox-post-api-sandbox-telemetry-v1-traces.ts +193 -0
- package/src/funcs/sandbox-post-api-sandbox-token.ts +184 -0
- package/src/funcs/sandbox-post-api-sandbox.ts +191 -0
- package/src/lib/config.ts +3 -3
- package/src/models/errors/delete-api-sandbox-by-id.ts +315 -0
- package/src/models/errors/get-api-sandbox-by-id-stream.ts +258 -0
- package/src/models/errors/get-api-sandbox-by-id-traces.ts +258 -0
- package/src/models/errors/get-api-sandbox-by-id.ts +264 -0
- package/src/models/errors/get-api-sandbox-presets.ts +262 -0
- package/src/models/errors/get-api-sandbox-providers.ts +260 -0
- package/src/models/errors/get-api-sandbox.ts +264 -0
- package/src/models/errors/index.ts +14 -0
- package/src/models/errors/post-api-sandbox-agent-run.ts +313 -0
- package/src/models/errors/post-api-sandbox-by-id-exec.ts +313 -0
- package/src/models/errors/post-api-sandbox-preflight.ts +311 -0
- package/src/models/errors/post-api-sandbox-run.ts +317 -0
- package/src/models/errors/post-api-sandbox-telemetry-v1-traces.ts +321 -0
- package/src/models/errors/post-api-sandbox-token.ts +211 -0
- package/src/models/errors/post-api-sandbox.ts +317 -0
- package/src/models/operations/delete-api-sandbox-by-id.ts +61 -0
- package/src/models/operations/get-api-sandbox-by-id-stream.ts +55 -0
- package/src/models/operations/get-api-sandbox-by-id-traces.ts +75 -0
- package/src/models/operations/get-api-sandbox-by-id.ts +82 -0
- package/src/models/operations/get-api-sandbox-presets.ts +97 -0
- package/src/models/operations/get-api-sandbox-providers.ts +36 -0
- package/src/models/operations/get-api-sandbox.ts +103 -0
- package/src/models/operations/index.ts +14 -0
- package/src/models/operations/post-api-sandbox-agent-run.ts +175 -0
- package/src/models/operations/post-api-sandbox-by-id-exec.ts +136 -0
- package/src/models/operations/post-api-sandbox-preflight.ts +373 -0
- package/src/models/operations/post-api-sandbox-run.ts +116 -0
- package/src/models/operations/post-api-sandbox-telemetry-v1-traces.ts +38 -0
- package/src/models/operations/post-api-sandbox-token.ts +73 -0
- package/src/models/operations/post-api-sandbox.ts +422 -0
- package/src/sdk/sandbox.ts +247 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* Response for status 200
|
|
13
|
+
*/
|
|
14
|
+
export type GetApiSandboxProvidersResponse = {
|
|
15
|
+
names: Array<string>;
|
|
16
|
+
default: string | null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetApiSandboxProvidersResponse$inboundSchema: z.ZodMiniType<
|
|
21
|
+
GetApiSandboxProvidersResponse,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
names: z.array(types.string()),
|
|
25
|
+
default: types.nullable(types.string()),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getApiSandboxProvidersResponseFromJSON(
|
|
29
|
+
jsonString: string,
|
|
30
|
+
): SafeParseResult<GetApiSandboxProvidersResponse, SDKValidationError> {
|
|
31
|
+
return safeParse(
|
|
32
|
+
jsonString,
|
|
33
|
+
(x) => GetApiSandboxProvidersResponse$inboundSchema.parse(JSON.parse(x)),
|
|
34
|
+
`Failed to parse 'GetApiSandboxProvidersResponse' from JSON`,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* CPU architecture the image was built for. Validated against the provider at preflight.
|
|
15
|
+
*/
|
|
16
|
+
export enum GetApiSandboxArch {
|
|
17
|
+
X8664 = "x86_64",
|
|
18
|
+
Arm64 = "arm64",
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* CPU architecture the image was built for. Validated against the provider at preflight.
|
|
22
|
+
*/
|
|
23
|
+
export type GetApiSandboxArchOpen = OpenEnum<typeof GetApiSandboxArch>;
|
|
24
|
+
|
|
25
|
+
export enum GetApiSandboxStatus {
|
|
26
|
+
Pending = "pending",
|
|
27
|
+
Starting = "starting",
|
|
28
|
+
Running = "running",
|
|
29
|
+
Paused = "paused",
|
|
30
|
+
Stopping = "stopping",
|
|
31
|
+
Stopped = "stopped",
|
|
32
|
+
Failed = "failed",
|
|
33
|
+
}
|
|
34
|
+
export type GetApiSandboxStatusOpen = OpenEnum<typeof GetApiSandboxStatus>;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A sandbox as recorded by the service — one record whether spawned from CLI or platform
|
|
38
|
+
*/
|
|
39
|
+
export type GetApiSandboxResponse = {
|
|
40
|
+
/**
|
|
41
|
+
* Sandbox identifier
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Bumps when the underlying instance is replaced
|
|
46
|
+
*/
|
|
47
|
+
generation: number;
|
|
48
|
+
/**
|
|
49
|
+
* Provider that owns this sandbox
|
|
50
|
+
*/
|
|
51
|
+
provider: string;
|
|
52
|
+
/**
|
|
53
|
+
* CPU architecture the image was built for. Validated against the provider at preflight.
|
|
54
|
+
*/
|
|
55
|
+
arch: GetApiSandboxArchOpen;
|
|
56
|
+
status: GetApiSandboxStatusOpen;
|
|
57
|
+
definitionName: string;
|
|
58
|
+
environmentName?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* ISO timestamp
|
|
61
|
+
*/
|
|
62
|
+
createdAt: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const GetApiSandboxArch$inboundSchema: z.ZodMiniType<
|
|
67
|
+
GetApiSandboxArchOpen,
|
|
68
|
+
unknown
|
|
69
|
+
> = openEnums.inboundSchema(GetApiSandboxArch);
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const GetApiSandboxStatus$inboundSchema: z.ZodMiniType<
|
|
73
|
+
GetApiSandboxStatusOpen,
|
|
74
|
+
unknown
|
|
75
|
+
> = openEnums.inboundSchema(GetApiSandboxStatus);
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const GetApiSandboxResponse$inboundSchema: z.ZodMiniType<
|
|
79
|
+
GetApiSandboxResponse,
|
|
80
|
+
unknown
|
|
81
|
+
> = z.object({
|
|
82
|
+
id: types.string(),
|
|
83
|
+
generation: types.number(),
|
|
84
|
+
provider: types.string(),
|
|
85
|
+
arch: z._default(GetApiSandboxArch$inboundSchema, GetApiSandboxArch.X8664),
|
|
86
|
+
status: z._default(
|
|
87
|
+
GetApiSandboxStatus$inboundSchema,
|
|
88
|
+
GetApiSandboxStatus.Pending,
|
|
89
|
+
),
|
|
90
|
+
definitionName: types.string(),
|
|
91
|
+
environmentName: types.optional(types.string()),
|
|
92
|
+
createdAt: types.string(),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function getApiSandboxResponseFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<GetApiSandboxResponse, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => GetApiSandboxResponse$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'GetApiSandboxResponse' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./check-organization-slug.js";
|
|
|
9
9
|
export * from "./create-invitation.js";
|
|
10
10
|
export * from "./delete-account.js";
|
|
11
11
|
export * from "./delete-agent.js";
|
|
12
|
+
export * from "./delete-api-sandbox-by-id.js";
|
|
12
13
|
export * from "./delete-invitation.js";
|
|
13
14
|
export * from "./delete-organization.js";
|
|
14
15
|
export * from "./delete-provider.js";
|
|
@@ -16,6 +17,12 @@ export * from "./delete-session.js";
|
|
|
16
17
|
export * from "./delete-workspace.js";
|
|
17
18
|
export * from "./get-agent-by-slug.js";
|
|
18
19
|
export * from "./get-agent.js";
|
|
20
|
+
export * from "./get-api-sandbox-by-id-stream.js";
|
|
21
|
+
export * from "./get-api-sandbox-by-id-traces.js";
|
|
22
|
+
export * from "./get-api-sandbox-by-id.js";
|
|
23
|
+
export * from "./get-api-sandbox-presets.js";
|
|
24
|
+
export * from "./get-api-sandbox-providers.js";
|
|
25
|
+
export * from "./get-api-sandbox.js";
|
|
19
26
|
export * from "./get-invitation.js";
|
|
20
27
|
export * from "./get-models-catalog.js";
|
|
21
28
|
export * from "./get-organization-by-slug.js";
|
|
@@ -34,6 +41,13 @@ export * from "./list-providers.js";
|
|
|
34
41
|
export * from "./list-sessions.js";
|
|
35
42
|
export * from "./list-workspace-members.js";
|
|
36
43
|
export * from "./list-workspaces.js";
|
|
44
|
+
export * from "./post-api-sandbox-agent-run.js";
|
|
45
|
+
export * from "./post-api-sandbox-by-id-exec.js";
|
|
46
|
+
export * from "./post-api-sandbox-preflight.js";
|
|
47
|
+
export * from "./post-api-sandbox-run.js";
|
|
48
|
+
export * from "./post-api-sandbox-telemetry-v1-traces.js";
|
|
49
|
+
export * from "./post-api-sandbox-token.js";
|
|
50
|
+
export * from "./post-api-sandbox.js";
|
|
37
51
|
export * from "./remove-organization-member.js";
|
|
38
52
|
export * from "./remove-workspace-member.js";
|
|
39
53
|
export * from "./resend-invitation.js";
|
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
* Set to `1` to watch the turn as an event stream instead of awaiting one JSON body.
|
|
13
|
+
*/
|
|
14
|
+
export enum PostApiSandboxAgentRunStream {
|
|
15
|
+
Zero = "0",
|
|
16
|
+
One = "1",
|
|
17
|
+
False = "false",
|
|
18
|
+
True = "true",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Run one agent turn in a fresh sandbox and tear it down
|
|
23
|
+
*/
|
|
24
|
+
export type PostApiSandboxAgentRunRequestBody = {
|
|
25
|
+
/**
|
|
26
|
+
* Named preset to run on. Omitted means the backend default — see GET /api/sandbox/presets.
|
|
27
|
+
*/
|
|
28
|
+
preset?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Per-command timeout. The provider invocation timeout also applies and may be lower — a one-shot call is not the way to run something long.
|
|
31
|
+
*/
|
|
32
|
+
timeoutMs?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Keep the sandbox after the run instead of tearing it down. Defaults to false; the returned sandboxId is then usable with /api/sandbox/:id/exec.
|
|
35
|
+
*/
|
|
36
|
+
keep?: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Correlation id for trace attribution
|
|
39
|
+
*/
|
|
40
|
+
runId?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* WHO the agent is — the agent definition, passed as `helix agent --prompt`.
|
|
43
|
+
*/
|
|
44
|
+
prompt: string;
|
|
45
|
+
/**
|
|
46
|
+
* WHAT to do this turn — the task, passed as `-p`. A different prompt from `prompt`.
|
|
47
|
+
*/
|
|
48
|
+
task: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type PostApiSandboxAgentRunRequest = {
|
|
52
|
+
/**
|
|
53
|
+
* Set to `1` to watch the turn as an event stream instead of awaiting one JSON body.
|
|
54
|
+
*/
|
|
55
|
+
stream?: PostApiSandboxAgentRunStream | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Run one agent turn in a fresh sandbox and tear it down
|
|
58
|
+
*/
|
|
59
|
+
body: PostApiSandboxAgentRunRequestBody;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Result of a one-shot run
|
|
64
|
+
*/
|
|
65
|
+
export type PostApiSandboxAgentRunResponse = {
|
|
66
|
+
/**
|
|
67
|
+
* The sandbox the run happened in. Already gone unless `keep` was true.
|
|
68
|
+
*/
|
|
69
|
+
sandboxId: string;
|
|
70
|
+
/**
|
|
71
|
+
* Preset that was resolved — useful when the default was taken.
|
|
72
|
+
*/
|
|
73
|
+
preset: string;
|
|
74
|
+
/**
|
|
75
|
+
* The command's real exit code. Never synthesised.
|
|
76
|
+
*/
|
|
77
|
+
exitCode: number;
|
|
78
|
+
stdout: string;
|
|
79
|
+
stderr: string;
|
|
80
|
+
timedOut: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Whether teardown was CONFIRMED. False with `keep` false means the release failed and the box may still exist — the run result is still valid.
|
|
83
|
+
*/
|
|
84
|
+
tornDown: boolean;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const PostApiSandboxAgentRunStream$outboundSchema: z.ZodMiniEnum<
|
|
89
|
+
typeof PostApiSandboxAgentRunStream
|
|
90
|
+
> = z.enum(PostApiSandboxAgentRunStream);
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export type PostApiSandboxAgentRunRequestBody$Outbound = {
|
|
94
|
+
preset?: string | undefined;
|
|
95
|
+
timeoutMs?: number | undefined;
|
|
96
|
+
keep?: boolean | undefined;
|
|
97
|
+
runId?: string | undefined;
|
|
98
|
+
prompt: string;
|
|
99
|
+
task: string;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const PostApiSandboxAgentRunRequestBody$outboundSchema: z.ZodMiniType<
|
|
104
|
+
PostApiSandboxAgentRunRequestBody$Outbound,
|
|
105
|
+
PostApiSandboxAgentRunRequestBody
|
|
106
|
+
> = z.object({
|
|
107
|
+
preset: z.optional(z.string()),
|
|
108
|
+
timeoutMs: z.optional(z.number()),
|
|
109
|
+
keep: z.optional(z.boolean()),
|
|
110
|
+
runId: z.optional(z.string()),
|
|
111
|
+
prompt: z.string(),
|
|
112
|
+
task: z.string(),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export function postApiSandboxAgentRunRequestBodyToJSON(
|
|
116
|
+
postApiSandboxAgentRunRequestBody: PostApiSandboxAgentRunRequestBody,
|
|
117
|
+
): string {
|
|
118
|
+
return JSON.stringify(
|
|
119
|
+
PostApiSandboxAgentRunRequestBody$outboundSchema.parse(
|
|
120
|
+
postApiSandboxAgentRunRequestBody,
|
|
121
|
+
),
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export type PostApiSandboxAgentRunRequest$Outbound = {
|
|
127
|
+
stream: string;
|
|
128
|
+
body: PostApiSandboxAgentRunRequestBody$Outbound;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const PostApiSandboxAgentRunRequest$outboundSchema: z.ZodMiniType<
|
|
133
|
+
PostApiSandboxAgentRunRequest$Outbound,
|
|
134
|
+
PostApiSandboxAgentRunRequest
|
|
135
|
+
> = z.object({
|
|
136
|
+
stream: z._default(
|
|
137
|
+
PostApiSandboxAgentRunStream$outboundSchema,
|
|
138
|
+
PostApiSandboxAgentRunStream.Zero,
|
|
139
|
+
),
|
|
140
|
+
body: z.lazy(() => PostApiSandboxAgentRunRequestBody$outboundSchema),
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export function postApiSandboxAgentRunRequestToJSON(
|
|
144
|
+
postApiSandboxAgentRunRequest: PostApiSandboxAgentRunRequest,
|
|
145
|
+
): string {
|
|
146
|
+
return JSON.stringify(
|
|
147
|
+
PostApiSandboxAgentRunRequest$outboundSchema.parse(
|
|
148
|
+
postApiSandboxAgentRunRequest,
|
|
149
|
+
),
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const PostApiSandboxAgentRunResponse$inboundSchema: z.ZodMiniType<
|
|
155
|
+
PostApiSandboxAgentRunResponse,
|
|
156
|
+
unknown
|
|
157
|
+
> = z.object({
|
|
158
|
+
sandboxId: types.string(),
|
|
159
|
+
preset: types.string(),
|
|
160
|
+
exitCode: types.number(),
|
|
161
|
+
stdout: types.string(),
|
|
162
|
+
stderr: types.string(),
|
|
163
|
+
timedOut: types.boolean(),
|
|
164
|
+
tornDown: types.boolean(),
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
export function postApiSandboxAgentRunResponseFromJSON(
|
|
168
|
+
jsonString: string,
|
|
169
|
+
): SafeParseResult<PostApiSandboxAgentRunResponse, SDKValidationError> {
|
|
170
|
+
return safeParse(
|
|
171
|
+
jsonString,
|
|
172
|
+
(x) => PostApiSandboxAgentRunResponse$inboundSchema.parse(JSON.parse(x)),
|
|
173
|
+
`Failed to parse 'PostApiSandboxAgentRunResponse' from JSON`,
|
|
174
|
+
);
|
|
175
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
* Set to `1` to receive the result as an event stream instead of JSON.
|
|
13
|
+
*/
|
|
14
|
+
export enum PostApiSandboxByIdExecStream {
|
|
15
|
+
Zero = "0",
|
|
16
|
+
One = "1",
|
|
17
|
+
False = "false",
|
|
18
|
+
True = "true",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Run a command inside a sandbox
|
|
23
|
+
*/
|
|
24
|
+
export type PostApiSandboxByIdExecRequestBody = {
|
|
25
|
+
command: Array<string>;
|
|
26
|
+
cwd?: string | undefined;
|
|
27
|
+
timeoutMs?: number | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type PostApiSandboxByIdExecRequest = {
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Set to `1` to receive the result as an event stream instead of JSON.
|
|
34
|
+
*/
|
|
35
|
+
stream?: PostApiSandboxByIdExecStream | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Run a command inside a sandbox
|
|
38
|
+
*/
|
|
39
|
+
body: PostApiSandboxByIdExecRequestBody;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Command result
|
|
44
|
+
*/
|
|
45
|
+
export type PostApiSandboxByIdExecResponse = {
|
|
46
|
+
/**
|
|
47
|
+
* The command's real exit code
|
|
48
|
+
*/
|
|
49
|
+
exitCode: number;
|
|
50
|
+
stdout: string;
|
|
51
|
+
stderr: string;
|
|
52
|
+
timedOut: boolean;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const PostApiSandboxByIdExecStream$outboundSchema: z.ZodMiniEnum<
|
|
57
|
+
typeof PostApiSandboxByIdExecStream
|
|
58
|
+
> = z.enum(PostApiSandboxByIdExecStream);
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export type PostApiSandboxByIdExecRequestBody$Outbound = {
|
|
62
|
+
command: Array<string>;
|
|
63
|
+
cwd?: string | undefined;
|
|
64
|
+
timeoutMs?: number | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const PostApiSandboxByIdExecRequestBody$outboundSchema: z.ZodMiniType<
|
|
69
|
+
PostApiSandboxByIdExecRequestBody$Outbound,
|
|
70
|
+
PostApiSandboxByIdExecRequestBody
|
|
71
|
+
> = z.object({
|
|
72
|
+
command: z.array(z.string()),
|
|
73
|
+
cwd: z.optional(z.string()),
|
|
74
|
+
timeoutMs: z.optional(z.number()),
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export function postApiSandboxByIdExecRequestBodyToJSON(
|
|
78
|
+
postApiSandboxByIdExecRequestBody: PostApiSandboxByIdExecRequestBody,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
PostApiSandboxByIdExecRequestBody$outboundSchema.parse(
|
|
82
|
+
postApiSandboxByIdExecRequestBody,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export type PostApiSandboxByIdExecRequest$Outbound = {
|
|
89
|
+
id: string;
|
|
90
|
+
stream: string;
|
|
91
|
+
body: PostApiSandboxByIdExecRequestBody$Outbound;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const PostApiSandboxByIdExecRequest$outboundSchema: z.ZodMiniType<
|
|
96
|
+
PostApiSandboxByIdExecRequest$Outbound,
|
|
97
|
+
PostApiSandboxByIdExecRequest
|
|
98
|
+
> = z.object({
|
|
99
|
+
id: z.string(),
|
|
100
|
+
stream: z._default(
|
|
101
|
+
PostApiSandboxByIdExecStream$outboundSchema,
|
|
102
|
+
PostApiSandboxByIdExecStream.Zero,
|
|
103
|
+
),
|
|
104
|
+
body: z.lazy(() => PostApiSandboxByIdExecRequestBody$outboundSchema),
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export function postApiSandboxByIdExecRequestToJSON(
|
|
108
|
+
postApiSandboxByIdExecRequest: PostApiSandboxByIdExecRequest,
|
|
109
|
+
): string {
|
|
110
|
+
return JSON.stringify(
|
|
111
|
+
PostApiSandboxByIdExecRequest$outboundSchema.parse(
|
|
112
|
+
postApiSandboxByIdExecRequest,
|
|
113
|
+
),
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const PostApiSandboxByIdExecResponse$inboundSchema: z.ZodMiniType<
|
|
119
|
+
PostApiSandboxByIdExecResponse,
|
|
120
|
+
unknown
|
|
121
|
+
> = z.object({
|
|
122
|
+
exitCode: types.number(),
|
|
123
|
+
stdout: types.string(),
|
|
124
|
+
stderr: types.string(),
|
|
125
|
+
timedOut: types.boolean(),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function postApiSandboxByIdExecResponseFromJSON(
|
|
129
|
+
jsonString: string,
|
|
130
|
+
): SafeParseResult<PostApiSandboxByIdExecResponse, SDKValidationError> {
|
|
131
|
+
return safeParse(
|
|
132
|
+
jsonString,
|
|
133
|
+
(x) => PostApiSandboxByIdExecResponse$inboundSchema.parse(JSON.parse(x)),
|
|
134
|
+
`Failed to parse 'PostApiSandboxByIdExecResponse' from JSON`,
|
|
135
|
+
);
|
|
136
|
+
}
|