mcp-use 2.0.0-beta.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -179
- package/dist/branding.d.ts +81 -0
- package/dist/buffered-response.d.ts +27 -0
- package/dist/chunk-273ZVKJJ.js +2 -0
- package/dist/{chunk-FCGJJVL2.js → chunk-GX6PGIEO.js} +33 -142
- package/dist/chunk-IS7FKXFR.js +1 -0
- package/dist/chunk-KGTOBJW2.js +1 -0
- package/dist/chunk-MIZQEWZS.js +1 -0
- package/dist/chunk-OJF6B5EU.js +1 -0
- package/dist/chunk-PSKSL567.js +1 -0
- package/dist/chunk-XYHHP43G.js +1 -0
- package/dist/chunk-Y26DNVWA.js +3 -0
- package/dist/chunk-ZMU5USAZ.js +1 -0
- package/dist/completable.d.ts +0 -1
- package/dist/config.d.ts +88 -80
- package/dist/context.d.ts +154 -60
- package/dist/fetch-app.d.ts +3 -28
- package/dist/index-node.js +781 -0
- package/dist/index.d.ts +34 -14
- package/dist/index.js +41 -2229
- package/dist/internal/node-http-unavailable.js +1 -0
- package/dist/internal/node-http.js +1 -0
- package/dist/internal/resource-completion.js +1 -7
- package/dist/internal/usage.js +1 -0
- package/dist/landing-handler-TG6LVQBI.js +1 -0
- package/dist/landing-handler.d.ts +3 -2
- package/dist/landing.d.ts +19 -5
- package/dist/landing.js +1 -7
- package/dist/listen-address.d.ts +8 -0
- package/dist/logging.d.ts +0 -1
- package/dist/mcp-proxy-NETCUGUD.js +2 -0
- package/dist/mcp-proxy.d.ts +158 -0
- package/dist/middleware/cors.d.ts +0 -1
- package/dist/middleware/mcp-middleware.d.ts +178 -104
- package/dist/mount-mcp.d.ts +0 -1
- package/dist/next/config.d.ts +67 -0
- package/dist/next/handler.d.ts +32 -0
- package/dist/next/index.d.ts +9 -0
- package/dist/next/index.js +1 -0
- package/dist/node-bridge.d.ts +33 -4
- package/dist/node-bridge.js +1 -151
- package/dist/node-http-unavailable.d.ts +9 -0
- package/dist/node-http.d.ts +2 -0
- package/dist/oauth/adapters.d.ts +0 -1
- package/dist/oauth/auth0.d.ts +24 -1
- package/dist/oauth/auth0.js +1 -61
- package/dist/oauth/better-auth.d.ts +23 -1
- package/dist/oauth/better-auth.js +1 -76
- package/dist/oauth/clerk.d.ts +30 -3
- package/dist/oauth/clerk.js +1 -70
- package/dist/oauth/errors.d.ts +3 -0
- package/dist/oauth/guards.d.ts +0 -1
- package/dist/oauth/index.d.ts +0 -1
- package/dist/oauth/index.js +1 -28
- package/dist/oauth/internal.d.ts +0 -1
- package/dist/oauth/jwt.d.ts +10 -4
- package/dist/oauth/keycloak.d.ts +28 -1
- package/dist/oauth/keycloak.js +1 -94
- package/dist/oauth/provider.d.ts +17 -2
- package/dist/oauth/supabase.d.ts +38 -2
- package/dist/oauth/supabase.js +1 -101
- package/dist/oauth/workos.d.ts +27 -1
- package/dist/oauth/workos.js +1 -77
- package/dist/openapi/index.d.ts +0 -1
- package/dist/openapi/index.js +1 -7
- package/dist/openapi/types.d.ts +0 -1
- package/dist/prompts.d.ts +7 -4
- package/dist/public-route-DAQJGS6K.js +1 -0
- package/dist/react/components/error-boundary.d.ts +3 -1
- package/dist/react/components/image.d.ts +0 -1
- package/dist/react/components/model-context.d.ts +8 -57
- package/dist/react/components/theme-provider.d.ts +7 -4
- package/dist/react/components/view-controls.d.ts +0 -1
- package/dist/react/hooks/use-call-tool.d.ts +29 -12
- package/dist/react/hooks/use-display-mode.d.ts +0 -1
- package/dist/react/hooks/use-files.d.ts +0 -1
- package/dist/react/hooks/use-host-context.d.ts +5 -1
- package/dist/react/hooks/use-open-external.d.ts +0 -1
- package/dist/react/hooks/use-send-follow-up.d.ts +0 -1
- package/dist/react/hooks/use-send-size-changed.d.ts +0 -1
- package/dist/react/hooks/use-tool-context.d.ts +0 -1
- package/dist/react/hooks/use-view-state.d.ts +23 -0
- package/dist/react/hooks/use-view-theme.d.ts +0 -1
- package/dist/react/hooks/use-view-tool.d.ts +3 -4
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +286 -131
- package/dist/react/public-assets.d.ts +21 -6
- package/dist/react/runtime/bootstrap-view.d.ts +3 -4
- package/dist/react/runtime/model-context-store.d.ts +34 -69
- package/dist/react/runtime/view-config.d.ts +0 -1
- package/dist/react/runtime/view-runtime-context.d.ts +0 -1
- package/dist/react/runtime/view-runtime.d.ts +4 -6
- package/dist/react/types/file-types.d.ts +2 -1
- package/dist/react/types/host-types.d.ts +2 -1
- package/dist/react/types/register.d.ts +11 -4
- package/dist/react/types/result-types.d.ts +0 -1
- package/dist/resource-completion.d.ts +0 -1
- package/dist/resources.d.ts +14 -6
- package/dist/response-conversion.d.ts +25 -0
- package/dist/response-helpers.d.ts +231 -0
- package/dist/server.d.ts +134 -50
- package/dist/tools.d.ts +14 -14
- package/dist/usage.d.ts +14 -0
- package/dist/views/capabilities.d.ts +0 -1
- package/dist/views/constants.d.ts +1 -2
- package/dist/views/csp-env.d.ts +0 -1
- package/dist/views/document.d.ts +9 -11
- package/dist/views/index.d.ts +0 -1
- package/dist/views/origin.d.ts +0 -1
- package/dist/views/public-route.d.ts +5 -4
- package/dist/views/register.d.ts +1 -2
- package/dist/views/routes.d.ts +4 -3
- package/dist/views/types.d.ts +21 -17
- package/dist/views/wire.d.ts +7 -7
- package/dist/vite-client.d.ts +1 -0
- package/package.json +41 -21
- package/dist/.tsbuildinfo +0 -1
- package/dist/bin/args.d.ts +0 -61
- package/dist/bin/args.d.ts.map +0 -1
- package/dist/bin/main.d.ts +0 -32
- package/dist/bin/main.d.ts.map +0 -1
- package/dist/bin/start.d.ts +0 -40
- package/dist/bin/start.d.ts.map +0 -1
- package/dist/bin.d.ts +0 -3
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js.map +0 -1
- package/dist/chunk-AATFAERC.js +0 -384
- package/dist/chunk-AATFAERC.js.map +0 -1
- package/dist/chunk-DPL7OEXC.js +0 -518
- package/dist/chunk-DPL7OEXC.js.map +0 -1
- package/dist/chunk-DQ7LE4ZA.js +0 -237
- package/dist/chunk-DQ7LE4ZA.js.map +0 -1
- package/dist/chunk-FC2Z2VFO.js +0 -99
- package/dist/chunk-FC2Z2VFO.js.map +0 -1
- package/dist/chunk-FCGJJVL2.js.map +0 -1
- package/dist/chunk-IG2BCCMU.js +0 -98
- package/dist/chunk-IG2BCCMU.js.map +0 -1
- package/dist/chunk-KIZ72TIK.js +0 -38
- package/dist/chunk-KIZ72TIK.js.map +0 -1
- package/dist/chunk-QUUANIE4.js +0 -125
- package/dist/chunk-QUUANIE4.js.map +0 -1
- package/dist/chunk-RQRT27Q3.js +0 -454
- package/dist/chunk-RQRT27Q3.js.map +0 -1
- package/dist/chunk-STCR3P5O.js +0 -95
- package/dist/chunk-STCR3P5O.js.map +0 -1
- package/dist/chunk-XUD22N3Y.js +0 -156
- package/dist/chunk-XUD22N3Y.js.map +0 -1
- package/dist/chunk-Z326HADF.js +0 -82
- package/dist/chunk-Z326HADF.js.map +0 -1
- package/dist/chunk-ZMIKQPSO.js +0 -151
- package/dist/chunk-ZMIKQPSO.js.map +0 -1
- package/dist/cli/build.d.ts +0 -61
- package/dist/cli/build.d.ts.map +0 -1
- package/dist/cli/dev-api.d.ts +0 -49
- package/dist/cli/dev-api.d.ts.map +0 -1
- package/dist/cli/dev.d.ts +0 -101
- package/dist/cli/dev.d.ts.map +0 -1
- package/dist/cli/entry.d.ts +0 -31
- package/dist/cli/entry.d.ts.map +0 -1
- package/dist/cli/index.d.ts +0 -17
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/port.d.ts +0 -30
- package/dist/cli/port.d.ts.map +0 -1
- package/dist/cli/tools-declaration.d.ts +0 -22
- package/dist/cli/tools-declaration.d.ts.map +0 -1
- package/dist/cli/tunnel.d.ts +0 -46
- package/dist/cli/tunnel.d.ts.map +0 -1
- package/dist/cli/views-bindings.d.ts +0 -30
- package/dist/cli/views-bindings.d.ts.map +0 -1
- package/dist/cli/views-plugin.d.ts +0 -47
- package/dist/cli/views-plugin.d.ts.map +0 -1
- package/dist/cli/views.d.ts +0 -75
- package/dist/cli/views.d.ts.map +0 -1
- package/dist/cli/vite-config.d.ts +0 -21
- package/dist/cli/vite-config.d.ts.map +0 -1
- package/dist/cli/workspace.d.ts +0 -107
- package/dist/cli/workspace.d.ts.map +0 -1
- package/dist/commands/build.d.ts +0 -8
- package/dist/commands/build.d.ts.map +0 -1
- package/dist/commands/build.js +0 -370
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/client.d.ts +0 -22
- package/dist/commands/client.d.ts.map +0 -1
- package/dist/commands/client.js +0 -14
- package/dist/commands/client.js.map +0 -1
- package/dist/commands/cloud-api.d.ts +0 -70
- package/dist/commands/cloud-api.d.ts.map +0 -1
- package/dist/commands/deploy.d.ts +0 -3
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -242
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/deployments.d.ts +0 -3
- package/dist/commands/deployments.d.ts.map +0 -1
- package/dist/commands/deployments.js +0 -213
- package/dist/commands/deployments.js.map +0 -1
- package/dist/commands/dev.d.ts +0 -8
- package/dist/commands/dev.d.ts.map +0 -1
- package/dist/commands/dev.js +0 -656
- package/dist/commands/dev.js.map +0 -1
- package/dist/commands/identity.d.ts +0 -3
- package/dist/commands/identity.d.ts.map +0 -1
- package/dist/commands/identity.js +0 -192
- package/dist/commands/identity.js.map +0 -1
- package/dist/commands/load-client.d.ts +0 -11
- package/dist/commands/load-client.d.ts.map +0 -1
- package/dist/commands/organizations.d.ts +0 -3
- package/dist/commands/organizations.d.ts.map +0 -1
- package/dist/commands/organizations.js +0 -97
- package/dist/commands/organizations.js.map +0 -1
- package/dist/commands/screenshot.d.ts +0 -3
- package/dist/commands/screenshot.d.ts.map +0 -1
- package/dist/commands/screenshot.js +0 -463
- package/dist/commands/screenshot.js.map +0 -1
- package/dist/commands/servers.d.ts +0 -3
- package/dist/commands/servers.d.ts.map +0 -1
- package/dist/commands/servers.js +0 -278
- package/dist/commands/servers.js.map +0 -1
- package/dist/commands/shared.d.ts +0 -44
- package/dist/commands/shared.d.ts.map +0 -1
- package/dist/commands/skills.d.ts +0 -3
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js +0 -84
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/start.d.ts +0 -8
- package/dist/commands/start.d.ts.map +0 -1
- package/dist/commands/start.js +0 -72
- package/dist/commands/start.js.map +0 -1
- package/dist/completable.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/context.d.ts.map +0 -1
- package/dist/fetch-app.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/inspector-shell.d.ts +0 -87
- package/dist/inspector-shell.d.ts.map +0 -1
- package/dist/internal/resource-completion.js.map +0 -1
- package/dist/landing-handler-VQRYCQOV.js +0 -31
- package/dist/landing-handler-VQRYCQOV.js.map +0 -1
- package/dist/landing-handler.d.ts.map +0 -1
- package/dist/landing.d.ts.map +0 -1
- package/dist/landing.js.map +0 -1
- package/dist/logging.d.ts.map +0 -1
- package/dist/middleware/cors.d.ts.map +0 -1
- package/dist/middleware/mcp-middleware.d.ts.map +0 -1
- package/dist/mount-mcp.d.ts.map +0 -1
- package/dist/node-bridge.d.ts.map +0 -1
- package/dist/node-bridge.js.map +0 -1
- package/dist/oauth/adapters.d.ts.map +0 -1
- package/dist/oauth/auth0.d.ts.map +0 -1
- package/dist/oauth/auth0.js.map +0 -1
- package/dist/oauth/better-auth.d.ts.map +0 -1
- package/dist/oauth/better-auth.js.map +0 -1
- package/dist/oauth/clerk.d.ts.map +0 -1
- package/dist/oauth/clerk.js.map +0 -1
- package/dist/oauth/guards.d.ts.map +0 -1
- package/dist/oauth/index.d.ts.map +0 -1
- package/dist/oauth/index.js.map +0 -1
- package/dist/oauth/internal.d.ts.map +0 -1
- package/dist/oauth/jwt.d.ts.map +0 -1
- package/dist/oauth/keycloak.d.ts.map +0 -1
- package/dist/oauth/keycloak.js.map +0 -1
- package/dist/oauth/provider.d.ts.map +0 -1
- package/dist/oauth/supabase.d.ts.map +0 -1
- package/dist/oauth/supabase.js.map +0 -1
- package/dist/oauth/workos.d.ts.map +0 -1
- package/dist/oauth/workos.js.map +0 -1
- package/dist/openapi/index.d.ts.map +0 -1
- package/dist/openapi/index.js.map +0 -1
- package/dist/openapi/types.d.ts.map +0 -1
- package/dist/prompts.d.ts.map +0 -1
- package/dist/public-route-26FUVRO5.js +0 -62
- package/dist/public-route-26FUVRO5.js.map +0 -1
- package/dist/react/components/error-boundary.d.ts.map +0 -1
- package/dist/react/components/image.d.ts.map +0 -1
- package/dist/react/components/model-context.d.ts.map +0 -1
- package/dist/react/components/theme-provider.d.ts.map +0 -1
- package/dist/react/components/view-controls.d.ts.map +0 -1
- package/dist/react/hooks/use-call-tool.d.ts.map +0 -1
- package/dist/react/hooks/use-display-mode.d.ts.map +0 -1
- package/dist/react/hooks/use-files.d.ts.map +0 -1
- package/dist/react/hooks/use-host-context.d.ts.map +0 -1
- package/dist/react/hooks/use-open-external.d.ts.map +0 -1
- package/dist/react/hooks/use-send-follow-up.d.ts.map +0 -1
- package/dist/react/hooks/use-send-size-changed.d.ts.map +0 -1
- package/dist/react/hooks/use-tool-context.d.ts.map +0 -1
- package/dist/react/hooks/use-view-theme.d.ts.map +0 -1
- package/dist/react/hooks/use-view-tool.d.ts.map +0 -1
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js.map +0 -1
- package/dist/react/public-assets.d.ts.map +0 -1
- package/dist/react/runtime/bootstrap-view.d.ts.map +0 -1
- package/dist/react/runtime/model-context-store.d.ts.map +0 -1
- package/dist/react/runtime/view-config.d.ts.map +0 -1
- package/dist/react/runtime/view-runtime-context.d.ts.map +0 -1
- package/dist/react/runtime/view-runtime.d.ts.map +0 -1
- package/dist/react/types/file-types.d.ts.map +0 -1
- package/dist/react/types/host-types.d.ts.map +0 -1
- package/dist/react/types/register.d.ts.map +0 -1
- package/dist/react/types/result-types.d.ts.map +0 -1
- package/dist/resource-completion.d.ts.map +0 -1
- package/dist/resources.d.ts.map +0 -1
- package/dist/server.d.ts.map +0 -1
- package/dist/tools.d.ts.map +0 -1
- package/dist/views/capabilities.d.ts.map +0 -1
- package/dist/views/constants.d.ts.map +0 -1
- package/dist/views/csp-env.d.ts.map +0 -1
- package/dist/views/document.d.ts.map +0 -1
- package/dist/views/index.d.ts.map +0 -1
- package/dist/views/origin.d.ts.map +0 -1
- package/dist/views/public-route.d.ts.map +0 -1
- package/dist/views/register.d.ts.map +0 -1
- package/dist/views/routes.d.ts.map +0 -1
- package/dist/views/types.d.ts.map +0 -1
- package/dist/views/wire.d.ts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/LICENSE +0 -216
- package/node_modules/@modelcontextprotocol/client/README.md +0 -26
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs +0 -7069
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts +0 -1054
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts +0 -1054
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs +0 -7086
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts +0 -59
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs +0 -970
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs +0 -976
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts +0 -59
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Bnu9O96Y.cjs +0 -60
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs +0 -42
- package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts +0 -2675
- package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts +0 -2678
- package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +0 -5427
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +0 -3196
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +0 -3196
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +0 -5224
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs +0 -14
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs +0 -14
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +0 -21
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +0 -20
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs +0 -7331
- package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs +0 -6963
- package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +0 -181
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +0 -87
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +0 -87
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +0 -176
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts +0 -1099
- package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts +0 -1099
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.cjs +0 -5
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.mjs +0 -3
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.cjs +0 -3
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.mjs +0 -3
- package/node_modules/@modelcontextprotocol/client/package.json +0 -166
- package/node_modules/@modelcontextprotocol/core/LICENSE +0 -216
- package/node_modules/@modelcontextprotocol/core/README.md +0 -40
- package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts +0 -8198
- package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs +0 -2862
- package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts +0 -8198
- package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs +0 -1653
- package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -174
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -199
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +0 -87
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +0 -87
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/package.json +0 -85
- package/node_modules/jose/LICENSE.md +0 -21
- package/node_modules/jose/README.md +0 -153
- package/node_modules/jose/dist/types/index.d.ts +0 -55
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +0 -65
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +0 -83
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +0 -74
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +0 -17
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -32
- package/node_modules/jose/dist/types/jwks/local.d.ts +0 -29
- package/node_modules/jose/dist/types/jwks/remote.d.ts +0 -237
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +0 -36
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +0 -42
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +0 -53
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +0 -35
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +0 -91
- package/node_modules/jose/dist/types/jwt/sign.d.ts +0 -43
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +0 -43
- package/node_modules/jose/dist/types/jwt/verify.d.ts +0 -37
- package/node_modules/jose/dist/types/key/export.d.ts +0 -33
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +0 -47
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +0 -35
- package/node_modules/jose/dist/types/key/import.d.ts +0 -83
- package/node_modules/jose/dist/types/types.d.ts +0 -841
- package/node_modules/jose/dist/types/util/base64url.d.ts +0 -9
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +0 -18
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -17
- package/node_modules/jose/dist/types/util/errors.d.ts +0 -213
- package/node_modules/jose/dist/webapi/index.js +0 -32
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +0 -27
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +0 -27
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +0 -165
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +0 -169
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +0 -31
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +0 -187
- package/node_modules/jose/dist/webapi/jwk/embedded.js +0 -17
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +0 -68
- package/node_modules/jose/dist/webapi/jwks/local.js +0 -119
- package/node_modules/jose/dist/webapi/jwks/remote.js +0 -179
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +0 -18
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +0 -21
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +0 -92
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +0 -120
- package/node_modules/jose/dist/webapi/jws/general/sign.js +0 -73
- package/node_modules/jose/dist/webapi/jws/general/verify.js +0 -24
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +0 -23
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +0 -108
- package/node_modules/jose/dist/webapi/jwt/sign.js +0 -52
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +0 -63
- package/node_modules/jose/dist/webapi/jwt/verify.js +0 -15
- package/node_modules/jose/dist/webapi/key/export.js +0 -11
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +0 -97
- package/node_modules/jose/dist/webapi/key/generate_secret.js +0 -40
- package/node_modules/jose/dist/webapi/key/import.js +0 -57
- package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +0 -16
- package/node_modules/jose/dist/webapi/lib/aeskw.js +0 -25
- package/node_modules/jose/dist/webapi/lib/asn1.js +0 -243
- package/node_modules/jose/dist/webapi/lib/base64.js +0 -22
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +0 -43
- package/node_modules/jose/dist/webapi/lib/cek.js +0 -19
- package/node_modules/jose/dist/webapi/lib/check_cek_length.js +0 -7
- package/node_modules/jose/dist/webapi/lib/check_iv_length.js +0 -7
- package/node_modules/jose/dist/webapi/lib/check_key_length.js +0 -8
- package/node_modules/jose/dist/webapi/lib/check_key_type.js +0 -122
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -143
- package/node_modules/jose/dist/webapi/lib/decrypt.js +0 -106
- package/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +0 -127
- package/node_modules/jose/dist/webapi/lib/digest.js +0 -4
- package/node_modules/jose/dist/webapi/lib/ecdhes.js +0 -52
- package/node_modules/jose/dist/webapi/lib/encrypt.js +0 -74
- package/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +0 -92
- package/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +0 -12
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -27
- package/node_modules/jose/dist/webapi/lib/is_disjoint.js +0 -21
- package/node_modules/jose/dist/webapi/lib/is_jwk.js +0 -6
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
- package/node_modules/jose/dist/webapi/lib/is_object.js +0 -14
- package/node_modules/jose/dist/webapi/lib/iv.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -109
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +0 -238
- package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +0 -31
- package/node_modules/jose/dist/webapi/lib/normalize_key.js +0 -176
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +0 -39
- package/node_modules/jose/dist/webapi/lib/private_symbols.js +0 -1
- package/node_modules/jose/dist/webapi/lib/rsaes.js +0 -24
- package/node_modules/jose/dist/webapi/lib/sign.js +0 -9
- package/node_modules/jose/dist/webapi/lib/subtle_dsa.js +0 -31
- package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +0 -10
- package/node_modules/jose/dist/webapi/lib/validate_crit.js +0 -33
- package/node_modules/jose/dist/webapi/lib/verify.js +0 -14
- package/node_modules/jose/dist/webapi/util/base64url.js +0 -30
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +0 -32
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +0 -34
- package/node_modules/jose/dist/webapi/util/errors.js +0 -99
- package/node_modules/jose/package.json +0 -200
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -191
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -7
- package/node_modules/zod/mini/index.cjs +0 -32
- package/node_modules/zod/mini/index.d.cts +0 -3
- package/node_modules/zod/mini/index.d.ts +0 -3
- package/node_modules/zod/mini/index.js +0 -3
- package/node_modules/zod/mini/package.json +0 -7
- package/node_modules/zod/package.json +0 -135
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -3
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/node_modules/zod/src/v4/classic/external.ts +0 -52
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1823
- package/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -153
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -455
- package/node_modules/zod/src/v4/core/index.ts +0 -16
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/node_modules/zod/src/v4/core/regexes.ts +0 -190
- package/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
- package/node_modules/zod/src/v4/core/util.ts +0 -983
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/node_modules/zod/src/v4/locales/el.ts +0 -121
- package/node_modules/zod/src/v4/locales/en.ts +0 -123
- package/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/node_modules/zod/src/v4/locales/fr.ts +0 -132
- package/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/node_modules/zod/src/v4/locales/hr.ts +0 -131
- package/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/node_modules/zod/src/v4/locales/index.ts +0 -52
- package/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/node_modules/zod/src/v4/locales/ro.ts +0 -129
- package/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/node_modules/zod/src/v4/locales/uz.ts +0 -117
- package/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/zod/src/v4/mini/external.ts +0 -41
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
- package/node_modules/zod/src/v4-mini/index.ts +0 -3
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -7
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3777
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3695
- package/node_modules/zod/v4/classic/checks.cjs +0 -33
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/zod/v4/classic/compat.d.cts +0 -50
- package/node_modules/zod/v4/classic/compat.d.ts +0 -50
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -48
- package/node_modules/zod/v4/classic/external.cjs +0 -73
- package/node_modules/zod/v4/classic/external.d.cts +0 -16
- package/node_modules/zod/v4/classic/external.d.ts +0 -16
- package/node_modules/zod/v4/classic/external.js +0 -20
- package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/package.json +0 -7
- package/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/node_modules/zod/v4/classic/parse.d.cts +0 -31
- package/node_modules/zod/v4/classic/parse.d.ts +0 -31
- package/node_modules/zod/v4/classic/parse.js +0 -15
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
- package/node_modules/zod/v4/classic/schemas.js +0 -1395
- package/node_modules/zod/v4/core/api.cjs +0 -1227
- package/node_modules/zod/v4/core/api.d.cts +0 -325
- package/node_modules/zod/v4/core/api.d.ts +0 -325
- package/node_modules/zod/v4/core/api.js +0 -1087
- package/node_modules/zod/v4/core/checks.cjs +0 -601
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -575
- package/node_modules/zod/v4/core/core.cjs +0 -85
- package/node_modules/zod/v4/core/core.d.cts +0 -70
- package/node_modules/zod/v4/core/core.d.ts +0 -70
- package/node_modules/zod/v4/core/core.js +0 -78
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -216
- package/node_modules/zod/v4/core/errors.d.cts +0 -221
- package/node_modules/zod/v4/core/errors.d.ts +0 -221
- package/node_modules/zod/v4/core/errors.js +0 -185
- package/node_modules/zod/v4/core/index.cjs +0 -47
- package/node_modules/zod/v4/core/index.d.cts +0 -16
- package/node_modules/zod/v4/core/index.d.ts +0 -16
- package/node_modules/zod/v4/core/index.js +0 -16
- package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
- package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/package.json +0 -7
- package/node_modules/zod/v4/core/parse.cjs +0 -131
- package/node_modules/zod/v4/core/parse.d.cts +0 -49
- package/node_modules/zod/v4/core/parse.d.ts +0 -49
- package/node_modules/zod/v4/core/parse.js +0 -93
- package/node_modules/zod/v4/core/regexes.cjs +0 -172
- package/node_modules/zod/v4/core/regexes.d.cts +0 -85
- package/node_modules/zod/v4/core/regexes.d.ts +0 -85
- package/node_modules/zod/v4/core/regexes.js +0 -139
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -2270
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
- package/node_modules/zod/v4/core/schemas.js +0 -2239
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.js +0 -448
- package/node_modules/zod/v4/core/util.cjs +0 -734
- package/node_modules/zod/v4/core/util.d.cts +0 -200
- package/node_modules/zod/v4/core/util.d.ts +0 -200
- package/node_modules/zod/v4/core/util.js +0 -674
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -133
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -106
- package/node_modules/zod/v4/locales/az.cjs +0 -132
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -105
- package/node_modules/zod/v4/locales/be.cjs +0 -183
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -156
- package/node_modules/zod/v4/locales/bg.cjs +0 -147
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/zod/v4/locales/bg.js +0 -120
- package/node_modules/zod/v4/locales/ca.cjs +0 -134
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -107
- package/node_modules/zod/v4/locales/cs.cjs +0 -138
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -111
- package/node_modules/zod/v4/locales/da.cjs +0 -142
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -115
- package/node_modules/zod/v4/locales/de.cjs +0 -135
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -108
- package/node_modules/zod/v4/locales/el.cjs +0 -136
- package/node_modules/zod/v4/locales/el.d.cts +0 -5
- package/node_modules/zod/v4/locales/el.d.ts +0 -4
- package/node_modules/zod/v4/locales/el.js +0 -109
- package/node_modules/zod/v4/locales/en.cjs +0 -140
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/zod/v4/locales/en.js +0 -113
- package/node_modules/zod/v4/locales/eo.cjs +0 -136
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/zod/v4/locales/eo.js +0 -109
- package/node_modules/zod/v4/locales/es.cjs +0 -159
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -132
- package/node_modules/zod/v4/locales/fa.cjs +0 -141
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -114
- package/node_modules/zod/v4/locales/fi.cjs +0 -139
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -112
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -107
- package/node_modules/zod/v4/locales/fr.cjs +0 -152
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -125
- package/node_modules/zod/v4/locales/he.cjs +0 -241
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -214
- package/node_modules/zod/v4/locales/hr.cjs +0 -149
- package/node_modules/zod/v4/locales/hr.d.cts +0 -5
- package/node_modules/zod/v4/locales/hr.d.ts +0 -4
- package/node_modules/zod/v4/locales/hr.js +0 -122
- package/node_modules/zod/v4/locales/hu.cjs +0 -135
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -108
- package/node_modules/zod/v4/locales/hy.cjs +0 -174
- package/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/zod/v4/locales/hy.js +0 -147
- package/node_modules/zod/v4/locales/id.cjs +0 -133
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -106
- package/node_modules/zod/v4/locales/index.cjs +0 -111
- package/node_modules/zod/v4/locales/index.d.cts +0 -52
- package/node_modules/zod/v4/locales/index.d.ts +0 -52
- package/node_modules/zod/v4/locales/index.js +0 -52
- package/node_modules/zod/v4/locales/is.cjs +0 -136
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/zod/v4/locales/is.js +0 -109
- package/node_modules/zod/v4/locales/it.cjs +0 -135
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -108
- package/node_modules/zod/v4/locales/ja.cjs +0 -134
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -107
- package/node_modules/zod/v4/locales/ka.cjs +0 -139
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/zod/v4/locales/ka.js +0 -112
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -137
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -110
- package/node_modules/zod/v4/locales/ko.cjs +0 -138
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -111
- package/node_modules/zod/v4/locales/lt.cjs +0 -230
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/zod/v4/locales/lt.js +0 -203
- package/node_modules/zod/v4/locales/mk.cjs +0 -136
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -109
- package/node_modules/zod/v4/locales/ms.cjs +0 -134
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -107
- package/node_modules/zod/v4/locales/nl.cjs +0 -137
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -110
- package/node_modules/zod/v4/locales/no.cjs +0 -135
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -108
- package/node_modules/zod/v4/locales/ota.cjs +0 -136
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -109
- package/node_modules/zod/v4/locales/package.json +0 -7
- package/node_modules/zod/v4/locales/pl.cjs +0 -136
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -109
- package/node_modules/zod/v4/locales/ps.cjs +0 -141
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -114
- package/node_modules/zod/v4/locales/pt.cjs +0 -135
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -108
- package/node_modules/zod/v4/locales/ro.cjs +0 -146
- package/node_modules/zod/v4/locales/ro.d.cts +0 -5
- package/node_modules/zod/v4/locales/ro.d.ts +0 -4
- package/node_modules/zod/v4/locales/ro.js +0 -119
- package/node_modules/zod/v4/locales/ru.cjs +0 -183
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -156
- package/node_modules/zod/v4/locales/sl.cjs +0 -136
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -109
- package/node_modules/zod/v4/locales/sv.cjs +0 -137
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -110
- package/node_modules/zod/v4/locales/ta.cjs +0 -137
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -110
- package/node_modules/zod/v4/locales/th.cjs +0 -137
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -110
- package/node_modules/zod/v4/locales/tr.cjs +0 -132
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/zod/v4/locales/tr.js +0 -105
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -135
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -108
- package/node_modules/zod/v4/locales/ur.cjs +0 -137
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -110
- package/node_modules/zod/v4/locales/uz.cjs +0 -137
- package/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/zod/v4/locales/uz.js +0 -110
- package/node_modules/zod/v4/locales/vi.cjs +0 -135
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -108
- package/node_modules/zod/v4/locales/yo.cjs +0 -134
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -107
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -109
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -107
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/zod/v4/mini/external.cjs +0 -63
- package/node_modules/zod/v4/mini/external.d.cts +0 -13
- package/node_modules/zod/v4/mini/external.d.ts +0 -13
- package/node_modules/zod/v4/mini/external.js +0 -14
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/zod/v4/mini/package.json +0 -7
- package/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
- package/node_modules/zod/v4/mini/schemas.js +0 -961
- package/node_modules/zod/v4/package.json +0 -7
- package/node_modules/zod/v4-mini/index.cjs +0 -32
- package/node_modules/zod/v4-mini/index.d.cts +0 -3
- package/node_modules/zod/v4-mini/index.d.ts +0 -3
- package/node_modules/zod/v4-mini/index.js +0 -3
- package/node_modules/zod/v4-mini/package.json +0 -7
|
@@ -1,970 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js
|
|
2
|
-
function deepCompareStrict(a, b) {
|
|
3
|
-
const typeofa = typeof a;
|
|
4
|
-
if (typeofa !== typeof b) return false;
|
|
5
|
-
if (Array.isArray(a)) {
|
|
6
|
-
if (!Array.isArray(b)) return false;
|
|
7
|
-
const length = a.length;
|
|
8
|
-
if (length !== b.length) return false;
|
|
9
|
-
for (let i = 0; i < length; i++) if (!deepCompareStrict(a[i], b[i])) return false;
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
if (typeofa === "object") {
|
|
13
|
-
if (!a || !b) return a === b;
|
|
14
|
-
const aKeys = Object.keys(a);
|
|
15
|
-
const bKeys = Object.keys(b);
|
|
16
|
-
if (aKeys.length !== bKeys.length) return false;
|
|
17
|
-
for (const k of aKeys) if (!deepCompareStrict(a[k], b[k])) return false;
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
return a === b;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region ../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/pointer.js
|
|
25
|
-
function encodePointer(p) {
|
|
26
|
-
return encodeURI(escapePointer(p));
|
|
27
|
-
}
|
|
28
|
-
function escapePointer(p) {
|
|
29
|
-
return p.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region ../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/dereference.js
|
|
34
|
-
const schemaArrayKeyword = {
|
|
35
|
-
prefixItems: true,
|
|
36
|
-
items: true,
|
|
37
|
-
allOf: true,
|
|
38
|
-
anyOf: true,
|
|
39
|
-
oneOf: true
|
|
40
|
-
};
|
|
41
|
-
const schemaMapKeyword = {
|
|
42
|
-
$defs: true,
|
|
43
|
-
definitions: true,
|
|
44
|
-
properties: true,
|
|
45
|
-
patternProperties: true,
|
|
46
|
-
dependentSchemas: true
|
|
47
|
-
};
|
|
48
|
-
const ignoredKeyword = {
|
|
49
|
-
id: true,
|
|
50
|
-
$id: true,
|
|
51
|
-
$ref: true,
|
|
52
|
-
$schema: true,
|
|
53
|
-
$anchor: true,
|
|
54
|
-
$vocabulary: true,
|
|
55
|
-
$comment: true,
|
|
56
|
-
default: true,
|
|
57
|
-
enum: true,
|
|
58
|
-
const: true,
|
|
59
|
-
required: true,
|
|
60
|
-
type: true,
|
|
61
|
-
maximum: true,
|
|
62
|
-
minimum: true,
|
|
63
|
-
exclusiveMaximum: true,
|
|
64
|
-
exclusiveMinimum: true,
|
|
65
|
-
multipleOf: true,
|
|
66
|
-
maxLength: true,
|
|
67
|
-
minLength: true,
|
|
68
|
-
pattern: true,
|
|
69
|
-
format: true,
|
|
70
|
-
maxItems: true,
|
|
71
|
-
minItems: true,
|
|
72
|
-
uniqueItems: true,
|
|
73
|
-
maxProperties: true,
|
|
74
|
-
minProperties: true
|
|
75
|
-
};
|
|
76
|
-
let initialBaseURI = typeof self !== "undefined" && self.location && self.location.origin !== "null" ? new URL(self.location.origin + self.location.pathname + location.search) : new URL("https://github.com/cfworker");
|
|
77
|
-
function dereference(schema, lookup = Object.create(null), baseURI = initialBaseURI, basePointer = "") {
|
|
78
|
-
if (schema && typeof schema === "object" && !Array.isArray(schema)) {
|
|
79
|
-
const id = schema.$id || schema.id;
|
|
80
|
-
if (id) {
|
|
81
|
-
const url = new URL(id, baseURI.href);
|
|
82
|
-
if (url.hash.length > 1) lookup[url.href] = schema;
|
|
83
|
-
else {
|
|
84
|
-
url.hash = "";
|
|
85
|
-
if (basePointer === "") baseURI = url;
|
|
86
|
-
else dereference(schema, lookup, baseURI);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
} else if (schema !== true && schema !== false) return lookup;
|
|
90
|
-
const schemaURI = baseURI.href + (basePointer ? "#" + basePointer : "");
|
|
91
|
-
if (lookup[schemaURI] !== void 0) throw new Error(`Duplicate schema URI "${schemaURI}".`);
|
|
92
|
-
lookup[schemaURI] = schema;
|
|
93
|
-
if (schema === true || schema === false) return lookup;
|
|
94
|
-
if (schema.__absolute_uri__ === void 0) Object.defineProperty(schema, "__absolute_uri__", {
|
|
95
|
-
enumerable: false,
|
|
96
|
-
value: schemaURI
|
|
97
|
-
});
|
|
98
|
-
if (schema.$ref && schema.__absolute_ref__ === void 0) {
|
|
99
|
-
const url = new URL(schema.$ref, baseURI.href);
|
|
100
|
-
url.hash = url.hash;
|
|
101
|
-
Object.defineProperty(schema, "__absolute_ref__", {
|
|
102
|
-
enumerable: false,
|
|
103
|
-
value: url.href
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
if (schema.$recursiveRef && schema.__absolute_recursive_ref__ === void 0) {
|
|
107
|
-
const url = new URL(schema.$recursiveRef, baseURI.href);
|
|
108
|
-
url.hash = url.hash;
|
|
109
|
-
Object.defineProperty(schema, "__absolute_recursive_ref__", {
|
|
110
|
-
enumerable: false,
|
|
111
|
-
value: url.href
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
if (schema.$anchor) {
|
|
115
|
-
const url = new URL("#" + schema.$anchor, baseURI.href);
|
|
116
|
-
lookup[url.href] = schema;
|
|
117
|
-
}
|
|
118
|
-
for (let key in schema) {
|
|
119
|
-
if (ignoredKeyword[key]) continue;
|
|
120
|
-
const keyBase = `${basePointer}/${encodePointer(key)}`;
|
|
121
|
-
const subSchema = schema[key];
|
|
122
|
-
if (Array.isArray(subSchema)) {
|
|
123
|
-
if (schemaArrayKeyword[key]) {
|
|
124
|
-
const length = subSchema.length;
|
|
125
|
-
for (let i = 0; i < length; i++) dereference(subSchema[i], lookup, baseURI, `${keyBase}/${i}`);
|
|
126
|
-
}
|
|
127
|
-
} else if (schemaMapKeyword[key]) for (let subKey in subSchema) dereference(subSchema[subKey], lookup, baseURI, `${keyBase}/${encodePointer(subKey)}`);
|
|
128
|
-
else dereference(subSchema, lookup, baseURI, keyBase);
|
|
129
|
-
}
|
|
130
|
-
return lookup;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
//#endregion
|
|
134
|
-
//#region ../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/format.js
|
|
135
|
-
const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
136
|
-
const DAYS = [
|
|
137
|
-
0,
|
|
138
|
-
31,
|
|
139
|
-
28,
|
|
140
|
-
31,
|
|
141
|
-
30,
|
|
142
|
-
31,
|
|
143
|
-
30,
|
|
144
|
-
31,
|
|
145
|
-
31,
|
|
146
|
-
30,
|
|
147
|
-
31,
|
|
148
|
-
30,
|
|
149
|
-
31
|
|
150
|
-
];
|
|
151
|
-
const TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
|
|
152
|
-
const HOSTNAME = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;
|
|
153
|
-
const URIREF = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
154
|
-
const URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;
|
|
155
|
-
const URL_ = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;
|
|
156
|
-
const UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
|
|
157
|
-
const JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
|
|
158
|
-
const JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
|
|
159
|
-
const RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
|
|
160
|
-
const EMAIL = (input) => {
|
|
161
|
-
if (input[0] === "\"") return false;
|
|
162
|
-
const [name, host, ...rest] = input.split("@");
|
|
163
|
-
if (!name || !host || rest.length !== 0 || name.length > 64 || host.length > 253) return false;
|
|
164
|
-
if (name[0] === "." || name.endsWith(".") || name.includes("..")) return false;
|
|
165
|
-
if (!/^[a-z0-9.-]+$/i.test(host) || !/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(name)) return false;
|
|
166
|
-
return host.split(".").every((part) => /^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(part));
|
|
167
|
-
};
|
|
168
|
-
const IPV4 = /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/;
|
|
169
|
-
const IPV6 = /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;
|
|
170
|
-
const DURATION = (input) => input.length > 1 && input.length < 80 && (/^P\d+([.,]\d+)?W$/.test(input) || /^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(input) && /^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(input));
|
|
171
|
-
function bind(r) {
|
|
172
|
-
return r.test.bind(r);
|
|
173
|
-
}
|
|
174
|
-
const format = {
|
|
175
|
-
date,
|
|
176
|
-
time: time.bind(void 0, false),
|
|
177
|
-
"date-time": date_time,
|
|
178
|
-
duration: DURATION,
|
|
179
|
-
uri,
|
|
180
|
-
"uri-reference": bind(URIREF),
|
|
181
|
-
"uri-template": bind(URITEMPLATE),
|
|
182
|
-
url: bind(URL_),
|
|
183
|
-
email: EMAIL,
|
|
184
|
-
hostname: bind(HOSTNAME),
|
|
185
|
-
ipv4: bind(IPV4),
|
|
186
|
-
ipv6: bind(IPV6),
|
|
187
|
-
regex,
|
|
188
|
-
uuid: bind(UUID),
|
|
189
|
-
"json-pointer": bind(JSON_POINTER),
|
|
190
|
-
"json-pointer-uri-fragment": bind(JSON_POINTER_URI_FRAGMENT),
|
|
191
|
-
"relative-json-pointer": bind(RELATIVE_JSON_POINTER)
|
|
192
|
-
};
|
|
193
|
-
function isLeapYear(year) {
|
|
194
|
-
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
195
|
-
}
|
|
196
|
-
function date(str) {
|
|
197
|
-
const matches = str.match(DATE);
|
|
198
|
-
if (!matches) return false;
|
|
199
|
-
const year = +matches[1];
|
|
200
|
-
const month = +matches[2];
|
|
201
|
-
const day = +matches[3];
|
|
202
|
-
return month >= 1 && month <= 12 && day >= 1 && day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]);
|
|
203
|
-
}
|
|
204
|
-
function time(full, str) {
|
|
205
|
-
const matches = str.match(TIME);
|
|
206
|
-
if (!matches) return false;
|
|
207
|
-
const hour = +matches[1];
|
|
208
|
-
const minute = +matches[2];
|
|
209
|
-
const second = +matches[3];
|
|
210
|
-
const timeZone = !!matches[5];
|
|
211
|
-
return (hour <= 23 && minute <= 59 && second <= 59 || hour == 23 && minute == 59 && second == 60) && (!full || timeZone);
|
|
212
|
-
}
|
|
213
|
-
const DATE_TIME_SEPARATOR = /t|\s/i;
|
|
214
|
-
function date_time(str) {
|
|
215
|
-
const dateTime = str.split(DATE_TIME_SEPARATOR);
|
|
216
|
-
return dateTime.length == 2 && date(dateTime[0]) && time(true, dateTime[1]);
|
|
217
|
-
}
|
|
218
|
-
const NOT_URI_FRAGMENT = /\/|:/;
|
|
219
|
-
const URI_PATTERN = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
220
|
-
function uri(str) {
|
|
221
|
-
return NOT_URI_FRAGMENT.test(str) && URI_PATTERN.test(str);
|
|
222
|
-
}
|
|
223
|
-
const Z_ANCHOR = /[^\\]\\Z/;
|
|
224
|
-
function regex(str) {
|
|
225
|
-
if (Z_ANCHOR.test(str)) return false;
|
|
226
|
-
try {
|
|
227
|
-
new RegExp(str, "u");
|
|
228
|
-
return true;
|
|
229
|
-
} catch (e) {
|
|
230
|
-
return false;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
//#endregion
|
|
235
|
-
//#region ../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js
|
|
236
|
-
function ucs2length(s) {
|
|
237
|
-
let result = 0;
|
|
238
|
-
let length = s.length;
|
|
239
|
-
let index = 0;
|
|
240
|
-
let charCode;
|
|
241
|
-
while (index < length) {
|
|
242
|
-
result++;
|
|
243
|
-
charCode = s.charCodeAt(index++);
|
|
244
|
-
if (charCode >= 55296 && charCode <= 56319 && index < length) {
|
|
245
|
-
charCode = s.charCodeAt(index);
|
|
246
|
-
if ((charCode & 64512) == 56320) index++;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return result;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region ../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validate.js
|
|
254
|
-
function validate(instance, schema, draft = "2019-09", lookup = dereference(schema), shortCircuit = true, recursiveAnchor = null, instanceLocation = "#", schemaLocation = "#", evaluated = Object.create(null)) {
|
|
255
|
-
if (schema === true) return {
|
|
256
|
-
valid: true,
|
|
257
|
-
errors: []
|
|
258
|
-
};
|
|
259
|
-
if (schema === false) return {
|
|
260
|
-
valid: false,
|
|
261
|
-
errors: [{
|
|
262
|
-
instanceLocation,
|
|
263
|
-
keyword: "false",
|
|
264
|
-
keywordLocation: instanceLocation,
|
|
265
|
-
error: "False boolean schema."
|
|
266
|
-
}]
|
|
267
|
-
};
|
|
268
|
-
const rawInstanceType = typeof instance;
|
|
269
|
-
let instanceType;
|
|
270
|
-
switch (rawInstanceType) {
|
|
271
|
-
case "boolean":
|
|
272
|
-
case "number":
|
|
273
|
-
case "string":
|
|
274
|
-
instanceType = rawInstanceType;
|
|
275
|
-
break;
|
|
276
|
-
case "object":
|
|
277
|
-
if (instance === null) instanceType = "null";
|
|
278
|
-
else if (Array.isArray(instance)) instanceType = "array";
|
|
279
|
-
else instanceType = "object";
|
|
280
|
-
break;
|
|
281
|
-
default: throw new Error(`Instances of "${rawInstanceType}" type are not supported.`);
|
|
282
|
-
}
|
|
283
|
-
const { $ref, $recursiveRef, $recursiveAnchor, type: $type, const: $const, enum: $enum, required: $required, not: $not, anyOf: $anyOf, allOf: $allOf, oneOf: $oneOf, if: $if, then: $then, else: $else, format: $format, properties: $properties, patternProperties: $patternProperties, additionalProperties: $additionalProperties, unevaluatedProperties: $unevaluatedProperties, minProperties: $minProperties, maxProperties: $maxProperties, propertyNames: $propertyNames, dependentRequired: $dependentRequired, dependentSchemas: $dependentSchemas, dependencies: $dependencies, prefixItems: $prefixItems, items: $items, additionalItems: $additionalItems, unevaluatedItems: $unevaluatedItems, contains: $contains, minContains: $minContains, maxContains: $maxContains, minItems: $minItems, maxItems: $maxItems, uniqueItems: $uniqueItems, minimum: $minimum, maximum: $maximum, exclusiveMinimum: $exclusiveMinimum, exclusiveMaximum: $exclusiveMaximum, multipleOf: $multipleOf, minLength: $minLength, maxLength: $maxLength, pattern: $pattern, __absolute_ref__, __absolute_recursive_ref__ } = schema;
|
|
284
|
-
const errors = [];
|
|
285
|
-
if ($recursiveAnchor === true && recursiveAnchor === null) recursiveAnchor = schema;
|
|
286
|
-
if ($recursiveRef === "#") {
|
|
287
|
-
const refSchema = recursiveAnchor === null ? lookup[__absolute_recursive_ref__] : recursiveAnchor;
|
|
288
|
-
const keywordLocation = `${schemaLocation}/$recursiveRef`;
|
|
289
|
-
const result = validate(instance, recursiveAnchor === null ? schema : recursiveAnchor, draft, lookup, shortCircuit, refSchema, instanceLocation, keywordLocation, evaluated);
|
|
290
|
-
if (!result.valid) errors.push({
|
|
291
|
-
instanceLocation,
|
|
292
|
-
keyword: "$recursiveRef",
|
|
293
|
-
keywordLocation,
|
|
294
|
-
error: "A subschema had errors."
|
|
295
|
-
}, ...result.errors);
|
|
296
|
-
}
|
|
297
|
-
if ($ref !== void 0) {
|
|
298
|
-
const refSchema = lookup[__absolute_ref__ || $ref];
|
|
299
|
-
if (refSchema === void 0) {
|
|
300
|
-
let message = `Unresolved $ref "${$ref}".`;
|
|
301
|
-
if (__absolute_ref__ && __absolute_ref__ !== $ref) message += ` Absolute URI "${__absolute_ref__}".`;
|
|
302
|
-
message += `\nKnown schemas:\n- ${Object.keys(lookup).join("\n- ")}`;
|
|
303
|
-
throw new Error(message);
|
|
304
|
-
}
|
|
305
|
-
const keywordLocation = `${schemaLocation}/$ref`;
|
|
306
|
-
const result = validate(instance, refSchema, draft, lookup, shortCircuit, recursiveAnchor, instanceLocation, keywordLocation, evaluated);
|
|
307
|
-
if (!result.valid) errors.push({
|
|
308
|
-
instanceLocation,
|
|
309
|
-
keyword: "$ref",
|
|
310
|
-
keywordLocation,
|
|
311
|
-
error: "A subschema had errors."
|
|
312
|
-
}, ...result.errors);
|
|
313
|
-
if (draft === "4" || draft === "7") return {
|
|
314
|
-
valid: errors.length === 0,
|
|
315
|
-
errors
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
if (Array.isArray($type)) {
|
|
319
|
-
let length = $type.length;
|
|
320
|
-
let valid = false;
|
|
321
|
-
for (let i = 0; i < length; i++) if (instanceType === $type[i] || $type[i] === "integer" && instanceType === "number" && instance % 1 === 0 && instance === instance) {
|
|
322
|
-
valid = true;
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
if (!valid) errors.push({
|
|
326
|
-
instanceLocation,
|
|
327
|
-
keyword: "type",
|
|
328
|
-
keywordLocation: `${schemaLocation}/type`,
|
|
329
|
-
error: `Instance type "${instanceType}" is invalid. Expected "${$type.join("\", \"")}".`
|
|
330
|
-
});
|
|
331
|
-
} else if ($type === "integer") {
|
|
332
|
-
if (instanceType !== "number" || instance % 1 || instance !== instance) errors.push({
|
|
333
|
-
instanceLocation,
|
|
334
|
-
keyword: "type",
|
|
335
|
-
keywordLocation: `${schemaLocation}/type`,
|
|
336
|
-
error: `Instance type "${instanceType}" is invalid. Expected "${$type}".`
|
|
337
|
-
});
|
|
338
|
-
} else if ($type !== void 0 && instanceType !== $type) errors.push({
|
|
339
|
-
instanceLocation,
|
|
340
|
-
keyword: "type",
|
|
341
|
-
keywordLocation: `${schemaLocation}/type`,
|
|
342
|
-
error: `Instance type "${instanceType}" is invalid. Expected "${$type}".`
|
|
343
|
-
});
|
|
344
|
-
if ($const !== void 0) {
|
|
345
|
-
if (instanceType === "object" || instanceType === "array") {
|
|
346
|
-
if (!deepCompareStrict(instance, $const)) errors.push({
|
|
347
|
-
instanceLocation,
|
|
348
|
-
keyword: "const",
|
|
349
|
-
keywordLocation: `${schemaLocation}/const`,
|
|
350
|
-
error: `Instance does not match ${JSON.stringify($const)}.`
|
|
351
|
-
});
|
|
352
|
-
} else if (instance !== $const) errors.push({
|
|
353
|
-
instanceLocation,
|
|
354
|
-
keyword: "const",
|
|
355
|
-
keywordLocation: `${schemaLocation}/const`,
|
|
356
|
-
error: `Instance does not match ${JSON.stringify($const)}.`
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
if ($enum !== void 0) {
|
|
360
|
-
if (instanceType === "object" || instanceType === "array") {
|
|
361
|
-
if (!$enum.some((value) => deepCompareStrict(instance, value))) errors.push({
|
|
362
|
-
instanceLocation,
|
|
363
|
-
keyword: "enum",
|
|
364
|
-
keywordLocation: `${schemaLocation}/enum`,
|
|
365
|
-
error: `Instance does not match any of ${JSON.stringify($enum)}.`
|
|
366
|
-
});
|
|
367
|
-
} else if (!$enum.some((value) => instance === value)) errors.push({
|
|
368
|
-
instanceLocation,
|
|
369
|
-
keyword: "enum",
|
|
370
|
-
keywordLocation: `${schemaLocation}/enum`,
|
|
371
|
-
error: `Instance does not match any of ${JSON.stringify($enum)}.`
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
if ($not !== void 0) {
|
|
375
|
-
const keywordLocation = `${schemaLocation}/not`;
|
|
376
|
-
if (validate(instance, $not, draft, lookup, shortCircuit, recursiveAnchor, instanceLocation, keywordLocation).valid) errors.push({
|
|
377
|
-
instanceLocation,
|
|
378
|
-
keyword: "not",
|
|
379
|
-
keywordLocation,
|
|
380
|
-
error: "Instance matched \"not\" schema."
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
let subEvaluateds = [];
|
|
384
|
-
if ($anyOf !== void 0) {
|
|
385
|
-
const keywordLocation = `${schemaLocation}/anyOf`;
|
|
386
|
-
const errorsLength = errors.length;
|
|
387
|
-
let anyValid = false;
|
|
388
|
-
for (let i = 0; i < $anyOf.length; i++) {
|
|
389
|
-
const subSchema = $anyOf[i];
|
|
390
|
-
const subEvaluated = Object.create(evaluated);
|
|
391
|
-
const result = validate(instance, subSchema, draft, lookup, shortCircuit, $recursiveAnchor === true ? recursiveAnchor : null, instanceLocation, `${keywordLocation}/${i}`, subEvaluated);
|
|
392
|
-
errors.push(...result.errors);
|
|
393
|
-
anyValid = anyValid || result.valid;
|
|
394
|
-
if (result.valid) subEvaluateds.push(subEvaluated);
|
|
395
|
-
}
|
|
396
|
-
if (anyValid) errors.length = errorsLength;
|
|
397
|
-
else errors.splice(errorsLength, 0, {
|
|
398
|
-
instanceLocation,
|
|
399
|
-
keyword: "anyOf",
|
|
400
|
-
keywordLocation,
|
|
401
|
-
error: "Instance does not match any subschemas."
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
if ($allOf !== void 0) {
|
|
405
|
-
const keywordLocation = `${schemaLocation}/allOf`;
|
|
406
|
-
const errorsLength = errors.length;
|
|
407
|
-
let allValid = true;
|
|
408
|
-
for (let i = 0; i < $allOf.length; i++) {
|
|
409
|
-
const subSchema = $allOf[i];
|
|
410
|
-
const subEvaluated = Object.create(evaluated);
|
|
411
|
-
const result = validate(instance, subSchema, draft, lookup, shortCircuit, $recursiveAnchor === true ? recursiveAnchor : null, instanceLocation, `${keywordLocation}/${i}`, subEvaluated);
|
|
412
|
-
errors.push(...result.errors);
|
|
413
|
-
allValid = allValid && result.valid;
|
|
414
|
-
if (result.valid) subEvaluateds.push(subEvaluated);
|
|
415
|
-
}
|
|
416
|
-
if (allValid) errors.length = errorsLength;
|
|
417
|
-
else errors.splice(errorsLength, 0, {
|
|
418
|
-
instanceLocation,
|
|
419
|
-
keyword: "allOf",
|
|
420
|
-
keywordLocation,
|
|
421
|
-
error: `Instance does not match every subschema.`
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
if ($oneOf !== void 0) {
|
|
425
|
-
const keywordLocation = `${schemaLocation}/oneOf`;
|
|
426
|
-
const errorsLength = errors.length;
|
|
427
|
-
const matches = $oneOf.filter((subSchema, i) => {
|
|
428
|
-
const subEvaluated = Object.create(evaluated);
|
|
429
|
-
const result = validate(instance, subSchema, draft, lookup, shortCircuit, $recursiveAnchor === true ? recursiveAnchor : null, instanceLocation, `${keywordLocation}/${i}`, subEvaluated);
|
|
430
|
-
errors.push(...result.errors);
|
|
431
|
-
if (result.valid) subEvaluateds.push(subEvaluated);
|
|
432
|
-
return result.valid;
|
|
433
|
-
}).length;
|
|
434
|
-
if (matches === 1) errors.length = errorsLength;
|
|
435
|
-
else errors.splice(errorsLength, 0, {
|
|
436
|
-
instanceLocation,
|
|
437
|
-
keyword: "oneOf",
|
|
438
|
-
keywordLocation,
|
|
439
|
-
error: `Instance does not match exactly one subschema (${matches} matches).`
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
if (instanceType === "object" || instanceType === "array") Object.assign(evaluated, ...subEvaluateds);
|
|
443
|
-
if ($if !== void 0) {
|
|
444
|
-
const keywordLocation = `${schemaLocation}/if`;
|
|
445
|
-
if (validate(instance, $if, draft, lookup, shortCircuit, recursiveAnchor, instanceLocation, keywordLocation, evaluated).valid) {
|
|
446
|
-
if ($then !== void 0) {
|
|
447
|
-
const thenResult = validate(instance, $then, draft, lookup, shortCircuit, recursiveAnchor, instanceLocation, `${schemaLocation}/then`, evaluated);
|
|
448
|
-
if (!thenResult.valid) errors.push({
|
|
449
|
-
instanceLocation,
|
|
450
|
-
keyword: "if",
|
|
451
|
-
keywordLocation,
|
|
452
|
-
error: `Instance does not match "then" schema.`
|
|
453
|
-
}, ...thenResult.errors);
|
|
454
|
-
}
|
|
455
|
-
} else if ($else !== void 0) {
|
|
456
|
-
const elseResult = validate(instance, $else, draft, lookup, shortCircuit, recursiveAnchor, instanceLocation, `${schemaLocation}/else`, evaluated);
|
|
457
|
-
if (!elseResult.valid) errors.push({
|
|
458
|
-
instanceLocation,
|
|
459
|
-
keyword: "if",
|
|
460
|
-
keywordLocation,
|
|
461
|
-
error: `Instance does not match "else" schema.`
|
|
462
|
-
}, ...elseResult.errors);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
if (instanceType === "object") {
|
|
466
|
-
if ($required !== void 0) {
|
|
467
|
-
for (const key of $required) if (!(key in instance)) errors.push({
|
|
468
|
-
instanceLocation,
|
|
469
|
-
keyword: "required",
|
|
470
|
-
keywordLocation: `${schemaLocation}/required`,
|
|
471
|
-
error: `Instance does not have required property "${key}".`
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
const keys = Object.keys(instance);
|
|
475
|
-
if ($minProperties !== void 0 && keys.length < $minProperties) errors.push({
|
|
476
|
-
instanceLocation,
|
|
477
|
-
keyword: "minProperties",
|
|
478
|
-
keywordLocation: `${schemaLocation}/minProperties`,
|
|
479
|
-
error: `Instance does not have at least ${$minProperties} properties.`
|
|
480
|
-
});
|
|
481
|
-
if ($maxProperties !== void 0 && keys.length > $maxProperties) errors.push({
|
|
482
|
-
instanceLocation,
|
|
483
|
-
keyword: "maxProperties",
|
|
484
|
-
keywordLocation: `${schemaLocation}/maxProperties`,
|
|
485
|
-
error: `Instance does not have at least ${$maxProperties} properties.`
|
|
486
|
-
});
|
|
487
|
-
if ($propertyNames !== void 0) {
|
|
488
|
-
const keywordLocation = `${schemaLocation}/propertyNames`;
|
|
489
|
-
for (const key in instance) {
|
|
490
|
-
const subInstancePointer = `${instanceLocation}/${encodePointer(key)}`;
|
|
491
|
-
const result = validate(key, $propertyNames, draft, lookup, shortCircuit, recursiveAnchor, subInstancePointer, keywordLocation);
|
|
492
|
-
if (!result.valid) errors.push({
|
|
493
|
-
instanceLocation,
|
|
494
|
-
keyword: "propertyNames",
|
|
495
|
-
keywordLocation,
|
|
496
|
-
error: `Property name "${key}" does not match schema.`
|
|
497
|
-
}, ...result.errors);
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
if ($dependentRequired !== void 0) {
|
|
501
|
-
const keywordLocation = `${schemaLocation}/dependantRequired`;
|
|
502
|
-
for (const key in $dependentRequired) if (key in instance) {
|
|
503
|
-
const required = $dependentRequired[key];
|
|
504
|
-
for (const dependantKey of required) if (!(dependantKey in instance)) errors.push({
|
|
505
|
-
instanceLocation,
|
|
506
|
-
keyword: "dependentRequired",
|
|
507
|
-
keywordLocation,
|
|
508
|
-
error: `Instance has "${key}" but does not have "${dependantKey}".`
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
if ($dependentSchemas !== void 0) for (const key in $dependentSchemas) {
|
|
513
|
-
const keywordLocation = `${schemaLocation}/dependentSchemas`;
|
|
514
|
-
if (key in instance) {
|
|
515
|
-
const result = validate(instance, $dependentSchemas[key], draft, lookup, shortCircuit, recursiveAnchor, instanceLocation, `${keywordLocation}/${encodePointer(key)}`, evaluated);
|
|
516
|
-
if (!result.valid) errors.push({
|
|
517
|
-
instanceLocation,
|
|
518
|
-
keyword: "dependentSchemas",
|
|
519
|
-
keywordLocation,
|
|
520
|
-
error: `Instance has "${key}" but does not match dependant schema.`
|
|
521
|
-
}, ...result.errors);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
if ($dependencies !== void 0) {
|
|
525
|
-
const keywordLocation = `${schemaLocation}/dependencies`;
|
|
526
|
-
for (const key in $dependencies) if (key in instance) {
|
|
527
|
-
const propsOrSchema = $dependencies[key];
|
|
528
|
-
if (Array.isArray(propsOrSchema)) {
|
|
529
|
-
for (const dependantKey of propsOrSchema) if (!(dependantKey in instance)) errors.push({
|
|
530
|
-
instanceLocation,
|
|
531
|
-
keyword: "dependencies",
|
|
532
|
-
keywordLocation,
|
|
533
|
-
error: `Instance has "${key}" but does not have "${dependantKey}".`
|
|
534
|
-
});
|
|
535
|
-
} else {
|
|
536
|
-
const result = validate(instance, propsOrSchema, draft, lookup, shortCircuit, recursiveAnchor, instanceLocation, `${keywordLocation}/${encodePointer(key)}`);
|
|
537
|
-
if (!result.valid) errors.push({
|
|
538
|
-
instanceLocation,
|
|
539
|
-
keyword: "dependencies",
|
|
540
|
-
keywordLocation,
|
|
541
|
-
error: `Instance has "${key}" but does not match dependant schema.`
|
|
542
|
-
}, ...result.errors);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
const thisEvaluated = Object.create(null);
|
|
547
|
-
let stop = false;
|
|
548
|
-
if ($properties !== void 0) {
|
|
549
|
-
const keywordLocation = `${schemaLocation}/properties`;
|
|
550
|
-
for (const key in $properties) {
|
|
551
|
-
if (!(key in instance)) continue;
|
|
552
|
-
const subInstancePointer = `${instanceLocation}/${encodePointer(key)}`;
|
|
553
|
-
const result = validate(instance[key], $properties[key], draft, lookup, shortCircuit, recursiveAnchor, subInstancePointer, `${keywordLocation}/${encodePointer(key)}`);
|
|
554
|
-
if (result.valid) evaluated[key] = thisEvaluated[key] = true;
|
|
555
|
-
else {
|
|
556
|
-
stop = shortCircuit;
|
|
557
|
-
errors.push({
|
|
558
|
-
instanceLocation,
|
|
559
|
-
keyword: "properties",
|
|
560
|
-
keywordLocation,
|
|
561
|
-
error: `Property "${key}" does not match schema.`
|
|
562
|
-
}, ...result.errors);
|
|
563
|
-
if (stop) break;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
if (!stop && $patternProperties !== void 0) {
|
|
568
|
-
const keywordLocation = `${schemaLocation}/patternProperties`;
|
|
569
|
-
for (const pattern in $patternProperties) {
|
|
570
|
-
const regex$1 = new RegExp(pattern, "u");
|
|
571
|
-
const subSchema = $patternProperties[pattern];
|
|
572
|
-
for (const key in instance) {
|
|
573
|
-
if (!regex$1.test(key)) continue;
|
|
574
|
-
const subInstancePointer = `${instanceLocation}/${encodePointer(key)}`;
|
|
575
|
-
const result = validate(instance[key], subSchema, draft, lookup, shortCircuit, recursiveAnchor, subInstancePointer, `${keywordLocation}/${encodePointer(pattern)}`);
|
|
576
|
-
if (result.valid) evaluated[key] = thisEvaluated[key] = true;
|
|
577
|
-
else {
|
|
578
|
-
stop = shortCircuit;
|
|
579
|
-
errors.push({
|
|
580
|
-
instanceLocation,
|
|
581
|
-
keyword: "patternProperties",
|
|
582
|
-
keywordLocation,
|
|
583
|
-
error: `Property "${key}" matches pattern "${pattern}" but does not match associated schema.`
|
|
584
|
-
}, ...result.errors);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
if (!stop && $additionalProperties !== void 0) {
|
|
590
|
-
const keywordLocation = `${schemaLocation}/additionalProperties`;
|
|
591
|
-
for (const key in instance) {
|
|
592
|
-
if (thisEvaluated[key]) continue;
|
|
593
|
-
const subInstancePointer = `${instanceLocation}/${encodePointer(key)}`;
|
|
594
|
-
const result = validate(instance[key], $additionalProperties, draft, lookup, shortCircuit, recursiveAnchor, subInstancePointer, keywordLocation);
|
|
595
|
-
if (result.valid) evaluated[key] = true;
|
|
596
|
-
else {
|
|
597
|
-
stop = shortCircuit;
|
|
598
|
-
errors.push({
|
|
599
|
-
instanceLocation,
|
|
600
|
-
keyword: "additionalProperties",
|
|
601
|
-
keywordLocation,
|
|
602
|
-
error: `Property "${key}" does not match additional properties schema.`
|
|
603
|
-
}, ...result.errors);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
} else if (!stop && $unevaluatedProperties !== void 0) {
|
|
607
|
-
const keywordLocation = `${schemaLocation}/unevaluatedProperties`;
|
|
608
|
-
for (const key in instance) if (!evaluated[key]) {
|
|
609
|
-
const subInstancePointer = `${instanceLocation}/${encodePointer(key)}`;
|
|
610
|
-
const result = validate(instance[key], $unevaluatedProperties, draft, lookup, shortCircuit, recursiveAnchor, subInstancePointer, keywordLocation);
|
|
611
|
-
if (result.valid) evaluated[key] = true;
|
|
612
|
-
else errors.push({
|
|
613
|
-
instanceLocation,
|
|
614
|
-
keyword: "unevaluatedProperties",
|
|
615
|
-
keywordLocation,
|
|
616
|
-
error: `Property "${key}" does not match unevaluated properties schema.`
|
|
617
|
-
}, ...result.errors);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
} else if (instanceType === "array") {
|
|
621
|
-
if ($maxItems !== void 0 && instance.length > $maxItems) errors.push({
|
|
622
|
-
instanceLocation,
|
|
623
|
-
keyword: "maxItems",
|
|
624
|
-
keywordLocation: `${schemaLocation}/maxItems`,
|
|
625
|
-
error: `Array has too many items (${instance.length} > ${$maxItems}).`
|
|
626
|
-
});
|
|
627
|
-
if ($minItems !== void 0 && instance.length < $minItems) errors.push({
|
|
628
|
-
instanceLocation,
|
|
629
|
-
keyword: "minItems",
|
|
630
|
-
keywordLocation: `${schemaLocation}/minItems`,
|
|
631
|
-
error: `Array has too few items (${instance.length} < ${$minItems}).`
|
|
632
|
-
});
|
|
633
|
-
const length = instance.length;
|
|
634
|
-
let i = 0;
|
|
635
|
-
let stop = false;
|
|
636
|
-
if ($prefixItems !== void 0) {
|
|
637
|
-
const keywordLocation = `${schemaLocation}/prefixItems`;
|
|
638
|
-
const length2 = Math.min($prefixItems.length, length);
|
|
639
|
-
for (; i < length2; i++) {
|
|
640
|
-
const result = validate(instance[i], $prefixItems[i], draft, lookup, shortCircuit, recursiveAnchor, `${instanceLocation}/${i}`, `${keywordLocation}/${i}`);
|
|
641
|
-
evaluated[i] = true;
|
|
642
|
-
if (!result.valid) {
|
|
643
|
-
stop = shortCircuit;
|
|
644
|
-
errors.push({
|
|
645
|
-
instanceLocation,
|
|
646
|
-
keyword: "prefixItems",
|
|
647
|
-
keywordLocation,
|
|
648
|
-
error: `Items did not match schema.`
|
|
649
|
-
}, ...result.errors);
|
|
650
|
-
if (stop) break;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
if ($items !== void 0) {
|
|
655
|
-
const keywordLocation = `${schemaLocation}/items`;
|
|
656
|
-
if (Array.isArray($items)) {
|
|
657
|
-
const length2 = Math.min($items.length, length);
|
|
658
|
-
for (; i < length2; i++) {
|
|
659
|
-
const result = validate(instance[i], $items[i], draft, lookup, shortCircuit, recursiveAnchor, `${instanceLocation}/${i}`, `${keywordLocation}/${i}`);
|
|
660
|
-
evaluated[i] = true;
|
|
661
|
-
if (!result.valid) {
|
|
662
|
-
stop = shortCircuit;
|
|
663
|
-
errors.push({
|
|
664
|
-
instanceLocation,
|
|
665
|
-
keyword: "items",
|
|
666
|
-
keywordLocation,
|
|
667
|
-
error: `Items did not match schema.`
|
|
668
|
-
}, ...result.errors);
|
|
669
|
-
if (stop) break;
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
} else for (; i < length; i++) {
|
|
673
|
-
const result = validate(instance[i], $items, draft, lookup, shortCircuit, recursiveAnchor, `${instanceLocation}/${i}`, keywordLocation);
|
|
674
|
-
evaluated[i] = true;
|
|
675
|
-
if (!result.valid) {
|
|
676
|
-
stop = shortCircuit;
|
|
677
|
-
errors.push({
|
|
678
|
-
instanceLocation,
|
|
679
|
-
keyword: "items",
|
|
680
|
-
keywordLocation,
|
|
681
|
-
error: `Items did not match schema.`
|
|
682
|
-
}, ...result.errors);
|
|
683
|
-
if (stop) break;
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
if (!stop && $additionalItems !== void 0) {
|
|
687
|
-
const keywordLocation$1 = `${schemaLocation}/additionalItems`;
|
|
688
|
-
for (; i < length; i++) {
|
|
689
|
-
const result = validate(instance[i], $additionalItems, draft, lookup, shortCircuit, recursiveAnchor, `${instanceLocation}/${i}`, keywordLocation$1);
|
|
690
|
-
evaluated[i] = true;
|
|
691
|
-
if (!result.valid) {
|
|
692
|
-
stop = shortCircuit;
|
|
693
|
-
errors.push({
|
|
694
|
-
instanceLocation,
|
|
695
|
-
keyword: "additionalItems",
|
|
696
|
-
keywordLocation: keywordLocation$1,
|
|
697
|
-
error: `Items did not match additional items schema.`
|
|
698
|
-
}, ...result.errors);
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
if ($contains !== void 0) if (length === 0 && $minContains === void 0) errors.push({
|
|
704
|
-
instanceLocation,
|
|
705
|
-
keyword: "contains",
|
|
706
|
-
keywordLocation: `${schemaLocation}/contains`,
|
|
707
|
-
error: `Array is empty. It must contain at least one item matching the schema.`
|
|
708
|
-
});
|
|
709
|
-
else if ($minContains !== void 0 && length < $minContains) errors.push({
|
|
710
|
-
instanceLocation,
|
|
711
|
-
keyword: "minContains",
|
|
712
|
-
keywordLocation: `${schemaLocation}/minContains`,
|
|
713
|
-
error: `Array has less items (${length}) than minContains (${$minContains}).`
|
|
714
|
-
});
|
|
715
|
-
else {
|
|
716
|
-
const keywordLocation = `${schemaLocation}/contains`;
|
|
717
|
-
const errorsLength = errors.length;
|
|
718
|
-
let contained = 0;
|
|
719
|
-
for (let j = 0; j < length; j++) {
|
|
720
|
-
const result = validate(instance[j], $contains, draft, lookup, shortCircuit, recursiveAnchor, `${instanceLocation}/${j}`, keywordLocation);
|
|
721
|
-
if (result.valid) {
|
|
722
|
-
evaluated[j] = true;
|
|
723
|
-
contained++;
|
|
724
|
-
} else errors.push(...result.errors);
|
|
725
|
-
}
|
|
726
|
-
if (contained >= ($minContains || 0)) errors.length = errorsLength;
|
|
727
|
-
if ($minContains === void 0 && $maxContains === void 0 && contained === 0) errors.splice(errorsLength, 0, {
|
|
728
|
-
instanceLocation,
|
|
729
|
-
keyword: "contains",
|
|
730
|
-
keywordLocation,
|
|
731
|
-
error: `Array does not contain item matching schema.`
|
|
732
|
-
});
|
|
733
|
-
else if ($minContains !== void 0 && contained < $minContains) errors.push({
|
|
734
|
-
instanceLocation,
|
|
735
|
-
keyword: "minContains",
|
|
736
|
-
keywordLocation: `${schemaLocation}/minContains`,
|
|
737
|
-
error: `Array must contain at least ${$minContains} items matching schema. Only ${contained} items were found.`
|
|
738
|
-
});
|
|
739
|
-
else if ($maxContains !== void 0 && contained > $maxContains) errors.push({
|
|
740
|
-
instanceLocation,
|
|
741
|
-
keyword: "maxContains",
|
|
742
|
-
keywordLocation: `${schemaLocation}/maxContains`,
|
|
743
|
-
error: `Array may contain at most ${$maxContains} items matching schema. ${contained} items were found.`
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
if (!stop && $unevaluatedItems !== void 0) {
|
|
747
|
-
const keywordLocation = `${schemaLocation}/unevaluatedItems`;
|
|
748
|
-
for (; i < length; i++) {
|
|
749
|
-
if (evaluated[i]) continue;
|
|
750
|
-
const result = validate(instance[i], $unevaluatedItems, draft, lookup, shortCircuit, recursiveAnchor, `${instanceLocation}/${i}`, keywordLocation);
|
|
751
|
-
evaluated[i] = true;
|
|
752
|
-
if (!result.valid) errors.push({
|
|
753
|
-
instanceLocation,
|
|
754
|
-
keyword: "unevaluatedItems",
|
|
755
|
-
keywordLocation,
|
|
756
|
-
error: `Items did not match unevaluated items schema.`
|
|
757
|
-
}, ...result.errors);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
if ($uniqueItems) for (let j = 0; j < length; j++) {
|
|
761
|
-
const a = instance[j];
|
|
762
|
-
const ao = typeof a === "object" && a !== null;
|
|
763
|
-
for (let k = 0; k < length; k++) {
|
|
764
|
-
if (j === k) continue;
|
|
765
|
-
const b = instance[k];
|
|
766
|
-
if (a === b || ao && typeof b === "object" && b !== null && deepCompareStrict(a, b)) {
|
|
767
|
-
errors.push({
|
|
768
|
-
instanceLocation,
|
|
769
|
-
keyword: "uniqueItems",
|
|
770
|
-
keywordLocation: `${schemaLocation}/uniqueItems`,
|
|
771
|
-
error: `Duplicate items at indexes ${j} and ${k}.`
|
|
772
|
-
});
|
|
773
|
-
j = Number.MAX_SAFE_INTEGER;
|
|
774
|
-
k = Number.MAX_SAFE_INTEGER;
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
} else if (instanceType === "number") {
|
|
779
|
-
if (draft === "4") {
|
|
780
|
-
if ($minimum !== void 0 && ($exclusiveMinimum === true && instance <= $minimum || instance < $minimum)) errors.push({
|
|
781
|
-
instanceLocation,
|
|
782
|
-
keyword: "minimum",
|
|
783
|
-
keywordLocation: `${schemaLocation}/minimum`,
|
|
784
|
-
error: `${instance} is less than ${$exclusiveMinimum ? "or equal to " : ""} ${$minimum}.`
|
|
785
|
-
});
|
|
786
|
-
if ($maximum !== void 0 && ($exclusiveMaximum === true && instance >= $maximum || instance > $maximum)) errors.push({
|
|
787
|
-
instanceLocation,
|
|
788
|
-
keyword: "maximum",
|
|
789
|
-
keywordLocation: `${schemaLocation}/maximum`,
|
|
790
|
-
error: `${instance} is greater than ${$exclusiveMaximum ? "or equal to " : ""} ${$maximum}.`
|
|
791
|
-
});
|
|
792
|
-
} else {
|
|
793
|
-
if ($minimum !== void 0 && instance < $minimum) errors.push({
|
|
794
|
-
instanceLocation,
|
|
795
|
-
keyword: "minimum",
|
|
796
|
-
keywordLocation: `${schemaLocation}/minimum`,
|
|
797
|
-
error: `${instance} is less than ${$minimum}.`
|
|
798
|
-
});
|
|
799
|
-
if ($maximum !== void 0 && instance > $maximum) errors.push({
|
|
800
|
-
instanceLocation,
|
|
801
|
-
keyword: "maximum",
|
|
802
|
-
keywordLocation: `${schemaLocation}/maximum`,
|
|
803
|
-
error: `${instance} is greater than ${$maximum}.`
|
|
804
|
-
});
|
|
805
|
-
if ($exclusiveMinimum !== void 0 && instance <= $exclusiveMinimum) errors.push({
|
|
806
|
-
instanceLocation,
|
|
807
|
-
keyword: "exclusiveMinimum",
|
|
808
|
-
keywordLocation: `${schemaLocation}/exclusiveMinimum`,
|
|
809
|
-
error: `${instance} is less than ${$exclusiveMinimum}.`
|
|
810
|
-
});
|
|
811
|
-
if ($exclusiveMaximum !== void 0 && instance >= $exclusiveMaximum) errors.push({
|
|
812
|
-
instanceLocation,
|
|
813
|
-
keyword: "exclusiveMaximum",
|
|
814
|
-
keywordLocation: `${schemaLocation}/exclusiveMaximum`,
|
|
815
|
-
error: `${instance} is greater than or equal to ${$exclusiveMaximum}.`
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
if ($multipleOf !== void 0) {
|
|
819
|
-
const remainder = instance % $multipleOf;
|
|
820
|
-
if (Math.abs(0 - remainder) >= 1.1920929e-7 && Math.abs($multipleOf - remainder) >= 1.1920929e-7) errors.push({
|
|
821
|
-
instanceLocation,
|
|
822
|
-
keyword: "multipleOf",
|
|
823
|
-
keywordLocation: `${schemaLocation}/multipleOf`,
|
|
824
|
-
error: `${instance} is not a multiple of ${$multipleOf}.`
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
} else if (instanceType === "string") {
|
|
828
|
-
const length = $minLength === void 0 && $maxLength === void 0 ? 0 : ucs2length(instance);
|
|
829
|
-
if ($minLength !== void 0 && length < $minLength) errors.push({
|
|
830
|
-
instanceLocation,
|
|
831
|
-
keyword: "minLength",
|
|
832
|
-
keywordLocation: `${schemaLocation}/minLength`,
|
|
833
|
-
error: `String is too short (${length} < ${$minLength}).`
|
|
834
|
-
});
|
|
835
|
-
if ($maxLength !== void 0 && length > $maxLength) errors.push({
|
|
836
|
-
instanceLocation,
|
|
837
|
-
keyword: "maxLength",
|
|
838
|
-
keywordLocation: `${schemaLocation}/maxLength`,
|
|
839
|
-
error: `String is too long (${length} > ${$maxLength}).`
|
|
840
|
-
});
|
|
841
|
-
if ($pattern !== void 0 && !new RegExp($pattern, "u").test(instance)) errors.push({
|
|
842
|
-
instanceLocation,
|
|
843
|
-
keyword: "pattern",
|
|
844
|
-
keywordLocation: `${schemaLocation}/pattern`,
|
|
845
|
-
error: `String does not match pattern.`
|
|
846
|
-
});
|
|
847
|
-
if ($format !== void 0 && format[$format] && !format[$format](instance)) errors.push({
|
|
848
|
-
instanceLocation,
|
|
849
|
-
keyword: "format",
|
|
850
|
-
keywordLocation: `${schemaLocation}/format`,
|
|
851
|
-
error: `String does not match format "${$format}".`
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
return {
|
|
855
|
-
valid: errors.length === 0,
|
|
856
|
-
errors
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
//#endregion
|
|
861
|
-
//#region ../../node_modules/.pnpm/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validator.js
|
|
862
|
-
var Validator = class {
|
|
863
|
-
schema;
|
|
864
|
-
draft;
|
|
865
|
-
shortCircuit;
|
|
866
|
-
lookup;
|
|
867
|
-
constructor(schema, draft = "2019-09", shortCircuit = true) {
|
|
868
|
-
this.schema = schema;
|
|
869
|
-
this.draft = draft;
|
|
870
|
-
this.shortCircuit = shortCircuit;
|
|
871
|
-
this.lookup = dereference(schema);
|
|
872
|
-
}
|
|
873
|
-
validate(instance) {
|
|
874
|
-
return validate(instance, this.schema, this.draft, this.lookup, this.shortCircuit);
|
|
875
|
-
}
|
|
876
|
-
addSchema(schema, id) {
|
|
877
|
-
if (id) schema = {
|
|
878
|
-
...schema,
|
|
879
|
-
$id: id
|
|
880
|
-
};
|
|
881
|
-
dereference(schema, this.lookup);
|
|
882
|
-
}
|
|
883
|
-
};
|
|
884
|
-
|
|
885
|
-
//#endregion
|
|
886
|
-
//#region ../core-internal/src/validators/cfWorkerProvider.ts
|
|
887
|
-
/**
|
|
888
|
-
* Cloudflare Worker-compatible JSON Schema validator provider
|
|
889
|
-
*
|
|
890
|
-
* This provider uses @cfworker/json-schema for validation without code generation,
|
|
891
|
-
* making it compatible with edge runtimes like Cloudflare Workers that restrict
|
|
892
|
-
* eval and new Function.
|
|
893
|
-
*
|
|
894
|
-
* @see {@linkcode AjvJsonSchemaValidator} for the Node.js alternative
|
|
895
|
-
*/
|
|
896
|
-
/**
|
|
897
|
-
* Canonical 2020-12 `$schema` URIs (http + https variants, trailing-`#` stripped). When a schema
|
|
898
|
-
* declares anything else and no `{draft}` is forced, the provider throws a plain `Error`.
|
|
899
|
-
*/
|
|
900
|
-
const DRAFT_2020_12_URIS = new Set(["https://json-schema.org/draft/2020-12/schema", "http://json-schema.org/draft/2020-12/schema"]);
|
|
901
|
-
/**
|
|
902
|
-
* `@cfworker/json-schema`-backed JSON Schema validator. See
|
|
903
|
-
* `@modelcontextprotocol/{client,server}/validators/cf-worker` for the customisation entry point.
|
|
904
|
-
*
|
|
905
|
-
* Default validates as **JSON Schema 2020-12** (SEP-1613). Schemas declaring a different
|
|
906
|
-
* `$schema` are rejected with a plain `Error`. Passing an explicit `draft` to the constructor
|
|
907
|
-
* overrides this — that draft is used for every schema regardless of `$schema`.
|
|
908
|
-
*
|
|
909
|
-
* @example Use with default configuration (2020-12, shortcircuit on)
|
|
910
|
-
* ```ts source="./cfWorkerProvider.examples.ts#CfWorkerJsonSchemaValidator_default"
|
|
911
|
-
* const validator = new CfWorkerJsonSchemaValidator();
|
|
912
|
-
* ```
|
|
913
|
-
*
|
|
914
|
-
* @example Use with custom configuration
|
|
915
|
-
* ```ts source="./cfWorkerProvider.examples.ts#CfWorkerJsonSchemaValidator_customConfig"
|
|
916
|
-
* const validator = new CfWorkerJsonSchemaValidator({
|
|
917
|
-
* draft: '2020-12',
|
|
918
|
-
* shortcircuit: false // Report all errors
|
|
919
|
-
* });
|
|
920
|
-
* ```
|
|
921
|
-
*/
|
|
922
|
-
var CfWorkerJsonSchemaValidator = class {
|
|
923
|
-
shortcircuit;
|
|
924
|
-
/** Caller-supplied draft; when set, the `$schema` check is skipped (caller owns dialect). */
|
|
925
|
-
draft;
|
|
926
|
-
/**
|
|
927
|
-
* Create a validator
|
|
928
|
-
*
|
|
929
|
-
* @param options - Configuration options
|
|
930
|
-
* @param options.shortcircuit - If `true`, stop validation after first error (default: `true`)
|
|
931
|
-
* @param options.draft - JSON Schema draft version to force for every schema. When set, the
|
|
932
|
-
* `$schema` check is skipped. When omitted, the provider validates as 2020-12 and rejects
|
|
933
|
-
* schemas declaring a different `$schema`.
|
|
934
|
-
*/
|
|
935
|
-
constructor(options) {
|
|
936
|
-
this.shortcircuit = options?.shortcircuit ?? true;
|
|
937
|
-
this.draft = options?.draft;
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* Create a validator for the given JSON Schema
|
|
941
|
-
*
|
|
942
|
-
* Unlike AJV, this validator is not cached internally
|
|
943
|
-
*
|
|
944
|
-
* @param schema - Standard JSON Schema object
|
|
945
|
-
* @returns A validator function that validates input data
|
|
946
|
-
*/
|
|
947
|
-
getValidator(schema) {
|
|
948
|
-
if (this.draft === void 0 && "$schema" in schema && typeof schema.$schema === "string" && !DRAFT_2020_12_URIS.has(schema.$schema.replace(/#$/, ""))) {
|
|
949
|
-
const declared = schema.$schema.slice(0, 200);
|
|
950
|
-
throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${declared}"). The default validator supports JSON Schema 2020-12 only; pass an explicit { draft } to CfWorkerJsonSchemaValidator to validate other dialects.`);
|
|
951
|
-
}
|
|
952
|
-
const validator = new Validator(schema, this.draft ?? "2020-12", this.shortcircuit);
|
|
953
|
-
return (input) => {
|
|
954
|
-
const result = validator.validate(input);
|
|
955
|
-
return result.valid ? {
|
|
956
|
-
valid: true,
|
|
957
|
-
data: input,
|
|
958
|
-
errorMessage: void 0
|
|
959
|
-
} : {
|
|
960
|
-
valid: false,
|
|
961
|
-
data: void 0,
|
|
962
|
-
errorMessage: result.errors.map((err) => `${err.instanceLocation}: ${err.error}`).join("; ")
|
|
963
|
-
};
|
|
964
|
-
};
|
|
965
|
-
}
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
//#endregion
|
|
969
|
-
export { CfWorkerJsonSchemaValidator as t };
|
|
970
|
-
//# sourceMappingURL=cfWorkerProvider-DbU8BxXO.mjs.map
|