pi-codex-auto-review 0.1.0
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/LICENSE +201 -0
- package/NOTICE +10 -0
- package/README.md +77 -0
- package/dist/approvals.d.ts +72 -0
- package/dist/approvals.js +167 -0
- package/dist/approvals.js.map +1 -0
- package/dist/audit.d.ts +28 -0
- package/dist/audit.js +40 -0
- package/dist/audit.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +70 -0
- package/dist/cli.js.map +1 -0
- package/dist/context-files.d.ts +14 -0
- package/dist/context-files.js +113 -0
- package/dist/context-files.js.map +1 -0
- package/dist/contracts.d.ts +258 -0
- package/dist/contracts.js +102 -0
- package/dist/contracts.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/native/darwin-arm64/artifact.json +5 -0
- package/dist/native/darwin-arm64/pi-guard-execpolicy +0 -0
- package/dist/native/linux-x64/artifact.json +5 -0
- package/dist/native/linux-x64/pi-guard-execpolicy +0 -0
- package/dist/policy/domains.d.ts +5 -0
- package/dist/policy/domains.js +18 -0
- package/dist/policy/domains.js.map +1 -0
- package/dist/policy/index.d.ts +56 -0
- package/dist/policy/index.js +304 -0
- package/dist/policy/index.js.map +1 -0
- package/dist/policy/paths.d.ts +5 -0
- package/dist/policy/paths.js +54 -0
- package/dist/policy/paths.js.map +1 -0
- package/dist/policy/rules.d.ts +36 -0
- package/dist/policy/rules.js +61 -0
- package/dist/policy/rules.js.map +1 -0
- package/dist/policy/shell.d.ts +14 -0
- package/dist/policy/shell.js +122 -0
- package/dist/policy/shell.js.map +1 -0
- package/dist/reports.d.ts +21 -0
- package/dist/reports.js +42 -0
- package/dist/reports.js.map +1 -0
- package/dist/review/context.d.ts +25 -0
- package/dist/review/context.js +108 -0
- package/dist/review/context.js.map +1 -0
- package/dist/review/investigation.d.ts +39 -0
- package/dist/review/investigation.js +36 -0
- package/dist/review/investigation.js.map +1 -0
- package/dist/review/lifecycle.d.ts +29 -0
- package/dist/review/lifecycle.js +71 -0
- package/dist/review/lifecycle.js.map +1 -0
- package/dist/review/policy.d.ts +4 -0
- package/dist/review/policy.js +15 -0
- package/dist/review/policy.js.map +1 -0
- package/dist/review/upstream-policy.d.ts +2 -0
- package/dist/review/upstream-policy.js +210 -0
- package/dist/review/upstream-policy.js.map +1 -0
- package/dist/reviewer.d.ts +45 -0
- package/dist/reviewer.js +148 -0
- package/dist/reviewer.js.map +1 -0
- package/dist/sandbox/broker.d.ts +1 -0
- package/dist/sandbox/broker.js +135 -0
- package/dist/sandbox/broker.js.map +1 -0
- package/dist/sandbox/config.d.ts +5 -0
- package/dist/sandbox/config.js +91 -0
- package/dist/sandbox/config.js.map +1 -0
- package/dist/sandbox/executor.d.ts +20 -0
- package/dist/sandbox/executor.js +144 -0
- package/dist/sandbox/executor.js.map +1 -0
- package/dist/sandbox/hard-links.d.ts +4 -0
- package/dist/sandbox/hard-links.js +145 -0
- package/dist/sandbox/hard-links.js.map +1 -0
- package/dist/sandbox/linux-read-paths.d.ts +7 -0
- package/dist/sandbox/linux-read-paths.js +47 -0
- package/dist/sandbox/linux-read-paths.js.map +1 -0
- package/dist/sandbox/paths.d.ts +3 -0
- package/dist/sandbox/paths.js +10 -0
- package/dist/sandbox/paths.js.map +1 -0
- package/dist/sandbox/runtime-write-paths.d.ts +2 -0
- package/dist/sandbox/runtime-write-paths.js +8 -0
- package/dist/sandbox/runtime-write-paths.js.map +1 -0
- package/dist/sandbox/seccomp.d.ts +5 -0
- package/dist/sandbox/seccomp.js +16 -0
- package/dist/sandbox/seccomp.js.map +1 -0
- package/dist/sandbox/worker.d.ts +1 -0
- package/dist/sandbox/worker.js +73 -0
- package/dist/sandbox/worker.js.map +1 -0
- package/dist/signals.d.ts +10 -0
- package/dist/signals.js +21 -0
- package/dist/signals.js.map +1 -0
- package/dist/startup.d.ts +22 -0
- package/dist/startup.js +100 -0
- package/dist/startup.js.map +1 -0
- package/dist/tools/controller.d.ts +63 -0
- package/dist/tools/controller.js +286 -0
- package/dist/tools/controller.js.map +1 -0
- package/dist/tools/external.d.ts +30 -0
- package/dist/tools/external.js +24 -0
- package/dist/tools/external.js.map +1 -0
- package/dist/tools/mcp.d.ts +17 -0
- package/dist/tools/mcp.js +186 -0
- package/dist/tools/mcp.js.map +1 -0
- package/docs/publishing.md +73 -0
- package/docs/security/dependencies.md +43 -0
- package/docs/testing/auto-review-protection.md +130 -0
- package/docs/usage.md +217 -0
- package/native/execpolicy/LICENSE +201 -0
- package/native/execpolicy/NOTICE +6 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/LICENSE +201 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/README.md +901 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts +3 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js +472 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts +19 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js +17 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts +52 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js +153 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts +164 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js +246 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts +58 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js +128 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts +124 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js +258 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts +87 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js +138 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts +67 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js +113 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts +70 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js +171 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts +120 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js +281 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts +108 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js +208 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts +82 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js +155 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts +44 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js +220 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts +150 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js +678 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts +32 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js +111 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts +305 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js +2605 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts +55 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js +152 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts +12 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js +43 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts +116 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js +1195 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts +200 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js +443 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts +28 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js +114 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts +59 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js +159 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts +147 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js +445 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts +17 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js +163 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts +83 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js +212 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts +76 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js +221 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts +1691 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js +1233 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts +97 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js +1937 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts +113 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js +3 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts +411 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js +1408 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts +37 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js +125 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts +57 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js +332 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts +100 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js +546 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts +923 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js +1419 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts +31 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js +69 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts +7 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js +25 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts +15 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js +49 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts +17 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js +37 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts +27 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js +47 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts +9 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js +25 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js.map +1 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/package.json +88 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/build.ts +95 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/arm64/apply-seccomp +0 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/build.ts +69 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/arm64/srt-win.exe +0 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/build.ts +28 -0
- package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/x64/srt-win.exe +0 -0
- package/node_modules/@pondwader/socks5-server/.github/workflows/ci.yml +27 -0
- package/node_modules/@pondwader/socks5-server/LICENSE +20 -0
- package/node_modules/@pondwader/socks5-server/README.md +151 -0
- package/node_modules/@pondwader/socks5-server/dist/index.d.mts +87 -0
- package/node_modules/@pondwader/socks5-server/dist/index.d.ts +87 -0
- package/node_modules/@pondwader/socks5-server/dist/index.js +346 -0
- package/node_modules/@pondwader/socks5-server/dist/index.mjs +307 -0
- package/node_modules/@pondwader/socks5-server/package.json +31 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1157 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +24 -0
- package/node_modules/commander/lib/argument.js +149 -0
- package/node_modules/commander/lib/command.js +2509 -0
- package/node_modules/commander/lib/error.js +39 -0
- package/node_modules/commander/lib/help.js +520 -0
- package/node_modules/commander/lib/option.js +330 -0
- package/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/commander/package-support.json +16 -0
- package/node_modules/commander/package.json +84 -0
- package/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/commander/typings/index.d.ts +969 -0
- package/node_modules/node-forge/.editorconfig +17 -0
- package/node_modules/node-forge/.eslintrc.js +24 -0
- package/node_modules/node-forge/.github/workflows/main.yaml +96 -0
- package/node_modules/node-forge/.istanbul.yml +2 -0
- package/node_modules/node-forge/.npmignore +15 -0
- package/node_modules/node-forge/CHANGELOG.md +555 -0
- package/node_modules/node-forge/CONTRIBUTING.md +18 -0
- package/node_modules/node-forge/LICENSE +331 -0
- package/node_modules/node-forge/README.md +2071 -0
- package/node_modules/node-forge/RELEASE.md +19 -0
- package/node_modules/node-forge/SECURITY.md +5 -0
- package/node_modules/node-forge/examples/create-cert.js +110 -0
- package/node_modules/node-forge/examples/create-csr.js +66 -0
- package/node_modules/node-forge/examples/create-pkcs12.js +160 -0
- package/node_modules/node-forge/examples/imap.js +46 -0
- package/node_modules/node-forge/examples/sign-p7.js +115 -0
- package/node_modules/node-forge/examples/tls.js +189 -0
- package/node_modules/node-forge/flash/PooledSocket.as +18 -0
- package/node_modules/node-forge/flash/README.md +48 -0
- package/node_modules/node-forge/flash/SocketEvent.as +36 -0
- package/node_modules/node-forge/flash/SocketPool.as +754 -0
- package/node_modules/node-forge/flash/mod_fsp/README +135 -0
- package/node_modules/node-forge/flash/mod_fsp/mod_fsp.c +415 -0
- package/node_modules/node-forge/flash/package.json +28 -0
- package/node_modules/node-forge/flash/policyserver.js +65 -0
- package/node_modules/node-forge/flash/policyserver.py +112 -0
- package/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
- package/node_modules/node-forge/karma-sauce.conf.js +79 -0
- package/node_modules/node-forge/karma.conf.js +133 -0
- package/node_modules/node-forge/lib/aes.js +1091 -0
- package/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
- package/node_modules/node-forge/lib/asn1-validator.js +91 -0
- package/node_modules/node-forge/lib/asn1.js +1503 -0
- package/node_modules/node-forge/lib/baseN.js +186 -0
- package/node_modules/node-forge/lib/cipher.js +230 -0
- package/node_modules/node-forge/lib/cipherModes.js +999 -0
- package/node_modules/node-forge/lib/des.js +496 -0
- package/node_modules/node-forge/lib/ed25519.js +1091 -0
- package/node_modules/node-forge/lib/forge.js +13 -0
- package/node_modules/node-forge/lib/form.js +149 -0
- package/node_modules/node-forge/lib/hmac.js +146 -0
- package/node_modules/node-forge/lib/http.js +1346 -0
- package/node_modules/node-forge/lib/index.all.js +16 -0
- package/node_modules/node-forge/lib/index.js +33 -0
- package/node_modules/node-forge/lib/jsbn.js +1294 -0
- package/node_modules/node-forge/lib/kem.js +168 -0
- package/node_modules/node-forge/lib/log.js +319 -0
- package/node_modules/node-forge/lib/md.all.js +13 -0
- package/node_modules/node-forge/lib/md.js +11 -0
- package/node_modules/node-forge/lib/md5.js +289 -0
- package/node_modules/node-forge/lib/mgf.js +12 -0
- package/node_modules/node-forge/lib/mgf1.js +57 -0
- package/node_modules/node-forge/lib/oids.js +180 -0
- package/node_modules/node-forge/lib/pbe.js +1023 -0
- package/node_modules/node-forge/lib/pbkdf2.js +211 -0
- package/node_modules/node-forge/lib/pem.js +237 -0
- package/node_modules/node-forge/lib/pkcs1.js +276 -0
- package/node_modules/node-forge/lib/pkcs12.js +1078 -0
- package/node_modules/node-forge/lib/pkcs7.js +1260 -0
- package/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
- package/node_modules/node-forge/lib/pki.js +102 -0
- package/node_modules/node-forge/lib/prime.js +297 -0
- package/node_modules/node-forge/lib/prime.worker.js +168 -0
- package/node_modules/node-forge/lib/prng.js +419 -0
- package/node_modules/node-forge/lib/pss.js +241 -0
- package/node_modules/node-forge/lib/random.js +191 -0
- package/node_modules/node-forge/lib/rc2.js +410 -0
- package/node_modules/node-forge/lib/rsa.js +1973 -0
- package/node_modules/node-forge/lib/sha1.js +319 -0
- package/node_modules/node-forge/lib/sha256.js +327 -0
- package/node_modules/node-forge/lib/sha512.js +561 -0
- package/node_modules/node-forge/lib/socket.js +287 -0
- package/node_modules/node-forge/lib/ssh.js +236 -0
- package/node_modules/node-forge/lib/tls.js +4282 -0
- package/node_modules/node-forge/lib/tlssocket.js +249 -0
- package/node_modules/node-forge/lib/util.js +2652 -0
- package/node_modules/node-forge/lib/x509.js +3251 -0
- package/node_modules/node-forge/lib/xhr.js +738 -0
- package/node_modules/node-forge/package.json +123 -0
- package/node_modules/node-forge/tests/.eslintrc.js +5 -0
- package/node_modules/node-forge/tests/README.md +4 -0
- package/node_modules/node-forge/tests/benchmarks/aes-speed.js +62 -0
- package/node_modules/node-forge/tests/benchmarks/so-44303784.js +246 -0
- package/node_modules/node-forge/tests/flash/README.md +7 -0
- package/node_modules/node-forge/tests/flash/Test.as +96 -0
- package/node_modules/node-forge/tests/flash/build-flash.xml +7 -0
- package/node_modules/node-forge/tests/flash/index.html +28 -0
- package/node_modules/node-forge/tests/index.html +33 -0
- package/node_modules/node-forge/tests/issues/heartbleed.js +55 -0
- package/node_modules/node-forge/tests/issues/issue-428.html +95 -0
- package/node_modules/node-forge/tests/issues/issue-428.js +375 -0
- package/node_modules/node-forge/tests/karma/index.js +8 -0
- package/node_modules/node-forge/tests/karma/testWorker.js +65 -0
- package/node_modules/node-forge/tests/karma/web-worker-rsa.js +55 -0
- package/node_modules/node-forge/tests/legacy/common.html +65 -0
- package/node_modules/node-forge/tests/legacy/common.js +2199 -0
- package/node_modules/node-forge/tests/legacy/form.html +148 -0
- package/node_modules/node-forge/tests/legacy/form.js +40 -0
- package/node_modules/node-forge/tests/legacy/http.html +235 -0
- package/node_modules/node-forge/tests/legacy/index.html +70 -0
- package/node_modules/node-forge/tests/legacy/keygen.html +113 -0
- package/node_modules/node-forge/tests/legacy/login.css +26 -0
- package/node_modules/node-forge/tests/legacy/loginDemo.html +32 -0
- package/node_modules/node-forge/tests/legacy/loginDemo.js +149 -0
- package/node_modules/node-forge/tests/legacy/performance.html +533 -0
- package/node_modules/node-forge/tests/legacy/result.txt +1 -0
- package/node_modules/node-forge/tests/legacy/socketPool.html +302 -0
- package/node_modules/node-forge/tests/legacy/tasks.html +54 -0
- package/node_modules/node-forge/tests/legacy/tasks.js +378 -0
- package/node_modules/node-forge/tests/legacy/tls.html +389 -0
- package/node_modules/node-forge/tests/legacy/webid.html +89 -0
- package/node_modules/node-forge/tests/legacy/webid.js +313 -0
- package/node_modules/node-forge/tests/legacy/ws-webid.js +120 -0
- package/node_modules/node-forge/tests/legacy/xhr.html +67 -0
- package/node_modules/node-forge/tests/legacy/xhr.js +590 -0
- package/node_modules/node-forge/tests/pocs/ghsa-2328-f5f3-gj25.js +85 -0
- package/node_modules/node-forge/tests/pocs/ghsa-ppp5-5v6c-4jwp.js +166 -0
- package/node_modules/node-forge/tests/pocs/ghsa-q67f-28xg-22rw.js +103 -0
- package/node_modules/node-forge/tests/security/cve-2025-12816.js +75 -0
- package/node_modules/node-forge/tests/security/ghsa-554w-wpv2-vw27.js +81 -0
- package/node_modules/node-forge/tests/security/index.js +3 -0
- package/node_modules/node-forge/tests/server.crt +26 -0
- package/node_modules/node-forge/tests/server.js +87 -0
- package/node_modules/node-forge/tests/server.key +27 -0
- package/node_modules/node-forge/tests/support/task.js +718 -0
- package/node_modules/node-forge/tests/tests.css +61 -0
- package/node_modules/node-forge/tests/unit/aes.js +1498 -0
- package/node_modules/node-forge/tests/unit/asn1.js +1337 -0
- package/node_modules/node-forge/tests/unit/csr.js +129 -0
- package/node_modules/node-forge/tests/unit/des.js +231 -0
- package/node_modules/node-forge/tests/unit/ed25519.js +395 -0
- package/node_modules/node-forge/tests/unit/forge.js +2 -0
- package/node_modules/node-forge/tests/unit/hmac.js +64 -0
- package/node_modules/node-forge/tests/unit/index.html +20 -0
- package/node_modules/node-forge/tests/unit/index.js +27 -0
- package/node_modules/node-forge/tests/unit/jsbn.js +40 -0
- package/node_modules/node-forge/tests/unit/kem.js +167 -0
- package/node_modules/node-forge/tests/unit/md5.js +114 -0
- package/node_modules/node-forge/tests/unit/mgf1.js +16 -0
- package/node_modules/node-forge/tests/unit/pbkdf2.js +182 -0
- package/node_modules/node-forge/tests/unit/pem.js +159 -0
- package/node_modules/node-forge/tests/unit/pkcs1.js +1077 -0
- package/node_modules/node-forge/tests/unit/pkcs12.js +739 -0
- package/node_modules/node-forge/tests/unit/pkcs7.js +792 -0
- package/node_modules/node-forge/tests/unit/random.js +48 -0
- package/node_modules/node-forge/tests/unit/rc2.js +88 -0
- package/node_modules/node-forge/tests/unit/rsa.js +1278 -0
- package/node_modules/node-forge/tests/unit/sha1.js +72 -0
- package/node_modules/node-forge/tests/unit/sha256.js +79 -0
- package/node_modules/node-forge/tests/unit/sha512.js +200 -0
- package/node_modules/node-forge/tests/unit/ssh.js +175 -0
- package/node_modules/node-forge/tests/unit/tls.js +175 -0
- package/node_modules/node-forge/tests/unit/util.js +595 -0
- package/node_modules/node-forge/tests/unit/x509.js +1986 -0
- package/node_modules/node-forge/tests/websockets/server-webid.js +495 -0
- package/node_modules/node-forge/tests/websockets/server-ws.js +158 -0
- package/node_modules/node-forge/webpack-tests.config.js +26 -0
- package/node_modules/node-forge/webpack.config.js +130 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,1691 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for Sandbox Runtime
|
|
3
|
+
* This is the main configuration interface that consumers pass to SandboxManager.initialize()
|
|
4
|
+
*/
|
|
5
|
+
import type { FilterRequestCallback } from './request-filter.js';
|
|
6
|
+
import { z } from 'zod/v3';
|
|
7
|
+
/**
|
|
8
|
+
* Schema for MITM proxy configuration
|
|
9
|
+
* Allows routing specific domains through an upstream MITM proxy via Unix socket
|
|
10
|
+
*/
|
|
11
|
+
declare const MitmProxyConfigSchema: z.ZodObject<{
|
|
12
|
+
socketPath: z.ZodString;
|
|
13
|
+
domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
socketPath: string;
|
|
16
|
+
domains: string[];
|
|
17
|
+
}, {
|
|
18
|
+
socketPath: string;
|
|
19
|
+
domains: string[];
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Schema for upstream/parent HTTP proxy configuration.
|
|
23
|
+
* Used when SRT itself runs behind a corporate proxy and cannot make direct
|
|
24
|
+
* outbound connections.
|
|
25
|
+
*/
|
|
26
|
+
declare const ParentProxyConfigSchema: z.ZodObject<{
|
|
27
|
+
http: z.ZodOptional<z.ZodString>;
|
|
28
|
+
https: z.ZodOptional<z.ZodString>;
|
|
29
|
+
noProxy: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
http?: string | undefined;
|
|
32
|
+
https?: string | undefined;
|
|
33
|
+
noProxy?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
http?: string | undefined;
|
|
36
|
+
https?: string | undefined;
|
|
37
|
+
noProxy?: string | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Schema for the access mode of a declared credential source.
|
|
41
|
+
*
|
|
42
|
+
* - `deny` — the sandboxed process cannot read the file / does not see the
|
|
43
|
+
* environment variable.
|
|
44
|
+
* - `mask` — the sandboxed process sees a per-session sentinel value; the
|
|
45
|
+
* host proxy substitutes sentinel→real on egress to `injectHosts`.
|
|
46
|
+
* For files this is whole-file masking (Linux only; degrades to `deny`
|
|
47
|
+
* on macOS — see {@link CredentialFileConfigSchema}).
|
|
48
|
+
*/
|
|
49
|
+
declare const credentialModeSchema: z.ZodEnum<["deny", "mask"]>;
|
|
50
|
+
/**
|
|
51
|
+
* Schema for a single credential file/directory entry.
|
|
52
|
+
*
|
|
53
|
+
* `mode: "mask"` without `extract` is **whole-file** masking: the entire
|
|
54
|
+
* file content is replaced inside the sandbox with one sentinel string,
|
|
55
|
+
* and the proxy substitutes that sentinel back to the real bytes on egress.
|
|
56
|
+
* This works for files whose content *is* the credential (a token file, a
|
|
57
|
+
* single-line secret).
|
|
58
|
+
*
|
|
59
|
+
* `mode: "mask"` with `extract` is **structured** masking: the regex is
|
|
60
|
+
* applied globally to the real file, capture group 1 of each match is a
|
|
61
|
+
* credential value, and only those captured spans are replaced with
|
|
62
|
+
* sentinels — the rest of the file is preserved byte-for-byte. This lets a
|
|
63
|
+
* tool that parses the file (`.netrc`, JSON/YAML configs) still succeed
|
|
64
|
+
* inside the sandbox while the credential values are protected. If the
|
|
65
|
+
* pattern matches nothing, behaviour is governed by `onExtractNoMatch`
|
|
66
|
+
* (default `"warn"` — the file is left readable as-is and a stderr
|
|
67
|
+
* warning is emitted).
|
|
68
|
+
*
|
|
69
|
+
* `mode: "mask"` with `decode: "jwt"` extends structured masking into
|
|
70
|
+
* encoded values: where `extract` opens plain text to mask a span inside
|
|
71
|
+
* it, `decode` opens the encoding so masking can target fields inside the
|
|
72
|
+
* decoded payload (`maskClaims`):
|
|
73
|
+
*
|
|
74
|
+
* - **Default pattern**: when `extract` is absent, a built-in JWT regex is
|
|
75
|
+
* used (every JWT starts `eyJ` — base64url of `{"`), so authors don't
|
|
76
|
+
* hand-write it. An explicit `extract` wins; its group-1 captures are the
|
|
77
|
+
* candidates.
|
|
78
|
+
* - **Decode-verification**: each candidate must actually BE a JWT (three
|
|
79
|
+
* segments, JSON header/payload, `alg` in the header) before it is
|
|
80
|
+
* masked; candidates failing verification are left untouched.
|
|
81
|
+
* - **Claim-level masking** (`maskClaims`): each named top-level payload
|
|
82
|
+
* claim present with a string value is replaced by its own sentinel and
|
|
83
|
+
* the token is rebuilt around the modified payload (original header,
|
|
84
|
+
* filler signature). All other claims stay real, so a client that
|
|
85
|
+
* decodes the token and reads a non-secret claim keeps working. The
|
|
86
|
+
* proxy substitutes both the whole rebuilt token (sent as a bearer
|
|
87
|
+
* credential) and each claim sentinel (extracted and sent alone).
|
|
88
|
+
* - **Whole-token fallback** (no `maskClaims`): the whole decoded value is
|
|
89
|
+
* treated as the credential — for bearer-style usage where the token
|
|
90
|
+
* itself is the secret — and replaced with a structurally valid fake JWT
|
|
91
|
+
* (parseable header/payload, far-future `exp`), so client-side token
|
|
92
|
+
* parsing inside the sandbox doesn't break. Its header declares
|
|
93
|
+
* `alg: HS256` (not `alg: none`, which misconfigured validators accept)
|
|
94
|
+
* with a garbage signature, so any validator the unswapped fake reaches
|
|
95
|
+
* rejects it.
|
|
96
|
+
* - **No verified candidate**: if nothing matches, no candidate verifies,
|
|
97
|
+
* or (with `maskClaims`) no named claim matches in any verified token,
|
|
98
|
+
* behaviour is governed by `onExtractNoMatch` — same as a non-matching
|
|
99
|
+
* `extract` (default `"warn"`: stderr warning, file left readable
|
|
100
|
+
* as-is).
|
|
101
|
+
*
|
|
102
|
+
* `maskDuplicates: true` (only meaningful with `extract` or `decode`)
|
|
103
|
+
* additionally replaces every verbatim occurrence of each masked value
|
|
104
|
+
* *outside* the regex-matched spans — for a secret repeated where the
|
|
105
|
+
* regex does not reach (e.g. pasted into a comment). The scan is raw
|
|
106
|
+
* substring matching, so a short or common captured value may also hit
|
|
107
|
+
* unrelated content that happens to contain it; intended for long,
|
|
108
|
+
* high-entropy secrets. Composed with `decode`, only captures that passed
|
|
109
|
+
* verification are scanned — a duplicate is the same value and reuses the
|
|
110
|
+
* verified capture's fake without re-verification.
|
|
111
|
+
*
|
|
112
|
+
* On macOS, SBPL cannot redirect reads, so `mode: "mask"` (with or without
|
|
113
|
+
* `extract`/`decode`) currently degrades to `mode: "deny"` (the file is
|
|
114
|
+
* unreadable inside the sandbox).
|
|
115
|
+
*/
|
|
116
|
+
export declare const CredentialFileConfigSchema: z.ZodObject<{
|
|
117
|
+
path: z.ZodString;
|
|
118
|
+
mode: z.ZodEnum<["deny", "mask"]>;
|
|
119
|
+
extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
120
|
+
/**
|
|
121
|
+
* What to do when `extract` matches nothing in the file at runtime —
|
|
122
|
+
* or, with `decode`, when no candidate survives verification.
|
|
123
|
+
*
|
|
124
|
+
* - `"warn"` (default): emit a stderr warning and leave the file
|
|
125
|
+
* readable as-is inside the sandbox (fail-open). A non-matching
|
|
126
|
+
* pattern is treated as a config error to surface and fix, not a
|
|
127
|
+
* reason to break a tool that needs the file when the credential is
|
|
128
|
+
* legitimately absent.
|
|
129
|
+
* - `"deny"`: degrade the entry to `mode: "deny"` so the file is
|
|
130
|
+
* unreadable inside the sandbox (fail-closed). The operator declared
|
|
131
|
+
* this file as containing a credential; if the regex cannot find it,
|
|
132
|
+
* block access rather than expose it.
|
|
133
|
+
* - `"error"`: throw at wrap time so nothing runs until the operator
|
|
134
|
+
* fixes the config.
|
|
135
|
+
*
|
|
136
|
+
* Only meaningful when `mode` is `"mask"` and `extract` or `decode` is
|
|
137
|
+
* set; accepted but ignored otherwise.
|
|
138
|
+
*/
|
|
139
|
+
onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
|
|
140
|
+
decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
|
|
141
|
+
/**
|
|
142
|
+
* Names of top-level payload claims to mask inside each decoded value —
|
|
143
|
+
* the claim-level counterpart of `extract`: where `extract` opens plain
|
|
144
|
+
* text to mask a span inside it, `decode` + `maskClaims` opens the
|
|
145
|
+
* encoding to mask a field inside the decoded payload.
|
|
146
|
+
*
|
|
147
|
+
* For each verified JWT candidate, every named claim present with a
|
|
148
|
+
* string value is replaced by its own sentinel and the token is rebuilt
|
|
149
|
+
* around the modified payload (original header, filler signature). All
|
|
150
|
+
* other claims are preserved verbatim, so a tool that decodes the token
|
|
151
|
+
* and reads a non-secret claim (issuer, audience, user id) keeps
|
|
152
|
+
* working while the secret claim is protected. A named claim that is
|
|
153
|
+
* absent or non-string in a given token is skipped. If no named claim
|
|
154
|
+
* matches in any verified token, behaviour is governed by
|
|
155
|
+
* `onExtractNoMatch` — same as no candidate verifying.
|
|
156
|
+
*
|
|
157
|
+
* Requires `decode` (there is no payload to look inside otherwise); an
|
|
158
|
+
* explicitly empty list is rejected — see the superRefine below.
|
|
159
|
+
*/
|
|
160
|
+
maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
161
|
+
maskDuplicates: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
mode: "deny" | "mask";
|
|
165
|
+
path: string;
|
|
166
|
+
extract?: string | undefined;
|
|
167
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
168
|
+
decode?: "jwt" | undefined;
|
|
169
|
+
maskClaims?: string[] | undefined;
|
|
170
|
+
maskDuplicates?: boolean | undefined;
|
|
171
|
+
injectHosts?: string[] | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
mode: "deny" | "mask";
|
|
174
|
+
path: string;
|
|
175
|
+
extract?: string | undefined;
|
|
176
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
177
|
+
decode?: "jwt" | undefined;
|
|
178
|
+
maskClaims?: string[] | undefined;
|
|
179
|
+
maskDuplicates?: boolean | undefined;
|
|
180
|
+
injectHosts?: string[] | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
/**
|
|
183
|
+
* Schema for a single credential environment variable entry.
|
|
184
|
+
*
|
|
185
|
+
* `mode: "mask"` replaces the variable's value inside the sandbox with a
|
|
186
|
+
* per-session sentinel; the proxy substitutes sentinel→real on egress to
|
|
187
|
+
* the credential's injectHosts. A masked var that is unset on the host is
|
|
188
|
+
* skipped — there is nothing to protect.
|
|
189
|
+
*
|
|
190
|
+
* `mode: "mask"` without `extract` is **whole-value** masking: the entire
|
|
191
|
+
* value is replaced inside the sandbox with one sentinel string, and the
|
|
192
|
+
* proxy substitutes that sentinel back to the real value on egress. This
|
|
193
|
+
* works for variables whose value *is* the credential (a bare token).
|
|
194
|
+
*
|
|
195
|
+
* `mode: "mask"` with `extract` is **structured** masking: the regex is
|
|
196
|
+
* applied globally to the real value, capture group 1 of each match is a
|
|
197
|
+
* credential value, and only those captured spans are replaced with
|
|
198
|
+
* sentinels — the rest of the value is preserved byte-for-byte. This lets
|
|
199
|
+
* a tool that parses the value (a `DATABASE_URL` connection string, a
|
|
200
|
+
* composite `KEY:SECRET` pair) still succeed inside the sandbox while the
|
|
201
|
+
* credential spans are protected. If the pattern matches nothing,
|
|
202
|
+
* behaviour is governed by `onExtractNoMatch` (default `"warn"` — the
|
|
203
|
+
* variable passes through unmasked and a stderr warning is emitted).
|
|
204
|
+
*
|
|
205
|
+
* `mode: "mask"` with `decode: "jwt"` handles a variable whose whole value
|
|
206
|
+
* is a JWT (CI OIDC tokens, Supabase keys, ...). `decode` opens the encoded
|
|
207
|
+
* value for masking: without claim-level configuration the entire token is
|
|
208
|
+
* replaced by a structurally valid fake JWT — parseable three-segment shape
|
|
209
|
+
* with JSON header/payload and far-future `exp`, so a tool that inspects
|
|
210
|
+
* the token before sending it (segment count, exp, claims) keeps working.
|
|
211
|
+
* The fake's header declares `alg: HS256` — never `alg: none`, which
|
|
212
|
+
* misconfigured validators accept — with a filler signature, so a verifier
|
|
213
|
+
* the unswapped fake ever reaches rejects it cryptographically. The proxy
|
|
214
|
+
* swaps the whole fake token for the real one on egress.
|
|
215
|
+
*
|
|
216
|
+
* `decode: "jwt"` with `maskClaims` masks at the claim level instead: each
|
|
217
|
+
* named top-level payload claim present with a string value is replaced by
|
|
218
|
+
* its own sentinel and the token is rebuilt around the modified payload
|
|
219
|
+
* (original header segment, filler signature). All other claims stay real,
|
|
220
|
+
* so a client that decodes the token and reads a non-secret claim keeps
|
|
221
|
+
* working. The proxy substitutes both the whole rebuilt token (sent as a
|
|
222
|
+
* bearer credential) and each claim sentinel (extracted and sent alone).
|
|
223
|
+
*
|
|
224
|
+
* If the variable is set but its value does not verify as a JWT — or, with
|
|
225
|
+
* `maskClaims`, no named claim is present as a string — nothing was masked:
|
|
226
|
+
* the entry currently fails open — the real value stays in the sandbox
|
|
227
|
+
* environment and a loud stderr warning names the variable.
|
|
228
|
+
*/
|
|
229
|
+
export declare const CredentialEnvVarConfigSchema: z.ZodObject<{
|
|
230
|
+
name: z.ZodString;
|
|
231
|
+
mode: z.ZodEnum<["deny", "mask"]>;
|
|
232
|
+
extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
233
|
+
/**
|
|
234
|
+
* What to do when `extract` matches nothing in the value at runtime.
|
|
235
|
+
*
|
|
236
|
+
* - `"warn"` (default): emit a stderr warning and let the variable pass
|
|
237
|
+
* through unmasked inside the sandbox (fail-open). A non-matching
|
|
238
|
+
* pattern is treated as a config error to surface and fix, not a
|
|
239
|
+
* reason to break a tool that needs the variable when the credential
|
|
240
|
+
* is legitimately absent from it.
|
|
241
|
+
* - `"deny"`: unset the variable inside the sandbox (fail-closed) — the
|
|
242
|
+
* env analog of degrading a file to `mode: "deny"`. The operator
|
|
243
|
+
* declared this variable as containing a credential; if the regex
|
|
244
|
+
* cannot find it, withhold the value rather than expose it.
|
|
245
|
+
* - `"error"`: throw at wrap time so nothing runs until the operator
|
|
246
|
+
* fixes the regex.
|
|
247
|
+
*
|
|
248
|
+
* Only meaningful when `mode` is `"mask"` and `extract` is set;
|
|
249
|
+
* accepted but ignored otherwise.
|
|
250
|
+
*/
|
|
251
|
+
onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
|
|
252
|
+
decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
|
|
253
|
+
/**
|
|
254
|
+
* Names of top-level payload claims to mask inside the decoded value —
|
|
255
|
+
* the env-var counterpart of the `maskClaims` on a file entry: `decode`
|
|
256
|
+
* opens the variable's encoded value so masking can target a field
|
|
257
|
+
* inside the decoded payload instead of replacing the whole token.
|
|
258
|
+
*
|
|
259
|
+
* Every named claim present with a string value is replaced by its own
|
|
260
|
+
* sentinel and the token is rebuilt around the modified payload
|
|
261
|
+
* (original header segment, filler signature). All other claims are
|
|
262
|
+
* preserved verbatim, so a tool that decodes the token and reads a
|
|
263
|
+
* non-secret claim (issuer, audience, user id) keeps working while the
|
|
264
|
+
* secret claim is protected. A named claim that is absent or non-string
|
|
265
|
+
* is skipped. If no named claim matches, nothing was masked and the
|
|
266
|
+
* entry fails open with a stderr warning — same path as a value that
|
|
267
|
+
* does not verify as a JWT.
|
|
268
|
+
*
|
|
269
|
+
* Requires `decode` (there is no payload to look inside otherwise); an
|
|
270
|
+
* explicitly empty list is rejected — see the superRefine below.
|
|
271
|
+
*/
|
|
272
|
+
maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
273
|
+
injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
mode: "deny" | "mask";
|
|
276
|
+
name: string;
|
|
277
|
+
extract?: string | undefined;
|
|
278
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
279
|
+
decode?: "jwt" | undefined;
|
|
280
|
+
maskClaims?: string[] | undefined;
|
|
281
|
+
injectHosts?: string[] | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
mode: "deny" | "mask";
|
|
284
|
+
name: string;
|
|
285
|
+
extract?: string | undefined;
|
|
286
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
287
|
+
decode?: "jwt" | undefined;
|
|
288
|
+
maskClaims?: string[] | undefined;
|
|
289
|
+
injectHosts?: string[] | undefined;
|
|
290
|
+
}>;
|
|
291
|
+
/**
|
|
292
|
+
* Explicit grouping of masked env vars into an AWS credential pair for
|
|
293
|
+
* SigV4 re-signing.
|
|
294
|
+
*
|
|
295
|
+
* A SigV4 signature is an HMAC derived from the secret access key, so a
|
|
296
|
+
* client signing with a masked (fake) secret produces a signature no
|
|
297
|
+
* substitution can repair — the proxy must re-sign with the real secret.
|
|
298
|
+
* Re-signing needs the access key id, secret, and optional session token
|
|
299
|
+
* *linked* as one credential: this entry names the `credentials.envVars`
|
|
300
|
+
* entries (all `mode: "mask"`, whole-value — no `extract`/`decode`) that
|
|
301
|
+
* hold each part.
|
|
302
|
+
*
|
|
303
|
+
* The conventional trio AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY /
|
|
304
|
+
* AWS_SESSION_TOKEN is paired automatically when those vars are masked
|
|
305
|
+
* whole-value and no explicit awsPairs entry references them — this
|
|
306
|
+
* config exists for non-standard variable names.
|
|
307
|
+
*
|
|
308
|
+
* Re-signing triggers only on requests whose signature scope references
|
|
309
|
+
* the pair's fake access key id (exact match); everything else — including
|
|
310
|
+
* requests signed with real, unmasked AWS credentials — is untouched. The
|
|
311
|
+
* substitution gate is the access-key-id entry's `injectHosts` (defaulting
|
|
312
|
+
* to network.allowedDomains); the secret/session-token entries' own
|
|
313
|
+
* injectHosts are not consulted for re-signing.
|
|
314
|
+
*/
|
|
315
|
+
export declare const AwsPairConfigSchema: z.ZodObject<{
|
|
316
|
+
accessKeyIdVar: z.ZodString;
|
|
317
|
+
secretAccessKeyVar: z.ZodString;
|
|
318
|
+
sessionTokenVar: z.ZodOptional<z.ZodString>;
|
|
319
|
+
}, "strict", z.ZodTypeAny, {
|
|
320
|
+
accessKeyIdVar: string;
|
|
321
|
+
secretAccessKeyVar: string;
|
|
322
|
+
sessionTokenVar?: string | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
accessKeyIdVar: string;
|
|
325
|
+
secretAccessKeyVar: string;
|
|
326
|
+
sessionTokenVar?: string | undefined;
|
|
327
|
+
}>;
|
|
328
|
+
/**
|
|
329
|
+
* Per-shape policy for AWS SigV4 request forms the proxy cannot re-sign.
|
|
330
|
+
* Applies only to requests whose signature references a masked pair's
|
|
331
|
+
* fake access key id; requests signed with unmasked credentials are never
|
|
332
|
+
* affected.
|
|
333
|
+
*
|
|
334
|
+
* - `"deny"` (default): fail closed with a 403 naming the case, so the
|
|
335
|
+
* sandboxed client sees a policy block instead of a confusing upstream
|
|
336
|
+
* signature error.
|
|
337
|
+
* - `"passthrough"`: forward the request without re-signing. Ordinary
|
|
338
|
+
* header substitution still applies, but the signature was computed
|
|
339
|
+
* from the masked placeholder secret, so the upstream will reject it —
|
|
340
|
+
* set this only when that failure mode is preferable to a proxy denial.
|
|
341
|
+
*
|
|
342
|
+
* Re-signable header-SigV4 requests that sign a literal body hash are
|
|
343
|
+
* buffered (up to 64 MiB — MAX_SIGV4_RESIGN_BODY_BYTES in
|
|
344
|
+
* tls-terminate-proxy.ts) so the hash can be recomputed over the bytes
|
|
345
|
+
* actually forwarded; larger bodies are denied with a 403. Payloads
|
|
346
|
+
* signed as UNSIGNED-PAYLOAD stream through without buffering.
|
|
347
|
+
*/
|
|
348
|
+
export declare const Sigv4ConfigSchema: z.ZodObject<{
|
|
349
|
+
streaming: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
350
|
+
presigned: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
351
|
+
sigv4a: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
352
|
+
}, "strict", z.ZodTypeAny, {
|
|
353
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
354
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
355
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
356
|
+
}, {
|
|
357
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
358
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
359
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
360
|
+
}>;
|
|
361
|
+
/**
|
|
362
|
+
* Credentials configuration schema for validation.
|
|
363
|
+
*
|
|
364
|
+
* Declares credential sources (files and environment variables) with a
|
|
365
|
+
* per-source mode; see {@link credentialModeSchema} for what each mode does.
|
|
366
|
+
*
|
|
367
|
+
* Only the sources declared here are affected; the section applies no
|
|
368
|
+
* implicit restrictions beyond them.
|
|
369
|
+
*/
|
|
370
|
+
export declare const CredentialsConfigSchema: z.ZodObject<{
|
|
371
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
372
|
+
path: z.ZodString;
|
|
373
|
+
mode: z.ZodEnum<["deny", "mask"]>;
|
|
374
|
+
extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
375
|
+
/**
|
|
376
|
+
* What to do when `extract` matches nothing in the file at runtime —
|
|
377
|
+
* or, with `decode`, when no candidate survives verification.
|
|
378
|
+
*
|
|
379
|
+
* - `"warn"` (default): emit a stderr warning and leave the file
|
|
380
|
+
* readable as-is inside the sandbox (fail-open). A non-matching
|
|
381
|
+
* pattern is treated as a config error to surface and fix, not a
|
|
382
|
+
* reason to break a tool that needs the file when the credential is
|
|
383
|
+
* legitimately absent.
|
|
384
|
+
* - `"deny"`: degrade the entry to `mode: "deny"` so the file is
|
|
385
|
+
* unreadable inside the sandbox (fail-closed). The operator declared
|
|
386
|
+
* this file as containing a credential; if the regex cannot find it,
|
|
387
|
+
* block access rather than expose it.
|
|
388
|
+
* - `"error"`: throw at wrap time so nothing runs until the operator
|
|
389
|
+
* fixes the config.
|
|
390
|
+
*
|
|
391
|
+
* Only meaningful when `mode` is `"mask"` and `extract` or `decode` is
|
|
392
|
+
* set; accepted but ignored otherwise.
|
|
393
|
+
*/
|
|
394
|
+
onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
|
|
395
|
+
decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
|
|
396
|
+
/**
|
|
397
|
+
* Names of top-level payload claims to mask inside each decoded value —
|
|
398
|
+
* the claim-level counterpart of `extract`: where `extract` opens plain
|
|
399
|
+
* text to mask a span inside it, `decode` + `maskClaims` opens the
|
|
400
|
+
* encoding to mask a field inside the decoded payload.
|
|
401
|
+
*
|
|
402
|
+
* For each verified JWT candidate, every named claim present with a
|
|
403
|
+
* string value is replaced by its own sentinel and the token is rebuilt
|
|
404
|
+
* around the modified payload (original header, filler signature). All
|
|
405
|
+
* other claims are preserved verbatim, so a tool that decodes the token
|
|
406
|
+
* and reads a non-secret claim (issuer, audience, user id) keeps
|
|
407
|
+
* working while the secret claim is protected. A named claim that is
|
|
408
|
+
* absent or non-string in a given token is skipped. If no named claim
|
|
409
|
+
* matches in any verified token, behaviour is governed by
|
|
410
|
+
* `onExtractNoMatch` — same as no candidate verifying.
|
|
411
|
+
*
|
|
412
|
+
* Requires `decode` (there is no payload to look inside otherwise); an
|
|
413
|
+
* explicitly empty list is rejected — see the superRefine below.
|
|
414
|
+
*/
|
|
415
|
+
maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
416
|
+
maskDuplicates: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
418
|
+
}, "strip", z.ZodTypeAny, {
|
|
419
|
+
mode: "deny" | "mask";
|
|
420
|
+
path: string;
|
|
421
|
+
extract?: string | undefined;
|
|
422
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
423
|
+
decode?: "jwt" | undefined;
|
|
424
|
+
maskClaims?: string[] | undefined;
|
|
425
|
+
maskDuplicates?: boolean | undefined;
|
|
426
|
+
injectHosts?: string[] | undefined;
|
|
427
|
+
}, {
|
|
428
|
+
mode: "deny" | "mask";
|
|
429
|
+
path: string;
|
|
430
|
+
extract?: string | undefined;
|
|
431
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
432
|
+
decode?: "jwt" | undefined;
|
|
433
|
+
maskClaims?: string[] | undefined;
|
|
434
|
+
maskDuplicates?: boolean | undefined;
|
|
435
|
+
injectHosts?: string[] | undefined;
|
|
436
|
+
}>, "many">>;
|
|
437
|
+
envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
438
|
+
name: z.ZodString;
|
|
439
|
+
mode: z.ZodEnum<["deny", "mask"]>;
|
|
440
|
+
extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
441
|
+
/**
|
|
442
|
+
* What to do when `extract` matches nothing in the value at runtime.
|
|
443
|
+
*
|
|
444
|
+
* - `"warn"` (default): emit a stderr warning and let the variable pass
|
|
445
|
+
* through unmasked inside the sandbox (fail-open). A non-matching
|
|
446
|
+
* pattern is treated as a config error to surface and fix, not a
|
|
447
|
+
* reason to break a tool that needs the variable when the credential
|
|
448
|
+
* is legitimately absent from it.
|
|
449
|
+
* - `"deny"`: unset the variable inside the sandbox (fail-closed) — the
|
|
450
|
+
* env analog of degrading a file to `mode: "deny"`. The operator
|
|
451
|
+
* declared this variable as containing a credential; if the regex
|
|
452
|
+
* cannot find it, withhold the value rather than expose it.
|
|
453
|
+
* - `"error"`: throw at wrap time so nothing runs until the operator
|
|
454
|
+
* fixes the regex.
|
|
455
|
+
*
|
|
456
|
+
* Only meaningful when `mode` is `"mask"` and `extract` is set;
|
|
457
|
+
* accepted but ignored otherwise.
|
|
458
|
+
*/
|
|
459
|
+
onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
|
|
460
|
+
decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
|
|
461
|
+
/**
|
|
462
|
+
* Names of top-level payload claims to mask inside the decoded value —
|
|
463
|
+
* the env-var counterpart of the `maskClaims` on a file entry: `decode`
|
|
464
|
+
* opens the variable's encoded value so masking can target a field
|
|
465
|
+
* inside the decoded payload instead of replacing the whole token.
|
|
466
|
+
*
|
|
467
|
+
* Every named claim present with a string value is replaced by its own
|
|
468
|
+
* sentinel and the token is rebuilt around the modified payload
|
|
469
|
+
* (original header segment, filler signature). All other claims are
|
|
470
|
+
* preserved verbatim, so a tool that decodes the token and reads a
|
|
471
|
+
* non-secret claim (issuer, audience, user id) keeps working while the
|
|
472
|
+
* secret claim is protected. A named claim that is absent or non-string
|
|
473
|
+
* is skipped. If no named claim matches, nothing was masked and the
|
|
474
|
+
* entry fails open with a stderr warning — same path as a value that
|
|
475
|
+
* does not verify as a JWT.
|
|
476
|
+
*
|
|
477
|
+
* Requires `decode` (there is no payload to look inside otherwise); an
|
|
478
|
+
* explicitly empty list is rejected — see the superRefine below.
|
|
479
|
+
*/
|
|
480
|
+
maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
481
|
+
injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
482
|
+
}, "strip", z.ZodTypeAny, {
|
|
483
|
+
mode: "deny" | "mask";
|
|
484
|
+
name: string;
|
|
485
|
+
extract?: string | undefined;
|
|
486
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
487
|
+
decode?: "jwt" | undefined;
|
|
488
|
+
maskClaims?: string[] | undefined;
|
|
489
|
+
injectHosts?: string[] | undefined;
|
|
490
|
+
}, {
|
|
491
|
+
mode: "deny" | "mask";
|
|
492
|
+
name: string;
|
|
493
|
+
extract?: string | undefined;
|
|
494
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
495
|
+
decode?: "jwt" | undefined;
|
|
496
|
+
maskClaims?: string[] | undefined;
|
|
497
|
+
injectHosts?: string[] | undefined;
|
|
498
|
+
}>, "many">>;
|
|
499
|
+
allowPlaintextInject: z.ZodOptional<z.ZodBoolean>;
|
|
500
|
+
awsPairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
501
|
+
accessKeyIdVar: z.ZodString;
|
|
502
|
+
secretAccessKeyVar: z.ZodString;
|
|
503
|
+
sessionTokenVar: z.ZodOptional<z.ZodString>;
|
|
504
|
+
}, "strict", z.ZodTypeAny, {
|
|
505
|
+
accessKeyIdVar: string;
|
|
506
|
+
secretAccessKeyVar: string;
|
|
507
|
+
sessionTokenVar?: string | undefined;
|
|
508
|
+
}, {
|
|
509
|
+
accessKeyIdVar: string;
|
|
510
|
+
secretAccessKeyVar: string;
|
|
511
|
+
sessionTokenVar?: string | undefined;
|
|
512
|
+
}>, "many">>;
|
|
513
|
+
sigv4: z.ZodOptional<z.ZodObject<{
|
|
514
|
+
streaming: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
515
|
+
presigned: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
516
|
+
sigv4a: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
517
|
+
}, "strict", z.ZodTypeAny, {
|
|
518
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
519
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
520
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
523
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
524
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
525
|
+
}>>;
|
|
526
|
+
}, "strict", z.ZodTypeAny, {
|
|
527
|
+
files?: {
|
|
528
|
+
mode: "deny" | "mask";
|
|
529
|
+
path: string;
|
|
530
|
+
extract?: string | undefined;
|
|
531
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
532
|
+
decode?: "jwt" | undefined;
|
|
533
|
+
maskClaims?: string[] | undefined;
|
|
534
|
+
maskDuplicates?: boolean | undefined;
|
|
535
|
+
injectHosts?: string[] | undefined;
|
|
536
|
+
}[] | undefined;
|
|
537
|
+
envVars?: {
|
|
538
|
+
mode: "deny" | "mask";
|
|
539
|
+
name: string;
|
|
540
|
+
extract?: string | undefined;
|
|
541
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
542
|
+
decode?: "jwt" | undefined;
|
|
543
|
+
maskClaims?: string[] | undefined;
|
|
544
|
+
injectHosts?: string[] | undefined;
|
|
545
|
+
}[] | undefined;
|
|
546
|
+
allowPlaintextInject?: boolean | undefined;
|
|
547
|
+
awsPairs?: {
|
|
548
|
+
accessKeyIdVar: string;
|
|
549
|
+
secretAccessKeyVar: string;
|
|
550
|
+
sessionTokenVar?: string | undefined;
|
|
551
|
+
}[] | undefined;
|
|
552
|
+
sigv4?: {
|
|
553
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
554
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
555
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
556
|
+
} | undefined;
|
|
557
|
+
}, {
|
|
558
|
+
files?: {
|
|
559
|
+
mode: "deny" | "mask";
|
|
560
|
+
path: string;
|
|
561
|
+
extract?: string | undefined;
|
|
562
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
563
|
+
decode?: "jwt" | undefined;
|
|
564
|
+
maskClaims?: string[] | undefined;
|
|
565
|
+
maskDuplicates?: boolean | undefined;
|
|
566
|
+
injectHosts?: string[] | undefined;
|
|
567
|
+
}[] | undefined;
|
|
568
|
+
envVars?: {
|
|
569
|
+
mode: "deny" | "mask";
|
|
570
|
+
name: string;
|
|
571
|
+
extract?: string | undefined;
|
|
572
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
573
|
+
decode?: "jwt" | undefined;
|
|
574
|
+
maskClaims?: string[] | undefined;
|
|
575
|
+
injectHosts?: string[] | undefined;
|
|
576
|
+
}[] | undefined;
|
|
577
|
+
allowPlaintextInject?: boolean | undefined;
|
|
578
|
+
awsPairs?: {
|
|
579
|
+
accessKeyIdVar: string;
|
|
580
|
+
secretAccessKeyVar: string;
|
|
581
|
+
sessionTokenVar?: string | undefined;
|
|
582
|
+
}[] | undefined;
|
|
583
|
+
sigv4?: {
|
|
584
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
585
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
586
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
587
|
+
} | undefined;
|
|
588
|
+
}>;
|
|
589
|
+
/**
|
|
590
|
+
* Network configuration schema for validation
|
|
591
|
+
*/
|
|
592
|
+
export declare const NetworkConfigSchema: z.ZodObject<{
|
|
593
|
+
allowedDomains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
594
|
+
deniedDomains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
595
|
+
deniedDomainReasons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
596
|
+
strictAllowlist: z.ZodOptional<z.ZodBoolean>;
|
|
597
|
+
deniedResolvedAddresses: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
598
|
+
allowUnixSockets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
599
|
+
allowAllUnixSockets: z.ZodOptional<z.ZodBoolean>;
|
|
600
|
+
allowLocalBinding: z.ZodOptional<z.ZodBoolean>;
|
|
601
|
+
allowMachLookup: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
602
|
+
httpProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
603
|
+
socksProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
mitmProxy: z.ZodOptional<z.ZodObject<{
|
|
605
|
+
socketPath: z.ZodString;
|
|
606
|
+
domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
607
|
+
}, "strip", z.ZodTypeAny, {
|
|
608
|
+
socketPath: string;
|
|
609
|
+
domains: string[];
|
|
610
|
+
}, {
|
|
611
|
+
socketPath: string;
|
|
612
|
+
domains: string[];
|
|
613
|
+
}>>;
|
|
614
|
+
filterRequest: z.ZodOptional<z.ZodType<FilterRequestCallback, z.ZodTypeDef, FilterRequestCallback>>;
|
|
615
|
+
tlsTerminate: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
616
|
+
caCertPath: z.ZodOptional<z.ZodString>;
|
|
617
|
+
caKeyPath: z.ZodOptional<z.ZodString>;
|
|
618
|
+
excludeDomains: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
619
|
+
extraCaCertPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
620
|
+
}, "strip", z.ZodTypeAny, {
|
|
621
|
+
caCertPath?: string | undefined;
|
|
622
|
+
caKeyPath?: string | undefined;
|
|
623
|
+
excludeDomains?: string[] | undefined;
|
|
624
|
+
extraCaCertPaths?: string[] | undefined;
|
|
625
|
+
}, {
|
|
626
|
+
caCertPath?: string | undefined;
|
|
627
|
+
caKeyPath?: string | undefined;
|
|
628
|
+
excludeDomains?: string[] | undefined;
|
|
629
|
+
extraCaCertPaths?: string[] | undefined;
|
|
630
|
+
}>, {
|
|
631
|
+
caCertPath?: string | undefined;
|
|
632
|
+
caKeyPath?: string | undefined;
|
|
633
|
+
excludeDomains?: string[] | undefined;
|
|
634
|
+
extraCaCertPaths?: string[] | undefined;
|
|
635
|
+
}, {
|
|
636
|
+
caCertPath?: string | undefined;
|
|
637
|
+
caKeyPath?: string | undefined;
|
|
638
|
+
excludeDomains?: string[] | undefined;
|
|
639
|
+
extraCaCertPaths?: string[] | undefined;
|
|
640
|
+
}>>;
|
|
641
|
+
parentProxy: z.ZodOptional<z.ZodObject<{
|
|
642
|
+
http: z.ZodOptional<z.ZodString>;
|
|
643
|
+
https: z.ZodOptional<z.ZodString>;
|
|
644
|
+
noProxy: z.ZodOptional<z.ZodString>;
|
|
645
|
+
}, "strip", z.ZodTypeAny, {
|
|
646
|
+
http?: string | undefined;
|
|
647
|
+
https?: string | undefined;
|
|
648
|
+
noProxy?: string | undefined;
|
|
649
|
+
}, {
|
|
650
|
+
http?: string | undefined;
|
|
651
|
+
https?: string | undefined;
|
|
652
|
+
noProxy?: string | undefined;
|
|
653
|
+
}>>;
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
|
+
allowedDomains: string[];
|
|
656
|
+
deniedDomains: string[];
|
|
657
|
+
deniedDomainReasons?: Record<string, string> | undefined;
|
|
658
|
+
strictAllowlist?: boolean | undefined;
|
|
659
|
+
deniedResolvedAddresses?: string[] | undefined;
|
|
660
|
+
allowUnixSockets?: string[] | undefined;
|
|
661
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
662
|
+
allowLocalBinding?: boolean | undefined;
|
|
663
|
+
allowMachLookup?: string[] | undefined;
|
|
664
|
+
httpProxyPort?: number | undefined;
|
|
665
|
+
socksProxyPort?: number | undefined;
|
|
666
|
+
mitmProxy?: {
|
|
667
|
+
socketPath: string;
|
|
668
|
+
domains: string[];
|
|
669
|
+
} | undefined;
|
|
670
|
+
filterRequest?: FilterRequestCallback | undefined;
|
|
671
|
+
tlsTerminate?: {
|
|
672
|
+
caCertPath?: string | undefined;
|
|
673
|
+
caKeyPath?: string | undefined;
|
|
674
|
+
excludeDomains?: string[] | undefined;
|
|
675
|
+
extraCaCertPaths?: string[] | undefined;
|
|
676
|
+
} | undefined;
|
|
677
|
+
parentProxy?: {
|
|
678
|
+
http?: string | undefined;
|
|
679
|
+
https?: string | undefined;
|
|
680
|
+
noProxy?: string | undefined;
|
|
681
|
+
} | undefined;
|
|
682
|
+
}, {
|
|
683
|
+
allowedDomains: string[];
|
|
684
|
+
deniedDomains: string[];
|
|
685
|
+
deniedDomainReasons?: Record<string, string> | undefined;
|
|
686
|
+
strictAllowlist?: boolean | undefined;
|
|
687
|
+
deniedResolvedAddresses?: string[] | undefined;
|
|
688
|
+
allowUnixSockets?: string[] | undefined;
|
|
689
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
690
|
+
allowLocalBinding?: boolean | undefined;
|
|
691
|
+
allowMachLookup?: string[] | undefined;
|
|
692
|
+
httpProxyPort?: number | undefined;
|
|
693
|
+
socksProxyPort?: number | undefined;
|
|
694
|
+
mitmProxy?: {
|
|
695
|
+
socketPath: string;
|
|
696
|
+
domains: string[];
|
|
697
|
+
} | undefined;
|
|
698
|
+
filterRequest?: FilterRequestCallback | undefined;
|
|
699
|
+
tlsTerminate?: {
|
|
700
|
+
caCertPath?: string | undefined;
|
|
701
|
+
caKeyPath?: string | undefined;
|
|
702
|
+
excludeDomains?: string[] | undefined;
|
|
703
|
+
extraCaCertPaths?: string[] | undefined;
|
|
704
|
+
} | undefined;
|
|
705
|
+
parentProxy?: {
|
|
706
|
+
http?: string | undefined;
|
|
707
|
+
https?: string | undefined;
|
|
708
|
+
noProxy?: string | undefined;
|
|
709
|
+
} | undefined;
|
|
710
|
+
}>;
|
|
711
|
+
/**
|
|
712
|
+
* Filesystem configuration schema for validation
|
|
713
|
+
*/
|
|
714
|
+
export declare const FilesystemConfigSchema: z.ZodObject<{
|
|
715
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
716
|
+
denyRead: z.ZodArray<z.ZodString, "many">;
|
|
717
|
+
allowRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
718
|
+
allowWrite: z.ZodArray<z.ZodString, "many">;
|
|
719
|
+
denyWrite: z.ZodArray<z.ZodString, "many">;
|
|
720
|
+
allowGitConfig: z.ZodOptional<z.ZodBoolean>;
|
|
721
|
+
}, "strip", z.ZodTypeAny, {
|
|
722
|
+
denyRead: string[];
|
|
723
|
+
allowWrite: string[];
|
|
724
|
+
denyWrite: string[];
|
|
725
|
+
disabled?: boolean | undefined;
|
|
726
|
+
allowRead?: string[] | undefined;
|
|
727
|
+
allowGitConfig?: boolean | undefined;
|
|
728
|
+
}, {
|
|
729
|
+
denyRead: string[];
|
|
730
|
+
allowWrite: string[];
|
|
731
|
+
denyWrite: string[];
|
|
732
|
+
disabled?: boolean | undefined;
|
|
733
|
+
allowRead?: string[] | undefined;
|
|
734
|
+
allowGitConfig?: boolean | undefined;
|
|
735
|
+
}>;
|
|
736
|
+
/**
|
|
737
|
+
* Configuration schema for ignoring specific sandbox violations
|
|
738
|
+
* Maps command patterns to filesystem paths to ignore violations for.
|
|
739
|
+
*/
|
|
740
|
+
export declare const IgnoreViolationsConfigSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
741
|
+
/**
|
|
742
|
+
* Ripgrep configuration schema
|
|
743
|
+
*/
|
|
744
|
+
export declare const RipgrepConfigSchema: z.ZodObject<{
|
|
745
|
+
command: z.ZodString;
|
|
746
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
747
|
+
argv0: z.ZodOptional<z.ZodString>;
|
|
748
|
+
}, "strip", z.ZodTypeAny, {
|
|
749
|
+
command: string;
|
|
750
|
+
args?: string[] | undefined;
|
|
751
|
+
argv0?: string | undefined;
|
|
752
|
+
}, {
|
|
753
|
+
command: string;
|
|
754
|
+
args?: string[] | undefined;
|
|
755
|
+
argv0?: string | undefined;
|
|
756
|
+
}>;
|
|
757
|
+
/**
|
|
758
|
+
* Git configuration schema (cross-platform). Injected via
|
|
759
|
+
* `GIT_CONFIG_COUNT` / `GIT_CONFIG_KEY_<n>` / `GIT_CONFIG_VALUE_<n>`
|
|
760
|
+
* env vars — see `buildGitConfigEnv` in `sandbox-utils.ts`.
|
|
761
|
+
*/
|
|
762
|
+
export declare const GitConfigSchema: z.ZodObject<{
|
|
763
|
+
safeDirectories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
764
|
+
}, "strip", z.ZodTypeAny, {
|
|
765
|
+
safeDirectories: string[];
|
|
766
|
+
}, {
|
|
767
|
+
safeDirectories?: string[] | undefined;
|
|
768
|
+
}>;
|
|
769
|
+
/**
|
|
770
|
+
* Configuration for locating/invoking the `srt-win` helper (Windows
|
|
771
|
+
* only). An embedder that links `srt-win`'s CLI into its own
|
|
772
|
+
* multicall binary points `path` at that binary; spawns then pass
|
|
773
|
+
* `--srt-win` as `argv[1]` (see `SRT_WIN_DISPATCH_ARG1` in
|
|
774
|
+
* `windows-sandbox-utils.ts` / `srt_win::SRT_WIN_DISPATCH_ARG1`) so
|
|
775
|
+
* the embedder's dispatcher can route to `srt_win::run_from_args`.
|
|
776
|
+
* Windows cannot reliably preserve a spoofed `argv[0]` across
|
|
777
|
+
* `CreateProcessWithLogonW` / `ShellExecuteExW(runas)`, so dispatch
|
|
778
|
+
* keys on `argv[1]`, not on `argv[0]` like
|
|
779
|
+
* {@link SeccompConfigSchema} does on Linux.
|
|
780
|
+
*/
|
|
781
|
+
export declare const SrtWinConfigSchema: z.ZodObject<{
|
|
782
|
+
path: z.ZodString;
|
|
783
|
+
}, "strip", z.ZodTypeAny, {
|
|
784
|
+
path: string;
|
|
785
|
+
}, {
|
|
786
|
+
path: string;
|
|
787
|
+
}>;
|
|
788
|
+
/**
|
|
789
|
+
* Windows-specific configuration schema. See
|
|
790
|
+
* `windows-sandbox-utils.ts` for the install flow these settings
|
|
791
|
+
* must agree with.
|
|
792
|
+
*
|
|
793
|
+
* Canonical: `sublayerGuid`; the `wfpSublayerGuid` alias is resolved
|
|
794
|
+
* at read sites (`sublayerGuid ?? wfpSublayerGuid`) rather than via
|
|
795
|
+
* `.transform()` so this stays a plain `ZodObject` for consumers that
|
|
796
|
+
* `.extend()`/`.shape` it.
|
|
797
|
+
*/
|
|
798
|
+
export declare const WindowsConfigSchema: z.ZodObject<{
|
|
799
|
+
sandboxUser: z.ZodOptional<z.ZodString>;
|
|
800
|
+
sublayerGuid: z.ZodOptional<z.ZodString>;
|
|
801
|
+
wfpSublayerGuid: z.ZodOptional<z.ZodString>;
|
|
802
|
+
proxyPortRange: z.ZodOptional<z.ZodEffects<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, [number, number], [number, number]>>;
|
|
803
|
+
srtWin: z.ZodOptional<z.ZodObject<{
|
|
804
|
+
path: z.ZodString;
|
|
805
|
+
}, "strip", z.ZodTypeAny, {
|
|
806
|
+
path: string;
|
|
807
|
+
}, {
|
|
808
|
+
path: string;
|
|
809
|
+
}>>;
|
|
810
|
+
}, "strip", z.ZodTypeAny, {
|
|
811
|
+
sandboxUser?: string | undefined;
|
|
812
|
+
sublayerGuid?: string | undefined;
|
|
813
|
+
wfpSublayerGuid?: string | undefined;
|
|
814
|
+
proxyPortRange?: [number, number] | undefined;
|
|
815
|
+
srtWin?: {
|
|
816
|
+
path: string;
|
|
817
|
+
} | undefined;
|
|
818
|
+
}, {
|
|
819
|
+
sandboxUser?: string | undefined;
|
|
820
|
+
sublayerGuid?: string | undefined;
|
|
821
|
+
wfpSublayerGuid?: string | undefined;
|
|
822
|
+
proxyPortRange?: [number, number] | undefined;
|
|
823
|
+
srtWin?: {
|
|
824
|
+
path: string;
|
|
825
|
+
} | undefined;
|
|
826
|
+
}>;
|
|
827
|
+
/**
|
|
828
|
+
* Seccomp configuration schema (Linux only)
|
|
829
|
+
*/
|
|
830
|
+
export declare const SeccompConfigSchema: z.ZodObject<{
|
|
831
|
+
applyPath: z.ZodOptional<z.ZodString>;
|
|
832
|
+
argv0: z.ZodOptional<z.ZodString>;
|
|
833
|
+
}, "strip", z.ZodTypeAny, {
|
|
834
|
+
argv0?: string | undefined;
|
|
835
|
+
applyPath?: string | undefined;
|
|
836
|
+
}, {
|
|
837
|
+
argv0?: string | undefined;
|
|
838
|
+
applyPath?: string | undefined;
|
|
839
|
+
}>;
|
|
840
|
+
/**
|
|
841
|
+
* Main configuration schema for Sandbox Runtime validation
|
|
842
|
+
*/
|
|
843
|
+
export declare const SandboxRuntimeConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
844
|
+
network: z.ZodObject<{
|
|
845
|
+
allowedDomains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
846
|
+
deniedDomains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
847
|
+
deniedDomainReasons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
848
|
+
strictAllowlist: z.ZodOptional<z.ZodBoolean>;
|
|
849
|
+
deniedResolvedAddresses: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
850
|
+
allowUnixSockets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
851
|
+
allowAllUnixSockets: z.ZodOptional<z.ZodBoolean>;
|
|
852
|
+
allowLocalBinding: z.ZodOptional<z.ZodBoolean>;
|
|
853
|
+
allowMachLookup: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
854
|
+
httpProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
855
|
+
socksProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
856
|
+
mitmProxy: z.ZodOptional<z.ZodObject<{
|
|
857
|
+
socketPath: z.ZodString;
|
|
858
|
+
domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
859
|
+
}, "strip", z.ZodTypeAny, {
|
|
860
|
+
socketPath: string;
|
|
861
|
+
domains: string[];
|
|
862
|
+
}, {
|
|
863
|
+
socketPath: string;
|
|
864
|
+
domains: string[];
|
|
865
|
+
}>>;
|
|
866
|
+
filterRequest: z.ZodOptional<z.ZodType<FilterRequestCallback, z.ZodTypeDef, FilterRequestCallback>>;
|
|
867
|
+
tlsTerminate: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
868
|
+
caCertPath: z.ZodOptional<z.ZodString>;
|
|
869
|
+
caKeyPath: z.ZodOptional<z.ZodString>;
|
|
870
|
+
excludeDomains: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
871
|
+
extraCaCertPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
872
|
+
}, "strip", z.ZodTypeAny, {
|
|
873
|
+
caCertPath?: string | undefined;
|
|
874
|
+
caKeyPath?: string | undefined;
|
|
875
|
+
excludeDomains?: string[] | undefined;
|
|
876
|
+
extraCaCertPaths?: string[] | undefined;
|
|
877
|
+
}, {
|
|
878
|
+
caCertPath?: string | undefined;
|
|
879
|
+
caKeyPath?: string | undefined;
|
|
880
|
+
excludeDomains?: string[] | undefined;
|
|
881
|
+
extraCaCertPaths?: string[] | undefined;
|
|
882
|
+
}>, {
|
|
883
|
+
caCertPath?: string | undefined;
|
|
884
|
+
caKeyPath?: string | undefined;
|
|
885
|
+
excludeDomains?: string[] | undefined;
|
|
886
|
+
extraCaCertPaths?: string[] | undefined;
|
|
887
|
+
}, {
|
|
888
|
+
caCertPath?: string | undefined;
|
|
889
|
+
caKeyPath?: string | undefined;
|
|
890
|
+
excludeDomains?: string[] | undefined;
|
|
891
|
+
extraCaCertPaths?: string[] | undefined;
|
|
892
|
+
}>>;
|
|
893
|
+
parentProxy: z.ZodOptional<z.ZodObject<{
|
|
894
|
+
http: z.ZodOptional<z.ZodString>;
|
|
895
|
+
https: z.ZodOptional<z.ZodString>;
|
|
896
|
+
noProxy: z.ZodOptional<z.ZodString>;
|
|
897
|
+
}, "strip", z.ZodTypeAny, {
|
|
898
|
+
http?: string | undefined;
|
|
899
|
+
https?: string | undefined;
|
|
900
|
+
noProxy?: string | undefined;
|
|
901
|
+
}, {
|
|
902
|
+
http?: string | undefined;
|
|
903
|
+
https?: string | undefined;
|
|
904
|
+
noProxy?: string | undefined;
|
|
905
|
+
}>>;
|
|
906
|
+
}, "strip", z.ZodTypeAny, {
|
|
907
|
+
allowedDomains: string[];
|
|
908
|
+
deniedDomains: string[];
|
|
909
|
+
deniedDomainReasons?: Record<string, string> | undefined;
|
|
910
|
+
strictAllowlist?: boolean | undefined;
|
|
911
|
+
deniedResolvedAddresses?: string[] | undefined;
|
|
912
|
+
allowUnixSockets?: string[] | undefined;
|
|
913
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
914
|
+
allowLocalBinding?: boolean | undefined;
|
|
915
|
+
allowMachLookup?: string[] | undefined;
|
|
916
|
+
httpProxyPort?: number | undefined;
|
|
917
|
+
socksProxyPort?: number | undefined;
|
|
918
|
+
mitmProxy?: {
|
|
919
|
+
socketPath: string;
|
|
920
|
+
domains: string[];
|
|
921
|
+
} | undefined;
|
|
922
|
+
filterRequest?: FilterRequestCallback | undefined;
|
|
923
|
+
tlsTerminate?: {
|
|
924
|
+
caCertPath?: string | undefined;
|
|
925
|
+
caKeyPath?: string | undefined;
|
|
926
|
+
excludeDomains?: string[] | undefined;
|
|
927
|
+
extraCaCertPaths?: string[] | undefined;
|
|
928
|
+
} | undefined;
|
|
929
|
+
parentProxy?: {
|
|
930
|
+
http?: string | undefined;
|
|
931
|
+
https?: string | undefined;
|
|
932
|
+
noProxy?: string | undefined;
|
|
933
|
+
} | undefined;
|
|
934
|
+
}, {
|
|
935
|
+
allowedDomains: string[];
|
|
936
|
+
deniedDomains: string[];
|
|
937
|
+
deniedDomainReasons?: Record<string, string> | undefined;
|
|
938
|
+
strictAllowlist?: boolean | undefined;
|
|
939
|
+
deniedResolvedAddresses?: string[] | undefined;
|
|
940
|
+
allowUnixSockets?: string[] | undefined;
|
|
941
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
942
|
+
allowLocalBinding?: boolean | undefined;
|
|
943
|
+
allowMachLookup?: string[] | undefined;
|
|
944
|
+
httpProxyPort?: number | undefined;
|
|
945
|
+
socksProxyPort?: number | undefined;
|
|
946
|
+
mitmProxy?: {
|
|
947
|
+
socketPath: string;
|
|
948
|
+
domains: string[];
|
|
949
|
+
} | undefined;
|
|
950
|
+
filterRequest?: FilterRequestCallback | undefined;
|
|
951
|
+
tlsTerminate?: {
|
|
952
|
+
caCertPath?: string | undefined;
|
|
953
|
+
caKeyPath?: string | undefined;
|
|
954
|
+
excludeDomains?: string[] | undefined;
|
|
955
|
+
extraCaCertPaths?: string[] | undefined;
|
|
956
|
+
} | undefined;
|
|
957
|
+
parentProxy?: {
|
|
958
|
+
http?: string | undefined;
|
|
959
|
+
https?: string | undefined;
|
|
960
|
+
noProxy?: string | undefined;
|
|
961
|
+
} | undefined;
|
|
962
|
+
}>;
|
|
963
|
+
filesystem: z.ZodObject<{
|
|
964
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
965
|
+
denyRead: z.ZodArray<z.ZodString, "many">;
|
|
966
|
+
allowRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
967
|
+
allowWrite: z.ZodArray<z.ZodString, "many">;
|
|
968
|
+
denyWrite: z.ZodArray<z.ZodString, "many">;
|
|
969
|
+
allowGitConfig: z.ZodOptional<z.ZodBoolean>;
|
|
970
|
+
}, "strip", z.ZodTypeAny, {
|
|
971
|
+
denyRead: string[];
|
|
972
|
+
allowWrite: string[];
|
|
973
|
+
denyWrite: string[];
|
|
974
|
+
disabled?: boolean | undefined;
|
|
975
|
+
allowRead?: string[] | undefined;
|
|
976
|
+
allowGitConfig?: boolean | undefined;
|
|
977
|
+
}, {
|
|
978
|
+
denyRead: string[];
|
|
979
|
+
allowWrite: string[];
|
|
980
|
+
denyWrite: string[];
|
|
981
|
+
disabled?: boolean | undefined;
|
|
982
|
+
allowRead?: string[] | undefined;
|
|
983
|
+
allowGitConfig?: boolean | undefined;
|
|
984
|
+
}>;
|
|
985
|
+
credentials: z.ZodOptional<z.ZodObject<{
|
|
986
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
987
|
+
path: z.ZodString;
|
|
988
|
+
mode: z.ZodEnum<["deny", "mask"]>;
|
|
989
|
+
extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
990
|
+
/**
|
|
991
|
+
* What to do when `extract` matches nothing in the file at runtime —
|
|
992
|
+
* or, with `decode`, when no candidate survives verification.
|
|
993
|
+
*
|
|
994
|
+
* - `"warn"` (default): emit a stderr warning and leave the file
|
|
995
|
+
* readable as-is inside the sandbox (fail-open). A non-matching
|
|
996
|
+
* pattern is treated as a config error to surface and fix, not a
|
|
997
|
+
* reason to break a tool that needs the file when the credential is
|
|
998
|
+
* legitimately absent.
|
|
999
|
+
* - `"deny"`: degrade the entry to `mode: "deny"` so the file is
|
|
1000
|
+
* unreadable inside the sandbox (fail-closed). The operator declared
|
|
1001
|
+
* this file as containing a credential; if the regex cannot find it,
|
|
1002
|
+
* block access rather than expose it.
|
|
1003
|
+
* - `"error"`: throw at wrap time so nothing runs until the operator
|
|
1004
|
+
* fixes the config.
|
|
1005
|
+
*
|
|
1006
|
+
* Only meaningful when `mode` is `"mask"` and `extract` or `decode` is
|
|
1007
|
+
* set; accepted but ignored otherwise.
|
|
1008
|
+
*/
|
|
1009
|
+
onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
|
|
1010
|
+
decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
|
|
1011
|
+
/**
|
|
1012
|
+
* Names of top-level payload claims to mask inside each decoded value —
|
|
1013
|
+
* the claim-level counterpart of `extract`: where `extract` opens plain
|
|
1014
|
+
* text to mask a span inside it, `decode` + `maskClaims` opens the
|
|
1015
|
+
* encoding to mask a field inside the decoded payload.
|
|
1016
|
+
*
|
|
1017
|
+
* For each verified JWT candidate, every named claim present with a
|
|
1018
|
+
* string value is replaced by its own sentinel and the token is rebuilt
|
|
1019
|
+
* around the modified payload (original header, filler signature). All
|
|
1020
|
+
* other claims are preserved verbatim, so a tool that decodes the token
|
|
1021
|
+
* and reads a non-secret claim (issuer, audience, user id) keeps
|
|
1022
|
+
* working while the secret claim is protected. A named claim that is
|
|
1023
|
+
* absent or non-string in a given token is skipped. If no named claim
|
|
1024
|
+
* matches in any verified token, behaviour is governed by
|
|
1025
|
+
* `onExtractNoMatch` — same as no candidate verifying.
|
|
1026
|
+
*
|
|
1027
|
+
* Requires `decode` (there is no payload to look inside otherwise); an
|
|
1028
|
+
* explicitly empty list is rejected — see the superRefine below.
|
|
1029
|
+
*/
|
|
1030
|
+
maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1031
|
+
maskDuplicates: z.ZodOptional<z.ZodBoolean>;
|
|
1032
|
+
injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1033
|
+
}, "strip", z.ZodTypeAny, {
|
|
1034
|
+
mode: "deny" | "mask";
|
|
1035
|
+
path: string;
|
|
1036
|
+
extract?: string | undefined;
|
|
1037
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1038
|
+
decode?: "jwt" | undefined;
|
|
1039
|
+
maskClaims?: string[] | undefined;
|
|
1040
|
+
maskDuplicates?: boolean | undefined;
|
|
1041
|
+
injectHosts?: string[] | undefined;
|
|
1042
|
+
}, {
|
|
1043
|
+
mode: "deny" | "mask";
|
|
1044
|
+
path: string;
|
|
1045
|
+
extract?: string | undefined;
|
|
1046
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1047
|
+
decode?: "jwt" | undefined;
|
|
1048
|
+
maskClaims?: string[] | undefined;
|
|
1049
|
+
maskDuplicates?: boolean | undefined;
|
|
1050
|
+
injectHosts?: string[] | undefined;
|
|
1051
|
+
}>, "many">>;
|
|
1052
|
+
envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1053
|
+
name: z.ZodString;
|
|
1054
|
+
mode: z.ZodEnum<["deny", "mask"]>;
|
|
1055
|
+
extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1056
|
+
/**
|
|
1057
|
+
* What to do when `extract` matches nothing in the value at runtime.
|
|
1058
|
+
*
|
|
1059
|
+
* - `"warn"` (default): emit a stderr warning and let the variable pass
|
|
1060
|
+
* through unmasked inside the sandbox (fail-open). A non-matching
|
|
1061
|
+
* pattern is treated as a config error to surface and fix, not a
|
|
1062
|
+
* reason to break a tool that needs the variable when the credential
|
|
1063
|
+
* is legitimately absent from it.
|
|
1064
|
+
* - `"deny"`: unset the variable inside the sandbox (fail-closed) — the
|
|
1065
|
+
* env analog of degrading a file to `mode: "deny"`. The operator
|
|
1066
|
+
* declared this variable as containing a credential; if the regex
|
|
1067
|
+
* cannot find it, withhold the value rather than expose it.
|
|
1068
|
+
* - `"error"`: throw at wrap time so nothing runs until the operator
|
|
1069
|
+
* fixes the regex.
|
|
1070
|
+
*
|
|
1071
|
+
* Only meaningful when `mode` is `"mask"` and `extract` is set;
|
|
1072
|
+
* accepted but ignored otherwise.
|
|
1073
|
+
*/
|
|
1074
|
+
onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
|
|
1075
|
+
decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Names of top-level payload claims to mask inside the decoded value —
|
|
1078
|
+
* the env-var counterpart of the `maskClaims` on a file entry: `decode`
|
|
1079
|
+
* opens the variable's encoded value so masking can target a field
|
|
1080
|
+
* inside the decoded payload instead of replacing the whole token.
|
|
1081
|
+
*
|
|
1082
|
+
* Every named claim present with a string value is replaced by its own
|
|
1083
|
+
* sentinel and the token is rebuilt around the modified payload
|
|
1084
|
+
* (original header segment, filler signature). All other claims are
|
|
1085
|
+
* preserved verbatim, so a tool that decodes the token and reads a
|
|
1086
|
+
* non-secret claim (issuer, audience, user id) keeps working while the
|
|
1087
|
+
* secret claim is protected. A named claim that is absent or non-string
|
|
1088
|
+
* is skipped. If no named claim matches, nothing was masked and the
|
|
1089
|
+
* entry fails open with a stderr warning — same path as a value that
|
|
1090
|
+
* does not verify as a JWT.
|
|
1091
|
+
*
|
|
1092
|
+
* Requires `decode` (there is no payload to look inside otherwise); an
|
|
1093
|
+
* explicitly empty list is rejected — see the superRefine below.
|
|
1094
|
+
*/
|
|
1095
|
+
maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1096
|
+
injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1097
|
+
}, "strip", z.ZodTypeAny, {
|
|
1098
|
+
mode: "deny" | "mask";
|
|
1099
|
+
name: string;
|
|
1100
|
+
extract?: string | undefined;
|
|
1101
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1102
|
+
decode?: "jwt" | undefined;
|
|
1103
|
+
maskClaims?: string[] | undefined;
|
|
1104
|
+
injectHosts?: string[] | undefined;
|
|
1105
|
+
}, {
|
|
1106
|
+
mode: "deny" | "mask";
|
|
1107
|
+
name: string;
|
|
1108
|
+
extract?: string | undefined;
|
|
1109
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1110
|
+
decode?: "jwt" | undefined;
|
|
1111
|
+
maskClaims?: string[] | undefined;
|
|
1112
|
+
injectHosts?: string[] | undefined;
|
|
1113
|
+
}>, "many">>;
|
|
1114
|
+
allowPlaintextInject: z.ZodOptional<z.ZodBoolean>;
|
|
1115
|
+
awsPairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1116
|
+
accessKeyIdVar: z.ZodString;
|
|
1117
|
+
secretAccessKeyVar: z.ZodString;
|
|
1118
|
+
sessionTokenVar: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
}, "strict", z.ZodTypeAny, {
|
|
1120
|
+
accessKeyIdVar: string;
|
|
1121
|
+
secretAccessKeyVar: string;
|
|
1122
|
+
sessionTokenVar?: string | undefined;
|
|
1123
|
+
}, {
|
|
1124
|
+
accessKeyIdVar: string;
|
|
1125
|
+
secretAccessKeyVar: string;
|
|
1126
|
+
sessionTokenVar?: string | undefined;
|
|
1127
|
+
}>, "many">>;
|
|
1128
|
+
sigv4: z.ZodOptional<z.ZodObject<{
|
|
1129
|
+
streaming: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
1130
|
+
presigned: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
1131
|
+
sigv4a: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
|
|
1132
|
+
}, "strict", z.ZodTypeAny, {
|
|
1133
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
1134
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
1135
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
1136
|
+
}, {
|
|
1137
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
1138
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
1139
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
1140
|
+
}>>;
|
|
1141
|
+
}, "strict", z.ZodTypeAny, {
|
|
1142
|
+
files?: {
|
|
1143
|
+
mode: "deny" | "mask";
|
|
1144
|
+
path: string;
|
|
1145
|
+
extract?: string | undefined;
|
|
1146
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1147
|
+
decode?: "jwt" | undefined;
|
|
1148
|
+
maskClaims?: string[] | undefined;
|
|
1149
|
+
maskDuplicates?: boolean | undefined;
|
|
1150
|
+
injectHosts?: string[] | undefined;
|
|
1151
|
+
}[] | undefined;
|
|
1152
|
+
envVars?: {
|
|
1153
|
+
mode: "deny" | "mask";
|
|
1154
|
+
name: string;
|
|
1155
|
+
extract?: string | undefined;
|
|
1156
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1157
|
+
decode?: "jwt" | undefined;
|
|
1158
|
+
maskClaims?: string[] | undefined;
|
|
1159
|
+
injectHosts?: string[] | undefined;
|
|
1160
|
+
}[] | undefined;
|
|
1161
|
+
allowPlaintextInject?: boolean | undefined;
|
|
1162
|
+
awsPairs?: {
|
|
1163
|
+
accessKeyIdVar: string;
|
|
1164
|
+
secretAccessKeyVar: string;
|
|
1165
|
+
sessionTokenVar?: string | undefined;
|
|
1166
|
+
}[] | undefined;
|
|
1167
|
+
sigv4?: {
|
|
1168
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
1169
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
1170
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
1171
|
+
} | undefined;
|
|
1172
|
+
}, {
|
|
1173
|
+
files?: {
|
|
1174
|
+
mode: "deny" | "mask";
|
|
1175
|
+
path: string;
|
|
1176
|
+
extract?: string | undefined;
|
|
1177
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1178
|
+
decode?: "jwt" | undefined;
|
|
1179
|
+
maskClaims?: string[] | undefined;
|
|
1180
|
+
maskDuplicates?: boolean | undefined;
|
|
1181
|
+
injectHosts?: string[] | undefined;
|
|
1182
|
+
}[] | undefined;
|
|
1183
|
+
envVars?: {
|
|
1184
|
+
mode: "deny" | "mask";
|
|
1185
|
+
name: string;
|
|
1186
|
+
extract?: string | undefined;
|
|
1187
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1188
|
+
decode?: "jwt" | undefined;
|
|
1189
|
+
maskClaims?: string[] | undefined;
|
|
1190
|
+
injectHosts?: string[] | undefined;
|
|
1191
|
+
}[] | undefined;
|
|
1192
|
+
allowPlaintextInject?: boolean | undefined;
|
|
1193
|
+
awsPairs?: {
|
|
1194
|
+
accessKeyIdVar: string;
|
|
1195
|
+
secretAccessKeyVar: string;
|
|
1196
|
+
sessionTokenVar?: string | undefined;
|
|
1197
|
+
}[] | undefined;
|
|
1198
|
+
sigv4?: {
|
|
1199
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
1200
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
1201
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
1202
|
+
} | undefined;
|
|
1203
|
+
}>>;
|
|
1204
|
+
ignoreViolations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1205
|
+
enableWeakerNestedSandbox: z.ZodOptional<z.ZodBoolean>;
|
|
1206
|
+
enableWeakerNetworkIsolation: z.ZodOptional<z.ZodBoolean>;
|
|
1207
|
+
allowAppleEvents: z.ZodOptional<z.ZodBoolean>;
|
|
1208
|
+
ripgrep: z.ZodOptional<z.ZodObject<{
|
|
1209
|
+
command: z.ZodString;
|
|
1210
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1211
|
+
argv0: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
}, "strip", z.ZodTypeAny, {
|
|
1213
|
+
command: string;
|
|
1214
|
+
args?: string[] | undefined;
|
|
1215
|
+
argv0?: string | undefined;
|
|
1216
|
+
}, {
|
|
1217
|
+
command: string;
|
|
1218
|
+
args?: string[] | undefined;
|
|
1219
|
+
argv0?: string | undefined;
|
|
1220
|
+
}>>;
|
|
1221
|
+
mandatoryDenySearchDepth: z.ZodOptional<z.ZodNumber>;
|
|
1222
|
+
allowPty: z.ZodOptional<z.ZodBoolean>;
|
|
1223
|
+
seccomp: z.ZodOptional<z.ZodObject<{
|
|
1224
|
+
applyPath: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
argv0: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
}, "strip", z.ZodTypeAny, {
|
|
1227
|
+
argv0?: string | undefined;
|
|
1228
|
+
applyPath?: string | undefined;
|
|
1229
|
+
}, {
|
|
1230
|
+
argv0?: string | undefined;
|
|
1231
|
+
applyPath?: string | undefined;
|
|
1232
|
+
}>>;
|
|
1233
|
+
bwrapPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1234
|
+
socatPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1235
|
+
javaAgentJarPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1236
|
+
windows: z.ZodOptional<z.ZodObject<{
|
|
1237
|
+
sandboxUser: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
sublayerGuid: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
wfpSublayerGuid: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
proxyPortRange: z.ZodOptional<z.ZodEffects<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, [number, number], [number, number]>>;
|
|
1241
|
+
srtWin: z.ZodOptional<z.ZodObject<{
|
|
1242
|
+
path: z.ZodString;
|
|
1243
|
+
}, "strip", z.ZodTypeAny, {
|
|
1244
|
+
path: string;
|
|
1245
|
+
}, {
|
|
1246
|
+
path: string;
|
|
1247
|
+
}>>;
|
|
1248
|
+
}, "strip", z.ZodTypeAny, {
|
|
1249
|
+
sandboxUser?: string | undefined;
|
|
1250
|
+
sublayerGuid?: string | undefined;
|
|
1251
|
+
wfpSublayerGuid?: string | undefined;
|
|
1252
|
+
proxyPortRange?: [number, number] | undefined;
|
|
1253
|
+
srtWin?: {
|
|
1254
|
+
path: string;
|
|
1255
|
+
} | undefined;
|
|
1256
|
+
}, {
|
|
1257
|
+
sandboxUser?: string | undefined;
|
|
1258
|
+
sublayerGuid?: string | undefined;
|
|
1259
|
+
wfpSublayerGuid?: string | undefined;
|
|
1260
|
+
proxyPortRange?: [number, number] | undefined;
|
|
1261
|
+
srtWin?: {
|
|
1262
|
+
path: string;
|
|
1263
|
+
} | undefined;
|
|
1264
|
+
}>>;
|
|
1265
|
+
git: z.ZodOptional<z.ZodObject<{
|
|
1266
|
+
safeDirectories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1267
|
+
}, "strip", z.ZodTypeAny, {
|
|
1268
|
+
safeDirectories: string[];
|
|
1269
|
+
}, {
|
|
1270
|
+
safeDirectories?: string[] | undefined;
|
|
1271
|
+
}>>;
|
|
1272
|
+
}, "strip", z.ZodTypeAny, {
|
|
1273
|
+
network: {
|
|
1274
|
+
allowedDomains: string[];
|
|
1275
|
+
deniedDomains: string[];
|
|
1276
|
+
deniedDomainReasons?: Record<string, string> | undefined;
|
|
1277
|
+
strictAllowlist?: boolean | undefined;
|
|
1278
|
+
deniedResolvedAddresses?: string[] | undefined;
|
|
1279
|
+
allowUnixSockets?: string[] | undefined;
|
|
1280
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
1281
|
+
allowLocalBinding?: boolean | undefined;
|
|
1282
|
+
allowMachLookup?: string[] | undefined;
|
|
1283
|
+
httpProxyPort?: number | undefined;
|
|
1284
|
+
socksProxyPort?: number | undefined;
|
|
1285
|
+
mitmProxy?: {
|
|
1286
|
+
socketPath: string;
|
|
1287
|
+
domains: string[];
|
|
1288
|
+
} | undefined;
|
|
1289
|
+
filterRequest?: FilterRequestCallback | undefined;
|
|
1290
|
+
tlsTerminate?: {
|
|
1291
|
+
caCertPath?: string | undefined;
|
|
1292
|
+
caKeyPath?: string | undefined;
|
|
1293
|
+
excludeDomains?: string[] | undefined;
|
|
1294
|
+
extraCaCertPaths?: string[] | undefined;
|
|
1295
|
+
} | undefined;
|
|
1296
|
+
parentProxy?: {
|
|
1297
|
+
http?: string | undefined;
|
|
1298
|
+
https?: string | undefined;
|
|
1299
|
+
noProxy?: string | undefined;
|
|
1300
|
+
} | undefined;
|
|
1301
|
+
};
|
|
1302
|
+
filesystem: {
|
|
1303
|
+
denyRead: string[];
|
|
1304
|
+
allowWrite: string[];
|
|
1305
|
+
denyWrite: string[];
|
|
1306
|
+
disabled?: boolean | undefined;
|
|
1307
|
+
allowRead?: string[] | undefined;
|
|
1308
|
+
allowGitConfig?: boolean | undefined;
|
|
1309
|
+
};
|
|
1310
|
+
windows?: {
|
|
1311
|
+
sandboxUser?: string | undefined;
|
|
1312
|
+
sublayerGuid?: string | undefined;
|
|
1313
|
+
wfpSublayerGuid?: string | undefined;
|
|
1314
|
+
proxyPortRange?: [number, number] | undefined;
|
|
1315
|
+
srtWin?: {
|
|
1316
|
+
path: string;
|
|
1317
|
+
} | undefined;
|
|
1318
|
+
} | undefined;
|
|
1319
|
+
credentials?: {
|
|
1320
|
+
files?: {
|
|
1321
|
+
mode: "deny" | "mask";
|
|
1322
|
+
path: string;
|
|
1323
|
+
extract?: string | undefined;
|
|
1324
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1325
|
+
decode?: "jwt" | undefined;
|
|
1326
|
+
maskClaims?: string[] | undefined;
|
|
1327
|
+
maskDuplicates?: boolean | undefined;
|
|
1328
|
+
injectHosts?: string[] | undefined;
|
|
1329
|
+
}[] | undefined;
|
|
1330
|
+
envVars?: {
|
|
1331
|
+
mode: "deny" | "mask";
|
|
1332
|
+
name: string;
|
|
1333
|
+
extract?: string | undefined;
|
|
1334
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1335
|
+
decode?: "jwt" | undefined;
|
|
1336
|
+
maskClaims?: string[] | undefined;
|
|
1337
|
+
injectHosts?: string[] | undefined;
|
|
1338
|
+
}[] | undefined;
|
|
1339
|
+
allowPlaintextInject?: boolean | undefined;
|
|
1340
|
+
awsPairs?: {
|
|
1341
|
+
accessKeyIdVar: string;
|
|
1342
|
+
secretAccessKeyVar: string;
|
|
1343
|
+
sessionTokenVar?: string | undefined;
|
|
1344
|
+
}[] | undefined;
|
|
1345
|
+
sigv4?: {
|
|
1346
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
1347
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
1348
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
1349
|
+
} | undefined;
|
|
1350
|
+
} | undefined;
|
|
1351
|
+
ignoreViolations?: Record<string, string[]> | undefined;
|
|
1352
|
+
enableWeakerNestedSandbox?: boolean | undefined;
|
|
1353
|
+
enableWeakerNetworkIsolation?: boolean | undefined;
|
|
1354
|
+
allowAppleEvents?: boolean | undefined;
|
|
1355
|
+
ripgrep?: {
|
|
1356
|
+
command: string;
|
|
1357
|
+
args?: string[] | undefined;
|
|
1358
|
+
argv0?: string | undefined;
|
|
1359
|
+
} | undefined;
|
|
1360
|
+
mandatoryDenySearchDepth?: number | undefined;
|
|
1361
|
+
allowPty?: boolean | undefined;
|
|
1362
|
+
seccomp?: {
|
|
1363
|
+
argv0?: string | undefined;
|
|
1364
|
+
applyPath?: string | undefined;
|
|
1365
|
+
} | undefined;
|
|
1366
|
+
bwrapPath?: string | undefined;
|
|
1367
|
+
socatPath?: string | undefined;
|
|
1368
|
+
javaAgentJarPath?: string | undefined;
|
|
1369
|
+
git?: {
|
|
1370
|
+
safeDirectories: string[];
|
|
1371
|
+
} | undefined;
|
|
1372
|
+
}, {
|
|
1373
|
+
network: {
|
|
1374
|
+
allowedDomains: string[];
|
|
1375
|
+
deniedDomains: string[];
|
|
1376
|
+
deniedDomainReasons?: Record<string, string> | undefined;
|
|
1377
|
+
strictAllowlist?: boolean | undefined;
|
|
1378
|
+
deniedResolvedAddresses?: string[] | undefined;
|
|
1379
|
+
allowUnixSockets?: string[] | undefined;
|
|
1380
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
1381
|
+
allowLocalBinding?: boolean | undefined;
|
|
1382
|
+
allowMachLookup?: string[] | undefined;
|
|
1383
|
+
httpProxyPort?: number | undefined;
|
|
1384
|
+
socksProxyPort?: number | undefined;
|
|
1385
|
+
mitmProxy?: {
|
|
1386
|
+
socketPath: string;
|
|
1387
|
+
domains: string[];
|
|
1388
|
+
} | undefined;
|
|
1389
|
+
filterRequest?: FilterRequestCallback | undefined;
|
|
1390
|
+
tlsTerminate?: {
|
|
1391
|
+
caCertPath?: string | undefined;
|
|
1392
|
+
caKeyPath?: string | undefined;
|
|
1393
|
+
excludeDomains?: string[] | undefined;
|
|
1394
|
+
extraCaCertPaths?: string[] | undefined;
|
|
1395
|
+
} | undefined;
|
|
1396
|
+
parentProxy?: {
|
|
1397
|
+
http?: string | undefined;
|
|
1398
|
+
https?: string | undefined;
|
|
1399
|
+
noProxy?: string | undefined;
|
|
1400
|
+
} | undefined;
|
|
1401
|
+
};
|
|
1402
|
+
filesystem: {
|
|
1403
|
+
denyRead: string[];
|
|
1404
|
+
allowWrite: string[];
|
|
1405
|
+
denyWrite: string[];
|
|
1406
|
+
disabled?: boolean | undefined;
|
|
1407
|
+
allowRead?: string[] | undefined;
|
|
1408
|
+
allowGitConfig?: boolean | undefined;
|
|
1409
|
+
};
|
|
1410
|
+
windows?: {
|
|
1411
|
+
sandboxUser?: string | undefined;
|
|
1412
|
+
sublayerGuid?: string | undefined;
|
|
1413
|
+
wfpSublayerGuid?: string | undefined;
|
|
1414
|
+
proxyPortRange?: [number, number] | undefined;
|
|
1415
|
+
srtWin?: {
|
|
1416
|
+
path: string;
|
|
1417
|
+
} | undefined;
|
|
1418
|
+
} | undefined;
|
|
1419
|
+
credentials?: {
|
|
1420
|
+
files?: {
|
|
1421
|
+
mode: "deny" | "mask";
|
|
1422
|
+
path: string;
|
|
1423
|
+
extract?: string | undefined;
|
|
1424
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1425
|
+
decode?: "jwt" | undefined;
|
|
1426
|
+
maskClaims?: string[] | undefined;
|
|
1427
|
+
maskDuplicates?: boolean | undefined;
|
|
1428
|
+
injectHosts?: string[] | undefined;
|
|
1429
|
+
}[] | undefined;
|
|
1430
|
+
envVars?: {
|
|
1431
|
+
mode: "deny" | "mask";
|
|
1432
|
+
name: string;
|
|
1433
|
+
extract?: string | undefined;
|
|
1434
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1435
|
+
decode?: "jwt" | undefined;
|
|
1436
|
+
maskClaims?: string[] | undefined;
|
|
1437
|
+
injectHosts?: string[] | undefined;
|
|
1438
|
+
}[] | undefined;
|
|
1439
|
+
allowPlaintextInject?: boolean | undefined;
|
|
1440
|
+
awsPairs?: {
|
|
1441
|
+
accessKeyIdVar: string;
|
|
1442
|
+
secretAccessKeyVar: string;
|
|
1443
|
+
sessionTokenVar?: string | undefined;
|
|
1444
|
+
}[] | undefined;
|
|
1445
|
+
sigv4?: {
|
|
1446
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
1447
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
1448
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
1449
|
+
} | undefined;
|
|
1450
|
+
} | undefined;
|
|
1451
|
+
ignoreViolations?: Record<string, string[]> | undefined;
|
|
1452
|
+
enableWeakerNestedSandbox?: boolean | undefined;
|
|
1453
|
+
enableWeakerNetworkIsolation?: boolean | undefined;
|
|
1454
|
+
allowAppleEvents?: boolean | undefined;
|
|
1455
|
+
ripgrep?: {
|
|
1456
|
+
command: string;
|
|
1457
|
+
args?: string[] | undefined;
|
|
1458
|
+
argv0?: string | undefined;
|
|
1459
|
+
} | undefined;
|
|
1460
|
+
mandatoryDenySearchDepth?: number | undefined;
|
|
1461
|
+
allowPty?: boolean | undefined;
|
|
1462
|
+
seccomp?: {
|
|
1463
|
+
argv0?: string | undefined;
|
|
1464
|
+
applyPath?: string | undefined;
|
|
1465
|
+
} | undefined;
|
|
1466
|
+
bwrapPath?: string | undefined;
|
|
1467
|
+
socatPath?: string | undefined;
|
|
1468
|
+
javaAgentJarPath?: string | undefined;
|
|
1469
|
+
git?: {
|
|
1470
|
+
safeDirectories?: string[] | undefined;
|
|
1471
|
+
} | undefined;
|
|
1472
|
+
}>, {
|
|
1473
|
+
network: {
|
|
1474
|
+
allowedDomains: string[];
|
|
1475
|
+
deniedDomains: string[];
|
|
1476
|
+
deniedDomainReasons?: Record<string, string> | undefined;
|
|
1477
|
+
strictAllowlist?: boolean | undefined;
|
|
1478
|
+
deniedResolvedAddresses?: string[] | undefined;
|
|
1479
|
+
allowUnixSockets?: string[] | undefined;
|
|
1480
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
1481
|
+
allowLocalBinding?: boolean | undefined;
|
|
1482
|
+
allowMachLookup?: string[] | undefined;
|
|
1483
|
+
httpProxyPort?: number | undefined;
|
|
1484
|
+
socksProxyPort?: number | undefined;
|
|
1485
|
+
mitmProxy?: {
|
|
1486
|
+
socketPath: string;
|
|
1487
|
+
domains: string[];
|
|
1488
|
+
} | undefined;
|
|
1489
|
+
filterRequest?: FilterRequestCallback | undefined;
|
|
1490
|
+
tlsTerminate?: {
|
|
1491
|
+
caCertPath?: string | undefined;
|
|
1492
|
+
caKeyPath?: string | undefined;
|
|
1493
|
+
excludeDomains?: string[] | undefined;
|
|
1494
|
+
extraCaCertPaths?: string[] | undefined;
|
|
1495
|
+
} | undefined;
|
|
1496
|
+
parentProxy?: {
|
|
1497
|
+
http?: string | undefined;
|
|
1498
|
+
https?: string | undefined;
|
|
1499
|
+
noProxy?: string | undefined;
|
|
1500
|
+
} | undefined;
|
|
1501
|
+
};
|
|
1502
|
+
filesystem: {
|
|
1503
|
+
denyRead: string[];
|
|
1504
|
+
allowWrite: string[];
|
|
1505
|
+
denyWrite: string[];
|
|
1506
|
+
disabled?: boolean | undefined;
|
|
1507
|
+
allowRead?: string[] | undefined;
|
|
1508
|
+
allowGitConfig?: boolean | undefined;
|
|
1509
|
+
};
|
|
1510
|
+
windows?: {
|
|
1511
|
+
sandboxUser?: string | undefined;
|
|
1512
|
+
sublayerGuid?: string | undefined;
|
|
1513
|
+
wfpSublayerGuid?: string | undefined;
|
|
1514
|
+
proxyPortRange?: [number, number] | undefined;
|
|
1515
|
+
srtWin?: {
|
|
1516
|
+
path: string;
|
|
1517
|
+
} | undefined;
|
|
1518
|
+
} | undefined;
|
|
1519
|
+
credentials?: {
|
|
1520
|
+
files?: {
|
|
1521
|
+
mode: "deny" | "mask";
|
|
1522
|
+
path: string;
|
|
1523
|
+
extract?: string | undefined;
|
|
1524
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1525
|
+
decode?: "jwt" | undefined;
|
|
1526
|
+
maskClaims?: string[] | undefined;
|
|
1527
|
+
maskDuplicates?: boolean | undefined;
|
|
1528
|
+
injectHosts?: string[] | undefined;
|
|
1529
|
+
}[] | undefined;
|
|
1530
|
+
envVars?: {
|
|
1531
|
+
mode: "deny" | "mask";
|
|
1532
|
+
name: string;
|
|
1533
|
+
extract?: string | undefined;
|
|
1534
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1535
|
+
decode?: "jwt" | undefined;
|
|
1536
|
+
maskClaims?: string[] | undefined;
|
|
1537
|
+
injectHosts?: string[] | undefined;
|
|
1538
|
+
}[] | undefined;
|
|
1539
|
+
allowPlaintextInject?: boolean | undefined;
|
|
1540
|
+
awsPairs?: {
|
|
1541
|
+
accessKeyIdVar: string;
|
|
1542
|
+
secretAccessKeyVar: string;
|
|
1543
|
+
sessionTokenVar?: string | undefined;
|
|
1544
|
+
}[] | undefined;
|
|
1545
|
+
sigv4?: {
|
|
1546
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
1547
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
1548
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
1549
|
+
} | undefined;
|
|
1550
|
+
} | undefined;
|
|
1551
|
+
ignoreViolations?: Record<string, string[]> | undefined;
|
|
1552
|
+
enableWeakerNestedSandbox?: boolean | undefined;
|
|
1553
|
+
enableWeakerNetworkIsolation?: boolean | undefined;
|
|
1554
|
+
allowAppleEvents?: boolean | undefined;
|
|
1555
|
+
ripgrep?: {
|
|
1556
|
+
command: string;
|
|
1557
|
+
args?: string[] | undefined;
|
|
1558
|
+
argv0?: string | undefined;
|
|
1559
|
+
} | undefined;
|
|
1560
|
+
mandatoryDenySearchDepth?: number | undefined;
|
|
1561
|
+
allowPty?: boolean | undefined;
|
|
1562
|
+
seccomp?: {
|
|
1563
|
+
argv0?: string | undefined;
|
|
1564
|
+
applyPath?: string | undefined;
|
|
1565
|
+
} | undefined;
|
|
1566
|
+
bwrapPath?: string | undefined;
|
|
1567
|
+
socatPath?: string | undefined;
|
|
1568
|
+
javaAgentJarPath?: string | undefined;
|
|
1569
|
+
git?: {
|
|
1570
|
+
safeDirectories: string[];
|
|
1571
|
+
} | undefined;
|
|
1572
|
+
}, {
|
|
1573
|
+
network: {
|
|
1574
|
+
allowedDomains: string[];
|
|
1575
|
+
deniedDomains: string[];
|
|
1576
|
+
deniedDomainReasons?: Record<string, string> | undefined;
|
|
1577
|
+
strictAllowlist?: boolean | undefined;
|
|
1578
|
+
deniedResolvedAddresses?: string[] | undefined;
|
|
1579
|
+
allowUnixSockets?: string[] | undefined;
|
|
1580
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
1581
|
+
allowLocalBinding?: boolean | undefined;
|
|
1582
|
+
allowMachLookup?: string[] | undefined;
|
|
1583
|
+
httpProxyPort?: number | undefined;
|
|
1584
|
+
socksProxyPort?: number | undefined;
|
|
1585
|
+
mitmProxy?: {
|
|
1586
|
+
socketPath: string;
|
|
1587
|
+
domains: string[];
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
filterRequest?: FilterRequestCallback | undefined;
|
|
1590
|
+
tlsTerminate?: {
|
|
1591
|
+
caCertPath?: string | undefined;
|
|
1592
|
+
caKeyPath?: string | undefined;
|
|
1593
|
+
excludeDomains?: string[] | undefined;
|
|
1594
|
+
extraCaCertPaths?: string[] | undefined;
|
|
1595
|
+
} | undefined;
|
|
1596
|
+
parentProxy?: {
|
|
1597
|
+
http?: string | undefined;
|
|
1598
|
+
https?: string | undefined;
|
|
1599
|
+
noProxy?: string | undefined;
|
|
1600
|
+
} | undefined;
|
|
1601
|
+
};
|
|
1602
|
+
filesystem: {
|
|
1603
|
+
denyRead: string[];
|
|
1604
|
+
allowWrite: string[];
|
|
1605
|
+
denyWrite: string[];
|
|
1606
|
+
disabled?: boolean | undefined;
|
|
1607
|
+
allowRead?: string[] | undefined;
|
|
1608
|
+
allowGitConfig?: boolean | undefined;
|
|
1609
|
+
};
|
|
1610
|
+
windows?: {
|
|
1611
|
+
sandboxUser?: string | undefined;
|
|
1612
|
+
sublayerGuid?: string | undefined;
|
|
1613
|
+
wfpSublayerGuid?: string | undefined;
|
|
1614
|
+
proxyPortRange?: [number, number] | undefined;
|
|
1615
|
+
srtWin?: {
|
|
1616
|
+
path: string;
|
|
1617
|
+
} | undefined;
|
|
1618
|
+
} | undefined;
|
|
1619
|
+
credentials?: {
|
|
1620
|
+
files?: {
|
|
1621
|
+
mode: "deny" | "mask";
|
|
1622
|
+
path: string;
|
|
1623
|
+
extract?: string | undefined;
|
|
1624
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1625
|
+
decode?: "jwt" | undefined;
|
|
1626
|
+
maskClaims?: string[] | undefined;
|
|
1627
|
+
maskDuplicates?: boolean | undefined;
|
|
1628
|
+
injectHosts?: string[] | undefined;
|
|
1629
|
+
}[] | undefined;
|
|
1630
|
+
envVars?: {
|
|
1631
|
+
mode: "deny" | "mask";
|
|
1632
|
+
name: string;
|
|
1633
|
+
extract?: string | undefined;
|
|
1634
|
+
onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
|
|
1635
|
+
decode?: "jwt" | undefined;
|
|
1636
|
+
maskClaims?: string[] | undefined;
|
|
1637
|
+
injectHosts?: string[] | undefined;
|
|
1638
|
+
}[] | undefined;
|
|
1639
|
+
allowPlaintextInject?: boolean | undefined;
|
|
1640
|
+
awsPairs?: {
|
|
1641
|
+
accessKeyIdVar: string;
|
|
1642
|
+
secretAccessKeyVar: string;
|
|
1643
|
+
sessionTokenVar?: string | undefined;
|
|
1644
|
+
}[] | undefined;
|
|
1645
|
+
sigv4?: {
|
|
1646
|
+
streaming?: "passthrough" | "deny" | undefined;
|
|
1647
|
+
presigned?: "passthrough" | "deny" | undefined;
|
|
1648
|
+
sigv4a?: "passthrough" | "deny" | undefined;
|
|
1649
|
+
} | undefined;
|
|
1650
|
+
} | undefined;
|
|
1651
|
+
ignoreViolations?: Record<string, string[]> | undefined;
|
|
1652
|
+
enableWeakerNestedSandbox?: boolean | undefined;
|
|
1653
|
+
enableWeakerNetworkIsolation?: boolean | undefined;
|
|
1654
|
+
allowAppleEvents?: boolean | undefined;
|
|
1655
|
+
ripgrep?: {
|
|
1656
|
+
command: string;
|
|
1657
|
+
args?: string[] | undefined;
|
|
1658
|
+
argv0?: string | undefined;
|
|
1659
|
+
} | undefined;
|
|
1660
|
+
mandatoryDenySearchDepth?: number | undefined;
|
|
1661
|
+
allowPty?: boolean | undefined;
|
|
1662
|
+
seccomp?: {
|
|
1663
|
+
argv0?: string | undefined;
|
|
1664
|
+
applyPath?: string | undefined;
|
|
1665
|
+
} | undefined;
|
|
1666
|
+
bwrapPath?: string | undefined;
|
|
1667
|
+
socatPath?: string | undefined;
|
|
1668
|
+
javaAgentJarPath?: string | undefined;
|
|
1669
|
+
git?: {
|
|
1670
|
+
safeDirectories?: string[] | undefined;
|
|
1671
|
+
} | undefined;
|
|
1672
|
+
}>;
|
|
1673
|
+
export type MitmProxyConfig = z.infer<typeof MitmProxyConfigSchema>;
|
|
1674
|
+
export type ParentProxyConfig = z.infer<typeof ParentProxyConfigSchema>;
|
|
1675
|
+
export type NetworkConfig = z.infer<typeof NetworkConfigSchema>;
|
|
1676
|
+
export type FilesystemConfig = z.infer<typeof FilesystemConfigSchema>;
|
|
1677
|
+
export type CredentialMode = z.infer<typeof credentialModeSchema>;
|
|
1678
|
+
export type CredentialFileConfig = z.infer<typeof CredentialFileConfigSchema>;
|
|
1679
|
+
export type CredentialEnvVarConfig = z.infer<typeof CredentialEnvVarConfigSchema>;
|
|
1680
|
+
export type CredentialsConfig = z.infer<typeof CredentialsConfigSchema>;
|
|
1681
|
+
export type AwsPairConfig = z.infer<typeof AwsPairConfigSchema>;
|
|
1682
|
+
export type Sigv4Config = z.infer<typeof Sigv4ConfigSchema>;
|
|
1683
|
+
export type IgnoreViolationsConfig = z.infer<typeof IgnoreViolationsConfigSchema>;
|
|
1684
|
+
export type RipgrepConfig = z.infer<typeof RipgrepConfigSchema>;
|
|
1685
|
+
export type GitConfig = z.infer<typeof GitConfigSchema>;
|
|
1686
|
+
export type SeccompConfig = z.infer<typeof SeccompConfigSchema>;
|
|
1687
|
+
export type SrtWinConfig = z.infer<typeof SrtWinConfigSchema>;
|
|
1688
|
+
export type WindowsConfig = z.infer<typeof WindowsConfigSchema>;
|
|
1689
|
+
export type SandboxRuntimeConfig = z.infer<typeof SandboxRuntimeConfigSchema>;
|
|
1690
|
+
export {};
|
|
1691
|
+
//# sourceMappingURL=sandbox-config.d.ts.map
|