@suveren/gateway 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/control-plane/index.mjs +182 -37
- package/dist/mcp-server/http.mjs +356 -72
- package/dist/ui/assets/index-CO-dj98E.js +123 -0
- package/dist/ui/assets/index-DM9WXky8.css +1 -0
- package/dist/ui/index.html +2 -2
- package/node_modules/@hap/core/README.md +3 -3
- package/node_modules/@hap/core/dist/index.d.mts +567 -123
- package/node_modules/@hap/core/dist/index.d.ts +567 -123
- package/node_modules/@hap/core/dist/index.js +869 -23
- package/node_modules/@hap/core/dist/index.mjs +829 -22
- package/node_modules/@hap/core/node_modules/@hpke/core/LICENSE +21 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/README.md +263 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.d.ts +11 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.js +6 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/package.json +3 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.d.ts +80 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.js +167 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.d.ts +34 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.js +56 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.d.ts +145 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.js +326 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.d.ts +15 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.js +68 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.d.ts +19 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.js +62 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.d.ts +17 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.d.ts +13 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.d.ts +8 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.d.ts +40 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.d.ts +17 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.d.ts +7 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.d.ts +10 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.d.ts +26 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.js +112 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts +24 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.js +214 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts +24 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.js +214 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.d.ts +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.js +66 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.d.ts +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.js +66 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.d.ts +5 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.js +28 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.d.ts +236 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.js +235 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.d.ts +6 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.js +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.d.ts +11 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.js +45 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts +2 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.js +6 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/package.json +46 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.d.ts +11 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.js +47 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/package.json +3 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.d.ts +80 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.js +183 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.d.ts +34 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.js +70 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.d.ts +145 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.js +340 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.d.ts +15 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.js +82 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.d.ts +19 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.js +78 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.d.ts +17 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.d.ts +13 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.d.ts +8 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.d.ts +40 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.d.ts +17 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.d.ts +7 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.d.ts +10 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.d.ts +26 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.js +128 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts +24 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.js +228 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts +24 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.js +228 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.d.ts +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.js +80 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.d.ts +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.js +80 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.d.ts +5 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.js +42 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.d.ts +236 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.js +255 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.d.ts +6 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.js +52 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.d.ts +11 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.js +59 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.d.ts +2 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.js +19 -0
- package/node_modules/@hap/core/package.json +2 -1
- package/node_modules/@hap/core/src/canonicalize.ts +9 -0
- package/node_modules/@hap/core/src/commitment-modes.ts +21 -9
- package/node_modules/@hap/core/src/errors.ts +24 -8
- package/node_modules/@hap/core/src/gatekeeper.ts +52 -8
- package/node_modules/@hap/core/src/index.ts +5 -1
- package/node_modules/@hap/core/src/issuance.ts +250 -0
- package/node_modules/@hap/core/src/mandate.ts +52 -14
- package/node_modules/@hap/core/src/owner-signature.ts +86 -39
- package/node_modules/@hap/core/src/profile.ts +45 -0
- package/node_modules/@hap/core/src/proposal-content.ts +219 -0
- package/node_modules/@hap/core/src/ticket-projection.ts +167 -0
- package/node_modules/@hap/core/src/ticket.ts +254 -20
- package/node_modules/@hap/core/src/types.ts +33 -5
- package/node_modules/@hap/core/src/verifier-policy.ts +178 -0
- package/node_modules/@hap/core/src/versions.ts +50 -19
- package/node_modules/@hono/node-server/dist/index.cjs +31 -6
- package/node_modules/@hono/node-server/dist/index.mjs +31 -6
- package/node_modules/@hono/node-server/package.json +1 -1
- package/node_modules/@hpke/common/esm/package.json +5 -1
- package/node_modules/@hpke/common/esm/src/curve/montgomery.d.ts +2 -2
- package/node_modules/@hpke/common/esm/src/curve/montgomery.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/curve/montgomery.js +41 -26
- package/node_modules/@hpke/common/esm/src/hash/sha3.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/hash/sha3.js +0 -15
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.d.ts +2 -1
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.js +12 -2
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.js +14 -3
- package/node_modules/@hpke/common/esm/src/utils/misc.d.ts +6 -0
- package/node_modules/@hpke/common/esm/src/utils/misc.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/utils/misc.js +43 -10
- package/node_modules/@hpke/common/esm/src/utils/noble.d.ts +1 -1
- package/node_modules/@hpke/common/esm/src/utils/noble.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/utils/noble.js +21 -10
- package/node_modules/@hpke/common/package.json +5 -1
- package/node_modules/@hpke/common/script/src/curve/montgomery.d.ts +2 -2
- package/node_modules/@hpke/common/script/src/curve/montgomery.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/curve/montgomery.js +40 -25
- package/node_modules/@hpke/common/script/src/hash/sha3.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/hash/sha3.js +0 -15
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.d.ts +2 -1
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.js +12 -2
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.js +13 -2
- package/node_modules/@hpke/common/script/src/utils/misc.d.ts +6 -0
- package/node_modules/@hpke/common/script/src/utils/misc.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/utils/misc.js +43 -9
- package/node_modules/@hpke/common/script/src/utils/noble.d.ts +1 -1
- package/node_modules/@hpke/common/script/src/utils/noble.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/utils/noble.js +22 -11
- package/node_modules/@hpke/core/README.md +56 -56
- package/node_modules/@hpke/core/esm/package.json +2 -1
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts +3 -21
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -1
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.js +3 -201
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts +3 -21
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts.map +1 -1
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.js +3 -201
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.d.ts +26 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.js +216 -0
- package/node_modules/@hpke/core/package.json +6 -2
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts +3 -21
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -1
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.js +4 -202
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts +3 -21
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts.map +1 -1
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.js +4 -202
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.d.ts +26 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.js +230 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +8 -8
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +8 -8
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/package.json +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/zlib.d.ts +752 -0
- package/node_modules/encodeurl/README.md +14 -0
- package/node_modules/encodeurl/index.js +5 -10
- package/node_modules/encodeurl/package.json +10 -6
- package/node_modules/express-rate-limit/dist/index.cjs +7 -3
- package/node_modules/express-rate-limit/dist/index.mjs +7 -3
- package/node_modules/express-rate-limit/package.json +10 -10
- package/node_modules/follow-redirects/README.md +27 -1
- package/node_modules/follow-redirects/index.js +1 -5
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/hono/README.md +2 -3
- package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +1 -1
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +1 -1
- package/node_modules/hono/dist/cjs/context.js +1 -1
- package/node_modules/hono/dist/cjs/helper/css/common.js +11 -8
- package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
- package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
- package/node_modules/hono/dist/cjs/hono-base.js +4 -10
- package/node_modules/hono/dist/cjs/hono.js +0 -1
- package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +9 -1
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/mount/index.js +4 -4
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +13 -11
- package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +4 -4
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +39 -51
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +15 -5
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +2 -1
- package/node_modules/hono/dist/cjs/utils/mount.js +35 -0
- package/node_modules/hono/dist/cjs/utils/url.js +21 -6
- package/node_modules/hono/dist/cjs/validator/validator.js +1 -1
- package/node_modules/hono/dist/context.js +1 -1
- package/node_modules/hono/dist/helper/css/common.js +11 -8
- package/node_modules/hono/dist/helper/css/index.js +1 -1
- package/node_modules/hono/dist/helper/route/index.js +3 -1
- package/node_modules/hono/dist/hono-base.js +4 -10
- package/node_modules/hono/dist/hono.js +0 -1
- package/node_modules/hono/dist/jsx/base.js +1 -1
- package/node_modules/hono/dist/middleware/basic-auth/index.js +1 -1
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +9 -1
- package/node_modules/hono/dist/middleware/csrf/index.js +2 -2
- package/node_modules/hono/dist/middleware/jwk/jwk.js +2 -2
- package/node_modules/hono/dist/middleware/jwt/jwt.js +2 -2
- package/node_modules/hono/dist/middleware/language/language.js +1 -1
- package/node_modules/hono/dist/middleware/mount/index.js +4 -4
- package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/router/reg-exp-router/node.js +13 -11
- package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +5 -5
- package/node_modules/hono/dist/router/reg-exp-router/router.js +40 -52
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +15 -5
- package/node_modules/hono/dist/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
- package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
- package/node_modules/hono/dist/types/index.d.ts +1 -1
- package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
- package/node_modules/hono/dist/types/middleware/mount/index.d.ts +1 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +3 -3
- package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +1 -1
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
- package/node_modules/hono/dist/types/utils/mount.d.ts +4 -0
- package/node_modules/hono/dist/types/utils/url.d.ts +1 -0
- package/node_modules/hono/dist/utils/jwt/jwt.js +2 -1
- package/node_modules/hono/dist/utils/mount.js +34 -0
- package/node_modules/hono/dist/utils/url.js +21 -7
- package/node_modules/hono/dist/validator/validator.js +1 -1
- package/node_modules/hono/package.json +1 -1
- package/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.js +2 -2
- package/node_modules/http-proxy-middleware/package.json +1 -1
- package/node_modules/ip-address/README.md +39 -39
- package/node_modules/ip-address/dist/common.js +2 -2
- package/node_modules/ip-address/dist/common.js.map +1 -1
- package/node_modules/ip-address/dist/ipv6.js +1 -1
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/package.json +2 -2
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +3 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +3 -0
- package/node_modules/jose/dist/types/types.d.ts +8 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +1 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +3 -1
- package/node_modules/jose/dist/webapi/lib/deflate.js +2 -1
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -1
- package/node_modules/jose/package.json +1 -1
- package/node_modules/postcss/lib/input.js +1 -1
- package/node_modules/postcss/lib/lazy-result.js +1 -1
- package/node_modules/postcss/lib/no-work-result.js +1 -1
- package/node_modules/postcss/lib/node.js +2 -2
- package/node_modules/postcss/lib/processor.js +1 -1
- package/node_modules/postcss/lib/warning.js +1 -0
- package/node_modules/postcss/package.json +1 -1
- package/node_modules/qs/CHANGELOG.md +29 -22
- package/node_modules/qs/dist/qs.js +14 -14
- package/node_modules/qs/eslint.config.mjs +6 -0
- package/node_modules/qs/lib/stringify.js +1 -1
- package/node_modules/qs/package.json +5 -5
- package/node_modules/qs/test/stringify.js +74 -0
- package/node_modules/zod/README.md +34 -24
- 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 +22 -3
- package/node_modules/zod/index.d.cts +3 -4
- package/node_modules/zod/index.d.ts +3 -4
- package/node_modules/zod/index.js +7 -4
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +44 -15
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -4
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +23 -13
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
- package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
- 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/nan.test.ts +5 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
- package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
- package/node_modules/zod/src/v3/types.ts +8 -6
- package/node_modules/zod/src/v4/classic/checks.ts +3 -0
- package/node_modules/zod/src/v4/classic/compat.ts +30 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +61 -39
- package/node_modules/zod/src/v4/classic/external.ts +18 -11
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- 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 +57 -2
- package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
- 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 +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
- 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 +142 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
- 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 +394 -4
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- 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 +134 -5
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
- 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 +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
- 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 +255 -12
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- 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 +442 -161
- package/node_modules/zod/src/v4/core/checks.ts +134 -151
- package/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/node_modules/zod/src/v4/core/core.ts +146 -50
- package/node_modules/zod/src/v4/core/doc.ts +18 -10
- package/node_modules/zod/src/v4/core/errors.ts +221 -102
- package/node_modules/zod/src/v4/core/index.ts +5 -1
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +252 -37
- package/node_modules/zod/src/v4/core/regexes.ts +112 -30
- package/node_modules/zod/src/v4/core/registries.ts +19 -10
- package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
- package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
- 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 +1004 -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 +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/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/locales/tr.test.ts +2 -2
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
- package/node_modules/zod/src/v4/core/util.ts +675 -157
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +22 -27
- package/node_modules/zod/src/v4/locales/az.ts +22 -27
- package/node_modules/zod/src/v4/locales/be.ts +31 -27
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +22 -28
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +26 -45
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +24 -27
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +38 -29
- package/node_modules/zod/src/v4/locales/eo.ts +25 -27
- package/node_modules/zod/src/v4/locales/es.ts +53 -33
- package/node_modules/zod/src/v4/locales/fa.ts +24 -27
- package/node_modules/zod/src/v4/locales/fi.ts +22 -27
- package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
- package/node_modules/zod/src/v4/locales/fr.ts +58 -43
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +208 -80
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +24 -28
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +22 -27
- package/node_modules/zod/src/v4/locales/index.ts +24 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +24 -28
- package/node_modules/zod/src/v4/locales/ja.ts +24 -27
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +3 -122
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +22 -27
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +24 -28
- package/node_modules/zod/src/v4/locales/ms.ts +23 -27
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +37 -37
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +26 -29
- package/node_modules/zod/src/v4/locales/ota.ts +25 -28
- package/node_modules/zod/src/v4/locales/pl.ts +24 -27
- package/node_modules/zod/src/v4/locales/ps.ts +24 -26
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +107 -71
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +31 -27
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +24 -27
- package/node_modules/zod/src/v4/locales/sv.ts +26 -29
- package/node_modules/zod/src/v4/locales/ta.ts +25 -27
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +25 -27
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +22 -27
- package/node_modules/zod/src/v4/locales/ua.ts +3 -122
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +25 -27
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +24 -27
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
- package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +15 -3
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/iso.ts +8 -4
- package/node_modules/zod/src/v4/mini/parse.ts +16 -1
- package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
- 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 +24 -5
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
- package/node_modules/zod/src/v4-mini/index.ts +3 -1
- package/node_modules/zod/v3/ZodError.cjs +42 -13
- package/node_modules/zod/v3/ZodError.d.cts +6 -6
- package/node_modules/zod/v3/ZodError.d.ts +6 -6
- package/node_modules/zod/v3/ZodError.js +23 -13
- 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/locales/en.cjs +1 -0
- package/node_modules/zod/v3/locales/en.d.cts +1 -1
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +28 -5
- package/node_modules/zod/v3/types.d.cts +4 -1
- package/node_modules/zod/v3/types.d.ts +4 -1
- package/node_modules/zod/v3/types.js +9 -5
- package/node_modules/zod/v4/classic/checks.cjs +22 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +24 -1
- package/node_modules/zod/v4/classic/compat.d.cts +13 -11
- package/node_modules/zod/v4/classic/compat.d.ts +13 -11
- package/node_modules/zod/v4/classic/compat.js +4 -0
- 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 +63 -28
- 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 +45 -29
- package/node_modules/zod/v4/classic/external.cjs +55 -28
- package/node_modules/zod/v4/classic/external.d.cts +8 -2
- package/node_modules/zod/v4/classic/external.d.ts +8 -2
- package/node_modules/zod/v4/classic/external.js +7 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- 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/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -1
- package/node_modules/zod/v4/classic/parse.d.cts +21 -0
- package/node_modules/zod/v4/classic/parse.d.ts +21 -0
- package/node_modules/zod/v4/classic/parse.js +10 -0
- package/node_modules/zod/v4/classic/schemas.cjs +805 -238
- package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
- package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
- package/node_modules/zod/v4/classic/schemas.js +766 -237
- package/node_modules/zod/v4/core/api.cjs +284 -54
- package/node_modules/zod/v4/core/api.d.cts +133 -82
- package/node_modules/zod/v4/core/api.d.ts +133 -82
- package/node_modules/zod/v4/core/api.js +255 -54
- package/node_modules/zod/v4/core/checks.cjs +100 -130
- package/node_modules/zod/v4/core/checks.d.cts +32 -16
- package/node_modules/zod/v4/core/checks.d.ts +32 -16
- package/node_modules/zod/v4/core/checks.js +80 -129
- package/node_modules/zod/v4/core/compile.cjs +1916 -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 +1866 -0
- package/node_modules/zod/v4/core/core.cjs +120 -20
- package/node_modules/zod/v4/core/core.d.cts +40 -7
- package/node_modules/zod/v4/core/core.d.ts +40 -7
- package/node_modules/zod/v4/core/core.js +101 -21
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.d.cts +4 -2
- package/node_modules/zod/v4/core/doc.d.ts +4 -2
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +151 -60
- package/node_modules/zod/v4/core/errors.d.cts +41 -24
- package/node_modules/zod/v4/core/errors.d.ts +41 -24
- package/node_modules/zod/v4/core/errors.js +132 -60
- package/node_modules/zod/v4/core/index.cjs +28 -2
- package/node_modules/zod/v4/core/index.d.cts +5 -1
- package/node_modules/zod/v4/core/index.d.ts +5 -1
- package/node_modules/zod/v4/core/index.js +5 -1
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
- package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
- package/node_modules/zod/v4/core/memoizer.cjs +360 -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 +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +183 -37
- package/node_modules/zod/v4/core/parse.d.cts +34 -7
- package/node_modules/zod/v4/core/parse.d.ts +34 -7
- package/node_modules/zod/v4/core/parse.js +154 -36
- package/node_modules/zod/v4/core/regexes.cjs +137 -31
- package/node_modules/zod/v4/core/regexes.d.cts +30 -2
- package/node_modules/zod/v4/core/regexes.d.ts +30 -2
- package/node_modules/zod/v4/core/regexes.js +90 -29
- package/node_modules/zod/v4/core/registries.cjs +26 -7
- package/node_modules/zod/v4/core/registries.d.cts +2 -2
- package/node_modules/zod/v4/core/registries.d.ts +2 -2
- package/node_modules/zod/v4/core/registries.js +9 -9
- package/node_modules/zod/v4/core/schemas.cjs +1373 -422
- package/node_modules/zod/v4/core/schemas.d.cts +276 -42
- package/node_modules/zod/v4/core/schemas.d.ts +276 -42
- package/node_modules/zod/v4/core/schemas.js +1341 -422
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
- package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
- package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
- package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
- package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
- package/node_modules/zod/v4/core/to-json-schema.js +602 -800
- package/node_modules/zod/v4/core/util.cjs +580 -155
- package/node_modules/zod/v4/core/util.d.cts +98 -1
- package/node_modules/zod/v4/core/util.d.ts +98 -1
- package/node_modules/zod/v4/core/util.js +536 -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 +214 -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 +169 -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 +20 -24
- package/node_modules/zod/v4/locales/ar.d.cts +2 -1
- package/node_modules/zod/v4/locales/ar.js +19 -24
- package/node_modules/zod/v4/locales/az.cjs +20 -24
- package/node_modules/zod/v4/locales/az.d.cts +2 -1
- package/node_modules/zod/v4/locales/az.js +19 -24
- package/node_modules/zod/v4/locales/be.cjs +29 -24
- package/node_modules/zod/v4/locales/be.d.cts +2 -1
- package/node_modules/zod/v4/locales/be.js +28 -24
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -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 +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +20 -25
- package/node_modules/zod/v4/locales/ca.d.cts +2 -1
- package/node_modules/zod/v4/locales/ca.js +19 -25
- package/node_modules/zod/v4/locales/ckb.cjs +160 -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 +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +24 -42
- package/node_modules/zod/v4/locales/cs.d.cts +2 -1
- package/node_modules/zod/v4/locales/cs.js +23 -42
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +22 -24
- package/node_modules/zod/v4/locales/de.d.cts +2 -1
- package/node_modules/zod/v4/locales/de.js +21 -24
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +35 -28
- package/node_modules/zod/v4/locales/en.d.cts +2 -2
- package/node_modules/zod/v4/locales/en.d.ts +0 -1
- package/node_modules/zod/v4/locales/en.js +34 -26
- package/node_modules/zod/v4/locales/eo.cjs +23 -26
- package/node_modules/zod/v4/locales/eo.d.cts +2 -2
- package/node_modules/zod/v4/locales/eo.d.ts +0 -1
- package/node_modules/zod/v4/locales/eo.js +22 -24
- package/node_modules/zod/v4/locales/es.cjs +51 -31
- package/node_modules/zod/v4/locales/es.d.cts +2 -1
- package/node_modules/zod/v4/locales/es.js +50 -31
- package/node_modules/zod/v4/locales/fa.cjs +22 -24
- package/node_modules/zod/v4/locales/fa.d.cts +2 -1
- package/node_modules/zod/v4/locales/fa.js +21 -24
- package/node_modules/zod/v4/locales/fi.cjs +20 -24
- package/node_modules/zod/v4/locales/fi.d.cts +2 -1
- package/node_modules/zod/v4/locales/fi.js +19 -24
- package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
- package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
- package/node_modules/zod/v4/locales/fr-CA.js +19 -24
- package/node_modules/zod/v4/locales/fr.cjs +53 -39
- package/node_modules/zod/v4/locales/fr.d.cts +2 -1
- package/node_modules/zod/v4/locales/fr.js +52 -39
- package/node_modules/zod/v4/locales/gu.cjs +140 -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 +113 -0
- package/node_modules/zod/v4/locales/he.cjs +183 -78
- package/node_modules/zod/v4/locales/he.d.cts +2 -1
- package/node_modules/zod/v4/locales/he.js +182 -78
- package/node_modules/zod/v4/locales/hi.cjs +138 -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 +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +22 -25
- package/node_modules/zod/v4/locales/hu.d.cts +2 -1
- package/node_modules/zod/v4/locales/hu.js +21 -25
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +20 -24
- package/node_modules/zod/v4/locales/id.d.cts +2 -1
- package/node_modules/zod/v4/locales/id.js +19 -24
- package/node_modules/zod/v4/locales/index.cjs +69 -1
- package/node_modules/zod/v4/locales/index.d.cts +24 -0
- package/node_modules/zod/v4/locales/index.d.ts +24 -0
- package/node_modules/zod/v4/locales/index.js +24 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +22 -25
- package/node_modules/zod/v4/locales/it.d.cts +2 -1
- package/node_modules/zod/v4/locales/it.js +21 -25
- package/node_modules/zod/v4/locales/ja.cjs +22 -24
- package/node_modules/zod/v4/locales/ja.d.cts +2 -1
- package/node_modules/zod/v4/locales/ja.js +21 -24
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +6 -137
- package/node_modules/zod/v4/locales/kh.d.cts +2 -1
- package/node_modules/zod/v4/locales/kh.d.ts +1 -0
- package/node_modules/zod/v4/locales/kh.js +3 -115
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -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 +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +20 -24
- package/node_modules/zod/v4/locales/ko.d.cts +2 -1
- package/node_modules/zod/v4/locales/ko.js +19 -24
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +22 -25
- package/node_modules/zod/v4/locales/mk.d.cts +2 -1
- package/node_modules/zod/v4/locales/mk.js +21 -25
- package/node_modules/zod/v4/locales/ms.cjs +21 -24
- package/node_modules/zod/v4/locales/ms.d.cts +2 -1
- package/node_modules/zod/v4/locales/ms.js +20 -24
- package/node_modules/zod/v4/locales/ne.cjs +138 -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 +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +31 -32
- package/node_modules/zod/v4/locales/nl.d.cts +2 -1
- package/node_modules/zod/v4/locales/nl.js +30 -32
- package/node_modules/zod/v4/locales/nn.cjs +140 -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 +113 -0
- package/node_modules/zod/v4/locales/no.cjs +24 -26
- package/node_modules/zod/v4/locales/no.d.cts +2 -1
- package/node_modules/zod/v4/locales/no.js +23 -26
- package/node_modules/zod/v4/locales/ota.cjs +23 -25
- package/node_modules/zod/v4/locales/ota.d.cts +2 -1
- package/node_modules/zod/v4/locales/ota.js +22 -25
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +22 -24
- package/node_modules/zod/v4/locales/pl.d.cts +2 -1
- package/node_modules/zod/v4/locales/pl.js +21 -24
- package/node_modules/zod/v4/locales/ps.cjs +22 -24
- package/node_modules/zod/v4/locales/ps.d.cts +2 -1
- package/node_modules/zod/v4/locales/ps.js +21 -24
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -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 +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +95 -68
- package/node_modules/zod/v4/locales/pt.d.cts +2 -1
- package/node_modules/zod/v4/locales/pt.js +94 -68
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +29 -24
- package/node_modules/zod/v4/locales/ru.d.cts +2 -1
- package/node_modules/zod/v4/locales/ru.js +28 -24
- package/node_modules/zod/v4/locales/sk.cjs +143 -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 +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +22 -24
- package/node_modules/zod/v4/locales/sl.d.cts +2 -1
- package/node_modules/zod/v4/locales/sl.js +21 -24
- package/node_modules/zod/v4/locales/sv.cjs +24 -26
- package/node_modules/zod/v4/locales/sv.d.cts +2 -1
- package/node_modules/zod/v4/locales/sv.js +23 -26
- package/node_modules/zod/v4/locales/ta.cjs +23 -24
- package/node_modules/zod/v4/locales/ta.d.cts +2 -1
- package/node_modules/zod/v4/locales/ta.js +22 -24
- package/node_modules/zod/v4/locales/tg.cjs +144 -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 +117 -0
- package/node_modules/zod/v4/locales/th.cjs +23 -24
- package/node_modules/zod/v4/locales/th.d.cts +2 -1
- package/node_modules/zod/v4/locales/th.js +22 -24
- package/node_modules/zod/v4/locales/tk.cjs +134 -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 +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +20 -26
- package/node_modules/zod/v4/locales/tr.d.cts +2 -2
- package/node_modules/zod/v4/locales/tr.d.ts +0 -1
- package/node_modules/zod/v4/locales/tr.js +19 -24
- package/node_modules/zod/v4/locales/ua.cjs +6 -137
- package/node_modules/zod/v4/locales/ua.d.cts +2 -1
- package/node_modules/zod/v4/locales/ua.d.ts +1 -0
- package/node_modules/zod/v4/locales/ua.js +3 -115
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +23 -24
- package/node_modules/zod/v4/locales/ur.d.cts +2 -1
- package/node_modules/zod/v4/locales/ur.js +22 -24
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +22 -24
- package/node_modules/zod/v4/locales/vi.d.cts +2 -1
- package/node_modules/zod/v4/locales/vi.js +21 -24
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
- package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
- package/node_modules/zod/v4/locales/zh-CN.js +22 -24
- package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
- package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
- package/node_modules/zod/v4/locales/zh-TW.js +19 -24
- package/node_modules/zod/v4/mini/checks.cjs +21 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +24 -0
- package/node_modules/zod/v4/mini/coerce.js +5 -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 +36 -3
- package/node_modules/zod/v4/mini/external.d.cts +7 -2
- package/node_modules/zod/v4/mini/external.d.ts +7 -2
- package/node_modules/zod/v4/mini/external.js +4 -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 +27 -4
- package/node_modules/zod/v4/mini/iso.js +8 -4
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +30 -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 +390 -82
- package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
- package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
- package/node_modules/zod/v4/mini/schemas.js +329 -59
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +35 -1
- package/node_modules/zod/v4-mini/index.d.cts +3 -1
- package/node_modules/zod/v4-mini/index.d.ts +3 -1
- package/node_modules/zod/v4-mini/index.js +3 -1
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +4 -4
- package/dist/ui/assets/index-DNNXeRpZ.js +0 -123
- package/dist/ui/assets/index-Osk4E49r.css +0 -1
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/function.ts +0 -176
- package/node_modules/zod/v4/core/function.cjs +0 -102
- package/node_modules/zod/v4/core/function.d.cts +0 -52
- package/node_modules/zod/v4/core/function.d.ts +0 -52
- package/node_modules/zod/v4/core/function.js +0 -75
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as checks from "./checks.js";
|
|
2
2
|
import type * as core from "./core.js";
|
|
3
3
|
import type * as errors from "./errors.js";
|
|
4
|
+
import * as registries from "./registries.js";
|
|
4
5
|
import * as schemas from "./schemas.js";
|
|
5
6
|
import * as util from "./util.js";
|
|
6
7
|
|
|
@@ -57,35 +58,41 @@ export type CheckTypeParams<
|
|
|
57
58
|
> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
|
|
58
59
|
|
|
59
60
|
// String
|
|
60
|
-
export type $ZodStringParams = TypeParams<schemas.$ZodString<string>, "coerce"
|
|
61
|
+
export type $ZodStringParams = TypeParams<schemas.$ZodString<string>, "coerce"> & {
|
|
62
|
+
checks?: readonly checks.$ZodCheck<string>[];
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
function snapshotChecks<T extends { checks?: readonly checks.$ZodCheck<never>[] }>(def: T) {
|
|
66
|
+
if (def.checks) def.checks = [...def.checks];
|
|
67
|
+
return def as T & { checks?: NonNullable<T["checks"]>[number][] };
|
|
68
|
+
}
|
|
69
|
+
// @__NO_SIDE_EFFECTS__
|
|
61
70
|
export function _string<T extends schemas.$ZodString>(
|
|
62
71
|
Class: util.SchemaClass<T>,
|
|
63
72
|
params?: string | $ZodStringParams
|
|
64
73
|
): T {
|
|
65
|
-
return new Class({
|
|
66
|
-
type: "string",
|
|
67
|
-
...util.normalizeParams(params),
|
|
68
|
-
});
|
|
74
|
+
return new Class(snapshotChecks({ type: "string" as const, ...util.normalizeParams(params) }));
|
|
69
75
|
}
|
|
70
76
|
|
|
77
|
+
// @__NO_SIDE_EFFECTS__
|
|
71
78
|
export function _coercedString<T extends schemas.$ZodString>(
|
|
72
79
|
Class: util.SchemaClass<T>,
|
|
73
80
|
params?: string | $ZodStringParams
|
|
74
81
|
): T {
|
|
75
|
-
return new Class({
|
|
76
|
-
type: "string",
|
|
77
|
-
coerce: true,
|
|
78
|
-
...util.normalizeParams(params),
|
|
79
|
-
});
|
|
82
|
+
return new Class(snapshotChecks({ type: "string" as const, coerce: true, ...util.normalizeParams(params) }));
|
|
80
83
|
}
|
|
81
84
|
|
|
82
|
-
export type $ZodStringFormatParams = CheckTypeParams<
|
|
85
|
+
export type $ZodStringFormatParams = CheckTypeParams<
|
|
86
|
+
schemas.$ZodStringFormat,
|
|
87
|
+
"format" | "coerce" | "when" | "pattern"
|
|
88
|
+
>;
|
|
83
89
|
export type $ZodCheckStringFormatParams = CheckParams<checks.$ZodCheckStringFormat, "format">;
|
|
84
90
|
// custom format
|
|
85
91
|
|
|
86
92
|
// Email
|
|
87
|
-
export type $ZodEmailParams = StringFormatParams<schemas.$ZodEmail>;
|
|
88
|
-
export type $ZodCheckEmailParams = CheckStringFormatParams<schemas.$ZodEmail>;
|
|
93
|
+
export type $ZodEmailParams = StringFormatParams<schemas.$ZodEmail, "when">;
|
|
94
|
+
export type $ZodCheckEmailParams = CheckStringFormatParams<schemas.$ZodEmail, "when">;
|
|
95
|
+
// @__NO_SIDE_EFFECTS__
|
|
89
96
|
export function _email<T extends schemas.$ZodEmail>(
|
|
90
97
|
Class: util.SchemaClass<T>,
|
|
91
98
|
params?: string | $ZodEmailParams | $ZodCheckEmailParams
|
|
@@ -100,8 +107,9 @@ export function _email<T extends schemas.$ZodEmail>(
|
|
|
100
107
|
}
|
|
101
108
|
|
|
102
109
|
// GUID
|
|
103
|
-
export type $ZodGUIDParams = StringFormatParams<schemas.$ZodGUID, "pattern">;
|
|
104
|
-
export type $ZodCheckGUIDParams = CheckStringFormatParams<schemas.$ZodGUID, "pattern">;
|
|
110
|
+
export type $ZodGUIDParams = StringFormatParams<schemas.$ZodGUID, "pattern" | "when">;
|
|
111
|
+
export type $ZodCheckGUIDParams = CheckStringFormatParams<schemas.$ZodGUID, "pattern" | "when">;
|
|
112
|
+
// @__NO_SIDE_EFFECTS__
|
|
105
113
|
export function _guid<T extends schemas.$ZodGUID>(
|
|
106
114
|
Class: util.SchemaClass<T>,
|
|
107
115
|
params?: string | $ZodGUIDParams | $ZodCheckGUIDParams
|
|
@@ -116,8 +124,9 @@ export function _guid<T extends schemas.$ZodGUID>(
|
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
// UUID
|
|
119
|
-
export type $ZodUUIDParams = StringFormatParams<schemas.$ZodUUID, "pattern">;
|
|
120
|
-
export type $ZodCheckUUIDParams = CheckStringFormatParams<schemas.$ZodUUID, "pattern">;
|
|
127
|
+
export type $ZodUUIDParams = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
|
|
128
|
+
export type $ZodCheckUUIDParams = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
|
|
129
|
+
// @__NO_SIDE_EFFECTS__
|
|
121
130
|
export function _uuid<T extends schemas.$ZodUUID>(
|
|
122
131
|
Class: util.SchemaClass<T>,
|
|
123
132
|
params?: string | $ZodUUIDParams | $ZodCheckUUIDParams
|
|
@@ -132,8 +141,9 @@ export function _uuid<T extends schemas.$ZodUUID>(
|
|
|
132
141
|
}
|
|
133
142
|
|
|
134
143
|
// UUIDv4
|
|
135
|
-
export type $ZodUUIDv4Params = StringFormatParams<schemas.$ZodUUID, "pattern">;
|
|
136
|
-
export type $ZodCheckUUIDv4Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern">;
|
|
144
|
+
export type $ZodUUIDv4Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
|
|
145
|
+
export type $ZodCheckUUIDv4Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
|
|
146
|
+
// @__NO_SIDE_EFFECTS__
|
|
137
147
|
export function _uuidv4<T extends schemas.$ZodUUID>(
|
|
138
148
|
Class: util.SchemaClass<T>,
|
|
139
149
|
params?: string | $ZodUUIDv4Params | $ZodCheckUUIDv4Params
|
|
@@ -149,8 +159,9 @@ export function _uuidv4<T extends schemas.$ZodUUID>(
|
|
|
149
159
|
}
|
|
150
160
|
|
|
151
161
|
// UUIDv6
|
|
152
|
-
export type $ZodUUIDv6Params = StringFormatParams<schemas.$ZodUUID, "pattern">;
|
|
153
|
-
export type $ZodCheckUUIDv6Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern">;
|
|
162
|
+
export type $ZodUUIDv6Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
|
|
163
|
+
export type $ZodCheckUUIDv6Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
|
|
164
|
+
// @__NO_SIDE_EFFECTS__
|
|
154
165
|
export function _uuidv6<T extends schemas.$ZodUUID>(
|
|
155
166
|
Class: util.SchemaClass<T>,
|
|
156
167
|
params?: string | $ZodUUIDv6Params | $ZodCheckUUIDv6Params
|
|
@@ -166,8 +177,9 @@ export function _uuidv6<T extends schemas.$ZodUUID>(
|
|
|
166
177
|
}
|
|
167
178
|
|
|
168
179
|
// UUIDv7
|
|
169
|
-
export type $ZodUUIDv7Params = StringFormatParams<schemas.$ZodUUID, "pattern">;
|
|
170
|
-
export type $ZodCheckUUIDv7Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern">;
|
|
180
|
+
export type $ZodUUIDv7Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
|
|
181
|
+
export type $ZodCheckUUIDv7Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
|
|
182
|
+
// @__NO_SIDE_EFFECTS__
|
|
171
183
|
export function _uuidv7<T extends schemas.$ZodUUID>(
|
|
172
184
|
Class: util.SchemaClass<T>,
|
|
173
185
|
params?: string | $ZodUUIDv7Params | $ZodCheckUUIDv7Params
|
|
@@ -183,8 +195,9 @@ export function _uuidv7<T extends schemas.$ZodUUID>(
|
|
|
183
195
|
}
|
|
184
196
|
|
|
185
197
|
// URL
|
|
186
|
-
export type $ZodURLParams = StringFormatParams<schemas.$ZodURL>;
|
|
187
|
-
export type $ZodCheckURLParams = CheckStringFormatParams<schemas.$ZodURL>;
|
|
198
|
+
export type $ZodURLParams = StringFormatParams<schemas.$ZodURL, "when">;
|
|
199
|
+
export type $ZodCheckURLParams = CheckStringFormatParams<schemas.$ZodURL, "when">;
|
|
200
|
+
// @__NO_SIDE_EFFECTS__
|
|
188
201
|
export function _url<T extends schemas.$ZodURL>(
|
|
189
202
|
Class: util.SchemaClass<T>,
|
|
190
203
|
params?: string | $ZodURLParams | $ZodCheckURLParams
|
|
@@ -199,8 +212,9 @@ export function _url<T extends schemas.$ZodURL>(
|
|
|
199
212
|
}
|
|
200
213
|
|
|
201
214
|
// Emoji
|
|
202
|
-
export type $ZodEmojiParams = StringFormatParams<schemas.$ZodEmoji>;
|
|
203
|
-
export type $ZodCheckEmojiParams = CheckStringFormatParams<schemas.$ZodEmoji>;
|
|
215
|
+
export type $ZodEmojiParams = StringFormatParams<schemas.$ZodEmoji, "when">;
|
|
216
|
+
export type $ZodCheckEmojiParams = CheckStringFormatParams<schemas.$ZodEmoji, "when">;
|
|
217
|
+
// @__NO_SIDE_EFFECTS__
|
|
204
218
|
export function _emoji<T extends schemas.$ZodEmoji>(
|
|
205
219
|
Class: util.SchemaClass<T>,
|
|
206
220
|
params?: string | $ZodEmojiParams | $ZodCheckEmojiParams
|
|
@@ -215,8 +229,9 @@ export function _emoji<T extends schemas.$ZodEmoji>(
|
|
|
215
229
|
}
|
|
216
230
|
|
|
217
231
|
// NanoID
|
|
218
|
-
export type $ZodNanoIDParams = StringFormatParams<schemas.$ZodNanoID>;
|
|
219
|
-
export type $ZodCheckNanoIDParams = CheckStringFormatParams<schemas.$ZodNanoID>;
|
|
232
|
+
export type $ZodNanoIDParams = StringFormatParams<schemas.$ZodNanoID, "when" | "pattern">;
|
|
233
|
+
export type $ZodCheckNanoIDParams = CheckStringFormatParams<schemas.$ZodNanoID, "when" | "pattern">;
|
|
234
|
+
// @__NO_SIDE_EFFECTS__
|
|
220
235
|
export function _nanoid<T extends schemas.$ZodNanoID>(
|
|
221
236
|
Class: util.SchemaClass<T>,
|
|
222
237
|
params?: string | $ZodNanoIDParams | $ZodCheckNanoIDParams
|
|
@@ -231,8 +246,24 @@ export function _nanoid<T extends schemas.$ZodNanoID>(
|
|
|
231
246
|
}
|
|
232
247
|
|
|
233
248
|
// CUID
|
|
234
|
-
|
|
235
|
-
|
|
249
|
+
/**
|
|
250
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
251
|
+
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
252
|
+
* See https://github.com/paralleldrive/cuid.
|
|
253
|
+
*/
|
|
254
|
+
export type $ZodCUIDParams = StringFormatParams<schemas.$ZodCUID, "when">;
|
|
255
|
+
/**
|
|
256
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
257
|
+
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
258
|
+
* See https://github.com/paralleldrive/cuid.
|
|
259
|
+
*/
|
|
260
|
+
export type $ZodCheckCUIDParams = CheckStringFormatParams<schemas.$ZodCUID, "when">;
|
|
261
|
+
/**
|
|
262
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
263
|
+
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
264
|
+
* See https://github.com/paralleldrive/cuid.
|
|
265
|
+
*/
|
|
266
|
+
// @__NO_SIDE_EFFECTS__
|
|
236
267
|
export function _cuid<T extends schemas.$ZodCUID>(
|
|
237
268
|
Class: util.SchemaClass<T>,
|
|
238
269
|
params?: string | $ZodCUIDParams | $ZodCheckCUIDParams
|
|
@@ -247,8 +278,9 @@ export function _cuid<T extends schemas.$ZodCUID>(
|
|
|
247
278
|
}
|
|
248
279
|
|
|
249
280
|
// CUID2
|
|
250
|
-
export type $ZodCUID2Params = StringFormatParams<schemas.$ZodCUID2>;
|
|
251
|
-
export type $ZodCheckCUID2Params = CheckStringFormatParams<schemas.$ZodCUID2>;
|
|
281
|
+
export type $ZodCUID2Params = StringFormatParams<schemas.$ZodCUID2, "when">;
|
|
282
|
+
export type $ZodCheckCUID2Params = CheckStringFormatParams<schemas.$ZodCUID2, "when">;
|
|
283
|
+
// @__NO_SIDE_EFFECTS__
|
|
252
284
|
export function _cuid2<T extends schemas.$ZodCUID2>(
|
|
253
285
|
Class: util.SchemaClass<T>,
|
|
254
286
|
params?: string | $ZodCUID2Params | $ZodCheckCUID2Params
|
|
@@ -263,8 +295,9 @@ export function _cuid2<T extends schemas.$ZodCUID2>(
|
|
|
263
295
|
}
|
|
264
296
|
|
|
265
297
|
// ULID
|
|
266
|
-
export type $ZodULIDParams = StringFormatParams<schemas.$ZodULID>;
|
|
267
|
-
export type $ZodCheckULIDParams = CheckStringFormatParams<schemas.$ZodULID>;
|
|
298
|
+
export type $ZodULIDParams = StringFormatParams<schemas.$ZodULID, "when">;
|
|
299
|
+
export type $ZodCheckULIDParams = CheckStringFormatParams<schemas.$ZodULID, "when">;
|
|
300
|
+
// @__NO_SIDE_EFFECTS__
|
|
268
301
|
export function _ulid<T extends schemas.$ZodULID>(
|
|
269
302
|
Class: util.SchemaClass<T>,
|
|
270
303
|
params?: string | $ZodULIDParams | $ZodCheckULIDParams
|
|
@@ -279,8 +312,9 @@ export function _ulid<T extends schemas.$ZodULID>(
|
|
|
279
312
|
}
|
|
280
313
|
|
|
281
314
|
// XID
|
|
282
|
-
export type $ZodXIDParams = StringFormatParams<schemas.$ZodXID>;
|
|
283
|
-
export type $ZodCheckXIDParams = CheckStringFormatParams<schemas.$ZodXID>;
|
|
315
|
+
export type $ZodXIDParams = StringFormatParams<schemas.$ZodXID, "when">;
|
|
316
|
+
export type $ZodCheckXIDParams = CheckStringFormatParams<schemas.$ZodXID, "when">;
|
|
317
|
+
// @__NO_SIDE_EFFECTS__
|
|
284
318
|
export function _xid<T extends schemas.$ZodXID>(
|
|
285
319
|
Class: util.SchemaClass<T>,
|
|
286
320
|
params?: string | $ZodXIDParams | $ZodCheckXIDParams
|
|
@@ -295,8 +329,9 @@ export function _xid<T extends schemas.$ZodXID>(
|
|
|
295
329
|
}
|
|
296
330
|
|
|
297
331
|
// KSUID
|
|
298
|
-
export type $ZodKSUIDParams = StringFormatParams<schemas.$ZodKSUID>;
|
|
299
|
-
export type $ZodCheckKSUIDParams = CheckStringFormatParams<schemas.$ZodKSUID>;
|
|
332
|
+
export type $ZodKSUIDParams = StringFormatParams<schemas.$ZodKSUID, "when">;
|
|
333
|
+
export type $ZodCheckKSUIDParams = CheckStringFormatParams<schemas.$ZodKSUID, "when">;
|
|
334
|
+
// @__NO_SIDE_EFFECTS__
|
|
300
335
|
export function _ksuid<T extends schemas.$ZodKSUID>(
|
|
301
336
|
Class: util.SchemaClass<T>,
|
|
302
337
|
params?: string | $ZodKSUIDParams | $ZodCheckKSUIDParams
|
|
@@ -310,25 +345,10 @@ export function _ksuid<T extends schemas.$ZodKSUID>(
|
|
|
310
345
|
});
|
|
311
346
|
}
|
|
312
347
|
|
|
313
|
-
// IP
|
|
314
|
-
// export type $ZodIPParams = StringFormatParams<schemas.$ZodIP, "pattern">;
|
|
315
|
-
// export type $ZodCheckIPParams = CheckStringFormatParams<schemas.$ZodIP, "pattern">;
|
|
316
|
-
// export function _ip<T extends schemas.$ZodIP>(
|
|
317
|
-
// Class: util.SchemaClass<T>,
|
|
318
|
-
// params?: string | $ZodIPParams | $ZodCheckIPParams
|
|
319
|
-
// ): T {
|
|
320
|
-
// return new Class({
|
|
321
|
-
// type: "string",
|
|
322
|
-
// format: "ip",
|
|
323
|
-
// check: "string_format",
|
|
324
|
-
// abort: false,
|
|
325
|
-
// ...util.normalizeParams(params),
|
|
326
|
-
// });
|
|
327
|
-
// }
|
|
328
|
-
|
|
329
348
|
// IPv4
|
|
330
|
-
export type $ZodIPv4Params = StringFormatParams<schemas.$ZodIPv4, "pattern">;
|
|
331
|
-
export type $ZodCheckIPv4Params = CheckStringFormatParams<schemas.$ZodIPv4, "pattern">;
|
|
349
|
+
export type $ZodIPv4Params = StringFormatParams<schemas.$ZodIPv4, "pattern" | "when" | "version">;
|
|
350
|
+
export type $ZodCheckIPv4Params = CheckStringFormatParams<schemas.$ZodIPv4, "pattern" | "when" | "version">;
|
|
351
|
+
// @__NO_SIDE_EFFECTS__
|
|
332
352
|
export function _ipv4<T extends schemas.$ZodIPv4>(
|
|
333
353
|
Class: util.SchemaClass<T>,
|
|
334
354
|
params?: string | $ZodIPv4Params | $ZodCheckIPv4Params
|
|
@@ -343,8 +363,9 @@ export function _ipv4<T extends schemas.$ZodIPv4>(
|
|
|
343
363
|
}
|
|
344
364
|
|
|
345
365
|
// IPv6
|
|
346
|
-
export type $ZodIPv6Params = StringFormatParams<schemas.$ZodIPv6, "pattern">;
|
|
347
|
-
export type $ZodCheckIPv6Params = CheckStringFormatParams<schemas.$ZodIPv6, "pattern">;
|
|
366
|
+
export type $ZodIPv6Params = StringFormatParams<schemas.$ZodIPv6, "pattern" | "when" | "version">;
|
|
367
|
+
export type $ZodCheckIPv6Params = CheckStringFormatParams<schemas.$ZodIPv6, "pattern" | "when" | "version">;
|
|
368
|
+
// @__NO_SIDE_EFFECTS__
|
|
348
369
|
export function _ipv6<T extends schemas.$ZodIPv6>(
|
|
349
370
|
Class: util.SchemaClass<T>,
|
|
350
371
|
params?: string | $ZodIPv6Params | $ZodCheckIPv6Params
|
|
@@ -358,9 +379,27 @@ export function _ipv6<T extends schemas.$ZodIPv6>(
|
|
|
358
379
|
});
|
|
359
380
|
}
|
|
360
381
|
|
|
382
|
+
// MAC
|
|
383
|
+
export type $ZodMACParams = StringFormatParams<schemas.$ZodMAC, "pattern" | "when">;
|
|
384
|
+
export type $ZodCheckMACParams = CheckStringFormatParams<schemas.$ZodMAC, "pattern" | "when">;
|
|
385
|
+
// @__NO_SIDE_EFFECTS__
|
|
386
|
+
export function _mac<T extends schemas.$ZodMAC>(
|
|
387
|
+
Class: util.SchemaClass<T>,
|
|
388
|
+
params?: string | $ZodMACParams | $ZodCheckMACParams
|
|
389
|
+
): T {
|
|
390
|
+
return new Class({
|
|
391
|
+
type: "string",
|
|
392
|
+
format: "mac",
|
|
393
|
+
check: "string_format",
|
|
394
|
+
abort: false,
|
|
395
|
+
...util.normalizeParams(params),
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
|
|
361
399
|
// CIDRv4
|
|
362
|
-
export type $ZodCIDRv4Params = StringFormatParams<schemas.$ZodCIDRv4, "pattern">;
|
|
363
|
-
export type $ZodCheckCIDRv4Params = CheckStringFormatParams<schemas.$ZodCIDRv4, "pattern">;
|
|
400
|
+
export type $ZodCIDRv4Params = StringFormatParams<schemas.$ZodCIDRv4, "pattern" | "when">;
|
|
401
|
+
export type $ZodCheckCIDRv4Params = CheckStringFormatParams<schemas.$ZodCIDRv4, "pattern" | "when">;
|
|
402
|
+
// @__NO_SIDE_EFFECTS__
|
|
364
403
|
export function _cidrv4<T extends schemas.$ZodCIDRv4>(
|
|
365
404
|
Class: util.SchemaClass<T>,
|
|
366
405
|
params?: string | $ZodCIDRv4Params | $ZodCheckCIDRv4Params
|
|
@@ -375,8 +414,9 @@ export function _cidrv4<T extends schemas.$ZodCIDRv4>(
|
|
|
375
414
|
}
|
|
376
415
|
|
|
377
416
|
// CIDRv6
|
|
378
|
-
export type $ZodCIDRv6Params = StringFormatParams<schemas.$ZodCIDRv6, "pattern">;
|
|
379
|
-
export type $ZodCheckCIDRv6Params = CheckStringFormatParams<schemas.$ZodCIDRv6, "pattern">;
|
|
417
|
+
export type $ZodCIDRv6Params = StringFormatParams<schemas.$ZodCIDRv6, "pattern" | "when">;
|
|
418
|
+
export type $ZodCheckCIDRv6Params = CheckStringFormatParams<schemas.$ZodCIDRv6, "pattern" | "when">;
|
|
419
|
+
// @__NO_SIDE_EFFECTS__
|
|
380
420
|
export function _cidrv6<T extends schemas.$ZodCIDRv6>(
|
|
381
421
|
Class: util.SchemaClass<T>,
|
|
382
422
|
params?: string | $ZodCIDRv6Params | $ZodCheckCIDRv6Params
|
|
@@ -391,8 +431,9 @@ export function _cidrv6<T extends schemas.$ZodCIDRv6>(
|
|
|
391
431
|
}
|
|
392
432
|
|
|
393
433
|
// Base64
|
|
394
|
-
export type $ZodBase64Params = StringFormatParams<schemas.$ZodBase64, "pattern">;
|
|
395
|
-
export type $ZodCheckBase64Params = CheckStringFormatParams<schemas.$ZodBase64, "pattern">;
|
|
434
|
+
export type $ZodBase64Params = StringFormatParams<schemas.$ZodBase64, "pattern" | "when">;
|
|
435
|
+
export type $ZodCheckBase64Params = CheckStringFormatParams<schemas.$ZodBase64, "pattern" | "when">;
|
|
436
|
+
// @__NO_SIDE_EFFECTS__
|
|
396
437
|
export function _base64<T extends schemas.$ZodBase64>(
|
|
397
438
|
Class: util.SchemaClass<T>,
|
|
398
439
|
params?: string | $ZodBase64Params | $ZodCheckBase64Params
|
|
@@ -407,8 +448,9 @@ export function _base64<T extends schemas.$ZodBase64>(
|
|
|
407
448
|
}
|
|
408
449
|
|
|
409
450
|
// base64url
|
|
410
|
-
export type $ZodBase64URLParams = StringFormatParams<schemas.$ZodBase64URL, "pattern">;
|
|
411
|
-
export type $ZodCheckBase64URLParams = CheckStringFormatParams<schemas.$ZodBase64URL, "pattern">;
|
|
451
|
+
export type $ZodBase64URLParams = StringFormatParams<schemas.$ZodBase64URL, "pattern" | "when">;
|
|
452
|
+
export type $ZodCheckBase64URLParams = CheckStringFormatParams<schemas.$ZodBase64URL, "pattern" | "when">;
|
|
453
|
+
// @__NO_SIDE_EFFECTS__
|
|
412
454
|
export function _base64url<T extends schemas.$ZodBase64URL>(
|
|
413
455
|
Class: util.SchemaClass<T>,
|
|
414
456
|
params?: string | $ZodBase64URLParams | $ZodCheckBase64URLParams
|
|
@@ -423,8 +465,9 @@ export function _base64url<T extends schemas.$ZodBase64URL>(
|
|
|
423
465
|
}
|
|
424
466
|
|
|
425
467
|
// E164
|
|
426
|
-
export type $ZodE164Params = StringFormatParams<schemas.$ZodE164>;
|
|
427
|
-
export type $ZodCheckE164Params = CheckStringFormatParams<schemas.$ZodE164>;
|
|
468
|
+
export type $ZodE164Params = StringFormatParams<schemas.$ZodE164, "when">;
|
|
469
|
+
export type $ZodCheckE164Params = CheckStringFormatParams<schemas.$ZodE164, "when">;
|
|
470
|
+
// @__NO_SIDE_EFFECTS__
|
|
428
471
|
export function _e164<T extends schemas.$ZodE164>(
|
|
429
472
|
Class: util.SchemaClass<T>,
|
|
430
473
|
params?: string | $ZodE164Params | $ZodCheckE164Params
|
|
@@ -438,9 +481,44 @@ export function _e164<T extends schemas.$ZodE164>(
|
|
|
438
481
|
});
|
|
439
482
|
}
|
|
440
483
|
|
|
484
|
+
// CreditCard
|
|
485
|
+
export type $ZodCreditCardParams = StringFormatParams<schemas.$ZodCreditCard, "pattern" | "when">;
|
|
486
|
+
export type $ZodCheckCreditCardParams = CheckStringFormatParams<schemas.$ZodCreditCard, "pattern" | "when">;
|
|
487
|
+
// @__NO_SIDE_EFFECTS__
|
|
488
|
+
export function _creditCard<T extends schemas.$ZodCreditCard>(
|
|
489
|
+
Class: util.SchemaClass<T>,
|
|
490
|
+
params?: string | $ZodCreditCardParams | $ZodCheckCreditCardParams
|
|
491
|
+
): T {
|
|
492
|
+
return new Class({
|
|
493
|
+
type: "string",
|
|
494
|
+
format: "credit_card",
|
|
495
|
+
check: "string_format",
|
|
496
|
+
abort: false,
|
|
497
|
+
...util.normalizeParams(params),
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
// IBAN
|
|
502
|
+
export type $ZodIBANParams = StringFormatParams<schemas.$ZodIBAN, "pattern" | "when">;
|
|
503
|
+
export type $ZodCheckIBANParams = CheckStringFormatParams<schemas.$ZodIBAN, "pattern" | "when">;
|
|
504
|
+
// @__NO_SIDE_EFFECTS__
|
|
505
|
+
export function _iban<T extends schemas.$ZodIBAN>(
|
|
506
|
+
Class: util.SchemaClass<T>,
|
|
507
|
+
params?: string | $ZodIBANParams | $ZodCheckIBANParams
|
|
508
|
+
): T {
|
|
509
|
+
return new Class({
|
|
510
|
+
type: "string",
|
|
511
|
+
format: "iban",
|
|
512
|
+
check: "string_format",
|
|
513
|
+
abort: false,
|
|
514
|
+
...util.normalizeParams(params),
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
|
|
441
518
|
// JWT
|
|
442
|
-
export type $ZodJWTParams = StringFormatParams<schemas.$ZodJWT, "pattern">;
|
|
443
|
-
export type $ZodCheckJWTParams = CheckStringFormatParams<schemas.$ZodJWT, "pattern">;
|
|
519
|
+
export type $ZodJWTParams = StringFormatParams<schemas.$ZodJWT, "pattern" | "when">;
|
|
520
|
+
export type $ZodCheckJWTParams = CheckStringFormatParams<schemas.$ZodJWT, "pattern" | "when">;
|
|
521
|
+
// @__NO_SIDE_EFFECTS__
|
|
444
522
|
export function _jwt<T extends schemas.$ZodJWT>(
|
|
445
523
|
Class: util.SchemaClass<T>,
|
|
446
524
|
params?: string | $ZodJWTParams | $ZodCheckJWTParams
|
|
@@ -462,8 +540,9 @@ export const TimePrecision = {
|
|
|
462
540
|
Microsecond: 6,
|
|
463
541
|
} as const;
|
|
464
542
|
// ISODateTime
|
|
465
|
-
export type $ZodISODateTimeParams = StringFormatParams<schemas.$ZodISODateTime, "pattern">;
|
|
466
|
-
export type $ZodCheckISODateTimeParams = CheckStringFormatParams<schemas.$ZodISODateTime, "pattern">;
|
|
543
|
+
export type $ZodISODateTimeParams = StringFormatParams<schemas.$ZodISODateTime, "pattern" | "when">;
|
|
544
|
+
export type $ZodCheckISODateTimeParams = CheckStringFormatParams<schemas.$ZodISODateTime, "pattern" | "when">;
|
|
545
|
+
// @__NO_SIDE_EFFECTS__
|
|
467
546
|
export function _isoDateTime<T extends schemas.$ZodISODateTime>(
|
|
468
547
|
Class: util.SchemaClass<T>,
|
|
469
548
|
params?: string | $ZodISODateTimeParams | $ZodCheckISODateTimeParams
|
|
@@ -480,8 +559,9 @@ export function _isoDateTime<T extends schemas.$ZodISODateTime>(
|
|
|
480
559
|
}
|
|
481
560
|
|
|
482
561
|
// ISODate
|
|
483
|
-
export type $ZodISODateParams = StringFormatParams<schemas.$ZodISODate, "pattern">;
|
|
484
|
-
export type $ZodCheckISODateParams = CheckStringFormatParams<schemas.$ZodISODate, "pattern">;
|
|
562
|
+
export type $ZodISODateParams = StringFormatParams<schemas.$ZodISODate, "pattern" | "when">;
|
|
563
|
+
export type $ZodCheckISODateParams = CheckStringFormatParams<schemas.$ZodISODate, "pattern" | "when">;
|
|
564
|
+
// @__NO_SIDE_EFFECTS__
|
|
485
565
|
export function _isoDate<T extends schemas.$ZodISODate>(
|
|
486
566
|
Class: util.SchemaClass<T>,
|
|
487
567
|
params?: string | $ZodISODateParams | $ZodCheckISODateParams
|
|
@@ -495,8 +575,9 @@ export function _isoDate<T extends schemas.$ZodISODate>(
|
|
|
495
575
|
}
|
|
496
576
|
|
|
497
577
|
// ISOTime
|
|
498
|
-
export type $ZodISOTimeParams = StringFormatParams<schemas.$ZodISOTime, "pattern">;
|
|
499
|
-
export type $ZodCheckISOTimeParams = CheckStringFormatParams<schemas.$ZodISOTime, "pattern">;
|
|
578
|
+
export type $ZodISOTimeParams = StringFormatParams<schemas.$ZodISOTime, "pattern" | "when">;
|
|
579
|
+
export type $ZodCheckISOTimeParams = CheckStringFormatParams<schemas.$ZodISOTime, "pattern" | "when">;
|
|
580
|
+
// @__NO_SIDE_EFFECTS__
|
|
500
581
|
export function _isoTime<T extends schemas.$ZodISOTime>(
|
|
501
582
|
Class: util.SchemaClass<T>,
|
|
502
583
|
params?: string | $ZodISOTimeParams | $ZodCheckISOTimeParams
|
|
@@ -511,8 +592,9 @@ export function _isoTime<T extends schemas.$ZodISOTime>(
|
|
|
511
592
|
}
|
|
512
593
|
|
|
513
594
|
// ISODuration
|
|
514
|
-
export type $ZodISODurationParams = StringFormatParams<schemas.$ZodISODuration>;
|
|
515
|
-
export type $ZodCheckISODurationParams = CheckStringFormatParams<schemas.$ZodISODuration>;
|
|
595
|
+
export type $ZodISODurationParams = StringFormatParams<schemas.$ZodISODuration, "when">;
|
|
596
|
+
export type $ZodCheckISODurationParams = CheckStringFormatParams<schemas.$ZodISODuration, "when">;
|
|
597
|
+
// @__NO_SIDE_EFFECTS__
|
|
516
598
|
export function _isoDuration<T extends schemas.$ZodISODuration>(
|
|
517
599
|
Class: util.SchemaClass<T>,
|
|
518
600
|
params?: string | $ZodISODurationParams | $ZodCheckISODurationParams
|
|
@@ -526,32 +608,30 @@ export function _isoDuration<T extends schemas.$ZodISODuration>(
|
|
|
526
608
|
}
|
|
527
609
|
|
|
528
610
|
// Number
|
|
529
|
-
export type $ZodNumberParams = TypeParams<schemas.$ZodNumber<number>, "coerce"
|
|
611
|
+
export type $ZodNumberParams = TypeParams<schemas.$ZodNumber<number>, "coerce"> & {
|
|
612
|
+
checks?: readonly checks.$ZodCheck<number>[];
|
|
613
|
+
};
|
|
530
614
|
export type $ZodNumberFormatParams = CheckTypeParams<schemas.$ZodNumberFormat, "format" | "coerce">;
|
|
531
|
-
export type $ZodCheckNumberFormatParams = CheckParams<checks.$ZodCheckNumberFormat, "format">;
|
|
615
|
+
export type $ZodCheckNumberFormatParams = CheckParams<checks.$ZodCheckNumberFormat, "format" | "when">;
|
|
616
|
+
// @__NO_SIDE_EFFECTS__
|
|
532
617
|
export function _number<T extends schemas.$ZodNumber>(
|
|
533
618
|
Class: util.SchemaClass<T>,
|
|
534
619
|
params?: string | $ZodNumberParams
|
|
535
620
|
): T {
|
|
536
|
-
return new Class({
|
|
537
|
-
type: "number",
|
|
538
|
-
checks: [],
|
|
539
|
-
...util.normalizeParams(params),
|
|
540
|
-
});
|
|
621
|
+
return new Class(snapshotChecks({ type: "number" as const, checks: [], ...util.normalizeParams(params) }));
|
|
541
622
|
}
|
|
542
623
|
|
|
624
|
+
// @__NO_SIDE_EFFECTS__
|
|
543
625
|
export function _coercedNumber<T extends schemas.$ZodNumber>(
|
|
544
626
|
Class: util.SchemaClass<T>,
|
|
545
627
|
params?: string | $ZodNumberParams
|
|
546
628
|
): T {
|
|
547
|
-
return new Class(
|
|
548
|
-
type: "number",
|
|
549
|
-
|
|
550
|
-
checks: [],
|
|
551
|
-
...util.normalizeParams(params),
|
|
552
|
-
});
|
|
629
|
+
return new Class(
|
|
630
|
+
snapshotChecks({ type: "number" as const, coerce: true, checks: [], ...util.normalizeParams(params) })
|
|
631
|
+
);
|
|
553
632
|
}
|
|
554
633
|
|
|
634
|
+
// @__NO_SIDE_EFFECTS__
|
|
555
635
|
export function _int<T extends schemas.$ZodNumberFormat>(
|
|
556
636
|
Class: util.SchemaClass<T>,
|
|
557
637
|
params?: string | $ZodCheckNumberFormatParams
|
|
@@ -564,6 +644,7 @@ export function _int<T extends schemas.$ZodNumberFormat>(
|
|
|
564
644
|
...util.normalizeParams(params),
|
|
565
645
|
});
|
|
566
646
|
}
|
|
647
|
+
// @__NO_SIDE_EFFECTS__
|
|
567
648
|
export function _float32<T extends schemas.$ZodNumberFormat>(
|
|
568
649
|
Class: util.SchemaClass<T>,
|
|
569
650
|
params?: string | $ZodCheckNumberFormatParams
|
|
@@ -576,6 +657,7 @@ export function _float32<T extends schemas.$ZodNumberFormat>(
|
|
|
576
657
|
...util.normalizeParams(params),
|
|
577
658
|
});
|
|
578
659
|
}
|
|
660
|
+
// @__NO_SIDE_EFFECTS__
|
|
579
661
|
export function _float64<T extends schemas.$ZodNumberFormat>(
|
|
580
662
|
Class: util.SchemaClass<T>,
|
|
581
663
|
params?: string | $ZodCheckNumberFormatParams
|
|
@@ -588,6 +670,7 @@ export function _float64<T extends schemas.$ZodNumberFormat>(
|
|
|
588
670
|
...util.normalizeParams(params),
|
|
589
671
|
});
|
|
590
672
|
}
|
|
673
|
+
// @__NO_SIDE_EFFECTS__
|
|
591
674
|
export function _int32<T extends schemas.$ZodNumberFormat>(
|
|
592
675
|
Class: util.SchemaClass<T>,
|
|
593
676
|
params?: string | $ZodCheckNumberFormatParams
|
|
@@ -600,6 +683,7 @@ export function _int32<T extends schemas.$ZodNumberFormat>(
|
|
|
600
683
|
...util.normalizeParams(params),
|
|
601
684
|
});
|
|
602
685
|
}
|
|
686
|
+
// @__NO_SIDE_EFFECTS__
|
|
603
687
|
export function _uint32<T extends schemas.$ZodNumberFormat>(
|
|
604
688
|
Class: util.SchemaClass<T>,
|
|
605
689
|
params?: string | $ZodCheckNumberFormatParams
|
|
@@ -615,6 +699,7 @@ export function _uint32<T extends schemas.$ZodNumberFormat>(
|
|
|
615
699
|
|
|
616
700
|
// Boolean
|
|
617
701
|
export type $ZodBooleanParams = TypeParams<schemas.$ZodBoolean<boolean>, "coerce">;
|
|
702
|
+
// @__NO_SIDE_EFFECTS__
|
|
618
703
|
export function _boolean<T extends schemas.$ZodBoolean>(
|
|
619
704
|
Class: util.SchemaClass<T>,
|
|
620
705
|
params?: string | $ZodBooleanParams
|
|
@@ -624,6 +709,7 @@ export function _boolean<T extends schemas.$ZodBoolean>(
|
|
|
624
709
|
...util.normalizeParams(params),
|
|
625
710
|
});
|
|
626
711
|
}
|
|
712
|
+
// @__NO_SIDE_EFFECTS__
|
|
627
713
|
export function _coercedBoolean<T extends schemas.$ZodBoolean>(
|
|
628
714
|
Class: util.SchemaClass<T>,
|
|
629
715
|
params?: string | $ZodBooleanParams
|
|
@@ -638,7 +724,8 @@ export function _coercedBoolean<T extends schemas.$ZodBoolean>(
|
|
|
638
724
|
// BigInt
|
|
639
725
|
export type $ZodBigIntParams = TypeParams<schemas.$ZodBigInt<bigint>>;
|
|
640
726
|
export type $ZodBigIntFormatParams = CheckTypeParams<schemas.$ZodBigIntFormat, "format" | "coerce">;
|
|
641
|
-
export type $ZodCheckBigIntFormatParams = CheckParams<checks.$ZodCheckBigIntFormat, "format">;
|
|
727
|
+
export type $ZodCheckBigIntFormatParams = CheckParams<checks.$ZodCheckBigIntFormat, "format" | "when">;
|
|
728
|
+
// @__NO_SIDE_EFFECTS__
|
|
642
729
|
export function _bigint<T extends schemas.$ZodBigInt>(
|
|
643
730
|
Class: util.SchemaClass<T>,
|
|
644
731
|
params?: string | $ZodBigIntParams
|
|
@@ -648,6 +735,7 @@ export function _bigint<T extends schemas.$ZodBigInt>(
|
|
|
648
735
|
...util.normalizeParams(params),
|
|
649
736
|
});
|
|
650
737
|
}
|
|
738
|
+
// @__NO_SIDE_EFFECTS__
|
|
651
739
|
export function _coercedBigint<T extends schemas.$ZodBigInt>(
|
|
652
740
|
Class: util.SchemaClass<T>,
|
|
653
741
|
params?: string | $ZodBigIntParams
|
|
@@ -659,6 +747,7 @@ export function _coercedBigint<T extends schemas.$ZodBigInt>(
|
|
|
659
747
|
});
|
|
660
748
|
}
|
|
661
749
|
|
|
750
|
+
// @__NO_SIDE_EFFECTS__
|
|
662
751
|
export function _int64<T extends schemas.$ZodBigIntFormat>(
|
|
663
752
|
Class: util.SchemaClass<T>,
|
|
664
753
|
params?: string | $ZodBigIntFormatParams
|
|
@@ -671,6 +760,7 @@ export function _int64<T extends schemas.$ZodBigIntFormat>(
|
|
|
671
760
|
...util.normalizeParams(params),
|
|
672
761
|
});
|
|
673
762
|
}
|
|
763
|
+
// @__NO_SIDE_EFFECTS__
|
|
674
764
|
export function _uint64<T extends schemas.$ZodBigIntFormat>(
|
|
675
765
|
Class: util.SchemaClass<T>,
|
|
676
766
|
params?: string | $ZodBigIntFormatParams
|
|
@@ -686,6 +776,7 @@ export function _uint64<T extends schemas.$ZodBigIntFormat>(
|
|
|
686
776
|
|
|
687
777
|
// Symbol
|
|
688
778
|
export type $ZodSymbolParams = TypeParams<schemas.$ZodSymbol>;
|
|
779
|
+
// @__NO_SIDE_EFFECTS__
|
|
689
780
|
export function _symbol<T extends schemas.$ZodSymbol>(
|
|
690
781
|
Class: util.SchemaClass<T>,
|
|
691
782
|
params?: string | $ZodSymbolParams
|
|
@@ -698,6 +789,7 @@ export function _symbol<T extends schemas.$ZodSymbol>(
|
|
|
698
789
|
|
|
699
790
|
// Undefined
|
|
700
791
|
export type $ZodUndefinedParams = TypeParams<schemas.$ZodUndefined>;
|
|
792
|
+
// @__NO_SIDE_EFFECTS__
|
|
701
793
|
export function _undefined<T extends schemas.$ZodUndefined>(
|
|
702
794
|
Class: util.SchemaClass<T>,
|
|
703
795
|
params?: string | $ZodUndefinedParams
|
|
@@ -710,6 +802,7 @@ export function _undefined<T extends schemas.$ZodUndefined>(
|
|
|
710
802
|
|
|
711
803
|
// Null
|
|
712
804
|
export type $ZodNullParams = TypeParams<schemas.$ZodNull>;
|
|
805
|
+
// @__NO_SIDE_EFFECTS__
|
|
713
806
|
export function _null<T extends schemas.$ZodNull>(Class: util.SchemaClass<T>, params?: string | $ZodNullParams): T {
|
|
714
807
|
return new Class({
|
|
715
808
|
type: "null",
|
|
@@ -719,6 +812,7 @@ export function _null<T extends schemas.$ZodNull>(Class: util.SchemaClass<T>, pa
|
|
|
719
812
|
|
|
720
813
|
// Any
|
|
721
814
|
export type $ZodAnyParams = TypeParams<schemas.$ZodAny>;
|
|
815
|
+
// @__NO_SIDE_EFFECTS__
|
|
722
816
|
export function _any<T extends schemas.$ZodAny>(Class: util.SchemaClass<T>): T {
|
|
723
817
|
return new Class({
|
|
724
818
|
type: "any",
|
|
@@ -727,6 +821,7 @@ export function _any<T extends schemas.$ZodAny>(Class: util.SchemaClass<T>): T {
|
|
|
727
821
|
|
|
728
822
|
// Unknown
|
|
729
823
|
export type $ZodUnknownParams = TypeParams<schemas.$ZodUnknown>;
|
|
824
|
+
// @__NO_SIDE_EFFECTS__
|
|
730
825
|
export function _unknown<T extends schemas.$ZodUnknown>(Class: util.SchemaClass<T>): T {
|
|
731
826
|
return new Class({
|
|
732
827
|
type: "unknown",
|
|
@@ -735,6 +830,7 @@ export function _unknown<T extends schemas.$ZodUnknown>(Class: util.SchemaClass<
|
|
|
735
830
|
|
|
736
831
|
// Never
|
|
737
832
|
export type $ZodNeverParams = TypeParams<schemas.$ZodNever>;
|
|
833
|
+
// @__NO_SIDE_EFFECTS__
|
|
738
834
|
export function _never<T extends schemas.$ZodNever>(Class: util.SchemaClass<T>, params?: string | $ZodNeverParams): T {
|
|
739
835
|
return new Class({
|
|
740
836
|
type: "never",
|
|
@@ -744,6 +840,7 @@ export function _never<T extends schemas.$ZodNever>(Class: util.SchemaClass<T>,
|
|
|
744
840
|
|
|
745
841
|
// Void
|
|
746
842
|
export type $ZodVoidParams = TypeParams<schemas.$ZodVoid>;
|
|
843
|
+
// @__NO_SIDE_EFFECTS__
|
|
747
844
|
export function _void<T extends schemas.$ZodVoid>(Class: util.SchemaClass<T>, params?: string | $ZodVoidParams): T {
|
|
748
845
|
return new Class({
|
|
749
846
|
type: "void",
|
|
@@ -753,12 +850,14 @@ export function _void<T extends schemas.$ZodVoid>(Class: util.SchemaClass<T>, pa
|
|
|
753
850
|
|
|
754
851
|
// Date
|
|
755
852
|
export type $ZodDateParams = TypeParams<schemas.$ZodDate, "coerce">;
|
|
853
|
+
// @__NO_SIDE_EFFECTS__
|
|
756
854
|
export function _date<T extends schemas.$ZodDate>(Class: util.SchemaClass<T>, params?: string | $ZodDateParams): T {
|
|
757
855
|
return new Class({
|
|
758
856
|
type: "date",
|
|
759
857
|
...util.normalizeParams(params),
|
|
760
858
|
});
|
|
761
859
|
}
|
|
860
|
+
// @__NO_SIDE_EFFECTS__
|
|
762
861
|
export function _coercedDate<T extends schemas.$ZodDate>(
|
|
763
862
|
Class: util.SchemaClass<T>,
|
|
764
863
|
params?: string | $ZodDateParams
|
|
@@ -772,6 +871,7 @@ export function _coercedDate<T extends schemas.$ZodDate>(
|
|
|
772
871
|
|
|
773
872
|
// NaN
|
|
774
873
|
export type $ZodNaNParams = TypeParams<schemas.$ZodNaN>;
|
|
874
|
+
// @__NO_SIDE_EFFECTS__
|
|
775
875
|
export function _nan<T extends schemas.$ZodNaN>(Class: util.SchemaClass<T>, params?: string | $ZodNaNParams): T {
|
|
776
876
|
return new Class({
|
|
777
877
|
type: "nan",
|
|
@@ -779,9 +879,10 @@ export function _nan<T extends schemas.$ZodNaN>(Class: util.SchemaClass<T>, para
|
|
|
779
879
|
});
|
|
780
880
|
}
|
|
781
881
|
|
|
782
|
-
// export type $ZodCheckParams = CheckParams<checks.$ZodCheck, "abort">;
|
|
882
|
+
// export type $ZodCheckParams = CheckParams<checks.$ZodCheck, "abort" | "when">;
|
|
783
883
|
|
|
784
|
-
export type $ZodCheckLessThanParams = CheckParams<checks.$ZodCheckLessThan, "inclusive" | "value">;
|
|
884
|
+
export type $ZodCheckLessThanParams = CheckParams<checks.$ZodCheckLessThan, "inclusive" | "value" | "when">;
|
|
885
|
+
// @__NO_SIDE_EFFECTS__
|
|
785
886
|
export function _lt(
|
|
786
887
|
value: util.Numeric,
|
|
787
888
|
params?: string | $ZodCheckLessThanParams
|
|
@@ -794,6 +895,7 @@ export function _lt(
|
|
|
794
895
|
});
|
|
795
896
|
}
|
|
796
897
|
|
|
898
|
+
// @__NO_SIDE_EFFECTS__
|
|
797
899
|
export function _lte(
|
|
798
900
|
value: util.Numeric,
|
|
799
901
|
params?: string | $ZodCheckLessThanParams
|
|
@@ -812,7 +914,8 @@ export {
|
|
|
812
914
|
};
|
|
813
915
|
|
|
814
916
|
// ZodCheckGreaterThan
|
|
815
|
-
export type $ZodCheckGreaterThanParams = CheckParams<checks.$ZodCheckGreaterThan, "inclusive" | "value">;
|
|
917
|
+
export type $ZodCheckGreaterThanParams = CheckParams<checks.$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
|
|
918
|
+
// @__NO_SIDE_EFFECTS__
|
|
816
919
|
export function _gt(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
|
|
817
920
|
return new checks.$ZodCheckGreaterThan({
|
|
818
921
|
check: "greater_than",
|
|
@@ -823,6 +926,7 @@ export function _gt(value: util.Numeric, params?: string | $ZodCheckGreaterThanP
|
|
|
823
926
|
});
|
|
824
927
|
}
|
|
825
928
|
|
|
929
|
+
// @__NO_SIDE_EFFECTS__
|
|
826
930
|
export function _gte(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
|
|
827
931
|
return new checks.$ZodCheckGreaterThan({
|
|
828
932
|
check: "greater_than",
|
|
@@ -837,26 +941,31 @@ export {
|
|
|
837
941
|
_gte as _min,
|
|
838
942
|
};
|
|
839
943
|
|
|
944
|
+
// @__NO_SIDE_EFFECTS__
|
|
840
945
|
export function _positive(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
|
|
841
946
|
return _gt(0, params);
|
|
842
947
|
}
|
|
843
948
|
|
|
844
949
|
// negative
|
|
950
|
+
// @__NO_SIDE_EFFECTS__
|
|
845
951
|
export function _negative(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan {
|
|
846
952
|
return _lt(0, params);
|
|
847
953
|
}
|
|
848
954
|
|
|
849
955
|
// nonpositive
|
|
956
|
+
// @__NO_SIDE_EFFECTS__
|
|
850
957
|
export function _nonpositive(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan {
|
|
851
958
|
return _lte(0, params);
|
|
852
959
|
}
|
|
853
960
|
|
|
854
961
|
// nonnegative
|
|
962
|
+
// @__NO_SIDE_EFFECTS__
|
|
855
963
|
export function _nonnegative(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
|
|
856
964
|
return _gte(0, params);
|
|
857
965
|
}
|
|
858
966
|
|
|
859
|
-
export type $ZodCheckMultipleOfParams = CheckParams<checks.$ZodCheckMultipleOf, "value">;
|
|
967
|
+
export type $ZodCheckMultipleOfParams = CheckParams<checks.$ZodCheckMultipleOf, "value" | "when">;
|
|
968
|
+
// @__NO_SIDE_EFFECTS__
|
|
860
969
|
export function _multipleOf(
|
|
861
970
|
value: number | bigint,
|
|
862
971
|
params?: string | $ZodCheckMultipleOfParams
|
|
@@ -868,7 +977,8 @@ export function _multipleOf(
|
|
|
868
977
|
});
|
|
869
978
|
}
|
|
870
979
|
|
|
871
|
-
export type $ZodCheckMaxSizeParams = CheckParams<checks.$ZodCheckMaxSize, "maximum">;
|
|
980
|
+
export type $ZodCheckMaxSizeParams = CheckParams<checks.$ZodCheckMaxSize, "maximum" | "when">;
|
|
981
|
+
// @__NO_SIDE_EFFECTS__
|
|
872
982
|
export function _maxSize(
|
|
873
983
|
maximum: number,
|
|
874
984
|
params?: string | $ZodCheckMaxSizeParams
|
|
@@ -880,7 +990,8 @@ export function _maxSize(
|
|
|
880
990
|
});
|
|
881
991
|
}
|
|
882
992
|
|
|
883
|
-
export type $ZodCheckMinSizeParams = CheckParams<checks.$ZodCheckMinSize, "minimum">;
|
|
993
|
+
export type $ZodCheckMinSizeParams = CheckParams<checks.$ZodCheckMinSize, "minimum" | "when">;
|
|
994
|
+
// @__NO_SIDE_EFFECTS__
|
|
884
995
|
export function _minSize(
|
|
885
996
|
minimum: number,
|
|
886
997
|
params?: string | $ZodCheckMinSizeParams
|
|
@@ -892,7 +1003,8 @@ export function _minSize(
|
|
|
892
1003
|
});
|
|
893
1004
|
}
|
|
894
1005
|
|
|
895
|
-
export type $ZodCheckSizeEqualsParams = CheckParams<checks.$ZodCheckSizeEquals, "size">;
|
|
1006
|
+
export type $ZodCheckSizeEqualsParams = CheckParams<checks.$ZodCheckSizeEquals, "size" | "when">;
|
|
1007
|
+
// @__NO_SIDE_EFFECTS__
|
|
896
1008
|
export function _size(
|
|
897
1009
|
size: number,
|
|
898
1010
|
params?: string | $ZodCheckSizeEqualsParams
|
|
@@ -904,7 +1016,8 @@ export function _size(
|
|
|
904
1016
|
});
|
|
905
1017
|
}
|
|
906
1018
|
|
|
907
|
-
export type $ZodCheckMaxLengthParams = CheckParams<checks.$ZodCheckMaxLength, "maximum">;
|
|
1019
|
+
export type $ZodCheckMaxLengthParams = CheckParams<checks.$ZodCheckMaxLength, "maximum" | "when">;
|
|
1020
|
+
// @__NO_SIDE_EFFECTS__
|
|
908
1021
|
export function _maxLength(
|
|
909
1022
|
maximum: number,
|
|
910
1023
|
params?: string | $ZodCheckMaxLengthParams
|
|
@@ -917,7 +1030,8 @@ export function _maxLength(
|
|
|
917
1030
|
return ch;
|
|
918
1031
|
}
|
|
919
1032
|
|
|
920
|
-
export type $ZodCheckMinLengthParams = CheckParams<checks.$ZodCheckMinLength, "minimum">;
|
|
1033
|
+
export type $ZodCheckMinLengthParams = CheckParams<checks.$ZodCheckMinLength, "minimum" | "when">;
|
|
1034
|
+
// @__NO_SIDE_EFFECTS__
|
|
921
1035
|
export function _minLength(
|
|
922
1036
|
minimum: number,
|
|
923
1037
|
params?: string | $ZodCheckMinLengthParams
|
|
@@ -929,7 +1043,8 @@ export function _minLength(
|
|
|
929
1043
|
});
|
|
930
1044
|
}
|
|
931
1045
|
|
|
932
|
-
export type $ZodCheckLengthEqualsParams = CheckParams<checks.$ZodCheckLengthEquals, "length">;
|
|
1046
|
+
export type $ZodCheckLengthEqualsParams = CheckParams<checks.$ZodCheckLengthEquals, "length" | "when">;
|
|
1047
|
+
// @__NO_SIDE_EFFECTS__
|
|
933
1048
|
export function _length(
|
|
934
1049
|
length: number,
|
|
935
1050
|
params?: string | $ZodCheckLengthEqualsParams
|
|
@@ -941,7 +1056,8 @@ export function _length(
|
|
|
941
1056
|
});
|
|
942
1057
|
}
|
|
943
1058
|
|
|
944
|
-
export type $ZodCheckRegexParams = CheckParams<checks.$ZodCheckRegex, "format" | "pattern">;
|
|
1059
|
+
export type $ZodCheckRegexParams = CheckParams<checks.$ZodCheckRegex, "format" | "pattern" | "when">;
|
|
1060
|
+
// @__NO_SIDE_EFFECTS__
|
|
945
1061
|
export function _regex(pattern: RegExp, params?: string | $ZodCheckRegexParams): checks.$ZodCheckRegex {
|
|
946
1062
|
return new checks.$ZodCheckRegex({
|
|
947
1063
|
check: "string_format",
|
|
@@ -951,7 +1067,8 @@ export function _regex(pattern: RegExp, params?: string | $ZodCheckRegexParams):
|
|
|
951
1067
|
});
|
|
952
1068
|
}
|
|
953
1069
|
|
|
954
|
-
export type $ZodCheckLowerCaseParams = CheckParams<checks.$ZodCheckLowerCase, "format">;
|
|
1070
|
+
export type $ZodCheckLowerCaseParams = CheckParams<checks.$ZodCheckLowerCase, "format" | "when">;
|
|
1071
|
+
// @__NO_SIDE_EFFECTS__
|
|
955
1072
|
export function _lowercase(params?: string | $ZodCheckLowerCaseParams): checks.$ZodCheckLowerCase {
|
|
956
1073
|
return new checks.$ZodCheckLowerCase({
|
|
957
1074
|
check: "string_format",
|
|
@@ -960,8 +1077,9 @@ export function _lowercase(params?: string | $ZodCheckLowerCaseParams): checks.$
|
|
|
960
1077
|
});
|
|
961
1078
|
}
|
|
962
1079
|
|
|
963
|
-
export type $ZodCheckUpperCaseParams = CheckParams<checks.$ZodCheckUpperCase, "format">;
|
|
1080
|
+
export type $ZodCheckUpperCaseParams = CheckParams<checks.$ZodCheckUpperCase, "format" | "when">;
|
|
964
1081
|
|
|
1082
|
+
// @__NO_SIDE_EFFECTS__
|
|
965
1083
|
export function _uppercase(params?: string | $ZodCheckUpperCaseParams): checks.$ZodCheckUpperCase {
|
|
966
1084
|
return new checks.$ZodCheckUpperCase({
|
|
967
1085
|
check: "string_format",
|
|
@@ -970,7 +1088,8 @@ export function _uppercase(params?: string | $ZodCheckUpperCaseParams): checks.$
|
|
|
970
1088
|
});
|
|
971
1089
|
}
|
|
972
1090
|
|
|
973
|
-
export type $ZodCheckIncludesParams = CheckParams<checks.$ZodCheckIncludes, "includes" | "format" | "pattern">;
|
|
1091
|
+
export type $ZodCheckIncludesParams = CheckParams<checks.$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
|
|
1092
|
+
// @__NO_SIDE_EFFECTS__
|
|
974
1093
|
export function _includes(includes: string, params?: string | $ZodCheckIncludesParams): checks.$ZodCheckIncludes {
|
|
975
1094
|
return new checks.$ZodCheckIncludes({
|
|
976
1095
|
check: "string_format",
|
|
@@ -979,7 +1098,11 @@ export function _includes(includes: string, params?: string | $ZodCheckIncludesP
|
|
|
979
1098
|
includes,
|
|
980
1099
|
});
|
|
981
1100
|
}
|
|
982
|
-
export type $ZodCheckStartsWithParams = CheckParams<
|
|
1101
|
+
export type $ZodCheckStartsWithParams = CheckParams<
|
|
1102
|
+
checks.$ZodCheckStartsWith,
|
|
1103
|
+
"prefix" | "format" | "when" | "pattern"
|
|
1104
|
+
>;
|
|
1105
|
+
// @__NO_SIDE_EFFECTS__
|
|
983
1106
|
export function _startsWith(prefix: string, params?: string | $ZodCheckStartsWithParams): checks.$ZodCheckStartsWith {
|
|
984
1107
|
return new checks.$ZodCheckStartsWith({
|
|
985
1108
|
check: "string_format",
|
|
@@ -989,8 +1112,9 @@ export function _startsWith(prefix: string, params?: string | $ZodCheckStartsWit
|
|
|
989
1112
|
});
|
|
990
1113
|
}
|
|
991
1114
|
|
|
992
|
-
export type $ZodCheckEndsWithParams = CheckParams<checks.$ZodCheckEndsWith, "suffix" | "format" | "pattern">;
|
|
1115
|
+
export type $ZodCheckEndsWithParams = CheckParams<checks.$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
|
|
993
1116
|
|
|
1117
|
+
// @__NO_SIDE_EFFECTS__
|
|
994
1118
|
export function _endsWith(suffix: string, params?: string | $ZodCheckEndsWithParams): checks.$ZodCheckEndsWith {
|
|
995
1119
|
return new checks.$ZodCheckEndsWith({
|
|
996
1120
|
check: "string_format",
|
|
@@ -1000,12 +1124,13 @@ export function _endsWith(suffix: string, params?: string | $ZodCheckEndsWithPar
|
|
|
1000
1124
|
});
|
|
1001
1125
|
}
|
|
1002
1126
|
|
|
1003
|
-
export type $ZodCheckPropertyParams = CheckParams<checks.$ZodCheckProperty, "property" | "schema">;
|
|
1127
|
+
export type $ZodCheckPropertyParams = CheckParams<checks.$ZodCheckProperty, "property" | "schema" | "when">;
|
|
1128
|
+
// @__NO_SIDE_EFFECTS__
|
|
1004
1129
|
export function _property<K extends string, T extends schemas.$ZodType>(
|
|
1005
1130
|
property: K,
|
|
1006
1131
|
schema: T,
|
|
1007
1132
|
params?: string | $ZodCheckPropertyParams
|
|
1008
|
-
): checks.$ZodCheckProperty<{ [k in K]: core.
|
|
1133
|
+
): checks.$ZodCheckProperty<{ [k in K]: util.Widen<core.input<T>> }> {
|
|
1009
1134
|
return new checks.$ZodCheckProperty({
|
|
1010
1135
|
check: "property",
|
|
1011
1136
|
property,
|
|
@@ -1014,7 +1139,21 @@ export function _property<K extends string, T extends schemas.$ZodType>(
|
|
|
1014
1139
|
});
|
|
1015
1140
|
}
|
|
1016
1141
|
|
|
1017
|
-
export type $
|
|
1142
|
+
export type $ZodCheckPropertiesParams = CheckParams<checks.$ZodCheckProperties, "shape" | "when">;
|
|
1143
|
+
// @__NO_SIDE_EFFECTS__
|
|
1144
|
+
export function _properties<Shape extends schemas.$ZodShape>(
|
|
1145
|
+
shape: Shape,
|
|
1146
|
+
params?: string | $ZodCheckPropertiesParams
|
|
1147
|
+
): checks.$ZodCheckProperties<Shape> {
|
|
1148
|
+
return new checks.$ZodCheckProperties({
|
|
1149
|
+
check: "properties",
|
|
1150
|
+
shape,
|
|
1151
|
+
...util.normalizeParams(params),
|
|
1152
|
+
}) as any;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
export type $ZodCheckMimeTypeParams = CheckParams<checks.$ZodCheckMimeType, "mime" | "when">;
|
|
1156
|
+
// @__NO_SIDE_EFFECTS__
|
|
1018
1157
|
export function _mime(types: util.MimeTypes[], params?: string | $ZodCheckMimeTypeParams): checks.$ZodCheckMimeType {
|
|
1019
1158
|
return new checks.$ZodCheckMimeType({
|
|
1020
1159
|
check: "mime_type",
|
|
@@ -1023,6 +1162,7 @@ export function _mime(types: util.MimeTypes[], params?: string | $ZodCheckMimeTy
|
|
|
1023
1162
|
});
|
|
1024
1163
|
}
|
|
1025
1164
|
|
|
1165
|
+
// @__NO_SIDE_EFFECTS__
|
|
1026
1166
|
export function _overwrite<T>(tx: (input: T) => T): checks.$ZodCheckOverwrite<T> {
|
|
1027
1167
|
return new checks.$ZodCheckOverwrite({
|
|
1028
1168
|
check: "overwrite",
|
|
@@ -1030,27 +1170,37 @@ export function _overwrite<T>(tx: (input: T) => T): checks.$ZodCheckOverwrite<T>
|
|
|
1030
1170
|
}) as checks.$ZodCheckOverwrite<T>;
|
|
1031
1171
|
}
|
|
1032
1172
|
// normalize
|
|
1173
|
+
// @__NO_SIDE_EFFECTS__
|
|
1033
1174
|
export function _normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): checks.$ZodCheckOverwrite<string> {
|
|
1034
1175
|
return _overwrite((input) => input.normalize(form));
|
|
1035
1176
|
}
|
|
1036
1177
|
|
|
1037
1178
|
// trim
|
|
1179
|
+
// @__NO_SIDE_EFFECTS__
|
|
1038
1180
|
export function _trim(): checks.$ZodCheckOverwrite<string> {
|
|
1039
1181
|
return _overwrite((input) => input.trim());
|
|
1040
1182
|
}
|
|
1041
1183
|
// toLowerCase
|
|
1184
|
+
// @__NO_SIDE_EFFECTS__
|
|
1042
1185
|
export function _toLowerCase(): checks.$ZodCheckOverwrite<string> {
|
|
1043
1186
|
return _overwrite((input) => input.toLowerCase());
|
|
1044
1187
|
}
|
|
1045
1188
|
// toUpperCase
|
|
1189
|
+
// @__NO_SIDE_EFFECTS__
|
|
1046
1190
|
export function _toUpperCase(): checks.$ZodCheckOverwrite<string> {
|
|
1047
1191
|
return _overwrite((input) => input.toUpperCase());
|
|
1048
1192
|
}
|
|
1193
|
+
// slugify
|
|
1194
|
+
// @__NO_SIDE_EFFECTS__
|
|
1195
|
+
export function _slugify(): checks.$ZodCheckOverwrite<string> {
|
|
1196
|
+
return _overwrite((input) => util.slugify(input));
|
|
1197
|
+
}
|
|
1049
1198
|
|
|
1050
1199
|
/////// collections ///////
|
|
1051
1200
|
|
|
1052
1201
|
// Array
|
|
1053
1202
|
export type $ZodArrayParams = TypeParams<schemas.$ZodArray, "element">;
|
|
1203
|
+
// @__NO_SIDE_EFFECTS__
|
|
1054
1204
|
export function _array<T extends schemas.$ZodType>(
|
|
1055
1205
|
Class: util.SchemaClass<schemas.$ZodArray>,
|
|
1056
1206
|
element: T,
|
|
@@ -1070,6 +1220,7 @@ export type $ZodObjectParams = TypeParams<schemas.$ZodObject, "shape" | "catchal
|
|
|
1070
1220
|
|
|
1071
1221
|
// ZodUnion
|
|
1072
1222
|
export type $ZodUnionParams = TypeParams<schemas.$ZodUnion, "options">;
|
|
1223
|
+
// @__NO_SIDE_EFFECTS__
|
|
1073
1224
|
export function _union<const T extends readonly schemas.$ZodObject[]>(
|
|
1074
1225
|
Class: util.SchemaClass<schemas.$ZodUnion>,
|
|
1075
1226
|
options: T,
|
|
@@ -1082,24 +1233,52 @@ export function _union<const T extends readonly schemas.$ZodObject[]>(
|
|
|
1082
1233
|
}) as any;
|
|
1083
1234
|
}
|
|
1084
1235
|
|
|
1236
|
+
// ZodXor
|
|
1237
|
+
export type $ZodXorParams = TypeParams<schemas.$ZodXor, "options">;
|
|
1238
|
+
export function _xor<const T extends readonly schemas.$ZodObject[]>(
|
|
1239
|
+
Class: util.SchemaClass<schemas.$ZodXor>,
|
|
1240
|
+
options: T,
|
|
1241
|
+
params?: string | $ZodXorParams
|
|
1242
|
+
): schemas.$ZodXor<T> {
|
|
1243
|
+
return new Class({
|
|
1244
|
+
type: "union",
|
|
1245
|
+
options,
|
|
1246
|
+
inclusive: false,
|
|
1247
|
+
...util.normalizeParams(params),
|
|
1248
|
+
}) as any;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1085
1251
|
// ZodDiscriminatedUnion
|
|
1086
|
-
|
|
1252
|
+
|
|
1253
|
+
// The bound stops at `propValues`; it deliberately does not check that the option carries the discriminator. Any such check has to name the option's `input`, and constraining `input` in argument position forces TypeScript to resolve it while checking the call — circular for an option whose input references the union, which collapses the whole union to `any`. `$ZodDiscriminatedUnion` validates the discriminator lazily instead, when it builds its lookup map.
|
|
1254
|
+
//
|
|
1255
|
+
// Validating eagerly through `propValues` is not available: reading it runs the option's shape getters, and for a recursive option that getter references the union whose initializer is still running, so it throws `ReferenceError: Cannot access '...' before initialization`.
|
|
1256
|
+
//
|
|
1257
|
+
// `Object.keys` on the shape is recursion-safe by contrast — it lists the keys without invoking them — so an eager check is reachable. It was tried and reverted: a key list derived from the shape cannot be kept in agreement with `shape` itself, which resolves lazily over the object the caller passed and then freezes to a copy, and it charged every object schema construction time and memory for a check only this one type reads.
|
|
1258
|
+
//
|
|
1259
|
+
// `_Disc` is unused and retained only so `$ZodTypeDiscriminable<"kind">` keeps compiling for external callers.
|
|
1260
|
+
export interface $ZodTypeDiscriminableInternals<_Disc extends string = string> extends schemas._$ZodTypeInternals {
|
|
1087
1261
|
propValues: util.PropValues;
|
|
1088
1262
|
}
|
|
1089
1263
|
|
|
1090
|
-
export interface $ZodTypeDiscriminable extends schemas
|
|
1264
|
+
export interface $ZodTypeDiscriminable<_Disc extends string = string> extends schemas.SomeType {
|
|
1091
1265
|
_zod: $ZodTypeDiscriminableInternals;
|
|
1092
1266
|
}
|
|
1267
|
+
|
|
1093
1268
|
export type $ZodDiscriminatedUnionParams = TypeParams<schemas.$ZodDiscriminatedUnion, "options" | "discriminator">;
|
|
1094
|
-
|
|
1269
|
+
// @__NO_SIDE_EFFECTS__
|
|
1270
|
+
export function _discriminatedUnion<
|
|
1271
|
+
Types extends [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]],
|
|
1272
|
+
Disc extends string,
|
|
1273
|
+
>(
|
|
1095
1274
|
Class: util.SchemaClass<schemas.$ZodDiscriminatedUnion>,
|
|
1096
|
-
discriminator:
|
|
1275
|
+
discriminator: Disc,
|
|
1097
1276
|
options: Types,
|
|
1098
1277
|
params?: string | $ZodDiscriminatedUnionParams
|
|
1099
|
-
): schemas.$ZodDiscriminatedUnion<Types> {
|
|
1278
|
+
): schemas.$ZodDiscriminatedUnion<Types, Disc> {
|
|
1100
1279
|
return new Class({
|
|
1101
1280
|
type: "union",
|
|
1102
|
-
options,
|
|
1281
|
+
options: options as any as schemas.$ZodType[],
|
|
1103
1282
|
discriminator,
|
|
1104
1283
|
...util.normalizeParams(params),
|
|
1105
1284
|
}) as any;
|
|
@@ -1107,6 +1286,7 @@ export function _discriminatedUnion<Types extends [$ZodTypeDiscriminable, ...$Zo
|
|
|
1107
1286
|
|
|
1108
1287
|
// ZodIntersection
|
|
1109
1288
|
export type $ZodIntersectionParams = TypeParams<schemas.$ZodIntersection, "left" | "right">;
|
|
1289
|
+
// @__NO_SIDE_EFFECTS__
|
|
1110
1290
|
export function _intersection<T extends schemas.$ZodObject, U extends schemas.$ZodObject>(
|
|
1111
1291
|
Class: util.SchemaClass<schemas.$ZodIntersection>,
|
|
1112
1292
|
left: T,
|
|
@@ -1121,11 +1301,13 @@ export function _intersection<T extends schemas.$ZodObject, U extends schemas.$Z
|
|
|
1121
1301
|
|
|
1122
1302
|
// ZodTuple
|
|
1123
1303
|
export type $ZodTupleParams = TypeParams<schemas.$ZodTuple, "items" | "rest">;
|
|
1304
|
+
// @__NO_SIDE_EFFECTS__
|
|
1124
1305
|
export function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]]>(
|
|
1125
1306
|
Class: util.SchemaClass<schemas.$ZodTuple>,
|
|
1126
1307
|
items: T,
|
|
1127
1308
|
params?: string | $ZodTupleParams
|
|
1128
1309
|
): schemas.$ZodTuple<T, null>;
|
|
1310
|
+
// @__NO_SIDE_EFFECTS__
|
|
1129
1311
|
export function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]], Rest extends schemas.$ZodType>(
|
|
1130
1312
|
Class: util.SchemaClass<schemas.$ZodTuple>,
|
|
1131
1313
|
items: T,
|
|
@@ -1137,6 +1319,7 @@ export function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType
|
|
|
1137
1319
|
// items: [],
|
|
1138
1320
|
// params?: string | $ZodTupleParams
|
|
1139
1321
|
// ): schemas.$ZodTuple<[], null>;
|
|
1322
|
+
// @__NO_SIDE_EFFECTS__
|
|
1140
1323
|
export function _tuple(
|
|
1141
1324
|
Class: util.SchemaClass<schemas.$ZodTuple>,
|
|
1142
1325
|
items: schemas.$ZodType[],
|
|
@@ -1155,7 +1338,8 @@ export function _tuple(
|
|
|
1155
1338
|
}
|
|
1156
1339
|
|
|
1157
1340
|
// ZodRecord
|
|
1158
|
-
export type $ZodRecordParams = TypeParams<schemas.$ZodRecord, "keyType" | "valueType">;
|
|
1341
|
+
export type $ZodRecordParams = TypeParams<schemas.$ZodRecord, "keyType" | "valueType" | "partial">;
|
|
1342
|
+
// @__NO_SIDE_EFFECTS__
|
|
1159
1343
|
export function _record<Key extends schemas.$ZodRecordKey, Value extends schemas.$ZodObject>(
|
|
1160
1344
|
Class: util.SchemaClass<schemas.$ZodRecord>,
|
|
1161
1345
|
keyType: Key,
|
|
@@ -1172,6 +1356,7 @@ export function _record<Key extends schemas.$ZodRecordKey, Value extends schemas
|
|
|
1172
1356
|
|
|
1173
1357
|
// ZodMap
|
|
1174
1358
|
export type $ZodMapParams = TypeParams<schemas.$ZodMap, "keyType" | "valueType">;
|
|
1359
|
+
// @__NO_SIDE_EFFECTS__
|
|
1175
1360
|
export function _map<Key extends schemas.$ZodObject, Value extends schemas.$ZodObject>(
|
|
1176
1361
|
Class: util.SchemaClass<schemas.$ZodMap>,
|
|
1177
1362
|
keyType: Key,
|
|
@@ -1188,6 +1373,7 @@ export function _map<Key extends schemas.$ZodObject, Value extends schemas.$ZodO
|
|
|
1188
1373
|
|
|
1189
1374
|
// ZodSet
|
|
1190
1375
|
export type $ZodSetParams = TypeParams<schemas.$ZodSet, "valueType">;
|
|
1376
|
+
// @__NO_SIDE_EFFECTS__
|
|
1191
1377
|
export function _set<Value extends schemas.$ZodObject>(
|
|
1192
1378
|
Class: util.SchemaClass<schemas.$ZodSet>,
|
|
1193
1379
|
valueType: Value,
|
|
@@ -1202,16 +1388,19 @@ export function _set<Value extends schemas.$ZodObject>(
|
|
|
1202
1388
|
|
|
1203
1389
|
// ZodEnum
|
|
1204
1390
|
export type $ZodEnumParams = TypeParams<schemas.$ZodEnum, "entries">;
|
|
1391
|
+
// @__NO_SIDE_EFFECTS__
|
|
1205
1392
|
export function _enum<const T extends string[]>(
|
|
1206
1393
|
Class: util.SchemaClass<schemas.$ZodEnum>,
|
|
1207
1394
|
values: T,
|
|
1208
1395
|
params?: string | $ZodEnumParams
|
|
1209
1396
|
): schemas.$ZodEnum<util.ToEnum<T[number]>>;
|
|
1397
|
+
// @__NO_SIDE_EFFECTS__
|
|
1210
1398
|
export function _enum<T extends util.EnumLike>(
|
|
1211
1399
|
Class: util.SchemaClass<schemas.$ZodEnum>,
|
|
1212
1400
|
entries: T,
|
|
1213
1401
|
params?: string | $ZodEnumParams
|
|
1214
1402
|
): schemas.$ZodEnum<T>;
|
|
1403
|
+
// @__NO_SIDE_EFFECTS__
|
|
1215
1404
|
export function _enum(Class: util.SchemaClass<schemas.$ZodEnum>, values: any, params?: string | $ZodEnumParams) {
|
|
1216
1405
|
const entries: any = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
1217
1406
|
// if (Array.isArray(values)) {
|
|
@@ -1233,6 +1422,7 @@ export function _enum(Class: util.SchemaClass<schemas.$ZodEnum>, values: any, pa
|
|
|
1233
1422
|
}) as any;
|
|
1234
1423
|
}
|
|
1235
1424
|
|
|
1425
|
+
// @__NO_SIDE_EFFECTS__
|
|
1236
1426
|
/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
|
|
1237
1427
|
*
|
|
1238
1428
|
* ```ts
|
|
@@ -1264,6 +1454,7 @@ export function _literal<const T extends util.Literal>(
|
|
|
1264
1454
|
value: T,
|
|
1265
1455
|
params?: string | $ZodLiteralParams
|
|
1266
1456
|
): schemas.$ZodLiteral<T>;
|
|
1457
|
+
// @__NO_SIDE_EFFECTS__
|
|
1267
1458
|
export function _literal(Class: util.SchemaClass<schemas.$ZodLiteral>, value: any, params: any) {
|
|
1268
1459
|
return new Class({
|
|
1269
1460
|
type: "literal",
|
|
@@ -1274,6 +1465,7 @@ export function _literal(Class: util.SchemaClass<schemas.$ZodLiteral>, value: an
|
|
|
1274
1465
|
|
|
1275
1466
|
// ZodFile
|
|
1276
1467
|
export type $ZodFileParams = TypeParams<schemas.$ZodFile>;
|
|
1468
|
+
// @__NO_SIDE_EFFECTS__
|
|
1277
1469
|
export function _file(Class: util.SchemaClass<schemas.$ZodFile>, params?: string | $ZodFileParams): schemas.$ZodFile {
|
|
1278
1470
|
return new Class({
|
|
1279
1471
|
type: "file",
|
|
@@ -1283,6 +1475,7 @@ export function _file(Class: util.SchemaClass<schemas.$ZodFile>, params?: string
|
|
|
1283
1475
|
|
|
1284
1476
|
// ZodTransform
|
|
1285
1477
|
export type $ZodTransformParams = TypeParams<schemas.$ZodTransform, "transform">;
|
|
1478
|
+
// @__NO_SIDE_EFFECTS__
|
|
1286
1479
|
export function _transform<I = unknown, O = I>(
|
|
1287
1480
|
Class: util.SchemaClass<schemas.$ZodTransform>,
|
|
1288
1481
|
fn: (input: I, ctx?: schemas.ParsePayload) => O
|
|
@@ -1295,6 +1488,7 @@ export function _transform<I = unknown, O = I>(
|
|
|
1295
1488
|
|
|
1296
1489
|
// ZodOptional
|
|
1297
1490
|
export type $ZodOptionalParams = TypeParams<schemas.$ZodOptional, "innerType">;
|
|
1491
|
+
// @__NO_SIDE_EFFECTS__
|
|
1298
1492
|
export function _optional<T extends schemas.$ZodObject>(
|
|
1299
1493
|
Class: util.SchemaClass<schemas.$ZodOptional>,
|
|
1300
1494
|
innerType: T
|
|
@@ -1307,6 +1501,7 @@ export function _optional<T extends schemas.$ZodObject>(
|
|
|
1307
1501
|
|
|
1308
1502
|
// ZodNullable
|
|
1309
1503
|
export type $ZodNullableParams = TypeParams<schemas.$ZodNullable, "innerType">;
|
|
1504
|
+
// @__NO_SIDE_EFFECTS__
|
|
1310
1505
|
export function _nullable<T extends schemas.$ZodObject>(
|
|
1311
1506
|
Class: util.SchemaClass<schemas.$ZodNullable>,
|
|
1312
1507
|
innerType: T
|
|
@@ -1319,6 +1514,7 @@ export function _nullable<T extends schemas.$ZodObject>(
|
|
|
1319
1514
|
|
|
1320
1515
|
// ZodDefault
|
|
1321
1516
|
export type $ZodDefaultParams = TypeParams<schemas.$ZodDefault, "innerType" | "defaultValue">;
|
|
1517
|
+
// @__NO_SIDE_EFFECTS__
|
|
1322
1518
|
export function _default<T extends schemas.$ZodObject>(
|
|
1323
1519
|
Class: util.SchemaClass<schemas.$ZodDefault>,
|
|
1324
1520
|
innerType: T,
|
|
@@ -1328,13 +1524,14 @@ export function _default<T extends schemas.$ZodObject>(
|
|
|
1328
1524
|
type: "default",
|
|
1329
1525
|
innerType,
|
|
1330
1526
|
get defaultValue() {
|
|
1331
|
-
return typeof defaultValue === "function" ? (defaultValue as Function)() : defaultValue;
|
|
1527
|
+
return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
|
|
1332
1528
|
},
|
|
1333
1529
|
}) as any;
|
|
1334
1530
|
}
|
|
1335
1531
|
|
|
1336
1532
|
// ZodNonOptional
|
|
1337
1533
|
export type $ZodNonOptionalParams = TypeParams<schemas.$ZodNonOptional, "innerType">;
|
|
1534
|
+
// @__NO_SIDE_EFFECTS__
|
|
1338
1535
|
export function _nonoptional<T extends schemas.$ZodObject>(
|
|
1339
1536
|
Class: util.SchemaClass<schemas.$ZodNonOptional>,
|
|
1340
1537
|
innerType: T,
|
|
@@ -1349,6 +1546,7 @@ export function _nonoptional<T extends schemas.$ZodObject>(
|
|
|
1349
1546
|
|
|
1350
1547
|
// ZodSuccess
|
|
1351
1548
|
export type $ZodSuccessParams = TypeParams<schemas.$ZodSuccess, "innerType">;
|
|
1549
|
+
// @__NO_SIDE_EFFECTS__
|
|
1352
1550
|
export function _success<T extends schemas.$ZodObject>(
|
|
1353
1551
|
Class: util.SchemaClass<schemas.$ZodSuccess>,
|
|
1354
1552
|
innerType: T
|
|
@@ -1361,6 +1559,7 @@ export function _success<T extends schemas.$ZodObject>(
|
|
|
1361
1559
|
|
|
1362
1560
|
// ZodCatch
|
|
1363
1561
|
export type $ZodCatchParams = TypeParams<schemas.$ZodCatch, "innerType" | "catchValue">;
|
|
1562
|
+
// @__NO_SIDE_EFFECTS__
|
|
1364
1563
|
export function _catch<T extends schemas.$ZodObject>(
|
|
1365
1564
|
Class: util.SchemaClass<schemas.$ZodCatch>,
|
|
1366
1565
|
innerType: T,
|
|
@@ -1369,12 +1568,13 @@ export function _catch<T extends schemas.$ZodObject>(
|
|
|
1369
1568
|
return new Class({
|
|
1370
1569
|
type: "catch",
|
|
1371
1570
|
innerType,
|
|
1372
|
-
catchValue: (typeof catchValue === "function" ? catchValue : (
|
|
1571
|
+
catchValue: (typeof catchValue === "function" ? catchValue : util.constantCatch(catchValue)) as any,
|
|
1373
1572
|
}) as any;
|
|
1374
1573
|
}
|
|
1375
1574
|
|
|
1376
1575
|
// ZodPipe
|
|
1377
1576
|
export type $ZodPipeParams = TypeParams<schemas.$ZodPipe, "in" | "out">;
|
|
1577
|
+
// @__NO_SIDE_EFFECTS__
|
|
1378
1578
|
export function _pipe<
|
|
1379
1579
|
const A extends schemas.$ZodType,
|
|
1380
1580
|
B extends schemas.$ZodType<unknown, core.output<A>> = schemas.$ZodType<unknown, core.output<A>>,
|
|
@@ -1392,6 +1592,7 @@ export function _pipe<
|
|
|
1392
1592
|
|
|
1393
1593
|
// ZodReadonly
|
|
1394
1594
|
export type $ZodReadonlyParams = TypeParams<schemas.$ZodReadonly, "innerType">;
|
|
1595
|
+
// @__NO_SIDE_EFFECTS__
|
|
1395
1596
|
export function _readonly<T extends schemas.$ZodObject>(
|
|
1396
1597
|
Class: util.SchemaClass<schemas.$ZodReadonly>,
|
|
1397
1598
|
innerType: T
|
|
@@ -1404,6 +1605,7 @@ export function _readonly<T extends schemas.$ZodObject>(
|
|
|
1404
1605
|
|
|
1405
1606
|
// ZodTemplateLiteral
|
|
1406
1607
|
export type $ZodTemplateLiteralParams = TypeParams<schemas.$ZodTemplateLiteral, "parts">;
|
|
1608
|
+
// @__NO_SIDE_EFFECTS__
|
|
1407
1609
|
export function _templateLiteral<const Parts extends schemas.$ZodTemplateLiteralPart[]>(
|
|
1408
1610
|
Class: util.SchemaClass<schemas.$ZodTemplateLiteral>,
|
|
1409
1611
|
parts: Parts,
|
|
@@ -1418,6 +1620,7 @@ export function _templateLiteral<const Parts extends schemas.$ZodTemplateLiteral
|
|
|
1418
1620
|
|
|
1419
1621
|
// ZodLazy
|
|
1420
1622
|
export type $ZodLazyParams = TypeParams<schemas.$ZodLazy, "getter">;
|
|
1623
|
+
// @__NO_SIDE_EFFECTS__
|
|
1421
1624
|
export function _lazy<T extends schemas.$ZodType>(
|
|
1422
1625
|
Class: util.SchemaClass<schemas.$ZodLazy>,
|
|
1423
1626
|
getter: () => T
|
|
@@ -1430,6 +1633,7 @@ export function _lazy<T extends schemas.$ZodType>(
|
|
|
1430
1633
|
|
|
1431
1634
|
// ZodPromise
|
|
1432
1635
|
export type $ZodPromiseParams = TypeParams<schemas.$ZodPromise, "innerType">;
|
|
1636
|
+
// @__NO_SIDE_EFFECTS__
|
|
1433
1637
|
export function _promise<T extends schemas.$ZodObject>(
|
|
1434
1638
|
Class: util.SchemaClass<schemas.$ZodPromise>,
|
|
1435
1639
|
innerType: T
|
|
@@ -1442,6 +1646,7 @@ export function _promise<T extends schemas.$ZodObject>(
|
|
|
1442
1646
|
|
|
1443
1647
|
// ZodCustom
|
|
1444
1648
|
export type $ZodCustomParams = CheckTypeParams<schemas.$ZodCustom, "fn">;
|
|
1649
|
+
// @__NO_SIDE_EFFECTS__
|
|
1445
1650
|
export function _custom<O = unknown, I = O>(
|
|
1446
1651
|
Class: util.SchemaClass<schemas.$ZodCustom>,
|
|
1447
1652
|
fn: (data: O) => unknown,
|
|
@@ -1459,14 +1664,8 @@ export function _custom<O = unknown, I = O>(
|
|
|
1459
1664
|
return schema as any;
|
|
1460
1665
|
}
|
|
1461
1666
|
|
|
1462
|
-
// export function _refine<T>(
|
|
1463
|
-
// Class: util.SchemaClass<schemas.$ZodCustom>,
|
|
1464
|
-
// fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>,
|
|
1465
|
-
// _params: string | $ZodCustomParams = {}
|
|
1466
|
-
// ): checks.$ZodCheck<T> {
|
|
1467
|
-
// return _custom(Class, fn, _params);
|
|
1468
|
-
// }
|
|
1469
1667
|
// same as _custom but defaults to abort:false
|
|
1668
|
+
// @__NO_SIDE_EFFECTS__
|
|
1470
1669
|
export function _refine<O = unknown, I = O>(
|
|
1471
1670
|
Class: util.SchemaClass<schemas.$ZodCustom>,
|
|
1472
1671
|
fn: (data: O) => unknown,
|
|
@@ -1482,6 +1681,92 @@ export function _refine<O = unknown, I = O>(
|
|
|
1482
1681
|
return schema as any;
|
|
1483
1682
|
}
|
|
1484
1683
|
|
|
1684
|
+
export type $ZodSuperRefineIssue<T extends errors.$ZodIssueBase = errors.$ZodIssue> = T extends any
|
|
1685
|
+
? RawIssue<T>
|
|
1686
|
+
: never;
|
|
1687
|
+
type RawIssue<T extends errors.$ZodIssueBase> = T extends any
|
|
1688
|
+
? util.Flatten<
|
|
1689
|
+
util.MakePartial<T, "message" | "path"> & {
|
|
1690
|
+
/** The schema or check that originated this issue. */
|
|
1691
|
+
readonly inst?: schemas.$ZodType | checks.$ZodCheck;
|
|
1692
|
+
/** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
|
|
1693
|
+
readonly continue?: boolean | undefined;
|
|
1694
|
+
} & Record<string, unknown>
|
|
1695
|
+
>
|
|
1696
|
+
: never;
|
|
1697
|
+
|
|
1698
|
+
export interface $RefinementCtx<T = unknown> extends schemas.ParsePayload<T> {
|
|
1699
|
+
addIssue(arg: string | $ZodSuperRefineIssue): void;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
export interface $ZodSuperRefineParams {
|
|
1703
|
+
/** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
|
|
1704
|
+
when?: ((payload: schemas.ParsePayload) => boolean) | undefined;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
// @__NO_SIDE_EFFECTS__
|
|
1708
|
+
export function _superRefine<T>(
|
|
1709
|
+
fn: (arg: T, payload: $RefinementCtx<T>) => void | Promise<void>,
|
|
1710
|
+
params?: $ZodSuperRefineParams
|
|
1711
|
+
): checks.$ZodCheck<T> {
|
|
1712
|
+
const ch = _check<T>((payload) => {
|
|
1713
|
+
(payload as $RefinementCtx).addIssue = (issue) => {
|
|
1714
|
+
if (typeof issue === "string") {
|
|
1715
|
+
payload.issues.push(util.issue(issue, payload.value, ch._zod.def));
|
|
1716
|
+
} else {
|
|
1717
|
+
// for Zod 3 backwards compatibility
|
|
1718
|
+
const _issue: any = issue;
|
|
1719
|
+
if (_issue.fatal) _issue.continue = false;
|
|
1720
|
+
_issue.code ??= "custom";
|
|
1721
|
+
if (!("input" in _issue)) _issue.input = payload.value;
|
|
1722
|
+
_issue.inst ??= ch;
|
|
1723
|
+
_issue.continue ??= !ch._zod.def.abort; // abort is always undefined, so this is always true...
|
|
1724
|
+
payload.issues.push(util.issue(_issue));
|
|
1725
|
+
}
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
return fn(payload.value, payload as $RefinementCtx<T>);
|
|
1729
|
+
}, params);
|
|
1730
|
+
return ch;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
// @__NO_SIDE_EFFECTS__
|
|
1734
|
+
export function _check<O = unknown>(fn: schemas.CheckFn<O>, params?: string | $ZodCustomParams): checks.$ZodCheck<O> {
|
|
1735
|
+
const ch = new checks.$ZodCheck({
|
|
1736
|
+
check: "custom",
|
|
1737
|
+
...util.normalizeParams(params),
|
|
1738
|
+
});
|
|
1739
|
+
|
|
1740
|
+
ch._zod.check = fn;
|
|
1741
|
+
return ch;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
// @__NO_SIDE_EFFECTS__
|
|
1745
|
+
export function describe<T>(description: string): checks.$ZodCheck<T> {
|
|
1746
|
+
const ch = new checks.$ZodCheck({ check: "describe" });
|
|
1747
|
+
ch._zod.onattach = [
|
|
1748
|
+
(inst) => {
|
|
1749
|
+
const existing = registries.globalRegistry.get(inst) ?? {};
|
|
1750
|
+
registries.globalRegistry.add(inst, { ...existing, description });
|
|
1751
|
+
},
|
|
1752
|
+
];
|
|
1753
|
+
ch._zod.check = () => {}; // no-op check
|
|
1754
|
+
return ch;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
// @__NO_SIDE_EFFECTS__
|
|
1758
|
+
export function meta<T>(metadata: registries.GlobalMeta): checks.$ZodCheck<T> {
|
|
1759
|
+
const ch = new checks.$ZodCheck({ check: "meta" });
|
|
1760
|
+
ch._zod.onattach = [
|
|
1761
|
+
(inst) => {
|
|
1762
|
+
const existing = registries.globalRegistry.get(inst) ?? {};
|
|
1763
|
+
registries.globalRegistry.add(inst, { ...existing, ...metadata });
|
|
1764
|
+
},
|
|
1765
|
+
];
|
|
1766
|
+
ch._zod.check = () => {}; // no-op check
|
|
1767
|
+
return ch;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1485
1770
|
// export type $ZodCustomParams = CheckTypeParams<schemas.$ZodCustom, "fn">
|
|
1486
1771
|
|
|
1487
1772
|
///////// STRINGBOOL /////////
|
|
@@ -1498,18 +1783,15 @@ export interface $ZodStringBoolParams extends TypeParams {
|
|
|
1498
1783
|
case?: "sensitive" | "insensitive" | undefined;
|
|
1499
1784
|
}
|
|
1500
1785
|
|
|
1786
|
+
// @__NO_SIDE_EFFECTS__
|
|
1501
1787
|
export function _stringbool(
|
|
1502
1788
|
Classes: {
|
|
1503
|
-
|
|
1789
|
+
Codec?: typeof schemas.$ZodCodec;
|
|
1504
1790
|
Boolean?: typeof schemas.$ZodBoolean;
|
|
1505
|
-
Transform?: typeof schemas.$ZodTransform;
|
|
1506
1791
|
String?: typeof schemas.$ZodString;
|
|
1507
1792
|
},
|
|
1508
1793
|
_params?: string | $ZodStringBoolParams
|
|
1509
|
-
): schemas.$
|
|
1510
|
-
schemas.$ZodPipe<schemas.$ZodString, schemas.$ZodTransform<boolean, string>>,
|
|
1511
|
-
schemas.$ZodBoolean<boolean>
|
|
1512
|
-
> {
|
|
1794
|
+
): schemas.$ZodCodec<schemas.$ZodString, schemas.$ZodBoolean> {
|
|
1513
1795
|
const params = util.normalizeParams(_params);
|
|
1514
1796
|
|
|
1515
1797
|
let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
|
|
@@ -1522,15 +1804,19 @@ export function _stringbool(
|
|
|
1522
1804
|
const truthySet = new Set(truthyArray);
|
|
1523
1805
|
const falsySet = new Set(falsyArray);
|
|
1524
1806
|
|
|
1525
|
-
const
|
|
1807
|
+
const _Codec = Classes.Codec ?? schemas.$ZodCodec;
|
|
1526
1808
|
const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;
|
|
1527
1809
|
const _String = Classes.String ?? schemas.$ZodString;
|
|
1528
|
-
const _Transform = Classes.Transform ?? schemas.$ZodTransform;
|
|
1529
1810
|
|
|
1530
|
-
const
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1811
|
+
const stringSchema = new _String({ type: "string", error: params.error });
|
|
1812
|
+
const booleanSchema = new _Boolean({ type: "boolean", error: params.error });
|
|
1813
|
+
|
|
1814
|
+
const codec = new _Codec({
|
|
1815
|
+
type: "pipe",
|
|
1816
|
+
in: stringSchema as any,
|
|
1817
|
+
out: booleanSchema as any,
|
|
1818
|
+
transform: ((input: string, payload: schemas.ParsePayload<string>) => {
|
|
1819
|
+
let data: string = input;
|
|
1534
1820
|
if (params.case !== "sensitive") data = data.toLowerCase();
|
|
1535
1821
|
if (truthySet.has(data)) {
|
|
1536
1822
|
return true;
|
|
@@ -1542,34 +1828,30 @@ export function _stringbool(
|
|
|
1542
1828
|
expected: "stringbool",
|
|
1543
1829
|
values: [...truthySet, ...falsySet],
|
|
1544
1830
|
input: payload.value,
|
|
1545
|
-
inst:
|
|
1831
|
+
inst: codec,
|
|
1832
|
+
continue: false,
|
|
1546
1833
|
});
|
|
1547
1834
|
return {} as never;
|
|
1548
1835
|
}
|
|
1549
|
-
},
|
|
1836
|
+
}) as any,
|
|
1837
|
+
reverseTransform: ((input: boolean, _payload: schemas.ParsePayload<boolean>) => {
|
|
1838
|
+
if (input === true) {
|
|
1839
|
+
return truthyArray[0] || "true";
|
|
1840
|
+
} else {
|
|
1841
|
+
return falsyArray[0] || "false";
|
|
1842
|
+
}
|
|
1843
|
+
}) as any,
|
|
1550
1844
|
error: params.error,
|
|
1551
|
-
});
|
|
1552
|
-
// params.error;
|
|
1845
|
+
}) as any;
|
|
1553
1846
|
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
out: tx,
|
|
1558
|
-
error: params.error,
|
|
1559
|
-
});
|
|
1847
|
+
codec._zod.bag.truthy = truthyArray;
|
|
1848
|
+
codec._zod.bag.falsy = falsyArray;
|
|
1849
|
+
codec._zod.bag.case = params.case ?? "insensitive";
|
|
1560
1850
|
|
|
1561
|
-
|
|
1562
|
-
type: "pipe",
|
|
1563
|
-
in: innerPipe,
|
|
1564
|
-
out: new _Boolean({
|
|
1565
|
-
type: "boolean",
|
|
1566
|
-
error: params.error,
|
|
1567
|
-
}),
|
|
1568
|
-
error: params.error,
|
|
1569
|
-
});
|
|
1570
|
-
return outerPipe as any;
|
|
1851
|
+
return codec;
|
|
1571
1852
|
}
|
|
1572
1853
|
|
|
1854
|
+
// @__NO_SIDE_EFFECTS__
|
|
1573
1855
|
export function _stringFormat<Format extends string>(
|
|
1574
1856
|
Class: typeof schemas.$ZodCustomStringFormat,
|
|
1575
1857
|
format: Format,
|
|
@@ -1578,7 +1860,6 @@ export function _stringFormat<Format extends string>(
|
|
|
1578
1860
|
): schemas.$ZodCustomStringFormat<Format> {
|
|
1579
1861
|
const params = util.normalizeParams(_params);
|
|
1580
1862
|
const def: schemas.$ZodCustomStringFormatDef = {
|
|
1581
|
-
...util.normalizeParams(_params),
|
|
1582
1863
|
check: "string_format",
|
|
1583
1864
|
type: "string",
|
|
1584
1865
|
format,
|