@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,3719 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
AccessTokenEvents: () => AccessTokenEvents,
|
|
24
|
+
CheckSessionIFrame: () => CheckSessionIFrame,
|
|
25
|
+
DPoPState: () => DPoPState,
|
|
26
|
+
ErrorResponse: () => ErrorResponse,
|
|
27
|
+
ErrorTimeout: () => ErrorTimeout,
|
|
28
|
+
InMemoryWebStorage: () => InMemoryWebStorage,
|
|
29
|
+
IndexedDbDPoPStore: () => IndexedDbDPoPStore,
|
|
30
|
+
Log: () => Log,
|
|
31
|
+
Logger: () => Logger,
|
|
32
|
+
MetadataService: () => MetadataService,
|
|
33
|
+
OidcClient: () => OidcClient,
|
|
34
|
+
OidcClientSettingsStore: () => OidcClientSettingsStore,
|
|
35
|
+
SessionMonitor: () => SessionMonitor,
|
|
36
|
+
SigninResponse: () => SigninResponse,
|
|
37
|
+
SigninState: () => SigninState,
|
|
38
|
+
SignoutResponse: () => SignoutResponse,
|
|
39
|
+
State: () => State,
|
|
40
|
+
User: () => User,
|
|
41
|
+
UserManager: () => UserManager,
|
|
42
|
+
UserManagerSettingsStore: () => UserManagerSettingsStore,
|
|
43
|
+
Version: () => Version,
|
|
44
|
+
WebStorageStateStore: () => WebStorageStateStore
|
|
45
|
+
});
|
|
46
|
+
module.exports = __toCommonJS(index_exports);
|
|
47
|
+
|
|
48
|
+
// src/utils/Logger.ts
|
|
49
|
+
var nopLogger = {
|
|
50
|
+
debug: () => void 0,
|
|
51
|
+
info: () => void 0,
|
|
52
|
+
warn: () => void 0,
|
|
53
|
+
error: () => void 0
|
|
54
|
+
};
|
|
55
|
+
var level;
|
|
56
|
+
var logger;
|
|
57
|
+
var Log = /* @__PURE__ */ ((Log2) => {
|
|
58
|
+
Log2[Log2["NONE"] = 0] = "NONE";
|
|
59
|
+
Log2[Log2["ERROR"] = 1] = "ERROR";
|
|
60
|
+
Log2[Log2["WARN"] = 2] = "WARN";
|
|
61
|
+
Log2[Log2["INFO"] = 3] = "INFO";
|
|
62
|
+
Log2[Log2["DEBUG"] = 4] = "DEBUG";
|
|
63
|
+
return Log2;
|
|
64
|
+
})(Log || {});
|
|
65
|
+
((Log2) => {
|
|
66
|
+
function reset() {
|
|
67
|
+
level = 3 /* INFO */;
|
|
68
|
+
logger = nopLogger;
|
|
69
|
+
}
|
|
70
|
+
Log2.reset = reset;
|
|
71
|
+
function setLevel(value) {
|
|
72
|
+
if (!(0 /* NONE */ <= value && value <= 4 /* DEBUG */)) {
|
|
73
|
+
throw new Error("Invalid log level");
|
|
74
|
+
}
|
|
75
|
+
level = value;
|
|
76
|
+
}
|
|
77
|
+
Log2.setLevel = setLevel;
|
|
78
|
+
function setLogger(value) {
|
|
79
|
+
logger = value;
|
|
80
|
+
}
|
|
81
|
+
Log2.setLogger = setLogger;
|
|
82
|
+
})(Log || (Log = {}));
|
|
83
|
+
var Logger = class _Logger {
|
|
84
|
+
constructor(_name) {
|
|
85
|
+
this._name = _name;
|
|
86
|
+
}
|
|
87
|
+
/* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */
|
|
88
|
+
debug(...args) {
|
|
89
|
+
if (level >= 4 /* DEBUG */) {
|
|
90
|
+
logger.debug(_Logger._format(this._name, this._method), ...args);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
info(...args) {
|
|
94
|
+
if (level >= 3 /* INFO */) {
|
|
95
|
+
logger.info(_Logger._format(this._name, this._method), ...args);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
warn(...args) {
|
|
99
|
+
if (level >= 2 /* WARN */) {
|
|
100
|
+
logger.warn(_Logger._format(this._name, this._method), ...args);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
error(...args) {
|
|
104
|
+
if (level >= 1 /* ERROR */) {
|
|
105
|
+
logger.error(_Logger._format(this._name, this._method), ...args);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/* eslint-enable @typescript-eslint/no-unsafe-enum-comparison */
|
|
109
|
+
throw(err) {
|
|
110
|
+
this.error(err);
|
|
111
|
+
throw err;
|
|
112
|
+
}
|
|
113
|
+
create(method) {
|
|
114
|
+
const methodLogger = Object.create(this);
|
|
115
|
+
methodLogger._method = method;
|
|
116
|
+
methodLogger.debug("begin");
|
|
117
|
+
return methodLogger;
|
|
118
|
+
}
|
|
119
|
+
static createStatic(name, staticMethod) {
|
|
120
|
+
const staticLogger = new _Logger(`${name}.${staticMethod}`);
|
|
121
|
+
staticLogger.debug("begin");
|
|
122
|
+
return staticLogger;
|
|
123
|
+
}
|
|
124
|
+
static _format(name, method) {
|
|
125
|
+
const prefix = `[${name}]`;
|
|
126
|
+
return method ? `${prefix} ${method}:` : prefix;
|
|
127
|
+
}
|
|
128
|
+
/* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */
|
|
129
|
+
// helpers for static class methods
|
|
130
|
+
static debug(name, ...args) {
|
|
131
|
+
if (level >= 4 /* DEBUG */) {
|
|
132
|
+
logger.debug(_Logger._format(name), ...args);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
static info(name, ...args) {
|
|
136
|
+
if (level >= 3 /* INFO */) {
|
|
137
|
+
logger.info(_Logger._format(name), ...args);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
static warn(name, ...args) {
|
|
141
|
+
if (level >= 2 /* WARN */) {
|
|
142
|
+
logger.warn(_Logger._format(name), ...args);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
static error(name, ...args) {
|
|
146
|
+
if (level >= 1 /* ERROR */) {
|
|
147
|
+
logger.error(_Logger._format(name), ...args);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
/* eslint-enable @typescript-eslint/no-unsafe-enum-comparison */
|
|
151
|
+
};
|
|
152
|
+
Log.reset();
|
|
153
|
+
|
|
154
|
+
// src/utils/JwtUtils.ts
|
|
155
|
+
var import_jwt_decode = require("jwt-decode");
|
|
156
|
+
var JwtUtils = class {
|
|
157
|
+
// IMPORTANT: doesn't validate the token
|
|
158
|
+
static decode(token) {
|
|
159
|
+
try {
|
|
160
|
+
return (0, import_jwt_decode.jwtDecode)(token);
|
|
161
|
+
} catch (err) {
|
|
162
|
+
Logger.error("JwtUtils.decode", err);
|
|
163
|
+
throw err;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
static async generateSignedJwt(header, payload, privateKey) {
|
|
167
|
+
const encodedHeader = CryptoUtils.encodeBase64Url(new TextEncoder().encode(JSON.stringify(header)));
|
|
168
|
+
const encodedPayload = CryptoUtils.encodeBase64Url(new TextEncoder().encode(JSON.stringify(payload)));
|
|
169
|
+
const encodedToken = `${encodedHeader}.${encodedPayload}`;
|
|
170
|
+
const signature = await window.crypto.subtle.sign(
|
|
171
|
+
{
|
|
172
|
+
name: "ECDSA",
|
|
173
|
+
hash: { name: "SHA-256" }
|
|
174
|
+
},
|
|
175
|
+
privateKey,
|
|
176
|
+
new TextEncoder().encode(encodedToken)
|
|
177
|
+
);
|
|
178
|
+
const encodedSignature = CryptoUtils.encodeBase64Url(new Uint8Array(signature));
|
|
179
|
+
return `${encodedToken}.${encodedSignature}`;
|
|
180
|
+
}
|
|
181
|
+
static async generateSignedJwtWithHmac(header, payload, secretKey) {
|
|
182
|
+
const encodedHeader = CryptoUtils.encodeBase64Url(new TextEncoder().encode(JSON.stringify(header)));
|
|
183
|
+
const encodedPayload = CryptoUtils.encodeBase64Url(new TextEncoder().encode(JSON.stringify(payload)));
|
|
184
|
+
const encodedToken = `${encodedHeader}.${encodedPayload}`;
|
|
185
|
+
const signature = await window.crypto.subtle.sign(
|
|
186
|
+
"HMAC",
|
|
187
|
+
secretKey,
|
|
188
|
+
new TextEncoder().encode(encodedToken)
|
|
189
|
+
);
|
|
190
|
+
const encodedSignature = CryptoUtils.encodeBase64Url(new Uint8Array(signature));
|
|
191
|
+
return `${encodedToken}.${encodedSignature}`;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
// src/utils/CryptoUtils.ts
|
|
196
|
+
var UUID_V4_TEMPLATE = "10000000-1000-4000-8000-100000000000";
|
|
197
|
+
var toBase64 = (val) => btoa([...new Uint8Array(val)].map((chr) => String.fromCharCode(chr)).join(""));
|
|
198
|
+
var _CryptoUtils = class _CryptoUtils {
|
|
199
|
+
static _randomWord() {
|
|
200
|
+
const arr = new Uint32Array(1);
|
|
201
|
+
crypto.getRandomValues(arr);
|
|
202
|
+
return arr[0];
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Generates RFC4122 version 4 guid
|
|
206
|
+
*/
|
|
207
|
+
static generateUUIDv4() {
|
|
208
|
+
const uuid = UUID_V4_TEMPLATE.replace(
|
|
209
|
+
/[018]/g,
|
|
210
|
+
(c) => (+c ^ _CryptoUtils._randomWord() & 15 >> +c / 4).toString(16)
|
|
211
|
+
);
|
|
212
|
+
return uuid.replace(/-/g, "");
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* PKCE: Generate a code verifier
|
|
216
|
+
*/
|
|
217
|
+
static generateCodeVerifier() {
|
|
218
|
+
return _CryptoUtils.generateUUIDv4() + _CryptoUtils.generateUUIDv4() + _CryptoUtils.generateUUIDv4();
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* PKCE: Generate a code challenge
|
|
222
|
+
*/
|
|
223
|
+
static async generateCodeChallenge(code_verifier) {
|
|
224
|
+
if (!crypto.subtle) {
|
|
225
|
+
throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");
|
|
226
|
+
}
|
|
227
|
+
try {
|
|
228
|
+
const encoder = new TextEncoder();
|
|
229
|
+
const data = encoder.encode(code_verifier);
|
|
230
|
+
const hashed = await crypto.subtle.digest("SHA-256", data);
|
|
231
|
+
return toBase64(hashed).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
232
|
+
} catch (err) {
|
|
233
|
+
Logger.error("CryptoUtils.generateCodeChallenge", err);
|
|
234
|
+
throw err;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Generates a base64-encoded string for a basic auth header
|
|
239
|
+
*/
|
|
240
|
+
static generateBasicAuth(client_id, client_secret) {
|
|
241
|
+
const encoder = new TextEncoder();
|
|
242
|
+
const data = encoder.encode([client_id, client_secret].join(":"));
|
|
243
|
+
return toBase64(data);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Generates a hash of a string using a given algorithm
|
|
247
|
+
* @param alg
|
|
248
|
+
* @param message
|
|
249
|
+
*/
|
|
250
|
+
static async hash(alg, message) {
|
|
251
|
+
const msgUint8 = new TextEncoder().encode(message);
|
|
252
|
+
const hashBuffer = await crypto.subtle.digest(alg, msgUint8);
|
|
253
|
+
return new Uint8Array(hashBuffer);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Generates a rfc7638 compliant jwk thumbprint
|
|
257
|
+
* @param jwk
|
|
258
|
+
*/
|
|
259
|
+
static async customCalculateJwkThumbprint(jwk) {
|
|
260
|
+
let jsonObject;
|
|
261
|
+
switch (jwk.kty) {
|
|
262
|
+
case "RSA":
|
|
263
|
+
jsonObject = {
|
|
264
|
+
"e": jwk.e,
|
|
265
|
+
"kty": jwk.kty,
|
|
266
|
+
"n": jwk.n
|
|
267
|
+
};
|
|
268
|
+
break;
|
|
269
|
+
case "EC":
|
|
270
|
+
jsonObject = {
|
|
271
|
+
"crv": jwk.crv,
|
|
272
|
+
"kty": jwk.kty,
|
|
273
|
+
"x": jwk.x,
|
|
274
|
+
"y": jwk.y
|
|
275
|
+
};
|
|
276
|
+
break;
|
|
277
|
+
case "OKP":
|
|
278
|
+
jsonObject = {
|
|
279
|
+
"crv": jwk.crv,
|
|
280
|
+
"kty": jwk.kty,
|
|
281
|
+
"x": jwk.x
|
|
282
|
+
};
|
|
283
|
+
break;
|
|
284
|
+
case "oct":
|
|
285
|
+
jsonObject = {
|
|
286
|
+
"crv": jwk.k,
|
|
287
|
+
"kty": jwk.kty
|
|
288
|
+
};
|
|
289
|
+
break;
|
|
290
|
+
default:
|
|
291
|
+
throw new Error("Unknown jwk type");
|
|
292
|
+
}
|
|
293
|
+
const utf8encodedAndHashed = await _CryptoUtils.hash("SHA-256", JSON.stringify(jsonObject));
|
|
294
|
+
return _CryptoUtils.encodeBase64Url(utf8encodedAndHashed);
|
|
295
|
+
}
|
|
296
|
+
static async generateDPoPProof({
|
|
297
|
+
url,
|
|
298
|
+
accessToken,
|
|
299
|
+
httpMethod,
|
|
300
|
+
keyPair,
|
|
301
|
+
nonce
|
|
302
|
+
}) {
|
|
303
|
+
let hashedToken;
|
|
304
|
+
let encodedHash;
|
|
305
|
+
const payload = {
|
|
306
|
+
"jti": window.crypto.randomUUID(),
|
|
307
|
+
"htm": httpMethod != null ? httpMethod : "GET",
|
|
308
|
+
"htu": url,
|
|
309
|
+
"iat": Math.floor(Date.now() / 1e3)
|
|
310
|
+
};
|
|
311
|
+
if (accessToken) {
|
|
312
|
+
hashedToken = await _CryptoUtils.hash("SHA-256", accessToken);
|
|
313
|
+
encodedHash = _CryptoUtils.encodeBase64Url(hashedToken);
|
|
314
|
+
payload.ath = encodedHash;
|
|
315
|
+
}
|
|
316
|
+
if (nonce) {
|
|
317
|
+
payload.nonce = nonce;
|
|
318
|
+
}
|
|
319
|
+
try {
|
|
320
|
+
const publicJwk = await crypto.subtle.exportKey("jwk", keyPair.publicKey);
|
|
321
|
+
const header = {
|
|
322
|
+
"alg": "ES256",
|
|
323
|
+
"typ": "dpop+jwt",
|
|
324
|
+
"jwk": {
|
|
325
|
+
"crv": publicJwk.crv,
|
|
326
|
+
"kty": publicJwk.kty,
|
|
327
|
+
"x": publicJwk.x,
|
|
328
|
+
"y": publicJwk.y
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
return await JwtUtils.generateSignedJwt(header, payload, keyPair.privateKey);
|
|
332
|
+
} catch (err) {
|
|
333
|
+
if (err instanceof TypeError) {
|
|
334
|
+
throw new Error(`Error exporting dpop public key: ${err.message}`);
|
|
335
|
+
} else {
|
|
336
|
+
throw err;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
static async generateDPoPJkt(keyPair) {
|
|
341
|
+
try {
|
|
342
|
+
const publicJwk = await crypto.subtle.exportKey("jwk", keyPair.publicKey);
|
|
343
|
+
return await _CryptoUtils.customCalculateJwkThumbprint(publicJwk);
|
|
344
|
+
} catch (err) {
|
|
345
|
+
if (err instanceof TypeError) {
|
|
346
|
+
throw new Error(`Could not retrieve dpop keys from storage: ${err.message}`);
|
|
347
|
+
} else {
|
|
348
|
+
throw err;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
static async generateDPoPKeys() {
|
|
353
|
+
return await window.crypto.subtle.generateKey(
|
|
354
|
+
{
|
|
355
|
+
name: "ECDSA",
|
|
356
|
+
namedCurve: "P-256"
|
|
357
|
+
},
|
|
358
|
+
false,
|
|
359
|
+
["sign", "verify"]
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Generates a client assertion JWT for client_secret_jwt authentication
|
|
364
|
+
* @param client_id The client identifier
|
|
365
|
+
* @param client_secret The client secret
|
|
366
|
+
* @param audience The token endpoint URL (audience)
|
|
367
|
+
* @param algorithm The HMAC algorithm to use (HS256, HS384, HS512). Defaults to HS256
|
|
368
|
+
*/
|
|
369
|
+
static async generateClientAssertionJwt(client_id, client_secret, audience, algorithm = "HS256") {
|
|
370
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
371
|
+
const header = {
|
|
372
|
+
"alg": algorithm,
|
|
373
|
+
"typ": "JWT"
|
|
374
|
+
};
|
|
375
|
+
const payload = {
|
|
376
|
+
"iss": client_id,
|
|
377
|
+
"sub": client_id,
|
|
378
|
+
"aud": audience,
|
|
379
|
+
"jti": _CryptoUtils.generateUUIDv4(),
|
|
380
|
+
"exp": now + 300,
|
|
381
|
+
// 5 minutes
|
|
382
|
+
"iat": now
|
|
383
|
+
};
|
|
384
|
+
const hashMap = {
|
|
385
|
+
"HS256": "SHA-256",
|
|
386
|
+
"HS384": "SHA-384",
|
|
387
|
+
"HS512": "SHA-512"
|
|
388
|
+
};
|
|
389
|
+
const hashFunction = hashMap[algorithm];
|
|
390
|
+
if (!hashFunction) {
|
|
391
|
+
throw new Error(`Unsupported algorithm: ${algorithm}. Supported algorithms are: HS256, HS384, HS512`);
|
|
392
|
+
}
|
|
393
|
+
const encoder = new TextEncoder();
|
|
394
|
+
const secretKey = await crypto.subtle.importKey(
|
|
395
|
+
"raw",
|
|
396
|
+
encoder.encode(client_secret),
|
|
397
|
+
{ name: "HMAC", hash: hashFunction },
|
|
398
|
+
false,
|
|
399
|
+
["sign"]
|
|
400
|
+
);
|
|
401
|
+
return await JwtUtils.generateSignedJwtWithHmac(header, payload, secretKey);
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Generates a base64url encoded string
|
|
406
|
+
*/
|
|
407
|
+
_CryptoUtils.encodeBase64Url = (input) => {
|
|
408
|
+
return toBase64(input).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
|
|
409
|
+
};
|
|
410
|
+
var CryptoUtils = _CryptoUtils;
|
|
411
|
+
|
|
412
|
+
// src/utils/Event.ts
|
|
413
|
+
var Event = class {
|
|
414
|
+
constructor(_name) {
|
|
415
|
+
this._name = _name;
|
|
416
|
+
this._callbacks = [];
|
|
417
|
+
this._logger = new Logger(`Event('${this._name}')`);
|
|
418
|
+
}
|
|
419
|
+
addHandler(cb) {
|
|
420
|
+
this._callbacks.push(cb);
|
|
421
|
+
return () => this.removeHandler(cb);
|
|
422
|
+
}
|
|
423
|
+
removeHandler(cb) {
|
|
424
|
+
const idx = this._callbacks.lastIndexOf(cb);
|
|
425
|
+
if (idx >= 0) {
|
|
426
|
+
this._callbacks.splice(idx, 1);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
async raise(...ev) {
|
|
430
|
+
this._logger.debug("raise:", ...ev);
|
|
431
|
+
for (const cb of this._callbacks) {
|
|
432
|
+
await cb(...ev);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
// src/utils/PopupUtils.ts
|
|
438
|
+
var PopupUtils = class {
|
|
439
|
+
/**
|
|
440
|
+
* Populates a map of window features with a placement centered in front of
|
|
441
|
+
* the current window. If no explicit width is given, a default value is
|
|
442
|
+
* binned into [800, 720, 600, 480, 360] based on the current window's width.
|
|
443
|
+
*/
|
|
444
|
+
static center({ ...features }) {
|
|
445
|
+
var _a, _b, _c;
|
|
446
|
+
if (features.width == null)
|
|
447
|
+
features.width = (_a = [800, 720, 600, 480].find((width) => width <= window.outerWidth / 1.618)) != null ? _a : 360;
|
|
448
|
+
(_b = features.left) != null ? _b : features.left = Math.max(0, Math.round(window.screenX + (window.outerWidth - features.width) / 2));
|
|
449
|
+
if (features.height != null)
|
|
450
|
+
(_c = features.top) != null ? _c : features.top = Math.max(0, Math.round(window.screenY + (window.outerHeight - features.height) / 2));
|
|
451
|
+
return features;
|
|
452
|
+
}
|
|
453
|
+
static serialize(features) {
|
|
454
|
+
return Object.entries(features).filter(([, value]) => value != null).map(([key, value]) => `${key}=${typeof value !== "boolean" ? value : value ? "yes" : "no"}`).join(",");
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
// src/utils/Timer.ts
|
|
459
|
+
var Timer = class _Timer extends Event {
|
|
460
|
+
constructor() {
|
|
461
|
+
super(...arguments);
|
|
462
|
+
this._logger = new Logger(`Timer('${this._name}')`);
|
|
463
|
+
this._timerHandle = null;
|
|
464
|
+
this._expiration = 0;
|
|
465
|
+
this._callback = () => {
|
|
466
|
+
const diff = this._expiration - _Timer.getEpochTime();
|
|
467
|
+
this._logger.debug("timer completes in", diff);
|
|
468
|
+
if (this._expiration <= _Timer.getEpochTime()) {
|
|
469
|
+
this.cancel();
|
|
470
|
+
void super.raise();
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
// get the time
|
|
475
|
+
static getEpochTime() {
|
|
476
|
+
return Math.floor(Date.now() / 1e3);
|
|
477
|
+
}
|
|
478
|
+
init(durationInSeconds) {
|
|
479
|
+
const logger2 = this._logger.create("init");
|
|
480
|
+
durationInSeconds = Math.max(Math.floor(durationInSeconds), 1);
|
|
481
|
+
const expiration = _Timer.getEpochTime() + durationInSeconds;
|
|
482
|
+
if (this.expiration === expiration && this._timerHandle) {
|
|
483
|
+
logger2.debug("skipping since already initialized for expiration at", this.expiration);
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
this.cancel();
|
|
487
|
+
logger2.debug("using duration", durationInSeconds);
|
|
488
|
+
this._expiration = expiration;
|
|
489
|
+
const timerDurationInSeconds = Math.min(durationInSeconds, 5);
|
|
490
|
+
this._timerHandle = setInterval(this._callback, timerDurationInSeconds * 1e3);
|
|
491
|
+
}
|
|
492
|
+
get expiration() {
|
|
493
|
+
return this._expiration;
|
|
494
|
+
}
|
|
495
|
+
cancel() {
|
|
496
|
+
this._logger.create("cancel");
|
|
497
|
+
if (this._timerHandle) {
|
|
498
|
+
clearInterval(this._timerHandle);
|
|
499
|
+
this._timerHandle = null;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
// src/utils/UrlUtils.ts
|
|
505
|
+
var UrlUtils = class {
|
|
506
|
+
static readParams(url, responseMode = "query") {
|
|
507
|
+
if (!url) throw new TypeError("Invalid URL");
|
|
508
|
+
const parsedUrl = new URL(url, "http://127.0.0.1");
|
|
509
|
+
const params = parsedUrl[responseMode === "fragment" ? "hash" : "search"];
|
|
510
|
+
return new URLSearchParams(params.slice(1));
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
var URL_STATE_DELIMITER = ";";
|
|
514
|
+
|
|
515
|
+
// src/errors/ErrorResponse.ts
|
|
516
|
+
var ErrorResponse = class extends Error {
|
|
517
|
+
constructor(args, form) {
|
|
518
|
+
var _a, _b, _c;
|
|
519
|
+
super(args.error_description || args.error || "");
|
|
520
|
+
this.form = form;
|
|
521
|
+
/** Marker to detect class: "ErrorResponse" */
|
|
522
|
+
this.name = "ErrorResponse";
|
|
523
|
+
if (!args.error) {
|
|
524
|
+
Logger.error("ErrorResponse", "No error passed");
|
|
525
|
+
throw new Error("No error passed");
|
|
526
|
+
}
|
|
527
|
+
this.error = args.error;
|
|
528
|
+
this.error_description = (_a = args.error_description) != null ? _a : null;
|
|
529
|
+
this.error_uri = (_b = args.error_uri) != null ? _b : null;
|
|
530
|
+
this.state = args.userState;
|
|
531
|
+
this.session_state = (_c = args.session_state) != null ? _c : null;
|
|
532
|
+
this.url_state = args.url_state;
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
// src/errors/ErrorTimeout.ts
|
|
537
|
+
var ErrorTimeout = class extends Error {
|
|
538
|
+
constructor(message) {
|
|
539
|
+
super(message);
|
|
540
|
+
/** Marker to detect class: "ErrorTimeout" */
|
|
541
|
+
this.name = "ErrorTimeout";
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
// src/AccessTokenEvents.ts
|
|
546
|
+
var AccessTokenEvents = class {
|
|
547
|
+
constructor(args) {
|
|
548
|
+
this._logger = new Logger("AccessTokenEvents");
|
|
549
|
+
this._expiringTimer = new Timer("Access token expiring");
|
|
550
|
+
this._expiredTimer = new Timer("Access token expired");
|
|
551
|
+
this._expiringNotificationTimeInSeconds = args.expiringNotificationTimeInSeconds;
|
|
552
|
+
}
|
|
553
|
+
async load(container) {
|
|
554
|
+
const logger2 = this._logger.create("load");
|
|
555
|
+
if (container.access_token && container.expires_in !== void 0) {
|
|
556
|
+
const duration = container.expires_in;
|
|
557
|
+
logger2.debug("access token present, remaining duration:", duration);
|
|
558
|
+
if (duration > 0) {
|
|
559
|
+
let expiring = duration - this._expiringNotificationTimeInSeconds;
|
|
560
|
+
if (expiring <= 0) {
|
|
561
|
+
expiring = 1;
|
|
562
|
+
}
|
|
563
|
+
logger2.debug("registering expiring timer, raising in", expiring, "seconds");
|
|
564
|
+
this._expiringTimer.init(expiring);
|
|
565
|
+
} else {
|
|
566
|
+
logger2.debug("canceling existing expiring timer because we're past expiration.");
|
|
567
|
+
this._expiringTimer.cancel();
|
|
568
|
+
}
|
|
569
|
+
const expired = duration + 1;
|
|
570
|
+
logger2.debug("registering expired timer, raising in", expired, "seconds");
|
|
571
|
+
this._expiredTimer.init(expired);
|
|
572
|
+
} else {
|
|
573
|
+
this._expiringTimer.cancel();
|
|
574
|
+
this._expiredTimer.cancel();
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
async unload() {
|
|
578
|
+
this._logger.debug("unload: canceling existing access token timers");
|
|
579
|
+
this._expiringTimer.cancel();
|
|
580
|
+
this._expiredTimer.cancel();
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Add callback: Raised prior to the access token expiring.
|
|
584
|
+
*/
|
|
585
|
+
addAccessTokenExpiring(cb) {
|
|
586
|
+
return this._expiringTimer.addHandler(cb);
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Remove callback: Raised prior to the access token expiring.
|
|
590
|
+
*/
|
|
591
|
+
removeAccessTokenExpiring(cb) {
|
|
592
|
+
this._expiringTimer.removeHandler(cb);
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Add callback: Raised after the access token has expired.
|
|
596
|
+
*/
|
|
597
|
+
addAccessTokenExpired(cb) {
|
|
598
|
+
return this._expiredTimer.addHandler(cb);
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Remove callback: Raised after the access token has expired.
|
|
602
|
+
*/
|
|
603
|
+
removeAccessTokenExpired(cb) {
|
|
604
|
+
this._expiredTimer.removeHandler(cb);
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
// src/CheckSessionIFrame.ts
|
|
609
|
+
var CheckSessionIFrame = class {
|
|
610
|
+
constructor(_callback, _client_id, url, _intervalInSeconds, _stopOnError) {
|
|
611
|
+
this._callback = _callback;
|
|
612
|
+
this._client_id = _client_id;
|
|
613
|
+
this._intervalInSeconds = _intervalInSeconds;
|
|
614
|
+
this._stopOnError = _stopOnError;
|
|
615
|
+
this._logger = new Logger("CheckSessionIFrame");
|
|
616
|
+
this._timer = null;
|
|
617
|
+
this._session_state = null;
|
|
618
|
+
this._message = (e) => {
|
|
619
|
+
if (e.origin === this._frame_origin && e.source === this._frame.contentWindow) {
|
|
620
|
+
if (e.data === "error") {
|
|
621
|
+
this._logger.error("error message from check session op iframe");
|
|
622
|
+
if (this._stopOnError) {
|
|
623
|
+
this.stop();
|
|
624
|
+
}
|
|
625
|
+
} else if (e.data === "changed") {
|
|
626
|
+
this._logger.debug("changed message from check session op iframe");
|
|
627
|
+
this.stop();
|
|
628
|
+
void this._callback();
|
|
629
|
+
} else {
|
|
630
|
+
this._logger.debug(e.data + " message from check session op iframe");
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
const parsedUrl = new URL(url);
|
|
635
|
+
this._frame_origin = parsedUrl.origin;
|
|
636
|
+
this._frame = window.document.createElement("iframe");
|
|
637
|
+
this._frame.style.visibility = "hidden";
|
|
638
|
+
this._frame.style.position = "fixed";
|
|
639
|
+
this._frame.style.left = "-1000px";
|
|
640
|
+
this._frame.style.top = "0";
|
|
641
|
+
this._frame.width = "0";
|
|
642
|
+
this._frame.height = "0";
|
|
643
|
+
this._frame.src = parsedUrl.href;
|
|
644
|
+
}
|
|
645
|
+
load() {
|
|
646
|
+
return new Promise((resolve) => {
|
|
647
|
+
this._frame.onload = () => {
|
|
648
|
+
resolve();
|
|
649
|
+
};
|
|
650
|
+
window.document.body.appendChild(this._frame);
|
|
651
|
+
window.addEventListener("message", this._message, false);
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
start(session_state) {
|
|
655
|
+
if (this._session_state === session_state) {
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
658
|
+
this._logger.create("start");
|
|
659
|
+
this.stop();
|
|
660
|
+
this._session_state = session_state;
|
|
661
|
+
const send = () => {
|
|
662
|
+
if (!this._frame.contentWindow || !this._session_state) {
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
this._frame.contentWindow.postMessage(this._client_id + " " + this._session_state, this._frame_origin);
|
|
666
|
+
};
|
|
667
|
+
send();
|
|
668
|
+
this._timer = setInterval(send, this._intervalInSeconds * 1e3);
|
|
669
|
+
}
|
|
670
|
+
stop() {
|
|
671
|
+
this._logger.create("stop");
|
|
672
|
+
this._session_state = null;
|
|
673
|
+
if (this._timer) {
|
|
674
|
+
clearInterval(this._timer);
|
|
675
|
+
this._timer = null;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
// src/InMemoryWebStorage.ts
|
|
681
|
+
var InMemoryWebStorage = class {
|
|
682
|
+
constructor() {
|
|
683
|
+
this._logger = new Logger("InMemoryWebStorage");
|
|
684
|
+
this._data = {};
|
|
685
|
+
}
|
|
686
|
+
clear() {
|
|
687
|
+
this._logger.create("clear");
|
|
688
|
+
this._data = {};
|
|
689
|
+
}
|
|
690
|
+
getItem(key) {
|
|
691
|
+
this._logger.create(`getItem('${key}')`);
|
|
692
|
+
return this._data[key];
|
|
693
|
+
}
|
|
694
|
+
setItem(key, value) {
|
|
695
|
+
this._logger.create(`setItem('${key}')`);
|
|
696
|
+
this._data[key] = value;
|
|
697
|
+
}
|
|
698
|
+
removeItem(key) {
|
|
699
|
+
this._logger.create(`removeItem('${key}')`);
|
|
700
|
+
delete this._data[key];
|
|
701
|
+
}
|
|
702
|
+
get length() {
|
|
703
|
+
return Object.getOwnPropertyNames(this._data).length;
|
|
704
|
+
}
|
|
705
|
+
key(index) {
|
|
706
|
+
return Object.getOwnPropertyNames(this._data)[index];
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
// src/errors/ErrorDPoPNonce.ts
|
|
711
|
+
var ErrorDPoPNonce = class extends Error {
|
|
712
|
+
constructor(nonce, message) {
|
|
713
|
+
super(message);
|
|
714
|
+
/** Marker to detect class: "ErrorDPoPNonce" */
|
|
715
|
+
this.name = "ErrorDPoPNonce";
|
|
716
|
+
this.nonce = nonce;
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
// src/JsonService.ts
|
|
721
|
+
var JsonService = class {
|
|
722
|
+
constructor(additionalContentTypes = [], _jwtHandler = null, _extraHeaders = {}) {
|
|
723
|
+
this._jwtHandler = _jwtHandler;
|
|
724
|
+
this._extraHeaders = _extraHeaders;
|
|
725
|
+
this._logger = new Logger("JsonService");
|
|
726
|
+
this._contentTypes = [];
|
|
727
|
+
this._contentTypes.push(...additionalContentTypes, "application/json");
|
|
728
|
+
if (_jwtHandler) {
|
|
729
|
+
this._contentTypes.push("application/jwt");
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
async fetchWithTimeout(input, init = {}) {
|
|
733
|
+
const { timeoutInSeconds, ...initFetch } = init;
|
|
734
|
+
if (!timeoutInSeconds) {
|
|
735
|
+
return await fetch(input, initFetch);
|
|
736
|
+
}
|
|
737
|
+
const controller = new AbortController();
|
|
738
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutInSeconds * 1e3);
|
|
739
|
+
try {
|
|
740
|
+
const response = await fetch(input, {
|
|
741
|
+
...init,
|
|
742
|
+
signal: controller.signal
|
|
743
|
+
});
|
|
744
|
+
return response;
|
|
745
|
+
} catch (err) {
|
|
746
|
+
if (err instanceof DOMException && err.name === "AbortError") {
|
|
747
|
+
throw new ErrorTimeout("Network timed out");
|
|
748
|
+
}
|
|
749
|
+
throw err;
|
|
750
|
+
} finally {
|
|
751
|
+
clearTimeout(timeoutId);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
async getJson(url, {
|
|
755
|
+
token,
|
|
756
|
+
credentials,
|
|
757
|
+
timeoutInSeconds
|
|
758
|
+
} = {}) {
|
|
759
|
+
const logger2 = this._logger.create("getJson");
|
|
760
|
+
const headers = {
|
|
761
|
+
"Accept": this._contentTypes.join(", ")
|
|
762
|
+
};
|
|
763
|
+
if (token) {
|
|
764
|
+
logger2.debug("token passed, setting Authorization header");
|
|
765
|
+
headers["Authorization"] = "Bearer " + token;
|
|
766
|
+
}
|
|
767
|
+
this._appendExtraHeaders(headers);
|
|
768
|
+
let response;
|
|
769
|
+
try {
|
|
770
|
+
logger2.debug("url:", url);
|
|
771
|
+
response = await this.fetchWithTimeout(url, { method: "GET", headers, timeoutInSeconds, credentials });
|
|
772
|
+
} catch (err) {
|
|
773
|
+
logger2.error("Network Error");
|
|
774
|
+
throw err;
|
|
775
|
+
}
|
|
776
|
+
logger2.debug("HTTP response received, status", response.status);
|
|
777
|
+
const contentType = response.headers.get("Content-Type");
|
|
778
|
+
if (contentType && !this._contentTypes.find((item) => contentType.startsWith(item))) {
|
|
779
|
+
logger2.throw(new Error(`Invalid response Content-Type: ${contentType != null ? contentType : "undefined"}, from URL: ${url}`));
|
|
780
|
+
}
|
|
781
|
+
if (response.ok && this._jwtHandler && (contentType == null ? void 0 : contentType.startsWith("application/jwt"))) {
|
|
782
|
+
return await this._jwtHandler(await response.text());
|
|
783
|
+
}
|
|
784
|
+
let json;
|
|
785
|
+
try {
|
|
786
|
+
json = await response.json();
|
|
787
|
+
} catch (err) {
|
|
788
|
+
logger2.error("Error parsing JSON response", err);
|
|
789
|
+
if (response.ok) throw err;
|
|
790
|
+
throw new Error(`${response.statusText} (${response.status})`);
|
|
791
|
+
}
|
|
792
|
+
if (!response.ok) {
|
|
793
|
+
logger2.error("Error from server:", json);
|
|
794
|
+
if (json.error) {
|
|
795
|
+
throw new ErrorResponse(json);
|
|
796
|
+
}
|
|
797
|
+
throw new Error(`${response.statusText} (${response.status}): ${JSON.stringify(json)}`);
|
|
798
|
+
}
|
|
799
|
+
return json;
|
|
800
|
+
}
|
|
801
|
+
async postForm(url, {
|
|
802
|
+
body,
|
|
803
|
+
basicAuth,
|
|
804
|
+
timeoutInSeconds,
|
|
805
|
+
initCredentials,
|
|
806
|
+
extraHeaders
|
|
807
|
+
}) {
|
|
808
|
+
const logger2 = this._logger.create("postForm");
|
|
809
|
+
const headers = {
|
|
810
|
+
"Accept": this._contentTypes.join(", "),
|
|
811
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
812
|
+
...extraHeaders
|
|
813
|
+
};
|
|
814
|
+
if (basicAuth !== void 0) {
|
|
815
|
+
headers["Authorization"] = "Basic " + basicAuth;
|
|
816
|
+
}
|
|
817
|
+
this._appendExtraHeaders(headers);
|
|
818
|
+
let response;
|
|
819
|
+
try {
|
|
820
|
+
logger2.debug("url:", url);
|
|
821
|
+
response = await this.fetchWithTimeout(url, { method: "POST", headers, body, timeoutInSeconds, credentials: initCredentials });
|
|
822
|
+
} catch (err) {
|
|
823
|
+
logger2.error("Network error");
|
|
824
|
+
throw err;
|
|
825
|
+
}
|
|
826
|
+
logger2.debug("HTTP response received, status", response.status);
|
|
827
|
+
const contentType = response.headers.get("Content-Type");
|
|
828
|
+
if (contentType && !this._contentTypes.find((item) => contentType.startsWith(item))) {
|
|
829
|
+
throw new Error(`Invalid response Content-Type: ${contentType != null ? contentType : "undefined"}, from URL: ${url}`);
|
|
830
|
+
}
|
|
831
|
+
const responseText = await response.text();
|
|
832
|
+
let json = {};
|
|
833
|
+
if (responseText) {
|
|
834
|
+
try {
|
|
835
|
+
json = JSON.parse(responseText);
|
|
836
|
+
} catch (err) {
|
|
837
|
+
logger2.error("Error parsing JSON response", err);
|
|
838
|
+
if (response.ok) throw err;
|
|
839
|
+
throw new Error(`${response.statusText} (${response.status})`);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
if (!response.ok) {
|
|
843
|
+
logger2.error("Error from server:", json);
|
|
844
|
+
if (response.headers.has("dpop-nonce")) {
|
|
845
|
+
const nonce = response.headers.get("dpop-nonce");
|
|
846
|
+
throw new ErrorDPoPNonce(nonce, `${JSON.stringify(json)}`);
|
|
847
|
+
}
|
|
848
|
+
if (json.error) {
|
|
849
|
+
throw new ErrorResponse(json, body);
|
|
850
|
+
}
|
|
851
|
+
throw new Error(`${response.statusText} (${response.status}): ${JSON.stringify(json)}`);
|
|
852
|
+
}
|
|
853
|
+
return json;
|
|
854
|
+
}
|
|
855
|
+
_appendExtraHeaders(headers) {
|
|
856
|
+
const logger2 = this._logger.create("appendExtraHeaders");
|
|
857
|
+
const customKeys = Object.keys(this._extraHeaders);
|
|
858
|
+
const protectedHeaders = [
|
|
859
|
+
"accept",
|
|
860
|
+
"content-type"
|
|
861
|
+
];
|
|
862
|
+
const preventOverride = [
|
|
863
|
+
"authorization"
|
|
864
|
+
];
|
|
865
|
+
if (customKeys.length === 0) {
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
customKeys.forEach((headerName) => {
|
|
869
|
+
if (protectedHeaders.includes(headerName.toLocaleLowerCase())) {
|
|
870
|
+
logger2.warn("Protected header could not be set", headerName, protectedHeaders);
|
|
871
|
+
return;
|
|
872
|
+
}
|
|
873
|
+
if (preventOverride.includes(headerName.toLocaleLowerCase()) && Object.keys(headers).includes(headerName)) {
|
|
874
|
+
logger2.warn("Header could not be overridden", headerName, preventOverride);
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
const content = typeof this._extraHeaders[headerName] === "function" ? this._extraHeaders[headerName]() : this._extraHeaders[headerName];
|
|
878
|
+
if (content && content !== "") {
|
|
879
|
+
headers[headerName] = content;
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
// src/MetadataService.ts
|
|
886
|
+
var MetadataService = class {
|
|
887
|
+
constructor(_settings) {
|
|
888
|
+
this._settings = _settings;
|
|
889
|
+
this._logger = new Logger("MetadataService");
|
|
890
|
+
this._signingKeys = null;
|
|
891
|
+
this._metadata = null;
|
|
892
|
+
this._metadataUrl = this._settings.metadataUrl;
|
|
893
|
+
this._jsonService = new JsonService(
|
|
894
|
+
["application/jwk-set+json"],
|
|
895
|
+
null,
|
|
896
|
+
this._settings.extraHeaders
|
|
897
|
+
);
|
|
898
|
+
if (this._settings.signingKeys) {
|
|
899
|
+
this._logger.debug("using signingKeys from settings");
|
|
900
|
+
this._signingKeys = this._settings.signingKeys;
|
|
901
|
+
}
|
|
902
|
+
if (this._settings.metadata) {
|
|
903
|
+
this._logger.debug("using metadata from settings");
|
|
904
|
+
this._metadata = this._settings.metadata;
|
|
905
|
+
}
|
|
906
|
+
if (this._settings.fetchRequestCredentials) {
|
|
907
|
+
this._logger.debug("using fetchRequestCredentials from settings");
|
|
908
|
+
this._fetchRequestCredentials = this._settings.fetchRequestCredentials;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
resetSigningKeys() {
|
|
912
|
+
this._signingKeys = null;
|
|
913
|
+
}
|
|
914
|
+
async getMetadata() {
|
|
915
|
+
const logger2 = this._logger.create("getMetadata");
|
|
916
|
+
if (this._metadata) {
|
|
917
|
+
logger2.debug("using cached values");
|
|
918
|
+
return this._metadata;
|
|
919
|
+
}
|
|
920
|
+
if (!this._metadataUrl) {
|
|
921
|
+
logger2.throw(new Error("No authority or metadataUrl configured on settings"));
|
|
922
|
+
throw null;
|
|
923
|
+
}
|
|
924
|
+
logger2.debug("getting metadata from", this._metadataUrl);
|
|
925
|
+
const metadata = await this._jsonService.getJson(this._metadataUrl, { credentials: this._fetchRequestCredentials, timeoutInSeconds: this._settings.requestTimeoutInSeconds });
|
|
926
|
+
logger2.debug("merging remote JSON with seed metadata");
|
|
927
|
+
this._metadata = Object.assign({}, metadata, this._settings.metadataSeed);
|
|
928
|
+
return this._metadata;
|
|
929
|
+
}
|
|
930
|
+
getIssuer() {
|
|
931
|
+
return this._getMetadataProperty("issuer");
|
|
932
|
+
}
|
|
933
|
+
getAuthorizationEndpoint() {
|
|
934
|
+
return this._getMetadataProperty("authorization_endpoint");
|
|
935
|
+
}
|
|
936
|
+
getUserInfoEndpoint() {
|
|
937
|
+
return this._getMetadataProperty("userinfo_endpoint");
|
|
938
|
+
}
|
|
939
|
+
getTokenEndpoint(optional = true) {
|
|
940
|
+
return this._getMetadataProperty("token_endpoint", optional);
|
|
941
|
+
}
|
|
942
|
+
getCheckSessionIframe() {
|
|
943
|
+
return this._getMetadataProperty("check_session_iframe", true);
|
|
944
|
+
}
|
|
945
|
+
getEndSessionEndpoint() {
|
|
946
|
+
return this._getMetadataProperty("end_session_endpoint", true);
|
|
947
|
+
}
|
|
948
|
+
getRevocationEndpoint(optional = true) {
|
|
949
|
+
return this._getMetadataProperty("revocation_endpoint", optional);
|
|
950
|
+
}
|
|
951
|
+
getKeysEndpoint(optional = true) {
|
|
952
|
+
return this._getMetadataProperty("jwks_uri", optional);
|
|
953
|
+
}
|
|
954
|
+
async _getMetadataProperty(name, optional = false) {
|
|
955
|
+
const logger2 = this._logger.create(`_getMetadataProperty('${name}')`);
|
|
956
|
+
const metadata = await this.getMetadata();
|
|
957
|
+
logger2.debug("resolved");
|
|
958
|
+
if (metadata[name] === void 0) {
|
|
959
|
+
if (optional === true) {
|
|
960
|
+
logger2.warn("Metadata does not contain optional property");
|
|
961
|
+
return void 0;
|
|
962
|
+
}
|
|
963
|
+
logger2.throw(new Error("Metadata does not contain property " + name));
|
|
964
|
+
}
|
|
965
|
+
return metadata[name];
|
|
966
|
+
}
|
|
967
|
+
async getSigningKeys() {
|
|
968
|
+
const logger2 = this._logger.create("getSigningKeys");
|
|
969
|
+
if (this._signingKeys) {
|
|
970
|
+
logger2.debug("returning signingKeys from cache");
|
|
971
|
+
return this._signingKeys;
|
|
972
|
+
}
|
|
973
|
+
const jwks_uri = await this.getKeysEndpoint(false);
|
|
974
|
+
logger2.debug("got jwks_uri", jwks_uri);
|
|
975
|
+
const keySet = await this._jsonService.getJson(jwks_uri, { timeoutInSeconds: this._settings.requestTimeoutInSeconds });
|
|
976
|
+
logger2.debug("got key set", keySet);
|
|
977
|
+
if (!Array.isArray(keySet.keys)) {
|
|
978
|
+
logger2.throw(new Error("Missing keys on keyset"));
|
|
979
|
+
throw null;
|
|
980
|
+
}
|
|
981
|
+
this._signingKeys = keySet.keys;
|
|
982
|
+
return this._signingKeys;
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
// src/WebStorageStateStore.ts
|
|
987
|
+
var WebStorageStateStore = class {
|
|
988
|
+
constructor({
|
|
989
|
+
prefix = "oidc.",
|
|
990
|
+
store = localStorage
|
|
991
|
+
} = {}) {
|
|
992
|
+
this._logger = new Logger("WebStorageStateStore");
|
|
993
|
+
this._store = store;
|
|
994
|
+
this._prefix = prefix;
|
|
995
|
+
}
|
|
996
|
+
async set(key, value) {
|
|
997
|
+
this._logger.create(`set('${key}')`);
|
|
998
|
+
key = this._prefix + key;
|
|
999
|
+
await this._store.setItem(key, value);
|
|
1000
|
+
}
|
|
1001
|
+
async get(key) {
|
|
1002
|
+
this._logger.create(`get('${key}')`);
|
|
1003
|
+
key = this._prefix + key;
|
|
1004
|
+
const item = await this._store.getItem(key);
|
|
1005
|
+
return item;
|
|
1006
|
+
}
|
|
1007
|
+
async remove(key) {
|
|
1008
|
+
this._logger.create(`remove('${key}')`);
|
|
1009
|
+
key = this._prefix + key;
|
|
1010
|
+
const item = await this._store.getItem(key);
|
|
1011
|
+
await this._store.removeItem(key);
|
|
1012
|
+
return item;
|
|
1013
|
+
}
|
|
1014
|
+
async getAllKeys() {
|
|
1015
|
+
this._logger.create("getAllKeys");
|
|
1016
|
+
const len = await this._store.length;
|
|
1017
|
+
const keys = [];
|
|
1018
|
+
for (let index = 0; index < len; index++) {
|
|
1019
|
+
const key = await this._store.key(index);
|
|
1020
|
+
if (key && key.indexOf(this._prefix) === 0) {
|
|
1021
|
+
keys.push(key.substr(this._prefix.length));
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
return keys;
|
|
1025
|
+
}
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
// src/OidcClientSettings.ts
|
|
1029
|
+
var DefaultResponseType = "code";
|
|
1030
|
+
var DefaultScope = "openid";
|
|
1031
|
+
var DefaultClientAuthentication = "client_secret_post";
|
|
1032
|
+
var DefaultStaleStateAgeInSeconds = 60 * 15;
|
|
1033
|
+
var OidcClientSettingsStore = class {
|
|
1034
|
+
constructor({
|
|
1035
|
+
// metadata related
|
|
1036
|
+
authority,
|
|
1037
|
+
metadataUrl,
|
|
1038
|
+
metadata,
|
|
1039
|
+
signingKeys,
|
|
1040
|
+
metadataSeed,
|
|
1041
|
+
// client related
|
|
1042
|
+
client_id,
|
|
1043
|
+
client_secret,
|
|
1044
|
+
response_type = DefaultResponseType,
|
|
1045
|
+
scope = DefaultScope,
|
|
1046
|
+
redirect_uri,
|
|
1047
|
+
post_logout_redirect_uri,
|
|
1048
|
+
client_authentication = DefaultClientAuthentication,
|
|
1049
|
+
token_endpoint_auth_signing_alg = "HS256",
|
|
1050
|
+
// optional protocol
|
|
1051
|
+
prompt,
|
|
1052
|
+
display,
|
|
1053
|
+
max_age,
|
|
1054
|
+
ui_locales,
|
|
1055
|
+
acr_values,
|
|
1056
|
+
resource,
|
|
1057
|
+
response_mode,
|
|
1058
|
+
// behavior flags
|
|
1059
|
+
filterProtocolClaims = true,
|
|
1060
|
+
loadUserInfo = false,
|
|
1061
|
+
requestTimeoutInSeconds,
|
|
1062
|
+
staleStateAgeInSeconds = DefaultStaleStateAgeInSeconds,
|
|
1063
|
+
mergeClaimsStrategy = { array: "replace" },
|
|
1064
|
+
disablePKCE = false,
|
|
1065
|
+
// other behavior
|
|
1066
|
+
stateStore,
|
|
1067
|
+
revokeTokenAdditionalContentTypes,
|
|
1068
|
+
fetchRequestCredentials,
|
|
1069
|
+
refreshTokenAllowedScope,
|
|
1070
|
+
// extra
|
|
1071
|
+
extraQueryParams = {},
|
|
1072
|
+
extraTokenParams = {},
|
|
1073
|
+
extraHeaders = {},
|
|
1074
|
+
dpop,
|
|
1075
|
+
omitScopeWhenRequesting = false
|
|
1076
|
+
}) {
|
|
1077
|
+
var _a;
|
|
1078
|
+
this.authority = authority;
|
|
1079
|
+
if (metadataUrl) {
|
|
1080
|
+
this.metadataUrl = metadataUrl;
|
|
1081
|
+
} else {
|
|
1082
|
+
this.metadataUrl = authority;
|
|
1083
|
+
if (authority) {
|
|
1084
|
+
if (!this.metadataUrl.endsWith("/")) {
|
|
1085
|
+
this.metadataUrl += "/";
|
|
1086
|
+
}
|
|
1087
|
+
this.metadataUrl += ".well-known/openid-configuration";
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
this.metadata = metadata;
|
|
1091
|
+
this.metadataSeed = metadataSeed;
|
|
1092
|
+
this.signingKeys = signingKeys;
|
|
1093
|
+
this.client_id = client_id;
|
|
1094
|
+
this.client_secret = client_secret;
|
|
1095
|
+
this.response_type = response_type;
|
|
1096
|
+
this.scope = scope;
|
|
1097
|
+
this.redirect_uri = redirect_uri;
|
|
1098
|
+
this.post_logout_redirect_uri = post_logout_redirect_uri;
|
|
1099
|
+
this.client_authentication = client_authentication;
|
|
1100
|
+
this.token_endpoint_auth_signing_alg = token_endpoint_auth_signing_alg;
|
|
1101
|
+
this.prompt = prompt;
|
|
1102
|
+
this.display = display;
|
|
1103
|
+
this.max_age = max_age;
|
|
1104
|
+
this.ui_locales = ui_locales;
|
|
1105
|
+
this.acr_values = acr_values;
|
|
1106
|
+
this.resource = resource;
|
|
1107
|
+
this.response_mode = response_mode;
|
|
1108
|
+
this.filterProtocolClaims = filterProtocolClaims != null ? filterProtocolClaims : true;
|
|
1109
|
+
this.loadUserInfo = !!loadUserInfo;
|
|
1110
|
+
this.staleStateAgeInSeconds = staleStateAgeInSeconds;
|
|
1111
|
+
this.mergeClaimsStrategy = mergeClaimsStrategy;
|
|
1112
|
+
this.omitScopeWhenRequesting = omitScopeWhenRequesting;
|
|
1113
|
+
this.disablePKCE = !!disablePKCE;
|
|
1114
|
+
this.revokeTokenAdditionalContentTypes = revokeTokenAdditionalContentTypes;
|
|
1115
|
+
this.fetchRequestCredentials = fetchRequestCredentials ? fetchRequestCredentials : "same-origin";
|
|
1116
|
+
this.requestTimeoutInSeconds = requestTimeoutInSeconds;
|
|
1117
|
+
if (stateStore) {
|
|
1118
|
+
this.stateStore = stateStore;
|
|
1119
|
+
} else {
|
|
1120
|
+
const store = typeof window !== "undefined" ? window.localStorage : new InMemoryWebStorage();
|
|
1121
|
+
this.stateStore = new WebStorageStateStore({ store });
|
|
1122
|
+
}
|
|
1123
|
+
this.refreshTokenAllowedScope = refreshTokenAllowedScope;
|
|
1124
|
+
this.extraQueryParams = extraQueryParams;
|
|
1125
|
+
this.extraTokenParams = extraTokenParams;
|
|
1126
|
+
this.extraHeaders = extraHeaders;
|
|
1127
|
+
this.dpop = dpop;
|
|
1128
|
+
if (this.dpop && !((_a = this.dpop) == null ? void 0 : _a.store)) {
|
|
1129
|
+
throw new Error("A DPoPStore is required when dpop is enabled");
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
// src/UserInfoService.ts
|
|
1135
|
+
var UserInfoService = class {
|
|
1136
|
+
constructor(_settings, _metadataService) {
|
|
1137
|
+
this._settings = _settings;
|
|
1138
|
+
this._metadataService = _metadataService;
|
|
1139
|
+
this._logger = new Logger("UserInfoService");
|
|
1140
|
+
this._getClaimsFromJwt = async (responseText) => {
|
|
1141
|
+
const logger2 = this._logger.create("_getClaimsFromJwt");
|
|
1142
|
+
try {
|
|
1143
|
+
const payload = JwtUtils.decode(responseText);
|
|
1144
|
+
logger2.debug("JWT decoding successful");
|
|
1145
|
+
return payload;
|
|
1146
|
+
} catch (err) {
|
|
1147
|
+
logger2.error("Error parsing JWT response");
|
|
1148
|
+
throw err;
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
this._jsonService = new JsonService(
|
|
1152
|
+
void 0,
|
|
1153
|
+
this._getClaimsFromJwt,
|
|
1154
|
+
this._settings.extraHeaders
|
|
1155
|
+
);
|
|
1156
|
+
}
|
|
1157
|
+
async getClaims(token) {
|
|
1158
|
+
const logger2 = this._logger.create("getClaims");
|
|
1159
|
+
if (!token) {
|
|
1160
|
+
this._logger.throw(new Error("No token passed"));
|
|
1161
|
+
}
|
|
1162
|
+
const url = await this._metadataService.getUserInfoEndpoint();
|
|
1163
|
+
logger2.debug("got userinfo url", url);
|
|
1164
|
+
const claims = await this._jsonService.getJson(url, {
|
|
1165
|
+
token,
|
|
1166
|
+
credentials: this._settings.fetchRequestCredentials,
|
|
1167
|
+
timeoutInSeconds: this._settings.requestTimeoutInSeconds
|
|
1168
|
+
});
|
|
1169
|
+
logger2.debug("got claims", claims);
|
|
1170
|
+
return claims;
|
|
1171
|
+
}
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
// src/TokenClient.ts
|
|
1175
|
+
var TokenClient = class {
|
|
1176
|
+
constructor(_settings, _metadataService) {
|
|
1177
|
+
this._settings = _settings;
|
|
1178
|
+
this._metadataService = _metadataService;
|
|
1179
|
+
this._logger = new Logger("TokenClient");
|
|
1180
|
+
this._jsonService = new JsonService(
|
|
1181
|
+
this._settings.revokeTokenAdditionalContentTypes,
|
|
1182
|
+
null,
|
|
1183
|
+
this._settings.extraHeaders
|
|
1184
|
+
);
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Exchange code.
|
|
1188
|
+
*
|
|
1189
|
+
* @see https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3
|
|
1190
|
+
*/
|
|
1191
|
+
async exchangeCode({
|
|
1192
|
+
grant_type = "authorization_code",
|
|
1193
|
+
redirect_uri = this._settings.redirect_uri,
|
|
1194
|
+
client_id = this._settings.client_id,
|
|
1195
|
+
client_secret = this._settings.client_secret,
|
|
1196
|
+
extraHeaders,
|
|
1197
|
+
...args
|
|
1198
|
+
}) {
|
|
1199
|
+
const logger2 = this._logger.create("exchangeCode");
|
|
1200
|
+
if (!client_id) {
|
|
1201
|
+
logger2.throw(new Error("A client_id is required"));
|
|
1202
|
+
}
|
|
1203
|
+
if (!redirect_uri) {
|
|
1204
|
+
logger2.throw(new Error("A redirect_uri is required"));
|
|
1205
|
+
}
|
|
1206
|
+
if (!args.code) {
|
|
1207
|
+
logger2.throw(new Error("A code is required"));
|
|
1208
|
+
}
|
|
1209
|
+
const params = new URLSearchParams({ grant_type, redirect_uri });
|
|
1210
|
+
for (const [key, value] of Object.entries(args)) {
|
|
1211
|
+
if (value != null) {
|
|
1212
|
+
params.set(key, value);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
if ((this._settings.client_authentication === "client_secret_basic" || this._settings.client_authentication === "client_secret_jwt") && (client_secret === void 0 || client_secret === null)) {
|
|
1216
|
+
logger2.throw(new Error("A client_secret is required"));
|
|
1217
|
+
throw null;
|
|
1218
|
+
}
|
|
1219
|
+
let basicAuth;
|
|
1220
|
+
const url = await this._metadataService.getTokenEndpoint(false);
|
|
1221
|
+
switch (this._settings.client_authentication) {
|
|
1222
|
+
case "client_secret_basic":
|
|
1223
|
+
basicAuth = CryptoUtils.generateBasicAuth(client_id, client_secret);
|
|
1224
|
+
break;
|
|
1225
|
+
case "client_secret_post":
|
|
1226
|
+
params.append("client_id", client_id);
|
|
1227
|
+
if (client_secret) {
|
|
1228
|
+
params.append("client_secret", client_secret);
|
|
1229
|
+
}
|
|
1230
|
+
break;
|
|
1231
|
+
case "client_secret_jwt": {
|
|
1232
|
+
const clientAssertion = await CryptoUtils.generateClientAssertionJwt(client_id, client_secret, url, this._settings.token_endpoint_auth_signing_alg);
|
|
1233
|
+
params.append("client_id", client_id);
|
|
1234
|
+
params.append("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer");
|
|
1235
|
+
params.append("client_assertion", clientAssertion);
|
|
1236
|
+
break;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
logger2.debug("got token endpoint");
|
|
1240
|
+
const response = await this._jsonService.postForm(url, {
|
|
1241
|
+
body: params,
|
|
1242
|
+
basicAuth,
|
|
1243
|
+
timeoutInSeconds: this._settings.requestTimeoutInSeconds,
|
|
1244
|
+
initCredentials: this._settings.fetchRequestCredentials,
|
|
1245
|
+
extraHeaders
|
|
1246
|
+
});
|
|
1247
|
+
logger2.debug("got response");
|
|
1248
|
+
return response;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Exchange credentials.
|
|
1252
|
+
*
|
|
1253
|
+
* @see https://www.rfc-editor.org/rfc/rfc6749#section-4.3.2
|
|
1254
|
+
*/
|
|
1255
|
+
async exchangeCredentials({
|
|
1256
|
+
grant_type = "password",
|
|
1257
|
+
client_id = this._settings.client_id,
|
|
1258
|
+
client_secret = this._settings.client_secret,
|
|
1259
|
+
scope = this._settings.scope,
|
|
1260
|
+
...args
|
|
1261
|
+
}) {
|
|
1262
|
+
const logger2 = this._logger.create("exchangeCredentials");
|
|
1263
|
+
if (!client_id) {
|
|
1264
|
+
logger2.throw(new Error("A client_id is required"));
|
|
1265
|
+
}
|
|
1266
|
+
const params = new URLSearchParams({ grant_type });
|
|
1267
|
+
if (!this._settings.omitScopeWhenRequesting) {
|
|
1268
|
+
params.set("scope", scope);
|
|
1269
|
+
}
|
|
1270
|
+
for (const [key, value] of Object.entries(args)) {
|
|
1271
|
+
if (value != null) {
|
|
1272
|
+
params.set(key, value);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
if ((this._settings.client_authentication === "client_secret_basic" || this._settings.client_authentication === "client_secret_jwt") && (client_secret === void 0 || client_secret === null)) {
|
|
1276
|
+
logger2.throw(new Error("A client_secret is required"));
|
|
1277
|
+
throw null;
|
|
1278
|
+
}
|
|
1279
|
+
let basicAuth;
|
|
1280
|
+
const url = await this._metadataService.getTokenEndpoint(false);
|
|
1281
|
+
switch (this._settings.client_authentication) {
|
|
1282
|
+
case "client_secret_basic":
|
|
1283
|
+
basicAuth = CryptoUtils.generateBasicAuth(client_id, client_secret);
|
|
1284
|
+
break;
|
|
1285
|
+
case "client_secret_post":
|
|
1286
|
+
params.append("client_id", client_id);
|
|
1287
|
+
if (client_secret) {
|
|
1288
|
+
params.append("client_secret", client_secret);
|
|
1289
|
+
}
|
|
1290
|
+
break;
|
|
1291
|
+
case "client_secret_jwt": {
|
|
1292
|
+
const clientAssertion = await CryptoUtils.generateClientAssertionJwt(client_id, client_secret, url, this._settings.token_endpoint_auth_signing_alg);
|
|
1293
|
+
params.append("client_id", client_id);
|
|
1294
|
+
params.append("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer");
|
|
1295
|
+
params.append("client_assertion", clientAssertion);
|
|
1296
|
+
break;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
logger2.debug("got token endpoint");
|
|
1300
|
+
const response = await this._jsonService.postForm(url, { body: params, basicAuth, timeoutInSeconds: this._settings.requestTimeoutInSeconds, initCredentials: this._settings.fetchRequestCredentials });
|
|
1301
|
+
logger2.debug("got response");
|
|
1302
|
+
return response;
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Exchange a refresh token.
|
|
1306
|
+
*
|
|
1307
|
+
* @see https://www.rfc-editor.org/rfc/rfc6749#section-6
|
|
1308
|
+
*/
|
|
1309
|
+
async exchangeRefreshToken({
|
|
1310
|
+
grant_type = "refresh_token",
|
|
1311
|
+
client_id = this._settings.client_id,
|
|
1312
|
+
client_secret = this._settings.client_secret,
|
|
1313
|
+
timeoutInSeconds,
|
|
1314
|
+
extraHeaders,
|
|
1315
|
+
...args
|
|
1316
|
+
}) {
|
|
1317
|
+
const logger2 = this._logger.create("exchangeRefreshToken");
|
|
1318
|
+
if (!client_id) {
|
|
1319
|
+
logger2.throw(new Error("A client_id is required"));
|
|
1320
|
+
}
|
|
1321
|
+
if (!args.refresh_token) {
|
|
1322
|
+
logger2.throw(new Error("A refresh_token is required"));
|
|
1323
|
+
}
|
|
1324
|
+
const params = new URLSearchParams({ grant_type });
|
|
1325
|
+
for (const [key, value] of Object.entries(args)) {
|
|
1326
|
+
if (Array.isArray(value)) {
|
|
1327
|
+
value.forEach((param) => params.append(key, param));
|
|
1328
|
+
} else if (value != null) {
|
|
1329
|
+
params.set(key, value);
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
if ((this._settings.client_authentication === "client_secret_basic" || this._settings.client_authentication === "client_secret_jwt") && (client_secret === void 0 || client_secret === null)) {
|
|
1333
|
+
logger2.throw(new Error("A client_secret is required"));
|
|
1334
|
+
throw null;
|
|
1335
|
+
}
|
|
1336
|
+
let basicAuth;
|
|
1337
|
+
const url = await this._metadataService.getTokenEndpoint(false);
|
|
1338
|
+
switch (this._settings.client_authentication) {
|
|
1339
|
+
case "client_secret_basic":
|
|
1340
|
+
basicAuth = CryptoUtils.generateBasicAuth(client_id, client_secret);
|
|
1341
|
+
break;
|
|
1342
|
+
case "client_secret_post":
|
|
1343
|
+
params.append("client_id", client_id);
|
|
1344
|
+
if (client_secret) {
|
|
1345
|
+
params.append("client_secret", client_secret);
|
|
1346
|
+
}
|
|
1347
|
+
break;
|
|
1348
|
+
case "client_secret_jwt": {
|
|
1349
|
+
const clientAssertion = await CryptoUtils.generateClientAssertionJwt(client_id, client_secret, url, this._settings.token_endpoint_auth_signing_alg);
|
|
1350
|
+
params.append("client_id", client_id);
|
|
1351
|
+
params.append("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer");
|
|
1352
|
+
params.append("client_assertion", clientAssertion);
|
|
1353
|
+
break;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
logger2.debug("got token endpoint");
|
|
1357
|
+
const response = await this._jsonService.postForm(url, { body: params, basicAuth, timeoutInSeconds, initCredentials: this._settings.fetchRequestCredentials, extraHeaders });
|
|
1358
|
+
logger2.debug("got response");
|
|
1359
|
+
return response;
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* Revoke an access or refresh token.
|
|
1363
|
+
*
|
|
1364
|
+
* @see https://datatracker.ietf.org/doc/html/rfc7009#section-2.1
|
|
1365
|
+
*/
|
|
1366
|
+
async revoke(args) {
|
|
1367
|
+
var _a;
|
|
1368
|
+
const logger2 = this._logger.create("revoke");
|
|
1369
|
+
if (!args.token) {
|
|
1370
|
+
logger2.throw(new Error("A token is required"));
|
|
1371
|
+
}
|
|
1372
|
+
const url = await this._metadataService.getRevocationEndpoint(false);
|
|
1373
|
+
logger2.debug(`got revocation endpoint, revoking ${(_a = args.token_type_hint) != null ? _a : "default token type"}`);
|
|
1374
|
+
const params = new URLSearchParams();
|
|
1375
|
+
for (const [key, value] of Object.entries(args)) {
|
|
1376
|
+
if (value != null) {
|
|
1377
|
+
params.set(key, value);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
params.set("client_id", this._settings.client_id);
|
|
1381
|
+
if (this._settings.client_secret) {
|
|
1382
|
+
params.set("client_secret", this._settings.client_secret);
|
|
1383
|
+
}
|
|
1384
|
+
await this._jsonService.postForm(url, { body: params, timeoutInSeconds: this._settings.requestTimeoutInSeconds });
|
|
1385
|
+
logger2.debug("got response");
|
|
1386
|
+
}
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
// src/ResponseValidator.ts
|
|
1390
|
+
var ResponseValidator = class {
|
|
1391
|
+
constructor(_settings, _metadataService, _claimsService) {
|
|
1392
|
+
this._settings = _settings;
|
|
1393
|
+
this._metadataService = _metadataService;
|
|
1394
|
+
this._claimsService = _claimsService;
|
|
1395
|
+
this._logger = new Logger("ResponseValidator");
|
|
1396
|
+
this._userInfoService = new UserInfoService(this._settings, this._metadataService);
|
|
1397
|
+
this._tokenClient = new TokenClient(this._settings, this._metadataService);
|
|
1398
|
+
}
|
|
1399
|
+
async validateSigninResponse(response, state, extraHeaders) {
|
|
1400
|
+
const logger2 = this._logger.create("validateSigninResponse");
|
|
1401
|
+
this._processSigninState(response, state);
|
|
1402
|
+
logger2.debug("state processed");
|
|
1403
|
+
await this._processCode(response, state, extraHeaders);
|
|
1404
|
+
logger2.debug("code processed");
|
|
1405
|
+
if (response.isOpenId) {
|
|
1406
|
+
this._validateIdTokenAttributes(response, "", state.nonce);
|
|
1407
|
+
}
|
|
1408
|
+
logger2.debug("tokens validated");
|
|
1409
|
+
await this._processClaims(response, state == null ? void 0 : state.skipUserInfo, response.isOpenId);
|
|
1410
|
+
logger2.debug("claims processed");
|
|
1411
|
+
}
|
|
1412
|
+
async validateCredentialsResponse(response, skipUserInfo) {
|
|
1413
|
+
const logger2 = this._logger.create("validateCredentialsResponse");
|
|
1414
|
+
const shouldValidateSubClaim = response.isOpenId && !!response.id_token;
|
|
1415
|
+
if (shouldValidateSubClaim) {
|
|
1416
|
+
this._validateIdTokenAttributes(response);
|
|
1417
|
+
}
|
|
1418
|
+
logger2.debug("tokens validated");
|
|
1419
|
+
await this._processClaims(response, skipUserInfo, shouldValidateSubClaim);
|
|
1420
|
+
logger2.debug("claims processed");
|
|
1421
|
+
}
|
|
1422
|
+
async validateRefreshResponse(response, state) {
|
|
1423
|
+
var _a, _b;
|
|
1424
|
+
const logger2 = this._logger.create("validateRefreshResponse");
|
|
1425
|
+
response.userState = state.data;
|
|
1426
|
+
(_a = response.session_state) != null ? _a : response.session_state = state.session_state;
|
|
1427
|
+
(_b = response.scope) != null ? _b : response.scope = state.scope;
|
|
1428
|
+
if (response.isOpenId && !!response.id_token) {
|
|
1429
|
+
this._validateIdTokenAttributes(response, state.id_token);
|
|
1430
|
+
logger2.debug("ID Token validated");
|
|
1431
|
+
}
|
|
1432
|
+
if (!response.id_token) {
|
|
1433
|
+
response.id_token = state.id_token;
|
|
1434
|
+
response.profile = state.profile;
|
|
1435
|
+
}
|
|
1436
|
+
const hasIdToken = response.isOpenId && !!response.id_token;
|
|
1437
|
+
await this._processClaims(response, false, hasIdToken);
|
|
1438
|
+
logger2.debug("claims processed");
|
|
1439
|
+
}
|
|
1440
|
+
validateSignoutResponse(response, state) {
|
|
1441
|
+
const logger2 = this._logger.create("validateSignoutResponse");
|
|
1442
|
+
if (state.id !== response.state) {
|
|
1443
|
+
logger2.throw(new Error("State does not match"));
|
|
1444
|
+
}
|
|
1445
|
+
logger2.debug("state validated");
|
|
1446
|
+
response.userState = state.data;
|
|
1447
|
+
if (response.error) {
|
|
1448
|
+
logger2.warn("Response was error", response.error);
|
|
1449
|
+
throw new ErrorResponse(response);
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
_processSigninState(response, state) {
|
|
1453
|
+
var _a;
|
|
1454
|
+
const logger2 = this._logger.create("_processSigninState");
|
|
1455
|
+
if (state.id !== response.state) {
|
|
1456
|
+
logger2.throw(new Error("State does not match"));
|
|
1457
|
+
}
|
|
1458
|
+
if (!state.client_id) {
|
|
1459
|
+
logger2.throw(new Error("No client_id on state"));
|
|
1460
|
+
}
|
|
1461
|
+
if (!state.authority) {
|
|
1462
|
+
logger2.throw(new Error("No authority on state"));
|
|
1463
|
+
}
|
|
1464
|
+
if (this._settings.authority !== state.authority) {
|
|
1465
|
+
logger2.throw(new Error("authority mismatch on settings vs. signin state"));
|
|
1466
|
+
}
|
|
1467
|
+
if (this._settings.client_id && this._settings.client_id !== state.client_id) {
|
|
1468
|
+
logger2.throw(new Error("client_id mismatch on settings vs. signin state"));
|
|
1469
|
+
}
|
|
1470
|
+
logger2.debug("state validated");
|
|
1471
|
+
response.userState = state.data;
|
|
1472
|
+
response.url_state = state.url_state;
|
|
1473
|
+
(_a = response.scope) != null ? _a : response.scope = state.scope;
|
|
1474
|
+
if (response.error) {
|
|
1475
|
+
logger2.warn("Response was error", response.error);
|
|
1476
|
+
throw new ErrorResponse(response);
|
|
1477
|
+
}
|
|
1478
|
+
if (state.code_verifier && !response.code) {
|
|
1479
|
+
logger2.throw(new Error("Expected code in response"));
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
async _processClaims(response, skipUserInfo = false, validateSub = true) {
|
|
1483
|
+
const logger2 = this._logger.create("_processClaims");
|
|
1484
|
+
response.profile = this._claimsService.filterProtocolClaims(response.profile);
|
|
1485
|
+
if (skipUserInfo || !this._settings.loadUserInfo || !response.access_token) {
|
|
1486
|
+
logger2.debug("not loading user info");
|
|
1487
|
+
return;
|
|
1488
|
+
}
|
|
1489
|
+
logger2.debug("loading user info");
|
|
1490
|
+
const claims = await this._userInfoService.getClaims(response.access_token);
|
|
1491
|
+
logger2.debug("user info claims received from user info endpoint");
|
|
1492
|
+
if (validateSub && claims.sub !== response.profile.sub) {
|
|
1493
|
+
logger2.throw(new Error("subject from UserInfo response does not match subject in ID Token"));
|
|
1494
|
+
}
|
|
1495
|
+
response.profile = this._claimsService.mergeClaims(response.profile, this._claimsService.filterProtocolClaims(claims));
|
|
1496
|
+
logger2.debug("user info claims received, updated profile:", response.profile);
|
|
1497
|
+
}
|
|
1498
|
+
async _processCode(response, state, extraHeaders) {
|
|
1499
|
+
const logger2 = this._logger.create("_processCode");
|
|
1500
|
+
if (response.code) {
|
|
1501
|
+
logger2.debug("Validating code");
|
|
1502
|
+
const tokenResponse = await this._tokenClient.exchangeCode({
|
|
1503
|
+
client_id: state.client_id,
|
|
1504
|
+
client_secret: state.client_secret,
|
|
1505
|
+
code: response.code,
|
|
1506
|
+
redirect_uri: state.redirect_uri,
|
|
1507
|
+
code_verifier: state.code_verifier,
|
|
1508
|
+
extraHeaders,
|
|
1509
|
+
...state.extraTokenParams
|
|
1510
|
+
});
|
|
1511
|
+
Object.assign(response, tokenResponse);
|
|
1512
|
+
} else {
|
|
1513
|
+
logger2.debug("No code to process");
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
_validateIdTokenAttributes(response, existingToken, nonce) {
|
|
1517
|
+
var _a;
|
|
1518
|
+
const logger2 = this._logger.create("_validateIdTokenAttributes");
|
|
1519
|
+
logger2.debug("decoding ID Token JWT");
|
|
1520
|
+
const incoming = JwtUtils.decode((_a = response.id_token) != null ? _a : "");
|
|
1521
|
+
if (!incoming.sub) {
|
|
1522
|
+
logger2.throw(new Error("ID Token is missing a subject claim"));
|
|
1523
|
+
}
|
|
1524
|
+
if (nonce && incoming.nonce !== nonce) {
|
|
1525
|
+
logger2.throw(new Error("nonce in id_token does not match nonce in client storage"));
|
|
1526
|
+
}
|
|
1527
|
+
if (existingToken) {
|
|
1528
|
+
const existing = JwtUtils.decode(existingToken);
|
|
1529
|
+
if (incoming.sub !== existing.sub) {
|
|
1530
|
+
logger2.throw(new Error("sub in id_token does not match current sub"));
|
|
1531
|
+
}
|
|
1532
|
+
if (incoming.auth_time && incoming.auth_time !== existing.auth_time) {
|
|
1533
|
+
logger2.throw(new Error("auth_time in id_token does not match original auth_time"));
|
|
1534
|
+
}
|
|
1535
|
+
if (incoming.azp && incoming.azp !== existing.azp) {
|
|
1536
|
+
logger2.throw(new Error("azp in id_token does not match original azp"));
|
|
1537
|
+
}
|
|
1538
|
+
if (!incoming.azp && existing.azp) {
|
|
1539
|
+
logger2.throw(new Error("azp not in id_token, but present in original id_token"));
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
response.profile = incoming;
|
|
1543
|
+
}
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
// src/State.ts
|
|
1547
|
+
var State = class _State {
|
|
1548
|
+
constructor(args) {
|
|
1549
|
+
this.id = args.id || CryptoUtils.generateUUIDv4();
|
|
1550
|
+
this.data = args.data;
|
|
1551
|
+
if (args.created && args.created > 0) {
|
|
1552
|
+
this.created = args.created;
|
|
1553
|
+
} else {
|
|
1554
|
+
this.created = Timer.getEpochTime();
|
|
1555
|
+
}
|
|
1556
|
+
this.request_type = args.request_type;
|
|
1557
|
+
this.url_state = args.url_state;
|
|
1558
|
+
}
|
|
1559
|
+
toStorageString() {
|
|
1560
|
+
new Logger("State").create("toStorageString");
|
|
1561
|
+
return JSON.stringify({
|
|
1562
|
+
id: this.id,
|
|
1563
|
+
data: this.data,
|
|
1564
|
+
created: this.created,
|
|
1565
|
+
request_type: this.request_type,
|
|
1566
|
+
url_state: this.url_state
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
static fromStorageString(storageString) {
|
|
1570
|
+
Logger.createStatic("State", "fromStorageString");
|
|
1571
|
+
return Promise.resolve(new _State(JSON.parse(storageString)));
|
|
1572
|
+
}
|
|
1573
|
+
static async clearStaleState(storage, age) {
|
|
1574
|
+
const logger2 = Logger.createStatic("State", "clearStaleState");
|
|
1575
|
+
const cutoff = Timer.getEpochTime() - age;
|
|
1576
|
+
const keys = await storage.getAllKeys();
|
|
1577
|
+
logger2.debug("got keys", keys);
|
|
1578
|
+
for (let i = 0; i < keys.length; i++) {
|
|
1579
|
+
const key = keys[i];
|
|
1580
|
+
const item = await storage.get(key);
|
|
1581
|
+
let remove = false;
|
|
1582
|
+
if (item) {
|
|
1583
|
+
try {
|
|
1584
|
+
const state = await _State.fromStorageString(item);
|
|
1585
|
+
logger2.debug("got item from key:", key, state.created);
|
|
1586
|
+
if (state.created <= cutoff) {
|
|
1587
|
+
remove = true;
|
|
1588
|
+
}
|
|
1589
|
+
} catch (err) {
|
|
1590
|
+
logger2.error("Error parsing state for key:", key, err);
|
|
1591
|
+
remove = true;
|
|
1592
|
+
}
|
|
1593
|
+
} else {
|
|
1594
|
+
logger2.debug("no item in storage for key:", key);
|
|
1595
|
+
remove = true;
|
|
1596
|
+
}
|
|
1597
|
+
if (remove) {
|
|
1598
|
+
logger2.debug("removed item for key:", key);
|
|
1599
|
+
void storage.remove(key);
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
|
|
1605
|
+
// src/SigninState.ts
|
|
1606
|
+
var SigninState = class _SigninState extends State {
|
|
1607
|
+
constructor(args) {
|
|
1608
|
+
super(args);
|
|
1609
|
+
this.code_verifier = args.code_verifier;
|
|
1610
|
+
this.code_challenge = args.code_challenge;
|
|
1611
|
+
this.authority = args.authority;
|
|
1612
|
+
this.client_id = args.client_id;
|
|
1613
|
+
this.redirect_uri = args.redirect_uri;
|
|
1614
|
+
this.scope = args.scope;
|
|
1615
|
+
this.client_secret = args.client_secret;
|
|
1616
|
+
this.extraTokenParams = args.extraTokenParams;
|
|
1617
|
+
this.response_mode = args.response_mode;
|
|
1618
|
+
this.skipUserInfo = args.skipUserInfo;
|
|
1619
|
+
this.nonce = args.nonce;
|
|
1620
|
+
}
|
|
1621
|
+
static async create(args) {
|
|
1622
|
+
const code_verifier = args.code_verifier === true ? CryptoUtils.generateCodeVerifier() : args.code_verifier || void 0;
|
|
1623
|
+
const code_challenge = code_verifier ? await CryptoUtils.generateCodeChallenge(code_verifier) : void 0;
|
|
1624
|
+
return new _SigninState({
|
|
1625
|
+
...args,
|
|
1626
|
+
code_verifier,
|
|
1627
|
+
code_challenge
|
|
1628
|
+
});
|
|
1629
|
+
}
|
|
1630
|
+
toStorageString() {
|
|
1631
|
+
new Logger("SigninState").create("toStorageString");
|
|
1632
|
+
return JSON.stringify({
|
|
1633
|
+
id: this.id,
|
|
1634
|
+
data: this.data,
|
|
1635
|
+
created: this.created,
|
|
1636
|
+
request_type: this.request_type,
|
|
1637
|
+
url_state: this.url_state,
|
|
1638
|
+
code_verifier: this.code_verifier,
|
|
1639
|
+
authority: this.authority,
|
|
1640
|
+
client_id: this.client_id,
|
|
1641
|
+
redirect_uri: this.redirect_uri,
|
|
1642
|
+
scope: this.scope,
|
|
1643
|
+
client_secret: this.client_secret,
|
|
1644
|
+
extraTokenParams: this.extraTokenParams,
|
|
1645
|
+
response_mode: this.response_mode,
|
|
1646
|
+
skipUserInfo: this.skipUserInfo,
|
|
1647
|
+
nonce: this.nonce
|
|
1648
|
+
});
|
|
1649
|
+
}
|
|
1650
|
+
static fromStorageString(storageString) {
|
|
1651
|
+
Logger.createStatic("SigninState", "fromStorageString");
|
|
1652
|
+
const data = JSON.parse(storageString);
|
|
1653
|
+
return _SigninState.create(data);
|
|
1654
|
+
}
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
// src/SigninRequest.ts
|
|
1658
|
+
var _SigninRequest = class _SigninRequest {
|
|
1659
|
+
constructor(args) {
|
|
1660
|
+
this.url = args.url;
|
|
1661
|
+
this.state = args.state;
|
|
1662
|
+
}
|
|
1663
|
+
static async create({
|
|
1664
|
+
// mandatory
|
|
1665
|
+
url,
|
|
1666
|
+
authority,
|
|
1667
|
+
client_id,
|
|
1668
|
+
redirect_uri,
|
|
1669
|
+
response_type,
|
|
1670
|
+
scope,
|
|
1671
|
+
// optional
|
|
1672
|
+
state_data,
|
|
1673
|
+
response_mode,
|
|
1674
|
+
request_type,
|
|
1675
|
+
client_secret,
|
|
1676
|
+
nonce,
|
|
1677
|
+
url_state,
|
|
1678
|
+
resource,
|
|
1679
|
+
skipUserInfo,
|
|
1680
|
+
extraQueryParams,
|
|
1681
|
+
extraTokenParams,
|
|
1682
|
+
disablePKCE,
|
|
1683
|
+
dpopJkt,
|
|
1684
|
+
omitScopeWhenRequesting,
|
|
1685
|
+
...optionalParams
|
|
1686
|
+
}) {
|
|
1687
|
+
if (!url) {
|
|
1688
|
+
this._logger.error("create: No url passed");
|
|
1689
|
+
throw new Error("url");
|
|
1690
|
+
}
|
|
1691
|
+
if (!client_id) {
|
|
1692
|
+
this._logger.error("create: No client_id passed");
|
|
1693
|
+
throw new Error("client_id");
|
|
1694
|
+
}
|
|
1695
|
+
if (!redirect_uri) {
|
|
1696
|
+
this._logger.error("create: No redirect_uri passed");
|
|
1697
|
+
throw new Error("redirect_uri");
|
|
1698
|
+
}
|
|
1699
|
+
if (!response_type) {
|
|
1700
|
+
this._logger.error("create: No response_type passed");
|
|
1701
|
+
throw new Error("response_type");
|
|
1702
|
+
}
|
|
1703
|
+
if (!scope) {
|
|
1704
|
+
this._logger.error("create: No scope passed");
|
|
1705
|
+
throw new Error("scope");
|
|
1706
|
+
}
|
|
1707
|
+
if (!authority) {
|
|
1708
|
+
this._logger.error("create: No authority passed");
|
|
1709
|
+
throw new Error("authority");
|
|
1710
|
+
}
|
|
1711
|
+
const state = await SigninState.create({
|
|
1712
|
+
data: state_data,
|
|
1713
|
+
request_type,
|
|
1714
|
+
url_state,
|
|
1715
|
+
code_verifier: !disablePKCE,
|
|
1716
|
+
client_id,
|
|
1717
|
+
authority,
|
|
1718
|
+
redirect_uri,
|
|
1719
|
+
response_mode,
|
|
1720
|
+
client_secret,
|
|
1721
|
+
scope,
|
|
1722
|
+
extraTokenParams,
|
|
1723
|
+
skipUserInfo,
|
|
1724
|
+
nonce
|
|
1725
|
+
});
|
|
1726
|
+
const parsedUrl = new URL(url);
|
|
1727
|
+
parsedUrl.searchParams.append("client_id", client_id);
|
|
1728
|
+
parsedUrl.searchParams.append("redirect_uri", redirect_uri);
|
|
1729
|
+
parsedUrl.searchParams.append("response_type", response_type);
|
|
1730
|
+
if (!omitScopeWhenRequesting) {
|
|
1731
|
+
parsedUrl.searchParams.append("scope", scope);
|
|
1732
|
+
}
|
|
1733
|
+
if (nonce) {
|
|
1734
|
+
parsedUrl.searchParams.append("nonce", nonce);
|
|
1735
|
+
}
|
|
1736
|
+
if (dpopJkt) {
|
|
1737
|
+
parsedUrl.searchParams.append("dpop_jkt", dpopJkt);
|
|
1738
|
+
}
|
|
1739
|
+
let stateParam = state.id;
|
|
1740
|
+
if (url_state) {
|
|
1741
|
+
stateParam = `${stateParam}${URL_STATE_DELIMITER}${url_state}`;
|
|
1742
|
+
}
|
|
1743
|
+
parsedUrl.searchParams.append("state", stateParam);
|
|
1744
|
+
if (state.code_challenge) {
|
|
1745
|
+
parsedUrl.searchParams.append("code_challenge", state.code_challenge);
|
|
1746
|
+
parsedUrl.searchParams.append("code_challenge_method", "S256");
|
|
1747
|
+
}
|
|
1748
|
+
if (resource) {
|
|
1749
|
+
const resources = Array.isArray(resource) ? resource : [resource];
|
|
1750
|
+
resources.forEach((r) => parsedUrl.searchParams.append("resource", r));
|
|
1751
|
+
}
|
|
1752
|
+
for (const [key, value] of Object.entries({ response_mode, ...optionalParams, ...extraQueryParams })) {
|
|
1753
|
+
if (value != null) {
|
|
1754
|
+
parsedUrl.searchParams.append(key, value.toString());
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
return new _SigninRequest({
|
|
1758
|
+
url: parsedUrl.href,
|
|
1759
|
+
state
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1762
|
+
};
|
|
1763
|
+
_SigninRequest._logger = new Logger("SigninRequest");
|
|
1764
|
+
var SigninRequest = _SigninRequest;
|
|
1765
|
+
|
|
1766
|
+
// src/SigninResponse.ts
|
|
1767
|
+
var OidcScope = "openid";
|
|
1768
|
+
var SigninResponse = class {
|
|
1769
|
+
constructor(params) {
|
|
1770
|
+
/** @see {@link User.access_token} */
|
|
1771
|
+
this.access_token = "";
|
|
1772
|
+
/** @see {@link User.token_type} */
|
|
1773
|
+
this.token_type = "";
|
|
1774
|
+
/** @see {@link User.profile} */
|
|
1775
|
+
this.profile = {};
|
|
1776
|
+
this.state = params.get("state");
|
|
1777
|
+
this.session_state = params.get("session_state");
|
|
1778
|
+
if (this.state) {
|
|
1779
|
+
const splitState = decodeURIComponent(this.state).split(URL_STATE_DELIMITER);
|
|
1780
|
+
this.state = splitState[0];
|
|
1781
|
+
if (splitState.length > 1) {
|
|
1782
|
+
this.url_state = splitState.slice(1).join(URL_STATE_DELIMITER);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
this.error = params.get("error");
|
|
1786
|
+
this.error_description = params.get("error_description");
|
|
1787
|
+
this.error_uri = params.get("error_uri");
|
|
1788
|
+
this.code = params.get("code");
|
|
1789
|
+
}
|
|
1790
|
+
get expires_in() {
|
|
1791
|
+
if (this.expires_at === void 0) {
|
|
1792
|
+
return void 0;
|
|
1793
|
+
}
|
|
1794
|
+
return this.expires_at - Timer.getEpochTime();
|
|
1795
|
+
}
|
|
1796
|
+
set expires_in(value) {
|
|
1797
|
+
if (typeof value === "string") value = Number(value);
|
|
1798
|
+
if (value !== void 0 && value >= 0) {
|
|
1799
|
+
this.expires_at = Math.floor(value) + Timer.getEpochTime();
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
get isOpenId() {
|
|
1803
|
+
var _a;
|
|
1804
|
+
return ((_a = this.scope) == null ? void 0 : _a.split(" ").includes(OidcScope)) || !!this.id_token;
|
|
1805
|
+
}
|
|
1806
|
+
};
|
|
1807
|
+
|
|
1808
|
+
// src/SignoutRequest.ts
|
|
1809
|
+
var SignoutRequest = class {
|
|
1810
|
+
constructor({
|
|
1811
|
+
url,
|
|
1812
|
+
state_data,
|
|
1813
|
+
id_token_hint,
|
|
1814
|
+
post_logout_redirect_uri,
|
|
1815
|
+
extraQueryParams,
|
|
1816
|
+
request_type,
|
|
1817
|
+
client_id,
|
|
1818
|
+
url_state
|
|
1819
|
+
}) {
|
|
1820
|
+
this._logger = new Logger("SignoutRequest");
|
|
1821
|
+
if (!url) {
|
|
1822
|
+
this._logger.error("ctor: No url passed");
|
|
1823
|
+
throw new Error("url");
|
|
1824
|
+
}
|
|
1825
|
+
const parsedUrl = new URL(url);
|
|
1826
|
+
if (id_token_hint) {
|
|
1827
|
+
parsedUrl.searchParams.append("id_token_hint", id_token_hint);
|
|
1828
|
+
}
|
|
1829
|
+
if (client_id) {
|
|
1830
|
+
parsedUrl.searchParams.append("client_id", client_id);
|
|
1831
|
+
}
|
|
1832
|
+
if (post_logout_redirect_uri) {
|
|
1833
|
+
parsedUrl.searchParams.append("post_logout_redirect_uri", post_logout_redirect_uri);
|
|
1834
|
+
if (state_data || url_state) {
|
|
1835
|
+
this.state = new State({ data: state_data, request_type, url_state });
|
|
1836
|
+
let stateParam = this.state.id;
|
|
1837
|
+
if (url_state) {
|
|
1838
|
+
stateParam = `${stateParam}${URL_STATE_DELIMITER}${url_state}`;
|
|
1839
|
+
}
|
|
1840
|
+
parsedUrl.searchParams.append("state", stateParam);
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
for (const [key, value] of Object.entries({ ...extraQueryParams })) {
|
|
1844
|
+
if (value != null) {
|
|
1845
|
+
parsedUrl.searchParams.append(key, value.toString());
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
this.url = parsedUrl.href;
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1852
|
+
// src/SignoutResponse.ts
|
|
1853
|
+
var SignoutResponse = class {
|
|
1854
|
+
constructor(params) {
|
|
1855
|
+
this.state = params.get("state");
|
|
1856
|
+
if (this.state) {
|
|
1857
|
+
const splitState = decodeURIComponent(this.state).split(URL_STATE_DELIMITER);
|
|
1858
|
+
this.state = splitState[0];
|
|
1859
|
+
if (splitState.length > 1) {
|
|
1860
|
+
this.url_state = splitState.slice(1).join(URL_STATE_DELIMITER);
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
this.error = params.get("error");
|
|
1864
|
+
this.error_description = params.get("error_description");
|
|
1865
|
+
this.error_uri = params.get("error_uri");
|
|
1866
|
+
}
|
|
1867
|
+
};
|
|
1868
|
+
|
|
1869
|
+
// src/ClaimsService.ts
|
|
1870
|
+
var DefaultProtocolClaims = [
|
|
1871
|
+
"nbf",
|
|
1872
|
+
"jti",
|
|
1873
|
+
"auth_time",
|
|
1874
|
+
"nonce",
|
|
1875
|
+
"acr",
|
|
1876
|
+
"amr",
|
|
1877
|
+
"azp",
|
|
1878
|
+
"at_hash"
|
|
1879
|
+
// https://openid.net/specs/openid-connect-core-1_0.html#CodeIDToken
|
|
1880
|
+
];
|
|
1881
|
+
var InternalRequiredProtocolClaims = ["sub", "iss", "aud", "exp", "iat"];
|
|
1882
|
+
var ClaimsService = class {
|
|
1883
|
+
constructor(_settings) {
|
|
1884
|
+
this._settings = _settings;
|
|
1885
|
+
this._logger = new Logger("ClaimsService");
|
|
1886
|
+
}
|
|
1887
|
+
filterProtocolClaims(claims) {
|
|
1888
|
+
const result = { ...claims };
|
|
1889
|
+
if (this._settings.filterProtocolClaims) {
|
|
1890
|
+
let protocolClaims;
|
|
1891
|
+
if (Array.isArray(this._settings.filterProtocolClaims)) {
|
|
1892
|
+
protocolClaims = this._settings.filterProtocolClaims;
|
|
1893
|
+
} else {
|
|
1894
|
+
protocolClaims = DefaultProtocolClaims;
|
|
1895
|
+
}
|
|
1896
|
+
for (const claim of protocolClaims) {
|
|
1897
|
+
if (!InternalRequiredProtocolClaims.includes(claim)) {
|
|
1898
|
+
delete result[claim];
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
return result;
|
|
1903
|
+
}
|
|
1904
|
+
mergeClaims(claims1, claims2) {
|
|
1905
|
+
const result = { ...claims1 };
|
|
1906
|
+
for (const [claim, values] of Object.entries(claims2)) {
|
|
1907
|
+
if (result[claim] !== values) {
|
|
1908
|
+
if (Array.isArray(result[claim]) || Array.isArray(values)) {
|
|
1909
|
+
if (this._settings.mergeClaimsStrategy.array == "replace") {
|
|
1910
|
+
result[claim] = values;
|
|
1911
|
+
} else {
|
|
1912
|
+
const mergedValues = Array.isArray(result[claim]) ? result[claim] : [result[claim]];
|
|
1913
|
+
for (const value of Array.isArray(values) ? values : [values]) {
|
|
1914
|
+
if (!mergedValues.includes(value)) {
|
|
1915
|
+
mergedValues.push(value);
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
result[claim] = mergedValues;
|
|
1919
|
+
}
|
|
1920
|
+
} else if (typeof result[claim] === "object" && typeof values === "object") {
|
|
1921
|
+
result[claim] = this.mergeClaims(result[claim], values);
|
|
1922
|
+
} else {
|
|
1923
|
+
result[claim] = values;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
return result;
|
|
1928
|
+
}
|
|
1929
|
+
};
|
|
1930
|
+
|
|
1931
|
+
// src/DPoPStore.ts
|
|
1932
|
+
var DPoPState = class {
|
|
1933
|
+
constructor(keys, nonce) {
|
|
1934
|
+
this.keys = keys;
|
|
1935
|
+
this.nonce = nonce;
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
// src/OidcClient.ts
|
|
1940
|
+
var OidcClient = class {
|
|
1941
|
+
constructor(settings, metadataService) {
|
|
1942
|
+
this._logger = new Logger("OidcClient");
|
|
1943
|
+
this.settings = settings instanceof OidcClientSettingsStore ? settings : new OidcClientSettingsStore(settings);
|
|
1944
|
+
this.metadataService = metadataService != null ? metadataService : new MetadataService(this.settings);
|
|
1945
|
+
this._claimsService = new ClaimsService(this.settings);
|
|
1946
|
+
this._validator = new ResponseValidator(this.settings, this.metadataService, this._claimsService);
|
|
1947
|
+
this._tokenClient = new TokenClient(this.settings, this.metadataService);
|
|
1948
|
+
}
|
|
1949
|
+
async createSigninRequest({
|
|
1950
|
+
state,
|
|
1951
|
+
request,
|
|
1952
|
+
request_uri,
|
|
1953
|
+
request_type,
|
|
1954
|
+
id_token_hint,
|
|
1955
|
+
login_hint,
|
|
1956
|
+
skipUserInfo,
|
|
1957
|
+
nonce,
|
|
1958
|
+
url_state,
|
|
1959
|
+
response_type = this.settings.response_type,
|
|
1960
|
+
scope = this.settings.scope,
|
|
1961
|
+
redirect_uri = this.settings.redirect_uri,
|
|
1962
|
+
prompt = this.settings.prompt,
|
|
1963
|
+
display = this.settings.display,
|
|
1964
|
+
max_age = this.settings.max_age,
|
|
1965
|
+
ui_locales = this.settings.ui_locales,
|
|
1966
|
+
acr_values = this.settings.acr_values,
|
|
1967
|
+
resource = this.settings.resource,
|
|
1968
|
+
response_mode = this.settings.response_mode,
|
|
1969
|
+
extraQueryParams = this.settings.extraQueryParams,
|
|
1970
|
+
extraTokenParams = this.settings.extraTokenParams,
|
|
1971
|
+
dpopJkt,
|
|
1972
|
+
omitScopeWhenRequesting = this.settings.omitScopeWhenRequesting
|
|
1973
|
+
}) {
|
|
1974
|
+
const logger2 = this._logger.create("createSigninRequest");
|
|
1975
|
+
if (response_type !== "code") {
|
|
1976
|
+
throw new Error("Only the Authorization Code flow (with PKCE) is supported");
|
|
1977
|
+
}
|
|
1978
|
+
const url = await this.metadataService.getAuthorizationEndpoint();
|
|
1979
|
+
logger2.debug("Received authorization endpoint", url);
|
|
1980
|
+
const signinRequest = await SigninRequest.create({
|
|
1981
|
+
url,
|
|
1982
|
+
authority: this.settings.authority,
|
|
1983
|
+
client_id: this.settings.client_id,
|
|
1984
|
+
redirect_uri,
|
|
1985
|
+
response_type,
|
|
1986
|
+
scope,
|
|
1987
|
+
state_data: state,
|
|
1988
|
+
url_state,
|
|
1989
|
+
prompt,
|
|
1990
|
+
display,
|
|
1991
|
+
max_age,
|
|
1992
|
+
ui_locales,
|
|
1993
|
+
id_token_hint,
|
|
1994
|
+
login_hint,
|
|
1995
|
+
acr_values,
|
|
1996
|
+
dpopJkt,
|
|
1997
|
+
resource,
|
|
1998
|
+
request,
|
|
1999
|
+
request_uri,
|
|
2000
|
+
extraQueryParams,
|
|
2001
|
+
extraTokenParams,
|
|
2002
|
+
request_type,
|
|
2003
|
+
response_mode,
|
|
2004
|
+
client_secret: this.settings.client_secret,
|
|
2005
|
+
skipUserInfo,
|
|
2006
|
+
nonce,
|
|
2007
|
+
disablePKCE: this.settings.disablePKCE,
|
|
2008
|
+
omitScopeWhenRequesting
|
|
2009
|
+
});
|
|
2010
|
+
await this.clearStaleState();
|
|
2011
|
+
const signinState = signinRequest.state;
|
|
2012
|
+
await this.settings.stateStore.set(signinState.id, signinState.toStorageString());
|
|
2013
|
+
return signinRequest;
|
|
2014
|
+
}
|
|
2015
|
+
async readSigninResponseState(url, removeState = false) {
|
|
2016
|
+
const logger2 = this._logger.create("readSigninResponseState");
|
|
2017
|
+
const response = new SigninResponse(UrlUtils.readParams(url, this.settings.response_mode));
|
|
2018
|
+
if (!response.state) {
|
|
2019
|
+
logger2.throw(new Error("No state in response"));
|
|
2020
|
+
throw null;
|
|
2021
|
+
}
|
|
2022
|
+
const storedStateString = await this.settings.stateStore[removeState ? "remove" : "get"](response.state);
|
|
2023
|
+
if (!storedStateString) {
|
|
2024
|
+
logger2.throw(new Error("No matching state found in storage"));
|
|
2025
|
+
throw null;
|
|
2026
|
+
}
|
|
2027
|
+
const state = await SigninState.fromStorageString(storedStateString);
|
|
2028
|
+
return { state, response };
|
|
2029
|
+
}
|
|
2030
|
+
async processSigninResponse(url, extraHeaders, removeState = true) {
|
|
2031
|
+
const logger2 = this._logger.create("processSigninResponse");
|
|
2032
|
+
const { state, response } = await this.readSigninResponseState(url, removeState);
|
|
2033
|
+
logger2.debug("received state from storage; validating response");
|
|
2034
|
+
if (this.settings.dpop && this.settings.dpop.store) {
|
|
2035
|
+
const dpopProof = await this.getDpopProof(this.settings.dpop.store);
|
|
2036
|
+
extraHeaders = { ...extraHeaders, "DPoP": dpopProof };
|
|
2037
|
+
}
|
|
2038
|
+
try {
|
|
2039
|
+
await this._validator.validateSigninResponse(response, state, extraHeaders);
|
|
2040
|
+
} catch (err) {
|
|
2041
|
+
if (err instanceof ErrorDPoPNonce && this.settings.dpop) {
|
|
2042
|
+
const dpopProof = await this.getDpopProof(this.settings.dpop.store, err.nonce);
|
|
2043
|
+
extraHeaders["DPoP"] = dpopProof;
|
|
2044
|
+
await this._validator.validateSigninResponse(response, state, extraHeaders);
|
|
2045
|
+
} else {
|
|
2046
|
+
throw err;
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
return response;
|
|
2050
|
+
}
|
|
2051
|
+
async getDpopProof(dpopStore, nonce) {
|
|
2052
|
+
let keyPair;
|
|
2053
|
+
let dpopState;
|
|
2054
|
+
if (!(await dpopStore.getAllKeys()).includes(this.settings.client_id)) {
|
|
2055
|
+
keyPair = await CryptoUtils.generateDPoPKeys();
|
|
2056
|
+
dpopState = new DPoPState(keyPair, nonce);
|
|
2057
|
+
await dpopStore.set(this.settings.client_id, dpopState);
|
|
2058
|
+
} else {
|
|
2059
|
+
dpopState = await dpopStore.get(this.settings.client_id);
|
|
2060
|
+
if (dpopState.nonce !== nonce && nonce) {
|
|
2061
|
+
dpopState.nonce = nonce;
|
|
2062
|
+
await dpopStore.set(this.settings.client_id, dpopState);
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
return await CryptoUtils.generateDPoPProof({
|
|
2066
|
+
url: await this.metadataService.getTokenEndpoint(false),
|
|
2067
|
+
httpMethod: "POST",
|
|
2068
|
+
keyPair: dpopState.keys,
|
|
2069
|
+
nonce: dpopState.nonce
|
|
2070
|
+
});
|
|
2071
|
+
}
|
|
2072
|
+
async processResourceOwnerPasswordCredentials({
|
|
2073
|
+
username,
|
|
2074
|
+
password,
|
|
2075
|
+
skipUserInfo = false,
|
|
2076
|
+
extraTokenParams = {}
|
|
2077
|
+
}) {
|
|
2078
|
+
const tokenResponse = await this._tokenClient.exchangeCredentials({ username, password, ...extraTokenParams });
|
|
2079
|
+
const signinResponse = new SigninResponse(new URLSearchParams());
|
|
2080
|
+
Object.assign(signinResponse, tokenResponse);
|
|
2081
|
+
await this._validator.validateCredentialsResponse(signinResponse, skipUserInfo);
|
|
2082
|
+
return signinResponse;
|
|
2083
|
+
}
|
|
2084
|
+
async useRefreshToken({
|
|
2085
|
+
state,
|
|
2086
|
+
redirect_uri,
|
|
2087
|
+
resource,
|
|
2088
|
+
timeoutInSeconds,
|
|
2089
|
+
extraHeaders,
|
|
2090
|
+
extraTokenParams
|
|
2091
|
+
}) {
|
|
2092
|
+
var _a;
|
|
2093
|
+
const logger2 = this._logger.create("useRefreshToken");
|
|
2094
|
+
let scope;
|
|
2095
|
+
if (this.settings.refreshTokenAllowedScope === void 0) {
|
|
2096
|
+
scope = state.scope;
|
|
2097
|
+
} else {
|
|
2098
|
+
const allowableScopes = this.settings.refreshTokenAllowedScope.split(" ");
|
|
2099
|
+
const providedScopes = ((_a = state.scope) == null ? void 0 : _a.split(" ")) || [];
|
|
2100
|
+
scope = providedScopes.filter((s) => allowableScopes.includes(s)).join(" ");
|
|
2101
|
+
}
|
|
2102
|
+
if (this.settings.dpop && this.settings.dpop.store) {
|
|
2103
|
+
const dpopProof = await this.getDpopProof(this.settings.dpop.store);
|
|
2104
|
+
extraHeaders = { ...extraHeaders, "DPoP": dpopProof };
|
|
2105
|
+
}
|
|
2106
|
+
let result;
|
|
2107
|
+
try {
|
|
2108
|
+
result = await this._tokenClient.exchangeRefreshToken({
|
|
2109
|
+
refresh_token: state.refresh_token,
|
|
2110
|
+
// provide the (possible filtered) scope list
|
|
2111
|
+
scope,
|
|
2112
|
+
redirect_uri,
|
|
2113
|
+
resource,
|
|
2114
|
+
timeoutInSeconds,
|
|
2115
|
+
extraHeaders,
|
|
2116
|
+
...extraTokenParams
|
|
2117
|
+
});
|
|
2118
|
+
} catch (err) {
|
|
2119
|
+
if (err instanceof ErrorDPoPNonce && this.settings.dpop) {
|
|
2120
|
+
extraHeaders["DPoP"] = await this.getDpopProof(this.settings.dpop.store, err.nonce);
|
|
2121
|
+
result = await this._tokenClient.exchangeRefreshToken({
|
|
2122
|
+
refresh_token: state.refresh_token,
|
|
2123
|
+
// provide the (possible filtered) scope list
|
|
2124
|
+
scope,
|
|
2125
|
+
redirect_uri,
|
|
2126
|
+
resource,
|
|
2127
|
+
timeoutInSeconds,
|
|
2128
|
+
extraHeaders,
|
|
2129
|
+
...extraTokenParams
|
|
2130
|
+
});
|
|
2131
|
+
} else {
|
|
2132
|
+
throw err;
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
const response = new SigninResponse(new URLSearchParams());
|
|
2136
|
+
Object.assign(response, result);
|
|
2137
|
+
logger2.debug("validating response", response);
|
|
2138
|
+
await this._validator.validateRefreshResponse(response, {
|
|
2139
|
+
...state,
|
|
2140
|
+
// override the scope in the state handed over to the validator
|
|
2141
|
+
// so it can set the granted scope to the requested scope in case none is included in the response
|
|
2142
|
+
scope
|
|
2143
|
+
});
|
|
2144
|
+
return response;
|
|
2145
|
+
}
|
|
2146
|
+
async createSignoutRequest({
|
|
2147
|
+
state,
|
|
2148
|
+
id_token_hint,
|
|
2149
|
+
client_id,
|
|
2150
|
+
request_type,
|
|
2151
|
+
url_state,
|
|
2152
|
+
post_logout_redirect_uri = this.settings.post_logout_redirect_uri,
|
|
2153
|
+
extraQueryParams = this.settings.extraQueryParams
|
|
2154
|
+
} = {}) {
|
|
2155
|
+
const logger2 = this._logger.create("createSignoutRequest");
|
|
2156
|
+
const url = await this.metadataService.getEndSessionEndpoint();
|
|
2157
|
+
if (!url) {
|
|
2158
|
+
logger2.throw(new Error("No end session endpoint"));
|
|
2159
|
+
throw null;
|
|
2160
|
+
}
|
|
2161
|
+
logger2.debug("Received end session endpoint", url);
|
|
2162
|
+
if (!client_id && post_logout_redirect_uri && !id_token_hint) {
|
|
2163
|
+
client_id = this.settings.client_id;
|
|
2164
|
+
}
|
|
2165
|
+
const request = new SignoutRequest({
|
|
2166
|
+
url,
|
|
2167
|
+
id_token_hint,
|
|
2168
|
+
client_id,
|
|
2169
|
+
post_logout_redirect_uri,
|
|
2170
|
+
state_data: state,
|
|
2171
|
+
extraQueryParams,
|
|
2172
|
+
request_type,
|
|
2173
|
+
url_state
|
|
2174
|
+
});
|
|
2175
|
+
await this.clearStaleState();
|
|
2176
|
+
const signoutState = request.state;
|
|
2177
|
+
if (signoutState) {
|
|
2178
|
+
logger2.debug("Signout request has state to persist");
|
|
2179
|
+
await this.settings.stateStore.set(signoutState.id, signoutState.toStorageString());
|
|
2180
|
+
}
|
|
2181
|
+
return request;
|
|
2182
|
+
}
|
|
2183
|
+
async readSignoutResponseState(url, removeState = false) {
|
|
2184
|
+
const logger2 = this._logger.create("readSignoutResponseState");
|
|
2185
|
+
const response = new SignoutResponse(UrlUtils.readParams(url, this.settings.response_mode));
|
|
2186
|
+
if (!response.state) {
|
|
2187
|
+
logger2.debug("No state in response");
|
|
2188
|
+
if (response.error) {
|
|
2189
|
+
logger2.warn("Response was error:", response.error);
|
|
2190
|
+
throw new ErrorResponse(response);
|
|
2191
|
+
}
|
|
2192
|
+
return { state: void 0, response };
|
|
2193
|
+
}
|
|
2194
|
+
const storedStateString = await this.settings.stateStore[removeState ? "remove" : "get"](response.state);
|
|
2195
|
+
if (!storedStateString) {
|
|
2196
|
+
logger2.throw(new Error("No matching state found in storage"));
|
|
2197
|
+
throw null;
|
|
2198
|
+
}
|
|
2199
|
+
const state = await State.fromStorageString(storedStateString);
|
|
2200
|
+
return { state, response };
|
|
2201
|
+
}
|
|
2202
|
+
async processSignoutResponse(url) {
|
|
2203
|
+
const logger2 = this._logger.create("processSignoutResponse");
|
|
2204
|
+
const { state, response } = await this.readSignoutResponseState(url, true);
|
|
2205
|
+
if (state) {
|
|
2206
|
+
logger2.debug("Received state from storage; validating response");
|
|
2207
|
+
this._validator.validateSignoutResponse(response, state);
|
|
2208
|
+
} else {
|
|
2209
|
+
logger2.debug("No state from storage; skipping response validation");
|
|
2210
|
+
}
|
|
2211
|
+
return response;
|
|
2212
|
+
}
|
|
2213
|
+
clearStaleState() {
|
|
2214
|
+
this._logger.create("clearStaleState");
|
|
2215
|
+
return State.clearStaleState(this.settings.stateStore, this.settings.staleStateAgeInSeconds);
|
|
2216
|
+
}
|
|
2217
|
+
async revokeToken(token, type) {
|
|
2218
|
+
this._logger.create("revokeToken");
|
|
2219
|
+
return await this._tokenClient.revoke({
|
|
2220
|
+
token,
|
|
2221
|
+
token_type_hint: type
|
|
2222
|
+
});
|
|
2223
|
+
}
|
|
2224
|
+
};
|
|
2225
|
+
|
|
2226
|
+
// src/SessionMonitor.ts
|
|
2227
|
+
var SessionMonitor = class {
|
|
2228
|
+
constructor(_userManager) {
|
|
2229
|
+
this._userManager = _userManager;
|
|
2230
|
+
this._logger = new Logger("SessionMonitor");
|
|
2231
|
+
this._start = async (user) => {
|
|
2232
|
+
const session_state = user.session_state;
|
|
2233
|
+
if (!session_state) {
|
|
2234
|
+
return;
|
|
2235
|
+
}
|
|
2236
|
+
const logger2 = this._logger.create("_start");
|
|
2237
|
+
if (user.profile) {
|
|
2238
|
+
this._sub = user.profile.sub;
|
|
2239
|
+
logger2.debug("session_state", session_state, ", sub", this._sub);
|
|
2240
|
+
} else {
|
|
2241
|
+
this._sub = void 0;
|
|
2242
|
+
logger2.debug("session_state", session_state, ", anonymous user");
|
|
2243
|
+
}
|
|
2244
|
+
if (this._checkSessionIFrame) {
|
|
2245
|
+
this._checkSessionIFrame.start(session_state);
|
|
2246
|
+
return;
|
|
2247
|
+
}
|
|
2248
|
+
try {
|
|
2249
|
+
const url = await this._userManager.metadataService.getCheckSessionIframe();
|
|
2250
|
+
if (url) {
|
|
2251
|
+
logger2.debug("initializing check session iframe");
|
|
2252
|
+
const client_id = this._userManager.settings.client_id;
|
|
2253
|
+
const intervalInSeconds = this._userManager.settings.checkSessionIntervalInSeconds;
|
|
2254
|
+
const stopOnError = this._userManager.settings.stopCheckSessionOnError;
|
|
2255
|
+
const checkSessionIFrame = new CheckSessionIFrame(this._callback, client_id, url, intervalInSeconds, stopOnError);
|
|
2256
|
+
await checkSessionIFrame.load();
|
|
2257
|
+
this._checkSessionIFrame = checkSessionIFrame;
|
|
2258
|
+
checkSessionIFrame.start(session_state);
|
|
2259
|
+
} else {
|
|
2260
|
+
logger2.warn("no check session iframe found in the metadata");
|
|
2261
|
+
}
|
|
2262
|
+
} catch (err) {
|
|
2263
|
+
logger2.error("Error from getCheckSessionIframe:", err instanceof Error ? err.message : err);
|
|
2264
|
+
}
|
|
2265
|
+
};
|
|
2266
|
+
this._stop = () => {
|
|
2267
|
+
const logger2 = this._logger.create("_stop");
|
|
2268
|
+
this._sub = void 0;
|
|
2269
|
+
if (this._checkSessionIFrame) {
|
|
2270
|
+
this._checkSessionIFrame.stop();
|
|
2271
|
+
}
|
|
2272
|
+
if (this._userManager.settings.monitorAnonymousSession) {
|
|
2273
|
+
const timerHandle = setInterval(async () => {
|
|
2274
|
+
clearInterval(timerHandle);
|
|
2275
|
+
try {
|
|
2276
|
+
const session = await this._userManager.querySessionStatus();
|
|
2277
|
+
if (session) {
|
|
2278
|
+
const tmpUser = {
|
|
2279
|
+
session_state: session.session_state,
|
|
2280
|
+
profile: session.sub ? {
|
|
2281
|
+
sub: session.sub
|
|
2282
|
+
} : null
|
|
2283
|
+
};
|
|
2284
|
+
void this._start(tmpUser);
|
|
2285
|
+
}
|
|
2286
|
+
} catch (err) {
|
|
2287
|
+
logger2.error("error from querySessionStatus", err instanceof Error ? err.message : err);
|
|
2288
|
+
}
|
|
2289
|
+
}, 1e3);
|
|
2290
|
+
}
|
|
2291
|
+
};
|
|
2292
|
+
this._callback = async () => {
|
|
2293
|
+
const logger2 = this._logger.create("_callback");
|
|
2294
|
+
try {
|
|
2295
|
+
const session = await this._userManager.querySessionStatus();
|
|
2296
|
+
let raiseEvent = true;
|
|
2297
|
+
if (session && this._checkSessionIFrame) {
|
|
2298
|
+
if (session.sub === this._sub) {
|
|
2299
|
+
raiseEvent = false;
|
|
2300
|
+
this._checkSessionIFrame.start(session.session_state);
|
|
2301
|
+
logger2.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state", session.session_state);
|
|
2302
|
+
await this._userManager.events._raiseUserSessionChanged();
|
|
2303
|
+
} else {
|
|
2304
|
+
logger2.debug("different subject signed into OP", session.sub);
|
|
2305
|
+
}
|
|
2306
|
+
} else {
|
|
2307
|
+
logger2.debug("subject no longer signed into OP");
|
|
2308
|
+
}
|
|
2309
|
+
if (raiseEvent) {
|
|
2310
|
+
if (this._sub) {
|
|
2311
|
+
await this._userManager.events._raiseUserSignedOut();
|
|
2312
|
+
} else {
|
|
2313
|
+
await this._userManager.events._raiseUserSignedIn();
|
|
2314
|
+
}
|
|
2315
|
+
} else {
|
|
2316
|
+
logger2.debug("no change in session detected, no event to raise");
|
|
2317
|
+
}
|
|
2318
|
+
} catch (err) {
|
|
2319
|
+
if (this._sub) {
|
|
2320
|
+
logger2.debug("Error calling queryCurrentSigninSession; raising signed out event", err);
|
|
2321
|
+
await this._userManager.events._raiseUserSignedOut();
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
};
|
|
2325
|
+
if (!_userManager) {
|
|
2326
|
+
this._logger.throw(new Error("No user manager passed"));
|
|
2327
|
+
}
|
|
2328
|
+
this._userManager.events.addUserLoaded(this._start);
|
|
2329
|
+
this._userManager.events.addUserUnloaded(this._stop);
|
|
2330
|
+
this._init().catch((err) => {
|
|
2331
|
+
this._logger.error(err);
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
async _init() {
|
|
2335
|
+
this._logger.create("_init");
|
|
2336
|
+
const user = await this._userManager.getUser();
|
|
2337
|
+
if (user) {
|
|
2338
|
+
void this._start(user);
|
|
2339
|
+
} else if (this._userManager.settings.monitorAnonymousSession) {
|
|
2340
|
+
const session = await this._userManager.querySessionStatus();
|
|
2341
|
+
if (session) {
|
|
2342
|
+
const tmpUser = {
|
|
2343
|
+
session_state: session.session_state,
|
|
2344
|
+
profile: session.sub ? {
|
|
2345
|
+
sub: session.sub
|
|
2346
|
+
} : null
|
|
2347
|
+
};
|
|
2348
|
+
void this._start(tmpUser);
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
};
|
|
2353
|
+
|
|
2354
|
+
// src/User.ts
|
|
2355
|
+
var User = class _User {
|
|
2356
|
+
constructor(args) {
|
|
2357
|
+
var _a;
|
|
2358
|
+
this.id_token = args.id_token;
|
|
2359
|
+
this.session_state = (_a = args.session_state) != null ? _a : null;
|
|
2360
|
+
this.access_token = args.access_token;
|
|
2361
|
+
this.refresh_token = args.refresh_token;
|
|
2362
|
+
this.token_type = args.token_type;
|
|
2363
|
+
this.scope = args.scope;
|
|
2364
|
+
this.profile = args.profile;
|
|
2365
|
+
this.expires_at = args.expires_at;
|
|
2366
|
+
this.state = args.userState;
|
|
2367
|
+
this.url_state = args.url_state;
|
|
2368
|
+
}
|
|
2369
|
+
/** Computed number of seconds the access token has remaining. */
|
|
2370
|
+
get expires_in() {
|
|
2371
|
+
if (this.expires_at === void 0) {
|
|
2372
|
+
return void 0;
|
|
2373
|
+
}
|
|
2374
|
+
return this.expires_at - Timer.getEpochTime();
|
|
2375
|
+
}
|
|
2376
|
+
set expires_in(value) {
|
|
2377
|
+
if (value !== void 0) {
|
|
2378
|
+
this.expires_at = Math.floor(value) + Timer.getEpochTime();
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
/** Computed value indicating if the access token is expired. */
|
|
2382
|
+
get expired() {
|
|
2383
|
+
const expires_in = this.expires_in;
|
|
2384
|
+
if (expires_in === void 0) {
|
|
2385
|
+
return void 0;
|
|
2386
|
+
}
|
|
2387
|
+
return expires_in <= 0;
|
|
2388
|
+
}
|
|
2389
|
+
/** Array representing the parsed values from the `scope`. */
|
|
2390
|
+
get scopes() {
|
|
2391
|
+
var _a, _b;
|
|
2392
|
+
return (_b = (_a = this.scope) == null ? void 0 : _a.split(" ")) != null ? _b : [];
|
|
2393
|
+
}
|
|
2394
|
+
toStorageString() {
|
|
2395
|
+
new Logger("User").create("toStorageString");
|
|
2396
|
+
return JSON.stringify({
|
|
2397
|
+
id_token: this.id_token,
|
|
2398
|
+
session_state: this.session_state,
|
|
2399
|
+
access_token: this.access_token,
|
|
2400
|
+
refresh_token: this.refresh_token,
|
|
2401
|
+
token_type: this.token_type,
|
|
2402
|
+
scope: this.scope,
|
|
2403
|
+
profile: this.profile,
|
|
2404
|
+
expires_at: this.expires_at
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2407
|
+
static fromStorageString(storageString) {
|
|
2408
|
+
Logger.createStatic("User", "fromStorageString");
|
|
2409
|
+
return new _User(JSON.parse(storageString));
|
|
2410
|
+
}
|
|
2411
|
+
};
|
|
2412
|
+
|
|
2413
|
+
// src/navigators/AbstractChildWindow.ts
|
|
2414
|
+
var messageSource = "oidc-client";
|
|
2415
|
+
var AbstractChildWindow = class {
|
|
2416
|
+
constructor() {
|
|
2417
|
+
this._abort = new Event("Window navigation aborted");
|
|
2418
|
+
this._disposeHandlers = /* @__PURE__ */ new Set();
|
|
2419
|
+
this._window = null;
|
|
2420
|
+
}
|
|
2421
|
+
async navigate(params) {
|
|
2422
|
+
const logger2 = this._logger.create("navigate");
|
|
2423
|
+
if (!this._window) {
|
|
2424
|
+
throw new Error("Attempted to navigate on a disposed window");
|
|
2425
|
+
}
|
|
2426
|
+
logger2.debug("setting URL in window");
|
|
2427
|
+
this._window.location.replace(params.url);
|
|
2428
|
+
const { url, keepOpen } = await new Promise((resolve, reject) => {
|
|
2429
|
+
const listener = (e) => {
|
|
2430
|
+
var _a;
|
|
2431
|
+
const data = e.data;
|
|
2432
|
+
const origin = (_a = params.scriptOrigin) != null ? _a : window.location.origin;
|
|
2433
|
+
if (e.origin !== origin || (data == null ? void 0 : data.source) !== messageSource) {
|
|
2434
|
+
return;
|
|
2435
|
+
}
|
|
2436
|
+
try {
|
|
2437
|
+
const state = UrlUtils.readParams(data.url, params.response_mode).get("state");
|
|
2438
|
+
if (!state) {
|
|
2439
|
+
logger2.warn("no state found in response url");
|
|
2440
|
+
}
|
|
2441
|
+
if (e.source !== this._window && state !== params.state) {
|
|
2442
|
+
return;
|
|
2443
|
+
}
|
|
2444
|
+
} catch {
|
|
2445
|
+
this._dispose();
|
|
2446
|
+
reject(new Error("Invalid response from window"));
|
|
2447
|
+
}
|
|
2448
|
+
resolve(data);
|
|
2449
|
+
};
|
|
2450
|
+
window.addEventListener("message", listener, false);
|
|
2451
|
+
this._disposeHandlers.add(() => window.removeEventListener("message", listener, false));
|
|
2452
|
+
const channel = new BroadcastChannel(`oidc-client-popup-${params.state}`);
|
|
2453
|
+
channel.addEventListener("message", listener, false);
|
|
2454
|
+
this._disposeHandlers.add(() => channel.close());
|
|
2455
|
+
this._disposeHandlers.add(this._abort.addHandler((reason) => {
|
|
2456
|
+
this._dispose();
|
|
2457
|
+
reject(reason);
|
|
2458
|
+
}));
|
|
2459
|
+
});
|
|
2460
|
+
logger2.debug("got response from window");
|
|
2461
|
+
this._dispose();
|
|
2462
|
+
if (!keepOpen) {
|
|
2463
|
+
this.close();
|
|
2464
|
+
}
|
|
2465
|
+
return { url };
|
|
2466
|
+
}
|
|
2467
|
+
_dispose() {
|
|
2468
|
+
this._logger.create("_dispose");
|
|
2469
|
+
for (const dispose of this._disposeHandlers) {
|
|
2470
|
+
dispose();
|
|
2471
|
+
}
|
|
2472
|
+
this._disposeHandlers.clear();
|
|
2473
|
+
}
|
|
2474
|
+
static _notifyParent(parent, url, keepOpen = false, targetOrigin = window.location.origin) {
|
|
2475
|
+
const msgData = {
|
|
2476
|
+
source: messageSource,
|
|
2477
|
+
url,
|
|
2478
|
+
keepOpen
|
|
2479
|
+
};
|
|
2480
|
+
const logger2 = new Logger("_notifyParent");
|
|
2481
|
+
if (parent) {
|
|
2482
|
+
logger2.debug("With parent. Using parent.postMessage.");
|
|
2483
|
+
parent.postMessage(msgData, targetOrigin);
|
|
2484
|
+
} else {
|
|
2485
|
+
logger2.debug("No parent. Using BroadcastChannel.");
|
|
2486
|
+
const state = new URL(url).searchParams.get("state");
|
|
2487
|
+
if (!state) {
|
|
2488
|
+
throw new Error("No parent and no state in URL. Can't complete notification.");
|
|
2489
|
+
}
|
|
2490
|
+
const channel = new BroadcastChannel(`oidc-client-popup-${state}`);
|
|
2491
|
+
channel.postMessage(msgData);
|
|
2492
|
+
channel.close();
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
};
|
|
2496
|
+
|
|
2497
|
+
// src/UserManagerSettings.ts
|
|
2498
|
+
var DefaultPopupWindowFeatures = {
|
|
2499
|
+
location: false,
|
|
2500
|
+
toolbar: false,
|
|
2501
|
+
height: 640,
|
|
2502
|
+
closePopupWindowAfterInSeconds: -1
|
|
2503
|
+
};
|
|
2504
|
+
var DefaultPopupTarget = "_blank";
|
|
2505
|
+
var DefaultAccessTokenExpiringNotificationTimeInSeconds = 60;
|
|
2506
|
+
var DefaultCheckSessionIntervalInSeconds = 2;
|
|
2507
|
+
var DefaultSilentRequestTimeoutInSeconds = 10;
|
|
2508
|
+
var UserManagerSettingsStore = class extends OidcClientSettingsStore {
|
|
2509
|
+
constructor(args) {
|
|
2510
|
+
const {
|
|
2511
|
+
popup_redirect_uri = args.redirect_uri,
|
|
2512
|
+
popup_post_logout_redirect_uri = args.post_logout_redirect_uri,
|
|
2513
|
+
popupWindowFeatures = DefaultPopupWindowFeatures,
|
|
2514
|
+
popupWindowTarget = DefaultPopupTarget,
|
|
2515
|
+
redirectMethod = "assign",
|
|
2516
|
+
redirectTarget = "self",
|
|
2517
|
+
iframeNotifyParentOrigin = args.iframeNotifyParentOrigin,
|
|
2518
|
+
iframeScriptOrigin = args.iframeScriptOrigin,
|
|
2519
|
+
requestTimeoutInSeconds,
|
|
2520
|
+
silent_redirect_uri = args.redirect_uri,
|
|
2521
|
+
silentRequestTimeoutInSeconds,
|
|
2522
|
+
automaticSilentRenew = true,
|
|
2523
|
+
validateSubOnSilentRenew = true,
|
|
2524
|
+
includeIdTokenInSilentRenew = false,
|
|
2525
|
+
monitorSession = false,
|
|
2526
|
+
monitorAnonymousSession = false,
|
|
2527
|
+
checkSessionIntervalInSeconds = DefaultCheckSessionIntervalInSeconds,
|
|
2528
|
+
query_status_response_type = "code",
|
|
2529
|
+
stopCheckSessionOnError = true,
|
|
2530
|
+
revokeTokenTypes = ["access_token", "refresh_token"],
|
|
2531
|
+
revokeTokensOnSignout = false,
|
|
2532
|
+
includeIdTokenInSilentSignout = false,
|
|
2533
|
+
accessTokenExpiringNotificationTimeInSeconds = DefaultAccessTokenExpiringNotificationTimeInSeconds,
|
|
2534
|
+
maxSilentRenewTimeoutRetries,
|
|
2535
|
+
userStore
|
|
2536
|
+
} = args;
|
|
2537
|
+
super(args);
|
|
2538
|
+
this.popup_redirect_uri = popup_redirect_uri;
|
|
2539
|
+
this.popup_post_logout_redirect_uri = popup_post_logout_redirect_uri;
|
|
2540
|
+
this.popupWindowFeatures = popupWindowFeatures;
|
|
2541
|
+
this.popupWindowTarget = popupWindowTarget;
|
|
2542
|
+
this.redirectMethod = redirectMethod;
|
|
2543
|
+
this.redirectTarget = redirectTarget;
|
|
2544
|
+
this.iframeNotifyParentOrigin = iframeNotifyParentOrigin;
|
|
2545
|
+
this.iframeScriptOrigin = iframeScriptOrigin;
|
|
2546
|
+
this.silent_redirect_uri = silent_redirect_uri;
|
|
2547
|
+
this.silentRequestTimeoutInSeconds = silentRequestTimeoutInSeconds || requestTimeoutInSeconds || DefaultSilentRequestTimeoutInSeconds;
|
|
2548
|
+
this.automaticSilentRenew = automaticSilentRenew;
|
|
2549
|
+
this.validateSubOnSilentRenew = validateSubOnSilentRenew;
|
|
2550
|
+
this.includeIdTokenInSilentRenew = includeIdTokenInSilentRenew;
|
|
2551
|
+
this.monitorSession = monitorSession;
|
|
2552
|
+
this.monitorAnonymousSession = monitorAnonymousSession;
|
|
2553
|
+
this.checkSessionIntervalInSeconds = checkSessionIntervalInSeconds;
|
|
2554
|
+
this.stopCheckSessionOnError = stopCheckSessionOnError;
|
|
2555
|
+
this.query_status_response_type = query_status_response_type;
|
|
2556
|
+
this.revokeTokenTypes = revokeTokenTypes;
|
|
2557
|
+
this.revokeTokensOnSignout = revokeTokensOnSignout;
|
|
2558
|
+
this.includeIdTokenInSilentSignout = includeIdTokenInSilentSignout;
|
|
2559
|
+
this.accessTokenExpiringNotificationTimeInSeconds = accessTokenExpiringNotificationTimeInSeconds;
|
|
2560
|
+
this.maxSilentRenewTimeoutRetries = maxSilentRenewTimeoutRetries;
|
|
2561
|
+
if (userStore) {
|
|
2562
|
+
this.userStore = userStore;
|
|
2563
|
+
} else {
|
|
2564
|
+
const store = typeof window !== "undefined" ? window.sessionStorage : new InMemoryWebStorage();
|
|
2565
|
+
this.userStore = new WebStorageStateStore({ store });
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
};
|
|
2569
|
+
|
|
2570
|
+
// src/navigators/IFrameWindow.ts
|
|
2571
|
+
var IFrameWindow = class _IFrameWindow extends AbstractChildWindow {
|
|
2572
|
+
constructor({
|
|
2573
|
+
silentRequestTimeoutInSeconds = DefaultSilentRequestTimeoutInSeconds
|
|
2574
|
+
}) {
|
|
2575
|
+
super();
|
|
2576
|
+
this._logger = new Logger("IFrameWindow");
|
|
2577
|
+
this._timeoutInSeconds = silentRequestTimeoutInSeconds;
|
|
2578
|
+
this._frame = _IFrameWindow.createHiddenIframe();
|
|
2579
|
+
this._window = this._frame.contentWindow;
|
|
2580
|
+
}
|
|
2581
|
+
static createHiddenIframe() {
|
|
2582
|
+
const iframe = window.document.createElement("iframe");
|
|
2583
|
+
iframe.style.visibility = "hidden";
|
|
2584
|
+
iframe.style.position = "fixed";
|
|
2585
|
+
iframe.style.left = "-1000px";
|
|
2586
|
+
iframe.style.top = "0";
|
|
2587
|
+
iframe.width = "0";
|
|
2588
|
+
iframe.height = "0";
|
|
2589
|
+
window.document.body.appendChild(iframe);
|
|
2590
|
+
return iframe;
|
|
2591
|
+
}
|
|
2592
|
+
async navigate(params) {
|
|
2593
|
+
this._logger.debug("navigate: Using timeout of:", this._timeoutInSeconds);
|
|
2594
|
+
const timer = setTimeout(() => void this._abort.raise(new ErrorTimeout("IFrame timed out without a response")), this._timeoutInSeconds * 1e3);
|
|
2595
|
+
this._disposeHandlers.add(() => clearTimeout(timer));
|
|
2596
|
+
return await super.navigate(params);
|
|
2597
|
+
}
|
|
2598
|
+
close() {
|
|
2599
|
+
var _a;
|
|
2600
|
+
if (this._frame) {
|
|
2601
|
+
if (this._frame.parentNode) {
|
|
2602
|
+
this._frame.addEventListener("load", (ev) => {
|
|
2603
|
+
var _a2;
|
|
2604
|
+
const frame = ev.target;
|
|
2605
|
+
(_a2 = frame.parentNode) == null ? void 0 : _a2.removeChild(frame);
|
|
2606
|
+
void this._abort.raise(new Error("IFrame removed from DOM"));
|
|
2607
|
+
}, true);
|
|
2608
|
+
(_a = this._frame.contentWindow) == null ? void 0 : _a.location.replace("about:blank");
|
|
2609
|
+
}
|
|
2610
|
+
this._frame = null;
|
|
2611
|
+
}
|
|
2612
|
+
this._window = null;
|
|
2613
|
+
}
|
|
2614
|
+
static notifyParent(url, targetOrigin) {
|
|
2615
|
+
return super._notifyParent(window.parent, url, false, targetOrigin);
|
|
2616
|
+
}
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2619
|
+
// src/navigators/IFrameNavigator.ts
|
|
2620
|
+
var IFrameNavigator = class {
|
|
2621
|
+
constructor(_settings) {
|
|
2622
|
+
this._settings = _settings;
|
|
2623
|
+
this._logger = new Logger("IFrameNavigator");
|
|
2624
|
+
}
|
|
2625
|
+
async prepare({
|
|
2626
|
+
silentRequestTimeoutInSeconds = this._settings.silentRequestTimeoutInSeconds
|
|
2627
|
+
}) {
|
|
2628
|
+
return new IFrameWindow({ silentRequestTimeoutInSeconds });
|
|
2629
|
+
}
|
|
2630
|
+
async callback(url) {
|
|
2631
|
+
this._logger.create("callback");
|
|
2632
|
+
IFrameWindow.notifyParent(url, this._settings.iframeNotifyParentOrigin);
|
|
2633
|
+
}
|
|
2634
|
+
};
|
|
2635
|
+
|
|
2636
|
+
// src/navigators/PopupWindow.ts
|
|
2637
|
+
var checkForPopupClosedInterval = 500;
|
|
2638
|
+
var second = 1e3;
|
|
2639
|
+
var PopupWindow = class extends AbstractChildWindow {
|
|
2640
|
+
constructor({
|
|
2641
|
+
popupWindowTarget = DefaultPopupTarget,
|
|
2642
|
+
popupWindowFeatures = {},
|
|
2643
|
+
popupSignal,
|
|
2644
|
+
popupAbortOnClose
|
|
2645
|
+
}) {
|
|
2646
|
+
super();
|
|
2647
|
+
this._logger = new Logger("PopupWindow");
|
|
2648
|
+
const centeredPopup = PopupUtils.center({ ...DefaultPopupWindowFeatures, ...popupWindowFeatures });
|
|
2649
|
+
this._window = window.open(void 0, popupWindowTarget, PopupUtils.serialize(centeredPopup));
|
|
2650
|
+
this.abortOnClose = Boolean(popupAbortOnClose);
|
|
2651
|
+
if (popupSignal) {
|
|
2652
|
+
popupSignal.addEventListener("abort", () => {
|
|
2653
|
+
var _a;
|
|
2654
|
+
void this._abort.raise(new Error((_a = popupSignal.reason) != null ? _a : "Popup aborted"));
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
if (popupWindowFeatures.closePopupWindowAfterInSeconds && popupWindowFeatures.closePopupWindowAfterInSeconds > 0) {
|
|
2658
|
+
setTimeout(() => {
|
|
2659
|
+
if (!this._window || typeof this._window.closed !== "boolean" || this._window.closed) {
|
|
2660
|
+
void this._abort.raise(new Error("Popup blocked by user"));
|
|
2661
|
+
return;
|
|
2662
|
+
}
|
|
2663
|
+
this.close();
|
|
2664
|
+
}, popupWindowFeatures.closePopupWindowAfterInSeconds * second);
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
async navigate(params) {
|
|
2668
|
+
var _a;
|
|
2669
|
+
(_a = this._window) == null ? void 0 : _a.focus();
|
|
2670
|
+
const popupClosedInterval = setInterval(() => {
|
|
2671
|
+
if (!this._window || this._window.closed) {
|
|
2672
|
+
this._logger.debug("Popup closed by user or isolated by redirect");
|
|
2673
|
+
clearPopupClosedInterval();
|
|
2674
|
+
this._disposeHandlers.delete(clearPopupClosedInterval);
|
|
2675
|
+
if (this.abortOnClose) {
|
|
2676
|
+
void this._abort.raise(new Error("Popup closed by user"));
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
}, checkForPopupClosedInterval);
|
|
2680
|
+
const clearPopupClosedInterval = () => clearInterval(popupClosedInterval);
|
|
2681
|
+
this._disposeHandlers.add(clearPopupClosedInterval);
|
|
2682
|
+
return await super.navigate(params);
|
|
2683
|
+
}
|
|
2684
|
+
close() {
|
|
2685
|
+
if (this._window) {
|
|
2686
|
+
if (!this._window.closed) {
|
|
2687
|
+
this._window.close();
|
|
2688
|
+
void this._abort.raise(new Error("Popup closed"));
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
this._window = null;
|
|
2692
|
+
}
|
|
2693
|
+
static notifyOpener(url, keepOpen) {
|
|
2694
|
+
super._notifyParent(window.opener, url, keepOpen);
|
|
2695
|
+
if (!keepOpen && !window.opener) {
|
|
2696
|
+
window.close();
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
};
|
|
2700
|
+
|
|
2701
|
+
// src/navigators/PopupNavigator.ts
|
|
2702
|
+
var PopupNavigator = class {
|
|
2703
|
+
constructor(_settings) {
|
|
2704
|
+
this._settings = _settings;
|
|
2705
|
+
this._logger = new Logger("PopupNavigator");
|
|
2706
|
+
}
|
|
2707
|
+
async prepare({
|
|
2708
|
+
popupWindowFeatures = this._settings.popupWindowFeatures,
|
|
2709
|
+
popupWindowTarget = this._settings.popupWindowTarget,
|
|
2710
|
+
popupSignal,
|
|
2711
|
+
popupAbortOnClose
|
|
2712
|
+
}) {
|
|
2713
|
+
return new PopupWindow({
|
|
2714
|
+
popupWindowFeatures,
|
|
2715
|
+
popupWindowTarget,
|
|
2716
|
+
popupSignal,
|
|
2717
|
+
popupAbortOnClose
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
async callback(url, { keepOpen = false }) {
|
|
2721
|
+
this._logger.create("callback");
|
|
2722
|
+
PopupWindow.notifyOpener(url, keepOpen);
|
|
2723
|
+
}
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
// src/navigators/RedirectNavigator.ts
|
|
2727
|
+
var RedirectNavigator = class {
|
|
2728
|
+
constructor(_settings) {
|
|
2729
|
+
this._settings = _settings;
|
|
2730
|
+
this._logger = new Logger("RedirectNavigator");
|
|
2731
|
+
}
|
|
2732
|
+
async prepare({
|
|
2733
|
+
redirectMethod = this._settings.redirectMethod,
|
|
2734
|
+
redirectTarget = this._settings.redirectTarget
|
|
2735
|
+
}) {
|
|
2736
|
+
var _a;
|
|
2737
|
+
this._logger.create("prepare");
|
|
2738
|
+
let targetWindow = window.self;
|
|
2739
|
+
if (redirectTarget === "top") {
|
|
2740
|
+
targetWindow = (_a = window.top) != null ? _a : window.self;
|
|
2741
|
+
}
|
|
2742
|
+
const redirect = targetWindow.location[redirectMethod].bind(targetWindow.location);
|
|
2743
|
+
let abort;
|
|
2744
|
+
return {
|
|
2745
|
+
navigate: async (params) => {
|
|
2746
|
+
this._logger.create("navigate");
|
|
2747
|
+
const promise = new Promise((resolve, reject) => {
|
|
2748
|
+
abort = reject;
|
|
2749
|
+
window.addEventListener("pageshow", () => resolve(window.location.href));
|
|
2750
|
+
redirect(params.url);
|
|
2751
|
+
});
|
|
2752
|
+
return await promise;
|
|
2753
|
+
},
|
|
2754
|
+
close: () => {
|
|
2755
|
+
this._logger.create("close");
|
|
2756
|
+
abort == null ? void 0 : abort(new Error("Redirect aborted"));
|
|
2757
|
+
targetWindow.stop();
|
|
2758
|
+
}
|
|
2759
|
+
};
|
|
2760
|
+
}
|
|
2761
|
+
async callback() {
|
|
2762
|
+
return;
|
|
2763
|
+
}
|
|
2764
|
+
};
|
|
2765
|
+
|
|
2766
|
+
// src/UserManagerEvents.ts
|
|
2767
|
+
var UserManagerEvents = class extends AccessTokenEvents {
|
|
2768
|
+
constructor(settings) {
|
|
2769
|
+
super({ expiringNotificationTimeInSeconds: settings.accessTokenExpiringNotificationTimeInSeconds });
|
|
2770
|
+
this._logger = new Logger("UserManagerEvents");
|
|
2771
|
+
this._userLoaded = new Event("User loaded");
|
|
2772
|
+
this._userUnloaded = new Event("User unloaded");
|
|
2773
|
+
this._silentRenewError = new Event("Silent renew error");
|
|
2774
|
+
this._userSignedIn = new Event("User signed in");
|
|
2775
|
+
this._userSignedOut = new Event("User signed out");
|
|
2776
|
+
this._userSessionChanged = new Event("User session changed");
|
|
2777
|
+
}
|
|
2778
|
+
async load(user, raiseEvent = true) {
|
|
2779
|
+
await super.load(user);
|
|
2780
|
+
if (raiseEvent) {
|
|
2781
|
+
await this._userLoaded.raise(user);
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
async unload() {
|
|
2785
|
+
await super.unload();
|
|
2786
|
+
await this._userUnloaded.raise();
|
|
2787
|
+
}
|
|
2788
|
+
/**
|
|
2789
|
+
* Add callback: Raised when a user session has been established (or re-established).
|
|
2790
|
+
*/
|
|
2791
|
+
addUserLoaded(cb) {
|
|
2792
|
+
return this._userLoaded.addHandler(cb);
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
* Remove callback: Raised when a user session has been established (or re-established).
|
|
2796
|
+
*/
|
|
2797
|
+
removeUserLoaded(cb) {
|
|
2798
|
+
return this._userLoaded.removeHandler(cb);
|
|
2799
|
+
}
|
|
2800
|
+
/**
|
|
2801
|
+
* Add callback: Raised when a user session has been terminated.
|
|
2802
|
+
*/
|
|
2803
|
+
addUserUnloaded(cb) {
|
|
2804
|
+
return this._userUnloaded.addHandler(cb);
|
|
2805
|
+
}
|
|
2806
|
+
/**
|
|
2807
|
+
* Remove callback: Raised when a user session has been terminated.
|
|
2808
|
+
*/
|
|
2809
|
+
removeUserUnloaded(cb) {
|
|
2810
|
+
return this._userUnloaded.removeHandler(cb);
|
|
2811
|
+
}
|
|
2812
|
+
/**
|
|
2813
|
+
* Add callback: Raised when the automatic silent renew has failed.
|
|
2814
|
+
*/
|
|
2815
|
+
addSilentRenewError(cb) {
|
|
2816
|
+
return this._silentRenewError.addHandler(cb);
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* Remove callback: Raised when the automatic silent renew has failed.
|
|
2820
|
+
*/
|
|
2821
|
+
removeSilentRenewError(cb) {
|
|
2822
|
+
return this._silentRenewError.removeHandler(cb);
|
|
2823
|
+
}
|
|
2824
|
+
/**
|
|
2825
|
+
* @internal
|
|
2826
|
+
*/
|
|
2827
|
+
async _raiseSilentRenewError(e) {
|
|
2828
|
+
await this._silentRenewError.raise(e);
|
|
2829
|
+
}
|
|
2830
|
+
/**
|
|
2831
|
+
* Add callback: Raised when the user is signed in (when `monitorSession` is set).
|
|
2832
|
+
* @see {@link UserManagerSettings.monitorSession}
|
|
2833
|
+
*/
|
|
2834
|
+
addUserSignedIn(cb) {
|
|
2835
|
+
return this._userSignedIn.addHandler(cb);
|
|
2836
|
+
}
|
|
2837
|
+
/**
|
|
2838
|
+
* Remove callback: Raised when the user is signed in (when `monitorSession` is set).
|
|
2839
|
+
*/
|
|
2840
|
+
removeUserSignedIn(cb) {
|
|
2841
|
+
this._userSignedIn.removeHandler(cb);
|
|
2842
|
+
}
|
|
2843
|
+
/**
|
|
2844
|
+
* @internal
|
|
2845
|
+
*/
|
|
2846
|
+
async _raiseUserSignedIn() {
|
|
2847
|
+
await this._userSignedIn.raise();
|
|
2848
|
+
}
|
|
2849
|
+
/**
|
|
2850
|
+
* Add callback: Raised when the user's sign-in status at the OP has changed (when `monitorSession` is set).
|
|
2851
|
+
* @see {@link UserManagerSettings.monitorSession}
|
|
2852
|
+
*/
|
|
2853
|
+
addUserSignedOut(cb) {
|
|
2854
|
+
return this._userSignedOut.addHandler(cb);
|
|
2855
|
+
}
|
|
2856
|
+
/**
|
|
2857
|
+
* Remove callback: Raised when the user's sign-in status at the OP has changed (when `monitorSession` is set).
|
|
2858
|
+
*/
|
|
2859
|
+
removeUserSignedOut(cb) {
|
|
2860
|
+
this._userSignedOut.removeHandler(cb);
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* @internal
|
|
2864
|
+
*/
|
|
2865
|
+
async _raiseUserSignedOut() {
|
|
2866
|
+
await this._userSignedOut.raise();
|
|
2867
|
+
}
|
|
2868
|
+
/**
|
|
2869
|
+
* Add callback: Raised when the user session changed (when `monitorSession` is set).
|
|
2870
|
+
* @see {@link UserManagerSettings.monitorSession}
|
|
2871
|
+
*/
|
|
2872
|
+
addUserSessionChanged(cb) {
|
|
2873
|
+
return this._userSessionChanged.addHandler(cb);
|
|
2874
|
+
}
|
|
2875
|
+
/**
|
|
2876
|
+
* Remove callback: Raised when the user session changed (when `monitorSession` is set).
|
|
2877
|
+
*/
|
|
2878
|
+
removeUserSessionChanged(cb) {
|
|
2879
|
+
this._userSessionChanged.removeHandler(cb);
|
|
2880
|
+
}
|
|
2881
|
+
/**
|
|
2882
|
+
* @internal
|
|
2883
|
+
*/
|
|
2884
|
+
async _raiseUserSessionChanged() {
|
|
2885
|
+
await this._userSessionChanged.raise();
|
|
2886
|
+
}
|
|
2887
|
+
};
|
|
2888
|
+
|
|
2889
|
+
// src/SilentRenewService.ts
|
|
2890
|
+
var SilentRenewService = class {
|
|
2891
|
+
constructor(_userManager) {
|
|
2892
|
+
this._userManager = _userManager;
|
|
2893
|
+
this._logger = new Logger("SilentRenewService");
|
|
2894
|
+
this._isStarted = false;
|
|
2895
|
+
this._retryTimer = new Timer("Retry Silent Renew");
|
|
2896
|
+
this._timeoutRetryCount = 0;
|
|
2897
|
+
this._tokenExpiring = async () => {
|
|
2898
|
+
const logger2 = this._logger.create("_tokenExpiring");
|
|
2899
|
+
try {
|
|
2900
|
+
await this._userManager.signinSilent();
|
|
2901
|
+
this._timeoutRetryCount = 0;
|
|
2902
|
+
logger2.debug("silent token renewal successful");
|
|
2903
|
+
} catch (err) {
|
|
2904
|
+
if (err instanceof ErrorTimeout) {
|
|
2905
|
+
this._timeoutRetryCount++;
|
|
2906
|
+
const maxRetries = this._userManager.settings.maxSilentRenewTimeoutRetries;
|
|
2907
|
+
const hasReachedLimit = maxRetries !== void 0 && this._timeoutRetryCount > maxRetries;
|
|
2908
|
+
if (hasReachedLimit) {
|
|
2909
|
+
logger2.error(
|
|
2910
|
+
`Timeout retry limit reached (${this._timeoutRetryCount} > ${maxRetries}), raising silentRenewError:`,
|
|
2911
|
+
err
|
|
2912
|
+
);
|
|
2913
|
+
this._timeoutRetryCount = 0;
|
|
2914
|
+
await this._userManager.events._raiseSilentRenewError(err);
|
|
2915
|
+
return;
|
|
2916
|
+
}
|
|
2917
|
+
logger2.warn(
|
|
2918
|
+
`ErrorTimeout from signinSilent (attempt ${this._timeoutRetryCount}), retry in 5s:`,
|
|
2919
|
+
err
|
|
2920
|
+
);
|
|
2921
|
+
this._retryTimer.init(5);
|
|
2922
|
+
return;
|
|
2923
|
+
}
|
|
2924
|
+
logger2.error("Error from signinSilent:", err);
|
|
2925
|
+
this._timeoutRetryCount = 0;
|
|
2926
|
+
await this._userManager.events._raiseSilentRenewError(err);
|
|
2927
|
+
}
|
|
2928
|
+
};
|
|
2929
|
+
}
|
|
2930
|
+
async start() {
|
|
2931
|
+
const logger2 = this._logger.create("start");
|
|
2932
|
+
if (!this._isStarted) {
|
|
2933
|
+
this._isStarted = true;
|
|
2934
|
+
this._userManager.events.addAccessTokenExpiring(this._tokenExpiring);
|
|
2935
|
+
this._retryTimer.addHandler(this._tokenExpiring);
|
|
2936
|
+
try {
|
|
2937
|
+
await this._userManager.getUser();
|
|
2938
|
+
} catch (err) {
|
|
2939
|
+
logger2.error("getUser error", err);
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
stop() {
|
|
2944
|
+
if (this._isStarted) {
|
|
2945
|
+
this._retryTimer.cancel();
|
|
2946
|
+
this._retryTimer.removeHandler(this._tokenExpiring);
|
|
2947
|
+
this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring);
|
|
2948
|
+
this._isStarted = false;
|
|
2949
|
+
}
|
|
2950
|
+
}
|
|
2951
|
+
};
|
|
2952
|
+
|
|
2953
|
+
// src/RefreshState.ts
|
|
2954
|
+
var RefreshState = class {
|
|
2955
|
+
constructor(args) {
|
|
2956
|
+
this.refresh_token = args.refresh_token;
|
|
2957
|
+
this.id_token = args.id_token;
|
|
2958
|
+
this.session_state = args.session_state;
|
|
2959
|
+
this.scope = args.scope;
|
|
2960
|
+
this.profile = args.profile;
|
|
2961
|
+
this.data = args.state;
|
|
2962
|
+
}
|
|
2963
|
+
};
|
|
2964
|
+
|
|
2965
|
+
// src/UserManager.ts
|
|
2966
|
+
var UserManager = class {
|
|
2967
|
+
constructor(settings, redirectNavigator, popupNavigator, iframeNavigator) {
|
|
2968
|
+
this._logger = new Logger("UserManager");
|
|
2969
|
+
this.settings = new UserManagerSettingsStore(settings);
|
|
2970
|
+
this._client = new OidcClient(settings);
|
|
2971
|
+
this._redirectNavigator = redirectNavigator != null ? redirectNavigator : new RedirectNavigator(this.settings);
|
|
2972
|
+
this._popupNavigator = popupNavigator != null ? popupNavigator : new PopupNavigator(this.settings);
|
|
2973
|
+
this._iframeNavigator = iframeNavigator != null ? iframeNavigator : new IFrameNavigator(this.settings);
|
|
2974
|
+
this._events = new UserManagerEvents(this.settings);
|
|
2975
|
+
this._silentRenewService = new SilentRenewService(this);
|
|
2976
|
+
if (this.settings.automaticSilentRenew) {
|
|
2977
|
+
this.startSilentRenew();
|
|
2978
|
+
}
|
|
2979
|
+
this._sessionMonitor = null;
|
|
2980
|
+
if (this.settings.monitorSession) {
|
|
2981
|
+
this._sessionMonitor = new SessionMonitor(this);
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
/**
|
|
2985
|
+
* Get object used to register for events raised by the `UserManager`.
|
|
2986
|
+
*/
|
|
2987
|
+
get events() {
|
|
2988
|
+
return this._events;
|
|
2989
|
+
}
|
|
2990
|
+
/**
|
|
2991
|
+
* Get object used to access the metadata configuration of the identity provider.
|
|
2992
|
+
*/
|
|
2993
|
+
get metadataService() {
|
|
2994
|
+
return this._client.metadataService;
|
|
2995
|
+
}
|
|
2996
|
+
/**
|
|
2997
|
+
* Load the `User` object for the currently authenticated user.
|
|
2998
|
+
*
|
|
2999
|
+
* @param raiseEvent - If `true`, the `UserLoaded` event will be raised. Defaults to false.
|
|
3000
|
+
* @returns A promise
|
|
3001
|
+
*/
|
|
3002
|
+
async getUser(raiseEvent = false) {
|
|
3003
|
+
const logger2 = this._logger.create("getUser");
|
|
3004
|
+
const user = await this._loadUser();
|
|
3005
|
+
if (user) {
|
|
3006
|
+
logger2.info("user loaded");
|
|
3007
|
+
await this._events.load(user, raiseEvent);
|
|
3008
|
+
return user;
|
|
3009
|
+
}
|
|
3010
|
+
logger2.info("user not found in storage");
|
|
3011
|
+
return null;
|
|
3012
|
+
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Remove from any storage the currently authenticated user.
|
|
3015
|
+
*
|
|
3016
|
+
* @returns A promise
|
|
3017
|
+
*/
|
|
3018
|
+
async removeUser() {
|
|
3019
|
+
const logger2 = this._logger.create("removeUser");
|
|
3020
|
+
await this.storeUser(null);
|
|
3021
|
+
logger2.info("user removed from storage");
|
|
3022
|
+
await this._events.unload();
|
|
3023
|
+
}
|
|
3024
|
+
/**
|
|
3025
|
+
* Trigger a redirect of the current window to the authorization endpoint.
|
|
3026
|
+
*
|
|
3027
|
+
* @returns A promise
|
|
3028
|
+
*
|
|
3029
|
+
* @throws `Error` In cases of wrong authentication.
|
|
3030
|
+
*/
|
|
3031
|
+
async signinRedirect(args = {}) {
|
|
3032
|
+
var _a;
|
|
3033
|
+
this._logger.create("signinRedirect");
|
|
3034
|
+
const {
|
|
3035
|
+
redirectMethod,
|
|
3036
|
+
...requestArgs
|
|
3037
|
+
} = args;
|
|
3038
|
+
let dpopJkt;
|
|
3039
|
+
if ((_a = this.settings.dpop) == null ? void 0 : _a.bind_authorization_code) {
|
|
3040
|
+
dpopJkt = await this.generateDPoPJkt(this.settings.dpop);
|
|
3041
|
+
}
|
|
3042
|
+
const handle = await this._redirectNavigator.prepare({ redirectMethod });
|
|
3043
|
+
await this._signinStart({
|
|
3044
|
+
request_type: "si:r",
|
|
3045
|
+
dpopJkt,
|
|
3046
|
+
...requestArgs
|
|
3047
|
+
}, handle);
|
|
3048
|
+
}
|
|
3049
|
+
/**
|
|
3050
|
+
* Process the response (callback) from the authorization endpoint.
|
|
3051
|
+
* It is recommended to use {@link UserManager.signinCallback} instead.
|
|
3052
|
+
*
|
|
3053
|
+
* @returns A promise containing the authenticated `User`.
|
|
3054
|
+
*
|
|
3055
|
+
* @see {@link UserManager.signinCallback}
|
|
3056
|
+
*/
|
|
3057
|
+
async signinRedirectCallback(url = window.location.href) {
|
|
3058
|
+
const logger2 = this._logger.create("signinRedirectCallback");
|
|
3059
|
+
const user = await this._signinEnd(url);
|
|
3060
|
+
if (user.profile && user.profile.sub) {
|
|
3061
|
+
logger2.info("success, signed in subject", user.profile.sub);
|
|
3062
|
+
} else {
|
|
3063
|
+
logger2.info("no subject");
|
|
3064
|
+
}
|
|
3065
|
+
return user;
|
|
3066
|
+
}
|
|
3067
|
+
/**
|
|
3068
|
+
* Trigger the signin with user/password.
|
|
3069
|
+
*
|
|
3070
|
+
* @returns A promise containing the authenticated `User`.
|
|
3071
|
+
* @throws {@link ErrorResponse} In cases of wrong authentication.
|
|
3072
|
+
*/
|
|
3073
|
+
async signinResourceOwnerCredentials({
|
|
3074
|
+
username,
|
|
3075
|
+
password,
|
|
3076
|
+
skipUserInfo = false
|
|
3077
|
+
}) {
|
|
3078
|
+
const logger2 = this._logger.create("signinResourceOwnerCredential");
|
|
3079
|
+
const signinResponse = await this._client.processResourceOwnerPasswordCredentials({
|
|
3080
|
+
username,
|
|
3081
|
+
password,
|
|
3082
|
+
skipUserInfo,
|
|
3083
|
+
extraTokenParams: this.settings.extraTokenParams
|
|
3084
|
+
});
|
|
3085
|
+
logger2.debug("got signin response");
|
|
3086
|
+
const user = await this._buildUser(signinResponse);
|
|
3087
|
+
if (user.profile && user.profile.sub) {
|
|
3088
|
+
logger2.info("success, signed in subject", user.profile.sub);
|
|
3089
|
+
} else {
|
|
3090
|
+
logger2.info("no subject");
|
|
3091
|
+
}
|
|
3092
|
+
return user;
|
|
3093
|
+
}
|
|
3094
|
+
/**
|
|
3095
|
+
* Trigger a request (via a popup window) to the authorization endpoint.
|
|
3096
|
+
*
|
|
3097
|
+
* @returns A promise containing the authenticated `User`.
|
|
3098
|
+
* @throws `Error` In cases of wrong authentication.
|
|
3099
|
+
*/
|
|
3100
|
+
async signinPopup(args = {}) {
|
|
3101
|
+
var _a;
|
|
3102
|
+
const logger2 = this._logger.create("signinPopup");
|
|
3103
|
+
let dpopJkt;
|
|
3104
|
+
if ((_a = this.settings.dpop) == null ? void 0 : _a.bind_authorization_code) {
|
|
3105
|
+
dpopJkt = await this.generateDPoPJkt(this.settings.dpop);
|
|
3106
|
+
}
|
|
3107
|
+
const {
|
|
3108
|
+
popupWindowFeatures,
|
|
3109
|
+
popupWindowTarget,
|
|
3110
|
+
popupSignal,
|
|
3111
|
+
popupAbortOnClose,
|
|
3112
|
+
...requestArgs
|
|
3113
|
+
} = args;
|
|
3114
|
+
const url = this.settings.popup_redirect_uri;
|
|
3115
|
+
if (!url) {
|
|
3116
|
+
logger2.throw(new Error("No popup_redirect_uri configured"));
|
|
3117
|
+
}
|
|
3118
|
+
const handle = await this._popupNavigator.prepare({ popupWindowFeatures, popupWindowTarget, popupSignal, popupAbortOnClose });
|
|
3119
|
+
const user = await this._signin({
|
|
3120
|
+
request_type: "si:p",
|
|
3121
|
+
redirect_uri: url,
|
|
3122
|
+
display: "popup",
|
|
3123
|
+
dpopJkt,
|
|
3124
|
+
...requestArgs
|
|
3125
|
+
}, handle);
|
|
3126
|
+
if (user) {
|
|
3127
|
+
if (user.profile && user.profile.sub) {
|
|
3128
|
+
logger2.info("success, signed in subject", user.profile.sub);
|
|
3129
|
+
} else {
|
|
3130
|
+
logger2.info("no subject");
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
return user;
|
|
3134
|
+
}
|
|
3135
|
+
/**
|
|
3136
|
+
* Notify the opening window of response (callback) from the authorization endpoint.
|
|
3137
|
+
* It is recommended to use {@link UserManager.signinCallback} instead.
|
|
3138
|
+
*
|
|
3139
|
+
* @returns A promise
|
|
3140
|
+
*
|
|
3141
|
+
* @see {@link UserManager.signinCallback}
|
|
3142
|
+
*/
|
|
3143
|
+
async signinPopupCallback(url = window.location.href, keepOpen = false) {
|
|
3144
|
+
const logger2 = this._logger.create("signinPopupCallback");
|
|
3145
|
+
await this._popupNavigator.callback(url, { keepOpen });
|
|
3146
|
+
logger2.info("success");
|
|
3147
|
+
}
|
|
3148
|
+
/**
|
|
3149
|
+
* Trigger a silent request (via refresh token or an iframe) to the authorization endpoint.
|
|
3150
|
+
*
|
|
3151
|
+
* @returns A promise that contains the authenticated `User`.
|
|
3152
|
+
*/
|
|
3153
|
+
async signinSilent(args = {}) {
|
|
3154
|
+
var _a, _b;
|
|
3155
|
+
const logger2 = this._logger.create("signinSilent");
|
|
3156
|
+
const {
|
|
3157
|
+
silentRequestTimeoutInSeconds,
|
|
3158
|
+
...requestArgs
|
|
3159
|
+
} = args;
|
|
3160
|
+
let user = await this._loadUser();
|
|
3161
|
+
if (!args.forceIframeAuth && (user == null ? void 0 : user.refresh_token)) {
|
|
3162
|
+
logger2.debug("using refresh token");
|
|
3163
|
+
const state = new RefreshState(user);
|
|
3164
|
+
return await this._useRefreshToken({
|
|
3165
|
+
state,
|
|
3166
|
+
redirect_uri: requestArgs.redirect_uri,
|
|
3167
|
+
resource: requestArgs.resource,
|
|
3168
|
+
extraTokenParams: requestArgs.extraTokenParams,
|
|
3169
|
+
timeoutInSeconds: silentRequestTimeoutInSeconds
|
|
3170
|
+
});
|
|
3171
|
+
}
|
|
3172
|
+
let dpopJkt;
|
|
3173
|
+
if ((_a = this.settings.dpop) == null ? void 0 : _a.bind_authorization_code) {
|
|
3174
|
+
dpopJkt = await this.generateDPoPJkt(this.settings.dpop);
|
|
3175
|
+
}
|
|
3176
|
+
const url = this.settings.silent_redirect_uri;
|
|
3177
|
+
if (!url) {
|
|
3178
|
+
logger2.throw(new Error("No silent_redirect_uri configured"));
|
|
3179
|
+
}
|
|
3180
|
+
let verifySub;
|
|
3181
|
+
if (user && this.settings.validateSubOnSilentRenew) {
|
|
3182
|
+
logger2.debug("subject prior to silent renew:", user.profile.sub);
|
|
3183
|
+
verifySub = user.profile.sub;
|
|
3184
|
+
}
|
|
3185
|
+
const handle = await this._iframeNavigator.prepare({ silentRequestTimeoutInSeconds });
|
|
3186
|
+
user = await this._signin({
|
|
3187
|
+
request_type: "si:s",
|
|
3188
|
+
redirect_uri: url,
|
|
3189
|
+
prompt: "none",
|
|
3190
|
+
id_token_hint: this.settings.includeIdTokenInSilentRenew ? user == null ? void 0 : user.id_token : void 0,
|
|
3191
|
+
dpopJkt,
|
|
3192
|
+
...requestArgs
|
|
3193
|
+
}, handle, verifySub);
|
|
3194
|
+
if (user) {
|
|
3195
|
+
if ((_b = user.profile) == null ? void 0 : _b.sub) {
|
|
3196
|
+
logger2.info("success, signed in subject", user.profile.sub);
|
|
3197
|
+
} else {
|
|
3198
|
+
logger2.info("no subject");
|
|
3199
|
+
}
|
|
3200
|
+
}
|
|
3201
|
+
return user;
|
|
3202
|
+
}
|
|
3203
|
+
async _useRefreshToken(args) {
|
|
3204
|
+
const response = await this._client.useRefreshToken({
|
|
3205
|
+
timeoutInSeconds: this.settings.silentRequestTimeoutInSeconds,
|
|
3206
|
+
...args
|
|
3207
|
+
});
|
|
3208
|
+
const user = new User({ ...args.state, ...response });
|
|
3209
|
+
await this.storeUser(user);
|
|
3210
|
+
await this._events.load(user);
|
|
3211
|
+
return user;
|
|
3212
|
+
}
|
|
3213
|
+
/**
|
|
3214
|
+
*
|
|
3215
|
+
* Notify the parent window of response (callback) from the authorization endpoint.
|
|
3216
|
+
* It is recommended to use {@link UserManager.signinCallback} instead.
|
|
3217
|
+
*
|
|
3218
|
+
* @returns A promise
|
|
3219
|
+
*
|
|
3220
|
+
* @see {@link UserManager.signinCallback}
|
|
3221
|
+
*/
|
|
3222
|
+
async signinSilentCallback(url = window.location.href) {
|
|
3223
|
+
const logger2 = this._logger.create("signinSilentCallback");
|
|
3224
|
+
await this._iframeNavigator.callback(url);
|
|
3225
|
+
logger2.info("success");
|
|
3226
|
+
}
|
|
3227
|
+
/**
|
|
3228
|
+
* Process any response (callback) from the authorization endpoint, by dispatching the request_type
|
|
3229
|
+
* and executing one of the following functions:
|
|
3230
|
+
* - {@link UserManager.signinRedirectCallback}
|
|
3231
|
+
* - {@link UserManager.signinPopupCallback}
|
|
3232
|
+
* - {@link UserManager.signinSilentCallback}
|
|
3233
|
+
*
|
|
3234
|
+
* @throws `Error` If request_type is unknown or signin cannot be processed.
|
|
3235
|
+
*/
|
|
3236
|
+
async signinCallback(url = window.location.href) {
|
|
3237
|
+
const { state } = await this._client.readSigninResponseState(url);
|
|
3238
|
+
switch (state.request_type) {
|
|
3239
|
+
case "si:r":
|
|
3240
|
+
return await this.signinRedirectCallback(url);
|
|
3241
|
+
case "si:p":
|
|
3242
|
+
await this.signinPopupCallback(url);
|
|
3243
|
+
break;
|
|
3244
|
+
case "si:s":
|
|
3245
|
+
await this.signinSilentCallback(url);
|
|
3246
|
+
break;
|
|
3247
|
+
default:
|
|
3248
|
+
throw new Error("invalid request_type in state");
|
|
3249
|
+
}
|
|
3250
|
+
return void 0;
|
|
3251
|
+
}
|
|
3252
|
+
/**
|
|
3253
|
+
* Process any response (callback) from the end session endpoint, by dispatching the request_type
|
|
3254
|
+
* and executing one of the following functions:
|
|
3255
|
+
* - {@link UserManager.signoutRedirectCallback}
|
|
3256
|
+
* - {@link UserManager.signoutPopupCallback}
|
|
3257
|
+
* - {@link UserManager.signoutSilentCallback}
|
|
3258
|
+
*
|
|
3259
|
+
* @throws `Error` If request_type is unknown or signout cannot be processed.
|
|
3260
|
+
*/
|
|
3261
|
+
async signoutCallback(url = window.location.href, keepOpen = false) {
|
|
3262
|
+
const { state } = await this._client.readSignoutResponseState(url);
|
|
3263
|
+
if (!state) {
|
|
3264
|
+
return void 0;
|
|
3265
|
+
}
|
|
3266
|
+
switch (state.request_type) {
|
|
3267
|
+
case "so:r":
|
|
3268
|
+
return await this.signoutRedirectCallback(url);
|
|
3269
|
+
case "so:p":
|
|
3270
|
+
await this.signoutPopupCallback(url, keepOpen);
|
|
3271
|
+
break;
|
|
3272
|
+
case "so:s":
|
|
3273
|
+
await this.signoutSilentCallback(url);
|
|
3274
|
+
break;
|
|
3275
|
+
default:
|
|
3276
|
+
throw new Error("invalid request_type in state");
|
|
3277
|
+
}
|
|
3278
|
+
return void 0;
|
|
3279
|
+
}
|
|
3280
|
+
/**
|
|
3281
|
+
* Query OP for user's current signin status.
|
|
3282
|
+
*
|
|
3283
|
+
* @returns A promise object with session_state and subject identifier.
|
|
3284
|
+
*/
|
|
3285
|
+
async querySessionStatus(args = {}) {
|
|
3286
|
+
const logger2 = this._logger.create("querySessionStatus");
|
|
3287
|
+
const {
|
|
3288
|
+
silentRequestTimeoutInSeconds,
|
|
3289
|
+
...requestArgs
|
|
3290
|
+
} = args;
|
|
3291
|
+
const url = this.settings.silent_redirect_uri;
|
|
3292
|
+
if (!url) {
|
|
3293
|
+
logger2.throw(new Error("No silent_redirect_uri configured"));
|
|
3294
|
+
}
|
|
3295
|
+
const user = await this._loadUser();
|
|
3296
|
+
const handle = await this._iframeNavigator.prepare({ silentRequestTimeoutInSeconds });
|
|
3297
|
+
const navResponse = await this._signinStart({
|
|
3298
|
+
request_type: "si:s",
|
|
3299
|
+
// this acts like a signin silent
|
|
3300
|
+
redirect_uri: url,
|
|
3301
|
+
prompt: "none",
|
|
3302
|
+
id_token_hint: this.settings.includeIdTokenInSilentRenew ? user == null ? void 0 : user.id_token : void 0,
|
|
3303
|
+
response_type: this.settings.query_status_response_type,
|
|
3304
|
+
scope: "openid",
|
|
3305
|
+
skipUserInfo: true,
|
|
3306
|
+
...requestArgs
|
|
3307
|
+
}, handle);
|
|
3308
|
+
try {
|
|
3309
|
+
const extraHeaders = {};
|
|
3310
|
+
const signinResponse = await this._client.processSigninResponse(navResponse.url, extraHeaders);
|
|
3311
|
+
logger2.debug("got signin response");
|
|
3312
|
+
if (signinResponse.session_state && signinResponse.profile.sub) {
|
|
3313
|
+
logger2.info("success for subject", signinResponse.profile.sub);
|
|
3314
|
+
return {
|
|
3315
|
+
session_state: signinResponse.session_state,
|
|
3316
|
+
sub: signinResponse.profile.sub
|
|
3317
|
+
};
|
|
3318
|
+
}
|
|
3319
|
+
logger2.info("success, user not authenticated");
|
|
3320
|
+
return null;
|
|
3321
|
+
} catch (err) {
|
|
3322
|
+
if (this.settings.monitorAnonymousSession && err instanceof ErrorResponse) {
|
|
3323
|
+
switch (err.error) {
|
|
3324
|
+
case "login_required":
|
|
3325
|
+
case "consent_required":
|
|
3326
|
+
case "interaction_required":
|
|
3327
|
+
case "account_selection_required":
|
|
3328
|
+
logger2.info("success for anonymous user");
|
|
3329
|
+
return {
|
|
3330
|
+
session_state: err.session_state
|
|
3331
|
+
};
|
|
3332
|
+
}
|
|
3333
|
+
}
|
|
3334
|
+
throw err;
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
async _signin(args, handle, verifySub) {
|
|
3338
|
+
const navResponse = await this._signinStart(args, handle);
|
|
3339
|
+
return await this._signinEnd(navResponse.url, verifySub);
|
|
3340
|
+
}
|
|
3341
|
+
async _signinStart(args, handle) {
|
|
3342
|
+
const logger2 = this._logger.create("_signinStart");
|
|
3343
|
+
try {
|
|
3344
|
+
const signinRequest = await this._client.createSigninRequest(args);
|
|
3345
|
+
logger2.debug("got signin request");
|
|
3346
|
+
return await handle.navigate({
|
|
3347
|
+
url: signinRequest.url,
|
|
3348
|
+
state: signinRequest.state.id,
|
|
3349
|
+
response_mode: signinRequest.state.response_mode,
|
|
3350
|
+
scriptOrigin: this.settings.iframeScriptOrigin
|
|
3351
|
+
});
|
|
3352
|
+
} catch (err) {
|
|
3353
|
+
logger2.debug("error after preparing navigator, closing navigator window");
|
|
3354
|
+
handle.close();
|
|
3355
|
+
throw err;
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
async _signinEnd(url, verifySub) {
|
|
3359
|
+
const logger2 = this._logger.create("_signinEnd");
|
|
3360
|
+
const extraHeaders = {};
|
|
3361
|
+
const signinResponse = await this._client.processSigninResponse(url, extraHeaders);
|
|
3362
|
+
logger2.debug("got signin response");
|
|
3363
|
+
const user = await this._buildUser(signinResponse, verifySub);
|
|
3364
|
+
return user;
|
|
3365
|
+
}
|
|
3366
|
+
async _buildUser(signinResponse, verifySub) {
|
|
3367
|
+
const logger2 = this._logger.create("_buildUser");
|
|
3368
|
+
const user = new User(signinResponse);
|
|
3369
|
+
if (verifySub) {
|
|
3370
|
+
if (verifySub !== user.profile.sub) {
|
|
3371
|
+
logger2.debug("current user does not match user returned from signin. sub from signin:", user.profile.sub);
|
|
3372
|
+
throw new ErrorResponse({ ...signinResponse, error: "login_required" });
|
|
3373
|
+
}
|
|
3374
|
+
logger2.debug("current user matches user returned from signin");
|
|
3375
|
+
}
|
|
3376
|
+
await this.storeUser(user);
|
|
3377
|
+
logger2.debug("user stored");
|
|
3378
|
+
await this._events.load(user);
|
|
3379
|
+
return user;
|
|
3380
|
+
}
|
|
3381
|
+
/**
|
|
3382
|
+
* Trigger a redirect of the current window to the end session endpoint.
|
|
3383
|
+
*
|
|
3384
|
+
* @returns A promise
|
|
3385
|
+
*/
|
|
3386
|
+
async signoutRedirect(args = {}) {
|
|
3387
|
+
const logger2 = this._logger.create("signoutRedirect");
|
|
3388
|
+
const {
|
|
3389
|
+
redirectMethod,
|
|
3390
|
+
...requestArgs
|
|
3391
|
+
} = args;
|
|
3392
|
+
const handle = await this._redirectNavigator.prepare({ redirectMethod });
|
|
3393
|
+
await this._signoutStart({
|
|
3394
|
+
request_type: "so:r",
|
|
3395
|
+
post_logout_redirect_uri: this.settings.post_logout_redirect_uri,
|
|
3396
|
+
...requestArgs
|
|
3397
|
+
}, handle);
|
|
3398
|
+
logger2.info("success");
|
|
3399
|
+
}
|
|
3400
|
+
/**
|
|
3401
|
+
* Process response (callback) from the end session endpoint.
|
|
3402
|
+
* It is recommended to use {@link UserManager.signoutCallback} instead.
|
|
3403
|
+
*
|
|
3404
|
+
* @returns A promise containing signout response
|
|
3405
|
+
*
|
|
3406
|
+
* @see {@link UserManager.signoutCallback}
|
|
3407
|
+
*/
|
|
3408
|
+
async signoutRedirectCallback(url = window.location.href) {
|
|
3409
|
+
const logger2 = this._logger.create("signoutRedirectCallback");
|
|
3410
|
+
const response = await this._signoutEnd(url);
|
|
3411
|
+
logger2.info("success");
|
|
3412
|
+
return response;
|
|
3413
|
+
}
|
|
3414
|
+
/**
|
|
3415
|
+
* Trigger a redirect of a popup window to the end session endpoint.
|
|
3416
|
+
*
|
|
3417
|
+
* @returns A promise
|
|
3418
|
+
*/
|
|
3419
|
+
async signoutPopup(args = {}) {
|
|
3420
|
+
const logger2 = this._logger.create("signoutPopup");
|
|
3421
|
+
const {
|
|
3422
|
+
popupWindowFeatures,
|
|
3423
|
+
popupWindowTarget,
|
|
3424
|
+
popupSignal,
|
|
3425
|
+
...requestArgs
|
|
3426
|
+
} = args;
|
|
3427
|
+
const url = this.settings.popup_post_logout_redirect_uri;
|
|
3428
|
+
const handle = await this._popupNavigator.prepare({ popupWindowFeatures, popupWindowTarget, popupSignal });
|
|
3429
|
+
await this._signout({
|
|
3430
|
+
request_type: "so:p",
|
|
3431
|
+
post_logout_redirect_uri: url,
|
|
3432
|
+
// we're putting a dummy entry in here because we
|
|
3433
|
+
// need a unique id from the state for notification
|
|
3434
|
+
// to the parent window, which is necessary if we
|
|
3435
|
+
// plan to return back to the client after signout
|
|
3436
|
+
// and so we can close the popup after signout
|
|
3437
|
+
state: url == null ? void 0 : {},
|
|
3438
|
+
...requestArgs
|
|
3439
|
+
}, handle);
|
|
3440
|
+
logger2.info("success");
|
|
3441
|
+
}
|
|
3442
|
+
/**
|
|
3443
|
+
* Process response (callback) from the end session endpoint from a popup window.
|
|
3444
|
+
* It is recommended to use {@link UserManager.signoutCallback} instead.
|
|
3445
|
+
*
|
|
3446
|
+
* @returns A promise
|
|
3447
|
+
*
|
|
3448
|
+
* @see {@link UserManager.signoutCallback}
|
|
3449
|
+
*/
|
|
3450
|
+
async signoutPopupCallback(url = window.location.href, keepOpen = false) {
|
|
3451
|
+
const logger2 = this._logger.create("signoutPopupCallback");
|
|
3452
|
+
await this._popupNavigator.callback(url, { keepOpen });
|
|
3453
|
+
logger2.info("success");
|
|
3454
|
+
}
|
|
3455
|
+
async _signout(args, handle) {
|
|
3456
|
+
const navResponse = await this._signoutStart(args, handle);
|
|
3457
|
+
return await this._signoutEnd(navResponse.url);
|
|
3458
|
+
}
|
|
3459
|
+
async _signoutStart(args = {}, handle) {
|
|
3460
|
+
var _a;
|
|
3461
|
+
const logger2 = this._logger.create("_signoutStart");
|
|
3462
|
+
try {
|
|
3463
|
+
const user = await this._loadUser();
|
|
3464
|
+
logger2.debug("loaded current user from storage");
|
|
3465
|
+
if (this.settings.revokeTokensOnSignout) {
|
|
3466
|
+
await this._revokeInternal(user);
|
|
3467
|
+
}
|
|
3468
|
+
const id_token = args.id_token_hint || user && user.id_token;
|
|
3469
|
+
if (id_token) {
|
|
3470
|
+
logger2.debug("setting id_token_hint in signout request");
|
|
3471
|
+
args.id_token_hint = id_token;
|
|
3472
|
+
}
|
|
3473
|
+
await this.removeUser();
|
|
3474
|
+
logger2.debug("user removed, creating signout request");
|
|
3475
|
+
const signoutRequest = await this._client.createSignoutRequest(args);
|
|
3476
|
+
logger2.debug("got signout request");
|
|
3477
|
+
return await handle.navigate({
|
|
3478
|
+
url: signoutRequest.url,
|
|
3479
|
+
state: (_a = signoutRequest.state) == null ? void 0 : _a.id,
|
|
3480
|
+
scriptOrigin: this.settings.iframeScriptOrigin
|
|
3481
|
+
});
|
|
3482
|
+
} catch (err) {
|
|
3483
|
+
logger2.debug("error after preparing navigator, closing navigator window");
|
|
3484
|
+
handle.close();
|
|
3485
|
+
throw err;
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
async _signoutEnd(url) {
|
|
3489
|
+
const logger2 = this._logger.create("_signoutEnd");
|
|
3490
|
+
const signoutResponse = await this._client.processSignoutResponse(url);
|
|
3491
|
+
logger2.debug("got signout response");
|
|
3492
|
+
return signoutResponse;
|
|
3493
|
+
}
|
|
3494
|
+
/**
|
|
3495
|
+
* Trigger a silent request (via an iframe) to the end session endpoint.
|
|
3496
|
+
*
|
|
3497
|
+
* @returns A promise
|
|
3498
|
+
*/
|
|
3499
|
+
async signoutSilent(args = {}) {
|
|
3500
|
+
var _a;
|
|
3501
|
+
const logger2 = this._logger.create("signoutSilent");
|
|
3502
|
+
const {
|
|
3503
|
+
silentRequestTimeoutInSeconds,
|
|
3504
|
+
...requestArgs
|
|
3505
|
+
} = args;
|
|
3506
|
+
const id_token_hint = this.settings.includeIdTokenInSilentSignout ? (_a = await this._loadUser()) == null ? void 0 : _a.id_token : void 0;
|
|
3507
|
+
const url = this.settings.popup_post_logout_redirect_uri;
|
|
3508
|
+
const handle = await this._iframeNavigator.prepare({ silentRequestTimeoutInSeconds });
|
|
3509
|
+
await this._signout({
|
|
3510
|
+
request_type: "so:s",
|
|
3511
|
+
post_logout_redirect_uri: url,
|
|
3512
|
+
id_token_hint,
|
|
3513
|
+
...requestArgs
|
|
3514
|
+
}, handle);
|
|
3515
|
+
logger2.info("success");
|
|
3516
|
+
}
|
|
3517
|
+
/**
|
|
3518
|
+
* Notify the parent window of response (callback) from the end session endpoint.
|
|
3519
|
+
* It is recommended to use {@link UserManager.signoutCallback} instead.
|
|
3520
|
+
*
|
|
3521
|
+
* @returns A promise
|
|
3522
|
+
*
|
|
3523
|
+
* @see {@link UserManager.signoutCallback}
|
|
3524
|
+
*/
|
|
3525
|
+
async signoutSilentCallback(url = window.location.href) {
|
|
3526
|
+
const logger2 = this._logger.create("signoutSilentCallback");
|
|
3527
|
+
await this._iframeNavigator.callback(url);
|
|
3528
|
+
logger2.info("success");
|
|
3529
|
+
}
|
|
3530
|
+
async revokeTokens(types) {
|
|
3531
|
+
const user = await this._loadUser();
|
|
3532
|
+
await this._revokeInternal(user, types);
|
|
3533
|
+
}
|
|
3534
|
+
async _revokeInternal(user, types = this.settings.revokeTokenTypes) {
|
|
3535
|
+
const logger2 = this._logger.create("_revokeInternal");
|
|
3536
|
+
if (!user) return;
|
|
3537
|
+
const typesPresent = types.filter((type) => typeof user[type] === "string");
|
|
3538
|
+
if (!typesPresent.length) {
|
|
3539
|
+
logger2.debug("no need to revoke due to no token(s)");
|
|
3540
|
+
return;
|
|
3541
|
+
}
|
|
3542
|
+
for (const type of typesPresent) {
|
|
3543
|
+
await this._client.revokeToken(
|
|
3544
|
+
user[type],
|
|
3545
|
+
type
|
|
3546
|
+
);
|
|
3547
|
+
logger2.info(`${type} revoked successfully`);
|
|
3548
|
+
if (type !== "access_token") {
|
|
3549
|
+
user[type] = null;
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
await this.storeUser(user);
|
|
3553
|
+
logger2.debug("user stored");
|
|
3554
|
+
await this._events.load(user);
|
|
3555
|
+
}
|
|
3556
|
+
/**
|
|
3557
|
+
* Enables silent renew for the `UserManager`.
|
|
3558
|
+
*/
|
|
3559
|
+
startSilentRenew() {
|
|
3560
|
+
this._logger.create("startSilentRenew");
|
|
3561
|
+
void this._silentRenewService.start();
|
|
3562
|
+
}
|
|
3563
|
+
/**
|
|
3564
|
+
* Disables silent renew for the `UserManager`.
|
|
3565
|
+
*/
|
|
3566
|
+
stopSilentRenew() {
|
|
3567
|
+
this._silentRenewService.stop();
|
|
3568
|
+
}
|
|
3569
|
+
get _userStoreKey() {
|
|
3570
|
+
return `user:${this.settings.authority}:${this.settings.client_id}`;
|
|
3571
|
+
}
|
|
3572
|
+
async _loadUser() {
|
|
3573
|
+
const logger2 = this._logger.create("_loadUser");
|
|
3574
|
+
const storageString = await this.settings.userStore.get(this._userStoreKey);
|
|
3575
|
+
if (storageString) {
|
|
3576
|
+
logger2.debug("user storageString loaded");
|
|
3577
|
+
return User.fromStorageString(storageString);
|
|
3578
|
+
}
|
|
3579
|
+
logger2.debug("no user storageString");
|
|
3580
|
+
return null;
|
|
3581
|
+
}
|
|
3582
|
+
async storeUser(user) {
|
|
3583
|
+
const logger2 = this._logger.create("storeUser");
|
|
3584
|
+
if (user) {
|
|
3585
|
+
logger2.debug("storing user");
|
|
3586
|
+
const storageString = user.toStorageString();
|
|
3587
|
+
await this.settings.userStore.set(this._userStoreKey, storageString);
|
|
3588
|
+
} else {
|
|
3589
|
+
this._logger.debug("removing user");
|
|
3590
|
+
await this.settings.userStore.remove(this._userStoreKey);
|
|
3591
|
+
if (this.settings.dpop) {
|
|
3592
|
+
await this.settings.dpop.store.remove(this.settings.client_id);
|
|
3593
|
+
}
|
|
3594
|
+
}
|
|
3595
|
+
}
|
|
3596
|
+
/**
|
|
3597
|
+
* Removes stale state entries in storage for incomplete authorize requests.
|
|
3598
|
+
*/
|
|
3599
|
+
async clearStaleState() {
|
|
3600
|
+
await this._client.clearStaleState();
|
|
3601
|
+
}
|
|
3602
|
+
/**
|
|
3603
|
+
* Dynamically generates a DPoP proof for a given user, URL and optional Http method.
|
|
3604
|
+
* This method is useful when you need to make a request to a resource server
|
|
3605
|
+
* with fetch or similar, and you need to include a DPoP proof in a DPoP header.
|
|
3606
|
+
* @param url - The URL to generate the DPoP proof for
|
|
3607
|
+
* @param user - The user to generate the DPoP proof for
|
|
3608
|
+
* @param httpMethod - Optional, defaults to "GET"
|
|
3609
|
+
* @param nonce - Optional nonce provided by the resource server
|
|
3610
|
+
*
|
|
3611
|
+
* @returns A promise containing the DPoP proof or undefined if DPoP is not enabled/no user is found.
|
|
3612
|
+
*/
|
|
3613
|
+
async dpopProof(url, user, httpMethod, nonce) {
|
|
3614
|
+
var _a, _b;
|
|
3615
|
+
const dpopState = await ((_b = (_a = this.settings.dpop) == null ? void 0 : _a.store) == null ? void 0 : _b.get(this.settings.client_id));
|
|
3616
|
+
if (dpopState) {
|
|
3617
|
+
return await CryptoUtils.generateDPoPProof({
|
|
3618
|
+
url,
|
|
3619
|
+
accessToken: user == null ? void 0 : user.access_token,
|
|
3620
|
+
httpMethod,
|
|
3621
|
+
keyPair: dpopState.keys,
|
|
3622
|
+
nonce
|
|
3623
|
+
});
|
|
3624
|
+
}
|
|
3625
|
+
return void 0;
|
|
3626
|
+
}
|
|
3627
|
+
async generateDPoPJkt(dpopSettings) {
|
|
3628
|
+
let dpopState = await dpopSettings.store.get(this.settings.client_id);
|
|
3629
|
+
if (!dpopState) {
|
|
3630
|
+
const dpopKeys = await CryptoUtils.generateDPoPKeys();
|
|
3631
|
+
dpopState = new DPoPState(dpopKeys);
|
|
3632
|
+
await dpopSettings.store.set(this.settings.client_id, dpopState);
|
|
3633
|
+
}
|
|
3634
|
+
return await CryptoUtils.generateDPoPJkt(dpopState.keys);
|
|
3635
|
+
}
|
|
3636
|
+
};
|
|
3637
|
+
|
|
3638
|
+
// package.json
|
|
3639
|
+
var version = "3.5.0";
|
|
3640
|
+
|
|
3641
|
+
// src/Version.ts
|
|
3642
|
+
var Version = version;
|
|
3643
|
+
|
|
3644
|
+
// src/IndexedDbDPoPStore.ts
|
|
3645
|
+
var IndexedDbDPoPStore = class {
|
|
3646
|
+
constructor() {
|
|
3647
|
+
this._dbName = "oidc";
|
|
3648
|
+
this._storeName = "dpop";
|
|
3649
|
+
}
|
|
3650
|
+
async set(key, value) {
|
|
3651
|
+
const store = await this.createStore(this._dbName, this._storeName);
|
|
3652
|
+
await store("readwrite", (str) => {
|
|
3653
|
+
str.put(value, key);
|
|
3654
|
+
return this.promisifyRequest(str.transaction);
|
|
3655
|
+
});
|
|
3656
|
+
}
|
|
3657
|
+
async get(key) {
|
|
3658
|
+
const store = await this.createStore(this._dbName, this._storeName);
|
|
3659
|
+
return await store("readonly", (str) => {
|
|
3660
|
+
return this.promisifyRequest(str.get(key));
|
|
3661
|
+
});
|
|
3662
|
+
}
|
|
3663
|
+
async remove(key) {
|
|
3664
|
+
const item = await this.get(key);
|
|
3665
|
+
const store = await this.createStore(this._dbName, this._storeName);
|
|
3666
|
+
await store("readwrite", (str) => {
|
|
3667
|
+
return this.promisifyRequest(str.delete(key));
|
|
3668
|
+
});
|
|
3669
|
+
return item;
|
|
3670
|
+
}
|
|
3671
|
+
async getAllKeys() {
|
|
3672
|
+
const store = await this.createStore(this._dbName, this._storeName);
|
|
3673
|
+
return await store("readonly", (str) => {
|
|
3674
|
+
return this.promisifyRequest(str.getAllKeys());
|
|
3675
|
+
});
|
|
3676
|
+
}
|
|
3677
|
+
promisifyRequest(request) {
|
|
3678
|
+
return new Promise((resolve, reject) => {
|
|
3679
|
+
request.oncomplete = request.onsuccess = () => resolve(request.result);
|
|
3680
|
+
request.onabort = request.onerror = () => reject(request.error);
|
|
3681
|
+
});
|
|
3682
|
+
}
|
|
3683
|
+
async createStore(dbName, storeName) {
|
|
3684
|
+
const request = indexedDB.open(dbName);
|
|
3685
|
+
request.onupgradeneeded = () => request.result.createObjectStore(storeName);
|
|
3686
|
+
const db = await this.promisifyRequest(request);
|
|
3687
|
+
return async (txMode, callback) => {
|
|
3688
|
+
const tx = db.transaction(storeName, txMode);
|
|
3689
|
+
const store = tx.objectStore(storeName);
|
|
3690
|
+
return await callback(store);
|
|
3691
|
+
};
|
|
3692
|
+
}
|
|
3693
|
+
};
|
|
3694
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3695
|
+
0 && (module.exports = {
|
|
3696
|
+
AccessTokenEvents,
|
|
3697
|
+
CheckSessionIFrame,
|
|
3698
|
+
DPoPState,
|
|
3699
|
+
ErrorResponse,
|
|
3700
|
+
ErrorTimeout,
|
|
3701
|
+
InMemoryWebStorage,
|
|
3702
|
+
IndexedDbDPoPStore,
|
|
3703
|
+
Log,
|
|
3704
|
+
Logger,
|
|
3705
|
+
MetadataService,
|
|
3706
|
+
OidcClient,
|
|
3707
|
+
OidcClientSettingsStore,
|
|
3708
|
+
SessionMonitor,
|
|
3709
|
+
SigninResponse,
|
|
3710
|
+
SigninState,
|
|
3711
|
+
SignoutResponse,
|
|
3712
|
+
State,
|
|
3713
|
+
User,
|
|
3714
|
+
UserManager,
|
|
3715
|
+
UserManagerSettingsStore,
|
|
3716
|
+
Version,
|
|
3717
|
+
WebStorageStateStore
|
|
3718
|
+
});
|
|
3719
|
+
//# sourceMappingURL=oidc-client-ts.js.map
|