@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,373 @@
|
|
|
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
|
+
* CPU architecture the image was built for. Validated against the provider at preflight.
|
|
13
|
+
*/
|
|
14
|
+
export enum PostApiSandboxPreflightArch {
|
|
15
|
+
X8664 = "x86_64",
|
|
16
|
+
Arm64 = "arm64",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Requested resources. A provider that does not expose a given dial REJECTS a definition that sets it, at preflight — never a silent downgrade.
|
|
21
|
+
*/
|
|
22
|
+
export type PostApiSandboxPreflightResources = {
|
|
23
|
+
/**
|
|
24
|
+
* Requested vCPU count
|
|
25
|
+
*/
|
|
26
|
+
vcpu?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Requested memory in MB
|
|
29
|
+
*/
|
|
30
|
+
memoryMb?: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Requested disk in MB
|
|
33
|
+
*/
|
|
34
|
+
diskMb?: number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Whether a GPU is required
|
|
37
|
+
*/
|
|
38
|
+
gpu?: boolean | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Outbound policy. Defaults to deny — opening egress is explicit.
|
|
43
|
+
*/
|
|
44
|
+
export enum PostApiSandboxPreflightEgress {
|
|
45
|
+
Deny = "deny",
|
|
46
|
+
Allowlist = "allowlist",
|
|
47
|
+
Allow = "allow",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* What this rule constrains
|
|
52
|
+
*/
|
|
53
|
+
export enum PostApiSandboxPreflightKind {
|
|
54
|
+
Port = "port",
|
|
55
|
+
Cidr = "cidr",
|
|
56
|
+
Domain = "domain",
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* A single outbound-access allowance
|
|
61
|
+
*/
|
|
62
|
+
export type PostApiSandboxPreflightAllow = {
|
|
63
|
+
/**
|
|
64
|
+
* What this rule constrains
|
|
65
|
+
*/
|
|
66
|
+
kind?: PostApiSandboxPreflightKind | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Port, CIDR block, or domain
|
|
69
|
+
*/
|
|
70
|
+
value: string;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Network policy for the sandbox
|
|
75
|
+
*/
|
|
76
|
+
export type PostApiSandboxPreflightNetwork = {
|
|
77
|
+
/**
|
|
78
|
+
* Outbound policy. Defaults to deny — opening egress is explicit.
|
|
79
|
+
*/
|
|
80
|
+
egress?: PostApiSandboxPreflightEgress | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Allowances, when egress is "allowlist". Requires provider egressControl support.
|
|
83
|
+
*/
|
|
84
|
+
allow?: Array<PostApiSandboxPreflightAllow> | undefined;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Non-secret environment variables. Secret material must come from an Environment.
|
|
89
|
+
*/
|
|
90
|
+
export type PostApiSandboxPreflightVars = {};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Sandbox configuration. Separate artifact from the image content (R-C20).
|
|
94
|
+
*/
|
|
95
|
+
export type PostApiSandboxPreflightDefinition = {
|
|
96
|
+
/**
|
|
97
|
+
* Human-readable definition name
|
|
98
|
+
*/
|
|
99
|
+
name: string;
|
|
100
|
+
/**
|
|
101
|
+
* Image reference (repository:tag or @digest). The image content is a separate artifact.
|
|
102
|
+
*/
|
|
103
|
+
image: string;
|
|
104
|
+
/**
|
|
105
|
+
* CPU architecture the image was built for. Validated against the provider at preflight.
|
|
106
|
+
*/
|
|
107
|
+
arch?: PostApiSandboxPreflightArch | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Requested resources. A provider that does not expose a given dial REJECTS a definition that sets it, at preflight — never a silent downgrade.
|
|
110
|
+
*/
|
|
111
|
+
resources?: PostApiSandboxPreflightResources | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Network policy for the sandbox
|
|
114
|
+
*/
|
|
115
|
+
network?: PostApiSandboxPreflightNetwork | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Name of the Environment (secrets + variables) to load at spawn. Distinct from `provider`.
|
|
118
|
+
*/
|
|
119
|
+
environment?: string | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Provider registry key. When omitted the backend default applies.
|
|
122
|
+
*/
|
|
123
|
+
provider?: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Requested max lifetime. Rejected at preflight if it exceeds the provider ceiling.
|
|
126
|
+
*/
|
|
127
|
+
timeoutMs?: number | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Working directory inside the sandbox
|
|
130
|
+
*/
|
|
131
|
+
workdir?: string | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Non-secret environment variables. Secret material must come from an Environment.
|
|
134
|
+
*/
|
|
135
|
+
vars?: PostApiSandboxPreflightVars | undefined;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Check a definition against a provider without creating anything
|
|
140
|
+
*/
|
|
141
|
+
export type PostApiSandboxPreflightRequest = {
|
|
142
|
+
/**
|
|
143
|
+
* Sandbox configuration. Separate artifact from the image content (R-C20).
|
|
144
|
+
*/
|
|
145
|
+
definition: PostApiSandboxPreflightDefinition;
|
|
146
|
+
provider?: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Preflight verdict
|
|
151
|
+
*/
|
|
152
|
+
export type PostApiSandboxPreflightResponse = {
|
|
153
|
+
provider: string;
|
|
154
|
+
compatible: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Empty when compatible. Each entry names a concrete incompatibility.
|
|
157
|
+
*/
|
|
158
|
+
violations: Array<string>;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export const PostApiSandboxPreflightArch$outboundSchema: z.ZodMiniEnum<
|
|
163
|
+
typeof PostApiSandboxPreflightArch
|
|
164
|
+
> = z.enum(PostApiSandboxPreflightArch);
|
|
165
|
+
|
|
166
|
+
/** @internal */
|
|
167
|
+
export type PostApiSandboxPreflightResources$Outbound = {
|
|
168
|
+
vcpu?: number | undefined;
|
|
169
|
+
memoryMb?: number | undefined;
|
|
170
|
+
diskMb?: number | undefined;
|
|
171
|
+
gpu?: boolean | undefined;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/** @internal */
|
|
175
|
+
export const PostApiSandboxPreflightResources$outboundSchema: z.ZodMiniType<
|
|
176
|
+
PostApiSandboxPreflightResources$Outbound,
|
|
177
|
+
PostApiSandboxPreflightResources
|
|
178
|
+
> = z.object({
|
|
179
|
+
vcpu: z.optional(z.number()),
|
|
180
|
+
memoryMb: z.optional(z.number()),
|
|
181
|
+
diskMb: z.optional(z.number()),
|
|
182
|
+
gpu: z.optional(z.boolean()),
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
export function postApiSandboxPreflightResourcesToJSON(
|
|
186
|
+
postApiSandboxPreflightResources: PostApiSandboxPreflightResources,
|
|
187
|
+
): string {
|
|
188
|
+
return JSON.stringify(
|
|
189
|
+
PostApiSandboxPreflightResources$outboundSchema.parse(
|
|
190
|
+
postApiSandboxPreflightResources,
|
|
191
|
+
),
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** @internal */
|
|
196
|
+
export const PostApiSandboxPreflightEgress$outboundSchema: z.ZodMiniEnum<
|
|
197
|
+
typeof PostApiSandboxPreflightEgress
|
|
198
|
+
> = z.enum(PostApiSandboxPreflightEgress);
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const PostApiSandboxPreflightKind$outboundSchema: z.ZodMiniEnum<
|
|
202
|
+
typeof PostApiSandboxPreflightKind
|
|
203
|
+
> = z.enum(PostApiSandboxPreflightKind);
|
|
204
|
+
|
|
205
|
+
/** @internal */
|
|
206
|
+
export type PostApiSandboxPreflightAllow$Outbound = {
|
|
207
|
+
kind: string;
|
|
208
|
+
value: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const PostApiSandboxPreflightAllow$outboundSchema: z.ZodMiniType<
|
|
213
|
+
PostApiSandboxPreflightAllow$Outbound,
|
|
214
|
+
PostApiSandboxPreflightAllow
|
|
215
|
+
> = z.object({
|
|
216
|
+
kind: z._default(
|
|
217
|
+
PostApiSandboxPreflightKind$outboundSchema,
|
|
218
|
+
PostApiSandboxPreflightKind.Port,
|
|
219
|
+
),
|
|
220
|
+
value: z.string(),
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
export function postApiSandboxPreflightAllowToJSON(
|
|
224
|
+
postApiSandboxPreflightAllow: PostApiSandboxPreflightAllow,
|
|
225
|
+
): string {
|
|
226
|
+
return JSON.stringify(
|
|
227
|
+
PostApiSandboxPreflightAllow$outboundSchema.parse(
|
|
228
|
+
postApiSandboxPreflightAllow,
|
|
229
|
+
),
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/** @internal */
|
|
234
|
+
export type PostApiSandboxPreflightNetwork$Outbound = {
|
|
235
|
+
egress: string;
|
|
236
|
+
allow?: Array<PostApiSandboxPreflightAllow$Outbound> | undefined;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/** @internal */
|
|
240
|
+
export const PostApiSandboxPreflightNetwork$outboundSchema: z.ZodMiniType<
|
|
241
|
+
PostApiSandboxPreflightNetwork$Outbound,
|
|
242
|
+
PostApiSandboxPreflightNetwork
|
|
243
|
+
> = z.object({
|
|
244
|
+
egress: z._default(
|
|
245
|
+
PostApiSandboxPreflightEgress$outboundSchema,
|
|
246
|
+
PostApiSandboxPreflightEgress.Deny,
|
|
247
|
+
),
|
|
248
|
+
allow: z.optional(
|
|
249
|
+
z.array(z.lazy(() => PostApiSandboxPreflightAllow$outboundSchema)),
|
|
250
|
+
),
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
export function postApiSandboxPreflightNetworkToJSON(
|
|
254
|
+
postApiSandboxPreflightNetwork: PostApiSandboxPreflightNetwork,
|
|
255
|
+
): string {
|
|
256
|
+
return JSON.stringify(
|
|
257
|
+
PostApiSandboxPreflightNetwork$outboundSchema.parse(
|
|
258
|
+
postApiSandboxPreflightNetwork,
|
|
259
|
+
),
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/** @internal */
|
|
264
|
+
export type PostApiSandboxPreflightVars$Outbound = {};
|
|
265
|
+
|
|
266
|
+
/** @internal */
|
|
267
|
+
export const PostApiSandboxPreflightVars$outboundSchema: z.ZodMiniType<
|
|
268
|
+
PostApiSandboxPreflightVars$Outbound,
|
|
269
|
+
PostApiSandboxPreflightVars
|
|
270
|
+
> = z.object({});
|
|
271
|
+
|
|
272
|
+
export function postApiSandboxPreflightVarsToJSON(
|
|
273
|
+
postApiSandboxPreflightVars: PostApiSandboxPreflightVars,
|
|
274
|
+
): string {
|
|
275
|
+
return JSON.stringify(
|
|
276
|
+
PostApiSandboxPreflightVars$outboundSchema.parse(
|
|
277
|
+
postApiSandboxPreflightVars,
|
|
278
|
+
),
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/** @internal */
|
|
283
|
+
export type PostApiSandboxPreflightDefinition$Outbound = {
|
|
284
|
+
name: string;
|
|
285
|
+
image: string;
|
|
286
|
+
arch: string;
|
|
287
|
+
resources?: PostApiSandboxPreflightResources$Outbound | undefined;
|
|
288
|
+
network?: PostApiSandboxPreflightNetwork$Outbound | undefined;
|
|
289
|
+
environment?: string | undefined;
|
|
290
|
+
provider?: string | undefined;
|
|
291
|
+
timeoutMs?: number | undefined;
|
|
292
|
+
workdir?: string | undefined;
|
|
293
|
+
vars?: PostApiSandboxPreflightVars$Outbound | undefined;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
/** @internal */
|
|
297
|
+
export const PostApiSandboxPreflightDefinition$outboundSchema: z.ZodMiniType<
|
|
298
|
+
PostApiSandboxPreflightDefinition$Outbound,
|
|
299
|
+
PostApiSandboxPreflightDefinition
|
|
300
|
+
> = z.object({
|
|
301
|
+
name: z.string(),
|
|
302
|
+
image: z.string(),
|
|
303
|
+
arch: z._default(
|
|
304
|
+
PostApiSandboxPreflightArch$outboundSchema,
|
|
305
|
+
PostApiSandboxPreflightArch.X8664,
|
|
306
|
+
),
|
|
307
|
+
resources: z.optional(
|
|
308
|
+
z.lazy(() => PostApiSandboxPreflightResources$outboundSchema),
|
|
309
|
+
),
|
|
310
|
+
network: z.optional(
|
|
311
|
+
z.lazy(() => PostApiSandboxPreflightNetwork$outboundSchema),
|
|
312
|
+
),
|
|
313
|
+
environment: z.optional(z.string()),
|
|
314
|
+
provider: z.optional(z.string()),
|
|
315
|
+
timeoutMs: z.optional(z.number()),
|
|
316
|
+
workdir: z.optional(z.string()),
|
|
317
|
+
vars: z.optional(z.lazy(() => PostApiSandboxPreflightVars$outboundSchema)),
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
export function postApiSandboxPreflightDefinitionToJSON(
|
|
321
|
+
postApiSandboxPreflightDefinition: PostApiSandboxPreflightDefinition,
|
|
322
|
+
): string {
|
|
323
|
+
return JSON.stringify(
|
|
324
|
+
PostApiSandboxPreflightDefinition$outboundSchema.parse(
|
|
325
|
+
postApiSandboxPreflightDefinition,
|
|
326
|
+
),
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/** @internal */
|
|
331
|
+
export type PostApiSandboxPreflightRequest$Outbound = {
|
|
332
|
+
definition: PostApiSandboxPreflightDefinition$Outbound;
|
|
333
|
+
provider?: string | undefined;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/** @internal */
|
|
337
|
+
export const PostApiSandboxPreflightRequest$outboundSchema: z.ZodMiniType<
|
|
338
|
+
PostApiSandboxPreflightRequest$Outbound,
|
|
339
|
+
PostApiSandboxPreflightRequest
|
|
340
|
+
> = z.object({
|
|
341
|
+
definition: z.lazy(() => PostApiSandboxPreflightDefinition$outboundSchema),
|
|
342
|
+
provider: z.optional(z.string()),
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
export function postApiSandboxPreflightRequestToJSON(
|
|
346
|
+
postApiSandboxPreflightRequest: PostApiSandboxPreflightRequest,
|
|
347
|
+
): string {
|
|
348
|
+
return JSON.stringify(
|
|
349
|
+
PostApiSandboxPreflightRequest$outboundSchema.parse(
|
|
350
|
+
postApiSandboxPreflightRequest,
|
|
351
|
+
),
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/** @internal */
|
|
356
|
+
export const PostApiSandboxPreflightResponse$inboundSchema: z.ZodMiniType<
|
|
357
|
+
PostApiSandboxPreflightResponse,
|
|
358
|
+
unknown
|
|
359
|
+
> = z.object({
|
|
360
|
+
provider: types.string(),
|
|
361
|
+
compatible: types.boolean(),
|
|
362
|
+
violations: z.array(types.string()),
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
export function postApiSandboxPreflightResponseFromJSON(
|
|
366
|
+
jsonString: string,
|
|
367
|
+
): SafeParseResult<PostApiSandboxPreflightResponse, SDKValidationError> {
|
|
368
|
+
return safeParse(
|
|
369
|
+
jsonString,
|
|
370
|
+
(x) => PostApiSandboxPreflightResponse$inboundSchema.parse(JSON.parse(x)),
|
|
371
|
+
`Failed to parse 'PostApiSandboxPreflightResponse' from JSON`,
|
|
372
|
+
);
|
|
373
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
* Run one command in a fresh sandbox and tear it down
|
|
13
|
+
*/
|
|
14
|
+
export type PostApiSandboxRunRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* Named preset to run on. Omitted means the backend default — see GET /api/sandbox/presets.
|
|
17
|
+
*/
|
|
18
|
+
preset?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* 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.
|
|
21
|
+
*/
|
|
22
|
+
timeoutMs?: number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* 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.
|
|
25
|
+
*/
|
|
26
|
+
keep?: boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Correlation id for trace attribution
|
|
29
|
+
*/
|
|
30
|
+
runId?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* argv. Not a shell string — no shell is involved unless you name one.
|
|
33
|
+
*/
|
|
34
|
+
command: Array<string>;
|
|
35
|
+
cwd?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Result of a one-shot run
|
|
40
|
+
*/
|
|
41
|
+
export type PostApiSandboxRunResponse = {
|
|
42
|
+
/**
|
|
43
|
+
* The sandbox the run happened in. Already gone unless `keep` was true.
|
|
44
|
+
*/
|
|
45
|
+
sandboxId: string;
|
|
46
|
+
/**
|
|
47
|
+
* Preset that was resolved — useful when the default was taken.
|
|
48
|
+
*/
|
|
49
|
+
preset: string;
|
|
50
|
+
/**
|
|
51
|
+
* The command's real exit code. Never synthesised.
|
|
52
|
+
*/
|
|
53
|
+
exitCode: number;
|
|
54
|
+
stdout: string;
|
|
55
|
+
stderr: string;
|
|
56
|
+
timedOut: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether teardown was CONFIRMED. False with `keep` false means the release failed and the box may still exist — the run result is still valid.
|
|
59
|
+
*/
|
|
60
|
+
tornDown: boolean;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type PostApiSandboxRunRequest$Outbound = {
|
|
65
|
+
preset?: string | undefined;
|
|
66
|
+
timeoutMs?: number | undefined;
|
|
67
|
+
keep?: boolean | undefined;
|
|
68
|
+
runId?: string | undefined;
|
|
69
|
+
command: Array<string>;
|
|
70
|
+
cwd?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const PostApiSandboxRunRequest$outboundSchema: z.ZodMiniType<
|
|
75
|
+
PostApiSandboxRunRequest$Outbound,
|
|
76
|
+
PostApiSandboxRunRequest
|
|
77
|
+
> = z.object({
|
|
78
|
+
preset: z.optional(z.string()),
|
|
79
|
+
timeoutMs: z.optional(z.number()),
|
|
80
|
+
keep: z.optional(z.boolean()),
|
|
81
|
+
runId: z.optional(z.string()),
|
|
82
|
+
command: z.array(z.string()),
|
|
83
|
+
cwd: z.optional(z.string()),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function postApiSandboxRunRequestToJSON(
|
|
87
|
+
postApiSandboxRunRequest: PostApiSandboxRunRequest,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
PostApiSandboxRunRequest$outboundSchema.parse(postApiSandboxRunRequest),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const PostApiSandboxRunResponse$inboundSchema: z.ZodMiniType<
|
|
96
|
+
PostApiSandboxRunResponse,
|
|
97
|
+
unknown
|
|
98
|
+
> = z.object({
|
|
99
|
+
sandboxId: types.string(),
|
|
100
|
+
preset: types.string(),
|
|
101
|
+
exitCode: types.number(),
|
|
102
|
+
stdout: types.string(),
|
|
103
|
+
stderr: types.string(),
|
|
104
|
+
timedOut: types.boolean(),
|
|
105
|
+
tornDown: types.boolean(),
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export function postApiSandboxRunResponseFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<PostApiSandboxRunResponse, SDKValidationError> {
|
|
111
|
+
return safeParse(
|
|
112
|
+
jsonString,
|
|
113
|
+
(x) => PostApiSandboxRunResponse$inboundSchema.parse(JSON.parse(x)),
|
|
114
|
+
`Failed to parse 'PostApiSandboxRunResponse' from JSON`,
|
|
115
|
+
);
|
|
116
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PostApiSandboxTelemetryV1TracesResponse = {
|
|
15
|
+
accepted: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const PostApiSandboxTelemetryV1TracesResponse$inboundSchema:
|
|
20
|
+
z.ZodMiniType<PostApiSandboxTelemetryV1TracesResponse, unknown> = z.object({
|
|
21
|
+
accepted: types.number(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function postApiSandboxTelemetryV1TracesResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<
|
|
27
|
+
PostApiSandboxTelemetryV1TracesResponse,
|
|
28
|
+
SDKValidationError
|
|
29
|
+
> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) =>
|
|
33
|
+
PostApiSandboxTelemetryV1TracesResponse$inboundSchema.parse(
|
|
34
|
+
JSON.parse(x),
|
|
35
|
+
),
|
|
36
|
+
`Failed to parse 'PostApiSandboxTelemetryV1TracesResponse' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
* Exchange a platform API key for a short-lived sandbox operator token. The platform key itself is never a sandbox credential.
|
|
13
|
+
*/
|
|
14
|
+
export type PostApiSandboxTokenRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* The workspace to mint an operator token for. The caller must be able to create resources in it.
|
|
17
|
+
*/
|
|
18
|
+
workspaceId: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A minted operator token, scoped to one workspace.
|
|
23
|
+
*/
|
|
24
|
+
export type PostApiSandboxTokenResponse = {
|
|
25
|
+
/**
|
|
26
|
+
* A sandbox operator token. Send as `Authorization: Bearer <token>`.
|
|
27
|
+
*/
|
|
28
|
+
token: string;
|
|
29
|
+
/**
|
|
30
|
+
* Seconds until the token expires. Re-exchange after this; do not persist it beyond the lifetime.
|
|
31
|
+
*/
|
|
32
|
+
expiresIn: number;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type PostApiSandboxTokenRequest$Outbound = {
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const PostApiSandboxTokenRequest$outboundSchema: z.ZodMiniType<
|
|
42
|
+
PostApiSandboxTokenRequest$Outbound,
|
|
43
|
+
PostApiSandboxTokenRequest
|
|
44
|
+
> = z.object({
|
|
45
|
+
workspaceId: z.string(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function postApiSandboxTokenRequestToJSON(
|
|
49
|
+
postApiSandboxTokenRequest: PostApiSandboxTokenRequest,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
PostApiSandboxTokenRequest$outboundSchema.parse(postApiSandboxTokenRequest),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const PostApiSandboxTokenResponse$inboundSchema: z.ZodMiniType<
|
|
58
|
+
PostApiSandboxTokenResponse,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.object({
|
|
61
|
+
token: types.string(),
|
|
62
|
+
expiresIn: types.number(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function postApiSandboxTokenResponseFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PostApiSandboxTokenResponse, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => PostApiSandboxTokenResponse$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PostApiSandboxTokenResponse' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|