@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,190 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { MutagentCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Get sandbox status
|
|
32
|
+
*/
|
|
33
|
+
export function sandboxGetApiSandboxById(
|
|
34
|
+
client: MutagentCore,
|
|
35
|
+
request: operations.GetApiSandboxByIdRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
operations.GetApiSandboxByIdResponse,
|
|
40
|
+
| errors.GetApiSandboxByIdBadRequestError
|
|
41
|
+
| errors.GetApiSandboxByIdUnauthorizedError
|
|
42
|
+
| errors.GetApiSandboxByIdForbiddenError
|
|
43
|
+
| errors.GetApiSandboxByIdNotFoundError
|
|
44
|
+
| errors.GetApiSandboxByIdInternalServerError
|
|
45
|
+
| MutagentError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: MutagentCore,
|
|
64
|
+
request: operations.GetApiSandboxByIdRequest,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): Promise<
|
|
67
|
+
[
|
|
68
|
+
Result<
|
|
69
|
+
operations.GetApiSandboxByIdResponse,
|
|
70
|
+
| errors.GetApiSandboxByIdBadRequestError
|
|
71
|
+
| errors.GetApiSandboxByIdUnauthorizedError
|
|
72
|
+
| errors.GetApiSandboxByIdForbiddenError
|
|
73
|
+
| errors.GetApiSandboxByIdNotFoundError
|
|
74
|
+
| errors.GetApiSandboxByIdInternalServerError
|
|
75
|
+
| MutagentError
|
|
76
|
+
| ResponseValidationError
|
|
77
|
+
| ConnectionError
|
|
78
|
+
| RequestAbortedError
|
|
79
|
+
| RequestTimeoutError
|
|
80
|
+
| InvalidRequestError
|
|
81
|
+
| UnexpectedClientError
|
|
82
|
+
| SDKValidationError
|
|
83
|
+
>,
|
|
84
|
+
APICall,
|
|
85
|
+
]
|
|
86
|
+
> {
|
|
87
|
+
const parsed = safeParse(
|
|
88
|
+
request,
|
|
89
|
+
(value) =>
|
|
90
|
+
z.parse(operations.GetApiSandboxByIdRequest$outboundSchema, value),
|
|
91
|
+
"Input validation failed",
|
|
92
|
+
);
|
|
93
|
+
if (!parsed.ok) {
|
|
94
|
+
return [parsed, { status: "invalid" }];
|
|
95
|
+
}
|
|
96
|
+
const payload = parsed.value;
|
|
97
|
+
const body = null;
|
|
98
|
+
|
|
99
|
+
const pathParams = {
|
|
100
|
+
id: encodeSimple("id", payload.id, {
|
|
101
|
+
explode: false,
|
|
102
|
+
charEncoding: "percent",
|
|
103
|
+
}),
|
|
104
|
+
};
|
|
105
|
+
const path = pathToFunc("/api/sandbox/{id}")(pathParams);
|
|
106
|
+
|
|
107
|
+
const headers = new Headers(compactMap({
|
|
108
|
+
Accept: "application/json",
|
|
109
|
+
}));
|
|
110
|
+
|
|
111
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
112
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
113
|
+
|
|
114
|
+
const context = {
|
|
115
|
+
options: client._options,
|
|
116
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
117
|
+
operationID: "getApiSandboxById",
|
|
118
|
+
oAuth2Scopes: null,
|
|
119
|
+
|
|
120
|
+
resolvedSecurity: requestSecurity,
|
|
121
|
+
|
|
122
|
+
securitySource: client._options.security,
|
|
123
|
+
retryConfig: options?.retries
|
|
124
|
+
|| client._options.retryConfig
|
|
125
|
+
|| { strategy: "none" },
|
|
126
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const requestRes = client._createRequest(context, {
|
|
130
|
+
security: requestSecurity,
|
|
131
|
+
method: "GET",
|
|
132
|
+
baseURL: options?.serverURL,
|
|
133
|
+
path: path,
|
|
134
|
+
headers: headers,
|
|
135
|
+
body: body,
|
|
136
|
+
userAgent: client._options.userAgent,
|
|
137
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
138
|
+
}, options);
|
|
139
|
+
if (!requestRes.ok) {
|
|
140
|
+
return [requestRes, { status: "invalid" }];
|
|
141
|
+
}
|
|
142
|
+
const req = requestRes.value;
|
|
143
|
+
|
|
144
|
+
const doResult = await client._do(req, {
|
|
145
|
+
context,
|
|
146
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
147
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
|
+
retryConfig: context.retryConfig,
|
|
149
|
+
retryCodes: context.retryCodes,
|
|
150
|
+
});
|
|
151
|
+
if (!doResult.ok) {
|
|
152
|
+
return [doResult, { status: "request-error", request: req }];
|
|
153
|
+
}
|
|
154
|
+
const response = doResult.value;
|
|
155
|
+
|
|
156
|
+
const responseFields = {
|
|
157
|
+
HttpMeta: { Response: response, Request: req },
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const [result] = await M.match<
|
|
161
|
+
operations.GetApiSandboxByIdResponse,
|
|
162
|
+
| errors.GetApiSandboxByIdBadRequestError
|
|
163
|
+
| errors.GetApiSandboxByIdUnauthorizedError
|
|
164
|
+
| errors.GetApiSandboxByIdForbiddenError
|
|
165
|
+
| errors.GetApiSandboxByIdNotFoundError
|
|
166
|
+
| errors.GetApiSandboxByIdInternalServerError
|
|
167
|
+
| MutagentError
|
|
168
|
+
| ResponseValidationError
|
|
169
|
+
| ConnectionError
|
|
170
|
+
| RequestAbortedError
|
|
171
|
+
| RequestTimeoutError
|
|
172
|
+
| InvalidRequestError
|
|
173
|
+
| UnexpectedClientError
|
|
174
|
+
| SDKValidationError
|
|
175
|
+
>(
|
|
176
|
+
M.json(200, operations.GetApiSandboxByIdResponse$inboundSchema),
|
|
177
|
+
M.jsonErr(400, errors.GetApiSandboxByIdBadRequestError$inboundSchema),
|
|
178
|
+
M.jsonErr(401, errors.GetApiSandboxByIdUnauthorizedError$inboundSchema),
|
|
179
|
+
M.jsonErr(403, errors.GetApiSandboxByIdForbiddenError$inboundSchema),
|
|
180
|
+
M.jsonErr(404, errors.GetApiSandboxByIdNotFoundError$inboundSchema),
|
|
181
|
+
M.jsonErr(500, errors.GetApiSandboxByIdInternalServerError$inboundSchema),
|
|
182
|
+
M.fail("4XX"),
|
|
183
|
+
M.fail("5XX"),
|
|
184
|
+
)(response, req, { extraFields: responseFields });
|
|
185
|
+
if (!result.ok) {
|
|
186
|
+
return [result, { status: "complete", request: req, response }];
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return [result, { status: "complete", request: req, response }];
|
|
190
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { MutagentCore } from "../core.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/http-client-errors.js";
|
|
19
|
+
import * as errors from "../models/errors/index.js";
|
|
20
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* List sandbox presets
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Named definitions a one-shot run can name. A preset is what lets a caller run something without knowing our registry, region or image tag. Image references are deliberately not returned.
|
|
32
|
+
*/
|
|
33
|
+
export function sandboxGetApiSandboxPresets(
|
|
34
|
+
client: MutagentCore,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
operations.GetApiSandboxPresetsResponse,
|
|
39
|
+
| errors.GetApiSandboxPresetsBadRequestError
|
|
40
|
+
| errors.GetApiSandboxPresetsUnauthorizedError
|
|
41
|
+
| errors.GetApiSandboxPresetsForbiddenError
|
|
42
|
+
| errors.GetApiSandboxPresetsNotFoundError
|
|
43
|
+
| errors.GetApiSandboxPresetsInternalServerError
|
|
44
|
+
| MutagentError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: MutagentCore,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
operations.GetApiSandboxPresetsResponse,
|
|
67
|
+
| errors.GetApiSandboxPresetsBadRequestError
|
|
68
|
+
| errors.GetApiSandboxPresetsUnauthorizedError
|
|
69
|
+
| errors.GetApiSandboxPresetsForbiddenError
|
|
70
|
+
| errors.GetApiSandboxPresetsNotFoundError
|
|
71
|
+
| errors.GetApiSandboxPresetsInternalServerError
|
|
72
|
+
| MutagentError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
APICall,
|
|
82
|
+
]
|
|
83
|
+
> {
|
|
84
|
+
const path = pathToFunc("/api/sandbox/presets")();
|
|
85
|
+
|
|
86
|
+
const headers = new Headers(compactMap({
|
|
87
|
+
Accept: "application/json",
|
|
88
|
+
}));
|
|
89
|
+
|
|
90
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
91
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
92
|
+
|
|
93
|
+
const context = {
|
|
94
|
+
options: client._options,
|
|
95
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
96
|
+
operationID: "getApiSandboxPresets",
|
|
97
|
+
oAuth2Scopes: null,
|
|
98
|
+
|
|
99
|
+
resolvedSecurity: requestSecurity,
|
|
100
|
+
|
|
101
|
+
securitySource: client._options.security,
|
|
102
|
+
retryConfig: options?.retries
|
|
103
|
+
|| client._options.retryConfig
|
|
104
|
+
|| { strategy: "none" },
|
|
105
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const requestRes = client._createRequest(context, {
|
|
109
|
+
security: requestSecurity,
|
|
110
|
+
method: "GET",
|
|
111
|
+
baseURL: options?.serverURL,
|
|
112
|
+
path: path,
|
|
113
|
+
headers: headers,
|
|
114
|
+
userAgent: client._options.userAgent,
|
|
115
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
116
|
+
}, options);
|
|
117
|
+
if (!requestRes.ok) {
|
|
118
|
+
return [requestRes, { status: "invalid" }];
|
|
119
|
+
}
|
|
120
|
+
const req = requestRes.value;
|
|
121
|
+
|
|
122
|
+
const doResult = await client._do(req, {
|
|
123
|
+
context,
|
|
124
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
125
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
126
|
+
retryConfig: context.retryConfig,
|
|
127
|
+
retryCodes: context.retryCodes,
|
|
128
|
+
});
|
|
129
|
+
if (!doResult.ok) {
|
|
130
|
+
return [doResult, { status: "request-error", request: req }];
|
|
131
|
+
}
|
|
132
|
+
const response = doResult.value;
|
|
133
|
+
|
|
134
|
+
const responseFields = {
|
|
135
|
+
HttpMeta: { Response: response, Request: req },
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const [result] = await M.match<
|
|
139
|
+
operations.GetApiSandboxPresetsResponse,
|
|
140
|
+
| errors.GetApiSandboxPresetsBadRequestError
|
|
141
|
+
| errors.GetApiSandboxPresetsUnauthorizedError
|
|
142
|
+
| errors.GetApiSandboxPresetsForbiddenError
|
|
143
|
+
| errors.GetApiSandboxPresetsNotFoundError
|
|
144
|
+
| errors.GetApiSandboxPresetsInternalServerError
|
|
145
|
+
| MutagentError
|
|
146
|
+
| ResponseValidationError
|
|
147
|
+
| ConnectionError
|
|
148
|
+
| RequestAbortedError
|
|
149
|
+
| RequestTimeoutError
|
|
150
|
+
| InvalidRequestError
|
|
151
|
+
| UnexpectedClientError
|
|
152
|
+
| SDKValidationError
|
|
153
|
+
>(
|
|
154
|
+
M.json(200, operations.GetApiSandboxPresetsResponse$inboundSchema),
|
|
155
|
+
M.jsonErr(400, errors.GetApiSandboxPresetsBadRequestError$inboundSchema),
|
|
156
|
+
M.jsonErr(401, errors.GetApiSandboxPresetsUnauthorizedError$inboundSchema),
|
|
157
|
+
M.jsonErr(403, errors.GetApiSandboxPresetsForbiddenError$inboundSchema),
|
|
158
|
+
M.jsonErr(404, errors.GetApiSandboxPresetsNotFoundError$inboundSchema),
|
|
159
|
+
M.jsonErr(
|
|
160
|
+
500,
|
|
161
|
+
errors.GetApiSandboxPresetsInternalServerError$inboundSchema,
|
|
162
|
+
),
|
|
163
|
+
M.fail("4XX"),
|
|
164
|
+
M.fail("5XX"),
|
|
165
|
+
)(response, req, { extraFields: responseFields });
|
|
166
|
+
if (!result.ok) {
|
|
167
|
+
return [result, { status: "complete", request: req, response }];
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return [result, { status: "complete", request: req, response }];
|
|
171
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { MutagentCore } from "../core.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/http-client-errors.js";
|
|
19
|
+
import * as errors from "../models/errors/index.js";
|
|
20
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* List sandbox providers
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Providers this backend can reach and which is the default. A CLI that has no provider configured uses the default.
|
|
32
|
+
*/
|
|
33
|
+
export function sandboxGetApiSandboxProviders(
|
|
34
|
+
client: MutagentCore,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
operations.GetApiSandboxProvidersResponse,
|
|
39
|
+
| errors.GetApiSandboxProvidersBadRequestError
|
|
40
|
+
| errors.GetApiSandboxProvidersUnauthorizedError
|
|
41
|
+
| errors.GetApiSandboxProvidersForbiddenError
|
|
42
|
+
| errors.GetApiSandboxProvidersNotFoundError
|
|
43
|
+
| errors.GetApiSandboxProvidersInternalServerError
|
|
44
|
+
| MutagentError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: MutagentCore,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
operations.GetApiSandboxProvidersResponse,
|
|
67
|
+
| errors.GetApiSandboxProvidersBadRequestError
|
|
68
|
+
| errors.GetApiSandboxProvidersUnauthorizedError
|
|
69
|
+
| errors.GetApiSandboxProvidersForbiddenError
|
|
70
|
+
| errors.GetApiSandboxProvidersNotFoundError
|
|
71
|
+
| errors.GetApiSandboxProvidersInternalServerError
|
|
72
|
+
| MutagentError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
APICall,
|
|
82
|
+
]
|
|
83
|
+
> {
|
|
84
|
+
const path = pathToFunc("/api/sandbox/providers")();
|
|
85
|
+
|
|
86
|
+
const headers = new Headers(compactMap({
|
|
87
|
+
Accept: "application/json",
|
|
88
|
+
}));
|
|
89
|
+
|
|
90
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
91
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
92
|
+
|
|
93
|
+
const context = {
|
|
94
|
+
options: client._options,
|
|
95
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
96
|
+
operationID: "getApiSandboxProviders",
|
|
97
|
+
oAuth2Scopes: null,
|
|
98
|
+
|
|
99
|
+
resolvedSecurity: requestSecurity,
|
|
100
|
+
|
|
101
|
+
securitySource: client._options.security,
|
|
102
|
+
retryConfig: options?.retries
|
|
103
|
+
|| client._options.retryConfig
|
|
104
|
+
|| { strategy: "none" },
|
|
105
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const requestRes = client._createRequest(context, {
|
|
109
|
+
security: requestSecurity,
|
|
110
|
+
method: "GET",
|
|
111
|
+
baseURL: options?.serverURL,
|
|
112
|
+
path: path,
|
|
113
|
+
headers: headers,
|
|
114
|
+
userAgent: client._options.userAgent,
|
|
115
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
116
|
+
}, options);
|
|
117
|
+
if (!requestRes.ok) {
|
|
118
|
+
return [requestRes, { status: "invalid" }];
|
|
119
|
+
}
|
|
120
|
+
const req = requestRes.value;
|
|
121
|
+
|
|
122
|
+
const doResult = await client._do(req, {
|
|
123
|
+
context,
|
|
124
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
125
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
126
|
+
retryConfig: context.retryConfig,
|
|
127
|
+
retryCodes: context.retryCodes,
|
|
128
|
+
});
|
|
129
|
+
if (!doResult.ok) {
|
|
130
|
+
return [doResult, { status: "request-error", request: req }];
|
|
131
|
+
}
|
|
132
|
+
const response = doResult.value;
|
|
133
|
+
|
|
134
|
+
const responseFields = {
|
|
135
|
+
HttpMeta: { Response: response, Request: req },
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const [result] = await M.match<
|
|
139
|
+
operations.GetApiSandboxProvidersResponse,
|
|
140
|
+
| errors.GetApiSandboxProvidersBadRequestError
|
|
141
|
+
| errors.GetApiSandboxProvidersUnauthorizedError
|
|
142
|
+
| errors.GetApiSandboxProvidersForbiddenError
|
|
143
|
+
| errors.GetApiSandboxProvidersNotFoundError
|
|
144
|
+
| errors.GetApiSandboxProvidersInternalServerError
|
|
145
|
+
| MutagentError
|
|
146
|
+
| ResponseValidationError
|
|
147
|
+
| ConnectionError
|
|
148
|
+
| RequestAbortedError
|
|
149
|
+
| RequestTimeoutError
|
|
150
|
+
| InvalidRequestError
|
|
151
|
+
| UnexpectedClientError
|
|
152
|
+
| SDKValidationError
|
|
153
|
+
>(
|
|
154
|
+
M.json(200, operations.GetApiSandboxProvidersResponse$inboundSchema),
|
|
155
|
+
M.jsonErr(400, errors.GetApiSandboxProvidersBadRequestError$inboundSchema),
|
|
156
|
+
M.jsonErr(
|
|
157
|
+
401,
|
|
158
|
+
errors.GetApiSandboxProvidersUnauthorizedError$inboundSchema,
|
|
159
|
+
),
|
|
160
|
+
M.jsonErr(403, errors.GetApiSandboxProvidersForbiddenError$inboundSchema),
|
|
161
|
+
M.jsonErr(404, errors.GetApiSandboxProvidersNotFoundError$inboundSchema),
|
|
162
|
+
M.jsonErr(
|
|
163
|
+
500,
|
|
164
|
+
errors.GetApiSandboxProvidersInternalServerError$inboundSchema,
|
|
165
|
+
),
|
|
166
|
+
M.fail("4XX"),
|
|
167
|
+
M.fail("5XX"),
|
|
168
|
+
)(response, req, { extraFields: responseFields });
|
|
169
|
+
if (!result.ok) {
|
|
170
|
+
return [result, { status: "complete", request: req, response }];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { MutagentCore } from "../core.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/http-client-errors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { MutagentError } from "../models/errors/mutagent-error.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* List sandboxes
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Always tenant-scoped. There is no unscoped listing path.
|
|
33
|
+
*/
|
|
34
|
+
export function sandboxGetApiSandbox(
|
|
35
|
+
client: MutagentCore,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
Array<operations.GetApiSandboxResponse>,
|
|
40
|
+
| errors.GetApiSandboxBadRequestError
|
|
41
|
+
| errors.GetApiSandboxUnauthorizedError
|
|
42
|
+
| errors.GetApiSandboxForbiddenError
|
|
43
|
+
| errors.GetApiSandboxNotFoundError
|
|
44
|
+
| errors.GetApiSandboxInternalServerError
|
|
45
|
+
| MutagentError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
options,
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function $do(
|
|
62
|
+
client: MutagentCore,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
Array<operations.GetApiSandboxResponse>,
|
|
68
|
+
| errors.GetApiSandboxBadRequestError
|
|
69
|
+
| errors.GetApiSandboxUnauthorizedError
|
|
70
|
+
| errors.GetApiSandboxForbiddenError
|
|
71
|
+
| errors.GetApiSandboxNotFoundError
|
|
72
|
+
| errors.GetApiSandboxInternalServerError
|
|
73
|
+
| MutagentError
|
|
74
|
+
| ResponseValidationError
|
|
75
|
+
| ConnectionError
|
|
76
|
+
| RequestAbortedError
|
|
77
|
+
| RequestTimeoutError
|
|
78
|
+
| InvalidRequestError
|
|
79
|
+
| UnexpectedClientError
|
|
80
|
+
| SDKValidationError
|
|
81
|
+
>,
|
|
82
|
+
APICall,
|
|
83
|
+
]
|
|
84
|
+
> {
|
|
85
|
+
const path = pathToFunc("/api/sandbox")();
|
|
86
|
+
|
|
87
|
+
const headers = new Headers(compactMap({
|
|
88
|
+
Accept: "application/json",
|
|
89
|
+
}));
|
|
90
|
+
|
|
91
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
92
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
93
|
+
|
|
94
|
+
const context = {
|
|
95
|
+
options: client._options,
|
|
96
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
97
|
+
operationID: "getApiSandbox",
|
|
98
|
+
oAuth2Scopes: null,
|
|
99
|
+
|
|
100
|
+
resolvedSecurity: requestSecurity,
|
|
101
|
+
|
|
102
|
+
securitySource: client._options.security,
|
|
103
|
+
retryConfig: options?.retries
|
|
104
|
+
|| client._options.retryConfig
|
|
105
|
+
|| { strategy: "none" },
|
|
106
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const requestRes = client._createRequest(context, {
|
|
110
|
+
security: requestSecurity,
|
|
111
|
+
method: "GET",
|
|
112
|
+
baseURL: options?.serverURL,
|
|
113
|
+
path: path,
|
|
114
|
+
headers: headers,
|
|
115
|
+
userAgent: client._options.userAgent,
|
|
116
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
117
|
+
}, options);
|
|
118
|
+
if (!requestRes.ok) {
|
|
119
|
+
return [requestRes, { status: "invalid" }];
|
|
120
|
+
}
|
|
121
|
+
const req = requestRes.value;
|
|
122
|
+
|
|
123
|
+
const doResult = await client._do(req, {
|
|
124
|
+
context,
|
|
125
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
126
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
127
|
+
retryConfig: context.retryConfig,
|
|
128
|
+
retryCodes: context.retryCodes,
|
|
129
|
+
});
|
|
130
|
+
if (!doResult.ok) {
|
|
131
|
+
return [doResult, { status: "request-error", request: req }];
|
|
132
|
+
}
|
|
133
|
+
const response = doResult.value;
|
|
134
|
+
|
|
135
|
+
const responseFields = {
|
|
136
|
+
HttpMeta: { Response: response, Request: req },
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const [result] = await M.match<
|
|
140
|
+
Array<operations.GetApiSandboxResponse>,
|
|
141
|
+
| errors.GetApiSandboxBadRequestError
|
|
142
|
+
| errors.GetApiSandboxUnauthorizedError
|
|
143
|
+
| errors.GetApiSandboxForbiddenError
|
|
144
|
+
| errors.GetApiSandboxNotFoundError
|
|
145
|
+
| errors.GetApiSandboxInternalServerError
|
|
146
|
+
| MutagentError
|
|
147
|
+
| ResponseValidationError
|
|
148
|
+
| ConnectionError
|
|
149
|
+
| RequestAbortedError
|
|
150
|
+
| RequestTimeoutError
|
|
151
|
+
| InvalidRequestError
|
|
152
|
+
| UnexpectedClientError
|
|
153
|
+
| SDKValidationError
|
|
154
|
+
>(
|
|
155
|
+
M.json(200, z.array(operations.GetApiSandboxResponse$inboundSchema)),
|
|
156
|
+
M.jsonErr(400, errors.GetApiSandboxBadRequestError$inboundSchema),
|
|
157
|
+
M.jsonErr(401, errors.GetApiSandboxUnauthorizedError$inboundSchema),
|
|
158
|
+
M.jsonErr(403, errors.GetApiSandboxForbiddenError$inboundSchema),
|
|
159
|
+
M.jsonErr(404, errors.GetApiSandboxNotFoundError$inboundSchema),
|
|
160
|
+
M.jsonErr(500, errors.GetApiSandboxInternalServerError$inboundSchema),
|
|
161
|
+
M.fail("4XX"),
|
|
162
|
+
M.fail("5XX"),
|
|
163
|
+
)(response, req, { extraFields: responseFields });
|
|
164
|
+
if (!result.ok) {
|
|
165
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return [result, { status: "complete", request: req, response }];
|
|
169
|
+
}
|