@openclaw/matrix 2026.5.20 → 2026.5.24-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,2622 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2022-2023 The Matrix.org Foundation C.I.C.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import anotherjson from "another-json";
|
|
18
|
+
import * as RustSdkCryptoJs from "@matrix-org/matrix-sdk-crypto-wasm";
|
|
19
|
+
|
|
20
|
+
import type { IMegolmSessionData } from "../@types/crypto.ts";
|
|
21
|
+
import { KnownMembership } from "../@types/membership.ts";
|
|
22
|
+
import { type IDeviceLists, type IToDeviceEvent, type ReceivedToDeviceMessage } from "../sync-accumulator.ts";
|
|
23
|
+
import type { ToDeviceBatch, ToDevicePayload } from "../models/ToDeviceMessage.ts";
|
|
24
|
+
import { type MatrixEvent, MatrixEventEvent } from "../models/event.ts";
|
|
25
|
+
import { type Room } from "../models/room.ts";
|
|
26
|
+
import { type RoomMember } from "../models/room-member.ts";
|
|
27
|
+
import {
|
|
28
|
+
type BackupDecryptor,
|
|
29
|
+
type CryptoBackend,
|
|
30
|
+
DecryptionError,
|
|
31
|
+
type EventDecryptionResult,
|
|
32
|
+
type OnSyncCompletedData,
|
|
33
|
+
} from "../common-crypto/CryptoBackend.ts";
|
|
34
|
+
import { type Logger, LogSpan } from "../logger.ts";
|
|
35
|
+
import { type IHttpOpts, type MatrixHttpApi, Method } from "../http-api/index.ts";
|
|
36
|
+
import { RoomEncryptor } from "./RoomEncryptor.ts";
|
|
37
|
+
import { OutgoingRequestProcessor } from "./OutgoingRequestProcessor.ts";
|
|
38
|
+
import { KeyClaimManager } from "./KeyClaimManager.ts";
|
|
39
|
+
import { MapWithDefault } from "../utils.ts";
|
|
40
|
+
import {
|
|
41
|
+
AllDevicesIsolationMode,
|
|
42
|
+
type BackupTrustInfo,
|
|
43
|
+
type BootstrapCrossSigningOpts,
|
|
44
|
+
type CreateSecretStorageOpts,
|
|
45
|
+
CrossSigningKey,
|
|
46
|
+
type CrossSigningKeyInfo,
|
|
47
|
+
type CrossSigningStatus,
|
|
48
|
+
type CryptoApi,
|
|
49
|
+
type CryptoCallbacks,
|
|
50
|
+
CryptoEvent,
|
|
51
|
+
type CryptoEventHandlerMap,
|
|
52
|
+
DecryptionFailureCode,
|
|
53
|
+
DecryptionKeyDoesNotMatchError,
|
|
54
|
+
deriveRecoveryKeyFromPassphrase,
|
|
55
|
+
type DeviceIsolationMode,
|
|
56
|
+
DeviceIsolationModeKind,
|
|
57
|
+
DeviceVerificationStatus,
|
|
58
|
+
encodeRecoveryKey,
|
|
59
|
+
type EventEncryptionInfo,
|
|
60
|
+
EventShieldColour,
|
|
61
|
+
EventShieldReason,
|
|
62
|
+
type GeneratedSecretStorageKey,
|
|
63
|
+
type ImportRoomKeysOpts,
|
|
64
|
+
ImportRoomKeyStage,
|
|
65
|
+
type KeyBackupCheck,
|
|
66
|
+
type KeyBackupInfo,
|
|
67
|
+
type KeyBackupRestoreOpts,
|
|
68
|
+
type KeyBackupRestoreResult,
|
|
69
|
+
type OwnDeviceKeys,
|
|
70
|
+
type SecretStorageStatus,
|
|
71
|
+
type StartDehydrationOpts,
|
|
72
|
+
UserVerificationStatus,
|
|
73
|
+
type VerificationRequest,
|
|
74
|
+
} from "../crypto-api/index.ts";
|
|
75
|
+
import { deviceKeysToDeviceMap, rustDeviceToJsDevice } from "./device-converter.ts";
|
|
76
|
+
import { type IDownloadKeyResult, type IQueryKeysRequest } from "../client.ts";
|
|
77
|
+
import { type Device, type DeviceMap } from "../models/device.ts";
|
|
78
|
+
import {
|
|
79
|
+
SECRET_STORAGE_ALGORITHM_V1_AES,
|
|
80
|
+
type SecretStorageKey,
|
|
81
|
+
type ServerSideSecretStorage,
|
|
82
|
+
} from "../secret-storage.ts";
|
|
83
|
+
import { CrossSigningIdentity } from "./CrossSigningIdentity.ts";
|
|
84
|
+
import { secretStorageContainsCrossSigningKeys } from "./secret-storage.ts";
|
|
85
|
+
import { isVerificationEvent, RustVerificationRequest, verificationMethodIdentifierToMethod } from "./verification.ts";
|
|
86
|
+
import { EventType, MsgType } from "../@types/event.ts";
|
|
87
|
+
import { TypedEventEmitter } from "../models/typed-event-emitter.ts";
|
|
88
|
+
import { decryptionKeyMatchesKeyBackupInfo, RustBackupManager } from "./backup.ts";
|
|
89
|
+
import { TypedReEmitter } from "../ReEmitter.ts";
|
|
90
|
+
import { secureRandomString } from "../randomstring.ts";
|
|
91
|
+
import { ClientStoppedError } from "../errors.ts";
|
|
92
|
+
import { type ISignatures } from "../@types/signed.ts";
|
|
93
|
+
import { decodeBase64, encodeBase64 } from "../base64.ts";
|
|
94
|
+
import { OutgoingRequestsManager } from "./OutgoingRequestsManager.ts";
|
|
95
|
+
import { PerSessionKeyBackupDownloader } from "./PerSessionKeyBackupDownloader.ts";
|
|
96
|
+
import { DehydratedDeviceManager } from "./DehydratedDeviceManager.ts";
|
|
97
|
+
import { VerificationMethod } from "../types.ts";
|
|
98
|
+
import { keyFromAuthData } from "../common-crypto/key-passphrase.ts";
|
|
99
|
+
import { type UIAuthCallback } from "../interactive-auth.ts";
|
|
100
|
+
import { getHttpUriForMxc } from "../content-repo.ts";
|
|
101
|
+
import { type RoomState } from "../matrix.ts";
|
|
102
|
+
|
|
103
|
+
const ALL_VERIFICATION_METHODS = [
|
|
104
|
+
VerificationMethod.Sas,
|
|
105
|
+
VerificationMethod.ScanQrCode,
|
|
106
|
+
VerificationMethod.ShowQrCode,
|
|
107
|
+
VerificationMethod.Reciprocate,
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
interface ISignableObject {
|
|
111
|
+
signatures?: ISignatures;
|
|
112
|
+
unsigned?: object;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** The maximum time, in milliseconds, since we accepted an invite, that we should accept a key bundle. */
|
|
116
|
+
export const MAX_INVITE_ACCEPTANCE_MS_FOR_KEY_BUNDLE = 24 * 60 * 60 * 1000; // 24 hours
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* An implementation of {@link CryptoBackend} using the Rust matrix-sdk-crypto.
|
|
120
|
+
*
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventHandlerMap> implements CryptoBackend {
|
|
124
|
+
/**
|
|
125
|
+
* The number of iterations to use when deriving a recovery key from a passphrase.
|
|
126
|
+
*/
|
|
127
|
+
private readonly RECOVERY_KEY_DERIVATION_ITERATIONS = 500000;
|
|
128
|
+
|
|
129
|
+
private _trustCrossSignedDevices = true;
|
|
130
|
+
private deviceIsolationMode: DeviceIsolationMode = new AllDevicesIsolationMode(false);
|
|
131
|
+
|
|
132
|
+
/** whether {@link stop} has been called */
|
|
133
|
+
private stopped = false;
|
|
134
|
+
|
|
135
|
+
/** mapping of roomId → encryptor class */
|
|
136
|
+
private roomEncryptors: Record<string, RoomEncryptor> = {};
|
|
137
|
+
|
|
138
|
+
private eventDecryptor: EventDecryptor;
|
|
139
|
+
private keyClaimManager: KeyClaimManager;
|
|
140
|
+
private outgoingRequestProcessor: OutgoingRequestProcessor;
|
|
141
|
+
private crossSigningIdentity: CrossSigningIdentity;
|
|
142
|
+
private readonly backupManager: RustBackupManager;
|
|
143
|
+
private outgoingRequestsManager: OutgoingRequestsManager;
|
|
144
|
+
private readonly perSessionBackupDownloader: PerSessionKeyBackupDownloader;
|
|
145
|
+
private readonly dehydratedDeviceManager: DehydratedDeviceManager;
|
|
146
|
+
private readonly reemitter = new TypedReEmitter<RustCryptoEvents, CryptoEventHandlerMap>(this);
|
|
147
|
+
|
|
148
|
+
public constructor(
|
|
149
|
+
private readonly logger: Logger,
|
|
150
|
+
|
|
151
|
+
/** The `OlmMachine` from the underlying rust crypto sdk. */
|
|
152
|
+
private readonly olmMachine: RustSdkCryptoJs.OlmMachine,
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Low-level HTTP interface: used to make outgoing requests required by the rust SDK.
|
|
156
|
+
*
|
|
157
|
+
* We expect it to set the access token, etc.
|
|
158
|
+
*/
|
|
159
|
+
private readonly http: MatrixHttpApi<IHttpOpts & { onlyData: true }>,
|
|
160
|
+
|
|
161
|
+
/** The local user's User ID. */
|
|
162
|
+
private readonly userId: string,
|
|
163
|
+
|
|
164
|
+
/** The local user's Device ID. */
|
|
165
|
+
_deviceId: string,
|
|
166
|
+
|
|
167
|
+
/** Interface to server-side secret storage */
|
|
168
|
+
private readonly secretStorage: ServerSideSecretStorage,
|
|
169
|
+
|
|
170
|
+
/** Crypto callbacks provided by the application */
|
|
171
|
+
private readonly cryptoCallbacks: CryptoCallbacks,
|
|
172
|
+
|
|
173
|
+
/** Enable support for encrypted state events under MSC4362. */
|
|
174
|
+
private readonly enableEncryptedStateEvents: boolean = false,
|
|
175
|
+
) {
|
|
176
|
+
super();
|
|
177
|
+
this.outgoingRequestProcessor = new OutgoingRequestProcessor(logger, olmMachine, http);
|
|
178
|
+
this.outgoingRequestsManager = new OutgoingRequestsManager(
|
|
179
|
+
this.logger,
|
|
180
|
+
olmMachine,
|
|
181
|
+
this.outgoingRequestProcessor,
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
this.keyClaimManager = new KeyClaimManager(olmMachine, this.outgoingRequestProcessor);
|
|
185
|
+
|
|
186
|
+
this.backupManager = new RustBackupManager(logger, olmMachine, http, this.outgoingRequestProcessor);
|
|
187
|
+
this.perSessionBackupDownloader = new PerSessionKeyBackupDownloader(
|
|
188
|
+
this.logger,
|
|
189
|
+
this.olmMachine,
|
|
190
|
+
this.http,
|
|
191
|
+
this.backupManager,
|
|
192
|
+
);
|
|
193
|
+
this.dehydratedDeviceManager = new DehydratedDeviceManager(
|
|
194
|
+
this.logger,
|
|
195
|
+
olmMachine,
|
|
196
|
+
http,
|
|
197
|
+
this.outgoingRequestProcessor,
|
|
198
|
+
secretStorage,
|
|
199
|
+
);
|
|
200
|
+
this.eventDecryptor = new EventDecryptor(this.logger, olmMachine, this.perSessionBackupDownloader);
|
|
201
|
+
|
|
202
|
+
// re-emit the events emitted by managers
|
|
203
|
+
this.reemitter.reEmit(this.backupManager, [
|
|
204
|
+
CryptoEvent.KeyBackupStatus,
|
|
205
|
+
CryptoEvent.KeyBackupSessionsRemaining,
|
|
206
|
+
CryptoEvent.KeyBackupFailed,
|
|
207
|
+
CryptoEvent.KeyBackupDecryptionKeyCached,
|
|
208
|
+
]);
|
|
209
|
+
this.reemitter.reEmit(this.dehydratedDeviceManager, [
|
|
210
|
+
CryptoEvent.DehydratedDeviceCreated,
|
|
211
|
+
CryptoEvent.DehydratedDeviceUploaded,
|
|
212
|
+
CryptoEvent.RehydrationStarted,
|
|
213
|
+
CryptoEvent.RehydrationProgress,
|
|
214
|
+
CryptoEvent.RehydrationCompleted,
|
|
215
|
+
CryptoEvent.RehydrationError,
|
|
216
|
+
CryptoEvent.DehydrationKeyCached,
|
|
217
|
+
CryptoEvent.DehydratedDeviceRotationError,
|
|
218
|
+
]);
|
|
219
|
+
|
|
220
|
+
this.crossSigningIdentity = new CrossSigningIdentity(
|
|
221
|
+
logger,
|
|
222
|
+
olmMachine,
|
|
223
|
+
this.outgoingRequestProcessor,
|
|
224
|
+
secretStorage,
|
|
225
|
+
);
|
|
226
|
+
|
|
227
|
+
// Check and start in background the key backup connection
|
|
228
|
+
this.checkKeyBackupAndEnable();
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Return the OlmMachine only if {@link RustCrypto#stop} has not been called.
|
|
233
|
+
*
|
|
234
|
+
* This allows us to better handle race conditions where the client is stopped before or during a crypto API call.
|
|
235
|
+
*
|
|
236
|
+
* @throws ClientStoppedError if {@link RustCrypto#stop} has been called.
|
|
237
|
+
*/
|
|
238
|
+
private getOlmMachineOrThrow(): RustSdkCryptoJs.OlmMachine {
|
|
239
|
+
if (this.stopped) {
|
|
240
|
+
throw new ClientStoppedError();
|
|
241
|
+
}
|
|
242
|
+
return this.olmMachine;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
246
|
+
//
|
|
247
|
+
// CryptoBackend implementation
|
|
248
|
+
//
|
|
249
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
250
|
+
|
|
251
|
+
public set globalErrorOnUnknownDevices(_v: boolean) {
|
|
252
|
+
// Not implemented for rust crypto.
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
public get globalErrorOnUnknownDevices(): boolean {
|
|
256
|
+
// Not implemented for rust crypto.
|
|
257
|
+
return false;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
public stop(): void {
|
|
261
|
+
// stop() may be called multiple times, but attempting to close() the OlmMachine twice
|
|
262
|
+
// will cause an error.
|
|
263
|
+
if (this.stopped) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
this.stopped = true;
|
|
267
|
+
|
|
268
|
+
this.keyClaimManager.stop();
|
|
269
|
+
this.backupManager.stop();
|
|
270
|
+
this.outgoingRequestsManager.stop();
|
|
271
|
+
this.perSessionBackupDownloader.stop();
|
|
272
|
+
this.dehydratedDeviceManager.stop();
|
|
273
|
+
|
|
274
|
+
// make sure we close() the OlmMachine; doing so means that all the Rust objects will be
|
|
275
|
+
// cleaned up; in particular, the indexeddb connections will be closed, which means they
|
|
276
|
+
// can then be deleted.
|
|
277
|
+
this.olmMachine.close();
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
public async encryptEvent(event: MatrixEvent, _room: Room): Promise<void> {
|
|
281
|
+
const roomId = event.getRoomId()!;
|
|
282
|
+
const encryptor = this.roomEncryptors[roomId];
|
|
283
|
+
|
|
284
|
+
if (!encryptor) {
|
|
285
|
+
throw new Error(`Cannot encrypt event in unconfigured room ${roomId}`);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
await encryptor.encryptEvent(event, this.globalBlacklistUnverifiedDevices, this.deviceIsolationMode);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
public async decryptEvent(event: MatrixEvent): Promise<EventDecryptionResult> {
|
|
292
|
+
const roomId = event.getRoomId();
|
|
293
|
+
if (!roomId) {
|
|
294
|
+
// presumably, a to-device message. These are normally decrypted in preprocessToDeviceMessages
|
|
295
|
+
// so the fact it has come back here suggests that decryption failed.
|
|
296
|
+
//
|
|
297
|
+
// once we drop support for the libolm crypto implementation, we can stop passing to-device messages
|
|
298
|
+
// through decryptEvent and hence get rid of this case.
|
|
299
|
+
throw new Error("to-device event was not decrypted in preprocessToDeviceMessages");
|
|
300
|
+
}
|
|
301
|
+
return await this.eventDecryptor.attemptEventDecryption(event, this.deviceIsolationMode);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Implementation of {@link CryptoBackend#getBackupDecryptor}.
|
|
306
|
+
*/
|
|
307
|
+
public async getBackupDecryptor(backupInfo: KeyBackupInfo, privKey: Uint8Array): Promise<BackupDecryptor> {
|
|
308
|
+
if (!(privKey instanceof Uint8Array)) {
|
|
309
|
+
throw new Error(`getBackupDecryptor: expects Uint8Array`);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if (backupInfo.algorithm != "m.megolm_backup.v1.curve25519-aes-sha2") {
|
|
313
|
+
throw new Error(`getBackupDecryptor: Unsupported algorithm ${backupInfo.algorithm}`);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
const backupDecryptionKey = RustSdkCryptoJs.BackupDecryptionKey.fromBase64(encodeBase64(privKey));
|
|
317
|
+
if (!decryptionKeyMatchesKeyBackupInfo(backupDecryptionKey, backupInfo)) {
|
|
318
|
+
throw new Error(`getBackupDecryptor: key backup on server does not match the decryption key`);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
return this.backupManager.createBackupDecryptor(backupDecryptionKey);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Implementation of {@link CryptoBackend#importBackedUpRoomKeys}.
|
|
326
|
+
*/
|
|
327
|
+
public async importBackedUpRoomKeys(
|
|
328
|
+
keys: IMegolmSessionData[],
|
|
329
|
+
backupVersion: string,
|
|
330
|
+
opts?: ImportRoomKeysOpts,
|
|
331
|
+
): Promise<void> {
|
|
332
|
+
return await this.backupManager.importBackedUpRoomKeys(keys, backupVersion, opts);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Implementation of {@link CryptoBackend.maybeAcceptKeyBundle}.
|
|
337
|
+
*/
|
|
338
|
+
public async maybeAcceptKeyBundle(roomId: string, inviter: string): Promise<boolean> {
|
|
339
|
+
// TODO: retry this if it gets interrupted or it fails. (https://github.com/matrix-org/matrix-rust-sdk/issues/5112)
|
|
340
|
+
// TODO: do this in the background.
|
|
341
|
+
|
|
342
|
+
const logger = new LogSpan(this.logger, `maybeAcceptKeyBundle(${roomId}, ${inviter})`);
|
|
343
|
+
|
|
344
|
+
// Make sure we have an up-to-date idea of the inviter's cross-signing keys, so that we can check if the
|
|
345
|
+
// device that sent us the bundle data was correctly cross-signed.
|
|
346
|
+
//
|
|
347
|
+
// TODO: it would be nice to skip this step if we have an up-to-date copy of the inviter's cross-signing keys,
|
|
348
|
+
// but we don't have an easy way to check that. Possibly the rust side could trigger a key request and then
|
|
349
|
+
// block until it happens.
|
|
350
|
+
logger.info(`Checking inviter cross-signing keys`);
|
|
351
|
+
const request = this.olmMachine.queryKeysForUsers([new RustSdkCryptoJs.UserId(inviter)]);
|
|
352
|
+
await this.outgoingRequestProcessor.makeOutgoingRequest(request);
|
|
353
|
+
|
|
354
|
+
const bundleData = await this.olmMachine.getReceivedRoomKeyBundleData(
|
|
355
|
+
new RustSdkCryptoJs.RoomId(roomId),
|
|
356
|
+
new RustSdkCryptoJs.UserId(inviter),
|
|
357
|
+
);
|
|
358
|
+
if (!bundleData) {
|
|
359
|
+
logger.info("No key bundle found for user");
|
|
360
|
+
return false;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
logger.info(`Fetching key bundle ${bundleData.url}`);
|
|
364
|
+
const url = getHttpUriForMxc(
|
|
365
|
+
this.http.opts.baseUrl,
|
|
366
|
+
bundleData.url,
|
|
367
|
+
undefined,
|
|
368
|
+
undefined,
|
|
369
|
+
undefined,
|
|
370
|
+
/* allowDirectLinks */ false,
|
|
371
|
+
/* allowRedirects */ true,
|
|
372
|
+
/* useAuthentication */ true,
|
|
373
|
+
);
|
|
374
|
+
let encryptedBundle: Uint8Array;
|
|
375
|
+
try {
|
|
376
|
+
const bundleUrl = new URL(url);
|
|
377
|
+
const encryptedBundleBlob = await this.http.authedRequest<Blob>(
|
|
378
|
+
Method.Get,
|
|
379
|
+
bundleUrl.pathname + bundleUrl.search,
|
|
380
|
+
{},
|
|
381
|
+
undefined,
|
|
382
|
+
{
|
|
383
|
+
rawResponseBody: true,
|
|
384
|
+
prefix: "",
|
|
385
|
+
},
|
|
386
|
+
);
|
|
387
|
+
logger.info(`Received blob of length ${encryptedBundleBlob.size}`);
|
|
388
|
+
encryptedBundle = new Uint8Array(await encryptedBundleBlob.arrayBuffer());
|
|
389
|
+
} catch (err) {
|
|
390
|
+
logger.warn(`Error downloading encrypted bundle from ${url}:`, err);
|
|
391
|
+
throw err;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
try {
|
|
395
|
+
await this.olmMachine.receiveRoomKeyBundle(bundleData, encryptedBundle);
|
|
396
|
+
} catch (err) {
|
|
397
|
+
logger.warn(`Error receiving encrypted bundle:`, err);
|
|
398
|
+
|
|
399
|
+
throw err;
|
|
400
|
+
} finally {
|
|
401
|
+
// Even if we were unable to import the bundle, we still clear the flag that indicates that we
|
|
402
|
+
// are waiting for the bundle to be received. The only reason this can happen is that the bundle was
|
|
403
|
+
// malformed somehow, so we don't want to keep retrying it.
|
|
404
|
+
await this.olmMachine.clearRoomPendingKeyBundle(new RustSdkCryptoJs.RoomId(roomId));
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Implementation of {@link CryptoBackend.markRoomAsPendingKeyBundle}.
|
|
412
|
+
*/
|
|
413
|
+
public async markRoomAsPendingKeyBundle(roomId: string, inviter: string): Promise<void> {
|
|
414
|
+
await this.olmMachine.storeRoomPendingKeyBundle(
|
|
415
|
+
new RustSdkCryptoJs.RoomId(roomId),
|
|
416
|
+
new RustSdkCryptoJs.UserId(inviter),
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
421
|
+
//
|
|
422
|
+
// CryptoApi implementation
|
|
423
|
+
//
|
|
424
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
425
|
+
|
|
426
|
+
public globalBlacklistUnverifiedDevices = false;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Implementation of {@link CryptoApi#getVersion}.
|
|
430
|
+
*/
|
|
431
|
+
public getVersion(): string {
|
|
432
|
+
const versions = RustSdkCryptoJs.getVersions();
|
|
433
|
+
return `Rust SDK ${versions.matrix_sdk_crypto} (${versions.git_sha}), Vodozemac ${versions.vodozemac}`;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Implementation of {@link CryptoApi#setDeviceIsolationMode}.
|
|
438
|
+
*/
|
|
439
|
+
public setDeviceIsolationMode(isolationMode: DeviceIsolationMode): void {
|
|
440
|
+
this.deviceIsolationMode = isolationMode;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Implementation of {@link CryptoApi#isEncryptionEnabledInRoom}.
|
|
445
|
+
*/
|
|
446
|
+
public async isEncryptionEnabledInRoom(roomId: string): Promise<boolean> {
|
|
447
|
+
const roomSettings: RustSdkCryptoJs.RoomSettings | undefined = await this.olmMachine.getRoomSettings(
|
|
448
|
+
new RustSdkCryptoJs.RoomId(roomId),
|
|
449
|
+
);
|
|
450
|
+
return Boolean(roomSettings?.algorithm);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Implementation of {@link CryptoApi#isStateEncryptionEnabledInRoom}.
|
|
455
|
+
*/
|
|
456
|
+
public async isStateEncryptionEnabledInRoom(roomId: string): Promise<boolean> {
|
|
457
|
+
const roomSettings: RustSdkCryptoJs.RoomSettings | undefined = await this.olmMachine.getRoomSettings(
|
|
458
|
+
new RustSdkCryptoJs.RoomId(roomId),
|
|
459
|
+
);
|
|
460
|
+
return Boolean(roomSettings?.encryptStateEvents);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Implementation of {@link CryptoApi#getOwnDeviceKeys}.
|
|
465
|
+
*/
|
|
466
|
+
public async getOwnDeviceKeys(): Promise<OwnDeviceKeys> {
|
|
467
|
+
const keys = this.olmMachine.identityKeys;
|
|
468
|
+
return { ed25519: keys.ed25519.toBase64(), curve25519: keys.curve25519.toBase64() };
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
public prepareToEncrypt(room: Room): void {
|
|
472
|
+
const encryptor = this.roomEncryptors[room.roomId];
|
|
473
|
+
|
|
474
|
+
if (encryptor) {
|
|
475
|
+
encryptor.prepareForEncryption(this.globalBlacklistUnverifiedDevices, this.deviceIsolationMode);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
public forceDiscardSession(roomId: string): Promise<void> {
|
|
480
|
+
return this.roomEncryptors[roomId]?.forceDiscardSession();
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
public async exportRoomKeys(): Promise<IMegolmSessionData[]> {
|
|
484
|
+
const raw = await this.olmMachine.exportRoomKeys(() => true);
|
|
485
|
+
return JSON.parse(raw);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
public async exportRoomKeysAsJson(): Promise<string> {
|
|
489
|
+
return await this.olmMachine.exportRoomKeys(() => true);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
public async importRoomKeys(keys: IMegolmSessionData[], opts?: ImportRoomKeysOpts): Promise<void> {
|
|
493
|
+
return await this.backupManager.importRoomKeys(keys, opts);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
public async importRoomKeysAsJson(keys: string, opts?: ImportRoomKeysOpts): Promise<void> {
|
|
497
|
+
return await this.backupManager.importRoomKeysAsJson(keys, opts);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Implementation of {@link CryptoApi.userHasCrossSigningKeys}.
|
|
502
|
+
*/
|
|
503
|
+
public async userHasCrossSigningKeys(userId = this.userId, downloadUncached = false): Promise<boolean> {
|
|
504
|
+
// TODO: could probably do with a more efficient way of doing this than returning the whole set and searching
|
|
505
|
+
const rustTrackedUsers: Set<RustSdkCryptoJs.UserId> = await this.olmMachine.trackedUsers();
|
|
506
|
+
let rustTrackedUser: RustSdkCryptoJs.UserId | undefined;
|
|
507
|
+
for (const u of rustTrackedUsers) {
|
|
508
|
+
if (userId === u.toString()) {
|
|
509
|
+
rustTrackedUser = u;
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
if (rustTrackedUser !== undefined) {
|
|
515
|
+
if (userId === this.userId) {
|
|
516
|
+
/* make sure we have an *up-to-date* idea of the user's cross-signing keys. This is important, because if we
|
|
517
|
+
* return "false" here, we will end up generating new cross-signing keys and replacing the existing ones.
|
|
518
|
+
*/
|
|
519
|
+
const request = this.olmMachine.queryKeysForUsers(
|
|
520
|
+
// clone as rust layer will take ownership and it's reused later
|
|
521
|
+
[rustTrackedUser.clone()],
|
|
522
|
+
);
|
|
523
|
+
await this.outgoingRequestProcessor.makeOutgoingRequest(request);
|
|
524
|
+
}
|
|
525
|
+
const userIdentity = await this.olmMachine.getIdentity(rustTrackedUser);
|
|
526
|
+
userIdentity?.free();
|
|
527
|
+
return userIdentity !== undefined;
|
|
528
|
+
} else if (downloadUncached) {
|
|
529
|
+
// Download the cross signing keys and check if the master key is available
|
|
530
|
+
const keyResult = await this.downloadDeviceList(new Set([userId]));
|
|
531
|
+
const keys = keyResult.master_keys?.[userId];
|
|
532
|
+
|
|
533
|
+
// No master key
|
|
534
|
+
if (!keys) return false;
|
|
535
|
+
|
|
536
|
+
// `keys` is an object with { [`ed25519:${pubKey}`]: pubKey }
|
|
537
|
+
// We assume only a single key, and we want the bare form without type
|
|
538
|
+
// prefix, so we select the values.
|
|
539
|
+
return Boolean(Object.values(keys.keys)[0]);
|
|
540
|
+
} else {
|
|
541
|
+
return false;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Get the device information for the given list of users.
|
|
547
|
+
*
|
|
548
|
+
* @param userIds - The users to fetch.
|
|
549
|
+
* @param downloadUncached - If true, download the device list for users whose device list we are not
|
|
550
|
+
* currently tracking. Defaults to false, in which case such users will not appear at all in the result map.
|
|
551
|
+
*
|
|
552
|
+
* @returns A map `{@link DeviceMap}`.
|
|
553
|
+
*/
|
|
554
|
+
public async getUserDeviceInfo(userIds: string[], downloadUncached = false): Promise<DeviceMap> {
|
|
555
|
+
const deviceMapByUserId = new Map<string, Map<string, Device>>();
|
|
556
|
+
const rustTrackedUsers: Set<RustSdkCryptoJs.UserId> = await this.getOlmMachineOrThrow().trackedUsers();
|
|
557
|
+
|
|
558
|
+
// Convert RustSdkCryptoJs.UserId to a `Set<string>`
|
|
559
|
+
const trackedUsers = new Set<string>();
|
|
560
|
+
rustTrackedUsers.forEach((rustUserId) => trackedUsers.add(rustUserId.toString()));
|
|
561
|
+
|
|
562
|
+
// Keep untracked user to download their keys after
|
|
563
|
+
const untrackedUsers: Set<string> = new Set();
|
|
564
|
+
|
|
565
|
+
for (const userId of userIds) {
|
|
566
|
+
// if this is a tracked user, we can just fetch the device list from the rust-sdk
|
|
567
|
+
// (NB: this is probably ok even if we race with a leave event such that we stop tracking the user's
|
|
568
|
+
// devices: the rust-sdk will return the last-known device list, which will be good enough.)
|
|
569
|
+
if (trackedUsers.has(userId)) {
|
|
570
|
+
deviceMapByUserId.set(userId, await this.getUserDevices(userId));
|
|
571
|
+
} else {
|
|
572
|
+
untrackedUsers.add(userId);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// for any users whose device lists we are not tracking, fall back to downloading the device list
|
|
577
|
+
// over HTTP.
|
|
578
|
+
if (downloadUncached && untrackedUsers.size >= 1) {
|
|
579
|
+
const queryResult = await this.downloadDeviceList(untrackedUsers);
|
|
580
|
+
Object.entries(queryResult.device_keys).forEach(([userId, deviceKeys]) =>
|
|
581
|
+
deviceMapByUserId.set(userId, deviceKeysToDeviceMap(deviceKeys)),
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
return deviceMapByUserId;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Get the device list for the given user from the olm machine
|
|
590
|
+
* @param userId - Rust SDK UserId
|
|
591
|
+
*/
|
|
592
|
+
private async getUserDevices(userId: string): Promise<Map<string, Device>> {
|
|
593
|
+
const rustUserId = new RustSdkCryptoJs.UserId(userId);
|
|
594
|
+
|
|
595
|
+
// For reasons I don't really understand, the Javascript FinalizationRegistry doesn't seem to run the
|
|
596
|
+
// registered callbacks when `userDevices` goes out of scope, nor when the individual devices in the array
|
|
597
|
+
// returned by `userDevices.devices` do so.
|
|
598
|
+
//
|
|
599
|
+
// This is particularly problematic, because each of those structures holds a reference to the
|
|
600
|
+
// VerificationMachine, which in turn holds a reference to the IndexeddbCryptoStore. Hence, we end up leaking
|
|
601
|
+
// open connections to the crypto store, which means the store can't be deleted on logout.
|
|
602
|
+
//
|
|
603
|
+
// To fix this, we explicitly call `.free` on each of the objects, which tells the rust code to drop the
|
|
604
|
+
// allocated memory and decrement the refcounts for the crypto store.
|
|
605
|
+
|
|
606
|
+
// Wait for up to a second for any in-flight device list requests to complete.
|
|
607
|
+
// The reason for this isn't so much to avoid races (some level of raciness is
|
|
608
|
+
// inevitable for this method) but to make testing easier.
|
|
609
|
+
const userDevices: RustSdkCryptoJs.UserDevices = await this.olmMachine.getUserDevices(rustUserId, 1);
|
|
610
|
+
try {
|
|
611
|
+
const deviceArray: RustSdkCryptoJs.Device[] = userDevices.devices();
|
|
612
|
+
try {
|
|
613
|
+
return new Map(
|
|
614
|
+
deviceArray.map((device) => [device.deviceId.toString(), rustDeviceToJsDevice(device, rustUserId)]),
|
|
615
|
+
);
|
|
616
|
+
} finally {
|
|
617
|
+
deviceArray.forEach((d) => d.free());
|
|
618
|
+
}
|
|
619
|
+
} finally {
|
|
620
|
+
userDevices.free();
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Download the given user keys by calling `/keys/query` request
|
|
626
|
+
* @param untrackedUsers - download keys of these users
|
|
627
|
+
*/
|
|
628
|
+
private async downloadDeviceList(untrackedUsers: Set<string>): Promise<IDownloadKeyResult> {
|
|
629
|
+
const queryBody: IQueryKeysRequest = { device_keys: {} };
|
|
630
|
+
untrackedUsers.forEach((user) => (queryBody.device_keys[user] = []));
|
|
631
|
+
|
|
632
|
+
return await this.http.authedRequest(Method.Post, "/_matrix/client/v3/keys/query", undefined, queryBody, {
|
|
633
|
+
prefix: "",
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Implementation of {@link CryptoApi#getTrustCrossSignedDevices}.
|
|
639
|
+
*/
|
|
640
|
+
public getTrustCrossSignedDevices(): boolean {
|
|
641
|
+
return this._trustCrossSignedDevices;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Implementation of {@link CryptoApi#setTrustCrossSignedDevices}.
|
|
646
|
+
*/
|
|
647
|
+
public setTrustCrossSignedDevices(val: boolean): void {
|
|
648
|
+
this._trustCrossSignedDevices = val;
|
|
649
|
+
// TODO: legacy crypto goes through the list of known devices and emits DeviceVerificationChanged
|
|
650
|
+
// events. Maybe we need to do the same?
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Mark the given device as locally verified.
|
|
655
|
+
*
|
|
656
|
+
* Implementation of {@link CryptoApi#setDeviceVerified}.
|
|
657
|
+
*/
|
|
658
|
+
public async setDeviceVerified(userId: string, deviceId: string, verified = true): Promise<void> {
|
|
659
|
+
const device: RustSdkCryptoJs.Device | undefined = await this.olmMachine.getDevice(
|
|
660
|
+
new RustSdkCryptoJs.UserId(userId),
|
|
661
|
+
new RustSdkCryptoJs.DeviceId(deviceId),
|
|
662
|
+
);
|
|
663
|
+
|
|
664
|
+
if (!device) {
|
|
665
|
+
throw new Error(`Unknown device ${userId}|${deviceId}`);
|
|
666
|
+
}
|
|
667
|
+
try {
|
|
668
|
+
await device.setLocalTrust(
|
|
669
|
+
verified ? RustSdkCryptoJs.LocalTrust.Verified : RustSdkCryptoJs.LocalTrust.Unset,
|
|
670
|
+
);
|
|
671
|
+
} finally {
|
|
672
|
+
device.free();
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Blindly cross-sign one of our other devices.
|
|
678
|
+
*
|
|
679
|
+
* Implementation of {@link CryptoApi#crossSignDevice}.
|
|
680
|
+
*/
|
|
681
|
+
public async crossSignDevice(deviceId: string): Promise<void> {
|
|
682
|
+
const device: RustSdkCryptoJs.Device | undefined = await this.olmMachine.getDevice(
|
|
683
|
+
new RustSdkCryptoJs.UserId(this.userId),
|
|
684
|
+
new RustSdkCryptoJs.DeviceId(deviceId),
|
|
685
|
+
);
|
|
686
|
+
if (!device) {
|
|
687
|
+
throw new Error(`Unknown device ${deviceId}`);
|
|
688
|
+
}
|
|
689
|
+
try {
|
|
690
|
+
const outgoingRequest: RustSdkCryptoJs.SignatureUploadRequest = await device.verify();
|
|
691
|
+
await this.outgoingRequestProcessor.makeOutgoingRequest(outgoingRequest);
|
|
692
|
+
} finally {
|
|
693
|
+
device.free();
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Implementation of {@link CryptoApi#getDeviceVerificationStatus}.
|
|
699
|
+
*/
|
|
700
|
+
public async getDeviceVerificationStatus(
|
|
701
|
+
userId: string,
|
|
702
|
+
deviceId: string,
|
|
703
|
+
): Promise<DeviceVerificationStatus | null> {
|
|
704
|
+
const device: RustSdkCryptoJs.Device | undefined = await this.olmMachine.getDevice(
|
|
705
|
+
new RustSdkCryptoJs.UserId(userId),
|
|
706
|
+
new RustSdkCryptoJs.DeviceId(deviceId),
|
|
707
|
+
);
|
|
708
|
+
|
|
709
|
+
if (!device) return null;
|
|
710
|
+
try {
|
|
711
|
+
return new DeviceVerificationStatus({
|
|
712
|
+
signedByOwner: device.isCrossSignedByOwner(),
|
|
713
|
+
crossSigningVerified: device.isCrossSigningTrusted(),
|
|
714
|
+
localVerified: device.isLocallyTrusted(),
|
|
715
|
+
trustCrossSignedDevices: this._trustCrossSignedDevices,
|
|
716
|
+
});
|
|
717
|
+
} finally {
|
|
718
|
+
device.free();
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Implementation of {@link CryptoApi#getUserVerificationStatus}.
|
|
724
|
+
*/
|
|
725
|
+
public async getUserVerificationStatus(userId: string): Promise<UserVerificationStatus> {
|
|
726
|
+
const userIdentity: RustSdkCryptoJs.OtherUserIdentity | RustSdkCryptoJs.OwnUserIdentity | undefined =
|
|
727
|
+
await this.getOlmMachineOrThrow().getIdentity(new RustSdkCryptoJs.UserId(userId));
|
|
728
|
+
if (userIdentity === undefined) {
|
|
729
|
+
return new UserVerificationStatus(false, false, false);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
const verified = userIdentity.isVerified();
|
|
733
|
+
const wasVerified = userIdentity.wasPreviouslyVerified();
|
|
734
|
+
const needsUserApproval =
|
|
735
|
+
userIdentity instanceof RustSdkCryptoJs.OtherUserIdentity
|
|
736
|
+
? userIdentity.identityNeedsUserApproval()
|
|
737
|
+
: false;
|
|
738
|
+
userIdentity.free();
|
|
739
|
+
return new UserVerificationStatus(verified, wasVerified, true, needsUserApproval);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Implementation of {@link CryptoApi#pinCurrentUserIdentity}.
|
|
744
|
+
*/
|
|
745
|
+
public async pinCurrentUserIdentity(userId: string): Promise<void> {
|
|
746
|
+
const userIdentity: RustSdkCryptoJs.OtherUserIdentity | RustSdkCryptoJs.OwnUserIdentity | undefined =
|
|
747
|
+
await this.getOlmMachineOrThrow().getIdentity(new RustSdkCryptoJs.UserId(userId));
|
|
748
|
+
|
|
749
|
+
if (userIdentity === undefined) {
|
|
750
|
+
throw new Error("Cannot pin identity of unknown user");
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
if (userIdentity instanceof RustSdkCryptoJs.OwnUserIdentity) {
|
|
754
|
+
throw new Error("Cannot pin identity of own user");
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
await userIdentity.pinCurrentMasterKey();
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Implementation of {@link CryptoApi#withdrawVerificationRequirement}.
|
|
762
|
+
*/
|
|
763
|
+
public async withdrawVerificationRequirement(userId: string): Promise<void> {
|
|
764
|
+
const userIdentity: RustSdkCryptoJs.OtherUserIdentity | RustSdkCryptoJs.OwnUserIdentity | undefined =
|
|
765
|
+
await this.getOlmMachineOrThrow().getIdentity(new RustSdkCryptoJs.UserId(userId));
|
|
766
|
+
|
|
767
|
+
if (userIdentity === undefined) {
|
|
768
|
+
throw new Error("Cannot withdraw verification of unknown user");
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
await userIdentity.withdrawVerification();
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Implementation of {@link CryptoApi#isCrossSigningReady}
|
|
776
|
+
*/
|
|
777
|
+
public async isCrossSigningReady(): Promise<boolean> {
|
|
778
|
+
const { privateKeysInSecretStorage, privateKeysCachedLocally } = await this.getCrossSigningStatus();
|
|
779
|
+
const hasKeysInCache =
|
|
780
|
+
Boolean(privateKeysCachedLocally.masterKey) &&
|
|
781
|
+
Boolean(privateKeysCachedLocally.selfSigningKey) &&
|
|
782
|
+
Boolean(privateKeysCachedLocally.userSigningKey);
|
|
783
|
+
|
|
784
|
+
const identity = await this.getOwnIdentity();
|
|
785
|
+
|
|
786
|
+
// Cross-signing is ready if the public identity is trusted, and the private keys
|
|
787
|
+
// are either cached, or accessible via secret-storage.
|
|
788
|
+
return !!identity?.isVerified() && (hasKeysInCache || privateKeysInSecretStorage);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Implementation of {@link CryptoApi#getCrossSigningKeyId}
|
|
793
|
+
*/
|
|
794
|
+
public async getCrossSigningKeyId(type: CrossSigningKey = CrossSigningKey.Master): Promise<string | null> {
|
|
795
|
+
const userIdentity = await this.getOwnIdentity();
|
|
796
|
+
if (!userIdentity) {
|
|
797
|
+
// The public keys are not available on this device
|
|
798
|
+
return null;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
try {
|
|
802
|
+
const crossSigningStatus: RustSdkCryptoJs.CrossSigningStatus = await this.olmMachine.crossSigningStatus();
|
|
803
|
+
|
|
804
|
+
const privateKeysOnDevice =
|
|
805
|
+
crossSigningStatus.hasMaster && crossSigningStatus.hasUserSigning && crossSigningStatus.hasSelfSigning;
|
|
806
|
+
|
|
807
|
+
if (!privateKeysOnDevice) {
|
|
808
|
+
// The private keys are not available on this device
|
|
809
|
+
return null;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if (!userIdentity.isVerified()) {
|
|
813
|
+
// We have both public and private keys, but they don't match!
|
|
814
|
+
return null;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
let key: string;
|
|
818
|
+
switch (type) {
|
|
819
|
+
case CrossSigningKey.Master:
|
|
820
|
+
key = userIdentity.masterKey;
|
|
821
|
+
break;
|
|
822
|
+
case CrossSigningKey.SelfSigning:
|
|
823
|
+
key = userIdentity.selfSigningKey;
|
|
824
|
+
break;
|
|
825
|
+
case CrossSigningKey.UserSigning:
|
|
826
|
+
key = userIdentity.userSigningKey;
|
|
827
|
+
break;
|
|
828
|
+
default:
|
|
829
|
+
// Unknown type
|
|
830
|
+
return null;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
const parsedKey: CrossSigningKeyInfo = JSON.parse(key);
|
|
834
|
+
// `keys` is an object with { [`ed25519:${pubKey}`]: pubKey }
|
|
835
|
+
// We assume only a single key, and we want the bare form without type
|
|
836
|
+
// prefix, so we select the values.
|
|
837
|
+
return Object.values(parsedKey.keys)[0];
|
|
838
|
+
} finally {
|
|
839
|
+
userIdentity.free();
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Implementation of {@link CryptoApi#bootstrapCrossSigning}
|
|
845
|
+
*/
|
|
846
|
+
public async bootstrapCrossSigning(opts: BootstrapCrossSigningOpts): Promise<void> {
|
|
847
|
+
await this.crossSigningIdentity.bootstrapCrossSigning(opts);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Implementation of {@link CryptoApi#isSecretStorageReady}
|
|
852
|
+
*/
|
|
853
|
+
public async isSecretStorageReady(): Promise<boolean> {
|
|
854
|
+
return (await this.getSecretStorageStatus()).ready;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Implementation of {@link CryptoApi#getSecretStorageStatus}
|
|
859
|
+
*/
|
|
860
|
+
public async getSecretStorageStatus(): Promise<SecretStorageStatus> {
|
|
861
|
+
// make sure that the cross-signing keys are stored
|
|
862
|
+
const secretsToCheck: SecretStorageKey[] = [
|
|
863
|
+
"m.cross_signing.master",
|
|
864
|
+
"m.cross_signing.user_signing",
|
|
865
|
+
"m.cross_signing.self_signing",
|
|
866
|
+
];
|
|
867
|
+
|
|
868
|
+
// If key backup is active, we also need to check that the backup decryption key is stored
|
|
869
|
+
const keyBackupEnabled = (await this.backupManager.getActiveBackupVersion()) != null;
|
|
870
|
+
if (keyBackupEnabled) {
|
|
871
|
+
secretsToCheck.push("m.megolm_backup.v1");
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
const defaultKeyId = await this.secretStorage.getDefaultKeyId();
|
|
875
|
+
|
|
876
|
+
const result: SecretStorageStatus = {
|
|
877
|
+
// Assume we have all secrets until proven otherwise
|
|
878
|
+
ready: true,
|
|
879
|
+
defaultKeyId,
|
|
880
|
+
secretStorageKeyValidityMap: {},
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
for (const secretName of secretsToCheck) {
|
|
884
|
+
// Check which keys this particular secret is encrypted with
|
|
885
|
+
const record = (await this.secretStorage.isStored(secretName)) || {};
|
|
886
|
+
|
|
887
|
+
// If it's encrypted with the right key, it is valid
|
|
888
|
+
const secretStored = !!defaultKeyId && defaultKeyId in record;
|
|
889
|
+
result.secretStorageKeyValidityMap[secretName] = secretStored;
|
|
890
|
+
result.ready = result.ready && secretStored;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
return result;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Implementation of {@link CryptoApi#bootstrapSecretStorage}
|
|
898
|
+
*/
|
|
899
|
+
public async bootstrapSecretStorage({
|
|
900
|
+
createSecretStorageKey,
|
|
901
|
+
setupNewSecretStorage,
|
|
902
|
+
setupNewKeyBackup,
|
|
903
|
+
}: CreateSecretStorageOpts = {}): Promise<void> {
|
|
904
|
+
// If an AES Key is already stored in the secret storage and setupNewSecretStorage is not set
|
|
905
|
+
// we don't want to create a new key
|
|
906
|
+
const isNewSecretStorageKeyNeeded = setupNewSecretStorage || !(await this.secretStorageHasAESKey());
|
|
907
|
+
|
|
908
|
+
if (isNewSecretStorageKeyNeeded) {
|
|
909
|
+
if (!createSecretStorageKey) {
|
|
910
|
+
throw new Error("unable to create a new secret storage key, createSecretStorageKey is not set");
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
// Create a new storage key and add it to secret storage
|
|
914
|
+
this.logger.info("bootstrapSecretStorage: creating new secret storage key");
|
|
915
|
+
const recoveryKey = await createSecretStorageKey();
|
|
916
|
+
if (!recoveryKey) {
|
|
917
|
+
throw new Error("createSecretStorageKey() callback did not return a secret storage key");
|
|
918
|
+
}
|
|
919
|
+
await this.addSecretStorageKeyToSecretStorage(recoveryKey);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
const crossSigningPrivateKeys: RustSdkCryptoJs.CrossSigningKeyExport | undefined =
|
|
923
|
+
await this.olmMachine.exportCrossSigningKeys();
|
|
924
|
+
const hasPrivateKeys =
|
|
925
|
+
crossSigningPrivateKeys &&
|
|
926
|
+
crossSigningPrivateKeys.masterKey !== undefined &&
|
|
927
|
+
crossSigningPrivateKeys.self_signing_key !== undefined &&
|
|
928
|
+
crossSigningPrivateKeys.userSigningKey !== undefined;
|
|
929
|
+
|
|
930
|
+
// If we have cross-signing private keys cached, store them in secret
|
|
931
|
+
// storage if they are not there already.
|
|
932
|
+
if (
|
|
933
|
+
hasPrivateKeys &&
|
|
934
|
+
(isNewSecretStorageKeyNeeded || !(await secretStorageContainsCrossSigningKeys(this.secretStorage)))
|
|
935
|
+
) {
|
|
936
|
+
this.logger.info("bootstrapSecretStorage: cross-signing keys not yet exported; doing so now.");
|
|
937
|
+
|
|
938
|
+
await this.secretStorage.store("m.cross_signing.master", crossSigningPrivateKeys.masterKey);
|
|
939
|
+
await this.secretStorage.store("m.cross_signing.user_signing", crossSigningPrivateKeys.userSigningKey);
|
|
940
|
+
await this.secretStorage.store("m.cross_signing.self_signing", crossSigningPrivateKeys.self_signing_key);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
// likewise with the key backup key: if we have one, store it in secret storage (if it's not already there)
|
|
944
|
+
// also don't bother storing it if we're about to set up a new backup
|
|
945
|
+
if (!setupNewKeyBackup) {
|
|
946
|
+
await this.saveBackupKeyToStorage();
|
|
947
|
+
} else {
|
|
948
|
+
await this.resetKeyBackup();
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* If we have a backup key for the current, trusted backup in cache,
|
|
954
|
+
* save it to secret storage.
|
|
955
|
+
*/
|
|
956
|
+
private async saveBackupKeyToStorage(): Promise<void> {
|
|
957
|
+
const keyBackupInfo = await this.backupManager.getServerBackupInfo();
|
|
958
|
+
if (!keyBackupInfo || !keyBackupInfo.version) {
|
|
959
|
+
this.logger.info("Not saving backup key to secret storage: no backup info");
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
const backupKeys: RustSdkCryptoJs.BackupKeys = await this.olmMachine.getBackupKeys();
|
|
964
|
+
if (!backupKeys.decryptionKey) {
|
|
965
|
+
this.logger.info("Not saving backup key to secret storage: no backup key");
|
|
966
|
+
return;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
if (!decryptionKeyMatchesKeyBackupInfo(backupKeys.decryptionKey, keyBackupInfo)) {
|
|
970
|
+
this.logger.info("Not saving backup key to secret storage: decryption key does not match backup info");
|
|
971
|
+
return;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
const backupKeyBase64 = backupKeys.decryptionKey.toBase64();
|
|
975
|
+
|
|
976
|
+
await this.secretStorage.store("m.megolm_backup.v1", backupKeyBase64);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Add the secretStorage key to the secret storage
|
|
981
|
+
* - The secret storage key must have the `keyInfo` field filled
|
|
982
|
+
* - The secret storage key is set as the default key of the secret storage
|
|
983
|
+
* - Call `cryptoCallbacks.cacheSecretStorageKey` when done
|
|
984
|
+
*
|
|
985
|
+
* @param secretStorageKey - The secret storage key to add in the secret storage.
|
|
986
|
+
*/
|
|
987
|
+
private async addSecretStorageKeyToSecretStorage(secretStorageKey: GeneratedSecretStorageKey): Promise<void> {
|
|
988
|
+
const secretStorageKeyObject = await this.secretStorage.addKey(SECRET_STORAGE_ALGORITHM_V1_AES, {
|
|
989
|
+
passphrase: secretStorageKey.keyInfo?.passphrase,
|
|
990
|
+
name: secretStorageKey.keyInfo?.name,
|
|
991
|
+
key: secretStorageKey.privateKey,
|
|
992
|
+
});
|
|
993
|
+
|
|
994
|
+
await this.secretStorage.setDefaultKeyId(secretStorageKeyObject.keyId);
|
|
995
|
+
|
|
996
|
+
this.cryptoCallbacks.cacheSecretStorageKey?.(
|
|
997
|
+
secretStorageKeyObject.keyId,
|
|
998
|
+
secretStorageKeyObject.keyInfo,
|
|
999
|
+
secretStorageKey.privateKey,
|
|
1000
|
+
);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Check if a secret storage AES Key is already added in secret storage
|
|
1005
|
+
*
|
|
1006
|
+
* @returns True if an AES key is in the secret storage
|
|
1007
|
+
*/
|
|
1008
|
+
private async secretStorageHasAESKey(): Promise<boolean> {
|
|
1009
|
+
// See if we already have an AES secret-storage key.
|
|
1010
|
+
const secretStorageKeyTuple = await this.secretStorage.getKey();
|
|
1011
|
+
|
|
1012
|
+
if (!secretStorageKeyTuple) return false;
|
|
1013
|
+
|
|
1014
|
+
const [, keyInfo] = secretStorageKeyTuple;
|
|
1015
|
+
|
|
1016
|
+
// Check if the key is an AES key
|
|
1017
|
+
return keyInfo.algorithm === SECRET_STORAGE_ALGORITHM_V1_AES;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Implementation of {@link CryptoApi#getCrossSigningStatus}
|
|
1022
|
+
*/
|
|
1023
|
+
public async getCrossSigningStatus(): Promise<CrossSigningStatus> {
|
|
1024
|
+
const userIdentity = await this.getOwnIdentity();
|
|
1025
|
+
|
|
1026
|
+
const publicKeysOnDevice =
|
|
1027
|
+
Boolean(userIdentity?.masterKey) &&
|
|
1028
|
+
Boolean(userIdentity?.selfSigningKey) &&
|
|
1029
|
+
Boolean(userIdentity?.userSigningKey);
|
|
1030
|
+
userIdentity?.free();
|
|
1031
|
+
|
|
1032
|
+
const privateKeysInSecretStorage = await secretStorageContainsCrossSigningKeys(this.secretStorage);
|
|
1033
|
+
const crossSigningStatus: RustSdkCryptoJs.CrossSigningStatus | null =
|
|
1034
|
+
await this.getOlmMachineOrThrow().crossSigningStatus();
|
|
1035
|
+
|
|
1036
|
+
return {
|
|
1037
|
+
publicKeysOnDevice,
|
|
1038
|
+
privateKeysInSecretStorage,
|
|
1039
|
+
privateKeysCachedLocally: {
|
|
1040
|
+
masterKey: Boolean(crossSigningStatus?.hasMaster),
|
|
1041
|
+
userSigningKey: Boolean(crossSigningStatus?.hasUserSigning),
|
|
1042
|
+
selfSigningKey: Boolean(crossSigningStatus?.hasSelfSigning),
|
|
1043
|
+
},
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Implementation of {@link CryptoApi#createRecoveryKeyFromPassphrase}
|
|
1049
|
+
*/
|
|
1050
|
+
public async createRecoveryKeyFromPassphrase(password?: string): Promise<GeneratedSecretStorageKey> {
|
|
1051
|
+
if (password) {
|
|
1052
|
+
// Generate the key from the passphrase
|
|
1053
|
+
// first we generate a random salt
|
|
1054
|
+
const salt = secureRandomString(32);
|
|
1055
|
+
// then we derive the key from the passphrase
|
|
1056
|
+
const recoveryKey = await deriveRecoveryKeyFromPassphrase(
|
|
1057
|
+
password,
|
|
1058
|
+
salt,
|
|
1059
|
+
this.RECOVERY_KEY_DERIVATION_ITERATIONS,
|
|
1060
|
+
);
|
|
1061
|
+
return {
|
|
1062
|
+
keyInfo: {
|
|
1063
|
+
passphrase: {
|
|
1064
|
+
algorithm: "m.pbkdf2",
|
|
1065
|
+
iterations: this.RECOVERY_KEY_DERIVATION_ITERATIONS,
|
|
1066
|
+
salt,
|
|
1067
|
+
},
|
|
1068
|
+
},
|
|
1069
|
+
privateKey: recoveryKey,
|
|
1070
|
+
encodedPrivateKey: encodeRecoveryKey(recoveryKey),
|
|
1071
|
+
};
|
|
1072
|
+
} else {
|
|
1073
|
+
// Using the navigator crypto API to generate the private key
|
|
1074
|
+
const key = new Uint8Array(32);
|
|
1075
|
+
globalThis.crypto.getRandomValues(key);
|
|
1076
|
+
return {
|
|
1077
|
+
privateKey: key,
|
|
1078
|
+
encodedPrivateKey: encodeRecoveryKey(key),
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Implementation of {@link CryptoApi#getEncryptionInfoForEvent}.
|
|
1085
|
+
*/
|
|
1086
|
+
public async getEncryptionInfoForEvent(event: MatrixEvent): Promise<EventEncryptionInfo | null> {
|
|
1087
|
+
return this.eventDecryptor.getEncryptionInfoForEvent(event);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Returns to-device verification requests that are already in progress for the given user id.
|
|
1092
|
+
*
|
|
1093
|
+
* Implementation of {@link CryptoApi#getVerificationRequestsToDeviceInProgress}
|
|
1094
|
+
*
|
|
1095
|
+
* @param userId - the ID of the user to query
|
|
1096
|
+
*
|
|
1097
|
+
* @returns the VerificationRequests that are in progress
|
|
1098
|
+
*/
|
|
1099
|
+
public getVerificationRequestsToDeviceInProgress(userId: string): VerificationRequest[] {
|
|
1100
|
+
const requests: RustSdkCryptoJs.VerificationRequest[] = this.olmMachine.getVerificationRequests(
|
|
1101
|
+
new RustSdkCryptoJs.UserId(userId),
|
|
1102
|
+
);
|
|
1103
|
+
return requests
|
|
1104
|
+
.filter((request) => request.roomId === undefined && !request.isCancelled())
|
|
1105
|
+
.map((request) => this.makeVerificationRequest(request));
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Finds a DM verification request that is already in progress for the given room id
|
|
1110
|
+
*
|
|
1111
|
+
* Implementation of {@link CryptoApi#findVerificationRequestDMInProgress}
|
|
1112
|
+
*
|
|
1113
|
+
* @param roomId - the room to use for verification
|
|
1114
|
+
* @param userId - search the verification request for the given user
|
|
1115
|
+
*
|
|
1116
|
+
* @returns the VerificationRequest that is in progress, if any
|
|
1117
|
+
*
|
|
1118
|
+
*/
|
|
1119
|
+
public findVerificationRequestDMInProgress(roomId: string, userId?: string): VerificationRequest | undefined {
|
|
1120
|
+
if (!userId) throw new Error("missing userId");
|
|
1121
|
+
|
|
1122
|
+
const requests: RustSdkCryptoJs.VerificationRequest[] = this.olmMachine.getVerificationRequests(
|
|
1123
|
+
new RustSdkCryptoJs.UserId(userId),
|
|
1124
|
+
);
|
|
1125
|
+
|
|
1126
|
+
// Search for the verification request for the given room id
|
|
1127
|
+
const request = requests.find((request) => request.roomId?.toString() === roomId && !request.isCancelled());
|
|
1128
|
+
|
|
1129
|
+
if (request) {
|
|
1130
|
+
return this.makeVerificationRequest(request);
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* Implementation of {@link CryptoApi#requestVerificationDM}
|
|
1136
|
+
*/
|
|
1137
|
+
public async requestVerificationDM(userId: string, roomId: string): Promise<VerificationRequest> {
|
|
1138
|
+
const userIdentity = (await this.olmMachine.getIdentity(new RustSdkCryptoJs.UserId(userId))) as
|
|
1139
|
+
| RustSdkCryptoJs.OtherUserIdentity
|
|
1140
|
+
| undefined;
|
|
1141
|
+
|
|
1142
|
+
if (!userIdentity) throw new Error(`unknown userId ${userId}`);
|
|
1143
|
+
|
|
1144
|
+
try {
|
|
1145
|
+
// Transform the verification methods into rust objects
|
|
1146
|
+
const methods = this._supportedVerificationMethods.map((method) =>
|
|
1147
|
+
verificationMethodIdentifierToMethod(method),
|
|
1148
|
+
);
|
|
1149
|
+
// Get the request content to send to the DM room
|
|
1150
|
+
const verCont: string = await userIdentity.verificationRequestContent(methods);
|
|
1151
|
+
|
|
1152
|
+
// TODO: due to https://github.com/matrix-org/matrix-rust-sdk/issues/5643, we need to fix up the verification request content to include `msgtype`.
|
|
1153
|
+
const verContObj = JSON.parse(verCont);
|
|
1154
|
+
verContObj["msgtype"] = "m.key.verification.request";
|
|
1155
|
+
const verificationEventContent: string = JSON.stringify(verContObj);
|
|
1156
|
+
|
|
1157
|
+
// Send the request content to send to the DM room
|
|
1158
|
+
const eventId = await this.sendVerificationRequestContent(roomId, verificationEventContent);
|
|
1159
|
+
|
|
1160
|
+
// Get a verification request
|
|
1161
|
+
const request: RustSdkCryptoJs.VerificationRequest = await userIdentity.requestVerification(
|
|
1162
|
+
new RustSdkCryptoJs.RoomId(roomId),
|
|
1163
|
+
new RustSdkCryptoJs.EventId(eventId),
|
|
1164
|
+
methods,
|
|
1165
|
+
);
|
|
1166
|
+
return this.makeVerificationRequest(request);
|
|
1167
|
+
} finally {
|
|
1168
|
+
userIdentity.free();
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Send the verification content to a room
|
|
1174
|
+
* See https://spec.matrix.org/v1.7/client-server-api/#put_matrixclientv3roomsroomidsendeventtypetxnid
|
|
1175
|
+
*
|
|
1176
|
+
* Prefer to use {@link OutgoingRequestProcessor.makeOutgoingRequest} when dealing with {@link RustSdkCryptoJs.RoomMessageRequest}
|
|
1177
|
+
*
|
|
1178
|
+
* @param roomId - the targeted room
|
|
1179
|
+
* @param verificationEventContent - the request body.
|
|
1180
|
+
*
|
|
1181
|
+
* @returns the event id
|
|
1182
|
+
*/
|
|
1183
|
+
private async sendVerificationRequestContent(roomId: string, verificationEventContent: string): Promise<string> {
|
|
1184
|
+
const txId = secureRandomString(32);
|
|
1185
|
+
// Send the verification request content to the DM room
|
|
1186
|
+
const { event_id: eventId } = await this.http.authedRequest<{ event_id: string }>(
|
|
1187
|
+
Method.Put,
|
|
1188
|
+
`/_matrix/client/v3/rooms/${encodeURIComponent(roomId)}/send/m.room.message/${encodeURIComponent(txId)}`,
|
|
1189
|
+
undefined,
|
|
1190
|
+
verificationEventContent,
|
|
1191
|
+
{
|
|
1192
|
+
prefix: "",
|
|
1193
|
+
},
|
|
1194
|
+
);
|
|
1195
|
+
|
|
1196
|
+
return eventId;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* The verification methods we offer to the other side during an interactive verification.
|
|
1201
|
+
*/
|
|
1202
|
+
private _supportedVerificationMethods: string[] = ALL_VERIFICATION_METHODS;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Set the verification methods we offer to the other side during an interactive verification.
|
|
1206
|
+
*
|
|
1207
|
+
* If `undefined`, we will offer all the methods supported by the Rust SDK.
|
|
1208
|
+
*/
|
|
1209
|
+
public setSupportedVerificationMethods(methods: string[] | undefined): void {
|
|
1210
|
+
// by default, the Rust SDK does not offer `m.qr_code.scan.v1`, but we do want to offer that.
|
|
1211
|
+
this._supportedVerificationMethods = methods ?? ALL_VERIFICATION_METHODS;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Send a verification request to our other devices.
|
|
1216
|
+
*
|
|
1217
|
+
* If a verification is already in flight, returns it. Otherwise, initiates a new one.
|
|
1218
|
+
*
|
|
1219
|
+
* Implementation of {@link CryptoApi#requestOwnUserVerification}.
|
|
1220
|
+
*
|
|
1221
|
+
* @returns a VerificationRequest when the request has been sent to the other party.
|
|
1222
|
+
*/
|
|
1223
|
+
public async requestOwnUserVerification(): Promise<VerificationRequest> {
|
|
1224
|
+
const userIdentity = await this.getOwnIdentity();
|
|
1225
|
+
if (userIdentity === undefined) {
|
|
1226
|
+
throw new Error("cannot request verification for this device when there is no existing cross-signing key");
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
try {
|
|
1230
|
+
const [request, outgoingRequest]: [RustSdkCryptoJs.VerificationRequest, RustSdkCryptoJs.ToDeviceRequest] =
|
|
1231
|
+
await userIdentity.requestVerification(
|
|
1232
|
+
this._supportedVerificationMethods.map(verificationMethodIdentifierToMethod),
|
|
1233
|
+
);
|
|
1234
|
+
await this.outgoingRequestProcessor.makeOutgoingRequest(outgoingRequest);
|
|
1235
|
+
return this.makeVerificationRequest(request);
|
|
1236
|
+
} finally {
|
|
1237
|
+
userIdentity.free();
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Request an interactive verification with the given device.
|
|
1243
|
+
*
|
|
1244
|
+
* If a verification is already in flight, returns it. Otherwise, initiates a new one.
|
|
1245
|
+
*
|
|
1246
|
+
* Implementation of {@link CryptoApi#requestDeviceVerification}.
|
|
1247
|
+
*
|
|
1248
|
+
* @param userId - ID of the owner of the device to verify
|
|
1249
|
+
* @param deviceId - ID of the device to verify
|
|
1250
|
+
*
|
|
1251
|
+
* @returns a VerificationRequest when the request has been sent to the other party.
|
|
1252
|
+
*/
|
|
1253
|
+
public async requestDeviceVerification(userId: string, deviceId: string): Promise<VerificationRequest> {
|
|
1254
|
+
const device: RustSdkCryptoJs.Device | undefined = await this.olmMachine.getDevice(
|
|
1255
|
+
new RustSdkCryptoJs.UserId(userId),
|
|
1256
|
+
new RustSdkCryptoJs.DeviceId(deviceId),
|
|
1257
|
+
);
|
|
1258
|
+
|
|
1259
|
+
if (!device) {
|
|
1260
|
+
throw new Error("Not a known device");
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
try {
|
|
1264
|
+
const [request, outgoingRequest] = device.requestVerification(
|
|
1265
|
+
this._supportedVerificationMethods.map(verificationMethodIdentifierToMethod),
|
|
1266
|
+
);
|
|
1267
|
+
await this.outgoingRequestProcessor.makeOutgoingRequest(outgoingRequest);
|
|
1268
|
+
return this.makeVerificationRequest(request);
|
|
1269
|
+
} finally {
|
|
1270
|
+
device.free();
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* Fetch the backup decryption key we have saved in our store.
|
|
1276
|
+
*
|
|
1277
|
+
* Implementation of {@link CryptoApi#getSessionBackupPrivateKey}.
|
|
1278
|
+
*
|
|
1279
|
+
* @returns the key, if any, or null
|
|
1280
|
+
*/
|
|
1281
|
+
public async getSessionBackupPrivateKey(): Promise<Uint8Array | null> {
|
|
1282
|
+
const backupKeys: RustSdkCryptoJs.BackupKeys = await this.olmMachine.getBackupKeys();
|
|
1283
|
+
if (!backupKeys.decryptionKey) return null;
|
|
1284
|
+
return decodeBase64(backupKeys.decryptionKey.toBase64());
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Store the backup decryption key.
|
|
1289
|
+
*
|
|
1290
|
+
* Implementation of {@link CryptoApi#storeSessionBackupPrivateKey}.
|
|
1291
|
+
*
|
|
1292
|
+
* @param key - the backup decryption key
|
|
1293
|
+
* @param version - the backup version for this key.
|
|
1294
|
+
*/
|
|
1295
|
+
public async storeSessionBackupPrivateKey(key: Uint8Array, version?: string): Promise<void> {
|
|
1296
|
+
const base64Key = encodeBase64(key);
|
|
1297
|
+
|
|
1298
|
+
if (!version) {
|
|
1299
|
+
throw new Error("storeSessionBackupPrivateKey: version is required");
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
await this.backupManager.saveBackupDecryptionKey(
|
|
1303
|
+
RustSdkCryptoJs.BackupDecryptionKey.fromBase64(base64Key),
|
|
1304
|
+
version,
|
|
1305
|
+
);
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Implementation of {@link CryptoApi#loadSessionBackupPrivateKeyFromSecretStorage}.
|
|
1310
|
+
*/
|
|
1311
|
+
public async loadSessionBackupPrivateKeyFromSecretStorage(): Promise<void> {
|
|
1312
|
+
const backupKey = await this.secretStorage.get("m.megolm_backup.v1");
|
|
1313
|
+
if (!backupKey) {
|
|
1314
|
+
throw new Error("loadSessionBackupPrivateKeyFromSecretStorage: missing decryption key in secret storage");
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
const keyBackupInfo = await this.backupManager.getServerBackupInfo();
|
|
1318
|
+
if (!keyBackupInfo || !keyBackupInfo.version) {
|
|
1319
|
+
throw new Error("loadSessionBackupPrivateKeyFromSecretStorage: unable to get backup version");
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
const backupDecryptionKey = RustSdkCryptoJs.BackupDecryptionKey.fromBase64(backupKey);
|
|
1323
|
+
if (!decryptionKeyMatchesKeyBackupInfo(backupDecryptionKey, keyBackupInfo)) {
|
|
1324
|
+
throw new DecryptionKeyDoesNotMatchError(
|
|
1325
|
+
"loadSessionBackupPrivateKeyFromSecretStorage: decryption key does not match backup info",
|
|
1326
|
+
);
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
await this.backupManager.saveBackupDecryptionKey(backupDecryptionKey, keyBackupInfo.version);
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Get the current status of key backup.
|
|
1334
|
+
*
|
|
1335
|
+
* Implementation of {@link CryptoApi#getActiveSessionBackupVersion}.
|
|
1336
|
+
*/
|
|
1337
|
+
public async getActiveSessionBackupVersion(): Promise<string | null> {
|
|
1338
|
+
return await this.backupManager.getActiveBackupVersion();
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Implementation of {@link CryptoApi#getKeyBackupInfo}.
|
|
1343
|
+
*/
|
|
1344
|
+
public async getKeyBackupInfo(): Promise<KeyBackupInfo | null> {
|
|
1345
|
+
return (await this.backupManager.getServerBackupInfo()) || null;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* Determine if a key backup can be trusted.
|
|
1350
|
+
*
|
|
1351
|
+
* Implementation of {@link CryptoApi#isKeyBackupTrusted}.
|
|
1352
|
+
*/
|
|
1353
|
+
public async isKeyBackupTrusted(info: KeyBackupInfo): Promise<BackupTrustInfo> {
|
|
1354
|
+
return await this.backupManager.isKeyBackupTrusted(info);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Force a re-check of the key backup and enable/disable it as appropriate.
|
|
1359
|
+
*
|
|
1360
|
+
* Implementation of {@link CryptoApi#checkKeyBackupAndEnable}.
|
|
1361
|
+
*/
|
|
1362
|
+
public async checkKeyBackupAndEnable(): Promise<KeyBackupCheck | null> {
|
|
1363
|
+
return await this.backupManager.checkKeyBackupAndEnable(true);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* Implementation of {@link CryptoApi#deleteKeyBackupVersion}.
|
|
1368
|
+
*/
|
|
1369
|
+
public async deleteKeyBackupVersion(version: string): Promise<void> {
|
|
1370
|
+
await this.backupManager.deleteKeyBackupVersion(version);
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Implementation of {@link CryptoApi#resetKeyBackup}.
|
|
1375
|
+
*/
|
|
1376
|
+
public async resetKeyBackup(): Promise<void> {
|
|
1377
|
+
const backupInfo = await this.backupManager.setupKeyBackup((o) => this.signObject(o));
|
|
1378
|
+
|
|
1379
|
+
await this.pushSecretToVerifiedDevices("m.megolm_backup.v1");
|
|
1380
|
+
|
|
1381
|
+
// we want to store the private key in 4S
|
|
1382
|
+
// need to check if 4S is set up?
|
|
1383
|
+
if (await this.secretStorageHasAESKey()) {
|
|
1384
|
+
await this.secretStorage.store("m.megolm_backup.v1", backupInfo.decryptionKey.toBase64());
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
// we can check and start async
|
|
1388
|
+
this.checkKeyBackupAndEnable();
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* Implementation of {@link CryptoApi#disableKeyStorage}.
|
|
1393
|
+
*/
|
|
1394
|
+
public async disableKeyStorage(): Promise<void> {
|
|
1395
|
+
// Get the key backup version we're using
|
|
1396
|
+
const info = await this.getKeyBackupInfo();
|
|
1397
|
+
if (info?.version) {
|
|
1398
|
+
await this.deleteKeyBackupVersion(info.version);
|
|
1399
|
+
} else {
|
|
1400
|
+
this.logger.error("Can't delete key backup version: no version available");
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
// also turn off 4S, since this is also storing keys on the server.
|
|
1404
|
+
await this.deleteSecretStorage();
|
|
1405
|
+
|
|
1406
|
+
await this.dehydratedDeviceManager.delete();
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Signs the given object with the current device and current identity (if available).
|
|
1411
|
+
* As defined in {@link https://spec.matrix.org/v1.8/appendices/#signing-json | Signing JSON}.
|
|
1412
|
+
*
|
|
1413
|
+
* Helper for {@link RustCrypto#resetKeyBackup}.
|
|
1414
|
+
*
|
|
1415
|
+
* @param obj - The object to sign
|
|
1416
|
+
*/
|
|
1417
|
+
private async signObject<T extends ISignableObject & object>(obj: T): Promise<void> {
|
|
1418
|
+
const sigs = new Map(Object.entries(obj.signatures || {}));
|
|
1419
|
+
const unsigned = obj.unsigned;
|
|
1420
|
+
|
|
1421
|
+
delete obj.signatures;
|
|
1422
|
+
delete obj.unsigned;
|
|
1423
|
+
|
|
1424
|
+
const userSignatures = sigs.get(this.userId) || {};
|
|
1425
|
+
|
|
1426
|
+
const canonalizedJson = anotherjson.stringify(obj);
|
|
1427
|
+
const signatures: RustSdkCryptoJs.Signatures = await this.olmMachine.sign(canonalizedJson);
|
|
1428
|
+
|
|
1429
|
+
const map = JSON.parse(signatures.asJSON());
|
|
1430
|
+
|
|
1431
|
+
sigs.set(this.userId, { ...userSignatures, ...map[this.userId] });
|
|
1432
|
+
|
|
1433
|
+
if (unsigned !== undefined) obj.unsigned = unsigned;
|
|
1434
|
+
obj.signatures = Object.fromEntries(sigs.entries());
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* Implementation of {@link CryptoApi#restoreKeyBackupWithPassphrase}.
|
|
1439
|
+
*/
|
|
1440
|
+
public async restoreKeyBackupWithPassphrase(
|
|
1441
|
+
passphrase: string,
|
|
1442
|
+
opts?: KeyBackupRestoreOpts,
|
|
1443
|
+
): Promise<KeyBackupRestoreResult> {
|
|
1444
|
+
const backupInfo = await this.backupManager.getServerBackupInfo();
|
|
1445
|
+
if (!backupInfo?.version) {
|
|
1446
|
+
throw new Error("No backup info available");
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
const privateKey = await keyFromAuthData(backupInfo.auth_data, passphrase);
|
|
1450
|
+
|
|
1451
|
+
// Cache the key
|
|
1452
|
+
await this.storeSessionBackupPrivateKey(privateKey, backupInfo.version);
|
|
1453
|
+
return this.restoreKeyBackup(opts);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Implementation of {@link CryptoApi#restoreKeyBackup}.
|
|
1458
|
+
*/
|
|
1459
|
+
public async restoreKeyBackup(opts?: KeyBackupRestoreOpts): Promise<KeyBackupRestoreResult> {
|
|
1460
|
+
// Get the decryption key from the crypto store
|
|
1461
|
+
const backupKeys: RustSdkCryptoJs.BackupKeys = await this.olmMachine.getBackupKeys();
|
|
1462
|
+
const { decryptionKey, backupVersion } = backupKeys;
|
|
1463
|
+
if (!decryptionKey || !backupVersion) throw new Error("No decryption key found in crypto store");
|
|
1464
|
+
|
|
1465
|
+
const decodedDecryptionKey = decodeBase64(decryptionKey.toBase64());
|
|
1466
|
+
|
|
1467
|
+
const backupInfo = await this.backupManager.requestKeyBackupVersion(backupVersion);
|
|
1468
|
+
if (!backupInfo) throw new Error(`Backup version to restore ${backupVersion} not found on server`);
|
|
1469
|
+
|
|
1470
|
+
const backupDecryptor = await this.getBackupDecryptor(backupInfo, decodedDecryptionKey);
|
|
1471
|
+
|
|
1472
|
+
try {
|
|
1473
|
+
opts?.progressCallback?.({
|
|
1474
|
+
stage: ImportRoomKeyStage.Fetch,
|
|
1475
|
+
});
|
|
1476
|
+
|
|
1477
|
+
return await this.backupManager.restoreKeyBackup(backupVersion, backupDecryptor, opts);
|
|
1478
|
+
} finally {
|
|
1479
|
+
// Free to avoid to keep in memory the decryption key stored in it. To avoid to exposing it to an attacker.
|
|
1480
|
+
backupDecryptor.free();
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* Implementation of {@link CryptoApi#isDehydrationSupported}.
|
|
1486
|
+
*/
|
|
1487
|
+
public async isDehydrationSupported(): Promise<boolean> {
|
|
1488
|
+
return await this.dehydratedDeviceManager.isSupported();
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* Implementation of {@link CryptoApi#startDehydration}.
|
|
1493
|
+
*/
|
|
1494
|
+
public async startDehydration(opts: StartDehydrationOpts | boolean = {}): Promise<void> {
|
|
1495
|
+
if (!(await this.isCrossSigningReady()) || !(await this.isSecretStorageReady())) {
|
|
1496
|
+
throw new Error("Device dehydration requires cross-signing and secret storage to be set up");
|
|
1497
|
+
}
|
|
1498
|
+
return await this.dehydratedDeviceManager.start(opts || {});
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* Implementation of {@link CryptoApi#importSecretsBundle}.
|
|
1503
|
+
*/
|
|
1504
|
+
public async importSecretsBundle(
|
|
1505
|
+
secrets: Parameters<NonNullable<CryptoApi["importSecretsBundle"]>>[0],
|
|
1506
|
+
): Promise<void> {
|
|
1507
|
+
const secretsBundle = RustSdkCryptoJs.SecretsBundle.from_json(secrets);
|
|
1508
|
+
await this.getOlmMachineOrThrow().importSecretsBundle(secretsBundle); // this method frees the SecretsBundle
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Implementation of {@link CryptoApi#exportSecretsBundle}.
|
|
1513
|
+
*/
|
|
1514
|
+
public async exportSecretsBundle(): ReturnType<NonNullable<CryptoApi["exportSecretsBundle"]>> {
|
|
1515
|
+
const secretsBundle = await this.getOlmMachineOrThrow().exportSecretsBundle();
|
|
1516
|
+
const secrets = secretsBundle.to_json();
|
|
1517
|
+
secretsBundle.free();
|
|
1518
|
+
return secrets;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Implementation of {@link CryptoApi#encryptToDeviceMessages}.
|
|
1523
|
+
*/
|
|
1524
|
+
public async encryptToDeviceMessages(
|
|
1525
|
+
eventType: string,
|
|
1526
|
+
devices: { userId: string; deviceId: string }[],
|
|
1527
|
+
payload: ToDevicePayload,
|
|
1528
|
+
): Promise<ToDeviceBatch> {
|
|
1529
|
+
const logger = new LogSpan(this.logger, "encryptToDeviceMessages");
|
|
1530
|
+
const uniqueUsers = new Set(devices.map(({ userId }) => userId));
|
|
1531
|
+
|
|
1532
|
+
// This will ensure we have Olm sessions for all of the users' devices.
|
|
1533
|
+
// However, we only care about some of the devices.
|
|
1534
|
+
// So, perhaps we can optimise this later on.
|
|
1535
|
+
await this.keyClaimManager.ensureSessionsForUsers(
|
|
1536
|
+
logger,
|
|
1537
|
+
Array.from(uniqueUsers).map((userId) => new RustSdkCryptoJs.UserId(userId)),
|
|
1538
|
+
);
|
|
1539
|
+
const batch: ToDeviceBatch = {
|
|
1540
|
+
batch: [],
|
|
1541
|
+
eventType: EventType.RoomMessageEncrypted,
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
await Promise.all(
|
|
1545
|
+
devices.map(async ({ userId, deviceId }) => {
|
|
1546
|
+
const device: RustSdkCryptoJs.Device | undefined = await this.olmMachine.getDevice(
|
|
1547
|
+
new RustSdkCryptoJs.UserId(userId),
|
|
1548
|
+
new RustSdkCryptoJs.DeviceId(deviceId),
|
|
1549
|
+
);
|
|
1550
|
+
|
|
1551
|
+
if (device) {
|
|
1552
|
+
const encryptedPayload = JSON.parse(await device.encryptToDeviceEvent(eventType, payload));
|
|
1553
|
+
batch.batch.push({
|
|
1554
|
+
deviceId,
|
|
1555
|
+
userId,
|
|
1556
|
+
payload: encryptedPayload,
|
|
1557
|
+
});
|
|
1558
|
+
} else {
|
|
1559
|
+
this.logger.warn(`encryptToDeviceMessages: unknown device ${userId}:${deviceId}`);
|
|
1560
|
+
}
|
|
1561
|
+
}),
|
|
1562
|
+
);
|
|
1563
|
+
|
|
1564
|
+
return batch;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Implementation of {@link CryptoApi#resetEncryption}.
|
|
1569
|
+
*/
|
|
1570
|
+
public async resetEncryption(authUploadDeviceSigningKeys: UIAuthCallback<void>): Promise<void> {
|
|
1571
|
+
this.logger.debug("resetEncryption: resetting encryption");
|
|
1572
|
+
|
|
1573
|
+
// Delete the dehydrated device, since any existing one will be signed
|
|
1574
|
+
// by the wrong cross-signing key
|
|
1575
|
+
this.dehydratedDeviceManager.delete();
|
|
1576
|
+
|
|
1577
|
+
// Disable backup, and delete all the backups from the server
|
|
1578
|
+
await this.backupManager.deleteAllKeyBackupVersions();
|
|
1579
|
+
|
|
1580
|
+
await this.deleteSecretStorage();
|
|
1581
|
+
|
|
1582
|
+
// Reset the cross-signing keys
|
|
1583
|
+
await this.crossSigningIdentity.bootstrapCrossSigning({
|
|
1584
|
+
setupNewCrossSigning: true,
|
|
1585
|
+
authUploadDeviceSigningKeys,
|
|
1586
|
+
});
|
|
1587
|
+
|
|
1588
|
+
// Create a new key backup
|
|
1589
|
+
await this.resetKeyBackup();
|
|
1590
|
+
|
|
1591
|
+
this.logger.debug("resetEncryption: ended");
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* Removes the secret storage key, default key pointer and all (known) secret storage data
|
|
1596
|
+
* from the user's account data
|
|
1597
|
+
*/
|
|
1598
|
+
private async deleteSecretStorage(): Promise<void> {
|
|
1599
|
+
// Remove the stored secrets in the secret storage
|
|
1600
|
+
await this.secretStorage.store("m.cross_signing.master", null);
|
|
1601
|
+
await this.secretStorage.store("m.cross_signing.self_signing", null);
|
|
1602
|
+
await this.secretStorage.store("m.cross_signing.user_signing", null);
|
|
1603
|
+
await this.secretStorage.store("m.megolm_backup.v1", null);
|
|
1604
|
+
|
|
1605
|
+
// Remove the recovery key
|
|
1606
|
+
const defaultKeyId = await this.secretStorage.getDefaultKeyId();
|
|
1607
|
+
if (defaultKeyId) await this.secretStorage.store(`m.secret_storage.key.${defaultKeyId}`, null);
|
|
1608
|
+
// Disable the recovery key and the secret storage
|
|
1609
|
+
await this.secretStorage.setDefaultKeyId(null);
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Implementation of {@link CryptoApi#shareRoomHistoryWithUser}.
|
|
1614
|
+
*/
|
|
1615
|
+
public async shareRoomHistoryWithUser(roomId: string, userId: string): Promise<void> {
|
|
1616
|
+
const logger = new LogSpan(this.logger, `shareRoomHistoryWithUser(${roomId}, ${userId})`);
|
|
1617
|
+
|
|
1618
|
+
// 0. We can only share room history if our user has set up cross-signing.
|
|
1619
|
+
const identity = await this.getOwnIdentity();
|
|
1620
|
+
if (!identity?.isVerified()) {
|
|
1621
|
+
logger.warn(
|
|
1622
|
+
"Not sharing message history as the current device is not verified by our cross-signing identity",
|
|
1623
|
+
);
|
|
1624
|
+
return;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
logger.info("Sharing message history");
|
|
1628
|
+
|
|
1629
|
+
// 1. Download keys from backup.
|
|
1630
|
+
if (!(await this.getOlmMachineOrThrow().hasDownloadedAllRoomKeys(new RustSdkCryptoJs.RoomId(roomId)))) {
|
|
1631
|
+
await this.backupManager.downloadLatestRoomKeyBackup(roomId);
|
|
1632
|
+
await this.getOlmMachineOrThrow().setHasDownloadedAllRoomKeys(new RustSdkCryptoJs.RoomId(roomId));
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
// 2. Construct the key bundle
|
|
1636
|
+
const bundle = await this.getOlmMachineOrThrow().buildRoomKeyBundle(new RustSdkCryptoJs.RoomId(roomId));
|
|
1637
|
+
if (!bundle) {
|
|
1638
|
+
logger.info("No keys to share");
|
|
1639
|
+
return;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
// 3. Upload the encrypted bundle to the server
|
|
1643
|
+
const uploadResponse = await this.http.uploadContent(bundle.encryptedData as Uint8Array<ArrayBuffer>);
|
|
1644
|
+
logger.info(`Uploaded encrypted key blob: ${JSON.stringify(uploadResponse)}`);
|
|
1645
|
+
|
|
1646
|
+
// 4. We may not share a room with the user, so get a fresh list of devices for the invited user.
|
|
1647
|
+
const req = this.getOlmMachineOrThrow().queryKeysForUsers([new RustSdkCryptoJs.UserId(userId)]);
|
|
1648
|
+
await this.outgoingRequestProcessor.makeOutgoingRequest(req);
|
|
1649
|
+
|
|
1650
|
+
// 5. Establish Olm sessions with all of the recipient's devices.
|
|
1651
|
+
await this.keyClaimManager.ensureSessionsForUsers(logger, [new RustSdkCryptoJs.UserId(userId)]);
|
|
1652
|
+
|
|
1653
|
+
// 6. Send to-device messages to the recipient to share the keys.
|
|
1654
|
+
const requests = await this.getOlmMachineOrThrow().shareRoomKeyBundleData(
|
|
1655
|
+
new RustSdkCryptoJs.UserId(userId),
|
|
1656
|
+
new RustSdkCryptoJs.RoomId(roomId),
|
|
1657
|
+
uploadResponse.content_uri,
|
|
1658
|
+
bundle.mediaEncryptionInfo,
|
|
1659
|
+
RustSdkCryptoJs.CollectStrategy.identityBasedStrategy(),
|
|
1660
|
+
);
|
|
1661
|
+
for (const req of requests) {
|
|
1662
|
+
await this.outgoingRequestProcessor.makeOutgoingRequest(req);
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1667
|
+
//
|
|
1668
|
+
// SyncCryptoCallbacks implementation
|
|
1669
|
+
//
|
|
1670
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Apply sync changes to the olm machine
|
|
1674
|
+
* @param events - the received to-device messages
|
|
1675
|
+
* @param oneTimeKeysCounts - the received one time key counts
|
|
1676
|
+
* @param unusedFallbackKeys - the received unused fallback keys
|
|
1677
|
+
* @param devices - the received device list updates
|
|
1678
|
+
* @returns A list of processed to-device messages.
|
|
1679
|
+
*/
|
|
1680
|
+
private async receiveSyncChanges({
|
|
1681
|
+
events,
|
|
1682
|
+
oneTimeKeysCounts = new Map<string, number>(),
|
|
1683
|
+
unusedFallbackKeys,
|
|
1684
|
+
devices = new RustSdkCryptoJs.DeviceLists(),
|
|
1685
|
+
}: {
|
|
1686
|
+
events?: IToDeviceEvent[];
|
|
1687
|
+
oneTimeKeysCounts?: Map<string, number>;
|
|
1688
|
+
unusedFallbackKeys?: Set<string>;
|
|
1689
|
+
devices?: RustSdkCryptoJs.DeviceLists;
|
|
1690
|
+
}): Promise<RustSdkCryptoJs.ProcessedToDeviceEvent[]> {
|
|
1691
|
+
return await this.olmMachine.receiveSyncChanges(
|
|
1692
|
+
events ? JSON.stringify(events) : "[]",
|
|
1693
|
+
devices,
|
|
1694
|
+
oneTimeKeysCounts,
|
|
1695
|
+
unusedFallbackKeys,
|
|
1696
|
+
);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
/** called by the sync loop to preprocess incoming to-device messages
|
|
1700
|
+
*
|
|
1701
|
+
* @param events - the received to-device messages
|
|
1702
|
+
* @returns A list of preprocessed to-device messages.
|
|
1703
|
+
*/
|
|
1704
|
+
public async preprocessToDeviceMessages(events: IToDeviceEvent[]): Promise<ReceivedToDeviceMessage[]> {
|
|
1705
|
+
// send the received to-device messages into receiveSyncChanges. We have no info on device-list changes,
|
|
1706
|
+
// one-time-keys, or fallback keys, so just pass empty data.
|
|
1707
|
+
const processed = await this.receiveSyncChanges({ events });
|
|
1708
|
+
|
|
1709
|
+
const received: ReceivedToDeviceMessage[] = [];
|
|
1710
|
+
|
|
1711
|
+
for (const message of processed) {
|
|
1712
|
+
const parsedMessage: IToDeviceEvent = JSON.parse(message.rawEvent);
|
|
1713
|
+
|
|
1714
|
+
// look for interesting to-device messages
|
|
1715
|
+
if (parsedMessage.type === EventType.KeyVerificationRequest) {
|
|
1716
|
+
const sender = parsedMessage.sender;
|
|
1717
|
+
const transactionId = parsedMessage.content.transaction_id;
|
|
1718
|
+
if (transactionId && sender) {
|
|
1719
|
+
this.onIncomingKeyVerificationRequest(sender, transactionId);
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
switch (message.type) {
|
|
1724
|
+
case RustSdkCryptoJs.ProcessedToDeviceEventType.Decrypted: {
|
|
1725
|
+
const encryptionInfo = (message as RustSdkCryptoJs.DecryptedToDeviceEvent).encryptionInfo;
|
|
1726
|
+
received.push({
|
|
1727
|
+
message: parsedMessage,
|
|
1728
|
+
encryptionInfo: {
|
|
1729
|
+
sender: encryptionInfo.sender.toString(),
|
|
1730
|
+
senderDevice: encryptionInfo.senderDevice?.toString(),
|
|
1731
|
+
senderCurve25519KeyBase64: encryptionInfo.senderCurve25519Key,
|
|
1732
|
+
senderVerified: encryptionInfo.isSenderVerified(),
|
|
1733
|
+
},
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
// If we have received a room key bundle message, and have recently joined the room in question,
|
|
1737
|
+
// tell the Rust SDK to try and accept the key bundle.
|
|
1738
|
+
//
|
|
1739
|
+
// We don't actually need to validate the contents of the bundle message, or do
|
|
1740
|
+
// anything with its contents at all. We simply want to inform the Rust SDK we have
|
|
1741
|
+
// received a new room key bundle that we might be able to download.
|
|
1742
|
+
if (isRoomKeyBundleMessage(parsedMessage)) {
|
|
1743
|
+
const roomId = parsedMessage.content.room_id;
|
|
1744
|
+
const pendingDetails = await this.olmMachine.getPendingKeyBundleDetailsForRoom(
|
|
1745
|
+
new RustSdkCryptoJs.RoomId(roomId),
|
|
1746
|
+
);
|
|
1747
|
+
// Only accept the key bundle if we joined the room less than 24 hours ago.
|
|
1748
|
+
if (!pendingDetails) {
|
|
1749
|
+
this.logger.debug(
|
|
1750
|
+
`Not yet accepting key bundle for room where we are not awaiting a bundle: ${roomId}`,
|
|
1751
|
+
);
|
|
1752
|
+
} else if (
|
|
1753
|
+
Date.now() - pendingDetails.inviteAcceptedAtMillis >
|
|
1754
|
+
MAX_INVITE_ACCEPTANCE_MS_FOR_KEY_BUNDLE
|
|
1755
|
+
) {
|
|
1756
|
+
this.logger.info(
|
|
1757
|
+
`Ignoring key bundle for room we joined too long ago: ${roomId}, joining time: ${new Date(pendingDetails.inviteAcceptedAtMillis).toISOString()}`,
|
|
1758
|
+
);
|
|
1759
|
+
} else {
|
|
1760
|
+
this.logger.info(`Considering key bundle for recently-joined room ${roomId}`);
|
|
1761
|
+
// Don't block for the import to happen, here, as this is called from inside the `/sync` loop.
|
|
1762
|
+
this.maybeAcceptKeyBundle(roomId, pendingDetails.inviterId.toString()).catch((err) => {
|
|
1763
|
+
this.logger.error(`Error attempting to download key bundle for room ${roomId}`);
|
|
1764
|
+
this.logger.error(err);
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
break;
|
|
1770
|
+
}
|
|
1771
|
+
case RustSdkCryptoJs.ProcessedToDeviceEventType.PlainText: {
|
|
1772
|
+
received.push({
|
|
1773
|
+
message: parsedMessage,
|
|
1774
|
+
encryptionInfo: null,
|
|
1775
|
+
});
|
|
1776
|
+
break;
|
|
1777
|
+
}
|
|
1778
|
+
case RustSdkCryptoJs.ProcessedToDeviceEventType.UnableToDecrypt:
|
|
1779
|
+
// ignore messages we cannot decrypt
|
|
1780
|
+
break;
|
|
1781
|
+
case RustSdkCryptoJs.ProcessedToDeviceEventType.Invalid:
|
|
1782
|
+
// ignore invalid messages
|
|
1783
|
+
break;
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
return received;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/** called by the sync loop to process one time key counts and unused fallback keys
|
|
1791
|
+
*
|
|
1792
|
+
* @param oneTimeKeysCounts - the received one time key counts
|
|
1793
|
+
* @param unusedFallbackKeys - the received unused fallback keys
|
|
1794
|
+
*/
|
|
1795
|
+
public async processKeyCounts(
|
|
1796
|
+
oneTimeKeysCounts?: Record<string, number>,
|
|
1797
|
+
unusedFallbackKeys?: string[],
|
|
1798
|
+
): Promise<void> {
|
|
1799
|
+
const mapOneTimeKeysCount = oneTimeKeysCounts && new Map<string, number>(Object.entries(oneTimeKeysCounts));
|
|
1800
|
+
const setUnusedFallbackKeys = unusedFallbackKeys && new Set<string>(unusedFallbackKeys);
|
|
1801
|
+
|
|
1802
|
+
if (mapOneTimeKeysCount !== undefined || setUnusedFallbackKeys !== undefined) {
|
|
1803
|
+
await this.receiveSyncChanges({
|
|
1804
|
+
oneTimeKeysCounts: mapOneTimeKeysCount,
|
|
1805
|
+
unusedFallbackKeys: setUnusedFallbackKeys,
|
|
1806
|
+
});
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
/** called by the sync loop to process the notification that device lists have
|
|
1811
|
+
* been changed.
|
|
1812
|
+
*
|
|
1813
|
+
* @param deviceLists - device_lists field from /sync
|
|
1814
|
+
*/
|
|
1815
|
+
public async processDeviceLists(deviceLists: IDeviceLists): Promise<void> {
|
|
1816
|
+
const devices = new RustSdkCryptoJs.DeviceLists(
|
|
1817
|
+
deviceLists.changed?.map((userId) => new RustSdkCryptoJs.UserId(userId)),
|
|
1818
|
+
deviceLists.left?.map((userId) => new RustSdkCryptoJs.UserId(userId)),
|
|
1819
|
+
);
|
|
1820
|
+
await this.receiveSyncChanges({ devices });
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
/** called by the sync loop on m.room.encryption events
|
|
1824
|
+
*
|
|
1825
|
+
* @param room - in which the event was received
|
|
1826
|
+
* @param event - encryption event to be processed
|
|
1827
|
+
*/
|
|
1828
|
+
public async onCryptoEvent(room: Room, event: MatrixEvent): Promise<void> {
|
|
1829
|
+
const config = event.getContent();
|
|
1830
|
+
const settings = new RustSdkCryptoJs.RoomSettings();
|
|
1831
|
+
|
|
1832
|
+
if (config.algorithm === "m.megolm.v1.aes-sha2") {
|
|
1833
|
+
settings.algorithm = RustSdkCryptoJs.EncryptionAlgorithm.MegolmV1AesSha2;
|
|
1834
|
+
} else {
|
|
1835
|
+
// Among other situations, this happens if the crypto state event is redacted.
|
|
1836
|
+
this.logger.warn(`Room ${room.roomId}: ignoring crypto event with invalid algorithm ${config.algorithm}`);
|
|
1837
|
+
return;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
if (config["io.element.msc4362.encrypt_state_events"] && this.enableEncryptedStateEvents) {
|
|
1841
|
+
this.logger.info("crypto Enabling state event encryption...");
|
|
1842
|
+
settings.encryptStateEvents = true;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
try {
|
|
1846
|
+
settings.sessionRotationPeriodMs = config.rotation_period_ms;
|
|
1847
|
+
settings.sessionRotationPeriodMessages = config.rotation_period_msgs;
|
|
1848
|
+
await this.olmMachine.setRoomSettings(new RustSdkCryptoJs.RoomId(room.roomId), settings);
|
|
1849
|
+
} catch (e) {
|
|
1850
|
+
this.logger.warn(`Room ${room.roomId}: ignoring crypto event which caused error: ${e}`);
|
|
1851
|
+
return;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
// If we got this far, the SDK found the event acceptable.
|
|
1855
|
+
// We need to either create or update the active RoomEncryptor.
|
|
1856
|
+
const existingEncryptor = this.roomEncryptors[room.roomId];
|
|
1857
|
+
if (existingEncryptor) {
|
|
1858
|
+
existingEncryptor.onCryptoEvent(config);
|
|
1859
|
+
} else {
|
|
1860
|
+
this.roomEncryptors[room.roomId] = new RoomEncryptor(
|
|
1861
|
+
this.logger.getChild(`[${room.roomId} encryption]`),
|
|
1862
|
+
this.olmMachine,
|
|
1863
|
+
this.keyClaimManager,
|
|
1864
|
+
this.outgoingRequestsManager,
|
|
1865
|
+
room,
|
|
1866
|
+
config,
|
|
1867
|
+
);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
/** called by the sync loop after processing each sync.
|
|
1872
|
+
*
|
|
1873
|
+
*
|
|
1874
|
+
* @param syncState - information on the completed sync.
|
|
1875
|
+
*/
|
|
1876
|
+
public onSyncCompleted(syncState: OnSyncCompletedData): void {
|
|
1877
|
+
// Processing the /sync may have produced new outgoing requests which need sending, so kick off the outgoing
|
|
1878
|
+
// request loop, if it's not already running.
|
|
1879
|
+
this.outgoingRequestsManager.doProcessOutgoingRequests().catch((e) => {
|
|
1880
|
+
this.logger.warn("onSyncCompleted: Error processing outgoing requests", e);
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* Implementation of {@link CryptoApi#markAllTrackedUsersAsDirty}.
|
|
1886
|
+
*/
|
|
1887
|
+
public async markAllTrackedUsersAsDirty(): Promise<void> {
|
|
1888
|
+
await this.olmMachine.markAllTrackedUsersAsDirty();
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* Handle an incoming m.key.verification.request event, received either in-room or in a to-device message.
|
|
1893
|
+
*
|
|
1894
|
+
* @param sender - the sender of the event
|
|
1895
|
+
* @param transactionId - the transaction ID for the verification. For to-device messages, this comes from the
|
|
1896
|
+
* content of the message; for in-room messages it is the event ID.
|
|
1897
|
+
*/
|
|
1898
|
+
private onIncomingKeyVerificationRequest(sender: string, transactionId: string): void {
|
|
1899
|
+
const request: RustSdkCryptoJs.VerificationRequest | undefined = this.olmMachine.getVerificationRequest(
|
|
1900
|
+
new RustSdkCryptoJs.UserId(sender),
|
|
1901
|
+
transactionId,
|
|
1902
|
+
);
|
|
1903
|
+
|
|
1904
|
+
if (request) {
|
|
1905
|
+
this.emit(CryptoEvent.VerificationRequestReceived, this.makeVerificationRequest(request));
|
|
1906
|
+
} else {
|
|
1907
|
+
// There are multiple reasons this can happen; probably the most likely is that the event is an
|
|
1908
|
+
// in-room event which is too old.
|
|
1909
|
+
this.logger.info(
|
|
1910
|
+
`Ignoring just-received verification request ${transactionId} which did not start a rust-side verification`,
|
|
1911
|
+
);
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/** Utility function to wrap a rust `VerificationRequest` with our own {@link VerificationRequest}. */
|
|
1916
|
+
private makeVerificationRequest(request: RustSdkCryptoJs.VerificationRequest): VerificationRequest {
|
|
1917
|
+
return new RustVerificationRequest(
|
|
1918
|
+
this.logger,
|
|
1919
|
+
this.olmMachine,
|
|
1920
|
+
request,
|
|
1921
|
+
this.outgoingRequestProcessor,
|
|
1922
|
+
this._supportedVerificationMethods,
|
|
1923
|
+
);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1927
|
+
//
|
|
1928
|
+
// Other public functions
|
|
1929
|
+
//
|
|
1930
|
+
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1931
|
+
|
|
1932
|
+
/** called by the MatrixClient on a room membership event
|
|
1933
|
+
*
|
|
1934
|
+
* @param event - The matrix event which caused this event to fire.
|
|
1935
|
+
* @param member - The member whose RoomMember.membership changed.
|
|
1936
|
+
* @param oldMembership - The previous membership state. Null if it's a new member.
|
|
1937
|
+
*/
|
|
1938
|
+
public onRoomMembership(event: MatrixEvent, member: RoomMember, oldMembership?: string): void {
|
|
1939
|
+
const roomId = event.getRoomId()!;
|
|
1940
|
+
|
|
1941
|
+
// If it's our own membership, and we are no longer joined, clear any indication that we are waiting for a key
|
|
1942
|
+
// bundle.
|
|
1943
|
+
if (
|
|
1944
|
+
oldMembership === KnownMembership.Join &&
|
|
1945
|
+
member.membership !== KnownMembership.Join &&
|
|
1946
|
+
member.userId === this.olmMachine.userId.toString()
|
|
1947
|
+
) {
|
|
1948
|
+
this.olmMachine.clearRoomPendingKeyBundle(new RustSdkCryptoJs.RoomId(roomId)).catch((e) => {
|
|
1949
|
+
this.logger.error(`Error clearing room pending key bundle indicator for ${roomId}: ${e}`);
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
const enc = this.roomEncryptors[roomId];
|
|
1954
|
+
if (!enc) {
|
|
1955
|
+
// not encrypting in this room
|
|
1956
|
+
return;
|
|
1957
|
+
}
|
|
1958
|
+
enc.onRoomMembership(member);
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* Previously, it was sufficient to check if we need to rotate the room key
|
|
1963
|
+
* prior to sending a message. However, the history sharing feature
|
|
1964
|
+
* (MSC4268) breaks this logic:
|
|
1965
|
+
*
|
|
1966
|
+
* 1. Alice sends a message M1 in room X;
|
|
1967
|
+
* 2. Bob invites Charlie, who joins and immediately leaves the room;
|
|
1968
|
+
* 3. Alice sends another message M2 in room X.
|
|
1969
|
+
*
|
|
1970
|
+
* Under the old logic, Alice would not rotate her key after Charlie
|
|
1971
|
+
* leaves, resulting in M2 being encrypted with the same session as M1.
|
|
1972
|
+
* This would allow Charlie to decrypt M2 if he ever gains access to
|
|
1973
|
+
* the event.
|
|
1974
|
+
*
|
|
1975
|
+
* To counter this, we proactively discard any active outgoing Megolm
|
|
1976
|
+
* session when we see an event indicating the user left.
|
|
1977
|
+
*
|
|
1978
|
+
* Note that we have to do this in `onRoomStateEvent` rather than
|
|
1979
|
+
* `onRoomMembership`, because `onRoomMembership` is only called when we see
|
|
1980
|
+
* a *change* in membership. In the case of a gappy sync, we might miss
|
|
1981
|
+
* Charlie's invite and join, and only see the final `leave` event (so his
|
|
1982
|
+
* membership goes from `leave` to `leave`).
|
|
1983
|
+
*/
|
|
1984
|
+
public onRoomStateEvent(event: MatrixEvent, _state: RoomState, _prevEvent: MatrixEvent | null): void {
|
|
1985
|
+
if (event.getType() != EventType.RoomMember) {
|
|
1986
|
+
// Ignore all events that aren't member updates.
|
|
1987
|
+
return;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
if (
|
|
1991
|
+
event.getStateKey()! !== this.olmMachine.userId.toString() &&
|
|
1992
|
+
event.getContent().membership !== KnownMembership.Join
|
|
1993
|
+
) {
|
|
1994
|
+
this.logger.info(`Rotating session for room ${event.getRoomId()} due to member leaving the room`);
|
|
1995
|
+
this.forceDiscardSession(event.getRoomId()!);
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
/** Callback for OlmMachine.registerRoomKeyUpdatedCallback
|
|
2000
|
+
*
|
|
2001
|
+
* Called by the rust-sdk whenever there is an update to (megolm) room keys. We
|
|
2002
|
+
* check if we have any events waiting for the given keys, and schedule them for
|
|
2003
|
+
* a decryption retry if so.
|
|
2004
|
+
*
|
|
2005
|
+
* @param keys - details of the updated keys
|
|
2006
|
+
*/
|
|
2007
|
+
public async onRoomKeysUpdated(keys: RustSdkCryptoJs.RoomKeyInfo[]): Promise<void> {
|
|
2008
|
+
for (const key of keys) {
|
|
2009
|
+
this.onRoomKeyUpdated(key);
|
|
2010
|
+
}
|
|
2011
|
+
this.backupManager.maybeUploadKey();
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
private onRoomKeyUpdated(key: RustSdkCryptoJs.RoomKeyInfo): void {
|
|
2015
|
+
if (this.stopped) return;
|
|
2016
|
+
this.logger.debug(
|
|
2017
|
+
`Got update for session ${key.sessionId} from sender ${key.senderKey.toBase64()} in ${key.roomId.toString()}`,
|
|
2018
|
+
);
|
|
2019
|
+
const pendingList = this.eventDecryptor.getEventsPendingRoomKey(key.roomId.toString(), key.sessionId);
|
|
2020
|
+
if (pendingList.length === 0) return;
|
|
2021
|
+
|
|
2022
|
+
this.logger.debug(
|
|
2023
|
+
"Retrying decryption on events:",
|
|
2024
|
+
pendingList.map((e) => `${e.getId()}`),
|
|
2025
|
+
);
|
|
2026
|
+
|
|
2027
|
+
// Have another go at decrypting events with this key.
|
|
2028
|
+
//
|
|
2029
|
+
// We don't want to end up blocking the callback from Rust, which could otherwise end up dropping updates,
|
|
2030
|
+
// so we don't wait for the decryption to complete. In any case, there is no need to wait:
|
|
2031
|
+
// MatrixEvent.attemptDecryption ensures that there is only one decryption attempt happening at once,
|
|
2032
|
+
// and deduplicates repeated attempts for the same event.
|
|
2033
|
+
for (const ev of pendingList) {
|
|
2034
|
+
ev.attemptDecryption(this, { isRetry: true }).catch((_e) => {
|
|
2035
|
+
this.logger.info(`Still unable to decrypt event ${ev.getId()} after receiving key`);
|
|
2036
|
+
});
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Callback for `OlmMachine.registerRoomKeyWithheldCallback`.
|
|
2042
|
+
*
|
|
2043
|
+
* Called by the rust sdk whenever we are told that a key has been withheld. We see if we had any events that
|
|
2044
|
+
* failed to decrypt for the given session, and update their status if so.
|
|
2045
|
+
*
|
|
2046
|
+
* @param withheld - Details of the withheld sessions.
|
|
2047
|
+
*/
|
|
2048
|
+
public async onRoomKeysWithheld(withheld: RustSdkCryptoJs.RoomKeyWithheldInfo[]): Promise<void> {
|
|
2049
|
+
for (const session of withheld) {
|
|
2050
|
+
this.logger.debug(`Got withheld message for session ${session.sessionId} in ${session.roomId.toString()}`);
|
|
2051
|
+
const pendingList = this.eventDecryptor.getEventsPendingRoomKey(
|
|
2052
|
+
session.roomId.toString(),
|
|
2053
|
+
session.sessionId,
|
|
2054
|
+
);
|
|
2055
|
+
if (pendingList.length === 0) return;
|
|
2056
|
+
|
|
2057
|
+
// The easiest way to update the status of the event is to have another go at decrypting it.
|
|
2058
|
+
this.logger.debug(
|
|
2059
|
+
"Retrying decryption on events:",
|
|
2060
|
+
pendingList.map((e) => `${e.getId()}`),
|
|
2061
|
+
);
|
|
2062
|
+
|
|
2063
|
+
for (const ev of pendingList) {
|
|
2064
|
+
ev.attemptDecryption(this, { isRetry: true }).catch((_e) => {
|
|
2065
|
+
// It's somewhat expected that we still can't decrypt here.
|
|
2066
|
+
});
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Callback for `OlmMachine.registerUserIdentityUpdatedCallback`
|
|
2073
|
+
*
|
|
2074
|
+
* Called by the rust-sdk whenever there is an update to any user's cross-signing status. We re-check their trust
|
|
2075
|
+
* status and emit a `UserTrustStatusChanged` event, as well as a `KeysChanged` if it is our own identity that changed.
|
|
2076
|
+
*
|
|
2077
|
+
* @param userId - the user with the updated identity
|
|
2078
|
+
*/
|
|
2079
|
+
public async onUserIdentityUpdated(userId: RustSdkCryptoJs.UserId): Promise<void> {
|
|
2080
|
+
const newVerification = await this.getUserVerificationStatus(userId.toString());
|
|
2081
|
+
this.emit(CryptoEvent.UserTrustStatusChanged, userId.toString(), newVerification);
|
|
2082
|
+
|
|
2083
|
+
// If our own user identity has changed, we may now trust the key backup where we did not before.
|
|
2084
|
+
// So, re-check the key backup status and enable it if available.
|
|
2085
|
+
if (userId.toString() === this.userId) {
|
|
2086
|
+
this.emit(CryptoEvent.KeysChanged, {});
|
|
2087
|
+
await this.checkKeyBackupAndEnable();
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
/**
|
|
2092
|
+
* Callback for `OlmMachine.registerDevicesUpdatedCallback`
|
|
2093
|
+
*
|
|
2094
|
+
* Called when users' devices have updated. Emits `WillUpdateDevices` and `DevicesUpdated`. In the JavaScript
|
|
2095
|
+
* crypto backend, these events are called at separate times, with `WillUpdateDevices` being emitted just before
|
|
2096
|
+
* the devices are saved, and `DevicesUpdated` being emitted just after. But the OlmMachine only gives us
|
|
2097
|
+
* one event, so we emit both events here.
|
|
2098
|
+
*
|
|
2099
|
+
* @param userIds - an array of user IDs of users whose devices have updated.
|
|
2100
|
+
*/
|
|
2101
|
+
public async onDevicesUpdated(userIds: string[]): Promise<void> {
|
|
2102
|
+
this.emit(CryptoEvent.WillUpdateDevices, userIds, false);
|
|
2103
|
+
this.emit(CryptoEvent.DevicesUpdated, userIds, false);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* Handles secret received from the rust secret inbox.
|
|
2108
|
+
*
|
|
2109
|
+
* The gossipped secrets are received using the `m.secret.send` or
|
|
2110
|
+
* `io.element.msc4385.secret.push` event types and are guaranteed to have
|
|
2111
|
+
* been received over a 1-to-1 Olm Session from a verified device.
|
|
2112
|
+
*
|
|
2113
|
+
* The only secret currently handled in this way is `m.megolm_backup.v1`.
|
|
2114
|
+
*
|
|
2115
|
+
* @param name - the secret name
|
|
2116
|
+
* @param value - the secret value
|
|
2117
|
+
*/
|
|
2118
|
+
private async handleSecretReceived(name: string, value: string): Promise<boolean> {
|
|
2119
|
+
this.logger.debug(`onReceiveSecret: Received secret ${name}`);
|
|
2120
|
+
if (name === "m.megolm_backup.v1") {
|
|
2121
|
+
return await this.backupManager.handleBackupSecretReceived(value);
|
|
2122
|
+
// XXX at this point we should probably try to download the backup and import the keys,
|
|
2123
|
+
// or at least retry for the current decryption failures?
|
|
2124
|
+
// Maybe add some signaling when a new secret is received, and let clients handle it?
|
|
2125
|
+
// as it's where the restore from backup APIs are exposed.
|
|
2126
|
+
}
|
|
2127
|
+
return false;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* Called when a new secret is received in the rust secret inbox.
|
|
2132
|
+
*
|
|
2133
|
+
* Will poll the secret inbox and handle the secrets received.
|
|
2134
|
+
*
|
|
2135
|
+
* @param name - The name of the secret received.
|
|
2136
|
+
*/
|
|
2137
|
+
public async checkSecrets(name: string): Promise<void> {
|
|
2138
|
+
const pendingValues: Set<string> = await this.olmMachine.getSecretsFromInbox(name);
|
|
2139
|
+
for (const value of pendingValues) {
|
|
2140
|
+
if (await this.handleSecretReceived(name, value)) {
|
|
2141
|
+
// If we have a valid secret for that name there is no point of processing the other secrets values.
|
|
2142
|
+
// It's probably the same secret shared by another device.
|
|
2143
|
+
break;
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
// Important to call this after handling the secrets as good hygiene.
|
|
2148
|
+
await this.olmMachine.deleteSecretsFromInbox(name);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
/**
|
|
2152
|
+
* Handle a live event received via /sync.
|
|
2153
|
+
* See {@link ClientEventHandlerMap#event}
|
|
2154
|
+
*
|
|
2155
|
+
* @param event - live event
|
|
2156
|
+
*/
|
|
2157
|
+
public async onLiveEventFromSync(event: MatrixEvent): Promise<void> {
|
|
2158
|
+
// Ignore state event or remote echo
|
|
2159
|
+
// transaction_id is provided in case of remote echo {@link https://spec.matrix.org/v1.7/client-server-api/#local-echo}
|
|
2160
|
+
if (event.isState() || !!event.getUnsigned().transaction_id) return;
|
|
2161
|
+
|
|
2162
|
+
const processEvent = async (evt: MatrixEvent): Promise<void> => {
|
|
2163
|
+
// Process only verification event
|
|
2164
|
+
if (isVerificationEvent(event)) {
|
|
2165
|
+
await this.onKeyVerificationEvent(evt);
|
|
2166
|
+
}
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
// If the event is encrypted of in failure, we wait for decryption
|
|
2170
|
+
if (event.isDecryptionFailure() || event.isEncrypted()) {
|
|
2171
|
+
// 5 mins
|
|
2172
|
+
const TIMEOUT_DELAY = 5 * 60 * 1000;
|
|
2173
|
+
|
|
2174
|
+
// After 5mins, we are not expecting the event to be decrypted
|
|
2175
|
+
const timeoutId = setTimeout(() => event.off(MatrixEventEvent.Decrypted, onDecrypted), TIMEOUT_DELAY);
|
|
2176
|
+
|
|
2177
|
+
const onDecrypted = (decryptedEvent: MatrixEvent, error?: Error): void => {
|
|
2178
|
+
if (error) return;
|
|
2179
|
+
|
|
2180
|
+
clearTimeout(timeoutId);
|
|
2181
|
+
event.off(MatrixEventEvent.Decrypted, onDecrypted);
|
|
2182
|
+
processEvent(decryptedEvent);
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
event.on(MatrixEventEvent.Decrypted, onDecrypted);
|
|
2186
|
+
} else {
|
|
2187
|
+
await processEvent(event);
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
/**
|
|
2192
|
+
* Handle an in-room key verification event.
|
|
2193
|
+
*
|
|
2194
|
+
* @param event - a key validation request event.
|
|
2195
|
+
*/
|
|
2196
|
+
private async onKeyVerificationEvent(event: MatrixEvent): Promise<void> {
|
|
2197
|
+
const roomId = event.getRoomId();
|
|
2198
|
+
const senderId = event.getSender();
|
|
2199
|
+
|
|
2200
|
+
if (!roomId) {
|
|
2201
|
+
throw new Error("missing roomId in the event");
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
if (!senderId) {
|
|
2205
|
+
throw new Error("missing sender in the event");
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
this.logger.debug(
|
|
2209
|
+
`Incoming verification event ${event.getId()} type ${event.getType()} from ${event.getSender()}`,
|
|
2210
|
+
);
|
|
2211
|
+
|
|
2212
|
+
const isRoomVerificationRequest =
|
|
2213
|
+
event.getType() === EventType.RoomMessage && event.getContent().msgtype === MsgType.KeyVerificationRequest;
|
|
2214
|
+
|
|
2215
|
+
if (isRoomVerificationRequest) {
|
|
2216
|
+
// Before processing an in-room verification request, we need to
|
|
2217
|
+
// make sure we have the sender's device information - otherwise we
|
|
2218
|
+
// will immediately abort verification. So we explicitly fetch it
|
|
2219
|
+
// from /keys/query and wait for that request to complete before we
|
|
2220
|
+
// call receiveVerificationEvent.
|
|
2221
|
+
const req = this.getOlmMachineOrThrow().queryKeysForUsers([new RustSdkCryptoJs.UserId(senderId)]);
|
|
2222
|
+
await this.outgoingRequestProcessor.makeOutgoingRequest(req);
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
await this.getOlmMachineOrThrow().receiveVerificationEvent(
|
|
2226
|
+
JSON.stringify({
|
|
2227
|
+
event_id: event.getId(),
|
|
2228
|
+
type: event.getType(),
|
|
2229
|
+
sender: senderId,
|
|
2230
|
+
state_key: event.getStateKey(),
|
|
2231
|
+
content: event.getContent(),
|
|
2232
|
+
origin_server_ts: event.getTs(),
|
|
2233
|
+
}),
|
|
2234
|
+
new RustSdkCryptoJs.RoomId(roomId),
|
|
2235
|
+
);
|
|
2236
|
+
|
|
2237
|
+
if (isRoomVerificationRequest) {
|
|
2238
|
+
this.onIncomingKeyVerificationRequest(senderId, event.getId()!);
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
// that may have caused us to queue up outgoing requests, so make sure we send them.
|
|
2242
|
+
this.outgoingRequestsManager.doProcessOutgoingRequests().catch((e) => {
|
|
2243
|
+
this.logger.warn("onKeyVerificationRequest: Error processing outgoing requests", e);
|
|
2244
|
+
});
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* Returns the cross-signing user identity of the current user.
|
|
2249
|
+
*
|
|
2250
|
+
* Not part of the public crypto-api interface.
|
|
2251
|
+
* Used during migration from legacy js-crypto to update local trust if needed.
|
|
2252
|
+
*/
|
|
2253
|
+
public async getOwnIdentity(): Promise<RustSdkCryptoJs.OwnUserIdentity | undefined> {
|
|
2254
|
+
const identity = (await this.getOlmMachineOrThrow().getIdentity(new RustSdkCryptoJs.UserId(this.userId))) as
|
|
2255
|
+
| RustSdkCryptoJs.OwnUserIdentity
|
|
2256
|
+
| undefined;
|
|
2257
|
+
return identity;
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* Push a secret to all of the current user's verified devices.
|
|
2262
|
+
*/
|
|
2263
|
+
public async pushSecretToVerifiedDevices(name: string): Promise<void> {
|
|
2264
|
+
const logger = new LogSpan(this.logger, "pushSecretToVerifiedDevices");
|
|
2265
|
+
await this.keyClaimManager.ensureSessionsForUsers(logger, [new RustSdkCryptoJs.UserId(this.userId)]);
|
|
2266
|
+
await this.olmMachine.pushSecretToVerifiedDevices(name);
|
|
2267
|
+
this.outgoingRequestsManager.doProcessOutgoingRequests().catch((e) => {
|
|
2268
|
+
logger.warn("pushSecretToVerifiedDevices: Error processing outgoing requests", e);
|
|
2269
|
+
});
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
class EventDecryptor {
|
|
2274
|
+
/**
|
|
2275
|
+
* Events which we couldn't decrypt due to unknown sessions / indexes.
|
|
2276
|
+
*
|
|
2277
|
+
* Map from roomId to sessionId to Set of MatrixEvents
|
|
2278
|
+
*/
|
|
2279
|
+
private eventsPendingKey = new MapWithDefault<string, MapWithDefault<string, Set<MatrixEvent>>>(
|
|
2280
|
+
() => new MapWithDefault<string, Set<MatrixEvent>>(() => new Set()),
|
|
2281
|
+
);
|
|
2282
|
+
|
|
2283
|
+
public constructor(
|
|
2284
|
+
private readonly logger: Logger,
|
|
2285
|
+
private readonly olmMachine: RustSdkCryptoJs.OlmMachine,
|
|
2286
|
+
private readonly perSessionBackupDownloader: PerSessionKeyBackupDownloader,
|
|
2287
|
+
) {}
|
|
2288
|
+
|
|
2289
|
+
public async attemptEventDecryption(
|
|
2290
|
+
event: MatrixEvent,
|
|
2291
|
+
isolationMode: DeviceIsolationMode,
|
|
2292
|
+
): Promise<EventDecryptionResult> {
|
|
2293
|
+
// add the event to the pending list *before* attempting to decrypt.
|
|
2294
|
+
// then, if the key turns up while decryption is in progress (and
|
|
2295
|
+
// decryption fails), we will schedule a retry.
|
|
2296
|
+
// (fixes https://github.com/vector-im/element-web/issues/5001)
|
|
2297
|
+
this.addEventToPendingList(event);
|
|
2298
|
+
|
|
2299
|
+
let trustRequirement;
|
|
2300
|
+
|
|
2301
|
+
switch (isolationMode.kind) {
|
|
2302
|
+
case DeviceIsolationModeKind.AllDevicesIsolationMode:
|
|
2303
|
+
trustRequirement = RustSdkCryptoJs.TrustRequirement.Untrusted;
|
|
2304
|
+
break;
|
|
2305
|
+
case DeviceIsolationModeKind.OnlySignedDevicesIsolationMode:
|
|
2306
|
+
trustRequirement = RustSdkCryptoJs.TrustRequirement.CrossSignedOrLegacy;
|
|
2307
|
+
break;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
try {
|
|
2311
|
+
const res = (await this.olmMachine.decryptRoomEvent(
|
|
2312
|
+
stringifyEvent(event),
|
|
2313
|
+
new RustSdkCryptoJs.RoomId(event.getRoomId()!),
|
|
2314
|
+
new RustSdkCryptoJs.DecryptionSettings(trustRequirement),
|
|
2315
|
+
)) as RustSdkCryptoJs.DecryptedRoomEvent;
|
|
2316
|
+
|
|
2317
|
+
// Success. We can remove the event from the pending list, if
|
|
2318
|
+
// that hasn't already happened.
|
|
2319
|
+
this.removeEventFromPendingList(event);
|
|
2320
|
+
|
|
2321
|
+
return {
|
|
2322
|
+
clearEvent: JSON.parse(res.event),
|
|
2323
|
+
claimedEd25519Key: res.senderClaimedEd25519Key,
|
|
2324
|
+
senderCurve25519Key: res.senderCurve25519Key,
|
|
2325
|
+
keyForwardedBy: res.forwarder?.toString(),
|
|
2326
|
+
};
|
|
2327
|
+
} catch (err) {
|
|
2328
|
+
if (err instanceof RustSdkCryptoJs.MegolmDecryptionError) {
|
|
2329
|
+
this.onMegolmDecryptionError(event, err, await this.perSessionBackupDownloader.getServerBackupInfo());
|
|
2330
|
+
} else {
|
|
2331
|
+
throw new DecryptionError(DecryptionFailureCode.UNKNOWN_ERROR, "Unknown error");
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* Handle a `MegolmDecryptionError` returned by the rust SDK.
|
|
2338
|
+
*
|
|
2339
|
+
* Fires off a request to the `perSessionBackupDownloader`, if appropriate, and then throws a `DecryptionError`.
|
|
2340
|
+
*
|
|
2341
|
+
* @param event - The event which could not be decrypted.
|
|
2342
|
+
* @param err - The error from the Rust SDK.
|
|
2343
|
+
* @param serverBackupInfo - Details about the current backup from the server. `null` if there is no backup.
|
|
2344
|
+
* `undefined` if our attempt to check failed.
|
|
2345
|
+
*/
|
|
2346
|
+
private onMegolmDecryptionError(
|
|
2347
|
+
event: MatrixEvent,
|
|
2348
|
+
err: RustSdkCryptoJs.MegolmDecryptionError,
|
|
2349
|
+
serverBackupInfo: KeyBackupInfo | null | undefined,
|
|
2350
|
+
): never {
|
|
2351
|
+
const content = event.getWireContent();
|
|
2352
|
+
const errorDetails = { sender_key: content.sender_key, session_id: content.session_id };
|
|
2353
|
+
|
|
2354
|
+
// If the error looks like it might be recoverable from backup, queue up a request to try that.
|
|
2355
|
+
if (
|
|
2356
|
+
err.code === RustSdkCryptoJs.DecryptionErrorCode.MissingRoomKey ||
|
|
2357
|
+
err.code === RustSdkCryptoJs.DecryptionErrorCode.UnknownMessageIndex
|
|
2358
|
+
) {
|
|
2359
|
+
this.perSessionBackupDownloader.onDecryptionKeyMissingError(event.getRoomId()!, content.session_id!);
|
|
2360
|
+
|
|
2361
|
+
// If the server is telling us our membership at the time the event
|
|
2362
|
+
// was sent, and it isn't "join", we use a different error code.
|
|
2363
|
+
const membership = event.getMembershipAtEvent();
|
|
2364
|
+
if (membership && membership !== KnownMembership.Join && membership !== KnownMembership.Invite) {
|
|
2365
|
+
throw new DecryptionError(
|
|
2366
|
+
DecryptionFailureCode.HISTORICAL_MESSAGE_USER_NOT_JOINED,
|
|
2367
|
+
"This message was sent when we were not a member of the room.",
|
|
2368
|
+
errorDetails,
|
|
2369
|
+
);
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
// If the event was sent before this device was created, we use some different error codes.
|
|
2373
|
+
if (event.getTs() <= this.olmMachine.deviceCreationTimeMs) {
|
|
2374
|
+
if (serverBackupInfo === null) {
|
|
2375
|
+
throw new DecryptionError(
|
|
2376
|
+
DecryptionFailureCode.HISTORICAL_MESSAGE_NO_KEY_BACKUP,
|
|
2377
|
+
"This message was sent before this device logged in, and there is no key backup on the server.",
|
|
2378
|
+
errorDetails,
|
|
2379
|
+
);
|
|
2380
|
+
} else if (!this.perSessionBackupDownloader.isKeyBackupDownloadConfigured()) {
|
|
2381
|
+
throw new DecryptionError(
|
|
2382
|
+
DecryptionFailureCode.HISTORICAL_MESSAGE_BACKUP_UNCONFIGURED,
|
|
2383
|
+
"This message was sent before this device logged in, and key backup is not working.",
|
|
2384
|
+
errorDetails,
|
|
2385
|
+
);
|
|
2386
|
+
} else {
|
|
2387
|
+
throw new DecryptionError(
|
|
2388
|
+
DecryptionFailureCode.HISTORICAL_MESSAGE_WORKING_BACKUP,
|
|
2389
|
+
"This message was sent before this device logged in. Key backup is working, but we still do not (yet) have the key.",
|
|
2390
|
+
errorDetails,
|
|
2391
|
+
);
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
// If we got a withheld code, expose that.
|
|
2397
|
+
if (err.maybe_withheld) {
|
|
2398
|
+
// Unfortunately the Rust SDK API doesn't let us distinguish between different withheld cases, other than
|
|
2399
|
+
// by string-matching.
|
|
2400
|
+
const failureCode =
|
|
2401
|
+
err.maybe_withheld === "The sender has disabled encrypting to unverified devices."
|
|
2402
|
+
? DecryptionFailureCode.MEGOLM_KEY_WITHHELD_FOR_UNVERIFIED_DEVICE
|
|
2403
|
+
: DecryptionFailureCode.MEGOLM_KEY_WITHHELD;
|
|
2404
|
+
throw new DecryptionError(failureCode, err.maybe_withheld, errorDetails);
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
switch (err.code) {
|
|
2408
|
+
case RustSdkCryptoJs.DecryptionErrorCode.MissingRoomKey:
|
|
2409
|
+
throw new DecryptionError(
|
|
2410
|
+
DecryptionFailureCode.MEGOLM_UNKNOWN_INBOUND_SESSION_ID,
|
|
2411
|
+
"The sender's device has not sent us the keys for this message.",
|
|
2412
|
+
errorDetails,
|
|
2413
|
+
);
|
|
2414
|
+
|
|
2415
|
+
case RustSdkCryptoJs.DecryptionErrorCode.UnknownMessageIndex:
|
|
2416
|
+
throw new DecryptionError(
|
|
2417
|
+
DecryptionFailureCode.OLM_UNKNOWN_MESSAGE_INDEX,
|
|
2418
|
+
"The sender's device has not sent us the keys for this message at this index.",
|
|
2419
|
+
errorDetails,
|
|
2420
|
+
);
|
|
2421
|
+
|
|
2422
|
+
case RustSdkCryptoJs.DecryptionErrorCode.SenderIdentityVerificationViolation:
|
|
2423
|
+
// We're refusing to decrypt due to not trusting the sender,
|
|
2424
|
+
// rather than failing to decrypt due to lack of keys, so we
|
|
2425
|
+
// don't need to keep it on the pending list.
|
|
2426
|
+
this.removeEventFromPendingList(event);
|
|
2427
|
+
throw new DecryptionError(
|
|
2428
|
+
DecryptionFailureCode.SENDER_IDENTITY_PREVIOUSLY_VERIFIED,
|
|
2429
|
+
"The sender identity is unverified, but was previously verified.",
|
|
2430
|
+
);
|
|
2431
|
+
|
|
2432
|
+
case RustSdkCryptoJs.DecryptionErrorCode.UnknownSenderDevice:
|
|
2433
|
+
// We're refusing to decrypt due to not trusting the sender,
|
|
2434
|
+
// rather than failing to decrypt due to lack of keys, so we
|
|
2435
|
+
// don't need to keep it on the pending list.
|
|
2436
|
+
this.removeEventFromPendingList(event);
|
|
2437
|
+
throw new DecryptionError(
|
|
2438
|
+
DecryptionFailureCode.UNKNOWN_SENDER_DEVICE,
|
|
2439
|
+
"The sender device is not known.",
|
|
2440
|
+
);
|
|
2441
|
+
|
|
2442
|
+
case RustSdkCryptoJs.DecryptionErrorCode.UnsignedSenderDevice:
|
|
2443
|
+
// We're refusing to decrypt due to not trusting the sender,
|
|
2444
|
+
// rather than failing to decrypt due to lack of keys, so we
|
|
2445
|
+
// don't need to keep it on the pending list.
|
|
2446
|
+
this.removeEventFromPendingList(event);
|
|
2447
|
+
throw new DecryptionError(
|
|
2448
|
+
DecryptionFailureCode.UNSIGNED_SENDER_DEVICE,
|
|
2449
|
+
"The sender identity is not cross-signed.",
|
|
2450
|
+
);
|
|
2451
|
+
|
|
2452
|
+
// We don't map MismatchedIdentityKeys for now, as there is no equivalent in legacy.
|
|
2453
|
+
// Just put it on the `UNKNOWN_ERROR` bucket.
|
|
2454
|
+
default:
|
|
2455
|
+
throw new DecryptionError(DecryptionFailureCode.UNKNOWN_ERROR, err.description, errorDetails);
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
public async getEncryptionInfoForEvent(event: MatrixEvent): Promise<EventEncryptionInfo | null> {
|
|
2460
|
+
if (!event.getClearContent() || event.isDecryptionFailure()) {
|
|
2461
|
+
// not successfully decrypted
|
|
2462
|
+
return null;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
// special-case outgoing events, which the rust crypto-sdk will barf on
|
|
2466
|
+
if (event.status !== null) {
|
|
2467
|
+
return { shieldColour: EventShieldColour.NONE, shieldReason: null };
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
const encryptionInfo = await this.olmMachine.getRoomEventEncryptionInfo(
|
|
2471
|
+
stringifyEvent(event),
|
|
2472
|
+
new RustSdkCryptoJs.RoomId(event.getRoomId()!),
|
|
2473
|
+
);
|
|
2474
|
+
|
|
2475
|
+
return rustEncryptionInfoToJsEncryptionInfo(this.logger, encryptionInfo);
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* Look for events which are waiting for a given megolm session
|
|
2480
|
+
*
|
|
2481
|
+
* Returns a list of events which were encrypted by `session` and could not be decrypted
|
|
2482
|
+
*/
|
|
2483
|
+
public getEventsPendingRoomKey(roomId: string, sessionId: string): MatrixEvent[] {
|
|
2484
|
+
const roomPendingEvents = this.eventsPendingKey.get(roomId);
|
|
2485
|
+
if (!roomPendingEvents) return [];
|
|
2486
|
+
|
|
2487
|
+
const sessionPendingEvents = roomPendingEvents.get(sessionId);
|
|
2488
|
+
if (!sessionPendingEvents) return [];
|
|
2489
|
+
|
|
2490
|
+
return [...sessionPendingEvents];
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
/**
|
|
2494
|
+
* Add an event to the list of those awaiting their session keys.
|
|
2495
|
+
*/
|
|
2496
|
+
private addEventToPendingList(event: MatrixEvent): void {
|
|
2497
|
+
const roomId = event.getRoomId();
|
|
2498
|
+
// We shouldn't have events without a room id here.
|
|
2499
|
+
if (!roomId) return;
|
|
2500
|
+
|
|
2501
|
+
const roomPendingEvents = this.eventsPendingKey.getOrCreate(roomId);
|
|
2502
|
+
const sessionPendingEvents = roomPendingEvents.getOrCreate(event.getWireContent().session_id);
|
|
2503
|
+
sessionPendingEvents.add(event);
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Remove an event from the list of those awaiting their session keys.
|
|
2508
|
+
*/
|
|
2509
|
+
private removeEventFromPendingList(event: MatrixEvent): void {
|
|
2510
|
+
const roomId = event.getRoomId();
|
|
2511
|
+
if (!roomId) return;
|
|
2512
|
+
|
|
2513
|
+
const roomPendingEvents = this.eventsPendingKey.getOrCreate(roomId);
|
|
2514
|
+
if (!roomPendingEvents) return;
|
|
2515
|
+
|
|
2516
|
+
const sessionPendingEvents = roomPendingEvents.get(event.getWireContent().session_id);
|
|
2517
|
+
if (!sessionPendingEvents) return;
|
|
2518
|
+
|
|
2519
|
+
sessionPendingEvents.delete(event);
|
|
2520
|
+
|
|
2521
|
+
// also clean up the higher-level maps if they are now empty
|
|
2522
|
+
if (sessionPendingEvents.size === 0) {
|
|
2523
|
+
roomPendingEvents.delete(event.getWireContent().session_id);
|
|
2524
|
+
if (roomPendingEvents.size === 0) {
|
|
2525
|
+
this.eventsPendingKey.delete(roomId);
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
function stringifyEvent(event: MatrixEvent): string {
|
|
2532
|
+
return JSON.stringify({
|
|
2533
|
+
event_id: event.getId(),
|
|
2534
|
+
type: event.getWireType(),
|
|
2535
|
+
sender: event.getSender(),
|
|
2536
|
+
state_key: event.getStateKey(),
|
|
2537
|
+
content: event.getWireContent(),
|
|
2538
|
+
origin_server_ts: event.getTs(),
|
|
2539
|
+
});
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
function rustEncryptionInfoToJsEncryptionInfo(
|
|
2543
|
+
logger: Logger,
|
|
2544
|
+
encryptionInfo: RustSdkCryptoJs.EncryptionInfo | undefined,
|
|
2545
|
+
): EventEncryptionInfo | null {
|
|
2546
|
+
if (encryptionInfo === undefined) {
|
|
2547
|
+
// not decrypted here
|
|
2548
|
+
return null;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
// TODO: use strict shield semantics.
|
|
2552
|
+
const shieldState = encryptionInfo.shieldState(false);
|
|
2553
|
+
|
|
2554
|
+
let shieldColour: EventShieldColour;
|
|
2555
|
+
switch (shieldState.color) {
|
|
2556
|
+
case RustSdkCryptoJs.ShieldColor.Grey:
|
|
2557
|
+
shieldColour = EventShieldColour.GREY;
|
|
2558
|
+
break;
|
|
2559
|
+
case RustSdkCryptoJs.ShieldColor.None:
|
|
2560
|
+
shieldColour = EventShieldColour.NONE;
|
|
2561
|
+
break;
|
|
2562
|
+
default:
|
|
2563
|
+
shieldColour = EventShieldColour.RED;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
let shieldReason: EventShieldReason | null;
|
|
2567
|
+
switch (shieldState.code) {
|
|
2568
|
+
case undefined:
|
|
2569
|
+
case null:
|
|
2570
|
+
shieldReason = null;
|
|
2571
|
+
break;
|
|
2572
|
+
case RustSdkCryptoJs.ShieldStateCode.AuthenticityNotGuaranteed:
|
|
2573
|
+
shieldReason = EventShieldReason.AUTHENTICITY_NOT_GUARANTEED;
|
|
2574
|
+
break;
|
|
2575
|
+
case RustSdkCryptoJs.ShieldStateCode.UnknownDevice:
|
|
2576
|
+
shieldReason = EventShieldReason.UNKNOWN_DEVICE;
|
|
2577
|
+
break;
|
|
2578
|
+
case RustSdkCryptoJs.ShieldStateCode.UnsignedDevice:
|
|
2579
|
+
shieldReason = EventShieldReason.UNSIGNED_DEVICE;
|
|
2580
|
+
break;
|
|
2581
|
+
case RustSdkCryptoJs.ShieldStateCode.UnverifiedIdentity:
|
|
2582
|
+
shieldReason = EventShieldReason.UNVERIFIED_IDENTITY;
|
|
2583
|
+
break;
|
|
2584
|
+
case RustSdkCryptoJs.ShieldStateCode.VerificationViolation:
|
|
2585
|
+
shieldReason = EventShieldReason.VERIFICATION_VIOLATION;
|
|
2586
|
+
break;
|
|
2587
|
+
case RustSdkCryptoJs.ShieldStateCode.MismatchedSender:
|
|
2588
|
+
shieldReason = EventShieldReason.MISMATCHED_SENDER;
|
|
2589
|
+
break;
|
|
2590
|
+
default:
|
|
2591
|
+
shieldReason = EventShieldReason.UNKNOWN;
|
|
2592
|
+
break;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
return { shieldColour, shieldReason };
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
interface RoomKeyBundleMessage {
|
|
2599
|
+
type: "m.room_key_bundle" | "io.element.msc4268.room_key_bundle";
|
|
2600
|
+
content: {
|
|
2601
|
+
room_id: string;
|
|
2602
|
+
};
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
/**
|
|
2606
|
+
* Determines if the given payload is a RoomKeyBundleMessage.
|
|
2607
|
+
*
|
|
2608
|
+
* A RoomKeyBundleMessage is identified by having a specific message type
|
|
2609
|
+
* ("m.room_key_bundle") and a valid room_id in its content.
|
|
2610
|
+
*
|
|
2611
|
+
* @param message - The received to-device message to check.
|
|
2612
|
+
* @returns True if the payload matches the RoomKeyBundleMessage structure, false otherwise.
|
|
2613
|
+
*/
|
|
2614
|
+
function isRoomKeyBundleMessage(message: IToDeviceEvent): message is IToDeviceEvent & RoomKeyBundleMessage {
|
|
2615
|
+
return (
|
|
2616
|
+
(message.type === "io.element.msc4268.room_key_bundle" || message.type === "m.room_key_bundle") &&
|
|
2617
|
+
typeof message.content.room_id === "string"
|
|
2618
|
+
);
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
type CryptoEvents = (typeof CryptoEvent)[keyof typeof CryptoEvent];
|
|
2622
|
+
type RustCryptoEvents = Exclude<CryptoEvents, CryptoEvent.LegacyCryptoStoreMigrationProgress>;
|