@openclaw/matrix 2026.5.20 → 2026.5.22
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/api.js +1 -1
- package/dist/{approval-handler.runtime-Dd07_8Bl.js → approval-handler.runtime-Bb6fxC96.js} +1 -1
- package/dist/{channel-D_CwbxZT.js → channel-nkcpZsMB.js} +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{monitor-BbxdWm4v.js → monitor-C-it5ue9.js} +23 -1
- package/dist/test-api.js +1 -1
- package/node_modules/@babel/runtime/LICENSE +22 -0
- package/node_modules/@babel/runtime/README.md +19 -0
- package/node_modules/@babel/runtime/helpers/AwaitValue.js +4 -0
- package/node_modules/@babel/runtime/helpers/OverloadYield.js +4 -0
- package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +9 -0
- package/node_modules/@babel/runtime/helpers/applyDecs.js +236 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2203.js +184 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +191 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2301.js +222 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2305.js +133 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2311.js +124 -0
- package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
- package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
- package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
- package/node_modules/@babel/runtime/helpers/assertClassBrand.js +5 -0
- package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +5 -0
- package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +24 -0
- package/node_modules/@babel/runtime/helpers/asyncIterator.js +45 -0
- package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +26 -0
- package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +5 -0
- package/node_modules/@babel/runtime/helpers/callSuper.js +7 -0
- package/node_modules/@babel/runtime/helpers/checkInRHS.js +6 -0
- package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +4 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +10 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +4 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classCallCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +5 -0
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +5 -0
- package/node_modules/@babel/runtime/helpers/classNameTDZError.js +4 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/construct.js +10 -0
- package/node_modules/@babel/runtime/helpers/createClass.js +13 -0
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +50 -0
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +19 -0
- package/node_modules/@babel/runtime/helpers/createSuper.js +16 -0
- package/node_modules/@babel/runtime/helpers/decorate.js +250 -0
- package/node_modules/@babel/runtime/helpers/defaults.js +9 -0
- package/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
- package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +12 -0
- package/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
- package/node_modules/@babel/runtime/helpers/dispose.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +236 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +184 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +191 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +222 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +133 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +124 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +24 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +45 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +26 -0
- package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/callSuper.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/construct.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/createClass.js +13 -0
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +50 -0
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
- package/node_modules/@babel/runtime/helpers/esm/createSuper.js +16 -0
- package/node_modules/@babel/runtime/helpers/esm/decorate.js +250 -0
- package/node_modules/@babel/runtime/helpers/esm/defaults.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/dispose.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/extends.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/get.js +11 -0
- package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/identity.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
- package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/instanceof.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/jsx.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +14 -0
- package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +23 -0
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
- package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/regenerator.js +89 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +33 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +77 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +19 -0
- package/node_modules/@babel/runtime/helpers/esm/set.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/tdz.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +2 -0
- package/node_modules/@babel/runtime/helpers/esm/toArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/toSetter.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/typeof.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/using.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +59 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +56 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +52 -0
- package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/extends.js +10 -0
- package/node_modules/@babel/runtime/helpers/get.js +11 -0
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/identity.js +4 -0
- package/node_modules/@babel/runtime/helpers/importDeferProxy.js +27 -0
- package/node_modules/@babel/runtime/helpers/inherits.js +14 -0
- package/node_modules/@babel/runtime/helpers/inheritsLoose.js +5 -0
- package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +9 -0
- package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +4 -0
- package/node_modules/@babel/runtime/helpers/instanceof.js +4 -0
- package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +22 -0
- package/node_modules/@babel/runtime/helpers/isNativeFunction.js +8 -0
- package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +9 -0
- package/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
- package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
- package/node_modules/@babel/runtime/helpers/jsx.js +22 -0
- package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +9 -0
- package/node_modules/@babel/runtime/helpers/newArrowCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
- package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
- package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +4 -0
- package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +4 -0
- package/node_modules/@babel/runtime/helpers/objectSpread.js +14 -0
- package/node_modules/@babel/runtime/helpers/objectSpread2.js +23 -0
- package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +13 -0
- package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +10 -0
- package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +8 -0
- package/node_modules/@babel/runtime/helpers/readOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/regenerator.js +89 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsync.js +8 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +6 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +33 -0
- package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +22 -0
- package/node_modules/@babel/runtime/helpers/regeneratorKeys.js +10 -0
- package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +77 -0
- package/node_modules/@babel/runtime/helpers/regeneratorValues.js +19 -0
- package/node_modules/@babel/runtime/helpers/set.js +22 -0
- package/node_modules/@babel/runtime/helpers/setFunctionName.js +12 -0
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +7 -0
- package/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/superPropBase.js +6 -0
- package/node_modules/@babel/runtime/helpers/superPropGet.js +9 -0
- package/node_modules/@babel/runtime/helpers/superPropSet.js +6 -0
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +8 -0
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +4 -0
- package/node_modules/@babel/runtime/helpers/tdz.js +4 -0
- package/node_modules/@babel/runtime/helpers/temporalRef.js +6 -0
- package/node_modules/@babel/runtime/helpers/temporalUndefined.js +2 -0
- package/node_modules/@babel/runtime/helpers/toArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
- package/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
- package/node_modules/@babel/runtime/helpers/toSetter.js +10 -0
- package/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +6 -0
- package/node_modules/@babel/runtime/helpers/typeof.js +10 -0
- package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
- package/node_modules/@babel/runtime/helpers/using.js +12 -0
- package/node_modules/@babel/runtime/helpers/usingCtx.js +59 -0
- package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +56 -0
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +27 -0
- package/node_modules/@babel/runtime/helpers/wrapRegExp.js +52 -0
- package/node_modules/@babel/runtime/helpers/writeOnlyError.js +4 -0
- package/node_modules/@babel/runtime/package.json +1107 -0
- package/node_modules/@babel/runtime/regenerator/index.js +15 -0
- package/node_modules/@borewit/text-codec/LICENSE.txt +9 -0
- package/node_modules/@borewit/text-codec/README.md +87 -0
- package/node_modules/@borewit/text-codec/lib/index.d.ts +6 -0
- package/node_modules/@borewit/text-codec/lib/index.js +380 -0
- package/node_modules/@borewit/text-codec/package.json +70 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/.node-version +1 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/CHANGELOG.md +104 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/LICENSE +177 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/README.md +225 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/RELEASING.md +15 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/download-lib.js +128 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.d.ts +989 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.js +357 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/package.json +43 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/LICENSE +177 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/README.md +134 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/index-wasm-esm.mjs +77 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/index.cjs +81 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/index.d.ts +49 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/index.mjs +83 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/node.cjs +128 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/node.mjs +125 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/package.json +88 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm.d.ts +5072 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.cjs +12674 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js +12051 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm +0 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm.d.ts +697 -0
- package/node_modules/@tokenizer/inflate/LICENSE +15 -0
- package/node_modules/@tokenizer/inflate/README.md +114 -0
- package/node_modules/@tokenizer/inflate/lib/GzipHandler.d.ts +6 -0
- package/node_modules/@tokenizer/inflate/lib/GzipHandler.js +19 -0
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +26 -0
- package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +233 -0
- package/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +94 -0
- package/node_modules/@tokenizer/inflate/lib/ZipToken.js +117 -0
- package/node_modules/@tokenizer/inflate/lib/index.d.ts +3 -0
- package/node_modules/@tokenizer/inflate/lib/index.js +2 -0
- package/node_modules/@tokenizer/inflate/package.json +76 -0
- package/node_modules/@tokenizer/token/README.md +19 -0
- package/node_modules/@tokenizer/token/index.d.ts +30 -0
- package/node_modules/@tokenizer/token/package.json +33 -0
- package/node_modules/@types/events/LICENSE +21 -0
- package/node_modules/@types/events/README.md +41 -0
- package/node_modules/@types/events/index.d.ts +22 -0
- package/node_modules/@types/events/package.json +30 -0
- package/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/agent-base/README.md +69 -0
- package/node_modules/agent-base/dist/helpers.d.ts +15 -0
- package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/node_modules/agent-base/dist/index.d.ts +41 -0
- package/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/agent-base/dist/index.js.map +1 -0
- package/node_modules/agent-base/package.json +46 -0
- package/node_modules/another-json/.jshint +11 -0
- package/node_modules/another-json/.npmignore +2 -0
- package/node_modules/another-json/.travis.yml +3 -0
- package/node_modules/another-json/LICENSE +177 -0
- package/node_modules/another-json/README.md +17 -0
- package/node_modules/another-json/another-json.js +93 -0
- package/node_modules/another-json/package.json +28 -0
- package/node_modules/another-json/spec/another-json-spec.js +100 -0
- package/node_modules/argparse/CHANGELOG.md +216 -0
- package/node_modules/argparse/LICENSE +254 -0
- package/node_modules/argparse/README.md +84 -0
- package/node_modules/argparse/argparse.js +3707 -0
- package/node_modules/argparse/lib/sub.js +67 -0
- package/node_modules/argparse/lib/textwrap.js +440 -0
- package/node_modules/argparse/package.json +31 -0
- package/node_modules/base-x/LICENSE.md +22 -0
- package/node_modules/base-x/README.md +74 -0
- package/node_modules/base-x/package.json +58 -0
- package/node_modules/base-x/src/cjs/index.cjs +126 -0
- package/node_modules/base-x/src/cjs/index.d.ts +9 -0
- package/node_modules/base-x/src/esm/index.js +124 -0
- package/node_modules/bs58/LICENSE +21 -0
- package/node_modules/bs58/README.md +91 -0
- package/node_modules/bs58/package.json +54 -0
- package/node_modules/bs58/src/cjs/index.cjs +8 -0
- package/node_modules/bs58/src/cjs/index.d.ts +3 -0
- package/node_modules/bs58/src/esm/index.js +3 -0
- package/node_modules/content-type/HISTORY.md +29 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +94 -0
- package/node_modules/content-type/index.js +225 -0
- package/node_modules/content-type/package.json +42 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/entities/LICENSE +11 -0
- package/node_modules/entities/lib/decode.d.ts +211 -0
- package/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/node_modules/entities/lib/decode.js +536 -0
- package/node_modules/entities/lib/decode.js.map +1 -0
- package/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/node_modules/entities/lib/encode.d.ts +22 -0
- package/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/node_modules/entities/lib/encode.js +77 -0
- package/node_modules/entities/lib/encode.js.map +1 -0
- package/node_modules/entities/lib/escape.d.ts +43 -0
- package/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/node_modules/entities/lib/escape.js +122 -0
- package/node_modules/entities/lib/escape.js.map +1 -0
- package/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/decode.js +496 -0
- package/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/encode.js +69 -0
- package/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/escape.js +116 -0
- package/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/index.js +99 -0
- package/node_modules/entities/lib/esm/index.js.map +1 -0
- package/node_modules/entities/lib/esm/package.json +1 -0
- package/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/node_modules/entities/lib/index.d.ts +96 -0
- package/node_modules/entities/lib/index.d.ts.map +1 -0
- package/node_modules/entities/lib/index.js +126 -0
- package/node_modules/entities/lib/index.js.map +1 -0
- package/node_modules/entities/package.json +90 -0
- package/node_modules/entities/readme.md +122 -0
- package/node_modules/events/.airtap.yml +15 -0
- package/node_modules/events/.github/FUNDING.yml +12 -0
- package/node_modules/events/.travis.yml +18 -0
- package/node_modules/events/History.md +118 -0
- package/node_modules/events/LICENSE +22 -0
- package/node_modules/events/Readme.md +50 -0
- package/node_modules/events/events.js +497 -0
- package/node_modules/events/package.json +37 -0
- package/node_modules/events/security.md +10 -0
- package/node_modules/events/tests/add-listeners.js +111 -0
- package/node_modules/events/tests/check-listener-leaks.js +101 -0
- package/node_modules/events/tests/common.js +104 -0
- package/node_modules/events/tests/errors.js +13 -0
- package/node_modules/events/tests/events-list.js +28 -0
- package/node_modules/events/tests/events-once.js +234 -0
- package/node_modules/events/tests/index.js +64 -0
- package/node_modules/events/tests/legacy-compat.js +16 -0
- package/node_modules/events/tests/listener-count.js +37 -0
- package/node_modules/events/tests/listeners-side-effects.js +56 -0
- package/node_modules/events/tests/listeners.js +168 -0
- package/node_modules/events/tests/max-listeners.js +47 -0
- package/node_modules/events/tests/method-names.js +35 -0
- package/node_modules/events/tests/modify-in-emit.js +90 -0
- package/node_modules/events/tests/num-args.js +60 -0
- package/node_modules/events/tests/once.js +83 -0
- package/node_modules/events/tests/prepend.js +31 -0
- package/node_modules/events/tests/remove-all-listeners.js +133 -0
- package/node_modules/events/tests/remove-listeners.js +212 -0
- package/node_modules/events/tests/set-max-listeners-side-effects.js +31 -0
- package/node_modules/events/tests/special-event-names.js +45 -0
- package/node_modules/events/tests/subclass.js +66 -0
- package/node_modules/events/tests/symbols.js +25 -0
- package/node_modules/fake-indexeddb/LICENSE +209 -0
- package/node_modules/fake-indexeddb/README.md +245 -0
- package/node_modules/fake-indexeddb/auto/index.js +52 -0
- package/node_modules/fake-indexeddb/auto/index.mjs +52 -0
- package/node_modules/fake-indexeddb/auto/package.json +3 -0
- package/node_modules/fake-indexeddb/auto.d.ts +1 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBCursor.js +480 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBCursorWithValue.js +19 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBDatabase.js +179 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBFactory.js +414 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBIndex.js +217 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBKeyRange.js +78 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBObjectStore.js +409 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBOpenDBRequest.js +17 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBRecord.js +36 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBRequest.js +41 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBTransaction.js +272 -0
- package/node_modules/fake-indexeddb/build/cjs/FDBVersionChangeEvent.js +20 -0
- package/node_modules/fake-indexeddb/build/cjs/fakeIndexedDB.js +11 -0
- package/node_modules/fake-indexeddb/build/cjs/forceCloseDatabase.js +29 -0
- package/node_modules/fake-indexeddb/build/cjs/index.js +106 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/Database.js +51 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/FakeDOMStringList.js +48 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/FakeEvent.js +45 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/FakeEventTarget.js +127 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/Index.js +180 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/KeyGenerator.js +29 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/ObjectStore.js +246 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/RecordStore.js +112 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/binarySearchTree.js +308 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/canInjectKey.js +30 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/cloneValueForInsertion.js +30 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/closeConnection.js +36 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/cmp.js +85 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/enforceRange.js +20 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/errors.js +100 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/extractGetAllOptions.js +40 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/extractKey.js +61 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/getKeyPath.js +16 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/intersection.js +18 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/isPotentiallyValidKeyRange.js +26 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/isSharedArrayBuffer.js +10 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/scheduling.js +46 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/types.js +1 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/validateKeyPath.js +54 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/validateRequiredArguments.js +13 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/valueToKey.js +22 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/valueToKeyRange.js +26 -0
- package/node_modules/fake-indexeddb/build/cjs/lib/valueToKeyWithoutThrowing.js +102 -0
- package/node_modules/fake-indexeddb/build/cjs/package.json +1 -0
- package/node_modules/fake-indexeddb/build/esm/FDBCursor.js +472 -0
- package/node_modules/fake-indexeddb/build/esm/FDBCursorWithValue.js +11 -0
- package/node_modules/fake-indexeddb/build/esm/FDBDatabase.js +171 -0
- package/node_modules/fake-indexeddb/build/esm/FDBFactory.js +406 -0
- package/node_modules/fake-indexeddb/build/esm/FDBIndex.js +209 -0
- package/node_modules/fake-indexeddb/build/esm/FDBKeyRange.js +70 -0
- package/node_modules/fake-indexeddb/build/esm/FDBObjectStore.js +401 -0
- package/node_modules/fake-indexeddb/build/esm/FDBOpenDBRequest.js +9 -0
- package/node_modules/fake-indexeddb/build/esm/FDBRecord.js +29 -0
- package/node_modules/fake-indexeddb/build/esm/FDBRequest.js +33 -0
- package/node_modules/fake-indexeddb/build/esm/FDBTransaction.js +264 -0
- package/node_modules/fake-indexeddb/build/esm/FDBVersionChangeEvent.js +12 -0
- package/node_modules/fake-indexeddb/build/esm/fakeIndexedDB.js +3 -0
- package/node_modules/fake-indexeddb/build/esm/forceCloseDatabase.js +21 -0
- package/node_modules/fake-indexeddb/build/esm/index.js +16 -0
- package/node_modules/fake-indexeddb/build/esm/lib/Database.js +44 -0
- package/node_modules/fake-indexeddb/build/esm/lib/FakeDOMStringList.js +41 -0
- package/node_modules/fake-indexeddb/build/esm/lib/FakeEvent.js +38 -0
- package/node_modules/fake-indexeddb/build/esm/lib/FakeEventTarget.js +120 -0
- package/node_modules/fake-indexeddb/build/esm/lib/Index.js +172 -0
- package/node_modules/fake-indexeddb/build/esm/lib/KeyGenerator.js +22 -0
- package/node_modules/fake-indexeddb/build/esm/lib/ObjectStore.js +238 -0
- package/node_modules/fake-indexeddb/build/esm/lib/RecordStore.js +104 -0
- package/node_modules/fake-indexeddb/build/esm/lib/binarySearchTree.js +299 -0
- package/node_modules/fake-indexeddb/build/esm/lib/canInjectKey.js +23 -0
- package/node_modules/fake-indexeddb/build/esm/lib/cloneValueForInsertion.js +24 -0
- package/node_modules/fake-indexeddb/build/esm/lib/closeConnection.js +28 -0
- package/node_modules/fake-indexeddb/build/esm/lib/cmp.js +77 -0
- package/node_modules/fake-indexeddb/build/esm/lib/enforceRange.js +13 -0
- package/node_modules/fake-indexeddb/build/esm/lib/errors.js +83 -0
- package/node_modules/fake-indexeddb/build/esm/lib/extractGetAllOptions.js +32 -0
- package/node_modules/fake-indexeddb/build/esm/lib/extractKey.js +53 -0
- package/node_modules/fake-indexeddb/build/esm/lib/getKeyPath.js +10 -0
- package/node_modules/fake-indexeddb/build/esm/lib/intersection.js +12 -0
- package/node_modules/fake-indexeddb/build/esm/lib/isPotentiallyValidKeyRange.js +18 -0
- package/node_modules/fake-indexeddb/build/esm/lib/isSharedArrayBuffer.js +3 -0
- package/node_modules/fake-indexeddb/build/esm/lib/scheduling.js +39 -0
- package/node_modules/fake-indexeddb/build/esm/lib/types.js +1 -0
- package/node_modules/fake-indexeddb/build/esm/lib/validateKeyPath.js +47 -0
- package/node_modules/fake-indexeddb/build/esm/lib/validateRequiredArguments.js +7 -0
- package/node_modules/fake-indexeddb/build/esm/lib/valueToKey.js +14 -0
- package/node_modules/fake-indexeddb/build/esm/lib/valueToKeyRange.js +19 -0
- package/node_modules/fake-indexeddb/build/esm/lib/valueToKeyWithoutThrowing.js +95 -0
- package/node_modules/fake-indexeddb/lib/FDBCursor.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBCursor.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBCursorWithValue.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBCursorWithValue.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBDatabase.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBDatabase.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBFactory.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBFactory.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBIndex.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBIndex.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBKeyRange.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBKeyRange.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBObjectStore.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBObjectStore.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBOpenDBRequest.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBOpenDBRequest.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBRequest.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBRequest.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBTransaction.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBTransaction.js +1 -0
- package/node_modules/fake-indexeddb/lib/FDBVersionChangeEvent.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/FDBVersionChangeEvent.js +1 -0
- package/node_modules/fake-indexeddb/lib/README.md +5 -0
- package/node_modules/fake-indexeddb/lib/fakeIndexedDB.d.ts +2 -0
- package/node_modules/fake-indexeddb/lib/package.json +3 -0
- package/node_modules/fake-indexeddb/package.json +151 -0
- package/node_modules/fake-indexeddb/types.d.ts +33 -0
- package/node_modules/file-type/license +9 -0
- package/node_modules/file-type/package.json +274 -0
- package/node_modules/file-type/readme.md +597 -0
- package/node_modules/file-type/source/detectors/asf.js +127 -0
- package/node_modules/file-type/source/detectors/ebml.js +120 -0
- package/node_modules/file-type/source/detectors/png.js +123 -0
- package/node_modules/file-type/source/detectors/zip.js +643 -0
- package/node_modules/file-type/source/index.d.ts +280 -0
- package/node_modules/file-type/source/index.js +1917 -0
- package/node_modules/file-type/source/index.test-d.ts +53 -0
- package/node_modules/file-type/source/parser.js +65 -0
- package/node_modules/file-type/source/supported.js +368 -0
- package/node_modules/file-type/source/tokens.js +60 -0
- package/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/https-proxy-agent/README.md +70 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts +47 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +15 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/https-proxy-agent/package.json +50 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/is-network-error/index.d.ts +26 -0
- package/node_modules/is-network-error/index.js +47 -0
- package/node_modules/is-network-error/license +9 -0
- package/node_modules/is-network-error/package.json +43 -0
- package/node_modules/is-network-error/readme.md +44 -0
- package/node_modules/jwt-decode/LICENSE +21 -0
- package/node_modules/jwt-decode/README.md +134 -0
- package/node_modules/jwt-decode/build/cjs/index.d.ts +23 -0
- package/node_modules/jwt-decode/build/cjs/index.js +62 -0
- package/node_modules/jwt-decode/build/cjs/package.json +1 -0
- package/node_modules/jwt-decode/build/esm/index.d.ts +23 -0
- package/node_modules/jwt-decode/build/esm/index.js +57 -0
- package/node_modules/jwt-decode/package.json +81 -0
- package/node_modules/linkify-it/LICENSE +22 -0
- package/node_modules/linkify-it/README.md +196 -0
- package/node_modules/linkify-it/build/index.cjs.js +832 -0
- package/node_modules/linkify-it/index.mjs +642 -0
- package/node_modules/linkify-it/lib/re.mjs +189 -0
- package/node_modules/linkify-it/package.json +58 -0
- package/node_modules/loglevel/.editorconfig +27 -0
- package/node_modules/loglevel/CONTRIBUTING.md +98 -0
- package/node_modules/loglevel/Gruntfile.js +165 -0
- package/node_modules/loglevel/LICENSE-MIT +22 -0
- package/node_modules/loglevel/README.md +408 -0
- package/node_modules/loglevel/_config.yml +1 -0
- package/node_modules/loglevel/bower.json +11 -0
- package/node_modules/loglevel/demo/index.html +139 -0
- package/node_modules/loglevel/demo/script.js +86 -0
- package/node_modules/loglevel/demo/styles.css +107 -0
- package/node_modules/loglevel/dist/loglevel.js +352 -0
- package/node_modules/loglevel/dist/loglevel.min.js +3 -0
- package/node_modules/loglevel/index.d.ts +203 -0
- package/node_modules/loglevel/lib/loglevel.js +357 -0
- package/node_modules/loglevel/package.json +63 -0
- package/node_modules/markdown-it/LICENSE +22 -0
- package/node_modules/markdown-it/README.md +324 -0
- package/node_modules/markdown-it/bin/markdown-it.mjs +107 -0
- package/node_modules/markdown-it/dist/index.cjs.js +5547 -0
- package/node_modules/markdown-it/dist/markdown-it.js +6969 -0
- package/node_modules/markdown-it/dist/markdown-it.min.js +2 -0
- package/node_modules/markdown-it/index.mjs +1 -0
- package/node_modules/markdown-it/lib/common/html_blocks.mjs +67 -0
- package/node_modules/markdown-it/lib/common/html_re.mjs +25 -0
- package/node_modules/markdown-it/lib/common/utils.mjs +304 -0
- package/node_modules/markdown-it/lib/helpers/index.mjs +11 -0
- package/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +77 -0
- package/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +49 -0
- package/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +66 -0
- package/node_modules/markdown-it/lib/index.mjs +565 -0
- package/node_modules/markdown-it/lib/parser_block.mjs +134 -0
- package/node_modules/markdown-it/lib/parser_core.mjs +62 -0
- package/node_modules/markdown-it/lib/parser_inline.mjs +197 -0
- package/node_modules/markdown-it/lib/presets/commonmark.mjs +88 -0
- package/node_modules/markdown-it/lib/presets/default.mjs +47 -0
- package/node_modules/markdown-it/lib/presets/zero.mjs +70 -0
- package/node_modules/markdown-it/lib/renderer.mjs +322 -0
- package/node_modules/markdown-it/lib/ruler.mjs +340 -0
- package/node_modules/markdown-it/lib/rules_block/blockquote.mjs +209 -0
- package/node_modules/markdown-it/lib/rules_block/code.mjs +30 -0
- package/node_modules/markdown-it/lib/rules_block/fence.mjs +94 -0
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +51 -0
- package/node_modules/markdown-it/lib/rules_block/hr.mjs +40 -0
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +69 -0
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +82 -0
- package/node_modules/markdown-it/lib/rules_block/list.mjs +331 -0
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +46 -0
- package/node_modules/markdown-it/lib/rules_block/reference.mjs +212 -0
- package/node_modules/markdown-it/lib/rules_block/state_block.mjs +220 -0
- package/node_modules/markdown-it/lib/rules_block/table.mjs +228 -0
- package/node_modules/markdown-it/lib/rules_core/block.mjs +13 -0
- package/node_modules/markdown-it/lib/rules_core/inline.mjs +11 -0
- package/node_modules/markdown-it/lib/rules_core/linkify.mjs +134 -0
- package/node_modules/markdown-it/lib/rules_core/normalize.mjs +17 -0
- package/node_modules/markdown-it/lib/rules_core/replacements.mjs +101 -0
- package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +193 -0
- package/node_modules/markdown-it/lib/rules_core/state_core.mjs +17 -0
- package/node_modules/markdown-it/lib/rules_core/text_join.mjs +43 -0
- package/node_modules/markdown-it/lib/rules_inline/autolink.mjs +72 -0
- package/node_modules/markdown-it/lib/rules_inline/backticks.mjs +60 -0
- package/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +124 -0
- package/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +123 -0
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +51 -0
- package/node_modules/markdown-it/lib/rules_inline/escape.mjs +69 -0
- package/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +38 -0
- package/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +50 -0
- package/node_modules/markdown-it/lib/rules_inline/image.mjs +138 -0
- package/node_modules/markdown-it/lib/rules_inline/link.mjs +139 -0
- package/node_modules/markdown-it/lib/rules_inline/linkify.mjs +63 -0
- package/node_modules/markdown-it/lib/rules_inline/newline.mjs +42 -0
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +123 -0
- package/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +127 -0
- package/node_modules/markdown-it/lib/rules_inline/text.mjs +86 -0
- package/node_modules/markdown-it/lib/token.mjs +191 -0
- package/node_modules/markdown-it/package.json +92 -0
- package/node_modules/matrix-events-sdk/LICENSE +201 -0
- package/node_modules/matrix-events-sdk/README.md +78 -0
- package/node_modules/matrix-events-sdk/lib/ExtensibleEvents.d.ts +74 -0
- package/node_modules/matrix-events-sdk/lib/ExtensibleEvents.js +189 -0
- package/node_modules/matrix-events-sdk/lib/IPartialEvent.d.ts +7 -0
- package/node_modules/matrix-events-sdk/lib/IPartialEvent.js +5 -0
- package/node_modules/matrix-events-sdk/lib/InvalidEventError.d.ts +6 -0
- package/node_modules/matrix-events-sdk/lib/InvalidEventError.js +69 -0
- package/node_modules/matrix-events-sdk/lib/NamespacedMap.d.ts +55 -0
- package/node_modules/matrix-events-sdk/lib/NamespacedMap.js +149 -0
- package/node_modules/matrix-events-sdk/lib/NamespacedValue.d.ts +24 -0
- package/node_modules/matrix-events-sdk/lib/NamespacedValue.js +166 -0
- package/node_modules/matrix-events-sdk/lib/events/EmoteEvent.d.ts +21 -0
- package/node_modules/matrix-events-sdk/lib/events/EmoteEvent.js +99 -0
- package/node_modules/matrix-events-sdk/lib/events/ExtensibleEvent.d.ts +38 -0
- package/node_modules/matrix-events-sdk/lib/events/ExtensibleEvent.js +60 -0
- package/node_modules/matrix-events-sdk/lib/events/MessageEvent.d.ts +58 -0
- package/node_modules/matrix-events-sdk/lib/events/MessageEvent.js +214 -0
- package/node_modules/matrix-events-sdk/lib/events/NoticeEvent.d.ts +21 -0
- package/node_modules/matrix-events-sdk/lib/events/NoticeEvent.js +99 -0
- package/node_modules/matrix-events-sdk/lib/events/PollEndEvent.d.ts +33 -0
- package/node_modules/matrix-events-sdk/lib/events/PollEndEvent.js +138 -0
- package/node_modules/matrix-events-sdk/lib/events/PollResponseEvent.d.ts +49 -0
- package/node_modules/matrix-events-sdk/lib/events/PollResponseEvent.js +198 -0
- package/node_modules/matrix-events-sdk/lib/events/PollStartEvent.d.ts +71 -0
- package/node_modules/matrix-events-sdk/lib/events/PollStartEvent.js +287 -0
- package/node_modules/matrix-events-sdk/lib/events/message_types.d.ts +81 -0
- package/node_modules/matrix-events-sdk/lib/events/message_types.js +74 -0
- package/node_modules/matrix-events-sdk/lib/events/poll_types.d.ts +89 -0
- package/node_modules/matrix-events-sdk/lib/events/poll_types.js +70 -0
- package/node_modules/matrix-events-sdk/lib/events/relationship_types.d.ts +19 -0
- package/node_modules/matrix-events-sdk/lib/events/relationship_types.js +34 -0
- package/node_modules/matrix-events-sdk/lib/index.d.ts +21 -0
- package/node_modules/matrix-events-sdk/lib/index.js +278 -0
- package/node_modules/matrix-events-sdk/lib/interpreters/legacy/MRoomMessage.d.ts +12 -0
- package/node_modules/matrix-events-sdk/lib/interpreters/legacy/MRoomMessage.js +62 -0
- package/node_modules/matrix-events-sdk/lib/interpreters/modern/MMessage.d.ts +5 -0
- package/node_modules/matrix-events-sdk/lib/interpreters/modern/MMessage.js +40 -0
- package/node_modules/matrix-events-sdk/lib/interpreters/modern/MPoll.d.ts +10 -0
- package/node_modules/matrix-events-sdk/lib/interpreters/modern/MPoll.js +41 -0
- package/node_modules/matrix-events-sdk/lib/types.d.ts +34 -0
- package/node_modules/matrix-events-sdk/lib/types.js +49 -0
- package/node_modules/matrix-events-sdk/lib/utility/MessageMatchers.d.ts +20 -0
- package/node_modules/matrix-events-sdk/lib/utility/MessageMatchers.js +59 -0
- package/node_modules/matrix-events-sdk/lib/utility/events.d.ts +13 -0
- package/node_modules/matrix-events-sdk/lib/utility/events.js +51 -0
- package/node_modules/matrix-events-sdk/package.json +48 -0
- package/node_modules/matrix-js-sdk/CHANGELOG.md +6509 -0
- package/node_modules/matrix-js-sdk/LICENSE +177 -0
- package/node_modules/matrix-js-sdk/README.md +478 -0
- package/node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.d.ts +14 -0
- package/node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.d.ts +9 -0
- package/node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts +140 -0
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.js +94 -0
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/another-json.d.js +0 -0
- package/node_modules/matrix-js-sdk/lib/@types/another-json.d.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/auth.d.ts +213 -0
- package/node_modules/matrix-js-sdk/lib/@types/auth.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/auth.js +107 -0
- package/node_modules/matrix-js-sdk/lib/@types/auth.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/beacon.d.ts +106 -0
- package/node_modules/matrix-js-sdk/lib/@types/beacon.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/beacon.js +119 -0
- package/node_modules/matrix-js-sdk/lib/@types/beacon.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/common.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/@types/common.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/common.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/common.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/crypto.d.ts +46 -0
- package/node_modules/matrix-js-sdk/lib/@types/crypto.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/crypto.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/crypto.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/event.d.ts +365 -0
- package/node_modules/matrix-js-sdk/lib/@types/event.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/event.js +280 -0
- package/node_modules/matrix-js-sdk/lib/@types/event.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/events.d.ts +92 -0
- package/node_modules/matrix-js-sdk/lib/@types/events.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/events.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/events.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/extensible_events.d.ts +98 -0
- package/node_modules/matrix-js-sdk/lib/@types/extensible_events.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/extensible_events.js +116 -0
- package/node_modules/matrix-js-sdk/lib/@types/extensible_events.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/global.d.js +18 -0
- package/node_modules/matrix-js-sdk/lib/@types/global.d.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/json.d.ts +7 -0
- package/node_modules/matrix-js-sdk/lib/@types/json.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/json.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/json.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/local_notifications.d.ts +4 -0
- package/node_modules/matrix-js-sdk/lib/@types/local_notifications.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/local_notifications.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/local_notifications.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/location.d.ts +60 -0
- package/node_modules/matrix-js-sdk/lib/@types/location.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/location.js +66 -0
- package/node_modules/matrix-js-sdk/lib/@types/location.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/media.d.ts +220 -0
- package/node_modules/matrix-js-sdk/lib/@types/media.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/media.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/media.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/membership.d.ts +41 -0
- package/node_modules/matrix-js-sdk/lib/@types/membership.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/membership.js +58 -0
- package/node_modules/matrix-js-sdk/lib/@types/membership.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/partials.d.ts +72 -0
- package/node_modules/matrix-js-sdk/lib/@types/partials.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/partials.js +71 -0
- package/node_modules/matrix-js-sdk/lib/@types/partials.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/polls.d.ts +89 -0
- package/node_modules/matrix-js-sdk/lib/@types/polls.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/polls.js +86 -0
- package/node_modules/matrix-js-sdk/lib/@types/polls.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/read_receipts.d.ts +36 -0
- package/node_modules/matrix-js-sdk/lib/@types/read_receipts.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/read_receipts.js +27 -0
- package/node_modules/matrix-js-sdk/lib/@types/read_receipts.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/registration.d.ts +85 -0
- package/node_modules/matrix-js-sdk/lib/@types/registration.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/registration.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/registration.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/requests.d.ts +266 -0
- package/node_modules/matrix-js-sdk/lib/@types/requests.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/requests.js +42 -0
- package/node_modules/matrix-js-sdk/lib/@types/requests.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/search.d.ts +90 -0
- package/node_modules/matrix-js-sdk/lib/@types/search.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/search.js +30 -0
- package/node_modules/matrix-js-sdk/lib/@types/search.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/signed.d.ts +9 -0
- package/node_modules/matrix-js-sdk/lib/@types/signed.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/signed.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/signed.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/spaces.d.ts +16 -0
- package/node_modules/matrix-js-sdk/lib/@types/spaces.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/spaces.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/spaces.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/state_events.d.ts +121 -0
- package/node_modules/matrix-js-sdk/lib/@types/state_events.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/state_events.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/state_events.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/synapse.d.ts +19 -0
- package/node_modules/matrix-js-sdk/lib/@types/synapse.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/synapse.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/synapse.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/sync.d.ts +8 -0
- package/node_modules/matrix-js-sdk/lib/@types/sync.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/sync.js +25 -0
- package/node_modules/matrix-js-sdk/lib/@types/sync.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/threepids.d.ts +12 -0
- package/node_modules/matrix-js-sdk/lib/@types/threepids.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/threepids.js +24 -0
- package/node_modules/matrix-js-sdk/lib/@types/threepids.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/topic.d.ts +55 -0
- package/node_modules/matrix-js-sdk/lib/@types/topic.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/topic.js +62 -0
- package/node_modules/matrix-js-sdk/lib/@types/topic.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/uia.d.ts +8 -0
- package/node_modules/matrix-js-sdk/lib/@types/uia.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/uia.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/uia.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/NamespacedValue.d.ts +32 -0
- package/node_modules/matrix-js-sdk/lib/NamespacedValue.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/NamespacedValue.js +113 -0
- package/node_modules/matrix-js-sdk/lib/NamespacedValue.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts +15 -0
- package/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/ReEmitter.js +87 -0
- package/node_modules/matrix-js-sdk/lib/ReEmitter.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.d.ts +30 -0
- package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.js +135 -0
- package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/autodiscovery.d.ts +136 -0
- package/node_modules/matrix-js-sdk/lib/autodiscovery.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/autodiscovery.js +463 -0
- package/node_modules/matrix-js-sdk/lib/autodiscovery.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/base64.d.ts +25 -0
- package/node_modules/matrix-js-sdk/lib/base64.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/base64.js +95 -0
- package/node_modules/matrix-js-sdk/lib/base64.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/browser-index.d.ts +8 -0
- package/node_modules/matrix-js-sdk/lib/browser-index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/browser-index.js +35 -0
- package/node_modules/matrix-js-sdk/lib/browser-index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/client.d.ts +3508 -0
- package/node_modules/matrix-js-sdk/lib/client.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/client.js +7451 -0
- package/node_modules/matrix-js-sdk/lib/client.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.d.ts +239 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.js +67 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.d.ts +14 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.js +33 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/content-helpers.d.ts +90 -0
- package/node_modules/matrix-js-sdk/lib/content-helpers.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/content-helpers.js +260 -0
- package/node_modules/matrix-js-sdk/lib/content-helpers.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/content-repo.d.ts +25 -0
- package/node_modules/matrix-js-sdk/lib/content-repo.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/content-repo.js +115 -0
- package/node_modules/matrix-js-sdk/lib/content-repo.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/base.d.ts +301 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/base.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/base.js +145 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/base.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.d.ts +94 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.js +602 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.d.ts +251 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.js +475 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.d.ts +102 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.js +376 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.d.ts +117 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.js +313 -0
- package/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/CryptoEvent.d.ts +120 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/CryptoEvent.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/CryptoEvent.js +137 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/CryptoEvent.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/CryptoEventHandlerMap.d.ts +26 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/CryptoEventHandlerMap.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/CryptoEventHandlerMap.js +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/CryptoEventHandlerMap.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts +1181 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.js +435 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/key-passphrase.d.ts +11 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/key-passphrase.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/key-passphrase.js +51 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/key-passphrase.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.d.ts +87 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.js +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/recovery-key.d.ts +11 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/recovery-key.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/recovery-key.js +65 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/recovery-key.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/verification.d.ts +315 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/verification.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/verification.js +130 -0
- package/node_modules/matrix-js-sdk/lib/crypto-api/verification.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/digest.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/digest.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/digest.js +40 -0
- package/node_modules/matrix-js-sdk/lib/digest.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/embedded.d.ts +182 -0
- package/node_modules/matrix-js-sdk/lib/embedded.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/embedded.js +730 -0
- package/node_modules/matrix-js-sdk/lib/embedded.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/errors.d.ts +38 -0
- package/node_modules/matrix-js-sdk/lib/errors.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/errors.js +73 -0
- package/node_modules/matrix-js-sdk/lib/errors.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/event-mapper.d.ts +9 -0
- package/node_modules/matrix-js-sdk/lib/event-mapper.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/event-mapper.js +74 -0
- package/node_modules/matrix-js-sdk/lib/event-mapper.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/ExtensibleEvent.d.ts +38 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/ExtensibleEvent.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/ExtensibleEvent.js +57 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/ExtensibleEvent.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/InvalidEventError.d.ts +7 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/InvalidEventError.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/InvalidEventError.js +25 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/InvalidEventError.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/MessageEvent.d.ts +44 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/MessageEvent.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/MessageEvent.js +134 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/MessageEvent.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollEndEvent.d.ts +33 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollEndEvent.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollEndEvent.js +88 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollEndEvent.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollResponseEvent.d.ts +49 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollResponseEvent.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollResponseEvent.js +134 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollResponseEvent.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollStartEvent.d.ts +71 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollStartEvent.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollStartEvent.js +185 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollStartEvent.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/utilities.d.ts +14 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/utilities.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/utilities.js +34 -0
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/utilities.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/feature.d.ts +20 -0
- package/node_modules/matrix-js-sdk/lib/feature.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/feature.js +93 -0
- package/node_modules/matrix-js-sdk/lib/feature.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/filter-component.d.ts +64 -0
- package/node_modules/matrix-js-sdk/lib/filter-component.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/filter-component.js +173 -0
- package/node_modules/matrix-js-sdk/lib/filter-component.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/filter.d.ts +112 -0
- package/node_modules/matrix-js-sdk/lib/filter.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/filter.js +226 -0
- package/node_modules/matrix-js-sdk/lib/filter.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/errors.d.ts +117 -0
- package/node_modules/matrix-js-sdk/lib/http-api/errors.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/errors.js +249 -0
- package/node_modules/matrix-js-sdk/lib/http-api/errors.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts +80 -0
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.js +330 -0
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/index.d.ts +33 -0
- package/node_modules/matrix-js-sdk/lib/http-api/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/index.js +178 -0
- package/node_modules/matrix-js-sdk/lib/http-api/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts +186 -0
- package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/interface.js +39 -0
- package/node_modules/matrix-js-sdk/lib/http-api/interface.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/method.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/http-api/method.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/method.js +27 -0
- package/node_modules/matrix-js-sdk/lib/http-api/method.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/prefix.d.ts +31 -0
- package/node_modules/matrix-js-sdk/lib/http-api/prefix.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/prefix.js +50 -0
- package/node_modules/matrix-js-sdk/lib/http-api/prefix.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.d.ts +53 -0
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.js +172 -0
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/utils.d.ts +37 -0
- package/node_modules/matrix-js-sdk/lib/http-api/utils.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/utils.js +182 -0
- package/node_modules/matrix-js-sdk/lib/http-api/utils.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/index.d.ts +4 -0
- package/node_modules/matrix-js-sdk/lib/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/index.js +24 -0
- package/node_modules/matrix-js-sdk/lib/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/indexeddb-helpers.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/indexeddb-helpers.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/indexeddb-helpers.js +51 -0
- package/node_modules/matrix-js-sdk/lib/indexeddb-helpers.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/indexeddb-worker.d.ts +7 -0
- package/node_modules/matrix-js-sdk/lib/indexeddb-worker.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/indexeddb-worker.js +25 -0
- package/node_modules/matrix-js-sdk/lib/indexeddb-worker.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/interactive-auth.d.ts +341 -0
- package/node_modules/matrix-js-sdk/lib/interactive-auth.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/interactive-auth.js +553 -0
- package/node_modules/matrix-js-sdk/lib/interactive-auth.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/logger.d.ts +124 -0
- package/node_modules/matrix-js-sdk/lib/logger.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/logger.js +228 -0
- package/node_modules/matrix-js-sdk/lib/logger.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrix.d.ts +117 -0
- package/node_modules/matrix-js-sdk/lib/matrix.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrix.js +144 -0
- package/node_modules/matrix-js-sdk/lib/matrix.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts +154 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js +455 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts +44 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.js +13 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IKeyTransport.d.ts +37 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IKeyTransport.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IKeyTransport.js +27 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IKeyTransport.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts +94 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.js +40 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts +23 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js +29 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts +343 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +619 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.d.ts +46 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js +148 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts +210 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +970 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManagerActionScheduler.d.ts +59 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManagerActionScheduler.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManagerActionScheduler.js +124 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManagerActionScheduler.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts +110 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js +373 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.d.ts +30 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.js +164 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts +9 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js +23 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.d.ts +8 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.js +26 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.d.ts +4 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.js +20 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts +33 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js +138 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.d.ts +77 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.js +62 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts +169 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js +117 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts +27 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js +78 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/MSC3089Branch.d.ts +98 -0
- package/node_modules/matrix-js-sdk/lib/models/MSC3089Branch.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/MSC3089Branch.js +240 -0
- package/node_modules/matrix-js-sdk/lib/models/MSC3089Branch.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/MSC3089TreeSpace.d.ts +166 -0
- package/node_modules/matrix-js-sdk/lib/models/MSC3089TreeSpace.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/MSC3089TreeSpace.js +519 -0
- package/node_modules/matrix-js-sdk/lib/models/MSC3089TreeSpace.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/ToDeviceMessage.d.ts +17 -0
- package/node_modules/matrix-js-sdk/lib/models/ToDeviceMessage.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/ToDeviceMessage.js +1 -0
- package/node_modules/matrix-js-sdk/lib/models/ToDeviceMessage.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/beacon.d.ts +52 -0
- package/node_modules/matrix-js-sdk/lib/models/beacon.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/beacon.js +168 -0
- package/node_modules/matrix-js-sdk/lib/models/beacon.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/compare-event-ordering.d.ts +24 -0
- package/node_modules/matrix-js-sdk/lib/models/compare-event-ordering.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/compare-event-ordering.js +120 -0
- package/node_modules/matrix-js-sdk/lib/models/compare-event-ordering.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/device.d.ts +45 -0
- package/node_modules/matrix-js-sdk/lib/models/device.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/device.js +70 -0
- package/node_modules/matrix-js-sdk/lib/models/device.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event-context.d.ts +62 -0
- package/node_modules/matrix-js-sdk/lib/models/event-context.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event-context.js +112 -0
- package/node_modules/matrix-js-sdk/lib/models/event-context.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event-status.d.ts +19 -0
- package/node_modules/matrix-js-sdk/lib/models/event-status.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event-status.js +36 -0
- package/node_modules/matrix-js-sdk/lib/models/event-status.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.d.ts +308 -0
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js +795 -0
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event-timeline.d.ts +224 -0
- package/node_modules/matrix-js-sdk/lib/models/event-timeline.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event-timeline.js +427 -0
- package/node_modules/matrix-js-sdk/lib/models/event-timeline.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event.d.ts +844 -0
- package/node_modules/matrix-js-sdk/lib/models/event.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/event.js +1583 -0
- package/node_modules/matrix-js-sdk/lib/models/event.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer-types.d.ts +27 -0
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer-types.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer-types.js +56 -0
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer-types.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer.d.ts +112 -0
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer.js +353 -0
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/poll.d.ts +67 -0
- package/node_modules/matrix-js-sdk/lib/models/poll.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/poll.js +235 -0
- package/node_modules/matrix-js-sdk/lib/models/poll.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/profile-keys.d.ts +17 -0
- package/node_modules/matrix-js-sdk/lib/models/profile-keys.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/profile-keys.js +34 -0
- package/node_modules/matrix-js-sdk/lib/models/profile-keys.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/read-receipt.d.ts +115 -0
- package/node_modules/matrix-js-sdk/lib/models/read-receipt.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/read-receipt.js +370 -0
- package/node_modules/matrix-js-sdk/lib/models/read-receipt.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/related-relations.d.ts +11 -0
- package/node_modules/matrix-js-sdk/lib/models/related-relations.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/related-relations.js +31 -0
- package/node_modules/matrix-js-sdk/lib/models/related-relations.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts +44 -0
- package/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/relations-container.js +130 -0
- package/node_modules/matrix-js-sdk/lib/models/relations-container.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/relations.d.ts +123 -0
- package/node_modules/matrix-js-sdk/lib/models/relations.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/relations.js +375 -0
- package/node_modules/matrix-js-sdk/lib/models/relations.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-member.d.ts +221 -0
- package/node_modules/matrix-js-sdk/lib/models/room-member.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-member.js +354 -0
- package/node_modules/matrix-js-sdk/lib/models/room-member.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.d.ts +39 -0
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.js +395 -0
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-state.d.ts +463 -0
- package/node_modules/matrix-js-sdk/lib/models/room-state.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-state.js +1066 -0
- package/node_modules/matrix-js-sdk/lib/models/room-state.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts +110 -0
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.js +368 -0
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-summary.d.ts +59 -0
- package/node_modules/matrix-js-sdk/lib/models/room-summary.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room-summary.js +39 -0
- package/node_modules/matrix-js-sdk/lib/models/room-summary.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room.d.ts +1285 -0
- package/node_modules/matrix-js-sdk/lib/models/room.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/room.js +3525 -0
- package/node_modules/matrix-js-sdk/lib/models/room.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/search-result.d.ts +20 -0
- package/node_modules/matrix-js-sdk/lib/models/search-result.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/search-result.js +52 -0
- package/node_modules/matrix-js-sdk/lib/models/search-result.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/thread.d.ts +245 -0
- package/node_modules/matrix-js-sdk/lib/models/thread.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/thread.js +821 -0
- package/node_modules/matrix-js-sdk/lib/models/thread.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/typed-event-emitter.d.ts +157 -0
- package/node_modules/matrix-js-sdk/lib/models/typed-event-emitter.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/typed-event-emitter.js +227 -0
- package/node_modules/matrix-js-sdk/lib/models/typed-event-emitter.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/user.d.ts +200 -0
- package/node_modules/matrix-js-sdk/lib/models/user.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/models/user.js +204 -0
- package/node_modules/matrix-js-sdk/lib/models/user.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/authorize.d.ts +157 -0
- package/node_modules/matrix-js-sdk/lib/oidc/authorize.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/authorize.js +398 -0
- package/node_modules/matrix-js-sdk/lib/oidc/authorize.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/discovery.d.ts +22 -0
- package/node_modules/matrix-js-sdk/lib/oidc/discovery.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/discovery.js +78 -0
- package/node_modules/matrix-js-sdk/lib/oidc/discovery.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/error.d.ts +18 -0
- package/node_modules/matrix-js-sdk/lib/oidc/error.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/error.js +35 -0
- package/node_modules/matrix-js-sdk/lib/oidc/error.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/index.d.ts +16 -0
- package/node_modules/matrix-js-sdk/lib/oidc/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/index.js +29 -0
- package/node_modules/matrix-js-sdk/lib/oidc/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/register.d.ts +70 -0
- package/node_modules/matrix-js-sdk/lib/oidc/register.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/register.js +140 -0
- package/node_modules/matrix-js-sdk/lib/oidc/register.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.d.ts +91 -0
- package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.js +184 -0
- package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/validate.d.ts +78 -0
- package/node_modules/matrix-js-sdk/lib/oidc/validate.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oidc/validate.js +181 -0
- package/node_modules/matrix-js-sdk/lib/oidc/validate.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/pushprocessor.d.ts +140 -0
- package/node_modules/matrix-js-sdk/lib/pushprocessor.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/pushprocessor.js +705 -0
- package/node_modules/matrix-js-sdk/lib/pushprocessor.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/randomstring.d.ts +32 -0
- package/node_modules/matrix-js-sdk/lib/randomstring.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/randomstring.js +97 -0
- package/node_modules/matrix-js-sdk/lib/randomstring.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/realtime-callbacks.d.ts +18 -0
- package/node_modules/matrix-js-sdk/lib/realtime-callbacks.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/realtime-callbacks.js +177 -0
- package/node_modules/matrix-js-sdk/lib/realtime-callbacks.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.d.ts +51 -0
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.js +173 -0
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts +129 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.js +466 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.d.ts +27 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.js +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousCode.d.ts +9 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousCode.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousCode.js +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousCode.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousError.d.ts +6 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousError.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousError.js +23 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousError.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousFailureReason.d.ts +31 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousFailureReason.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousFailureReason.js +47 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousFailureReason.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousIntent.d.ts +5 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousIntent.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousIntent.js +22 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousIntent.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousTransport.d.ts +36 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousTransport.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousTransport.js +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousTransport.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/MSC4108SecureChannel.d.ts +58 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/MSC4108SecureChannel.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/MSC4108SecureChannel.js +243 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/MSC4108SecureChannel.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/index.d.ts +2 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/index.js +18 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.d.ts +46 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.js +138 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.d.ts +61 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.js +245 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/index.d.ts +2 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/index.js +18 -0
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/room-hierarchy.d.ts +35 -0
- package/node_modules/matrix-js-sdk/lib/room-hierarchy.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/room-hierarchy.js +131 -0
- package/node_modules/matrix-js-sdk/lib/room-hierarchy.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/CrossSigningIdentity.d.ts +35 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/CrossSigningIdentity.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/CrossSigningIdentity.js +163 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/CrossSigningIdentity.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.d.ts +118 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.js +360 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/KeyClaimManager.d.ts +33 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/KeyClaimManager.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/KeyClaimManager.js +81 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/KeyClaimManager.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.d.ts +36 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.js +201 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestsManager.d.ts +47 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestsManager.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestsManager.js +175 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestsManager.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/PerSessionKeyBackupDownloader.d.ts +120 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/PerSessionKeyBackupDownloader.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/PerSessionKeyBackupDownloader.js +467 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/PerSessionKeyBackupDownloader.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/RoomEncryptor.d.ts +100 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/RoomEncryptor.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/RoomEncryptor.js +308 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/RoomEncryptor.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts +282 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js +924 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/constants.d.ts +3 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/constants.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/constants.js +19 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/constants.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.d.ts +28 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.js +132 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts +65 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js +159 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.d.ts +81 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.js +454 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.d.ts +605 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +2392 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/secret-storage.d.ts +22 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/secret-storage.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/secret-storage.js +63 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/secret-storage.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/verification.d.ts +321 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/verification.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/verification.js +817 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/verification.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/scheduler.d.ts +132 -0
- package/node_modules/matrix-js-sdk/lib/scheduler.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/scheduler.js +259 -0
- package/node_modules/matrix-js-sdk/lib/scheduler.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/secret-storage.d.ts +383 -0
- package/node_modules/matrix-js-sdk/lib/secret-storage.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/secret-storage.js +493 -0
- package/node_modules/matrix-js-sdk/lib/secret-storage.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/serverCapabilities.d.ts +78 -0
- package/node_modules/matrix-js-sdk/lib/serverCapabilities.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/serverCapabilities.js +101 -0
- package/node_modules/matrix-js-sdk/lib/serverCapabilities.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/service-types.d.ts +5 -0
- package/node_modules/matrix-js-sdk/lib/service-types.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/service-types.js +23 -0
- package/node_modules/matrix-js-sdk/lib/service-types.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.d.ts +107 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.js +887 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync.d.ts +306 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync.js +580 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/index.d.ts +217 -0
- package/node_modules/matrix-js-sdk/lib/store/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/index.js +1 -0
- package/node_modules/matrix-js-sdk/lib/store/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-backend.d.ts +28 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-backend.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-backend.js +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-backend.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.d.ts +132 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.js +648 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-remote-backend.d.ts +83 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-remote-backend.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-remote-backend.js +226 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-remote-backend.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.d.ts +35 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.js +154 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb.d.ts +146 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb.js +367 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/local-storage-events-emitter.d.ts +30 -0
- package/node_modules/matrix-js-sdk/lib/store/local-storage-events-emitter.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/local-storage-events-emitter.js +37 -0
- package/node_modules/matrix-js-sdk/lib/store/local-storage-events-emitter.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/memory.d.ts +213 -0
- package/node_modules/matrix-js-sdk/lib/store/memory.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/memory.js +447 -0
- package/node_modules/matrix-js-sdk/lib/store/memory.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/stub.d.ts +164 -0
- package/node_modules/matrix-js-sdk/lib/store/stub.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/store/stub.js +283 -0
- package/node_modules/matrix-js-sdk/lib/store/stub.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/sync-accumulator.d.ts +222 -0
- package/node_modules/matrix-js-sdk/lib/sync-accumulator.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/sync-accumulator.js +590 -0
- package/node_modules/matrix-js-sdk/lib/sync-accumulator.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/sync.d.ts +281 -0
- package/node_modules/matrix-js-sdk/lib/sync.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/sync.js +1799 -0
- package/node_modules/matrix-js-sdk/lib/sync.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/testing.d.ts +98 -0
- package/node_modules/matrix-js-sdk/lib/testing.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/testing.js +205 -0
- package/node_modules/matrix-js-sdk/lib/testing.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/thread-utils.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/thread-utils.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/thread-utils.js +31 -0
- package/node_modules/matrix-js-sdk/lib/thread-utils.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/timeline-window.d.ts +168 -0
- package/node_modules/matrix-js-sdk/lib/timeline-window.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/timeline-window.js +490 -0
- package/node_modules/matrix-js-sdk/lib/timeline-window.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/types.d.ts +33 -0
- package/node_modules/matrix-js-sdk/lib/types.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/types.js +52 -0
- package/node_modules/matrix-js-sdk/lib/types.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils/decryptAESSecretStorageItem.d.ts +12 -0
- package/node_modules/matrix-js-sdk/lib/utils/decryptAESSecretStorageItem.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils/decryptAESSecretStorageItem.js +54 -0
- package/node_modules/matrix-js-sdk/lib/utils/decryptAESSecretStorageItem.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils/encryptAESSecretStorageItem.d.ts +16 -0
- package/node_modules/matrix-js-sdk/lib/utils/encryptAESSecretStorageItem.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils/encryptAESSecretStorageItem.js +72 -0
- package/node_modules/matrix-js-sdk/lib/utils/encryptAESSecretStorageItem.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.js +60 -0
- package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils/roomVersion.d.ts +13 -0
- package/node_modules/matrix-js-sdk/lib/utils/roomVersion.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils/roomVersion.js +36 -0
- package/node_modules/matrix-js-sdk/lib/utils/roomVersion.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils.d.ts +270 -0
- package/node_modules/matrix-js-sdk/lib/utils.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/utils.js +779 -0
- package/node_modules/matrix-js-sdk/lib/utils.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/version-support.d.ts +19 -0
- package/node_modules/matrix-js-sdk/lib/version-support.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/version-support.js +37 -0
- package/node_modules/matrix-js-sdk/lib/version-support.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/audioContext.d.ts +15 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/audioContext.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/audioContext.js +46 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/audioContext.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/call.d.ts +560 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/call.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/call.js +2563 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/call.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventHandler.d.ts +37 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventHandler.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventHandler.js +339 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventHandler.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.d.ts +79 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.js +13 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callFeed.d.ts +128 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callFeed.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callFeed.js +274 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/callFeed.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCall.d.ts +319 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCall.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCall.js +1327 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCall.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCallEventHandler.d.ts +31 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCallEventHandler.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCallEventHandler.js +177 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCallEventHandler.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts +89 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.js +447 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callFeedStatsReporter.d.ts +8 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callFeedStatsReporter.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callFeedStatsReporter.js +79 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callFeedStatsReporter.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportGatherer.d.ts +25 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportGatherer.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportGatherer.js +196 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportGatherer.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportSummary.d.ts +17 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportSummary.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportSummary.js +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportSummary.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStats.d.ts +28 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStats.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStats.js +26 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStats.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsBuilder.d.ts +5 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsBuilder.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsBuilder.js +27 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsBuilder.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsReportBuilder.d.ts +7 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsReportBuilder.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsReportBuilder.js +125 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsReportBuilder.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/groupCallStats.d.ts +22 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/groupCallStats.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/groupCallStats.js +77 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/groupCallStats.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaSsrcHandler.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaSsrcHandler.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaSsrcHandler.js +57 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaSsrcHandler.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackHandler.d.ts +12 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackHandler.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackHandler.js +58 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackHandler.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStats.d.ts +86 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStats.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStats.js +142 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStats.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStatsHandler.d.ts +22 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStatsHandler.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStatsHandler.js +76 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStatsHandler.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReport.d.ts +99 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReport.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReport.js +32 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReport.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReportEmitter.d.ts +15 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReportEmitter.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReportEmitter.js +33 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReportEmitter.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/summaryStatsReportGatherer.d.ts +16 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/summaryStatsReportGatherer.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/summaryStatsReportGatherer.js +116 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/summaryStatsReportGatherer.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/trackStatsBuilder.d.ts +19 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/trackStatsBuilder.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/trackStatsBuilder.js +168 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/trackStatsBuilder.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStats.d.ts +11 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStats.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStats.js +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStats.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStatsBuilder.d.ts +5 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStatsBuilder.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStatsBuilder.js +34 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStatsBuilder.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/valueFormatter.d.ts +4 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/valueFormatter.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/valueFormatter.js +25 -0
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/valueFormatter.js.map +1 -0
- package/node_modules/matrix-js-sdk/package.json +139 -0
- package/node_modules/matrix-js-sdk/src/@types/AESEncryptedSecretStoragePayload.ts +29 -0
- package/node_modules/matrix-js-sdk/src/@types/IIdentityServerProvider.ts +24 -0
- package/node_modules/matrix-js-sdk/src/@types/PushRules.ts +208 -0
- package/node_modules/matrix-js-sdk/src/@types/another-json.d.ts +19 -0
- package/node_modules/matrix-js-sdk/src/@types/auth.ts +258 -0
- package/node_modules/matrix-js-sdk/src/@types/beacon.ts +140 -0
- package/node_modules/matrix-js-sdk/src/@types/common.ts +24 -0
- package/node_modules/matrix-js-sdk/src/@types/crypto.ts +71 -0
- package/node_modules/matrix-js-sdk/src/@types/event.ts +461 -0
- package/node_modules/matrix-js-sdk/src/@types/events.ts +119 -0
- package/node_modules/matrix-js-sdk/src/@types/extensible_events.ts +147 -0
- package/node_modules/matrix-js-sdk/src/@types/global.d.ts +67 -0
- package/node_modules/matrix-js-sdk/src/@types/json.ts +16 -0
- package/node_modules/matrix-js-sdk/src/@types/local_notifications.ts +19 -0
- package/node_modules/matrix-js-sdk/src/@types/location.ts +92 -0
- package/node_modules/matrix-js-sdk/src/@types/matrix-sdk-crypto-wasm.d.ts +39 -0
- package/node_modules/matrix-js-sdk/src/@types/media.ts +245 -0
- package/node_modules/matrix-js-sdk/src/@types/membership.ts +57 -0
- package/node_modules/matrix-js-sdk/src/@types/partials.ts +103 -0
- package/node_modules/matrix-js-sdk/src/@types/polls.ts +120 -0
- package/node_modules/matrix-js-sdk/src/@types/read_receipts.ts +61 -0
- package/node_modules/matrix-js-sdk/src/@types/registration.ts +102 -0
- package/node_modules/matrix-js-sdk/src/@types/requests.ts +345 -0
- package/node_modules/matrix-js-sdk/src/@types/search.ts +119 -0
- package/node_modules/matrix-js-sdk/src/@types/signed.ts +25 -0
- package/node_modules/matrix-js-sdk/src/@types/spaces.ts +37 -0
- package/node_modules/matrix-js-sdk/src/@types/state_events.ts +153 -0
- package/node_modules/matrix-js-sdk/src/@types/synapse.ts +40 -0
- package/node_modules/matrix-js-sdk/src/@types/sync.ts +27 -0
- package/node_modules/matrix-js-sdk/src/@types/threepids.ts +29 -0
- package/node_modules/matrix-js-sdk/src/@types/topic.ts +69 -0
- package/node_modules/matrix-js-sdk/src/@types/uia.ts +24 -0
- package/node_modules/matrix-js-sdk/src/NamespacedValue.ts +121 -0
- package/node_modules/matrix-js-sdk/src/ReEmitter.ts +93 -0
- package/node_modules/matrix-js-sdk/src/ToDeviceMessageQueue.ts +156 -0
- package/node_modules/matrix-js-sdk/src/autodiscovery.ts +505 -0
- package/node_modules/matrix-js-sdk/src/base64.ts +86 -0
- package/node_modules/matrix-js-sdk/src/browser-index.ts +44 -0
- package/node_modules/matrix-js-sdk/src/client.ts +9064 -0
- package/node_modules/matrix-js-sdk/src/common-crypto/CryptoBackend.ts +307 -0
- package/node_modules/matrix-js-sdk/src/common-crypto/README.md +4 -0
- package/node_modules/matrix-js-sdk/src/common-crypto/key-passphrase.ts +43 -0
- package/node_modules/matrix-js-sdk/src/content-helpers.ts +298 -0
- package/node_modules/matrix-js-sdk/src/content-repo.ts +122 -0
- package/node_modules/matrix-js-sdk/src/crypto/store/base.ts +388 -0
- package/node_modules/matrix-js-sdk/src/crypto/store/indexeddb-crypto-store-backend.ts +655 -0
- package/node_modules/matrix-js-sdk/src/crypto/store/indexeddb-crypto-store.ts +555 -0
- package/node_modules/matrix-js-sdk/src/crypto/store/localStorage-crypto-store.ts +409 -0
- package/node_modules/matrix-js-sdk/src/crypto/store/memory-crypto-store.ts +326 -0
- package/node_modules/matrix-js-sdk/src/crypto-api/CryptoEvent.ts +152 -0
- package/node_modules/matrix-js-sdk/src/crypto-api/CryptoEventHandlerMap.ts +42 -0
- package/node_modules/matrix-js-sdk/src/crypto-api/index.ts +1379 -0
- package/node_modules/matrix-js-sdk/src/crypto-api/key-passphrase.ts +58 -0
- package/node_modules/matrix-js-sdk/src/crypto-api/keybackup.ts +114 -0
- package/node_modules/matrix-js-sdk/src/crypto-api/recovery-key.ts +69 -0
- package/node_modules/matrix-js-sdk/src/crypto-api/verification.ts +382 -0
- package/node_modules/matrix-js-sdk/src/digest.ts +34 -0
- package/node_modules/matrix-js-sdk/src/embedded.ts +865 -0
- package/node_modules/matrix-js-sdk/src/errors.ts +87 -0
- package/node_modules/matrix-js-sdk/src/event-mapper.ts +88 -0
- package/node_modules/matrix-js-sdk/src/extensible_events_v1/ExtensibleEvent.ts +58 -0
- package/node_modules/matrix-js-sdk/src/extensible_events_v1/InvalidEventError.ts +24 -0
- package/node_modules/matrix-js-sdk/src/extensible_events_v1/MessageEvent.ts +143 -0
- package/node_modules/matrix-js-sdk/src/extensible_events_v1/PollEndEvent.ts +97 -0
- package/node_modules/matrix-js-sdk/src/extensible_events_v1/PollResponseEvent.ts +148 -0
- package/node_modules/matrix-js-sdk/src/extensible_events_v1/PollStartEvent.ts +207 -0
- package/node_modules/matrix-js-sdk/src/extensible_events_v1/utilities.ts +35 -0
- package/node_modules/matrix-js-sdk/src/feature.ts +88 -0
- package/node_modules/matrix-js-sdk/src/filter-component.ts +209 -0
- package/node_modules/matrix-js-sdk/src/filter.ts +271 -0
- package/node_modules/matrix-js-sdk/src/http-api/errors.ts +261 -0
- package/node_modules/matrix-js-sdk/src/http-api/fetch.ts +377 -0
- package/node_modules/matrix-js-sdk/src/http-api/index.ts +194 -0
- package/node_modules/matrix-js-sdk/src/http-api/interface.ts +229 -0
- package/node_modules/matrix-js-sdk/src/http-api/method.ts +25 -0
- package/node_modules/matrix-js-sdk/src/http-api/prefix.ts +48 -0
- package/node_modules/matrix-js-sdk/src/http-api/refresh.ts +167 -0
- package/node_modules/matrix-js-sdk/src/http-api/utils.ts +217 -0
- package/node_modules/matrix-js-sdk/src/index.ts +25 -0
- package/node_modules/matrix-js-sdk/src/indexeddb-helpers.ts +50 -0
- package/node_modules/matrix-js-sdk/src/indexeddb-worker.ts +24 -0
- package/node_modules/matrix-js-sdk/src/interactive-auth.ts +700 -0
- package/node_modules/matrix-js-sdk/src/logger.ts +279 -0
- package/node_modules/matrix-js-sdk/src/matrix.ts +174 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/CallMembership.ts +438 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/EncryptionManager.ts +54 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/IKeyTransport.ts +63 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/IMembershipManager.ts +120 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/LivekitTransport.ts +46 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +935 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSessionManager.ts +170 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +1122 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManagerActionScheduler.ts +135 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/RTCEncryptionManager.ts +459 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/ToDeviceKeyTransport.ts +197 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/index.ts +24 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/common.ts +27 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/index.ts +19 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/rtc.ts +157 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/session.ts +146 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/types.ts +227 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/utils.ts +71 -0
- package/node_modules/matrix-js-sdk/src/models/MSC3089Branch.ts +272 -0
- package/node_modules/matrix-js-sdk/src/models/MSC3089TreeSpace.ts +565 -0
- package/node_modules/matrix-js-sdk/src/models/ToDeviceMessage.ts +38 -0
- package/node_modules/matrix-js-sdk/src/models/beacon.ts +213 -0
- package/node_modules/matrix-js-sdk/src/models/compare-event-ordering.ts +139 -0
- package/node_modules/matrix-js-sdk/src/models/device.ts +85 -0
- package/node_modules/matrix-js-sdk/src/models/event-context.ts +110 -0
- package/node_modules/matrix-js-sdk/src/models/event-status.ts +39 -0
- package/node_modules/matrix-js-sdk/src/models/event-timeline-set.ts +962 -0
- package/node_modules/matrix-js-sdk/src/models/event-timeline.ts +461 -0
- package/node_modules/matrix-js-sdk/src/models/event.ts +1819 -0
- package/node_modules/matrix-js-sdk/src/models/invites-ignorer-types.ts +58 -0
- package/node_modules/matrix-js-sdk/src/models/invites-ignorer.ts +341 -0
- package/node_modules/matrix-js-sdk/src/models/poll.ts +285 -0
- package/node_modules/matrix-js-sdk/src/models/profile-keys.ts +33 -0
- package/node_modules/matrix-js-sdk/src/models/read-receipt.ts +422 -0
- package/node_modules/matrix-js-sdk/src/models/related-relations.ts +39 -0
- package/node_modules/matrix-js-sdk/src/models/relations-container.ts +149 -0
- package/node_modules/matrix-js-sdk/src/models/relations.ts +392 -0
- package/node_modules/matrix-js-sdk/src/models/room-member.ts +486 -0
- package/node_modules/matrix-js-sdk/src/models/room-receipts.ts +439 -0
- package/node_modules/matrix-js-sdk/src/models/room-state.ts +1230 -0
- package/node_modules/matrix-js-sdk/src/models/room-sticky-events.ts +383 -0
- package/node_modules/matrix-js-sdk/src/models/room-summary.ts +78 -0
- package/node_modules/matrix-js-sdk/src/models/room.ts +4067 -0
- package/node_modules/matrix-js-sdk/src/models/search-result.ts +57 -0
- package/node_modules/matrix-js-sdk/src/models/thread.ts +928 -0
- package/node_modules/matrix-js-sdk/src/models/typed-event-emitter.ts +246 -0
- package/node_modules/matrix-js-sdk/src/models/user.ts +308 -0
- package/node_modules/matrix-js-sdk/src/oidc/authorize.ts +431 -0
- package/node_modules/matrix-js-sdk/src/oidc/discovery.ts +67 -0
- package/node_modules/matrix-js-sdk/src/oidc/error.ts +33 -0
- package/node_modules/matrix-js-sdk/src/oidc/index.ts +33 -0
- package/node_modules/matrix-js-sdk/src/oidc/register.ts +168 -0
- package/node_modules/matrix-js-sdk/src/oidc/tokenRefresher.ts +184 -0
- package/node_modules/matrix-js-sdk/src/oidc/validate.ts +265 -0
- package/node_modules/matrix-js-sdk/src/pushprocessor.ts +856 -0
- package/node_modules/matrix-js-sdk/src/randomstring.ts +103 -0
- package/node_modules/matrix-js-sdk/src/realtime-callbacks.ts +191 -0
- package/node_modules/matrix-js-sdk/src/receipt-accumulator.ts +189 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/MSC4108SignInWithQR.ts +557 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/RendezvousChannel.ts +48 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/RendezvousCode.ts +25 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/RendezvousError.ts +26 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/RendezvousFailureReason.ts +49 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/RendezvousIntent.ts +20 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/RendezvousTransport.ts +58 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/channels/MSC4108SecureChannel.ts +278 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/channels/index.ts +17 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/index.ts +140 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/transports/MSC4108RendezvousSession.ts +272 -0
- package/node_modules/matrix-js-sdk/src/rendezvous/transports/index.ts +17 -0
- package/node_modules/matrix-js-sdk/src/room-hierarchy.ts +152 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/CrossSigningIdentity.ts +195 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/DehydratedDeviceManager.ts +392 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/KeyClaimManager.ts +86 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/OutgoingRequestProcessor.ts +233 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/OutgoingRequestsManager.ts +170 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts +501 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/RoomEncryptor.ts +362 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/backup.ts +963 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/constants.ts +18 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/device-converter.ts +128 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/index.ts +267 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/libolm_migration.ts +532 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +2622 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/secret-storage.ts +60 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/verification.ts +833 -0
- package/node_modules/matrix-js-sdk/src/scheduler.ts +309 -0
- package/node_modules/matrix-js-sdk/src/secret-storage.ts +714 -0
- package/node_modules/matrix-js-sdk/src/serverCapabilities.ts +146 -0
- package/node_modules/matrix-js-sdk/src/service-types.ts +20 -0
- package/node_modules/matrix-js-sdk/src/sliding-sync-sdk.ts +1005 -0
- package/node_modules/matrix-js-sdk/src/sliding-sync.ts +674 -0
- package/node_modules/matrix-js-sdk/src/store/index.ts +280 -0
- package/node_modules/matrix-js-sdk/src/store/indexeddb-backend.ts +45 -0
- package/node_modules/matrix-js-sdk/src/store/indexeddb-local-backend.ts +642 -0
- package/node_modules/matrix-js-sdk/src/store/indexeddb-remote-backend.ts +225 -0
- package/node_modules/matrix-js-sdk/src/store/indexeddb-store-worker.ts +166 -0
- package/node_modules/matrix-js-sdk/src/store/indexeddb.ts +410 -0
- package/node_modules/matrix-js-sdk/src/store/local-storage-events-emitter.ts +46 -0
- package/node_modules/matrix-js-sdk/src/store/memory.ts +461 -0
- package/node_modules/matrix-js-sdk/src/store/stub.ts +292 -0
- package/node_modules/matrix-js-sdk/src/sync-accumulator.ts +794 -0
- package/node_modules/matrix-js-sdk/src/sync.ts +2064 -0
- package/node_modules/matrix-js-sdk/src/testing.ts +231 -0
- package/node_modules/matrix-js-sdk/src/thread-utils.ts +31 -0
- package/node_modules/matrix-js-sdk/src/timeline-window.ts +534 -0
- package/node_modules/matrix-js-sdk/src/types.ts +59 -0
- package/node_modules/matrix-js-sdk/src/utils/decryptAESSecretStorageItem.ts +54 -0
- package/node_modules/matrix-js-sdk/src/utils/encryptAESSecretStorageItem.ts +73 -0
- package/node_modules/matrix-js-sdk/src/utils/internal/deriveKeys.ts +63 -0
- package/node_modules/matrix-js-sdk/src/utils/roomVersion.ts +35 -0
- package/node_modules/matrix-js-sdk/src/utils.ts +775 -0
- package/node_modules/matrix-js-sdk/src/version-support.ts +50 -0
- package/node_modules/matrix-js-sdk/src/webrtc/audioContext.ts +44 -0
- package/node_modules/matrix-js-sdk/src/webrtc/call.ts +3060 -0
- package/node_modules/matrix-js-sdk/src/webrtc/callEventHandler.ts +425 -0
- package/node_modules/matrix-js-sdk/src/webrtc/callEventTypes.ts +101 -0
- package/node_modules/matrix-js-sdk/src/webrtc/callFeed.ts +364 -0
- package/node_modules/matrix-js-sdk/src/webrtc/groupCall.ts +1729 -0
- package/node_modules/matrix-js-sdk/src/webrtc/groupCallEventHandler.ts +234 -0
- package/node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts +501 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/callFeedStatsReporter.ts +91 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/callStatsReportGatherer.ts +219 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/callStatsReportSummary.ts +30 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/connectionStats.ts +47 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/connectionStatsBuilder.ts +28 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/connectionStatsReportBuilder.ts +140 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/groupCallStats.ts +93 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/media/mediaSsrcHandler.ts +57 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/media/mediaTrackHandler.ts +70 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/media/mediaTrackStats.ts +176 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/media/mediaTrackStatsHandler.ts +90 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/statsReport.ts +133 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/statsReportEmitter.ts +49 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/summaryStatsReportGatherer.ts +148 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/trackStatsBuilder.ts +207 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/transportStats.ts +26 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts +48 -0
- package/node_modules/matrix-js-sdk/src/webrtc/stats/valueFormatter.ts +27 -0
- package/node_modules/matrix-widget-api/LICENSE +201 -0
- package/node_modules/matrix-widget-api/README.md +91 -0
- package/node_modules/matrix-widget-api/dist/api.js +5684 -0
- package/node_modules/matrix-widget-api/dist/api.min.js +1 -0
- package/node_modules/matrix-widget-api/lib/ClientWidgetApi.d.ts +185 -0
- package/node_modules/matrix-widget-api/lib/ClientWidgetApi.js +1950 -0
- package/node_modules/matrix-widget-api/lib/ClientWidgetApi.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/Symbols.d.ts +3 -0
- package/node_modules/matrix-widget-api/lib/Symbols.js +27 -0
- package/node_modules/matrix-widget-api/lib/Symbols.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/WidgetApi.d.ts +312 -0
- package/node_modules/matrix-widget-api/lib/WidgetApi.js +1025 -0
- package/node_modules/matrix-widget-api/lib/WidgetApi.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/driver/WidgetDriver.d.ts +348 -0
- package/node_modules/matrix-widget-api/lib/driver/WidgetDriver.js +488 -0
- package/node_modules/matrix-widget-api/lib/driver/WidgetDriver.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/index.d.ts +54 -0
- package/node_modules/matrix-widget-api/lib/index.js +259 -0
- package/node_modules/matrix-widget-api/lib/index.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.d.ts +20 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js +48 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/Capabilities.d.ts +69 -0
- package/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js +75 -0
- package/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.d.ts +34 -0
- package/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/CapabilitiesAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.d.ts +10 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ContentLoadedAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/DownloadFileAction.d.ts +16 -0
- package/node_modules/matrix-widget-api/lib/interfaces/DownloadFileAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/DownloadFileAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/GetMediaConfigAction.d.ts +15 -0
- package/node_modules/matrix-widget-api/lib/interfaces/GetMediaConfigAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/GetMediaConfigAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.d.ts +26 -0
- package/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.js +29 -0
- package/node_modules/matrix-widget-api/lib/interfaces/GetOpenIDAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.d.ts +10 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ICustomWidgetData.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.d.ts +19 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IJitsiWidgetData.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IRoomAccountData.d.ts +5 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IRoomAccountData.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IRoomAccountData.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.d.ts +16 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IRoomEvent.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.d.ts +3 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IStickerpickerWidgetData.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IToDeviceMessage.d.ts +5 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IToDeviceMessage.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IToDeviceMessage.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidget.d.ts +50 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidget.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidget.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.d.ts +34 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.js +33 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiErrorResponse.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.d.ts +15 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiRequest.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.d.ts +9 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/IWidgetApiResponse.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/LanguageChangeAction.d.ts +16 -0
- package/node_modules/matrix-widget-api/lib/interfaces/LanguageChangeAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/LanguageChangeAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.d.ts +7 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.js +31 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ModalButtonKind.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.d.ts +55 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.js +30 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ModalWidgetActions.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.d.ts +13 -0
- package/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/NavigateAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.d.ts +17 -0
- package/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/OpenIDCredentialsAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.d.ts +23 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadEventAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.d.ts +26 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadRelationsAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadRoomAccountDataAction.d.ts +19 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadRoomAccountDataAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ReadRoomAccountDataAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.d.ts +13 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ScreenshotAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.d.ts +36 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.d.ts +34 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SendToDeviceAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.d.ts +15 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SetModalButtonEnabledAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/StickerAction.d.ts +29 -0
- package/node_modules/matrix-widget-api/lib/interfaces/StickerAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/StickerAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/StickyAction.d.ts +16 -0
- package/node_modules/matrix-widget-api/lib/interfaces/StickyAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/StickyAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.d.ts +14 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/SupportedVersionsAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ThemeChangeAction.d.ts +12 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ThemeChangeAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/ThemeChangeAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.d.ts +31 -0
- package/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/TurnServerActions.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UpdateDelayedEventAction.d.ts +21 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UpdateDelayedEventAction.js +29 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UpdateDelayedEventAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UpdateStateAction.d.ts +16 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UpdateStateAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UpdateStateAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UploadFileAction.d.ts +16 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UploadFileAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UploadFileAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.d.ts +22 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/UserDirectorySearchAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.d.ts +13 -0
- package/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/VisibilityAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.d.ts +69 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js +67 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.d.ts +5 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.js +38 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetApiDirection.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.d.ts +11 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.js +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetConfigAction.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.d.ts +5 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.js +29 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetKind.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetType.d.ts +6 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetType.js +29 -0
- package/node_modules/matrix-widget-api/lib/interfaces/WidgetType.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/models/Widget.d.ts +52 -0
- package/node_modules/matrix-widget-api/lib/models/Widget.js +142 -0
- package/node_modules/matrix-widget-api/lib/models/Widget.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.d.ts +34 -0
- package/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.js +258 -0
- package/node_modules/matrix-widget-api/lib/models/WidgetEventCapability.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/models/WidgetParser.d.ts +46 -0
- package/node_modules/matrix-widget-api/lib/models/WidgetParser.js +152 -0
- package/node_modules/matrix-widget-api/lib/models/WidgetParser.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/models/validation/url.d.ts +1 -0
- package/node_modules/matrix-widget-api/lib/models/validation/url.js +39 -0
- package/node_modules/matrix-widget-api/lib/models/validation/url.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/models/validation/utils.d.ts +1 -0
- package/node_modules/matrix-widget-api/lib/models/validation/utils.js +29 -0
- package/node_modules/matrix-widget-api/lib/models/validation/utils.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/templating/url-template.d.ts +14 -0
- package/node_modules/matrix-widget-api/lib/templating/url-template.js +62 -0
- package/node_modules/matrix-widget-api/lib/templating/url-template.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/transport/ITransport.d.ts +69 -0
- package/node_modules/matrix-widget-api/lib/transport/ITransport.js +6 -0
- package/node_modules/matrix-widget-api/lib/transport/ITransport.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/transport/PostmessageTransport.d.ts +31 -0
- package/node_modules/matrix-widget-api/lib/transport/PostmessageTransport.js +220 -0
- package/node_modules/matrix-widget-api/lib/transport/PostmessageTransport.js.map +1 -0
- package/node_modules/matrix-widget-api/lib/util/SimpleObservable.d.ts +8 -0
- package/node_modules/matrix-widget-api/lib/util/SimpleObservable.js +68 -0
- package/node_modules/matrix-widget-api/lib/util/SimpleObservable.js.map +1 -0
- package/node_modules/matrix-widget-api/package.json +79 -0
- package/node_modules/matrix-widget-api/src/ClientWidgetApi.ts +1362 -0
- package/node_modules/matrix-widget-api/src/Symbols.ts +19 -0
- package/node_modules/matrix-widget-api/src/WidgetApi.ts +933 -0
- package/node_modules/matrix-widget-api/src/driver/WidgetDriver.ts +505 -0
- package/node_modules/matrix-widget-api/src/index.ts +81 -0
- package/node_modules/matrix-widget-api/src/interfaces/ApiVersion.ts +56 -0
- package/node_modules/matrix-widget-api/src/interfaces/Capabilities.ts +98 -0
- package/node_modules/matrix-widget-api/src/interfaces/CapabilitiesAction.ts +60 -0
- package/node_modules/matrix-widget-api/src/interfaces/ContentLoadedAction.ts +28 -0
- package/node_modules/matrix-widget-api/src/interfaces/DownloadFileAction.ts +36 -0
- package/node_modules/matrix-widget-api/src/interfaces/GetMediaConfigAction.ts +34 -0
- package/node_modules/matrix-widget-api/src/interfaces/GetOpenIDAction.ts +49 -0
- package/node_modules/matrix-widget-api/src/interfaces/ICustomWidgetData.ts +27 -0
- package/node_modules/matrix-widget-api/src/interfaces/IJitsiWidgetData.ts +38 -0
- package/node_modules/matrix-widget-api/src/interfaces/IRoomAccountData.ts +21 -0
- package/node_modules/matrix-widget-api/src/interfaces/IRoomEvent.ts +33 -0
- package/node_modules/matrix-widget-api/src/interfaces/IStickerpickerWidgetData.ts +21 -0
- package/node_modules/matrix-widget-api/src/interfaces/IToDeviceMessage.ts +21 -0
- package/node_modules/matrix-widget-api/src/interfaces/IWidget.ts +75 -0
- package/node_modules/matrix-widget-api/src/interfaces/IWidgetApiErrorResponse.ts +56 -0
- package/node_modules/matrix-widget-api/src/interfaces/IWidgetApiRequest.ts +38 -0
- package/node_modules/matrix-widget-api/src/interfaces/IWidgetApiResponse.ts +29 -0
- package/node_modules/matrix-widget-api/src/interfaces/LanguageChangeAction.ts +35 -0
- package/node_modules/matrix-widget-api/src/interfaces/ModalButtonKind.ts +23 -0
- package/node_modules/matrix-widget-api/src/interfaces/ModalWidgetActions.ts +89 -0
- package/node_modules/matrix-widget-api/src/interfaces/NavigateAction.ts +32 -0
- package/node_modules/matrix-widget-api/src/interfaces/OpenIDCredentialsAction.ts +38 -0
- package/node_modules/matrix-widget-api/src/interfaces/ReadEventAction.ts +43 -0
- package/node_modules/matrix-widget-api/src/interfaces/ReadRelationsAction.ts +48 -0
- package/node_modules/matrix-widget-api/src/interfaces/ReadRoomAccountDataAction.ts +39 -0
- package/node_modules/matrix-widget-api/src/interfaces/ScreenshotAction.ts +32 -0
- package/node_modules/matrix-widget-api/src/interfaces/SendEventAction.ts +66 -0
- package/node_modules/matrix-widget-api/src/interfaces/SendToDeviceAction.ts +56 -0
- package/node_modules/matrix-widget-api/src/interfaces/SetModalButtonEnabledAction.ts +34 -0
- package/node_modules/matrix-widget-api/src/interfaces/StickerAction.ts +49 -0
- package/node_modules/matrix-widget-api/src/interfaces/StickyAction.ts +36 -0
- package/node_modules/matrix-widget-api/src/interfaces/SupportedVersionsAction.ts +33 -0
- package/node_modules/matrix-widget-api/src/interfaces/ThemeChangeAction.ts +32 -0
- package/node_modules/matrix-widget-api/src/interfaces/TurnServerActions.ts +54 -0
- package/node_modules/matrix-widget-api/src/interfaces/UpdateDelayedEventAction.ts +43 -0
- package/node_modules/matrix-widget-api/src/interfaces/UpdateStateAction.ts +37 -0
- package/node_modules/matrix-widget-api/src/interfaces/UploadFileAction.ts +36 -0
- package/node_modules/matrix-widget-api/src/interfaces/UserDirectorySearchAction.ts +42 -0
- package/node_modules/matrix-widget-api/src/interfaces/VisibilityAction.ts +32 -0
- package/node_modules/matrix-widget-api/src/interfaces/WidgetApiAction.ts +97 -0
- package/node_modules/matrix-widget-api/src/interfaces/WidgetApiDirection.ts +30 -0
- package/node_modules/matrix-widget-api/src/interfaces/WidgetConfigAction.ts +29 -0
- package/node_modules/matrix-widget-api/src/interfaces/WidgetKind.ts +21 -0
- package/node_modules/matrix-widget-api/src/interfaces/WidgetType.ts +23 -0
- package/node_modules/matrix-widget-api/src/models/Widget.ts +108 -0
- package/node_modules/matrix-widget-api/src/models/WidgetEventCapability.ts +224 -0
- package/node_modules/matrix-widget-api/src/models/WidgetParser.ts +147 -0
- package/node_modules/matrix-widget-api/src/models/validation/url.ts +32 -0
- package/node_modules/matrix-widget-api/src/models/validation/utils.ts +22 -0
- package/node_modules/matrix-widget-api/src/templating/url-template.ts +71 -0
- package/node_modules/matrix-widget-api/src/transport/ITransport.ts +109 -0
- package/node_modules/matrix-widget-api/src/transport/PostmessageTransport.ts +200 -0
- package/node_modules/matrix-widget-api/src/util/SimpleObservable.ts +39 -0
- package/node_modules/mdurl/LICENSE +45 -0
- package/node_modules/mdurl/README.md +102 -0
- package/node_modules/mdurl/build/index.cjs.js +534 -0
- package/node_modules/mdurl/index.mjs +11 -0
- package/node_modules/mdurl/lib/decode.mjs +112 -0
- package/node_modules/mdurl/lib/encode.mjs +89 -0
- package/node_modules/mdurl/lib/format.mjs +21 -0
- package/node_modules/mdurl/lib/parse.mjs +308 -0
- package/node_modules/mdurl/package.json +37 -0
- package/node_modules/media-typer/HISTORY.md +50 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +93 -0
- package/node_modules/media-typer/index.js +143 -0
- package/node_modules/media-typer/package.json +33 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/music-metadata/LICENSE.txt +9 -0
- package/node_modules/music-metadata/README.md +878 -0
- package/node_modules/music-metadata/lib/ParseError.d.ts +87 -0
- package/node_modules/music-metadata/lib/ParseError.js +38 -0
- package/node_modules/music-metadata/lib/ParserFactory.d.ts +44 -0
- package/node_modules/music-metadata/lib/ParserFactory.js +141 -0
- package/node_modules/music-metadata/lib/aiff/AiffLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/aiff/AiffLoader.js +8 -0
- package/node_modules/music-metadata/lib/aiff/AiffParser.d.ts +15 -0
- package/node_modules/music-metadata/lib/aiff/AiffParser.js +104 -0
- package/node_modules/music-metadata/lib/aiff/AiffTagMap.d.ts +4 -0
- package/node_modules/music-metadata/lib/aiff/AiffTagMap.js +15 -0
- package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +48 -0
- package/node_modules/music-metadata/lib/aiff/AiffToken.js +58 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.d.ts +46 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +176 -0
- package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.d.ts +4 -0
- package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.js +83 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Token.d.ts +99 -0
- package/node_modules/music-metadata/lib/apev2/APEv2Token.js +116 -0
- package/node_modules/music-metadata/lib/apev2/Apev2Loader.d.ts +2 -0
- package/node_modules/music-metadata/lib/apev2/Apev2Loader.js +8 -0
- package/node_modules/music-metadata/lib/asf/AsfGuid.d.ts +83 -0
- package/node_modules/music-metadata/lib/asf/AsfGuid.js +109 -0
- package/node_modules/music-metadata/lib/asf/AsfLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/asf/AsfLoader.js +8 -0
- package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +325 -0
- package/node_modules/music-metadata/lib/asf/AsfObject.js +347 -0
- package/node_modules/music-metadata/lib/asf/AsfParser.d.ts +17 -0
- package/node_modules/music-metadata/lib/asf/AsfParser.js +134 -0
- package/node_modules/music-metadata/lib/asf/AsfTagMapper.d.ts +7 -0
- package/node_modules/music-metadata/lib/asf/AsfTagMapper.js +92 -0
- package/node_modules/music-metadata/lib/asf/AsfUtil.d.ts +4 -0
- package/node_modules/music-metadata/lib/asf/AsfUtil.js +32 -0
- package/node_modules/music-metadata/lib/common/BasicParser.d.ts +17 -0
- package/node_modules/music-metadata/lib/common/BasicParser.js +13 -0
- package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.d.ts +10 -0
- package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.js +17 -0
- package/node_modules/music-metadata/lib/common/CombinedTagMapper.d.ts +19 -0
- package/node_modules/music-metadata/lib/common/CombinedTagMapper.js +50 -0
- package/node_modules/music-metadata/lib/common/FourCC.d.ts +6 -0
- package/node_modules/music-metadata/lib/common/FourCC.js +25 -0
- package/node_modules/music-metadata/lib/common/GenericTagMapper.d.ts +51 -0
- package/node_modules/music-metadata/lib/common/GenericTagMapper.js +51 -0
- package/node_modules/music-metadata/lib/common/GenericTagTypes.d.ts +34 -0
- package/node_modules/music-metadata/lib/common/GenericTagTypes.js +133 -0
- package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +86 -0
- package/node_modules/music-metadata/lib/common/MetadataCollector.js +307 -0
- package/node_modules/music-metadata/lib/common/Util.d.ts +56 -0
- package/node_modules/music-metadata/lib/common/Util.js +152 -0
- package/node_modules/music-metadata/lib/core.d.ts +75 -0
- package/node_modules/music-metadata/lib/core.js +126 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.js +8 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.d.ts +29 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +154 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffToken.d.ts +9 -0
- package/node_modules/music-metadata/lib/dsdiff/DsdiffToken.js +18 -0
- package/node_modules/music-metadata/lib/dsf/DsfChunk.d.ts +87 -0
- package/node_modules/music-metadata/lib/dsf/DsfChunk.js +50 -0
- package/node_modules/music-metadata/lib/dsf/DsfLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/dsf/DsfLoader.js +8 -0
- package/node_modules/music-metadata/lib/dsf/DsfParser.d.ts +24 -0
- package/node_modules/music-metadata/lib/dsf/DsfParser.js +57 -0
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.d.ts +67 -0
- package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +218 -0
- package/node_modules/music-metadata/lib/ebml/types.d.ts +37 -0
- package/node_modules/music-metadata/lib/ebml/types.js +8 -0
- package/node_modules/music-metadata/lib/flac/FlacLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/flac/FlacLoader.js +8 -0
- package/node_modules/music-metadata/lib/flac/FlacParser.d.ts +29 -0
- package/node_modules/music-metadata/lib/flac/FlacParser.js +125 -0
- package/node_modules/music-metadata/lib/flac/FlacToken.d.ts +45 -0
- package/node_modules/music-metadata/lib/flac/FlacToken.js +63 -0
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.d.ts +17 -0
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.js +137 -0
- package/node_modules/music-metadata/lib/id3v1/ID3v1TagMap.d.ts +4 -0
- package/node_modules/music-metadata/lib/id3v1/ID3v1TagMap.js +18 -0
- package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.d.ts +17 -0
- package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.js +56 -0
- package/node_modules/music-metadata/lib/id3v2/FrameHeader.d.ts +31 -0
- package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +73 -0
- package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +92 -0
- package/node_modules/music-metadata/lib/id3v2/FrameParser.js +470 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.d.ts +9 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.js +46 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.d.ts +14 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.js +195 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.d.ts +11 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.js +17 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.d.ts +33 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +169 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2Token.d.ts +111 -0
- package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +146 -0
- package/node_modules/music-metadata/lib/iff/index.d.ts +33 -0
- package/node_modules/music-metadata/lib/iff/index.js +16 -0
- package/node_modules/music-metadata/lib/index.d.ts +22 -0
- package/node_modules/music-metadata/lib/index.js +53 -0
- package/node_modules/music-metadata/lib/lrc/LyricsParser.d.ts +9 -0
- package/node_modules/music-metadata/lib/lrc/LyricsParser.js +45 -0
- package/node_modules/music-metadata/lib/lyrics3/Lyrics3.d.ts +3 -0
- package/node_modules/music-metadata/lib/lyrics3/Lyrics3.js +17 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaDtd.d.ts +8 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaDtd.js +283 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaLoader.js +8 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaParser.d.ts +19 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaParser.js +143 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaTagMapper.d.ts +4 -0
- package/node_modules/music-metadata/lib/matroska/MatroskaTagMapper.js +32 -0
- package/node_modules/music-metadata/lib/matroska/types.d.ts +142 -0
- package/node_modules/music-metadata/lib/matroska/types.js +27 -0
- package/node_modules/music-metadata/lib/mp4/Atom.d.ts +16 -0
- package/node_modules/music-metadata/lib/mp4/Atom.js +65 -0
- package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +487 -0
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +524 -0
- package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +32 -0
- package/node_modules/music-metadata/lib/mp4/MP4Parser.js +647 -0
- package/node_modules/music-metadata/lib/mp4/MP4TagMapper.d.ts +8 -0
- package/node_modules/music-metadata/lib/mp4/MP4TagMapper.js +123 -0
- package/node_modules/music-metadata/lib/mp4/Mp4Loader.d.ts +2 -0
- package/node_modules/music-metadata/lib/mp4/Mp4Loader.js +8 -0
- package/node_modules/music-metadata/lib/mpeg/ExtendedLameHeader.d.ts +27 -0
- package/node_modules/music-metadata/lib/mpeg/ExtendedLameHeader.js +28 -0
- package/node_modules/music-metadata/lib/mpeg/MpegLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/mpeg/MpegLoader.js +8 -0
- package/node_modules/music-metadata/lib/mpeg/MpegParser.d.ts +62 -0
- package/node_modules/music-metadata/lib/mpeg/MpegParser.js +569 -0
- package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.d.ts +57 -0
- package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.js +64 -0
- package/node_modules/music-metadata/lib/mpeg/XingTag.d.ts +44 -0
- package/node_modules/music-metadata/lib/mpeg/XingTag.js +65 -0
- package/node_modules/music-metadata/lib/musepack/MusepackConentError.d.ts +15 -0
- package/node_modules/music-metadata/lib/musepack/MusepackConentError.js +3 -0
- package/node_modules/music-metadata/lib/musepack/MusepackLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/musepack/MusepackLoader.js +8 -0
- package/node_modules/music-metadata/lib/musepack/MusepackParser.d.ts +4 -0
- package/node_modules/music-metadata/lib/musepack/MusepackParser.js +30 -0
- package/node_modules/music-metadata/lib/musepack/sv7/BitReader.d.ts +13 -0
- package/node_modules/music-metadata/lib/musepack/sv7/BitReader.js +46 -0
- package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.d.ts +8 -0
- package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.js +47 -0
- package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.d.ts +28 -0
- package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.js +39 -0
- package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.d.ts +6 -0
- package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.js +56 -0
- package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.d.ts +42 -0
- package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +82 -0
- package/node_modules/music-metadata/lib/ogg/OggLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/ogg/OggLoader.js +8 -0
- package/node_modules/music-metadata/lib/ogg/OggParser.d.ts +27 -0
- package/node_modules/music-metadata/lib/ogg/OggParser.js +125 -0
- package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +83 -0
- package/node_modules/music-metadata/lib/ogg/OggToken.js +41 -0
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +29 -0
- package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +74 -0
- package/node_modules/music-metadata/lib/ogg/opus/Opus.d.ts +63 -0
- package/node_modules/music-metadata/lib/ogg/opus/Opus.js +27 -0
- package/node_modules/music-metadata/lib/ogg/opus/OpusStream.d.ts +24 -0
- package/node_modules/music-metadata/lib/ogg/opus/OpusStream.js +56 -0
- package/node_modules/music-metadata/lib/ogg/speex/Speex.d.ts +36 -0
- package/node_modules/music-metadata/lib/ogg/speex/Speex.js +28 -0
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.d.ts +20 -0
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +31 -0
- package/node_modules/music-metadata/lib/ogg/theora/Theora.d.ts +20 -0
- package/node_modules/music-metadata/lib/ogg/theora/Theora.js +20 -0
- package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.d.ts +25 -0
- package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.js +39 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.d.ts +68 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.js +83 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.d.ts +12 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +29 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +53 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +136 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.d.ts +7 -0
- package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.js +133 -0
- package/node_modules/music-metadata/lib/riff/RiffChunk.d.ts +16 -0
- package/node_modules/music-metadata/lib/riff/RiffChunk.js +28 -0
- package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.d.ts +10 -0
- package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.js +34 -0
- package/node_modules/music-metadata/lib/type.d.ts +661 -0
- package/node_modules/music-metadata/lib/type.js +2 -0
- package/node_modules/music-metadata/lib/wav/BwfChunk.d.ts +17 -0
- package/node_modules/music-metadata/lib/wav/BwfChunk.js +26 -0
- package/node_modules/music-metadata/lib/wav/WaveChunk.d.ts +94 -0
- package/node_modules/music-metadata/lib/wav/WaveChunk.js +78 -0
- package/node_modules/music-metadata/lib/wav/WaveLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/wav/WaveLoader.js +8 -0
- package/node_modules/music-metadata/lib/wav/WaveParser.d.ts +24 -0
- package/node_modules/music-metadata/lib/wav/WaveParser.js +170 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackLoader.d.ts +2 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackLoader.js +8 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackParser.d.ts +30 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackParser.js +109 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackToken.d.ts +60 -0
- package/node_modules/music-metadata/lib/wavpack/WavPackToken.js +70 -0
- package/node_modules/music-metadata/package.json +156 -0
- package/node_modules/node-downloader-helper/LICENSE +21 -0
- package/node_modules/node-downloader-helper/README.md +266 -0
- package/node_modules/node-downloader-helper/bin/helpers.js +50 -0
- package/node_modules/node-downloader-helper/bin/ndh +68 -0
- package/node_modules/node-downloader-helper/dist/index.js +1 -0
- package/node_modules/node-downloader-helper/package.json +55 -0
- package/node_modules/node-downloader-helper/types/index.d.ts +292 -0
- package/node_modules/oidc-client-ts/LICENSE +202 -0
- package/node_modules/oidc-client-ts/README.md +87 -0
- package/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.js +3751 -0
- package/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.js.map +7 -0
- package/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.min.js +2 -0
- package/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.min.js.map +7 -0
- package/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js +3671 -0
- package/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js.map +7 -0
- package/node_modules/oidc-client-ts/dist/esm/package.json +4 -0
- package/node_modules/oidc-client-ts/dist/types/oidc-client-ts.d.ts +2003 -0
- package/node_modules/oidc-client-ts/dist/types/tsdoc-metadata.json +11 -0
- package/node_modules/oidc-client-ts/dist/umd/oidc-client-ts.js +3719 -0
- package/node_modules/oidc-client-ts/dist/umd/oidc-client-ts.js.map +7 -0
- package/node_modules/oidc-client-ts/package.json +75 -0
- package/node_modules/p-retry/index.d.ts +267 -0
- package/node_modules/p-retry/index.js +267 -0
- package/node_modules/p-retry/license +9 -0
- package/node_modules/p-retry/package.json +63 -0
- package/node_modules/p-retry/readme.md +319 -0
- package/node_modules/punycode.js/LICENSE-MIT.txt +20 -0
- package/node_modules/punycode.js/README.md +148 -0
- package/node_modules/punycode.js/package.json +58 -0
- package/node_modules/punycode.js/punycode.es6.js +444 -0
- package/node_modules/punycode.js/punycode.js +443 -0
- package/node_modules/sdp-transform/.eslintrc.js +19 -0
- package/node_modules/sdp-transform/.github/FUNDING.yml +12 -0
- package/node_modules/sdp-transform/.github/codecov.yml +8 -0
- package/node_modules/sdp-transform/.github/dependabot.yml +15 -0
- package/node_modules/sdp-transform/.github/workflows/ci.yml +26 -0
- package/node_modules/sdp-transform/CHANGELOG.md +247 -0
- package/node_modules/sdp-transform/LICENSE +22 -0
- package/node_modules/sdp-transform/README.md +254 -0
- package/node_modules/sdp-transform/checker.js +47 -0
- package/node_modules/sdp-transform/lib/grammar.js +495 -0
- package/node_modules/sdp-transform/lib/index.js +13 -0
- package/node_modules/sdp-transform/lib/parser.js +124 -0
- package/node_modules/sdp-transform/lib/writer.js +114 -0
- package/node_modules/sdp-transform/package.json +34 -0
- package/node_modules/strtok3/LICENSE.txt +21 -0
- package/node_modules/strtok3/README.md +399 -0
- package/node_modules/strtok3/lib/AbstractTokenizer.d.ts +76 -0
- package/node_modules/strtok3/lib/AbstractTokenizer.js +111 -0
- package/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
- package/node_modules/strtok3/lib/BlobTokenizer.js +53 -0
- package/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
- package/node_modules/strtok3/lib/BufferTokenizer.js +52 -0
- package/node_modules/strtok3/lib/FileTokenizer.d.ts +37 -0
- package/node_modules/strtok3/lib/FileTokenizer.js +61 -0
- package/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +34 -0
- package/node_modules/strtok3/lib/ReadStreamTokenizer.js +107 -0
- package/node_modules/strtok3/lib/core.d.ts +40 -0
- package/node_modules/strtok3/lib/core.js +62 -0
- package/node_modules/strtok3/lib/index.d.ts +16 -0
- package/node_modules/strtok3/lib/index.js +22 -0
- package/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
- package/node_modules/strtok3/lib/stream/AbstractStreamReader.js +71 -0
- package/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
- package/node_modules/strtok3/lib/stream/Deferred.js +10 -0
- package/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
- package/node_modules/strtok3/lib/stream/Errors.js +16 -0
- package/node_modules/strtok3/lib/stream/StreamReader.d.ts +29 -0
- package/node_modules/strtok3/lib/stream/StreamReader.js +83 -0
- package/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
- package/node_modules/strtok3/lib/stream/WebStreamByobReader.js +27 -0
- package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
- package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +62 -0
- package/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +14 -0
- package/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
- package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
- package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
- package/node_modules/strtok3/lib/stream/index.d.ts +6 -0
- package/node_modules/strtok3/lib/stream/index.js +5 -0
- package/node_modules/strtok3/lib/types.d.ts +139 -0
- package/node_modules/strtok3/lib/types.js +1 -0
- package/node_modules/strtok3/package.json +94 -0
- package/node_modules/token-types/LICENSE.txt +9 -0
- package/node_modules/token-types/README.md +120 -0
- package/node_modules/token-types/lib/index.d.ts +135 -0
- package/node_modules/token-types/lib/index.js +401 -0
- package/node_modules/token-types/package.json +81 -0
- package/node_modules/typebox/build/compile/code.d.mts +12 -0
- package/node_modules/typebox/build/compile/code.mjs +65 -0
- package/node_modules/typebox/build/compile/compile.d.mts +6 -0
- package/node_modules/typebox/build/compile/compile.mjs +12 -0
- package/node_modules/typebox/build/compile/index.d.mts +8 -0
- package/node_modules/typebox/build/compile/index.mjs +14 -0
- package/node_modules/typebox/build/compile/validator.d.mts +43 -0
- package/node_modules/typebox/build/compile/validator.mjs +121 -0
- package/node_modules/typebox/build/error/errors.d.mts +214 -0
- package/node_modules/typebox/build/error/errors.mjs +18 -0
- package/node_modules/typebox/build/error/index.d.mts +1 -0
- package/node_modules/typebox/build/error/index.mjs +1 -0
- package/node_modules/typebox/build/format/_idna.d.mts +2 -0
- package/node_modules/typebox/build/format/_idna.mjs +216 -0
- package/node_modules/typebox/build/format/_puny.d.mts +1 -0
- package/node_modules/typebox/build/format/_puny.mjs +74 -0
- package/node_modules/typebox/build/format/_registry.d.mts +15 -0
- package/node_modules/typebox/build/format/_registry.mjs +96 -0
- package/node_modules/typebox/build/format/date.d.mts +6 -0
- package/node_modules/typebox/build/format/date.mjs +19 -0
- package/node_modules/typebox/build/format/date_time.d.mts +6 -0
- package/node_modules/typebox/build/format/date_time.mjs +11 -0
- package/node_modules/typebox/build/format/duration.d.mts +5 -0
- package/node_modules/typebox/build/format/duration.mjs +8 -0
- package/node_modules/typebox/build/format/email.d.mts +5 -0
- package/node_modules/typebox/build/format/email.mjs +8 -0
- package/node_modules/typebox/build/format/format.d.mts +22 -0
- package/node_modules/typebox/build/format/format.mjs +22 -0
- package/node_modules/typebox/build/format/hostname.d.mts +7 -0
- package/node_modules/typebox/build/format/hostname.mjs +18 -0
- package/node_modules/typebox/build/format/idn_email.d.mts +5 -0
- package/node_modules/typebox/build/format/idn_email.mjs +8 -0
- package/node_modules/typebox/build/format/idn_hostname.d.mts +7 -0
- package/node_modules/typebox/build/format/idn_hostname.mjs +19 -0
- package/node_modules/typebox/build/format/index.d.mts +4 -0
- package/node_modules/typebox/build/format/index.mjs +4 -0
- package/node_modules/typebox/build/format/ipv4.d.mts +6 -0
- package/node_modules/typebox/build/format/ipv4.mjs +38 -0
- package/node_modules/typebox/build/format/ipv6.d.mts +5 -0
- package/node_modules/typebox/build/format/ipv6.mjs +67 -0
- package/node_modules/typebox/build/format/iri.d.mts +5 -0
- package/node_modules/typebox/build/format/iri.mjs +13 -0
- package/node_modules/typebox/build/format/iri_reference.d.mts +5 -0
- package/node_modules/typebox/build/format/iri_reference.mjs +60 -0
- package/node_modules/typebox/build/format/json_pointer.d.mts +6 -0
- package/node_modules/typebox/build/format/json_pointer.mjs +9 -0
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +9 -0
- package/node_modules/typebox/build/format/regex.d.mts +6 -0
- package/node_modules/typebox/build/format/regex.mjs +17 -0
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +6 -0
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +9 -0
- package/node_modules/typebox/build/format/time.d.mts +5 -0
- package/node_modules/typebox/build/format/time.mjs +27 -0
- package/node_modules/typebox/build/format/uri.d.mts +5 -0
- package/node_modules/typebox/build/format/uri.mjs +135 -0
- package/node_modules/typebox/build/format/uri_reference.d.mts +5 -0
- package/node_modules/typebox/build/format/uri_reference.mjs +9 -0
- package/node_modules/typebox/build/format/uri_template.d.mts +6 -0
- package/node_modules/typebox/build/format/uri_template.mjs +10 -0
- package/node_modules/typebox/build/format/url.d.mts +6 -0
- package/node_modules/typebox/build/format/url.mjs +9 -0
- package/node_modules/typebox/build/format/uuid.d.mts +6 -0
- package/node_modules/typebox/build/format/uuid.mjs +9 -0
- package/node_modules/typebox/build/guard/emit.d.mts +58 -0
- package/node_modules/typebox/build/guard/emit.mjs +194 -0
- package/node_modules/typebox/build/guard/globals.d.mts +35 -0
- package/node_modules/typebox/build/guard/globals.mjs +90 -0
- package/node_modules/typebox/build/guard/guard.d.mts +69 -0
- package/node_modules/typebox/build/guard/guard.mjs +217 -0
- package/node_modules/typebox/build/guard/index.d.mts +6 -0
- package/node_modules/typebox/build/guard/index.mjs +6 -0
- package/node_modules/typebox/build/guard/native.d.mts +20 -0
- package/node_modules/typebox/build/guard/native.mjs +60 -0
- package/node_modules/typebox/build/guard/string.d.mts +6 -0
- package/node_modules/typebox/build/guard/string.mjs +164 -0
- package/node_modules/typebox/build/index.d.mts +8 -0
- package/node_modules/typebox/build/index.mjs +14 -0
- package/node_modules/typebox/build/schema/build.d.mts +39 -0
- package/node_modules/typebox/build/schema/build.mjs +118 -0
- package/node_modules/typebox/build/schema/check.d.mts +6 -0
- package/node_modules/typebox/build/schema/check.mjs +14 -0
- package/node_modules/typebox/build/schema/compile.d.mts +22 -0
- package/node_modules/typebox/build/schema/compile.mjs +46 -0
- package/node_modules/typebox/build/schema/engine/_context.d.mts +35 -0
- package/node_modules/typebox/build/schema/engine/_context.mjs +129 -0
- package/node_modules/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
- package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +20 -0
- package/node_modules/typebox/build/schema/engine/_externals.d.mts +7 -0
- package/node_modules/typebox/build/schema/engine/_externals.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_functions.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/_guard.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_guard.mjs +26 -0
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +4 -0
- package/node_modules/typebox/build/schema/engine/_reducer.mjs +45 -0
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/_refine.mjs +29 -0
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +18 -0
- package/node_modules/typebox/build/schema/engine/_stack.mjs +107 -0
- package/node_modules/typebox/build/schema/engine/_unique.d.mts +2 -0
- package/node_modules/typebox/build/schema/engine/_unique.mjs +5 -0
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +50 -0
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +110 -0
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/allOf.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +52 -0
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +5 -0
- package/node_modules/typebox/build/schema/engine/boolean.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/const.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/const.mjs +30 -0
- package/node_modules/typebox/build/schema/engine/contains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/contains.mjs +42 -0
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +45 -0
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +40 -0
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +38 -0
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/enum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/enum.mjs +33 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/format.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/format.mjs +26 -0
- package/node_modules/typebox/build/schema/engine/if.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/if.mjs +47 -0
- package/node_modules/typebox/build/schema/engine/index.d.mts +49 -0
- package/node_modules/typebox/build/schema/engine/index.mjs +55 -0
- package/node_modules/typebox/build/schema/engine/items.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/items.mjs +68 -0
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +42 -0
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/maximum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minContains.mjs +41 -0
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minItems.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minLength.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/minimum.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/not.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/not.mjs +37 -0
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +58 -0
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/pattern.mjs +28 -0
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +44 -0
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +35 -0
- package/node_modules/typebox/build/schema/engine/properties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/properties.mjs +75 -0
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +39 -0
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +25 -0
- package/node_modules/typebox/build/schema/engine/ref.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/ref.mjs +58 -0
- package/node_modules/typebox/build/schema/engine/required.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/required.mjs +32 -0
- package/node_modules/typebox/build/schema/engine/schema.d.mts +9 -0
- package/node_modules/typebox/build/schema/engine/schema.mjs +352 -0
- package/node_modules/typebox/build/schema/engine/type.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/type.mjs +74 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +51 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +51 -0
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +51 -0
- package/node_modules/typebox/build/schema/errors.d.mts +6 -0
- package/node_modules/typebox/build/schema/errors.mjs +24 -0
- package/node_modules/typebox/build/schema/index.d.mts +3 -0
- package/node_modules/typebox/build/schema/index.mjs +9 -0
- package/node_modules/typebox/build/schema/parse.d.mts +13 -0
- package/node_modules/typebox/build/schema/parse.mjs +27 -0
- package/node_modules/typebox/build/schema/pointer/index.d.mts +2 -0
- package/node_modules/typebox/build/schema/pointer/index.mjs +2 -0
- package/node_modules/typebox/build/schema/pointer/pointer.d.mts +10 -0
- package/node_modules/typebox/build/schema/pointer/pointer.mjs +106 -0
- package/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
- package/node_modules/typebox/build/schema/pointer/pointer_get.mjs +2 -0
- package/node_modules/typebox/build/schema/resolve/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/resolve/index.mjs +1 -0
- package/node_modules/typebox/build/schema/resolve/ref.d.mts +3 -0
- package/node_modules/typebox/build/schema/resolve/ref.mjs +146 -0
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +1 -0
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +1 -0
- package/node_modules/typebox/build/schema/schema.d.mts +10 -0
- package/node_modules/typebox/build/schema/schema.mjs +10 -0
- package/node_modules/typebox/build/schema/static/_canonical.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/_canonical.mjs +2 -0
- package/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
- package/node_modules/typebox/build/schema/static/_comparer.mjs +2 -0
- package/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
- package/node_modules/typebox/build/schema/static/_elements.mjs +2 -0
- package/node_modules/typebox/build/schema/static/additionalProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/additionalProperties.mjs +3 -0
- package/node_modules/typebox/build/schema/static/allOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/allOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/anyOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/anyOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/const.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/const.mjs +2 -0
- package/node_modules/typebox/build/schema/static/enum.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/enum.mjs +2 -0
- package/node_modules/typebox/build/schema/static/if.d.mts +15 -0
- package/node_modules/typebox/build/schema/static/if.mjs +2 -0
- package/node_modules/typebox/build/schema/static/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/static/index.mjs +1 -0
- package/node_modules/typebox/build/schema/static/items.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/items.mjs +2 -0
- package/node_modules/typebox/build/schema/static/oneOf.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/oneOf.mjs +2 -0
- package/node_modules/typebox/build/schema/static/patternProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/patternProperties.mjs +2 -0
- package/node_modules/typebox/build/schema/static/prefixItems.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/prefixItems.mjs +2 -0
- package/node_modules/typebox/build/schema/static/properties.d.mts +32 -0
- package/node_modules/typebox/build/schema/static/properties.mjs +2 -0
- package/node_modules/typebox/build/schema/static/ref.d.mts +8 -0
- package/node_modules/typebox/build/schema/static/ref.mjs +3 -0
- package/node_modules/typebox/build/schema/static/required.d.mts +3 -0
- package/node_modules/typebox/build/schema/static/required.mjs +3 -0
- package/node_modules/typebox/build/schema/static/schema.d.mts +56 -0
- package/node_modules/typebox/build/schema/static/schema.mjs +2 -0
- package/node_modules/typebox/build/schema/static/static.d.mts +4 -0
- package/node_modules/typebox/build/schema/static/static.mjs +3 -0
- package/node_modules/typebox/build/schema/static/type.d.mts +4 -0
- package/node_modules/typebox/build/schema/static/type.mjs +3 -0
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +3 -0
- package/node_modules/typebox/build/schema/types/_guard.d.mts +10 -0
- package/node_modules/typebox/build/schema/types/_guard.mjs +16 -0
- package/node_modules/typebox/build/schema/types/_refine.d.mts +13 -0
- package/node_modules/typebox/build/schema/types/_refine.mjs +18 -0
- package/node_modules/typebox/build/schema/types/additionalItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/additionalItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/additionalProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/additionalProperties.mjs +14 -0
- package/node_modules/typebox/build/schema/types/allOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/allOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/anchor.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/anchor.mjs +12 -0
- package/node_modules/typebox/build/schema/types/anyOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/anyOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/const.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/const.mjs +12 -0
- package/node_modules/typebox/build/schema/types/contains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contains.mjs +14 -0
- package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contentEncoding.mjs +13 -0
- package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/contentMediaType.mjs +13 -0
- package/node_modules/typebox/build/schema/types/default.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/default.mjs +12 -0
- package/node_modules/typebox/build/schema/types/defs.d.mts +6 -0
- package/node_modules/typebox/build/schema/types/defs.mjs +12 -0
- package/node_modules/typebox/build/schema/types/dependencies.d.mts +11 -0
- package/node_modules/typebox/build/schema/types/dependencies.mjs +16 -0
- package/node_modules/typebox/build/schema/types/dependentRequired.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/dependentRequired.mjs +15 -0
- package/node_modules/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +15 -0
- package/node_modules/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +12 -0
- package/node_modules/typebox/build/schema/types/dynamicRef.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/dynamicRef.mjs +12 -0
- package/node_modules/typebox/build/schema/types/else.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/else.mjs +14 -0
- package/node_modules/typebox/build/schema/types/enum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/enum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/format.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/format.mjs +13 -0
- package/node_modules/typebox/build/schema/types/id.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/id.mjs +13 -0
- package/node_modules/typebox/build/schema/types/if.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/if.mjs +14 -0
- package/node_modules/typebox/build/schema/types/index.d.mts +54 -0
- package/node_modules/typebox/build/schema/types/index.mjs +60 -0
- package/node_modules/typebox/build/schema/types/items.d.mts +19 -0
- package/node_modules/typebox/build/schema/types/items.mjs +26 -0
- package/node_modules/typebox/build/schema/types/maxContains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxContains.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxItems.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxLength.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxLength.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maxProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maxProperties.mjs +13 -0
- package/node_modules/typebox/build/schema/types/maximum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/maximum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minContains.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minContains.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minItems.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minLength.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minLength.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minProperties.mjs +13 -0
- package/node_modules/typebox/build/schema/types/minimum.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/minimum.mjs +13 -0
- package/node_modules/typebox/build/schema/types/multipleOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/multipleOf.mjs +13 -0
- package/node_modules/typebox/build/schema/types/not.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/not.mjs +14 -0
- package/node_modules/typebox/build/schema/types/oneOf.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/oneOf.mjs +15 -0
- package/node_modules/typebox/build/schema/types/pattern.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/pattern.mjs +14 -0
- package/node_modules/typebox/build/schema/types/patternProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/patternProperties.mjs +15 -0
- package/node_modules/typebox/build/schema/types/prefixItems.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/prefixItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/properties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/properties.mjs +15 -0
- package/node_modules/typebox/build/schema/types/propertyNames.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/propertyNames.mjs +15 -0
- package/node_modules/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
- package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +19 -0
- package/node_modules/typebox/build/schema/types/recursiveRef.d.mts +8 -0
- package/node_modules/typebox/build/schema/types/recursiveRef.mjs +12 -0
- package/node_modules/typebox/build/schema/types/ref.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/ref.mjs +13 -0
- package/node_modules/typebox/build/schema/types/required.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/required.mjs +14 -0
- package/node_modules/typebox/build/schema/types/schema.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/schema.mjs +14 -0
- package/node_modules/typebox/build/schema/types/then.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/then.mjs +14 -0
- package/node_modules/typebox/build/schema/types/type.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/type.mjs +15 -0
- package/node_modules/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +14 -0
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +14 -0
- package/node_modules/typebox/build/schema/types/uniqueItems.d.mts +9 -0
- package/node_modules/typebox/build/schema/types/uniqueItems.mjs +13 -0
- package/node_modules/typebox/build/system/arguments/arguments.d.mts +5 -0
- package/node_modules/typebox/build/system/arguments/arguments.mjs +9 -0
- package/node_modules/typebox/build/system/arguments/index.d.mts +1 -0
- package/node_modules/typebox/build/system/arguments/index.mjs +1 -0
- package/node_modules/typebox/build/system/environment/environment.d.mts +1 -0
- package/node_modules/typebox/build/system/environment/environment.mjs +1 -0
- package/node_modules/typebox/build/system/environment/evaluate.d.mts +9 -0
- package/node_modules/typebox/build/system/environment/evaluate.mjs +37 -0
- package/node_modules/typebox/build/system/environment/index.d.mts +1 -0
- package/node_modules/typebox/build/system/environment/index.mjs +1 -0
- package/node_modules/typebox/build/system/hashing/hash.d.mts +4 -0
- package/node_modules/typebox/build/system/hashing/hash.mjs +232 -0
- package/node_modules/typebox/build/system/hashing/index.d.mts +1 -0
- package/node_modules/typebox/build/system/hashing/index.mjs +1 -0
- package/node_modules/typebox/build/system/index.d.mts +4 -0
- package/node_modules/typebox/build/system/index.mjs +4 -0
- package/node_modules/typebox/build/system/locale/_config.d.mts +7 -0
- package/node_modules/typebox/build/system/locale/_config.mjs +15 -0
- package/node_modules/typebox/build/system/locale/_locale.d.mts +40 -0
- package/node_modules/typebox/build/system/locale/_locale.mjs +40 -0
- package/node_modules/typebox/build/system/locale/ar_001.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ar_001.mjs +41 -0
- package/node_modules/typebox/build/system/locale/bn_BD.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +41 -0
- package/node_modules/typebox/build/system/locale/cs_CZ.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +41 -0
- package/node_modules/typebox/build/system/locale/de_DE.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/de_DE.mjs +41 -0
- package/node_modules/typebox/build/system/locale/el_GR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/el_GR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/en_US.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/en_US.mjs +40 -0
- package/node_modules/typebox/build/system/locale/es_419.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_419.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_AR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_AR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_ES.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_ES.mjs +41 -0
- package/node_modules/typebox/build/system/locale/es_MX.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/es_MX.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fa_IR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fil_PH.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fr_CA.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +41 -0
- package/node_modules/typebox/build/system/locale/fr_FR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ha_NG.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +41 -0
- package/node_modules/typebox/build/system/locale/hi_IN.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +41 -0
- package/node_modules/typebox/build/system/locale/hu_HU.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +41 -0
- package/node_modules/typebox/build/system/locale/id_ID.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/id_ID.mjs +41 -0
- package/node_modules/typebox/build/system/locale/index.d.mts +1 -0
- package/node_modules/typebox/build/system/locale/index.mjs +1 -0
- package/node_modules/typebox/build/system/locale/it_IT.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/it_IT.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ja_JP.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ko_KR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ms_MY.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +41 -0
- package/node_modules/typebox/build/system/locale/nl_NL.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pl_PL.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pt_BR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/pt_PT.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ro_RO.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ru_RU.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +41 -0
- package/node_modules/typebox/build/system/locale/sv_SE.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +41 -0
- package/node_modules/typebox/build/system/locale/sw_TZ.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +41 -0
- package/node_modules/typebox/build/system/locale/th_TH.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/th_TH.mjs +41 -0
- package/node_modules/typebox/build/system/locale/tr_TR.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +41 -0
- package/node_modules/typebox/build/system/locale/uk_UA.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +41 -0
- package/node_modules/typebox/build/system/locale/ur_PK.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +41 -0
- package/node_modules/typebox/build/system/locale/vi_VN.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +41 -0
- package/node_modules/typebox/build/system/locale/yo_NG.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +41 -0
- package/node_modules/typebox/build/system/locale/zh_Hans.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +41 -0
- package/node_modules/typebox/build/system/locale/zh_Hant.d.mts +3 -0
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +41 -0
- package/node_modules/typebox/build/system/memory/assign.d.mts +14 -0
- package/node_modules/typebox/build/system/memory/assign.mjs +11 -0
- package/node_modules/typebox/build/system/memory/clone.d.mts +6 -0
- package/node_modules/typebox/build/system/memory/clone.mjs +63 -0
- package/node_modules/typebox/build/system/memory/create.d.mts +8 -0
- package/node_modules/typebox/build/system/memory/create.mjs +30 -0
- package/node_modules/typebox/build/system/memory/discard.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/discard.mjs +17 -0
- package/node_modules/typebox/build/system/memory/index.d.mts +1 -0
- package/node_modules/typebox/build/system/memory/index.mjs +1 -0
- package/node_modules/typebox/build/system/memory/memory.d.mts +6 -0
- package/node_modules/typebox/build/system/memory/memory.mjs +7 -0
- package/node_modules/typebox/build/system/memory/metrics.d.mts +14 -0
- package/node_modules/typebox/build/system/memory/metrics.mjs +8 -0
- package/node_modules/typebox/build/system/memory/update.d.mts +7 -0
- package/node_modules/typebox/build/system/memory/update.mjs +32 -0
- package/node_modules/typebox/build/system/settings/index.d.mts +1 -0
- package/node_modules/typebox/build/system/settings/index.mjs +1 -0
- package/node_modules/typebox/build/system/settings/settings.d.mts +56 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +32 -0
- package/node_modules/typebox/build/system/system.d.mts +6 -0
- package/node_modules/typebox/build/system/system.mjs +6 -0
- package/node_modules/typebox/build/system/unreachable/index.d.mts +1 -0
- package/node_modules/typebox/build/system/unreachable/index.mjs +1 -0
- package/node_modules/typebox/build/system/unreachable/unreachable.d.mts +3 -0
- package/node_modules/typebox/build/system/unreachable/unreachable.mjs +6 -0
- package/node_modules/typebox/build/type/action/_optional.d.mts +19 -0
- package/node_modules/typebox/build/type/action/_optional.mjs +40 -0
- package/node_modules/typebox/build/type/action/_readonly.d.mts +19 -0
- package/node_modules/typebox/build/type/action/_readonly.mjs +40 -0
- package/node_modules/typebox/build/type/action/awaited.d.mts +15 -0
- package/node_modules/typebox/build/type/action/awaited.mjs +15 -0
- package/node_modules/typebox/build/type/action/capitalize.d.mts +11 -0
- package/node_modules/typebox/build/type/action/capitalize.mjs +11 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +13 -0
- package/node_modules/typebox/build/type/action/conditional.mjs +12 -0
- package/node_modules/typebox/build/type/action/constructor_parameters.d.mts +11 -0
- package/node_modules/typebox/build/type/action/constructor_parameters.mjs +11 -0
- package/node_modules/typebox/build/type/action/evaluate.d.mts +11 -0
- package/node_modules/typebox/build/type/action/evaluate.mjs +11 -0
- package/node_modules/typebox/build/type/action/exclude.d.mts +11 -0
- package/node_modules/typebox/build/type/action/exclude.mjs +11 -0
- package/node_modules/typebox/build/type/action/extract.d.mts +11 -0
- package/node_modules/typebox/build/type/action/extract.mjs +11 -0
- package/node_modules/typebox/build/type/action/index.d.mts +27 -0
- package/node_modules/typebox/build/type/action/index.mjs +27 -0
- package/node_modules/typebox/build/type/action/indexed.d.mts +14 -0
- package/node_modules/typebox/build/type/action/indexed.mjs +14 -0
- package/node_modules/typebox/build/type/action/instance_type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/instance_type.mjs +11 -0
- package/node_modules/typebox/build/type/action/interface.d.mts +14 -0
- package/node_modules/typebox/build/type/action/interface.mjs +22 -0
- package/node_modules/typebox/build/type/action/keyof.d.mts +11 -0
- package/node_modules/typebox/build/type/action/keyof.mjs +11 -0
- package/node_modules/typebox/build/type/action/lowercase.d.mts +11 -0
- package/node_modules/typebox/build/type/action/lowercase.mjs +11 -0
- package/node_modules/typebox/build/type/action/mapped.d.mts +14 -0
- package/node_modules/typebox/build/type/action/mapped.mjs +12 -0
- package/node_modules/typebox/build/type/action/module.d.mts +12 -0
- package/node_modules/typebox/build/type/action/module.mjs +12 -0
- package/node_modules/typebox/build/type/action/non_nullable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/non_nullable.mjs +11 -0
- package/node_modules/typebox/build/type/action/omit.d.mts +14 -0
- package/node_modules/typebox/build/type/action/omit.mjs +14 -0
- package/node_modules/typebox/build/type/action/options.d.mts +11 -0
- package/node_modules/typebox/build/type/action/options.mjs +11 -0
- package/node_modules/typebox/build/type/action/parameters.d.mts +11 -0
- package/node_modules/typebox/build/type/action/parameters.mjs +11 -0
- package/node_modules/typebox/build/type/action/partial.d.mts +11 -0
- package/node_modules/typebox/build/type/action/partial.mjs +11 -0
- package/node_modules/typebox/build/type/action/pick.d.mts +14 -0
- package/node_modules/typebox/build/type/action/pick.mjs +14 -0
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +16 -0
- package/node_modules/typebox/build/type/action/readonly_object.mjs +16 -0
- package/node_modules/typebox/build/type/action/required.d.mts +11 -0
- package/node_modules/typebox/build/type/action/required.mjs +11 -0
- package/node_modules/typebox/build/type/action/return_type.d.mts +11 -0
- package/node_modules/typebox/build/type/action/return_type.mjs +11 -0
- package/node_modules/typebox/build/type/action/uncapitalize.d.mts +11 -0
- package/node_modules/typebox/build/type/action/uncapitalize.mjs +11 -0
- package/node_modules/typebox/build/type/action/uppercase.d.mts +11 -0
- package/node_modules/typebox/build/type/action/uppercase.mjs +11 -0
- package/node_modules/typebox/build/type/engine/awaited/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/awaited/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +20 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +53 -0
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +23 -0
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +48 -0
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +33 -0
- package/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
- package/node_modules/typebox/build/type/engine/call/resolve_target.mjs +27 -0
- package/node_modules/typebox/build/type/engine/conditional/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/conditional/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +23 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +24 -0
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +19 -0
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +24 -0
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +51 -0
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +25 -0
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +53 -0
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +31 -0
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +53 -0
- package/node_modules/typebox/build/type/engine/cyclic/index.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/cyclic/index.mjs +6 -0
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +30 -0
- package/node_modules/typebox/build/type/engine/cyclic/target.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/cyclic/target.mjs +16 -0
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +24 -0
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +2 -0
- package/node_modules/typebox/build/type/engine/enum/index.mjs +2 -0
- package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +9 -0
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +47 -0
- package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +22 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +63 -0
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +27 -0
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +45 -0
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +27 -0
- package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +11 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/index.mjs +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +12 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +11 -0
- package/node_modules/typebox/build/type/engine/exclude/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/exclude/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +24 -0
- package/node_modules/typebox/build/type/engine/extract/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/extract/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +24 -0
- package/node_modules/typebox/build/type/engine/helpers/index.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/helpers/index.mjs +3 -0
- package/node_modules/typebox/build/type/engine/helpers/keys.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/helpers/keys.mjs +8 -0
- package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +15 -0
- package/node_modules/typebox/build/type/engine/helpers/union.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/helpers/union.mjs +3 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +31 -0
- package/node_modules/typebox/build/type/engine/index.mjs +37 -0
- package/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +22 -0
- package/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/indexable/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +14 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +12 -0
- package/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +18 -0
- package/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/indexed/from_array.mjs +35 -0
- package/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/indexed/from_object.mjs +40 -0
- package/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +35 -0
- package/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/indexed/from_type.mjs +14 -0
- package/node_modules/typebox/build/type/engine/indexed/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/indexed/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +25 -0
- package/node_modules/typebox/build/type/engine/instance_type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/instance_type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +21 -0
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +165 -0
- package/node_modules/typebox/build/type/engine/instantiate.mjs +159 -0
- package/node_modules/typebox/build/type/engine/interface/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/interface/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +18 -0
- package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +23 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +9 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +8 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +13 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +52 -0
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/keyof/from_any.mjs +8 -0
- package/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_array.mjs +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/keyof/from_object.mjs +20 -0
- package/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/keyof/from_record.mjs +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +7 -0
- package/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/keyof/from_type.mjs +23 -0
- package/node_modules/typebox/build/type/engine/keyof/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/keyof/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +25 -0
- package/node_modules/typebox/build/type/engine/mapped/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/mapped/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +42 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +34 -0
- package/node_modules/typebox/build/type/engine/module/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/module/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +21 -0
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +34 -0
- package/node_modules/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/non_nullable/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +22 -0
- package/node_modules/typebox/build/type/engine/object/collapse.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/object/collapse.mjs +14 -0
- package/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
- package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +22 -0
- package/node_modules/typebox/build/type/engine/object/from_object.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/object/from_object.mjs +4 -0
- package/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/object/from_tuple.mjs +9 -0
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +14 -0
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +20 -0
- package/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +19 -0
- package/node_modules/typebox/build/type/engine/object/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/object/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/omit/from_type.mjs +18 -0
- package/node_modules/typebox/build/type/engine/omit/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/omit/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/options/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/options/instantiate.mjs +14 -0
- package/node_modules/typebox/build/type/engine/parameters/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/parameters/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +15 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +24 -0
- package/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +17 -0
- package/node_modules/typebox/build/type/engine/partial/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/partial/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/partial/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/patterns/index.d.mts +2 -0
- package/node_modules/typebox/build/type/engine/patterns/index.mjs +2 -0
- package/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +11 -0
- package/node_modules/typebox/build/type/engine/patterns/template.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/patterns/template.mjs +20 -0
- package/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
- package/node_modules/typebox/build/type/engine/pick/from_type.mjs +20 -0
- package/node_modules/typebox/build/type/engine/pick/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/pick/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +16 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +16 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +22 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/readonly_object/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/record/from_key.d.mts +24 -0
- package/node_modules/typebox/build/type/engine/record/from_key.mjs +40 -0
- package/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
- package/node_modules/typebox/build/type/engine/record/from_key_any.mjs +6 -0
- package/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
- package/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +10 -0
- package/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_number.mjs +7 -0
- package/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/record/from_key_string.mjs +12 -0
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +12 -0
- package/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/record/from_key_union.mjs +39 -0
- package/node_modules/typebox/build/type/engine/record/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/record/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/record/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/record/instantiate.mjs +17 -0
- package/node_modules/typebox/build/type/engine/record/record_create.d.mts +3 -0
- package/node_modules/typebox/build/type/engine/record/record_create.mjs +7 -0
- package/node_modules/typebox/build/type/engine/ref/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/ref/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +10 -0
- package/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +11 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +7 -0
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +11 -0
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +17 -0
- package/node_modules/typebox/build/type/engine/required/from_union.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_union.mjs +7 -0
- package/node_modules/typebox/build/type/engine/required/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/required/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/required/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/required/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/rest/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/rest/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/rest/spread.mjs +19 -0
- package/node_modules/typebox/build/type/engine/return_type/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/return_type/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +21 -0
- package/node_modules/typebox/build/type/engine/template_literal/create.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/template_literal/create.mjs +5 -0
- package/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +81 -0
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +81 -0
- package/node_modules/typebox/build/type/engine/template_literal/index.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/index.mjs +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
- package/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +15 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +26 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +9 -0
- package/node_modules/typebox/build/type/engine/template_literal/static.d.mts +18 -0
- package/node_modules/typebox/build/type/engine/template_literal/static.mjs +2 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +19 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +32 -0
- package/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
- package/node_modules/typebox/build/type/engine/tuple/to_object.mjs +14 -0
- package/node_modules/typebox/build/type/extends/any.d.mts +9 -0
- package/node_modules/typebox/build/type/extends/any.mjs +12 -0
- package/node_modules/typebox/build/type/extends/array.d.mts +20 -0
- package/node_modules/typebox/build/type/extends/array.mjs +21 -0
- package/node_modules/typebox/build/type/extends/async_iterator.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +9 -0
- package/node_modules/typebox/build/type/extends/bigint.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/bigint.mjs +9 -0
- package/node_modules/typebox/build/type/extends/boolean.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/boolean.mjs +9 -0
- package/node_modules/typebox/build/type/extends/constructor.d.mts +10 -0
- package/node_modules/typebox/build/type/extends/constructor.mjs +17 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/enum.mjs +6 -0
- package/node_modules/typebox/build/type/extends/extends.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/extends.mjs +17 -0
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +55 -0
- package/node_modules/typebox/build/type/extends/extends_left.mjs +83 -0
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/extends_right.mjs +44 -0
- package/node_modules/typebox/build/type/extends/function.d.mts +10 -0
- package/node_modules/typebox/build/type/extends/function.mjs +17 -0
- package/node_modules/typebox/build/type/extends/index.d.mts +2 -0
- package/node_modules/typebox/build/type/extends/index.mjs +2 -0
- package/node_modules/typebox/build/type/extends/inference.d.mts +34 -0
- package/node_modules/typebox/build/type/extends/inference.mjs +62 -0
- package/node_modules/typebox/build/type/extends/integer.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/integer.mjs +10 -0
- package/node_modules/typebox/build/type/extends/intersect.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/intersect.mjs +15 -0
- package/node_modules/typebox/build/type/extends/iterator.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/iterator.mjs +9 -0
- package/node_modules/typebox/build/type/extends/literal.d.mts +18 -0
- package/node_modules/typebox/build/type/extends/literal.mjs +44 -0
- package/node_modules/typebox/build/type/extends/never.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/never.mjs +9 -0
- package/node_modules/typebox/build/type/extends/null.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/null.mjs +9 -0
- package/node_modules/typebox/build/type/extends/number.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/number.mjs +9 -0
- package/node_modules/typebox/build/type/extends/object.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/object.mjs +87 -0
- package/node_modules/typebox/build/type/extends/parameters.d.mts +15 -0
- package/node_modules/typebox/build/type/extends/parameters.mjs +28 -0
- package/node_modules/typebox/build/type/extends/promise.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/promise.mjs +9 -0
- package/node_modules/typebox/build/type/extends/result.d.mts +24 -0
- package/node_modules/typebox/build/type/extends/result.mjs +36 -0
- package/node_modules/typebox/build/type/extends/return_type.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/return_type.mjs +9 -0
- package/node_modules/typebox/build/type/extends/string.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/string.mjs +9 -0
- package/node_modules/typebox/build/type/extends/symbol.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/symbol.mjs +9 -0
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/template_literal.mjs +7 -0
- package/node_modules/typebox/build/type/extends/tuple.d.mts +25 -0
- package/node_modules/typebox/build/type/extends/tuple.mjs +60 -0
- package/node_modules/typebox/build/type/extends/undefined.d.mts +8 -0
- package/node_modules/typebox/build/type/extends/undefined.mjs +10 -0
- package/node_modules/typebox/build/type/extends/union.d.mts +11 -0
- package/node_modules/typebox/build/type/extends/union.mjs +24 -0
- package/node_modules/typebox/build/type/extends/unknown.d.mts +9 -0
- package/node_modules/typebox/build/type/extends/unknown.mjs +12 -0
- package/node_modules/typebox/build/type/extends/void.d.mts +7 -0
- package/node_modules/typebox/build/type/extends/void.mjs +9 -0
- package/node_modules/typebox/build/type/index.d.mts +5 -0
- package/node_modules/typebox/build/type/index.mjs +5 -0
- package/node_modules/typebox/build/type/script/index.d.mts +1 -0
- package/node_modules/typebox/build/type/script/index.mjs +1 -0
- package/node_modules/typebox/build/type/script/mapping.d.mts +365 -0
- package/node_modules/typebox/build/type/script/mapping.mjs +532 -0
- package/node_modules/typebox/build/type/script/parser.d.mts +260 -0
- package/node_modules/typebox/build/type/script/parser.mjs +135 -0
- package/node_modules/typebox/build/type/script/script.d.mts +17 -0
- package/node_modules/typebox/build/type/script/script.mjs +21 -0
- package/node_modules/typebox/build/type/script/token/bigint.d.mts +8 -0
- package/node_modules/typebox/build/type/script/token/bigint.mjs +14 -0
- package/node_modules/typebox/build/type/script/token/const.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/const.mjs +18 -0
- package/node_modules/typebox/build/type/script/token/ident.d.mts +16 -0
- package/node_modules/typebox/build/type/script/token/ident.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/index.d.mts +12 -0
- package/node_modules/typebox/build/type/script/token/index.mjs +12 -0
- package/node_modules/typebox/build/type/script/token/integer.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/integer.mjs +19 -0
- package/node_modules/typebox/build/type/script/token/internal/char.d.mts +75 -0
- package/node_modules/typebox/build/type/script/token/internal/char.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -0
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +15 -0
- package/node_modules/typebox/build/type/script/token/internal/many.d.mts +7 -0
- package/node_modules/typebox/build/type/script/token/internal/many.mjs +14 -0
- package/node_modules/typebox/build/type/script/token/internal/match.d.mts +6 -0
- package/node_modules/typebox/build/type/script/token/internal/match.mjs +11 -0
- package/node_modules/typebox/build/type/script/token/internal/optional.d.mts +5 -0
- package/node_modules/typebox/build/type/script/token/internal/optional.mjs +9 -0
- package/node_modules/typebox/build/type/script/token/internal/take.d.mts +6 -0
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +30 -0
- package/node_modules/typebox/build/type/script/token/internal/trim.d.mts +19 -0
- package/node_modules/typebox/build/type/script/token/internal/trim.mjs +34 -0
- package/node_modules/typebox/build/type/script/token/number.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/number.mjs +19 -0
- package/node_modules/typebox/build/type/script/token/rest.d.mts +4 -0
- package/node_modules/typebox/build/type/script/token/rest.mjs +9 -0
- package/node_modules/typebox/build/type/script/token/span.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/span.mjs +24 -0
- package/node_modules/typebox/build/type/script/token/string.d.mts +11 -0
- package/node_modules/typebox/build/type/script/token/string.mjs +20 -0
- package/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
- package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +26 -0
- package/node_modules/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
- package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +38 -0
- package/node_modules/typebox/build/type/script/token/until.d.mts +7 -0
- package/node_modules/typebox/build/type/script/token/until.mjs +21 -0
- package/node_modules/typebox/build/type/script/token/until_1.d.mts +5 -0
- package/node_modules/typebox/build/type/script/token/until_1.mjs +12 -0
- package/node_modules/typebox/build/type/types/_codec.d.mts +30 -0
- package/node_modules/typebox/build/type/types/_codec.mjs +61 -0
- package/node_modules/typebox/build/type/types/_immutable.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_immutable.mjs +26 -0
- package/node_modules/typebox/build/type/types/_optional.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_optional.mjs +27 -0
- package/node_modules/typebox/build/type/types/_readonly.d.mts +16 -0
- package/node_modules/typebox/build/type/types/_readonly.mjs +26 -0
- package/node_modules/typebox/build/type/types/_refine.d.mts +26 -0
- package/node_modules/typebox/build/type/types/_refine.mjs +37 -0
- package/node_modules/typebox/build/type/types/any.d.mts +10 -0
- package/node_modules/typebox/build/type/types/any.mjs +18 -0
- package/node_modules/typebox/build/type/types/array.d.mts +18 -0
- package/node_modules/typebox/build/type/types/array.mjs +25 -0
- package/node_modules/typebox/build/type/types/async_iterator.d.mts +20 -0
- package/node_modules/typebox/build/type/types/async_iterator.mjs +28 -0
- package/node_modules/typebox/build/type/types/base.d.mts +50 -0
- package/node_modules/typebox/build/type/types/base.mjs +84 -0
- package/node_modules/typebox/build/type/types/bigint.d.mts +12 -0
- package/node_modules/typebox/build/type/types/bigint.mjs +21 -0
- package/node_modules/typebox/build/type/types/boolean.d.mts +11 -0
- package/node_modules/typebox/build/type/types/boolean.mjs +17 -0
- package/node_modules/typebox/build/type/types/call.d.mts +16 -0
- package/node_modules/typebox/build/type/types/call.mjs +22 -0
- package/node_modules/typebox/build/type/types/constructor.d.mts +18 -0
- package/node_modules/typebox/build/type/types/constructor.mjs +24 -0
- package/node_modules/typebox/build/type/types/cyclic.d.mts +16 -0
- package/node_modules/typebox/build/type/types/cyclic.mjs +29 -0
- package/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +16 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +16 -0
- package/node_modules/typebox/build/type/types/enum.mjs +17 -0
- package/node_modules/typebox/build/type/types/function.d.mts +21 -0
- package/node_modules/typebox/build/type/types/function.mjs +25 -0
- package/node_modules/typebox/build/type/types/generic.d.mts +13 -0
- package/node_modules/typebox/build/type/types/generic.mjs +17 -0
- package/node_modules/typebox/build/type/types/identifier.d.mts +11 -0
- package/node_modules/typebox/build/type/types/identifier.mjs +17 -0
- package/node_modules/typebox/build/type/types/index.d.mts +48 -0
- package/node_modules/typebox/build/type/types/index.mjs +54 -0
- package/node_modules/typebox/build/type/types/infer.d.mts +15 -0
- package/node_modules/typebox/build/type/types/infer.mjs +20 -0
- package/node_modules/typebox/build/type/types/integer.d.mts +12 -0
- package/node_modules/typebox/build/type/types/integer.mjs +21 -0
- package/node_modules/typebox/build/type/types/intersect.d.mts +15 -0
- package/node_modules/typebox/build/type/types/intersect.mjs +24 -0
- package/node_modules/typebox/build/type/types/iterator.d.mts +20 -0
- package/node_modules/typebox/build/type/types/iterator.mjs +28 -0
- package/node_modules/typebox/build/type/types/literal.d.mts +31 -0
- package/node_modules/typebox/build/type/types/literal.mjs +62 -0
- package/node_modules/typebox/build/type/types/never.d.mts +12 -0
- package/node_modules/typebox/build/type/types/never.mjs +22 -0
- package/node_modules/typebox/build/type/types/null.d.mts +11 -0
- package/node_modules/typebox/build/type/types/null.mjs +17 -0
- package/node_modules/typebox/build/type/types/number.d.mts +12 -0
- package/node_modules/typebox/build/type/types/number.mjs +21 -0
- package/node_modules/typebox/build/type/types/object.d.mts +18 -0
- package/node_modules/typebox/build/type/types/object.mjs +28 -0
- package/node_modules/typebox/build/type/types/parameter.d.mts +17 -0
- package/node_modules/typebox/build/type/types/parameter.mjs +21 -0
- package/node_modules/typebox/build/type/types/promise.d.mts +21 -0
- package/node_modules/typebox/build/type/types/promise.mjs +29 -0
- package/node_modules/typebox/build/type/types/properties.d.mts +43 -0
- package/node_modules/typebox/build/type/types/properties.mjs +15 -0
- package/node_modules/typebox/build/type/types/record.d.mts +46 -0
- package/node_modules/typebox/build/type/types/record.mjs +60 -0
- package/node_modules/typebox/build/type/types/ref.d.mts +19 -0
- package/node_modules/typebox/build/type/types/ref.mjs +18 -0
- package/node_modules/typebox/build/type/types/rest.d.mts +11 -0
- package/node_modules/typebox/build/type/types/rest.mjs +17 -0
- package/node_modules/typebox/build/type/types/schema.d.mts +176 -0
- package/node_modules/typebox/build/type/types/schema.mjs +15 -0
- package/node_modules/typebox/build/type/types/static.d.mts +48 -0
- package/node_modules/typebox/build/type/types/static.mjs +3 -0
- package/node_modules/typebox/build/type/types/string.d.mts +12 -0
- package/node_modules/typebox/build/type/types/string.mjs +22 -0
- package/node_modules/typebox/build/type/types/symbol.d.mts +11 -0
- package/node_modules/typebox/build/type/types/symbol.mjs +17 -0
- package/node_modules/typebox/build/type/types/template_literal.d.mts +28 -0
- package/node_modules/typebox/build/type/types/template_literal.mjs +37 -0
- package/node_modules/typebox/build/type/types/this.d.mts +14 -0
- package/node_modules/typebox/build/type/types/this.mjs +17 -0
- package/node_modules/typebox/build/type/types/tuple.d.mts +38 -0
- package/node_modules/typebox/build/type/types/tuple.mjs +25 -0
- package/node_modules/typebox/build/type/types/undefined.d.mts +11 -0
- package/node_modules/typebox/build/type/types/undefined.mjs +17 -0
- package/node_modules/typebox/build/type/types/union.d.mts +15 -0
- package/node_modules/typebox/build/type/types/union.mjs +24 -0
- package/node_modules/typebox/build/type/types/unknown.d.mts +10 -0
- package/node_modules/typebox/build/type/types/unknown.mjs +17 -0
- package/node_modules/typebox/build/type/types/unsafe.d.mts +10 -0
- package/node_modules/typebox/build/type/types/unsafe.mjs +20 -0
- package/node_modules/typebox/build/type/types/void.d.mts +11 -0
- package/node_modules/typebox/build/type/types/void.mjs +17 -0
- package/node_modules/typebox/build/typebox.d.mts +73 -0
- package/node_modules/typebox/build/typebox.mjs +89 -0
- package/node_modules/typebox/build/value/assert/assert.d.mts +14 -0
- package/node_modules/typebox/build/value/assert/assert.mjs +28 -0
- package/node_modules/typebox/build/value/assert/index.d.mts +1 -0
- package/node_modules/typebox/build/value/assert/index.mjs +1 -0
- package/node_modules/typebox/build/value/check/check.d.mts +5 -0
- package/node_modules/typebox/build/value/check/check.mjs +11 -0
- package/node_modules/typebox/build/value/check/index.d.mts +1 -0
- package/node_modules/typebox/build/value/check/index.mjs +1 -0
- package/node_modules/typebox/build/value/clean/additional.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/additional.mjs +6 -0
- package/node_modules/typebox/build/value/clean/clean.d.mts +15 -0
- package/node_modules/typebox/build/value/clean/clean.mjs +15 -0
- package/node_modules/typebox/build/value/clean/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_array.mjs +8 -0
- package/node_modules/typebox/build/value/clean/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_base.mjs +4 -0
- package/node_modules/typebox/build/value/clean/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/clean/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +26 -0
- package/node_modules/typebox/build/value/clean/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_object.mjs +31 -0
- package/node_modules/typebox/build/value/clean/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_record.mjs +32 -0
- package/node_modules/typebox/build/value/clean/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_ref.mjs +8 -0
- package/node_modules/typebox/build/value/clean/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_tuple.mjs +14 -0
- package/node_modules/typebox/build/value/clean/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_type.mjs +23 -0
- package/node_modules/typebox/build/value/clean/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/clean/from_union.mjs +13 -0
- package/node_modules/typebox/build/value/clean/index.d.mts +1 -0
- package/node_modules/typebox/build/value/clean/index.mjs +1 -0
- package/node_modules/typebox/build/value/clone/clone.d.mts +5 -0
- package/node_modules/typebox/build/value/clone/clone.mjs +83 -0
- package/node_modules/typebox/build/value/clone/index.d.mts +1 -0
- package/node_modules/typebox/build/value/clone/index.mjs +1 -0
- package/node_modules/typebox/build/value/codec/callback.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/callback.mjs +25 -0
- package/node_modules/typebox/build/value/codec/decode.d.mts +12 -0
- package/node_modules/typebox/build/value/codec/decode.mjs +50 -0
- package/node_modules/typebox/build/value/codec/encode.d.mts +12 -0
- package/node_modules/typebox/build/value/codec/encode.mjs +50 -0
- package/node_modules/typebox/build/value/codec/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_array.mjs +38 -0
- package/node_modules/typebox/build/value/codec/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_cyclic.mjs +8 -0
- package/node_modules/typebox/build/value/codec/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_intersect.mjs +58 -0
- package/node_modules/typebox/build/value/codec/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_object.mjs +45 -0
- package/node_modules/typebox/build/value/codec/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_record.mjs +44 -0
- package/node_modules/typebox/build/value/codec/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_ref.mjs +31 -0
- package/node_modules/typebox/build/value/codec/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +35 -0
- package/node_modules/typebox/build/value/codec/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_type.mjs +22 -0
- package/node_modules/typebox/build/value/codec/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/codec/from_union.mjs +40 -0
- package/node_modules/typebox/build/value/codec/has.d.mts +5 -0
- package/node_modules/typebox/build/value/codec/has.mjs +93 -0
- package/node_modules/typebox/build/value/codec/index.d.mts +3 -0
- package/node_modules/typebox/build/value/codec/index.mjs +3 -0
- package/node_modules/typebox/build/value/convert/convert.d.mts +13 -0
- package/node_modules/typebox/build/value/convert/convert.mjs +15 -0
- package/node_modules/typebox/build/value/convert/from_additional.d.mts +6 -0
- package/node_modules/typebox/build/value/convert/from_additional.mjs +18 -0
- package/node_modules/typebox/build/value/convert/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_array.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_base.mjs +4 -0
- package/node_modules/typebox/build/value/convert/from_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_bigint.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_boolean.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_enum.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from_integer.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_integer.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/convert/from_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_literal.mjs +44 -0
- package/node_modules/typebox/build/value/convert/from_null.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_null.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_number.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_number.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_object.mjs +28 -0
- package/node_modules/typebox/build/value/convert/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_record.mjs +23 -0
- package/node_modules/typebox/build/value/convert/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_ref.mjs +8 -0
- package/node_modules/typebox/build/value/convert/from_string.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_string.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +7 -0
- package/node_modules/typebox/build/value/convert/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_tuple.mjs +11 -0
- package/node_modules/typebox/build/value/convert/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_type.mjs +45 -0
- package/node_modules/typebox/build/value/convert/from_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_undefined.mjs +6 -0
- package/node_modules/typebox/build/value/convert/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_union.mjs +13 -0
- package/node_modules/typebox/build/value/convert/from_void.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/from_void.mjs +6 -0
- package/node_modules/typebox/build/value/convert/index.d.mts +1 -0
- package/node_modules/typebox/build/value/convert/index.mjs +1 -0
- package/node_modules/typebox/build/value/convert/try/index.d.mts +1 -0
- package/node_modules/typebox/build/value/convert/try/index.mjs +1 -0
- package/node_modules/typebox/build/value/convert/try/try.d.mts +8 -0
- package/node_modules/typebox/build/value/convert/try/try.mjs +8 -0
- package/node_modules/typebox/build/value/convert/try/try_array.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_array.mjs +6 -0
- package/node_modules/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_bigint.mjs +45 -0
- package/node_modules/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_boolean.mjs +41 -0
- package/node_modules/typebox/build/value/convert/try/try_null.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_null.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try_number.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_number.mjs +44 -0
- package/node_modules/typebox/build/value/convert/try/try_result.d.mts +8 -0
- package/node_modules/typebox/build/value/convert/try/try_result.mjs +17 -0
- package/node_modules/typebox/build/value/convert/try/try_string.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_string.mjs +12 -0
- package/node_modules/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/convert/try/try_undefined.mjs +44 -0
- package/node_modules/typebox/build/value/create/create.d.mts +5 -0
- package/node_modules/typebox/build/value/create/create.mjs +11 -0
- package/node_modules/typebox/build/value/create/error.d.mts +5 -0
- package/node_modules/typebox/build/value/create/error.mjs +7 -0
- package/node_modules/typebox/build/value/create/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_array.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_base.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_bigint.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_bigint.mjs +7 -0
- package/node_modules/typebox/build/value/create/from_boolean.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_boolean.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_constructor.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_constructor.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_cyclic.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_default.d.mts +3 -0
- package/node_modules/typebox/build/value/create/from_default.mjs +10 -0
- package/node_modules/typebox/build/value/create/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_enum.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_function.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_function.mjs +6 -0
- package/node_modules/typebox/build/value/create/from_integer.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_integer.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_iterator.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_iterator.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_literal.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_never.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_never.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_null.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_null.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_number.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_number.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_object.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_promise.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_promise.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_record.mjs +8 -0
- package/node_modules/typebox/build/value/create/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_string.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_string.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_symbol.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_symbol.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_template_literal.mjs +11 -0
- package/node_modules/typebox/build/value/create/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_tuple.mjs +5 -0
- package/node_modules/typebox/build/value/create/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_type.mjs +69 -0
- package/node_modules/typebox/build/value/create/from_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_undefined.mjs +4 -0
- package/node_modules/typebox/build/value/create/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_union.mjs +9 -0
- package/node_modules/typebox/build/value/create/from_void.d.mts +2 -0
- package/node_modules/typebox/build/value/create/from_void.mjs +4 -0
- package/node_modules/typebox/build/value/create/index.d.mts +2 -0
- package/node_modules/typebox/build/value/create/index.mjs +2 -0
- package/node_modules/typebox/build/value/default/default.d.mts +13 -0
- package/node_modules/typebox/build/value/default/default.mjs +15 -0
- package/node_modules/typebox/build/value/default/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_array.mjs +12 -0
- package/node_modules/typebox/build/value/default/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_base.mjs +5 -0
- package/node_modules/typebox/build/value/default/from_cyclic.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_cyclic.mjs +7 -0
- package/node_modules/typebox/build/value/default/from_default.d.mts +3 -0
- package/node_modules/typebox/build/value/default/from_default.mjs +13 -0
- package/node_modules/typebox/build/value/default/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_intersect.mjs +9 -0
- package/node_modules/typebox/build/value/default/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_object.mjs +32 -0
- package/node_modules/typebox/build/value/default/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_record.mjs +26 -0
- package/node_modules/typebox/build/value/default/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/default/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_tuple.mjs +14 -0
- package/node_modules/typebox/build/value/default/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_type.mjs +27 -0
- package/node_modules/typebox/build/value/default/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/default/from_union.mjs +14 -0
- package/node_modules/typebox/build/value/default/index.d.mts +1 -0
- package/node_modules/typebox/build/value/default/index.mjs +1 -0
- package/node_modules/typebox/build/value/delta/diff.d.mts +10 -0
- package/node_modules/typebox/build/value/delta/diff.mjs +135 -0
- package/node_modules/typebox/build/value/delta/edit.d.mts +24 -0
- package/node_modules/typebox/build/value/delta/edit.mjs +17 -0
- package/node_modules/typebox/build/value/delta/index.d.mts +3 -0
- package/node_modules/typebox/build/value/delta/index.mjs +3 -0
- package/node_modules/typebox/build/value/delta/patch.d.mts +8 -0
- package/node_modules/typebox/build/value/delta/patch.mjs +42 -0
- package/node_modules/typebox/build/value/equal/equal.d.mts +2 -0
- package/node_modules/typebox/build/value/equal/equal.mjs +6 -0
- package/node_modules/typebox/build/value/equal/index.d.mts +1 -0
- package/node_modules/typebox/build/value/equal/index.mjs +1 -0
- package/node_modules/typebox/build/value/errors/errors.d.mts +16 -0
- package/node_modules/typebox/build/value/errors/errors.mjs +17 -0
- package/node_modules/typebox/build/value/errors/index.d.mts +1 -0
- package/node_modules/typebox/build/value/errors/index.mjs +1 -0
- package/node_modules/typebox/build/value/hash/hash.d.mts +6 -0
- package/node_modules/typebox/build/value/hash/hash.mjs +10 -0
- package/node_modules/typebox/build/value/hash/index.d.mts +1 -0
- package/node_modules/typebox/build/value/hash/index.mjs +1 -0
- package/node_modules/typebox/build/value/index.d.mts +21 -0
- package/node_modules/typebox/build/value/index.mjs +30 -0
- package/node_modules/typebox/build/value/mutate/error.d.mts +3 -0
- package/node_modules/typebox/build/value/mutate/error.mjs +6 -0
- package/node_modules/typebox/build/value/mutate/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from_array.mjs +16 -0
- package/node_modules/typebox/build/value/mutate/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from_object.mjs +40 -0
- package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +7 -0
- package/node_modules/typebox/build/value/mutate/from_value.d.mts +2 -0
- package/node_modules/typebox/build/value/mutate/from_value.mjs +12 -0
- package/node_modules/typebox/build/value/mutate/index.d.mts +1 -0
- package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/mutate.d.mts +11 -0
- package/node_modules/typebox/build/value/mutate/mutate.mjs +41 -0
- package/node_modules/typebox/build/value/parse/index.d.mts +1 -0
- package/node_modules/typebox/build/value/parse/index.mjs +1 -0
- package/node_modules/typebox/build/value/parse/parse.d.mts +11 -0
- package/node_modules/typebox/build/value/parse/parse.mjs +47 -0
- package/node_modules/typebox/build/value/pipeline/index.d.mts +1 -0
- package/node_modules/typebox/build/value/pipeline/index.mjs +1 -0
- package/node_modules/typebox/build/value/pipeline/pipeline.d.mts +10 -0
- package/node_modules/typebox/build/value/pipeline/pipeline.mjs +15 -0
- package/node_modules/typebox/build/value/pointer/index.d.mts +1 -0
- package/node_modules/typebox/build/value/pointer/index.mjs +1 -0
- package/node_modules/typebox/build/value/repair/error.d.mts +7 -0
- package/node_modules/typebox/build/value/repair/error.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from_array.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_array.mjs +39 -0
- package/node_modules/typebox/build/value/repair/from_base.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_base.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from_enum.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_enum.mjs +7 -0
- package/node_modules/typebox/build/value/repair/from_intersect.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_intersect.mjs +8 -0
- package/node_modules/typebox/build/value/repair/from_object.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_object.mjs +33 -0
- package/node_modules/typebox/build/value/repair/from_record.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_record.mjs +33 -0
- package/node_modules/typebox/build/value/repair/from_ref.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_ref.mjs +9 -0
- package/node_modules/typebox/build/value/repair/from_template_literal.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_template_literal.mjs +7 -0
- package/node_modules/typebox/build/value/repair/from_tuple.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_tuple.mjs +12 -0
- package/node_modules/typebox/build/value/repair/from_type.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_type.mjs +86 -0
- package/node_modules/typebox/build/value/repair/from_union.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_union.mjs +24 -0
- package/node_modules/typebox/build/value/repair/from_unknown.d.mts +2 -0
- package/node_modules/typebox/build/value/repair/from_unknown.mjs +12 -0
- package/node_modules/typebox/build/value/repair/index.d.mts +1 -0
- package/node_modules/typebox/build/value/repair/index.mjs +1 -0
- package/node_modules/typebox/build/value/repair/repair.d.mts +17 -0
- package/node_modules/typebox/build/value/repair/repair.mjs +20 -0
- package/node_modules/typebox/build/value/shared/index.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/index.mjs +4 -0
- package/node_modules/typebox/build/value/shared/optional_undefined.d.mts +2 -0
- package/node_modules/typebox/build/value/shared/optional_undefined.mjs +15 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +36 -0
- package/node_modules/typebox/build/value/shared/union_score_select.d.mts +3 -0
- package/node_modules/typebox/build/value/shared/union_score_select.mjs +51 -0
- package/node_modules/typebox/build/value/value.d.mts +16 -0
- package/node_modules/typebox/build/value/value.mjs +16 -0
- package/node_modules/typebox/license +23 -0
- package/node_modules/typebox/package.json +87 -0
- package/node_modules/typebox/readme.md +356 -0
- package/node_modules/uc.micro/LICENSE.txt +20 -0
- package/node_modules/uc.micro/README.md +14 -0
- package/node_modules/uc.micro/build/index.cjs.js +20 -0
- package/node_modules/uc.micro/categories/Cc/regex.mjs +1 -0
- package/node_modules/uc.micro/categories/Cf/regex.mjs +1 -0
- package/node_modules/uc.micro/categories/P/regex.mjs +1 -0
- package/node_modules/uc.micro/categories/S/regex.mjs +1 -0
- package/node_modules/uc.micro/categories/Z/regex.mjs +1 -0
- package/node_modules/uc.micro/index.mjs +8 -0
- package/node_modules/uc.micro/package.json +37 -0
- package/node_modules/uc.micro/properties/Any/regex.mjs +1 -0
- package/node_modules/uint8array-extras/index.d.ts +331 -0
- package/node_modules/uint8array-extras/index.js +318 -0
- package/node_modules/uint8array-extras/license +9 -0
- package/node_modules/uint8array-extras/package.json +54 -0
- package/node_modules/uint8array-extras/readme.md +318 -0
- package/node_modules/unhomoglyph/CHANGELOG.md +45 -0
- package/node_modules/unhomoglyph/LICENSE +22 -0
- package/node_modules/unhomoglyph/README.md +54 -0
- package/node_modules/unhomoglyph/data.json +6313 -0
- package/node_modules/unhomoglyph/index.d.ts +4 -0
- package/node_modules/unhomoglyph/index.js +20 -0
- package/node_modules/unhomoglyph/package.json +25 -0
- package/node_modules/win-guid/LICENSE.txt +9 -0
- package/node_modules/win-guid/README.md +113 -0
- package/node_modules/win-guid/lib/guid.d.ts +20 -0
- package/node_modules/win-guid/lib/guid.js +107 -0
- package/node_modules/win-guid/package.json +55 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +191 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +153 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/node_modules/zod/src/v4/core/util.ts +983 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/node_modules/zod/v4/core/api.cjs +1227 -0
- package/node_modules/zod/v4/core/api.d.cts +325 -0
- package/node_modules/zod/v4/core/api.d.ts +325 -0
- package/node_modules/zod/v4/core/api.js +1087 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +85 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +78 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +216 -0
- package/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/node_modules/zod/v4/core/errors.js +185 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/node_modules/zod/v4/core/regexes.js +139 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/node_modules/zod/v4/core/schemas.js +2239 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/node_modules/zod/v4/core/util.cjs +734 -0
- package/node_modules/zod/v4/core/util.d.cts +200 -0
- package/node_modules/zod/v4/core/util.d.ts +200 -0
- package/node_modules/zod/v4/core/util.js +674 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +140 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +113 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +125 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +111 -0
- package/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/node_modules/zod/v4/locales/index.js +52 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +110 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/node_modules/zod/v4/mini/schemas.js +961 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/npm-shrinkwrap.json +532 -0
- package/package.json +16 -9
|
@@ -0,0 +1,3695 @@
|
|
|
1
|
+
import { ZodError, ZodIssueCode, } from "./ZodError.js";
|
|
2
|
+
import { defaultErrorMap, getErrorMap } from "./errors.js";
|
|
3
|
+
import { errorUtil } from "./helpers/errorUtil.js";
|
|
4
|
+
import { DIRTY, INVALID, OK, ParseStatus, addIssueToContext, isAborted, isAsync, isDirty, isValid, makeIssue, } from "./helpers/parseUtil.js";
|
|
5
|
+
import { util, ZodParsedType, getParsedType } from "./helpers/util.js";
|
|
6
|
+
class ParseInputLazyPath {
|
|
7
|
+
constructor(parent, value, path, key) {
|
|
8
|
+
this._cachedPath = [];
|
|
9
|
+
this.parent = parent;
|
|
10
|
+
this.data = value;
|
|
11
|
+
this._path = path;
|
|
12
|
+
this._key = key;
|
|
13
|
+
}
|
|
14
|
+
get path() {
|
|
15
|
+
if (!this._cachedPath.length) {
|
|
16
|
+
if (Array.isArray(this._key)) {
|
|
17
|
+
this._cachedPath.push(...this._path, ...this._key);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
this._cachedPath.push(...this._path, this._key);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return this._cachedPath;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const handleResult = (ctx, result) => {
|
|
27
|
+
if (isValid(result)) {
|
|
28
|
+
return { success: true, data: result.value };
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
if (!ctx.common.issues.length) {
|
|
32
|
+
throw new Error("Validation failed but no issues detected.");
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
success: false,
|
|
36
|
+
get error() {
|
|
37
|
+
if (this._error)
|
|
38
|
+
return this._error;
|
|
39
|
+
const error = new ZodError(ctx.common.issues);
|
|
40
|
+
this._error = error;
|
|
41
|
+
return this._error;
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function processCreateParams(params) {
|
|
47
|
+
if (!params)
|
|
48
|
+
return {};
|
|
49
|
+
const { errorMap, invalid_type_error, required_error, description } = params;
|
|
50
|
+
if (errorMap && (invalid_type_error || required_error)) {
|
|
51
|
+
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
52
|
+
}
|
|
53
|
+
if (errorMap)
|
|
54
|
+
return { errorMap: errorMap, description };
|
|
55
|
+
const customMap = (iss, ctx) => {
|
|
56
|
+
const { message } = params;
|
|
57
|
+
if (iss.code === "invalid_enum_value") {
|
|
58
|
+
return { message: message ?? ctx.defaultError };
|
|
59
|
+
}
|
|
60
|
+
if (typeof ctx.data === "undefined") {
|
|
61
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
62
|
+
}
|
|
63
|
+
if (iss.code !== "invalid_type")
|
|
64
|
+
return { message: ctx.defaultError };
|
|
65
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
66
|
+
};
|
|
67
|
+
return { errorMap: customMap, description };
|
|
68
|
+
}
|
|
69
|
+
export class ZodType {
|
|
70
|
+
get description() {
|
|
71
|
+
return this._def.description;
|
|
72
|
+
}
|
|
73
|
+
_getType(input) {
|
|
74
|
+
return getParsedType(input.data);
|
|
75
|
+
}
|
|
76
|
+
_getOrReturnCtx(input, ctx) {
|
|
77
|
+
return (ctx || {
|
|
78
|
+
common: input.parent.common,
|
|
79
|
+
data: input.data,
|
|
80
|
+
parsedType: getParsedType(input.data),
|
|
81
|
+
schemaErrorMap: this._def.errorMap,
|
|
82
|
+
path: input.path,
|
|
83
|
+
parent: input.parent,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
_processInputParams(input) {
|
|
87
|
+
return {
|
|
88
|
+
status: new ParseStatus(),
|
|
89
|
+
ctx: {
|
|
90
|
+
common: input.parent.common,
|
|
91
|
+
data: input.data,
|
|
92
|
+
parsedType: getParsedType(input.data),
|
|
93
|
+
schemaErrorMap: this._def.errorMap,
|
|
94
|
+
path: input.path,
|
|
95
|
+
parent: input.parent,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
_parseSync(input) {
|
|
100
|
+
const result = this._parse(input);
|
|
101
|
+
if (isAsync(result)) {
|
|
102
|
+
throw new Error("Synchronous parse encountered promise.");
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
_parseAsync(input) {
|
|
107
|
+
const result = this._parse(input);
|
|
108
|
+
return Promise.resolve(result);
|
|
109
|
+
}
|
|
110
|
+
parse(data, params) {
|
|
111
|
+
const result = this.safeParse(data, params);
|
|
112
|
+
if (result.success)
|
|
113
|
+
return result.data;
|
|
114
|
+
throw result.error;
|
|
115
|
+
}
|
|
116
|
+
safeParse(data, params) {
|
|
117
|
+
const ctx = {
|
|
118
|
+
common: {
|
|
119
|
+
issues: [],
|
|
120
|
+
async: params?.async ?? false,
|
|
121
|
+
contextualErrorMap: params?.errorMap,
|
|
122
|
+
},
|
|
123
|
+
path: params?.path || [],
|
|
124
|
+
schemaErrorMap: this._def.errorMap,
|
|
125
|
+
parent: null,
|
|
126
|
+
data,
|
|
127
|
+
parsedType: getParsedType(data),
|
|
128
|
+
};
|
|
129
|
+
const result = this._parseSync({ data, path: ctx.path, parent: ctx });
|
|
130
|
+
return handleResult(ctx, result);
|
|
131
|
+
}
|
|
132
|
+
"~validate"(data) {
|
|
133
|
+
const ctx = {
|
|
134
|
+
common: {
|
|
135
|
+
issues: [],
|
|
136
|
+
async: !!this["~standard"].async,
|
|
137
|
+
},
|
|
138
|
+
path: [],
|
|
139
|
+
schemaErrorMap: this._def.errorMap,
|
|
140
|
+
parent: null,
|
|
141
|
+
data,
|
|
142
|
+
parsedType: getParsedType(data),
|
|
143
|
+
};
|
|
144
|
+
if (!this["~standard"].async) {
|
|
145
|
+
try {
|
|
146
|
+
const result = this._parseSync({ data, path: [], parent: ctx });
|
|
147
|
+
return isValid(result)
|
|
148
|
+
? {
|
|
149
|
+
value: result.value,
|
|
150
|
+
}
|
|
151
|
+
: {
|
|
152
|
+
issues: ctx.common.issues,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
catch (err) {
|
|
156
|
+
if (err?.message?.toLowerCase()?.includes("encountered")) {
|
|
157
|
+
this["~standard"].async = true;
|
|
158
|
+
}
|
|
159
|
+
ctx.common = {
|
|
160
|
+
issues: [],
|
|
161
|
+
async: true,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result)
|
|
166
|
+
? {
|
|
167
|
+
value: result.value,
|
|
168
|
+
}
|
|
169
|
+
: {
|
|
170
|
+
issues: ctx.common.issues,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
async parseAsync(data, params) {
|
|
174
|
+
const result = await this.safeParseAsync(data, params);
|
|
175
|
+
if (result.success)
|
|
176
|
+
return result.data;
|
|
177
|
+
throw result.error;
|
|
178
|
+
}
|
|
179
|
+
async safeParseAsync(data, params) {
|
|
180
|
+
const ctx = {
|
|
181
|
+
common: {
|
|
182
|
+
issues: [],
|
|
183
|
+
contextualErrorMap: params?.errorMap,
|
|
184
|
+
async: true,
|
|
185
|
+
},
|
|
186
|
+
path: params?.path || [],
|
|
187
|
+
schemaErrorMap: this._def.errorMap,
|
|
188
|
+
parent: null,
|
|
189
|
+
data,
|
|
190
|
+
parsedType: getParsedType(data),
|
|
191
|
+
};
|
|
192
|
+
const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
|
|
193
|
+
const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
|
|
194
|
+
return handleResult(ctx, result);
|
|
195
|
+
}
|
|
196
|
+
refine(check, message) {
|
|
197
|
+
const getIssueProperties = (val) => {
|
|
198
|
+
if (typeof message === "string" || typeof message === "undefined") {
|
|
199
|
+
return { message };
|
|
200
|
+
}
|
|
201
|
+
else if (typeof message === "function") {
|
|
202
|
+
return message(val);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
return message;
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
return this._refinement((val, ctx) => {
|
|
209
|
+
const result = check(val);
|
|
210
|
+
const setError = () => ctx.addIssue({
|
|
211
|
+
code: ZodIssueCode.custom,
|
|
212
|
+
...getIssueProperties(val),
|
|
213
|
+
});
|
|
214
|
+
if (typeof Promise !== "undefined" && result instanceof Promise) {
|
|
215
|
+
return result.then((data) => {
|
|
216
|
+
if (!data) {
|
|
217
|
+
setError();
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
return true;
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
if (!result) {
|
|
226
|
+
setError();
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
return true;
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
refinement(check, refinementData) {
|
|
235
|
+
return this._refinement((val, ctx) => {
|
|
236
|
+
if (!check(val)) {
|
|
237
|
+
ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
return true;
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
_refinement(refinement) {
|
|
246
|
+
return new ZodEffects({
|
|
247
|
+
schema: this,
|
|
248
|
+
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
249
|
+
effect: { type: "refinement", refinement },
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
superRefine(refinement) {
|
|
253
|
+
return this._refinement(refinement);
|
|
254
|
+
}
|
|
255
|
+
constructor(def) {
|
|
256
|
+
/** Alias of safeParseAsync */
|
|
257
|
+
this.spa = this.safeParseAsync;
|
|
258
|
+
this._def = def;
|
|
259
|
+
this.parse = this.parse.bind(this);
|
|
260
|
+
this.safeParse = this.safeParse.bind(this);
|
|
261
|
+
this.parseAsync = this.parseAsync.bind(this);
|
|
262
|
+
this.safeParseAsync = this.safeParseAsync.bind(this);
|
|
263
|
+
this.spa = this.spa.bind(this);
|
|
264
|
+
this.refine = this.refine.bind(this);
|
|
265
|
+
this.refinement = this.refinement.bind(this);
|
|
266
|
+
this.superRefine = this.superRefine.bind(this);
|
|
267
|
+
this.optional = this.optional.bind(this);
|
|
268
|
+
this.nullable = this.nullable.bind(this);
|
|
269
|
+
this.nullish = this.nullish.bind(this);
|
|
270
|
+
this.array = this.array.bind(this);
|
|
271
|
+
this.promise = this.promise.bind(this);
|
|
272
|
+
this.or = this.or.bind(this);
|
|
273
|
+
this.and = this.and.bind(this);
|
|
274
|
+
this.transform = this.transform.bind(this);
|
|
275
|
+
this.brand = this.brand.bind(this);
|
|
276
|
+
this.default = this.default.bind(this);
|
|
277
|
+
this.catch = this.catch.bind(this);
|
|
278
|
+
this.describe = this.describe.bind(this);
|
|
279
|
+
this.pipe = this.pipe.bind(this);
|
|
280
|
+
this.readonly = this.readonly.bind(this);
|
|
281
|
+
this.isNullable = this.isNullable.bind(this);
|
|
282
|
+
this.isOptional = this.isOptional.bind(this);
|
|
283
|
+
this["~standard"] = {
|
|
284
|
+
version: 1,
|
|
285
|
+
vendor: "zod",
|
|
286
|
+
validate: (data) => this["~validate"](data),
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
optional() {
|
|
290
|
+
return ZodOptional.create(this, this._def);
|
|
291
|
+
}
|
|
292
|
+
nullable() {
|
|
293
|
+
return ZodNullable.create(this, this._def);
|
|
294
|
+
}
|
|
295
|
+
nullish() {
|
|
296
|
+
return this.nullable().optional();
|
|
297
|
+
}
|
|
298
|
+
array() {
|
|
299
|
+
return ZodArray.create(this);
|
|
300
|
+
}
|
|
301
|
+
promise() {
|
|
302
|
+
return ZodPromise.create(this, this._def);
|
|
303
|
+
}
|
|
304
|
+
or(option) {
|
|
305
|
+
return ZodUnion.create([this, option], this._def);
|
|
306
|
+
}
|
|
307
|
+
and(incoming) {
|
|
308
|
+
return ZodIntersection.create(this, incoming, this._def);
|
|
309
|
+
}
|
|
310
|
+
transform(transform) {
|
|
311
|
+
return new ZodEffects({
|
|
312
|
+
...processCreateParams(this._def),
|
|
313
|
+
schema: this,
|
|
314
|
+
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
315
|
+
effect: { type: "transform", transform },
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
default(def) {
|
|
319
|
+
const defaultValueFunc = typeof def === "function" ? def : () => def;
|
|
320
|
+
return new ZodDefault({
|
|
321
|
+
...processCreateParams(this._def),
|
|
322
|
+
innerType: this,
|
|
323
|
+
defaultValue: defaultValueFunc,
|
|
324
|
+
typeName: ZodFirstPartyTypeKind.ZodDefault,
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
brand() {
|
|
328
|
+
return new ZodBranded({
|
|
329
|
+
typeName: ZodFirstPartyTypeKind.ZodBranded,
|
|
330
|
+
type: this,
|
|
331
|
+
...processCreateParams(this._def),
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
catch(def) {
|
|
335
|
+
const catchValueFunc = typeof def === "function" ? def : () => def;
|
|
336
|
+
return new ZodCatch({
|
|
337
|
+
...processCreateParams(this._def),
|
|
338
|
+
innerType: this,
|
|
339
|
+
catchValue: catchValueFunc,
|
|
340
|
+
typeName: ZodFirstPartyTypeKind.ZodCatch,
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
describe(description) {
|
|
344
|
+
const This = this.constructor;
|
|
345
|
+
return new This({
|
|
346
|
+
...this._def,
|
|
347
|
+
description,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
pipe(target) {
|
|
351
|
+
return ZodPipeline.create(this, target);
|
|
352
|
+
}
|
|
353
|
+
readonly() {
|
|
354
|
+
return ZodReadonly.create(this);
|
|
355
|
+
}
|
|
356
|
+
isOptional() {
|
|
357
|
+
return this.safeParse(undefined).success;
|
|
358
|
+
}
|
|
359
|
+
isNullable() {
|
|
360
|
+
return this.safeParse(null).success;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
const cuidRegex = /^c[^\s-]{8,}$/i;
|
|
364
|
+
const cuid2Regex = /^[0-9a-z]+$/;
|
|
365
|
+
const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
366
|
+
// const uuidRegex =
|
|
367
|
+
// /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
368
|
+
const uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
|
|
369
|
+
const nanoidRegex = /^[a-z0-9_-]{21}$/i;
|
|
370
|
+
const jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
|
|
371
|
+
const durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
372
|
+
// from https://stackoverflow.com/a/46181/1550155
|
|
373
|
+
// old version: too slow, didn't support unicode
|
|
374
|
+
// const emailRegex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;
|
|
375
|
+
//old email regex
|
|
376
|
+
// const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
|
|
377
|
+
// eslint-disable-next-line
|
|
378
|
+
// const emailRegex =
|
|
379
|
+
// /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/;
|
|
380
|
+
// const emailRegex =
|
|
381
|
+
// /^[a-zA-Z0-9\.\!\#\$\%\&\'\*\+\/\=\?\^\_\`\{\|\}\~\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
|
382
|
+
// const emailRegex =
|
|
383
|
+
// /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
|
384
|
+
const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
|
|
385
|
+
// const emailRegex =
|
|
386
|
+
// /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9\-]+)*$/i;
|
|
387
|
+
// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
|
|
388
|
+
const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
389
|
+
let emojiRegex;
|
|
390
|
+
// faster, simpler, safer
|
|
391
|
+
const ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
392
|
+
const ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
|
|
393
|
+
// const ipv6Regex =
|
|
394
|
+
// /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
|
|
395
|
+
const ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
|
|
396
|
+
const ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
397
|
+
// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
|
|
398
|
+
const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
|
|
399
|
+
// https://base64.guru/standards/base64url
|
|
400
|
+
const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
|
|
401
|
+
// simple
|
|
402
|
+
// const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
|
|
403
|
+
// no leap year validation
|
|
404
|
+
// const dateRegexSource = `\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\d|2\\d))`;
|
|
405
|
+
// with leap year validation
|
|
406
|
+
const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
|
|
407
|
+
const dateRegex = new RegExp(`^${dateRegexSource}$`);
|
|
408
|
+
function timeRegexSource(args) {
|
|
409
|
+
let secondsRegexSource = `[0-5]\\d`;
|
|
410
|
+
if (args.precision) {
|
|
411
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
|
412
|
+
}
|
|
413
|
+
else if (args.precision == null) {
|
|
414
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
|
415
|
+
}
|
|
416
|
+
const secondsQuantifier = args.precision ? "+" : "?"; // require seconds if precision is nonzero
|
|
417
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
418
|
+
}
|
|
419
|
+
function timeRegex(args) {
|
|
420
|
+
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
421
|
+
}
|
|
422
|
+
// Adapted from https://stackoverflow.com/a/3143231
|
|
423
|
+
export function datetimeRegex(args) {
|
|
424
|
+
let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
|
|
425
|
+
const opts = [];
|
|
426
|
+
opts.push(args.local ? `Z?` : `Z`);
|
|
427
|
+
if (args.offset)
|
|
428
|
+
opts.push(`([+-]\\d{2}:?\\d{2})`);
|
|
429
|
+
regex = `${regex}(${opts.join("|")})`;
|
|
430
|
+
return new RegExp(`^${regex}$`);
|
|
431
|
+
}
|
|
432
|
+
function isValidIP(ip, version) {
|
|
433
|
+
if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
|
|
434
|
+
return true;
|
|
435
|
+
}
|
|
436
|
+
if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
|
|
437
|
+
return true;
|
|
438
|
+
}
|
|
439
|
+
return false;
|
|
440
|
+
}
|
|
441
|
+
function isValidJWT(jwt, alg) {
|
|
442
|
+
if (!jwtRegex.test(jwt))
|
|
443
|
+
return false;
|
|
444
|
+
try {
|
|
445
|
+
const [header] = jwt.split(".");
|
|
446
|
+
if (!header)
|
|
447
|
+
return false;
|
|
448
|
+
// Convert base64url to base64
|
|
449
|
+
const base64 = header
|
|
450
|
+
.replace(/-/g, "+")
|
|
451
|
+
.replace(/_/g, "/")
|
|
452
|
+
.padEnd(header.length + ((4 - (header.length % 4)) % 4), "=");
|
|
453
|
+
// @ts-ignore
|
|
454
|
+
const decoded = JSON.parse(atob(base64));
|
|
455
|
+
if (typeof decoded !== "object" || decoded === null)
|
|
456
|
+
return false;
|
|
457
|
+
if ("typ" in decoded && decoded?.typ !== "JWT")
|
|
458
|
+
return false;
|
|
459
|
+
if (!decoded.alg)
|
|
460
|
+
return false;
|
|
461
|
+
if (alg && decoded.alg !== alg)
|
|
462
|
+
return false;
|
|
463
|
+
return true;
|
|
464
|
+
}
|
|
465
|
+
catch {
|
|
466
|
+
return false;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
function isValidCidr(ip, version) {
|
|
470
|
+
if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
|
|
471
|
+
return true;
|
|
472
|
+
}
|
|
473
|
+
if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
|
|
474
|
+
return true;
|
|
475
|
+
}
|
|
476
|
+
return false;
|
|
477
|
+
}
|
|
478
|
+
export class ZodString extends ZodType {
|
|
479
|
+
_parse(input) {
|
|
480
|
+
if (this._def.coerce) {
|
|
481
|
+
input.data = String(input.data);
|
|
482
|
+
}
|
|
483
|
+
const parsedType = this._getType(input);
|
|
484
|
+
if (parsedType !== ZodParsedType.string) {
|
|
485
|
+
const ctx = this._getOrReturnCtx(input);
|
|
486
|
+
addIssueToContext(ctx, {
|
|
487
|
+
code: ZodIssueCode.invalid_type,
|
|
488
|
+
expected: ZodParsedType.string,
|
|
489
|
+
received: ctx.parsedType,
|
|
490
|
+
});
|
|
491
|
+
return INVALID;
|
|
492
|
+
}
|
|
493
|
+
const status = new ParseStatus();
|
|
494
|
+
let ctx = undefined;
|
|
495
|
+
for (const check of this._def.checks) {
|
|
496
|
+
if (check.kind === "min") {
|
|
497
|
+
if (input.data.length < check.value) {
|
|
498
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
499
|
+
addIssueToContext(ctx, {
|
|
500
|
+
code: ZodIssueCode.too_small,
|
|
501
|
+
minimum: check.value,
|
|
502
|
+
type: "string",
|
|
503
|
+
inclusive: true,
|
|
504
|
+
exact: false,
|
|
505
|
+
message: check.message,
|
|
506
|
+
});
|
|
507
|
+
status.dirty();
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
else if (check.kind === "max") {
|
|
511
|
+
if (input.data.length > check.value) {
|
|
512
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
513
|
+
addIssueToContext(ctx, {
|
|
514
|
+
code: ZodIssueCode.too_big,
|
|
515
|
+
maximum: check.value,
|
|
516
|
+
type: "string",
|
|
517
|
+
inclusive: true,
|
|
518
|
+
exact: false,
|
|
519
|
+
message: check.message,
|
|
520
|
+
});
|
|
521
|
+
status.dirty();
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
else if (check.kind === "length") {
|
|
525
|
+
const tooBig = input.data.length > check.value;
|
|
526
|
+
const tooSmall = input.data.length < check.value;
|
|
527
|
+
if (tooBig || tooSmall) {
|
|
528
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
529
|
+
if (tooBig) {
|
|
530
|
+
addIssueToContext(ctx, {
|
|
531
|
+
code: ZodIssueCode.too_big,
|
|
532
|
+
maximum: check.value,
|
|
533
|
+
type: "string",
|
|
534
|
+
inclusive: true,
|
|
535
|
+
exact: true,
|
|
536
|
+
message: check.message,
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
else if (tooSmall) {
|
|
540
|
+
addIssueToContext(ctx, {
|
|
541
|
+
code: ZodIssueCode.too_small,
|
|
542
|
+
minimum: check.value,
|
|
543
|
+
type: "string",
|
|
544
|
+
inclusive: true,
|
|
545
|
+
exact: true,
|
|
546
|
+
message: check.message,
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
status.dirty();
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
else if (check.kind === "email") {
|
|
553
|
+
if (!emailRegex.test(input.data)) {
|
|
554
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
555
|
+
addIssueToContext(ctx, {
|
|
556
|
+
validation: "email",
|
|
557
|
+
code: ZodIssueCode.invalid_string,
|
|
558
|
+
message: check.message,
|
|
559
|
+
});
|
|
560
|
+
status.dirty();
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
else if (check.kind === "emoji") {
|
|
564
|
+
if (!emojiRegex) {
|
|
565
|
+
emojiRegex = new RegExp(_emojiRegex, "u");
|
|
566
|
+
}
|
|
567
|
+
if (!emojiRegex.test(input.data)) {
|
|
568
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
569
|
+
addIssueToContext(ctx, {
|
|
570
|
+
validation: "emoji",
|
|
571
|
+
code: ZodIssueCode.invalid_string,
|
|
572
|
+
message: check.message,
|
|
573
|
+
});
|
|
574
|
+
status.dirty();
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
else if (check.kind === "uuid") {
|
|
578
|
+
if (!uuidRegex.test(input.data)) {
|
|
579
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
580
|
+
addIssueToContext(ctx, {
|
|
581
|
+
validation: "uuid",
|
|
582
|
+
code: ZodIssueCode.invalid_string,
|
|
583
|
+
message: check.message,
|
|
584
|
+
});
|
|
585
|
+
status.dirty();
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
else if (check.kind === "nanoid") {
|
|
589
|
+
if (!nanoidRegex.test(input.data)) {
|
|
590
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
591
|
+
addIssueToContext(ctx, {
|
|
592
|
+
validation: "nanoid",
|
|
593
|
+
code: ZodIssueCode.invalid_string,
|
|
594
|
+
message: check.message,
|
|
595
|
+
});
|
|
596
|
+
status.dirty();
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
else if (check.kind === "cuid") {
|
|
600
|
+
if (!cuidRegex.test(input.data)) {
|
|
601
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
602
|
+
addIssueToContext(ctx, {
|
|
603
|
+
validation: "cuid",
|
|
604
|
+
code: ZodIssueCode.invalid_string,
|
|
605
|
+
message: check.message,
|
|
606
|
+
});
|
|
607
|
+
status.dirty();
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
else if (check.kind === "cuid2") {
|
|
611
|
+
if (!cuid2Regex.test(input.data)) {
|
|
612
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
613
|
+
addIssueToContext(ctx, {
|
|
614
|
+
validation: "cuid2",
|
|
615
|
+
code: ZodIssueCode.invalid_string,
|
|
616
|
+
message: check.message,
|
|
617
|
+
});
|
|
618
|
+
status.dirty();
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
else if (check.kind === "ulid") {
|
|
622
|
+
if (!ulidRegex.test(input.data)) {
|
|
623
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
624
|
+
addIssueToContext(ctx, {
|
|
625
|
+
validation: "ulid",
|
|
626
|
+
code: ZodIssueCode.invalid_string,
|
|
627
|
+
message: check.message,
|
|
628
|
+
});
|
|
629
|
+
status.dirty();
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
else if (check.kind === "url") {
|
|
633
|
+
try {
|
|
634
|
+
// @ts-ignore
|
|
635
|
+
new URL(input.data);
|
|
636
|
+
}
|
|
637
|
+
catch {
|
|
638
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
639
|
+
addIssueToContext(ctx, {
|
|
640
|
+
validation: "url",
|
|
641
|
+
code: ZodIssueCode.invalid_string,
|
|
642
|
+
message: check.message,
|
|
643
|
+
});
|
|
644
|
+
status.dirty();
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
else if (check.kind === "regex") {
|
|
648
|
+
check.regex.lastIndex = 0;
|
|
649
|
+
const testResult = check.regex.test(input.data);
|
|
650
|
+
if (!testResult) {
|
|
651
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
652
|
+
addIssueToContext(ctx, {
|
|
653
|
+
validation: "regex",
|
|
654
|
+
code: ZodIssueCode.invalid_string,
|
|
655
|
+
message: check.message,
|
|
656
|
+
});
|
|
657
|
+
status.dirty();
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
else if (check.kind === "trim") {
|
|
661
|
+
input.data = input.data.trim();
|
|
662
|
+
}
|
|
663
|
+
else if (check.kind === "includes") {
|
|
664
|
+
if (!input.data.includes(check.value, check.position)) {
|
|
665
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
666
|
+
addIssueToContext(ctx, {
|
|
667
|
+
code: ZodIssueCode.invalid_string,
|
|
668
|
+
validation: { includes: check.value, position: check.position },
|
|
669
|
+
message: check.message,
|
|
670
|
+
});
|
|
671
|
+
status.dirty();
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
else if (check.kind === "toLowerCase") {
|
|
675
|
+
input.data = input.data.toLowerCase();
|
|
676
|
+
}
|
|
677
|
+
else if (check.kind === "toUpperCase") {
|
|
678
|
+
input.data = input.data.toUpperCase();
|
|
679
|
+
}
|
|
680
|
+
else if (check.kind === "startsWith") {
|
|
681
|
+
if (!input.data.startsWith(check.value)) {
|
|
682
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
683
|
+
addIssueToContext(ctx, {
|
|
684
|
+
code: ZodIssueCode.invalid_string,
|
|
685
|
+
validation: { startsWith: check.value },
|
|
686
|
+
message: check.message,
|
|
687
|
+
});
|
|
688
|
+
status.dirty();
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
else if (check.kind === "endsWith") {
|
|
692
|
+
if (!input.data.endsWith(check.value)) {
|
|
693
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
694
|
+
addIssueToContext(ctx, {
|
|
695
|
+
code: ZodIssueCode.invalid_string,
|
|
696
|
+
validation: { endsWith: check.value },
|
|
697
|
+
message: check.message,
|
|
698
|
+
});
|
|
699
|
+
status.dirty();
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
else if (check.kind === "datetime") {
|
|
703
|
+
const regex = datetimeRegex(check);
|
|
704
|
+
if (!regex.test(input.data)) {
|
|
705
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
706
|
+
addIssueToContext(ctx, {
|
|
707
|
+
code: ZodIssueCode.invalid_string,
|
|
708
|
+
validation: "datetime",
|
|
709
|
+
message: check.message,
|
|
710
|
+
});
|
|
711
|
+
status.dirty();
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
else if (check.kind === "date") {
|
|
715
|
+
const regex = dateRegex;
|
|
716
|
+
if (!regex.test(input.data)) {
|
|
717
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
718
|
+
addIssueToContext(ctx, {
|
|
719
|
+
code: ZodIssueCode.invalid_string,
|
|
720
|
+
validation: "date",
|
|
721
|
+
message: check.message,
|
|
722
|
+
});
|
|
723
|
+
status.dirty();
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
else if (check.kind === "time") {
|
|
727
|
+
const regex = timeRegex(check);
|
|
728
|
+
if (!regex.test(input.data)) {
|
|
729
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
730
|
+
addIssueToContext(ctx, {
|
|
731
|
+
code: ZodIssueCode.invalid_string,
|
|
732
|
+
validation: "time",
|
|
733
|
+
message: check.message,
|
|
734
|
+
});
|
|
735
|
+
status.dirty();
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
else if (check.kind === "duration") {
|
|
739
|
+
if (!durationRegex.test(input.data)) {
|
|
740
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
741
|
+
addIssueToContext(ctx, {
|
|
742
|
+
validation: "duration",
|
|
743
|
+
code: ZodIssueCode.invalid_string,
|
|
744
|
+
message: check.message,
|
|
745
|
+
});
|
|
746
|
+
status.dirty();
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
else if (check.kind === "ip") {
|
|
750
|
+
if (!isValidIP(input.data, check.version)) {
|
|
751
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
752
|
+
addIssueToContext(ctx, {
|
|
753
|
+
validation: "ip",
|
|
754
|
+
code: ZodIssueCode.invalid_string,
|
|
755
|
+
message: check.message,
|
|
756
|
+
});
|
|
757
|
+
status.dirty();
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
else if (check.kind === "jwt") {
|
|
761
|
+
if (!isValidJWT(input.data, check.alg)) {
|
|
762
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
763
|
+
addIssueToContext(ctx, {
|
|
764
|
+
validation: "jwt",
|
|
765
|
+
code: ZodIssueCode.invalid_string,
|
|
766
|
+
message: check.message,
|
|
767
|
+
});
|
|
768
|
+
status.dirty();
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
else if (check.kind === "cidr") {
|
|
772
|
+
if (!isValidCidr(input.data, check.version)) {
|
|
773
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
774
|
+
addIssueToContext(ctx, {
|
|
775
|
+
validation: "cidr",
|
|
776
|
+
code: ZodIssueCode.invalid_string,
|
|
777
|
+
message: check.message,
|
|
778
|
+
});
|
|
779
|
+
status.dirty();
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
else if (check.kind === "base64") {
|
|
783
|
+
if (!base64Regex.test(input.data)) {
|
|
784
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
785
|
+
addIssueToContext(ctx, {
|
|
786
|
+
validation: "base64",
|
|
787
|
+
code: ZodIssueCode.invalid_string,
|
|
788
|
+
message: check.message,
|
|
789
|
+
});
|
|
790
|
+
status.dirty();
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
else if (check.kind === "base64url") {
|
|
794
|
+
if (!base64urlRegex.test(input.data)) {
|
|
795
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
796
|
+
addIssueToContext(ctx, {
|
|
797
|
+
validation: "base64url",
|
|
798
|
+
code: ZodIssueCode.invalid_string,
|
|
799
|
+
message: check.message,
|
|
800
|
+
});
|
|
801
|
+
status.dirty();
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
util.assertNever(check);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
return { status: status.value, value: input.data };
|
|
809
|
+
}
|
|
810
|
+
_regex(regex, validation, message) {
|
|
811
|
+
return this.refinement((data) => regex.test(data), {
|
|
812
|
+
validation,
|
|
813
|
+
code: ZodIssueCode.invalid_string,
|
|
814
|
+
...errorUtil.errToObj(message),
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
_addCheck(check) {
|
|
818
|
+
return new ZodString({
|
|
819
|
+
...this._def,
|
|
820
|
+
checks: [...this._def.checks, check],
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
email(message) {
|
|
824
|
+
return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) });
|
|
825
|
+
}
|
|
826
|
+
url(message) {
|
|
827
|
+
return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) });
|
|
828
|
+
}
|
|
829
|
+
emoji(message) {
|
|
830
|
+
return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) });
|
|
831
|
+
}
|
|
832
|
+
uuid(message) {
|
|
833
|
+
return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });
|
|
834
|
+
}
|
|
835
|
+
nanoid(message) {
|
|
836
|
+
return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });
|
|
837
|
+
}
|
|
838
|
+
cuid(message) {
|
|
839
|
+
return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });
|
|
840
|
+
}
|
|
841
|
+
cuid2(message) {
|
|
842
|
+
return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) });
|
|
843
|
+
}
|
|
844
|
+
ulid(message) {
|
|
845
|
+
return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });
|
|
846
|
+
}
|
|
847
|
+
base64(message) {
|
|
848
|
+
return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
|
|
849
|
+
}
|
|
850
|
+
base64url(message) {
|
|
851
|
+
// base64url encoding is a modification of base64 that can safely be used in URLs and filenames
|
|
852
|
+
return this._addCheck({
|
|
853
|
+
kind: "base64url",
|
|
854
|
+
...errorUtil.errToObj(message),
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
jwt(options) {
|
|
858
|
+
return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });
|
|
859
|
+
}
|
|
860
|
+
ip(options) {
|
|
861
|
+
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
|
862
|
+
}
|
|
863
|
+
cidr(options) {
|
|
864
|
+
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
865
|
+
}
|
|
866
|
+
datetime(options) {
|
|
867
|
+
if (typeof options === "string") {
|
|
868
|
+
return this._addCheck({
|
|
869
|
+
kind: "datetime",
|
|
870
|
+
precision: null,
|
|
871
|
+
offset: false,
|
|
872
|
+
local: false,
|
|
873
|
+
message: options,
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
return this._addCheck({
|
|
877
|
+
kind: "datetime",
|
|
878
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
879
|
+
offset: options?.offset ?? false,
|
|
880
|
+
local: options?.local ?? false,
|
|
881
|
+
...errorUtil.errToObj(options?.message),
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
date(message) {
|
|
885
|
+
return this._addCheck({ kind: "date", message });
|
|
886
|
+
}
|
|
887
|
+
time(options) {
|
|
888
|
+
if (typeof options === "string") {
|
|
889
|
+
return this._addCheck({
|
|
890
|
+
kind: "time",
|
|
891
|
+
precision: null,
|
|
892
|
+
message: options,
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
return this._addCheck({
|
|
896
|
+
kind: "time",
|
|
897
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
898
|
+
...errorUtil.errToObj(options?.message),
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
duration(message) {
|
|
902
|
+
return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });
|
|
903
|
+
}
|
|
904
|
+
regex(regex, message) {
|
|
905
|
+
return this._addCheck({
|
|
906
|
+
kind: "regex",
|
|
907
|
+
regex: regex,
|
|
908
|
+
...errorUtil.errToObj(message),
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
includes(value, options) {
|
|
912
|
+
return this._addCheck({
|
|
913
|
+
kind: "includes",
|
|
914
|
+
value: value,
|
|
915
|
+
position: options?.position,
|
|
916
|
+
...errorUtil.errToObj(options?.message),
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
startsWith(value, message) {
|
|
920
|
+
return this._addCheck({
|
|
921
|
+
kind: "startsWith",
|
|
922
|
+
value: value,
|
|
923
|
+
...errorUtil.errToObj(message),
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
endsWith(value, message) {
|
|
927
|
+
return this._addCheck({
|
|
928
|
+
kind: "endsWith",
|
|
929
|
+
value: value,
|
|
930
|
+
...errorUtil.errToObj(message),
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
min(minLength, message) {
|
|
934
|
+
return this._addCheck({
|
|
935
|
+
kind: "min",
|
|
936
|
+
value: minLength,
|
|
937
|
+
...errorUtil.errToObj(message),
|
|
938
|
+
});
|
|
939
|
+
}
|
|
940
|
+
max(maxLength, message) {
|
|
941
|
+
return this._addCheck({
|
|
942
|
+
kind: "max",
|
|
943
|
+
value: maxLength,
|
|
944
|
+
...errorUtil.errToObj(message),
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
length(len, message) {
|
|
948
|
+
return this._addCheck({
|
|
949
|
+
kind: "length",
|
|
950
|
+
value: len,
|
|
951
|
+
...errorUtil.errToObj(message),
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* Equivalent to `.min(1)`
|
|
956
|
+
*/
|
|
957
|
+
nonempty(message) {
|
|
958
|
+
return this.min(1, errorUtil.errToObj(message));
|
|
959
|
+
}
|
|
960
|
+
trim() {
|
|
961
|
+
return new ZodString({
|
|
962
|
+
...this._def,
|
|
963
|
+
checks: [...this._def.checks, { kind: "trim" }],
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
toLowerCase() {
|
|
967
|
+
return new ZodString({
|
|
968
|
+
...this._def,
|
|
969
|
+
checks: [...this._def.checks, { kind: "toLowerCase" }],
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
toUpperCase() {
|
|
973
|
+
return new ZodString({
|
|
974
|
+
...this._def,
|
|
975
|
+
checks: [...this._def.checks, { kind: "toUpperCase" }],
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
get isDatetime() {
|
|
979
|
+
return !!this._def.checks.find((ch) => ch.kind === "datetime");
|
|
980
|
+
}
|
|
981
|
+
get isDate() {
|
|
982
|
+
return !!this._def.checks.find((ch) => ch.kind === "date");
|
|
983
|
+
}
|
|
984
|
+
get isTime() {
|
|
985
|
+
return !!this._def.checks.find((ch) => ch.kind === "time");
|
|
986
|
+
}
|
|
987
|
+
get isDuration() {
|
|
988
|
+
return !!this._def.checks.find((ch) => ch.kind === "duration");
|
|
989
|
+
}
|
|
990
|
+
get isEmail() {
|
|
991
|
+
return !!this._def.checks.find((ch) => ch.kind === "email");
|
|
992
|
+
}
|
|
993
|
+
get isURL() {
|
|
994
|
+
return !!this._def.checks.find((ch) => ch.kind === "url");
|
|
995
|
+
}
|
|
996
|
+
get isEmoji() {
|
|
997
|
+
return !!this._def.checks.find((ch) => ch.kind === "emoji");
|
|
998
|
+
}
|
|
999
|
+
get isUUID() {
|
|
1000
|
+
return !!this._def.checks.find((ch) => ch.kind === "uuid");
|
|
1001
|
+
}
|
|
1002
|
+
get isNANOID() {
|
|
1003
|
+
return !!this._def.checks.find((ch) => ch.kind === "nanoid");
|
|
1004
|
+
}
|
|
1005
|
+
get isCUID() {
|
|
1006
|
+
return !!this._def.checks.find((ch) => ch.kind === "cuid");
|
|
1007
|
+
}
|
|
1008
|
+
get isCUID2() {
|
|
1009
|
+
return !!this._def.checks.find((ch) => ch.kind === "cuid2");
|
|
1010
|
+
}
|
|
1011
|
+
get isULID() {
|
|
1012
|
+
return !!this._def.checks.find((ch) => ch.kind === "ulid");
|
|
1013
|
+
}
|
|
1014
|
+
get isIP() {
|
|
1015
|
+
return !!this._def.checks.find((ch) => ch.kind === "ip");
|
|
1016
|
+
}
|
|
1017
|
+
get isCIDR() {
|
|
1018
|
+
return !!this._def.checks.find((ch) => ch.kind === "cidr");
|
|
1019
|
+
}
|
|
1020
|
+
get isBase64() {
|
|
1021
|
+
return !!this._def.checks.find((ch) => ch.kind === "base64");
|
|
1022
|
+
}
|
|
1023
|
+
get isBase64url() {
|
|
1024
|
+
// base64url encoding is a modification of base64 that can safely be used in URLs and filenames
|
|
1025
|
+
return !!this._def.checks.find((ch) => ch.kind === "base64url");
|
|
1026
|
+
}
|
|
1027
|
+
get minLength() {
|
|
1028
|
+
let min = null;
|
|
1029
|
+
for (const ch of this._def.checks) {
|
|
1030
|
+
if (ch.kind === "min") {
|
|
1031
|
+
if (min === null || ch.value > min)
|
|
1032
|
+
min = ch.value;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
return min;
|
|
1036
|
+
}
|
|
1037
|
+
get maxLength() {
|
|
1038
|
+
let max = null;
|
|
1039
|
+
for (const ch of this._def.checks) {
|
|
1040
|
+
if (ch.kind === "max") {
|
|
1041
|
+
if (max === null || ch.value < max)
|
|
1042
|
+
max = ch.value;
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
return max;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
ZodString.create = (params) => {
|
|
1049
|
+
return new ZodString({
|
|
1050
|
+
checks: [],
|
|
1051
|
+
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
1052
|
+
coerce: params?.coerce ?? false,
|
|
1053
|
+
...processCreateParams(params),
|
|
1054
|
+
});
|
|
1055
|
+
};
|
|
1056
|
+
// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
|
|
1057
|
+
function floatSafeRemainder(val, step) {
|
|
1058
|
+
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
1059
|
+
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
1060
|
+
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
1061
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
1062
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
1063
|
+
return (valInt % stepInt) / 10 ** decCount;
|
|
1064
|
+
}
|
|
1065
|
+
export class ZodNumber extends ZodType {
|
|
1066
|
+
constructor() {
|
|
1067
|
+
super(...arguments);
|
|
1068
|
+
this.min = this.gte;
|
|
1069
|
+
this.max = this.lte;
|
|
1070
|
+
this.step = this.multipleOf;
|
|
1071
|
+
}
|
|
1072
|
+
_parse(input) {
|
|
1073
|
+
if (this._def.coerce) {
|
|
1074
|
+
input.data = Number(input.data);
|
|
1075
|
+
}
|
|
1076
|
+
const parsedType = this._getType(input);
|
|
1077
|
+
if (parsedType !== ZodParsedType.number) {
|
|
1078
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1079
|
+
addIssueToContext(ctx, {
|
|
1080
|
+
code: ZodIssueCode.invalid_type,
|
|
1081
|
+
expected: ZodParsedType.number,
|
|
1082
|
+
received: ctx.parsedType,
|
|
1083
|
+
});
|
|
1084
|
+
return INVALID;
|
|
1085
|
+
}
|
|
1086
|
+
let ctx = undefined;
|
|
1087
|
+
const status = new ParseStatus();
|
|
1088
|
+
for (const check of this._def.checks) {
|
|
1089
|
+
if (check.kind === "int") {
|
|
1090
|
+
if (!util.isInteger(input.data)) {
|
|
1091
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1092
|
+
addIssueToContext(ctx, {
|
|
1093
|
+
code: ZodIssueCode.invalid_type,
|
|
1094
|
+
expected: "integer",
|
|
1095
|
+
received: "float",
|
|
1096
|
+
message: check.message,
|
|
1097
|
+
});
|
|
1098
|
+
status.dirty();
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
else if (check.kind === "min") {
|
|
1102
|
+
const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1103
|
+
if (tooSmall) {
|
|
1104
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1105
|
+
addIssueToContext(ctx, {
|
|
1106
|
+
code: ZodIssueCode.too_small,
|
|
1107
|
+
minimum: check.value,
|
|
1108
|
+
type: "number",
|
|
1109
|
+
inclusive: check.inclusive,
|
|
1110
|
+
exact: false,
|
|
1111
|
+
message: check.message,
|
|
1112
|
+
});
|
|
1113
|
+
status.dirty();
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
else if (check.kind === "max") {
|
|
1117
|
+
const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1118
|
+
if (tooBig) {
|
|
1119
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1120
|
+
addIssueToContext(ctx, {
|
|
1121
|
+
code: ZodIssueCode.too_big,
|
|
1122
|
+
maximum: check.value,
|
|
1123
|
+
type: "number",
|
|
1124
|
+
inclusive: check.inclusive,
|
|
1125
|
+
exact: false,
|
|
1126
|
+
message: check.message,
|
|
1127
|
+
});
|
|
1128
|
+
status.dirty();
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
else if (check.kind === "multipleOf") {
|
|
1132
|
+
if (floatSafeRemainder(input.data, check.value) !== 0) {
|
|
1133
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1134
|
+
addIssueToContext(ctx, {
|
|
1135
|
+
code: ZodIssueCode.not_multiple_of,
|
|
1136
|
+
multipleOf: check.value,
|
|
1137
|
+
message: check.message,
|
|
1138
|
+
});
|
|
1139
|
+
status.dirty();
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
else if (check.kind === "finite") {
|
|
1143
|
+
if (!Number.isFinite(input.data)) {
|
|
1144
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1145
|
+
addIssueToContext(ctx, {
|
|
1146
|
+
code: ZodIssueCode.not_finite,
|
|
1147
|
+
message: check.message,
|
|
1148
|
+
});
|
|
1149
|
+
status.dirty();
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
else {
|
|
1153
|
+
util.assertNever(check);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
return { status: status.value, value: input.data };
|
|
1157
|
+
}
|
|
1158
|
+
gte(value, message) {
|
|
1159
|
+
return this.setLimit("min", value, true, errorUtil.toString(message));
|
|
1160
|
+
}
|
|
1161
|
+
gt(value, message) {
|
|
1162
|
+
return this.setLimit("min", value, false, errorUtil.toString(message));
|
|
1163
|
+
}
|
|
1164
|
+
lte(value, message) {
|
|
1165
|
+
return this.setLimit("max", value, true, errorUtil.toString(message));
|
|
1166
|
+
}
|
|
1167
|
+
lt(value, message) {
|
|
1168
|
+
return this.setLimit("max", value, false, errorUtil.toString(message));
|
|
1169
|
+
}
|
|
1170
|
+
setLimit(kind, value, inclusive, message) {
|
|
1171
|
+
return new ZodNumber({
|
|
1172
|
+
...this._def,
|
|
1173
|
+
checks: [
|
|
1174
|
+
...this._def.checks,
|
|
1175
|
+
{
|
|
1176
|
+
kind,
|
|
1177
|
+
value,
|
|
1178
|
+
inclusive,
|
|
1179
|
+
message: errorUtil.toString(message),
|
|
1180
|
+
},
|
|
1181
|
+
],
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
_addCheck(check) {
|
|
1185
|
+
return new ZodNumber({
|
|
1186
|
+
...this._def,
|
|
1187
|
+
checks: [...this._def.checks, check],
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
int(message) {
|
|
1191
|
+
return this._addCheck({
|
|
1192
|
+
kind: "int",
|
|
1193
|
+
message: errorUtil.toString(message),
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
positive(message) {
|
|
1197
|
+
return this._addCheck({
|
|
1198
|
+
kind: "min",
|
|
1199
|
+
value: 0,
|
|
1200
|
+
inclusive: false,
|
|
1201
|
+
message: errorUtil.toString(message),
|
|
1202
|
+
});
|
|
1203
|
+
}
|
|
1204
|
+
negative(message) {
|
|
1205
|
+
return this._addCheck({
|
|
1206
|
+
kind: "max",
|
|
1207
|
+
value: 0,
|
|
1208
|
+
inclusive: false,
|
|
1209
|
+
message: errorUtil.toString(message),
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
nonpositive(message) {
|
|
1213
|
+
return this._addCheck({
|
|
1214
|
+
kind: "max",
|
|
1215
|
+
value: 0,
|
|
1216
|
+
inclusive: true,
|
|
1217
|
+
message: errorUtil.toString(message),
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
nonnegative(message) {
|
|
1221
|
+
return this._addCheck({
|
|
1222
|
+
kind: "min",
|
|
1223
|
+
value: 0,
|
|
1224
|
+
inclusive: true,
|
|
1225
|
+
message: errorUtil.toString(message),
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
multipleOf(value, message) {
|
|
1229
|
+
return this._addCheck({
|
|
1230
|
+
kind: "multipleOf",
|
|
1231
|
+
value: value,
|
|
1232
|
+
message: errorUtil.toString(message),
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
finite(message) {
|
|
1236
|
+
return this._addCheck({
|
|
1237
|
+
kind: "finite",
|
|
1238
|
+
message: errorUtil.toString(message),
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
safe(message) {
|
|
1242
|
+
return this._addCheck({
|
|
1243
|
+
kind: "min",
|
|
1244
|
+
inclusive: true,
|
|
1245
|
+
value: Number.MIN_SAFE_INTEGER,
|
|
1246
|
+
message: errorUtil.toString(message),
|
|
1247
|
+
})._addCheck({
|
|
1248
|
+
kind: "max",
|
|
1249
|
+
inclusive: true,
|
|
1250
|
+
value: Number.MAX_SAFE_INTEGER,
|
|
1251
|
+
message: errorUtil.toString(message),
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
get minValue() {
|
|
1255
|
+
let min = null;
|
|
1256
|
+
for (const ch of this._def.checks) {
|
|
1257
|
+
if (ch.kind === "min") {
|
|
1258
|
+
if (min === null || ch.value > min)
|
|
1259
|
+
min = ch.value;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
return min;
|
|
1263
|
+
}
|
|
1264
|
+
get maxValue() {
|
|
1265
|
+
let max = null;
|
|
1266
|
+
for (const ch of this._def.checks) {
|
|
1267
|
+
if (ch.kind === "max") {
|
|
1268
|
+
if (max === null || ch.value < max)
|
|
1269
|
+
max = ch.value;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
return max;
|
|
1273
|
+
}
|
|
1274
|
+
get isInt() {
|
|
1275
|
+
return !!this._def.checks.find((ch) => ch.kind === "int" || (ch.kind === "multipleOf" && util.isInteger(ch.value)));
|
|
1276
|
+
}
|
|
1277
|
+
get isFinite() {
|
|
1278
|
+
let max = null;
|
|
1279
|
+
let min = null;
|
|
1280
|
+
for (const ch of this._def.checks) {
|
|
1281
|
+
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
1282
|
+
return true;
|
|
1283
|
+
}
|
|
1284
|
+
else if (ch.kind === "min") {
|
|
1285
|
+
if (min === null || ch.value > min)
|
|
1286
|
+
min = ch.value;
|
|
1287
|
+
}
|
|
1288
|
+
else if (ch.kind === "max") {
|
|
1289
|
+
if (max === null || ch.value < max)
|
|
1290
|
+
max = ch.value;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
return Number.isFinite(min) && Number.isFinite(max);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
ZodNumber.create = (params) => {
|
|
1297
|
+
return new ZodNumber({
|
|
1298
|
+
checks: [],
|
|
1299
|
+
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
1300
|
+
coerce: params?.coerce || false,
|
|
1301
|
+
...processCreateParams(params),
|
|
1302
|
+
});
|
|
1303
|
+
};
|
|
1304
|
+
export class ZodBigInt extends ZodType {
|
|
1305
|
+
constructor() {
|
|
1306
|
+
super(...arguments);
|
|
1307
|
+
this.min = this.gte;
|
|
1308
|
+
this.max = this.lte;
|
|
1309
|
+
}
|
|
1310
|
+
_parse(input) {
|
|
1311
|
+
if (this._def.coerce) {
|
|
1312
|
+
try {
|
|
1313
|
+
input.data = BigInt(input.data);
|
|
1314
|
+
}
|
|
1315
|
+
catch {
|
|
1316
|
+
return this._getInvalidInput(input);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
const parsedType = this._getType(input);
|
|
1320
|
+
if (parsedType !== ZodParsedType.bigint) {
|
|
1321
|
+
return this._getInvalidInput(input);
|
|
1322
|
+
}
|
|
1323
|
+
let ctx = undefined;
|
|
1324
|
+
const status = new ParseStatus();
|
|
1325
|
+
for (const check of this._def.checks) {
|
|
1326
|
+
if (check.kind === "min") {
|
|
1327
|
+
const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1328
|
+
if (tooSmall) {
|
|
1329
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1330
|
+
addIssueToContext(ctx, {
|
|
1331
|
+
code: ZodIssueCode.too_small,
|
|
1332
|
+
type: "bigint",
|
|
1333
|
+
minimum: check.value,
|
|
1334
|
+
inclusive: check.inclusive,
|
|
1335
|
+
message: check.message,
|
|
1336
|
+
});
|
|
1337
|
+
status.dirty();
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
else if (check.kind === "max") {
|
|
1341
|
+
const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1342
|
+
if (tooBig) {
|
|
1343
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1344
|
+
addIssueToContext(ctx, {
|
|
1345
|
+
code: ZodIssueCode.too_big,
|
|
1346
|
+
type: "bigint",
|
|
1347
|
+
maximum: check.value,
|
|
1348
|
+
inclusive: check.inclusive,
|
|
1349
|
+
message: check.message,
|
|
1350
|
+
});
|
|
1351
|
+
status.dirty();
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
else if (check.kind === "multipleOf") {
|
|
1355
|
+
if (input.data % check.value !== BigInt(0)) {
|
|
1356
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1357
|
+
addIssueToContext(ctx, {
|
|
1358
|
+
code: ZodIssueCode.not_multiple_of,
|
|
1359
|
+
multipleOf: check.value,
|
|
1360
|
+
message: check.message,
|
|
1361
|
+
});
|
|
1362
|
+
status.dirty();
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
else {
|
|
1366
|
+
util.assertNever(check);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
return { status: status.value, value: input.data };
|
|
1370
|
+
}
|
|
1371
|
+
_getInvalidInput(input) {
|
|
1372
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1373
|
+
addIssueToContext(ctx, {
|
|
1374
|
+
code: ZodIssueCode.invalid_type,
|
|
1375
|
+
expected: ZodParsedType.bigint,
|
|
1376
|
+
received: ctx.parsedType,
|
|
1377
|
+
});
|
|
1378
|
+
return INVALID;
|
|
1379
|
+
}
|
|
1380
|
+
gte(value, message) {
|
|
1381
|
+
return this.setLimit("min", value, true, errorUtil.toString(message));
|
|
1382
|
+
}
|
|
1383
|
+
gt(value, message) {
|
|
1384
|
+
return this.setLimit("min", value, false, errorUtil.toString(message));
|
|
1385
|
+
}
|
|
1386
|
+
lte(value, message) {
|
|
1387
|
+
return this.setLimit("max", value, true, errorUtil.toString(message));
|
|
1388
|
+
}
|
|
1389
|
+
lt(value, message) {
|
|
1390
|
+
return this.setLimit("max", value, false, errorUtil.toString(message));
|
|
1391
|
+
}
|
|
1392
|
+
setLimit(kind, value, inclusive, message) {
|
|
1393
|
+
return new ZodBigInt({
|
|
1394
|
+
...this._def,
|
|
1395
|
+
checks: [
|
|
1396
|
+
...this._def.checks,
|
|
1397
|
+
{
|
|
1398
|
+
kind,
|
|
1399
|
+
value,
|
|
1400
|
+
inclusive,
|
|
1401
|
+
message: errorUtil.toString(message),
|
|
1402
|
+
},
|
|
1403
|
+
],
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
_addCheck(check) {
|
|
1407
|
+
return new ZodBigInt({
|
|
1408
|
+
...this._def,
|
|
1409
|
+
checks: [...this._def.checks, check],
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
positive(message) {
|
|
1413
|
+
return this._addCheck({
|
|
1414
|
+
kind: "min",
|
|
1415
|
+
value: BigInt(0),
|
|
1416
|
+
inclusive: false,
|
|
1417
|
+
message: errorUtil.toString(message),
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
negative(message) {
|
|
1421
|
+
return this._addCheck({
|
|
1422
|
+
kind: "max",
|
|
1423
|
+
value: BigInt(0),
|
|
1424
|
+
inclusive: false,
|
|
1425
|
+
message: errorUtil.toString(message),
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
nonpositive(message) {
|
|
1429
|
+
return this._addCheck({
|
|
1430
|
+
kind: "max",
|
|
1431
|
+
value: BigInt(0),
|
|
1432
|
+
inclusive: true,
|
|
1433
|
+
message: errorUtil.toString(message),
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1436
|
+
nonnegative(message) {
|
|
1437
|
+
return this._addCheck({
|
|
1438
|
+
kind: "min",
|
|
1439
|
+
value: BigInt(0),
|
|
1440
|
+
inclusive: true,
|
|
1441
|
+
message: errorUtil.toString(message),
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
multipleOf(value, message) {
|
|
1445
|
+
return this._addCheck({
|
|
1446
|
+
kind: "multipleOf",
|
|
1447
|
+
value,
|
|
1448
|
+
message: errorUtil.toString(message),
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
get minValue() {
|
|
1452
|
+
let min = null;
|
|
1453
|
+
for (const ch of this._def.checks) {
|
|
1454
|
+
if (ch.kind === "min") {
|
|
1455
|
+
if (min === null || ch.value > min)
|
|
1456
|
+
min = ch.value;
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
return min;
|
|
1460
|
+
}
|
|
1461
|
+
get maxValue() {
|
|
1462
|
+
let max = null;
|
|
1463
|
+
for (const ch of this._def.checks) {
|
|
1464
|
+
if (ch.kind === "max") {
|
|
1465
|
+
if (max === null || ch.value < max)
|
|
1466
|
+
max = ch.value;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
return max;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
ZodBigInt.create = (params) => {
|
|
1473
|
+
return new ZodBigInt({
|
|
1474
|
+
checks: [],
|
|
1475
|
+
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
1476
|
+
coerce: params?.coerce ?? false,
|
|
1477
|
+
...processCreateParams(params),
|
|
1478
|
+
});
|
|
1479
|
+
};
|
|
1480
|
+
export class ZodBoolean extends ZodType {
|
|
1481
|
+
_parse(input) {
|
|
1482
|
+
if (this._def.coerce) {
|
|
1483
|
+
input.data = Boolean(input.data);
|
|
1484
|
+
}
|
|
1485
|
+
const parsedType = this._getType(input);
|
|
1486
|
+
if (parsedType !== ZodParsedType.boolean) {
|
|
1487
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1488
|
+
addIssueToContext(ctx, {
|
|
1489
|
+
code: ZodIssueCode.invalid_type,
|
|
1490
|
+
expected: ZodParsedType.boolean,
|
|
1491
|
+
received: ctx.parsedType,
|
|
1492
|
+
});
|
|
1493
|
+
return INVALID;
|
|
1494
|
+
}
|
|
1495
|
+
return OK(input.data);
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
ZodBoolean.create = (params) => {
|
|
1499
|
+
return new ZodBoolean({
|
|
1500
|
+
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
1501
|
+
coerce: params?.coerce || false,
|
|
1502
|
+
...processCreateParams(params),
|
|
1503
|
+
});
|
|
1504
|
+
};
|
|
1505
|
+
export class ZodDate extends ZodType {
|
|
1506
|
+
_parse(input) {
|
|
1507
|
+
if (this._def.coerce) {
|
|
1508
|
+
input.data = new Date(input.data);
|
|
1509
|
+
}
|
|
1510
|
+
const parsedType = this._getType(input);
|
|
1511
|
+
if (parsedType !== ZodParsedType.date) {
|
|
1512
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1513
|
+
addIssueToContext(ctx, {
|
|
1514
|
+
code: ZodIssueCode.invalid_type,
|
|
1515
|
+
expected: ZodParsedType.date,
|
|
1516
|
+
received: ctx.parsedType,
|
|
1517
|
+
});
|
|
1518
|
+
return INVALID;
|
|
1519
|
+
}
|
|
1520
|
+
if (Number.isNaN(input.data.getTime())) {
|
|
1521
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1522
|
+
addIssueToContext(ctx, {
|
|
1523
|
+
code: ZodIssueCode.invalid_date,
|
|
1524
|
+
});
|
|
1525
|
+
return INVALID;
|
|
1526
|
+
}
|
|
1527
|
+
const status = new ParseStatus();
|
|
1528
|
+
let ctx = undefined;
|
|
1529
|
+
for (const check of this._def.checks) {
|
|
1530
|
+
if (check.kind === "min") {
|
|
1531
|
+
if (input.data.getTime() < check.value) {
|
|
1532
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1533
|
+
addIssueToContext(ctx, {
|
|
1534
|
+
code: ZodIssueCode.too_small,
|
|
1535
|
+
message: check.message,
|
|
1536
|
+
inclusive: true,
|
|
1537
|
+
exact: false,
|
|
1538
|
+
minimum: check.value,
|
|
1539
|
+
type: "date",
|
|
1540
|
+
});
|
|
1541
|
+
status.dirty();
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
else if (check.kind === "max") {
|
|
1545
|
+
if (input.data.getTime() > check.value) {
|
|
1546
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1547
|
+
addIssueToContext(ctx, {
|
|
1548
|
+
code: ZodIssueCode.too_big,
|
|
1549
|
+
message: check.message,
|
|
1550
|
+
inclusive: true,
|
|
1551
|
+
exact: false,
|
|
1552
|
+
maximum: check.value,
|
|
1553
|
+
type: "date",
|
|
1554
|
+
});
|
|
1555
|
+
status.dirty();
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
else {
|
|
1559
|
+
util.assertNever(check);
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
return {
|
|
1563
|
+
status: status.value,
|
|
1564
|
+
value: new Date(input.data.getTime()),
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
_addCheck(check) {
|
|
1568
|
+
return new ZodDate({
|
|
1569
|
+
...this._def,
|
|
1570
|
+
checks: [...this._def.checks, check],
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
min(minDate, message) {
|
|
1574
|
+
return this._addCheck({
|
|
1575
|
+
kind: "min",
|
|
1576
|
+
value: minDate.getTime(),
|
|
1577
|
+
message: errorUtil.toString(message),
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
max(maxDate, message) {
|
|
1581
|
+
return this._addCheck({
|
|
1582
|
+
kind: "max",
|
|
1583
|
+
value: maxDate.getTime(),
|
|
1584
|
+
message: errorUtil.toString(message),
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
get minDate() {
|
|
1588
|
+
let min = null;
|
|
1589
|
+
for (const ch of this._def.checks) {
|
|
1590
|
+
if (ch.kind === "min") {
|
|
1591
|
+
if (min === null || ch.value > min)
|
|
1592
|
+
min = ch.value;
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
return min != null ? new Date(min) : null;
|
|
1596
|
+
}
|
|
1597
|
+
get maxDate() {
|
|
1598
|
+
let max = null;
|
|
1599
|
+
for (const ch of this._def.checks) {
|
|
1600
|
+
if (ch.kind === "max") {
|
|
1601
|
+
if (max === null || ch.value < max)
|
|
1602
|
+
max = ch.value;
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
return max != null ? new Date(max) : null;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
ZodDate.create = (params) => {
|
|
1609
|
+
return new ZodDate({
|
|
1610
|
+
checks: [],
|
|
1611
|
+
coerce: params?.coerce || false,
|
|
1612
|
+
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
1613
|
+
...processCreateParams(params),
|
|
1614
|
+
});
|
|
1615
|
+
};
|
|
1616
|
+
export class ZodSymbol extends ZodType {
|
|
1617
|
+
_parse(input) {
|
|
1618
|
+
const parsedType = this._getType(input);
|
|
1619
|
+
if (parsedType !== ZodParsedType.symbol) {
|
|
1620
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1621
|
+
addIssueToContext(ctx, {
|
|
1622
|
+
code: ZodIssueCode.invalid_type,
|
|
1623
|
+
expected: ZodParsedType.symbol,
|
|
1624
|
+
received: ctx.parsedType,
|
|
1625
|
+
});
|
|
1626
|
+
return INVALID;
|
|
1627
|
+
}
|
|
1628
|
+
return OK(input.data);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
ZodSymbol.create = (params) => {
|
|
1632
|
+
return new ZodSymbol({
|
|
1633
|
+
typeName: ZodFirstPartyTypeKind.ZodSymbol,
|
|
1634
|
+
...processCreateParams(params),
|
|
1635
|
+
});
|
|
1636
|
+
};
|
|
1637
|
+
export class ZodUndefined extends ZodType {
|
|
1638
|
+
_parse(input) {
|
|
1639
|
+
const parsedType = this._getType(input);
|
|
1640
|
+
if (parsedType !== ZodParsedType.undefined) {
|
|
1641
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1642
|
+
addIssueToContext(ctx, {
|
|
1643
|
+
code: ZodIssueCode.invalid_type,
|
|
1644
|
+
expected: ZodParsedType.undefined,
|
|
1645
|
+
received: ctx.parsedType,
|
|
1646
|
+
});
|
|
1647
|
+
return INVALID;
|
|
1648
|
+
}
|
|
1649
|
+
return OK(input.data);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
ZodUndefined.create = (params) => {
|
|
1653
|
+
return new ZodUndefined({
|
|
1654
|
+
typeName: ZodFirstPartyTypeKind.ZodUndefined,
|
|
1655
|
+
...processCreateParams(params),
|
|
1656
|
+
});
|
|
1657
|
+
};
|
|
1658
|
+
export class ZodNull extends ZodType {
|
|
1659
|
+
_parse(input) {
|
|
1660
|
+
const parsedType = this._getType(input);
|
|
1661
|
+
if (parsedType !== ZodParsedType.null) {
|
|
1662
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1663
|
+
addIssueToContext(ctx, {
|
|
1664
|
+
code: ZodIssueCode.invalid_type,
|
|
1665
|
+
expected: ZodParsedType.null,
|
|
1666
|
+
received: ctx.parsedType,
|
|
1667
|
+
});
|
|
1668
|
+
return INVALID;
|
|
1669
|
+
}
|
|
1670
|
+
return OK(input.data);
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
ZodNull.create = (params) => {
|
|
1674
|
+
return new ZodNull({
|
|
1675
|
+
typeName: ZodFirstPartyTypeKind.ZodNull,
|
|
1676
|
+
...processCreateParams(params),
|
|
1677
|
+
});
|
|
1678
|
+
};
|
|
1679
|
+
export class ZodAny extends ZodType {
|
|
1680
|
+
constructor() {
|
|
1681
|
+
super(...arguments);
|
|
1682
|
+
// to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
|
|
1683
|
+
this._any = true;
|
|
1684
|
+
}
|
|
1685
|
+
_parse(input) {
|
|
1686
|
+
return OK(input.data);
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
ZodAny.create = (params) => {
|
|
1690
|
+
return new ZodAny({
|
|
1691
|
+
typeName: ZodFirstPartyTypeKind.ZodAny,
|
|
1692
|
+
...processCreateParams(params),
|
|
1693
|
+
});
|
|
1694
|
+
};
|
|
1695
|
+
export class ZodUnknown extends ZodType {
|
|
1696
|
+
constructor() {
|
|
1697
|
+
super(...arguments);
|
|
1698
|
+
// required
|
|
1699
|
+
this._unknown = true;
|
|
1700
|
+
}
|
|
1701
|
+
_parse(input) {
|
|
1702
|
+
return OK(input.data);
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
ZodUnknown.create = (params) => {
|
|
1706
|
+
return new ZodUnknown({
|
|
1707
|
+
typeName: ZodFirstPartyTypeKind.ZodUnknown,
|
|
1708
|
+
...processCreateParams(params),
|
|
1709
|
+
});
|
|
1710
|
+
};
|
|
1711
|
+
export class ZodNever extends ZodType {
|
|
1712
|
+
_parse(input) {
|
|
1713
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1714
|
+
addIssueToContext(ctx, {
|
|
1715
|
+
code: ZodIssueCode.invalid_type,
|
|
1716
|
+
expected: ZodParsedType.never,
|
|
1717
|
+
received: ctx.parsedType,
|
|
1718
|
+
});
|
|
1719
|
+
return INVALID;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
ZodNever.create = (params) => {
|
|
1723
|
+
return new ZodNever({
|
|
1724
|
+
typeName: ZodFirstPartyTypeKind.ZodNever,
|
|
1725
|
+
...processCreateParams(params),
|
|
1726
|
+
});
|
|
1727
|
+
};
|
|
1728
|
+
export class ZodVoid extends ZodType {
|
|
1729
|
+
_parse(input) {
|
|
1730
|
+
const parsedType = this._getType(input);
|
|
1731
|
+
if (parsedType !== ZodParsedType.undefined) {
|
|
1732
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1733
|
+
addIssueToContext(ctx, {
|
|
1734
|
+
code: ZodIssueCode.invalid_type,
|
|
1735
|
+
expected: ZodParsedType.void,
|
|
1736
|
+
received: ctx.parsedType,
|
|
1737
|
+
});
|
|
1738
|
+
return INVALID;
|
|
1739
|
+
}
|
|
1740
|
+
return OK(input.data);
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
ZodVoid.create = (params) => {
|
|
1744
|
+
return new ZodVoid({
|
|
1745
|
+
typeName: ZodFirstPartyTypeKind.ZodVoid,
|
|
1746
|
+
...processCreateParams(params),
|
|
1747
|
+
});
|
|
1748
|
+
};
|
|
1749
|
+
export class ZodArray extends ZodType {
|
|
1750
|
+
_parse(input) {
|
|
1751
|
+
const { ctx, status } = this._processInputParams(input);
|
|
1752
|
+
const def = this._def;
|
|
1753
|
+
if (ctx.parsedType !== ZodParsedType.array) {
|
|
1754
|
+
addIssueToContext(ctx, {
|
|
1755
|
+
code: ZodIssueCode.invalid_type,
|
|
1756
|
+
expected: ZodParsedType.array,
|
|
1757
|
+
received: ctx.parsedType,
|
|
1758
|
+
});
|
|
1759
|
+
return INVALID;
|
|
1760
|
+
}
|
|
1761
|
+
if (def.exactLength !== null) {
|
|
1762
|
+
const tooBig = ctx.data.length > def.exactLength.value;
|
|
1763
|
+
const tooSmall = ctx.data.length < def.exactLength.value;
|
|
1764
|
+
if (tooBig || tooSmall) {
|
|
1765
|
+
addIssueToContext(ctx, {
|
|
1766
|
+
code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,
|
|
1767
|
+
minimum: (tooSmall ? def.exactLength.value : undefined),
|
|
1768
|
+
maximum: (tooBig ? def.exactLength.value : undefined),
|
|
1769
|
+
type: "array",
|
|
1770
|
+
inclusive: true,
|
|
1771
|
+
exact: true,
|
|
1772
|
+
message: def.exactLength.message,
|
|
1773
|
+
});
|
|
1774
|
+
status.dirty();
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
if (def.minLength !== null) {
|
|
1778
|
+
if (ctx.data.length < def.minLength.value) {
|
|
1779
|
+
addIssueToContext(ctx, {
|
|
1780
|
+
code: ZodIssueCode.too_small,
|
|
1781
|
+
minimum: def.minLength.value,
|
|
1782
|
+
type: "array",
|
|
1783
|
+
inclusive: true,
|
|
1784
|
+
exact: false,
|
|
1785
|
+
message: def.minLength.message,
|
|
1786
|
+
});
|
|
1787
|
+
status.dirty();
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
if (def.maxLength !== null) {
|
|
1791
|
+
if (ctx.data.length > def.maxLength.value) {
|
|
1792
|
+
addIssueToContext(ctx, {
|
|
1793
|
+
code: ZodIssueCode.too_big,
|
|
1794
|
+
maximum: def.maxLength.value,
|
|
1795
|
+
type: "array",
|
|
1796
|
+
inclusive: true,
|
|
1797
|
+
exact: false,
|
|
1798
|
+
message: def.maxLength.message,
|
|
1799
|
+
});
|
|
1800
|
+
status.dirty();
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
if (ctx.common.async) {
|
|
1804
|
+
return Promise.all([...ctx.data].map((item, i) => {
|
|
1805
|
+
return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
|
|
1806
|
+
})).then((result) => {
|
|
1807
|
+
return ParseStatus.mergeArray(status, result);
|
|
1808
|
+
});
|
|
1809
|
+
}
|
|
1810
|
+
const result = [...ctx.data].map((item, i) => {
|
|
1811
|
+
return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
|
|
1812
|
+
});
|
|
1813
|
+
return ParseStatus.mergeArray(status, result);
|
|
1814
|
+
}
|
|
1815
|
+
get element() {
|
|
1816
|
+
return this._def.type;
|
|
1817
|
+
}
|
|
1818
|
+
min(minLength, message) {
|
|
1819
|
+
return new ZodArray({
|
|
1820
|
+
...this._def,
|
|
1821
|
+
minLength: { value: minLength, message: errorUtil.toString(message) },
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
max(maxLength, message) {
|
|
1825
|
+
return new ZodArray({
|
|
1826
|
+
...this._def,
|
|
1827
|
+
maxLength: { value: maxLength, message: errorUtil.toString(message) },
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1830
|
+
length(len, message) {
|
|
1831
|
+
return new ZodArray({
|
|
1832
|
+
...this._def,
|
|
1833
|
+
exactLength: { value: len, message: errorUtil.toString(message) },
|
|
1834
|
+
});
|
|
1835
|
+
}
|
|
1836
|
+
nonempty(message) {
|
|
1837
|
+
return this.min(1, message);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
ZodArray.create = (schema, params) => {
|
|
1841
|
+
return new ZodArray({
|
|
1842
|
+
type: schema,
|
|
1843
|
+
minLength: null,
|
|
1844
|
+
maxLength: null,
|
|
1845
|
+
exactLength: null,
|
|
1846
|
+
typeName: ZodFirstPartyTypeKind.ZodArray,
|
|
1847
|
+
...processCreateParams(params),
|
|
1848
|
+
});
|
|
1849
|
+
};
|
|
1850
|
+
function deepPartialify(schema) {
|
|
1851
|
+
if (schema instanceof ZodObject) {
|
|
1852
|
+
const newShape = {};
|
|
1853
|
+
for (const key in schema.shape) {
|
|
1854
|
+
const fieldSchema = schema.shape[key];
|
|
1855
|
+
newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
|
|
1856
|
+
}
|
|
1857
|
+
return new ZodObject({
|
|
1858
|
+
...schema._def,
|
|
1859
|
+
shape: () => newShape,
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1862
|
+
else if (schema instanceof ZodArray) {
|
|
1863
|
+
return new ZodArray({
|
|
1864
|
+
...schema._def,
|
|
1865
|
+
type: deepPartialify(schema.element),
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
else if (schema instanceof ZodOptional) {
|
|
1869
|
+
return ZodOptional.create(deepPartialify(schema.unwrap()));
|
|
1870
|
+
}
|
|
1871
|
+
else if (schema instanceof ZodNullable) {
|
|
1872
|
+
return ZodNullable.create(deepPartialify(schema.unwrap()));
|
|
1873
|
+
}
|
|
1874
|
+
else if (schema instanceof ZodTuple) {
|
|
1875
|
+
return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
|
|
1876
|
+
}
|
|
1877
|
+
else {
|
|
1878
|
+
return schema;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
export class ZodObject extends ZodType {
|
|
1882
|
+
constructor() {
|
|
1883
|
+
super(...arguments);
|
|
1884
|
+
this._cached = null;
|
|
1885
|
+
/**
|
|
1886
|
+
* @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
|
|
1887
|
+
* If you want to pass through unknown properties, use `.passthrough()` instead.
|
|
1888
|
+
*/
|
|
1889
|
+
this.nonstrict = this.passthrough;
|
|
1890
|
+
// extend<
|
|
1891
|
+
// Augmentation extends ZodRawShape,
|
|
1892
|
+
// NewOutput extends util.flatten<{
|
|
1893
|
+
// [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
|
|
1894
|
+
// ? Augmentation[k]["_output"]
|
|
1895
|
+
// : k extends keyof Output
|
|
1896
|
+
// ? Output[k]
|
|
1897
|
+
// : never;
|
|
1898
|
+
// }>,
|
|
1899
|
+
// NewInput extends util.flatten<{
|
|
1900
|
+
// [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
|
|
1901
|
+
// ? Augmentation[k]["_input"]
|
|
1902
|
+
// : k extends keyof Input
|
|
1903
|
+
// ? Input[k]
|
|
1904
|
+
// : never;
|
|
1905
|
+
// }>
|
|
1906
|
+
// >(
|
|
1907
|
+
// augmentation: Augmentation
|
|
1908
|
+
// ): ZodObject<
|
|
1909
|
+
// extendShape<T, Augmentation>,
|
|
1910
|
+
// UnknownKeys,
|
|
1911
|
+
// Catchall,
|
|
1912
|
+
// NewOutput,
|
|
1913
|
+
// NewInput
|
|
1914
|
+
// > {
|
|
1915
|
+
// return new ZodObject({
|
|
1916
|
+
// ...this._def,
|
|
1917
|
+
// shape: () => ({
|
|
1918
|
+
// ...this._def.shape(),
|
|
1919
|
+
// ...augmentation,
|
|
1920
|
+
// }),
|
|
1921
|
+
// }) as any;
|
|
1922
|
+
// }
|
|
1923
|
+
/**
|
|
1924
|
+
* @deprecated Use `.extend` instead
|
|
1925
|
+
* */
|
|
1926
|
+
this.augment = this.extend;
|
|
1927
|
+
}
|
|
1928
|
+
_getCached() {
|
|
1929
|
+
if (this._cached !== null)
|
|
1930
|
+
return this._cached;
|
|
1931
|
+
const shape = this._def.shape();
|
|
1932
|
+
const keys = util.objectKeys(shape);
|
|
1933
|
+
this._cached = { shape, keys };
|
|
1934
|
+
return this._cached;
|
|
1935
|
+
}
|
|
1936
|
+
_parse(input) {
|
|
1937
|
+
const parsedType = this._getType(input);
|
|
1938
|
+
if (parsedType !== ZodParsedType.object) {
|
|
1939
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1940
|
+
addIssueToContext(ctx, {
|
|
1941
|
+
code: ZodIssueCode.invalid_type,
|
|
1942
|
+
expected: ZodParsedType.object,
|
|
1943
|
+
received: ctx.parsedType,
|
|
1944
|
+
});
|
|
1945
|
+
return INVALID;
|
|
1946
|
+
}
|
|
1947
|
+
const { status, ctx } = this._processInputParams(input);
|
|
1948
|
+
const { shape, keys: shapeKeys } = this._getCached();
|
|
1949
|
+
const extraKeys = [];
|
|
1950
|
+
if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
|
|
1951
|
+
for (const key in ctx.data) {
|
|
1952
|
+
if (!shapeKeys.includes(key)) {
|
|
1953
|
+
extraKeys.push(key);
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
const pairs = [];
|
|
1958
|
+
for (const key of shapeKeys) {
|
|
1959
|
+
const keyValidator = shape[key];
|
|
1960
|
+
const value = ctx.data[key];
|
|
1961
|
+
pairs.push({
|
|
1962
|
+
key: { status: "valid", value: key },
|
|
1963
|
+
value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
|
|
1964
|
+
alwaysSet: key in ctx.data,
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
if (this._def.catchall instanceof ZodNever) {
|
|
1968
|
+
const unknownKeys = this._def.unknownKeys;
|
|
1969
|
+
if (unknownKeys === "passthrough") {
|
|
1970
|
+
for (const key of extraKeys) {
|
|
1971
|
+
pairs.push({
|
|
1972
|
+
key: { status: "valid", value: key },
|
|
1973
|
+
value: { status: "valid", value: ctx.data[key] },
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
else if (unknownKeys === "strict") {
|
|
1978
|
+
if (extraKeys.length > 0) {
|
|
1979
|
+
addIssueToContext(ctx, {
|
|
1980
|
+
code: ZodIssueCode.unrecognized_keys,
|
|
1981
|
+
keys: extraKeys,
|
|
1982
|
+
});
|
|
1983
|
+
status.dirty();
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
else if (unknownKeys === "strip") {
|
|
1987
|
+
}
|
|
1988
|
+
else {
|
|
1989
|
+
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
else {
|
|
1993
|
+
// run catchall validation
|
|
1994
|
+
const catchall = this._def.catchall;
|
|
1995
|
+
for (const key of extraKeys) {
|
|
1996
|
+
const value = ctx.data[key];
|
|
1997
|
+
pairs.push({
|
|
1998
|
+
key: { status: "valid", value: key },
|
|
1999
|
+
value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
|
|
2000
|
+
),
|
|
2001
|
+
alwaysSet: key in ctx.data,
|
|
2002
|
+
});
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
if (ctx.common.async) {
|
|
2006
|
+
return Promise.resolve()
|
|
2007
|
+
.then(async () => {
|
|
2008
|
+
const syncPairs = [];
|
|
2009
|
+
for (const pair of pairs) {
|
|
2010
|
+
const key = await pair.key;
|
|
2011
|
+
const value = await pair.value;
|
|
2012
|
+
syncPairs.push({
|
|
2013
|
+
key,
|
|
2014
|
+
value,
|
|
2015
|
+
alwaysSet: pair.alwaysSet,
|
|
2016
|
+
});
|
|
2017
|
+
}
|
|
2018
|
+
return syncPairs;
|
|
2019
|
+
})
|
|
2020
|
+
.then((syncPairs) => {
|
|
2021
|
+
return ParseStatus.mergeObjectSync(status, syncPairs);
|
|
2022
|
+
});
|
|
2023
|
+
}
|
|
2024
|
+
else {
|
|
2025
|
+
return ParseStatus.mergeObjectSync(status, pairs);
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
get shape() {
|
|
2029
|
+
return this._def.shape();
|
|
2030
|
+
}
|
|
2031
|
+
strict(message) {
|
|
2032
|
+
errorUtil.errToObj;
|
|
2033
|
+
return new ZodObject({
|
|
2034
|
+
...this._def,
|
|
2035
|
+
unknownKeys: "strict",
|
|
2036
|
+
...(message !== undefined
|
|
2037
|
+
? {
|
|
2038
|
+
errorMap: (issue, ctx) => {
|
|
2039
|
+
const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
|
|
2040
|
+
if (issue.code === "unrecognized_keys")
|
|
2041
|
+
return {
|
|
2042
|
+
message: errorUtil.errToObj(message).message ?? defaultError,
|
|
2043
|
+
};
|
|
2044
|
+
return {
|
|
2045
|
+
message: defaultError,
|
|
2046
|
+
};
|
|
2047
|
+
},
|
|
2048
|
+
}
|
|
2049
|
+
: {}),
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
strip() {
|
|
2053
|
+
return new ZodObject({
|
|
2054
|
+
...this._def,
|
|
2055
|
+
unknownKeys: "strip",
|
|
2056
|
+
});
|
|
2057
|
+
}
|
|
2058
|
+
passthrough() {
|
|
2059
|
+
return new ZodObject({
|
|
2060
|
+
...this._def,
|
|
2061
|
+
unknownKeys: "passthrough",
|
|
2062
|
+
});
|
|
2063
|
+
}
|
|
2064
|
+
// const AugmentFactory =
|
|
2065
|
+
// <Def extends ZodObjectDef>(def: Def) =>
|
|
2066
|
+
// <Augmentation extends ZodRawShape>(
|
|
2067
|
+
// augmentation: Augmentation
|
|
2068
|
+
// ): ZodObject<
|
|
2069
|
+
// extendShape<ReturnType<Def["shape"]>, Augmentation>,
|
|
2070
|
+
// Def["unknownKeys"],
|
|
2071
|
+
// Def["catchall"]
|
|
2072
|
+
// > => {
|
|
2073
|
+
// return new ZodObject({
|
|
2074
|
+
// ...def,
|
|
2075
|
+
// shape: () => ({
|
|
2076
|
+
// ...def.shape(),
|
|
2077
|
+
// ...augmentation,
|
|
2078
|
+
// }),
|
|
2079
|
+
// }) as any;
|
|
2080
|
+
// };
|
|
2081
|
+
extend(augmentation) {
|
|
2082
|
+
return new ZodObject({
|
|
2083
|
+
...this._def,
|
|
2084
|
+
shape: () => ({
|
|
2085
|
+
...this._def.shape(),
|
|
2086
|
+
...augmentation,
|
|
2087
|
+
}),
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
* Prior to zod@1.0.12 there was a bug in the
|
|
2092
|
+
* inferred type of merged objects. Please
|
|
2093
|
+
* upgrade if you are experiencing issues.
|
|
2094
|
+
*/
|
|
2095
|
+
merge(merging) {
|
|
2096
|
+
const merged = new ZodObject({
|
|
2097
|
+
unknownKeys: merging._def.unknownKeys,
|
|
2098
|
+
catchall: merging._def.catchall,
|
|
2099
|
+
shape: () => ({
|
|
2100
|
+
...this._def.shape(),
|
|
2101
|
+
...merging._def.shape(),
|
|
2102
|
+
}),
|
|
2103
|
+
typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2104
|
+
});
|
|
2105
|
+
return merged;
|
|
2106
|
+
}
|
|
2107
|
+
// merge<
|
|
2108
|
+
// Incoming extends AnyZodObject,
|
|
2109
|
+
// Augmentation extends Incoming["shape"],
|
|
2110
|
+
// NewOutput extends {
|
|
2111
|
+
// [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
|
|
2112
|
+
// ? Augmentation[k]["_output"]
|
|
2113
|
+
// : k extends keyof Output
|
|
2114
|
+
// ? Output[k]
|
|
2115
|
+
// : never;
|
|
2116
|
+
// },
|
|
2117
|
+
// NewInput extends {
|
|
2118
|
+
// [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
|
|
2119
|
+
// ? Augmentation[k]["_input"]
|
|
2120
|
+
// : k extends keyof Input
|
|
2121
|
+
// ? Input[k]
|
|
2122
|
+
// : never;
|
|
2123
|
+
// }
|
|
2124
|
+
// >(
|
|
2125
|
+
// merging: Incoming
|
|
2126
|
+
// ): ZodObject<
|
|
2127
|
+
// extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
|
|
2128
|
+
// Incoming["_def"]["unknownKeys"],
|
|
2129
|
+
// Incoming["_def"]["catchall"],
|
|
2130
|
+
// NewOutput,
|
|
2131
|
+
// NewInput
|
|
2132
|
+
// > {
|
|
2133
|
+
// const merged: any = new ZodObject({
|
|
2134
|
+
// unknownKeys: merging._def.unknownKeys,
|
|
2135
|
+
// catchall: merging._def.catchall,
|
|
2136
|
+
// shape: () =>
|
|
2137
|
+
// objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
|
|
2138
|
+
// typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2139
|
+
// }) as any;
|
|
2140
|
+
// return merged;
|
|
2141
|
+
// }
|
|
2142
|
+
setKey(key, schema) {
|
|
2143
|
+
return this.augment({ [key]: schema });
|
|
2144
|
+
}
|
|
2145
|
+
// merge<Incoming extends AnyZodObject>(
|
|
2146
|
+
// merging: Incoming
|
|
2147
|
+
// ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
|
|
2148
|
+
// ZodObject<
|
|
2149
|
+
// extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
|
|
2150
|
+
// Incoming["_def"]["unknownKeys"],
|
|
2151
|
+
// Incoming["_def"]["catchall"]
|
|
2152
|
+
// > {
|
|
2153
|
+
// // const mergedShape = objectUtil.mergeShapes(
|
|
2154
|
+
// // this._def.shape(),
|
|
2155
|
+
// // merging._def.shape()
|
|
2156
|
+
// // );
|
|
2157
|
+
// const merged: any = new ZodObject({
|
|
2158
|
+
// unknownKeys: merging._def.unknownKeys,
|
|
2159
|
+
// catchall: merging._def.catchall,
|
|
2160
|
+
// shape: () =>
|
|
2161
|
+
// objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
|
|
2162
|
+
// typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2163
|
+
// }) as any;
|
|
2164
|
+
// return merged;
|
|
2165
|
+
// }
|
|
2166
|
+
catchall(index) {
|
|
2167
|
+
return new ZodObject({
|
|
2168
|
+
...this._def,
|
|
2169
|
+
catchall: index,
|
|
2170
|
+
});
|
|
2171
|
+
}
|
|
2172
|
+
pick(mask) {
|
|
2173
|
+
const shape = {};
|
|
2174
|
+
for (const key of util.objectKeys(mask)) {
|
|
2175
|
+
if (mask[key] && this.shape[key]) {
|
|
2176
|
+
shape[key] = this.shape[key];
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
return new ZodObject({
|
|
2180
|
+
...this._def,
|
|
2181
|
+
shape: () => shape,
|
|
2182
|
+
});
|
|
2183
|
+
}
|
|
2184
|
+
omit(mask) {
|
|
2185
|
+
const shape = {};
|
|
2186
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2187
|
+
if (!mask[key]) {
|
|
2188
|
+
shape[key] = this.shape[key];
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
return new ZodObject({
|
|
2192
|
+
...this._def,
|
|
2193
|
+
shape: () => shape,
|
|
2194
|
+
});
|
|
2195
|
+
}
|
|
2196
|
+
/**
|
|
2197
|
+
* @deprecated
|
|
2198
|
+
*/
|
|
2199
|
+
deepPartial() {
|
|
2200
|
+
return deepPartialify(this);
|
|
2201
|
+
}
|
|
2202
|
+
partial(mask) {
|
|
2203
|
+
const newShape = {};
|
|
2204
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2205
|
+
const fieldSchema = this.shape[key];
|
|
2206
|
+
if (mask && !mask[key]) {
|
|
2207
|
+
newShape[key] = fieldSchema;
|
|
2208
|
+
}
|
|
2209
|
+
else {
|
|
2210
|
+
newShape[key] = fieldSchema.optional();
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
return new ZodObject({
|
|
2214
|
+
...this._def,
|
|
2215
|
+
shape: () => newShape,
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2218
|
+
required(mask) {
|
|
2219
|
+
const newShape = {};
|
|
2220
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2221
|
+
if (mask && !mask[key]) {
|
|
2222
|
+
newShape[key] = this.shape[key];
|
|
2223
|
+
}
|
|
2224
|
+
else {
|
|
2225
|
+
const fieldSchema = this.shape[key];
|
|
2226
|
+
let newField = fieldSchema;
|
|
2227
|
+
while (newField instanceof ZodOptional) {
|
|
2228
|
+
newField = newField._def.innerType;
|
|
2229
|
+
}
|
|
2230
|
+
newShape[key] = newField;
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
return new ZodObject({
|
|
2234
|
+
...this._def,
|
|
2235
|
+
shape: () => newShape,
|
|
2236
|
+
});
|
|
2237
|
+
}
|
|
2238
|
+
keyof() {
|
|
2239
|
+
return createZodEnum(util.objectKeys(this.shape));
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
ZodObject.create = (shape, params) => {
|
|
2243
|
+
return new ZodObject({
|
|
2244
|
+
shape: () => shape,
|
|
2245
|
+
unknownKeys: "strip",
|
|
2246
|
+
catchall: ZodNever.create(),
|
|
2247
|
+
typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2248
|
+
...processCreateParams(params),
|
|
2249
|
+
});
|
|
2250
|
+
};
|
|
2251
|
+
ZodObject.strictCreate = (shape, params) => {
|
|
2252
|
+
return new ZodObject({
|
|
2253
|
+
shape: () => shape,
|
|
2254
|
+
unknownKeys: "strict",
|
|
2255
|
+
catchall: ZodNever.create(),
|
|
2256
|
+
typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2257
|
+
...processCreateParams(params),
|
|
2258
|
+
});
|
|
2259
|
+
};
|
|
2260
|
+
ZodObject.lazycreate = (shape, params) => {
|
|
2261
|
+
return new ZodObject({
|
|
2262
|
+
shape,
|
|
2263
|
+
unknownKeys: "strip",
|
|
2264
|
+
catchall: ZodNever.create(),
|
|
2265
|
+
typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2266
|
+
...processCreateParams(params),
|
|
2267
|
+
});
|
|
2268
|
+
};
|
|
2269
|
+
export class ZodUnion extends ZodType {
|
|
2270
|
+
_parse(input) {
|
|
2271
|
+
const { ctx } = this._processInputParams(input);
|
|
2272
|
+
const options = this._def.options;
|
|
2273
|
+
function handleResults(results) {
|
|
2274
|
+
// return first issue-free validation if it exists
|
|
2275
|
+
for (const result of results) {
|
|
2276
|
+
if (result.result.status === "valid") {
|
|
2277
|
+
return result.result;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
for (const result of results) {
|
|
2281
|
+
if (result.result.status === "dirty") {
|
|
2282
|
+
// add issues from dirty option
|
|
2283
|
+
ctx.common.issues.push(...result.ctx.common.issues);
|
|
2284
|
+
return result.result;
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
// return invalid
|
|
2288
|
+
const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));
|
|
2289
|
+
addIssueToContext(ctx, {
|
|
2290
|
+
code: ZodIssueCode.invalid_union,
|
|
2291
|
+
unionErrors,
|
|
2292
|
+
});
|
|
2293
|
+
return INVALID;
|
|
2294
|
+
}
|
|
2295
|
+
if (ctx.common.async) {
|
|
2296
|
+
return Promise.all(options.map(async (option) => {
|
|
2297
|
+
const childCtx = {
|
|
2298
|
+
...ctx,
|
|
2299
|
+
common: {
|
|
2300
|
+
...ctx.common,
|
|
2301
|
+
issues: [],
|
|
2302
|
+
},
|
|
2303
|
+
parent: null,
|
|
2304
|
+
};
|
|
2305
|
+
return {
|
|
2306
|
+
result: await option._parseAsync({
|
|
2307
|
+
data: ctx.data,
|
|
2308
|
+
path: ctx.path,
|
|
2309
|
+
parent: childCtx,
|
|
2310
|
+
}),
|
|
2311
|
+
ctx: childCtx,
|
|
2312
|
+
};
|
|
2313
|
+
})).then(handleResults);
|
|
2314
|
+
}
|
|
2315
|
+
else {
|
|
2316
|
+
let dirty = undefined;
|
|
2317
|
+
const issues = [];
|
|
2318
|
+
for (const option of options) {
|
|
2319
|
+
const childCtx = {
|
|
2320
|
+
...ctx,
|
|
2321
|
+
common: {
|
|
2322
|
+
...ctx.common,
|
|
2323
|
+
issues: [],
|
|
2324
|
+
},
|
|
2325
|
+
parent: null,
|
|
2326
|
+
};
|
|
2327
|
+
const result = option._parseSync({
|
|
2328
|
+
data: ctx.data,
|
|
2329
|
+
path: ctx.path,
|
|
2330
|
+
parent: childCtx,
|
|
2331
|
+
});
|
|
2332
|
+
if (result.status === "valid") {
|
|
2333
|
+
return result;
|
|
2334
|
+
}
|
|
2335
|
+
else if (result.status === "dirty" && !dirty) {
|
|
2336
|
+
dirty = { result, ctx: childCtx };
|
|
2337
|
+
}
|
|
2338
|
+
if (childCtx.common.issues.length) {
|
|
2339
|
+
issues.push(childCtx.common.issues);
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
if (dirty) {
|
|
2343
|
+
ctx.common.issues.push(...dirty.ctx.common.issues);
|
|
2344
|
+
return dirty.result;
|
|
2345
|
+
}
|
|
2346
|
+
const unionErrors = issues.map((issues) => new ZodError(issues));
|
|
2347
|
+
addIssueToContext(ctx, {
|
|
2348
|
+
code: ZodIssueCode.invalid_union,
|
|
2349
|
+
unionErrors,
|
|
2350
|
+
});
|
|
2351
|
+
return INVALID;
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
get options() {
|
|
2355
|
+
return this._def.options;
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
ZodUnion.create = (types, params) => {
|
|
2359
|
+
return new ZodUnion({
|
|
2360
|
+
options: types,
|
|
2361
|
+
typeName: ZodFirstPartyTypeKind.ZodUnion,
|
|
2362
|
+
...processCreateParams(params),
|
|
2363
|
+
});
|
|
2364
|
+
};
|
|
2365
|
+
/////////////////////////////////////////////////////
|
|
2366
|
+
/////////////////////////////////////////////////////
|
|
2367
|
+
////////// //////////
|
|
2368
|
+
////////// ZodDiscriminatedUnion //////////
|
|
2369
|
+
////////// //////////
|
|
2370
|
+
/////////////////////////////////////////////////////
|
|
2371
|
+
/////////////////////////////////////////////////////
|
|
2372
|
+
const getDiscriminator = (type) => {
|
|
2373
|
+
if (type instanceof ZodLazy) {
|
|
2374
|
+
return getDiscriminator(type.schema);
|
|
2375
|
+
}
|
|
2376
|
+
else if (type instanceof ZodEffects) {
|
|
2377
|
+
return getDiscriminator(type.innerType());
|
|
2378
|
+
}
|
|
2379
|
+
else if (type instanceof ZodLiteral) {
|
|
2380
|
+
return [type.value];
|
|
2381
|
+
}
|
|
2382
|
+
else if (type instanceof ZodEnum) {
|
|
2383
|
+
return type.options;
|
|
2384
|
+
}
|
|
2385
|
+
else if (type instanceof ZodNativeEnum) {
|
|
2386
|
+
// eslint-disable-next-line ban/ban
|
|
2387
|
+
return util.objectValues(type.enum);
|
|
2388
|
+
}
|
|
2389
|
+
else if (type instanceof ZodDefault) {
|
|
2390
|
+
return getDiscriminator(type._def.innerType);
|
|
2391
|
+
}
|
|
2392
|
+
else if (type instanceof ZodUndefined) {
|
|
2393
|
+
return [undefined];
|
|
2394
|
+
}
|
|
2395
|
+
else if (type instanceof ZodNull) {
|
|
2396
|
+
return [null];
|
|
2397
|
+
}
|
|
2398
|
+
else if (type instanceof ZodOptional) {
|
|
2399
|
+
return [undefined, ...getDiscriminator(type.unwrap())];
|
|
2400
|
+
}
|
|
2401
|
+
else if (type instanceof ZodNullable) {
|
|
2402
|
+
return [null, ...getDiscriminator(type.unwrap())];
|
|
2403
|
+
}
|
|
2404
|
+
else if (type instanceof ZodBranded) {
|
|
2405
|
+
return getDiscriminator(type.unwrap());
|
|
2406
|
+
}
|
|
2407
|
+
else if (type instanceof ZodReadonly) {
|
|
2408
|
+
return getDiscriminator(type.unwrap());
|
|
2409
|
+
}
|
|
2410
|
+
else if (type instanceof ZodCatch) {
|
|
2411
|
+
return getDiscriminator(type._def.innerType);
|
|
2412
|
+
}
|
|
2413
|
+
else {
|
|
2414
|
+
return [];
|
|
2415
|
+
}
|
|
2416
|
+
};
|
|
2417
|
+
export class ZodDiscriminatedUnion extends ZodType {
|
|
2418
|
+
_parse(input) {
|
|
2419
|
+
const { ctx } = this._processInputParams(input);
|
|
2420
|
+
if (ctx.parsedType !== ZodParsedType.object) {
|
|
2421
|
+
addIssueToContext(ctx, {
|
|
2422
|
+
code: ZodIssueCode.invalid_type,
|
|
2423
|
+
expected: ZodParsedType.object,
|
|
2424
|
+
received: ctx.parsedType,
|
|
2425
|
+
});
|
|
2426
|
+
return INVALID;
|
|
2427
|
+
}
|
|
2428
|
+
const discriminator = this.discriminator;
|
|
2429
|
+
const discriminatorValue = ctx.data[discriminator];
|
|
2430
|
+
const option = this.optionsMap.get(discriminatorValue);
|
|
2431
|
+
if (!option) {
|
|
2432
|
+
addIssueToContext(ctx, {
|
|
2433
|
+
code: ZodIssueCode.invalid_union_discriminator,
|
|
2434
|
+
options: Array.from(this.optionsMap.keys()),
|
|
2435
|
+
path: [discriminator],
|
|
2436
|
+
});
|
|
2437
|
+
return INVALID;
|
|
2438
|
+
}
|
|
2439
|
+
if (ctx.common.async) {
|
|
2440
|
+
return option._parseAsync({
|
|
2441
|
+
data: ctx.data,
|
|
2442
|
+
path: ctx.path,
|
|
2443
|
+
parent: ctx,
|
|
2444
|
+
});
|
|
2445
|
+
}
|
|
2446
|
+
else {
|
|
2447
|
+
return option._parseSync({
|
|
2448
|
+
data: ctx.data,
|
|
2449
|
+
path: ctx.path,
|
|
2450
|
+
parent: ctx,
|
|
2451
|
+
});
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
get discriminator() {
|
|
2455
|
+
return this._def.discriminator;
|
|
2456
|
+
}
|
|
2457
|
+
get options() {
|
|
2458
|
+
return this._def.options;
|
|
2459
|
+
}
|
|
2460
|
+
get optionsMap() {
|
|
2461
|
+
return this._def.optionsMap;
|
|
2462
|
+
}
|
|
2463
|
+
/**
|
|
2464
|
+
* The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
|
|
2465
|
+
* However, it only allows a union of objects, all of which need to share a discriminator property. This property must
|
|
2466
|
+
* have a different value for each object in the union.
|
|
2467
|
+
* @param discriminator the name of the discriminator property
|
|
2468
|
+
* @param types an array of object schemas
|
|
2469
|
+
* @param params
|
|
2470
|
+
*/
|
|
2471
|
+
static create(discriminator, options, params) {
|
|
2472
|
+
// Get all the valid discriminator values
|
|
2473
|
+
const optionsMap = new Map();
|
|
2474
|
+
// try {
|
|
2475
|
+
for (const type of options) {
|
|
2476
|
+
const discriminatorValues = getDiscriminator(type.shape[discriminator]);
|
|
2477
|
+
if (!discriminatorValues.length) {
|
|
2478
|
+
throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
|
|
2479
|
+
}
|
|
2480
|
+
for (const value of discriminatorValues) {
|
|
2481
|
+
if (optionsMap.has(value)) {
|
|
2482
|
+
throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
|
|
2483
|
+
}
|
|
2484
|
+
optionsMap.set(value, type);
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
return new ZodDiscriminatedUnion({
|
|
2488
|
+
typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
|
|
2489
|
+
discriminator,
|
|
2490
|
+
options,
|
|
2491
|
+
optionsMap,
|
|
2492
|
+
...processCreateParams(params),
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
function mergeValues(a, b) {
|
|
2497
|
+
const aType = getParsedType(a);
|
|
2498
|
+
const bType = getParsedType(b);
|
|
2499
|
+
if (a === b) {
|
|
2500
|
+
return { valid: true, data: a };
|
|
2501
|
+
}
|
|
2502
|
+
else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
|
|
2503
|
+
const bKeys = util.objectKeys(b);
|
|
2504
|
+
const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
2505
|
+
const newObj = { ...a, ...b };
|
|
2506
|
+
for (const key of sharedKeys) {
|
|
2507
|
+
const sharedValue = mergeValues(a[key], b[key]);
|
|
2508
|
+
if (!sharedValue.valid) {
|
|
2509
|
+
return { valid: false };
|
|
2510
|
+
}
|
|
2511
|
+
newObj[key] = sharedValue.data;
|
|
2512
|
+
}
|
|
2513
|
+
return { valid: true, data: newObj };
|
|
2514
|
+
}
|
|
2515
|
+
else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
|
|
2516
|
+
if (a.length !== b.length) {
|
|
2517
|
+
return { valid: false };
|
|
2518
|
+
}
|
|
2519
|
+
const newArray = [];
|
|
2520
|
+
for (let index = 0; index < a.length; index++) {
|
|
2521
|
+
const itemA = a[index];
|
|
2522
|
+
const itemB = b[index];
|
|
2523
|
+
const sharedValue = mergeValues(itemA, itemB);
|
|
2524
|
+
if (!sharedValue.valid) {
|
|
2525
|
+
return { valid: false };
|
|
2526
|
+
}
|
|
2527
|
+
newArray.push(sharedValue.data);
|
|
2528
|
+
}
|
|
2529
|
+
return { valid: true, data: newArray };
|
|
2530
|
+
}
|
|
2531
|
+
else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {
|
|
2532
|
+
return { valid: true, data: a };
|
|
2533
|
+
}
|
|
2534
|
+
else {
|
|
2535
|
+
return { valid: false };
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
export class ZodIntersection extends ZodType {
|
|
2539
|
+
_parse(input) {
|
|
2540
|
+
const { status, ctx } = this._processInputParams(input);
|
|
2541
|
+
const handleParsed = (parsedLeft, parsedRight) => {
|
|
2542
|
+
if (isAborted(parsedLeft) || isAborted(parsedRight)) {
|
|
2543
|
+
return INVALID;
|
|
2544
|
+
}
|
|
2545
|
+
const merged = mergeValues(parsedLeft.value, parsedRight.value);
|
|
2546
|
+
if (!merged.valid) {
|
|
2547
|
+
addIssueToContext(ctx, {
|
|
2548
|
+
code: ZodIssueCode.invalid_intersection_types,
|
|
2549
|
+
});
|
|
2550
|
+
return INVALID;
|
|
2551
|
+
}
|
|
2552
|
+
if (isDirty(parsedLeft) || isDirty(parsedRight)) {
|
|
2553
|
+
status.dirty();
|
|
2554
|
+
}
|
|
2555
|
+
return { status: status.value, value: merged.data };
|
|
2556
|
+
};
|
|
2557
|
+
if (ctx.common.async) {
|
|
2558
|
+
return Promise.all([
|
|
2559
|
+
this._def.left._parseAsync({
|
|
2560
|
+
data: ctx.data,
|
|
2561
|
+
path: ctx.path,
|
|
2562
|
+
parent: ctx,
|
|
2563
|
+
}),
|
|
2564
|
+
this._def.right._parseAsync({
|
|
2565
|
+
data: ctx.data,
|
|
2566
|
+
path: ctx.path,
|
|
2567
|
+
parent: ctx,
|
|
2568
|
+
}),
|
|
2569
|
+
]).then(([left, right]) => handleParsed(left, right));
|
|
2570
|
+
}
|
|
2571
|
+
else {
|
|
2572
|
+
return handleParsed(this._def.left._parseSync({
|
|
2573
|
+
data: ctx.data,
|
|
2574
|
+
path: ctx.path,
|
|
2575
|
+
parent: ctx,
|
|
2576
|
+
}), this._def.right._parseSync({
|
|
2577
|
+
data: ctx.data,
|
|
2578
|
+
path: ctx.path,
|
|
2579
|
+
parent: ctx,
|
|
2580
|
+
}));
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
ZodIntersection.create = (left, right, params) => {
|
|
2585
|
+
return new ZodIntersection({
|
|
2586
|
+
left: left,
|
|
2587
|
+
right: right,
|
|
2588
|
+
typeName: ZodFirstPartyTypeKind.ZodIntersection,
|
|
2589
|
+
...processCreateParams(params),
|
|
2590
|
+
});
|
|
2591
|
+
};
|
|
2592
|
+
// type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
|
|
2593
|
+
export class ZodTuple extends ZodType {
|
|
2594
|
+
_parse(input) {
|
|
2595
|
+
const { status, ctx } = this._processInputParams(input);
|
|
2596
|
+
if (ctx.parsedType !== ZodParsedType.array) {
|
|
2597
|
+
addIssueToContext(ctx, {
|
|
2598
|
+
code: ZodIssueCode.invalid_type,
|
|
2599
|
+
expected: ZodParsedType.array,
|
|
2600
|
+
received: ctx.parsedType,
|
|
2601
|
+
});
|
|
2602
|
+
return INVALID;
|
|
2603
|
+
}
|
|
2604
|
+
if (ctx.data.length < this._def.items.length) {
|
|
2605
|
+
addIssueToContext(ctx, {
|
|
2606
|
+
code: ZodIssueCode.too_small,
|
|
2607
|
+
minimum: this._def.items.length,
|
|
2608
|
+
inclusive: true,
|
|
2609
|
+
exact: false,
|
|
2610
|
+
type: "array",
|
|
2611
|
+
});
|
|
2612
|
+
return INVALID;
|
|
2613
|
+
}
|
|
2614
|
+
const rest = this._def.rest;
|
|
2615
|
+
if (!rest && ctx.data.length > this._def.items.length) {
|
|
2616
|
+
addIssueToContext(ctx, {
|
|
2617
|
+
code: ZodIssueCode.too_big,
|
|
2618
|
+
maximum: this._def.items.length,
|
|
2619
|
+
inclusive: true,
|
|
2620
|
+
exact: false,
|
|
2621
|
+
type: "array",
|
|
2622
|
+
});
|
|
2623
|
+
status.dirty();
|
|
2624
|
+
}
|
|
2625
|
+
const items = [...ctx.data]
|
|
2626
|
+
.map((item, itemIndex) => {
|
|
2627
|
+
const schema = this._def.items[itemIndex] || this._def.rest;
|
|
2628
|
+
if (!schema)
|
|
2629
|
+
return null;
|
|
2630
|
+
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
2631
|
+
})
|
|
2632
|
+
.filter((x) => !!x); // filter nulls
|
|
2633
|
+
if (ctx.common.async) {
|
|
2634
|
+
return Promise.all(items).then((results) => {
|
|
2635
|
+
return ParseStatus.mergeArray(status, results);
|
|
2636
|
+
});
|
|
2637
|
+
}
|
|
2638
|
+
else {
|
|
2639
|
+
return ParseStatus.mergeArray(status, items);
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
get items() {
|
|
2643
|
+
return this._def.items;
|
|
2644
|
+
}
|
|
2645
|
+
rest(rest) {
|
|
2646
|
+
return new ZodTuple({
|
|
2647
|
+
...this._def,
|
|
2648
|
+
rest,
|
|
2649
|
+
});
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2652
|
+
ZodTuple.create = (schemas, params) => {
|
|
2653
|
+
if (!Array.isArray(schemas)) {
|
|
2654
|
+
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
2655
|
+
}
|
|
2656
|
+
return new ZodTuple({
|
|
2657
|
+
items: schemas,
|
|
2658
|
+
typeName: ZodFirstPartyTypeKind.ZodTuple,
|
|
2659
|
+
rest: null,
|
|
2660
|
+
...processCreateParams(params),
|
|
2661
|
+
});
|
|
2662
|
+
};
|
|
2663
|
+
export class ZodRecord extends ZodType {
|
|
2664
|
+
get keySchema() {
|
|
2665
|
+
return this._def.keyType;
|
|
2666
|
+
}
|
|
2667
|
+
get valueSchema() {
|
|
2668
|
+
return this._def.valueType;
|
|
2669
|
+
}
|
|
2670
|
+
_parse(input) {
|
|
2671
|
+
const { status, ctx } = this._processInputParams(input);
|
|
2672
|
+
if (ctx.parsedType !== ZodParsedType.object) {
|
|
2673
|
+
addIssueToContext(ctx, {
|
|
2674
|
+
code: ZodIssueCode.invalid_type,
|
|
2675
|
+
expected: ZodParsedType.object,
|
|
2676
|
+
received: ctx.parsedType,
|
|
2677
|
+
});
|
|
2678
|
+
return INVALID;
|
|
2679
|
+
}
|
|
2680
|
+
const pairs = [];
|
|
2681
|
+
const keyType = this._def.keyType;
|
|
2682
|
+
const valueType = this._def.valueType;
|
|
2683
|
+
for (const key in ctx.data) {
|
|
2684
|
+
pairs.push({
|
|
2685
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
|
|
2686
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
|
|
2687
|
+
alwaysSet: key in ctx.data,
|
|
2688
|
+
});
|
|
2689
|
+
}
|
|
2690
|
+
if (ctx.common.async) {
|
|
2691
|
+
return ParseStatus.mergeObjectAsync(status, pairs);
|
|
2692
|
+
}
|
|
2693
|
+
else {
|
|
2694
|
+
return ParseStatus.mergeObjectSync(status, pairs);
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
get element() {
|
|
2698
|
+
return this._def.valueType;
|
|
2699
|
+
}
|
|
2700
|
+
static create(first, second, third) {
|
|
2701
|
+
if (second instanceof ZodType) {
|
|
2702
|
+
return new ZodRecord({
|
|
2703
|
+
keyType: first,
|
|
2704
|
+
valueType: second,
|
|
2705
|
+
typeName: ZodFirstPartyTypeKind.ZodRecord,
|
|
2706
|
+
...processCreateParams(third),
|
|
2707
|
+
});
|
|
2708
|
+
}
|
|
2709
|
+
return new ZodRecord({
|
|
2710
|
+
keyType: ZodString.create(),
|
|
2711
|
+
valueType: first,
|
|
2712
|
+
typeName: ZodFirstPartyTypeKind.ZodRecord,
|
|
2713
|
+
...processCreateParams(second),
|
|
2714
|
+
});
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
export class ZodMap extends ZodType {
|
|
2718
|
+
get keySchema() {
|
|
2719
|
+
return this._def.keyType;
|
|
2720
|
+
}
|
|
2721
|
+
get valueSchema() {
|
|
2722
|
+
return this._def.valueType;
|
|
2723
|
+
}
|
|
2724
|
+
_parse(input) {
|
|
2725
|
+
const { status, ctx } = this._processInputParams(input);
|
|
2726
|
+
if (ctx.parsedType !== ZodParsedType.map) {
|
|
2727
|
+
addIssueToContext(ctx, {
|
|
2728
|
+
code: ZodIssueCode.invalid_type,
|
|
2729
|
+
expected: ZodParsedType.map,
|
|
2730
|
+
received: ctx.parsedType,
|
|
2731
|
+
});
|
|
2732
|
+
return INVALID;
|
|
2733
|
+
}
|
|
2734
|
+
const keyType = this._def.keyType;
|
|
2735
|
+
const valueType = this._def.valueType;
|
|
2736
|
+
const pairs = [...ctx.data.entries()].map(([key, value], index) => {
|
|
2737
|
+
return {
|
|
2738
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
|
|
2739
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])),
|
|
2740
|
+
};
|
|
2741
|
+
});
|
|
2742
|
+
if (ctx.common.async) {
|
|
2743
|
+
const finalMap = new Map();
|
|
2744
|
+
return Promise.resolve().then(async () => {
|
|
2745
|
+
for (const pair of pairs) {
|
|
2746
|
+
const key = await pair.key;
|
|
2747
|
+
const value = await pair.value;
|
|
2748
|
+
if (key.status === "aborted" || value.status === "aborted") {
|
|
2749
|
+
return INVALID;
|
|
2750
|
+
}
|
|
2751
|
+
if (key.status === "dirty" || value.status === "dirty") {
|
|
2752
|
+
status.dirty();
|
|
2753
|
+
}
|
|
2754
|
+
finalMap.set(key.value, value.value);
|
|
2755
|
+
}
|
|
2756
|
+
return { status: status.value, value: finalMap };
|
|
2757
|
+
});
|
|
2758
|
+
}
|
|
2759
|
+
else {
|
|
2760
|
+
const finalMap = new Map();
|
|
2761
|
+
for (const pair of pairs) {
|
|
2762
|
+
const key = pair.key;
|
|
2763
|
+
const value = pair.value;
|
|
2764
|
+
if (key.status === "aborted" || value.status === "aborted") {
|
|
2765
|
+
return INVALID;
|
|
2766
|
+
}
|
|
2767
|
+
if (key.status === "dirty" || value.status === "dirty") {
|
|
2768
|
+
status.dirty();
|
|
2769
|
+
}
|
|
2770
|
+
finalMap.set(key.value, value.value);
|
|
2771
|
+
}
|
|
2772
|
+
return { status: status.value, value: finalMap };
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
ZodMap.create = (keyType, valueType, params) => {
|
|
2777
|
+
return new ZodMap({
|
|
2778
|
+
valueType,
|
|
2779
|
+
keyType,
|
|
2780
|
+
typeName: ZodFirstPartyTypeKind.ZodMap,
|
|
2781
|
+
...processCreateParams(params),
|
|
2782
|
+
});
|
|
2783
|
+
};
|
|
2784
|
+
export class ZodSet extends ZodType {
|
|
2785
|
+
_parse(input) {
|
|
2786
|
+
const { status, ctx } = this._processInputParams(input);
|
|
2787
|
+
if (ctx.parsedType !== ZodParsedType.set) {
|
|
2788
|
+
addIssueToContext(ctx, {
|
|
2789
|
+
code: ZodIssueCode.invalid_type,
|
|
2790
|
+
expected: ZodParsedType.set,
|
|
2791
|
+
received: ctx.parsedType,
|
|
2792
|
+
});
|
|
2793
|
+
return INVALID;
|
|
2794
|
+
}
|
|
2795
|
+
const def = this._def;
|
|
2796
|
+
if (def.minSize !== null) {
|
|
2797
|
+
if (ctx.data.size < def.minSize.value) {
|
|
2798
|
+
addIssueToContext(ctx, {
|
|
2799
|
+
code: ZodIssueCode.too_small,
|
|
2800
|
+
minimum: def.minSize.value,
|
|
2801
|
+
type: "set",
|
|
2802
|
+
inclusive: true,
|
|
2803
|
+
exact: false,
|
|
2804
|
+
message: def.minSize.message,
|
|
2805
|
+
});
|
|
2806
|
+
status.dirty();
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
if (def.maxSize !== null) {
|
|
2810
|
+
if (ctx.data.size > def.maxSize.value) {
|
|
2811
|
+
addIssueToContext(ctx, {
|
|
2812
|
+
code: ZodIssueCode.too_big,
|
|
2813
|
+
maximum: def.maxSize.value,
|
|
2814
|
+
type: "set",
|
|
2815
|
+
inclusive: true,
|
|
2816
|
+
exact: false,
|
|
2817
|
+
message: def.maxSize.message,
|
|
2818
|
+
});
|
|
2819
|
+
status.dirty();
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
const valueType = this._def.valueType;
|
|
2823
|
+
function finalizeSet(elements) {
|
|
2824
|
+
const parsedSet = new Set();
|
|
2825
|
+
for (const element of elements) {
|
|
2826
|
+
if (element.status === "aborted")
|
|
2827
|
+
return INVALID;
|
|
2828
|
+
if (element.status === "dirty")
|
|
2829
|
+
status.dirty();
|
|
2830
|
+
parsedSet.add(element.value);
|
|
2831
|
+
}
|
|
2832
|
+
return { status: status.value, value: parsedSet };
|
|
2833
|
+
}
|
|
2834
|
+
const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
|
|
2835
|
+
if (ctx.common.async) {
|
|
2836
|
+
return Promise.all(elements).then((elements) => finalizeSet(elements));
|
|
2837
|
+
}
|
|
2838
|
+
else {
|
|
2839
|
+
return finalizeSet(elements);
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
min(minSize, message) {
|
|
2843
|
+
return new ZodSet({
|
|
2844
|
+
...this._def,
|
|
2845
|
+
minSize: { value: minSize, message: errorUtil.toString(message) },
|
|
2846
|
+
});
|
|
2847
|
+
}
|
|
2848
|
+
max(maxSize, message) {
|
|
2849
|
+
return new ZodSet({
|
|
2850
|
+
...this._def,
|
|
2851
|
+
maxSize: { value: maxSize, message: errorUtil.toString(message) },
|
|
2852
|
+
});
|
|
2853
|
+
}
|
|
2854
|
+
size(size, message) {
|
|
2855
|
+
return this.min(size, message).max(size, message);
|
|
2856
|
+
}
|
|
2857
|
+
nonempty(message) {
|
|
2858
|
+
return this.min(1, message);
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
ZodSet.create = (valueType, params) => {
|
|
2862
|
+
return new ZodSet({
|
|
2863
|
+
valueType,
|
|
2864
|
+
minSize: null,
|
|
2865
|
+
maxSize: null,
|
|
2866
|
+
typeName: ZodFirstPartyTypeKind.ZodSet,
|
|
2867
|
+
...processCreateParams(params),
|
|
2868
|
+
});
|
|
2869
|
+
};
|
|
2870
|
+
export class ZodFunction extends ZodType {
|
|
2871
|
+
constructor() {
|
|
2872
|
+
super(...arguments);
|
|
2873
|
+
this.validate = this.implement;
|
|
2874
|
+
}
|
|
2875
|
+
_parse(input) {
|
|
2876
|
+
const { ctx } = this._processInputParams(input);
|
|
2877
|
+
if (ctx.parsedType !== ZodParsedType.function) {
|
|
2878
|
+
addIssueToContext(ctx, {
|
|
2879
|
+
code: ZodIssueCode.invalid_type,
|
|
2880
|
+
expected: ZodParsedType.function,
|
|
2881
|
+
received: ctx.parsedType,
|
|
2882
|
+
});
|
|
2883
|
+
return INVALID;
|
|
2884
|
+
}
|
|
2885
|
+
function makeArgsIssue(args, error) {
|
|
2886
|
+
return makeIssue({
|
|
2887
|
+
data: args,
|
|
2888
|
+
path: ctx.path,
|
|
2889
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),
|
|
2890
|
+
issueData: {
|
|
2891
|
+
code: ZodIssueCode.invalid_arguments,
|
|
2892
|
+
argumentsError: error,
|
|
2893
|
+
},
|
|
2894
|
+
});
|
|
2895
|
+
}
|
|
2896
|
+
function makeReturnsIssue(returns, error) {
|
|
2897
|
+
return makeIssue({
|
|
2898
|
+
data: returns,
|
|
2899
|
+
path: ctx.path,
|
|
2900
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),
|
|
2901
|
+
issueData: {
|
|
2902
|
+
code: ZodIssueCode.invalid_return_type,
|
|
2903
|
+
returnTypeError: error,
|
|
2904
|
+
},
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2907
|
+
const params = { errorMap: ctx.common.contextualErrorMap };
|
|
2908
|
+
const fn = ctx.data;
|
|
2909
|
+
if (this._def.returns instanceof ZodPromise) {
|
|
2910
|
+
// Would love a way to avoid disabling this rule, but we need
|
|
2911
|
+
// an alias (using an arrow function was what caused 2651).
|
|
2912
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
2913
|
+
const me = this;
|
|
2914
|
+
return OK(async function (...args) {
|
|
2915
|
+
const error = new ZodError([]);
|
|
2916
|
+
const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
|
|
2917
|
+
error.addIssue(makeArgsIssue(args, e));
|
|
2918
|
+
throw error;
|
|
2919
|
+
});
|
|
2920
|
+
const result = await Reflect.apply(fn, this, parsedArgs);
|
|
2921
|
+
const parsedReturns = await me._def.returns._def.type
|
|
2922
|
+
.parseAsync(result, params)
|
|
2923
|
+
.catch((e) => {
|
|
2924
|
+
error.addIssue(makeReturnsIssue(result, e));
|
|
2925
|
+
throw error;
|
|
2926
|
+
});
|
|
2927
|
+
return parsedReturns;
|
|
2928
|
+
});
|
|
2929
|
+
}
|
|
2930
|
+
else {
|
|
2931
|
+
// Would love a way to avoid disabling this rule, but we need
|
|
2932
|
+
// an alias (using an arrow function was what caused 2651).
|
|
2933
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
2934
|
+
const me = this;
|
|
2935
|
+
return OK(function (...args) {
|
|
2936
|
+
const parsedArgs = me._def.args.safeParse(args, params);
|
|
2937
|
+
if (!parsedArgs.success) {
|
|
2938
|
+
throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
|
|
2939
|
+
}
|
|
2940
|
+
const result = Reflect.apply(fn, this, parsedArgs.data);
|
|
2941
|
+
const parsedReturns = me._def.returns.safeParse(result, params);
|
|
2942
|
+
if (!parsedReturns.success) {
|
|
2943
|
+
throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
|
|
2944
|
+
}
|
|
2945
|
+
return parsedReturns.data;
|
|
2946
|
+
});
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
parameters() {
|
|
2950
|
+
return this._def.args;
|
|
2951
|
+
}
|
|
2952
|
+
returnType() {
|
|
2953
|
+
return this._def.returns;
|
|
2954
|
+
}
|
|
2955
|
+
args(...items) {
|
|
2956
|
+
return new ZodFunction({
|
|
2957
|
+
...this._def,
|
|
2958
|
+
args: ZodTuple.create(items).rest(ZodUnknown.create()),
|
|
2959
|
+
});
|
|
2960
|
+
}
|
|
2961
|
+
returns(returnType) {
|
|
2962
|
+
return new ZodFunction({
|
|
2963
|
+
...this._def,
|
|
2964
|
+
returns: returnType,
|
|
2965
|
+
});
|
|
2966
|
+
}
|
|
2967
|
+
implement(func) {
|
|
2968
|
+
const validatedFunc = this.parse(func);
|
|
2969
|
+
return validatedFunc;
|
|
2970
|
+
}
|
|
2971
|
+
strictImplement(func) {
|
|
2972
|
+
const validatedFunc = this.parse(func);
|
|
2973
|
+
return validatedFunc;
|
|
2974
|
+
}
|
|
2975
|
+
static create(args, returns, params) {
|
|
2976
|
+
return new ZodFunction({
|
|
2977
|
+
args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),
|
|
2978
|
+
returns: returns || ZodUnknown.create(),
|
|
2979
|
+
typeName: ZodFirstPartyTypeKind.ZodFunction,
|
|
2980
|
+
...processCreateParams(params),
|
|
2981
|
+
});
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
export class ZodLazy extends ZodType {
|
|
2985
|
+
get schema() {
|
|
2986
|
+
return this._def.getter();
|
|
2987
|
+
}
|
|
2988
|
+
_parse(input) {
|
|
2989
|
+
const { ctx } = this._processInputParams(input);
|
|
2990
|
+
const lazySchema = this._def.getter();
|
|
2991
|
+
return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
ZodLazy.create = (getter, params) => {
|
|
2995
|
+
return new ZodLazy({
|
|
2996
|
+
getter: getter,
|
|
2997
|
+
typeName: ZodFirstPartyTypeKind.ZodLazy,
|
|
2998
|
+
...processCreateParams(params),
|
|
2999
|
+
});
|
|
3000
|
+
};
|
|
3001
|
+
export class ZodLiteral extends ZodType {
|
|
3002
|
+
_parse(input) {
|
|
3003
|
+
if (input.data !== this._def.value) {
|
|
3004
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3005
|
+
addIssueToContext(ctx, {
|
|
3006
|
+
received: ctx.data,
|
|
3007
|
+
code: ZodIssueCode.invalid_literal,
|
|
3008
|
+
expected: this._def.value,
|
|
3009
|
+
});
|
|
3010
|
+
return INVALID;
|
|
3011
|
+
}
|
|
3012
|
+
return { status: "valid", value: input.data };
|
|
3013
|
+
}
|
|
3014
|
+
get value() {
|
|
3015
|
+
return this._def.value;
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
ZodLiteral.create = (value, params) => {
|
|
3019
|
+
return new ZodLiteral({
|
|
3020
|
+
value: value,
|
|
3021
|
+
typeName: ZodFirstPartyTypeKind.ZodLiteral,
|
|
3022
|
+
...processCreateParams(params),
|
|
3023
|
+
});
|
|
3024
|
+
};
|
|
3025
|
+
function createZodEnum(values, params) {
|
|
3026
|
+
return new ZodEnum({
|
|
3027
|
+
values,
|
|
3028
|
+
typeName: ZodFirstPartyTypeKind.ZodEnum,
|
|
3029
|
+
...processCreateParams(params),
|
|
3030
|
+
});
|
|
3031
|
+
}
|
|
3032
|
+
export class ZodEnum extends ZodType {
|
|
3033
|
+
_parse(input) {
|
|
3034
|
+
if (typeof input.data !== "string") {
|
|
3035
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3036
|
+
const expectedValues = this._def.values;
|
|
3037
|
+
addIssueToContext(ctx, {
|
|
3038
|
+
expected: util.joinValues(expectedValues),
|
|
3039
|
+
received: ctx.parsedType,
|
|
3040
|
+
code: ZodIssueCode.invalid_type,
|
|
3041
|
+
});
|
|
3042
|
+
return INVALID;
|
|
3043
|
+
}
|
|
3044
|
+
if (!this._cache) {
|
|
3045
|
+
this._cache = new Set(this._def.values);
|
|
3046
|
+
}
|
|
3047
|
+
if (!this._cache.has(input.data)) {
|
|
3048
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3049
|
+
const expectedValues = this._def.values;
|
|
3050
|
+
addIssueToContext(ctx, {
|
|
3051
|
+
received: ctx.data,
|
|
3052
|
+
code: ZodIssueCode.invalid_enum_value,
|
|
3053
|
+
options: expectedValues,
|
|
3054
|
+
});
|
|
3055
|
+
return INVALID;
|
|
3056
|
+
}
|
|
3057
|
+
return OK(input.data);
|
|
3058
|
+
}
|
|
3059
|
+
get options() {
|
|
3060
|
+
return this._def.values;
|
|
3061
|
+
}
|
|
3062
|
+
get enum() {
|
|
3063
|
+
const enumValues = {};
|
|
3064
|
+
for (const val of this._def.values) {
|
|
3065
|
+
enumValues[val] = val;
|
|
3066
|
+
}
|
|
3067
|
+
return enumValues;
|
|
3068
|
+
}
|
|
3069
|
+
get Values() {
|
|
3070
|
+
const enumValues = {};
|
|
3071
|
+
for (const val of this._def.values) {
|
|
3072
|
+
enumValues[val] = val;
|
|
3073
|
+
}
|
|
3074
|
+
return enumValues;
|
|
3075
|
+
}
|
|
3076
|
+
get Enum() {
|
|
3077
|
+
const enumValues = {};
|
|
3078
|
+
for (const val of this._def.values) {
|
|
3079
|
+
enumValues[val] = val;
|
|
3080
|
+
}
|
|
3081
|
+
return enumValues;
|
|
3082
|
+
}
|
|
3083
|
+
extract(values, newDef = this._def) {
|
|
3084
|
+
return ZodEnum.create(values, {
|
|
3085
|
+
...this._def,
|
|
3086
|
+
...newDef,
|
|
3087
|
+
});
|
|
3088
|
+
}
|
|
3089
|
+
exclude(values, newDef = this._def) {
|
|
3090
|
+
return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
|
|
3091
|
+
...this._def,
|
|
3092
|
+
...newDef,
|
|
3093
|
+
});
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
ZodEnum.create = createZodEnum;
|
|
3097
|
+
export class ZodNativeEnum extends ZodType {
|
|
3098
|
+
_parse(input) {
|
|
3099
|
+
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3100
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3101
|
+
if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {
|
|
3102
|
+
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3103
|
+
addIssueToContext(ctx, {
|
|
3104
|
+
expected: util.joinValues(expectedValues),
|
|
3105
|
+
received: ctx.parsedType,
|
|
3106
|
+
code: ZodIssueCode.invalid_type,
|
|
3107
|
+
});
|
|
3108
|
+
return INVALID;
|
|
3109
|
+
}
|
|
3110
|
+
if (!this._cache) {
|
|
3111
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3112
|
+
}
|
|
3113
|
+
if (!this._cache.has(input.data)) {
|
|
3114
|
+
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3115
|
+
addIssueToContext(ctx, {
|
|
3116
|
+
received: ctx.data,
|
|
3117
|
+
code: ZodIssueCode.invalid_enum_value,
|
|
3118
|
+
options: expectedValues,
|
|
3119
|
+
});
|
|
3120
|
+
return INVALID;
|
|
3121
|
+
}
|
|
3122
|
+
return OK(input.data);
|
|
3123
|
+
}
|
|
3124
|
+
get enum() {
|
|
3125
|
+
return this._def.values;
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
ZodNativeEnum.create = (values, params) => {
|
|
3129
|
+
return new ZodNativeEnum({
|
|
3130
|
+
values: values,
|
|
3131
|
+
typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
|
|
3132
|
+
...processCreateParams(params),
|
|
3133
|
+
});
|
|
3134
|
+
};
|
|
3135
|
+
export class ZodPromise extends ZodType {
|
|
3136
|
+
unwrap() {
|
|
3137
|
+
return this._def.type;
|
|
3138
|
+
}
|
|
3139
|
+
_parse(input) {
|
|
3140
|
+
const { ctx } = this._processInputParams(input);
|
|
3141
|
+
if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {
|
|
3142
|
+
addIssueToContext(ctx, {
|
|
3143
|
+
code: ZodIssueCode.invalid_type,
|
|
3144
|
+
expected: ZodParsedType.promise,
|
|
3145
|
+
received: ctx.parsedType,
|
|
3146
|
+
});
|
|
3147
|
+
return INVALID;
|
|
3148
|
+
}
|
|
3149
|
+
const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
|
|
3150
|
+
return OK(promisified.then((data) => {
|
|
3151
|
+
return this._def.type.parseAsync(data, {
|
|
3152
|
+
path: ctx.path,
|
|
3153
|
+
errorMap: ctx.common.contextualErrorMap,
|
|
3154
|
+
});
|
|
3155
|
+
}));
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
ZodPromise.create = (schema, params) => {
|
|
3159
|
+
return new ZodPromise({
|
|
3160
|
+
type: schema,
|
|
3161
|
+
typeName: ZodFirstPartyTypeKind.ZodPromise,
|
|
3162
|
+
...processCreateParams(params),
|
|
3163
|
+
});
|
|
3164
|
+
};
|
|
3165
|
+
export class ZodEffects extends ZodType {
|
|
3166
|
+
innerType() {
|
|
3167
|
+
return this._def.schema;
|
|
3168
|
+
}
|
|
3169
|
+
sourceType() {
|
|
3170
|
+
return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects
|
|
3171
|
+
? this._def.schema.sourceType()
|
|
3172
|
+
: this._def.schema;
|
|
3173
|
+
}
|
|
3174
|
+
_parse(input) {
|
|
3175
|
+
const { status, ctx } = this._processInputParams(input);
|
|
3176
|
+
const effect = this._def.effect || null;
|
|
3177
|
+
const checkCtx = {
|
|
3178
|
+
addIssue: (arg) => {
|
|
3179
|
+
addIssueToContext(ctx, arg);
|
|
3180
|
+
if (arg.fatal) {
|
|
3181
|
+
status.abort();
|
|
3182
|
+
}
|
|
3183
|
+
else {
|
|
3184
|
+
status.dirty();
|
|
3185
|
+
}
|
|
3186
|
+
},
|
|
3187
|
+
get path() {
|
|
3188
|
+
return ctx.path;
|
|
3189
|
+
},
|
|
3190
|
+
};
|
|
3191
|
+
checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
|
|
3192
|
+
if (effect.type === "preprocess") {
|
|
3193
|
+
const processed = effect.transform(ctx.data, checkCtx);
|
|
3194
|
+
if (ctx.common.async) {
|
|
3195
|
+
return Promise.resolve(processed).then(async (processed) => {
|
|
3196
|
+
if (status.value === "aborted")
|
|
3197
|
+
return INVALID;
|
|
3198
|
+
const result = await this._def.schema._parseAsync({
|
|
3199
|
+
data: processed,
|
|
3200
|
+
path: ctx.path,
|
|
3201
|
+
parent: ctx,
|
|
3202
|
+
});
|
|
3203
|
+
if (result.status === "aborted")
|
|
3204
|
+
return INVALID;
|
|
3205
|
+
if (result.status === "dirty")
|
|
3206
|
+
return DIRTY(result.value);
|
|
3207
|
+
if (status.value === "dirty")
|
|
3208
|
+
return DIRTY(result.value);
|
|
3209
|
+
return result;
|
|
3210
|
+
});
|
|
3211
|
+
}
|
|
3212
|
+
else {
|
|
3213
|
+
if (status.value === "aborted")
|
|
3214
|
+
return INVALID;
|
|
3215
|
+
const result = this._def.schema._parseSync({
|
|
3216
|
+
data: processed,
|
|
3217
|
+
path: ctx.path,
|
|
3218
|
+
parent: ctx,
|
|
3219
|
+
});
|
|
3220
|
+
if (result.status === "aborted")
|
|
3221
|
+
return INVALID;
|
|
3222
|
+
if (result.status === "dirty")
|
|
3223
|
+
return DIRTY(result.value);
|
|
3224
|
+
if (status.value === "dirty")
|
|
3225
|
+
return DIRTY(result.value);
|
|
3226
|
+
return result;
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
3229
|
+
if (effect.type === "refinement") {
|
|
3230
|
+
const executeRefinement = (acc) => {
|
|
3231
|
+
const result = effect.refinement(acc, checkCtx);
|
|
3232
|
+
if (ctx.common.async) {
|
|
3233
|
+
return Promise.resolve(result);
|
|
3234
|
+
}
|
|
3235
|
+
if (result instanceof Promise) {
|
|
3236
|
+
throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
3237
|
+
}
|
|
3238
|
+
return acc;
|
|
3239
|
+
};
|
|
3240
|
+
if (ctx.common.async === false) {
|
|
3241
|
+
const inner = this._def.schema._parseSync({
|
|
3242
|
+
data: ctx.data,
|
|
3243
|
+
path: ctx.path,
|
|
3244
|
+
parent: ctx,
|
|
3245
|
+
});
|
|
3246
|
+
if (inner.status === "aborted")
|
|
3247
|
+
return INVALID;
|
|
3248
|
+
if (inner.status === "dirty")
|
|
3249
|
+
status.dirty();
|
|
3250
|
+
// return value is ignored
|
|
3251
|
+
executeRefinement(inner.value);
|
|
3252
|
+
return { status: status.value, value: inner.value };
|
|
3253
|
+
}
|
|
3254
|
+
else {
|
|
3255
|
+
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
|
|
3256
|
+
if (inner.status === "aborted")
|
|
3257
|
+
return INVALID;
|
|
3258
|
+
if (inner.status === "dirty")
|
|
3259
|
+
status.dirty();
|
|
3260
|
+
return executeRefinement(inner.value).then(() => {
|
|
3261
|
+
return { status: status.value, value: inner.value };
|
|
3262
|
+
});
|
|
3263
|
+
});
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3266
|
+
if (effect.type === "transform") {
|
|
3267
|
+
if (ctx.common.async === false) {
|
|
3268
|
+
const base = this._def.schema._parseSync({
|
|
3269
|
+
data: ctx.data,
|
|
3270
|
+
path: ctx.path,
|
|
3271
|
+
parent: ctx,
|
|
3272
|
+
});
|
|
3273
|
+
if (!isValid(base))
|
|
3274
|
+
return INVALID;
|
|
3275
|
+
const result = effect.transform(base.value, checkCtx);
|
|
3276
|
+
if (result instanceof Promise) {
|
|
3277
|
+
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
3278
|
+
}
|
|
3279
|
+
return { status: status.value, value: result };
|
|
3280
|
+
}
|
|
3281
|
+
else {
|
|
3282
|
+
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3283
|
+
if (!isValid(base))
|
|
3284
|
+
return INVALID;
|
|
3285
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3286
|
+
status: status.value,
|
|
3287
|
+
value: result,
|
|
3288
|
+
}));
|
|
3289
|
+
});
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
util.assertNever(effect);
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
ZodEffects.create = (schema, effect, params) => {
|
|
3296
|
+
return new ZodEffects({
|
|
3297
|
+
schema,
|
|
3298
|
+
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
3299
|
+
effect,
|
|
3300
|
+
...processCreateParams(params),
|
|
3301
|
+
});
|
|
3302
|
+
};
|
|
3303
|
+
ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
|
|
3304
|
+
return new ZodEffects({
|
|
3305
|
+
schema,
|
|
3306
|
+
effect: { type: "preprocess", transform: preprocess },
|
|
3307
|
+
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
3308
|
+
...processCreateParams(params),
|
|
3309
|
+
});
|
|
3310
|
+
};
|
|
3311
|
+
export { ZodEffects as ZodTransformer };
|
|
3312
|
+
export class ZodOptional extends ZodType {
|
|
3313
|
+
_parse(input) {
|
|
3314
|
+
const parsedType = this._getType(input);
|
|
3315
|
+
if (parsedType === ZodParsedType.undefined) {
|
|
3316
|
+
return OK(undefined);
|
|
3317
|
+
}
|
|
3318
|
+
return this._def.innerType._parse(input);
|
|
3319
|
+
}
|
|
3320
|
+
unwrap() {
|
|
3321
|
+
return this._def.innerType;
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
ZodOptional.create = (type, params) => {
|
|
3325
|
+
return new ZodOptional({
|
|
3326
|
+
innerType: type,
|
|
3327
|
+
typeName: ZodFirstPartyTypeKind.ZodOptional,
|
|
3328
|
+
...processCreateParams(params),
|
|
3329
|
+
});
|
|
3330
|
+
};
|
|
3331
|
+
export class ZodNullable extends ZodType {
|
|
3332
|
+
_parse(input) {
|
|
3333
|
+
const parsedType = this._getType(input);
|
|
3334
|
+
if (parsedType === ZodParsedType.null) {
|
|
3335
|
+
return OK(null);
|
|
3336
|
+
}
|
|
3337
|
+
return this._def.innerType._parse(input);
|
|
3338
|
+
}
|
|
3339
|
+
unwrap() {
|
|
3340
|
+
return this._def.innerType;
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
ZodNullable.create = (type, params) => {
|
|
3344
|
+
return new ZodNullable({
|
|
3345
|
+
innerType: type,
|
|
3346
|
+
typeName: ZodFirstPartyTypeKind.ZodNullable,
|
|
3347
|
+
...processCreateParams(params),
|
|
3348
|
+
});
|
|
3349
|
+
};
|
|
3350
|
+
export class ZodDefault extends ZodType {
|
|
3351
|
+
_parse(input) {
|
|
3352
|
+
const { ctx } = this._processInputParams(input);
|
|
3353
|
+
let data = ctx.data;
|
|
3354
|
+
if (ctx.parsedType === ZodParsedType.undefined) {
|
|
3355
|
+
data = this._def.defaultValue();
|
|
3356
|
+
}
|
|
3357
|
+
return this._def.innerType._parse({
|
|
3358
|
+
data,
|
|
3359
|
+
path: ctx.path,
|
|
3360
|
+
parent: ctx,
|
|
3361
|
+
});
|
|
3362
|
+
}
|
|
3363
|
+
removeDefault() {
|
|
3364
|
+
return this._def.innerType;
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
ZodDefault.create = (type, params) => {
|
|
3368
|
+
return new ZodDefault({
|
|
3369
|
+
innerType: type,
|
|
3370
|
+
typeName: ZodFirstPartyTypeKind.ZodDefault,
|
|
3371
|
+
defaultValue: typeof params.default === "function" ? params.default : () => params.default,
|
|
3372
|
+
...processCreateParams(params),
|
|
3373
|
+
});
|
|
3374
|
+
};
|
|
3375
|
+
export class ZodCatch extends ZodType {
|
|
3376
|
+
_parse(input) {
|
|
3377
|
+
const { ctx } = this._processInputParams(input);
|
|
3378
|
+
// newCtx is used to not collect issues from inner types in ctx
|
|
3379
|
+
const newCtx = {
|
|
3380
|
+
...ctx,
|
|
3381
|
+
common: {
|
|
3382
|
+
...ctx.common,
|
|
3383
|
+
issues: [],
|
|
3384
|
+
},
|
|
3385
|
+
};
|
|
3386
|
+
const result = this._def.innerType._parse({
|
|
3387
|
+
data: newCtx.data,
|
|
3388
|
+
path: newCtx.path,
|
|
3389
|
+
parent: {
|
|
3390
|
+
...newCtx,
|
|
3391
|
+
},
|
|
3392
|
+
});
|
|
3393
|
+
if (isAsync(result)) {
|
|
3394
|
+
return result.then((result) => {
|
|
3395
|
+
return {
|
|
3396
|
+
status: "valid",
|
|
3397
|
+
value: result.status === "valid"
|
|
3398
|
+
? result.value
|
|
3399
|
+
: this._def.catchValue({
|
|
3400
|
+
get error() {
|
|
3401
|
+
return new ZodError(newCtx.common.issues);
|
|
3402
|
+
},
|
|
3403
|
+
input: newCtx.data,
|
|
3404
|
+
}),
|
|
3405
|
+
};
|
|
3406
|
+
});
|
|
3407
|
+
}
|
|
3408
|
+
else {
|
|
3409
|
+
return {
|
|
3410
|
+
status: "valid",
|
|
3411
|
+
value: result.status === "valid"
|
|
3412
|
+
? result.value
|
|
3413
|
+
: this._def.catchValue({
|
|
3414
|
+
get error() {
|
|
3415
|
+
return new ZodError(newCtx.common.issues);
|
|
3416
|
+
},
|
|
3417
|
+
input: newCtx.data,
|
|
3418
|
+
}),
|
|
3419
|
+
};
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
removeCatch() {
|
|
3423
|
+
return this._def.innerType;
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
ZodCatch.create = (type, params) => {
|
|
3427
|
+
return new ZodCatch({
|
|
3428
|
+
innerType: type,
|
|
3429
|
+
typeName: ZodFirstPartyTypeKind.ZodCatch,
|
|
3430
|
+
catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
|
|
3431
|
+
...processCreateParams(params),
|
|
3432
|
+
});
|
|
3433
|
+
};
|
|
3434
|
+
export class ZodNaN extends ZodType {
|
|
3435
|
+
_parse(input) {
|
|
3436
|
+
const parsedType = this._getType(input);
|
|
3437
|
+
if (parsedType !== ZodParsedType.nan) {
|
|
3438
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3439
|
+
addIssueToContext(ctx, {
|
|
3440
|
+
code: ZodIssueCode.invalid_type,
|
|
3441
|
+
expected: ZodParsedType.nan,
|
|
3442
|
+
received: ctx.parsedType,
|
|
3443
|
+
});
|
|
3444
|
+
return INVALID;
|
|
3445
|
+
}
|
|
3446
|
+
return { status: "valid", value: input.data };
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
ZodNaN.create = (params) => {
|
|
3450
|
+
return new ZodNaN({
|
|
3451
|
+
typeName: ZodFirstPartyTypeKind.ZodNaN,
|
|
3452
|
+
...processCreateParams(params),
|
|
3453
|
+
});
|
|
3454
|
+
};
|
|
3455
|
+
export const BRAND = Symbol("zod_brand");
|
|
3456
|
+
export class ZodBranded extends ZodType {
|
|
3457
|
+
_parse(input) {
|
|
3458
|
+
const { ctx } = this._processInputParams(input);
|
|
3459
|
+
const data = ctx.data;
|
|
3460
|
+
return this._def.type._parse({
|
|
3461
|
+
data,
|
|
3462
|
+
path: ctx.path,
|
|
3463
|
+
parent: ctx,
|
|
3464
|
+
});
|
|
3465
|
+
}
|
|
3466
|
+
unwrap() {
|
|
3467
|
+
return this._def.type;
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
export class ZodPipeline extends ZodType {
|
|
3471
|
+
_parse(input) {
|
|
3472
|
+
const { status, ctx } = this._processInputParams(input);
|
|
3473
|
+
if (ctx.common.async) {
|
|
3474
|
+
const handleAsync = async () => {
|
|
3475
|
+
const inResult = await this._def.in._parseAsync({
|
|
3476
|
+
data: ctx.data,
|
|
3477
|
+
path: ctx.path,
|
|
3478
|
+
parent: ctx,
|
|
3479
|
+
});
|
|
3480
|
+
if (inResult.status === "aborted")
|
|
3481
|
+
return INVALID;
|
|
3482
|
+
if (inResult.status === "dirty") {
|
|
3483
|
+
status.dirty();
|
|
3484
|
+
return DIRTY(inResult.value);
|
|
3485
|
+
}
|
|
3486
|
+
else {
|
|
3487
|
+
return this._def.out._parseAsync({
|
|
3488
|
+
data: inResult.value,
|
|
3489
|
+
path: ctx.path,
|
|
3490
|
+
parent: ctx,
|
|
3491
|
+
});
|
|
3492
|
+
}
|
|
3493
|
+
};
|
|
3494
|
+
return handleAsync();
|
|
3495
|
+
}
|
|
3496
|
+
else {
|
|
3497
|
+
const inResult = this._def.in._parseSync({
|
|
3498
|
+
data: ctx.data,
|
|
3499
|
+
path: ctx.path,
|
|
3500
|
+
parent: ctx,
|
|
3501
|
+
});
|
|
3502
|
+
if (inResult.status === "aborted")
|
|
3503
|
+
return INVALID;
|
|
3504
|
+
if (inResult.status === "dirty") {
|
|
3505
|
+
status.dirty();
|
|
3506
|
+
return {
|
|
3507
|
+
status: "dirty",
|
|
3508
|
+
value: inResult.value,
|
|
3509
|
+
};
|
|
3510
|
+
}
|
|
3511
|
+
else {
|
|
3512
|
+
return this._def.out._parseSync({
|
|
3513
|
+
data: inResult.value,
|
|
3514
|
+
path: ctx.path,
|
|
3515
|
+
parent: ctx,
|
|
3516
|
+
});
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
static create(a, b) {
|
|
3521
|
+
return new ZodPipeline({
|
|
3522
|
+
in: a,
|
|
3523
|
+
out: b,
|
|
3524
|
+
typeName: ZodFirstPartyTypeKind.ZodPipeline,
|
|
3525
|
+
});
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
export class ZodReadonly extends ZodType {
|
|
3529
|
+
_parse(input) {
|
|
3530
|
+
const result = this._def.innerType._parse(input);
|
|
3531
|
+
const freeze = (data) => {
|
|
3532
|
+
if (isValid(data)) {
|
|
3533
|
+
data.value = Object.freeze(data.value);
|
|
3534
|
+
}
|
|
3535
|
+
return data;
|
|
3536
|
+
};
|
|
3537
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
3538
|
+
}
|
|
3539
|
+
unwrap() {
|
|
3540
|
+
return this._def.innerType;
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
ZodReadonly.create = (type, params) => {
|
|
3544
|
+
return new ZodReadonly({
|
|
3545
|
+
innerType: type,
|
|
3546
|
+
typeName: ZodFirstPartyTypeKind.ZodReadonly,
|
|
3547
|
+
...processCreateParams(params),
|
|
3548
|
+
});
|
|
3549
|
+
};
|
|
3550
|
+
////////////////////////////////////////
|
|
3551
|
+
////////////////////////////////////////
|
|
3552
|
+
////////// //////////
|
|
3553
|
+
////////// z.custom //////////
|
|
3554
|
+
////////// //////////
|
|
3555
|
+
////////////////////////////////////////
|
|
3556
|
+
////////////////////////////////////////
|
|
3557
|
+
function cleanParams(params, data) {
|
|
3558
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
3559
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
3560
|
+
return p2;
|
|
3561
|
+
}
|
|
3562
|
+
export function custom(check, _params = {},
|
|
3563
|
+
/**
|
|
3564
|
+
* @deprecated
|
|
3565
|
+
*
|
|
3566
|
+
* Pass `fatal` into the params object instead:
|
|
3567
|
+
*
|
|
3568
|
+
* ```ts
|
|
3569
|
+
* z.string().custom((val) => val.length > 5, { fatal: false })
|
|
3570
|
+
* ```
|
|
3571
|
+
*
|
|
3572
|
+
*/
|
|
3573
|
+
fatal) {
|
|
3574
|
+
if (check)
|
|
3575
|
+
return ZodAny.create().superRefine((data, ctx) => {
|
|
3576
|
+
const r = check(data);
|
|
3577
|
+
if (r instanceof Promise) {
|
|
3578
|
+
return r.then((r) => {
|
|
3579
|
+
if (!r) {
|
|
3580
|
+
const params = cleanParams(_params, data);
|
|
3581
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
3582
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
3583
|
+
}
|
|
3584
|
+
});
|
|
3585
|
+
}
|
|
3586
|
+
if (!r) {
|
|
3587
|
+
const params = cleanParams(_params, data);
|
|
3588
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
3589
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
3590
|
+
}
|
|
3591
|
+
return;
|
|
3592
|
+
});
|
|
3593
|
+
return ZodAny.create();
|
|
3594
|
+
}
|
|
3595
|
+
export { ZodType as Schema, ZodType as ZodSchema };
|
|
3596
|
+
export const late = {
|
|
3597
|
+
object: ZodObject.lazycreate,
|
|
3598
|
+
};
|
|
3599
|
+
export var ZodFirstPartyTypeKind;
|
|
3600
|
+
(function (ZodFirstPartyTypeKind) {
|
|
3601
|
+
ZodFirstPartyTypeKind["ZodString"] = "ZodString";
|
|
3602
|
+
ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
|
|
3603
|
+
ZodFirstPartyTypeKind["ZodNaN"] = "ZodNaN";
|
|
3604
|
+
ZodFirstPartyTypeKind["ZodBigInt"] = "ZodBigInt";
|
|
3605
|
+
ZodFirstPartyTypeKind["ZodBoolean"] = "ZodBoolean";
|
|
3606
|
+
ZodFirstPartyTypeKind["ZodDate"] = "ZodDate";
|
|
3607
|
+
ZodFirstPartyTypeKind["ZodSymbol"] = "ZodSymbol";
|
|
3608
|
+
ZodFirstPartyTypeKind["ZodUndefined"] = "ZodUndefined";
|
|
3609
|
+
ZodFirstPartyTypeKind["ZodNull"] = "ZodNull";
|
|
3610
|
+
ZodFirstPartyTypeKind["ZodAny"] = "ZodAny";
|
|
3611
|
+
ZodFirstPartyTypeKind["ZodUnknown"] = "ZodUnknown";
|
|
3612
|
+
ZodFirstPartyTypeKind["ZodNever"] = "ZodNever";
|
|
3613
|
+
ZodFirstPartyTypeKind["ZodVoid"] = "ZodVoid";
|
|
3614
|
+
ZodFirstPartyTypeKind["ZodArray"] = "ZodArray";
|
|
3615
|
+
ZodFirstPartyTypeKind["ZodObject"] = "ZodObject";
|
|
3616
|
+
ZodFirstPartyTypeKind["ZodUnion"] = "ZodUnion";
|
|
3617
|
+
ZodFirstPartyTypeKind["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
|
|
3618
|
+
ZodFirstPartyTypeKind["ZodIntersection"] = "ZodIntersection";
|
|
3619
|
+
ZodFirstPartyTypeKind["ZodTuple"] = "ZodTuple";
|
|
3620
|
+
ZodFirstPartyTypeKind["ZodRecord"] = "ZodRecord";
|
|
3621
|
+
ZodFirstPartyTypeKind["ZodMap"] = "ZodMap";
|
|
3622
|
+
ZodFirstPartyTypeKind["ZodSet"] = "ZodSet";
|
|
3623
|
+
ZodFirstPartyTypeKind["ZodFunction"] = "ZodFunction";
|
|
3624
|
+
ZodFirstPartyTypeKind["ZodLazy"] = "ZodLazy";
|
|
3625
|
+
ZodFirstPartyTypeKind["ZodLiteral"] = "ZodLiteral";
|
|
3626
|
+
ZodFirstPartyTypeKind["ZodEnum"] = "ZodEnum";
|
|
3627
|
+
ZodFirstPartyTypeKind["ZodEffects"] = "ZodEffects";
|
|
3628
|
+
ZodFirstPartyTypeKind["ZodNativeEnum"] = "ZodNativeEnum";
|
|
3629
|
+
ZodFirstPartyTypeKind["ZodOptional"] = "ZodOptional";
|
|
3630
|
+
ZodFirstPartyTypeKind["ZodNullable"] = "ZodNullable";
|
|
3631
|
+
ZodFirstPartyTypeKind["ZodDefault"] = "ZodDefault";
|
|
3632
|
+
ZodFirstPartyTypeKind["ZodCatch"] = "ZodCatch";
|
|
3633
|
+
ZodFirstPartyTypeKind["ZodPromise"] = "ZodPromise";
|
|
3634
|
+
ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
|
|
3635
|
+
ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
|
|
3636
|
+
ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
|
|
3637
|
+
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
3638
|
+
// requires TS 4.4+
|
|
3639
|
+
class Class {
|
|
3640
|
+
constructor(..._) { }
|
|
3641
|
+
}
|
|
3642
|
+
const instanceOfType = (
|
|
3643
|
+
// const instanceOfType = <T extends new (...args: any[]) => any>(
|
|
3644
|
+
cls, params = {
|
|
3645
|
+
message: `Input not instance of ${cls.name}`,
|
|
3646
|
+
}) => custom((data) => data instanceof cls, params);
|
|
3647
|
+
const stringType = ZodString.create;
|
|
3648
|
+
const numberType = ZodNumber.create;
|
|
3649
|
+
const nanType = ZodNaN.create;
|
|
3650
|
+
const bigIntType = ZodBigInt.create;
|
|
3651
|
+
const booleanType = ZodBoolean.create;
|
|
3652
|
+
const dateType = ZodDate.create;
|
|
3653
|
+
const symbolType = ZodSymbol.create;
|
|
3654
|
+
const undefinedType = ZodUndefined.create;
|
|
3655
|
+
const nullType = ZodNull.create;
|
|
3656
|
+
const anyType = ZodAny.create;
|
|
3657
|
+
const unknownType = ZodUnknown.create;
|
|
3658
|
+
const neverType = ZodNever.create;
|
|
3659
|
+
const voidType = ZodVoid.create;
|
|
3660
|
+
const arrayType = ZodArray.create;
|
|
3661
|
+
const objectType = ZodObject.create;
|
|
3662
|
+
const strictObjectType = ZodObject.strictCreate;
|
|
3663
|
+
const unionType = ZodUnion.create;
|
|
3664
|
+
const discriminatedUnionType = ZodDiscriminatedUnion.create;
|
|
3665
|
+
const intersectionType = ZodIntersection.create;
|
|
3666
|
+
const tupleType = ZodTuple.create;
|
|
3667
|
+
const recordType = ZodRecord.create;
|
|
3668
|
+
const mapType = ZodMap.create;
|
|
3669
|
+
const setType = ZodSet.create;
|
|
3670
|
+
const functionType = ZodFunction.create;
|
|
3671
|
+
const lazyType = ZodLazy.create;
|
|
3672
|
+
const literalType = ZodLiteral.create;
|
|
3673
|
+
const enumType = ZodEnum.create;
|
|
3674
|
+
const nativeEnumType = ZodNativeEnum.create;
|
|
3675
|
+
const promiseType = ZodPromise.create;
|
|
3676
|
+
const effectsType = ZodEffects.create;
|
|
3677
|
+
const optionalType = ZodOptional.create;
|
|
3678
|
+
const nullableType = ZodNullable.create;
|
|
3679
|
+
const preprocessType = ZodEffects.createWithPreprocess;
|
|
3680
|
+
const pipelineType = ZodPipeline.create;
|
|
3681
|
+
const ostring = () => stringType().optional();
|
|
3682
|
+
const onumber = () => numberType().optional();
|
|
3683
|
+
const oboolean = () => booleanType().optional();
|
|
3684
|
+
export const coerce = {
|
|
3685
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
3686
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
3687
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
3688
|
+
...arg,
|
|
3689
|
+
coerce: true,
|
|
3690
|
+
})),
|
|
3691
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
3692
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
|
|
3693
|
+
};
|
|
3694
|
+
export { anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, dateType as date, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, instanceOfType as instanceof, intersectionType as intersection, lazyType as lazy, literalType as literal, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, recordType as record, setType as set, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, voidType as void, };
|
|
3695
|
+
export const NEVER = INVALID;
|