@psnext/slingcli 3.0.20260827-1 → 3.3.20260911-1
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/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -4
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-PBNSMEG7.js → chunk-VDBOM5UG.js} +9 -9
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +25 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +33 -43
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +16 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +9 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +221 -12
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +76 -30
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +37 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +106 -22
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +29 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +21 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +155 -32
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +65 -9
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +115 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-utils.js +217 -27
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +43 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/parse.js +150 -147
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +6 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +6 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
- package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
- package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/errors.d.ts +5 -0
- package/node_modules/@smithy/core/errors.js +5 -0
- package/node_modules/@smithy/core/package.json +11 -2
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +56 -13
- package/node_modules/@types/node/assert.d.ts +190 -189
- package/node_modules/@types/node/async_hooks.d.ts +43 -151
- package/node_modules/@types/node/buffer.buffer.d.ts +13 -12
- package/node_modules/@types/node/buffer.d.ts +237 -102
- package/node_modules/@types/node/child_process.d.ts +154 -39
- package/node_modules/@types/node/cluster.d.ts +384 -238
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/node_modules/@types/node/console.d.ts +404 -45
- package/node_modules/@types/node/constants.d.ts +10 -3
- package/node_modules/@types/node/crypto.d.ts +1600 -1007
- package/node_modules/@types/node/dgram.d.ts +81 -133
- package/node_modules/@types/node/diagnostics_channel.d.ts +59 -277
- package/node_modules/@types/node/dns/promises.d.ts +15 -9
- package/node_modules/@types/node/dns.d.ts +183 -136
- package/node_modules/@types/node/domain.d.ts +32 -12
- package/node_modules/@types/node/events.d.ts +696 -728
- package/node_modules/@types/node/fs/promises.d.ts +85 -256
- package/node_modules/@types/node/fs.d.ts +525 -865
- package/node_modules/@types/node/globals.d.ts +34 -12
- package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
- package/node_modules/@types/node/http.d.ts +311 -432
- package/node_modules/@types/node/http2.d.ts +891 -545
- package/node_modules/@types/node/https.d.ts +243 -64
- package/node_modules/@types/node/index.d.ts +7 -25
- package/node_modules/@types/node/inspector.d.ts +58 -70
- package/node_modules/@types/node/inspector.generated.d.ts +411 -765
- package/node_modules/@types/node/module.d.ts +219 -54
- package/node_modules/@types/node/net.d.ts +222 -208
- package/node_modules/@types/node/os.d.ts +49 -41
- package/node_modules/@types/node/package.json +3 -13
- package/node_modules/@types/node/path.d.ts +141 -119
- package/node_modules/@types/node/perf_hooks.d.ts +673 -310
- package/node_modules/@types/node/process.d.ts +205 -389
- package/node_modules/@types/node/punycode.d.ts +31 -3
- package/node_modules/@types/node/querystring.d.ts +16 -3
- package/node_modules/@types/node/readline/promises.d.ts +6 -3
- package/node_modules/@types/node/readline.d.ts +152 -66
- package/node_modules/@types/node/repl.d.ts +109 -101
- package/node_modules/@types/node/sea.d.ts +116 -1
- package/node_modules/@types/node/sqlite.d.ts +68 -486
- package/node_modules/@types/node/stream/consumers.d.ts +15 -91
- package/node_modules/@types/node/stream/promises.d.ts +15 -136
- package/node_modules/@types/node/stream/web.d.ts +456 -179
- package/node_modules/@types/node/stream.d.ts +491 -603
- package/node_modules/@types/node/string_decoder.d.ts +43 -3
- package/node_modules/@types/node/test.d.ts +292 -513
- package/node_modules/@types/node/timers/promises.d.ts +18 -3
- package/node_modules/@types/node/timers.d.ts +141 -3
- package/node_modules/@types/node/tls.d.ts +242 -140
- package/node_modules/@types/node/trace_events.d.ts +97 -3
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +8 -7
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
- package/node_modules/@types/node/tty.d.ts +43 -61
- package/node_modules/@types/node/url.d.ts +584 -156
- package/node_modules/@types/node/util.d.ts +1110 -181
- package/node_modules/@types/node/v8.d.ts +36 -175
- package/node_modules/@types/node/vm.d.ts +209 -292
- package/node_modules/@types/node/wasi.d.ts +74 -24
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
- package/node_modules/@types/node/web-globals/domexception.d.ts +0 -15
- package/node_modules/@types/node/web-globals/events.d.ts +0 -9
- package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
- package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
- package/node_modules/@types/node/web-globals/streams.d.ts +0 -93
- package/node_modules/@types/node/worker_threads.d.ts +407 -257
- package/node_modules/@types/node/zlib.d.ts +165 -7
- package/node_modules/express-rate-limit/dist/index.cjs +6 -3
- package/node_modules/express-rate-limit/dist/index.d.cts +11 -0
- package/node_modules/express-rate-limit/dist/index.d.mts +11 -0
- package/node_modules/express-rate-limit/dist/index.d.ts +11 -0
- package/node_modules/express-rate-limit/dist/index.mjs +6 -3
- package/node_modules/express-rate-limit/{license.md → license} +7 -6
- package/node_modules/express-rate-limit/package.json +5 -5
- package/node_modules/express-rate-limit/readme.md +1 -0
- package/node_modules/fast-uri/index.js +20 -5
- package/node_modules/fast-uri/lib/utils.js +8 -1
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +58 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +34 -0
- package/node_modules/hono/dist/cjs/client/client.js +4 -4
- package/node_modules/hono/dist/cjs/hono-base.js +7 -6
- package/node_modules/hono/dist/cjs/jsx/base.js +18 -1
- package/node_modules/hono/dist/cjs/jsx/components.js +25 -26
- package/node_modules/hono/dist/cjs/jsx/context.js +5 -5
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +2 -2
- package/node_modules/hono/dist/cjs/jsx/streaming.js +4 -5
- package/node_modules/hono/dist/client/client.js +4 -4
- package/node_modules/hono/dist/hono-base.js +7 -6
- package/node_modules/hono/dist/jsx/base.js +15 -1
- package/node_modules/hono/dist/jsx/components.js +26 -27
- package/node_modules/hono/dist/jsx/context.js +6 -6
- package/node_modules/hono/dist/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +3 -3
- package/node_modules/hono/dist/jsx/streaming.js +5 -6
- package/node_modules/hono/dist/types/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/base.d.ts +3 -0
- package/node_modules/hono/package.json +2 -2
- package/node_modules/ip-address/README.md +92 -82
- package/node_modules/ip-address/dist/common.d.ts +20 -0
- package/node_modules/ip-address/dist/common.js +36 -0
- package/node_modules/ip-address/dist/common.js.map +1 -1
- package/node_modules/ip-address/dist/ipv4.d.ts +50 -0
- package/node_modules/ip-address/dist/ipv4.js +75 -0
- package/node_modules/ip-address/dist/ipv4.js.map +1 -1
- package/node_modules/ip-address/dist/ipv6.d.ts +79 -10
- package/node_modules/ip-address/dist/ipv6.js +120 -30
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/dist/v4/constants.d.ts +12 -0
- package/node_modules/ip-address/dist/v4/constants.js +40 -1
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -1
- package/node_modules/ip-address/dist/v6/constants.d.ts +14 -0
- package/node_modules/ip-address/dist/v6/constants.js +47 -1
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
- package/node_modules/ip-address/package.json +1 -1
- package/node_modules/jose/dist/types/index.d.ts +1 -2
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +12 -25
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +18 -32
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +12 -25
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +24 -50
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +15 -30
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +29 -52
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +5 -8
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +7 -9
- package/node_modules/jose/dist/types/jwks/local.d.ts +10 -13
- package/node_modules/jose/dist/types/jwks/remote.d.ts +29 -41
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +8 -13
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +14 -26
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +10 -19
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +14 -26
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +19 -33
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +17 -32
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +20 -27
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +30 -35
- package/node_modules/jose/dist/types/jwt/sign.d.ts +8 -13
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +10 -19
- package/node_modules/jose/dist/types/jwt/verify.d.ts +19 -22
- package/node_modules/jose/dist/types/key/export.d.ts +10 -10
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +15 -22
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +12 -19
- package/node_modules/jose/dist/types/key/import.d.ts +25 -31
- package/node_modules/jose/dist/types/types.d.ts +184 -319
- package/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +5 -7
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +6 -5
- package/node_modules/jose/dist/types/util/errors.d.ts +50 -88
- package/node_modules/jose/dist/webapi/index.js +70 -32
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +6 -8
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +25 -48
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +14 -14
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +34 -64
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +38 -49
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +100 -172
- package/node_modules/jose/dist/webapi/jwk/embedded.js +29 -32
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +51 -70
- package/node_modules/jose/dist/webapi/jwks/local.js +53 -64
- package/node_modules/jose/dist/webapi/jwks/remote.js +88 -136
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +19 -21
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +7 -8
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +22 -31
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +11 -24
- package/node_modules/jose/dist/webapi/jws/general/sign.js +55 -73
- package/node_modules/jose/dist/webapi/jws/general/verify.js +43 -69
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +12 -20
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +43 -70
- package/node_modules/jose/dist/webapi/jwt/sign.js +17 -16
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +31 -40
- package/node_modules/jose/dist/webapi/jwt/verify.js +12 -14
- package/node_modules/jose/dist/webapi/key/export.js +32 -41
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +32 -49
- package/node_modules/jose/dist/webapi/key/generate_secret.js +35 -40
- package/node_modules/jose/dist/webapi/key/import.js +48 -56
- package/node_modules/jose/dist/webapi/lib/asn1.js +128 -169
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +72 -41
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +75 -119
- package/node_modules/jose/dist/webapi/lib/deflate.js +35 -47
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +102 -93
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +178 -234
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +71 -138
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +62 -61
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +43 -82
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +78 -131
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +123 -209
- package/node_modules/jose/dist/webapi/lib/key.js +147 -139
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +13 -8
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +8 -6
- package/node_modules/jose/dist/webapi/lib/key_management.js +169 -235
- package/node_modules/jose/dist/webapi/lib/validate.js +122 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +14 -37
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -31
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +18 -23
- package/node_modules/jose/dist/webapi/util/errors.js +94 -84
- package/node_modules/jose/package.json +17 -81
- package/node_modules/protobufjs/dist/light/protobuf.js +59 -6
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +22 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +59 -6
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/decoder.js +32 -3
- package/node_modules/protobufjs/src/reader.js +20 -0
- package/node_modules/protobufjs/src/wrappers.js +5 -1
- package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
- package/node_modules/qs/CHANGELOG.md +15 -0
- package/node_modules/qs/README.md +19 -1
- package/node_modules/qs/dist/qs.js +21 -21
- package/node_modules/qs/eslint.config.mjs +1 -1
- package/node_modules/qs/lib/parse.js +3 -4
- package/node_modules/qs/lib/stringify.js +23 -8
- package/node_modules/qs/lib/utils.js +10 -3
- package/node_modules/qs/package.json +4 -4
- package/node_modules/qs/test/parse.js +192 -3
- package/node_modules/qs/test/stringify.js +317 -0
- package/node_modules/qs/test/utils.js +12 -0
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
- package/node_modules/undici/lib/dispatcher/client-h2.js +70 -14
- package/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/undici/lib/handler/cache-handler.js +21 -5
- package/node_modules/undici/lib/handler/retry-handler.js +42 -7
- package/node_modules/undici/lib/interceptor/cache.js +20 -1
- package/node_modules/undici/lib/interceptor/decompress.js +146 -14
- package/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
- package/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/interceptors.d.ts +2 -0
- package/node_modules/undici-types/agent.d.ts +13 -12
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +12 -13
- package/node_modules/undici-types/client.d.ts +34 -55
- package/node_modules/undici-types/connector.d.ts +2 -4
- package/node_modules/undici-types/cookies.d.ts +0 -2
- package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
- package/node_modules/undici-types/dispatcher.d.ts +137 -134
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
- package/node_modules/undici-types/errors.d.ts +54 -82
- package/node_modules/undici-types/eventsource.d.ts +4 -9
- package/node_modules/undici-types/fetch.d.ts +24 -46
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/handlers.d.ts +9 -8
- package/node_modules/undici-types/header.d.ts +1 -162
- package/node_modules/undici-types/index.d.ts +47 -69
- package/node_modules/undici-types/interceptors.d.ts +9 -72
- package/node_modules/undici-types/mock-agent.d.ts +18 -36
- package/node_modules/undici-types/mock-client.d.ts +4 -6
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
- package/node_modules/undici-types/mock-pool.d.ts +4 -6
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +4 -0
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -14
- package/node_modules/undici-types/proxy-agent.d.ts +6 -7
- package/node_modules/undici-types/readable.d.ts +16 -19
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +10 -19
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/webidl.d.ts +30 -148
- package/node_modules/undici-types/websocket.d.ts +10 -48
- package/node_modules/zod/README.md +27 -0
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +21 -2
- package/node_modules/zod/index.d.cts +1 -2
- package/node_modules/zod/index.d.ts +1 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +20 -8
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +5 -2
- package/node_modules/zod/src/v3/ZodError.ts +22 -12
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
- package/node_modules/zod/src/v3/types.ts +5 -5
- package/node_modules/zod/src/v4/classic/compat.ts +26 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +59 -44
- package/node_modules/zod/src/v4/classic/external.ts +14 -9
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +363 -78
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +10 -4
- package/node_modules/zod/src/v4/classic/schemas.ts +652 -371
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +185 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +3 -3
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +994 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +261 -13
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +582 -10
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +297 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +12 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +46 -9
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +301 -12
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +225 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +79 -3
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +152 -5
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +44 -3
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1758 -202
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +73 -13
- package/node_modules/zod/src/v4/core/checks.ts +58 -145
- package/node_modules/zod/src/v4/core/compile.ts +2302 -0
- package/node_modules/zod/src/v4/core/core.ts +98 -19
- package/node_modules/zod/src/v4/core/doc.ts +17 -9
- package/node_modules/zod/src/v4/core/errors.ts +113 -25
- package/node_modules/zod/src/v4/core/index.ts +3 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +8 -3
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +468 -146
- package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
- package/node_modules/zod/src/v4/core/memoizer.ts +334 -0
- package/node_modules/zod/src/v4/core/parse.ts +164 -50
- package/node_modules/zod/src/v4/core/regexes.ts +38 -15
- package/node_modules/zod/src/v4/core/registries.ts +2 -2
- package/node_modules/zod/src/v4/core/schemas.ts +1073 -538
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +969 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +1859 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +31 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +284 -49
- package/node_modules/zod/src/v4/core/util.ts +458 -157
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +204 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +4 -0
- package/node_modules/zod/src/v4/locales/az.ts +4 -0
- package/node_modules/zod/src/v4/locales/be.ts +11 -0
- package/node_modules/zod/src/v4/locales/bg.ts +4 -0
- package/node_modules/zod/src/v4/locales/bn.ts +122 -0
- package/node_modules/zod/src/v4/locales/ca.ts +4 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +139 -0
- package/node_modules/zod/src/v4/locales/cs.ts +4 -0
- package/node_modules/zod/src/v4/locales/da.ts +6 -2
- package/node_modules/zod/src/v4/locales/de.ts +4 -0
- package/node_modules/zod/src/v4/locales/el.ts +2 -0
- package/node_modules/zod/src/v4/locales/en.ts +16 -4
- package/node_modules/zod/src/v4/locales/eo.ts +4 -0
- package/node_modules/zod/src/v4/locales/es.ts +3 -0
- package/node_modules/zod/src/v4/locales/fa.ts +4 -0
- package/node_modules/zod/src/v4/locales/fi.ts +4 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +4 -0
- package/node_modules/zod/src/v4/locales/fr.ts +20 -14
- package/node_modules/zod/src/v4/locales/gu.ts +122 -0
- package/node_modules/zod/src/v4/locales/he.ts +7 -1
- package/node_modules/zod/src/v4/locales/hi.ts +125 -0
- package/node_modules/zod/src/v4/locales/hr.ts +3 -0
- package/node_modules/zod/src/v4/locales/hu.ts +4 -0
- package/node_modules/zod/src/v4/locales/hy.ts +10 -0
- package/node_modules/zod/src/v4/locales/id.ts +4 -0
- package/node_modules/zod/src/v4/locales/index.ts +11 -0
- package/node_modules/zod/src/v4/locales/is.ts +4 -0
- package/node_modules/zod/src/v4/locales/it.ts +4 -0
- package/node_modules/zod/src/v4/locales/ja.ts +4 -0
- package/node_modules/zod/src/v4/locales/ka.ts +4 -0
- package/node_modules/zod/src/v4/locales/km.ts +4 -0
- package/node_modules/zod/src/v4/locales/kn.ts +125 -0
- package/node_modules/zod/src/v4/locales/ko.ts +4 -0
- package/node_modules/zod/src/v4/locales/lt.ts +3 -0
- package/node_modules/zod/src/v4/locales/mk.ts +4 -0
- package/node_modules/zod/src/v4/locales/ms.ts +4 -0
- package/node_modules/zod/src/v4/locales/ne.ts +127 -0
- package/node_modules/zod/src/v4/locales/nl.ts +4 -0
- package/node_modules/zod/src/v4/locales/nn.ts +120 -0
- package/node_modules/zod/src/v4/locales/no.ts +6 -2
- package/node_modules/zod/src/v4/locales/ota.ts +4 -0
- package/node_modules/zod/src/v4/locales/pl.ts +4 -0
- package/node_modules/zod/src/v4/locales/ps.ts +4 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +160 -0
- package/node_modules/zod/src/v4/locales/pt.ts +100 -58
- package/node_modules/zod/src/v4/locales/ro.ts +2 -0
- package/node_modules/zod/src/v4/locales/ru.ts +11 -0
- package/node_modules/zod/src/v4/locales/sk.ts +122 -0
- package/node_modules/zod/src/v4/locales/sl.ts +4 -0
- package/node_modules/zod/src/v4/locales/sv.ts +6 -2
- package/node_modules/zod/src/v4/locales/ta.ts +4 -0
- package/node_modules/zod/src/v4/locales/tg.ts +134 -0
- package/node_modules/zod/src/v4/locales/th.ts +4 -0
- package/node_modules/zod/src/v4/locales/tk.ts +112 -0
- package/node_modules/zod/src/v4/locales/tr.ts +4 -0
- package/node_modules/zod/src/v4/locales/uk.ts +4 -0
- package/node_modules/zod/src/v4/locales/ur.ts +4 -0
- package/node_modules/zod/src/v4/locales/uz.ts +2 -0
- package/node_modules/zod/src/v4/locales/vi.ts +4 -0
- package/node_modules/zod/src/v4/locales/yo.ts +4 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +4 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +4 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +12 -1
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/parse.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +174 -59
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +102 -5
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +37 -0
- package/node_modules/zod/v3/ZodError.cjs +41 -12
- package/node_modules/zod/v3/ZodError.d.cts +1 -1
- package/node_modules/zod/v3/ZodError.d.ts +1 -1
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +26 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +19 -0
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.d.cts +9 -11
- package/node_modules/zod/v4/classic/compat.d.ts +9 -11
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +62 -34
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +51 -27
- package/node_modules/zod/v4/classic/external.d.cts +5 -2
- package/node_modules/zod/v4/classic/external.d.ts +5 -2
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +21 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +30 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +23 -1
- package/node_modules/zod/v4/classic/parse.d.cts +17 -4
- package/node_modules/zod/v4/classic/parse.d.ts +17 -4
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +591 -422
- package/node_modules/zod/v4/classic/schemas.d.cts +70 -19
- package/node_modules/zod/v4/classic/schemas.d.ts +70 -19
- package/node_modules/zod/v4/classic/schemas.js +564 -420
- package/node_modules/zod/v4/core/api.cjs +58 -4
- package/node_modules/zod/v4/core/api.d.cts +16 -10
- package/node_modules/zod/v4/core/api.d.ts +16 -10
- package/node_modules/zod/v4/core/api.js +36 -4
- package/node_modules/zod/v4/core/checks.cjs +56 -127
- package/node_modules/zod/v4/core/checks.d.cts +13 -13
- package/node_modules/zod/v4/core/checks.d.ts +13 -13
- package/node_modules/zod/v4/core/checks.js +37 -127
- package/node_modules/zod/v4/core/compile.cjs +1913 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1863 -0
- package/node_modules/zod/v4/core/core.cjs +100 -18
- package/node_modules/zod/v4/core/core.d.cts +16 -4
- package/node_modules/zod/v4/core/core.d.ts +16 -4
- package/node_modules/zod/v4/core/core.js +82 -19
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.d.cts +3 -1
- package/node_modules/zod/v4/core/doc.d.ts +3 -1
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +126 -25
- package/node_modules/zod/v4/core/errors.d.cts +4 -0
- package/node_modules/zod/v4/core/errors.d.ts +4 -0
- package/node_modules/zod/v4/core/errors.js +107 -25
- package/node_modules/zod/v4/core/index.cjs +24 -1
- package/node_modules/zod/v4/core/index.d.cts +3 -0
- package/node_modules/zod/v4/core/index.d.ts +3 -0
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +470 -149
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +17 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +17 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +427 -150
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
- package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
- package/node_modules/zod/v4/core/memoizer.cjs +363 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +314 -0
- package/node_modules/zod/v4/core/parse.cjs +148 -46
- package/node_modules/zod/v4/core/parse.d.cts +14 -11
- package/node_modules/zod/v4/core/parse.d.ts +14 -11
- package/node_modules/zod/v4/core/parse.js +127 -45
- package/node_modules/zod/v4/core/regexes.cjs +52 -17
- package/node_modules/zod/v4/core/regexes.d.cts +4 -0
- package/node_modules/zod/v4/core/regexes.d.ts +4 -0
- package/node_modules/zod/v4/core/regexes.js +30 -15
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +826 -387
- package/node_modules/zod/v4/core/schemas.d.cts +140 -36
- package/node_modules/zod/v4/core/schemas.d.ts +140 -36
- package/node_modules/zod/v4/core/schemas.js +796 -387
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +270 -45
- package/node_modules/zod/v4/core/to-json-schema.d.cts +48 -5
- package/node_modules/zod/v4/core/to-json-schema.d.ts +48 -5
- package/node_modules/zod/v4/core/to-json-schema.js +248 -45
- package/node_modules/zod/v4/core/util.cjs +376 -157
- package/node_modules/zod/v4/core/util.d.cts +79 -1
- package/node_modules/zod/v4/core/util.d.ts +79 -1
- package/node_modules/zod/v4/core/util.js +345 -156
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +226 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +181 -0
- package/node_modules/zod/v4/index.cjs +34 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +4 -0
- package/node_modules/zod/v4/locales/ar.js +4 -0
- package/node_modules/zod/v4/locales/az.cjs +4 -0
- package/node_modules/zod/v4/locales/az.js +4 -0
- package/node_modules/zod/v4/locales/be.cjs +11 -0
- package/node_modules/zod/v4/locales/be.js +11 -0
- package/node_modules/zod/v4/locales/bg.cjs +4 -0
- package/node_modules/zod/v4/locales/bg.js +4 -0
- package/node_modules/zod/v4/locales/bn.cjs +139 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +112 -0
- package/node_modules/zod/v4/locales/ca.cjs +4 -0
- package/node_modules/zod/v4/locales/ca.js +4 -0
- package/node_modules/zod/v4/locales/ckb.cjs +159 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +132 -0
- package/node_modules/zod/v4/locales/cs.cjs +4 -0
- package/node_modules/zod/v4/locales/cs.js +4 -0
- package/node_modules/zod/v4/locales/da.cjs +6 -2
- package/node_modules/zod/v4/locales/da.js +6 -2
- package/node_modules/zod/v4/locales/de.cjs +4 -0
- package/node_modules/zod/v4/locales/de.js +4 -0
- package/node_modules/zod/v4/locales/el.cjs +2 -0
- package/node_modules/zod/v4/locales/el.js +2 -0
- package/node_modules/zod/v4/locales/en.cjs +15 -4
- package/node_modules/zod/v4/locales/en.js +15 -4
- package/node_modules/zod/v4/locales/eo.cjs +4 -0
- package/node_modules/zod/v4/locales/eo.js +4 -0
- package/node_modules/zod/v4/locales/es.cjs +3 -0
- package/node_modules/zod/v4/locales/es.js +3 -0
- package/node_modules/zod/v4/locales/fa.cjs +4 -0
- package/node_modules/zod/v4/locales/fa.js +4 -0
- package/node_modules/zod/v4/locales/fi.cjs +4 -0
- package/node_modules/zod/v4/locales/fi.js +4 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +4 -0
- package/node_modules/zod/v4/locales/fr.cjs +17 -14
- package/node_modules/zod/v4/locales/fr.js +17 -14
- package/node_modules/zod/v4/locales/gu.cjs +139 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +112 -0
- package/node_modules/zod/v4/locales/he.cjs +6 -0
- package/node_modules/zod/v4/locales/he.js +6 -0
- package/node_modules/zod/v4/locales/hi.cjs +137 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +110 -0
- package/node_modules/zod/v4/locales/hr.cjs +3 -0
- package/node_modules/zod/v4/locales/hr.js +3 -0
- package/node_modules/zod/v4/locales/hu.cjs +4 -0
- package/node_modules/zod/v4/locales/hu.js +4 -0
- package/node_modules/zod/v4/locales/hy.cjs +10 -0
- package/node_modules/zod/v4/locales/hy.js +10 -0
- package/node_modules/zod/v4/locales/id.cjs +4 -0
- package/node_modules/zod/v4/locales/id.js +4 -0
- package/node_modules/zod/v4/locales/index.cjs +43 -2
- package/node_modules/zod/v4/locales/index.d.cts +11 -0
- package/node_modules/zod/v4/locales/index.d.ts +11 -0
- package/node_modules/zod/v4/locales/index.js +11 -0
- package/node_modules/zod/v4/locales/is.cjs +4 -0
- package/node_modules/zod/v4/locales/is.js +4 -0
- package/node_modules/zod/v4/locales/it.cjs +4 -0
- package/node_modules/zod/v4/locales/it.js +4 -0
- package/node_modules/zod/v4/locales/ja.cjs +4 -0
- package/node_modules/zod/v4/locales/ja.js +4 -0
- package/node_modules/zod/v4/locales/ka.cjs +4 -0
- package/node_modules/zod/v4/locales/ka.js +4 -0
- package/node_modules/zod/v4/locales/km.cjs +4 -0
- package/node_modules/zod/v4/locales/km.js +4 -0
- package/node_modules/zod/v4/locales/kn.cjs +142 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +115 -0
- package/node_modules/zod/v4/locales/ko.cjs +4 -0
- package/node_modules/zod/v4/locales/ko.js +4 -0
- package/node_modules/zod/v4/locales/lt.cjs +3 -0
- package/node_modules/zod/v4/locales/lt.js +3 -0
- package/node_modules/zod/v4/locales/mk.cjs +4 -0
- package/node_modules/zod/v4/locales/mk.js +4 -0
- package/node_modules/zod/v4/locales/ms.cjs +4 -0
- package/node_modules/zod/v4/locales/ms.js +4 -0
- package/node_modules/zod/v4/locales/ne.cjs +137 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +110 -0
- package/node_modules/zod/v4/locales/nl.cjs +4 -0
- package/node_modules/zod/v4/locales/nl.js +4 -0
- package/node_modules/zod/v4/locales/nn.cjs +139 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +112 -0
- package/node_modules/zod/v4/locales/no.cjs +6 -2
- package/node_modules/zod/v4/locales/no.js +6 -2
- package/node_modules/zod/v4/locales/ota.cjs +4 -0
- package/node_modules/zod/v4/locales/ota.js +4 -0
- package/node_modules/zod/v4/locales/pl.cjs +4 -0
- package/node_modules/zod/v4/locales/pl.js +4 -0
- package/node_modules/zod/v4/locales/ps.cjs +4 -0
- package/node_modules/zod/v4/locales/ps.js +4 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +169 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +142 -0
- package/node_modules/zod/v4/locales/pt.cjs +88 -55
- package/node_modules/zod/v4/locales/pt.js +88 -55
- package/node_modules/zod/v4/locales/ro.cjs +2 -0
- package/node_modules/zod/v4/locales/ro.js +2 -0
- package/node_modules/zod/v4/locales/ru.cjs +11 -0
- package/node_modules/zod/v4/locales/ru.js +11 -0
- package/node_modules/zod/v4/locales/sk.cjs +142 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +115 -0
- package/node_modules/zod/v4/locales/sl.cjs +4 -0
- package/node_modules/zod/v4/locales/sl.js +4 -0
- package/node_modules/zod/v4/locales/sv.cjs +6 -2
- package/node_modules/zod/v4/locales/sv.js +6 -2
- package/node_modules/zod/v4/locales/ta.cjs +4 -0
- package/node_modules/zod/v4/locales/ta.js +4 -0
- package/node_modules/zod/v4/locales/tg.cjs +143 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +116 -0
- package/node_modules/zod/v4/locales/th.cjs +4 -0
- package/node_modules/zod/v4/locales/th.js +4 -0
- package/node_modules/zod/v4/locales/tk.cjs +133 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +106 -0
- package/node_modules/zod/v4/locales/tr.cjs +4 -0
- package/node_modules/zod/v4/locales/tr.js +4 -0
- package/node_modules/zod/v4/locales/uk.cjs +4 -0
- package/node_modules/zod/v4/locales/uk.js +4 -0
- package/node_modules/zod/v4/locales/ur.cjs +4 -0
- package/node_modules/zod/v4/locales/ur.js +4 -0
- package/node_modules/zod/v4/locales/uz.cjs +2 -0
- package/node_modules/zod/v4/locales/uz.js +2 -0
- package/node_modules/zod/v4/locales/vi.cjs +4 -0
- package/node_modules/zod/v4/locales/vi.js +4 -0
- package/node_modules/zod/v4/locales/yo.cjs +4 -0
- package/node_modules/zod/v4/locales/yo.js +4 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +4 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +4 -0
- package/node_modules/zod/v4/mini/checks.cjs +19 -0
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +33 -1
- package/node_modules/zod/v4/mini/external.d.cts +5 -2
- package/node_modules/zod/v4/mini/external.d.ts +5 -2
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +22 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +115 -49
- package/node_modules/zod/v4/mini/schemas.d.cts +52 -14
- package/node_modules/zod/v4/mini/schemas.d.ts +52 -14
- package/node_modules/zod/v4/mini/schemas.js +90 -47
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/package.json +3 -2
- package/skills/context-management/SKILL.md +258 -0
- package/skills/figma-implement-design/SKILL.md +258 -0
- package/skills/orchestrator/SKILL.md +82 -0
- package/skills/s-help/SKILL.md +42 -0
- package/skills/s-help/resources/README.md +23 -0
- package/skills/s-help/resources/commands.json +78 -0
- package/skills/s-help/resources/s-acm.md +26 -0
- package/skills/s-help/resources/s-bash-mode.md +23 -0
- package/skills/s-help/resources/s-bash-reset.md +23 -0
- package/skills/s-help/resources/s-context.md +25 -0
- package/skills/s-help/resources/s-filechanges-accept.md +25 -0
- package/skills/s-help/resources/s-filechanges-decline.md +30 -0
- package/skills/s-help/resources/s-filechanges.md +38 -0
- package/skills/s-help/resources/s-footer.md +38 -0
- package/skills/s-help/resources/s-promptlib.md +28 -0
- package/skills/s-help/resources/s-skills-manager.md +31 -0
- package/skills/s-help/resources/s-stash-history.md +26 -0
- package/skills/screenshot/SKILL.md +267 -0
- package/skills/screenshot/scripts/ensure_macos_permissions.sh +54 -0
- package/skills/screenshot/scripts/macos_display_info.swift +22 -0
- package/skills/screenshot/scripts/macos_permissions.swift +40 -0
- package/skills/screenshot/scripts/macos_window_info.swift +126 -0
- package/skills/screenshot/scripts/take_screenshot.ps1 +163 -0
- package/skills/screenshot/scripts/take_screenshot.py +585 -0
- package/slingshot/index.js +232 -230
- package/node_modules/@types/node/ffi.d.ts +0 -486
- package/node_modules/@types/node/inspector/promises.d.ts +0 -35
- package/node_modules/@types/node/path/posix.d.ts +0 -8
- package/node_modules/@types/node/path/win32.d.ts +0 -8
- package/node_modules/@types/node/quic.d.ts +0 -2151
- package/node_modules/@types/node/stream/iter.d.ts +0 -452
- package/node_modules/@types/node/test/reporters.d.ts +0 -59
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
- package/node_modules/@types/node/ts5.7/index.d.ts +0 -118
- package/node_modules/@types/node/util/types.d.ts +0 -558
- package/node_modules/@types/node/vfs.d.ts +0 -210
- package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
- package/node_modules/@types/node/web-globals/console.d.ts +0 -9
- package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
- package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
- package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
- package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
- package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
- package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
- package/node_modules/@types/node/web-globals/url.d.ts +0 -24
- package/node_modules/@types/node/zlib/iter.d.ts +0 -131
- package/node_modules/jose/dist/webapi/lib/base64.js +0 -22
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -28
- package/node_modules/jose/dist/webapi/lib/helpers.js +0 -42
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -26
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
- package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -20
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -17
- package/node_modules/jose/dist/webapi/lib/key_options.js +0 -6
- package/node_modules/jose/dist/webapi/lib/options.js +0 -74
- package/node_modules/jose/dist/webapi/lib/signing.js +0 -26
- package/node_modules/jose/dist/webapi/lib/type_checks.js +0 -33
- package/node_modules/undici-types/cache-interceptor.d.ts +0 -179
- package/node_modules/undici-types/client-stats.d.ts +0 -15
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
- package/node_modules/undici-types/h2c-client.d.ts +0 -73
- package/node_modules/undici-types/mock-call-history.d.ts +0 -111
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -39
- package/node_modules/undici-types/snapshot-agent.d.ts +0 -113
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
- package/node_modules/undici-types/utility.d.ts +0 -7
- package/node_modules/zod/src/v4/core/config.ts +0 -15
|
@@ -22,9 +22,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.stringbool = exports.meta = exports.describe = exports.ZodCustom = exports.ZodFunction = exports.ZodPromise = exports.ZodLazy = exports.ZodTemplateLiteral = exports.ZodReadonly = exports.ZodPreprocess = exports.ZodCodec = exports.ZodPipe = exports.ZodNaN = exports.ZodCatch = exports.ZodSuccess = exports.ZodNonOptional = exports.ZodPrefault = exports.ZodDefault = exports.ZodNullable = exports.ZodExactOptional = exports.ZodOptional = exports.ZodTransform = exports.ZodFile = void 0;
|
|
29
|
+
exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodXor = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodDate = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodBigIntFormat = exports.ZodBigInt = exports.ZodBoolean = exports.ZodNumberFormat = exports.ZodNumber = exports.ZodCustomStringFormat = exports.ZodJWT = exports.ZodIBAN = exports.ZodCreditCard = exports.ZodE164 = exports.ZodBase64URL = exports.ZodBase64 = exports.ZodCIDRv6 = exports.ZodCIDRv4 = exports.ZodIPv6 = exports.ZodMAC = exports.ZodIPv4 = exports.ZodKSUID = exports.ZodXID = exports.ZodULID = exports.ZodCUID2 = exports.ZodCUID = exports.ZodNanoID = exports.ZodEmoji = exports.ZodURL = exports.ZodUUID = exports.ZodGUID = exports.ZodEmail = exports.ZodISODuration = exports.ZodISOTime = exports.ZodISODate = exports.ZodISODateTime = exports.ZodStringFormat = exports.ZodString = exports._ZodString = exports.ZodType = void 0;
|
|
30
|
+
exports.stringbool = exports.ZodInstanceOf = exports.meta = exports.describe = exports.ZodProperties = exports.ZodCustom = exports.ZodFunction = exports.ZodPromise = exports.ZodLazy = exports.ZodTemplateLiteral = exports.ZodReadonly = exports.ZodPreprocess = exports.ZodCodec = exports.ZodPipe = exports.ZodNaN = exports.ZodCatch = exports.ZodSuccess = exports.ZodNonOptional = exports.ZodPrefault = exports.ZodDefault = exports.ZodNullable = exports.ZodExactOptional = exports.ZodOptional = exports.ZodTransform = exports.ZodFile = exports.ZodLiteral = exports.ZodEnum = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = void 0;
|
|
28
31
|
exports.string = string;
|
|
29
32
|
exports.email = email;
|
|
30
33
|
exports.guid = guid;
|
|
@@ -49,6 +52,8 @@ exports.cidrv6 = cidrv6;
|
|
|
49
52
|
exports.base64 = base64;
|
|
50
53
|
exports.base64url = base64url;
|
|
51
54
|
exports.e164 = e164;
|
|
55
|
+
exports.creditCard = creditCard;
|
|
56
|
+
exports.iban = iban;
|
|
52
57
|
exports.jwt = jwt;
|
|
53
58
|
exports.stringFormat = stringFormat;
|
|
54
59
|
exports.hostname = hostname;
|
|
@@ -113,6 +118,7 @@ exports._function = _function;
|
|
|
113
118
|
exports.function = _function;
|
|
114
119
|
exports._function = _function;
|
|
115
120
|
exports.function = _function;
|
|
121
|
+
exports.properties = properties;
|
|
116
122
|
exports.check = check;
|
|
117
123
|
exports.custom = custom;
|
|
118
124
|
exports.refine = refine;
|
|
@@ -124,289 +130,334 @@ const core = __importStar(require("../core/index.cjs"));
|
|
|
124
130
|
const index_js_1 = require("../core/index.cjs");
|
|
125
131
|
const processors = __importStar(require("../core/json-schema-processors.cjs"));
|
|
126
132
|
const to_json_schema_js_1 = require("../core/to-json-schema.cjs");
|
|
133
|
+
const en_js_1 = __importDefault(require("../locales/en.cjs"));
|
|
127
134
|
const checks = __importStar(require("./checks.cjs"));
|
|
128
|
-
const iso = __importStar(require("./iso.cjs"));
|
|
129
135
|
const parse = __importStar(require("./parse.cjs"));
|
|
130
|
-
//
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
//
|
|
140
|
-
// One install per (prototype, group), memoized by `_installedGroups`.
|
|
141
|
-
const _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
142
|
-
function _installLazyMethods(inst, group, methods) {
|
|
143
|
-
const proto = Object.getPrototypeOf(inst);
|
|
144
|
-
let installed = _installedGroups.get(proto);
|
|
145
|
-
if (!installed) {
|
|
146
|
-
installed = new Set();
|
|
147
|
-
_installedGroups.set(proto, installed);
|
|
148
|
-
}
|
|
149
|
-
if (installed.has(group))
|
|
150
|
-
return;
|
|
151
|
-
installed.add(group);
|
|
152
|
-
for (const key in methods) {
|
|
153
|
-
const fn = methods[key];
|
|
154
|
-
Object.defineProperty(proto, key, {
|
|
155
|
-
configurable: true,
|
|
156
|
-
enumerable: false,
|
|
157
|
-
get() {
|
|
158
|
-
const bound = fn.bind(this);
|
|
159
|
-
Object.defineProperty(this, key, {
|
|
160
|
-
configurable: true,
|
|
161
|
-
writable: true,
|
|
162
|
-
enumerable: true,
|
|
163
|
-
value: bound,
|
|
164
|
-
});
|
|
165
|
-
return bound;
|
|
166
|
-
},
|
|
167
|
-
set(v) {
|
|
168
|
-
Object.defineProperty(this, key, {
|
|
169
|
-
configurable: true,
|
|
170
|
-
writable: true,
|
|
171
|
-
enumerable: true,
|
|
172
|
-
value: v,
|
|
173
|
-
});
|
|
174
|
-
},
|
|
175
|
-
});
|
|
176
|
-
}
|
|
136
|
+
// Register English as the default locale on first ZodType construction. Hooked into the `ZodType` `$constructor` (rather than a top-level `config(en())` in `external.ts`) so bundlers honoring `sideEffects: false` can't tree-shake it out — see #5953, #5725. An explicit `z.config(z.locales.xx())` call wins regardless of order, since this only sets the default when none is present.
|
|
137
|
+
function _ensureDefaultLocale() {
|
|
138
|
+
if (!core.globalConfig.localeError)
|
|
139
|
+
core.config((0, en_js_1.default)());
|
|
140
|
+
}
|
|
141
|
+
// the default memoizer is read by the core container init, which runs before `ZodType.init`, so each container calls this first
|
|
142
|
+
function _ensureDefaultMemoizer() {
|
|
143
|
+
if (!core.globalConfig.memoizer)
|
|
144
|
+
core.config({ memoizer: core.memoizer() });
|
|
177
145
|
}
|
|
178
146
|
exports.ZodType = core.$constructor("ZodType", (inst, def) => {
|
|
147
|
+
_ensureDefaultLocale();
|
|
179
148
|
core.$ZodType.init(inst, def);
|
|
180
|
-
Object.assign(inst["~standard"], {
|
|
181
|
-
jsonSchema: {
|
|
182
|
-
input: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(inst, "input"),
|
|
183
|
-
output: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(inst, "output"),
|
|
184
|
-
},
|
|
185
|
-
});
|
|
186
|
-
inst.toJSONSchema = (0, to_json_schema_js_1.createToJSONSchemaMethod)(inst, {});
|
|
187
149
|
inst.def = def;
|
|
188
150
|
inst.type = def.type;
|
|
189
|
-
Object.defineProperty(inst, "_def", { value: def });
|
|
190
|
-
// Parse-family is intentionally kept as per-instance closures: these are
|
|
191
|
-
// the hot path AND the most-detached methods (`arr.map(schema.parse)`,
|
|
192
|
-
// `const { parse } = schema`, etc.). Eager closures here mean callers pay
|
|
193
|
-
// ~12 closure allocations per schema but get monomorphic call sites and
|
|
194
|
-
// detached usage that "just works".
|
|
195
|
-
inst.parse = (data, params) => parse.parse(inst, data, params, { callee: inst.parse });
|
|
196
|
-
inst.safeParse = (data, params) => parse.safeParse(inst, data, params);
|
|
197
|
-
inst.parseAsync = async (data, params) => parse.parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
198
|
-
inst.safeParseAsync = async (data, params) => parse.safeParseAsync(inst, data, params);
|
|
199
|
-
inst.spa = inst.safeParseAsync;
|
|
200
|
-
inst.encode = (data, params) => parse.encode(inst, data, params);
|
|
201
|
-
inst.decode = (data, params) => parse.decode(inst, data, params);
|
|
202
|
-
inst.encodeAsync = async (data, params) => parse.encodeAsync(inst, data, params);
|
|
203
|
-
inst.decodeAsync = async (data, params) => parse.decodeAsync(inst, data, params);
|
|
204
|
-
inst.safeEncode = (data, params) => parse.safeEncode(inst, data, params);
|
|
205
|
-
inst.safeDecode = (data, params) => parse.safeDecode(inst, data, params);
|
|
206
|
-
inst.safeEncodeAsync = async (data, params) => parse.safeEncodeAsync(inst, data, params);
|
|
207
|
-
inst.safeDecodeAsync = async (data, params) => parse.safeDecodeAsync(inst, data, params);
|
|
208
|
-
// All builder methods are placed on the internal prototype as lazy-bind
|
|
209
|
-
// getters. On first access per-instance, a bound thunk is allocated and
|
|
210
|
-
// cached as an own property; subsequent accesses skip the getter. This
|
|
211
|
-
// means: no per-instance allocation for unused methods, full
|
|
212
|
-
// detachability preserved (`const m = schema.optional; m()` works), and
|
|
213
|
-
// shared underlying function references across all instances.
|
|
214
|
-
_installLazyMethods(inst, "ZodType", {
|
|
215
|
-
check(...chks) {
|
|
216
|
-
const def = this.def;
|
|
217
|
-
return this.clone(index_js_1.util.mergeDefs(def, {
|
|
218
|
-
checks: [
|
|
219
|
-
...(def.checks ?? []),
|
|
220
|
-
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
|
|
221
|
-
],
|
|
222
|
-
}), { parent: true });
|
|
223
|
-
},
|
|
224
|
-
with(...chks) {
|
|
225
|
-
return this.check(...chks);
|
|
226
|
-
},
|
|
227
|
-
clone(def, params) {
|
|
228
|
-
return core.clone(this, def, params);
|
|
229
|
-
},
|
|
230
|
-
brand() {
|
|
231
|
-
return this;
|
|
232
|
-
},
|
|
233
|
-
register(reg, meta) {
|
|
234
|
-
reg.add(this, meta);
|
|
235
|
-
return this;
|
|
236
|
-
},
|
|
237
|
-
refine(check, params) {
|
|
238
|
-
return this.check(refine(check, params));
|
|
239
|
-
},
|
|
240
|
-
superRefine(refinement, params) {
|
|
241
|
-
return this.check(superRefine(refinement, params));
|
|
242
|
-
},
|
|
243
|
-
overwrite(fn) {
|
|
244
|
-
return this.check(checks.overwrite(fn));
|
|
245
|
-
},
|
|
246
|
-
optional() {
|
|
247
|
-
return optional(this);
|
|
248
|
-
},
|
|
249
|
-
exactOptional() {
|
|
250
|
-
return exactOptional(this);
|
|
251
|
-
},
|
|
252
|
-
nullable() {
|
|
253
|
-
return nullable(this);
|
|
254
|
-
},
|
|
255
|
-
nullish() {
|
|
256
|
-
return optional(nullable(this));
|
|
257
|
-
},
|
|
258
|
-
nonoptional(params) {
|
|
259
|
-
return nonoptional(this, params);
|
|
260
|
-
},
|
|
261
|
-
array() {
|
|
262
|
-
return array(this);
|
|
263
|
-
},
|
|
264
|
-
or(arg) {
|
|
265
|
-
return union([this, arg]);
|
|
266
|
-
},
|
|
267
|
-
and(arg) {
|
|
268
|
-
return intersection(this, arg);
|
|
269
|
-
},
|
|
270
|
-
transform(tx) {
|
|
271
|
-
return pipe(this, transform(tx));
|
|
272
|
-
},
|
|
273
|
-
default(d) {
|
|
274
|
-
return _default(this, d);
|
|
275
|
-
},
|
|
276
|
-
prefault(d) {
|
|
277
|
-
return prefault(this, d);
|
|
278
|
-
},
|
|
279
|
-
catch(params) {
|
|
280
|
-
return _catch(this, params);
|
|
281
|
-
},
|
|
282
|
-
pipe(target) {
|
|
283
|
-
return pipe(this, target);
|
|
284
|
-
},
|
|
285
|
-
readonly() {
|
|
286
|
-
return readonly(this);
|
|
287
|
-
},
|
|
288
|
-
describe(description) {
|
|
289
|
-
const cl = this.clone();
|
|
290
|
-
core.globalRegistry.add(cl, { description });
|
|
291
|
-
return cl;
|
|
292
|
-
},
|
|
293
|
-
meta(...args) {
|
|
294
|
-
// overloaded: meta() returns the registered metadata, meta(data)
|
|
295
|
-
// returns a clone with `data` registered. The mapped type picks
|
|
296
|
-
// up the second overload, so we accept variadic any-args and
|
|
297
|
-
// return `any` to satisfy both at runtime.
|
|
298
|
-
if (args.length === 0)
|
|
299
|
-
return core.globalRegistry.get(this);
|
|
300
|
-
const cl = this.clone();
|
|
301
|
-
core.globalRegistry.add(cl, args[0]);
|
|
302
|
-
return cl;
|
|
303
|
-
},
|
|
304
|
-
isOptional() {
|
|
305
|
-
return this.safeParse(undefined).success;
|
|
306
|
-
},
|
|
307
|
-
isNullable() {
|
|
308
|
-
return this.safeParse(null).success;
|
|
309
|
-
},
|
|
310
|
-
apply(fn) {
|
|
311
|
-
return fn(this);
|
|
312
|
-
},
|
|
313
|
-
});
|
|
314
|
-
Object.defineProperty(inst, "description", {
|
|
315
|
-
get() {
|
|
316
|
-
return core.globalRegistry.get(inst)?.description;
|
|
317
|
-
},
|
|
318
|
-
configurable: true,
|
|
319
|
-
});
|
|
320
151
|
return inst;
|
|
152
|
+
}, {
|
|
153
|
+
check(...chks) {
|
|
154
|
+
const def = this.def;
|
|
155
|
+
return this.clone(index_js_1.util.mergeDefs(def, {
|
|
156
|
+
checks: [
|
|
157
|
+
...(def.checks ?? []),
|
|
158
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
|
|
159
|
+
],
|
|
160
|
+
}), { parent: true });
|
|
161
|
+
},
|
|
162
|
+
with(...chks) {
|
|
163
|
+
return this.check(...chks);
|
|
164
|
+
},
|
|
165
|
+
clone(def, params) {
|
|
166
|
+
return core.clone(this, def, params);
|
|
167
|
+
},
|
|
168
|
+
brand() {
|
|
169
|
+
return this;
|
|
170
|
+
},
|
|
171
|
+
register(reg, meta) {
|
|
172
|
+
reg.add(this, meta);
|
|
173
|
+
return this;
|
|
174
|
+
},
|
|
175
|
+
refine(check, params) {
|
|
176
|
+
return this.check(refine(check, params));
|
|
177
|
+
},
|
|
178
|
+
superRefine(refinement, params) {
|
|
179
|
+
return this.check(superRefine(refinement, params));
|
|
180
|
+
},
|
|
181
|
+
overwrite(fn) {
|
|
182
|
+
return this.check(checks.overwrite(fn));
|
|
183
|
+
},
|
|
184
|
+
optional() {
|
|
185
|
+
return optional(this);
|
|
186
|
+
},
|
|
187
|
+
exactOptional() {
|
|
188
|
+
return exactOptional(this);
|
|
189
|
+
},
|
|
190
|
+
nullable() {
|
|
191
|
+
return nullable(this);
|
|
192
|
+
},
|
|
193
|
+
nullish() {
|
|
194
|
+
return optional(nullable(this));
|
|
195
|
+
},
|
|
196
|
+
nonoptional(params) {
|
|
197
|
+
return nonoptional(this, params);
|
|
198
|
+
},
|
|
199
|
+
array() {
|
|
200
|
+
return array(this);
|
|
201
|
+
},
|
|
202
|
+
or(arg) {
|
|
203
|
+
return union([this, arg]);
|
|
204
|
+
},
|
|
205
|
+
and(arg) {
|
|
206
|
+
return intersection(this, arg);
|
|
207
|
+
},
|
|
208
|
+
transform(tx) {
|
|
209
|
+
return pipe(this, transform(tx));
|
|
210
|
+
},
|
|
211
|
+
default(d) {
|
|
212
|
+
return _default(this, d);
|
|
213
|
+
},
|
|
214
|
+
prefault(d) {
|
|
215
|
+
return prefault(this, d);
|
|
216
|
+
},
|
|
217
|
+
catch(params) {
|
|
218
|
+
return _catch(this, params);
|
|
219
|
+
},
|
|
220
|
+
pipe(target) {
|
|
221
|
+
return pipe(this, target);
|
|
222
|
+
},
|
|
223
|
+
readonly() {
|
|
224
|
+
return readonly(this);
|
|
225
|
+
},
|
|
226
|
+
describe(description) {
|
|
227
|
+
const cl = this.clone();
|
|
228
|
+
core.globalRegistry.add(cl, { description });
|
|
229
|
+
return cl;
|
|
230
|
+
},
|
|
231
|
+
meta(...args) {
|
|
232
|
+
// overloaded: meta() returns the registered metadata, meta(data) returns a clone with `data` registered. The mapped type picks up the second overload, so we accept variadic any-args and return `any` to satisfy both at runtime.
|
|
233
|
+
if (args.length === 0)
|
|
234
|
+
return core.globalRegistry.get(this);
|
|
235
|
+
const cl = this.clone();
|
|
236
|
+
core.globalRegistry.add(cl, args[0]);
|
|
237
|
+
return cl;
|
|
238
|
+
},
|
|
239
|
+
isOptional() {
|
|
240
|
+
return this.safeParse(undefined).success;
|
|
241
|
+
},
|
|
242
|
+
isNullable() {
|
|
243
|
+
return this.safeParse(null).success;
|
|
244
|
+
},
|
|
245
|
+
apply(fn, ...args) {
|
|
246
|
+
return args.length === 0 ? fn(this) : fn(this, ...args);
|
|
247
|
+
},
|
|
248
|
+
// Overrides core's `~standard` to add `jsonSchema`. Must stay a prototype entry: redefining it per instance demotes instances to dictionary mode.
|
|
249
|
+
get "~standard"() {
|
|
250
|
+
return index_js_1.util.hide(this, "~standard", {
|
|
251
|
+
...core.standardProps(this),
|
|
252
|
+
jsonSchema: {
|
|
253
|
+
input: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(this, "input"),
|
|
254
|
+
output: (0, to_json_schema_js_1.createStandardJSONSchemaMethod)(this, "output"),
|
|
255
|
+
},
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
set "~standard"(value) {
|
|
259
|
+
index_js_1.util.own(this, "~standard", value);
|
|
260
|
+
},
|
|
261
|
+
parse: function _parse(data, params) {
|
|
262
|
+
return parse.parse(this, data, params, { callee: _parse });
|
|
263
|
+
},
|
|
264
|
+
parseAsync: async function _parseAsync(data, params) {
|
|
265
|
+
return await parse.parseAsync(this, data, params, { callee: _parseAsync });
|
|
266
|
+
},
|
|
267
|
+
safeParse(data, params) {
|
|
268
|
+
return parse.safeParse(this, data, params);
|
|
269
|
+
},
|
|
270
|
+
async safeParseAsync(data, params) {
|
|
271
|
+
return parse.safeParseAsync(this, data, params);
|
|
272
|
+
},
|
|
273
|
+
// `spa` is an alias: same function object as `safeParseAsync`, as before.
|
|
274
|
+
get spa() {
|
|
275
|
+
return this?.safeParseAsync;
|
|
276
|
+
},
|
|
277
|
+
set spa(value) {
|
|
278
|
+
index_js_1.util.own(this, "spa", value);
|
|
279
|
+
},
|
|
280
|
+
validate(data, params) {
|
|
281
|
+
return parse.validate(this, data, params);
|
|
282
|
+
},
|
|
283
|
+
validateAsync(data, params) {
|
|
284
|
+
return parse.validateAsync(this, data, params);
|
|
285
|
+
},
|
|
286
|
+
encode: function _encode(data, params) {
|
|
287
|
+
return parse.encode(this, data, params, { callee: _encode });
|
|
288
|
+
},
|
|
289
|
+
decode: function _decode(data, params) {
|
|
290
|
+
return parse.decode(this, data, params, { callee: _decode });
|
|
291
|
+
},
|
|
292
|
+
encodeAsync: async function _encodeAsync(data, params) {
|
|
293
|
+
return await parse.encodeAsync(this, data, params, { callee: _encodeAsync });
|
|
294
|
+
},
|
|
295
|
+
decodeAsync: async function _decodeAsync(data, params) {
|
|
296
|
+
return await parse.decodeAsync(this, data, params, { callee: _decodeAsync });
|
|
297
|
+
},
|
|
298
|
+
safeEncode(data, params) {
|
|
299
|
+
return parse.safeEncode(this, data, params);
|
|
300
|
+
},
|
|
301
|
+
safeDecode(data, params) {
|
|
302
|
+
return parse.safeDecode(this, data, params);
|
|
303
|
+
},
|
|
304
|
+
async safeEncodeAsync(data, params) {
|
|
305
|
+
return parse.safeEncodeAsync(this, data, params);
|
|
306
|
+
},
|
|
307
|
+
async safeDecodeAsync(data, params) {
|
|
308
|
+
return parse.safeDecodeAsync(this, data, params);
|
|
309
|
+
},
|
|
310
|
+
toJSONSchema(params) {
|
|
311
|
+
return (0, to_json_schema_js_1.createToJSONSchemaMethod)(this, {})(params);
|
|
312
|
+
},
|
|
313
|
+
// Reads through to the registry on every access, so it must not cache.
|
|
314
|
+
get description() {
|
|
315
|
+
return core.globalRegistry.get(this)?.description;
|
|
316
|
+
},
|
|
317
|
+
// No setter: `schema._def = x` throws, as it did when `_def` was a non-writable own property.
|
|
318
|
+
get _def() {
|
|
319
|
+
return this._zod.def;
|
|
320
|
+
},
|
|
321
321
|
});
|
|
322
322
|
/** @internal */
|
|
323
323
|
exports._ZodString = core.$constructor("_ZodString", (inst, def) => {
|
|
324
324
|
core.$ZodString.init(inst, def);
|
|
325
325
|
exports.ZodType.init(inst, def);
|
|
326
326
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.stringProcessor(inst, ctx, json, params);
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
inst
|
|
330
|
-
inst
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
378
|
-
});
|
|
327
|
+
},
|
|
328
|
+
/*@__PURE__*/ index_js_1.util.derived({
|
|
329
|
+
format: (inst) => processors.aggregateChecks(inst).format ?? null,
|
|
330
|
+
minLength: (inst) => processors.aggregateChecks(inst).minimum ?? null,
|
|
331
|
+
maxLength: (inst) => processors.aggregateChecks(inst).maximum ?? null,
|
|
332
|
+
}, {
|
|
333
|
+
regex(...args) {
|
|
334
|
+
return this.check(checks.regex(...args));
|
|
335
|
+
},
|
|
336
|
+
includes(...args) {
|
|
337
|
+
return this.check(checks.includes(...args));
|
|
338
|
+
},
|
|
339
|
+
startsWith(...args) {
|
|
340
|
+
return this.check(checks.startsWith(...args));
|
|
341
|
+
},
|
|
342
|
+
endsWith(...args) {
|
|
343
|
+
return this.check(checks.endsWith(...args));
|
|
344
|
+
},
|
|
345
|
+
min(...args) {
|
|
346
|
+
return this.check(checks.minLength(...args));
|
|
347
|
+
},
|
|
348
|
+
max(...args) {
|
|
349
|
+
return this.check(checks.maxLength(...args));
|
|
350
|
+
},
|
|
351
|
+
length(...args) {
|
|
352
|
+
return this.check(checks.length(...args));
|
|
353
|
+
},
|
|
354
|
+
nonempty(...args) {
|
|
355
|
+
return this.check(checks.minLength(1, ...args));
|
|
356
|
+
},
|
|
357
|
+
lowercase(params) {
|
|
358
|
+
return this.check(checks.lowercase(params));
|
|
359
|
+
},
|
|
360
|
+
uppercase(params) {
|
|
361
|
+
return this.check(checks.uppercase(params));
|
|
362
|
+
},
|
|
363
|
+
trim() {
|
|
364
|
+
return this.check(checks.trim());
|
|
365
|
+
},
|
|
366
|
+
normalize(...args) {
|
|
367
|
+
return this.check(checks.normalize(...args));
|
|
368
|
+
},
|
|
369
|
+
toLowerCase() {
|
|
370
|
+
return this.check(checks.toLowerCase());
|
|
371
|
+
},
|
|
372
|
+
toUpperCase() {
|
|
373
|
+
return this.check(checks.toUpperCase());
|
|
374
|
+
},
|
|
375
|
+
slugify() {
|
|
376
|
+
return this.check(checks.slugify());
|
|
377
|
+
},
|
|
378
|
+
}));
|
|
379
379
|
exports.ZodString = core.$constructor("ZodString", (inst, def) => {
|
|
380
380
|
core.$ZodString.init(inst, def);
|
|
381
381
|
exports._ZodString.init(inst, def);
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
382
|
+
}, {
|
|
383
|
+
email(params) {
|
|
384
|
+
return this.check(core._email(exports.ZodEmail, params));
|
|
385
|
+
},
|
|
386
|
+
url(params) {
|
|
387
|
+
return this.check(core._url(exports.ZodURL, params));
|
|
388
|
+
},
|
|
389
|
+
jwt(params) {
|
|
390
|
+
return this.check(core._jwt(exports.ZodJWT, params));
|
|
391
|
+
},
|
|
392
|
+
emoji(params) {
|
|
393
|
+
return this.check(core._emoji(exports.ZodEmoji, params));
|
|
394
|
+
},
|
|
395
|
+
guid(params) {
|
|
396
|
+
return this.check(core._guid(exports.ZodGUID, params));
|
|
397
|
+
},
|
|
398
|
+
uuid(params) {
|
|
399
|
+
return this.check(core._uuid(exports.ZodUUID, params));
|
|
400
|
+
},
|
|
401
|
+
uuidv4(params) {
|
|
402
|
+
return this.check(core._uuidv4(exports.ZodUUID, params));
|
|
403
|
+
},
|
|
404
|
+
uuidv6(params) {
|
|
405
|
+
return this.check(core._uuidv6(exports.ZodUUID, params));
|
|
406
|
+
},
|
|
407
|
+
uuidv7(params) {
|
|
408
|
+
return this.check(core._uuidv7(exports.ZodUUID, params));
|
|
409
|
+
},
|
|
410
|
+
nanoid(params) {
|
|
411
|
+
return this.check(core._nanoid(exports.ZodNanoID, params));
|
|
412
|
+
},
|
|
413
|
+
cuid(params) {
|
|
414
|
+
return this.check(core._cuid(exports.ZodCUID, params));
|
|
415
|
+
},
|
|
416
|
+
cuid2(params) {
|
|
417
|
+
return this.check(core._cuid2(exports.ZodCUID2, params));
|
|
418
|
+
},
|
|
419
|
+
ulid(params) {
|
|
420
|
+
return this.check(core._ulid(exports.ZodULID, params));
|
|
421
|
+
},
|
|
422
|
+
base64(params) {
|
|
423
|
+
return this.check(core._base64(exports.ZodBase64, params));
|
|
424
|
+
},
|
|
425
|
+
base64url(params) {
|
|
426
|
+
return this.check(core._base64url(exports.ZodBase64URL, params));
|
|
427
|
+
},
|
|
428
|
+
xid(params) {
|
|
429
|
+
return this.check(core._xid(exports.ZodXID, params));
|
|
430
|
+
},
|
|
431
|
+
ksuid(params) {
|
|
432
|
+
return this.check(core._ksuid(exports.ZodKSUID, params));
|
|
433
|
+
},
|
|
434
|
+
ipv4(params) {
|
|
435
|
+
return this.check(core._ipv4(exports.ZodIPv4, params));
|
|
436
|
+
},
|
|
437
|
+
ipv6(params) {
|
|
438
|
+
return this.check(core._ipv6(exports.ZodIPv6, params));
|
|
439
|
+
},
|
|
440
|
+
cidrv4(params) {
|
|
441
|
+
return this.check(core._cidrv4(exports.ZodCIDRv4, params));
|
|
442
|
+
},
|
|
443
|
+
cidrv6(params) {
|
|
444
|
+
return this.check(core._cidrv6(exports.ZodCIDRv6, params));
|
|
445
|
+
},
|
|
446
|
+
e164(params) {
|
|
447
|
+
return this.check(core._e164(exports.ZodE164, params));
|
|
448
|
+
},
|
|
449
|
+
datetime(params) {
|
|
450
|
+
return this.check(core._isoDateTime(exports.ZodISODateTime, params));
|
|
451
|
+
},
|
|
452
|
+
date(params) {
|
|
453
|
+
return this.check(core._isoDate(exports.ZodISODate, params));
|
|
454
|
+
},
|
|
455
|
+
time(params) {
|
|
456
|
+
return this.check(core._isoTime(exports.ZodISOTime, params));
|
|
457
|
+
},
|
|
458
|
+
duration(params) {
|
|
459
|
+
return this.check(core._isoDuration(exports.ZodISODuration, params));
|
|
460
|
+
},
|
|
410
461
|
});
|
|
411
462
|
function string(params) {
|
|
412
463
|
return core._string(exports.ZodString, params);
|
|
@@ -415,6 +466,22 @@ exports.ZodStringFormat = core.$constructor("ZodStringFormat", (inst, def) => {
|
|
|
415
466
|
core.$ZodStringFormat.init(inst, def);
|
|
416
467
|
exports._ZodString.init(inst, def);
|
|
417
468
|
});
|
|
469
|
+
exports.ZodISODateTime = core.$constructor("ZodISODateTime", (inst, def) => {
|
|
470
|
+
core.$ZodISODateTime.init(inst, def);
|
|
471
|
+
exports.ZodStringFormat.init(inst, def);
|
|
472
|
+
});
|
|
473
|
+
exports.ZodISODate = core.$constructor("ZodISODate", (inst, def) => {
|
|
474
|
+
core.$ZodISODate.init(inst, def);
|
|
475
|
+
exports.ZodStringFormat.init(inst, def);
|
|
476
|
+
});
|
|
477
|
+
exports.ZodISOTime = core.$constructor("ZodISOTime", (inst, def) => {
|
|
478
|
+
core.$ZodISOTime.init(inst, def);
|
|
479
|
+
exports.ZodStringFormat.init(inst, def);
|
|
480
|
+
});
|
|
481
|
+
exports.ZodISODuration = core.$constructor("ZodISODuration", (inst, def) => {
|
|
482
|
+
core.$ZodISODuration.init(inst, def);
|
|
483
|
+
exports.ZodStringFormat.init(inst, def);
|
|
484
|
+
});
|
|
418
485
|
exports.ZodEmail = core.$constructor("ZodEmail", (inst, def) => {
|
|
419
486
|
// ZodStringFormat.init(inst, def);
|
|
420
487
|
core.$ZodEmail.init(inst, def);
|
|
@@ -595,6 +662,20 @@ exports.ZodE164 = core.$constructor("ZodE164", (inst, def) => {
|
|
|
595
662
|
function e164(params) {
|
|
596
663
|
return core._e164(exports.ZodE164, params);
|
|
597
664
|
}
|
|
665
|
+
exports.ZodCreditCard = core.$constructor("ZodCreditCard", (inst, def) => {
|
|
666
|
+
core.$ZodCreditCard.init(inst, def);
|
|
667
|
+
exports.ZodStringFormat.init(inst, def);
|
|
668
|
+
});
|
|
669
|
+
function creditCard(params) {
|
|
670
|
+
return core._creditCard(exports.ZodCreditCard, params);
|
|
671
|
+
}
|
|
672
|
+
exports.ZodIBAN = core.$constructor("ZodIBAN", (inst, def) => {
|
|
673
|
+
core.$ZodIBAN.init(inst, def);
|
|
674
|
+
exports.ZodStringFormat.init(inst, def);
|
|
675
|
+
});
|
|
676
|
+
function iban(params) {
|
|
677
|
+
return core._iban(exports.ZodIBAN, params);
|
|
678
|
+
}
|
|
598
679
|
exports.ZodJWT = core.$constructor("ZodJWT", (inst, def) => {
|
|
599
680
|
// ZodStringFormat.init(inst, def);
|
|
600
681
|
core.$ZodJWT.init(inst, def);
|
|
@@ -629,62 +710,69 @@ exports.ZodNumber = core.$constructor("ZodNumber", (inst, def) => {
|
|
|
629
710
|
core.$ZodNumber.init(inst, def);
|
|
630
711
|
exports.ZodType.init(inst, def);
|
|
631
712
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.numberProcessor(inst, ctx, json, params);
|
|
632
|
-
_installLazyMethods(inst, "ZodNumber", {
|
|
633
|
-
gt(value, params) {
|
|
634
|
-
return this.check(checks.gt(value, params));
|
|
635
|
-
},
|
|
636
|
-
gte(value, params) {
|
|
637
|
-
return this.check(checks.gte(value, params));
|
|
638
|
-
},
|
|
639
|
-
min(value, params) {
|
|
640
|
-
return this.check(checks.gte(value, params));
|
|
641
|
-
},
|
|
642
|
-
lt(value, params) {
|
|
643
|
-
return this.check(checks.lt(value, params));
|
|
644
|
-
},
|
|
645
|
-
lte(value, params) {
|
|
646
|
-
return this.check(checks.lte(value, params));
|
|
647
|
-
},
|
|
648
|
-
max(value, params) {
|
|
649
|
-
return this.check(checks.lte(value, params));
|
|
650
|
-
},
|
|
651
|
-
int(params) {
|
|
652
|
-
return this.check(int(params));
|
|
653
|
-
},
|
|
654
|
-
safe(params) {
|
|
655
|
-
return this.check(int(params));
|
|
656
|
-
},
|
|
657
|
-
positive(params) {
|
|
658
|
-
return this.check(checks.gt(0, params));
|
|
659
|
-
},
|
|
660
|
-
nonnegative(params) {
|
|
661
|
-
return this.check(checks.gte(0, params));
|
|
662
|
-
},
|
|
663
|
-
negative(params) {
|
|
664
|
-
return this.check(checks.lt(0, params));
|
|
665
|
-
},
|
|
666
|
-
nonpositive(params) {
|
|
667
|
-
return this.check(checks.lte(0, params));
|
|
668
|
-
},
|
|
669
|
-
multipleOf(value, params) {
|
|
670
|
-
return this.check(checks.multipleOf(value, params));
|
|
671
|
-
},
|
|
672
|
-
step(value, params) {
|
|
673
|
-
return this.check(checks.multipleOf(value, params));
|
|
674
|
-
},
|
|
675
|
-
finite() {
|
|
676
|
-
return this;
|
|
677
|
-
},
|
|
678
|
-
});
|
|
679
|
-
const bag = inst._zod.bag;
|
|
680
|
-
inst.minValue =
|
|
681
|
-
Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
682
|
-
inst.maxValue =
|
|
683
|
-
Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
684
|
-
inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? 0.5);
|
|
685
713
|
inst.isFinite = true;
|
|
686
|
-
|
|
687
|
-
|
|
714
|
+
},
|
|
715
|
+
/*@__PURE__*/ index_js_1.util.derived({
|
|
716
|
+
minValue: (inst) => {
|
|
717
|
+
const { minimum, exclusiveMinimum } = processors.aggregateChecks(inst);
|
|
718
|
+
return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY);
|
|
719
|
+
},
|
|
720
|
+
maxValue: (inst) => {
|
|
721
|
+
const { maximum, exclusiveMaximum } = processors.aggregateChecks(inst);
|
|
722
|
+
return Math.min(maximum ?? Number.POSITIVE_INFINITY, exclusiveMaximum ?? Number.POSITIVE_INFINITY);
|
|
723
|
+
},
|
|
724
|
+
isInt: (inst) => {
|
|
725
|
+
const { isInt, multipleOf } = processors.aggregateChecks(inst);
|
|
726
|
+
return !!isInt || !!multipleOf?.some(Number.isSafeInteger);
|
|
727
|
+
},
|
|
728
|
+
format: (inst) => processors.aggregateChecks(inst).format ?? null,
|
|
729
|
+
}, {
|
|
730
|
+
gt(value, params) {
|
|
731
|
+
return this.check(checks.gt(value, params));
|
|
732
|
+
},
|
|
733
|
+
gte(value, params) {
|
|
734
|
+
return this.check(checks.gte(value, params));
|
|
735
|
+
},
|
|
736
|
+
min(value, params) {
|
|
737
|
+
return this.check(checks.gte(value, params));
|
|
738
|
+
},
|
|
739
|
+
lt(value, params) {
|
|
740
|
+
return this.check(checks.lt(value, params));
|
|
741
|
+
},
|
|
742
|
+
lte(value, params) {
|
|
743
|
+
return this.check(checks.lte(value, params));
|
|
744
|
+
},
|
|
745
|
+
max(value, params) {
|
|
746
|
+
return this.check(checks.lte(value, params));
|
|
747
|
+
},
|
|
748
|
+
int(params) {
|
|
749
|
+
return this.check(int(params));
|
|
750
|
+
},
|
|
751
|
+
safe(params) {
|
|
752
|
+
return this.check(int(params));
|
|
753
|
+
},
|
|
754
|
+
positive(params) {
|
|
755
|
+
return this.check(checks.gt(0, params));
|
|
756
|
+
},
|
|
757
|
+
nonnegative(params) {
|
|
758
|
+
return this.check(checks.gte(0, params));
|
|
759
|
+
},
|
|
760
|
+
negative(params) {
|
|
761
|
+
return this.check(checks.lt(0, params));
|
|
762
|
+
},
|
|
763
|
+
nonpositive(params) {
|
|
764
|
+
return this.check(checks.lte(0, params));
|
|
765
|
+
},
|
|
766
|
+
multipleOf(value, params) {
|
|
767
|
+
return this.check(checks.multipleOf(value, params));
|
|
768
|
+
},
|
|
769
|
+
step(value, params) {
|
|
770
|
+
return this.check(checks.multipleOf(value, params));
|
|
771
|
+
},
|
|
772
|
+
finite() {
|
|
773
|
+
return this;
|
|
774
|
+
},
|
|
775
|
+
}));
|
|
688
776
|
function number(params) {
|
|
689
777
|
return core._number(exports.ZodNumber, params);
|
|
690
778
|
}
|
|
@@ -719,24 +807,46 @@ exports.ZodBigInt = core.$constructor("ZodBigInt", (inst, def) => {
|
|
|
719
807
|
core.$ZodBigInt.init(inst, def);
|
|
720
808
|
exports.ZodType.init(inst, def);
|
|
721
809
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.bigintProcessor(inst, ctx, json, params);
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
810
|
+
},
|
|
811
|
+
/*@__PURE__*/ index_js_1.util.derived({
|
|
812
|
+
minValue: (inst) => processors.aggregateChecks(inst).minimum ?? null,
|
|
813
|
+
maxValue: (inst) => processors.aggregateChecks(inst).maximum ?? null,
|
|
814
|
+
format: (inst) => processors.aggregateChecks(inst).format ?? null,
|
|
815
|
+
}, {
|
|
816
|
+
gte(value, params) {
|
|
817
|
+
return this.check(checks.gte(value, params));
|
|
818
|
+
},
|
|
819
|
+
min(value, params) {
|
|
820
|
+
return this.check(checks.gte(value, params));
|
|
821
|
+
},
|
|
822
|
+
gt(value, params) {
|
|
823
|
+
return this.check(checks.gt(value, params));
|
|
824
|
+
},
|
|
825
|
+
lt(value, params) {
|
|
826
|
+
return this.check(checks.lt(value, params));
|
|
827
|
+
},
|
|
828
|
+
lte(value, params) {
|
|
829
|
+
return this.check(checks.lte(value, params));
|
|
830
|
+
},
|
|
831
|
+
max(value, params) {
|
|
832
|
+
return this.check(checks.lte(value, params));
|
|
833
|
+
},
|
|
834
|
+
positive(params) {
|
|
835
|
+
return this.check(checks.gt(BigInt(0), params));
|
|
836
|
+
},
|
|
837
|
+
negative(params) {
|
|
838
|
+
return this.check(checks.lt(BigInt(0), params));
|
|
839
|
+
},
|
|
840
|
+
nonpositive(params) {
|
|
841
|
+
return this.check(checks.lte(BigInt(0), params));
|
|
842
|
+
},
|
|
843
|
+
nonnegative(params) {
|
|
844
|
+
return this.check(checks.gte(BigInt(0), params));
|
|
845
|
+
},
|
|
846
|
+
multipleOf(value, params) {
|
|
847
|
+
return this.check(checks.multipleOf(value, params));
|
|
848
|
+
},
|
|
849
|
+
}));
|
|
740
850
|
function bigint(params) {
|
|
741
851
|
return core._bigint(exports.ZodBigInt, params);
|
|
742
852
|
}
|
|
@@ -744,11 +854,9 @@ exports.ZodBigIntFormat = core.$constructor("ZodBigIntFormat", (inst, def) => {
|
|
|
744
854
|
core.$ZodBigIntFormat.init(inst, def);
|
|
745
855
|
exports.ZodBigInt.init(inst, def);
|
|
746
856
|
});
|
|
747
|
-
// int64
|
|
748
857
|
function int64(params) {
|
|
749
858
|
return core._int64(exports.ZodBigIntFormat, params);
|
|
750
859
|
}
|
|
751
|
-
// uint64
|
|
752
860
|
function uint64(params) {
|
|
753
861
|
return core._uint64(exports.ZodBigIntFormat, params);
|
|
754
862
|
}
|
|
@@ -814,35 +922,42 @@ exports.ZodDate = core.$constructor("ZodDate", (inst, def) => {
|
|
|
814
922
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.dateProcessor(inst, ctx, json, params);
|
|
815
923
|
inst.min = (value, params) => inst.check(checks.gte(value, params));
|
|
816
924
|
inst.max = (value, params) => inst.check(checks.lte(value, params));
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
});
|
|
925
|
+
},
|
|
926
|
+
/*@__PURE__*/ index_js_1.util.derived({
|
|
927
|
+
minDate: (inst) => {
|
|
928
|
+
const { minimum } = processors.aggregateChecks(inst);
|
|
929
|
+
return minimum ? new Date(minimum) : null;
|
|
930
|
+
},
|
|
931
|
+
maxDate: (inst) => {
|
|
932
|
+
const { maximum } = processors.aggregateChecks(inst);
|
|
933
|
+
return maximum ? new Date(maximum) : null;
|
|
934
|
+
},
|
|
935
|
+
}, {}));
|
|
821
936
|
function date(params) {
|
|
822
937
|
return core._date(exports.ZodDate, params);
|
|
823
938
|
}
|
|
824
939
|
exports.ZodArray = core.$constructor("ZodArray", (inst, def) => {
|
|
940
|
+
_ensureDefaultMemoizer();
|
|
825
941
|
core.$ZodArray.init(inst, def);
|
|
826
942
|
exports.ZodType.init(inst, def);
|
|
827
943
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.arrayProcessor(inst, ctx, json, params);
|
|
828
944
|
inst.element = def.element;
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
});
|
|
945
|
+
}, {
|
|
946
|
+
min(n, params) {
|
|
947
|
+
return this.check(checks.minLength(n, params));
|
|
948
|
+
},
|
|
949
|
+
nonempty(params) {
|
|
950
|
+
return this.check(checks.minLength(1, params));
|
|
951
|
+
},
|
|
952
|
+
max(n, params) {
|
|
953
|
+
return this.check(checks.maxLength(n, params));
|
|
954
|
+
},
|
|
955
|
+
length(n, params) {
|
|
956
|
+
return this.check(checks.length(n, params));
|
|
957
|
+
},
|
|
958
|
+
unwrap() {
|
|
959
|
+
return this.element;
|
|
960
|
+
},
|
|
846
961
|
});
|
|
847
962
|
function array(element, params) {
|
|
848
963
|
return core._array(exports.ZodArray, element, params);
|
|
@@ -853,53 +968,55 @@ function keyof(schema) {
|
|
|
853
968
|
return _enum(Object.keys(shape));
|
|
854
969
|
}
|
|
855
970
|
exports.ZodObject = core.$constructor("ZodObject", (inst, def) => {
|
|
971
|
+
_ensureDefaultMemoizer();
|
|
856
972
|
core.$ZodObjectJIT.init(inst, def);
|
|
857
973
|
exports.ZodType.init(inst, def);
|
|
858
974
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.objectProcessor(inst, ctx, json, params);
|
|
859
|
-
index_js_1.util.
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
extend(incoming)
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
safeExtend(incoming)
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
merge(other)
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
pick(mask)
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
omit(mask)
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
partial(
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
975
|
+
index_js_1.util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
|
|
976
|
+
}, {
|
|
977
|
+
keyof() {
|
|
978
|
+
return _enum(Object.keys(this._zod.def.shape));
|
|
979
|
+
},
|
|
980
|
+
catchall(catchall) {
|
|
981
|
+
// `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree
|
|
982
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: catchall }));
|
|
983
|
+
},
|
|
984
|
+
passthrough() {
|
|
985
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: unknown() }));
|
|
986
|
+
},
|
|
987
|
+
loose() {
|
|
988
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: unknown() }));
|
|
989
|
+
},
|
|
990
|
+
strict() {
|
|
991
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: never() }));
|
|
992
|
+
},
|
|
993
|
+
strip() {
|
|
994
|
+
return this.clone(index_js_1.util.mergeDefs(this._zod.def, { catchall: undefined }));
|
|
995
|
+
},
|
|
996
|
+
extend(incoming) {
|
|
997
|
+
return index_js_1.util.extend(this, incoming);
|
|
998
|
+
},
|
|
999
|
+
safeExtend(incoming) {
|
|
1000
|
+
return index_js_1.util.safeExtend(this, incoming);
|
|
1001
|
+
},
|
|
1002
|
+
merge(other) {
|
|
1003
|
+
return index_js_1.util.merge(this, other);
|
|
1004
|
+
},
|
|
1005
|
+
pick(mask) {
|
|
1006
|
+
return index_js_1.util.pick(this, mask);
|
|
1007
|
+
},
|
|
1008
|
+
omit(mask) {
|
|
1009
|
+
return index_js_1.util.omit(this, mask);
|
|
1010
|
+
},
|
|
1011
|
+
partial(...args) {
|
|
1012
|
+
return index_js_1.util.partial(exports.ZodOptional, this, args[0]);
|
|
1013
|
+
},
|
|
1014
|
+
exactPartial(...args) {
|
|
1015
|
+
return index_js_1.util.partial(exports.ZodExactOptional, this, args[0], "exactPartial");
|
|
1016
|
+
},
|
|
1017
|
+
required(...args) {
|
|
1018
|
+
return index_js_1.util.required(exports.ZodNonOptional, this, args[0]);
|
|
1019
|
+
},
|
|
903
1020
|
});
|
|
904
1021
|
function object(shape, params) {
|
|
905
1022
|
const def = {
|
|
@@ -965,7 +1082,7 @@ function discriminatedUnion(discriminator, options, params) {
|
|
|
965
1082
|
// const [options, params] = args;
|
|
966
1083
|
return new exports.ZodDiscriminatedUnion({
|
|
967
1084
|
type: "union",
|
|
968
|
-
options,
|
|
1085
|
+
options: options,
|
|
969
1086
|
discriminator,
|
|
970
1087
|
...index_js_1.util.normalizeParams(params),
|
|
971
1088
|
});
|
|
@@ -983,13 +1100,27 @@ function intersection(left, right) {
|
|
|
983
1100
|
});
|
|
984
1101
|
}
|
|
985
1102
|
exports.ZodTuple = core.$constructor("ZodTuple", (inst, def) => {
|
|
1103
|
+
_ensureDefaultMemoizer();
|
|
986
1104
|
core.$ZodTuple.init(inst, def);
|
|
987
1105
|
exports.ZodType.init(inst, def);
|
|
988
1106
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.tupleProcessor(inst, ctx, json, params);
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1107
|
+
}, {
|
|
1108
|
+
rest(rest) {
|
|
1109
|
+
return this.clone({
|
|
1110
|
+
...this._zod.def,
|
|
1111
|
+
rest: rest,
|
|
1112
|
+
});
|
|
1113
|
+
},
|
|
1114
|
+
partial() {
|
|
1115
|
+
const def = this._zod.def;
|
|
1116
|
+
// a refinement was authored against the full arity; partialing would run it on a shorter array
|
|
1117
|
+
if (def.checks?.length)
|
|
1118
|
+
throw new Error(".partial() cannot be used on tuple schemas containing refinements");
|
|
1119
|
+
return this.clone({
|
|
1120
|
+
...def,
|
|
1121
|
+
items: def.items.map((item) => new exports.ZodOptional({ type: "optional", innerType: item })),
|
|
1122
|
+
});
|
|
1123
|
+
},
|
|
993
1124
|
});
|
|
994
1125
|
function tuple(items, _paramsOrRest, _params) {
|
|
995
1126
|
const hasRest = _paramsOrRest instanceof core.$ZodType;
|
|
@@ -1003,6 +1134,7 @@ function tuple(items, _paramsOrRest, _params) {
|
|
|
1003
1134
|
});
|
|
1004
1135
|
}
|
|
1005
1136
|
exports.ZodRecord = core.$constructor("ZodRecord", (inst, def) => {
|
|
1137
|
+
_ensureDefaultMemoizer();
|
|
1006
1138
|
core.$ZodRecord.init(inst, def);
|
|
1007
1139
|
exports.ZodType.init(inst, def);
|
|
1008
1140
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.recordProcessor(inst, ctx, json, params);
|
|
@@ -1028,13 +1160,12 @@ function record(keyType, valueType, params) {
|
|
|
1028
1160
|
}
|
|
1029
1161
|
// type alksjf = core.output<core.$ZodRecordKey>;
|
|
1030
1162
|
function partialRecord(keyType, valueType, params) {
|
|
1031
|
-
const k = core.clone(keyType);
|
|
1032
|
-
k._zod.values = undefined;
|
|
1033
1163
|
return new exports.ZodRecord({
|
|
1034
1164
|
type: "record",
|
|
1035
|
-
keyType
|
|
1165
|
+
keyType,
|
|
1036
1166
|
valueType: valueType,
|
|
1037
1167
|
...index_js_1.util.normalizeParams(params),
|
|
1168
|
+
partial: true,
|
|
1038
1169
|
});
|
|
1039
1170
|
}
|
|
1040
1171
|
function looseRecord(keyType, valueType, params) {
|
|
@@ -1047,6 +1178,7 @@ function looseRecord(keyType, valueType, params) {
|
|
|
1047
1178
|
});
|
|
1048
1179
|
}
|
|
1049
1180
|
exports.ZodMap = core.$constructor("ZodMap", (inst, def) => {
|
|
1181
|
+
_ensureDefaultMemoizer();
|
|
1050
1182
|
core.$ZodMap.init(inst, def);
|
|
1051
1183
|
exports.ZodType.init(inst, def);
|
|
1052
1184
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.mapProcessor(inst, ctx, json, params);
|
|
@@ -1066,6 +1198,7 @@ function map(keyType, valueType, params) {
|
|
|
1066
1198
|
});
|
|
1067
1199
|
}
|
|
1068
1200
|
exports.ZodSet = core.$constructor("ZodSet", (inst, def) => {
|
|
1201
|
+
_ensureDefaultMemoizer();
|
|
1069
1202
|
core.$ZodSet.init(inst, def);
|
|
1070
1203
|
exports.ZodType.init(inst, def);
|
|
1071
1204
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.setProcessor(inst, ctx, json, params);
|
|
@@ -1086,7 +1219,8 @@ exports.ZodEnum = core.$constructor("ZodEnum", (inst, def) => {
|
|
|
1086
1219
|
exports.ZodType.init(inst, def);
|
|
1087
1220
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.enumProcessor(inst, ctx, json, params);
|
|
1088
1221
|
inst.enum = def.entries;
|
|
1089
|
-
|
|
1222
|
+
// reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out
|
|
1223
|
+
inst.options = [...inst._zod.values];
|
|
1090
1224
|
const keys = new Set(Object.keys(def.entries));
|
|
1091
1225
|
inst.extract = (values, params) => {
|
|
1092
1226
|
const newEntries = {};
|
|
@@ -1176,6 +1310,7 @@ function file(params) {
|
|
|
1176
1310
|
return core._file(exports.ZodFile, params);
|
|
1177
1311
|
}
|
|
1178
1312
|
exports.ZodTransform = core.$constructor("ZodTransform", (inst, def) => {
|
|
1313
|
+
_ensureDefaultMemoizer();
|
|
1179
1314
|
core.$ZodTransform.init(inst, def);
|
|
1180
1315
|
exports.ZodType.init(inst, def);
|
|
1181
1316
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.transformProcessor(inst, ctx, json, params);
|
|
@@ -1193,7 +1328,8 @@ exports.ZodTransform = core.$constructor("ZodTransform", (inst, def) => {
|
|
|
1193
1328
|
if (_issue.fatal)
|
|
1194
1329
|
_issue.continue = false;
|
|
1195
1330
|
_issue.code ?? (_issue.code = "custom");
|
|
1196
|
-
|
|
1331
|
+
if (!("input" in _issue))
|
|
1332
|
+
_issue.input = payload.value;
|
|
1197
1333
|
_issue.inst ?? (_issue.inst = inst);
|
|
1198
1334
|
// _issue.continue ??= true;
|
|
1199
1335
|
payload.issues.push(index_js_1.util.issue(_issue));
|
|
@@ -1203,12 +1339,10 @@ exports.ZodTransform = core.$constructor("ZodTransform", (inst, def) => {
|
|
|
1203
1339
|
if (output instanceof Promise) {
|
|
1204
1340
|
return output.then((output) => {
|
|
1205
1341
|
payload.value = output;
|
|
1206
|
-
payload.fallback = true;
|
|
1207
1342
|
return payload;
|
|
1208
1343
|
});
|
|
1209
1344
|
}
|
|
1210
1345
|
payload.value = output;
|
|
1211
|
-
payload.fallback = true;
|
|
1212
1346
|
return payload;
|
|
1213
1347
|
};
|
|
1214
1348
|
});
|
|
@@ -1325,7 +1459,7 @@ function _catch(innerType, catchValue) {
|
|
|
1325
1459
|
return new exports.ZodCatch({
|
|
1326
1460
|
type: "catch",
|
|
1327
1461
|
innerType: innerType,
|
|
1328
|
-
catchValue: (typeof catchValue === "function" ? catchValue : (
|
|
1462
|
+
catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)),
|
|
1329
1463
|
});
|
|
1330
1464
|
}
|
|
1331
1465
|
exports.ZodNaN = core.$constructor("ZodNaN", (inst, def) => {
|
|
@@ -1443,6 +1577,14 @@ exports.ZodCustom = core.$constructor("ZodCustom", (inst, def) => {
|
|
|
1443
1577
|
exports.ZodType.init(inst, def);
|
|
1444
1578
|
inst._zod.processJSONSchema = (ctx, json, params) => processors.customProcessor(inst, ctx, json, params);
|
|
1445
1579
|
});
|
|
1580
|
+
exports.ZodProperties = core.$constructor("ZodProperties", (inst, def) => {
|
|
1581
|
+
_ensureDefaultMemoizer();
|
|
1582
|
+
core.$ZodProperties.init(inst, def);
|
|
1583
|
+
exports.ZodType.init(inst, def);
|
|
1584
|
+
});
|
|
1585
|
+
function properties(shape, params) {
|
|
1586
|
+
return core._properties(exports.ZodProperties, shape, params);
|
|
1587
|
+
}
|
|
1446
1588
|
// custom checks
|
|
1447
1589
|
function check(fn) {
|
|
1448
1590
|
const ch = new core.$ZodCheck({
|
|
@@ -1465,8 +1607,16 @@ function superRefine(fn, params) {
|
|
|
1465
1607
|
// Re-export describe and meta from core
|
|
1466
1608
|
exports.describe = core.describe;
|
|
1467
1609
|
exports.meta = core.meta;
|
|
1610
|
+
exports.ZodInstanceOf = core.$constructor("ZodInstanceOf", (inst, def) => {
|
|
1611
|
+
exports.ZodCustom.init(inst, def);
|
|
1612
|
+
}, {
|
|
1613
|
+
properties(shape, params) {
|
|
1614
|
+
// asserts in place, so the narrowed output type is truthful without a wrapper
|
|
1615
|
+
return this.check(properties(shape, params));
|
|
1616
|
+
},
|
|
1617
|
+
});
|
|
1468
1618
|
function _instanceof(cls, params = {}) {
|
|
1469
|
-
const inst = new exports.
|
|
1619
|
+
const inst = new exports.ZodInstanceOf({
|
|
1470
1620
|
type: "custom",
|
|
1471
1621
|
check: "custom",
|
|
1472
1622
|
fn: (data) => data instanceof cls,
|
|
@@ -1509,3 +1659,22 @@ function preprocess(fn, schema) {
|
|
|
1509
1659
|
out: schema,
|
|
1510
1660
|
});
|
|
1511
1661
|
}
|
|
1662
|
+
|
|
1663
|
+
// seal-cjs-exports
|
|
1664
|
+
(function () {
|
|
1665
|
+
var keys = Object.getOwnPropertyNames(exports);
|
|
1666
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1667
|
+
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
|
|
1668
|
+
if (!desc || !desc.get || !desc.configurable) continue;
|
|
1669
|
+
var value;
|
|
1670
|
+
try {
|
|
1671
|
+
value = desc.get();
|
|
1672
|
+
} catch (e) {
|
|
1673
|
+
continue;
|
|
1674
|
+
}
|
|
1675
|
+
// a circular require may not have settled this one yet, so leave it live
|
|
1676
|
+
if (value === undefined) continue;
|
|
1677
|
+
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
|
|
1678
|
+
}
|
|
1679
|
+
Object.freeze(exports);
|
|
1680
|
+
})();
|