mcp-use 2.0.0-beta.2 → 2.0.0-beta.21
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/dist/.tsbuildinfo +1 -1
- package/dist/bin/args.d.ts +10 -0
- package/dist/bin/args.d.ts.map +1 -1
- package/dist/bin/main.d.ts +8 -0
- package/dist/bin/main.d.ts.map +1 -1
- package/dist/bin/start.d.ts.map +1 -1
- package/dist/bin.js +22 -6
- package/dist/bin.js.map +1 -1
- package/dist/branding.d.ts +82 -0
- package/dist/branding.d.ts.map +1 -0
- package/dist/chunk-22Y3WIJP.js +62 -0
- package/dist/chunk-22Y3WIJP.js.map +1 -0
- package/dist/chunk-EAPJUSK7.js +98 -0
- package/dist/chunk-EAPJUSK7.js.map +1 -0
- package/dist/chunk-FC2Z2VFO.js +99 -0
- package/dist/chunk-FC2Z2VFO.js.map +1 -0
- package/dist/{public-route-7IK5D7V7.js → chunk-G62AMJHS.js} +17 -12
- package/dist/chunk-G62AMJHS.js.map +1 -0
- package/dist/{chunk-UDLRVMML.js → chunk-IGVT7UV6.js} +94 -23
- package/dist/chunk-IGVT7UV6.js.map +1 -0
- package/dist/chunk-KIZ72TIK.js +38 -0
- package/dist/chunk-KIZ72TIK.js.map +1 -0
- package/dist/{chunk-Q4PUTBMV.js → chunk-QBAJXPRQ.js} +21 -1
- package/dist/chunk-QBAJXPRQ.js.map +1 -0
- package/dist/{chunk-SFI2T6TE.js → chunk-QUUANIE4.js} +34 -80
- package/dist/chunk-QUUANIE4.js.map +1 -0
- package/dist/{chunk-RQRT27Q3.js → chunk-RHITI5QM.js} +190 -16
- package/dist/chunk-RHITI5QM.js.map +1 -0
- package/dist/chunk-Z326HADF.js +82 -0
- package/dist/chunk-Z326HADF.js.map +1 -0
- package/dist/chunk-ZJJD33SF.js +741 -0
- package/dist/chunk-ZJJD33SF.js.map +1 -0
- package/dist/cli/build.d.ts +21 -15
- package/dist/cli/build.d.ts.map +1 -1
- package/dist/cli/dev.d.ts +4 -0
- package/dist/cli/dev.d.ts.map +1 -1
- package/dist/cli/entry.d.ts +1 -1
- package/dist/cli/entry.d.ts.map +1 -1
- package/dist/cli/mcp-env-declaration.d.ts +20 -0
- package/dist/cli/mcp-env-declaration.d.ts.map +1 -0
- package/dist/cli/next-compat.d.ts +21 -0
- package/dist/cli/next-compat.d.ts.map +1 -0
- package/dist/cli/next-server-shims.d.ts +52 -0
- package/dist/cli/next-server-shims.d.ts.map +1 -0
- package/dist/cli/port.d.ts.map +1 -1
- package/dist/cli/tunnel.d.ts.map +1 -1
- package/dist/cli/views-bindings.d.ts +9 -0
- package/dist/cli/views-bindings.d.ts.map +1 -1
- package/dist/cli/views-plugin.d.ts.map +1 -1
- package/dist/cli/views.d.ts +23 -8
- package/dist/cli/views.d.ts.map +1 -1
- package/dist/cli/workspace.d.ts +4 -9
- package/dist/cli/workspace.d.ts.map +1 -1
- package/dist/commands/build.js +171 -34
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/client.d.ts.map +1 -1
- package/dist/commands/client.js +1 -1
- package/dist/commands/dev.js +145 -40
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/load-client.d.ts +9 -2
- package/dist/commands/load-client.d.ts.map +1 -1
- package/dist/commands/screenshot.js +1 -1
- package/dist/commands/start.js +5 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/completable.d.ts +9 -0
- package/dist/completable.d.ts.map +1 -1
- package/dist/config.d.ts +125 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/fetch-app.d.ts +43 -0
- package/dist/fetch-app.d.ts.map +1 -1
- package/dist/index.d.ts +20 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1318 -251
- package/dist/index.js.map +1 -1
- package/dist/inspector-shell.d.ts +19 -6
- package/dist/inspector-shell.d.ts.map +1 -1
- package/dist/internal/resource-completion.js +7 -0
- package/dist/internal/resource-completion.js.map +1 -0
- package/dist/landing-handler-WE66NIGB.js +37 -0
- package/dist/landing-handler-WE66NIGB.js.map +1 -0
- package/dist/landing-handler.d.ts +24 -0
- package/dist/landing-handler.d.ts.map +1 -0
- package/dist/landing.d.ts +67 -0
- package/dist/landing.d.ts.map +1 -0
- package/dist/landing.js +7 -0
- package/dist/landing.js.map +1 -0
- package/dist/mcp-proxy-5YQJJ4RT.js +282 -0
- package/dist/mcp-proxy-5YQJJ4RT.js.map +1 -0
- package/dist/mcp-proxy.d.ts +153 -0
- package/dist/mcp-proxy.d.ts.map +1 -0
- package/dist/middleware/cors.d.ts +11 -0
- package/dist/middleware/cors.d.ts.map +1 -0
- package/dist/middleware/mcp-middleware.d.ts +179 -0
- package/dist/middleware/mcp-middleware.d.ts.map +1 -0
- package/dist/mount-mcp.d.ts +0 -4
- package/dist/mount-mcp.d.ts.map +1 -1
- package/dist/next/config.d.ts +39 -0
- package/dist/next/config.d.ts.map +1 -0
- package/dist/next/handler.d.ts +17 -0
- package/dist/next/handler.d.ts.map +1 -0
- package/dist/next/index.d.ts +5 -0
- package/dist/next/index.d.ts.map +1 -0
- package/dist/next/index.js +172 -0
- package/dist/next/index.js.map +1 -0
- package/dist/next-server-shims.js +108 -0
- package/dist/next-server-shims.js.map +1 -0
- package/dist/oauth/better-auth.d.ts +29 -0
- package/dist/oauth/better-auth.d.ts.map +1 -0
- package/dist/oauth/better-auth.js +76 -0
- package/dist/oauth/better-auth.js.map +1 -0
- package/dist/oauth/index.js +2 -1
- package/dist/public-route-RWJVJQTX.js +9 -0
- package/dist/public-route-RWJVJQTX.js.map +1 -0
- package/dist/react/components/theme-provider.d.ts +3 -0
- package/dist/react/components/theme-provider.d.ts.map +1 -1
- package/dist/react/hooks/use-files.d.ts +25 -0
- package/dist/react/hooks/use-files.d.ts.map +1 -0
- package/dist/react/hooks/use-host-context.d.ts +5 -0
- package/dist/react/hooks/use-host-context.d.ts.map +1 -1
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +124 -3
- package/dist/react/index.js.map +1 -1
- package/dist/react/runtime/view-runtime.d.ts +23 -0
- package/dist/react/runtime/view-runtime.d.ts.map +1 -1
- package/dist/react/types/file-types.d.ts +16 -0
- package/dist/react/types/file-types.d.ts.map +1 -0
- package/dist/react/types/register.d.ts +1 -1
- package/dist/react/types/register.d.ts.map +1 -1
- package/dist/resource-completion.d.ts +12 -0
- package/dist/resource-completion.d.ts.map +1 -0
- package/dist/resources.d.ts +59 -4
- package/dist/resources.d.ts.map +1 -1
- package/dist/server.d.ts +120 -7
- package/dist/server.d.ts.map +1 -1
- package/dist/tools.d.ts +21 -10
- package/dist/tools.d.ts.map +1 -1
- package/dist/views/constants.d.ts +1 -1
- package/dist/views/csp-env.d.ts +37 -0
- package/dist/views/csp-env.d.ts.map +1 -0
- package/dist/views/document.d.ts +30 -13
- package/dist/views/document.d.ts.map +1 -1
- package/dist/views/index.d.ts +4 -3
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/origin.d.ts +37 -9
- package/dist/views/origin.d.ts.map +1 -1
- package/dist/views/public-route.d.ts +10 -4
- package/dist/views/public-route.d.ts.map +1 -1
- package/dist/views/register.d.ts +1 -1
- package/dist/views/routes.d.ts +20 -1
- package/dist/views/routes.d.ts.map +1 -1
- package/dist/views/types.d.ts +23 -14
- package/dist/views/types.d.ts.map +1 -1
- package/dist/views/wire.d.ts +26 -36
- package/dist/views/wire.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/client/README.md +26 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs +7069 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts +1054 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts +1054 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs +7086 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts +59 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs +970 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs +976 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts +59 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Bnu9O96Y.cjs +60 -0
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs +42 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts +2675 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts +2678 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +5427 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +3196 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +3196 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +5224 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs +14 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs +14 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +21 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +20 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs +7331 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs +6963 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +181 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +87 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +87 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +176 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts +1099 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts +1099 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.cjs +5 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.cjs +3 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/package.json +166 -0
- package/node_modules/@modelcontextprotocol/core/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/core/README.md +40 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts +8198 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs +2862 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts +8198 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs +1653 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +174 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +199 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +87 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +87 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/package.json +85 -0
- package/node_modules/jose/LICENSE.md +21 -0
- package/node_modules/jose/README.md +153 -0
- package/node_modules/jose/dist/types/index.d.ts +55 -0
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +31 -0
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +65 -0
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +31 -0
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +83 -0
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +31 -0
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +74 -0
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +17 -0
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +32 -0
- package/node_modules/jose/dist/types/jwks/local.d.ts +29 -0
- package/node_modules/jose/dist/types/jwks/remote.d.ts +237 -0
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +36 -0
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +33 -0
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +42 -0
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +33 -0
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +53 -0
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +33 -0
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +35 -0
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +91 -0
- package/node_modules/jose/dist/types/jwt/sign.d.ts +43 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +43 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +37 -0
- package/node_modules/jose/dist/types/key/export.d.ts +33 -0
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +47 -0
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +35 -0
- package/node_modules/jose/dist/types/key/import.d.ts +83 -0
- package/node_modules/jose/dist/types/types.d.ts +841 -0
- package/node_modules/jose/dist/types/util/base64url.d.ts +9 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +18 -0
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +17 -0
- package/node_modules/jose/dist/types/util/errors.d.ts +213 -0
- package/node_modules/jose/dist/webapi/index.js +32 -0
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +165 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +169 -0
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +187 -0
- package/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/node_modules/jose/dist/webapi/jwks/local.js +119 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +92 -0
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +120 -0
- package/node_modules/jose/dist/webapi/jws/general/sign.js +73 -0
- package/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +108 -0
- package/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
- package/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/node_modules/jose/dist/webapi/key/export.js +11 -0
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
- package/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +16 -0
- package/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
- package/node_modules/jose/dist/webapi/lib/asn1.js +243 -0
- package/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +43 -0
- package/node_modules/jose/dist/webapi/lib/cek.js +19 -0
- package/node_modules/jose/dist/webapi/lib/check_cek_length.js +7 -0
- package/node_modules/jose/dist/webapi/lib/check_iv_length.js +7 -0
- package/node_modules/jose/dist/webapi/lib/check_key_length.js +8 -0
- package/node_modules/jose/dist/webapi/lib/check_key_type.js +122 -0
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +143 -0
- package/node_modules/jose/dist/webapi/lib/decrypt.js +106 -0
- package/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +127 -0
- package/node_modules/jose/dist/webapi/lib/digest.js +4 -0
- package/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
- package/node_modules/jose/dist/webapi/lib/encrypt.js +74 -0
- package/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +92 -0
- package/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +12 -0
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +27 -0
- package/node_modules/jose/dist/webapi/lib/is_disjoint.js +21 -0
- package/node_modules/jose/dist/webapi/lib/is_jwk.js +6 -0
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
- package/node_modules/jose/dist/webapi/lib/is_object.js +14 -0
- package/node_modules/jose/dist/webapi/lib/iv.js +19 -0
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +109 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +238 -0
- package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
- package/node_modules/jose/dist/webapi/lib/normalize_key.js +176 -0
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +39 -0
- package/node_modules/jose/dist/webapi/lib/private_symbols.js +1 -0
- package/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
- package/node_modules/jose/dist/webapi/lib/sign.js +9 -0
- package/node_modules/jose/dist/webapi/lib/subtle_dsa.js +31 -0
- package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
- package/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
- package/node_modules/jose/dist/webapi/lib/verify.js +14 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +30 -0
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
- package/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/node_modules/jose/package.json +200 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +191 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +153 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/node_modules/zod/src/v4/core/util.ts +983 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/node_modules/zod/v4/core/api.cjs +1227 -0
- package/node_modules/zod/v4/core/api.d.cts +325 -0
- package/node_modules/zod/v4/core/api.d.ts +325 -0
- package/node_modules/zod/v4/core/api.js +1087 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +85 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +78 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +216 -0
- package/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/node_modules/zod/v4/core/errors.js +185 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/node_modules/zod/v4/core/regexes.js +139 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/node_modules/zod/v4/core/schemas.js +2239 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/node_modules/zod/v4/core/util.cjs +734 -0
- package/node_modules/zod/v4/core/util.d.cts +200 -0
- package/node_modules/zod/v4/core/util.d.ts +200 -0
- package/node_modules/zod/v4/core/util.js +674 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +140 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +113 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +125 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +111 -0
- package/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/node_modules/zod/v4/locales/index.js +52 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +110 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/node_modules/zod/v4/mini/schemas.js +961 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +26 -10
- package/dist/chunk-Q4PUTBMV.js.map +0 -1
- package/dist/chunk-RQRT27Q3.js.map +0 -1
- package/dist/chunk-SFI2T6TE.js.map +0 -1
- package/dist/chunk-UDLRVMML.js.map +0 -1
- package/dist/public-route-7IK5D7V7.js.map +0 -1
|
@@ -0,0 +1,1054 @@
|
|
|
1
|
+
import { i as jsonSchemaValidator, n as JsonSchemaValidator, t as JsonSchemaType } from "./types-BDNQEPSs.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../core-internal/src/validators/fastUriShim.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* dts-bundling shim for `fast-uri`.
|
|
7
|
+
*
|
|
8
|
+
* ajv@8.18.0's published .d.ts does `import { URIComponent } from "fast-uri"`,
|
|
9
|
+
* but fast-uri ships its types as `export = namespace`, which rolldown's dts
|
|
10
|
+
* bundler can't destructure into a named import — it drops the import and
|
|
11
|
+
* leaves a dangling `URIComponent` reference in the bundled .d.mts (TS2304 for
|
|
12
|
+
* downstream consumers with `skipLibCheck: false`).
|
|
13
|
+
*
|
|
14
|
+
* The server/client tsdown configs map `fast-uri` to this file via
|
|
15
|
+
* `dts.compilerOptions.paths` so the type is inlined as a plain named export.
|
|
16
|
+
* Runtime code is unaffected (this is a `.d.ts`; the path mapping is dts-only).
|
|
17
|
+
*/
|
|
18
|
+
// Field-for-field copy of fast-uri@3.1.0's URIComponent (types/index.d.ts).
|
|
19
|
+
// Keep in sync when bumping fast-uri/ajv.
|
|
20
|
+
interface URIComponent {
|
|
21
|
+
scheme?: string;
|
|
22
|
+
userinfo?: string;
|
|
23
|
+
host?: string;
|
|
24
|
+
port?: number | string;
|
|
25
|
+
path?: string;
|
|
26
|
+
query?: string;
|
|
27
|
+
fragment?: string;
|
|
28
|
+
reference?: string;
|
|
29
|
+
nid?: string;
|
|
30
|
+
nss?: string;
|
|
31
|
+
resourceName?: string;
|
|
32
|
+
secure?: boolean;
|
|
33
|
+
uuid?: string;
|
|
34
|
+
error?: string;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.d.ts
|
|
38
|
+
declare abstract class _CodeOrName {
|
|
39
|
+
abstract readonly str: string;
|
|
40
|
+
abstract readonly names: UsedNames;
|
|
41
|
+
abstract toString(): string;
|
|
42
|
+
abstract emptyStr(): boolean;
|
|
43
|
+
}
|
|
44
|
+
declare class Name extends _CodeOrName {
|
|
45
|
+
readonly str: string;
|
|
46
|
+
constructor(s: string);
|
|
47
|
+
toString(): string;
|
|
48
|
+
emptyStr(): boolean;
|
|
49
|
+
get names(): UsedNames;
|
|
50
|
+
}
|
|
51
|
+
declare class _Code extends _CodeOrName {
|
|
52
|
+
readonly _items: readonly CodeItem[];
|
|
53
|
+
private _str?;
|
|
54
|
+
private _names?;
|
|
55
|
+
constructor(code: string | readonly CodeItem[]);
|
|
56
|
+
toString(): string;
|
|
57
|
+
emptyStr(): boolean;
|
|
58
|
+
get str(): string;
|
|
59
|
+
get names(): UsedNames;
|
|
60
|
+
}
|
|
61
|
+
type CodeItem = Name | string | number | boolean | null;
|
|
62
|
+
type UsedNames = Record<string, number | undefined>;
|
|
63
|
+
type Code = _Code | Name;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.d.ts
|
|
66
|
+
interface NameGroup {
|
|
67
|
+
prefix: string;
|
|
68
|
+
index: number;
|
|
69
|
+
}
|
|
70
|
+
interface NameValue {
|
|
71
|
+
ref: ValueReference;
|
|
72
|
+
key?: unknown;
|
|
73
|
+
code?: Code;
|
|
74
|
+
}
|
|
75
|
+
type ValueReference = unknown;
|
|
76
|
+
interface ScopeOptions {
|
|
77
|
+
prefixes?: Set<string>;
|
|
78
|
+
parent?: Scope;
|
|
79
|
+
}
|
|
80
|
+
interface ValueScopeOptions extends ScopeOptions {
|
|
81
|
+
scope: ScopeStore;
|
|
82
|
+
es5?: boolean;
|
|
83
|
+
lines?: boolean;
|
|
84
|
+
}
|
|
85
|
+
type ScopeStore = Record<string, ValueReference[] | undefined>;
|
|
86
|
+
type ScopeValues = { [Prefix in string]?: Map<unknown, ValueScopeName> };
|
|
87
|
+
type ScopeValueSets = { [Prefix in string]?: Set<ValueScopeName> };
|
|
88
|
+
declare enum UsedValueState {
|
|
89
|
+
Started = 0,
|
|
90
|
+
Completed = 1,
|
|
91
|
+
}
|
|
92
|
+
type UsedScopeValues = { [Prefix in string]?: Map<ValueScopeName, UsedValueState | undefined> };
|
|
93
|
+
declare class Scope {
|
|
94
|
+
protected readonly _names: { [Prefix in string]?: NameGroup };
|
|
95
|
+
protected readonly _prefixes?: Set<string>;
|
|
96
|
+
protected readonly _parent?: Scope;
|
|
97
|
+
constructor({
|
|
98
|
+
prefixes,
|
|
99
|
+
parent
|
|
100
|
+
}?: ScopeOptions);
|
|
101
|
+
toName(nameOrPrefix: Name | string): Name;
|
|
102
|
+
name(prefix: string): Name;
|
|
103
|
+
protected _newName(prefix: string): string;
|
|
104
|
+
private _nameGroup;
|
|
105
|
+
}
|
|
106
|
+
interface ScopePath {
|
|
107
|
+
property: string;
|
|
108
|
+
itemIndex: number;
|
|
109
|
+
}
|
|
110
|
+
declare class ValueScopeName extends Name {
|
|
111
|
+
readonly prefix: string;
|
|
112
|
+
value?: NameValue;
|
|
113
|
+
scopePath?: Code;
|
|
114
|
+
constructor(prefix: string, nameStr: string);
|
|
115
|
+
setValue(value: NameValue, {
|
|
116
|
+
property,
|
|
117
|
+
itemIndex
|
|
118
|
+
}: ScopePath): void;
|
|
119
|
+
}
|
|
120
|
+
interface VSOptions extends ValueScopeOptions {
|
|
121
|
+
_n: Code;
|
|
122
|
+
}
|
|
123
|
+
declare class ValueScope extends Scope {
|
|
124
|
+
protected readonly _values: ScopeValues;
|
|
125
|
+
protected readonly _scope: ScopeStore;
|
|
126
|
+
readonly opts: VSOptions;
|
|
127
|
+
constructor(opts: ValueScopeOptions);
|
|
128
|
+
get(): ScopeStore;
|
|
129
|
+
name(prefix: string): ValueScopeName;
|
|
130
|
+
value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName;
|
|
131
|
+
getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined;
|
|
132
|
+
scopeRefs(scopeName: Name, values?: ScopeValues | ScopeValueSets): Code;
|
|
133
|
+
scopeCode(values?: ScopeValues | ScopeValueSets, usedValues?: UsedScopeValues, getCode?: (n: ValueScopeName) => Code | undefined): Code;
|
|
134
|
+
private _reduceValues;
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.d.ts
|
|
138
|
+
type SafeExpr = Code | number | boolean | null;
|
|
139
|
+
type Block = Code | (() => void);
|
|
140
|
+
interface CodeGenOptions {
|
|
141
|
+
es5?: boolean;
|
|
142
|
+
lines?: boolean;
|
|
143
|
+
ownProperties?: boolean;
|
|
144
|
+
}
|
|
145
|
+
declare class CodeGen {
|
|
146
|
+
readonly _scope: Scope;
|
|
147
|
+
readonly _extScope: ValueScope;
|
|
148
|
+
readonly _values: ScopeValueSets;
|
|
149
|
+
private readonly _nodes;
|
|
150
|
+
private readonly _blockStarts;
|
|
151
|
+
private readonly _constants;
|
|
152
|
+
private readonly opts;
|
|
153
|
+
constructor(extScope: ValueScope, opts?: CodeGenOptions);
|
|
154
|
+
toString(): string;
|
|
155
|
+
name(prefix: string): Name;
|
|
156
|
+
scopeName(prefix: string): ValueScopeName;
|
|
157
|
+
scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name;
|
|
158
|
+
getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined;
|
|
159
|
+
scopeRefs(scopeName: Name): Code;
|
|
160
|
+
scopeCode(): Code;
|
|
161
|
+
private _def;
|
|
162
|
+
const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name;
|
|
163
|
+
let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name;
|
|
164
|
+
var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name;
|
|
165
|
+
assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen;
|
|
166
|
+
add(lhs: Code, rhs: SafeExpr): CodeGen;
|
|
167
|
+
code(c: Block | SafeExpr): CodeGen;
|
|
168
|
+
object(...keyValues: [Name | string, SafeExpr | string][]): _Code;
|
|
169
|
+
if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen;
|
|
170
|
+
elseIf(condition: Code | boolean): CodeGen;
|
|
171
|
+
else(): CodeGen;
|
|
172
|
+
endIf(): CodeGen;
|
|
173
|
+
private _for;
|
|
174
|
+
for(iteration: Code, forBody?: Block): CodeGen;
|
|
175
|
+
forRange(nameOrPrefix: Name | string, from: SafeExpr, to: SafeExpr, forBody: (index: Name) => void, varKind?: Code): CodeGen;
|
|
176
|
+
forOf(nameOrPrefix: Name | string, iterable: Code, forBody: (item: Name) => void, varKind?: Code): CodeGen;
|
|
177
|
+
forIn(nameOrPrefix: Name | string, obj: Code, forBody: (item: Name) => void, varKind?: Code): CodeGen;
|
|
178
|
+
endFor(): CodeGen;
|
|
179
|
+
label(label: Name): CodeGen;
|
|
180
|
+
break(label?: Code): CodeGen;
|
|
181
|
+
return(value: Block | SafeExpr): CodeGen;
|
|
182
|
+
try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen;
|
|
183
|
+
throw(error: Code): CodeGen;
|
|
184
|
+
block(body?: Block, nodeCount?: number): CodeGen;
|
|
185
|
+
endBlock(nodeCount?: number): CodeGen;
|
|
186
|
+
func(name: Name, args?: Code, async?: boolean, funcBody?: Block): CodeGen;
|
|
187
|
+
endFunc(): CodeGen;
|
|
188
|
+
optimize(n?: number): void;
|
|
189
|
+
private _leafNode;
|
|
190
|
+
private _blockNode;
|
|
191
|
+
private _endBlockNode;
|
|
192
|
+
private _elseNode;
|
|
193
|
+
private get _root();
|
|
194
|
+
private get _currNode();
|
|
195
|
+
private set _currNode(value);
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.d.ts
|
|
199
|
+
declare const _jsonTypes: readonly ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
200
|
+
type JSONType$1 = (typeof _jsonTypes)[number];
|
|
201
|
+
type ValidationTypes = { [K in JSONType$1]: boolean | RuleGroup | undefined };
|
|
202
|
+
interface ValidationRules {
|
|
203
|
+
rules: RuleGroup[];
|
|
204
|
+
post: RuleGroup;
|
|
205
|
+
all: { [Key in string]?: boolean | Rule };
|
|
206
|
+
keywords: { [Key in string]?: boolean };
|
|
207
|
+
types: ValidationTypes;
|
|
208
|
+
}
|
|
209
|
+
interface RuleGroup {
|
|
210
|
+
type?: JSONType$1;
|
|
211
|
+
rules: Rule[];
|
|
212
|
+
}
|
|
213
|
+
interface Rule {
|
|
214
|
+
keyword: string;
|
|
215
|
+
definition: AddedKeywordDefinition;
|
|
216
|
+
}
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.d.ts
|
|
219
|
+
declare enum Type {
|
|
220
|
+
Num = 0,
|
|
221
|
+
Str = 1,
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.d.ts
|
|
225
|
+
type SubschemaArgs = Partial<{
|
|
226
|
+
keyword: string;
|
|
227
|
+
schemaProp: string | number;
|
|
228
|
+
schema: AnySchema;
|
|
229
|
+
schemaPath: Code;
|
|
230
|
+
errSchemaPath: string;
|
|
231
|
+
topSchemaRef: Code;
|
|
232
|
+
data: Name | Code;
|
|
233
|
+
dataProp: Code | string | number;
|
|
234
|
+
dataTypes: JSONType$1[];
|
|
235
|
+
definedProperties: Set<string>;
|
|
236
|
+
propertyName: Name;
|
|
237
|
+
dataPropType: Type;
|
|
238
|
+
jtdDiscriminator: string;
|
|
239
|
+
jtdMetadata: boolean;
|
|
240
|
+
compositeRule: true;
|
|
241
|
+
createErrors: boolean;
|
|
242
|
+
allErrors: boolean;
|
|
243
|
+
}>;
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.d.ts
|
|
246
|
+
interface ErrorPaths {
|
|
247
|
+
instancePath?: Code;
|
|
248
|
+
schemaPath?: string;
|
|
249
|
+
parentSchema?: boolean;
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.d.ts
|
|
253
|
+
declare class KeywordCxt implements KeywordErrorCxt {
|
|
254
|
+
readonly gen: CodeGen;
|
|
255
|
+
readonly allErrors?: boolean;
|
|
256
|
+
readonly keyword: string;
|
|
257
|
+
readonly data: Name;
|
|
258
|
+
readonly $data?: string | false;
|
|
259
|
+
schema: any;
|
|
260
|
+
readonly schemaValue: Code | number | boolean;
|
|
261
|
+
readonly schemaCode: Code | number | boolean;
|
|
262
|
+
readonly schemaType: JSONType$1[];
|
|
263
|
+
readonly parentSchema: AnySchemaObject;
|
|
264
|
+
readonly errsCount?: Name;
|
|
265
|
+
params: KeywordCxtParams;
|
|
266
|
+
readonly it: SchemaObjCxt;
|
|
267
|
+
readonly def: AddedKeywordDefinition;
|
|
268
|
+
constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string);
|
|
269
|
+
result(condition: Code, successAction?: () => void, failAction?: () => void): void;
|
|
270
|
+
failResult(condition: Code, successAction?: () => void, failAction?: () => void): void;
|
|
271
|
+
pass(condition: Code, failAction?: () => void): void;
|
|
272
|
+
fail(condition?: Code): void;
|
|
273
|
+
fail$data(condition: Code): void;
|
|
274
|
+
error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void;
|
|
275
|
+
private _error;
|
|
276
|
+
$dataError(): void;
|
|
277
|
+
reset(): void;
|
|
278
|
+
ok(cond: Code | boolean): void;
|
|
279
|
+
setParams(obj: KeywordCxtParams, assign?: true): void;
|
|
280
|
+
block$data(valid: Name, codeBlock: () => void, $dataValid?: Code): void;
|
|
281
|
+
check$data(valid?: Name, $dataValid?: Code): void;
|
|
282
|
+
invalid$data(): Code;
|
|
283
|
+
subschema(appl: SubschemaArgs, valid: Name): SchemaCxt;
|
|
284
|
+
mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void;
|
|
285
|
+
mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void;
|
|
286
|
+
}
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/types/json-schema.d.ts
|
|
289
|
+
type StrictNullChecksWrapper<Name$1 extends string, Type$1> = undefined extends null ? `strictNullChecks must be true in tsconfig to use ${Name$1}` : Type$1;
|
|
290
|
+
type UnionToIntersection<U> = (U extends any ? (_: U) => void : never) extends ((_: infer I) => void) ? I : never;
|
|
291
|
+
type UncheckedPartialSchema<T> = Partial<UncheckedJSONSchemaType<T, true>>;
|
|
292
|
+
type JSONType<T extends string, IsPartial extends boolean> = IsPartial extends true ? T | undefined : T;
|
|
293
|
+
interface NumberKeywords {
|
|
294
|
+
minimum?: number;
|
|
295
|
+
maximum?: number;
|
|
296
|
+
exclusiveMinimum?: number;
|
|
297
|
+
exclusiveMaximum?: number;
|
|
298
|
+
multipleOf?: number;
|
|
299
|
+
format?: string;
|
|
300
|
+
}
|
|
301
|
+
interface StringKeywords {
|
|
302
|
+
minLength?: number;
|
|
303
|
+
maxLength?: number;
|
|
304
|
+
pattern?: string;
|
|
305
|
+
format?: string;
|
|
306
|
+
}
|
|
307
|
+
type UncheckedJSONSchemaType<T, IsPartial extends boolean> = (
|
|
308
|
+
// these two unions allow arbitrary unions of types
|
|
309
|
+
{
|
|
310
|
+
anyOf: readonly UncheckedJSONSchemaType<T, IsPartial>[];
|
|
311
|
+
} | {
|
|
312
|
+
oneOf: readonly UncheckedJSONSchemaType<T, IsPartial>[];
|
|
313
|
+
} | ({
|
|
314
|
+
type: readonly (T extends number ? JSONType<"number" | "integer", IsPartial> : T extends string ? JSONType<"string", IsPartial> : T extends boolean ? JSONType<"boolean", IsPartial> : never)[];
|
|
315
|
+
} & UnionToIntersection<T extends number ? NumberKeywords : T extends string ? StringKeywords : T extends boolean ? {} : never>) | ((T extends number ? {
|
|
316
|
+
type: JSONType<"number" | "integer", IsPartial>;
|
|
317
|
+
} & NumberKeywords : T extends string ? {
|
|
318
|
+
type: JSONType<"string", IsPartial>;
|
|
319
|
+
} & StringKeywords : T extends boolean ? {
|
|
320
|
+
type: JSONType<"boolean", IsPartial>;
|
|
321
|
+
} : T extends readonly [any, ...any[]] ? {
|
|
322
|
+
type: JSONType<"array", IsPartial>;
|
|
323
|
+
items: { readonly [K in keyof T]-?: UncheckedJSONSchemaType<T[K], false> & Nullable<T[K]> } & {
|
|
324
|
+
length: T["length"];
|
|
325
|
+
};
|
|
326
|
+
minItems: T["length"];
|
|
327
|
+
} & ({
|
|
328
|
+
maxItems: T["length"];
|
|
329
|
+
} | {
|
|
330
|
+
additionalItems: false;
|
|
331
|
+
}) : T extends readonly any[] ? {
|
|
332
|
+
type: JSONType<"array", IsPartial>;
|
|
333
|
+
items: UncheckedJSONSchemaType<T[0], false>;
|
|
334
|
+
contains?: UncheckedPartialSchema<T[0]>;
|
|
335
|
+
minItems?: number;
|
|
336
|
+
maxItems?: number;
|
|
337
|
+
minContains?: number;
|
|
338
|
+
maxContains?: number;
|
|
339
|
+
uniqueItems?: true;
|
|
340
|
+
additionalItems?: never;
|
|
341
|
+
} : T extends Record<string, any> ? {
|
|
342
|
+
type: JSONType<"object", IsPartial>;
|
|
343
|
+
additionalProperties?: boolean | UncheckedJSONSchemaType<T[string], false>;
|
|
344
|
+
unevaluatedProperties?: boolean | UncheckedJSONSchemaType<T[string], false>;
|
|
345
|
+
properties?: IsPartial extends true ? Partial<UncheckedPropertiesSchema<T>> : UncheckedPropertiesSchema<T>;
|
|
346
|
+
patternProperties?: Record<string, UncheckedJSONSchemaType<T[string], false>>;
|
|
347
|
+
propertyNames?: Omit<UncheckedJSONSchemaType<string, false>, "type"> & {
|
|
348
|
+
type?: "string";
|
|
349
|
+
};
|
|
350
|
+
dependencies?: { [K in keyof T]?: readonly (keyof T)[] | UncheckedPartialSchema<T> };
|
|
351
|
+
dependentRequired?: { [K in keyof T]?: readonly (keyof T)[] };
|
|
352
|
+
dependentSchemas?: { [K in keyof T]?: UncheckedPartialSchema<T> };
|
|
353
|
+
minProperties?: number;
|
|
354
|
+
maxProperties?: number;
|
|
355
|
+
} & (IsPartial extends true ? {
|
|
356
|
+
required: readonly (keyof T)[];
|
|
357
|
+
} : [UncheckedRequiredMembers<T>] extends [never] ? {
|
|
358
|
+
required?: readonly UncheckedRequiredMembers<T>[];
|
|
359
|
+
} : {
|
|
360
|
+
required: readonly UncheckedRequiredMembers<T>[];
|
|
361
|
+
}) : T extends null ? {
|
|
362
|
+
type: JSONType<"null", IsPartial>;
|
|
363
|
+
nullable: true;
|
|
364
|
+
} : never) & {
|
|
365
|
+
allOf?: readonly UncheckedPartialSchema<T>[];
|
|
366
|
+
anyOf?: readonly UncheckedPartialSchema<T>[];
|
|
367
|
+
oneOf?: readonly UncheckedPartialSchema<T>[];
|
|
368
|
+
if?: UncheckedPartialSchema<T>;
|
|
369
|
+
then?: UncheckedPartialSchema<T>;
|
|
370
|
+
else?: UncheckedPartialSchema<T>;
|
|
371
|
+
not?: UncheckedPartialSchema<T>;
|
|
372
|
+
})) & {
|
|
373
|
+
[keyword: string]: any;
|
|
374
|
+
$id?: string;
|
|
375
|
+
$ref?: string;
|
|
376
|
+
$defs?: Record<string, UncheckedJSONSchemaType<Known, true>>;
|
|
377
|
+
definitions?: Record<string, UncheckedJSONSchemaType<Known, true>>;
|
|
378
|
+
};
|
|
379
|
+
type JSONSchemaType<T> = StrictNullChecksWrapper<"JSONSchemaType", UncheckedJSONSchemaType<T, false>>;
|
|
380
|
+
type Known = {
|
|
381
|
+
[key: string]: Known;
|
|
382
|
+
} | [Known, ...Known[]] | Known[] | number | string | boolean | null;
|
|
383
|
+
type UncheckedPropertiesSchema<T> = { [K in keyof T]-?: (UncheckedJSONSchemaType<T[K], false> & Nullable<T[K]>) | {
|
|
384
|
+
$ref: string;
|
|
385
|
+
} };
|
|
386
|
+
type UncheckedRequiredMembers<T> = { [K in keyof T]-?: undefined extends T[K] ? never : K }[keyof T];
|
|
387
|
+
type Nullable<T> = undefined extends T ? {
|
|
388
|
+
nullable: true;
|
|
389
|
+
const?: null;
|
|
390
|
+
enum?: readonly (T | null)[];
|
|
391
|
+
default?: T | null;
|
|
392
|
+
} : {
|
|
393
|
+
nullable?: false;
|
|
394
|
+
const?: T;
|
|
395
|
+
enum?: readonly T[];
|
|
396
|
+
default?: T;
|
|
397
|
+
};
|
|
398
|
+
//#endregion
|
|
399
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/types/jtd-schema.d.ts
|
|
400
|
+
/** numeric strings */
|
|
401
|
+
type NumberType = "float32" | "float64" | "int8" | "uint8" | "int16" | "uint16" | "int32" | "uint32";
|
|
402
|
+
/** string strings */
|
|
403
|
+
type StringType = "string" | "timestamp";
|
|
404
|
+
/** Generic JTD Schema without inference of the represented type */
|
|
405
|
+
type SomeJTDSchemaType = (
|
|
406
|
+
// ref
|
|
407
|
+
{
|
|
408
|
+
ref: string;
|
|
409
|
+
} | {
|
|
410
|
+
type: NumberType | StringType | "boolean";
|
|
411
|
+
} | {
|
|
412
|
+
enum: string[];
|
|
413
|
+
} | {
|
|
414
|
+
elements: SomeJTDSchemaType;
|
|
415
|
+
} | {
|
|
416
|
+
values: SomeJTDSchemaType;
|
|
417
|
+
} | {
|
|
418
|
+
properties: Record<string, SomeJTDSchemaType>;
|
|
419
|
+
optionalProperties?: Record<string, SomeJTDSchemaType>;
|
|
420
|
+
additionalProperties?: boolean;
|
|
421
|
+
} | {
|
|
422
|
+
properties?: Record<string, SomeJTDSchemaType>;
|
|
423
|
+
optionalProperties: Record<string, SomeJTDSchemaType>;
|
|
424
|
+
additionalProperties?: boolean;
|
|
425
|
+
} | {
|
|
426
|
+
discriminator: string;
|
|
427
|
+
mapping: Record<string, SomeJTDSchemaType>;
|
|
428
|
+
} | {}) & {
|
|
429
|
+
nullable?: boolean;
|
|
430
|
+
metadata?: Record<string, unknown>;
|
|
431
|
+
definitions?: Record<string, SomeJTDSchemaType>;
|
|
432
|
+
};
|
|
433
|
+
/** required keys of an object, not undefined */
|
|
434
|
+
type RequiredKeys<T> = { [K in keyof T]-?: undefined extends T[K] ? never : K }[keyof T];
|
|
435
|
+
/** optional or undifined-able keys of an object */
|
|
436
|
+
type OptionalKeys<T> = { [K in keyof T]-?: undefined extends T[K] ? K : never }[keyof T];
|
|
437
|
+
/** type is true if T is a union type */
|
|
438
|
+
type IsUnion_<T, U extends T = T> = false extends (T extends unknown ? ([U] extends [T] ? false : true) : never) ? false : true;
|
|
439
|
+
type IsUnion<T> = IsUnion_<T>;
|
|
440
|
+
/** type is true if T is identically E */
|
|
441
|
+
type TypeEquality<T, E$1> = [T] extends [E$1] ? ([E$1] extends [T] ? true : false) : false;
|
|
442
|
+
/** type is true if T or null is identically E or null*/
|
|
443
|
+
type NullTypeEquality<T, E$1> = TypeEquality<T | null, E$1 | null>;
|
|
444
|
+
/** gets only the string literals of a type or null if a type isn't a string literal */
|
|
445
|
+
type EnumString<T> = [T] extends [never] ? null : T extends string ? string extends T ? null : T : null;
|
|
446
|
+
/** true if type is a union of string literals */
|
|
447
|
+
type IsEnum<T> = null extends EnumString<T> ? false : true;
|
|
448
|
+
/** true only if all types are array types (not tuples) */
|
|
449
|
+
type IsElements<T> = false extends IsUnion<T> ? [T] extends [readonly unknown[]] ? undefined extends T[0.5] ? false : true : false : false;
|
|
450
|
+
/** true if the the type is a values type */
|
|
451
|
+
type IsValues<T> = false extends IsUnion<T> ? TypeEquality<keyof T, string> : false;
|
|
452
|
+
/** true if type is a properties type and Union is false, or type is a discriminator type and Union is true */
|
|
453
|
+
type IsRecord<T, Union extends boolean> = Union extends IsUnion<T> ? null extends EnumString<keyof T> ? false : true : false;
|
|
454
|
+
/** true if type represents an empty record */
|
|
455
|
+
type IsEmptyRecord<T> = [T] extends [Record<string, never>] ? [T] extends [never] ? false : true : false;
|
|
456
|
+
/** actual schema */
|
|
457
|
+
type JTDSchemaType<T, D extends Record<string, unknown> = Record<string, never>> = (
|
|
458
|
+
// refs - where null wasn't specified, must match exactly
|
|
459
|
+
(null extends EnumString<keyof D> ? never : ({ [K in keyof D]: [T] extends [D[K]] ? {
|
|
460
|
+
ref: K;
|
|
461
|
+
} : never }[keyof D] & {
|
|
462
|
+
nullable?: false;
|
|
463
|
+
}) | (null extends T ? { [K in keyof D]: [Exclude<T, null>] extends [Exclude<D[K], null>] ? {
|
|
464
|
+
ref: K;
|
|
465
|
+
} : never }[keyof D] & {
|
|
466
|
+
nullable: true;
|
|
467
|
+
} : never)) | (unknown extends T ? {
|
|
468
|
+
nullable?: boolean;
|
|
469
|
+
} : never) | ((true extends NullTypeEquality<T, number> ? {
|
|
470
|
+
type: NumberType;
|
|
471
|
+
} : true extends NullTypeEquality<T, boolean> ? {
|
|
472
|
+
type: "boolean";
|
|
473
|
+
} : true extends NullTypeEquality<T, string> ? {
|
|
474
|
+
type: StringType;
|
|
475
|
+
} : true extends NullTypeEquality<T, Date> ? {
|
|
476
|
+
type: "timestamp";
|
|
477
|
+
} : true extends IsEnum<Exclude<T, null>> ? {
|
|
478
|
+
enum: EnumString<Exclude<T, null>>[];
|
|
479
|
+
} : true extends IsElements<Exclude<T, null>> ? T extends readonly (infer E)[] ? {
|
|
480
|
+
elements: JTDSchemaType<E, D>;
|
|
481
|
+
} : never : true extends IsEmptyRecord<Exclude<T, null>> ? {
|
|
482
|
+
properties: Record<string, never>;
|
|
483
|
+
optionalProperties?: Record<string, never>;
|
|
484
|
+
} | {
|
|
485
|
+
optionalProperties: Record<string, never>;
|
|
486
|
+
} : true extends IsValues<Exclude<T, null>> ? T extends Record<string, infer V> ? {
|
|
487
|
+
values: JTDSchemaType<V, D>;
|
|
488
|
+
} : never : true extends IsRecord<Exclude<T, null>, false> ? ([RequiredKeys<Exclude<T, null>>] extends [never] ? {
|
|
489
|
+
properties?: Record<string, never>;
|
|
490
|
+
} : {
|
|
491
|
+
properties: { [K in RequiredKeys<T>]: JTDSchemaType<T[K], D> };
|
|
492
|
+
}) & ([OptionalKeys<Exclude<T, null>>] extends [never] ? {
|
|
493
|
+
optionalProperties?: Record<string, never>;
|
|
494
|
+
} : {
|
|
495
|
+
optionalProperties: { [K in OptionalKeys<T>]: JTDSchemaType<Exclude<T[K], undefined>, D> };
|
|
496
|
+
}) & {
|
|
497
|
+
additionalProperties?: boolean;
|
|
498
|
+
} : true extends IsRecord<Exclude<T, null>, true> ? { [K in keyof Exclude<T, null>]-?: Exclude<T, null>[K] extends string ? {
|
|
499
|
+
discriminator: K;
|
|
500
|
+
mapping: { [M in Exclude<T, null>[K]]: JTDSchemaType<Omit<T extends Record<K, M> ? T : never, K>, D> };
|
|
501
|
+
} : never }[keyof Exclude<T, null>] : never) & (null extends T ? {
|
|
502
|
+
nullable: true;
|
|
503
|
+
} : {
|
|
504
|
+
nullable?: false;
|
|
505
|
+
}))) & {
|
|
506
|
+
metadata?: Record<string, unknown>;
|
|
507
|
+
definitions?: { [K in keyof D]: JTDSchemaType<D[K], D> };
|
|
508
|
+
};
|
|
509
|
+
type JTDDataDef<S, D extends Record<string, unknown>> =
|
|
510
|
+
// ref
|
|
511
|
+
(S extends {
|
|
512
|
+
ref: string;
|
|
513
|
+
} ? D extends { [K in S["ref"]]: infer V } ? JTDDataDef<V, D> : never : S extends {
|
|
514
|
+
type: NumberType;
|
|
515
|
+
} ? number : S extends {
|
|
516
|
+
type: "boolean";
|
|
517
|
+
} ? boolean : S extends {
|
|
518
|
+
type: "string";
|
|
519
|
+
} ? string : S extends {
|
|
520
|
+
type: "timestamp";
|
|
521
|
+
} ? string | Date : S extends {
|
|
522
|
+
enum: readonly (infer E)[];
|
|
523
|
+
} ? string extends E ? never : [E] extends [string] ? E : never : S extends {
|
|
524
|
+
elements: infer E;
|
|
525
|
+
} ? JTDDataDef<E, D>[] : S extends {
|
|
526
|
+
properties: Record<string, unknown>;
|
|
527
|
+
optionalProperties?: Record<string, unknown>;
|
|
528
|
+
additionalProperties?: boolean;
|
|
529
|
+
} ? { -readonly [K in keyof S["properties"]]-?: JTDDataDef<S["properties"][K], D> } & { -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef<S["optionalProperties"][K], D> } & ([S["additionalProperties"]] extends [true] ? Record<string, unknown> : unknown) : S extends {
|
|
530
|
+
properties?: Record<string, unknown>;
|
|
531
|
+
optionalProperties: Record<string, unknown>;
|
|
532
|
+
additionalProperties?: boolean;
|
|
533
|
+
} ? { -readonly [K in keyof S["properties"]]-?: JTDDataDef<S["properties"][K], D> } & { -readonly [K in keyof S["optionalProperties"]]+?: JTDDataDef<S["optionalProperties"][K], D> } & ([S["additionalProperties"]] extends [true] ? Record<string, unknown> : unknown) : S extends {
|
|
534
|
+
values: infer V;
|
|
535
|
+
} ? Record<string, JTDDataDef<V, D>> : S extends {
|
|
536
|
+
discriminator: infer M;
|
|
537
|
+
mapping: Record<string, unknown>;
|
|
538
|
+
} ? [M] extends [string] ? { [K in keyof S["mapping"]]: JTDDataDef<S["mapping"][K], D> & { [KM in M]: K } }[keyof S["mapping"]] : never : unknown) | (S extends {
|
|
539
|
+
nullable: true;
|
|
540
|
+
} ? null : never);
|
|
541
|
+
type JTDDataType<S> = S extends {
|
|
542
|
+
definitions: Record<string, unknown>;
|
|
543
|
+
} ? JTDDataDef<S, S["definitions"]> : JTDDataDef<S, Record<string, never>>;
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.d.ts
|
|
546
|
+
declare class ValidationError extends Error {
|
|
547
|
+
readonly errors: Partial<ErrorObject>[];
|
|
548
|
+
readonly ajv: true;
|
|
549
|
+
readonly validation: true;
|
|
550
|
+
constructor(errors: Partial<ErrorObject>[]);
|
|
551
|
+
}
|
|
552
|
+
//#endregion
|
|
553
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.d.ts
|
|
554
|
+
declare class MissingRefError extends Error {
|
|
555
|
+
readonly missingRef: string;
|
|
556
|
+
readonly missingSchema: string;
|
|
557
|
+
constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string);
|
|
558
|
+
}
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.d.ts
|
|
561
|
+
interface Plugin<Opts> {
|
|
562
|
+
(ajv: Ajv$2, options?: Opts): Ajv$2;
|
|
563
|
+
[prop: string]: any;
|
|
564
|
+
}
|
|
565
|
+
type Options = CurrentOptions & DeprecatedOptions;
|
|
566
|
+
interface CurrentOptions {
|
|
567
|
+
strict?: boolean | "log";
|
|
568
|
+
strictSchema?: boolean | "log";
|
|
569
|
+
strictNumbers?: boolean | "log";
|
|
570
|
+
strictTypes?: boolean | "log";
|
|
571
|
+
strictTuples?: boolean | "log";
|
|
572
|
+
strictRequired?: boolean | "log";
|
|
573
|
+
allowMatchingProperties?: boolean;
|
|
574
|
+
allowUnionTypes?: boolean;
|
|
575
|
+
validateFormats?: boolean;
|
|
576
|
+
$data?: boolean;
|
|
577
|
+
allErrors?: boolean;
|
|
578
|
+
verbose?: boolean;
|
|
579
|
+
discriminator?: boolean;
|
|
580
|
+
unicodeRegExp?: boolean;
|
|
581
|
+
timestamp?: "string" | "date";
|
|
582
|
+
parseDate?: boolean;
|
|
583
|
+
allowDate?: boolean;
|
|
584
|
+
specialNumbers?: "fast" | "null";
|
|
585
|
+
$comment?: true | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown);
|
|
586
|
+
formats?: { [Name in string]?: Format };
|
|
587
|
+
keywords?: Vocabulary;
|
|
588
|
+
schemas?: AnySchema[] | { [Key in string]?: AnySchema };
|
|
589
|
+
logger?: Logger | false;
|
|
590
|
+
loadSchema?: (uri: string) => Promise<AnySchemaObject>;
|
|
591
|
+
removeAdditional?: boolean | "all" | "failing";
|
|
592
|
+
useDefaults?: boolean | "empty";
|
|
593
|
+
coerceTypes?: boolean | "array";
|
|
594
|
+
next?: boolean;
|
|
595
|
+
unevaluated?: boolean;
|
|
596
|
+
dynamicRef?: boolean;
|
|
597
|
+
schemaId?: "id" | "$id";
|
|
598
|
+
jtd?: boolean;
|
|
599
|
+
meta?: SchemaObject | boolean;
|
|
600
|
+
defaultMeta?: string | AnySchemaObject;
|
|
601
|
+
validateSchema?: boolean | "log";
|
|
602
|
+
addUsedSchema?: boolean;
|
|
603
|
+
inlineRefs?: boolean | number;
|
|
604
|
+
passContext?: boolean;
|
|
605
|
+
loopRequired?: number;
|
|
606
|
+
loopEnum?: number;
|
|
607
|
+
ownProperties?: boolean;
|
|
608
|
+
multipleOfPrecision?: number;
|
|
609
|
+
int32range?: boolean;
|
|
610
|
+
messages?: boolean;
|
|
611
|
+
code?: CodeOptions;
|
|
612
|
+
uriResolver?: UriResolver;
|
|
613
|
+
}
|
|
614
|
+
interface CodeOptions {
|
|
615
|
+
es5?: boolean;
|
|
616
|
+
esm?: boolean;
|
|
617
|
+
lines?: boolean;
|
|
618
|
+
optimize?: boolean | number;
|
|
619
|
+
formats?: Code;
|
|
620
|
+
source?: boolean;
|
|
621
|
+
process?: (code: string, schema?: SchemaEnv) => string;
|
|
622
|
+
regExp?: RegExpEngine;
|
|
623
|
+
}
|
|
624
|
+
interface InstanceCodeOptions extends CodeOptions {
|
|
625
|
+
regExp: RegExpEngine;
|
|
626
|
+
optimize: number;
|
|
627
|
+
}
|
|
628
|
+
interface DeprecatedOptions {
|
|
629
|
+
/** @deprecated */
|
|
630
|
+
ignoreKeywordsWithRef?: boolean;
|
|
631
|
+
/** @deprecated */
|
|
632
|
+
jsPropertySyntax?: boolean;
|
|
633
|
+
/** @deprecated */
|
|
634
|
+
unicode?: boolean;
|
|
635
|
+
}
|
|
636
|
+
type RequiredInstanceOptions = { [K in "strictSchema" | "strictNumbers" | "strictTypes" | "strictTuples" | "strictRequired" | "inlineRefs" | "loopRequired" | "loopEnum" | "meta" | "messages" | "schemaId" | "addUsedSchema" | "validateSchema" | "validateFormats" | "int32range" | "unicodeRegExp" | "uriResolver"]: NonNullable<Options[K]> } & {
|
|
637
|
+
code: InstanceCodeOptions;
|
|
638
|
+
};
|
|
639
|
+
type InstanceOptions = Options & RequiredInstanceOptions;
|
|
640
|
+
interface Logger {
|
|
641
|
+
log(...args: unknown[]): unknown;
|
|
642
|
+
warn(...args: unknown[]): unknown;
|
|
643
|
+
error(...args: unknown[]): unknown;
|
|
644
|
+
}
|
|
645
|
+
declare class Ajv$2 {
|
|
646
|
+
opts: InstanceOptions;
|
|
647
|
+
errors?: ErrorObject[] | null;
|
|
648
|
+
logger: Logger;
|
|
649
|
+
readonly scope: ValueScope;
|
|
650
|
+
readonly schemas: { [Key in string]?: SchemaEnv };
|
|
651
|
+
readonly refs: { [Ref in string]?: SchemaEnv | string };
|
|
652
|
+
readonly formats: { [Name in string]?: AddedFormat };
|
|
653
|
+
readonly RULES: ValidationRules;
|
|
654
|
+
readonly _compilations: Set<SchemaEnv>;
|
|
655
|
+
private readonly _loading;
|
|
656
|
+
private readonly _cache;
|
|
657
|
+
private readonly _metaOpts;
|
|
658
|
+
static ValidationError: typeof ValidationError;
|
|
659
|
+
static MissingRefError: typeof MissingRefError;
|
|
660
|
+
constructor(opts?: Options);
|
|
661
|
+
_addVocabularies(): void;
|
|
662
|
+
_addDefaultMetaSchema(): void;
|
|
663
|
+
defaultMeta(): string | AnySchemaObject | undefined;
|
|
664
|
+
validate(schema: Schema | string, data: unknown): boolean;
|
|
665
|
+
validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise<unknown>;
|
|
666
|
+
validate<T>(schema: Schema | JSONSchemaType<T> | string, data: unknown): data is T;
|
|
667
|
+
validate<T>(schema: JTDSchemaType<T>, data: unknown): data is T;
|
|
668
|
+
validate<N extends never, T extends SomeJTDSchemaType>(schema: T, data: unknown): data is JTDDataType<T>;
|
|
669
|
+
validate<T>(schema: AsyncSchema, data: unknown | T): Promise<T>;
|
|
670
|
+
validate<T>(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise<T>;
|
|
671
|
+
compile<T = unknown>(schema: Schema | JSONSchemaType<T>, _meta?: boolean): ValidateFunction<T>;
|
|
672
|
+
compile<T = unknown>(schema: JTDSchemaType<T>, _meta?: boolean): ValidateFunction<T>;
|
|
673
|
+
compile<N extends never, T extends SomeJTDSchemaType>(schema: T, _meta?: boolean): ValidateFunction<JTDDataType<T>>;
|
|
674
|
+
compile<T = unknown>(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction<T>;
|
|
675
|
+
compile<T = unknown>(schema: AnySchema, _meta?: boolean): AnyValidateFunction<T>;
|
|
676
|
+
compileAsync<T = unknown>(schema: SchemaObject | JSONSchemaType<T>, _meta?: boolean): Promise<ValidateFunction<T>>;
|
|
677
|
+
compileAsync<T = unknown>(schema: JTDSchemaType<T>, _meta?: boolean): Promise<ValidateFunction<T>>;
|
|
678
|
+
compileAsync<T = unknown>(schema: AsyncSchema, meta?: boolean): Promise<AsyncValidateFunction<T>>;
|
|
679
|
+
compileAsync<T = unknown>(schema: AnySchemaObject, meta?: boolean): Promise<AnyValidateFunction<T>>;
|
|
680
|
+
addSchema(schema: AnySchema | AnySchema[],
|
|
681
|
+
// If array is passed, `key` will be ignored
|
|
682
|
+
key?: string,
|
|
683
|
+
// Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.
|
|
684
|
+
_meta?: boolean,
|
|
685
|
+
// true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.
|
|
686
|
+
_validateSchema?: boolean | "log"): Ajv$2;
|
|
687
|
+
addMetaSchema(schema: AnySchemaObject, key?: string,
|
|
688
|
+
// schema key
|
|
689
|
+
_validateSchema?: boolean | "log"): Ajv$2;
|
|
690
|
+
validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise<unknown>;
|
|
691
|
+
getSchema<T = unknown>(keyRef: string): AnyValidateFunction<T> | undefined;
|
|
692
|
+
removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv$2;
|
|
693
|
+
addVocabulary(definitions: Vocabulary): Ajv$2;
|
|
694
|
+
addKeyword(kwdOrDef: string | KeywordDefinition, def?: KeywordDefinition): Ajv$2;
|
|
695
|
+
getKeyword(keyword: string): AddedKeywordDefinition | boolean;
|
|
696
|
+
removeKeyword(keyword: string): Ajv$2;
|
|
697
|
+
addFormat(name: string, format: Format): Ajv$2;
|
|
698
|
+
errorsText(errors?: ErrorObject[] | null | undefined,
|
|
699
|
+
// optional array of validation errors
|
|
700
|
+
{
|
|
701
|
+
separator,
|
|
702
|
+
dataVar
|
|
703
|
+
}?: ErrorsTextOptions): string;
|
|
704
|
+
$dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject;
|
|
705
|
+
private _removeAllSchemas;
|
|
706
|
+
_addSchema(schema: AnySchema, meta?: boolean, baseId?: string, validateSchema?: boolean | "log", addSchema?: boolean): SchemaEnv;
|
|
707
|
+
private _checkUnique;
|
|
708
|
+
private _compileSchemaEnv;
|
|
709
|
+
private _compileMetaSchema;
|
|
710
|
+
}
|
|
711
|
+
interface ErrorsTextOptions {
|
|
712
|
+
separator?: string;
|
|
713
|
+
dataVar?: string;
|
|
714
|
+
}
|
|
715
|
+
//#endregion
|
|
716
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.d.ts
|
|
717
|
+
type LocalRefs = { [Ref in string]?: AnySchemaObject };
|
|
718
|
+
//#endregion
|
|
719
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.d.ts
|
|
720
|
+
type SchemaRefs = { [Ref in string]?: SchemaEnv | AnySchema };
|
|
721
|
+
interface SchemaCxt {
|
|
722
|
+
readonly gen: CodeGen;
|
|
723
|
+
readonly allErrors?: boolean;
|
|
724
|
+
readonly data: Name;
|
|
725
|
+
readonly parentData: Name;
|
|
726
|
+
readonly parentDataProperty: Code | number;
|
|
727
|
+
readonly dataNames: Name[];
|
|
728
|
+
readonly dataPathArr: (Code | number)[];
|
|
729
|
+
readonly dataLevel: number;
|
|
730
|
+
dataTypes: JSONType$1[];
|
|
731
|
+
definedProperties: Set<string>;
|
|
732
|
+
readonly topSchemaRef: Code;
|
|
733
|
+
readonly validateName: Name;
|
|
734
|
+
evaluated?: Name;
|
|
735
|
+
readonly ValidationError?: Name;
|
|
736
|
+
readonly schema: AnySchema;
|
|
737
|
+
readonly schemaEnv: SchemaEnv;
|
|
738
|
+
readonly rootId: string;
|
|
739
|
+
baseId: string;
|
|
740
|
+
readonly schemaPath: Code;
|
|
741
|
+
readonly errSchemaPath: string;
|
|
742
|
+
readonly errorPath: Code;
|
|
743
|
+
readonly propertyName?: Name;
|
|
744
|
+
readonly compositeRule?: boolean;
|
|
745
|
+
props?: EvaluatedProperties | Name;
|
|
746
|
+
items?: EvaluatedItems | Name;
|
|
747
|
+
jtdDiscriminator?: string;
|
|
748
|
+
jtdMetadata?: boolean;
|
|
749
|
+
readonly createErrors?: boolean;
|
|
750
|
+
readonly opts: InstanceOptions;
|
|
751
|
+
readonly self: Ajv$2;
|
|
752
|
+
}
|
|
753
|
+
interface SchemaObjCxt extends SchemaCxt {
|
|
754
|
+
readonly schema: AnySchemaObject;
|
|
755
|
+
}
|
|
756
|
+
interface SchemaEnvArgs {
|
|
757
|
+
readonly schema: AnySchema;
|
|
758
|
+
readonly schemaId?: "$id" | "id";
|
|
759
|
+
readonly root?: SchemaEnv;
|
|
760
|
+
readonly baseId?: string;
|
|
761
|
+
readonly schemaPath?: string;
|
|
762
|
+
readonly localRefs?: LocalRefs;
|
|
763
|
+
readonly meta?: boolean;
|
|
764
|
+
}
|
|
765
|
+
declare class SchemaEnv implements SchemaEnvArgs {
|
|
766
|
+
readonly schema: AnySchema;
|
|
767
|
+
readonly schemaId?: "$id" | "id";
|
|
768
|
+
readonly root: SchemaEnv;
|
|
769
|
+
baseId: string;
|
|
770
|
+
schemaPath?: string;
|
|
771
|
+
localRefs?: LocalRefs;
|
|
772
|
+
readonly meta?: boolean;
|
|
773
|
+
readonly $async?: boolean;
|
|
774
|
+
readonly refs: SchemaRefs;
|
|
775
|
+
readonly dynamicAnchors: { [Ref in string]?: true };
|
|
776
|
+
validate?: AnyValidateFunction;
|
|
777
|
+
validateName?: ValueScopeName;
|
|
778
|
+
serialize?: (data: unknown) => string;
|
|
779
|
+
serializeName?: ValueScopeName;
|
|
780
|
+
parse?: (data: string) => unknown;
|
|
781
|
+
parseName?: ValueScopeName;
|
|
782
|
+
constructor(env: SchemaEnvArgs);
|
|
783
|
+
}
|
|
784
|
+
//#endregion
|
|
785
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/types/index.d.ts
|
|
786
|
+
interface _SchemaObject {
|
|
787
|
+
id?: string;
|
|
788
|
+
$id?: string;
|
|
789
|
+
$schema?: string;
|
|
790
|
+
[x: string]: any;
|
|
791
|
+
}
|
|
792
|
+
interface SchemaObject extends _SchemaObject {
|
|
793
|
+
id?: string;
|
|
794
|
+
$id?: string;
|
|
795
|
+
$schema?: string;
|
|
796
|
+
$async?: false;
|
|
797
|
+
[x: string]: any;
|
|
798
|
+
}
|
|
799
|
+
interface AsyncSchema extends _SchemaObject {
|
|
800
|
+
$async: true;
|
|
801
|
+
}
|
|
802
|
+
type AnySchemaObject = SchemaObject | AsyncSchema;
|
|
803
|
+
type Schema = SchemaObject | boolean;
|
|
804
|
+
type AnySchema = Schema | AsyncSchema;
|
|
805
|
+
interface SourceCode {
|
|
806
|
+
validateName: ValueScopeName;
|
|
807
|
+
validateCode: string;
|
|
808
|
+
scopeValues: ScopeValueSets;
|
|
809
|
+
evaluated?: Code;
|
|
810
|
+
}
|
|
811
|
+
interface DataValidationCxt<T extends string | number = string | number> {
|
|
812
|
+
instancePath: string;
|
|
813
|
+
parentData: { [K in T]: any };
|
|
814
|
+
parentDataProperty: T;
|
|
815
|
+
rootData: Record<string, any> | any[];
|
|
816
|
+
dynamicAnchors: { [Ref in string]?: ValidateFunction };
|
|
817
|
+
}
|
|
818
|
+
interface ValidateFunction<T = unknown> {
|
|
819
|
+
(this: Ajv$2 | any, data: any, dataCxt?: DataValidationCxt): data is T;
|
|
820
|
+
errors?: null | ErrorObject[];
|
|
821
|
+
evaluated?: Evaluated;
|
|
822
|
+
schema: AnySchema;
|
|
823
|
+
schemaEnv: SchemaEnv;
|
|
824
|
+
source?: SourceCode;
|
|
825
|
+
}
|
|
826
|
+
type EvaluatedProperties = { [K in string]?: true } | true;
|
|
827
|
+
type EvaluatedItems = number | true;
|
|
828
|
+
interface Evaluated {
|
|
829
|
+
props?: EvaluatedProperties;
|
|
830
|
+
items?: EvaluatedItems;
|
|
831
|
+
dynamicProps: boolean;
|
|
832
|
+
dynamicItems: boolean;
|
|
833
|
+
}
|
|
834
|
+
interface AsyncValidateFunction<T = unknown> extends ValidateFunction<T> {
|
|
835
|
+
(...args: Parameters<ValidateFunction<T>>): Promise<T>;
|
|
836
|
+
$async: true;
|
|
837
|
+
}
|
|
838
|
+
type AnyValidateFunction<T = any> = ValidateFunction<T> | AsyncValidateFunction<T>;
|
|
839
|
+
interface ErrorObject<K$1 extends string = string, P = Record<string, any>, S = unknown> {
|
|
840
|
+
keyword: K$1;
|
|
841
|
+
instancePath: string;
|
|
842
|
+
schemaPath: string;
|
|
843
|
+
params: P;
|
|
844
|
+
propertyName?: string;
|
|
845
|
+
message?: string;
|
|
846
|
+
schema?: S;
|
|
847
|
+
parentSchema?: AnySchemaObject;
|
|
848
|
+
data?: unknown;
|
|
849
|
+
}
|
|
850
|
+
interface _KeywordDef {
|
|
851
|
+
keyword: string | string[];
|
|
852
|
+
type?: JSONType$1 | JSONType$1[];
|
|
853
|
+
schemaType?: JSONType$1 | JSONType$1[];
|
|
854
|
+
allowUndefined?: boolean;
|
|
855
|
+
$data?: boolean;
|
|
856
|
+
implements?: string[];
|
|
857
|
+
before?: string;
|
|
858
|
+
post?: boolean;
|
|
859
|
+
metaSchema?: AnySchemaObject;
|
|
860
|
+
validateSchema?: AnyValidateFunction;
|
|
861
|
+
dependencies?: string[];
|
|
862
|
+
error?: KeywordErrorDefinition;
|
|
863
|
+
$dataError?: KeywordErrorDefinition;
|
|
864
|
+
}
|
|
865
|
+
interface CodeKeywordDefinition extends _KeywordDef {
|
|
866
|
+
code: (cxt: KeywordCxt, ruleType?: string) => void;
|
|
867
|
+
trackErrors?: boolean;
|
|
868
|
+
}
|
|
869
|
+
type MacroKeywordFunc = (schema: any, parentSchema: AnySchemaObject, it: SchemaCxt) => AnySchema;
|
|
870
|
+
type CompileKeywordFunc = (schema: any, parentSchema: AnySchemaObject, it: SchemaObjCxt) => DataValidateFunction;
|
|
871
|
+
interface DataValidateFunction {
|
|
872
|
+
(...args: Parameters<ValidateFunction>): boolean | Promise<any>;
|
|
873
|
+
errors?: Partial<ErrorObject>[];
|
|
874
|
+
}
|
|
875
|
+
interface SchemaValidateFunction {
|
|
876
|
+
(schema: any, data: any, parentSchema?: AnySchemaObject, dataCxt?: DataValidationCxt): boolean | Promise<any>;
|
|
877
|
+
errors?: Partial<ErrorObject>[];
|
|
878
|
+
}
|
|
879
|
+
interface FuncKeywordDefinition extends _KeywordDef {
|
|
880
|
+
validate?: SchemaValidateFunction | DataValidateFunction;
|
|
881
|
+
compile?: CompileKeywordFunc;
|
|
882
|
+
schema?: boolean;
|
|
883
|
+
modifying?: boolean;
|
|
884
|
+
async?: boolean;
|
|
885
|
+
valid?: boolean;
|
|
886
|
+
errors?: boolean | "full";
|
|
887
|
+
}
|
|
888
|
+
interface MacroKeywordDefinition extends FuncKeywordDefinition {
|
|
889
|
+
macro: MacroKeywordFunc;
|
|
890
|
+
}
|
|
891
|
+
type KeywordDefinition = CodeKeywordDefinition | FuncKeywordDefinition | MacroKeywordDefinition;
|
|
892
|
+
type AddedKeywordDefinition = KeywordDefinition & {
|
|
893
|
+
type: JSONType$1[];
|
|
894
|
+
schemaType: JSONType$1[];
|
|
895
|
+
};
|
|
896
|
+
interface KeywordErrorDefinition {
|
|
897
|
+
message: string | Code | ((cxt: KeywordErrorCxt) => string | Code);
|
|
898
|
+
params?: Code | ((cxt: KeywordErrorCxt) => Code);
|
|
899
|
+
}
|
|
900
|
+
type Vocabulary = (KeywordDefinition | string)[];
|
|
901
|
+
interface KeywordErrorCxt {
|
|
902
|
+
gen: CodeGen;
|
|
903
|
+
keyword: string;
|
|
904
|
+
data: Name;
|
|
905
|
+
$data?: string | false;
|
|
906
|
+
schema: any;
|
|
907
|
+
parentSchema?: AnySchemaObject;
|
|
908
|
+
schemaCode: Code | number | boolean;
|
|
909
|
+
schemaValue: Code | number | boolean;
|
|
910
|
+
schemaType?: JSONType$1[];
|
|
911
|
+
errsCount?: Name;
|
|
912
|
+
params: KeywordCxtParams;
|
|
913
|
+
it: SchemaCxt;
|
|
914
|
+
}
|
|
915
|
+
type KeywordCxtParams = { [P in string]?: Code | string | number };
|
|
916
|
+
type FormatValidator<T extends string | number> = (data: T) => boolean;
|
|
917
|
+
type FormatCompare<T extends string | number> = (data1: T, data2: T) => number | undefined;
|
|
918
|
+
type AsyncFormatValidator<T extends string | number> = (data: T) => Promise<boolean>;
|
|
919
|
+
interface FormatDefinition<T extends string | number> {
|
|
920
|
+
type?: T extends string ? "string" | undefined : "number";
|
|
921
|
+
validate: FormatValidator<T> | (T extends string ? string | RegExp : never);
|
|
922
|
+
async?: false | undefined;
|
|
923
|
+
compare?: FormatCompare<T>;
|
|
924
|
+
}
|
|
925
|
+
interface AsyncFormatDefinition<T extends string | number> {
|
|
926
|
+
type?: T extends string ? "string" | undefined : "number";
|
|
927
|
+
validate: AsyncFormatValidator<T>;
|
|
928
|
+
async: true;
|
|
929
|
+
compare?: FormatCompare<T>;
|
|
930
|
+
}
|
|
931
|
+
type AddedFormat = true | RegExp | FormatValidator<string> | FormatDefinition<string> | FormatDefinition<number> | AsyncFormatDefinition<string> | AsyncFormatDefinition<number>;
|
|
932
|
+
type Format = AddedFormat | string;
|
|
933
|
+
interface RegExpEngine {
|
|
934
|
+
(pattern: string, u: string): RegExpLike;
|
|
935
|
+
code: string;
|
|
936
|
+
}
|
|
937
|
+
interface RegExpLike {
|
|
938
|
+
test: (s: string) => boolean;
|
|
939
|
+
}
|
|
940
|
+
interface UriResolver {
|
|
941
|
+
parse(uri: string): URIComponent;
|
|
942
|
+
resolve(base: string, path: string): string;
|
|
943
|
+
serialize(component: URIComponent): string;
|
|
944
|
+
}
|
|
945
|
+
//#endregion
|
|
946
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.d.ts
|
|
947
|
+
declare class Ajv$1 extends Ajv$2 {
|
|
948
|
+
_addVocabularies(): void;
|
|
949
|
+
_addDefaultMetaSchema(): void;
|
|
950
|
+
defaultMeta(): string | AnySchemaObject | undefined;
|
|
951
|
+
}
|
|
952
|
+
//#endregion
|
|
953
|
+
//#region ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.d.ts
|
|
954
|
+
type FormatMode = "fast" | "full";
|
|
955
|
+
type FormatName = "date" | "time" | "date-time" | "iso-time" | "iso-date-time" | "duration" | "uri" | "uri-reference" | "uri-template" | "url" | "email" | "hostname" | "ipv4" | "ipv6" | "regex" | "uuid" | "json-pointer" | "json-pointer-uri-fragment" | "relative-json-pointer" | "byte" | "int32" | "int64" | "float" | "double" | "password" | "binary";
|
|
956
|
+
//#endregion
|
|
957
|
+
//#region ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.d.ts
|
|
958
|
+
interface FormatOptions {
|
|
959
|
+
mode?: FormatMode;
|
|
960
|
+
formats?: FormatName[];
|
|
961
|
+
keywords?: boolean;
|
|
962
|
+
}
|
|
963
|
+
type FormatsPluginOptions = FormatName[] | FormatOptions;
|
|
964
|
+
interface FormatsPlugin extends Plugin<FormatsPluginOptions> {
|
|
965
|
+
get: (format: FormatName, mode?: FormatMode) => Format;
|
|
966
|
+
}
|
|
967
|
+
declare const formatsPlugin: FormatsPlugin;
|
|
968
|
+
//#endregion
|
|
969
|
+
//#region ../core-internal/src/validators/ajvProvider.d.ts
|
|
970
|
+
/** Structural subset of the AJV interface used by {@link AjvJsonSchemaValidator}. */
|
|
971
|
+
interface AjvLike {
|
|
972
|
+
compile: (schema: unknown) => AjvValidateFunction;
|
|
973
|
+
getSchema: (keyRef: string) => AjvValidateFunction | undefined;
|
|
974
|
+
errorsText: (errors?: any) => string;
|
|
975
|
+
}
|
|
976
|
+
interface AjvValidateFunction {
|
|
977
|
+
(input: unknown): boolean;
|
|
978
|
+
errors?: any;
|
|
979
|
+
}
|
|
980
|
+
/** `ajv-formats` default export, normalised through the CJS/ESM interop wrapper. */
|
|
981
|
+
declare const addFormats: typeof formatsPlugin.default;
|
|
982
|
+
/**
|
|
983
|
+
* AJV-backed JSON Schema validator. See `@modelcontextprotocol/{client,server}/validators/ajv`
|
|
984
|
+
* for the customisation entry point (re-exports `Ajv` and `addFormats` from the bundled copy).
|
|
985
|
+
*
|
|
986
|
+
* Default validates as **JSON Schema 2020-12** (SEP-1613). Schemas declaring a different
|
|
987
|
+
* `$schema` are rejected with a plain `Error`; pass a pre-configured Ajv instance to validate
|
|
988
|
+
* other dialects. The SDK bundles ajv internally but does not re-export `Ajv2020` (its type
|
|
989
|
+
* graph tips downstream declaration bundling — see #2339). To construct a custom 2020-12
|
|
990
|
+
* instance, add `ajv` to your own dependencies (matching the SDK's pinned version) and
|
|
991
|
+
* `import { Ajv2020 } from 'ajv/dist/2020.js'` — `new Ajv(...)` is the draft-07 class and would
|
|
992
|
+
* silently downgrade dialect.
|
|
993
|
+
*
|
|
994
|
+
* @example Use with default configuration
|
|
995
|
+
* ```ts source="./ajvProvider.examples.ts#AjvJsonSchemaValidator_default"
|
|
996
|
+
* const validator = new AjvJsonSchemaValidator();
|
|
997
|
+
* ```
|
|
998
|
+
*
|
|
999
|
+
* @example Use with a custom AJV instance
|
|
1000
|
+
* ```ts source="./ajvProvider.examples.ts#AjvJsonSchemaValidator_customInstance"
|
|
1001
|
+
* // import { Ajv2020 } from 'ajv/dist/2020.js';
|
|
1002
|
+
* const ajv = new Ajv2020({ strict: false, validateSchema: false, allErrors: true });
|
|
1003
|
+
* const validator = new AjvJsonSchemaValidator(ajv);
|
|
1004
|
+
* ```
|
|
1005
|
+
*
|
|
1006
|
+
* @example Register ajv-formats
|
|
1007
|
+
* ```ts source="./ajvProvider.examples.ts#AjvJsonSchemaValidator_withFormats"
|
|
1008
|
+
* // import { Ajv2020 } from 'ajv/dist/2020.js';
|
|
1009
|
+
* const ajv = new Ajv2020({ strict: false, validateSchema: false, allErrors: true });
|
|
1010
|
+
* addFormats(ajv);
|
|
1011
|
+
* const validator = new AjvJsonSchemaValidator(ajv);
|
|
1012
|
+
* ```
|
|
1013
|
+
*/
|
|
1014
|
+
declare class AjvJsonSchemaValidator implements jsonSchemaValidator {
|
|
1015
|
+
private _ajv;
|
|
1016
|
+
/** True iff the constructor received a caller-supplied engine; the `$schema` check is skipped. */
|
|
1017
|
+
private readonly _userAjv;
|
|
1018
|
+
/**
|
|
1019
|
+
* @param ajv - Optional pre-configured AJV-compatible instance. When supplied, this instance is
|
|
1020
|
+
* used for **every** schema regardless of its declared `$schema` (the caller owns dialect
|
|
1021
|
+
* choice). When omitted, the provider constructs a single `Ajv2020` instance with
|
|
1022
|
+
* `strict: false`, `validateFormats: true`, `validateSchema: false`, `allErrors: true`, and
|
|
1023
|
+
* `ajv-formats` registered — **lazily, on the first {@linkcode getValidator} call**, so
|
|
1024
|
+
* constructing the provider (e.g. as the default validator of a `Client`/`Server` that never
|
|
1025
|
+
* validates a JSON Schema) does not pay the ajv + ajv-formats instantiation cost. The parameter
|
|
1026
|
+
* is typed structurally so consumers who don't pass an instance need not have `ajv` installed.
|
|
1027
|
+
*/
|
|
1028
|
+
constructor(ajv?: AjvLike);
|
|
1029
|
+
/** The underlying engine — the default instance is created on first use. */
|
|
1030
|
+
private get ajv();
|
|
1031
|
+
getValidator<T>(schema: JsonSchemaType): JsonSchemaValidator<T>;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Draft-07 AJV class, re-exported for consumers who need to opt back to the pre-SEP-1613 default.
|
|
1035
|
+
* The full v1-equivalent construction is:
|
|
1036
|
+
*
|
|
1037
|
+
* ```ts
|
|
1038
|
+
* const ajv = new Ajv({ strict: false, validateFormats: true, validateSchema: false, allErrors: true });
|
|
1039
|
+
* addFormats(ajv);
|
|
1040
|
+
* new AjvJsonSchemaValidator(ajv);
|
|
1041
|
+
* ```
|
|
1042
|
+
*
|
|
1043
|
+
* (omitting `validateSchema: false` makes a 2020-12-stamped `$schema` fail with an opaque
|
|
1044
|
+
* "no schema with key or ref …" engine error; omitting `addFormats` silently drops `format`
|
|
1045
|
+
* validation that the v1 default had).
|
|
1046
|
+
*
|
|
1047
|
+
* The SDK bundles ajv internally but does not re-export `Ajv2020` (its type graph tips downstream
|
|
1048
|
+
* declaration bundling — see #2339). To construct a custom 2020-12 instance, add `ajv` to your own
|
|
1049
|
+
* dependencies (matching the SDK's pinned version) and `import { Ajv2020 } from 'ajv/dist/2020.js'`.
|
|
1050
|
+
*/
|
|
1051
|
+
declare const Ajv: typeof Ajv$1;
|
|
1052
|
+
//#endregion
|
|
1053
|
+
export { AjvJsonSchemaValidator as n, addFormats as r, Ajv as t };
|
|
1054
|
+
//# sourceMappingURL=ajvProvider-B7GnTXYx.d.mts.map
|