@capybara-hq/device 0.1.0-rc.13 → 0.1.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/dist/args.d.ts +12 -2
- package/dist/args.js +35 -0
- package/dist/boot-id.d.ts +17 -0
- package/dist/boot-id.js +43 -0
- package/dist/cli.d.ts +5 -0
- package/dist/cli.js +38 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.js +15 -3
- package/dist/commands/ceiling.d.ts +28 -0
- package/dist/commands/ceiling.js +120 -0
- package/dist/commands/login.js +18 -4
- package/dist/commands/mode.js +7 -3
- package/dist/commands/policy.js +3 -3
- package/dist/commands/start.d.ts +16 -1
- package/dist/commands/start.js +73 -8
- package/dist/commands/status.js +2 -2
- package/dist/exec/docker-operations.d.ts +44 -0
- package/dist/exec/docker-operations.js +288 -0
- package/dist/exec/docker.d.ts +11 -0
- package/dist/exec/docker.js +22 -1
- package/dist/exec/instance-binding.d.ts +107 -0
- package/dist/exec/instance-binding.js +267 -0
- package/dist/exec/linux-agent.d.ts +27 -0
- package/dist/exec/linux-agent.js +866 -0
- package/dist/exec/linux-operation-backend.d.ts +60 -0
- package/dist/exec/linux-operation-backend.js +85 -0
- package/dist/exec/linux-operation-worker.d.ts +33 -0
- package/dist/exec/linux-operation-worker.js +304 -0
- package/dist/exec/linux-runtime.d.ts +80 -0
- package/dist/exec/linux-runtime.js +181 -0
- package/dist/exec/mac-operation-backend.d.ts +113 -0
- package/dist/exec/mac-operation-backend.js +370 -0
- package/dist/exec/mac-self-check.d.ts +37 -0
- package/dist/exec/mac-self-check.js +163 -0
- package/dist/exec/mac-write-policy.d.ts +34 -0
- package/dist/exec/mac-write-policy.js +194 -0
- package/dist/exec/native-helper-client.d.ts +46 -0
- package/dist/exec/native-helper-client.js +204 -0
- package/dist/exec/operation-supervisor.d.ts +187 -0
- package/dist/exec/operation-supervisor.js +1307 -0
- package/dist/exec/operation-types.d.ts +55 -0
- package/dist/exec/operation-types.js +164 -0
- package/dist/exec/operation-worker.d.ts +83 -0
- package/dist/exec/operation-worker.js +649 -0
- package/dist/exec/output-spool-helper.d.ts +2 -0
- package/dist/exec/output-spool-helper.js +149 -0
- package/dist/exec/output-spool.d.ts +72 -0
- package/dist/exec/output-spool.js +324 -0
- package/dist/exec/runtime-manifest.d.ts +115 -0
- package/dist/exec/runtime-manifest.js +642 -0
- package/dist/exec/runtime-source.d.ts +87 -0
- package/dist/exec/runtime-source.js +305 -0
- package/dist/exec/switch.js +6 -5
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/CAPYBARA-MODIFICATIONS.md +3 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/CAPYBARA-MODIFICATIONS.patch +70 -0
- package/{LICENSE → dist/node_modules/@anthropic-ai/sandbox-runtime/LICENSE} +1 -2
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/README.md +1288 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts +3 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js +527 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts +22 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js +20 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.d.ts +4 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.js +119 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.d.ts +3 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.js +5 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts +52 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js +153 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts +168 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js +250 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts +58 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js +128 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts +124 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js +258 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts +87 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js +138 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts +67 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js +113 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts +70 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js +171 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts +121 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js +282 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts +108 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js +208 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.d.ts +130 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.js +780 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts +106 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js +221 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.d.ts +98 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.js +194 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts +44 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js +220 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.d.ts +89 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.js +230 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts +316 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js +920 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts +32 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js +111 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts +348 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js +3147 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts +55 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js +152 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts +12 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js +43 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts +117 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js +1286 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts +209 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js +464 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts +28 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js +139 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts +64 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js +182 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.d.ts +13 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.js +32 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts +179 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js +510 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.d.ts +133 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.js +340 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.d.ts +99 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.js +259 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts +28 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js +176 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts +332 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js +754 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts +76 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js +221 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts +1967 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js +1311 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts +188 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js +2646 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts +158 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js +3 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts +479 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js +1637 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts +50 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js +143 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts +67 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js +345 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts +212 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js +1174 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts +1615 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js +2848 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts +31 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js +69 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts +7 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js +25 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts +15 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js +49 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.d.ts +35 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.js +106 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts +29 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js +51 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts +27 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js +47 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts +9 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js +25 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/package.json +90 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/build.ts +95 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/arm64/apply-seccomp +0 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/build.ts +73 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/arm64/srt-win.exe +0 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/build.ts +28 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/x64/srt-win.exe +0 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/NOTICE +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/README.md +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/agent-templates.md +59 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/concepts.md +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/connector-templates.md +48 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/channel.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/config-source.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/connector.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/context.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/counter.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/directory.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/file-preview.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/identity-source.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/model-provider.md +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/object-store.md +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/sandbox.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/secret-store.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/web-fetch.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/web-search.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extensions.md +88 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/plugin-format.md +100 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/setup.md +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/skills.md +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/tool-naming.md +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/agent-template.d.ts +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/agent-template.js +501 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/bootstrap.d.ts +81 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/bootstrap.js +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/cards.d.ts +107 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/cards.js +287 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/channel.d.ts +293 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/channel.js +31 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-css.d.ts +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-css.js +326 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-section.d.ts +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-section.js +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/config-ui.d.ts +153 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/config-ui.js +662 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector-auth.d.ts +69 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector-auth.js +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector.d.ts +196 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/context.d.ts +40 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/context.js +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ctx.d.ts +287 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ctx.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/define-extension.d.ts +55 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/define-extension.js +92 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol-v3.d.ts +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol-v3.js +409 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol.d.ts +330 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol.js +567 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/directory.d.ts +38 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/directory.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/extension-point.d.ts +40 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/extension-point.js +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/file-preview.d.ts +72 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/file-preview.js +72 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/frontmatter.d.ts +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/frontmatter.js +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/git-hosts.d.ts +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/git-hosts.js +81 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/hooks.d.ts +295 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/hooks.js +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/http-access.d.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/http-access.js +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/identity.d.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/identity.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/index.d.ts +53 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/index.js +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/marketplace.d.ts +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/marketplace.js +326 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model-params.d.ts +101 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model-params.js +235 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model.d.ts +336 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model.js +204 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/net.d.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/net.js +34 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/org-access.d.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/org-access.js +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/permissions.d.ts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/permissions.js +328 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-manifest.d.ts +204 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-manifest.js +504 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-package.d.ts +183 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-package.js +480 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-linux-runtime-source.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-linux-runtime-source.js +1886 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-native-runtime-source.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-native-runtime-source.js +325 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-operation.d.ts +248 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-operation.js +245 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-runtime-source.d.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-runtime-source.js +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-write-denies.d.ts +60 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-write-denies.js +630 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox.d.ts +417 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox.js +195 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/secret.d.ts +11 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/secret.js +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/semver-range.d.ts +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/semver-range.js +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-check.d.ts +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-check.js +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-parse.d.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-parse.js +350 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-render.d.ts +45 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-render.js +351 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide.d.ts +94 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide.js +336 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-invocation.d.ts +87 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-invocation.js +211 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-keys.d.ts +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-keys.js +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill.d.ts +107 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill.js +283 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/storage.d.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/storage.js +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-assets.d.ts +39 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-assets.js +449 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-readability.d.ts +37 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-readability.js +145 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-tokens.generated.d.ts +279 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-tokens.generated.js +174 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme.d.ts +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme.js +392 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool-key.d.ts +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool-key.js +40 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool.d.ts +205 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool.js +238 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-parts.d.ts +23 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-parts.js +337 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-resolve.d.ts +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-resolve.js +42 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-slots.d.ts +53 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-slots.js +238 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui.d.ts +385 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui.js +432 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/url.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/url.js +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/web.d.ts +105 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/web.js +135 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/LICENSE +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/README.md +218 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.cjs +96 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.js +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.cjs +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.js +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.cjs +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.cjs +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.js +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/package.json +147 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/compile.ts +56 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/index.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/locales/index.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/mini/index.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/errors.ts +13 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/external.ts +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/index.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/types.ts +5138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/core.ts +230 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/index.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/schemas.ts +5226 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/util.ts +1293 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/index.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.cjs +167 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.js +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.cjs +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.cjs +41 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.d.ts +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.js +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.js +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.cjs +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.js +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.cjs +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.js +109 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.cjs +3798 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.d.cts +1034 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.d.ts +1034 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.js +3697 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.js +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.js +31 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.js +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.cjs +97 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.js +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.js +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.cjs +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.js +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.js +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.js +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.cjs +1269 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.d.cts +335 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.d.ts +335 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.js +1107 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.cjs +561 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.js +516 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.js +1866 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.cjs +167 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.d.cts +82 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.d.ts +82 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.js +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.cjs +61 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.js +38 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.cjs +317 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.js +267 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.cjs +70 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.d.cts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.d.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.js +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.js +311 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.cjs +233 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.js +175 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.js +156 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.cjs +75 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.cjs +2699 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.d.cts +1275 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.d.ts +1275 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.js +2636 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.cjs +964 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.d.cts +280 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.d.ts +280 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.js +873 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.cjs +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.js +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.cjs +214 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.js +169 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.cjs +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.js +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.js +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.cjs +137 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.js +110 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.cjs +195 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.js +168 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.js +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.js +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.js +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.cjs +147 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.js +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.cjs +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.js +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.cjs +163 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.js +136 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.js +119 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.js +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.js +129 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.cjs +248 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.js +221 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.js +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.js +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.js +158 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.cjs +138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.js +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.cjs +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.js +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.js +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.js +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.js +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.js +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.js +207 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.js +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.js +119 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.js +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.js +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.js +168 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.js +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.js +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.js +107 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.js +110 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.js +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.js +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.cjs +95 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.js +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.js +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.cjs +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.js +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.js +34 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.cjs +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.js +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/package.json +61 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/bootstrap.v1.schema.json +131 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/connector-template.v1.schema.json +151 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/marketplace.v1.schema.json +320 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/plugin.v1.schema.json +487 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/theme.v1.schema.json +225 -0
- package/dist/node_modules/@pondwader/socks5-server/.github/workflows/ci.yml +27 -0
- package/dist/node_modules/@pondwader/socks5-server/LICENSE +20 -0
- package/dist/node_modules/@pondwader/socks5-server/README.md +151 -0
- package/dist/node_modules/@pondwader/socks5-server/dist/index.d.mts +87 -0
- package/dist/node_modules/@pondwader/socks5-server/dist/index.d.ts +87 -0
- package/dist/node_modules/@pondwader/socks5-server/dist/index.js +346 -0
- package/dist/node_modules/@pondwader/socks5-server/dist/index.mjs +307 -0
- package/dist/node_modules/@pondwader/socks5-server/package.json +31 -0
- package/dist/node_modules/@types/debug/LICENSE +21 -0
- package/dist/node_modules/@types/debug/README.md +69 -0
- package/dist/node_modules/@types/debug/index.d.ts +50 -0
- package/dist/node_modules/@types/debug/package.json +58 -0
- package/dist/node_modules/@types/mdast/LICENSE +21 -0
- package/dist/node_modules/@types/mdast/README.md +15 -0
- package/dist/node_modules/@types/mdast/index.d.ts +1123 -0
- package/dist/node_modules/@types/mdast/package.json +47 -0
- package/dist/node_modules/@types/ms/LICENSE +21 -0
- package/dist/node_modules/@types/ms/README.md +82 -0
- package/dist/node_modules/@types/ms/index.d.ts +63 -0
- package/dist/node_modules/@types/ms/package.json +26 -0
- package/dist/node_modules/@types/unist/LICENSE +21 -0
- package/dist/node_modules/@types/unist/README.md +15 -0
- package/dist/node_modules/@types/unist/index.d.ts +119 -0
- package/dist/node_modules/@types/unist/package.json +60 -0
- package/dist/node_modules/ccount/index.d.ts +11 -0
- package/dist/node_modules/ccount/index.js +27 -0
- package/dist/node_modules/ccount/license +22 -0
- package/dist/node_modules/ccount/package.json +71 -0
- package/dist/node_modules/ccount/readme.md +149 -0
- package/dist/node_modules/character-entities/index.d.ts +6 -0
- package/dist/node_modules/character-entities/index.js +2132 -0
- package/dist/node_modules/character-entities/license +22 -0
- package/dist/node_modules/character-entities/package.json +78 -0
- package/dist/node_modules/character-entities/readme.md +152 -0
- package/dist/node_modules/commander/LICENSE +22 -0
- package/dist/node_modules/commander/Readme.md +1157 -0
- package/dist/node_modules/commander/esm.mjs +16 -0
- package/dist/node_modules/commander/index.js +24 -0
- package/dist/node_modules/commander/lib/argument.js +149 -0
- package/dist/node_modules/commander/lib/command.js +2509 -0
- package/dist/node_modules/commander/lib/error.js +39 -0
- package/dist/node_modules/commander/lib/help.js +520 -0
- package/dist/node_modules/commander/lib/option.js +330 -0
- package/dist/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/dist/node_modules/commander/package-support.json +16 -0
- package/dist/node_modules/commander/package.json +84 -0
- package/dist/node_modules/commander/typings/esm.d.mts +3 -0
- package/dist/node_modules/commander/typings/index.d.ts +969 -0
- package/dist/node_modules/debug/LICENSE +20 -0
- package/dist/node_modules/debug/README.md +481 -0
- package/dist/node_modules/debug/package.json +64 -0
- package/dist/node_modules/debug/src/browser.js +272 -0
- package/dist/node_modules/debug/src/common.js +292 -0
- package/dist/node_modules/debug/src/index.js +10 -0
- package/dist/node_modules/debug/src/node.js +263 -0
- package/dist/node_modules/decode-named-character-reference/index.d.ts +13 -0
- package/dist/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +32 -0
- package/dist/node_modules/decode-named-character-reference/index.js +19 -0
- package/dist/node_modules/decode-named-character-reference/license +22 -0
- package/dist/node_modules/decode-named-character-reference/package.json +90 -0
- package/dist/node_modules/decode-named-character-reference/readme.md +136 -0
- package/dist/node_modules/dequal/dist/index.js +86 -0
- package/dist/node_modules/dequal/dist/index.min.js +1 -0
- package/dist/node_modules/dequal/dist/index.mjs +84 -0
- package/dist/node_modules/dequal/index.d.ts +1 -0
- package/dist/node_modules/dequal/license +21 -0
- package/dist/node_modules/dequal/lite/index.d.ts +1 -0
- package/dist/node_modules/dequal/lite/index.js +31 -0
- package/dist/node_modules/dequal/lite/index.min.js +1 -0
- package/dist/node_modules/dequal/lite/index.mjs +29 -0
- package/dist/node_modules/dequal/package.json +57 -0
- package/dist/node_modules/dequal/readme.md +112 -0
- package/dist/node_modules/devlop/lib/default.js +9 -0
- package/dist/node_modules/devlop/lib/development.d.ts +84 -0
- package/dist/node_modules/devlop/lib/development.js +238 -0
- package/dist/node_modules/devlop/license +22 -0
- package/dist/node_modules/devlop/package.json +80 -0
- package/dist/node_modules/devlop/readme.md +360 -0
- package/dist/node_modules/escape-string-regexp/index.d.ts +16 -0
- package/dist/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/node_modules/escape-string-regexp/license +9 -0
- package/dist/node_modules/escape-string-regexp/package.json +40 -0
- package/dist/node_modules/escape-string-regexp/readme.md +34 -0
- package/dist/node_modules/kysely/LICENSE +21 -0
- package/dist/node_modules/kysely/README.md +242 -0
- package/dist/node_modules/kysely/dist/dialect/database-introspector.d.ts +50 -0
- package/dist/node_modules/kysely/dist/dialect/database-introspector.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/dialect-adapter-base.d.ts +79 -0
- package/dist/node_modules/kysely/dist/dialect/dialect-adapter-base.js +24 -0
- package/dist/node_modules/kysely/dist/dialect/dialect-adapter.d.ts +131 -0
- package/dist/node_modules/kysely/dist/dialect/dialect-adapter.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/dialect.d.ts +34 -0
- package/dist/node_modules/kysely/dist/dialect/dialect.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-adapter.d.ts +72 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-adapter.js +31 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect-config.d.ts +171 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect.d.ts +70 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect.js +62 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-driver.d.ts +60 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-driver.js +358 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-introspector.d.ts +14 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-introspector.js +103 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-query-compiler.d.ts +17 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-query-compiler.js +89 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-adapter.d.ts +71 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-adapter.js +25 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect-config.d.ts +71 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect.d.ts +61 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect.js +53 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-driver.d.ts +56 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-driver.js +252 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-introspector.d.ts +14 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-introspector.js +73 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-query-compiler.d.ts +27 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-query-compiler.js +77 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-adapter.d.ts +68 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-adapter.js +17 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect-config.d.ts +58 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect.d.ts +55 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect.js +47 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-driver.d.ts +57 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-driver.js +119 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-adapter.d.ts +71 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-adapter.js +28 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect-config.d.ts +123 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect.d.ts +61 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect.js +53 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-driver.d.ts +61 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-driver.js +198 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-introspector.d.ts +14 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-introspector.js +102 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-query-compiler.d.ts +4 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-query-compiler.js +8 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-adapter.d.ts +72 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-adapter.js +23 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect-config.d.ts +42 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect.d.ts +55 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect.js +48 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-driver.d.ts +43 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-driver.js +84 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-introspector.d.ts +14 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-introspector.js +87 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-query-compiler.d.ts +15 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-query-compiler.js +38 -0
- package/dist/node_modules/kysely/dist/driver/connection-mutex.d.ts +12 -0
- package/dist/node_modules/kysely/dist/driver/connection-mutex.js +26 -0
- package/dist/node_modules/kysely/dist/driver/connection-provider.d.ts +9 -0
- package/dist/node_modules/kysely/dist/driver/connection-provider.js +2 -0
- package/dist/node_modules/kysely/dist/driver/database-connection.d.ts +49 -0
- package/dist/node_modules/kysely/dist/driver/database-connection.js +2 -0
- package/dist/node_modules/kysely/dist/driver/default-connection-provider.d.ts +13 -0
- package/dist/node_modules/kysely/dist/driver/default-connection-provider.js +16 -0
- package/dist/node_modules/kysely/dist/driver/driver.d.ts +62 -0
- package/dist/node_modules/kysely/dist/driver/driver.js +19 -0
- package/dist/node_modules/kysely/dist/driver/dummy-driver.d.ts +75 -0
- package/dist/node_modules/kysely/dist/driver/dummy-driver.js +80 -0
- package/dist/node_modules/kysely/dist/driver/runtime-driver.d.ts +49 -0
- package/dist/node_modules/kysely/dist/driver/runtime-driver.js +174 -0
- package/dist/node_modules/kysely/dist/driver/single-connection-provider.d.ts +11 -0
- package/dist/node_modules/kysely/dist/driver/single-connection-provider.js +26 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic-reference-builder.d.ts +18 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic-reference-builder.js +32 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic-table-builder.d.ts +16 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic-table-builder.js +41 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic.d.ts +124 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic.js +129 -0
- package/dist/node_modules/kysely/dist/expression/expression-builder.d.ts +914 -0
- package/dist/node_modules/kysely/dist/expression/expression-builder.js +121 -0
- package/dist/node_modules/kysely/dist/expression/expression-wrapper.d.ts +631 -0
- package/dist/node_modules/kysely/dist/expression/expression-wrapper.js +128 -0
- package/dist/node_modules/kysely/dist/expression/expression.d.ts +198 -0
- package/dist/node_modules/kysely/dist/expression/expression.js +12 -0
- package/dist/node_modules/kysely/dist/helpers/mssql.d.ts +212 -0
- package/dist/node_modules/kysely/dist/helpers/mssql.js +215 -0
- package/dist/node_modules/kysely/dist/helpers/mysql.d.ts +147 -0
- package/dist/node_modules/kysely/dist/helpers/mysql.js +158 -0
- package/dist/node_modules/kysely/dist/helpers/postgres.d.ts +199 -0
- package/dist/node_modules/kysely/dist/helpers/postgres.js +203 -0
- package/dist/node_modules/kysely/dist/helpers/sqlite.d.ts +189 -0
- package/dist/node_modules/kysely/dist/helpers/sqlite.js +200 -0
- package/dist/node_modules/kysely/dist/index.d.ts +314 -0
- package/dist/node_modules/kysely/dist/index.js +200 -0
- package/dist/node_modules/kysely/dist/kysely.d.ts +796 -0
- package/dist/node_modules/kysely/dist/kysely.js +1032 -0
- package/dist/node_modules/kysely/dist/migration/file-migration-provider.d.ts +51 -0
- package/dist/node_modules/kysely/dist/migration/file-migration-provider.js +61 -0
- package/dist/node_modules/kysely/dist/migration/index.d.ts +2 -0
- package/dist/node_modules/kysely/dist/migration/index.js +3 -0
- package/dist/node_modules/kysely/dist/migration/migrator.d.ts +393 -0
- package/dist/node_modules/kysely/dist/migration/migrator.js +614 -0
- package/dist/node_modules/kysely/dist/operation-node/add-column-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/add-column-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/add-constraint-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/add-constraint-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/add-index-node.d.ts +29 -0
- package/dist/node_modules/kysely/dist/operation-node/add-index-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/add-value-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/add-value-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/aggregate-function-node.d.ts +29 -0
- package/dist/node_modules/kysely/dist/operation-node/aggregate-function-node.js +56 -0
- package/dist/node_modules/kysely/dist/operation-node/alias-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/alias-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-column-node.d.ts +23 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-column-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-table-node.d.ts +38 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-table-node.js +30 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-type-node.d.ts +24 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-type-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/and-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/and-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/binary-operation-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/binary-operation-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/case-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/case-node.js +40 -0
- package/dist/node_modules/kysely/dist/operation-node/cast-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/cast-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/check-constraint-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/check-constraint-node.js +20 -0
- package/dist/node_modules/kysely/dist/operation-node/collate-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/collate-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/column-definition-node.d.ts +38 -0
- package/dist/node_modules/kysely/dist/operation-node/column-definition-node.js +40 -0
- package/dist/node_modules/kysely/dist/operation-node/column-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/column-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/column-update-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/column-update-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/common-table-expression-name-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/common-table-expression-name-node.js +21 -0
- package/dist/node_modules/kysely/dist/operation-node/common-table-expression-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/common-table-expression-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/constraint-node.d.ts +5 -0
- package/dist/node_modules/kysely/dist/operation-node/constraint-node.js +2 -0
- package/dist/node_modules/kysely/dist/operation-node/create-index-node.d.ts +29 -0
- package/dist/node_modules/kysely/dist/operation-node/create-index-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/create-schema-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/create-schema-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/create-table-node.d.ts +37 -0
- package/dist/node_modules/kysely/dist/operation-node/create-table-node.js +62 -0
- package/dist/node_modules/kysely/dist/operation-node/create-type-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/create-type-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/create-view-node.d.ts +26 -0
- package/dist/node_modules/kysely/dist/operation-node/create-view-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/data-type-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/data-type-node.js +80 -0
- package/dist/node_modules/kysely/dist/operation-node/default-insert-value-node.d.ts +13 -0
- package/dist/node_modules/kysely/dist/operation-node/default-insert-value-node.js +15 -0
- package/dist/node_modules/kysely/dist/operation-node/default-value-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/default-value-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/delete-query-node.d.ts +42 -0
- package/dist/node_modules/kysely/dist/operation-node/delete-query-node.js +50 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-column-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-column-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-constraint-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-constraint-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-index-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-index-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-schema-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-schema-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-table-node.d.ts +24 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-table-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-type-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-type-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-view-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-view-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/explain-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/explain-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/fetch-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/fetch-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/foreign-key-constraint-node.d.ts +26 -0
- package/dist/node_modules/kysely/dist/operation-node/foreign-key-constraint-node.js +28 -0
- package/dist/node_modules/kysely/dist/operation-node/from-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/from-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/function-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/function-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/generated-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/generated-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/group-by-item-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/group-by-item-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/group-by-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/group-by-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/having-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/having-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/identifier-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/identifier-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/insert-query-node.d.ts +40 -0
- package/dist/node_modules/kysely/dist/operation-node/insert-query-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/join-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/join-node.js +35 -0
- package/dist/node_modules/kysely/dist/operation-node/json-operator-chain-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/json-operator-chain-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/json-path-leg-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/json-path-leg-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/json-path-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/json-path-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/json-reference-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/json-reference-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/limit-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/limit-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/list-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/list-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/matched-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/matched-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/merge-query-node.d.ts +32 -0
- package/dist/node_modules/kysely/dist/operation-node/merge-query-node.js +43 -0
- package/dist/node_modules/kysely/dist/operation-node/modify-column-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/modify-column-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/offset-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/offset-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/on-conflict-node.d.ts +32 -0
- package/dist/node_modules/kysely/dist/operation-node/on-conflict-node.js +66 -0
- package/dist/node_modules/kysely/dist/operation-node/on-duplicate-key-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/on-duplicate-key-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/on-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/on-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-source.d.ts +5 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-source.js +5 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-transformer.d.ts +244 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-transformer.js +958 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-visitor.d.ts +207 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-visitor.js +115 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node.d.ts +5 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node.js +5 -0
- package/dist/node_modules/kysely/dist/operation-node/operator-node.d.ts +65 -0
- package/dist/node_modules/kysely/dist/operation-node/operator-node.js +148 -0
- package/dist/node_modules/kysely/dist/operation-node/or-action-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/or-action-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/or-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/or-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/order-by-item-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/order-by-item-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/order-by-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/order-by-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/output-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/output-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/over-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/over-node.js +33 -0
- package/dist/node_modules/kysely/dist/operation-node/parens-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/parens-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/partition-by-item-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/partition-by-item-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/partition-by-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/partition-by-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/primary-key-constraint-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/primary-key-constraint-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/primitive-value-list-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/primitive-value-list-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/query-node.d.ts +61 -0
- package/dist/node_modules/kysely/dist/operation-node/query-node.js +100 -0
- package/dist/node_modules/kysely/dist/operation-node/raw-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/raw-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/reference-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/reference-node.js +25 -0
- package/dist/node_modules/kysely/dist/operation-node/references-node.d.ts +27 -0
- package/dist/node_modules/kysely/dist/operation-node/references-node.js +43 -0
- package/dist/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-column-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-column-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-constraint-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-constraint-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-value-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-value-node.js +14 -0
- package/dist/node_modules/kysely/dist/operation-node/returning-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/returning-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/root-operation-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/root-operation-node.js +27 -0
- package/dist/node_modules/kysely/dist/operation-node/schemable-identifier-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/schemable-identifier-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/select-all-node.d.ts +13 -0
- package/dist/node_modules/kysely/dist/operation-node/select-all-node.js +15 -0
- package/dist/node_modules/kysely/dist/operation-node/select-modifier-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/select-modifier-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/select-query-node.d.ts +63 -0
- package/dist/node_modules/kysely/dist/operation-node/select-query-node.js +127 -0
- package/dist/node_modules/kysely/dist/operation-node/selection-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/selection-node.js +30 -0
- package/dist/node_modules/kysely/dist/operation-node/set-operation-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/set-operation-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/simple-reference-expression-node.d.ts +3 -0
- package/dist/node_modules/kysely/dist/operation-node/simple-reference-expression-node.js +2 -0
- package/dist/node_modules/kysely/dist/operation-node/table-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/table-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/top-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/top-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/tuple-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/tuple-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/unary-operation-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/unary-operation-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/unique-constraint-node.d.ts +30 -0
- package/dist/node_modules/kysely/dist/operation-node/unique-constraint-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/update-query-node.d.ts +41 -0
- package/dist/node_modules/kysely/dist/operation-node/update-query-node.js +48 -0
- package/dist/node_modules/kysely/dist/operation-node/using-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/using-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/value-list-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/value-list-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/value-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/value-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/values-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/values-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/when-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/when-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/where-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/where-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/with-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/with-node.js +23 -0
- package/dist/node_modules/kysely/dist/parser/binary-operation-parser.d.ts +23 -0
- package/dist/node_modules/kysely/dist/parser/binary-operation-parser.js +68 -0
- package/dist/node_modules/kysely/dist/parser/coalesce-parser.d.ts +12 -0
- package/dist/node_modules/kysely/dist/parser/coalesce-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/collate-parser.d.ts +1 -0
- package/dist/node_modules/kysely/dist/parser/collate-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/data-type-parser.d.ts +5 -0
- package/dist/node_modules/kysely/dist/parser/data-type-parser.js +12 -0
- package/dist/node_modules/kysely/dist/parser/default-value-parser.d.ts +4 -0
- package/dist/node_modules/kysely/dist/parser/default-value-parser.js +8 -0
- package/dist/node_modules/kysely/dist/parser/delete-from-parser.d.ts +9 -0
- package/dist/node_modules/kysely/dist/parser/delete-from-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/expression-parser.d.ts +20 -0
- package/dist/node_modules/kysely/dist/parser/expression-parser.js +26 -0
- package/dist/node_modules/kysely/dist/parser/fetch-parser.d.ts +2 -0
- package/dist/node_modules/kysely/dist/parser/fetch-parser.js +15 -0
- package/dist/node_modules/kysely/dist/parser/group-by-parser.d.ts +6 -0
- package/dist/node_modules/kysely/dist/parser/group-by-parser.js +9 -0
- package/dist/node_modules/kysely/dist/parser/identifier-parser.d.ts +3 -0
- package/dist/node_modules/kysely/dist/parser/identifier-parser.js +26 -0
- package/dist/node_modules/kysely/dist/parser/insert-values-parser.d.ts +14 -0
- package/dist/node_modules/kysely/dist/parser/insert-values-parser.js +62 -0
- package/dist/node_modules/kysely/dist/parser/join-parser.d.ts +10 -0
- package/dist/node_modules/kysely/dist/parser/join-parser.js +28 -0
- package/dist/node_modules/kysely/dist/parser/merge-into-parser.d.ts +7 -0
- package/dist/node_modules/kysely/dist/parser/merge-into-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/merge-parser.d.ts +9 -0
- package/dist/node_modules/kysely/dist/parser/merge-parser.js +28 -0
- package/dist/node_modules/kysely/dist/parser/on-commit-action-parse.d.ts +2 -0
- package/dist/node_modules/kysely/dist/parser/on-commit-action-parse.js +8 -0
- package/dist/node_modules/kysely/dist/parser/on-modify-action-parser.d.ts +2 -0
- package/dist/node_modules/kysely/dist/parser/on-modify-action-parser.js +8 -0
- package/dist/node_modules/kysely/dist/parser/order-by-parser.d.ts +25 -0
- package/dist/node_modules/kysely/dist/parser/order-by-parser.js +67 -0
- package/dist/node_modules/kysely/dist/parser/parse-utils.d.ts +10 -0
- package/dist/node_modules/kysely/dist/parser/parse-utils.js +33 -0
- package/dist/node_modules/kysely/dist/parser/partition-by-parser.d.ts +6 -0
- package/dist/node_modules/kysely/dist/parser/partition-by-parser.js +6 -0
- package/dist/node_modules/kysely/dist/parser/reference-parser.d.ts +31 -0
- package/dist/node_modules/kysely/dist/parser/reference-parser.js +93 -0
- package/dist/node_modules/kysely/dist/parser/returning-parser.d.ts +8 -0
- package/dist/node_modules/kysely/dist/parser/returning-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/savepoint-parser.d.ts +4 -0
- package/dist/node_modules/kysely/dist/parser/savepoint-parser.js +9 -0
- package/dist/node_modules/kysely/dist/parser/select-from-parser.d.ts +6 -0
- package/dist/node_modules/kysely/dist/parser/select-from-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/select-parser.d.ts +36 -0
- package/dist/node_modules/kysely/dist/parser/select-parser.js +47 -0
- package/dist/node_modules/kysely/dist/parser/set-operation-parser.d.ts +5 -0
- package/dist/node_modules/kysely/dist/parser/set-operation-parser.js +14 -0
- package/dist/node_modules/kysely/dist/parser/table-parser.d.ts +24 -0
- package/dist/node_modules/kysely/dist/parser/table-parser.js +49 -0
- package/dist/node_modules/kysely/dist/parser/top-parser.d.ts +2 -0
- package/dist/node_modules/kysely/dist/parser/top-parser.js +17 -0
- package/dist/node_modules/kysely/dist/parser/tuple-parser.d.ts +47 -0
- package/dist/node_modules/kysely/dist/parser/tuple-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/unary-operation-parser.d.ts +8 -0
- package/dist/node_modules/kysely/dist/parser/unary-operation-parser.js +16 -0
- package/dist/node_modules/kysely/dist/parser/update-parser.d.ts +9 -0
- package/dist/node_modules/kysely/dist/parser/update-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/update-set-parser.d.ts +16 -0
- package/dist/node_modules/kysely/dist/parser/update-set-parser.js +23 -0
- package/dist/node_modules/kysely/dist/parser/value-parser.d.ts +13 -0
- package/dist/node_modules/kysely/dist/parser/value-parser.js +33 -0
- package/dist/node_modules/kysely/dist/parser/with-parser.d.ts +46 -0
- package/dist/node_modules/kysely/dist/parser/with-parser.js +34 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-plugin.d.ts +170 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-plugin.js +119 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-transformer.d.ts +9 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-transformer.js +16 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case.d.ts +15 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case.js +108 -0
- package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-plugin.d.ts +70 -0
- package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-plugin.js +16 -0
- package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-transformer.d.ts +11 -0
- package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-transformer.js +39 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.d.ts +211 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.js +159 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.d.ts +8 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.js +26 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists.d.ts +44 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists.js +63 -0
- package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-plugin.d.ts +73 -0
- package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-plugin.js +19 -0
- package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-transformer.d.ts +15 -0
- package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-transformer.js +20 -0
- package/dist/node_modules/kysely/dist/plugin/kysely-plugin.d.ts +73 -0
- package/dist/node_modules/kysely/dist/plugin/kysely-plugin.js +2 -0
- package/dist/node_modules/kysely/dist/plugin/noop-plugin.d.ts +64 -0
- package/dist/node_modules/kysely/dist/plugin/noop-plugin.js +9 -0
- package/dist/node_modules/kysely/dist/plugin/parse-json-results/parse-json-results-plugin.d.ts +141 -0
- package/dist/node_modules/kysely/dist/plugin/parse-json-results/parse-json-results-plugin.js +143 -0
- package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-plugin.d.ts +81 -0
- package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-plugin.js +27 -0
- package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-transformer.d.ts +5 -0
- package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-transformer.js +20 -0
- package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-plugin.d.ts +66 -0
- package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-plugin.js +14 -0
- package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-transformer.d.ts +18 -0
- package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-transformer.js +170 -0
- package/dist/node_modules/kysely/dist/query-builder/aggregate-function-builder.d.ts +379 -0
- package/dist/node_modules/kysely/dist/query-builder/aggregate-function-builder.js +238 -0
- package/dist/node_modules/kysely/dist/query-builder/case-builder.d.ts +184 -0
- package/dist/node_modules/kysely/dist/query-builder/case-builder.js +116 -0
- package/dist/node_modules/kysely/dist/query-builder/cte-builder.d.ts +20 -0
- package/dist/node_modules/kysely/dist/query-builder/cte-builder.js +34 -0
- package/dist/node_modules/kysely/dist/query-builder/delete-query-builder.d.ts +1344 -0
- package/dist/node_modules/kysely/dist/query-builder/delete-query-builder.js +497 -0
- package/dist/node_modules/kysely/dist/query-builder/delete-result.d.ts +4 -0
- package/dist/node_modules/kysely/dist/query-builder/delete-result.js +7 -0
- package/dist/node_modules/kysely/dist/query-builder/function-module.d.ts +592 -0
- package/dist/node_modules/kysely/dist/query-builder/function-module.js +60 -0
- package/dist/node_modules/kysely/dist/query-builder/having-interface.d.ts +15 -0
- package/dist/node_modules/kysely/dist/query-builder/having-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/insert-query-builder.d.ts +1231 -0
- package/dist/node_modules/kysely/dist/query-builder/insert-query-builder.js +1151 -0
- package/dist/node_modules/kysely/dist/query-builder/insert-result.d.ts +46 -0
- package/dist/node_modules/kysely/dist/query-builder/insert-result.js +50 -0
- package/dist/node_modules/kysely/dist/query-builder/join-builder.d.ts +38 -0
- package/dist/node_modules/kysely/dist/query-builder/join-builder.js +48 -0
- package/dist/node_modules/kysely/dist/query-builder/json-path-builder.d.ts +294 -0
- package/dist/node_modules/kysely/dist/query-builder/json-path-builder.js +203 -0
- package/dist/node_modules/kysely/dist/query-builder/merge-query-builder.d.ts +993 -0
- package/dist/node_modules/kysely/dist/query-builder/merge-query-builder.js +613 -0
- package/dist/node_modules/kysely/dist/query-builder/merge-result.d.ts +4 -0
- package/dist/node_modules/kysely/dist/query-builder/merge-result.js +7 -0
- package/dist/node_modules/kysely/dist/query-builder/no-result-error.d.ts +10 -0
- package/dist/node_modules/kysely/dist/query-builder/no-result-error.js +14 -0
- package/dist/node_modules/kysely/dist/query-builder/on-conflict-builder.d.ts +875 -0
- package/dist/node_modules/kysely/dist/query-builder/on-conflict-builder.js +254 -0
- package/dist/node_modules/kysely/dist/query-builder/order-by-interface.d.ts +158 -0
- package/dist/node_modules/kysely/dist/query-builder/order-by-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/order-by-item-builder.d.ts +43 -0
- package/dist/node_modules/kysely/dist/query-builder/order-by-item-builder.js +72 -0
- package/dist/node_modules/kysely/dist/query-builder/output-interface.d.ts +138 -0
- package/dist/node_modules/kysely/dist/query-builder/output-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/over-builder.d.ts +101 -0
- package/dist/node_modules/kysely/dist/query-builder/over-builder.js +37 -0
- package/dist/node_modules/kysely/dist/query-builder/returning-interface.d.ts +87 -0
- package/dist/node_modules/kysely/dist/query-builder/returning-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/select-query-builder-expression.d.ts +28 -0
- package/dist/node_modules/kysely/dist/query-builder/select-query-builder-expression.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/select-query-builder.d.ts +2413 -0
- package/dist/node_modules/kysely/dist/query-builder/select-query-builder.js +387 -0
- package/dist/node_modules/kysely/dist/query-builder/update-query-builder.d.ts +1388 -0
- package/dist/node_modules/kysely/dist/query-builder/update-query-builder.js +506 -0
- package/dist/node_modules/kysely/dist/query-builder/update-result.d.ts +14 -0
- package/dist/node_modules/kysely/dist/query-builder/update-result.js +18 -0
- package/dist/node_modules/kysely/dist/query-builder/where-interface.d.ts +382 -0
- package/dist/node_modules/kysely/dist/query-builder/where-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-compiler/compiled-query.d.ts +14 -0
- package/dist/node_modules/kysely/dist/query-compiler/compiled-query.js +25 -0
- package/dist/node_modules/kysely/dist/query-compiler/default-query-compiler.d.ts +243 -0
- package/dist/node_modules/kysely/dist/query-compiler/default-query-compiler.js +1452 -0
- package/dist/node_modules/kysely/dist/query-compiler/query-compiler.d.ts +9 -0
- package/dist/node_modules/kysely/dist/query-compiler/query-compiler.js +2 -0
- package/dist/node_modules/kysely/dist/query-creator.d.ts +593 -0
- package/dist/node_modules/kysely/dist/query-creator.js +620 -0
- package/dist/node_modules/kysely/dist/query-executor/default-query-executor.d.ts +52 -0
- package/dist/node_modules/kysely/dist/query-executor/default-query-executor.js +37 -0
- package/dist/node_modules/kysely/dist/query-executor/noop-query-executor.d.ts +50 -0
- package/dist/node_modules/kysely/dist/query-executor/noop-query-executor.js +34 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor-base.d.ts +69 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor-base.js +169 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor-provider.d.ts +8 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor-provider.js +2 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor.d.ts +75 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor.js +2 -0
- package/dist/node_modules/kysely/dist/query-finalizer.d.ts +27 -0
- package/dist/node_modules/kysely/dist/query-finalizer.js +23 -0
- package/dist/node_modules/kysely/dist/raw-builder/raw-builder.d.ts +219 -0
- package/dist/node_modules/kysely/dist/raw-builder/raw-builder.js +84 -0
- package/dist/node_modules/kysely/dist/raw-builder/sql.d.ts +358 -0
- package/dist/node_modules/kysely/dist/raw-builder/sql.js +76 -0
- package/dist/node_modules/kysely/dist/readonly/index.d.ts +6 -0
- package/dist/node_modules/kysely/dist/readonly/index.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-compiled-query.d.ts +6 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-compiled-query.js +6 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-database-connection.d.ts +19 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-database-connection.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-driver.d.ts +5 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-driver.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-kysely.d.ts +230 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-kysely.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-query-creator.d.ts +37 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-query-creator.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-with-parser.d.ts +32 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-with-parser.js +2 -0
- package/dist/node_modules/kysely/dist/schema/alter-column-builder.d.ts +53 -0
- package/dist/node_modules/kysely/dist/schema/alter-column-builder.js +70 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-add-foreign-key-constraint-builder.d.ts +33 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-add-foreign-key-constraint-builder.js +64 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-add-index-builder.d.ts +157 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-add-index-builder.js +151 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-builder.d.ts +151 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-builder.js +269 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-drop-constraint-builder.d.ts +27 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-drop-constraint-builder.js +56 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-executor.d.ts +19 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-executor.js +17 -0
- package/dist/node_modules/kysely/dist/schema/alter-type-add-value-builder.d.ts +25 -0
- package/dist/node_modules/kysely/dist/schema/alter-type-add-value-builder.js +50 -0
- package/dist/node_modules/kysely/dist/schema/alter-type-builder.d.ts +33 -0
- package/dist/node_modules/kysely/dist/schema/alter-type-builder.js +62 -0
- package/dist/node_modules/kysely/dist/schema/check-constraint-builder.d.ts +13 -0
- package/dist/node_modules/kysely/dist/schema/check-constraint-builder.js +17 -0
- package/dist/node_modules/kysely/dist/schema/column-definition-builder.d.ts +514 -0
- package/dist/node_modules/kysely/dist/schema/column-definition-builder.js +597 -0
- package/dist/node_modules/kysely/dist/schema/create-index-builder.d.ts +205 -0
- package/dist/node_modules/kysely/dist/schema/create-index-builder.js +185 -0
- package/dist/node_modules/kysely/dist/schema/create-schema-builder.d.ts +25 -0
- package/dist/node_modules/kysely/dist/schema/create-schema-builder.js +31 -0
- package/dist/node_modules/kysely/dist/schema/create-table-add-index-builder.d.ts +35 -0
- package/dist/node_modules/kysely/dist/schema/create-table-add-index-builder.js +24 -0
- package/dist/node_modules/kysely/dist/schema/create-table-builder.d.ts +379 -0
- package/dist/node_modules/kysely/dist/schema/create-table-builder.js +465 -0
- package/dist/node_modules/kysely/dist/schema/create-type-builder.d.ts +34 -0
- package/dist/node_modules/kysely/dist/schema/create-type-builder.js +40 -0
- package/dist/node_modules/kysely/dist/schema/create-view-builder.d.ts +49 -0
- package/dist/node_modules/kysely/dist/schema/create-view-builder.js +95 -0
- package/dist/node_modules/kysely/dist/schema/drop-column-builder.d.ts +12 -0
- package/dist/node_modules/kysely/dist/schema/drop-column-builder.js +18 -0
- package/dist/node_modules/kysely/dist/schema/drop-index-builder.d.ts +31 -0
- package/dist/node_modules/kysely/dist/schema/drop-index-builder.js +54 -0
- package/dist/node_modules/kysely/dist/schema/drop-schema-builder.d.ts +26 -0
- package/dist/node_modules/kysely/dist/schema/drop-schema-builder.js +41 -0
- package/dist/node_modules/kysely/dist/schema/drop-table-builder.d.ts +32 -0
- package/dist/node_modules/kysely/dist/schema/drop-table-builder.js +54 -0
- package/dist/node_modules/kysely/dist/schema/drop-type-builder.d.ts +32 -0
- package/dist/node_modules/kysely/dist/schema/drop-type-builder.js +47 -0
- package/dist/node_modules/kysely/dist/schema/drop-view-builder.d.ts +27 -0
- package/dist/node_modules/kysely/dist/schema/drop-view-builder.js +49 -0
- package/dist/node_modules/kysely/dist/schema/foreign-key-constraint-builder.d.ts +28 -0
- package/dist/node_modules/kysely/dist/schema/foreign-key-constraint-builder.js +45 -0
- package/dist/node_modules/kysely/dist/schema/primary-key-constraint-builder.d.ts +17 -0
- package/dist/node_modules/kysely/dist/schema/primary-key-constraint-builder.js +34 -0
- package/dist/node_modules/kysely/dist/schema/refresh-materialized-view-builder.d.ts +48 -0
- package/dist/node_modules/kysely/dist/schema/refresh-materialized-view-builder.js +72 -0
- package/dist/node_modules/kysely/dist/schema/schema-module.d.ts +254 -0
- package/dist/node_modules/kysely/dist/schema/schema-module.js +356 -0
- package/dist/node_modules/kysely/dist/schema/unique-constraint-builder.d.ts +23 -0
- package/dist/node_modules/kysely/dist/schema/unique-constraint-builder.js +42 -0
- package/dist/node_modules/kysely/dist/util/abort.d.ts +49 -0
- package/dist/node_modules/kysely/dist/util/abort.js +78 -0
- package/dist/node_modules/kysely/dist/util/column-type.d.ts +229 -0
- package/dist/node_modules/kysely/dist/util/column-type.js +2 -0
- package/dist/node_modules/kysely/dist/util/compilable.d.ts +5 -0
- package/dist/node_modules/kysely/dist/util/compilable.js +5 -0
- package/dist/node_modules/kysely/dist/util/deferred.d.ts +7 -0
- package/dist/node_modules/kysely/dist/util/deferred.js +23 -0
- package/dist/node_modules/kysely/dist/util/executable.d.ts +35 -0
- package/dist/node_modules/kysely/dist/util/executable.js +2 -0
- package/dist/node_modules/kysely/dist/util/explainable.d.ts +40 -0
- package/dist/node_modules/kysely/dist/util/explainable.js +2 -0
- package/dist/node_modules/kysely/dist/util/infer-result.d.ts +48 -0
- package/dist/node_modules/kysely/dist/util/infer-result.js +2 -0
- package/dist/node_modules/kysely/dist/util/json-object-args.d.ts +3 -0
- package/dist/node_modules/kysely/dist/util/json-object-args.js +32 -0
- package/dist/node_modules/kysely/dist/util/log-once.d.ts +5 -0
- package/dist/node_modules/kysely/dist/util/log-once.js +13 -0
- package/dist/node_modules/kysely/dist/util/log.d.ts +28 -0
- package/dist/node_modules/kysely/dist/util/log.js +56 -0
- package/dist/node_modules/kysely/dist/util/object-utils.d.ts +24 -0
- package/dist/node_modules/kysely/dist/util/object-utils.js +144 -0
- package/dist/node_modules/kysely/dist/util/performance-now.d.ts +1 -0
- package/dist/node_modules/kysely/dist/util/performance-now.js +10 -0
- package/dist/node_modules/kysely/dist/util/provide-controlled-connection.d.ts +8 -0
- package/dist/node_modules/kysely/dist/util/provide-controlled-connection.js +22 -0
- package/dist/node_modules/kysely/dist/util/query-id.d.ts +4 -0
- package/dist/node_modules/kysely/dist/util/query-id.js +14 -0
- package/dist/node_modules/kysely/dist/util/random-string.d.ts +1 -0
- package/dist/node_modules/kysely/dist/util/random-string.js +75 -0
- package/dist/node_modules/kysely/dist/util/stack-trace-utils.d.ts +1 -0
- package/dist/node_modules/kysely/dist/util/stack-trace-utils.js +14 -0
- package/dist/node_modules/kysely/dist/util/streamable.d.ts +38 -0
- package/dist/node_modules/kysely/dist/util/streamable.js +2 -0
- package/dist/node_modules/kysely/dist/util/type-error.d.ts +3 -0
- package/dist/node_modules/kysely/dist/util/type-error.js +2 -0
- package/dist/node_modules/kysely/dist/util/type-utils.d.ts +205 -0
- package/dist/node_modules/kysely/dist/util/type-utils.js +2 -0
- package/dist/node_modules/kysely/outdated-typescript.d.ts +5 -0
- package/dist/node_modules/kysely/package.json +128 -0
- package/dist/node_modules/longest-streak/index.d.ts +11 -0
- package/dist/node_modules/longest-streak/index.js +36 -0
- package/dist/node_modules/longest-streak/license +22 -0
- package/dist/node_modules/longest-streak/package.json +73 -0
- package/dist/node_modules/longest-streak/readme.md +150 -0
- package/dist/node_modules/markdown-table/index.d.ts +171 -0
- package/dist/node_modules/markdown-table/index.d.ts.map +1 -0
- package/dist/node_modules/markdown-table/index.js +393 -0
- package/dist/node_modules/markdown-table/license +22 -0
- package/dist/node_modules/markdown-table/package.json +77 -0
- package/dist/node_modules/markdown-table/readme.md +344 -0
- package/dist/node_modules/mdast-util-find-and-replace/index.d.ts +9 -0
- package/dist/node_modules/mdast-util-find-and-replace/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-find-and-replace/index.js +11 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.d.ts +79 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +257 -0
- package/dist/node_modules/mdast-util-find-and-replace/license +22 -0
- package/dist/node_modules/mdast-util-find-and-replace/package.json +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/readme.md +366 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/index.d.ts +23 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/index.js +2 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +53 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.js +1455 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +321 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/types.js +2 -0
- package/dist/node_modules/mdast-util-from-markdown/index.d.ts +23 -0
- package/dist/node_modules/mdast-util-from-markdown/index.js +2 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.d.ts +53 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +1270 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/types.d.ts +321 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/types.js +2 -0
- package/dist/node_modules/mdast-util-from-markdown/license +22 -0
- package/dist/node_modules/mdast-util-from-markdown/package.json +98 -0
- package/dist/node_modules/mdast-util-from-markdown/readme.md +549 -0
- package/dist/node_modules/mdast-util-gfm/index.d.ts +12 -0
- package/dist/node_modules/mdast-util-gfm/index.js +2 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.d.ts +24 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +63 -0
- package/dist/node_modules/mdast-util-gfm/license +22 -0
- package/dist/node_modules/mdast-util-gfm/package.json +125 -0
- package/dist/node_modules/mdast-util-gfm/readme.md +497 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/index.d.ts +1 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.d.ts +18 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/license +22 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/readme.md +334 -0
- package/dist/node_modules/mdast-util-gfm-footnote/index.d.ts +34 -0
- package/dist/node_modules/mdast-util-gfm-footnote/index.js +2 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.d.ts +22 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
- package/dist/node_modules/mdast-util-gfm-footnote/license +22 -0
- package/dist/node_modules/mdast-util-gfm-footnote/package.json +111 -0
- package/dist/node_modules/mdast-util-gfm-footnote/readme.md +494 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/index.d.ts +19 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.d.ts +19 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +133 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/license +22 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/package.json +84 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/readme.md +350 -0
- package/dist/node_modules/mdast-util-gfm-table/index.d.ts +54 -0
- package/dist/node_modules/mdast-util-gfm-table/index.js +2 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.d.ts +51 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
- package/dist/node_modules/mdast-util-gfm-table/license +22 -0
- package/dist/node_modules/mdast-util-gfm-table/package.json +101 -0
- package/dist/node_modules/mdast-util-gfm-table/readme.md +605 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/index.d.ts +4 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.d.ts +23 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/license +22 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/readme.md +366 -0
- package/dist/node_modules/mdast-util-phrasing/index.d.ts +1 -0
- package/dist/node_modules/mdast-util-phrasing/index.js +1 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.d.ts +3 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +45 -0
- package/dist/node_modules/mdast-util-phrasing/license +23 -0
- package/dist/node_modules/mdast-util-phrasing/package.json +78 -0
- package/dist/node_modules/mdast-util-phrasing/readme.md +200 -0
- package/dist/node_modules/mdast-util-to-markdown/index.d.ts +18 -0
- package/dist/node_modules/mdast-util-to-markdown/index.js +3 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/configure.d.ts +14 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/configure.js +98 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +40 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +41 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +86 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +83 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +67 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +84 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +27 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +78 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +92 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts +42 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +28 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +86 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +78 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +37 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +129 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +73 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +107 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +27 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +67 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +30 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +17 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +27 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/index.d.ts +14 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/index.js +213 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/join.d.ts +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/join.js +56 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/types.d.ts +1005 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/types.js +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.js +160 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/association.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +12 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +42 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +30 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +21 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +93 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +110 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +704 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +27 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +14 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +39 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +14 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +39 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +40 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +17 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.js +263 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/track.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
- package/dist/node_modules/mdast-util-to-markdown/license +22 -0
- package/dist/node_modules/mdast-util-to-markdown/package.json +88 -0
- package/dist/node_modules/mdast-util-to-markdown/readme.md +814 -0
- package/dist/node_modules/mdast-util-to-string/index.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-string/index.js +5 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +108 -0
- package/dist/node_modules/mdast-util-to-string/license +22 -0
- package/dist/node_modules/mdast-util-to-string/package.json +78 -0
- package/dist/node_modules/mdast-util-to-string/readme.md +218 -0
- package/dist/node_modules/micromark/dev/index.d.ts +82 -0
- package/dist/node_modules/micromark/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/index.js +68 -0
- package/dist/node_modules/micromark/dev/lib/compile.d.ts +16 -0
- package/dist/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/compile.js +1162 -0
- package/dist/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
- package/dist/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/constructs.js +101 -0
- package/dist/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
- package/dist/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/create-tokenizer.js +718 -0
- package/dist/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
- package/dist/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/initialize/content.js +99 -0
- package/dist/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
- package/dist/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/initialize/document.js +449 -0
- package/dist/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
- package/dist/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
- package/dist/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
- package/dist/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/initialize/text.js +248 -0
- package/dist/node_modules/micromark/dev/lib/parse.d.ts +10 -0
- package/dist/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/parse.js +58 -0
- package/dist/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
- package/dist/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/postprocess.js +19 -0
- package/dist/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
- package/dist/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/preprocess.js +139 -0
- package/dist/node_modules/micromark/dev/stream.d.ts +35 -0
- package/dist/node_modules/micromark/dev/stream.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/stream.js +270 -0
- package/dist/node_modules/micromark/index.d.ts +82 -0
- package/dist/node_modules/micromark/index.d.ts.map +1 -0
- package/dist/node_modules/micromark/index.js +60 -0
- package/dist/node_modules/micromark/lib/compile.d.ts +16 -0
- package/dist/node_modules/micromark/lib/compile.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/compile.js +1068 -0
- package/dist/node_modules/micromark/lib/constructs.d.ts +73 -0
- package/dist/node_modules/micromark/lib/constructs.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +613 -0
- package/dist/node_modules/micromark/lib/initialize/content.d.ts +4 -0
- package/dist/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +79 -0
- package/dist/node_modules/micromark/lib/initialize/document.d.ts +10 -0
- package/dist/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +370 -0
- package/dist/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
- package/dist/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +58 -0
- package/dist/node_modules/micromark/lib/initialize/text.d.ts +8 -0
- package/dist/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +216 -0
- package/dist/node_modules/micromark/lib/parse.d.ts +10 -0
- package/dist/node_modules/micromark/lib/parse.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/parse.js +56 -0
- package/dist/node_modules/micromark/lib/postprocess.d.ts +9 -0
- package/dist/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/postprocess.js +18 -0
- package/dist/node_modules/micromark/lib/preprocess.d.ts +13 -0
- package/dist/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/preprocess.js +112 -0
- package/dist/node_modules/micromark/license +22 -0
- package/dist/node_modules/micromark/package.json +87 -0
- package/dist/node_modules/micromark/readme.md +488 -0
- package/dist/node_modules/micromark/stream.d.ts +35 -0
- package/dist/node_modules/micromark/stream.d.ts.map +1 -0
- package/dist/node_modules/micromark/stream.js +256 -0
- package/dist/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
- package/dist/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/index.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.js +294 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +472 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +178 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +229 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +938 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.js +658 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +119 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +71 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +213 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
- package/dist/node_modules/micromark-core-commonmark/index.d.ts +23 -0
- package/dist/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/index.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +231 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +422 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +159 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +163 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +191 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +827 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +561 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +110 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +63 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +213 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +187 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/license +22 -0
- package/dist/node_modules/micromark-core-commonmark/package.json +62 -0
- package/dist/node_modules/micromark-core-commonmark/readme.md +171 -0
- package/dist/node_modules/micromark-extension-gfm/index.d.ts +28 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +69 -0
- package/dist/node_modules/micromark-extension-gfm/license +22 -0
- package/dist/node_modules/micromark-extension-gfm/package.json +107 -0
- package/dist/node_modules/micromark-extension-gfm/readme.md +433 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/index.d.ts +24 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.js +56 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.js +983 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/index.d.ts +24 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/html.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/readme.md +422 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/index.d.ts +164 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/index.js +3 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/html.d.ts +25 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/html.js +226 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.d.ts +9 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.js +558 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/index.d.ts +164 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/html.d.ts +25 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.d.ts +9 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/readme.md +656 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/index.d.ts +30 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/index.js +3 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/html.d.ts +13 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/html.js +26 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/syntax.d.ts +12 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/syntax.js +183 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/index.d.ts +24 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/html.d.ts +13 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.d.ts +12 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/readme.md +304 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/index.d.ts +55 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +51 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +231 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +11 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.js +153 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +14 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +64 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +18 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +964 -0
- package/dist/node_modules/micromark-extension-gfm-table/index.d.ts +55 -0
- package/dist/node_modules/micromark-extension-gfm-table/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +51 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +222 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/html.d.ts +11 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/html.js +135 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +14 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +18 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +846 -0
- package/dist/node_modules/micromark-extension-gfm-table/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-table/package.json +86 -0
- package/dist/node_modules/micromark-extension-gfm-table/readme.md +515 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/index.d.ts +1 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/lib/index.d.ts +12 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/readme.md +237 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/index.d.ts +17 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/html.d.ts +13 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/html.js +29 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/syntax.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/syntax.js +166 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/index.d.ts +17 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/html.d.ts +13 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/readme.md +305 -0
- package/dist/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
- package/dist/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-destination/dev/index.js +255 -0
- package/dist/node_modules/micromark-factory-destination/index.d.ts +42 -0
- package/dist/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-destination/index.js +206 -0
- package/dist/node_modules/micromark-factory-destination/license +22 -0
- package/dist/node_modules/micromark-factory-destination/package.json +57 -0
- package/dist/node_modules/micromark-factory-destination/readme.md +234 -0
- package/dist/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
- package/dist/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-label/dev/index.js +172 -0
- package/dist/node_modules/micromark-factory-label/index.d.ts +37 -0
- package/dist/node_modules/micromark-factory-label/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-label/index.js +148 -0
- package/dist/node_modules/micromark-factory-label/license +22 -0
- package/dist/node_modules/micromark-factory-label/package.json +60 -0
- package/dist/node_modules/micromark-factory-label/readme.md +224 -0
- package/dist/node_modules/micromark-factory-space/dev/index.d.ts +60 -0
- package/dist/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-space/dev/index.js +122 -0
- package/dist/node_modules/micromark-factory-space/index.d.ts +60 -0
- package/dist/node_modules/micromark-factory-space/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-space/index.js +116 -0
- package/dist/node_modules/micromark-factory-space/license +22 -0
- package/dist/node_modules/micromark-factory-space/package.json +46 -0
- package/dist/node_modules/micromark-factory-space/readme.md +225 -0
- package/dist/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
- package/dist/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-title/dev/index.js +169 -0
- package/dist/node_modules/micromark-factory-title/index.d.ts +36 -0
- package/dist/node_modules/micromark-factory-title/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-title/index.js +158 -0
- package/dist/node_modules/micromark-factory-title/license +22 -0
- package/dist/node_modules/micromark-factory-title/package.json +58 -0
- package/dist/node_modules/micromark-factory-title/readme.md +229 -0
- package/dist/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
- package/dist/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
- package/dist/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
- package/dist/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +44 -0
- package/dist/node_modules/micromark-factory-whitespace/license +22 -0
- package/dist/node_modules/micromark-factory-whitespace/package.json +57 -0
- package/dist/node_modules/micromark-factory-whitespace/readme.md +205 -0
- package/dist/node_modules/micromark-util-character/dev/index.d.ts +195 -0
- package/dist/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-character/dev/index.js +252 -0
- package/dist/node_modules/micromark-util-character/index.d.ts +195 -0
- package/dist/node_modules/micromark-util-character/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-character/index.js +246 -0
- package/dist/node_modules/micromark-util-character/license +22 -0
- package/dist/node_modules/micromark-util-character/package.json +57 -0
- package/dist/node_modules/micromark-util-character/readme.md +446 -0
- package/dist/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
- package/dist/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-chunked/dev/index.js +89 -0
- package/dist/node_modules/micromark-util-chunked/index.d.ts +41 -0
- package/dist/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-chunked/index.js +81 -0
- package/dist/node_modules/micromark-util-chunked/license +22 -0
- package/dist/node_modules/micromark-util-chunked/package.json +57 -0
- package/dist/node_modules/micromark-util-chunked/readme.md +219 -0
- package/dist/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
- package/dist/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-classify-character/dev/index.js +38 -0
- package/dist/node_modules/micromark-util-classify-character/index.d.ts +18 -0
- package/dist/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +27 -0
- package/dist/node_modules/micromark-util-classify-character/license +22 -0
- package/dist/node_modules/micromark-util-classify-character/package.json +59 -0
- package/dist/node_modules/micromark-util-classify-character/readme.md +205 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +143 -0
- package/dist/node_modules/micromark-util-combine-extensions/license +22 -0
- package/dist/node_modules/micromark-util-combine-extensions/package.json +52 -0
- package/dist/node_modules/micromark-util-combine-extensions/readme.md +201 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
- package/dist/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
- package/dist/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-decode-string/dev/index.js +53 -0
- package/dist/node_modules/micromark-util-decode-string/index.d.ts +14 -0
- package/dist/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +45 -0
- package/dist/node_modules/micromark-util-decode-string/license +22 -0
- package/dist/node_modules/micromark-util-decode-string/package.json +63 -0
- package/dist/node_modules/micromark-util-decode-string/readme.md +179 -0
- package/dist/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
- package/dist/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-edit-map/dev/index.js +237 -0
- package/dist/node_modules/micromark-util-edit-map/index.d.ts +78 -0
- package/dist/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +225 -0
- package/dist/node_modules/micromark-util-edit-map/license +22 -0
- package/dist/node_modules/micromark-util-edit-map/package.json +48 -0
- package/dist/node_modules/micromark-util-edit-map/readme.md +234 -0
- package/dist/node_modules/micromark-util-encode/index.d.ts +14 -0
- package/dist/node_modules/micromark-util-encode/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-encode/index.js +33 -0
- package/dist/node_modules/micromark-util-encode/license +22 -0
- package/dist/node_modules/micromark-util-encode/package.json +47 -0
- package/dist/node_modules/micromark-util-encode/readme.md +176 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +93 -0
- package/dist/node_modules/micromark-util-html-tag-name/license +22 -0
- package/dist/node_modules/micromark-util-html-tag-name/package.json +47 -0
- package/dist/node_modules/micromark-util-html-tag-name/readme.md +193 -0
- package/dist/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
- package/dist/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +33 -0
- package/dist/node_modules/micromark-util-normalize-identifier/license +22 -0
- package/dist/node_modules/micromark-util-normalize-identifier/package.json +58 -0
- package/dist/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
- package/dist/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
- package/dist/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +32 -0
- package/dist/node_modules/micromark-util-resolve-all/license +22 -0
- package/dist/node_modules/micromark-util-resolve-all/package.json +48 -0
- package/dist/node_modules/micromark-util-resolve-all/readme.md +238 -0
- package/dist/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
- package/dist/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +107 -0
- package/dist/node_modules/micromark-util-sanitize-uri/license +22 -0
- package/dist/node_modules/micromark-util-sanitize-uri/package.json +59 -0
- package/dist/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
- package/dist/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
- package/dist/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +228 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
- package/dist/node_modules/micromark-util-subtokenize/license +22 -0
- package/dist/node_modules/micromark-util-subtokenize/package.json +60 -0
- package/dist/node_modules/micromark-util-subtokenize/readme.md +181 -0
- package/dist/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
- package/dist/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/codes.js +158 -0
- package/dist/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
- package/dist/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/constants.js +44 -0
- package/dist/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
- package/dist/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/default.js +4 -0
- package/dist/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
- package/dist/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/types.js +453 -0
- package/dist/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
- package/dist/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/values.js +109 -0
- package/dist/node_modules/micromark-util-symbol/license +22 -0
- package/dist/node_modules/micromark-util-symbol/package.json +43 -0
- package/dist/node_modules/micromark-util-symbol/readme.md +168 -0
- package/dist/node_modules/micromark-util-types/index.d.ts +1315 -0
- package/dist/node_modules/micromark-util-types/index.js +2 -0
- package/dist/node_modules/micromark-util-types/license +22 -0
- package/dist/node_modules/micromark-util-types/package.json +37 -0
- package/dist/node_modules/micromark-util-types/readme.md +151 -0
- package/dist/node_modules/ms/index.js +162 -0
- package/dist/node_modules/ms/license.md +21 -0
- package/dist/node_modules/ms/package.json +38 -0
- package/dist/node_modules/ms/readme.md +59 -0
- package/dist/node_modules/node-forge/LICENSE +331 -0
- package/dist/node_modules/node-forge/README.md +2075 -0
- package/dist/node_modules/node-forge/dist/forge.all.min.js +2 -0
- package/dist/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
- package/dist/node_modules/node-forge/dist/forge.min.js +2 -0
- package/dist/node_modules/node-forge/dist/forge.min.js.map +1 -0
- package/dist/node_modules/node-forge/dist/prime.worker.min.js +2 -0
- package/dist/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
- package/dist/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
- package/dist/node_modules/node-forge/lib/aes.js +1091 -0
- package/dist/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
- package/dist/node_modules/node-forge/lib/asn1-validator.js +91 -0
- package/dist/node_modules/node-forge/lib/asn1.js +1522 -0
- package/dist/node_modules/node-forge/lib/baseN.js +186 -0
- package/dist/node_modules/node-forge/lib/cipher.js +230 -0
- package/dist/node_modules/node-forge/lib/cipherModes.js +1027 -0
- package/dist/node_modules/node-forge/lib/des.js +496 -0
- package/dist/node_modules/node-forge/lib/ed25519.js +1117 -0
- package/dist/node_modules/node-forge/lib/forge.js +13 -0
- package/dist/node_modules/node-forge/lib/form.js +149 -0
- package/dist/node_modules/node-forge/lib/hmac.js +146 -0
- package/dist/node_modules/node-forge/lib/http.js +1371 -0
- package/dist/node_modules/node-forge/lib/index.all.js +16 -0
- package/dist/node_modules/node-forge/lib/index.js +33 -0
- package/dist/node_modules/node-forge/lib/jsbn.js +1294 -0
- package/dist/node_modules/node-forge/lib/kem.js +168 -0
- package/dist/node_modules/node-forge/lib/log.js +319 -0
- package/dist/node_modules/node-forge/lib/md.all.js +13 -0
- package/dist/node_modules/node-forge/lib/md.js +11 -0
- package/dist/node_modules/node-forge/lib/md5.js +289 -0
- package/dist/node_modules/node-forge/lib/mgf.js +12 -0
- package/dist/node_modules/node-forge/lib/mgf1.js +57 -0
- package/dist/node_modules/node-forge/lib/oids.js +180 -0
- package/dist/node_modules/node-forge/lib/pbe.js +1029 -0
- package/dist/node_modules/node-forge/lib/pbkdf2.js +211 -0
- package/dist/node_modules/node-forge/lib/pem.js +413 -0
- package/dist/node_modules/node-forge/lib/pkcs1.js +276 -0
- package/dist/node_modules/node-forge/lib/pkcs12.js +1081 -0
- package/dist/node_modules/node-forge/lib/pkcs7.js +1260 -0
- package/dist/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
- package/dist/node_modules/node-forge/lib/pki.js +102 -0
- package/dist/node_modules/node-forge/lib/prime.js +297 -0
- package/dist/node_modules/node-forge/lib/prime.worker.js +168 -0
- package/dist/node_modules/node-forge/lib/prng.js +419 -0
- package/dist/node_modules/node-forge/lib/pss.js +241 -0
- package/dist/node_modules/node-forge/lib/random.js +191 -0
- package/dist/node_modules/node-forge/lib/rc2.js +410 -0
- package/dist/node_modules/node-forge/lib/rsa.js +2014 -0
- package/dist/node_modules/node-forge/lib/sha1.js +319 -0
- package/dist/node_modules/node-forge/lib/sha256.js +327 -0
- package/dist/node_modules/node-forge/lib/sha512.js +561 -0
- package/dist/node_modules/node-forge/lib/socket.js +287 -0
- package/dist/node_modules/node-forge/lib/ssh.js +236 -0
- package/dist/node_modules/node-forge/lib/tls.js +4347 -0
- package/dist/node_modules/node-forge/lib/tlssocket.js +249 -0
- package/dist/node_modules/node-forge/lib/util.js +2652 -0
- package/dist/node_modules/node-forge/lib/x509.js +3946 -0
- package/dist/node_modules/node-forge/lib/xhr.js +738 -0
- package/dist/node_modules/node-forge/package.json +123 -0
- package/dist/node_modules/saxes/README.md +323 -0
- package/dist/node_modules/saxes/package.json +71 -0
- package/dist/node_modules/saxes/saxes.d.ts +635 -0
- package/dist/node_modules/saxes/saxes.js +2053 -0
- package/dist/node_modules/saxes/saxes.js.map +1 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/README.md +680 -0
- package/dist/node_modules/semver/bin/semver.js +195 -0
- package/dist/node_modules/semver/classes/comparator.js +143 -0
- package/dist/node_modules/semver/classes/index.js +7 -0
- package/dist/node_modules/semver/classes/range.js +577 -0
- package/dist/node_modules/semver/classes/semver.js +350 -0
- package/dist/node_modules/semver/functions/clean.js +8 -0
- package/dist/node_modules/semver/functions/cmp.js +54 -0
- package/dist/node_modules/semver/functions/coerce.js +62 -0
- package/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/dist/node_modules/semver/functions/compare.js +7 -0
- package/dist/node_modules/semver/functions/diff.js +60 -0
- package/dist/node_modules/semver/functions/eq.js +5 -0
- package/dist/node_modules/semver/functions/gt.js +5 -0
- package/dist/node_modules/semver/functions/gte.js +5 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +5 -0
- package/dist/node_modules/semver/functions/lte.js +5 -0
- package/dist/node_modules/semver/functions/major.js +5 -0
- package/dist/node_modules/semver/functions/minor.js +5 -0
- package/dist/node_modules/semver/functions/neq.js +5 -0
- package/dist/node_modules/semver/functions/parse.js +18 -0
- package/dist/node_modules/semver/functions/patch.js +5 -0
- package/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/dist/node_modules/semver/functions/rsort.js +5 -0
- package/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/node_modules/semver/functions/sort.js +5 -0
- package/dist/node_modules/semver/functions/truncate.js +48 -0
- package/dist/node_modules/semver/functions/valid.js +8 -0
- package/dist/node_modules/semver/index.js +93 -0
- package/dist/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/semver/internal/debug.js +11 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/node_modules/semver/internal/re.js +223 -0
- package/dist/node_modules/semver/package.json +78 -0
- package/dist/node_modules/semver/preload.js +4 -0
- package/dist/node_modules/semver/range.bnf +17 -0
- package/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/dist/node_modules/semver/ranges/outside.js +82 -0
- package/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/dist/node_modules/semver/ranges/subset.js +249 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/dist/node_modules/semver/ranges/valid.js +13 -0
- package/dist/node_modules/unist-util-is/index.d.ts +5 -0
- package/dist/node_modules/unist-util-is/index.d.ts.map +1 -0
- package/dist/node_modules/unist-util-is/index.js +7 -0
- package/dist/node_modules/unist-util-is/lib/index.d.ts +111 -0
- package/dist/node_modules/unist-util-is/lib/index.d.ts.map +1 -0
- package/dist/node_modules/unist-util-is/lib/index.js +296 -0
- package/dist/node_modules/unist-util-is/license +22 -0
- package/dist/node_modules/unist-util-is/package.json +103 -0
- package/dist/node_modules/unist-util-is/readme.md +351 -0
- package/dist/node_modules/unist-util-stringify-position/index.d.ts +1 -0
- package/dist/node_modules/unist-util-stringify-position/index.js +1 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.d.ts +61 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +84 -0
- package/dist/node_modules/unist-util-stringify-position/license +22 -0
- package/dist/node_modules/unist-util-stringify-position/package.json +80 -0
- package/dist/node_modules/unist-util-stringify-position/readme.md +206 -0
- package/dist/node_modules/unist-util-visit/index.d.ts +16 -0
- package/dist/node_modules/unist-util-visit/index.js +2 -0
- package/dist/node_modules/unist-util-visit/lib/index.d.ts +219 -0
- package/dist/node_modules/unist-util-visit/lib/index.d.ts.map +1 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +324 -0
- package/dist/node_modules/unist-util-visit/license +22 -0
- package/dist/node_modules/unist-util-visit/package.json +98 -0
- package/dist/node_modules/unist-util-visit/readme.md +373 -0
- package/dist/node_modules/unist-util-visit-parents/index.d.ts +18 -0
- package/dist/node_modules/unist-util-visit-parents/index.js +2 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.d.ts +10 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.d.ts.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +11 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.node.d.ts +10 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.node.d.ts.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.node.js +11 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.d.ts +540 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.d.ts.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +582 -0
- package/dist/node_modules/unist-util-visit-parents/license +22 -0
- package/dist/node_modules/unist-util-visit-parents/package.json +96 -0
- package/dist/node_modules/unist-util-visit-parents/readme.md +499 -0
- package/dist/node_modules/ws/LICENSE +20 -0
- package/dist/node_modules/ws/README.md +548 -0
- package/dist/node_modules/ws/browser.js +8 -0
- package/dist/node_modules/ws/index.js +22 -0
- package/dist/node_modules/ws/lib/buffer-util.js +131 -0
- package/dist/node_modules/ws/lib/constants.js +19 -0
- package/dist/node_modules/ws/lib/event-target.js +292 -0
- package/dist/node_modules/ws/lib/extension.js +203 -0
- package/dist/node_modules/ws/lib/limiter.js +55 -0
- package/dist/node_modules/ws/lib/permessage-deflate.js +530 -0
- package/dist/node_modules/ws/lib/receiver.js +743 -0
- package/dist/node_modules/ws/lib/sender.js +607 -0
- package/dist/node_modules/ws/lib/stream.js +161 -0
- package/dist/node_modules/ws/lib/subprotocol.js +62 -0
- package/dist/node_modules/ws/lib/validation.js +152 -0
- package/dist/node_modules/ws/lib/websocket-server.js +562 -0
- package/dist/node_modules/ws/lib/websocket.js +1421 -0
- package/dist/node_modules/ws/package.json +74 -0
- package/dist/node_modules/ws/wrapper.mjs +21 -0
- package/dist/node_modules/xmlchars/LICENSE +18 -0
- package/dist/node_modules/xmlchars/README.md +33 -0
- package/dist/node_modules/xmlchars/package.json +51 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
- package/dist/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
- package/dist/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
- package/dist/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
- package/dist/node_modules/xmlchars/xmlchars.d.ts +170 -0
- package/dist/node_modules/xmlchars/xmlchars.js +191 -0
- package/dist/node_modules/xmlchars/xmlchars.js.map +1 -0
- package/dist/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
- package/dist/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
- package/dist/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
- package/dist/node_modules/yaml/LICENSE +13 -0
- package/dist/node_modules/yaml/README.md +172 -0
- package/dist/node_modules/yaml/bin.mjs +11 -0
- package/dist/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/dist/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/dist/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/dist/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/dist/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/dist/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/dist/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/dist/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/dist/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/dist/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/dist/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/dist/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/dist/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/dist/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/dist/node_modules/yaml/browser/dist/errors.js +57 -0
- package/dist/node_modules/yaml/browser/dist/index.js +17 -0
- package/dist/node_modules/yaml/browser/dist/log.js +11 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/dist/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/dist/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/dist/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/dist/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/dist/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/dist/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/dist/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/dist/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/dist/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/dist/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/dist/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/dist/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/dist/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/dist/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/dist/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/dist/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/dist/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/dist/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/dist/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/dist/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/dist/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/dist/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/dist/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/dist/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/dist/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/dist/node_modules/yaml/browser/dist/util.js +11 -0
- package/dist/node_modules/yaml/browser/dist/visit.js +233 -0
- package/dist/node_modules/yaml/browser/index.js +5 -0
- package/dist/node_modules/yaml/browser/package.json +3 -0
- package/dist/node_modules/yaml/dist/cli.d.ts +8 -0
- package/dist/node_modules/yaml/dist/cli.mjs +201 -0
- package/dist/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/dist/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/dist/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/dist/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/dist/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/dist/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/dist/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/dist/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/dist/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/dist/node_modules/yaml/dist/compose/composer.js +224 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/dist/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/dist/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/dist/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/dist/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/dist/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/dist/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
- package/dist/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/dist/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/dist/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/dist/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/dist/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/dist/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/dist/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/dist/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/dist/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/dist/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/dist/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/dist/node_modules/yaml/dist/doc/Document.js +337 -0
- package/dist/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/dist/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/dist/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/dist/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/dist/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/dist/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/dist/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/dist/node_modules/yaml/dist/doc/directives.js +178 -0
- package/dist/node_modules/yaml/dist/errors.d.ts +21 -0
- package/dist/node_modules/yaml/dist/errors.js +62 -0
- package/dist/node_modules/yaml/dist/index.d.ts +25 -0
- package/dist/node_modules/yaml/dist/index.js +50 -0
- package/dist/node_modules/yaml/dist/log.d.ts +3 -0
- package/dist/node_modules/yaml/dist/log.js +19 -0
- package/dist/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/dist/node_modules/yaml/dist/nodes/Alias.js +120 -0
- package/dist/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/dist/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/dist/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/dist/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/dist/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/dist/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/dist/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/dist/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/dist/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/dist/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/dist/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/dist/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/dist/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/dist/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/dist/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/dist/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/dist/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/dist/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/dist/node_modules/yaml/dist/options.d.ts +350 -0
- package/dist/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/dist/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/dist/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/dist/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/dist/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/dist/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/dist/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/dist/node_modules/yaml/dist/parse/cst.js +112 -0
- package/dist/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/dist/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/dist/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/dist/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/dist/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/dist/node_modules/yaml/dist/parse/parser.js +980 -0
- package/dist/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/dist/node_modules/yaml/dist/public-api.js +107 -0
- package/dist/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/dist/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/dist/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/dist/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/dist/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/dist/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/dist/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/dist/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/dist/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/dist/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/dist/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/dist/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/dist/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/dist/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/dist/node_modules/yaml/dist/schema/tags.js +99 -0
- package/dist/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/dist/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/dist/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/dist/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/dist/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/dist/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/dist/node_modules/yaml/dist/test-events.js +134 -0
- package/dist/node_modules/yaml/dist/util.d.ts +16 -0
- package/dist/node_modules/yaml/dist/util.js +28 -0
- package/dist/node_modules/yaml/dist/visit.d.ts +102 -0
- package/dist/node_modules/yaml/dist/visit.js +236 -0
- package/dist/node_modules/yaml/package.json +97 -0
- package/dist/node_modules/yaml/util.js +2 -0
- package/dist/node_modules/zod/LICENSE +21 -0
- package/dist/node_modules/zod/README.md +208 -0
- package/dist/node_modules/zod/index.cjs +33 -0
- package/dist/node_modules/zod/index.d.cts +4 -0
- package/dist/node_modules/zod/index.d.ts +4 -0
- package/dist/node_modules/zod/index.js +4 -0
- package/dist/node_modules/zod/package.json +118 -0
- package/dist/node_modules/zod/src/index.ts +4 -0
- package/dist/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/dist/node_modules/zod/src/v3/errors.ts +13 -0
- package/dist/node_modules/zod/src/v3/external.ts +6 -0
- package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/dist/node_modules/zod/src/v3/index.ts +4 -0
- package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/dist/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/dist/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/dist/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/dist/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/dist/node_modules/zod/src/v3/types.ts +5136 -0
- package/dist/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/dist/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/dist/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/dist/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/dist/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/dist/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/dist/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/dist/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/dist/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/dist/node_modules/zod/src/v4/core/config.ts +15 -0
- package/dist/node_modules/zod/src/v4/core/core.ts +134 -0
- package/dist/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/dist/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/dist/node_modules/zod/src/v4/core/function.ts +176 -0
- package/dist/node_modules/zod/src/v4/core/index.ts +15 -0
- package/dist/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/dist/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/dist/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/dist/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/dist/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/dist/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/dist/node_modules/zod/src/v4/core/util.ts +775 -0
- package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/dist/node_modules/zod/src/v4/index.ts +4 -0
- package/dist/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/dist/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/dist/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/dist/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/dist/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/dist/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/dist/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/dist/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/dist/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/dist/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/dist/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/dist/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/dist/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/dist/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/dist/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/dist/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/dist/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/dist/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/dist/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/dist/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/dist/node_modules/zod/v3/ZodError.cjs +138 -0
- package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/zod/v3/ZodError.js +133 -0
- package/dist/node_modules/zod/v3/errors.cjs +17 -0
- package/dist/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/zod/v3/external.cjs +22 -0
- package/dist/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/zod/v3/external.d.ts +6 -0
- package/dist/node_modules/zod/v3/external.js +6 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.js +133 -0
- package/dist/node_modules/zod/v3/index.cjs +33 -0
- package/dist/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/zod/v3/index.d.ts +4 -0
- package/dist/node_modules/zod/v3/index.js +4 -0
- package/dist/node_modules/zod/v3/locales/en.cjs +111 -0
- package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/zod/v3/locales/en.js +109 -0
- package/dist/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.js +1 -0
- package/dist/node_modules/zod/v3/types.cjs +3775 -0
- package/dist/node_modules/zod/v3/types.d.cts +1031 -0
- package/dist/node_modules/zod/v3/types.d.ts +1031 -0
- package/dist/node_modules/zod/v3/types.js +3693 -0
- package/dist/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.js +1 -0
- package/dist/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
- package/dist/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/dist/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/dist/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/dist/node_modules/zod/v4/classic/compat.js +27 -0
- package/dist/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.js +41 -0
- package/dist/node_modules/zod/v4/classic/external.cjs +70 -0
- package/dist/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/dist/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/dist/node_modules/zod/v4/classic/external.js +18 -0
- package/dist/node_modules/zod/v4/classic/index.cjs +33 -0
- package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/dist/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/dist/node_modules/zod/v4/classic/index.js +4 -0
- package/dist/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.js +30 -0
- package/dist/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/dist/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/dist/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/dist/node_modules/zod/v4/classic/parse.js +6 -0
- package/dist/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/dist/node_modules/zod/v4/core/api.cjs +1039 -0
- package/dist/node_modules/zod/v4/core/api.d.cts +284 -0
- package/dist/node_modules/zod/v4/core/api.d.ts +284 -0
- package/dist/node_modules/zod/v4/core/api.js +906 -0
- package/dist/node_modules/zod/v4/core/checks.cjs +591 -0
- package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/dist/node_modules/zod/v4/core/checks.js +565 -0
- package/dist/node_modules/zod/v4/core/core.cjs +67 -0
- package/dist/node_modules/zod/v4/core/core.d.cts +49 -0
- package/dist/node_modules/zod/v4/core/core.d.ts +49 -0
- package/dist/node_modules/zod/v4/core/core.js +61 -0
- package/dist/node_modules/zod/v4/core/doc.cjs +39 -0
- package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/dist/node_modules/zod/v4/core/doc.js +35 -0
- package/dist/node_modules/zod/v4/core/errors.cjs +226 -0
- package/dist/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/dist/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/dist/node_modules/zod/v4/core/errors.js +195 -0
- package/dist/node_modules/zod/v4/core/function.cjs +102 -0
- package/dist/node_modules/zod/v4/core/function.d.cts +52 -0
- package/dist/node_modules/zod/v4/core/function.d.ts +52 -0
- package/dist/node_modules/zod/v4/core/function.js +75 -0
- package/dist/node_modules/zod/v4/core/index.cjs +44 -0
- package/dist/node_modules/zod/v4/core/index.d.cts +15 -0
- package/dist/node_modules/zod/v4/core/index.d.ts +15 -0
- package/dist/node_modules/zod/v4/core/index.js +15 -0
- package/dist/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/parse.cjs +87 -0
- package/dist/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/dist/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/dist/node_modules/zod/v4/core/parse.js +57 -0
- package/dist/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/dist/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/dist/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/dist/node_modules/zod/v4/core/regexes.js +95 -0
- package/dist/node_modules/zod/v4/core/registries.cjs +56 -0
- package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/dist/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/dist/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/dist/node_modules/zod/v4/core/schemas.js +1717 -0
- package/dist/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/dist/node_modules/zod/v4/core/util.cjs +539 -0
- package/dist/node_modules/zod/v4/core/util.d.cts +183 -0
- package/dist/node_modules/zod/v4/core/util.d.ts +183 -0
- package/dist/node_modules/zod/v4/core/util.js +493 -0
- package/dist/node_modules/zod/v4/core/versions.cjs +8 -0
- package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/zod/v4/core/versions.js +5 -0
- package/dist/node_modules/zod/v4/index.cjs +22 -0
- package/dist/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/index.js +3 -0
- package/dist/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ar.js +116 -0
- package/dist/node_modules/zod/v4/locales/az.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/az.js +115 -0
- package/dist/node_modules/zod/v4/locales/be.cjs +190 -0
- package/dist/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/be.js +164 -0
- package/dist/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ca.js +118 -0
- package/dist/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/dist/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/cs.js +135 -0
- package/dist/node_modules/zod/v4/locales/de.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/de.js +116 -0
- package/dist/node_modules/zod/v4/locales/en.cjs +145 -0
- package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/en.js +117 -0
- package/dist/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/eo.js +116 -0
- package/dist/node_modules/zod/v4/locales/es.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/es.js +117 -0
- package/dist/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/dist/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fa.js +122 -0
- package/dist/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/dist/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fi.js +122 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/dist/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr.js +116 -0
- package/dist/node_modules/zod/v4/locales/he.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/he.js +117 -0
- package/dist/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hu.js +117 -0
- package/dist/node_modules/zod/v4/locales/id.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/id.js +116 -0
- package/dist/node_modules/zod/v4/locales/index.cjs +84 -0
- package/dist/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/dist/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/dist/node_modules/zod/v4/locales/index.js +39 -0
- package/dist/node_modules/zod/v4/locales/it.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/it.js +117 -0
- package/dist/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ja.js +115 -0
- package/dist/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/kh.js +117 -0
- package/dist/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/dist/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ko.js +121 -0
- package/dist/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/mk.js +118 -0
- package/dist/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ms.js +116 -0
- package/dist/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/nl.js +117 -0
- package/dist/node_modules/zod/v4/locales/no.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/no.js +116 -0
- package/dist/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ota.js +117 -0
- package/dist/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pl.js +117 -0
- package/dist/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/dist/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ps.js +122 -0
- package/dist/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pt.js +116 -0
- package/dist/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/dist/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ru.js +164 -0
- package/dist/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sl.js +117 -0
- package/dist/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sv.js +118 -0
- package/dist/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ta.js +117 -0
- package/dist/node_modules/zod/v4/locales/th.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/th.js +117 -0
- package/dist/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/tr.js +115 -0
- package/dist/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ua.js +117 -0
- package/dist/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ur.js +117 -0
- package/dist/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/vi.js +116 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/dist/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.js +1 -0
- package/dist/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.js +17 -0
- package/dist/node_modules/zod/v4/mini/external.cjs +62 -0
- package/dist/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/dist/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/dist/node_modules/zod/v4/mini/external.js +13 -0
- package/dist/node_modules/zod/v4/mini/index.cjs +32 -0
- package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/mini/index.js +3 -0
- package/dist/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.js +30 -0
- package/dist/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.js +1 -0
- package/dist/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/dist/node_modules/zod/v4/mini/schemas.js +732 -0
- package/dist/node_modules/zod/v4-mini/index.cjs +17 -0
- package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/dist/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/dist/node_modules/zod/v4-mini/index.js +1 -0
- package/dist/node_modules/zwitch/index.d.ts +67 -0
- package/dist/node_modules/zwitch/index.js +118 -0
- package/dist/node_modules/zwitch/license +22 -0
- package/dist/node_modules/zwitch/package.json +72 -0
- package/dist/node_modules/zwitch/readme.md +226 -0
- package/dist/owner-report.d.ts +26 -0
- package/dist/owner-report.js +98 -0
- package/dist/policy.d.ts +3 -3
- package/dist/policy.js +2 -1
- package/dist/runtime-manifest.json +1 -0
- package/dist/server-ops.d.ts +10 -0
- package/dist/server-ops.js +231 -3
- package/dist/staged-connect.d.ts +37 -0
- package/dist/staged-connect.js +296 -0
- package/dist/staged-device.d.ts +109 -0
- package/dist/staged-device.js +227 -0
- package/dist/staged-session.d.ts +115 -0
- package/dist/staged-session.js +354 -0
- package/dist/state.d.ts +36 -8
- package/dist/state.js +101 -15
- package/package.json +10 -6
|
@@ -0,0 +1,3946 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Javascript implementation of X.509 and related components (such as
|
|
3
|
+
* Certification Signing Requests) of a Public Key Infrastructure.
|
|
4
|
+
*
|
|
5
|
+
* @author Dave Longley
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2010-2014 Digital Bazaar, Inc.
|
|
8
|
+
*
|
|
9
|
+
* The ASN.1 representation of an X.509v3 certificate is as follows
|
|
10
|
+
* (see RFC 2459):
|
|
11
|
+
*
|
|
12
|
+
* Certificate ::= SEQUENCE {
|
|
13
|
+
* tbsCertificate TBSCertificate,
|
|
14
|
+
* signatureAlgorithm AlgorithmIdentifier,
|
|
15
|
+
* signatureValue BIT STRING
|
|
16
|
+
* }
|
|
17
|
+
*
|
|
18
|
+
* TBSCertificate ::= SEQUENCE {
|
|
19
|
+
* version [0] EXPLICIT Version DEFAULT v1,
|
|
20
|
+
* serialNumber CertificateSerialNumber,
|
|
21
|
+
* signature AlgorithmIdentifier,
|
|
22
|
+
* issuer Name,
|
|
23
|
+
* validity Validity,
|
|
24
|
+
* subject Name,
|
|
25
|
+
* subjectPublicKeyInfo SubjectPublicKeyInfo,
|
|
26
|
+
* issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,
|
|
27
|
+
* -- If present, version shall be v2 or v3
|
|
28
|
+
* subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,
|
|
29
|
+
* -- If present, version shall be v2 or v3
|
|
30
|
+
* extensions [3] EXPLICIT Extensions OPTIONAL
|
|
31
|
+
* -- If present, version shall be v3
|
|
32
|
+
* }
|
|
33
|
+
*
|
|
34
|
+
* Version ::= INTEGER { v1(0), v2(1), v3(2) }
|
|
35
|
+
*
|
|
36
|
+
* CertificateSerialNumber ::= INTEGER
|
|
37
|
+
*
|
|
38
|
+
* Name ::= CHOICE {
|
|
39
|
+
* // only one possible choice for now
|
|
40
|
+
* RDNSequence
|
|
41
|
+
* }
|
|
42
|
+
*
|
|
43
|
+
* RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
|
|
44
|
+
*
|
|
45
|
+
* RelativeDistinguishedName ::= SET OF AttributeTypeAndValue
|
|
46
|
+
*
|
|
47
|
+
* AttributeTypeAndValue ::= SEQUENCE {
|
|
48
|
+
* type AttributeType,
|
|
49
|
+
* value AttributeValue
|
|
50
|
+
* }
|
|
51
|
+
* AttributeType ::= OBJECT IDENTIFIER
|
|
52
|
+
* AttributeValue ::= ANY DEFINED BY AttributeType
|
|
53
|
+
*
|
|
54
|
+
* Validity ::= SEQUENCE {
|
|
55
|
+
* notBefore Time,
|
|
56
|
+
* notAfter Time
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* Time ::= CHOICE {
|
|
60
|
+
* utcTime UTCTime,
|
|
61
|
+
* generalTime GeneralizedTime
|
|
62
|
+
* }
|
|
63
|
+
*
|
|
64
|
+
* UniqueIdentifier ::= BIT STRING
|
|
65
|
+
*
|
|
66
|
+
* SubjectPublicKeyInfo ::= SEQUENCE {
|
|
67
|
+
* algorithm AlgorithmIdentifier,
|
|
68
|
+
* subjectPublicKey BIT STRING
|
|
69
|
+
* }
|
|
70
|
+
*
|
|
71
|
+
* Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension
|
|
72
|
+
*
|
|
73
|
+
* Extension ::= SEQUENCE {
|
|
74
|
+
* extnID OBJECT IDENTIFIER,
|
|
75
|
+
* critical BOOLEAN DEFAULT FALSE,
|
|
76
|
+
* extnValue OCTET STRING
|
|
77
|
+
* }
|
|
78
|
+
*
|
|
79
|
+
* The only key algorithm currently supported for PKI is RSA.
|
|
80
|
+
*
|
|
81
|
+
* RSASSA-PSS signatures are described in RFC 3447 and RFC 4055.
|
|
82
|
+
*
|
|
83
|
+
* PKCS#10 v1.7 describes certificate signing requests:
|
|
84
|
+
*
|
|
85
|
+
* CertificationRequestInfo:
|
|
86
|
+
*
|
|
87
|
+
* CertificationRequestInfo ::= SEQUENCE {
|
|
88
|
+
* version INTEGER { v1(0) } (v1,...),
|
|
89
|
+
* subject Name,
|
|
90
|
+
* subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
|
|
91
|
+
* attributes [0] Attributes{{ CRIAttributes }}
|
|
92
|
+
* }
|
|
93
|
+
*
|
|
94
|
+
* Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }}
|
|
95
|
+
*
|
|
96
|
+
* CRIAttributes ATTRIBUTE ::= {
|
|
97
|
+
* ... -- add any locally defined attributes here -- }
|
|
98
|
+
*
|
|
99
|
+
* Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE {
|
|
100
|
+
* type ATTRIBUTE.&id({IOSet}),
|
|
101
|
+
* values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type})
|
|
102
|
+
* }
|
|
103
|
+
*
|
|
104
|
+
* CertificationRequest ::= SEQUENCE {
|
|
105
|
+
* certificationRequestInfo CertificationRequestInfo,
|
|
106
|
+
* signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }},
|
|
107
|
+
* signature BIT STRING
|
|
108
|
+
* }
|
|
109
|
+
*/
|
|
110
|
+
var forge = require('./forge');
|
|
111
|
+
require('./aes');
|
|
112
|
+
require('./asn1');
|
|
113
|
+
require('./des');
|
|
114
|
+
require('./md');
|
|
115
|
+
require('./mgf');
|
|
116
|
+
require('./oids');
|
|
117
|
+
require('./pem');
|
|
118
|
+
require('./pss');
|
|
119
|
+
require('./rsa');
|
|
120
|
+
require('./util');
|
|
121
|
+
|
|
122
|
+
// shortcut for asn.1 API
|
|
123
|
+
var asn1 = forge.asn1;
|
|
124
|
+
|
|
125
|
+
/* Public Key Infrastructure (PKI) implementation. */
|
|
126
|
+
var pki = module.exports = forge.pki = forge.pki || {};
|
|
127
|
+
var oids = pki.oids;
|
|
128
|
+
|
|
129
|
+
// short name OID mappings
|
|
130
|
+
var _shortNames = {};
|
|
131
|
+
_shortNames['CN'] = oids['commonName'];
|
|
132
|
+
_shortNames['commonName'] = 'CN';
|
|
133
|
+
_shortNames['C'] = oids['countryName'];
|
|
134
|
+
_shortNames['countryName'] = 'C';
|
|
135
|
+
_shortNames['L'] = oids['localityName'];
|
|
136
|
+
_shortNames['localityName'] = 'L';
|
|
137
|
+
_shortNames['ST'] = oids['stateOrProvinceName'];
|
|
138
|
+
_shortNames['stateOrProvinceName'] = 'ST';
|
|
139
|
+
_shortNames['O'] = oids['organizationName'];
|
|
140
|
+
_shortNames['organizationName'] = 'O';
|
|
141
|
+
_shortNames['OU'] = oids['organizationalUnitName'];
|
|
142
|
+
_shortNames['organizationalUnitName'] = 'OU';
|
|
143
|
+
_shortNames['E'] = oids['emailAddress'];
|
|
144
|
+
_shortNames['emailAddress'] = 'E';
|
|
145
|
+
|
|
146
|
+
// validator for an SubjectPublicKeyInfo structure
|
|
147
|
+
// Note: Currently only works with an RSA public key
|
|
148
|
+
var publicKeyValidator = forge.pki.rsa.publicKeyValidator;
|
|
149
|
+
|
|
150
|
+
// validator for an X.509v3 certificate
|
|
151
|
+
var x509CertificateValidator = {
|
|
152
|
+
name: 'Certificate',
|
|
153
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
154
|
+
type: asn1.Type.SEQUENCE,
|
|
155
|
+
constructed: true,
|
|
156
|
+
value: [{
|
|
157
|
+
name: 'Certificate.TBSCertificate',
|
|
158
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
159
|
+
type: asn1.Type.SEQUENCE,
|
|
160
|
+
constructed: true,
|
|
161
|
+
captureAsn1: 'tbsCertificate',
|
|
162
|
+
value: [{
|
|
163
|
+
name: 'Certificate.TBSCertificate.version',
|
|
164
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
165
|
+
type: 0,
|
|
166
|
+
constructed: true,
|
|
167
|
+
optional: true,
|
|
168
|
+
value: [{
|
|
169
|
+
name: 'Certificate.TBSCertificate.version.integer',
|
|
170
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
171
|
+
type: asn1.Type.INTEGER,
|
|
172
|
+
constructed: false,
|
|
173
|
+
capture: 'certVersion'
|
|
174
|
+
}]
|
|
175
|
+
}, {
|
|
176
|
+
name: 'Certificate.TBSCertificate.serialNumber',
|
|
177
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
178
|
+
type: asn1.Type.INTEGER,
|
|
179
|
+
constructed: false,
|
|
180
|
+
capture: 'certSerialNumber'
|
|
181
|
+
}, {
|
|
182
|
+
name: 'Certificate.TBSCertificate.signature',
|
|
183
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
184
|
+
type: asn1.Type.SEQUENCE,
|
|
185
|
+
constructed: true,
|
|
186
|
+
value: [{
|
|
187
|
+
name: 'Certificate.TBSCertificate.signature.algorithm',
|
|
188
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
189
|
+
type: asn1.Type.OID,
|
|
190
|
+
constructed: false,
|
|
191
|
+
capture: 'certinfoSignatureOid'
|
|
192
|
+
}, {
|
|
193
|
+
name: 'Certificate.TBSCertificate.signature.parameters',
|
|
194
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
195
|
+
optional: true,
|
|
196
|
+
captureAsn1: 'certinfoSignatureParams'
|
|
197
|
+
}]
|
|
198
|
+
}, {
|
|
199
|
+
name: 'Certificate.TBSCertificate.issuer',
|
|
200
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
201
|
+
type: asn1.Type.SEQUENCE,
|
|
202
|
+
constructed: true,
|
|
203
|
+
captureAsn1: 'certIssuer'
|
|
204
|
+
}, {
|
|
205
|
+
name: 'Certificate.TBSCertificate.validity',
|
|
206
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
207
|
+
type: asn1.Type.SEQUENCE,
|
|
208
|
+
constructed: true,
|
|
209
|
+
// Note: UTC and generalized times may both appear so the capture
|
|
210
|
+
// names are based on their detected order, the names used below
|
|
211
|
+
// are only for the common case, which validity time really means
|
|
212
|
+
// "notBefore" and which means "notAfter" will be determined by order
|
|
213
|
+
value: [{
|
|
214
|
+
// notBefore (Time) (UTC time case)
|
|
215
|
+
name: 'Certificate.TBSCertificate.validity.notBefore (utc)',
|
|
216
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
217
|
+
type: asn1.Type.UTCTIME,
|
|
218
|
+
constructed: false,
|
|
219
|
+
optional: true,
|
|
220
|
+
capture: 'certValidity1UTCTime'
|
|
221
|
+
}, {
|
|
222
|
+
// notBefore (Time) (generalized time case)
|
|
223
|
+
name: 'Certificate.TBSCertificate.validity.notBefore (generalized)',
|
|
224
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
225
|
+
type: asn1.Type.GENERALIZEDTIME,
|
|
226
|
+
constructed: false,
|
|
227
|
+
optional: true,
|
|
228
|
+
capture: 'certValidity2GeneralizedTime'
|
|
229
|
+
}, {
|
|
230
|
+
// notAfter (Time) (only UTC time is supported)
|
|
231
|
+
name: 'Certificate.TBSCertificate.validity.notAfter (utc)',
|
|
232
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
233
|
+
type: asn1.Type.UTCTIME,
|
|
234
|
+
constructed: false,
|
|
235
|
+
optional: true,
|
|
236
|
+
capture: 'certValidity3UTCTime'
|
|
237
|
+
}, {
|
|
238
|
+
// notAfter (Time) (only UTC time is supported)
|
|
239
|
+
name: 'Certificate.TBSCertificate.validity.notAfter (generalized)',
|
|
240
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
241
|
+
type: asn1.Type.GENERALIZEDTIME,
|
|
242
|
+
constructed: false,
|
|
243
|
+
optional: true,
|
|
244
|
+
capture: 'certValidity4GeneralizedTime'
|
|
245
|
+
}]
|
|
246
|
+
}, {
|
|
247
|
+
// Name (subject) (RDNSequence)
|
|
248
|
+
name: 'Certificate.TBSCertificate.subject',
|
|
249
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
250
|
+
type: asn1.Type.SEQUENCE,
|
|
251
|
+
constructed: true,
|
|
252
|
+
captureAsn1: 'certSubject'
|
|
253
|
+
},
|
|
254
|
+
// SubjectPublicKeyInfo
|
|
255
|
+
publicKeyValidator,
|
|
256
|
+
{
|
|
257
|
+
// issuerUniqueID (optional)
|
|
258
|
+
name: 'Certificate.TBSCertificate.issuerUniqueID',
|
|
259
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
260
|
+
type: 1,
|
|
261
|
+
constructed: true,
|
|
262
|
+
optional: true,
|
|
263
|
+
value: [{
|
|
264
|
+
name: 'Certificate.TBSCertificate.issuerUniqueID.id',
|
|
265
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
266
|
+
type: asn1.Type.BITSTRING,
|
|
267
|
+
constructed: false,
|
|
268
|
+
// TODO: support arbitrary bit length ids
|
|
269
|
+
captureBitStringValue: 'certIssuerUniqueId'
|
|
270
|
+
}]
|
|
271
|
+
}, {
|
|
272
|
+
// subjectUniqueID (optional)
|
|
273
|
+
name: 'Certificate.TBSCertificate.subjectUniqueID',
|
|
274
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
275
|
+
type: 2,
|
|
276
|
+
constructed: true,
|
|
277
|
+
optional: true,
|
|
278
|
+
value: [{
|
|
279
|
+
name: 'Certificate.TBSCertificate.subjectUniqueID.id',
|
|
280
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
281
|
+
type: asn1.Type.BITSTRING,
|
|
282
|
+
constructed: false,
|
|
283
|
+
// TODO: support arbitrary bit length ids
|
|
284
|
+
captureBitStringValue: 'certSubjectUniqueId'
|
|
285
|
+
}]
|
|
286
|
+
}, {
|
|
287
|
+
// Extensions (optional)
|
|
288
|
+
name: 'Certificate.TBSCertificate.extensions',
|
|
289
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
290
|
+
type: 3,
|
|
291
|
+
constructed: true,
|
|
292
|
+
captureAsn1: 'certExtensions',
|
|
293
|
+
optional: true
|
|
294
|
+
}]
|
|
295
|
+
}, {
|
|
296
|
+
// AlgorithmIdentifier (signature algorithm)
|
|
297
|
+
name: 'Certificate.signatureAlgorithm',
|
|
298
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
299
|
+
type: asn1.Type.SEQUENCE,
|
|
300
|
+
constructed: true,
|
|
301
|
+
value: [{
|
|
302
|
+
// algorithm
|
|
303
|
+
name: 'Certificate.signatureAlgorithm.algorithm',
|
|
304
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
305
|
+
type: asn1.Type.OID,
|
|
306
|
+
constructed: false,
|
|
307
|
+
capture: 'certSignatureOid'
|
|
308
|
+
}, {
|
|
309
|
+
name: 'Certificate.TBSCertificate.signature.parameters',
|
|
310
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
311
|
+
optional: true,
|
|
312
|
+
captureAsn1: 'certSignatureParams'
|
|
313
|
+
}]
|
|
314
|
+
}, {
|
|
315
|
+
// SignatureValue
|
|
316
|
+
name: 'Certificate.signatureValue',
|
|
317
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
318
|
+
type: asn1.Type.BITSTRING,
|
|
319
|
+
constructed: false,
|
|
320
|
+
captureBitStringValue: 'certSignature'
|
|
321
|
+
}]
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
var rsassaPssParameterValidator = {
|
|
325
|
+
name: 'rsapss',
|
|
326
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
327
|
+
type: asn1.Type.SEQUENCE,
|
|
328
|
+
constructed: true,
|
|
329
|
+
value: [{
|
|
330
|
+
name: 'rsapss.hashAlgorithm',
|
|
331
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
332
|
+
type: 0,
|
|
333
|
+
constructed: true,
|
|
334
|
+
value: [{
|
|
335
|
+
name: 'rsapss.hashAlgorithm.AlgorithmIdentifier',
|
|
336
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
337
|
+
type: asn1.Class.SEQUENCE,
|
|
338
|
+
constructed: true,
|
|
339
|
+
optional: true,
|
|
340
|
+
value: [{
|
|
341
|
+
name: 'rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm',
|
|
342
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
343
|
+
type: asn1.Type.OID,
|
|
344
|
+
constructed: false,
|
|
345
|
+
capture: 'hashOid'
|
|
346
|
+
/* parameter block omitted, for SHA1 NULL anyhow. */
|
|
347
|
+
}]
|
|
348
|
+
}]
|
|
349
|
+
}, {
|
|
350
|
+
name: 'rsapss.maskGenAlgorithm',
|
|
351
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
352
|
+
type: 1,
|
|
353
|
+
constructed: true,
|
|
354
|
+
value: [{
|
|
355
|
+
name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier',
|
|
356
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
357
|
+
type: asn1.Class.SEQUENCE,
|
|
358
|
+
constructed: true,
|
|
359
|
+
optional: true,
|
|
360
|
+
value: [{
|
|
361
|
+
name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm',
|
|
362
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
363
|
+
type: asn1.Type.OID,
|
|
364
|
+
constructed: false,
|
|
365
|
+
capture: 'maskGenOid'
|
|
366
|
+
}, {
|
|
367
|
+
name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params',
|
|
368
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
369
|
+
type: asn1.Type.SEQUENCE,
|
|
370
|
+
constructed: true,
|
|
371
|
+
value: [{
|
|
372
|
+
name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm',
|
|
373
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
374
|
+
type: asn1.Type.OID,
|
|
375
|
+
constructed: false,
|
|
376
|
+
capture: 'maskGenHashOid'
|
|
377
|
+
/* parameter block omitted, for SHA1 NULL anyhow. */
|
|
378
|
+
}]
|
|
379
|
+
}]
|
|
380
|
+
}]
|
|
381
|
+
}, {
|
|
382
|
+
name: 'rsapss.saltLength',
|
|
383
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
384
|
+
type: 2,
|
|
385
|
+
optional: true,
|
|
386
|
+
value: [{
|
|
387
|
+
name: 'rsapss.saltLength.saltLength',
|
|
388
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
389
|
+
type: asn1.Class.INTEGER,
|
|
390
|
+
constructed: false,
|
|
391
|
+
capture: 'saltLength'
|
|
392
|
+
}]
|
|
393
|
+
}, {
|
|
394
|
+
name: 'rsapss.trailerField',
|
|
395
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
396
|
+
type: 3,
|
|
397
|
+
optional: true,
|
|
398
|
+
value: [{
|
|
399
|
+
name: 'rsapss.trailer.trailer',
|
|
400
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
401
|
+
type: asn1.Class.INTEGER,
|
|
402
|
+
constructed: false,
|
|
403
|
+
capture: 'trailer'
|
|
404
|
+
}]
|
|
405
|
+
}]
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
// validator for a CertificationRequestInfo structure
|
|
409
|
+
var certificationRequestInfoValidator = {
|
|
410
|
+
name: 'CertificationRequestInfo',
|
|
411
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
412
|
+
type: asn1.Type.SEQUENCE,
|
|
413
|
+
constructed: true,
|
|
414
|
+
captureAsn1: 'certificationRequestInfo',
|
|
415
|
+
value: [{
|
|
416
|
+
name: 'CertificationRequestInfo.integer',
|
|
417
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
418
|
+
type: asn1.Type.INTEGER,
|
|
419
|
+
constructed: false,
|
|
420
|
+
capture: 'certificationRequestInfoVersion'
|
|
421
|
+
}, {
|
|
422
|
+
// Name (subject) (RDNSequence)
|
|
423
|
+
name: 'CertificationRequestInfo.subject',
|
|
424
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
425
|
+
type: asn1.Type.SEQUENCE,
|
|
426
|
+
constructed: true,
|
|
427
|
+
captureAsn1: 'certificationRequestInfoSubject'
|
|
428
|
+
},
|
|
429
|
+
// SubjectPublicKeyInfo
|
|
430
|
+
publicKeyValidator,
|
|
431
|
+
{
|
|
432
|
+
name: 'CertificationRequestInfo.attributes',
|
|
433
|
+
tagClass: asn1.Class.CONTEXT_SPECIFIC,
|
|
434
|
+
type: 0,
|
|
435
|
+
constructed: true,
|
|
436
|
+
optional: true,
|
|
437
|
+
capture: 'certificationRequestInfoAttributes',
|
|
438
|
+
value: [{
|
|
439
|
+
name: 'CertificationRequestInfo.attributes',
|
|
440
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
441
|
+
type: asn1.Type.SEQUENCE,
|
|
442
|
+
constructed: true,
|
|
443
|
+
value: [{
|
|
444
|
+
name: 'CertificationRequestInfo.attributes.type',
|
|
445
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
446
|
+
type: asn1.Type.OID,
|
|
447
|
+
constructed: false
|
|
448
|
+
}, {
|
|
449
|
+
name: 'CertificationRequestInfo.attributes.value',
|
|
450
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
451
|
+
type: asn1.Type.SET,
|
|
452
|
+
constructed: true
|
|
453
|
+
}]
|
|
454
|
+
}]
|
|
455
|
+
}]
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
// validator for a CertificationRequest structure
|
|
459
|
+
var certificationRequestValidator = {
|
|
460
|
+
name: 'CertificationRequest',
|
|
461
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
462
|
+
type: asn1.Type.SEQUENCE,
|
|
463
|
+
constructed: true,
|
|
464
|
+
captureAsn1: 'csr',
|
|
465
|
+
value: [
|
|
466
|
+
certificationRequestInfoValidator, {
|
|
467
|
+
// AlgorithmIdentifier (signature algorithm)
|
|
468
|
+
name: 'CertificationRequest.signatureAlgorithm',
|
|
469
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
470
|
+
type: asn1.Type.SEQUENCE,
|
|
471
|
+
constructed: true,
|
|
472
|
+
value: [{
|
|
473
|
+
// algorithm
|
|
474
|
+
name: 'CertificationRequest.signatureAlgorithm.algorithm',
|
|
475
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
476
|
+
type: asn1.Type.OID,
|
|
477
|
+
constructed: false,
|
|
478
|
+
capture: 'csrSignatureOid'
|
|
479
|
+
}, {
|
|
480
|
+
name: 'CertificationRequest.signatureAlgorithm.parameters',
|
|
481
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
482
|
+
optional: true,
|
|
483
|
+
captureAsn1: 'csrSignatureParams'
|
|
484
|
+
}]
|
|
485
|
+
}, {
|
|
486
|
+
// signature
|
|
487
|
+
name: 'CertificationRequest.signature',
|
|
488
|
+
tagClass: asn1.Class.UNIVERSAL,
|
|
489
|
+
type: asn1.Type.BITSTRING,
|
|
490
|
+
constructed: false,
|
|
491
|
+
captureBitStringValue: 'csrSignature'
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Converts an RDNSequence of ASN.1 DER-encoded RelativeDistinguishedName
|
|
498
|
+
* sets into an array with objects that have type and value properties.
|
|
499
|
+
*
|
|
500
|
+
* @param rdn the RDNSequence to convert.
|
|
501
|
+
* @param md a message digest to append type and value to if provided.
|
|
502
|
+
*/
|
|
503
|
+
pki.RDNAttributesAsArray = function(rdn, md) {
|
|
504
|
+
var rval = [];
|
|
505
|
+
|
|
506
|
+
// each value in 'rdn' in is a SET of RelativeDistinguishedName
|
|
507
|
+
var set, attr, obj;
|
|
508
|
+
for(var si = 0; si < rdn.value.length; ++si) {
|
|
509
|
+
// get the RelativeDistinguishedName set
|
|
510
|
+
set = rdn.value[si];
|
|
511
|
+
|
|
512
|
+
// each value in the SET is an AttributeTypeAndValue sequence
|
|
513
|
+
// containing first a type (an OID) and second a value (defined by
|
|
514
|
+
// the OID)
|
|
515
|
+
for(var i = 0; i < set.value.length; ++i) {
|
|
516
|
+
obj = {};
|
|
517
|
+
attr = set.value[i];
|
|
518
|
+
obj.type = asn1.derToOid(attr.value[0].value);
|
|
519
|
+
obj.value = attr.value[1].value;
|
|
520
|
+
obj.valueTagClass = attr.value[1].type;
|
|
521
|
+
// if the OID is known, get its name and short name
|
|
522
|
+
if(obj.type in oids) {
|
|
523
|
+
obj.name = oids[obj.type];
|
|
524
|
+
if(obj.name in _shortNames) {
|
|
525
|
+
obj.shortName = _shortNames[obj.name];
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
if(md) {
|
|
529
|
+
md.update(obj.type);
|
|
530
|
+
md.update(obj.value);
|
|
531
|
+
}
|
|
532
|
+
rval.push(obj);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
return rval;
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Converts ASN.1 CRIAttributes into an array with objects that have type and
|
|
541
|
+
* value properties.
|
|
542
|
+
*
|
|
543
|
+
* @param attributes the CRIAttributes to convert.
|
|
544
|
+
*/
|
|
545
|
+
pki.CRIAttributesAsArray = function(attributes) {
|
|
546
|
+
var rval = [];
|
|
547
|
+
|
|
548
|
+
// each value in 'attributes' in is a SEQUENCE with an OID and a SET
|
|
549
|
+
for(var si = 0; si < attributes.length; ++si) {
|
|
550
|
+
// get the attribute sequence
|
|
551
|
+
var seq = attributes[si];
|
|
552
|
+
|
|
553
|
+
// each value in the SEQUENCE containing first a type (an OID) and
|
|
554
|
+
// second a set of values (defined by the OID)
|
|
555
|
+
var type = asn1.derToOid(seq.value[0].value);
|
|
556
|
+
var values = seq.value[1].value;
|
|
557
|
+
for(var vi = 0; vi < values.length; ++vi) {
|
|
558
|
+
var obj = {};
|
|
559
|
+
obj.type = type;
|
|
560
|
+
obj.value = values[vi].value;
|
|
561
|
+
obj.valueTagClass = values[vi].type;
|
|
562
|
+
// if the OID is known, get its name and short name
|
|
563
|
+
if(obj.type in oids) {
|
|
564
|
+
obj.name = oids[obj.type];
|
|
565
|
+
if(obj.name in _shortNames) {
|
|
566
|
+
obj.shortName = _shortNames[obj.name];
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
// parse extensions
|
|
570
|
+
if(obj.type === oids.extensionRequest) {
|
|
571
|
+
obj.extensions = [];
|
|
572
|
+
for(var ei = 0; ei < obj.value.length; ++ei) {
|
|
573
|
+
obj.extensions.push(pki.certificateExtensionFromAsn1(obj.value[ei]));
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
rval.push(obj);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
return rval;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Gets an issuer or subject attribute from its name, type, or short name.
|
|
585
|
+
*
|
|
586
|
+
* @param obj the issuer or subject object.
|
|
587
|
+
* @param options a short name string or an object with:
|
|
588
|
+
* shortName the short name for the attribute.
|
|
589
|
+
* name the name for the attribute.
|
|
590
|
+
* type the type for the attribute.
|
|
591
|
+
*
|
|
592
|
+
* @return the attribute.
|
|
593
|
+
*/
|
|
594
|
+
function _getAttribute(obj, options) {
|
|
595
|
+
if(typeof options === 'string') {
|
|
596
|
+
options = {shortName: options};
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
var rval = null;
|
|
600
|
+
var attr;
|
|
601
|
+
for(var i = 0; rval === null && i < obj.attributes.length; ++i) {
|
|
602
|
+
attr = obj.attributes[i];
|
|
603
|
+
if(options.type && options.type === attr.type) {
|
|
604
|
+
rval = attr;
|
|
605
|
+
} else if(options.name && options.name === attr.name) {
|
|
606
|
+
rval = attr;
|
|
607
|
+
} else if(options.shortName && options.shortName === attr.shortName) {
|
|
608
|
+
rval = attr;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
return rval;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Converts signature parameters from ASN.1 structure.
|
|
616
|
+
*
|
|
617
|
+
* Currently only RSASSA-PSS supported. The PKCS#1 v1.5 signature scheme had
|
|
618
|
+
* no parameters.
|
|
619
|
+
*
|
|
620
|
+
* RSASSA-PSS-params ::= SEQUENCE {
|
|
621
|
+
* hashAlgorithm [0] HashAlgorithm DEFAULT
|
|
622
|
+
* sha1Identifier,
|
|
623
|
+
* maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT
|
|
624
|
+
* mgf1SHA1Identifier,
|
|
625
|
+
* saltLength [2] INTEGER DEFAULT 20,
|
|
626
|
+
* trailerField [3] INTEGER DEFAULT 1
|
|
627
|
+
* }
|
|
628
|
+
*
|
|
629
|
+
* HashAlgorithm ::= AlgorithmIdentifier
|
|
630
|
+
*
|
|
631
|
+
* MaskGenAlgorithm ::= AlgorithmIdentifier
|
|
632
|
+
*
|
|
633
|
+
* AlgorithmIdentifer ::= SEQUENCE {
|
|
634
|
+
* algorithm OBJECT IDENTIFIER,
|
|
635
|
+
* parameters ANY DEFINED BY algorithm OPTIONAL
|
|
636
|
+
* }
|
|
637
|
+
*
|
|
638
|
+
* @param oid The OID specifying the signature algorithm
|
|
639
|
+
* @param obj The ASN.1 structure holding the parameters
|
|
640
|
+
* @param fillDefaults Whether to use return default values where omitted
|
|
641
|
+
* @return signature parameter object
|
|
642
|
+
*/
|
|
643
|
+
var _readSignatureParameters = function(oid, obj, fillDefaults) {
|
|
644
|
+
var params = {};
|
|
645
|
+
|
|
646
|
+
if(oid !== oids['RSASSA-PSS']) {
|
|
647
|
+
return params;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
if(fillDefaults) {
|
|
651
|
+
params = {
|
|
652
|
+
hash: {
|
|
653
|
+
algorithmOid: oids['sha1']
|
|
654
|
+
},
|
|
655
|
+
mgf: {
|
|
656
|
+
algorithmOid: oids['mgf1'],
|
|
657
|
+
hash: {
|
|
658
|
+
algorithmOid: oids['sha1']
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
saltLength: 20
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
var capture = {};
|
|
666
|
+
var errors = [];
|
|
667
|
+
if(!asn1.validate(obj, rsassaPssParameterValidator, capture, errors)) {
|
|
668
|
+
var error = new Error('Cannot read RSASSA-PSS parameter block.');
|
|
669
|
+
error.errors = errors;
|
|
670
|
+
throw error;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if(capture.hashOid !== undefined) {
|
|
674
|
+
params.hash = params.hash || {};
|
|
675
|
+
params.hash.algorithmOid = asn1.derToOid(capture.hashOid);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if(capture.maskGenOid !== undefined) {
|
|
679
|
+
params.mgf = params.mgf || {};
|
|
680
|
+
params.mgf.algorithmOid = asn1.derToOid(capture.maskGenOid);
|
|
681
|
+
params.mgf.hash = params.mgf.hash || {};
|
|
682
|
+
params.mgf.hash.algorithmOid = asn1.derToOid(capture.maskGenHashOid);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
if(capture.saltLength !== undefined) {
|
|
686
|
+
params.saltLength = capture.saltLength.charCodeAt(0);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
return params;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Create signature digest for OID.
|
|
694
|
+
*
|
|
695
|
+
* @param options
|
|
696
|
+
* signatureOid: the OID specifying the signature algorithm.
|
|
697
|
+
* type: a human readable type for error messages
|
|
698
|
+
* @return a created md instance. throws if unknown oid.
|
|
699
|
+
*/
|
|
700
|
+
var _createSignatureDigest = function(options) {
|
|
701
|
+
switch(oids[options.signatureOid]) {
|
|
702
|
+
case 'sha1WithRSAEncryption':
|
|
703
|
+
// deprecated alias
|
|
704
|
+
case 'sha1WithRSASignature':
|
|
705
|
+
return forge.md.sha1.create();
|
|
706
|
+
case 'md5WithRSAEncryption':
|
|
707
|
+
return forge.md.md5.create();
|
|
708
|
+
case 'sha256WithRSAEncryption':
|
|
709
|
+
return forge.md.sha256.create();
|
|
710
|
+
case 'sha384WithRSAEncryption':
|
|
711
|
+
return forge.md.sha384.create();
|
|
712
|
+
case 'sha512WithRSAEncryption':
|
|
713
|
+
return forge.md.sha512.create();
|
|
714
|
+
case 'RSASSA-PSS':
|
|
715
|
+
return forge.md.sha256.create();
|
|
716
|
+
default:
|
|
717
|
+
var error = new Error(
|
|
718
|
+
'Could not compute ' + options.type + ' digest. ' +
|
|
719
|
+
'Unknown signature OID.');
|
|
720
|
+
error.signatureOid = options.signatureOid;
|
|
721
|
+
throw error;
|
|
722
|
+
}
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Verify signature on certificate or CSR.
|
|
727
|
+
*
|
|
728
|
+
* @param options:
|
|
729
|
+
* certificate the certificate or CSR to verify.
|
|
730
|
+
* publicKey the optional public key to verify with.
|
|
731
|
+
* md the signature digest.
|
|
732
|
+
* signature the signature
|
|
733
|
+
* @return a created md instance. throws if unknown oid.
|
|
734
|
+
*/
|
|
735
|
+
var _verifySignature = function(options) {
|
|
736
|
+
var cert = options.certificate;
|
|
737
|
+
var publicKey = options.publicKey || cert.publicKey;
|
|
738
|
+
var scheme;
|
|
739
|
+
|
|
740
|
+
switch(cert.signatureOid) {
|
|
741
|
+
case oids.sha1WithRSAEncryption:
|
|
742
|
+
// deprecated alias
|
|
743
|
+
case oids.sha1WithRSASignature:
|
|
744
|
+
/* use PKCS#1 v1.5 padding scheme */
|
|
745
|
+
break;
|
|
746
|
+
case oids['RSASSA-PSS']:
|
|
747
|
+
var hash, mgf;
|
|
748
|
+
|
|
749
|
+
/* initialize mgf */
|
|
750
|
+
hash = oids[cert.signatureParameters.mgf.hash.algorithmOid];
|
|
751
|
+
if(hash === undefined || forge.md[hash] === undefined) {
|
|
752
|
+
var error = new Error('Unsupported MGF hash function.');
|
|
753
|
+
error.oid = cert.signatureParameters.mgf.hash.algorithmOid;
|
|
754
|
+
error.name = hash;
|
|
755
|
+
throw error;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
mgf = oids[cert.signatureParameters.mgf.algorithmOid];
|
|
759
|
+
if(mgf === undefined || forge.mgf[mgf] === undefined) {
|
|
760
|
+
var error = new Error('Unsupported MGF function.');
|
|
761
|
+
error.oid = cert.signatureParameters.mgf.algorithmOid;
|
|
762
|
+
error.name = mgf;
|
|
763
|
+
throw error;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
mgf = forge.mgf[mgf].create(forge.md[hash].create());
|
|
767
|
+
|
|
768
|
+
/* initialize hash function */
|
|
769
|
+
hash = oids[cert.signatureParameters.hash.algorithmOid];
|
|
770
|
+
if(hash === undefined || forge.md[hash] === undefined) {
|
|
771
|
+
var error = new Error('Unsupported RSASSA-PSS hash function.');
|
|
772
|
+
error.oid = cert.signatureParameters.hash.algorithmOid;
|
|
773
|
+
error.name = hash;
|
|
774
|
+
throw error;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
scheme = forge.pss.create(
|
|
778
|
+
forge.md[hash].create(), mgf, cert.signatureParameters.saltLength
|
|
779
|
+
);
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// verify signature on cert using public key
|
|
784
|
+
return publicKey.verify(
|
|
785
|
+
options.md.digest().getBytes(), options.signature, scheme
|
|
786
|
+
);
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Converts an X.509 certificate from PEM format.
|
|
791
|
+
*
|
|
792
|
+
* Note: If the certificate is to be verified then compute hash should
|
|
793
|
+
* be set to true. This will scan the TBSCertificate part of the ASN.1
|
|
794
|
+
* object while it is converted so it doesn't need to be converted back
|
|
795
|
+
* to ASN.1-DER-encoding later.
|
|
796
|
+
*
|
|
797
|
+
* @param pem the PEM-formatted certificate.
|
|
798
|
+
* @param computeHash true to compute the hash for verification.
|
|
799
|
+
* @param strict true to be strict when checking ASN.1 value lengths, false to
|
|
800
|
+
* allow truncated values (default: true).
|
|
801
|
+
*
|
|
802
|
+
* @return the certificate.
|
|
803
|
+
*/
|
|
804
|
+
pki.certificateFromPem = function(pem, computeHash, strict) {
|
|
805
|
+
var msg = forge.pem.decode(pem)[0];
|
|
806
|
+
|
|
807
|
+
if(msg.type !== 'CERTIFICATE' &&
|
|
808
|
+
msg.type !== 'X509 CERTIFICATE' &&
|
|
809
|
+
msg.type !== 'TRUSTED CERTIFICATE') {
|
|
810
|
+
var error = new Error(
|
|
811
|
+
'Could not convert certificate from PEM; PEM header type ' +
|
|
812
|
+
'is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');
|
|
813
|
+
error.headerType = msg.type;
|
|
814
|
+
throw error;
|
|
815
|
+
}
|
|
816
|
+
if(msg.procType && msg.procType.type === 'ENCRYPTED') {
|
|
817
|
+
throw new Error(
|
|
818
|
+
'Could not convert certificate from PEM; PEM is encrypted.');
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
// convert DER to ASN.1 object
|
|
822
|
+
var obj = asn1.fromDer(msg.body, strict);
|
|
823
|
+
|
|
824
|
+
return pki.certificateFromAsn1(obj, computeHash);
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Converts an X.509 certificate to PEM format.
|
|
829
|
+
*
|
|
830
|
+
* @param cert the certificate.
|
|
831
|
+
* @param maxline the maximum characters per line, defaults to 64.
|
|
832
|
+
*
|
|
833
|
+
* @return the PEM-formatted certificate.
|
|
834
|
+
*/
|
|
835
|
+
pki.certificateToPem = function(cert, maxline) {
|
|
836
|
+
// convert to ASN.1, then DER, then PEM-encode
|
|
837
|
+
var msg = {
|
|
838
|
+
type: 'CERTIFICATE',
|
|
839
|
+
body: asn1.toDer(pki.certificateToAsn1(cert)).getBytes()
|
|
840
|
+
};
|
|
841
|
+
return forge.pem.encode(msg, {maxline: maxline});
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Converts an RSA public key from PEM format.
|
|
846
|
+
*
|
|
847
|
+
* @param pem the PEM-formatted public key.
|
|
848
|
+
*
|
|
849
|
+
* @return the public key.
|
|
850
|
+
*/
|
|
851
|
+
pki.publicKeyFromPem = function(pem) {
|
|
852
|
+
var msg = forge.pem.decode(pem)[0];
|
|
853
|
+
|
|
854
|
+
if(msg.type !== 'PUBLIC KEY' && msg.type !== 'RSA PUBLIC KEY') {
|
|
855
|
+
var error = new Error('Could not convert public key from PEM; PEM header ' +
|
|
856
|
+
'type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');
|
|
857
|
+
error.headerType = msg.type;
|
|
858
|
+
throw error;
|
|
859
|
+
}
|
|
860
|
+
if(msg.procType && msg.procType.type === 'ENCRYPTED') {
|
|
861
|
+
throw new Error('Could not convert public key from PEM; PEM is encrypted.');
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
// convert DER to ASN.1 object
|
|
865
|
+
var obj = asn1.fromDer(msg.body);
|
|
866
|
+
|
|
867
|
+
return pki.publicKeyFromAsn1(obj);
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Converts an RSA public key to PEM format (using a SubjectPublicKeyInfo).
|
|
872
|
+
*
|
|
873
|
+
* @param key the public key.
|
|
874
|
+
* @param maxline the maximum characters per line, defaults to 64.
|
|
875
|
+
*
|
|
876
|
+
* @return the PEM-formatted public key.
|
|
877
|
+
*/
|
|
878
|
+
pki.publicKeyToPem = function(key, maxline) {
|
|
879
|
+
// convert to ASN.1, then DER, then PEM-encode
|
|
880
|
+
var msg = {
|
|
881
|
+
type: 'PUBLIC KEY',
|
|
882
|
+
body: asn1.toDer(pki.publicKeyToAsn1(key)).getBytes()
|
|
883
|
+
};
|
|
884
|
+
return forge.pem.encode(msg, {maxline: maxline});
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Converts an RSA public key to PEM format (using an RSAPublicKey).
|
|
889
|
+
*
|
|
890
|
+
* @param key the public key.
|
|
891
|
+
* @param maxline the maximum characters per line, defaults to 64.
|
|
892
|
+
*
|
|
893
|
+
* @return the PEM-formatted public key.
|
|
894
|
+
*/
|
|
895
|
+
pki.publicKeyToRSAPublicKeyPem = function(key, maxline) {
|
|
896
|
+
// convert to ASN.1, then DER, then PEM-encode
|
|
897
|
+
var msg = {
|
|
898
|
+
type: 'RSA PUBLIC KEY',
|
|
899
|
+
body: asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes()
|
|
900
|
+
};
|
|
901
|
+
return forge.pem.encode(msg, {maxline: maxline});
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Gets a fingerprint for the given public key.
|
|
906
|
+
*
|
|
907
|
+
* @param options the options to use.
|
|
908
|
+
* [md] the message digest object to use (defaults to forge.md.sha1).
|
|
909
|
+
* [type] the type of fingerprint, such as 'RSAPublicKey',
|
|
910
|
+
* 'SubjectPublicKeyInfo' (defaults to 'RSAPublicKey').
|
|
911
|
+
* [encoding] an alternative output encoding, such as 'hex'
|
|
912
|
+
* (defaults to none, outputs a byte buffer).
|
|
913
|
+
* [delimiter] the delimiter to use between bytes for 'hex' encoded
|
|
914
|
+
* output, eg: ':' (defaults to none).
|
|
915
|
+
*
|
|
916
|
+
* @return the fingerprint as a byte buffer or other encoding based on options.
|
|
917
|
+
*/
|
|
918
|
+
pki.getPublicKeyFingerprint = function(key, options) {
|
|
919
|
+
options = options || {};
|
|
920
|
+
var md = options.md || forge.md.sha1.create();
|
|
921
|
+
var type = options.type || 'RSAPublicKey';
|
|
922
|
+
|
|
923
|
+
var bytes;
|
|
924
|
+
switch(type) {
|
|
925
|
+
case 'RSAPublicKey':
|
|
926
|
+
bytes = asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes();
|
|
927
|
+
break;
|
|
928
|
+
case 'SubjectPublicKeyInfo':
|
|
929
|
+
bytes = asn1.toDer(pki.publicKeyToAsn1(key)).getBytes();
|
|
930
|
+
break;
|
|
931
|
+
default:
|
|
932
|
+
throw new Error('Unknown fingerprint type "' + options.type + '".');
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
// hash public key bytes
|
|
936
|
+
md.start();
|
|
937
|
+
md.update(bytes);
|
|
938
|
+
var digest = md.digest();
|
|
939
|
+
if(options.encoding === 'hex') {
|
|
940
|
+
var hex = digest.toHex();
|
|
941
|
+
if(options.delimiter) {
|
|
942
|
+
return hex.match(/.{2}/g).join(options.delimiter);
|
|
943
|
+
}
|
|
944
|
+
return hex;
|
|
945
|
+
} else if(options.encoding === 'binary') {
|
|
946
|
+
return digest.getBytes();
|
|
947
|
+
} else if(options.encoding) {
|
|
948
|
+
throw new Error('Unknown encoding "' + options.encoding + '".');
|
|
949
|
+
}
|
|
950
|
+
return digest;
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Converts a PKCS#10 certification request (CSR) from PEM format.
|
|
955
|
+
*
|
|
956
|
+
* Note: If the certification request is to be verified then compute hash
|
|
957
|
+
* should be set to true. This will scan the CertificationRequestInfo part of
|
|
958
|
+
* the ASN.1 object while it is converted so it doesn't need to be converted
|
|
959
|
+
* back to ASN.1-DER-encoding later.
|
|
960
|
+
*
|
|
961
|
+
* @param pem the PEM-formatted certificate.
|
|
962
|
+
* @param computeHash true to compute the hash for verification.
|
|
963
|
+
* @param strict true to be strict when checking ASN.1 value lengths, false to
|
|
964
|
+
* allow truncated values (default: true).
|
|
965
|
+
*
|
|
966
|
+
* @return the certification request (CSR).
|
|
967
|
+
*/
|
|
968
|
+
pki.certificationRequestFromPem = function(pem, computeHash, strict) {
|
|
969
|
+
var msg = forge.pem.decode(pem)[0];
|
|
970
|
+
|
|
971
|
+
if(msg.type !== 'CERTIFICATE REQUEST') {
|
|
972
|
+
var error = new Error('Could not convert certification request from PEM; ' +
|
|
973
|
+
'PEM header type is not "CERTIFICATE REQUEST".');
|
|
974
|
+
error.headerType = msg.type;
|
|
975
|
+
throw error;
|
|
976
|
+
}
|
|
977
|
+
if(msg.procType && msg.procType.type === 'ENCRYPTED') {
|
|
978
|
+
throw new Error('Could not convert certification request from PEM; ' +
|
|
979
|
+
'PEM is encrypted.');
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
// convert DER to ASN.1 object
|
|
983
|
+
var obj = asn1.fromDer(msg.body, strict);
|
|
984
|
+
|
|
985
|
+
return pki.certificationRequestFromAsn1(obj, computeHash);
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Converts a PKCS#10 certification request (CSR) to PEM format.
|
|
990
|
+
*
|
|
991
|
+
* @param csr the certification request.
|
|
992
|
+
* @param maxline the maximum characters per line, defaults to 64.
|
|
993
|
+
*
|
|
994
|
+
* @return the PEM-formatted certification request.
|
|
995
|
+
*/
|
|
996
|
+
pki.certificationRequestToPem = function(csr, maxline) {
|
|
997
|
+
// convert to ASN.1, then DER, then PEM-encode
|
|
998
|
+
var msg = {
|
|
999
|
+
type: 'CERTIFICATE REQUEST',
|
|
1000
|
+
body: asn1.toDer(pki.certificationRequestToAsn1(csr)).getBytes()
|
|
1001
|
+
};
|
|
1002
|
+
return forge.pem.encode(msg, {maxline: maxline});
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Creates an empty X.509v3 RSA certificate.
|
|
1007
|
+
*
|
|
1008
|
+
* @return the certificate.
|
|
1009
|
+
*/
|
|
1010
|
+
pki.createCertificate = function() {
|
|
1011
|
+
var cert = {};
|
|
1012
|
+
cert.version = 0x02;
|
|
1013
|
+
cert.serialNumber = '00';
|
|
1014
|
+
cert.signatureOid = null;
|
|
1015
|
+
cert.signature = null;
|
|
1016
|
+
cert.siginfo = {};
|
|
1017
|
+
cert.siginfo.algorithmOid = null;
|
|
1018
|
+
cert.validity = {};
|
|
1019
|
+
cert.validity.notBefore = new Date();
|
|
1020
|
+
cert.validity.notAfter = new Date();
|
|
1021
|
+
|
|
1022
|
+
cert.issuer = {};
|
|
1023
|
+
cert.issuer.getField = function(sn) {
|
|
1024
|
+
return _getAttribute(cert.issuer, sn);
|
|
1025
|
+
};
|
|
1026
|
+
cert.issuer.addField = function(attr) {
|
|
1027
|
+
_fillMissingFields([attr]);
|
|
1028
|
+
cert.issuer.attributes.push(attr);
|
|
1029
|
+
};
|
|
1030
|
+
cert.issuer.attributes = [];
|
|
1031
|
+
cert.issuer.hash = null;
|
|
1032
|
+
|
|
1033
|
+
cert.subject = {};
|
|
1034
|
+
cert.subject.getField = function(sn) {
|
|
1035
|
+
return _getAttribute(cert.subject, sn);
|
|
1036
|
+
};
|
|
1037
|
+
cert.subject.addField = function(attr) {
|
|
1038
|
+
_fillMissingFields([attr]);
|
|
1039
|
+
cert.subject.attributes.push(attr);
|
|
1040
|
+
};
|
|
1041
|
+
cert.subject.attributes = [];
|
|
1042
|
+
cert.subject.hash = null;
|
|
1043
|
+
|
|
1044
|
+
cert.extensions = [];
|
|
1045
|
+
cert.publicKey = null;
|
|
1046
|
+
cert.md = null;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Sets the subject of this certificate.
|
|
1050
|
+
*
|
|
1051
|
+
* @param attrs the array of subject attributes to use.
|
|
1052
|
+
* @param uniqueId an optional a unique ID to use.
|
|
1053
|
+
*/
|
|
1054
|
+
cert.setSubject = function(attrs, uniqueId) {
|
|
1055
|
+
// set new attributes, clear hash
|
|
1056
|
+
_fillMissingFields(attrs);
|
|
1057
|
+
cert.subject.attributes = attrs;
|
|
1058
|
+
delete cert.subject.uniqueId;
|
|
1059
|
+
if(uniqueId) {
|
|
1060
|
+
// TODO: support arbitrary bit length ids
|
|
1061
|
+
cert.subject.uniqueId = uniqueId;
|
|
1062
|
+
}
|
|
1063
|
+
cert.subject.hash = null;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Sets the issuer of this certificate.
|
|
1068
|
+
*
|
|
1069
|
+
* @param attrs the array of issuer attributes to use.
|
|
1070
|
+
* @param uniqueId an optional a unique ID to use.
|
|
1071
|
+
*/
|
|
1072
|
+
cert.setIssuer = function(attrs, uniqueId) {
|
|
1073
|
+
// set new attributes, clear hash
|
|
1074
|
+
_fillMissingFields(attrs);
|
|
1075
|
+
cert.issuer.attributes = attrs;
|
|
1076
|
+
delete cert.issuer.uniqueId;
|
|
1077
|
+
if(uniqueId) {
|
|
1078
|
+
// TODO: support arbitrary bit length ids
|
|
1079
|
+
cert.issuer.uniqueId = uniqueId;
|
|
1080
|
+
}
|
|
1081
|
+
cert.issuer.hash = null;
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Sets the extensions of this certificate.
|
|
1086
|
+
*
|
|
1087
|
+
* @param exts the array of extensions to use.
|
|
1088
|
+
*/
|
|
1089
|
+
cert.setExtensions = function(exts) {
|
|
1090
|
+
for(var i = 0; i < exts.length; ++i) {
|
|
1091
|
+
_fillMissingExtensionFields(exts[i], {cert: cert});
|
|
1092
|
+
}
|
|
1093
|
+
// set new extensions
|
|
1094
|
+
cert.extensions = exts;
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Gets an extension by its name or id.
|
|
1099
|
+
*
|
|
1100
|
+
* @param options the name to use or an object with:
|
|
1101
|
+
* name the name to use.
|
|
1102
|
+
* id the id to use.
|
|
1103
|
+
*
|
|
1104
|
+
* @return the extension or null if not found.
|
|
1105
|
+
*/
|
|
1106
|
+
cert.getExtension = function(options) {
|
|
1107
|
+
if(typeof options === 'string') {
|
|
1108
|
+
options = {name: options};
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
var rval = null;
|
|
1112
|
+
var ext;
|
|
1113
|
+
for(var i = 0; rval === null && i < cert.extensions.length; ++i) {
|
|
1114
|
+
ext = cert.extensions[i];
|
|
1115
|
+
if(options.id && ext.id === options.id) {
|
|
1116
|
+
rval = ext;
|
|
1117
|
+
} else if(options.name && ext.name === options.name) {
|
|
1118
|
+
rval = ext;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
return rval;
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Signs this certificate using the given private key.
|
|
1126
|
+
*
|
|
1127
|
+
* @param key the private key to sign with.
|
|
1128
|
+
* @param md the message digest object to use (defaults to forge.md.sha1).
|
|
1129
|
+
*/
|
|
1130
|
+
cert.sign = function(key, md) {
|
|
1131
|
+
// TODO: get signature OID from private key
|
|
1132
|
+
cert.md = md || forge.md.sha1.create();
|
|
1133
|
+
var algorithmOid = oids[cert.md.algorithm + 'WithRSAEncryption'];
|
|
1134
|
+
if(!algorithmOid) {
|
|
1135
|
+
var error = new Error('Could not compute certificate digest. ' +
|
|
1136
|
+
'Unknown message digest algorithm OID.');
|
|
1137
|
+
error.algorithm = cert.md.algorithm;
|
|
1138
|
+
throw error;
|
|
1139
|
+
}
|
|
1140
|
+
cert.signatureOid = cert.siginfo.algorithmOid = algorithmOid;
|
|
1141
|
+
|
|
1142
|
+
// get TBSCertificate, convert to DER
|
|
1143
|
+
cert.tbsCertificate = pki.getTBSCertificate(cert);
|
|
1144
|
+
var bytes = asn1.toDer(cert.tbsCertificate);
|
|
1145
|
+
|
|
1146
|
+
// digest and sign
|
|
1147
|
+
cert.md.update(bytes.getBytes());
|
|
1148
|
+
cert.signature = key.sign(cert.md);
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* Attempts verify the signature on the passed certificate using this
|
|
1153
|
+
* certificate's public key.
|
|
1154
|
+
*
|
|
1155
|
+
* @param child the certificate to verify.
|
|
1156
|
+
*
|
|
1157
|
+
* @return true if verified, false if not.
|
|
1158
|
+
*/
|
|
1159
|
+
cert.verify = function(child) {
|
|
1160
|
+
var rval = false;
|
|
1161
|
+
|
|
1162
|
+
if(!cert.issued(child)) {
|
|
1163
|
+
var issuer = child.issuer;
|
|
1164
|
+
var subject = cert.subject;
|
|
1165
|
+
var error = new Error(
|
|
1166
|
+
'The parent certificate did not issue the given child ' +
|
|
1167
|
+
'certificate; the child certificate\'s issuer does not match the ' +
|
|
1168
|
+
'parent\'s subject.');
|
|
1169
|
+
error.expectedIssuer = subject.attributes;
|
|
1170
|
+
error.actualIssuer = issuer.attributes;
|
|
1171
|
+
throw error;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
var md = child.md;
|
|
1175
|
+
if(md === null) {
|
|
1176
|
+
// create digest for OID signature types
|
|
1177
|
+
md = _createSignatureDigest({
|
|
1178
|
+
signatureOid: child.signatureOid,
|
|
1179
|
+
type: 'certificate'
|
|
1180
|
+
});
|
|
1181
|
+
|
|
1182
|
+
// produce DER formatted TBSCertificate and digest it
|
|
1183
|
+
var tbsCertificate = child.tbsCertificate || pki.getTBSCertificate(child);
|
|
1184
|
+
var bytes = asn1.toDer(tbsCertificate);
|
|
1185
|
+
md.update(bytes.getBytes());
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
if(md !== null) {
|
|
1189
|
+
// the padding scheme comes from the child's signature algorithm
|
|
1190
|
+
rval = _verifySignature({
|
|
1191
|
+
certificate: child,
|
|
1192
|
+
publicKey: cert.publicKey,
|
|
1193
|
+
md: md,
|
|
1194
|
+
signature: child.signature
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
return rval;
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Returns true if this certificate's issuer matches the passed
|
|
1203
|
+
* certificate's subject. Note that no signature check is performed.
|
|
1204
|
+
*
|
|
1205
|
+
* @param parent the certificate to check.
|
|
1206
|
+
*
|
|
1207
|
+
* @return true if this certificate's issuer matches the passed certificate's
|
|
1208
|
+
* subject.
|
|
1209
|
+
*/
|
|
1210
|
+
cert.isIssuer = function(parent) {
|
|
1211
|
+
var rval = false;
|
|
1212
|
+
|
|
1213
|
+
var i = cert.issuer;
|
|
1214
|
+
var s = parent.subject;
|
|
1215
|
+
|
|
1216
|
+
// compare hashes if present
|
|
1217
|
+
if(i.hash && s.hash) {
|
|
1218
|
+
rval = (i.hash === s.hash);
|
|
1219
|
+
} else if(i.attributes.length === s.attributes.length) {
|
|
1220
|
+
// all attributes are the same so issuer matches subject
|
|
1221
|
+
rval = true;
|
|
1222
|
+
var iattr, sattr;
|
|
1223
|
+
for(var n = 0; rval && n < i.attributes.length; ++n) {
|
|
1224
|
+
iattr = i.attributes[n];
|
|
1225
|
+
sattr = s.attributes[n];
|
|
1226
|
+
if(iattr.type !== sattr.type || iattr.value !== sattr.value) {
|
|
1227
|
+
// attribute mismatch
|
|
1228
|
+
rval = false;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
return rval;
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Returns true if this certificate's subject matches the issuer of the
|
|
1238
|
+
* given certificate). Note that not signature check is performed.
|
|
1239
|
+
*
|
|
1240
|
+
* @param child the certificate to check.
|
|
1241
|
+
*
|
|
1242
|
+
* @return true if this certificate's subject matches the passed
|
|
1243
|
+
* certificate's issuer.
|
|
1244
|
+
*/
|
|
1245
|
+
cert.issued = function(child) {
|
|
1246
|
+
return child.isIssuer(cert);
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Generates the subjectKeyIdentifier for this certificate as byte buffer.
|
|
1251
|
+
*
|
|
1252
|
+
* @return the subjectKeyIdentifier for this certificate as byte buffer.
|
|
1253
|
+
*/
|
|
1254
|
+
cert.generateSubjectKeyIdentifier = function() {
|
|
1255
|
+
/* See: 4.2.1.2 section of the the RFC3280, keyIdentifier is either:
|
|
1256
|
+
|
|
1257
|
+
(1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the
|
|
1258
|
+
value of the BIT STRING subjectPublicKey (excluding the tag,
|
|
1259
|
+
length, and number of unused bits).
|
|
1260
|
+
|
|
1261
|
+
(2) The keyIdentifier is composed of a four bit type field with
|
|
1262
|
+
the value 0100 followed by the least significant 60 bits of the
|
|
1263
|
+
SHA-1 hash of the value of the BIT STRING subjectPublicKey
|
|
1264
|
+
(excluding the tag, length, and number of unused bit string bits).
|
|
1265
|
+
*/
|
|
1266
|
+
|
|
1267
|
+
// skipping the tag, length, and number of unused bits is the same
|
|
1268
|
+
// as just using the RSAPublicKey (for RSA keys, which are the
|
|
1269
|
+
// only ones supported)
|
|
1270
|
+
return pki.getPublicKeyFingerprint(cert.publicKey, {type: 'RSAPublicKey'});
|
|
1271
|
+
};
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* Verifies the subjectKeyIdentifier extension value for this certificate
|
|
1275
|
+
* against its public key. If no extension is found, false will be
|
|
1276
|
+
* returned.
|
|
1277
|
+
*
|
|
1278
|
+
* @return true if verified, false if not.
|
|
1279
|
+
*/
|
|
1280
|
+
cert.verifySubjectKeyIdentifier = function() {
|
|
1281
|
+
var oid = oids['subjectKeyIdentifier'];
|
|
1282
|
+
for(var i = 0; i < cert.extensions.length; ++i) {
|
|
1283
|
+
var ext = cert.extensions[i];
|
|
1284
|
+
if(ext.id === oid) {
|
|
1285
|
+
var ski = cert.generateSubjectKeyIdentifier().getBytes();
|
|
1286
|
+
return (forge.util.hexToBytes(ext.subjectKeyIdentifier) === ski);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
return false;
|
|
1290
|
+
};
|
|
1291
|
+
|
|
1292
|
+
return cert;
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Converts an X.509v3 RSA certificate from an ASN.1 object.
|
|
1297
|
+
*
|
|
1298
|
+
* Note: If the certificate is to be verified then compute hash should
|
|
1299
|
+
* be set to true. There is currently no implementation for converting
|
|
1300
|
+
* a certificate back to ASN.1 so the TBSCertificate part of the ASN.1
|
|
1301
|
+
* object needs to be scanned before the cert object is created.
|
|
1302
|
+
*
|
|
1303
|
+
* @param obj the asn1 representation of an X.509v3 RSA certificate.
|
|
1304
|
+
* @param computeHash true to compute the hash for verification.
|
|
1305
|
+
*
|
|
1306
|
+
* @return the certificate.
|
|
1307
|
+
*/
|
|
1308
|
+
pki.certificateFromAsn1 = function(obj, computeHash) {
|
|
1309
|
+
// validate certificate and capture data
|
|
1310
|
+
var capture = {};
|
|
1311
|
+
var errors = [];
|
|
1312
|
+
if(!asn1.validate(obj, x509CertificateValidator, capture, errors)) {
|
|
1313
|
+
var error = new Error('Cannot read X.509 certificate. ' +
|
|
1314
|
+
'ASN.1 object is not an X509v3 Certificate.');
|
|
1315
|
+
error.errors = errors;
|
|
1316
|
+
throw error;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
// get oid
|
|
1320
|
+
var oid = asn1.derToOid(capture.publicKeyOid);
|
|
1321
|
+
if(oid !== pki.oids.rsaEncryption) {
|
|
1322
|
+
throw new Error('Cannot read public key. OID is not RSA.');
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
// create certificate
|
|
1326
|
+
var cert = pki.createCertificate();
|
|
1327
|
+
cert.version = capture.certVersion ?
|
|
1328
|
+
capture.certVersion.charCodeAt(0) : 0;
|
|
1329
|
+
var serial = forge.util.createBuffer(capture.certSerialNumber);
|
|
1330
|
+
cert.serialNumber = serial.toHex();
|
|
1331
|
+
cert.signatureOid = forge.asn1.derToOid(capture.certSignatureOid);
|
|
1332
|
+
cert.signatureParameters = _readSignatureParameters(
|
|
1333
|
+
cert.signatureOid, capture.certSignatureParams, true);
|
|
1334
|
+
cert.siginfo.algorithmOid = forge.asn1.derToOid(capture.certinfoSignatureOid);
|
|
1335
|
+
cert.siginfo.parameters = _readSignatureParameters(cert.siginfo.algorithmOid,
|
|
1336
|
+
capture.certinfoSignatureParams, false);
|
|
1337
|
+
cert.signature = capture.certSignature;
|
|
1338
|
+
|
|
1339
|
+
var validity = [];
|
|
1340
|
+
if(capture.certValidity1UTCTime !== undefined) {
|
|
1341
|
+
validity.push(asn1.utcTimeToDate(capture.certValidity1UTCTime));
|
|
1342
|
+
}
|
|
1343
|
+
if(capture.certValidity2GeneralizedTime !== undefined) {
|
|
1344
|
+
validity.push(asn1.generalizedTimeToDate(
|
|
1345
|
+
capture.certValidity2GeneralizedTime));
|
|
1346
|
+
}
|
|
1347
|
+
if(capture.certValidity3UTCTime !== undefined) {
|
|
1348
|
+
validity.push(asn1.utcTimeToDate(capture.certValidity3UTCTime));
|
|
1349
|
+
}
|
|
1350
|
+
if(capture.certValidity4GeneralizedTime !== undefined) {
|
|
1351
|
+
validity.push(asn1.generalizedTimeToDate(
|
|
1352
|
+
capture.certValidity4GeneralizedTime));
|
|
1353
|
+
}
|
|
1354
|
+
if(validity.length > 2) {
|
|
1355
|
+
throw new Error('Cannot read notBefore/notAfter validity times; more ' +
|
|
1356
|
+
'than two times were provided in the certificate.');
|
|
1357
|
+
}
|
|
1358
|
+
if(validity.length < 2) {
|
|
1359
|
+
throw new Error('Cannot read notBefore/notAfter validity times; they ' +
|
|
1360
|
+
'were not provided as either UTCTime or GeneralizedTime.');
|
|
1361
|
+
}
|
|
1362
|
+
cert.validity.notBefore = validity[0];
|
|
1363
|
+
cert.validity.notAfter = validity[1];
|
|
1364
|
+
|
|
1365
|
+
// keep TBSCertificate to preserve signature when exporting
|
|
1366
|
+
cert.tbsCertificate = capture.tbsCertificate;
|
|
1367
|
+
|
|
1368
|
+
if(computeHash) {
|
|
1369
|
+
// create digest for OID signature type
|
|
1370
|
+
cert.md = _createSignatureDigest({
|
|
1371
|
+
signatureOid: cert.signatureOid,
|
|
1372
|
+
type: 'certificate'
|
|
1373
|
+
});
|
|
1374
|
+
|
|
1375
|
+
// produce DER formatted TBSCertificate and digest it
|
|
1376
|
+
var bytes = asn1.toDer(cert.tbsCertificate);
|
|
1377
|
+
cert.md.update(bytes.getBytes());
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
// handle issuer, build issuer message digest
|
|
1381
|
+
var imd = forge.md.sha1.create();
|
|
1382
|
+
var ibytes = asn1.toDer(capture.certIssuer);
|
|
1383
|
+
imd.update(ibytes.getBytes());
|
|
1384
|
+
cert.issuer.getField = function(sn) {
|
|
1385
|
+
return _getAttribute(cert.issuer, sn);
|
|
1386
|
+
};
|
|
1387
|
+
cert.issuer.addField = function(attr) {
|
|
1388
|
+
_fillMissingFields([attr]);
|
|
1389
|
+
cert.issuer.attributes.push(attr);
|
|
1390
|
+
};
|
|
1391
|
+
cert.issuer.attributes = pki.RDNAttributesAsArray(capture.certIssuer);
|
|
1392
|
+
if(capture.certIssuerUniqueId) {
|
|
1393
|
+
cert.issuer.uniqueId = capture.certIssuerUniqueId;
|
|
1394
|
+
}
|
|
1395
|
+
cert.issuer.hash = imd.digest().toHex();
|
|
1396
|
+
|
|
1397
|
+
// handle subject, build subject message digest
|
|
1398
|
+
var smd = forge.md.sha1.create();
|
|
1399
|
+
var sbytes = asn1.toDer(capture.certSubject);
|
|
1400
|
+
smd.update(sbytes.getBytes());
|
|
1401
|
+
cert.subject.getField = function(sn) {
|
|
1402
|
+
return _getAttribute(cert.subject, sn);
|
|
1403
|
+
};
|
|
1404
|
+
cert.subject.addField = function(attr) {
|
|
1405
|
+
_fillMissingFields([attr]);
|
|
1406
|
+
cert.subject.attributes.push(attr);
|
|
1407
|
+
};
|
|
1408
|
+
cert.subject.attributes = pki.RDNAttributesAsArray(capture.certSubject);
|
|
1409
|
+
if(capture.certSubjectUniqueId) {
|
|
1410
|
+
cert.subject.uniqueId = capture.certSubjectUniqueId;
|
|
1411
|
+
}
|
|
1412
|
+
cert.subject.hash = smd.digest().toHex();
|
|
1413
|
+
|
|
1414
|
+
// handle extensions
|
|
1415
|
+
if(capture.certExtensions) {
|
|
1416
|
+
cert.extensions = pki.certificateExtensionsFromAsn1(capture.certExtensions);
|
|
1417
|
+
} else {
|
|
1418
|
+
cert.extensions = [];
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
// convert RSA public key from ASN.1
|
|
1422
|
+
cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo);
|
|
1423
|
+
|
|
1424
|
+
return cert;
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* Converts an ASN.1 extensions object (with extension sequences as its
|
|
1429
|
+
* values) into an array of extension objects with types and values.
|
|
1430
|
+
*
|
|
1431
|
+
* Supported extensions:
|
|
1432
|
+
*
|
|
1433
|
+
* id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 }
|
|
1434
|
+
* KeyUsage ::= BIT STRING {
|
|
1435
|
+
* digitalSignature (0),
|
|
1436
|
+
* nonRepudiation (1),
|
|
1437
|
+
* keyEncipherment (2),
|
|
1438
|
+
* dataEncipherment (3),
|
|
1439
|
+
* keyAgreement (4),
|
|
1440
|
+
* keyCertSign (5),
|
|
1441
|
+
* cRLSign (6),
|
|
1442
|
+
* encipherOnly (7),
|
|
1443
|
+
* decipherOnly (8)
|
|
1444
|
+
* }
|
|
1445
|
+
*
|
|
1446
|
+
* id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 }
|
|
1447
|
+
* BasicConstraints ::= SEQUENCE {
|
|
1448
|
+
* cA BOOLEAN DEFAULT FALSE,
|
|
1449
|
+
* pathLenConstraint INTEGER (0..MAX) OPTIONAL
|
|
1450
|
+
* }
|
|
1451
|
+
*
|
|
1452
|
+
* subjectAltName EXTENSION ::= {
|
|
1453
|
+
* SYNTAX GeneralNames
|
|
1454
|
+
* IDENTIFIED BY id-ce-subjectAltName
|
|
1455
|
+
* }
|
|
1456
|
+
*
|
|
1457
|
+
* GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
|
|
1458
|
+
*
|
|
1459
|
+
* GeneralName ::= CHOICE {
|
|
1460
|
+
* otherName [0] INSTANCE OF OTHER-NAME,
|
|
1461
|
+
* rfc822Name [1] IA5String,
|
|
1462
|
+
* dNSName [2] IA5String,
|
|
1463
|
+
* x400Address [3] ORAddress,
|
|
1464
|
+
* directoryName [4] Name,
|
|
1465
|
+
* ediPartyName [5] EDIPartyName,
|
|
1466
|
+
* uniformResourceIdentifier [6] IA5String,
|
|
1467
|
+
* IPAddress [7] OCTET STRING,
|
|
1468
|
+
* registeredID [8] OBJECT IDENTIFIER
|
|
1469
|
+
* }
|
|
1470
|
+
*
|
|
1471
|
+
* OTHER-NAME ::= TYPE-IDENTIFIER
|
|
1472
|
+
*
|
|
1473
|
+
* EDIPartyName ::= SEQUENCE {
|
|
1474
|
+
* nameAssigner [0] DirectoryString {ub-name} OPTIONAL,
|
|
1475
|
+
* partyName [1] DirectoryString {ub-name}
|
|
1476
|
+
* }
|
|
1477
|
+
*
|
|
1478
|
+
* @param exts the extensions ASN.1 with extension sequences to parse.
|
|
1479
|
+
*
|
|
1480
|
+
* @return the array.
|
|
1481
|
+
*/
|
|
1482
|
+
pki.certificateExtensionsFromAsn1 = function(exts) {
|
|
1483
|
+
var rval = [];
|
|
1484
|
+
for(var i = 0; i < exts.value.length; ++i) {
|
|
1485
|
+
// get extension sequence
|
|
1486
|
+
var extseq = exts.value[i];
|
|
1487
|
+
for(var ei = 0; ei < extseq.value.length; ++ei) {
|
|
1488
|
+
rval.push(pki.certificateExtensionFromAsn1(extseq.value[ei]));
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
return rval;
|
|
1493
|
+
};
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Parses a single certificate extension from ASN.1.
|
|
1497
|
+
*
|
|
1498
|
+
* @param ext the extension in ASN.1 format.
|
|
1499
|
+
*
|
|
1500
|
+
* @return the parsed extension as an object.
|
|
1501
|
+
*/
|
|
1502
|
+
pki.certificateExtensionFromAsn1 = function(ext) {
|
|
1503
|
+
// an extension has:
|
|
1504
|
+
// [0] extnID OBJECT IDENTIFIER
|
|
1505
|
+
// [1] critical BOOLEAN DEFAULT FALSE
|
|
1506
|
+
// [2] extnValue OCTET STRING
|
|
1507
|
+
var e = {};
|
|
1508
|
+
e.id = asn1.derToOid(ext.value[0].value);
|
|
1509
|
+
e.critical = false;
|
|
1510
|
+
if(ext.value[1].type === asn1.Type.BOOLEAN) {
|
|
1511
|
+
e.critical = (ext.value[1].value.charCodeAt(0) !== 0x00);
|
|
1512
|
+
e.value = ext.value[2].value;
|
|
1513
|
+
} else {
|
|
1514
|
+
e.value = ext.value[1].value;
|
|
1515
|
+
}
|
|
1516
|
+
// if the oid is known, get its name
|
|
1517
|
+
if(e.id in oids) {
|
|
1518
|
+
e.name = oids[e.id];
|
|
1519
|
+
|
|
1520
|
+
// handle key usage
|
|
1521
|
+
if(e.name === 'keyUsage') {
|
|
1522
|
+
// get value as BIT STRING
|
|
1523
|
+
var ev = asn1.fromDer(e.value);
|
|
1524
|
+
var b2 = 0x00;
|
|
1525
|
+
var b3 = 0x00;
|
|
1526
|
+
if(ev.value.length > 1) {
|
|
1527
|
+
// skip first byte, just indicates unused bits which
|
|
1528
|
+
// will be padded with 0s anyway
|
|
1529
|
+
// get bytes with flag bits
|
|
1530
|
+
b2 = ev.value.charCodeAt(1);
|
|
1531
|
+
b3 = ev.value.length > 2 ? ev.value.charCodeAt(2) : 0;
|
|
1532
|
+
}
|
|
1533
|
+
// set flags
|
|
1534
|
+
e.digitalSignature = (b2 & 0x80) === 0x80;
|
|
1535
|
+
e.nonRepudiation = (b2 & 0x40) === 0x40;
|
|
1536
|
+
e.keyEncipherment = (b2 & 0x20) === 0x20;
|
|
1537
|
+
e.dataEncipherment = (b2 & 0x10) === 0x10;
|
|
1538
|
+
e.keyAgreement = (b2 & 0x08) === 0x08;
|
|
1539
|
+
e.keyCertSign = (b2 & 0x04) === 0x04;
|
|
1540
|
+
e.cRLSign = (b2 & 0x02) === 0x02;
|
|
1541
|
+
e.encipherOnly = (b2 & 0x01) === 0x01;
|
|
1542
|
+
e.decipherOnly = (b3 & 0x80) === 0x80;
|
|
1543
|
+
} else if(e.name === 'basicConstraints') {
|
|
1544
|
+
// handle basic constraints
|
|
1545
|
+
// get value as SEQUENCE
|
|
1546
|
+
var ev = asn1.fromDer(e.value);
|
|
1547
|
+
// get cA BOOLEAN flag (defaults to false)
|
|
1548
|
+
if(ev.value.length > 0 && ev.value[0].type === asn1.Type.BOOLEAN) {
|
|
1549
|
+
e.cA = (ev.value[0].value.charCodeAt(0) !== 0x00);
|
|
1550
|
+
} else {
|
|
1551
|
+
e.cA = false;
|
|
1552
|
+
}
|
|
1553
|
+
// get path length constraint
|
|
1554
|
+
var value = null;
|
|
1555
|
+
if(ev.value.length > 0 && ev.value[0].type === asn1.Type.INTEGER) {
|
|
1556
|
+
value = ev.value[0].value;
|
|
1557
|
+
} else if(ev.value.length > 1) {
|
|
1558
|
+
value = ev.value[1].value;
|
|
1559
|
+
}
|
|
1560
|
+
if(value !== null) {
|
|
1561
|
+
e.pathLenConstraint = asn1.derToInteger(value);
|
|
1562
|
+
}
|
|
1563
|
+
} else if(e.name === 'extKeyUsage') {
|
|
1564
|
+
// handle extKeyUsage
|
|
1565
|
+
// value is a SEQUENCE of OIDs
|
|
1566
|
+
var ev = asn1.fromDer(e.value);
|
|
1567
|
+
for(var vi = 0; vi < ev.value.length; ++vi) {
|
|
1568
|
+
var oid = asn1.derToOid(ev.value[vi].value);
|
|
1569
|
+
if(oid in oids) {
|
|
1570
|
+
e[oids[oid]] = true;
|
|
1571
|
+
} else {
|
|
1572
|
+
e[oid] = true;
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
} else if(e.name === 'nsCertType') {
|
|
1576
|
+
// handle nsCertType
|
|
1577
|
+
// get value as BIT STRING
|
|
1578
|
+
var ev = asn1.fromDer(e.value);
|
|
1579
|
+
var b2 = 0x00;
|
|
1580
|
+
if(ev.value.length > 1) {
|
|
1581
|
+
// skip first byte, just indicates unused bits which
|
|
1582
|
+
// will be padded with 0s anyway
|
|
1583
|
+
// get bytes with flag bits
|
|
1584
|
+
b2 = ev.value.charCodeAt(1);
|
|
1585
|
+
}
|
|
1586
|
+
// set flags
|
|
1587
|
+
e.client = (b2 & 0x80) === 0x80;
|
|
1588
|
+
e.server = (b2 & 0x40) === 0x40;
|
|
1589
|
+
e.email = (b2 & 0x20) === 0x20;
|
|
1590
|
+
e.objsign = (b2 & 0x10) === 0x10;
|
|
1591
|
+
e.reserved = (b2 & 0x08) === 0x08;
|
|
1592
|
+
e.sslCA = (b2 & 0x04) === 0x04;
|
|
1593
|
+
e.emailCA = (b2 & 0x02) === 0x02;
|
|
1594
|
+
e.objCA = (b2 & 0x01) === 0x01;
|
|
1595
|
+
} else if(
|
|
1596
|
+
e.name === 'subjectAltName' ||
|
|
1597
|
+
e.name === 'issuerAltName') {
|
|
1598
|
+
// handle subjectAltName/issuerAltName
|
|
1599
|
+
e.altNames = [];
|
|
1600
|
+
|
|
1601
|
+
// ev is a SYNTAX SEQUENCE
|
|
1602
|
+
var gn;
|
|
1603
|
+
var ev = asn1.fromDer(e.value);
|
|
1604
|
+
for(var n = 0; n < ev.value.length; ++n) {
|
|
1605
|
+
// get GeneralName
|
|
1606
|
+
gn = ev.value[n];
|
|
1607
|
+
|
|
1608
|
+
var altName = {
|
|
1609
|
+
type: gn.type,
|
|
1610
|
+
value: gn.value
|
|
1611
|
+
};
|
|
1612
|
+
e.altNames.push(altName);
|
|
1613
|
+
|
|
1614
|
+
// Note: Support for types 1,2,6,7,8
|
|
1615
|
+
switch(gn.type) {
|
|
1616
|
+
// rfc822Name
|
|
1617
|
+
case 1:
|
|
1618
|
+
// dNSName
|
|
1619
|
+
case 2:
|
|
1620
|
+
// uniformResourceIdentifier (URI)
|
|
1621
|
+
case 6:
|
|
1622
|
+
break;
|
|
1623
|
+
// IPAddress
|
|
1624
|
+
case 7:
|
|
1625
|
+
// convert to IPv4/IPv6 string representation
|
|
1626
|
+
altName.ip = forge.util.bytesToIP(gn.value);
|
|
1627
|
+
break;
|
|
1628
|
+
// registeredID
|
|
1629
|
+
case 8:
|
|
1630
|
+
altName.oid = asn1.derToOid(gn.value);
|
|
1631
|
+
break;
|
|
1632
|
+
default:
|
|
1633
|
+
// unsupported
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
} else if(e.name === 'nameConstraints' && e.id === '2.5.29.30') {
|
|
1637
|
+
// handle nameConstraints (id-ce-nameConstraints only, the deprecated
|
|
1638
|
+
// 2.5.29.11 OID has a different syntax and is not parsed)
|
|
1639
|
+
// (an invalid value is left unparsed; verifyCertificateChain()
|
|
1640
|
+
// rejects it)
|
|
1641
|
+
try {
|
|
1642
|
+
var nc = _readNameConstraints(asn1.fromDer(e.value));
|
|
1643
|
+
e.permittedSubtrees = nc.permittedSubtrees;
|
|
1644
|
+
e.excludedSubtrees = nc.excludedSubtrees;
|
|
1645
|
+
e.unsupportedSubtreeRange = nc.unsupportedSubtreeRange;
|
|
1646
|
+
} catch(ex) {
|
|
1647
|
+
// not parsed
|
|
1648
|
+
}
|
|
1649
|
+
} else if(e.name === 'subjectKeyIdentifier') {
|
|
1650
|
+
// value is an OCTETSTRING w/the hash of the key-type specific
|
|
1651
|
+
// public key structure (eg: RSAPublicKey)
|
|
1652
|
+
var ev = asn1.fromDer(e.value);
|
|
1653
|
+
e.subjectKeyIdentifier = forge.util.bytesToHex(ev.value);
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
return e;
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Reads the value of a NameConstraints extension (RFC 5280 4.2.1.10).
|
|
1661
|
+
*
|
|
1662
|
+
* NameConstraints ::= SEQUENCE {
|
|
1663
|
+
* permittedSubtrees [0] GeneralSubtrees OPTIONAL,
|
|
1664
|
+
* excludedSubtrees [1] GeneralSubtrees OPTIONAL }
|
|
1665
|
+
*
|
|
1666
|
+
* GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
|
|
1667
|
+
*
|
|
1668
|
+
* GeneralSubtree ::= SEQUENCE {
|
|
1669
|
+
* base GeneralName,
|
|
1670
|
+
* minimum [0] BaseDistance DEFAULT 0,
|
|
1671
|
+
* maximum [1] BaseDistance OPTIONAL }
|
|
1672
|
+
*
|
|
1673
|
+
* Each subtree is returned as an object with the GeneralName 'type' and
|
|
1674
|
+
* 'value' (as for subjectAltName), 'attributes' for a directoryName base and
|
|
1675
|
+
* 'minimum'/'maximum' when present.
|
|
1676
|
+
*
|
|
1677
|
+
* @param ev the extension value as an ASN.1 object.
|
|
1678
|
+
*
|
|
1679
|
+
* @return an object with permittedSubtrees, excludedSubtrees and
|
|
1680
|
+
* unsupportedSubtreeRange (true if any subtree has a minimum other
|
|
1681
|
+
* than 0 or a maximum, which RFC 5280 does not allow).
|
|
1682
|
+
*/
|
|
1683
|
+
function _readNameConstraints(ev) {
|
|
1684
|
+
var rval = {
|
|
1685
|
+
permittedSubtrees: [],
|
|
1686
|
+
excludedSubtrees: [],
|
|
1687
|
+
unsupportedSubtreeRange: false
|
|
1688
|
+
};
|
|
1689
|
+
if(ev.tagClass !== asn1.Class.UNIVERSAL ||
|
|
1690
|
+
ev.type !== asn1.Type.SEQUENCE || !forge.util.isArray(ev.value)) {
|
|
1691
|
+
throw new Error('Invalid nameConstraints extension.');
|
|
1692
|
+
}
|
|
1693
|
+
for(var i = 0; i < ev.value.length; ++i) {
|
|
1694
|
+
var trees = ev.value[i];
|
|
1695
|
+
var list;
|
|
1696
|
+
if(trees.tagClass === asn1.Class.CONTEXT_SPECIFIC && trees.type === 0) {
|
|
1697
|
+
list = rval.permittedSubtrees;
|
|
1698
|
+
} else if(trees.tagClass === asn1.Class.CONTEXT_SPECIFIC &&
|
|
1699
|
+
trees.type === 1) {
|
|
1700
|
+
list = rval.excludedSubtrees;
|
|
1701
|
+
} else {
|
|
1702
|
+
throw new Error('Invalid nameConstraints extension.');
|
|
1703
|
+
}
|
|
1704
|
+
if(!forge.util.isArray(trees.value)) {
|
|
1705
|
+
throw new Error('Invalid nameConstraints extension.');
|
|
1706
|
+
}
|
|
1707
|
+
for(var n = 0; n < trees.value.length; ++n) {
|
|
1708
|
+
var subtree = trees.value[n];
|
|
1709
|
+
if(subtree.type !== asn1.Type.SEQUENCE ||
|
|
1710
|
+
!forge.util.isArray(subtree.value) || subtree.value.length === 0 ||
|
|
1711
|
+
subtree.value[0].tagClass !== asn1.Class.CONTEXT_SPECIFIC) {
|
|
1712
|
+
throw new Error('Invalid nameConstraints extension.');
|
|
1713
|
+
}
|
|
1714
|
+
// base GeneralName
|
|
1715
|
+
var gn = subtree.value[0];
|
|
1716
|
+
var base = {
|
|
1717
|
+
type: gn.type,
|
|
1718
|
+
value: gn.value
|
|
1719
|
+
};
|
|
1720
|
+
// directoryName is an EXPLICIT Name
|
|
1721
|
+
if(gn.type === 4 && forge.util.isArray(gn.value) &&
|
|
1722
|
+
gn.value.length === 1 &&
|
|
1723
|
+
gn.value[0].type === asn1.Type.SEQUENCE &&
|
|
1724
|
+
forge.util.isArray(gn.value[0].value)) {
|
|
1725
|
+
base.attributes = pki.RDNAttributesAsArray(gn.value[0]);
|
|
1726
|
+
}
|
|
1727
|
+
// minimum and maximum
|
|
1728
|
+
for(var m = 1; m < subtree.value.length; ++m) {
|
|
1729
|
+
var bd = subtree.value[m];
|
|
1730
|
+
if(bd.tagClass === asn1.Class.CONTEXT_SPECIFIC && bd.type === 0) {
|
|
1731
|
+
base.minimum = asn1.derToInteger(bd.value);
|
|
1732
|
+
if(base.minimum !== 0) {
|
|
1733
|
+
rval.unsupportedSubtreeRange = true;
|
|
1734
|
+
}
|
|
1735
|
+
} else if(bd.tagClass === asn1.Class.CONTEXT_SPECIFIC &&
|
|
1736
|
+
bd.type === 1) {
|
|
1737
|
+
base.maximum = asn1.derToInteger(bd.value);
|
|
1738
|
+
rval.unsupportedSubtreeRange = true;
|
|
1739
|
+
} else {
|
|
1740
|
+
throw new Error('Invalid nameConstraints extension.');
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
list.push(base);
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
return rval;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* Converts a PKCS#10 certification request (CSR) from an ASN.1 object.
|
|
1751
|
+
*
|
|
1752
|
+
* Note: If the certification request is to be verified then compute hash
|
|
1753
|
+
* should be set to true. There is currently no implementation for converting
|
|
1754
|
+
* a certificate back to ASN.1 so the CertificationRequestInfo part of the
|
|
1755
|
+
* ASN.1 object needs to be scanned before the csr object is created.
|
|
1756
|
+
*
|
|
1757
|
+
* @param obj the asn1 representation of a PKCS#10 certification request (CSR).
|
|
1758
|
+
* @param computeHash true to compute the hash for verification.
|
|
1759
|
+
*
|
|
1760
|
+
* @return the certification request (CSR).
|
|
1761
|
+
*/
|
|
1762
|
+
pki.certificationRequestFromAsn1 = function(obj, computeHash) {
|
|
1763
|
+
// validate certification request and capture data
|
|
1764
|
+
var capture = {};
|
|
1765
|
+
var errors = [];
|
|
1766
|
+
if(!asn1.validate(obj, certificationRequestValidator, capture, errors)) {
|
|
1767
|
+
var error = new Error('Cannot read PKCS#10 certificate request. ' +
|
|
1768
|
+
'ASN.1 object is not a PKCS#10 CertificationRequest.');
|
|
1769
|
+
error.errors = errors;
|
|
1770
|
+
throw error;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
// get oid
|
|
1774
|
+
var oid = asn1.derToOid(capture.publicKeyOid);
|
|
1775
|
+
if(oid !== pki.oids.rsaEncryption) {
|
|
1776
|
+
throw new Error('Cannot read public key. OID is not RSA.');
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
// create certification request
|
|
1780
|
+
var csr = pki.createCertificationRequest();
|
|
1781
|
+
csr.version = capture.csrVersion ? capture.csrVersion.charCodeAt(0) : 0;
|
|
1782
|
+
csr.signatureOid = forge.asn1.derToOid(capture.csrSignatureOid);
|
|
1783
|
+
csr.signatureParameters = _readSignatureParameters(
|
|
1784
|
+
csr.signatureOid, capture.csrSignatureParams, true);
|
|
1785
|
+
csr.siginfo.algorithmOid = forge.asn1.derToOid(capture.csrSignatureOid);
|
|
1786
|
+
csr.siginfo.parameters = _readSignatureParameters(
|
|
1787
|
+
csr.siginfo.algorithmOid, capture.csrSignatureParams, false);
|
|
1788
|
+
csr.signature = capture.csrSignature;
|
|
1789
|
+
|
|
1790
|
+
// keep CertificationRequestInfo to preserve signature when exporting
|
|
1791
|
+
csr.certificationRequestInfo = capture.certificationRequestInfo;
|
|
1792
|
+
|
|
1793
|
+
if(computeHash) {
|
|
1794
|
+
// create digest for OID signature type
|
|
1795
|
+
csr.md = _createSignatureDigest({
|
|
1796
|
+
signatureOid: csr.signatureOid,
|
|
1797
|
+
type: 'certification request'
|
|
1798
|
+
});
|
|
1799
|
+
|
|
1800
|
+
// produce DER formatted CertificationRequestInfo and digest it
|
|
1801
|
+
var bytes = asn1.toDer(csr.certificationRequestInfo);
|
|
1802
|
+
csr.md.update(bytes.getBytes());
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
// handle subject, build subject message digest
|
|
1806
|
+
var smd = forge.md.sha1.create();
|
|
1807
|
+
csr.subject.getField = function(sn) {
|
|
1808
|
+
return _getAttribute(csr.subject, sn);
|
|
1809
|
+
};
|
|
1810
|
+
csr.subject.addField = function(attr) {
|
|
1811
|
+
_fillMissingFields([attr]);
|
|
1812
|
+
csr.subject.attributes.push(attr);
|
|
1813
|
+
};
|
|
1814
|
+
csr.subject.attributes = pki.RDNAttributesAsArray(
|
|
1815
|
+
capture.certificationRequestInfoSubject, smd);
|
|
1816
|
+
csr.subject.hash = smd.digest().toHex();
|
|
1817
|
+
|
|
1818
|
+
// convert RSA public key from ASN.1
|
|
1819
|
+
csr.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo);
|
|
1820
|
+
|
|
1821
|
+
// convert attributes from ASN.1
|
|
1822
|
+
csr.getAttribute = function(sn) {
|
|
1823
|
+
return _getAttribute(csr, sn);
|
|
1824
|
+
};
|
|
1825
|
+
csr.addAttribute = function(attr) {
|
|
1826
|
+
_fillMissingFields([attr]);
|
|
1827
|
+
csr.attributes.push(attr);
|
|
1828
|
+
};
|
|
1829
|
+
csr.attributes = pki.CRIAttributesAsArray(
|
|
1830
|
+
capture.certificationRequestInfoAttributes || []);
|
|
1831
|
+
|
|
1832
|
+
return csr;
|
|
1833
|
+
};
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Creates an empty certification request (a CSR or certificate signing
|
|
1837
|
+
* request). Once created, its public key and attributes can be set and then
|
|
1838
|
+
* it can be signed.
|
|
1839
|
+
*
|
|
1840
|
+
* @return the empty certification request.
|
|
1841
|
+
*/
|
|
1842
|
+
pki.createCertificationRequest = function() {
|
|
1843
|
+
var csr = {};
|
|
1844
|
+
csr.version = 0x00;
|
|
1845
|
+
csr.signatureOid = null;
|
|
1846
|
+
csr.signature = null;
|
|
1847
|
+
csr.siginfo = {};
|
|
1848
|
+
csr.siginfo.algorithmOid = null;
|
|
1849
|
+
|
|
1850
|
+
csr.subject = {};
|
|
1851
|
+
csr.subject.getField = function(sn) {
|
|
1852
|
+
return _getAttribute(csr.subject, sn);
|
|
1853
|
+
};
|
|
1854
|
+
csr.subject.addField = function(attr) {
|
|
1855
|
+
_fillMissingFields([attr]);
|
|
1856
|
+
csr.subject.attributes.push(attr);
|
|
1857
|
+
};
|
|
1858
|
+
csr.subject.attributes = [];
|
|
1859
|
+
csr.subject.hash = null;
|
|
1860
|
+
|
|
1861
|
+
csr.publicKey = null;
|
|
1862
|
+
csr.attributes = [];
|
|
1863
|
+
csr.getAttribute = function(sn) {
|
|
1864
|
+
return _getAttribute(csr, sn);
|
|
1865
|
+
};
|
|
1866
|
+
csr.addAttribute = function(attr) {
|
|
1867
|
+
_fillMissingFields([attr]);
|
|
1868
|
+
csr.attributes.push(attr);
|
|
1869
|
+
};
|
|
1870
|
+
csr.md = null;
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Sets the subject of this certification request.
|
|
1874
|
+
*
|
|
1875
|
+
* @param attrs the array of subject attributes to use.
|
|
1876
|
+
*/
|
|
1877
|
+
csr.setSubject = function(attrs) {
|
|
1878
|
+
// set new attributes
|
|
1879
|
+
_fillMissingFields(attrs);
|
|
1880
|
+
csr.subject.attributes = attrs;
|
|
1881
|
+
csr.subject.hash = null;
|
|
1882
|
+
};
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* Sets the attributes of this certification request.
|
|
1886
|
+
*
|
|
1887
|
+
* @param attrs the array of attributes to use.
|
|
1888
|
+
*/
|
|
1889
|
+
csr.setAttributes = function(attrs) {
|
|
1890
|
+
// set new attributes
|
|
1891
|
+
_fillMissingFields(attrs);
|
|
1892
|
+
csr.attributes = attrs;
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* Signs this certification request using the given private key.
|
|
1897
|
+
*
|
|
1898
|
+
* @param key the private key to sign with.
|
|
1899
|
+
* @param md the message digest object to use (defaults to forge.md.sha1).
|
|
1900
|
+
*/
|
|
1901
|
+
csr.sign = function(key, md) {
|
|
1902
|
+
// TODO: get signature OID from private key
|
|
1903
|
+
csr.md = md || forge.md.sha1.create();
|
|
1904
|
+
var algorithmOid = oids[csr.md.algorithm + 'WithRSAEncryption'];
|
|
1905
|
+
if(!algorithmOid) {
|
|
1906
|
+
var error = new Error('Could not compute certification request digest. ' +
|
|
1907
|
+
'Unknown message digest algorithm OID.');
|
|
1908
|
+
error.algorithm = csr.md.algorithm;
|
|
1909
|
+
throw error;
|
|
1910
|
+
}
|
|
1911
|
+
csr.signatureOid = csr.siginfo.algorithmOid = algorithmOid;
|
|
1912
|
+
|
|
1913
|
+
// get CertificationRequestInfo, convert to DER
|
|
1914
|
+
csr.certificationRequestInfo = pki.getCertificationRequestInfo(csr);
|
|
1915
|
+
var bytes = asn1.toDer(csr.certificationRequestInfo);
|
|
1916
|
+
|
|
1917
|
+
// digest and sign
|
|
1918
|
+
csr.md.update(bytes.getBytes());
|
|
1919
|
+
csr.signature = key.sign(csr.md);
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* Attempts verify the signature on the passed certification request using
|
|
1924
|
+
* its public key.
|
|
1925
|
+
*
|
|
1926
|
+
* A CSR that has been exported to a file in PEM format can be verified using
|
|
1927
|
+
* OpenSSL using this command:
|
|
1928
|
+
*
|
|
1929
|
+
* openssl req -in <the-csr-pem-file> -verify -noout -text
|
|
1930
|
+
*
|
|
1931
|
+
* @return true if verified, false if not.
|
|
1932
|
+
*/
|
|
1933
|
+
csr.verify = function() {
|
|
1934
|
+
var rval = false;
|
|
1935
|
+
|
|
1936
|
+
var md = csr.md;
|
|
1937
|
+
if(md === null) {
|
|
1938
|
+
md = _createSignatureDigest({
|
|
1939
|
+
signatureOid: csr.signatureOid,
|
|
1940
|
+
type: 'certification request'
|
|
1941
|
+
});
|
|
1942
|
+
|
|
1943
|
+
// produce DER formatted CertificationRequestInfo and digest it
|
|
1944
|
+
var cri = csr.certificationRequestInfo ||
|
|
1945
|
+
pki.getCertificationRequestInfo(csr);
|
|
1946
|
+
var bytes = asn1.toDer(cri);
|
|
1947
|
+
md.update(bytes.getBytes());
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
if(md !== null) {
|
|
1951
|
+
rval = _verifySignature({
|
|
1952
|
+
certificate: csr, md: md, signature: csr.signature
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
return rval;
|
|
1957
|
+
};
|
|
1958
|
+
|
|
1959
|
+
return csr;
|
|
1960
|
+
};
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* Converts an X.509 subject or issuer to an ASN.1 RDNSequence.
|
|
1964
|
+
*
|
|
1965
|
+
* @param obj the subject or issuer (distinguished name).
|
|
1966
|
+
*
|
|
1967
|
+
* @return the ASN.1 RDNSequence.
|
|
1968
|
+
*/
|
|
1969
|
+
function _dnToAsn1(obj) {
|
|
1970
|
+
// create an empty RDNSequence
|
|
1971
|
+
var rval = asn1.create(
|
|
1972
|
+
asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
1973
|
+
|
|
1974
|
+
// iterate over attributes
|
|
1975
|
+
var attr, set;
|
|
1976
|
+
var attrs = obj.attributes;
|
|
1977
|
+
for(var i = 0; i < attrs.length; ++i) {
|
|
1978
|
+
attr = attrs[i];
|
|
1979
|
+
var value = attr.value;
|
|
1980
|
+
|
|
1981
|
+
// reuse tag class for attribute value if available
|
|
1982
|
+
var valueTagClass = asn1.Type.PRINTABLESTRING;
|
|
1983
|
+
if('valueTagClass' in attr) {
|
|
1984
|
+
valueTagClass = attr.valueTagClass;
|
|
1985
|
+
|
|
1986
|
+
if(valueTagClass === asn1.Type.UTF8) {
|
|
1987
|
+
value = forge.util.encodeUtf8(value);
|
|
1988
|
+
}
|
|
1989
|
+
// FIXME: handle more encodings
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
// create a RelativeDistinguishedName set
|
|
1993
|
+
// each value in the set is an AttributeTypeAndValue first
|
|
1994
|
+
// containing the type (an OID) and second the value
|
|
1995
|
+
set = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [
|
|
1996
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
1997
|
+
// AttributeType
|
|
1998
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
1999
|
+
asn1.oidToDer(attr.type).getBytes()),
|
|
2000
|
+
// AttributeValue
|
|
2001
|
+
asn1.create(asn1.Class.UNIVERSAL, valueTagClass, false, value)
|
|
2002
|
+
])
|
|
2003
|
+
]);
|
|
2004
|
+
rval.value.push(set);
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
return rval;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* Gets all printable attributes (typically of an issuer or subject) in a
|
|
2012
|
+
* simplified JSON format for display.
|
|
2013
|
+
*
|
|
2014
|
+
* @param attrs the attributes.
|
|
2015
|
+
*
|
|
2016
|
+
* @return the JSON for display.
|
|
2017
|
+
*/
|
|
2018
|
+
function _getAttributesAsJson(attrs) {
|
|
2019
|
+
var rval = {};
|
|
2020
|
+
for(var i = 0; i < attrs.length; ++i) {
|
|
2021
|
+
var attr = attrs[i];
|
|
2022
|
+
if(attr.shortName && (
|
|
2023
|
+
attr.valueTagClass === asn1.Type.UTF8 ||
|
|
2024
|
+
attr.valueTagClass === asn1.Type.PRINTABLESTRING ||
|
|
2025
|
+
attr.valueTagClass === asn1.Type.IA5STRING)) {
|
|
2026
|
+
var value = attr.value;
|
|
2027
|
+
if(attr.valueTagClass === asn1.Type.UTF8) {
|
|
2028
|
+
value = forge.util.encodeUtf8(attr.value);
|
|
2029
|
+
}
|
|
2030
|
+
if(!(attr.shortName in rval)) {
|
|
2031
|
+
rval[attr.shortName] = value;
|
|
2032
|
+
} else if(forge.util.isArray(rval[attr.shortName])) {
|
|
2033
|
+
rval[attr.shortName].push(value);
|
|
2034
|
+
} else {
|
|
2035
|
+
rval[attr.shortName] = [rval[attr.shortName], value];
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
return rval;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
/**
|
|
2043
|
+
* Fills in missing fields in attributes.
|
|
2044
|
+
*
|
|
2045
|
+
* @param attrs the attributes to fill missing fields in.
|
|
2046
|
+
*/
|
|
2047
|
+
function _fillMissingFields(attrs) {
|
|
2048
|
+
var attr;
|
|
2049
|
+
for(var i = 0; i < attrs.length; ++i) {
|
|
2050
|
+
attr = attrs[i];
|
|
2051
|
+
|
|
2052
|
+
// populate missing name
|
|
2053
|
+
if(typeof attr.name === 'undefined') {
|
|
2054
|
+
if(attr.type && attr.type in pki.oids) {
|
|
2055
|
+
attr.name = pki.oids[attr.type];
|
|
2056
|
+
} else if(attr.shortName && attr.shortName in _shortNames) {
|
|
2057
|
+
attr.name = pki.oids[_shortNames[attr.shortName]];
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
// populate missing type (OID)
|
|
2062
|
+
if(typeof attr.type === 'undefined') {
|
|
2063
|
+
if(attr.name && attr.name in pki.oids) {
|
|
2064
|
+
attr.type = pki.oids[attr.name];
|
|
2065
|
+
} else {
|
|
2066
|
+
var error = new Error('Attribute type not specified.');
|
|
2067
|
+
error.attribute = attr;
|
|
2068
|
+
throw error;
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
// populate missing shortname
|
|
2073
|
+
if(typeof attr.shortName === 'undefined') {
|
|
2074
|
+
if(attr.name && attr.name in _shortNames) {
|
|
2075
|
+
attr.shortName = _shortNames[attr.name];
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
// convert extensions to value
|
|
2080
|
+
if(attr.type === oids.extensionRequest) {
|
|
2081
|
+
attr.valueConstructed = true;
|
|
2082
|
+
attr.valueTagClass = asn1.Type.SEQUENCE;
|
|
2083
|
+
if(!attr.value && attr.extensions) {
|
|
2084
|
+
attr.value = [];
|
|
2085
|
+
for(var ei = 0; ei < attr.extensions.length; ++ei) {
|
|
2086
|
+
attr.value.push(pki.certificateExtensionToAsn1(
|
|
2087
|
+
_fillMissingExtensionFields(attr.extensions[ei])));
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
if(typeof attr.value === 'undefined') {
|
|
2093
|
+
var error = new Error('Attribute value not specified.');
|
|
2094
|
+
error.attribute = attr;
|
|
2095
|
+
throw error;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* Fills in missing fields in certificate extensions.
|
|
2102
|
+
*
|
|
2103
|
+
* @param e the extension.
|
|
2104
|
+
* @param [options] the options to use.
|
|
2105
|
+
* [cert] the certificate the extensions are for.
|
|
2106
|
+
*
|
|
2107
|
+
* @return the extension.
|
|
2108
|
+
*/
|
|
2109
|
+
function _fillMissingExtensionFields(e, options) {
|
|
2110
|
+
options = options || {};
|
|
2111
|
+
|
|
2112
|
+
// populate missing name
|
|
2113
|
+
if(typeof e.name === 'undefined') {
|
|
2114
|
+
if(e.id && e.id in pki.oids) {
|
|
2115
|
+
e.name = pki.oids[e.id];
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
// populate missing id
|
|
2120
|
+
if(typeof e.id === 'undefined') {
|
|
2121
|
+
if(e.name && e.name in pki.oids) {
|
|
2122
|
+
e.id = pki.oids[e.name];
|
|
2123
|
+
} else {
|
|
2124
|
+
var error = new Error('Extension ID not specified.');
|
|
2125
|
+
error.extension = e;
|
|
2126
|
+
throw error;
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
if(typeof e.value !== 'undefined') {
|
|
2131
|
+
return e;
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
// handle missing value:
|
|
2135
|
+
|
|
2136
|
+
// value is a BIT STRING
|
|
2137
|
+
if(e.name === 'keyUsage') {
|
|
2138
|
+
// build flags
|
|
2139
|
+
var unused = 0;
|
|
2140
|
+
var b2 = 0x00;
|
|
2141
|
+
var b3 = 0x00;
|
|
2142
|
+
if(e.digitalSignature) {
|
|
2143
|
+
b2 |= 0x80;
|
|
2144
|
+
unused = 7;
|
|
2145
|
+
}
|
|
2146
|
+
if(e.nonRepudiation) {
|
|
2147
|
+
b2 |= 0x40;
|
|
2148
|
+
unused = 6;
|
|
2149
|
+
}
|
|
2150
|
+
if(e.keyEncipherment) {
|
|
2151
|
+
b2 |= 0x20;
|
|
2152
|
+
unused = 5;
|
|
2153
|
+
}
|
|
2154
|
+
if(e.dataEncipherment) {
|
|
2155
|
+
b2 |= 0x10;
|
|
2156
|
+
unused = 4;
|
|
2157
|
+
}
|
|
2158
|
+
if(e.keyAgreement) {
|
|
2159
|
+
b2 |= 0x08;
|
|
2160
|
+
unused = 3;
|
|
2161
|
+
}
|
|
2162
|
+
if(e.keyCertSign) {
|
|
2163
|
+
b2 |= 0x04;
|
|
2164
|
+
unused = 2;
|
|
2165
|
+
}
|
|
2166
|
+
if(e.cRLSign) {
|
|
2167
|
+
b2 |= 0x02;
|
|
2168
|
+
unused = 1;
|
|
2169
|
+
}
|
|
2170
|
+
if(e.encipherOnly) {
|
|
2171
|
+
b2 |= 0x01;
|
|
2172
|
+
unused = 0;
|
|
2173
|
+
}
|
|
2174
|
+
if(e.decipherOnly) {
|
|
2175
|
+
b3 |= 0x80;
|
|
2176
|
+
unused = 7;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
// create bit string
|
|
2180
|
+
var value = String.fromCharCode(unused);
|
|
2181
|
+
if(b3 !== 0) {
|
|
2182
|
+
value += String.fromCharCode(b2) + String.fromCharCode(b3);
|
|
2183
|
+
} else if(b2 !== 0) {
|
|
2184
|
+
value += String.fromCharCode(b2);
|
|
2185
|
+
}
|
|
2186
|
+
e.value = asn1.create(
|
|
2187
|
+
asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value);
|
|
2188
|
+
} else if(e.name === 'basicConstraints') {
|
|
2189
|
+
// basicConstraints is a SEQUENCE
|
|
2190
|
+
e.value = asn1.create(
|
|
2191
|
+
asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
2192
|
+
// cA BOOLEAN flag defaults to false
|
|
2193
|
+
if(e.cA) {
|
|
2194
|
+
e.value.value.push(asn1.create(
|
|
2195
|
+
asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false,
|
|
2196
|
+
String.fromCharCode(0xFF)));
|
|
2197
|
+
}
|
|
2198
|
+
if('pathLenConstraint' in e) {
|
|
2199
|
+
e.value.value.push(asn1.create(
|
|
2200
|
+
asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
|
|
2201
|
+
asn1.integerToDer(e.pathLenConstraint).getBytes()));
|
|
2202
|
+
}
|
|
2203
|
+
} else if(e.name === 'extKeyUsage') {
|
|
2204
|
+
// extKeyUsage is a SEQUENCE of OIDs
|
|
2205
|
+
e.value = asn1.create(
|
|
2206
|
+
asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
2207
|
+
var seq = e.value.value;
|
|
2208
|
+
for(var key in e) {
|
|
2209
|
+
if(e[key] !== true) {
|
|
2210
|
+
continue;
|
|
2211
|
+
}
|
|
2212
|
+
// key is name in OID map
|
|
2213
|
+
if(key in oids) {
|
|
2214
|
+
seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID,
|
|
2215
|
+
false, asn1.oidToDer(oids[key]).getBytes()));
|
|
2216
|
+
} else if(key.indexOf('.') !== -1) {
|
|
2217
|
+
// assume key is an OID
|
|
2218
|
+
seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID,
|
|
2219
|
+
false, asn1.oidToDer(key).getBytes()));
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
} else if(e.name === 'nsCertType') {
|
|
2223
|
+
// nsCertType is a BIT STRING
|
|
2224
|
+
// build flags
|
|
2225
|
+
var unused = 0;
|
|
2226
|
+
var b2 = 0x00;
|
|
2227
|
+
|
|
2228
|
+
if(e.client) {
|
|
2229
|
+
b2 |= 0x80;
|
|
2230
|
+
unused = 7;
|
|
2231
|
+
}
|
|
2232
|
+
if(e.server) {
|
|
2233
|
+
b2 |= 0x40;
|
|
2234
|
+
unused = 6;
|
|
2235
|
+
}
|
|
2236
|
+
if(e.email) {
|
|
2237
|
+
b2 |= 0x20;
|
|
2238
|
+
unused = 5;
|
|
2239
|
+
}
|
|
2240
|
+
if(e.objsign) {
|
|
2241
|
+
b2 |= 0x10;
|
|
2242
|
+
unused = 4;
|
|
2243
|
+
}
|
|
2244
|
+
if(e.reserved) {
|
|
2245
|
+
b2 |= 0x08;
|
|
2246
|
+
unused = 3;
|
|
2247
|
+
}
|
|
2248
|
+
if(e.sslCA) {
|
|
2249
|
+
b2 |= 0x04;
|
|
2250
|
+
unused = 2;
|
|
2251
|
+
}
|
|
2252
|
+
if(e.emailCA) {
|
|
2253
|
+
b2 |= 0x02;
|
|
2254
|
+
unused = 1;
|
|
2255
|
+
}
|
|
2256
|
+
if(e.objCA) {
|
|
2257
|
+
b2 |= 0x01;
|
|
2258
|
+
unused = 0;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
// create bit string
|
|
2262
|
+
var value = String.fromCharCode(unused);
|
|
2263
|
+
if(b2 !== 0) {
|
|
2264
|
+
value += String.fromCharCode(b2);
|
|
2265
|
+
}
|
|
2266
|
+
e.value = asn1.create(
|
|
2267
|
+
asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value);
|
|
2268
|
+
} else if(e.name === 'subjectAltName' || e.name === 'issuerAltName') {
|
|
2269
|
+
// SYNTAX SEQUENCE
|
|
2270
|
+
e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
2271
|
+
|
|
2272
|
+
var altName;
|
|
2273
|
+
for(var n = 0; n < e.altNames.length; ++n) {
|
|
2274
|
+
altName = e.altNames[n];
|
|
2275
|
+
var value = altName.value;
|
|
2276
|
+
// handle IP
|
|
2277
|
+
if(altName.type === 7 && altName.ip) {
|
|
2278
|
+
value = forge.util.bytesFromIP(altName.ip);
|
|
2279
|
+
if(value === null) {
|
|
2280
|
+
var error = new Error(
|
|
2281
|
+
'Extension "ip" value is not a valid IPv4 or IPv6 address.');
|
|
2282
|
+
error.extension = e;
|
|
2283
|
+
throw error;
|
|
2284
|
+
}
|
|
2285
|
+
} else if(altName.type === 8) {
|
|
2286
|
+
// handle OID
|
|
2287
|
+
if(altName.oid) {
|
|
2288
|
+
value = asn1.oidToDer(asn1.oidToDer(altName.oid));
|
|
2289
|
+
} else {
|
|
2290
|
+
// deprecated ... convert value to OID
|
|
2291
|
+
value = asn1.oidToDer(value);
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
e.value.value.push(asn1.create(
|
|
2295
|
+
asn1.Class.CONTEXT_SPECIFIC, altName.type, false,
|
|
2296
|
+
value));
|
|
2297
|
+
}
|
|
2298
|
+
} else if(e.name === 'nsComment' && options.cert) {
|
|
2299
|
+
// sanity check value is ASCII (req'd) and not too big
|
|
2300
|
+
if(!(/^[\x00-\x7F]*$/.test(e.comment)) ||
|
|
2301
|
+
(e.comment.length < 1) || (e.comment.length > 128)) {
|
|
2302
|
+
throw new Error('Invalid "nsComment" content.');
|
|
2303
|
+
}
|
|
2304
|
+
// IA5STRING opaque comment
|
|
2305
|
+
e.value = asn1.create(
|
|
2306
|
+
asn1.Class.UNIVERSAL, asn1.Type.IA5STRING, false, e.comment);
|
|
2307
|
+
} else if(e.name === 'subjectKeyIdentifier' && options.cert) {
|
|
2308
|
+
var ski = options.cert.generateSubjectKeyIdentifier();
|
|
2309
|
+
e.subjectKeyIdentifier = ski.toHex();
|
|
2310
|
+
// OCTETSTRING w/digest
|
|
2311
|
+
e.value = asn1.create(
|
|
2312
|
+
asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, ski.getBytes());
|
|
2313
|
+
} else if(e.name === 'authorityKeyIdentifier' && options.cert) {
|
|
2314
|
+
// SYNTAX SEQUENCE
|
|
2315
|
+
e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
2316
|
+
var seq = e.value.value;
|
|
2317
|
+
|
|
2318
|
+
if(e.keyIdentifier) {
|
|
2319
|
+
var keyIdentifier = (e.keyIdentifier === true ?
|
|
2320
|
+
options.cert.generateSubjectKeyIdentifier().getBytes() :
|
|
2321
|
+
e.keyIdentifier);
|
|
2322
|
+
seq.push(
|
|
2323
|
+
asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, false, keyIdentifier));
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
if(e.authorityCertIssuer) {
|
|
2327
|
+
var authorityCertIssuer = [
|
|
2328
|
+
asn1.create(asn1.Class.CONTEXT_SPECIFIC, 4, true, [
|
|
2329
|
+
_dnToAsn1(e.authorityCertIssuer === true ?
|
|
2330
|
+
options.cert.issuer : e.authorityCertIssuer)
|
|
2331
|
+
])
|
|
2332
|
+
];
|
|
2333
|
+
seq.push(
|
|
2334
|
+
asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, authorityCertIssuer));
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
if(e.serialNumber) {
|
|
2338
|
+
var serialNumber = forge.util.hexToBytes(e.serialNumber === true ?
|
|
2339
|
+
options.cert.serialNumber : e.serialNumber);
|
|
2340
|
+
seq.push(
|
|
2341
|
+
asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, false, serialNumber));
|
|
2342
|
+
}
|
|
2343
|
+
} else if(e.name === 'cRLDistributionPoints') {
|
|
2344
|
+
e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
2345
|
+
var seq = e.value.value;
|
|
2346
|
+
|
|
2347
|
+
// Create sub SEQUENCE of DistributionPointName
|
|
2348
|
+
var subSeq = asn1.create(
|
|
2349
|
+
asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
2350
|
+
|
|
2351
|
+
// Create fullName CHOICE
|
|
2352
|
+
var fullNameGeneralNames = asn1.create(
|
|
2353
|
+
asn1.Class.CONTEXT_SPECIFIC, 0, true, []);
|
|
2354
|
+
var altName;
|
|
2355
|
+
for(var n = 0; n < e.altNames.length; ++n) {
|
|
2356
|
+
altName = e.altNames[n];
|
|
2357
|
+
var value = altName.value;
|
|
2358
|
+
// handle IP
|
|
2359
|
+
if(altName.type === 7 && altName.ip) {
|
|
2360
|
+
value = forge.util.bytesFromIP(altName.ip);
|
|
2361
|
+
if(value === null) {
|
|
2362
|
+
var error = new Error(
|
|
2363
|
+
'Extension "ip" value is not a valid IPv4 or IPv6 address.');
|
|
2364
|
+
error.extension = e;
|
|
2365
|
+
throw error;
|
|
2366
|
+
}
|
|
2367
|
+
} else if(altName.type === 8) {
|
|
2368
|
+
// handle OID
|
|
2369
|
+
if(altName.oid) {
|
|
2370
|
+
value = asn1.oidToDer(asn1.oidToDer(altName.oid));
|
|
2371
|
+
} else {
|
|
2372
|
+
// deprecated ... convert value to OID
|
|
2373
|
+
value = asn1.oidToDer(value);
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
fullNameGeneralNames.value.push(asn1.create(
|
|
2377
|
+
asn1.Class.CONTEXT_SPECIFIC, altName.type, false,
|
|
2378
|
+
value));
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
// Add to the parent SEQUENCE
|
|
2382
|
+
subSeq.value.push(asn1.create(
|
|
2383
|
+
asn1.Class.CONTEXT_SPECIFIC, 0, true, [fullNameGeneralNames]));
|
|
2384
|
+
seq.push(subSeq);
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
// ensure value has been defined by now
|
|
2388
|
+
if(typeof e.value === 'undefined') {
|
|
2389
|
+
var error = new Error('Extension value not specified.');
|
|
2390
|
+
error.extension = e;
|
|
2391
|
+
throw error;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
return e;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* Convert signature parameters object to ASN.1
|
|
2399
|
+
*
|
|
2400
|
+
* @param {String} oid Signature algorithm OID
|
|
2401
|
+
* @param params The signature parameters object
|
|
2402
|
+
* @return ASN.1 object representing signature parameters
|
|
2403
|
+
*/
|
|
2404
|
+
function _signatureParametersToAsn1(oid, params) {
|
|
2405
|
+
switch(oid) {
|
|
2406
|
+
case oids['RSASSA-PSS']:
|
|
2407
|
+
var parts = [];
|
|
2408
|
+
|
|
2409
|
+
if(params.hash.algorithmOid !== undefined) {
|
|
2410
|
+
parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [
|
|
2411
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2412
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
2413
|
+
asn1.oidToDer(params.hash.algorithmOid).getBytes()),
|
|
2414
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')
|
|
2415
|
+
])
|
|
2416
|
+
]));
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
if(params.mgf.algorithmOid !== undefined) {
|
|
2420
|
+
parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [
|
|
2421
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2422
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
2423
|
+
asn1.oidToDer(params.mgf.algorithmOid).getBytes()),
|
|
2424
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2425
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
2426
|
+
asn1.oidToDer(params.mgf.hash.algorithmOid).getBytes()),
|
|
2427
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')
|
|
2428
|
+
])
|
|
2429
|
+
])
|
|
2430
|
+
]));
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
if(params.saltLength !== undefined) {
|
|
2434
|
+
parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [
|
|
2435
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
|
|
2436
|
+
asn1.integerToDer(params.saltLength).getBytes())
|
|
2437
|
+
]));
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, parts);
|
|
2441
|
+
|
|
2442
|
+
default:
|
|
2443
|
+
return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '');
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* Converts a certification request's attributes to an ASN.1 set of
|
|
2449
|
+
* CRIAttributes.
|
|
2450
|
+
*
|
|
2451
|
+
* @param csr certification request.
|
|
2452
|
+
*
|
|
2453
|
+
* @return the ASN.1 set of CRIAttributes.
|
|
2454
|
+
*/
|
|
2455
|
+
function _CRIAttributesToAsn1(csr) {
|
|
2456
|
+
// create an empty context-specific container
|
|
2457
|
+
var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, []);
|
|
2458
|
+
|
|
2459
|
+
// no attributes, return empty container
|
|
2460
|
+
if(csr.attributes.length === 0) {
|
|
2461
|
+
return rval;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
// each attribute has a sequence with a type and a set of values
|
|
2465
|
+
var attrs = csr.attributes;
|
|
2466
|
+
for(var i = 0; i < attrs.length; ++i) {
|
|
2467
|
+
var attr = attrs[i];
|
|
2468
|
+
var value = attr.value;
|
|
2469
|
+
|
|
2470
|
+
// reuse tag class for attribute value if available
|
|
2471
|
+
var valueTagClass = asn1.Type.UTF8;
|
|
2472
|
+
if('valueTagClass' in attr) {
|
|
2473
|
+
valueTagClass = attr.valueTagClass;
|
|
2474
|
+
}
|
|
2475
|
+
if(valueTagClass === asn1.Type.UTF8) {
|
|
2476
|
+
value = forge.util.encodeUtf8(value);
|
|
2477
|
+
}
|
|
2478
|
+
var valueConstructed = false;
|
|
2479
|
+
if('valueConstructed' in attr) {
|
|
2480
|
+
valueConstructed = attr.valueConstructed;
|
|
2481
|
+
}
|
|
2482
|
+
// FIXME: handle more encodings
|
|
2483
|
+
|
|
2484
|
+
// create a RelativeDistinguishedName set
|
|
2485
|
+
// each value in the set is an AttributeTypeAndValue first
|
|
2486
|
+
// containing the type (an OID) and second the value
|
|
2487
|
+
var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2488
|
+
// AttributeType
|
|
2489
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
2490
|
+
asn1.oidToDer(attr.type).getBytes()),
|
|
2491
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [
|
|
2492
|
+
// AttributeValue
|
|
2493
|
+
asn1.create(
|
|
2494
|
+
asn1.Class.UNIVERSAL, valueTagClass, valueConstructed, value)
|
|
2495
|
+
])
|
|
2496
|
+
]);
|
|
2497
|
+
rval.value.push(seq);
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
return rval;
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
var jan_1_1950 = new Date('1950-01-01T00:00:00Z');
|
|
2504
|
+
var jan_1_2050 = new Date('2050-01-01T00:00:00Z');
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Converts a Date object to ASN.1
|
|
2508
|
+
* Handles the different format before and after 1st January 2050
|
|
2509
|
+
*
|
|
2510
|
+
* @param date date object.
|
|
2511
|
+
*
|
|
2512
|
+
* @return the ASN.1 object representing the date.
|
|
2513
|
+
*/
|
|
2514
|
+
function _dateToAsn1(date) {
|
|
2515
|
+
if(date >= jan_1_1950 && date < jan_1_2050) {
|
|
2516
|
+
return asn1.create(
|
|
2517
|
+
asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false,
|
|
2518
|
+
asn1.dateToUtcTime(date));
|
|
2519
|
+
} else {
|
|
2520
|
+
return asn1.create(
|
|
2521
|
+
asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false,
|
|
2522
|
+
asn1.dateToGeneralizedTime(date));
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
/**
|
|
2527
|
+
* Gets the ASN.1 TBSCertificate part of an X.509v3 certificate.
|
|
2528
|
+
*
|
|
2529
|
+
* @param cert the certificate.
|
|
2530
|
+
*
|
|
2531
|
+
* @return the asn1 TBSCertificate.
|
|
2532
|
+
*/
|
|
2533
|
+
pki.getTBSCertificate = function(cert) {
|
|
2534
|
+
// TBSCertificate
|
|
2535
|
+
var notBefore = _dateToAsn1(cert.validity.notBefore);
|
|
2536
|
+
var notAfter = _dateToAsn1(cert.validity.notAfter);
|
|
2537
|
+
var tbs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2538
|
+
// version
|
|
2539
|
+
asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [
|
|
2540
|
+
// integer
|
|
2541
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
|
|
2542
|
+
asn1.integerToDer(cert.version).getBytes())
|
|
2543
|
+
]),
|
|
2544
|
+
// serialNumber
|
|
2545
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
|
|
2546
|
+
forge.util.hexToBytes(cert.serialNumber)),
|
|
2547
|
+
// signature
|
|
2548
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2549
|
+
// algorithm
|
|
2550
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
2551
|
+
asn1.oidToDer(cert.siginfo.algorithmOid).getBytes()),
|
|
2552
|
+
// parameters
|
|
2553
|
+
_signatureParametersToAsn1(
|
|
2554
|
+
cert.siginfo.algorithmOid, cert.siginfo.parameters)
|
|
2555
|
+
]),
|
|
2556
|
+
// issuer
|
|
2557
|
+
_dnToAsn1(cert.issuer),
|
|
2558
|
+
// validity
|
|
2559
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2560
|
+
notBefore,
|
|
2561
|
+
notAfter
|
|
2562
|
+
]),
|
|
2563
|
+
// subject
|
|
2564
|
+
_dnToAsn1(cert.subject),
|
|
2565
|
+
// SubjectPublicKeyInfo
|
|
2566
|
+
pki.publicKeyToAsn1(cert.publicKey)
|
|
2567
|
+
]);
|
|
2568
|
+
|
|
2569
|
+
if(cert.issuer.uniqueId) {
|
|
2570
|
+
// issuerUniqueID (optional)
|
|
2571
|
+
tbs.value.push(
|
|
2572
|
+
asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [
|
|
2573
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
|
|
2574
|
+
// TODO: support arbitrary bit length ids
|
|
2575
|
+
String.fromCharCode(0x00) +
|
|
2576
|
+
cert.issuer.uniqueId
|
|
2577
|
+
)
|
|
2578
|
+
])
|
|
2579
|
+
);
|
|
2580
|
+
}
|
|
2581
|
+
if(cert.subject.uniqueId) {
|
|
2582
|
+
// subjectUniqueID (optional)
|
|
2583
|
+
tbs.value.push(
|
|
2584
|
+
asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [
|
|
2585
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
|
|
2586
|
+
// TODO: support arbitrary bit length ids
|
|
2587
|
+
String.fromCharCode(0x00) +
|
|
2588
|
+
cert.subject.uniqueId
|
|
2589
|
+
)
|
|
2590
|
+
])
|
|
2591
|
+
);
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
if(cert.extensions.length > 0) {
|
|
2595
|
+
// extensions (optional)
|
|
2596
|
+
tbs.value.push(pki.certificateExtensionsToAsn1(cert.extensions));
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
return tbs;
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
/**
|
|
2603
|
+
* Gets the ASN.1 CertificationRequestInfo part of a
|
|
2604
|
+
* PKCS#10 CertificationRequest.
|
|
2605
|
+
*
|
|
2606
|
+
* @param csr the certification request.
|
|
2607
|
+
*
|
|
2608
|
+
* @return the asn1 CertificationRequestInfo.
|
|
2609
|
+
*/
|
|
2610
|
+
pki.getCertificationRequestInfo = function(csr) {
|
|
2611
|
+
// CertificationRequestInfo
|
|
2612
|
+
var cri = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2613
|
+
// version
|
|
2614
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false,
|
|
2615
|
+
asn1.integerToDer(csr.version).getBytes()),
|
|
2616
|
+
// subject
|
|
2617
|
+
_dnToAsn1(csr.subject),
|
|
2618
|
+
// SubjectPublicKeyInfo
|
|
2619
|
+
pki.publicKeyToAsn1(csr.publicKey),
|
|
2620
|
+
// attributes
|
|
2621
|
+
_CRIAttributesToAsn1(csr)
|
|
2622
|
+
]);
|
|
2623
|
+
|
|
2624
|
+
return cri;
|
|
2625
|
+
};
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* Converts a DistinguishedName (subject or issuer) to an ASN.1 object.
|
|
2629
|
+
*
|
|
2630
|
+
* @param dn the DistinguishedName.
|
|
2631
|
+
*
|
|
2632
|
+
* @return the asn1 representation of a DistinguishedName.
|
|
2633
|
+
*/
|
|
2634
|
+
pki.distinguishedNameToAsn1 = function(dn) {
|
|
2635
|
+
return _dnToAsn1(dn);
|
|
2636
|
+
};
|
|
2637
|
+
|
|
2638
|
+
/**
|
|
2639
|
+
* Converts an X.509v3 RSA certificate to an ASN.1 object.
|
|
2640
|
+
*
|
|
2641
|
+
* @param cert the certificate.
|
|
2642
|
+
*
|
|
2643
|
+
* @return the asn1 representation of an X.509v3 RSA certificate.
|
|
2644
|
+
*/
|
|
2645
|
+
pki.certificateToAsn1 = function(cert) {
|
|
2646
|
+
// prefer cached TBSCertificate over generating one
|
|
2647
|
+
var tbsCertificate = cert.tbsCertificate || pki.getTBSCertificate(cert);
|
|
2648
|
+
|
|
2649
|
+
// Certificate
|
|
2650
|
+
return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2651
|
+
// TBSCertificate
|
|
2652
|
+
tbsCertificate,
|
|
2653
|
+
// AlgorithmIdentifier (signature algorithm)
|
|
2654
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2655
|
+
// algorithm
|
|
2656
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
2657
|
+
asn1.oidToDer(cert.signatureOid).getBytes()),
|
|
2658
|
+
// parameters
|
|
2659
|
+
_signatureParametersToAsn1(cert.signatureOid, cert.signatureParameters)
|
|
2660
|
+
]),
|
|
2661
|
+
// SignatureValue
|
|
2662
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
|
|
2663
|
+
String.fromCharCode(0x00) + cert.signature)
|
|
2664
|
+
]);
|
|
2665
|
+
};
|
|
2666
|
+
|
|
2667
|
+
/**
|
|
2668
|
+
* Converts X.509v3 certificate extensions to ASN.1.
|
|
2669
|
+
*
|
|
2670
|
+
* @param exts the extensions to convert.
|
|
2671
|
+
*
|
|
2672
|
+
* @return the extensions in ASN.1 format.
|
|
2673
|
+
*/
|
|
2674
|
+
pki.certificateExtensionsToAsn1 = function(exts) {
|
|
2675
|
+
// create top-level extension container
|
|
2676
|
+
var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 3, true, []);
|
|
2677
|
+
|
|
2678
|
+
// create extension sequence (stores a sequence for each extension)
|
|
2679
|
+
var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
2680
|
+
rval.value.push(seq);
|
|
2681
|
+
|
|
2682
|
+
for(var i = 0; i < exts.length; ++i) {
|
|
2683
|
+
seq.value.push(pki.certificateExtensionToAsn1(exts[i]));
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
return rval;
|
|
2687
|
+
};
|
|
2688
|
+
|
|
2689
|
+
/**
|
|
2690
|
+
* Converts a single certificate extension to ASN.1.
|
|
2691
|
+
*
|
|
2692
|
+
* @param ext the extension to convert.
|
|
2693
|
+
*
|
|
2694
|
+
* @return the extension in ASN.1 format.
|
|
2695
|
+
*/
|
|
2696
|
+
pki.certificateExtensionToAsn1 = function(ext) {
|
|
2697
|
+
// create a sequence for each extension
|
|
2698
|
+
var extseq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []);
|
|
2699
|
+
|
|
2700
|
+
// extnID (OID)
|
|
2701
|
+
extseq.value.push(asn1.create(
|
|
2702
|
+
asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
2703
|
+
asn1.oidToDer(ext.id).getBytes()));
|
|
2704
|
+
|
|
2705
|
+
// critical defaults to false
|
|
2706
|
+
if(ext.critical) {
|
|
2707
|
+
// critical BOOLEAN DEFAULT FALSE
|
|
2708
|
+
extseq.value.push(asn1.create(
|
|
2709
|
+
asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false,
|
|
2710
|
+
String.fromCharCode(0xFF)));
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
var value = ext.value;
|
|
2714
|
+
if(typeof ext.value !== 'string') {
|
|
2715
|
+
// value is asn.1
|
|
2716
|
+
value = asn1.toDer(value).getBytes();
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
// extnValue (OCTET STRING)
|
|
2720
|
+
extseq.value.push(asn1.create(
|
|
2721
|
+
asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, value));
|
|
2722
|
+
|
|
2723
|
+
return extseq;
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* Converts a PKCS#10 certification request to an ASN.1 object.
|
|
2728
|
+
*
|
|
2729
|
+
* @param csr the certification request.
|
|
2730
|
+
*
|
|
2731
|
+
* @return the asn1 representation of a certification request.
|
|
2732
|
+
*/
|
|
2733
|
+
pki.certificationRequestToAsn1 = function(csr) {
|
|
2734
|
+
// prefer cached CertificationRequestInfo over generating one
|
|
2735
|
+
var cri = csr.certificationRequestInfo ||
|
|
2736
|
+
pki.getCertificationRequestInfo(csr);
|
|
2737
|
+
|
|
2738
|
+
// Certificate
|
|
2739
|
+
return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2740
|
+
// CertificationRequestInfo
|
|
2741
|
+
cri,
|
|
2742
|
+
// AlgorithmIdentifier (signature algorithm)
|
|
2743
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
2744
|
+
// algorithm
|
|
2745
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false,
|
|
2746
|
+
asn1.oidToDer(csr.signatureOid).getBytes()),
|
|
2747
|
+
// parameters
|
|
2748
|
+
_signatureParametersToAsn1(csr.signatureOid, csr.signatureParameters)
|
|
2749
|
+
]),
|
|
2750
|
+
// signature
|
|
2751
|
+
asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false,
|
|
2752
|
+
String.fromCharCode(0x00) + csr.signature)
|
|
2753
|
+
]);
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2756
|
+
/**
|
|
2757
|
+
* Creates a CA store.
|
|
2758
|
+
*
|
|
2759
|
+
* @param certs an optional array of certificate objects or PEM-formatted
|
|
2760
|
+
* certificate strings to add to the CA store.
|
|
2761
|
+
*
|
|
2762
|
+
* @return the CA store.
|
|
2763
|
+
*/
|
|
2764
|
+
pki.createCaStore = function(certs) {
|
|
2765
|
+
// create CA store
|
|
2766
|
+
var caStore = {
|
|
2767
|
+
// stored certificates
|
|
2768
|
+
certs: {}
|
|
2769
|
+
};
|
|
2770
|
+
|
|
2771
|
+
/**
|
|
2772
|
+
* Gets the certificate that issued the passed certificate or its
|
|
2773
|
+
* 'parent'.
|
|
2774
|
+
*
|
|
2775
|
+
* @param cert the certificate to get the parent for.
|
|
2776
|
+
*
|
|
2777
|
+
* @return the parent certificate or null if none was found.
|
|
2778
|
+
*/
|
|
2779
|
+
caStore.getIssuer = function(cert) {
|
|
2780
|
+
var rval = getBySubject(cert.issuer);
|
|
2781
|
+
|
|
2782
|
+
// see if there are multiple matches
|
|
2783
|
+
/*if(forge.util.isArray(rval)) {
|
|
2784
|
+
// TODO: resolve multiple matches by checking
|
|
2785
|
+
// authorityKey/subjectKey/issuerUniqueID/other identifiers, etc.
|
|
2786
|
+
// FIXME: or alternatively do authority key mapping
|
|
2787
|
+
// if possible (X.509v1 certs can't work?)
|
|
2788
|
+
throw new Error('Resolving multiple issuer matches not implemented yet.');
|
|
2789
|
+
}*/
|
|
2790
|
+
|
|
2791
|
+
return rval;
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
/**
|
|
2795
|
+
* Adds a trusted certificate to the store.
|
|
2796
|
+
*
|
|
2797
|
+
* @param cert the certificate to add as a trusted certificate (either a
|
|
2798
|
+
* pki.certificate object or a PEM-formatted certificate).
|
|
2799
|
+
*/
|
|
2800
|
+
caStore.addCertificate = function(cert) {
|
|
2801
|
+
// convert from pem if necessary
|
|
2802
|
+
if(typeof cert === 'string') {
|
|
2803
|
+
cert = forge.pki.certificateFromPem(cert);
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
ensureSubjectHasHash(cert.subject);
|
|
2807
|
+
|
|
2808
|
+
if(!caStore.hasCertificate(cert)) { // avoid duplicate certificates in store
|
|
2809
|
+
if(cert.subject.hash in caStore.certs) {
|
|
2810
|
+
// subject hash already exists, append to array
|
|
2811
|
+
var tmp = caStore.certs[cert.subject.hash];
|
|
2812
|
+
if(!forge.util.isArray(tmp)) {
|
|
2813
|
+
tmp = [tmp];
|
|
2814
|
+
}
|
|
2815
|
+
tmp.push(cert);
|
|
2816
|
+
caStore.certs[cert.subject.hash] = tmp;
|
|
2817
|
+
} else {
|
|
2818
|
+
caStore.certs[cert.subject.hash] = cert;
|
|
2819
|
+
}
|
|
2820
|
+
}
|
|
2821
|
+
};
|
|
2822
|
+
|
|
2823
|
+
/**
|
|
2824
|
+
* Checks to see if the given certificate is in the store.
|
|
2825
|
+
*
|
|
2826
|
+
* @param cert the certificate to check (either a pki.certificate or a
|
|
2827
|
+
* PEM-formatted certificate).
|
|
2828
|
+
*
|
|
2829
|
+
* @return true if the certificate is in the store, false if not.
|
|
2830
|
+
*/
|
|
2831
|
+
caStore.hasCertificate = function(cert) {
|
|
2832
|
+
// convert from pem if necessary
|
|
2833
|
+
if(typeof cert === 'string') {
|
|
2834
|
+
cert = forge.pki.certificateFromPem(cert);
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
var match = getBySubject(cert.subject);
|
|
2838
|
+
if(!match) {
|
|
2839
|
+
return false;
|
|
2840
|
+
}
|
|
2841
|
+
if(!forge.util.isArray(match)) {
|
|
2842
|
+
match = [match];
|
|
2843
|
+
}
|
|
2844
|
+
// compare DER-encoding of certificates
|
|
2845
|
+
var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes();
|
|
2846
|
+
for(var i = 0; i < match.length; ++i) {
|
|
2847
|
+
var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes();
|
|
2848
|
+
if(der1 === der2) {
|
|
2849
|
+
return true;
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
return false;
|
|
2853
|
+
};
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* Lists all of the certificates kept in the store.
|
|
2857
|
+
*
|
|
2858
|
+
* @return an array of all of the pki.certificate objects in the store.
|
|
2859
|
+
*/
|
|
2860
|
+
caStore.listAllCertificates = function() {
|
|
2861
|
+
var certList = [];
|
|
2862
|
+
|
|
2863
|
+
for(var hash in caStore.certs) {
|
|
2864
|
+
if(caStore.certs.hasOwnProperty(hash)) {
|
|
2865
|
+
var value = caStore.certs[hash];
|
|
2866
|
+
if(!forge.util.isArray(value)) {
|
|
2867
|
+
certList.push(value);
|
|
2868
|
+
} else {
|
|
2869
|
+
for(var i = 0; i < value.length; ++i) {
|
|
2870
|
+
certList.push(value[i]);
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
return certList;
|
|
2877
|
+
};
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* Removes a certificate from the store.
|
|
2881
|
+
*
|
|
2882
|
+
* @param cert the certificate to remove (either a pki.certificate or a
|
|
2883
|
+
* PEM-formatted certificate).
|
|
2884
|
+
*
|
|
2885
|
+
* @return the certificate that was removed or null if the certificate
|
|
2886
|
+
* wasn't in store.
|
|
2887
|
+
*/
|
|
2888
|
+
caStore.removeCertificate = function(cert) {
|
|
2889
|
+
var result;
|
|
2890
|
+
|
|
2891
|
+
// convert from pem if necessary
|
|
2892
|
+
if(typeof cert === 'string') {
|
|
2893
|
+
cert = forge.pki.certificateFromPem(cert);
|
|
2894
|
+
}
|
|
2895
|
+
ensureSubjectHasHash(cert.subject);
|
|
2896
|
+
if(!caStore.hasCertificate(cert)) {
|
|
2897
|
+
return null;
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
var match = getBySubject(cert.subject);
|
|
2901
|
+
|
|
2902
|
+
if(!forge.util.isArray(match)) {
|
|
2903
|
+
result = caStore.certs[cert.subject.hash];
|
|
2904
|
+
delete caStore.certs[cert.subject.hash];
|
|
2905
|
+
return result;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
// compare DER-encoding of certificates
|
|
2909
|
+
var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes();
|
|
2910
|
+
for(var i = 0; i < match.length; ++i) {
|
|
2911
|
+
var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes();
|
|
2912
|
+
if(der1 === der2) {
|
|
2913
|
+
result = match[i];
|
|
2914
|
+
match.splice(i, 1);
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
if(match.length === 0) {
|
|
2918
|
+
delete caStore.certs[cert.subject.hash];
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
return result;
|
|
2922
|
+
};
|
|
2923
|
+
|
|
2924
|
+
function getBySubject(subject) {
|
|
2925
|
+
ensureSubjectHasHash(subject);
|
|
2926
|
+
return caStore.certs[subject.hash] || null;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
function ensureSubjectHasHash(subject) {
|
|
2930
|
+
// produce subject hash if it doesn't exist
|
|
2931
|
+
if(!subject.hash) {
|
|
2932
|
+
var md = forge.md.sha1.create();
|
|
2933
|
+
subject.attributes = pki.RDNAttributesAsArray(_dnToAsn1(subject), md);
|
|
2934
|
+
subject.hash = md.digest().toHex();
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
// auto-add passed in certs
|
|
2939
|
+
if(certs) {
|
|
2940
|
+
// parse PEM-formatted certificates as necessary
|
|
2941
|
+
for(var i = 0; i < certs.length; ++i) {
|
|
2942
|
+
var cert = certs[i];
|
|
2943
|
+
caStore.addCertificate(cert);
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
return caStore;
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* Certificate verification errors, based on TLS.
|
|
2952
|
+
*/
|
|
2953
|
+
pki.certificateError = {
|
|
2954
|
+
bad_certificate: 'forge.pki.BadCertificate',
|
|
2955
|
+
unsupported_certificate: 'forge.pki.UnsupportedCertificate',
|
|
2956
|
+
certificate_revoked: 'forge.pki.CertificateRevoked',
|
|
2957
|
+
certificate_expired: 'forge.pki.CertificateExpired',
|
|
2958
|
+
certificate_unknown: 'forge.pki.CertificateUnknown',
|
|
2959
|
+
unknown_ca: 'forge.pki.UnknownCertificateAuthority'
|
|
2960
|
+
};
|
|
2961
|
+
|
|
2962
|
+
// GeneralName type names, by context-specific tag
|
|
2963
|
+
var _generalNameTypes = {
|
|
2964
|
+
0: 'otherName',
|
|
2965
|
+
1: 'rfc822Name',
|
|
2966
|
+
2: 'dNSName',
|
|
2967
|
+
3: 'x400Address',
|
|
2968
|
+
4: 'directoryName',
|
|
2969
|
+
5: 'ediPartyName',
|
|
2970
|
+
6: 'uniformResourceIdentifier',
|
|
2971
|
+
7: 'iPAddress',
|
|
2972
|
+
8: 'registeredID'
|
|
2973
|
+
};
|
|
2974
|
+
|
|
2975
|
+
// the most name and subtree comparisons done for one chain, which bounds the
|
|
2976
|
+
// work an attacker's certificates can cause before the chain is known to be
|
|
2977
|
+
// trusted (OpenSSL limits names * subtrees to 2^20 too, NAME_CHECK_MAX)
|
|
2978
|
+
var _maxNameConstraintChecks = 1 << 20;
|
|
2979
|
+
|
|
2980
|
+
/**
|
|
2981
|
+
* Gets the name constraints from each id-ce-nameConstraints extension of a
|
|
2982
|
+
* certificate, prepared for checking. The extension value is always parsed
|
|
2983
|
+
* again, so this also works for extensions that were set in memory or that
|
|
2984
|
+
* could not be parsed by certificateExtensionFromAsn1.
|
|
2985
|
+
*
|
|
2986
|
+
* @param cert the certificate.
|
|
2987
|
+
*
|
|
2988
|
+
* @return an array of objects with permitted and excluded subtrees or, if
|
|
2989
|
+
* the extension could not be parsed, invalid set to true.
|
|
2990
|
+
*/
|
|
2991
|
+
function _getNameConstraints(cert) {
|
|
2992
|
+
var rval = [];
|
|
2993
|
+
for(var i = 0; i < cert.extensions.length; ++i) {
|
|
2994
|
+
var ext = cert.extensions[i];
|
|
2995
|
+
if(ext.id !== '2.5.29.30') {
|
|
2996
|
+
continue;
|
|
2997
|
+
}
|
|
2998
|
+
var nc;
|
|
2999
|
+
try {
|
|
3000
|
+
var value = ext.value;
|
|
3001
|
+
if(typeof value === 'string') {
|
|
3002
|
+
value = asn1.fromDer(value);
|
|
3003
|
+
}
|
|
3004
|
+
nc = _readNameConstraints(value);
|
|
3005
|
+
} catch(ex) {
|
|
3006
|
+
rval.push({invalid: true});
|
|
3007
|
+
continue;
|
|
3008
|
+
}
|
|
3009
|
+
rval.push({
|
|
3010
|
+
permitted: _prepareSubtrees(nc.permittedSubtrees),
|
|
3011
|
+
excluded: _prepareSubtrees(nc.excludedSubtrees)
|
|
3012
|
+
});
|
|
3013
|
+
}
|
|
3014
|
+
return rval;
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
/**
|
|
3018
|
+
* Prepares subtrees for checking: lowercases host names and canonicalizes
|
|
3019
|
+
* directory names once instead of on every comparison.
|
|
3020
|
+
*
|
|
3021
|
+
* @param subtrees the subtrees from _readNameConstraints.
|
|
3022
|
+
*
|
|
3023
|
+
* @return an array of {type, supported, ...} objects.
|
|
3024
|
+
*/
|
|
3025
|
+
function _prepareSubtrees(subtrees) {
|
|
3026
|
+
var rval = [];
|
|
3027
|
+
for(var i = 0; i < subtrees.length; ++i) {
|
|
3028
|
+
var subtree = subtrees[i];
|
|
3029
|
+
var st = {type: subtree.type, supported: _isSupportedSubtree(subtree)};
|
|
3030
|
+
if(st.supported) {
|
|
3031
|
+
switch(st.type) {
|
|
3032
|
+
case 1:
|
|
3033
|
+
// a mailbox (local@host), all mailboxes on a host (host or
|
|
3034
|
+
// @host) or in a domain (.domain)
|
|
3035
|
+
var at = subtree.value.lastIndexOf('@');
|
|
3036
|
+
st.local = (at === -1) ? null : subtree.value.substr(0, at);
|
|
3037
|
+
st.host = subtree.value.substr(at + 1).toLowerCase();
|
|
3038
|
+
break;
|
|
3039
|
+
case 2:
|
|
3040
|
+
case 6:
|
|
3041
|
+
st.host = subtree.value.toLowerCase();
|
|
3042
|
+
break;
|
|
3043
|
+
case 4:
|
|
3044
|
+
st.attributes = _canonicalAttributes(subtree.attributes);
|
|
3045
|
+
break;
|
|
3046
|
+
case 7:
|
|
3047
|
+
st.value = subtree.value;
|
|
3048
|
+
break;
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
rval.push(st);
|
|
3052
|
+
}
|
|
3053
|
+
return rval;
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
/**
|
|
3057
|
+
* Returns true if a name constraint subtree can be evaluated.
|
|
3058
|
+
*
|
|
3059
|
+
* @param subtree the subtree.
|
|
3060
|
+
*
|
|
3061
|
+
* @return true if supported, false if not.
|
|
3062
|
+
*/
|
|
3063
|
+
function _isSupportedSubtree(subtree) {
|
|
3064
|
+
if((subtree.minimum && subtree.minimum !== 0) || 'maximum' in subtree) {
|
|
3065
|
+
return false;
|
|
3066
|
+
}
|
|
3067
|
+
switch(subtree.type) {
|
|
3068
|
+
case 1:
|
|
3069
|
+
case 2:
|
|
3070
|
+
case 6:
|
|
3071
|
+
return typeof subtree.value === 'string';
|
|
3072
|
+
case 4:
|
|
3073
|
+
return forge.util.isArray(subtree.attributes);
|
|
3074
|
+
case 7:
|
|
3075
|
+
// address and mask, IPv4 or IPv6
|
|
3076
|
+
return typeof subtree.value === 'string' &&
|
|
3077
|
+
(subtree.value.length === 8 || subtree.value.length === 32);
|
|
3078
|
+
}
|
|
3079
|
+
return false;
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* Canonicalizes the attribute values of a distinguished name for comparison
|
|
3084
|
+
* (RFC 5280 7.1; like OpenSSL): leading and trailing whitespace is removed,
|
|
3085
|
+
* other runs of whitespace become one space and ASCII letters are lowercased.
|
|
3086
|
+
*
|
|
3087
|
+
* @param attrs the attributes.
|
|
3088
|
+
*
|
|
3089
|
+
* @return an array of {type, value}.
|
|
3090
|
+
*/
|
|
3091
|
+
function _canonicalAttributes(attrs) {
|
|
3092
|
+
var rval = [];
|
|
3093
|
+
for(var i = 0; i < attrs.length; ++i) {
|
|
3094
|
+
var value = attrs[i].value;
|
|
3095
|
+
if(typeof value === 'string') {
|
|
3096
|
+
value = value.replace(/[ \t\n\v\f\r]+/g, ' ');
|
|
3097
|
+
if(value.charAt(0) === ' ') {
|
|
3098
|
+
value = value.substr(1);
|
|
3099
|
+
}
|
|
3100
|
+
if(value.charAt(value.length - 1) === ' ') {
|
|
3101
|
+
value = value.substr(0, value.length - 1);
|
|
3102
|
+
}
|
|
3103
|
+
value = value.replace(/[A-Z]+/g, function(s) {
|
|
3104
|
+
return s.toLowerCase();
|
|
3105
|
+
});
|
|
3106
|
+
}
|
|
3107
|
+
rval.push({type: attrs[i].type, value: value});
|
|
3108
|
+
}
|
|
3109
|
+
return rval;
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* Returns true if a commonName value looks like a host name: letters,
|
|
3114
|
+
* digits, '_', and '-' and '.' only inside labels, with at least two
|
|
3115
|
+
* labels (as OpenSSL's cn2dnsid()).
|
|
3116
|
+
*
|
|
3117
|
+
* @param value the commonName value.
|
|
3118
|
+
*
|
|
3119
|
+
* @return true if the value looks like a host name.
|
|
3120
|
+
*/
|
|
3121
|
+
function _isHostName(value) {
|
|
3122
|
+
if(typeof value !== 'string') {
|
|
3123
|
+
return false;
|
|
3124
|
+
}
|
|
3125
|
+
var labels = false;
|
|
3126
|
+
for(var i = 0; i < value.length; ++i) {
|
|
3127
|
+
var c = value.charAt(i);
|
|
3128
|
+
if(/[a-zA-Z0-9_]/.test(c)) {
|
|
3129
|
+
continue;
|
|
3130
|
+
}
|
|
3131
|
+
if(i > 0 && i < value.length - 1) {
|
|
3132
|
+
if(c === '-') {
|
|
3133
|
+
continue;
|
|
3134
|
+
}
|
|
3135
|
+
var next = value.charAt(i + 1);
|
|
3136
|
+
if(c === '.' && next !== '.' && next !== '-' &&
|
|
3137
|
+
value.charAt(i - 1) !== '-') {
|
|
3138
|
+
labels = true;
|
|
3139
|
+
continue;
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
return false;
|
|
3143
|
+
}
|
|
3144
|
+
return labels;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
/**
|
|
3148
|
+
* Gets the names of a certificate's subject that name constraints apply to:
|
|
3149
|
+
* the subject DN, any emailAddress attributes in the subject DN (as
|
|
3150
|
+
* rfc822Name) and the subjectAltName entries. For an end-entity certificate
|
|
3151
|
+
* without a dNSName subjectAltName, commonName values that look like host
|
|
3152
|
+
* names are included as dNSNames, as OpenSSL does, because applications
|
|
3153
|
+
* may match a host name against them.
|
|
3154
|
+
*
|
|
3155
|
+
* @param cert the certificate.
|
|
3156
|
+
* @param leaf true if cert is the end-entity certificate.
|
|
3157
|
+
*
|
|
3158
|
+
* @return an object with 'names', an array of {type, value, ...},
|
|
3159
|
+
* 'unsupported', a map of the GeneralName types of names that
|
|
3160
|
+
* cannot be checked, and 'types', a map of the types of all names.
|
|
3161
|
+
*/
|
|
3162
|
+
function _getConstrainedNames(cert, leaf) {
|
|
3163
|
+
var rval = {names: [], unsupported: {}, types: {}};
|
|
3164
|
+
var attrs = cert.subject.attributes;
|
|
3165
|
+
var i;
|
|
3166
|
+
if(attrs.length > 0) {
|
|
3167
|
+
_addConstrainedName(rval, 4, attrs);
|
|
3168
|
+
}
|
|
3169
|
+
// RFC 5280 4.2.1.10: rfc822Name constraints apply to emailAddress
|
|
3170
|
+
// attributes in the subject DN
|
|
3171
|
+
for(i = 0; i < attrs.length; ++i) {
|
|
3172
|
+
if(attrs[i].type === oids.emailAddress) {
|
|
3173
|
+
_addConstrainedName(rval, 1, attrs[i].value);
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
var hasDnsName = false;
|
|
3177
|
+
for(i = 0; i < cert.extensions.length; ++i) {
|
|
3178
|
+
var san = cert.extensions[i];
|
|
3179
|
+
if(san.id !== '2.5.29.17') {
|
|
3180
|
+
continue;
|
|
3181
|
+
}
|
|
3182
|
+
var altNames = san.altNames || [];
|
|
3183
|
+
for(var n = 0; n < altNames.length; ++n) {
|
|
3184
|
+
var altName = altNames[n];
|
|
3185
|
+
var value = altName.value;
|
|
3186
|
+
if(altName.type === 2) {
|
|
3187
|
+
hasDnsName = true;
|
|
3188
|
+
}
|
|
3189
|
+
switch(altName.type) {
|
|
3190
|
+
case 4:
|
|
3191
|
+
value = null;
|
|
3192
|
+
if(forge.util.isArray(altName.value) &&
|
|
3193
|
+
altName.value.length === 1 &&
|
|
3194
|
+
altName.value[0].type === asn1.Type.SEQUENCE &&
|
|
3195
|
+
forge.util.isArray(altName.value[0].value)) {
|
|
3196
|
+
value = pki.RDNAttributesAsArray(altName.value[0]);
|
|
3197
|
+
}
|
|
3198
|
+
break;
|
|
3199
|
+
case 7:
|
|
3200
|
+
if(altName.ip) {
|
|
3201
|
+
value = forge.util.bytesFromIP(altName.ip);
|
|
3202
|
+
}
|
|
3203
|
+
break;
|
|
3204
|
+
}
|
|
3205
|
+
_addConstrainedName(rval, altName.type, value);
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
if(leaf && !hasDnsName) {
|
|
3209
|
+
for(i = 0; i < attrs.length; ++i) {
|
|
3210
|
+
if(attrs[i].type === oids.commonName && _isHostName(attrs[i].value)) {
|
|
3211
|
+
_addConstrainedName(rval, 2, attrs[i].value);
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
return rval;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
/**
|
|
3219
|
+
* Adds a name to the result of _getConstrainedNames, prepared for checking,
|
|
3220
|
+
* or marks its type unsupported if it cannot be checked.
|
|
3221
|
+
*
|
|
3222
|
+
* @param names the result of _getConstrainedNames.
|
|
3223
|
+
* @param type the GeneralName type.
|
|
3224
|
+
* @param value the name.
|
|
3225
|
+
*/
|
|
3226
|
+
function _addConstrainedName(names, type, value) {
|
|
3227
|
+
var name = {type: type, value: value};
|
|
3228
|
+
var ok = false;
|
|
3229
|
+
names.types[type] = true;
|
|
3230
|
+
switch(type) {
|
|
3231
|
+
case 1:
|
|
3232
|
+
// must be a mailbox (local@host)
|
|
3233
|
+
ok = (typeof value === 'string' && value.lastIndexOf('@') !== -1);
|
|
3234
|
+
if(ok) {
|
|
3235
|
+
var at = value.lastIndexOf('@');
|
|
3236
|
+
name.local = value.substr(0, at);
|
|
3237
|
+
name.host = value.substr(at + 1).toLowerCase();
|
|
3238
|
+
}
|
|
3239
|
+
break;
|
|
3240
|
+
case 2:
|
|
3241
|
+
ok = (typeof value === 'string');
|
|
3242
|
+
if(ok) {
|
|
3243
|
+
name.host = value.toLowerCase();
|
|
3244
|
+
}
|
|
3245
|
+
break;
|
|
3246
|
+
case 4:
|
|
3247
|
+
ok = forge.util.isArray(value);
|
|
3248
|
+
if(ok) {
|
|
3249
|
+
name.attributes = _canonicalAttributes(value);
|
|
3250
|
+
}
|
|
3251
|
+
break;
|
|
3252
|
+
case 6:
|
|
3253
|
+
// constraint applies to the host part, which must be present
|
|
3254
|
+
var m = (typeof value === 'string') &&
|
|
3255
|
+
/^[a-zA-Z][a-zA-Z0-9+.\-]*:\/\/([^\/?#]*)/.exec(value);
|
|
3256
|
+
if(m) {
|
|
3257
|
+
var host = m[1].substr(m[1].lastIndexOf('@') + 1);
|
|
3258
|
+
if(host.charAt(0) === '[') {
|
|
3259
|
+
// IP literal, never within a host name subtree
|
|
3260
|
+
name.host = null;
|
|
3261
|
+
} else {
|
|
3262
|
+
var colon = host.indexOf(':');
|
|
3263
|
+
if(colon !== -1) {
|
|
3264
|
+
host = host.substr(0, colon);
|
|
3265
|
+
}
|
|
3266
|
+
name.host = host.toLowerCase();
|
|
3267
|
+
}
|
|
3268
|
+
ok = (host.length > 0);
|
|
3269
|
+
}
|
|
3270
|
+
break;
|
|
3271
|
+
case 7:
|
|
3272
|
+
ok = (typeof value === 'string' &&
|
|
3273
|
+
(value.length === 4 || value.length === 16));
|
|
3274
|
+
break;
|
|
3275
|
+
}
|
|
3276
|
+
if(ok) {
|
|
3277
|
+
names.names.push(name);
|
|
3278
|
+
} else {
|
|
3279
|
+
names.unsupported[type] = true;
|
|
3280
|
+
}
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
/**
|
|
3284
|
+
* Returns true if a host name is within a host constraint, as used for
|
|
3285
|
+
* rfc822Name and uniformResourceIdentifier: a base that starts with a period
|
|
3286
|
+
* matches any subdomain, otherwise the host must match exactly. Both must be
|
|
3287
|
+
* lowercase.
|
|
3288
|
+
*/
|
|
3289
|
+
function _hostMatchesConstraint(host, base) {
|
|
3290
|
+
if(base.length === 0) {
|
|
3291
|
+
return true;
|
|
3292
|
+
}
|
|
3293
|
+
if(base.charAt(0) === '.') {
|
|
3294
|
+
return host.length > base.length &&
|
|
3295
|
+
host.substr(host.length - base.length) === base;
|
|
3296
|
+
}
|
|
3297
|
+
return host === base;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* Returns true if a name is within the given name constraint subtree. The
|
|
3302
|
+
* subtree must be of the same type as the name and be supported.
|
|
3303
|
+
*
|
|
3304
|
+
* @param name the name from _getConstrainedNames.
|
|
3305
|
+
* @param subtree the subtree from _prepareSubtrees.
|
|
3306
|
+
*
|
|
3307
|
+
* @return true if the name is within the subtree, false if not.
|
|
3308
|
+
*/
|
|
3309
|
+
function _nameMatchesConstraint(name, subtree) {
|
|
3310
|
+
var value = name.host;
|
|
3311
|
+
var base = subtree.host;
|
|
3312
|
+
var i;
|
|
3313
|
+
switch(name.type) {
|
|
3314
|
+
case 1:
|
|
3315
|
+
// rfc822Name: the local part is case-sensitive, the host is not
|
|
3316
|
+
if(subtree.local !== null) {
|
|
3317
|
+
return (subtree.local === '' || name.local === subtree.local) &&
|
|
3318
|
+
value === base;
|
|
3319
|
+
}
|
|
3320
|
+
return _hostMatchesConstraint(value, base);
|
|
3321
|
+
case 2:
|
|
3322
|
+
// dNSName: zero or more labels may be added to the left of the base
|
|
3323
|
+
if(base.length === 0) {
|
|
3324
|
+
return true;
|
|
3325
|
+
}
|
|
3326
|
+
if(base.charAt(0) === '.') {
|
|
3327
|
+
return value.length > base.length &&
|
|
3328
|
+
value.substr(value.length - base.length) === base;
|
|
3329
|
+
}
|
|
3330
|
+
return value === base || (value.length > base.length &&
|
|
3331
|
+
value.substr(value.length - base.length - 1) === '.' + base);
|
|
3332
|
+
case 6:
|
|
3333
|
+
// uniformResourceIdentifier: constraint applies to the host part
|
|
3334
|
+
return value !== null && _hostMatchesConstraint(value, base);
|
|
3335
|
+
case 4:
|
|
3336
|
+
// directoryName: base must be a prefix of the name
|
|
3337
|
+
var battrs = subtree.attributes;
|
|
3338
|
+
var attrs = name.attributes;
|
|
3339
|
+
if(battrs.length > attrs.length) {
|
|
3340
|
+
return false;
|
|
3341
|
+
}
|
|
3342
|
+
for(i = 0; i < battrs.length; ++i) {
|
|
3343
|
+
if(battrs[i].type !== attrs[i].type ||
|
|
3344
|
+
battrs[i].value !== attrs[i].value) {
|
|
3345
|
+
return false;
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
return true;
|
|
3349
|
+
case 7:
|
|
3350
|
+
// iPAddress: base is address followed by mask
|
|
3351
|
+
value = name.value;
|
|
3352
|
+
base = subtree.value;
|
|
3353
|
+
if(base.length !== value.length * 2) {
|
|
3354
|
+
return false;
|
|
3355
|
+
}
|
|
3356
|
+
for(i = 0; i < value.length; ++i) {
|
|
3357
|
+
var mask = base.charCodeAt(value.length + i);
|
|
3358
|
+
if((value.charCodeAt(i) & mask) !== (base.charCodeAt(i) & mask)) {
|
|
3359
|
+
return false;
|
|
3360
|
+
}
|
|
3361
|
+
}
|
|
3362
|
+
return true;
|
|
3363
|
+
}
|
|
3364
|
+
return false;
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* Gets a printable form of a name for error reporting.
|
|
3369
|
+
*/
|
|
3370
|
+
function _nameToString(name) {
|
|
3371
|
+
if(name.type === 4) {
|
|
3372
|
+
var parts = [];
|
|
3373
|
+
for(var i = 0; i < name.value.length; ++i) {
|
|
3374
|
+
var attr = name.value[i];
|
|
3375
|
+
parts.push((attr.shortName || attr.name || attr.type) + '=' +
|
|
3376
|
+
attr.value);
|
|
3377
|
+
}
|
|
3378
|
+
return parts.join(', ');
|
|
3379
|
+
}
|
|
3380
|
+
if(name.type === 7) {
|
|
3381
|
+
return forge.util.bytesToIP(name.value);
|
|
3382
|
+
}
|
|
3383
|
+
return name.value;
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3386
|
+
/**
|
|
3387
|
+
* Checks the names of a certificate against the name constraints of the
|
|
3388
|
+
* certificates above it in the chain (RFC 5280 6.1.3 (b) and (c)). Each
|
|
3389
|
+
* name must be within the permitted subtrees of its type of every
|
|
3390
|
+
* constraint that has such subtrees, which is the same as being within
|
|
3391
|
+
* their intersection, and must not be within any excluded subtree.
|
|
3392
|
+
*
|
|
3393
|
+
* @param cert the certificate to check.
|
|
3394
|
+
* @param constraints the name constraints from _getNameConstraints.
|
|
3395
|
+
* @param count the number of constraints (from the start) that apply.
|
|
3396
|
+
* @param leaf true if cert is the end-entity certificate.
|
|
3397
|
+
* @param work {checks} to count the work done for the chain.
|
|
3398
|
+
*
|
|
3399
|
+
* @return null if the names are acceptable, otherwise an error object.
|
|
3400
|
+
*/
|
|
3401
|
+
function _checkNameConstraints(cert, constraints, count, leaf, work) {
|
|
3402
|
+
if(count === 0) {
|
|
3403
|
+
return null;
|
|
3404
|
+
}
|
|
3405
|
+
var subject = _getConstrainedNames(cert, leaf);
|
|
3406
|
+
var names = subject.names;
|
|
3407
|
+
var i;
|
|
3408
|
+
var n;
|
|
3409
|
+
var k;
|
|
3410
|
+
var nc;
|
|
3411
|
+
var subtree;
|
|
3412
|
+
var typeName;
|
|
3413
|
+
|
|
3414
|
+
for(i = 0; i < count && work.checks <= _maxNameConstraintChecks; ++i) {
|
|
3415
|
+
nc = constraints[i];
|
|
3416
|
+
work.checks += (names.length + 1) *
|
|
3417
|
+
(nc.invalid ? 1 : nc.permitted.length + nc.excluded.length + 1);
|
|
3418
|
+
}
|
|
3419
|
+
if(work.checks > _maxNameConstraintChecks) {
|
|
3420
|
+
return {
|
|
3421
|
+
message: 'Certificate name constraints require too many checks.',
|
|
3422
|
+
error: pki.certificateError.unsupported_certificate
|
|
3423
|
+
};
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
// fail closed on constraints that cannot be evaluated; a subtree only
|
|
3427
|
+
// applies to names of its own type (RFC 5280 4.2.1.10)
|
|
3428
|
+
for(i = 0; i < count; ++i) {
|
|
3429
|
+
nc = constraints[i];
|
|
3430
|
+
if(nc.invalid) {
|
|
3431
|
+
return {
|
|
3432
|
+
message: 'Certificate name constraint could not be parsed.',
|
|
3433
|
+
error: pki.certificateError.unsupported_certificate
|
|
3434
|
+
};
|
|
3435
|
+
}
|
|
3436
|
+
var all = nc.permitted.concat(nc.excluded);
|
|
3437
|
+
for(n = 0; n < all.length; ++n) {
|
|
3438
|
+
subtree = all[n];
|
|
3439
|
+
if((subtree.type in subject.unsupported) ||
|
|
3440
|
+
(!subtree.supported && subtree.type in subject.types)) {
|
|
3441
|
+
typeName = _generalNameTypes[subtree.type] || String(subtree.type);
|
|
3442
|
+
return {
|
|
3443
|
+
message: 'Certificate name constraint of type ' + typeName +
|
|
3444
|
+
' is not supported.',
|
|
3445
|
+
error: pki.certificateError.unsupported_certificate,
|
|
3446
|
+
nameType: typeName
|
|
3447
|
+
};
|
|
3448
|
+
}
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
for(k = 0; k < names.length; ++k) {
|
|
3453
|
+
var name = names[k];
|
|
3454
|
+
for(i = 0; i < count; ++i) {
|
|
3455
|
+
nc = constraints[i];
|
|
3456
|
+
// permitted: must match one subtree of its type, if there are any
|
|
3457
|
+
var found = false;
|
|
3458
|
+
var matched = false;
|
|
3459
|
+
for(n = 0; !matched && n < nc.permitted.length; ++n) {
|
|
3460
|
+
subtree = nc.permitted[n];
|
|
3461
|
+
if(subtree.type === name.type) {
|
|
3462
|
+
found = true;
|
|
3463
|
+
matched = _nameMatchesConstraint(name, subtree);
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
if(found && !matched) {
|
|
3467
|
+
return {
|
|
3468
|
+
message: 'Certificate subject name is not permitted by a name ' +
|
|
3469
|
+
'constraint.',
|
|
3470
|
+
error: pki.certificateError.bad_certificate,
|
|
3471
|
+
nameValue: _nameToString(name),
|
|
3472
|
+
nameType: _generalNameTypes[name.type]
|
|
3473
|
+
};
|
|
3474
|
+
}
|
|
3475
|
+
// excluded: must not match any subtree of its type
|
|
3476
|
+
for(n = 0; n < nc.excluded.length; ++n) {
|
|
3477
|
+
subtree = nc.excluded[n];
|
|
3478
|
+
if(subtree.type === name.type &&
|
|
3479
|
+
_nameMatchesConstraint(name, subtree)) {
|
|
3480
|
+
return {
|
|
3481
|
+
message: 'Certificate subject name is excluded by a name ' +
|
|
3482
|
+
'constraint.',
|
|
3483
|
+
error: pki.certificateError.bad_certificate,
|
|
3484
|
+
nameValue: _nameToString(name),
|
|
3485
|
+
nameType: _generalNameTypes[name.type]
|
|
3486
|
+
};
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
return null;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
/**
|
|
3495
|
+
* Verifies a certificate chain against the given Certificate Authority store
|
|
3496
|
+
* with an optional custom verify callback.
|
|
3497
|
+
*
|
|
3498
|
+
* @param caStore a certificate store to verify against.
|
|
3499
|
+
* @param chain the certificate chain to verify, with the root or highest
|
|
3500
|
+
* authority at the end (an array of certificates).
|
|
3501
|
+
* @param options a callback to be called for every certificate in the chain or
|
|
3502
|
+
* an object with:
|
|
3503
|
+
* verify a callback to be called for every certificate in the
|
|
3504
|
+
* chain
|
|
3505
|
+
* validityCheckDate the date against which the certificate
|
|
3506
|
+
* validity period should be checked. Pass null to not check
|
|
3507
|
+
* the validity period. By default, the current date is used.
|
|
3508
|
+
*
|
|
3509
|
+
* The verify callback has the following signature:
|
|
3510
|
+
*
|
|
3511
|
+
* verified - Set to true if certificate was verified, otherwise the
|
|
3512
|
+
* pki.certificateError for why the certificate failed.
|
|
3513
|
+
* depth - The current index in the chain, where 0 is the end point's cert.
|
|
3514
|
+
* certs - The certificate chain, *NOTE* an empty chain indicates an anonymous
|
|
3515
|
+
* end point.
|
|
3516
|
+
*
|
|
3517
|
+
* The function returns true on success and on failure either the appropriate
|
|
3518
|
+
* pki.certificateError or an object with 'error' set to the appropriate
|
|
3519
|
+
* pki.certificateError and 'message' set to a custom error message.
|
|
3520
|
+
*
|
|
3521
|
+
* @return true if successful, error thrown if not.
|
|
3522
|
+
*/
|
|
3523
|
+
pki.verifyCertificateChain = function(caStore, chain, options) {
|
|
3524
|
+
/* From: RFC3280 - Internet X.509 Public Key Infrastructure Certificate
|
|
3525
|
+
Section 6: Certification Path Validation
|
|
3526
|
+
See inline parentheticals related to this particular implementation.
|
|
3527
|
+
|
|
3528
|
+
The primary goal of path validation is to verify the binding between
|
|
3529
|
+
a subject distinguished name or a subject alternative name and subject
|
|
3530
|
+
public key, as represented in the end entity certificate, based on the
|
|
3531
|
+
public key of the trust anchor. This requires obtaining a sequence of
|
|
3532
|
+
certificates that support that binding. That sequence should be provided
|
|
3533
|
+
in the passed 'chain'. The trust anchor should be in the given CA
|
|
3534
|
+
store. The 'end entity' certificate is the certificate provided by the
|
|
3535
|
+
end point (typically a server) and is the first in the chain.
|
|
3536
|
+
|
|
3537
|
+
To meet this goal, the path validation process verifies, among other
|
|
3538
|
+
things, that a prospective certification path (a sequence of n
|
|
3539
|
+
certificates or a 'chain') satisfies the following conditions:
|
|
3540
|
+
|
|
3541
|
+
(a) for all x in {1, ..., n-1}, the subject of certificate x is
|
|
3542
|
+
the issuer of certificate x+1;
|
|
3543
|
+
|
|
3544
|
+
(b) certificate 1 is issued by the trust anchor;
|
|
3545
|
+
|
|
3546
|
+
(c) certificate n is the certificate to be validated; and
|
|
3547
|
+
|
|
3548
|
+
(d) for all x in {1, ..., n}, the certificate was valid at the
|
|
3549
|
+
time in question.
|
|
3550
|
+
|
|
3551
|
+
Note that here 'n' is index 0 in the chain and 1 is the last certificate
|
|
3552
|
+
in the chain and it must be signed by a certificate in the connection's
|
|
3553
|
+
CA store.
|
|
3554
|
+
|
|
3555
|
+
The path validation process also determines the set of certificate
|
|
3556
|
+
policies that are valid for this path, based on the certificate policies
|
|
3557
|
+
extension, policy mapping extension, policy constraints extension, and
|
|
3558
|
+
inhibit any-policy extension.
|
|
3559
|
+
|
|
3560
|
+
Note: Policy mapping extension not supported (Not Required).
|
|
3561
|
+
|
|
3562
|
+
Note: If the certificate has an unsupported critical extension, then it
|
|
3563
|
+
must be rejected.
|
|
3564
|
+
|
|
3565
|
+
Note: A certificate is self-issued if the DNs that appear in the subject
|
|
3566
|
+
and issuer fields are identical and are not empty.
|
|
3567
|
+
|
|
3568
|
+
The path validation algorithm assumes the following seven inputs are
|
|
3569
|
+
provided to the path processing logic. What this specific implementation
|
|
3570
|
+
will use is provided parenthetically:
|
|
3571
|
+
|
|
3572
|
+
(a) a prospective certification path of length n (the 'chain')
|
|
3573
|
+
(b) the current date/time: ('now').
|
|
3574
|
+
(c) user-initial-policy-set: A set of certificate policy identifiers
|
|
3575
|
+
naming the policies that are acceptable to the certificate user.
|
|
3576
|
+
The user-initial-policy-set contains the special value any-policy
|
|
3577
|
+
if the user is not concerned about certificate policy
|
|
3578
|
+
(Not implemented. Any policy is accepted).
|
|
3579
|
+
(d) trust anchor information, describing a CA that serves as a trust
|
|
3580
|
+
anchor for the certification path. The trust anchor information
|
|
3581
|
+
includes:
|
|
3582
|
+
|
|
3583
|
+
(1) the trusted issuer name,
|
|
3584
|
+
(2) the trusted public key algorithm,
|
|
3585
|
+
(3) the trusted public key, and
|
|
3586
|
+
(4) optionally, the trusted public key parameters associated
|
|
3587
|
+
with the public key.
|
|
3588
|
+
|
|
3589
|
+
(Trust anchors are provided via certificates in the CA store).
|
|
3590
|
+
|
|
3591
|
+
The trust anchor information may be provided to the path processing
|
|
3592
|
+
procedure in the form of a self-signed certificate. The trusted anchor
|
|
3593
|
+
information is trusted because it was delivered to the path processing
|
|
3594
|
+
procedure by some trustworthy out-of-band procedure. If the trusted
|
|
3595
|
+
public key algorithm requires parameters, then the parameters are
|
|
3596
|
+
provided along with the trusted public key (No parameters used in this
|
|
3597
|
+
implementation).
|
|
3598
|
+
|
|
3599
|
+
(e) initial-policy-mapping-inhibit, which indicates if policy mapping is
|
|
3600
|
+
allowed in the certification path.
|
|
3601
|
+
(Not implemented, no policy checking)
|
|
3602
|
+
|
|
3603
|
+
(f) initial-explicit-policy, which indicates if the path must be valid
|
|
3604
|
+
for at least one of the certificate policies in the user-initial-
|
|
3605
|
+
policy-set.
|
|
3606
|
+
(Not implemented, no policy checking)
|
|
3607
|
+
|
|
3608
|
+
(g) initial-any-policy-inhibit, which indicates whether the
|
|
3609
|
+
anyPolicy OID should be processed if it is included in a
|
|
3610
|
+
certificate.
|
|
3611
|
+
(Not implemented, so any policy is valid provided that it is
|
|
3612
|
+
not marked as critical) */
|
|
3613
|
+
|
|
3614
|
+
/* Basic Path Processing:
|
|
3615
|
+
|
|
3616
|
+
For each certificate in the 'chain', the following is checked:
|
|
3617
|
+
|
|
3618
|
+
1. The certificate validity period includes the current time.
|
|
3619
|
+
2. The certificate was signed by its parent (where the parent is either
|
|
3620
|
+
the next in the chain or from the CA store). Allow processing to
|
|
3621
|
+
continue to the next step if no parent is found but the certificate is
|
|
3622
|
+
in the CA store.
|
|
3623
|
+
3. TODO: The certificate has not been revoked.
|
|
3624
|
+
4. The certificate issuer name matches the parent's subject name.
|
|
3625
|
+
5. If the certificate is self-issued and not the final certificate
|
|
3626
|
+
in the chain, skip this step, otherwise verify that the subject name
|
|
3627
|
+
is within one of the permitted subtrees of X.500 distinguished names
|
|
3628
|
+
and that each of the alternative names in the subjectAltName extension
|
|
3629
|
+
(critical or non-critical) is within one of the permitted subtrees for
|
|
3630
|
+
that name type.
|
|
3631
|
+
6. If the certificate is self-issued and not the final certificate
|
|
3632
|
+
in the chain, skip this step, otherwise verify that the subject name
|
|
3633
|
+
is not within one of the excluded subtrees for X.500 distinguished
|
|
3634
|
+
names and none of the subjectAltName extension names are excluded for
|
|
3635
|
+
that name type.
|
|
3636
|
+
(Steps 5 and 6 use the nameConstraints extensions of all certificates
|
|
3637
|
+
above the certificate in the chain and of a trust anchor from the CA
|
|
3638
|
+
store that issued the last certificate in the chain. Supported name
|
|
3639
|
+
types are rfc822Name, dNSName, directoryName,
|
|
3640
|
+
uniformResourceIdentifier and iPAddress. As in OpenSSL, commonName
|
|
3641
|
+
values that look like host names are checked as dNSNames when the
|
|
3642
|
+
end-entity certificate has no dNSName subjectAltName. A constraint
|
|
3643
|
+
that cannot be evaluated for a name of its type, or more than 2^20
|
|
3644
|
+
name and subtree comparisons for the chain, cause the certificate to
|
|
3645
|
+
be rejected as not supported.)
|
|
3646
|
+
7. The other steps in the algorithm for basic path processing involve
|
|
3647
|
+
handling the policy extension which is not presently supported in this
|
|
3648
|
+
implementation. Instead, if a critical policy extension is found, the
|
|
3649
|
+
certificate is rejected as not supported.
|
|
3650
|
+
8. If the certificate is not the first or if its the only certificate in
|
|
3651
|
+
the chain (having no parent from the CA store or is self-signed) and it
|
|
3652
|
+
has a critical key usage extension, verify that the keyCertSign bit is
|
|
3653
|
+
set. If the key usage extension exists, verify that the basic
|
|
3654
|
+
constraints extension exists. If the basic constraints extension exists,
|
|
3655
|
+
verify that the cA flag is set. If pathLenConstraint is set, ensure that
|
|
3656
|
+
the number of certificates that precede in the chain (come earlier
|
|
3657
|
+
in the chain as implemented below), excluding the very first in the
|
|
3658
|
+
chain (typically the end-entity one), isn't greater than the
|
|
3659
|
+
pathLenConstraint. This constraint limits the number of intermediate
|
|
3660
|
+
CAs that may appear below a CA before only end-entity certificates
|
|
3661
|
+
may be issued. */
|
|
3662
|
+
|
|
3663
|
+
// if a verify callback is passed as the third parameter, package it within
|
|
3664
|
+
// the options object. This is to support a legacy function signature that
|
|
3665
|
+
// expected the verify callback as the third parameter.
|
|
3666
|
+
if(typeof options === 'function') {
|
|
3667
|
+
options = {verify: options};
|
|
3668
|
+
}
|
|
3669
|
+
options = options || {};
|
|
3670
|
+
|
|
3671
|
+
// copy cert chain references to another array to protect against changes
|
|
3672
|
+
// in verify callback
|
|
3673
|
+
chain = chain.slice(0);
|
|
3674
|
+
var certs = chain.slice(0);
|
|
3675
|
+
|
|
3676
|
+
var validityCheckDate = options.validityCheckDate;
|
|
3677
|
+
// if no validityCheckDate is specified, default to the current date. Make
|
|
3678
|
+
// sure to maintain the value null because it indicates that the validity
|
|
3679
|
+
// period should not be checked.
|
|
3680
|
+
if(typeof validityCheckDate === 'undefined') {
|
|
3681
|
+
validityCheckDate = new Date();
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
// collect the name constraints that apply to each certificate in the
|
|
3685
|
+
// chain: those of the trust anchor that issued the last certificate (if
|
|
3686
|
+
// it is in the CA store and not in the chain) and those of every
|
|
3687
|
+
// certificate above it in the chain; the first ncCount[i] entries of
|
|
3688
|
+
// ncList apply to certs[i]
|
|
3689
|
+
var ncList = [];
|
|
3690
|
+
var ncCount = [];
|
|
3691
|
+
var ncWork = {checks: 0};
|
|
3692
|
+
var last = certs[certs.length - 1];
|
|
3693
|
+
if(last && !last.isIssuer(last)) {
|
|
3694
|
+
var anchors = caStore.getIssuer(last);
|
|
3695
|
+
anchors = anchors ?
|
|
3696
|
+
(forge.util.isArray(anchors) ? anchors.slice() : [anchors]) : [];
|
|
3697
|
+
for(var ai = 0; ai < anchors.length; ++ai) {
|
|
3698
|
+
var anchorNc = _getNameConstraints(anchors[ai]);
|
|
3699
|
+
if(anchorNc.length > 0) {
|
|
3700
|
+
var anchorVerified = false;
|
|
3701
|
+
try {
|
|
3702
|
+
anchorVerified = anchors[ai].verify(last);
|
|
3703
|
+
} catch(ex) {
|
|
3704
|
+
// not the issuer
|
|
3705
|
+
}
|
|
3706
|
+
for(var an = 0; anchorVerified && an < anchorNc.length; ++an) {
|
|
3707
|
+
ncList.push(anchorNc[an]);
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
for(var ci = certs.length - 1; ci >= 0; --ci) {
|
|
3713
|
+
ncCount[ci] = ncList.length;
|
|
3714
|
+
var certNc = (ci > 0) ? _getNameConstraints(certs[ci]) : [];
|
|
3715
|
+
for(var cn = 0; cn < certNc.length; ++cn) {
|
|
3716
|
+
ncList.push(certNc[cn]);
|
|
3717
|
+
}
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
// verify each cert in the chain using its parent, where the parent
|
|
3721
|
+
// is either the next in the chain or from the CA store
|
|
3722
|
+
var first = true;
|
|
3723
|
+
var error = null;
|
|
3724
|
+
var depth = 0;
|
|
3725
|
+
do {
|
|
3726
|
+
var cert = chain.shift();
|
|
3727
|
+
var parent = null;
|
|
3728
|
+
var selfSigned = false;
|
|
3729
|
+
|
|
3730
|
+
if(validityCheckDate) {
|
|
3731
|
+
// 1. check valid time
|
|
3732
|
+
if(validityCheckDate < cert.validity.notBefore ||
|
|
3733
|
+
validityCheckDate > cert.validity.notAfter) {
|
|
3734
|
+
error = {
|
|
3735
|
+
message: 'Certificate is not valid yet or has expired.',
|
|
3736
|
+
error: pki.certificateError.certificate_expired,
|
|
3737
|
+
notBefore: cert.validity.notBefore,
|
|
3738
|
+
notAfter: cert.validity.notAfter,
|
|
3739
|
+
// TODO: we might want to reconsider renaming 'now' to
|
|
3740
|
+
// 'validityCheckDate' should this API be changed in the future.
|
|
3741
|
+
now: validityCheckDate
|
|
3742
|
+
};
|
|
3743
|
+
}
|
|
3744
|
+
}
|
|
3745
|
+
|
|
3746
|
+
// 2. verify with parent from chain or CA store
|
|
3747
|
+
if(error === null) {
|
|
3748
|
+
parent = chain[0] || caStore.getIssuer(cert);
|
|
3749
|
+
if(parent === null) {
|
|
3750
|
+
// check for self-signed cert
|
|
3751
|
+
if(cert.isIssuer(cert)) {
|
|
3752
|
+
selfSigned = true;
|
|
3753
|
+
parent = cert;
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
if(parent) {
|
|
3758
|
+
// FIXME: current CA store implementation might have multiple
|
|
3759
|
+
// certificates where the issuer can't be determined from the
|
|
3760
|
+
// certificate (happens rarely with, eg: old certificates) so normalize
|
|
3761
|
+
// by always putting parents into an array
|
|
3762
|
+
// TODO: there's may be an extreme degenerate case currently uncovered
|
|
3763
|
+
// where an old intermediate certificate seems to have a matching parent
|
|
3764
|
+
// but none of the parents actually verify ... but the intermediate
|
|
3765
|
+
// is in the CA and it should pass this check; needs investigation
|
|
3766
|
+
// copy the CA store's array so that shift() below does not remove
|
|
3767
|
+
// certificates from the store
|
|
3768
|
+
var parents = forge.util.isArray(parent) ? parent.slice() : [parent];
|
|
3769
|
+
|
|
3770
|
+
// try to verify with each possible parent (typically only one)
|
|
3771
|
+
var verified = false;
|
|
3772
|
+
while(!verified && parents.length > 0) {
|
|
3773
|
+
parent = parents.shift();
|
|
3774
|
+
try {
|
|
3775
|
+
verified = parent.verify(cert);
|
|
3776
|
+
} catch(ex) {
|
|
3777
|
+
// failure to verify, don't care why, try next one
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
if(!verified) {
|
|
3782
|
+
error = {
|
|
3783
|
+
message: 'Certificate signature is invalid.',
|
|
3784
|
+
error: pki.certificateError.bad_certificate
|
|
3785
|
+
};
|
|
3786
|
+
}
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
if(error === null && (!parent || selfSigned) &&
|
|
3790
|
+
!caStore.hasCertificate(cert)) {
|
|
3791
|
+
// no parent issuer and certificate itself is not trusted
|
|
3792
|
+
error = {
|
|
3793
|
+
message: 'Certificate is not trusted.',
|
|
3794
|
+
error: pki.certificateError.unknown_ca
|
|
3795
|
+
};
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3798
|
+
|
|
3799
|
+
// TODO: 3. check revoked
|
|
3800
|
+
|
|
3801
|
+
// 4. check for matching issuer/subject
|
|
3802
|
+
if(error === null && parent && !cert.isIssuer(parent)) {
|
|
3803
|
+
// parent is not issuer
|
|
3804
|
+
error = {
|
|
3805
|
+
message: 'Certificate issuer is invalid.',
|
|
3806
|
+
error: pki.certificateError.bad_certificate
|
|
3807
|
+
};
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
// 5. check names with permitted names tree
|
|
3811
|
+
// 6. check names against excluded names tree
|
|
3812
|
+
// (skipped for self-issued certificates that are not the final one)
|
|
3813
|
+
if(error === null && (first || !cert.isIssuer(cert))) {
|
|
3814
|
+
error = _checkNameConstraints(
|
|
3815
|
+
cert, ncList, ncCount[depth], first, ncWork);
|
|
3816
|
+
}
|
|
3817
|
+
|
|
3818
|
+
// 7. check for unsupported critical extensions
|
|
3819
|
+
if(error === null) {
|
|
3820
|
+
// supported extensions
|
|
3821
|
+
var se = {
|
|
3822
|
+
keyUsage: true,
|
|
3823
|
+
basicConstraints: true,
|
|
3824
|
+
nameConstraints: true
|
|
3825
|
+
};
|
|
3826
|
+
for(var i = 0; error === null && i < cert.extensions.length; ++i) {
|
|
3827
|
+
var ext = cert.extensions[i];
|
|
3828
|
+
// only id-ce-nameConstraints (2.5.29.30) is enforced, not the
|
|
3829
|
+
// deprecated 2.5.29.11 OID that has the same name
|
|
3830
|
+
if(ext.critical && (!(ext.name in se) ||
|
|
3831
|
+
(ext.name === 'nameConstraints' && ext.id !== '2.5.29.30'))) {
|
|
3832
|
+
error = {
|
|
3833
|
+
message:
|
|
3834
|
+
'Certificate has an unsupported critical extension.',
|
|
3835
|
+
error: pki.certificateError.unsupported_certificate
|
|
3836
|
+
};
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
// 8. check for CA if cert is not first or is the only certificate
|
|
3842
|
+
// remaining in chain with no parent or is self-signed
|
|
3843
|
+
if(error === null &&
|
|
3844
|
+
(!first || (chain.length === 0 && (!parent || selfSigned)))) {
|
|
3845
|
+
// first check keyUsage extension and then basic constraints
|
|
3846
|
+
// (by id: deprecated OIDs are also named 'basicConstraints', but only
|
|
3847
|
+
// id-ce-basicConstraints 2.5.29.19 is valid, RFC 5280 4.2.1.9)
|
|
3848
|
+
var bcExt = cert.getExtension({id: '2.5.29.19'});
|
|
3849
|
+
var keyUsageExt = cert.getExtension('keyUsage');
|
|
3850
|
+
if(keyUsageExt !== null) {
|
|
3851
|
+
// keyCertSign must be true and there must be a basic
|
|
3852
|
+
// constraints extension
|
|
3853
|
+
if(!keyUsageExt.keyCertSign || bcExt === null) {
|
|
3854
|
+
// bad certificate
|
|
3855
|
+
error = {
|
|
3856
|
+
message:
|
|
3857
|
+
'Certificate keyUsage or basicConstraints conflict ' +
|
|
3858
|
+
'or indicate that the certificate is not a CA. ' +
|
|
3859
|
+
'If the certificate is the only one in the chain or ' +
|
|
3860
|
+
'isn\'t the first then the certificate must be a ' +
|
|
3861
|
+
'valid CA.',
|
|
3862
|
+
error: pki.certificateError.bad_certificate
|
|
3863
|
+
};
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
// check for absent basicConstraints on non-leaf certificates
|
|
3867
|
+
if(error === null && bcExt === null) {
|
|
3868
|
+
error = {
|
|
3869
|
+
message:
|
|
3870
|
+
'Certificate is missing basicConstraints extension and cannot ' +
|
|
3871
|
+
'be used as a CA.',
|
|
3872
|
+
error: pki.certificateError.bad_certificate
|
|
3873
|
+
};
|
|
3874
|
+
}
|
|
3875
|
+
// basic constraints cA flag must be set
|
|
3876
|
+
if(error === null && bcExt !== null && !bcExt.cA) {
|
|
3877
|
+
// bad certificate
|
|
3878
|
+
error = {
|
|
3879
|
+
message:
|
|
3880
|
+
'Certificate basicConstraints indicates the certificate ' +
|
|
3881
|
+
'is not a CA.',
|
|
3882
|
+
error: pki.certificateError.bad_certificate
|
|
3883
|
+
};
|
|
3884
|
+
}
|
|
3885
|
+
// check pathLenConstraint (if it exists) regardless of whether the
|
|
3886
|
+
// keyUsage extension is present (RFC 5280 6.1.4)
|
|
3887
|
+
if(error === null && bcExt !== null &&
|
|
3888
|
+
'pathLenConstraint' in bcExt) {
|
|
3889
|
+
// pathLen is the maximum # of intermediate CA certs that can be
|
|
3890
|
+
// found between the current certificate and the end-entity (depth 0)
|
|
3891
|
+
// certificate; this number does not include the end-entity (depth 0,
|
|
3892
|
+
// last in the chain) even if it happens to be a CA certificate itself
|
|
3893
|
+
var pathLen = depth - 1;
|
|
3894
|
+
if(pathLen > bcExt.pathLenConstraint) {
|
|
3895
|
+
// pathLenConstraint violated, bad certificate
|
|
3896
|
+
error = {
|
|
3897
|
+
message:
|
|
3898
|
+
'Certificate basicConstraints pathLenConstraint violated.',
|
|
3899
|
+
error: pki.certificateError.bad_certificate
|
|
3900
|
+
};
|
|
3901
|
+
}
|
|
3902
|
+
}
|
|
3903
|
+
}
|
|
3904
|
+
|
|
3905
|
+
// call application callback
|
|
3906
|
+
var vfd = (error === null) ? true : error.error;
|
|
3907
|
+
var ret = options.verify ? options.verify(vfd, depth, certs) : vfd;
|
|
3908
|
+
if(ret === true) {
|
|
3909
|
+
// clear any set error
|
|
3910
|
+
error = null;
|
|
3911
|
+
} else {
|
|
3912
|
+
// if passed basic tests, set default message and alert
|
|
3913
|
+
if(vfd === true) {
|
|
3914
|
+
error = {
|
|
3915
|
+
message: 'The application rejected the certificate.',
|
|
3916
|
+
error: pki.certificateError.bad_certificate
|
|
3917
|
+
};
|
|
3918
|
+
}
|
|
3919
|
+
|
|
3920
|
+
// check for custom error info
|
|
3921
|
+
if(ret || ret === 0) {
|
|
3922
|
+
// set custom message and error
|
|
3923
|
+
if(typeof ret === 'object' && !forge.util.isArray(ret)) {
|
|
3924
|
+
if(ret.message) {
|
|
3925
|
+
error.message = ret.message;
|
|
3926
|
+
}
|
|
3927
|
+
if(ret.error) {
|
|
3928
|
+
error.error = ret.error;
|
|
3929
|
+
}
|
|
3930
|
+
} else if(typeof ret === 'string') {
|
|
3931
|
+
// set custom error
|
|
3932
|
+
error.error = ret;
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
// throw error
|
|
3937
|
+
throw error;
|
|
3938
|
+
}
|
|
3939
|
+
|
|
3940
|
+
// no longer first cert in chain
|
|
3941
|
+
first = false;
|
|
3942
|
+
++depth;
|
|
3943
|
+
} while(chain.length > 0);
|
|
3944
|
+
|
|
3945
|
+
return true;
|
|
3946
|
+
};
|