@openclaw/matrix 2026.8.1-beta.3 → 2026.8.2

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.
Files changed (1022) hide show
  1. package/dist/{account-config-BZWN9tGS.js → account-config-CRsKoMqJ.js} +1 -1
  2. package/dist/{account-selection-CWuhuFn1.js → account-selection-DA-jfx22.js} +74 -36
  3. package/dist/{accounts-BCzyubQt.js → accounts-DR1c4xF_.js} +4 -5
  4. package/dist/api.js +5 -5
  5. package/dist/{approval-handler.runtime-CSvueU9P.js → approval-handler.runtime-xcVrZw9o.js} +8 -6
  6. package/dist/{approval-ids-CEcf-EiM.js → approval-ids-hmvhDNBj.js} +1 -1
  7. package/dist/{approval-reaction-auth-CziKXatm.js → approval-reaction-auth-DziFGHSk.js} +2 -2
  8. package/dist/{approval-reactions-tXh9KYrW.js → approval-reactions-1fwEhoK9.js} +1 -1
  9. package/dist/{channel-CzQw5OZN.js → channel-D6-ajB_u.js} +70 -55
  10. package/dist/channel-plugin-api.js +1 -1
  11. package/dist/{channel.runtime-I9pBRQb3.js → channel.runtime-BMA0dG2k.js} +18 -14
  12. package/dist/{channel.setup-aNaa3Uyn.js → channel.setup-OIEzCzSs.js} +28 -21
  13. package/dist/{cli-iR6QJ5U0.js → cli-B6HF7Hmn.js} +43 -33
  14. package/dist/{cli-metadata-BmUYWjuM.js → cli-metadata-Mtzu5-AY.js} +1 -1
  15. package/dist/cli-metadata.js +1 -1
  16. package/dist/{client-D8XghqmX.js → client-B0yMDho1.js} +2 -2
  17. package/dist/{client-BBQdBG7t.js → client-DFsRJEgB.js} +137 -75
  18. package/dist/{client-bootstrap-Co3RlItb.js → client-bootstrap-DjXCKEtg.js} +1 -1
  19. package/dist/{config-update-Bor_Pjsv.js → config-update-BnX26jCO.js} +48 -31
  20. package/dist/contract-api.js +2 -2
  21. package/dist/{credentials-BdAaWuiR.js → credentials-DJj2xs3q.js} +4 -8
  22. package/dist/{credentials-read-B37cQknZ.js → credentials-read-mexhw-Ur.js} +7 -5
  23. package/dist/{credentials-write.runtime-nAV2-5uR.js → credentials-write.runtime-DQt-kgJq.js} +1 -1
  24. package/dist/{crypto-runtime-Bnz3zEcS.js → crypto-runtime-QvlgyCkj.js} +6 -6
  25. package/dist/{deps-CcVJfvRM.js → deps-mtxF2mHI.js} +1 -1
  26. package/dist/{directory-live-DLQzel12.js → directory-live-Drh343TW.js} +8 -6
  27. package/dist/{doctor-EWf9CDso.js → doctor-CJE8wO6y.js} +1 -1
  28. package/dist/{doctor-contract-DEt4O4Zt.js → doctor-contract-HyWFZQVG.js} +5 -4
  29. package/dist/doctor-contract-api.js +7 -7
  30. package/dist/{draft-stream-DQ7QNC-l.js → draft-stream-DhGHVdO4.js} +1 -1
  31. package/dist/{encryption-guidance-DmLY8NiO.js → encryption-guidance-BNcZNQZI.js} +3 -2
  32. package/dist/event-helpers-XRfAbOIh.js +46 -0
  33. package/dist/helper-api.js +1 -1
  34. package/dist/{http-client-CycYxU9-.js → http-client-DOmFvKvB.js} +13 -54
  35. package/dist/{idb-persistence-BM0P27Zg.js → idb-persistence-D4NGNQxt.js} +3 -3
  36. package/dist/{idb-persistence-lock-DAJ49nZX.js → idb-persistence-lock-B3fZXyF_.js} +1 -1
  37. package/dist/{inbound-dedupe-RvSLqdsz.js → inbound-dedupe-Ch33GU06.js} +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/{messages-DEqg7HVy.js → messages-DlMQaC02.js} +161 -25
  40. package/dist/{monitor-FNrfkuWL.js → monitor-U2LcVtHt.js} +232 -203
  41. package/dist/plugin-entry.handlers.runtime.js +1 -1
  42. package/dist/probe.runtime-CNo-5_iz.js +2 -0
  43. package/dist/{profile-update-BQlE5s2J.js → profile-update-CsyKA9jI.js} +5 -4
  44. package/dist/{profile-D-Wubo0A.js → profile-vmjsmhh4.js} +1 -1
  45. package/dist/{reaction-events-BKOLlnCo.js → reaction-events-lwNc5I1X.js} +10 -8
  46. package/dist/{resolve-targets-e7AI0P75.js → resolve-targets-D3Eakgzs.js} +1 -1
  47. package/dist/{resolver.runtime-V8u0pHEb.js → resolver.runtime-DJQxR35r.js} +1 -1
  48. package/dist/{room-info-BXQA7y10.js → room-info-DIU67XLP.js} +55 -1
  49. package/dist/runtime-api.js +2 -2
  50. package/dist/{sdk-NxK3vzMa.js → sdk-Jl2CgAbJ.js} +573 -47
  51. package/dist/{send-ClHgDZLT.js → send-DfS5ciUL.js} +57 -34
  52. package/dist/session-binding-contract-api.js +1 -1
  53. package/dist/{setup-bootstrap-BGPjbA5N.js → setup-bootstrap-CWoIWudw.js} +3 -3
  54. package/dist/{setup-core-DigrLebY.js → setup-core-CZM496H-.js} +8 -7
  55. package/dist/setup-plugin-api.js +1 -1
  56. package/dist/{setup-surface-Dtn8sAWs.js → setup-surface-DSZtOsWK.js} +84 -79
  57. package/dist/{startup-verification-Cs08ca8u.js → startup-verification-1Ney1mmI.js} +2 -2
  58. package/dist/{storage-BsGuHngK.js → storage-BVf4uucD.js} +5 -4
  59. package/dist/{subagent-hooks-CMoZaARG.js → subagent-hooks-DeICLbU5.js} +5 -1
  60. package/dist/subagent-hooks-api.js +1 -1
  61. package/dist/sync-cache-state-d-A_OhbU.js +234 -0
  62. package/dist/{thread-bindings-BYEGfw3h.js → thread-bindings-2HN2AyLu.js} +4 -4
  63. package/dist/{tool-actions.runtime-ck6IJyP0.js → tool-actions.runtime-CFZZPG5g.js} +267 -213
  64. package/dist/{verification-CabtBTtB.js → verification-CD7k5vE9.js} +2 -2
  65. package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/CHANGELOG.md +29 -3
  66. package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/README.md +23 -14
  67. package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/RELEASING.md +6 -2
  68. package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/download-lib.js +33 -14
  69. package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.d.ts +14 -0
  70. package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/package.json +41 -42
  71. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/package.json +1 -1
  72. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm.d.ts +16 -4
  73. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.cjs +25 -9
  74. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js +23 -7
  75. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm +0 -0
  76. package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm.d.ts +1 -0
  77. package/node_modules/markdown-it/README.md +18 -294
  78. package/node_modules/markdown-it/bin/markdown-it.mjs +2 -2
  79. package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +2972 -0
  80. package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -0
  81. package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +14 -0
  82. package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -0
  83. package/node_modules/markdown-it/dist/markdown-it.cjs.js +4412 -0
  84. package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -0
  85. package/node_modules/markdown-it/dist/markdown-it.d.cts +19 -0
  86. package/node_modules/markdown-it/dist/markdown-it.d.mts +979 -0
  87. package/node_modules/markdown-it/dist/{index.cjs.js → markdown-it.mjs} +1437 -1466
  88. package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -0
  89. package/node_modules/markdown-it/node_modules/argparse/README.md +46 -41
  90. package/node_modules/markdown-it/node_modules/argparse/lib/_colorize.js +72 -0
  91. package/node_modules/markdown-it/node_modules/argparse/lib/argparse.d.ts +292 -0
  92. package/node_modules/markdown-it/node_modules/argparse/{argparse.js → lib/argparse.js} +1124 -1027
  93. package/node_modules/markdown-it/node_modules/argparse/lib/difflib.js +190 -0
  94. package/node_modules/markdown-it/node_modules/argparse/lib/sub.js +4 -4
  95. package/node_modules/markdown-it/node_modules/argparse/lib/textwrap.js +28 -28
  96. package/node_modules/markdown-it/node_modules/argparse/package.json +17 -10
  97. package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.d.ts +8 -0
  98. package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
  99. package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.js +46 -0
  100. package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.js.map +1 -0
  101. package/node_modules/markdown-it/node_modules/entities/{lib/esm → dist}/decode.d.ts +28 -45
  102. package/node_modules/markdown-it/node_modules/entities/dist/decode.d.ts.map +1 -0
  103. package/node_modules/markdown-it/node_modules/entities/{lib/esm → dist}/decode.js +189 -141
  104. package/node_modules/markdown-it/node_modules/entities/dist/decode.js.map +1 -0
  105. package/node_modules/markdown-it/node_modules/entities/{lib/esm → dist}/encode.d.ts +4 -2
  106. package/node_modules/markdown-it/node_modules/entities/dist/encode.d.ts.map +1 -0
  107. package/node_modules/markdown-it/node_modules/entities/dist/encode.js +90 -0
  108. package/node_modules/markdown-it/node_modules/entities/dist/encode.js.map +1 -0
  109. package/node_modules/markdown-it/node_modules/entities/{lib → dist}/escape.d.ts +15 -10
  110. package/node_modules/markdown-it/node_modules/entities/dist/escape.d.ts.map +1 -0
  111. package/node_modules/markdown-it/node_modules/entities/dist/escape.js +132 -0
  112. package/node_modules/markdown-it/node_modules/entities/dist/escape.js.map +1 -0
  113. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
  114. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
  115. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.js +5 -0
  116. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
  117. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
  118. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
  119. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  120. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
  121. package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.d.ts +5 -0
  122. package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
  123. package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.js +12 -0
  124. package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.js.map +1 -0
  125. package/node_modules/markdown-it/node_modules/entities/{lib → dist}/index.d.ts +14 -21
  126. package/node_modules/markdown-it/node_modules/entities/dist/index.d.ts.map +1 -0
  127. package/node_modules/markdown-it/node_modules/entities/dist/index.js +91 -0
  128. package/node_modules/markdown-it/node_modules/entities/dist/index.js.map +1 -0
  129. package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.d.ts +17 -0
  130. package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
  131. package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
  132. package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
  133. package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.d.ts +7 -0
  134. package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
  135. package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.js +17 -0
  136. package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
  137. package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.d.ts +33 -0
  138. package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.d.ts.map +1 -0
  139. package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.js +93 -0
  140. package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.js.map +1 -0
  141. package/node_modules/markdown-it/node_modules/entities/package.json +63 -70
  142. package/node_modules/markdown-it/node_modules/entities/readme.md +54 -45
  143. package/node_modules/markdown-it/node_modules/entities/src/decode-codepoint.ts +50 -0
  144. package/node_modules/markdown-it/node_modules/entities/src/decode.ts +671 -0
  145. package/node_modules/markdown-it/node_modules/entities/src/encode.ts +95 -0
  146. package/node_modules/markdown-it/node_modules/entities/src/escape.ts +160 -0
  147. package/node_modules/markdown-it/node_modules/entities/src/generated/decode-data-html.ts +7 -0
  148. package/node_modules/markdown-it/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  149. package/node_modules/markdown-it/node_modules/entities/src/generated/encode-html.ts +18 -0
  150. package/node_modules/markdown-it/node_modules/entities/src/index.ts +162 -0
  151. package/node_modules/markdown-it/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  152. package/node_modules/markdown-it/node_modules/entities/src/internal/decode-shared.ts +18 -0
  153. package/node_modules/markdown-it/node_modules/entities/src/internal/encode-shared.ts +123 -0
  154. package/node_modules/markdown-it/node_modules/linkify-it/README.md +49 -86
  155. package/node_modules/markdown-it/node_modules/linkify-it/build/index.cjs.js +636 -825
  156. package/node_modules/markdown-it/node_modules/linkify-it/build/index.cjs.js.map +1 -0
  157. package/node_modules/markdown-it/node_modules/linkify-it/build/index.d.ts +236 -0
  158. package/node_modules/markdown-it/node_modules/linkify-it/build/index.mjs +538 -0
  159. package/node_modules/markdown-it/node_modules/linkify-it/build/index.mjs.map +1 -0
  160. package/node_modules/markdown-it/node_modules/linkify-it/package.json +23 -20
  161. package/node_modules/markdown-it/node_modules/uc.micro/README.md +18 -1
  162. package/node_modules/markdown-it/node_modules/uc.micro/build/index.cjs.js +13 -18
  163. package/node_modules/markdown-it/node_modules/uc.micro/build/index.d.ts +6 -0
  164. package/node_modules/markdown-it/node_modules/uc.micro/build/index.mjs +8 -0
  165. package/node_modules/markdown-it/node_modules/uc.micro/package.json +12 -17
  166. package/node_modules/markdown-it/package.json +48 -30
  167. package/node_modules/matrix-js-sdk/CHANGELOG.md +33 -0
  168. package/node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts.map +1 -1
  169. package/node_modules/matrix-js-sdk/lib/@types/PushRules.js +0 -5
  170. package/node_modules/matrix-js-sdk/lib/@types/PushRules.js.map +1 -1
  171. package/node_modules/matrix-js-sdk/lib/@types/auth.d.ts +0 -5
  172. package/node_modules/matrix-js-sdk/lib/@types/auth.d.ts.map +1 -1
  173. package/node_modules/matrix-js-sdk/lib/@types/auth.js +0 -11
  174. package/node_modules/matrix-js-sdk/lib/@types/auth.js.map +1 -1
  175. package/node_modules/matrix-js-sdk/lib/@types/beacon.d.ts +1 -1
  176. package/node_modules/matrix-js-sdk/lib/@types/beacon.js +1 -1
  177. package/node_modules/matrix-js-sdk/lib/@types/beacon.js.map +1 -1
  178. package/node_modules/matrix-js-sdk/lib/@types/crypto.d.ts.map +1 -1
  179. package/node_modules/matrix-js-sdk/lib/@types/crypto.js.map +1 -1
  180. package/node_modules/matrix-js-sdk/lib/@types/event.d.ts +3 -1
  181. package/node_modules/matrix-js-sdk/lib/@types/event.d.ts.map +1 -1
  182. package/node_modules/matrix-js-sdk/lib/@types/event.js +1 -0
  183. package/node_modules/matrix-js-sdk/lib/@types/event.js.map +1 -1
  184. package/node_modules/matrix-js-sdk/lib/@types/extensible_events.d.ts.map +1 -1
  185. package/node_modules/matrix-js-sdk/lib/@types/extensible_events.js.map +1 -1
  186. package/node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js.map +1 -1
  187. package/node_modules/matrix-js-sdk/lib/@types/media.js.map +1 -1
  188. package/node_modules/matrix-js-sdk/lib/@types/partials.d.ts.map +1 -1
  189. package/node_modules/matrix-js-sdk/lib/@types/partials.js.map +1 -1
  190. package/node_modules/matrix-js-sdk/lib/@types/requests.d.ts.map +1 -1
  191. package/node_modules/matrix-js-sdk/lib/@types/requests.js +0 -5
  192. package/node_modules/matrix-js-sdk/lib/@types/requests.js.map +1 -1
  193. package/node_modules/matrix-js-sdk/lib/@types/search.d.ts.map +1 -1
  194. package/node_modules/matrix-js-sdk/lib/@types/search.js +0 -3
  195. package/node_modules/matrix-js-sdk/lib/@types/search.js.map +1 -1
  196. package/node_modules/matrix-js-sdk/lib/@types/spaces.d.ts.map +1 -1
  197. package/node_modules/matrix-js-sdk/lib/@types/spaces.js.map +1 -1
  198. package/node_modules/matrix-js-sdk/lib/@types/synapse.d.ts.map +1 -1
  199. package/node_modules/matrix-js-sdk/lib/@types/synapse.js.map +1 -1
  200. package/node_modules/matrix-js-sdk/lib/@types/threepids.js.map +1 -1
  201. package/node_modules/matrix-js-sdk/lib/@types/type-guards.d.ts +43 -0
  202. package/node_modules/matrix-js-sdk/lib/@types/type-guards.d.ts.map +1 -0
  203. package/node_modules/matrix-js-sdk/lib/@types/type-guards.js +104 -0
  204. package/node_modules/matrix-js-sdk/lib/@types/type-guards.js.map +1 -0
  205. package/node_modules/matrix-js-sdk/lib/NamespacedValue.d.ts.map +1 -1
  206. package/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts.map +1 -1
  207. package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.d.ts.map +1 -1
  208. package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.js +0 -2
  209. package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.js.map +1 -1
  210. package/node_modules/matrix-js-sdk/lib/autodiscovery.d.ts.map +1 -1
  211. package/node_modules/matrix-js-sdk/lib/autodiscovery.js.map +1 -1
  212. package/node_modules/matrix-js-sdk/lib/browser-index.d.ts.map +1 -1
  213. package/node_modules/matrix-js-sdk/lib/browser-index.js +3 -1
  214. package/node_modules/matrix-js-sdk/lib/browser-index.js.map +1 -1
  215. package/node_modules/matrix-js-sdk/lib/capabilityPoller.d.ts.map +1 -1
  216. package/node_modules/matrix-js-sdk/lib/client.d.ts +23 -21
  217. package/node_modules/matrix-js-sdk/lib/client.d.ts.map +1 -1
  218. package/node_modules/matrix-js-sdk/lib/client.js +44 -96
  219. package/node_modules/matrix-js-sdk/lib/client.js.map +1 -1
  220. package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.d.ts.map +1 -1
  221. package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.d.ts.map +1 -1
  222. package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.js +1 -4
  223. package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.js.map +1 -1
  224. package/node_modules/matrix-js-sdk/lib/content-helpers.d.ts.map +1 -1
  225. package/node_modules/matrix-js-sdk/lib/crypto/store/base.d.ts.map +1 -1
  226. package/node_modules/matrix-js-sdk/lib/crypto/store/base.js +0 -9
  227. package/node_modules/matrix-js-sdk/lib/crypto/store/base.js.map +1 -1
  228. package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.d.ts.map +1 -1
  229. package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.js +2 -1
  230. package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.js.map +1 -1
  231. package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.d.ts.map +1 -1
  232. package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.js +1 -1
  233. package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.js.map +1 -1
  234. package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.d.ts.map +1 -1
  235. package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.js +0 -2
  236. package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.js.map +1 -1
  237. package/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.d.ts.map +1 -1
  238. package/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.js.map +1 -1
  239. package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts +1 -1
  240. package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts.map +1 -1
  241. package/node_modules/matrix-js-sdk/lib/crypto-api/index.js.map +1 -1
  242. package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.d.ts +13 -6
  243. package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.d.ts.map +1 -1
  244. package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.js.map +1 -1
  245. package/node_modules/matrix-js-sdk/lib/crypto-api/verification.d.ts +23 -5
  246. package/node_modules/matrix-js-sdk/lib/crypto-api/verification.d.ts.map +1 -1
  247. package/node_modules/matrix-js-sdk/lib/crypto-api/verification.js.map +1 -1
  248. package/node_modules/matrix-js-sdk/lib/embedded.d.ts +16 -0
  249. package/node_modules/matrix-js-sdk/lib/embedded.d.ts.map +1 -1
  250. package/node_modules/matrix-js-sdk/lib/embedded.js +19 -11
  251. package/node_modules/matrix-js-sdk/lib/embedded.js.map +1 -1
  252. package/node_modules/matrix-js-sdk/lib/errors.d.ts.map +1 -1
  253. package/node_modules/matrix-js-sdk/lib/extensible_events_v1/ExtensibleEvent.d.ts.map +1 -1
  254. package/node_modules/matrix-js-sdk/lib/extensible_events_v1/InvalidEventError.d.ts.map +1 -1
  255. package/node_modules/matrix-js-sdk/lib/extensible_events_v1/MessageEvent.d.ts.map +1 -1
  256. package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollEndEvent.d.ts.map +1 -1
  257. package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollResponseEvent.d.ts.map +1 -1
  258. package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollStartEvent.d.ts.map +1 -1
  259. package/node_modules/matrix-js-sdk/lib/feature.d.ts.map +1 -1
  260. package/node_modules/matrix-js-sdk/lib/feature.js +0 -3
  261. package/node_modules/matrix-js-sdk/lib/feature.js.map +1 -1
  262. package/node_modules/matrix-js-sdk/lib/filter-component.d.ts.map +1 -1
  263. package/node_modules/matrix-js-sdk/lib/filter-component.js +2 -5
  264. package/node_modules/matrix-js-sdk/lib/filter-component.js.map +1 -1
  265. package/node_modules/matrix-js-sdk/lib/filter.d.ts.map +1 -1
  266. package/node_modules/matrix-js-sdk/lib/filter.js +0 -4
  267. package/node_modules/matrix-js-sdk/lib/filter.js.map +1 -1
  268. package/node_modules/matrix-js-sdk/lib/http-api/errors.d.ts.map +1 -1
  269. package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts +1 -1
  270. package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts.map +1 -1
  271. package/node_modules/matrix-js-sdk/lib/http-api/fetch.js.map +1 -1
  272. package/node_modules/matrix-js-sdk/lib/http-api/index.d.ts +1 -7
  273. package/node_modules/matrix-js-sdk/lib/http-api/index.d.ts.map +1 -1
  274. package/node_modules/matrix-js-sdk/lib/http-api/index.js +0 -15
  275. package/node_modules/matrix-js-sdk/lib/http-api/index.js.map +1 -1
  276. package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts +0 -9
  277. package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts.map +1 -1
  278. package/node_modules/matrix-js-sdk/lib/http-api/interface.js +0 -2
  279. package/node_modules/matrix-js-sdk/lib/http-api/interface.js.map +1 -1
  280. package/node_modules/matrix-js-sdk/lib/http-api/refresh.d.ts.map +1 -1
  281. package/node_modules/matrix-js-sdk/lib/http-api/refresh.js +0 -3
  282. package/node_modules/matrix-js-sdk/lib/http-api/refresh.js.map +1 -1
  283. package/node_modules/matrix-js-sdk/lib/index.d.ts.map +1 -1
  284. package/node_modules/matrix-js-sdk/lib/interactive-auth.d.ts.map +1 -1
  285. package/node_modules/matrix-js-sdk/lib/interactive-auth.js +5 -6
  286. package/node_modules/matrix-js-sdk/lib/interactive-auth.js.map +1 -1
  287. package/node_modules/matrix-js-sdk/lib/logger.d.ts.map +1 -1
  288. package/node_modules/matrix-js-sdk/lib/logger.js +0 -2
  289. package/node_modules/matrix-js-sdk/lib/logger.js.map +1 -1
  290. package/node_modules/matrix-js-sdk/lib/matrix.d.ts +1 -1
  291. package/node_modules/matrix-js-sdk/lib/matrix.d.ts.map +1 -1
  292. package/node_modules/matrix-js-sdk/lib/matrix.js +1 -1
  293. package/node_modules/matrix-js-sdk/lib/matrix.js.map +1 -1
  294. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts +3 -3
  295. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts.map +1 -1
  296. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js +5 -5
  297. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js.map +1 -1
  298. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts.map +1 -1
  299. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts +18 -1
  300. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
  301. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +56 -4
  302. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
  303. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.d.ts +14 -1
  304. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.d.ts.map +1 -1
  305. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js +20 -1
  306. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js.map +1 -1
  307. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts.map +1 -1
  308. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +9 -6
  309. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -1
  310. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManagerActionScheduler.d.ts.map +1 -1
  311. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManagerActionScheduler.js.map +1 -1
  312. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts.map +1 -1
  313. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js.map +1 -1
  314. package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.d.ts.map +1 -1
  315. package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.js.map +1 -1
  316. package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts +1 -1
  317. package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts.map +1 -1
  318. package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js +1 -1
  319. package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js.map +1 -1
  320. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.d.ts.map +1 -1
  321. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts +6 -3
  322. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts.map +1 -1
  323. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js +7 -4
  324. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js.map +1 -1
  325. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.d.ts.map +1 -1
  326. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts +19 -6
  327. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts.map +1 -1
  328. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js +11 -1
  329. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js.map +1 -1
  330. package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts +0 -1
  331. package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts.map +1 -1
  332. package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js +0 -1
  333. package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js.map +1 -1
  334. package/node_modules/matrix-js-sdk/lib/models/MSC3089Branch.d.ts.map +1 -1
  335. package/node_modules/matrix-js-sdk/lib/models/MSC3089TreeSpace.d.ts.map +1 -1
  336. package/node_modules/matrix-js-sdk/lib/models/beacon.d.ts.map +1 -1
  337. package/node_modules/matrix-js-sdk/lib/models/device.d.ts.map +1 -1
  338. package/node_modules/matrix-js-sdk/lib/models/event-context.d.ts.map +1 -1
  339. package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.d.ts.map +1 -1
  340. package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js +3 -3
  341. package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js.map +1 -1
  342. package/node_modules/matrix-js-sdk/lib/models/event-timeline.d.ts.map +1 -1
  343. package/node_modules/matrix-js-sdk/lib/models/event.d.ts.map +1 -1
  344. package/node_modules/matrix-js-sdk/lib/models/event.js +0 -6
  345. package/node_modules/matrix-js-sdk/lib/models/event.js.map +1 -1
  346. package/node_modules/matrix-js-sdk/lib/models/invites-ignorer.d.ts.map +1 -1
  347. package/node_modules/matrix-js-sdk/lib/models/invites-ignorer.js.map +1 -1
  348. package/node_modules/matrix-js-sdk/lib/models/poll.d.ts.map +1 -1
  349. package/node_modules/matrix-js-sdk/lib/models/poll.js.map +1 -1
  350. package/node_modules/matrix-js-sdk/lib/models/read-receipt.d.ts.map +1 -1
  351. package/node_modules/matrix-js-sdk/lib/models/read-receipt.js.map +1 -1
  352. package/node_modules/matrix-js-sdk/lib/models/related-relations.d.ts.map +1 -1
  353. package/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts +10 -0
  354. package/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts.map +1 -1
  355. package/node_modules/matrix-js-sdk/lib/models/relations-container.js +39 -17
  356. package/node_modules/matrix-js-sdk/lib/models/relations-container.js.map +1 -1
  357. package/node_modules/matrix-js-sdk/lib/models/relations.d.ts.map +1 -1
  358. package/node_modules/matrix-js-sdk/lib/models/relations.js +1 -1
  359. package/node_modules/matrix-js-sdk/lib/models/relations.js.map +1 -1
  360. package/node_modules/matrix-js-sdk/lib/models/room-member.d.ts.map +1 -1
  361. package/node_modules/matrix-js-sdk/lib/models/room-receipts.d.ts.map +1 -1
  362. package/node_modules/matrix-js-sdk/lib/models/room-retention.d.ts.map +1 -1
  363. package/node_modules/matrix-js-sdk/lib/models/room-state.d.ts.map +1 -1
  364. package/node_modules/matrix-js-sdk/lib/models/room-state.js.map +1 -1
  365. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts.map +1 -1
  366. package/node_modules/matrix-js-sdk/lib/models/room-summary.d.ts.map +1 -1
  367. package/node_modules/matrix-js-sdk/lib/models/room.d.ts.map +1 -1
  368. package/node_modules/matrix-js-sdk/lib/models/room.js +9 -9
  369. package/node_modules/matrix-js-sdk/lib/models/room.js.map +1 -1
  370. package/node_modules/matrix-js-sdk/lib/models/search-result.d.ts.map +1 -1
  371. package/node_modules/matrix-js-sdk/lib/models/thread.d.ts +5 -2
  372. package/node_modules/matrix-js-sdk/lib/models/thread.d.ts.map +1 -1
  373. package/node_modules/matrix-js-sdk/lib/models/thread.js +36 -3
  374. package/node_modules/matrix-js-sdk/lib/models/thread.js.map +1 -1
  375. package/node_modules/matrix-js-sdk/lib/models/typed-event-emitter.d.ts.map +1 -1
  376. package/node_modules/matrix-js-sdk/lib/models/user.d.ts.map +1 -1
  377. package/node_modules/matrix-js-sdk/lib/oauth/authorize.d.ts +133 -0
  378. package/node_modules/matrix-js-sdk/lib/oauth/authorize.d.ts.map +1 -0
  379. package/node_modules/matrix-js-sdk/lib/oauth/authorize.js +193 -0
  380. package/node_modules/matrix-js-sdk/lib/oauth/authorize.js.map +1 -0
  381. package/node_modules/matrix-js-sdk/lib/oauth/discover.d.ts +58 -0
  382. package/node_modules/matrix-js-sdk/lib/oauth/discover.d.ts.map +1 -0
  383. package/node_modules/matrix-js-sdk/lib/oauth/discover.js +35 -0
  384. package/node_modules/matrix-js-sdk/lib/oauth/discover.js.map +1 -0
  385. package/node_modules/matrix-js-sdk/lib/oauth/error.d.ts +19 -0
  386. package/node_modules/matrix-js-sdk/lib/oauth/error.d.ts.map +1 -0
  387. package/node_modules/matrix-js-sdk/lib/oauth/error.js +36 -0
  388. package/node_modules/matrix-js-sdk/lib/oauth/error.js.map +1 -0
  389. package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts +87 -0
  390. package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts.map +1 -0
  391. package/node_modules/matrix-js-sdk/lib/oauth/index.js +236 -0
  392. package/node_modules/matrix-js-sdk/lib/oauth/index.js.map +1 -0
  393. package/node_modules/matrix-js-sdk/lib/oauth/register.d.ts +136 -0
  394. package/node_modules/matrix-js-sdk/lib/oauth/register.d.ts.map +1 -0
  395. package/node_modules/matrix-js-sdk/lib/oauth/register.js +73 -0
  396. package/node_modules/matrix-js-sdk/lib/oauth/register.js.map +1 -0
  397. package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.d.ts +21 -0
  398. package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.d.ts.map +1 -0
  399. package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.js +68 -0
  400. package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.js.map +1 -0
  401. package/node_modules/matrix-js-sdk/lib/pollingCachedValue.d.ts +77 -0
  402. package/node_modules/matrix-js-sdk/lib/pollingCachedValue.d.ts.map +1 -0
  403. package/node_modules/matrix-js-sdk/lib/pollingCachedValue.js +160 -0
  404. package/node_modules/matrix-js-sdk/lib/pollingCachedValue.js.map +1 -0
  405. package/node_modules/matrix-js-sdk/lib/pushprocessor.d.ts.map +1 -1
  406. package/node_modules/matrix-js-sdk/lib/pushprocessor.js.map +1 -1
  407. package/node_modules/matrix-js-sdk/lib/realtime-callbacks.js +0 -1
  408. package/node_modules/matrix-js-sdk/lib/realtime-callbacks.js.map +1 -1
  409. package/node_modules/matrix-js-sdk/lib/receipt-accumulator.d.ts.map +1 -1
  410. package/node_modules/matrix-js-sdk/lib/receipt-accumulator.js.map +1 -1
  411. package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts +7 -7
  412. package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts.map +1 -1
  413. package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.js +13 -14
  414. package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.js.map +1 -1
  415. package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousError.d.ts.map +1 -1
  416. package/node_modules/matrix-js-sdk/lib/rendezvous/channels/MSC4108SecureChannel.d.ts.map +1 -1
  417. package/node_modules/matrix-js-sdk/lib/rendezvous/index.d.ts.map +1 -1
  418. package/node_modules/matrix-js-sdk/lib/rendezvous/index.js.map +1 -1
  419. package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.d.ts.map +1 -1
  420. package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.js +0 -1
  421. package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.js.map +1 -1
  422. package/node_modules/matrix-js-sdk/lib/retentionPolicy.d.ts.map +1 -1
  423. package/node_modules/matrix-js-sdk/lib/room-hierarchy.d.ts.map +1 -1
  424. package/node_modules/matrix-js-sdk/lib/rtcTransportsCachedValue.d.ts +9 -0
  425. package/node_modules/matrix-js-sdk/lib/rtcTransportsCachedValue.d.ts.map +1 -0
  426. package/node_modules/matrix-js-sdk/lib/rtcTransportsCachedValue.js +38 -0
  427. package/node_modules/matrix-js-sdk/lib/rtcTransportsCachedValue.js.map +1 -0
  428. package/node_modules/matrix-js-sdk/lib/rust-crypto/CrossSigningIdentity.d.ts.map +1 -1
  429. package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.d.ts.map +1 -1
  430. package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.js +11 -13
  431. package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.js.map +1 -1
  432. package/node_modules/matrix-js-sdk/lib/rust-crypto/KeyClaimManager.d.ts.map +1 -1
  433. package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.d.ts.map +1 -1
  434. package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.js +0 -2
  435. package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.js.map +1 -1
  436. package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestsManager.d.ts.map +1 -1
  437. package/node_modules/matrix-js-sdk/lib/rust-crypto/PerSessionKeyBackupDownloader.d.ts.map +1 -1
  438. package/node_modules/matrix-js-sdk/lib/rust-crypto/PerSessionKeyBackupDownloader.js.map +1 -1
  439. package/node_modules/matrix-js-sdk/lib/rust-crypto/RoomEncryptor.d.ts.map +1 -1
  440. package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts +23 -4
  441. package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts.map +1 -1
  442. package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js +62 -21
  443. package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js.map +1 -1
  444. package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.d.ts.map +1 -1
  445. package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.js +1 -0
  446. package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.js.map +1 -1
  447. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts +17 -4
  448. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts.map +1 -1
  449. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js +21 -4
  450. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js.map +1 -1
  451. package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.d.ts.map +1 -1
  452. package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.js +0 -2
  453. package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.js.map +1 -1
  454. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.d.ts.map +1 -1
  455. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +0 -3
  456. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js.map +1 -1
  457. package/node_modules/matrix-js-sdk/lib/rust-crypto/verification.d.ts.map +1 -1
  458. package/node_modules/matrix-js-sdk/lib/scheduler.d.ts.map +1 -1
  459. package/node_modules/matrix-js-sdk/lib/scheduler.js +0 -3
  460. package/node_modules/matrix-js-sdk/lib/scheduler.js.map +1 -1
  461. package/node_modules/matrix-js-sdk/lib/secret-storage.d.ts.map +1 -1
  462. package/node_modules/matrix-js-sdk/lib/serverCapabilities.d.ts.map +1 -1
  463. package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.d.ts.map +1 -1
  464. package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.js +6 -0
  465. package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.js.map +1 -1
  466. package/node_modules/matrix-js-sdk/lib/sliding-sync.d.ts.map +1 -1
  467. package/node_modules/matrix-js-sdk/lib/sliding-sync.js +3 -0
  468. package/node_modules/matrix-js-sdk/lib/sliding-sync.js.map +1 -1
  469. package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.d.ts.map +1 -1
  470. package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.js +1 -1
  471. package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.js.map +1 -1
  472. package/node_modules/matrix-js-sdk/lib/store/indexeddb-remote-backend.d.ts.map +1 -1
  473. package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.d.ts.map +1 -1
  474. package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.js +1 -0
  475. package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.js.map +1 -1
  476. package/node_modules/matrix-js-sdk/lib/store/indexeddb.d.ts.map +1 -1
  477. package/node_modules/matrix-js-sdk/lib/store/indexeddb.js +0 -2
  478. package/node_modules/matrix-js-sdk/lib/store/indexeddb.js.map +1 -1
  479. package/node_modules/matrix-js-sdk/lib/store/memory.d.ts.map +1 -1
  480. package/node_modules/matrix-js-sdk/lib/store/memory.js +7 -9
  481. package/node_modules/matrix-js-sdk/lib/store/memory.js.map +1 -1
  482. package/node_modules/matrix-js-sdk/lib/store/stub.d.ts.map +1 -1
  483. package/node_modules/matrix-js-sdk/lib/sync-accumulator.d.ts.map +1 -1
  484. package/node_modules/matrix-js-sdk/lib/sync-accumulator.js +1 -5
  485. package/node_modules/matrix-js-sdk/lib/sync-accumulator.js.map +1 -1
  486. package/node_modules/matrix-js-sdk/lib/sync.d.ts.map +1 -1
  487. package/node_modules/matrix-js-sdk/lib/sync.js +9 -9
  488. package/node_modules/matrix-js-sdk/lib/sync.js.map +1 -1
  489. package/node_modules/matrix-js-sdk/lib/testing.d.ts +2 -10
  490. package/node_modules/matrix-js-sdk/lib/testing.d.ts.map +1 -1
  491. package/node_modules/matrix-js-sdk/lib/testing.js +4 -19
  492. package/node_modules/matrix-js-sdk/lib/testing.js.map +1 -1
  493. package/node_modules/matrix-js-sdk/lib/timeline-window.d.ts.map +1 -1
  494. package/node_modules/matrix-js-sdk/lib/timeline-window.js +0 -1
  495. package/node_modules/matrix-js-sdk/lib/timeline-window.js.map +1 -1
  496. package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.d.ts.map +1 -1
  497. package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.js +0 -1
  498. package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.js.map +1 -1
  499. package/node_modules/matrix-js-sdk/lib/utils.d.ts +1 -1
  500. package/node_modules/matrix-js-sdk/lib/utils.d.ts.map +1 -1
  501. package/node_modules/matrix-js-sdk/lib/utils.js +1 -0
  502. package/node_modules/matrix-js-sdk/lib/utils.js.map +1 -1
  503. package/node_modules/matrix-js-sdk/lib/webrtc/call.d.ts.map +1 -1
  504. package/node_modules/matrix-js-sdk/lib/webrtc/call.js.map +1 -1
  505. package/node_modules/matrix-js-sdk/lib/webrtc/callEventHandler.d.ts.map +1 -1
  506. package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.d.ts.map +1 -1
  507. package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.js +0 -5
  508. package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.js.map +1 -1
  509. package/node_modules/matrix-js-sdk/lib/webrtc/callFeed.d.ts.map +1 -1
  510. package/node_modules/matrix-js-sdk/lib/webrtc/groupCall.d.ts.map +1 -1
  511. package/node_modules/matrix-js-sdk/lib/webrtc/groupCall.js.map +1 -1
  512. package/node_modules/matrix-js-sdk/lib/webrtc/groupCallEventHandler.d.ts.map +1 -1
  513. package/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts.map +1 -1
  514. package/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.js.map +1 -1
  515. package/node_modules/matrix-js-sdk/lib/webrtc/stats/callFeedStatsReporter.d.ts.map +1 -1
  516. package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportGatherer.d.ts.map +1 -1
  517. package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportGatherer.js.map +1 -1
  518. package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsBuilder.d.ts.map +1 -1
  519. package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsReportBuilder.d.ts.map +1 -1
  520. package/node_modules/matrix-js-sdk/lib/webrtc/stats/groupCallStats.d.ts.map +1 -1
  521. package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaSsrcHandler.d.ts.map +1 -1
  522. package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackHandler.d.ts.map +1 -1
  523. package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStats.d.ts.map +1 -1
  524. package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStatsHandler.d.ts.map +1 -1
  525. package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReportEmitter.d.ts.map +1 -1
  526. package/node_modules/matrix-js-sdk/lib/webrtc/stats/summaryStatsReportGatherer.d.ts.map +1 -1
  527. package/node_modules/matrix-js-sdk/lib/webrtc/stats/trackStatsBuilder.d.ts.map +1 -1
  528. package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStatsBuilder.d.ts.map +1 -1
  529. package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStatsBuilder.js.map +1 -1
  530. package/node_modules/matrix-js-sdk/lib/webrtc/stats/valueFormatter.d.ts.map +1 -1
  531. package/node_modules/matrix-js-sdk/lib/wellKnownCachedValue.d.ts +8 -0
  532. package/node_modules/matrix-js-sdk/lib/wellKnownCachedValue.d.ts.map +1 -0
  533. package/node_modules/matrix-js-sdk/lib/wellKnownCachedValue.js +34 -0
  534. package/node_modules/matrix-js-sdk/lib/wellKnownCachedValue.js.map +1 -0
  535. package/node_modules/matrix-js-sdk/node_modules/content-type/README.md +2 -0
  536. package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.d.ts +20 -0
  537. package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.js +20 -14
  538. package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.js.map +1 -1
  539. package/node_modules/matrix-js-sdk/node_modules/content-type/package.json +1 -1
  540. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/dist/api.js +227 -131
  541. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/dist/api.min.js +1 -1
  542. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/ClientWidgetApi.d.ts +1 -0
  543. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/ClientWidgetApi.js +142 -97
  544. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/ClientWidgetApi.js.map +1 -1
  545. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/WidgetApi.d.ts +15 -0
  546. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/WidgetApi.js +61 -19
  547. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/WidgetApi.js.map +1 -1
  548. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/driver/WidgetDriver.d.ts +15 -11
  549. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/driver/WidgetDriver.js +19 -13
  550. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/driver/WidgetDriver.js.map +1 -1
  551. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/index.d.ts +1 -0
  552. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/index.js.map +1 -1
  553. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.d.ts +2 -1
  554. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js +2 -1
  555. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js.map +1 -1
  556. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.d.ts +5 -1
  557. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js +1 -0
  558. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js.map +1 -1
  559. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/RtcTransportsAction.d.ts +24 -0
  560. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/RtcTransportsAction.js +6 -0
  561. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/RtcTransportsAction.js.map +1 -0
  562. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.d.ts +1 -0
  563. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.js.map +1 -1
  564. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.d.ts +5 -1
  565. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js +1 -0
  566. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js.map +1 -1
  567. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/package.json +1 -1
  568. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/ClientWidgetApi.ts +37 -14
  569. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/WidgetApi.ts +69 -0
  570. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/driver/WidgetDriver.ts +19 -12
  571. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/index.ts +1 -0
  572. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/ApiVersion.ts +2 -0
  573. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/Capabilities.ts +4 -0
  574. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/RtcTransportsAction.ts +44 -0
  575. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/SendEventAction.ts +1 -0
  576. package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/WidgetApiAction.ts +5 -0
  577. package/node_modules/matrix-js-sdk/package.json +10 -12
  578. package/node_modules/matrix-js-sdk/src/@types/PushRules.ts +0 -5
  579. package/node_modules/matrix-js-sdk/src/@types/auth.ts +0 -12
  580. package/node_modules/matrix-js-sdk/src/@types/beacon.ts +1 -1
  581. package/node_modules/matrix-js-sdk/src/@types/crypto.ts +2 -6
  582. package/node_modules/matrix-js-sdk/src/@types/event.ts +3 -0
  583. package/node_modules/matrix-js-sdk/src/@types/extensible_events.ts +5 -6
  584. package/node_modules/matrix-js-sdk/src/@types/matrix-sdk-crypto-wasm.d.ts +0 -1
  585. package/node_modules/matrix-js-sdk/src/@types/media.ts +1 -1
  586. package/node_modules/matrix-js-sdk/src/@types/partials.ts +0 -2
  587. package/node_modules/matrix-js-sdk/src/@types/requests.ts +0 -5
  588. package/node_modules/matrix-js-sdk/src/@types/search.ts +0 -2
  589. package/node_modules/matrix-js-sdk/src/@types/spaces.ts +0 -2
  590. package/node_modules/matrix-js-sdk/src/@types/synapse.ts +0 -2
  591. package/node_modules/matrix-js-sdk/src/@types/threepids.ts +2 -2
  592. package/node_modules/matrix-js-sdk/src/@types/type-guards.ts +126 -0
  593. package/node_modules/matrix-js-sdk/src/ToDeviceMessageQueue.ts +0 -2
  594. package/node_modules/matrix-js-sdk/src/autodiscovery.ts +2 -2
  595. package/node_modules/matrix-js-sdk/src/browser-index.ts +4 -4
  596. package/node_modules/matrix-js-sdk/src/client.ts +86 -133
  597. package/node_modules/matrix-js-sdk/src/common-crypto/key-passphrase.ts +1 -2
  598. package/node_modules/matrix-js-sdk/src/crypto/store/base.ts +1 -8
  599. package/node_modules/matrix-js-sdk/src/crypto/store/indexeddb-crypto-store-backend.ts +3 -2
  600. package/node_modules/matrix-js-sdk/src/crypto/store/indexeddb-crypto-store.ts +1 -3
  601. package/node_modules/matrix-js-sdk/src/crypto/store/localStorage-crypto-store.ts +0 -1
  602. package/node_modules/matrix-js-sdk/src/crypto/store/memory-crypto-store.ts +1 -1
  603. package/node_modules/matrix-js-sdk/src/crypto-api/index.ts +1 -1
  604. package/node_modules/matrix-js-sdk/src/crypto-api/keybackup.ts +14 -7
  605. package/node_modules/matrix-js-sdk/src/crypto-api/verification.ts +23 -5
  606. package/node_modules/matrix-js-sdk/src/embedded.ts +34 -16
  607. package/node_modules/matrix-js-sdk/src/feature.ts +0 -3
  608. package/node_modules/matrix-js-sdk/src/filter-component.ts +1 -2
  609. package/node_modules/matrix-js-sdk/src/filter.ts +0 -3
  610. package/node_modules/matrix-js-sdk/src/http-api/fetch.ts +1 -1
  611. package/node_modules/matrix-js-sdk/src/http-api/index.ts +1 -23
  612. package/node_modules/matrix-js-sdk/src/http-api/interface.ts +0 -12
  613. package/node_modules/matrix-js-sdk/src/http-api/refresh.ts +0 -1
  614. package/node_modules/matrix-js-sdk/src/interactive-auth.ts +4 -4
  615. package/node_modules/matrix-js-sdk/src/logger.ts +0 -2
  616. package/node_modules/matrix-js-sdk/src/matrix.ts +1 -1
  617. package/node_modules/matrix-js-sdk/src/matrixrtc/CallMembership.ts +5 -5
  618. package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +73 -6
  619. package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSessionManager.ts +21 -2
  620. package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +9 -6
  621. package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManagerActionScheduler.ts +1 -1
  622. package/node_modules/matrix-js-sdk/src/matrixrtc/RTCEncryptionManager.ts +2 -2
  623. package/node_modules/matrix-js-sdk/src/matrixrtc/ToDeviceKeyTransport.ts +3 -3
  624. package/node_modules/matrix-js-sdk/src/matrixrtc/index.ts +1 -1
  625. package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/rtc.ts +19 -8
  626. package/node_modules/matrix-js-sdk/src/matrixrtc/types.ts +24 -7
  627. package/node_modules/matrix-js-sdk/src/matrixrtc/utils.ts +0 -2
  628. package/node_modules/matrix-js-sdk/src/models/event-timeline-set.ts +3 -3
  629. package/node_modules/matrix-js-sdk/src/models/event.ts +7 -13
  630. package/node_modules/matrix-js-sdk/src/models/invites-ignorer.ts +1 -1
  631. package/node_modules/matrix-js-sdk/src/models/poll.ts +1 -1
  632. package/node_modules/matrix-js-sdk/src/models/read-receipt.ts +1 -1
  633. package/node_modules/matrix-js-sdk/src/models/relations-container.ts +55 -19
  634. package/node_modules/matrix-js-sdk/src/models/relations.ts +1 -1
  635. package/node_modules/matrix-js-sdk/src/models/room-state.ts +0 -3
  636. package/node_modules/matrix-js-sdk/src/models/room.ts +15 -15
  637. package/node_modules/matrix-js-sdk/src/models/thread.ts +51 -6
  638. package/node_modules/matrix-js-sdk/src/oauth/authorize.ts +274 -0
  639. package/node_modules/matrix-js-sdk/src/oauth/discover.ts +102 -0
  640. package/node_modules/matrix-js-sdk/src/{oidc → oauth}/error.ts +8 -7
  641. package/node_modules/matrix-js-sdk/src/oauth/index.ts +297 -0
  642. package/node_modules/matrix-js-sdk/src/oauth/register.ts +166 -0
  643. package/node_modules/matrix-js-sdk/src/oauth/tokenRefresher.ts +77 -0
  644. package/node_modules/matrix-js-sdk/src/pollingCachedValue.ts +184 -0
  645. package/node_modules/matrix-js-sdk/src/pushprocessor.ts +3 -3
  646. package/node_modules/matrix-js-sdk/src/realtime-callbacks.ts +0 -1
  647. package/node_modules/matrix-js-sdk/src/receipt-accumulator.ts +1 -2
  648. package/node_modules/matrix-js-sdk/src/rendezvous/MSC4108SignInWithQR.ts +14 -16
  649. package/node_modules/matrix-js-sdk/src/rendezvous/index.ts +2 -2
  650. package/node_modules/matrix-js-sdk/src/rendezvous/transports/MSC4108RendezvousSession.ts +0 -1
  651. package/node_modules/matrix-js-sdk/src/rtcTransportsCachedValue.ts +40 -0
  652. package/node_modules/matrix-js-sdk/src/rust-crypto/DehydratedDeviceManager.ts +14 -13
  653. package/node_modules/matrix-js-sdk/src/rust-crypto/OutgoingRequestProcessor.ts +0 -1
  654. package/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts +1 -1
  655. package/node_modules/matrix-js-sdk/src/rust-crypto/backup.ts +67 -33
  656. package/node_modules/matrix-js-sdk/src/rust-crypto/device-converter.ts +1 -0
  657. package/node_modules/matrix-js-sdk/src/rust-crypto/index.ts +32 -23
  658. package/node_modules/matrix-js-sdk/src/rust-crypto/libolm_migration.ts +1 -3
  659. package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +3 -6
  660. package/node_modules/matrix-js-sdk/src/scheduler.ts +0 -3
  661. package/node_modules/matrix-js-sdk/src/sliding-sync-sdk.ts +4 -1
  662. package/node_modules/matrix-js-sdk/src/sliding-sync.ts +3 -1
  663. package/node_modules/matrix-js-sdk/src/store/indexeddb-local-backend.ts +1 -1
  664. package/node_modules/matrix-js-sdk/src/store/indexeddb-store-worker.ts +1 -0
  665. package/node_modules/matrix-js-sdk/src/store/indexeddb.ts +0 -2
  666. package/node_modules/matrix-js-sdk/src/store/memory.ts +7 -9
  667. package/node_modules/matrix-js-sdk/src/sync-accumulator.ts +1 -3
  668. package/node_modules/matrix-js-sdk/src/sync.ts +13 -14
  669. package/node_modules/matrix-js-sdk/src/testing.ts +3 -22
  670. package/node_modules/matrix-js-sdk/src/timeline-window.ts +0 -1
  671. package/node_modules/matrix-js-sdk/src/utils/internal/deriveKeys.ts +0 -1
  672. package/node_modules/matrix-js-sdk/src/utils.ts +3 -2
  673. package/node_modules/matrix-js-sdk/src/webrtc/call.ts +6 -6
  674. package/node_modules/matrix-js-sdk/src/webrtc/callEventTypes.ts +0 -5
  675. package/node_modules/matrix-js-sdk/src/webrtc/groupCall.ts +7 -7
  676. package/node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts +1 -1
  677. package/node_modules/matrix-js-sdk/src/webrtc/stats/callStatsReportGatherer.ts +2 -2
  678. package/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts +1 -1
  679. package/node_modules/matrix-js-sdk/src/wellKnownCachedValue.ts +34 -0
  680. package/node_modules/music-metadata/LICENSE.txt +9 -9
  681. package/node_modules/music-metadata/README.md +878 -878
  682. package/node_modules/music-metadata/lib/ParseError.d.ts +1 -1
  683. package/node_modules/music-metadata/lib/ParseError.js +1 -1
  684. package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +1 -4
  685. package/node_modules/music-metadata/lib/asf/AsfObject.js +66 -30
  686. package/node_modules/music-metadata/lib/asf/AsfParser.d.ts +5 -1
  687. package/node_modules/music-metadata/lib/asf/AsfParser.js +94 -25
  688. package/node_modules/music-metadata/lib/dsf/DsfChunk.js +2 -2
  689. package/node_modules/music-metadata/lib/dsf/DsfParser.js +38 -13
  690. package/node_modules/music-metadata/lib/mp4/AtomToken.js +2 -1
  691. package/node_modules/music-metadata/lib/mp4/MP4Parser.js +34 -7
  692. package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.d.ts +7 -0
  693. package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +13 -0
  694. package/node_modules/music-metadata/lib/riff/RiffChunk.js +1 -1
  695. package/node_modules/music-metadata/node_modules/content-type/README.md +2 -0
  696. package/node_modules/music-metadata/node_modules/content-type/dist/index.d.ts +20 -0
  697. package/node_modules/music-metadata/node_modules/content-type/dist/index.js +20 -14
  698. package/node_modules/music-metadata/node_modules/content-type/dist/index.js.map +1 -1
  699. package/node_modules/music-metadata/node_modules/content-type/package.json +1 -1
  700. package/node_modules/music-metadata/node_modules/file-type/package.json +1 -1
  701. package/node_modules/music-metadata/node_modules/file-type/readme.md +3 -0
  702. package/node_modules/music-metadata/node_modules/file-type/source/detectors/zip.js +6 -1
  703. package/node_modules/music-metadata/node_modules/file-type/source/index.d.ts +3 -0
  704. package/node_modules/music-metadata/node_modules/file-type/source/index.js +25 -13
  705. package/node_modules/music-metadata/package.json +156 -156
  706. package/node_modules/typebox/build/format/date.d.mts +1 -1
  707. package/node_modules/typebox/build/format/date.mjs +1 -1
  708. package/node_modules/typebox/build/format/date_time.d.mts +2 -2
  709. package/node_modules/typebox/build/format/date_time.mjs +3 -3
  710. package/node_modules/typebox/build/format/email.d.mts +1 -1
  711. package/node_modules/typebox/build/format/email.mjs +2 -2
  712. package/node_modules/typebox/build/format/hostname.mjs +2 -10
  713. package/node_modules/typebox/build/format/idn_email.d.mts +1 -1
  714. package/node_modules/typebox/build/format/idn_email.mjs +3 -3
  715. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -0
  716. package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
  717. package/node_modules/typebox/build/format/idna/format/bidi.d.mts +3 -0
  718. package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
  719. package/node_modules/typebox/build/format/idna/format/puny.d.mts +3 -0
  720. package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
  721. package/node_modules/typebox/build/format/idna/hostname.d.mts +1 -0
  722. package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
  723. package/node_modules/typebox/build/format/idna/idn-hostname.d.mts +1 -0
  724. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +41 -0
  725. package/node_modules/typebox/build/format/idna/index.d.mts +2 -0
  726. package/node_modules/typebox/build/format/idna/index.mjs +2 -0
  727. package/node_modules/typebox/build/format/idna/label/ascii.d.mts +1 -0
  728. package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
  729. package/node_modules/typebox/build/format/idna/label/puny.d.mts +1 -0
  730. package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
  731. package/node_modules/typebox/build/format/idna/label/unicode.d.mts +1 -0
  732. package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
  733. package/node_modules/typebox/build/format/idna/pattern/pattern.d.mts +30 -0
  734. package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
  735. package/node_modules/typebox/build/format/ipv4.d.mts +0 -1
  736. package/node_modules/typebox/build/format/ipv4.mjs +2 -32
  737. package/node_modules/typebox/build/format/ipv6.mjs +2 -61
  738. package/node_modules/typebox/build/format/iri.d.mts +2 -2
  739. package/node_modules/typebox/build/format/iri.mjs +26 -8
  740. package/node_modules/typebox/build/format/iri_reference.d.mts +2 -2
  741. package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
  742. package/node_modules/typebox/build/format/regex.d.mts +1 -2
  743. package/node_modules/typebox/build/format/regex.mjs +2 -6
  744. package/node_modules/typebox/build/format/time.d.mts +2 -2
  745. package/node_modules/typebox/build/format/time.mjs +19 -14
  746. package/node_modules/typebox/build/format/uri.d.mts +1 -1
  747. package/node_modules/typebox/build/format/uri.mjs +3 -130
  748. package/node_modules/typebox/build/format/uri_reference.d.mts +1 -1
  749. package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
  750. package/node_modules/typebox/build/format/uri_template.d.mts +2 -3
  751. package/node_modules/typebox/build/format/uri_template.mjs +4 -5
  752. package/node_modules/typebox/build/format/url.d.mts +3 -3
  753. package/node_modules/typebox/build/format/url.mjs +4 -5
  754. package/node_modules/typebox/build/guard/emit.d.mts +3 -1
  755. package/node_modules/typebox/build/guard/emit.mjs +12 -5
  756. package/node_modules/typebox/build/guard/guard.d.mts +8 -2
  757. package/node_modules/typebox/build/guard/guard.mjs +25 -4
  758. package/node_modules/typebox/build/guard/string.d.mts +2 -2
  759. package/node_modules/typebox/build/guard/string.mjs +7 -7
  760. package/node_modules/typebox/build/schema/engine/_context.mjs +3 -3
  761. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -2
  762. package/node_modules/typebox/build/schema/engine/_regexp.d.mts +2 -0
  763. package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
  764. package/node_modules/typebox/build/schema/engine/_stack.mjs +12 -13
  765. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
  766. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +4 -3
  767. package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
  768. package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
  769. package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
  770. package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
  771. package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
  772. package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
  773. package/node_modules/typebox/build/schema/engine/oneOf.mjs +7 -6
  774. package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
  775. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
  776. package/node_modules/typebox/build/schema/engine/ref.mjs +1 -7
  777. package/node_modules/typebox/build/schema/engine/schema.mjs +13 -4
  778. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  779. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
  780. package/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
  781. package/node_modules/typebox/build/schema/static/propertyNames.d.mts +5 -0
  782. package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
  783. package/node_modules/typebox/build/schema/static/schema.d.mts +3 -0
  784. package/node_modules/typebox/build/schema/types/index.d.mts +0 -2
  785. package/node_modules/typebox/build/schema/types/index.mjs +0 -2
  786. package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
  787. package/node_modules/typebox/build/system/memory/discard.mjs +6 -5
  788. package/node_modules/typebox/build/system/settings/settings.d.mts +9 -0
  789. package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
  790. package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +6 -1
  791. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
  792. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
  793. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +5 -5
  794. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
  795. package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +6 -10
  796. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
  797. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +7 -4
  798. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
  799. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +4 -20
  800. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
  801. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +4 -4
  802. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
  803. package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +1 -1
  804. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
  805. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -2
  806. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
  807. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
  808. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +1 -1
  809. package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
  810. package/node_modules/typebox/build/type/engine/priority/priority.d.mts +2 -2
  811. package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
  812. package/node_modules/typebox/build/type/script/mapping.d.mts +32 -29
  813. package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
  814. package/node_modules/typebox/build/type/script/parser.d.mts +19 -25
  815. package/node_modules/typebox/build/type/script/parser.mjs +27 -23
  816. package/node_modules/typebox/build/value/errors/errors.d.mts +2 -2
  817. package/node_modules/typebox/build/value/errors/errors.mjs +1 -1
  818. package/node_modules/typebox/package.json +27 -27
  819. package/node_modules/typebox/readme.md +79 -82
  820. package/openclaw.plugin.json +16 -1
  821. package/package.json +10 -10
  822. package/dist/env-auth-MVS-Vv41.js +0 -64
  823. package/dist/file-sync-store-DjskBX2o.js +0 -436
  824. package/dist/media-text-Dh-DpTc3.js +0 -149
  825. package/dist/probe.runtime-NIJZYqc2.js +0 -2
  826. package/dist/recovery-key-store-CognuDys.js +0 -276
  827. package/dist/runtime-api-BGO16Fu8.js +0 -21
  828. package/dist/timeout-abort-signal-DMrgRFIy.js +0 -2
  829. package/node_modules/markdown-it/dist/index.cjs.js.map +0 -1
  830. package/node_modules/markdown-it/dist/markdown-it.js +0 -3975
  831. package/node_modules/markdown-it/dist/markdown-it.js.map +0 -1
  832. package/node_modules/markdown-it/dist/markdown-it.min.js +0 -3
  833. package/node_modules/markdown-it/dist/markdown-it.min.js.map +0 -1
  834. package/node_modules/markdown-it/index.mjs +0 -1
  835. package/node_modules/markdown-it/lib/common/html_blocks.mjs +0 -67
  836. package/node_modules/markdown-it/lib/common/html_re.mjs +0 -25
  837. package/node_modules/markdown-it/lib/common/utils.mjs +0 -324
  838. package/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
  839. package/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -77
  840. package/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +0 -49
  841. package/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -66
  842. package/node_modules/markdown-it/lib/index.mjs +0 -565
  843. package/node_modules/markdown-it/lib/parser_block.mjs +0 -134
  844. package/node_modules/markdown-it/lib/parser_core.mjs +0 -62
  845. package/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
  846. package/node_modules/markdown-it/lib/presets/commonmark.mjs +0 -88
  847. package/node_modules/markdown-it/lib/presets/default.mjs +0 -47
  848. package/node_modules/markdown-it/lib/presets/zero.mjs +0 -70
  849. package/node_modules/markdown-it/lib/renderer.mjs +0 -322
  850. package/node_modules/markdown-it/lib/ruler.mjs +0 -340
  851. package/node_modules/markdown-it/lib/rules_block/blockquote.mjs +0 -209
  852. package/node_modules/markdown-it/lib/rules_block/code.mjs +0 -30
  853. package/node_modules/markdown-it/lib/rules_block/fence.mjs +0 -94
  854. package/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -51
  855. package/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -40
  856. package/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -80
  857. package/node_modules/markdown-it/lib/rules_block/lheading.mjs +0 -85
  858. package/node_modules/markdown-it/lib/rules_block/list.mjs +0 -331
  859. package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -48
  860. package/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -212
  861. package/node_modules/markdown-it/lib/rules_block/state_block.mjs +0 -220
  862. package/node_modules/markdown-it/lib/rules_block/table.mjs +0 -228
  863. package/node_modules/markdown-it/lib/rules_core/block.mjs +0 -13
  864. package/node_modules/markdown-it/lib/rules_core/inline.mjs +0 -11
  865. package/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -134
  866. package/node_modules/markdown-it/lib/rules_core/normalize.mjs +0 -17
  867. package/node_modules/markdown-it/lib/rules_core/replacements.mjs +0 -101
  868. package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +0 -209
  869. package/node_modules/markdown-it/lib/rules_core/state_core.mjs +0 -17
  870. package/node_modules/markdown-it/lib/rules_core/text_join.mjs +0 -43
  871. package/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -72
  872. package/node_modules/markdown-it/lib/rules_inline/backticks.mjs +0 -60
  873. package/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +0 -124
  874. package/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +0 -123
  875. package/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
  876. package/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -83
  877. package/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +0 -38
  878. package/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -50
  879. package/node_modules/markdown-it/lib/rules_inline/image.mjs +0 -138
  880. package/node_modules/markdown-it/lib/rules_inline/link.mjs +0 -139
  881. package/node_modules/markdown-it/lib/rules_inline/linkify.mjs +0 -63
  882. package/node_modules/markdown-it/lib/rules_inline/newline.mjs +0 -42
  883. package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +0 -154
  884. package/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +0 -127
  885. package/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -86
  886. package/node_modules/markdown-it/lib/token.mjs +0 -191
  887. package/node_modules/markdown-it/node_modules/argparse/CHANGELOG.md +0 -216
  888. package/node_modules/markdown-it/node_modules/entities/lib/decode.d.ts +0 -211
  889. package/node_modules/markdown-it/node_modules/entities/lib/decode.d.ts.map +0 -1
  890. package/node_modules/markdown-it/node_modules/entities/lib/decode.js +0 -536
  891. package/node_modules/markdown-it/node_modules/entities/lib/decode.js.map +0 -1
  892. package/node_modules/markdown-it/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
  893. package/node_modules/markdown-it/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
  894. package/node_modules/markdown-it/node_modules/entities/lib/decode_codepoint.js +0 -76
  895. package/node_modules/markdown-it/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  896. package/node_modules/markdown-it/node_modules/entities/lib/encode.d.ts +0 -22
  897. package/node_modules/markdown-it/node_modules/entities/lib/encode.d.ts.map +0 -1
  898. package/node_modules/markdown-it/node_modules/entities/lib/encode.js +0 -77
  899. package/node_modules/markdown-it/node_modules/entities/lib/encode.js.map +0 -1
  900. package/node_modules/markdown-it/node_modules/entities/lib/escape.d.ts.map +0 -1
  901. package/node_modules/markdown-it/node_modules/entities/lib/escape.js +0 -122
  902. package/node_modules/markdown-it/node_modules/entities/lib/escape.js.map +0 -1
  903. package/node_modules/markdown-it/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
  904. package/node_modules/markdown-it/node_modules/entities/lib/esm/decode.js.map +0 -1
  905. package/node_modules/markdown-it/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
  906. package/node_modules/markdown-it/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
  907. package/node_modules/markdown-it/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
  908. package/node_modules/markdown-it/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  909. package/node_modules/markdown-it/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
  910. package/node_modules/markdown-it/node_modules/entities/lib/esm/encode.js +0 -69
  911. package/node_modules/markdown-it/node_modules/entities/lib/esm/encode.js.map +0 -1
  912. package/node_modules/markdown-it/node_modules/entities/lib/esm/escape.d.ts +0 -43
  913. package/node_modules/markdown-it/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
  914. package/node_modules/markdown-it/node_modules/entities/lib/esm/escape.js +0 -116
  915. package/node_modules/markdown-it/node_modules/entities/lib/esm/escape.js.map +0 -1
  916. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  917. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  918. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  919. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  920. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  921. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  922. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  923. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  924. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  925. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
  926. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
  927. package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  928. package/node_modules/markdown-it/node_modules/entities/lib/esm/index.d.ts +0 -96
  929. package/node_modules/markdown-it/node_modules/entities/lib/esm/index.d.ts.map +0 -1
  930. package/node_modules/markdown-it/node_modules/entities/lib/esm/index.js +0 -99
  931. package/node_modules/markdown-it/node_modules/entities/lib/esm/index.js.map +0 -1
  932. package/node_modules/markdown-it/node_modules/entities/lib/esm/package.json +0 -1
  933. package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  934. package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
  935. package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  936. package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  937. package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  938. package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
  939. package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  940. package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  941. package/node_modules/markdown-it/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  942. package/node_modules/markdown-it/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
  943. package/node_modules/markdown-it/node_modules/entities/lib/generated/encode-html.js +0 -12
  944. package/node_modules/markdown-it/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  945. package/node_modules/markdown-it/node_modules/entities/lib/index.d.ts.map +0 -1
  946. package/node_modules/markdown-it/node_modules/entities/lib/index.js +0 -126
  947. package/node_modules/markdown-it/node_modules/entities/lib/index.js.map +0 -1
  948. package/node_modules/markdown-it/node_modules/linkify-it/index.mjs +0 -646
  949. package/node_modules/markdown-it/node_modules/linkify-it/lib/re.mjs +0 -193
  950. package/node_modules/markdown-it/node_modules/uc.micro/categories/Cc/regex.mjs +0 -1
  951. package/node_modules/markdown-it/node_modules/uc.micro/categories/Cf/regex.mjs +0 -1
  952. package/node_modules/markdown-it/node_modules/uc.micro/categories/P/regex.mjs +0 -1
  953. package/node_modules/markdown-it/node_modules/uc.micro/categories/S/regex.mjs +0 -1
  954. package/node_modules/markdown-it/node_modules/uc.micro/categories/Z/regex.mjs +0 -1
  955. package/node_modules/markdown-it/node_modules/uc.micro/index.mjs +0 -8
  956. package/node_modules/markdown-it/node_modules/uc.micro/properties/Any/regex.mjs +0 -1
  957. package/node_modules/matrix-js-sdk/lib/oidc/authorize.d.ts +0 -157
  958. package/node_modules/matrix-js-sdk/lib/oidc/authorize.d.ts.map +0 -1
  959. package/node_modules/matrix-js-sdk/lib/oidc/authorize.js +0 -365
  960. package/node_modules/matrix-js-sdk/lib/oidc/authorize.js.map +0 -1
  961. package/node_modules/matrix-js-sdk/lib/oidc/discovery.d.ts +0 -22
  962. package/node_modules/matrix-js-sdk/lib/oidc/discovery.d.ts.map +0 -1
  963. package/node_modules/matrix-js-sdk/lib/oidc/discovery.js +0 -65
  964. package/node_modules/matrix-js-sdk/lib/oidc/discovery.js.map +0 -1
  965. package/node_modules/matrix-js-sdk/lib/oidc/error.d.ts +0 -18
  966. package/node_modules/matrix-js-sdk/lib/oidc/error.d.ts.map +0 -1
  967. package/node_modules/matrix-js-sdk/lib/oidc/error.js +0 -35
  968. package/node_modules/matrix-js-sdk/lib/oidc/error.js.map +0 -1
  969. package/node_modules/matrix-js-sdk/lib/oidc/index.d.ts +0 -16
  970. package/node_modules/matrix-js-sdk/lib/oidc/index.d.ts.map +0 -1
  971. package/node_modules/matrix-js-sdk/lib/oidc/index.js +0 -30
  972. package/node_modules/matrix-js-sdk/lib/oidc/index.js.map +0 -1
  973. package/node_modules/matrix-js-sdk/lib/oidc/register.d.ts +0 -70
  974. package/node_modules/matrix-js-sdk/lib/oidc/register.d.ts.map +0 -1
  975. package/node_modules/matrix-js-sdk/lib/oidc/register.js +0 -134
  976. package/node_modules/matrix-js-sdk/lib/oidc/register.js.map +0 -1
  977. package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.d.ts +0 -91
  978. package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.d.ts.map +0 -1
  979. package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.js +0 -173
  980. package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.js.map +0 -1
  981. package/node_modules/matrix-js-sdk/lib/oidc/validate.d.ts +0 -78
  982. package/node_modules/matrix-js-sdk/lib/oidc/validate.d.ts.map +0 -1
  983. package/node_modules/matrix-js-sdk/lib/oidc/validate.js +0 -181
  984. package/node_modules/matrix-js-sdk/lib/oidc/validate.js.map +0 -1
  985. package/node_modules/matrix-js-sdk/node_modules/jwt-decode/LICENSE +0 -21
  986. package/node_modules/matrix-js-sdk/node_modules/jwt-decode/README.md +0 -134
  987. package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/cjs/index.d.ts +0 -23
  988. package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/cjs/index.js +0 -62
  989. package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/cjs/package.json +0 -1
  990. package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/esm/index.d.ts +0 -23
  991. package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/esm/index.js +0 -57
  992. package/node_modules/matrix-js-sdk/node_modules/jwt-decode/package.json +0 -81
  993. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/LICENSE +0 -202
  994. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/README.md +0 -87
  995. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.js +0 -3751
  996. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.js.map +0 -7
  997. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.min.js +0 -2
  998. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.min.js.map +0 -7
  999. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js +0 -3671
  1000. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js.map +0 -7
  1001. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/esm/package.json +0 -4
  1002. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/types/oidc-client-ts.d.ts +0 -2003
  1003. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/types/tsdoc-metadata.json +0 -11
  1004. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/umd/oidc-client-ts.js +0 -3719
  1005. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/umd/oidc-client-ts.js.map +0 -7
  1006. package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/package.json +0 -75
  1007. package/node_modules/matrix-js-sdk/src/oidc/authorize.ts +0 -431
  1008. package/node_modules/matrix-js-sdk/src/oidc/discovery.ts +0 -67
  1009. package/node_modules/matrix-js-sdk/src/oidc/index.ts +0 -33
  1010. package/node_modules/matrix-js-sdk/src/oidc/register.ts +0 -168
  1011. package/node_modules/matrix-js-sdk/src/oidc/tokenRefresher.ts +0 -184
  1012. package/node_modules/matrix-js-sdk/src/oidc/validate.ts +0 -265
  1013. package/node_modules/typebox/build/format/_idna.d.mts +0 -2
  1014. package/node_modules/typebox/build/format/_idna.mjs +0 -246
  1015. package/node_modules/typebox/build/format/_puny.d.mts +0 -1
  1016. package/node_modules/typebox/build/format/_puny.mjs +0 -77
  1017. package/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -3
  1018. package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
  1019. package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +0 -9
  1020. package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
  1021. package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +0 -9
  1022. package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
@@ -1,2003 +0,0 @@
1
- /**
2
- * @public
3
- */
4
- export declare type AccessTokenCallback = (...ev: unknown[]) => (Promise<void> | void);
5
-
6
- /**
7
- * @public
8
- */
9
- export declare class AccessTokenEvents {
10
- protected readonly _logger: Logger;
11
- private readonly _expiringTimer;
12
- private readonly _expiredTimer;
13
- private readonly _expiringNotificationTimeInSeconds;
14
- constructor(args: {
15
- expiringNotificationTimeInSeconds: number;
16
- });
17
- load(container: User): Promise<void>;
18
- unload(): Promise<void>;
19
- /**
20
- * Add callback: Raised prior to the access token expiring.
21
- */
22
- addAccessTokenExpiring(cb: AccessTokenCallback): () => void;
23
- /**
24
- * Remove callback: Raised prior to the access token expiring.
25
- */
26
- removeAccessTokenExpiring(cb: AccessTokenCallback): void;
27
- /**
28
- * Add callback: Raised after the access token has expired.
29
- */
30
- addAccessTokenExpired(cb: AccessTokenCallback): () => void;
31
- /**
32
- * Remove callback: Raised after the access token has expired.
33
- */
34
- removeAccessTokenExpired(cb: AccessTokenCallback): void;
35
- }
36
-
37
- /**
38
- * @public
39
- */
40
- export declare interface AsyncStorage {
41
- /** Returns the number of key/value pairs. */
42
- readonly length: Promise<number>;
43
- /**
44
- * Removes all key/value pairs, if there are any.
45
- *
46
- * Dispatches a storage event on Window objects holding an equivalent Storage object.
47
- */
48
- clear(): Promise<void>;
49
- /** Returns the current value associated with the given key, or null if the given key does not exist. */
50
- getItem(key: string): Promise<string | null>;
51
- /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */
52
- key(index: number): Promise<string | null>;
53
- /**
54
- * Removes the key/value pair with the given key, if a key/value pair with the given key exists.
55
- *
56
- * Dispatches a storage event on Window objects holding an equivalent Storage object.
57
- */
58
- removeItem(key: string): Promise<void>;
59
- /**
60
- * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
61
- *
62
- * Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
63
- *
64
- * Dispatches a storage event on Window objects holding an equivalent Storage object.
65
- */
66
- setItem(key: string, value: string): Promise<void>;
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- export declare class CheckSessionIFrame {
73
- private _callback;
74
- private _client_id;
75
- private _intervalInSeconds;
76
- private _stopOnError;
77
- private readonly _logger;
78
- private _frame_origin;
79
- private _frame;
80
- private _timer;
81
- private _session_state;
82
- constructor(_callback: () => Promise<void>, _client_id: string, url: string, _intervalInSeconds: number, _stopOnError: boolean);
83
- load(): Promise<void>;
84
- private _message;
85
- start(session_state: string): void;
86
- stop(): void;
87
- }
88
-
89
- /**
90
- * @internal
91
- */
92
- declare class ClaimsService {
93
- protected readonly _settings: OidcClientSettingsStore;
94
- protected readonly _logger: Logger;
95
- constructor(_settings: OidcClientSettingsStore);
96
- filterProtocolClaims(claims: UserProfile): UserProfile;
97
- mergeClaims(claims1: JwtClaims, claims2: JwtClaims): UserProfile;
98
- }
99
-
100
- /**
101
- * @public
102
- */
103
- export declare interface CreateSigninRequestArgs extends Omit<SigninRequestCreateArgs, "url" | "authority" | "client_id" | "redirect_uri" | "response_type" | "scope" | "state_data"> {
104
- redirect_uri?: string;
105
- response_type?: string;
106
- scope?: string;
107
- dpopJkt?: string;
108
- /** custom "state", which can be used by a caller to have "data" round tripped */
109
- state?: unknown;
110
- }
111
-
112
- /**
113
- * @public
114
- */
115
- export declare type CreateSignoutRequestArgs = Omit<SignoutRequestArgs, "url" | "state_data"> & {
116
- /** custom "state", which can be used by a caller to have "data" round tripped */
117
- state?: unknown;
118
- };
119
-
120
- /**
121
- * Optional DPoP settings
122
- * @public
123
- */
124
- declare interface DPoPSettings {
125
- bind_authorization_code?: boolean;
126
- store: DPoPStore;
127
- }
128
-
129
- /**
130
- * @public
131
- */
132
- export declare class DPoPState {
133
- readonly keys: CryptoKeyPair;
134
- nonce?: string | undefined;
135
- constructor(keys: CryptoKeyPair, nonce?: string | undefined);
136
- }
137
-
138
- /**
139
- * @public
140
- */
141
- declare interface DPoPStore {
142
- set(key: string, value: DPoPState): Promise<void>;
143
- get(key: string): Promise<DPoPState>;
144
- remove(key: string): Promise<DPoPState>;
145
- getAllKeys(): Promise<string[]>;
146
- }
147
-
148
- /**
149
- * Error class thrown in case of an authentication error.
150
- *
151
- * @public
152
- * @see https://openid.net/specs/openid-connect-core-1_0.html#AuthError
153
- */
154
- export declare class ErrorResponse extends Error {
155
- /** The x-www-form-urlencoded request body sent to the authority server */
156
- readonly form?: URLSearchParams | undefined;
157
- /** Marker to detect class: "ErrorResponse" */
158
- readonly name: string;
159
- /** An error code string that can be used to classify the types of errors that occur and to respond to errors. */
160
- readonly error: string | null;
161
- /** additional information that can help a developer identify the cause of the error.*/
162
- readonly error_description: string | null;
163
- /**
164
- * URI identifying a human-readable web page with information about the error, used to provide the client
165
- developer with additional information about the error.
166
- */
167
- readonly error_uri: string | null;
168
- /** custom state data set during the initial signin request */
169
- state?: unknown;
170
- readonly session_state: string | null;
171
- url_state?: string;
172
- constructor(args: {
173
- error?: string | null;
174
- error_description?: string | null;
175
- error_uri?: string | null;
176
- userState?: unknown;
177
- session_state?: string | null;
178
- url_state?: string;
179
- },
180
- /** The x-www-form-urlencoded request body sent to the authority server */
181
- form?: URLSearchParams | undefined);
182
- }
183
-
184
- /**
185
- * Error class thrown in case of network timeouts (e.g IFrame time out).
186
- *
187
- * @public
188
- */
189
- export declare class ErrorTimeout extends Error {
190
- /** Marker to detect class: "ErrorTimeout" */
191
- readonly name: string;
192
- constructor(message?: string);
193
- }
194
-
195
- /**
196
- * @internal
197
- */
198
- declare interface ExchangeCodeArgs {
199
- client_id?: string;
200
- client_secret?: string;
201
- redirect_uri?: string;
202
- grant_type?: string;
203
- code: string;
204
- code_verifier?: string;
205
- extraHeaders?: Record<string, ExtraHeader>;
206
- }
207
-
208
- /**
209
- * @internal
210
- */
211
- declare interface ExchangeCredentialsArgs {
212
- client_id?: string;
213
- client_secret?: string;
214
- grant_type?: string;
215
- scope?: string;
216
- username: string;
217
- password: string;
218
- }
219
-
220
- /**
221
- * @internal
222
- */
223
- declare interface ExchangeRefreshTokenArgs {
224
- client_id?: string;
225
- client_secret?: string;
226
- redirect_uri?: string;
227
- grant_type?: string;
228
- refresh_token: string;
229
- scope?: string;
230
- resource?: string | string[];
231
- timeoutInSeconds?: number;
232
- extraHeaders?: Record<string, ExtraHeader>;
233
- }
234
-
235
- /**
236
- * @public
237
- */
238
- export declare type ExtraHeader = string | (() => string);
239
-
240
- /**
241
- * @public
242
- */
243
- export declare type ExtraSigninRequestArgs = Pick<CreateSigninRequestArgs, "nonce" | "extraQueryParams" | "extraTokenParams" | "state" | "redirect_uri" | "prompt" | "acr_values" | "login_hint" | "scope" | "max_age" | "ui_locales" | "resource" | "url_state">;
244
-
245
- /**
246
- * @public
247
- */
248
- export declare type ExtraSignInSilentArgs = {
249
- forceIframeAuth?: boolean;
250
- };
251
-
252
- /**
253
- * @public
254
- */
255
- export declare type ExtraSignoutRequestArgs = Pick<CreateSignoutRequestArgs, "extraQueryParams" | "state" | "id_token_hint" | "post_logout_redirect_uri" | "url_state">;
256
-
257
- /**
258
- * Standard ID Token claims.
259
- *
260
- * @public
261
- * @see https://openid.net/specs/openid-connect-core-1_0.html#IDToken
262
- */
263
- export declare interface IdTokenClaims extends Mandatory<OidcStandardClaims, "sub">, Mandatory<JwtClaims, "iss" | "sub" | "aud" | "exp" | "iat">, Pick<JwtClaims, "nbf" | "jti"> {
264
- [claim: string]: unknown;
265
- /** Time when the End-User authentication occurred. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. When a max_age request is made or when auth_time is requested as an Essential Claim, then this Claim is REQUIRED; otherwise, its inclusion is OPTIONAL. (The auth_time Claim semantically corresponds to the OpenID 2.0 PAPE [OpenID.PAPE] auth_time response parameter.) */
266
- auth_time?: number;
267
- /** String value used to associate a Client session with an ID Token, and to mitigate replay attacks. The value is passed through unmodified from the Authentication Request to the ID Token. If present in the ID Token, Clients MUST verify that the nonce Claim Value is equal to the value of the nonce parameter sent in the Authentication Request. If present in the Authentication Request, Authorization Servers MUST include a nonce Claim in the ID Token with the Claim Value being the nonce value sent in the Authentication Request. Authorization Servers SHOULD perform no other processing on nonce values used. The nonce value is a case sensitive string. */
268
- nonce?: string;
269
- /** Authentication Context Class Reference. String specifying an Authentication Context Class Reference value that identifies the Authentication Context Class that the authentication performed satisfied. The value "0" indicates the End-User authentication did not meet the requirements of ISO/IEC 29115 [ISO29115] level 1. Authentication using a long-lived browser cookie, for instance, is one example where the use of "level 0" is appropriate. Authentications with level 0 SHOULD NOT be used to authorize access to any resource of any monetary value. (This corresponds to the OpenID 2.0 PAPE [OpenID.PAPE] nist_auth_level 0.) An absolute URI or an RFC 6711 [RFC6711] registered name SHOULD be used as the acr value; registered names MUST NOT be used with a different meaning than that which is registered. Parties using this claim will need to agree upon the meanings of the values used, which may be context-specific. The acr value is a case sensitive string. */
270
- acr?: string;
271
- /** Authentication Methods References. JSON array of strings that are identifiers for authentication methods used in the authentication. For instance, values might indicate that both password and OTP authentication methods were used. The definition of particular values to be used in the amr Claim is beyond the scope of this specification. Parties using this claim will need to agree upon the meanings of the values used, which may be context-specific. The amr value is an array of case sensitive strings. */
272
- amr?: unknown;
273
- /** Authorized party - the party to which the ID Token was issued. If present, it MUST contain the OAuth 2.0 Client ID of this party. This Claim is only needed when the ID Token has a single audience value and that audience is different than the authorized party. It MAY be included even when the authorized party is the same as the sole audience. The azp value is a case sensitive string containing a StringOrURI value. */
274
- azp?: string;
275
- /**
276
- * Session ID - String identifier for a Session. This represents a Session of a User Agent or device for a logged-in End-User at an RP. Different sid values are used to identify distinct sessions at an OP. The sid value need only be unique in the context of a particular issuer. Its contents are opaque to the RP. Its syntax is the same as an OAuth 2.0 Client Identifier.
277
- * @see https://openid.net/specs/openid-connect-frontchannel-1_0.html#OPLogout
278
- * */
279
- sid?: string;
280
- }
281
-
282
- /**
283
- * @public
284
- */
285
- export declare interface IFrameWindowParams {
286
- silentRequestTimeoutInSeconds?: number;
287
- }
288
-
289
- /**
290
- * Native interface
291
- *
292
- * @public
293
- */
294
- export declare interface ILogger {
295
- debug(...args: unknown[]): void;
296
- info(...args: unknown[]): void;
297
- warn(...args: unknown[]): void;
298
- error(...args: unknown[]): void;
299
- }
300
-
301
- /**
302
- * @public
303
- */
304
- export declare interface INavigator {
305
- prepare(params: unknown): Promise<IWindow>;
306
- callback(url: string, params?: unknown): Promise<void>;
307
- }
308
-
309
- /**
310
- * Provides a default implementation of the DPoP store using IndexedDB.
311
- *
312
- * @public
313
- */
314
- export declare class IndexedDbDPoPStore implements DPoPStore {
315
- readonly _dbName: string;
316
- readonly _storeName: string;
317
- set(key: string, value: DPoPState): Promise<void>;
318
- get(key: string): Promise<DPoPState>;
319
- remove(key: string): Promise<DPoPState>;
320
- getAllKeys(): Promise<string[]>;
321
- promisifyRequest<T = undefined>(request: IDBRequest<T> | IDBTransaction): Promise<T>;
322
- createStore<T>(dbName: string, storeName: string): Promise<(txMode: IDBTransactionMode, callback: (store: IDBObjectStore) => T | PromiseLike<T>) => Promise<T>>;
323
- }
324
-
325
- /**
326
- * @public
327
- */
328
- export declare class InMemoryWebStorage implements Storage {
329
- private readonly _logger;
330
- private _data;
331
- clear(): void;
332
- getItem(key: string): string;
333
- setItem(key: string, value: string): void;
334
- removeItem(key: string): void;
335
- get length(): number;
336
- key(index: number): string;
337
- }
338
-
339
- /**
340
- * @public
341
- */
342
- export declare interface IWindow {
343
- navigate(params: NavigateParams): Promise<NavigateResponse>;
344
- close(): void;
345
- }
346
-
347
- /**
348
- * Standard JWT claims.
349
- *
350
- * @public
351
- * @see https://datatracker.ietf.org/doc/html/rfc7519#section-4.1
352
- */
353
- export declare interface JwtClaims {
354
- [claim: string]: unknown;
355
- /** The "iss" (issuer) claim identifies the principal that issued the JWT. The processing of this claim is generally application specific. The "iss" value is a case-sensitive string containing a StringOrURI value. */
356
- iss?: string;
357
- /** The "sub" (subject) claim identifies the principal that is the subject of the JWT. The claims in a JWT are normally statements about the subject. The subject value MUST either be scoped to be locally unique in the context of the issuer or be globally unique. The processing of this claim is generally application specific. The "sub" value is a case-sensitive string containing a StringOrURI value. */
358
- sub?: string;
359
- /** The "aud" (audience) claim identifies the recipients that the JWT is intended for. Each principal intended to process the JWT MUST identify itself with a value in the audience claim. If the principal processing the claim does not identify itself with a value in the "aud" claim when this claim is present, then the JWT MUST be rejected. In the general case, the "aud" value is an array of case-sensitive strings, each containing a StringOrURI value. In the special case when the JWT has one audience, the "aud" value MAY be a single case-sensitive string containing a StringOrURI value. The interpretation of audience values is generally application specific. */
360
- aud?: string | string[];
361
- /** The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be accepted for processing. The processing of the "exp" claim requires that the current date/time MUST be before the expiration date/time listed in the "exp" claim. Implementers MAY provide for some small leeway, usually no more than a few minutes, to account for clock skew. Its value MUST be a number containing a NumericDate value. */
362
- exp?: number;
363
- /** The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing. The processing of the "nbf" claim requires that the current date/time MUST be after or equal to the not-before date/time listed in the "nbf" claim. Implementers MAY provide for some small leeway, usually no more than a few minutes, to account for clock skew. Its value MUST be a number containing a NumericDate value. */
364
- nbf?: number;
365
- /** The "iat" (issued at) claim identifies the time at which the JWT was issued. This claim can be used to determine the age of the JWT. Its value MUST be a number containing a NumericDate value. */
366
- iat?: number;
367
- /** The "jti" (JWT ID) claim provides a unique identifier for the JWT. The identifier value MUST be assigned in a manner that ensures that there is a negligible probability that the same value will be accidentally assigned to a different data object; if the application uses multiple issuers, collisions MUST be prevented among values produced by different issuers as well. The "jti" claim can be used to prevent the JWT from being replayed. The "jti" value is a case-sensitive string. */
368
- jti?: string;
369
- }
370
-
371
- /**
372
- * Log levels
373
- *
374
- * @public
375
- */
376
- export declare enum Log {
377
- NONE = 0,
378
- ERROR = 1,
379
- WARN = 2,
380
- INFO = 3,
381
- DEBUG = 4
382
- }
383
-
384
- /**
385
- * Log manager
386
- *
387
- * @public
388
- */
389
- export declare namespace Log {
390
- export function reset(): void;
391
- export function setLevel(value: Log): void;
392
- export function setLogger(value: ILogger): void;
393
- }
394
-
395
- /**
396
- * Internal logger instance
397
- *
398
- * @public
399
- */
400
- export declare class Logger {
401
- private _name;
402
- private _method?;
403
- constructor(_name: string);
404
- debug(...args: unknown[]): void;
405
- info(...args: unknown[]): void;
406
- warn(...args: unknown[]): void;
407
- error(...args: unknown[]): void;
408
- throw(err: Error): never;
409
- create(method: string): Logger;
410
- static createStatic(name: string, staticMethod: string): Logger;
411
- private static _format;
412
- static debug(name: string, ...args: unknown[]): void;
413
- static info(name: string, ...args: unknown[]): void;
414
- static warn(name: string, ...args: unknown[]): void;
415
- static error(name: string, ...args: unknown[]): void;
416
- }
417
-
418
- /**
419
- * @internal
420
- */
421
- declare type Mandatory<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
422
-
423
- /**
424
- * @public
425
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
426
- */
427
- export declare class MetadataService {
428
- private readonly _settings;
429
- private readonly _logger;
430
- private readonly _jsonService;
431
- private _metadataUrl;
432
- private _signingKeys;
433
- private _metadata;
434
- private _fetchRequestCredentials;
435
- constructor(_settings: OidcClientSettingsStore);
436
- resetSigningKeys(): void;
437
- getMetadata(): Promise<Partial<OidcMetadata>>;
438
- getIssuer(): Promise<string>;
439
- getAuthorizationEndpoint(): Promise<string>;
440
- getUserInfoEndpoint(): Promise<string>;
441
- getTokenEndpoint(optional: false): Promise<string>;
442
- getTokenEndpoint(optional?: true): Promise<string | undefined>;
443
- getCheckSessionIframe(): Promise<string | undefined>;
444
- getEndSessionEndpoint(): Promise<string | undefined>;
445
- getRevocationEndpoint(optional: false): Promise<string>;
446
- getRevocationEndpoint(optional?: true): Promise<string | undefined>;
447
- getKeysEndpoint(optional: false): Promise<string>;
448
- getKeysEndpoint(optional?: true): Promise<string | undefined>;
449
- protected _getMetadataProperty(name: keyof OidcMetadata, optional?: boolean): Promise<string | boolean | string[] | undefined>;
450
- getSigningKeys(): Promise<SigningKey[] | null>;
451
- }
452
-
453
- /**
454
- * @public
455
- */
456
- export declare interface NavigateParams {
457
- url: string;
458
- /** The request "nonce" parameter. */
459
- nonce?: string;
460
- /** The request "state" parameter. For sign out requests, this parameter is optional. */
461
- state?: string;
462
- response_mode?: "query" | "fragment";
463
- scriptOrigin?: string;
464
- }
465
-
466
- /**
467
- * @public
468
- */
469
- export declare interface NavigateResponse {
470
- url: string;
471
- }
472
-
473
- /**
474
- * Standard OpenID Connect address claim.
475
- * The Address Claim represents a physical mailing address.
476
- *
477
- * @public
478
- * @see https://openid.net/specs/openid-connect-core-1_0.html#AddressClaim
479
- */
480
- export declare interface OidcAddressClaim {
481
- /** Full mailing address, formatted for display or use on a mailing label. This field MAY contain multiple lines, separated by newlines. Newlines can be represented either as a carriage return/line feed pair ("\\r\\n") or as a single line feed character ("\\n"). */
482
- formatted?: string;
483
- /** Full street address component, which MAY include house number, street name, Post Office Box, and multi-line extended street address information. This field MAY contain multiple lines, separated by newlines. Newlines can be represented either as a carriage return/line feed pair ("\\r\\n") or as a single line feed character ("\\n"). */
484
- street_address?: string;
485
- /** City or locality component. */
486
- locality?: string;
487
- /** State, province, prefecture, or region component. */
488
- region?: string;
489
- /** Zip code or postal code component. */
490
- postal_code?: string;
491
- /** Country name component. */
492
- country?: string;
493
- }
494
-
495
- /**
496
- * Provides the raw OIDC/OAuth2 protocol support for the authorization endpoint and the end session endpoint in the
497
- * authorization server. It provides a bare-bones protocol implementation and is used by the UserManager class.
498
- * Only use this class if you simply want protocol support without the additional management features of the
499
- * UserManager class.
500
- *
501
- * @public
502
- */
503
- export declare class OidcClient {
504
- readonly settings: OidcClientSettingsStore;
505
- protected readonly _logger: Logger;
506
- readonly metadataService: MetadataService;
507
- protected readonly _claimsService: ClaimsService;
508
- protected readonly _validator: ResponseValidator;
509
- protected readonly _tokenClient: TokenClient;
510
- constructor(settings: OidcClientSettings);
511
- constructor(settings: OidcClientSettingsStore, metadataService: MetadataService);
512
- createSigninRequest({ state, request, request_uri, request_type, id_token_hint, login_hint, skipUserInfo, nonce, url_state, response_type, scope, redirect_uri, prompt, display, max_age, ui_locales, acr_values, resource, response_mode, extraQueryParams, extraTokenParams, dpopJkt, omitScopeWhenRequesting, }: CreateSigninRequestArgs): Promise<SigninRequest>;
513
- readSigninResponseState(url: string, removeState?: boolean): Promise<{
514
- state: SigninState;
515
- response: SigninResponse;
516
- }>;
517
- processSigninResponse(url: string, extraHeaders?: Record<string, ExtraHeader>, removeState?: boolean): Promise<SigninResponse>;
518
- getDpopProof(dpopStore: DPoPStore, nonce?: string): Promise<string>;
519
- processResourceOwnerPasswordCredentials({ username, password, skipUserInfo, extraTokenParams, }: ProcessResourceOwnerPasswordCredentialsArgs): Promise<SigninResponse>;
520
- useRefreshToken({ state, redirect_uri, resource, timeoutInSeconds, extraHeaders, extraTokenParams, }: UseRefreshTokenArgs): Promise<SigninResponse>;
521
- createSignoutRequest({ state, id_token_hint, client_id, request_type, url_state, post_logout_redirect_uri, extraQueryParams, }?: CreateSignoutRequestArgs): Promise<SignoutRequest>;
522
- readSignoutResponseState(url: string, removeState?: boolean): Promise<{
523
- state: State | undefined;
524
- response: SignoutResponse;
525
- }>;
526
- processSignoutResponse(url: string): Promise<SignoutResponse>;
527
- clearStaleState(): Promise<void>;
528
- revokeToken(token: string, type?: "access_token" | "refresh_token"): Promise<void>;
529
- }
530
-
531
- /**
532
- * The settings used to configure the {@link OidcClient}.
533
- *
534
- * @public
535
- */
536
- export declare interface OidcClientSettings {
537
- /** The URL of the OIDC/OAuth2 provider */
538
- authority: string;
539
- metadataUrl?: string;
540
- /** Provide metadata when authority server does not allow CORS on the metadata endpoint */
541
- metadata?: Partial<OidcMetadata>;
542
- /** Can be used to seed or add additional values to the results of the discovery request */
543
- metadataSeed?: Partial<OidcMetadata>;
544
- /** Provide signingKeys when authority server does not allow CORS on the jwks uri */
545
- signingKeys?: SigningKey[];
546
- /** Your client application's identifier as registered with the OIDC/OAuth2 */
547
- client_id: string;
548
- client_secret?: string;
549
- /** The type of response desired from the OIDC/OAuth2 provider (default: "code") */
550
- response_type?: string;
551
- /** The scope being requested from the OIDC/OAuth2 provider (default: "openid") */
552
- scope?: string;
553
- /** The redirect URI of your client application to receive a response from the OIDC/OAuth2 provider */
554
- redirect_uri: string;
555
- /** The OIDC/OAuth2 post-logout redirect URI */
556
- post_logout_redirect_uri?: string;
557
- /**
558
- * Client authentication method that is used to authenticate when using the token endpoint (default: "client_secret_post")
559
- * - "client_secret_basic": using the HTTP Basic authentication scheme
560
- * - "client_secret_post": including the client credentials in the request body
561
- * - "client_secret_jwt": using a JWT signed with the client secret
562
- *
563
- * See https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication
564
- */
565
- client_authentication?: "client_secret_basic" | "client_secret_post" | "client_secret_jwt";
566
- /**
567
- * The signature algorithm to use for client_secret_jwt authentication (default: "HS256")
568
- * Supported algorithms: HS256, HS384, HS512
569
- */
570
- token_endpoint_auth_signing_alg?: "HS256" | "HS384" | "HS512";
571
- /** optional protocol param */
572
- prompt?: string;
573
- /** optional protocol param */
574
- display?: string;
575
- /** optional protocol param */
576
- max_age?: number;
577
- /** optional protocol param */
578
- ui_locales?: string;
579
- /** optional protocol param */
580
- acr_values?: string;
581
- /** optional protocol param */
582
- resource?: string | string[];
583
- /**
584
- * Optional protocol param
585
- * The response mode used by the authority server is defined by the response_type unless explicitly specified:
586
- * - Response mode for the OAuth 2.0 response type "code" is the "query" encoding
587
- * - Response mode for the OAuth 2.0 response type "token" is the "fragment" encoding
588
- *
589
- * @see https://openid.net/specs/oauth-v2-multiple-response-types-1_0.html#ResponseModes
590
- */
591
- response_mode?: "query" | "fragment";
592
- /**
593
- * Should optional OIDC protocol claims be removed from profile or specify the ones to be removed (default: true)
594
- * When true, the following claims are removed by default: ["nbf", "jti", "auth_time", "nonce", "acr", "amr", "azp", "at_hash"]
595
- * When specifying claims, the following claims are not allowed: ["sub", "iss", "aud", "exp", "iat"]
596
- */
597
- filterProtocolClaims?: boolean | string[];
598
- /** Flag to control if additional identity data is loaded from the user info endpoint in order to populate the user's profile (default: false) */
599
- loadUserInfo?: boolean;
600
- /** Number (in seconds) indicating the age of state entries in storage for authorize requests that are considered abandoned and thus can be cleaned up (default: 900) */
601
- staleStateAgeInSeconds?: number;
602
- /**
603
- * Indicates how objects returned from the user info endpoint as claims (e.g. `address`) are merged into the claims from the
604
- * id token as a single object. (default: `{ array: "replace" }`)
605
- * - array: "replace": natives (string, int, float) and arrays are replaced, objects are merged as distinct objects
606
- * - array: "merge": natives (string, int, float) are replaced, arrays and objects are merged as distinct objects
607
- */
608
- mergeClaimsStrategy?: {
609
- array: "replace" | "merge";
610
- };
611
- /**
612
- * Storage object used to persist interaction state (default: window.localStorage, InMemoryWebStorage iff no window).
613
- * E.g. `stateStore: new WebStorageStateStore({ store: window.localStorage })`
614
- */
615
- stateStore?: StateStore;
616
- /**
617
- * An object containing additional query string parameters to be including in the authorization request.
618
- * E.g, when using Azure AD to obtain an access token an additional resource parameter is required. extraQueryParams: `{resource:"some_identifier"}`
619
- */
620
- extraQueryParams?: Record<string, string | number | boolean>;
621
- extraTokenParams?: Record<string, unknown>;
622
- /**
623
- * An object containing additional header to be including in request.
624
- */
625
- extraHeaders?: Record<string, ExtraHeader>;
626
- /**
627
- * DPoP enabled or disabled
628
- */
629
- dpop?: DPoPSettings | undefined;
630
- /**
631
- * Will check the content type header of the response of the revocation endpoint to match these passed values (default: [])
632
- */
633
- revokeTokenAdditionalContentTypes?: string[];
634
- /**
635
- * Will disable PKCE validation, changing to true will not append to sign in request code_challenge and code_challenge_method. (default: false)
636
- */
637
- disablePKCE?: boolean;
638
- /**
639
- * Sets the credentials for fetch requests. (default: "same-origin")
640
- * Use this if you need to send cookies to the OIDC/OAuth2 provider or if you are using a proxy that requires cookies
641
- */
642
- fetchRequestCredentials?: RequestCredentials;
643
- /**
644
- * Only scopes in this list will be passed in the token refresh request.
645
- */
646
- refreshTokenAllowedScope?: string | undefined;
647
- /**
648
- * Defines request timeouts globally across all requests made to the authorisation server
649
- */
650
- requestTimeoutInSeconds?: number | undefined;
651
- /**
652
- * https://datatracker.ietf.org/doc/html/rfc6749#section-3.3 describes behavior when omitting scopes from sign in requests
653
- * If the IDP supports default scopes, this setting will ignore the scopes property passed to the config. (Default: false)
654
- */
655
- omitScopeWhenRequesting?: boolean;
656
- }
657
-
658
- /**
659
- * The settings with defaults applied of the {@link OidcClient}.
660
- *
661
- * @public
662
- * @see {@link OidcClientSettings}
663
- */
664
- export declare class OidcClientSettingsStore {
665
- readonly authority: string;
666
- readonly metadataUrl: string;
667
- readonly metadata: Partial<OidcMetadata> | undefined;
668
- readonly metadataSeed: Partial<OidcMetadata> | undefined;
669
- readonly signingKeys: SigningKey[] | undefined;
670
- readonly client_id: string;
671
- readonly client_secret: string | undefined;
672
- readonly response_type: string;
673
- readonly scope: string;
674
- readonly redirect_uri: string;
675
- readonly post_logout_redirect_uri: string | undefined;
676
- readonly client_authentication: "client_secret_basic" | "client_secret_post" | "client_secret_jwt";
677
- readonly token_endpoint_auth_signing_alg: "HS256" | "HS384" | "HS512";
678
- readonly prompt: string | undefined;
679
- readonly display: string | undefined;
680
- readonly max_age: number | undefined;
681
- readonly ui_locales: string | undefined;
682
- readonly acr_values: string | undefined;
683
- readonly resource: string | string[] | undefined;
684
- readonly response_mode: "query" | "fragment" | undefined;
685
- readonly filterProtocolClaims: boolean | string[];
686
- readonly loadUserInfo: boolean;
687
- readonly staleStateAgeInSeconds: number;
688
- readonly mergeClaimsStrategy: {
689
- array: "replace" | "merge";
690
- };
691
- readonly omitScopeWhenRequesting: boolean;
692
- readonly stateStore: StateStore;
693
- readonly extraQueryParams: Record<string, string | number | boolean>;
694
- readonly extraTokenParams: Record<string, unknown>;
695
- readonly dpop: DPoPSettings | undefined;
696
- readonly extraHeaders: Record<string, ExtraHeader>;
697
- readonly revokeTokenAdditionalContentTypes?: string[];
698
- readonly fetchRequestCredentials: RequestCredentials;
699
- readonly refreshTokenAllowedScope: string | undefined;
700
- readonly disablePKCE: boolean;
701
- readonly requestTimeoutInSeconds: number | undefined;
702
- constructor({ authority, metadataUrl, metadata, signingKeys, metadataSeed, client_id, client_secret, response_type, scope, redirect_uri, post_logout_redirect_uri, client_authentication, token_endpoint_auth_signing_alg, prompt, display, max_age, ui_locales, acr_values, resource, response_mode, filterProtocolClaims, loadUserInfo, requestTimeoutInSeconds, staleStateAgeInSeconds, mergeClaimsStrategy, disablePKCE, stateStore, revokeTokenAdditionalContentTypes, fetchRequestCredentials, refreshTokenAllowedScope, extraQueryParams, extraTokenParams, extraHeaders, dpop, omitScopeWhenRequesting, }: OidcClientSettings);
703
- }
704
-
705
- /**
706
- * OpenID Providers have metadata describing their configuration.
707
- *
708
- * @public
709
- */
710
- export declare interface OidcMetadata {
711
- /**
712
- * REQUIRED. URL using the `https` scheme with no query or fragment component that the OP asserts as its Issuer
713
- * Identifier. If Issuer discovery is supported
714
- * (see [Section 2](https://openid.net/specs/openid-connect-discovery-1_0.html#IssuerDiscovery)),
715
- * this value MUST be identical to the issuer value
716
- * returned by WebFinger. This also MUST be identical to the `iss` Claim value in ID Tokens issued from this Issuer.
717
- *
718
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
719
- */
720
- issuer: string;
721
- /**
722
- * REQUIRED. URL of the OP's OAuth 2.0 Authorization Endpoint
723
- * [[OpenID.Core](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Core)].
724
- * This URL MUST use the `https` scheme and MAY contain port, path, and query parameter components.
725
- *
726
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
727
- */
728
- authorization_endpoint: string;
729
- /**
730
- * URL of the OP's OAuth 2.0 Token Endpoint
731
- * [[OpenID.Core](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Core)].
732
- * This is REQUIRED unless only the Implicit Flow is used. This URL MUST use the `https` scheme and MAY contain
733
- * port, path, and query parameter components.
734
- *
735
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
736
- */
737
- token_endpoint: string;
738
- /**
739
- * OPTIONAL. JSON array containing a list of Client Authentication methods supported by this Token Endpoint.
740
- * The options are `client_secret_post`, `client_secret_basic`, `client_secret_jwt`, and `private_key_jwt`, as
741
- * described in Section 9 of
742
- * [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Core)
743
- * [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is
744
- * `client_secret_basic` -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of
745
- * [OAuth 2.0](https://openid.net/specs/openid-connect-discovery-1_0.html#RFC6749) [RFC6749].
746
- *
747
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
748
- */
749
- token_endpoint_auth_methods_supported: string[];
750
- /**
751
- * OPTIONAL. JSON array containing a list of the JWS signing algorithms (`alg` values) supported by the
752
- * Token Endpoint for the signature on the JWT
753
- * [[JWT](https://openid.net/specs/openid-connect-discovery-1_0.html#JWT)]
754
- * used to authenticate the Client at the Token Endpoint for the `private_key_jwt` and `client_secret_jwt`
755
- * authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.
756
- *
757
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
758
- */
759
- token_endpoint_auth_signing_alg_values_supported: string[];
760
- /**
761
- * RECOMMENDED. URL of the OP's UserInfo Endpoint
762
- * [[OpenID.Core](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Core)].
763
- * This URL MUST use the https scheme and MAY contain port, path, and query parameter components.
764
- *
765
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
766
- */
767
- userinfo_endpoint: string;
768
- /**
769
- * REQUIRED. URL of an OP iframe that supports cross-origin communications for session state information with the
770
- * RP Client, using the HTML5 postMessage API. This URL MUST use the `https` scheme and MAY contain port, path, and
771
- * query parameter components. The page is loaded from an invisible iframe embedded in an RP page so that it can run
772
- * in the OP's security context. It accepts postMessage requests from the relevant RP iframe and uses postMessage to
773
- * post back the login status of the End-User at the OP.
774
- *
775
- * @see https://openid.net/specs/openid-connect-session-1_0.html#OPMetadata
776
- */
777
- check_session_iframe: string;
778
- /**
779
- * REQUIRED. URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP.
780
- *
781
- * @see https://openid.net/specs/openid-connect-session-1_0-17.html#OPMetadata
782
- */
783
- end_session_endpoint: string;
784
- /**
785
- * REQUIRED. URL of the OP's JWK Set
786
- * [[JWK](https://openid.net/specs/openid-connect-discovery-1_0.html#JWK)]
787
- * document, which MUST use the `https` scheme. This contains the signing key(s) the RP uses to validate signatures from
788
- * the OP. The JWK Set MAY also contain the Server's encryption key(s), which are used by RPs to encrypt requests to the Server.
789
- * When both signing and encryption keys are made available, a `use` (public key use) parameter value is REQUIRED for all keys
790
- * in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for
791
- * both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK `x5c` parameter MAY be used to provide
792
- * X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the
793
- * certificate. The JWK Set MUST NOT contain private or symmetric key values.
794
- *
795
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
796
- */
797
- jwks_uri: string;
798
- /**
799
- * RECOMMENDED. URL of the OP's Dynamic Client Registration Endpoint
800
- * [[OpenID.Registration](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration)],
801
- * which MUST use the `https` scheme.
802
- *
803
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
804
- */
805
- registration_endpoint: string;
806
- /**
807
- * RECOMMENDED. JSON array containing a list of the
808
- * [OAuth 2.0](https://openid.net/specs/openid-connect-discovery-1_0.html#RFC6749)
809
- * [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not
810
- * to advertise some supported scope values even when this parameter is used, although those defined in
811
- * [[OpenID.Core](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Core)]
812
- * SHOULD be listed, if supported.
813
- *
814
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
815
- */
816
- scopes_supported: string[];
817
- /**
818
- * REQUIRED. JSON array containing a list of the OAuth 2.0 `response_type` values that this OP supports. Dynamic OpenID
819
- * Providers MUST support the `code`, `id_token`, and the `id_token token` Response Type values.
820
- *
821
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
822
- */
823
- response_types_supported: string[];
824
- /**
825
- * OPTIONAL. JSON array containing a list of the Authentication Context Class References that this OP supports.
826
- *
827
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
828
- */
829
- acr_values_supported: string[];
830
- /**
831
- * REQUIRED. JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include `pairwise`
832
- * and `public`.
833
- *
834
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
835
- */
836
- subject_types_supported: string[];
837
- /**
838
- * OPTIONAL. JSON array containing a list of the JWS signing algorithms (`alg` values) supported by the OP for Request Objects,
839
- * which are described in Section 6.1 of
840
- * [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Core)
841
- * [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the `request` parameter) and
842
- * when it is passed by reference (using the `request_uri` parameter). Servers SHOULD support `none` and `RS256`.
843
- *
844
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
845
- */
846
- request_object_signing_alg_values_supported: string[];
847
- /**
848
- * OPTIONAL. JSON array containing a list of the `display` parameter values that the OpenID Provider supports. These values are
849
- * described in Section 3.1.2.1 of
850
- * [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Core)
851
- * [OpenID.Core].
852
- *
853
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
854
- */
855
- display_values_supported: string[];
856
- /**
857
- * OPTIONAL. JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described
858
- * in Section 5.6 of
859
- * [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Core)
860
- * [OpenID.Core]. Values defined by this specification are `normal`, `aggregated`, and `distributed`. If omitted, the
861
- * implementation supports only normal Claims.
862
- *
863
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
864
- */
865
- claim_types_supported: string[];
866
- /**
867
- * RECOMMENDED. JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply
868
- * values for. Note that for privacy or other reasons, this might not be an exhaustive list.
869
- *
870
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
871
- */
872
- claims_supported: string[];
873
- /**
874
- * OPTIONAL. Boolean value specifying whether the OP supports use of the `claims` parameter, with `true` indicating support. If
875
- * omitted, the default value is `false`.
876
- *
877
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
878
- */
879
- claims_parameter_supported: boolean;
880
- /**
881
- * OPTIONAL. URL of a page containing human-readable information that developers might want or need to know when using the
882
- * OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on
883
- * how to register Clients needs to be provided in this documentation.
884
- *
885
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
886
- */
887
- service_documentation: string;
888
- /**
889
- * OPTIONAL. Languages and scripts supported for the user interface, represented as a JSON array of
890
- * [BCP47](https://openid.net/specs/openid-connect-discovery-1_0.html#RFC5646)
891
- * [RFC5646] language tag values.
892
- *
893
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
894
- */
895
- ui_locales_supported: string[];
896
- /**
897
- * The fully qualified URL of the server's revocation endpoint defined by
898
- * [OAuth 2.0 Token Revocation](https://openid.net/specs/openid-heart-oauth2-2015-12-07.html#RFC7009)
899
- * [RFC7009].
900
- *
901
- * @see https://openid.net/specs/openid-heart-oauth2-2015-12-07.html#rfc.section.4.1
902
- */
903
- revocation_endpoint: string;
904
- /**
905
- * The fully qualified URL of the server's introspection endpoint defined by
906
- * [OAuth Token Introspection](https://openid.net/specs/openid-heart-oauth2-2015-12-07.html#RFC7662)
907
- * [RFC7662].
908
- *
909
- * @see https://openid.net/specs/openid-heart-oauth2-2015-12-07.html#rfc.section.4.1
910
- */
911
- introspection_endpoint: string;
912
- /**
913
- * OPTIONAL. Boolean value specifying whether the OP supports HTTP-based logout, with `true` indicating support. If omitted,
914
- * the default value is `false`.
915
- *
916
- * @see https://openid.net/specs/openid-connect-frontchannel-1_0.html#OPLogout
917
- */
918
- frontchannel_logout_supported: boolean;
919
- /**
920
- * OPTIONAL. Boolean value specifying whether the OP can pass iss (issuer) and `sid` (session ID) query parameters to identify
921
- * the RP session with the OP when the `frontchannel_logout_uri` is used. If supported, the `sid` Claim is also included in
922
- * ID Tokens issued by the OP. If omitted, the default value is `false`.
923
- *
924
- * @see https://openid.net/specs/openid-connect-frontchannel-1_0.html#OPLogout
925
- */
926
- frontchannel_logout_session_supported: boolean;
927
- /**
928
- * OPTIONAL. Boolean value specifying whether the OP supports back-channel logout, with `true` indicating support. If omitted,
929
- * the default value is `false`.
930
- *
931
- * @see https://openid.net/specs/openid-connect-backchannel-1_0.html#BCSupport
932
- */
933
- backchannel_logout_supported: boolean;
934
- /**
935
- * OPTIONAL. Boolean value specifying whether the OP can pass a `sid` (session ID) Claim in the Logout Token to identify the
936
- * RP session with the OP. If supported, the `sid` Claim is also included in ID Tokens issued by the OP. If omitted, the default
937
- * value is `false`.
938
- *
939
- * @see https://openid.net/specs/openid-connect-backchannel-1_0.html#BCSupport
940
- */
941
- backchannel_logout_session_supported: boolean;
942
- /**
943
- * OPTIONAL. JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers
944
- * MUST support the `authorization_code` and `implicit` Grant Type values and MAY support other Grant Types. If omitted, the
945
- * default value is [`"authorization_code"`, `"implicit"`].
946
- *
947
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
948
- */
949
- grant_types_supported: string[];
950
- /**
951
- * OPTIONAL. JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports, as specified in
952
- * [OAuth 2.0 Multiple Response Type Encoding Practices](https://openid.net/specs/openid-connect-discovery-1_0.html#OAuth.Responses)
953
- * [OAuth.Responses]. If omitted, the default for Dynamic OpenID Providers is [`"query"`, `"fragment"`].
954
- *
955
- * @see https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
956
- */
957
- response_modes_supported: string[];
958
- /**
959
- * OPTIONAL. JSON array containing a list of
960
- * [Proof Key for Code Exchange (PKCE)](https://datatracker.ietf.org/doc/html/rfc7636)
961
- * [RFC7636] code challenge methods supported by this authorization server. Code challenge method values are used in
962
- * the "code_challenge_method" parameter defined in Section 4.3 of [RFC7636]. The valid code challenge method values are
963
- * those registered in the
964
- * [IANA "PKCE Code Challenge Methods" registry](https://datatracker.ietf.org/doc/html/rfc8414#ref-IANA.OAuth.Parameters)
965
- * [IANA.OAuth.Parameters]. If omitted, the authorization server does not support PKCE.
966
- *
967
- * @see https://datatracker.ietf.org/doc/html/rfc8414
968
- */
969
- code_challenge_methods_supported: string[];
970
- }
971
-
972
- /**
973
- * Standard OpenID Connect claims.
974
- * They can be requested to be returned either in the UserInfo Response or in the ID Token.
975
- *
976
- * @public
977
- * @see https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
978
- */
979
- export declare interface OidcStandardClaims {
980
- /** Subject - Identifier for the End-User at the Issuer. */
981
- sub?: string;
982
- /** End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. */
983
- name?: string;
984
- /** Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. */
985
- given_name?: string;
986
- /** Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. */
987
- family_name?: string;
988
- /** Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. */
989
- middle_name?: string;
990
- /** Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. */
991
- nickname?: string;
992
- /** Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as \@, /, or whitespace. */
993
- preferred_username?: string;
994
- /** URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User. */
995
- profile?: string;
996
- /** URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. */
997
- picture?: string;
998
- /** URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. */
999
- website?: string;
1000
- /** End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 addr-spec syntax. */
1001
- email?: string;
1002
- /** True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. */
1003
- email_verified?: boolean;
1004
- /** End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. */
1005
- gender?: string;
1006
- /** End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. */
1007
- birthdate?: string;
1008
- /** String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles. */
1009
- zoneinfo?: string;
1010
- /** End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; */
1011
- locale?: string;
1012
- /** End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. */
1013
- phone_number?: string;
1014
- /** True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. */
1015
- phone_number_verified?: boolean;
1016
- /** End-User's preferred postal address. The value of the address member is a JSON [RFC4627] structure containing some or all of the members defined in Section 5.1.1. */
1017
- address?: OidcAddressClaim;
1018
- /** Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. */
1019
- updated_at?: number;
1020
- }
1021
-
1022
- /**
1023
- *
1024
- * @public
1025
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/open#window_features
1026
- */
1027
- export declare interface PopupWindowFeatures {
1028
- left?: number;
1029
- top?: number;
1030
- width?: number;
1031
- height?: number;
1032
- menubar?: boolean | string;
1033
- toolbar?: boolean | string;
1034
- location?: boolean | string;
1035
- status?: boolean | string;
1036
- resizable?: boolean | string;
1037
- scrollbars?: boolean | string;
1038
- /** Close popup window after time in seconds, by default it is -1. To enable this feature, set value greater than 0. */
1039
- closePopupWindowAfterInSeconds?: number;
1040
- [k: string]: boolean | string | number | undefined;
1041
- }
1042
-
1043
- /**
1044
- * @public
1045
- */
1046
- export declare interface PopupWindowParams {
1047
- popupWindowFeatures?: PopupWindowFeatures;
1048
- popupWindowTarget?: string;
1049
- /** An AbortSignal to set request's signal. */
1050
- popupSignal?: AbortSignal | null;
1051
- /** Abort navigator when the popup is lost */
1052
- popupAbortOnClose?: boolean;
1053
- }
1054
-
1055
- /**
1056
- * @public
1057
- */
1058
- export declare type ProcessResourceOwnerPasswordCredentialsArgs = {
1059
- username: string;
1060
- password: string;
1061
- skipUserInfo?: boolean;
1062
- extraTokenParams?: Record<string, unknown>;
1063
- };
1064
-
1065
- /**
1066
- * @public
1067
- */
1068
- export declare type QuerySessionStatusArgs = IFrameWindowParams & ExtraSigninRequestArgs;
1069
-
1070
- /**
1071
- * @public
1072
- */
1073
- export declare interface RedirectParams {
1074
- redirectMethod?: "replace" | "assign";
1075
- redirectTarget?: "top" | "self";
1076
- }
1077
-
1078
- /**
1079
- * Fake state store implementation necessary for validating refresh token requests.
1080
- *
1081
- * @public
1082
- */
1083
- export declare class RefreshState {
1084
- /** custom "state", which can be used by a caller to have "data" round tripped */
1085
- readonly data?: unknown;
1086
- readonly refresh_token: string;
1087
- readonly id_token?: string;
1088
- readonly session_state: string | null;
1089
- readonly scope?: string;
1090
- readonly profile: UserProfile;
1091
- constructor(args: {
1092
- refresh_token: string;
1093
- id_token?: string;
1094
- session_state: string | null;
1095
- scope?: string;
1096
- profile: UserProfile;
1097
- state?: unknown;
1098
- });
1099
- }
1100
-
1101
- /**
1102
- * @internal
1103
- */
1104
- declare class ResponseValidator {
1105
- protected readonly _settings: OidcClientSettingsStore;
1106
- protected readonly _metadataService: MetadataService;
1107
- protected readonly _claimsService: ClaimsService;
1108
- protected readonly _logger: Logger;
1109
- protected readonly _userInfoService: UserInfoService;
1110
- protected readonly _tokenClient: TokenClient;
1111
- constructor(_settings: OidcClientSettingsStore, _metadataService: MetadataService, _claimsService: ClaimsService);
1112
- validateSigninResponse(response: SigninResponse, state: SigninState, extraHeaders?: Record<string, ExtraHeader>): Promise<void>;
1113
- validateCredentialsResponse(response: SigninResponse, skipUserInfo: boolean): Promise<void>;
1114
- validateRefreshResponse(response: SigninResponse, state: RefreshState): Promise<void>;
1115
- validateSignoutResponse(response: SignoutResponse, state: State): void;
1116
- protected _processSigninState(response: SigninResponse, state: SigninState): void;
1117
- protected _processClaims(response: SigninResponse, skipUserInfo?: boolean, validateSub?: boolean): Promise<void>;
1118
- protected _processCode(response: SigninResponse, state: SigninState, extraHeaders?: Record<string, ExtraHeader>): Promise<void>;
1119
- protected _validateIdTokenAttributes(response: SigninResponse, existingToken?: string, nonce?: string): void;
1120
- }
1121
-
1122
- /**
1123
- * @internal
1124
- */
1125
- declare interface RevokeArgs {
1126
- token: string;
1127
- token_type_hint?: "access_token" | "refresh_token";
1128
- }
1129
-
1130
- /**
1131
- * @public
1132
- */
1133
- export declare type RevokeTokensTypes = UserManagerSettings["revokeTokenTypes"];
1134
-
1135
- /**
1136
- * @public
1137
- */
1138
- export declare class SessionMonitor {
1139
- private readonly _userManager;
1140
- private readonly _logger;
1141
- private _sub;
1142
- private _checkSessionIFrame?;
1143
- constructor(_userManager: UserManager);
1144
- protected _init(): Promise<void>;
1145
- protected _start: (user: User | {
1146
- session_state: string;
1147
- profile: {
1148
- sub: string;
1149
- } | null;
1150
- }) => Promise<void>;
1151
- protected _stop: () => void;
1152
- protected _callback: () => Promise<void>;
1153
- }
1154
-
1155
- /**
1156
- * @public
1157
- */
1158
- export declare interface SessionStatus {
1159
- /** Opaque session state used to validate if session changed (monitorSession) */
1160
- session_state: string;
1161
- /** Subject identifier */
1162
- sub?: string;
1163
- }
1164
-
1165
- /**
1166
- * @public
1167
- */
1168
- export declare type SigningKey = Record<string, string | string[]>;
1169
-
1170
- /**
1171
- * @public
1172
- */
1173
- export declare type SigninPopupArgs = PopupWindowParams & ExtraSigninRequestArgs;
1174
-
1175
- /**
1176
- * @public
1177
- */
1178
- export declare type SigninRedirectArgs = RedirectParams & ExtraSigninRequestArgs;
1179
-
1180
- /**
1181
- * @public
1182
- */
1183
- export declare class SigninRequest {
1184
- private static readonly _logger;
1185
- readonly url: string;
1186
- readonly state: SigninState;
1187
- private constructor();
1188
- static create({ url, authority, client_id, redirect_uri, response_type, scope, state_data, response_mode, request_type, client_secret, nonce, url_state, resource, skipUserInfo, extraQueryParams, extraTokenParams, disablePKCE, dpopJkt, omitScopeWhenRequesting, ...optionalParams }: SigninRequestCreateArgs): Promise<SigninRequest>;
1189
- }
1190
-
1191
- /**
1192
- * @public
1193
- * @see https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
1194
- */
1195
- export declare interface SigninRequestCreateArgs {
1196
- url: string;
1197
- authority: string;
1198
- client_id: string;
1199
- redirect_uri: string;
1200
- response_type: string;
1201
- scope: string;
1202
- response_mode?: "query" | "fragment";
1203
- nonce?: string;
1204
- display?: string;
1205
- dpopJkt?: string;
1206
- prompt?: string;
1207
- max_age?: number;
1208
- ui_locales?: string;
1209
- id_token_hint?: string;
1210
- login_hint?: string;
1211
- acr_values?: string;
1212
- resource?: string | string[];
1213
- request?: string;
1214
- request_uri?: string;
1215
- request_type?: string;
1216
- extraQueryParams?: Record<string, string | number | boolean>;
1217
- extraTokenParams?: Record<string, unknown>;
1218
- client_secret?: string;
1219
- skipUserInfo?: boolean;
1220
- disablePKCE?: boolean;
1221
- /** custom "state", which can be used by a caller to have "data" round tripped */
1222
- state_data?: unknown;
1223
- url_state?: string;
1224
- omitScopeWhenRequesting?: boolean;
1225
- }
1226
-
1227
- /**
1228
- * @public
1229
- */
1230
- export declare type SigninResourceOwnerCredentialsArgs = ProcessResourceOwnerPasswordCredentialsArgs;
1231
-
1232
- /**
1233
- * @public
1234
- * @see https://openid.net/specs/openid-connect-core-1_0.html#AuthResponse
1235
- * @see https://openid.net/specs/openid-connect-core-1_0.html#AuthError
1236
- */
1237
- export declare class SigninResponse {
1238
- readonly state: string | null;
1239
- /** @see {@link User.session_state} */
1240
- session_state: string | null;
1241
- /** @see {@link ErrorResponse.error} */
1242
- readonly error: string | null;
1243
- /** @see {@link ErrorResponse.error_description} */
1244
- readonly error_description: string | null;
1245
- /** @see {@link ErrorResponse.error_uri} */
1246
- readonly error_uri: string | null;
1247
- readonly code: string | null;
1248
- /** @see {@link User.id_token} */
1249
- id_token?: string;
1250
- /** @see {@link User.access_token} */
1251
- access_token: string;
1252
- /** @see {@link User.token_type} */
1253
- token_type: string;
1254
- /** @see {@link User.refresh_token} */
1255
- refresh_token?: string;
1256
- /** @see {@link User.scope} */
1257
- scope?: string;
1258
- /** @see {@link User.expires_at} */
1259
- expires_at?: number;
1260
- /** custom state data set during the initial signin request */
1261
- userState: unknown;
1262
- url_state?: string;
1263
- /** @see {@link User.profile} */
1264
- profile: UserProfile;
1265
- constructor(params: URLSearchParams);
1266
- get expires_in(): number | undefined;
1267
- set expires_in(value: number | undefined);
1268
- get isOpenId(): boolean;
1269
- }
1270
-
1271
- /**
1272
- * @public
1273
- */
1274
- export declare type SigninSilentArgs = IFrameWindowParams & ExtraSigninRequestArgs & ExtraSignInSilentArgs;
1275
-
1276
- /**
1277
- * @public
1278
- */
1279
- export declare class SigninState extends State {
1280
- /** The same code_verifier that was used to obtain the authorization_code via PKCE. */
1281
- readonly code_verifier: string | undefined;
1282
- /** Used to secure authorization code grants via Proof Key for Code Exchange (PKCE). */
1283
- readonly code_challenge: string | undefined;
1284
- /** @see {@link OidcClientSettings.authority} */
1285
- readonly authority: string;
1286
- /** @see {@link OidcClientSettings.client_id} */
1287
- readonly client_id: string;
1288
- /** @see {@link OidcClientSettings.redirect_uri} */
1289
- readonly redirect_uri: string;
1290
- /** @see {@link OidcClientSettings.scope} */
1291
- readonly scope: string;
1292
- /** @see {@link OidcClientSettings.client_secret} */
1293
- readonly client_secret: string | undefined;
1294
- /** @see {@link OidcClientSettings.extraTokenParams} */
1295
- readonly extraTokenParams: Record<string, unknown> | undefined;
1296
- /** @see {@link OidcClientSettings.response_mode} */
1297
- readonly response_mode: "query" | "fragment" | undefined;
1298
- readonly skipUserInfo: boolean | undefined;
1299
- /** @see {@link SigninRequestCreateArgs.nonce} */
1300
- readonly nonce: string | undefined;
1301
- private constructor();
1302
- static create(args: SigninStateCreateArgs): Promise<SigninState>;
1303
- toStorageString(): string;
1304
- static fromStorageString(storageString: string): Promise<SigninState>;
1305
- }
1306
-
1307
- /** @public */
1308
- export declare interface SigninStateArgs {
1309
- id?: string;
1310
- data?: unknown;
1311
- created?: number;
1312
- request_type?: string;
1313
- code_verifier?: string;
1314
- code_challenge?: string;
1315
- authority: string;
1316
- client_id: string;
1317
- redirect_uri: string;
1318
- scope: string;
1319
- client_secret?: string;
1320
- extraTokenParams?: Record<string, unknown>;
1321
- response_mode?: "query" | "fragment";
1322
- skipUserInfo?: boolean;
1323
- url_state?: string;
1324
- nonce?: string;
1325
- }
1326
-
1327
- /** @public */
1328
- export declare type SigninStateCreateArgs = Omit<SigninStateArgs, "code_verifier"> & {
1329
- code_verifier?: string | boolean;
1330
- };
1331
-
1332
- /**
1333
- * @public
1334
- */
1335
- export declare type SignoutPopupArgs = PopupWindowParams & ExtraSignoutRequestArgs;
1336
-
1337
- /**
1338
- * @public
1339
- */
1340
- export declare type SignoutRedirectArgs = RedirectParams & ExtraSignoutRequestArgs;
1341
-
1342
- /**
1343
- * @public
1344
- */
1345
- export declare class SignoutRequest {
1346
- private readonly _logger;
1347
- readonly url: string;
1348
- readonly state?: State;
1349
- constructor({ url, state_data, id_token_hint, post_logout_redirect_uri, extraQueryParams, request_type, client_id, url_state, }: SignoutRequestArgs);
1350
- }
1351
-
1352
- /**
1353
- * @public
1354
- * @see https://openid.net/specs/openid-connect-rpinitiated-1_0.html#RPLogout
1355
- */
1356
- export declare interface SignoutRequestArgs {
1357
- url: string;
1358
- id_token_hint?: string;
1359
- client_id?: string;
1360
- post_logout_redirect_uri?: string;
1361
- extraQueryParams?: Record<string, string | number | boolean>;
1362
- request_type?: string;
1363
- /** custom "state", which can be used by a caller to have "data" round tripped */
1364
- state_data?: unknown;
1365
- url_state?: string;
1366
- }
1367
-
1368
- /**
1369
- * @public
1370
- * @see https://openid.net/specs/openid-connect-core-1_0.html#AuthError
1371
- */
1372
- export declare class SignoutResponse {
1373
- readonly state: string | null;
1374
- /** @see {@link ErrorResponse.error} */
1375
- error: string | null;
1376
- /** @see {@link ErrorResponse.error_description} */
1377
- error_description: string | null;
1378
- /** @see {@link ErrorResponse.error_uri} */
1379
- error_uri: string | null;
1380
- /** custom state data set during the initial signin request */
1381
- userState: unknown;
1382
- url_state?: string;
1383
- constructor(params: URLSearchParams);
1384
- }
1385
-
1386
- /**
1387
- * @public
1388
- */
1389
- export declare type SignoutSilentArgs = IFrameWindowParams & ExtraSignoutRequestArgs;
1390
-
1391
- /**
1392
- * @public
1393
- */
1394
- export declare type SilentRenewErrorCallback = (error: Error) => Promise<void> | void;
1395
-
1396
- /**
1397
- * @internal
1398
- */
1399
- declare class SilentRenewService {
1400
- private _userManager;
1401
- protected _logger: Logger;
1402
- private _isStarted;
1403
- private readonly _retryTimer;
1404
- private _timeoutRetryCount;
1405
- constructor(_userManager: UserManager);
1406
- start(): Promise<void>;
1407
- stop(): void;
1408
- protected _tokenExpiring: AccessTokenCallback;
1409
- }
1410
-
1411
- /**
1412
- * @public
1413
- */
1414
- export declare class State {
1415
- readonly id: string;
1416
- readonly created: number;
1417
- readonly request_type: string | undefined;
1418
- readonly url_state: string | undefined;
1419
- /** custom "state", which can be used by a caller to have "data" round tripped */
1420
- readonly data?: unknown;
1421
- constructor(args: {
1422
- id?: string;
1423
- data?: unknown;
1424
- created?: number;
1425
- request_type?: string;
1426
- url_state?: string;
1427
- });
1428
- toStorageString(): string;
1429
- static fromStorageString(storageString: string): Promise<State>;
1430
- static clearStaleState(storage: StateStore, age: number): Promise<void>;
1431
- }
1432
-
1433
- /**
1434
- * @public
1435
- */
1436
- export declare interface StateStore {
1437
- set(key: string, value: string): Promise<void>;
1438
- get(key: string): Promise<string | null>;
1439
- remove(key: string): Promise<string | null>;
1440
- getAllKeys(): Promise<string[]>;
1441
- }
1442
-
1443
- /**
1444
- * @internal
1445
- */
1446
- declare class TokenClient {
1447
- private readonly _settings;
1448
- private readonly _metadataService;
1449
- private readonly _logger;
1450
- private readonly _jsonService;
1451
- constructor(_settings: OidcClientSettingsStore, _metadataService: MetadataService);
1452
- /**
1453
- * Exchange code.
1454
- *
1455
- * @see https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3
1456
- */
1457
- exchangeCode({ grant_type, redirect_uri, client_id, client_secret, extraHeaders, ...args }: ExchangeCodeArgs): Promise<Record<string, unknown>>;
1458
- /**
1459
- * Exchange credentials.
1460
- *
1461
- * @see https://www.rfc-editor.org/rfc/rfc6749#section-4.3.2
1462
- */
1463
- exchangeCredentials({ grant_type, client_id, client_secret, scope, ...args }: ExchangeCredentialsArgs): Promise<Record<string, unknown>>;
1464
- /**
1465
- * Exchange a refresh token.
1466
- *
1467
- * @see https://www.rfc-editor.org/rfc/rfc6749#section-6
1468
- */
1469
- exchangeRefreshToken({ grant_type, client_id, client_secret, timeoutInSeconds, extraHeaders, ...args }: ExchangeRefreshTokenArgs): Promise<Record<string, unknown>>;
1470
- /**
1471
- * Revoke an access or refresh token.
1472
- *
1473
- * @see https://datatracker.ietf.org/doc/html/rfc7009#section-2.1
1474
- */
1475
- revoke(args: RevokeArgs): Promise<void>;
1476
- }
1477
-
1478
- /**
1479
- * @public
1480
- */
1481
- export declare class User {
1482
- /**
1483
- * A JSON Web Token (JWT). Only provided if `openid` scope was requested.
1484
- * The application can access the data decoded by using the `profile` property.
1485
- */
1486
- id_token?: string;
1487
- /** The session state value returned from the OIDC provider. */
1488
- session_state: string | null;
1489
- /**
1490
- * The requested access token returned from the OIDC provider. The application can use this token to
1491
- * authenticate itself to the secured resource.
1492
- */
1493
- access_token: string;
1494
- /**
1495
- * An OAuth 2.0 refresh token. The app can use this token to acquire additional access tokens after the
1496
- * current access token expires. Refresh tokens are long-lived and can be used to maintain access to resources
1497
- * for extended periods of time.
1498
- */
1499
- refresh_token?: string;
1500
- /** Typically "Bearer" */
1501
- token_type: string;
1502
- /** The scopes that the requested access token is valid for. */
1503
- scope?: string;
1504
- /** The claims represented by a combination of the `id_token` and the user info endpoint. */
1505
- profile: UserProfile;
1506
- /** The expires at returned from the OIDC provider. */
1507
- expires_at?: number;
1508
- /** custom state data set during the initial signin request */
1509
- readonly state: unknown;
1510
- readonly url_state?: string;
1511
- constructor(args: {
1512
- id_token?: string;
1513
- session_state?: string | null;
1514
- access_token: string;
1515
- refresh_token?: string;
1516
- token_type: string;
1517
- scope?: string;
1518
- profile: UserProfile;
1519
- expires_at?: number;
1520
- userState?: unknown;
1521
- url_state?: string;
1522
- });
1523
- /** Computed number of seconds the access token has remaining. */
1524
- get expires_in(): number | undefined;
1525
- set expires_in(value: number | undefined);
1526
- /** Computed value indicating if the access token is expired. */
1527
- get expired(): boolean | undefined;
1528
- /** Array representing the parsed values from the `scope`. */
1529
- get scopes(): string[];
1530
- toStorageString(): string;
1531
- static fromStorageString(storageString: string): User;
1532
- }
1533
-
1534
- /**
1535
- * @public
1536
- */
1537
- export declare interface UseRefreshTokenArgs {
1538
- redirect_uri?: string;
1539
- resource?: string | string[];
1540
- extraTokenParams?: Record<string, unknown>;
1541
- timeoutInSeconds?: number;
1542
- state: RefreshState;
1543
- extraHeaders?: Record<string, ExtraHeader>;
1544
- }
1545
-
1546
- /**
1547
- * @internal
1548
- */
1549
- declare class UserInfoService {
1550
- private readonly _settings;
1551
- private readonly _metadataService;
1552
- protected readonly _logger: Logger;
1553
- private readonly _jsonService;
1554
- constructor(_settings: OidcClientSettingsStore, _metadataService: MetadataService);
1555
- getClaims(token: string): Promise<JwtClaims>;
1556
- protected _getClaimsFromJwt: (responseText: string) => Promise<JwtClaims>;
1557
- }
1558
-
1559
- /**
1560
- * @public
1561
- */
1562
- export declare type UserLoadedCallback = (user: User) => Promise<void> | void;
1563
-
1564
- /**
1565
- * Provides a higher level API for signing a user in, signing out, managing the user's claims returned from the identity provider,
1566
- * and managing an access token returned from the identity provider (OAuth2/OIDC).
1567
- *
1568
- * @public
1569
- */
1570
- export declare class UserManager {
1571
- /** Get the settings used to configure the `UserManager`. */
1572
- readonly settings: UserManagerSettingsStore;
1573
- protected readonly _logger: Logger;
1574
- protected readonly _client: OidcClient;
1575
- protected readonly _redirectNavigator: INavigator;
1576
- protected readonly _popupNavigator: INavigator;
1577
- protected readonly _iframeNavigator: INavigator;
1578
- protected readonly _events: UserManagerEvents;
1579
- protected readonly _silentRenewService: SilentRenewService;
1580
- protected readonly _sessionMonitor: SessionMonitor | null;
1581
- constructor(settings: UserManagerSettings, redirectNavigator?: INavigator, popupNavigator?: INavigator, iframeNavigator?: INavigator);
1582
- /**
1583
- * Get object used to register for events raised by the `UserManager`.
1584
- */
1585
- get events(): UserManagerEvents;
1586
- /**
1587
- * Get object used to access the metadata configuration of the identity provider.
1588
- */
1589
- get metadataService(): MetadataService;
1590
- /**
1591
- * Load the `User` object for the currently authenticated user.
1592
- *
1593
- * @param raiseEvent - If `true`, the `UserLoaded` event will be raised. Defaults to false.
1594
- * @returns A promise
1595
- */
1596
- getUser(raiseEvent?: boolean): Promise<User | null>;
1597
- /**
1598
- * Remove from any storage the currently authenticated user.
1599
- *
1600
- * @returns A promise
1601
- */
1602
- removeUser(): Promise<void>;
1603
- /**
1604
- * Trigger a redirect of the current window to the authorization endpoint.
1605
- *
1606
- * @returns A promise
1607
- *
1608
- * @throws `Error` In cases of wrong authentication.
1609
- */
1610
- signinRedirect(args?: SigninRedirectArgs): Promise<void>;
1611
- /**
1612
- * Process the response (callback) from the authorization endpoint.
1613
- * It is recommended to use {@link UserManager.signinCallback} instead.
1614
- *
1615
- * @returns A promise containing the authenticated `User`.
1616
- *
1617
- * @see {@link UserManager.signinCallback}
1618
- */
1619
- signinRedirectCallback(url?: string): Promise<User>;
1620
- /**
1621
- * Trigger the signin with user/password.
1622
- *
1623
- * @returns A promise containing the authenticated `User`.
1624
- * @throws {@link ErrorResponse} In cases of wrong authentication.
1625
- */
1626
- signinResourceOwnerCredentials({ username, password, skipUserInfo, }: SigninResourceOwnerCredentialsArgs): Promise<User>;
1627
- /**
1628
- * Trigger a request (via a popup window) to the authorization endpoint.
1629
- *
1630
- * @returns A promise containing the authenticated `User`.
1631
- * @throws `Error` In cases of wrong authentication.
1632
- */
1633
- signinPopup(args?: SigninPopupArgs): Promise<User>;
1634
- /**
1635
- * Notify the opening window of response (callback) from the authorization endpoint.
1636
- * It is recommended to use {@link UserManager.signinCallback} instead.
1637
- *
1638
- * @returns A promise
1639
- *
1640
- * @see {@link UserManager.signinCallback}
1641
- */
1642
- signinPopupCallback(url?: string, keepOpen?: boolean): Promise<void>;
1643
- /**
1644
- * Trigger a silent request (via refresh token or an iframe) to the authorization endpoint.
1645
- *
1646
- * @returns A promise that contains the authenticated `User`.
1647
- */
1648
- signinSilent(args?: SigninSilentArgs): Promise<User | null>;
1649
- protected _useRefreshToken(args: UseRefreshTokenArgs): Promise<User>;
1650
- /**
1651
- *
1652
- * Notify the parent window of response (callback) from the authorization endpoint.
1653
- * It is recommended to use {@link UserManager.signinCallback} instead.
1654
- *
1655
- * @returns A promise
1656
- *
1657
- * @see {@link UserManager.signinCallback}
1658
- */
1659
- signinSilentCallback(url?: string): Promise<void>;
1660
- /**
1661
- * Process any response (callback) from the authorization endpoint, by dispatching the request_type
1662
- * and executing one of the following functions:
1663
- * - {@link UserManager.signinRedirectCallback}
1664
- * - {@link UserManager.signinPopupCallback}
1665
- * - {@link UserManager.signinSilentCallback}
1666
- *
1667
- * @throws `Error` If request_type is unknown or signin cannot be processed.
1668
- */
1669
- signinCallback(url?: string): Promise<User | undefined>;
1670
- /**
1671
- * Process any response (callback) from the end session endpoint, by dispatching the request_type
1672
- * and executing one of the following functions:
1673
- * - {@link UserManager.signoutRedirectCallback}
1674
- * - {@link UserManager.signoutPopupCallback}
1675
- * - {@link UserManager.signoutSilentCallback}
1676
- *
1677
- * @throws `Error` If request_type is unknown or signout cannot be processed.
1678
- */
1679
- signoutCallback(url?: string, keepOpen?: boolean): Promise<SignoutResponse | undefined>;
1680
- /**
1681
- * Query OP for user's current signin status.
1682
- *
1683
- * @returns A promise object with session_state and subject identifier.
1684
- */
1685
- querySessionStatus(args?: QuerySessionStatusArgs): Promise<SessionStatus | null>;
1686
- protected _signin(args: CreateSigninRequestArgs, handle: IWindow, verifySub?: string): Promise<User>;
1687
- protected _signinStart(args: CreateSigninRequestArgs, handle: IWindow): Promise<NavigateResponse>;
1688
- protected _signinEnd(url: string, verifySub?: string): Promise<User>;
1689
- protected _buildUser(signinResponse: SigninResponse, verifySub?: string): Promise<User>;
1690
- /**
1691
- * Trigger a redirect of the current window to the end session endpoint.
1692
- *
1693
- * @returns A promise
1694
- */
1695
- signoutRedirect(args?: SignoutRedirectArgs): Promise<void>;
1696
- /**
1697
- * Process response (callback) from the end session endpoint.
1698
- * It is recommended to use {@link UserManager.signoutCallback} instead.
1699
- *
1700
- * @returns A promise containing signout response
1701
- *
1702
- * @see {@link UserManager.signoutCallback}
1703
- */
1704
- signoutRedirectCallback(url?: string): Promise<SignoutResponse>;
1705
- /**
1706
- * Trigger a redirect of a popup window to the end session endpoint.
1707
- *
1708
- * @returns A promise
1709
- */
1710
- signoutPopup(args?: SignoutPopupArgs): Promise<void>;
1711
- /**
1712
- * Process response (callback) from the end session endpoint from a popup window.
1713
- * It is recommended to use {@link UserManager.signoutCallback} instead.
1714
- *
1715
- * @returns A promise
1716
- *
1717
- * @see {@link UserManager.signoutCallback}
1718
- */
1719
- signoutPopupCallback(url?: string, keepOpen?: boolean): Promise<void>;
1720
- protected _signout(args: CreateSignoutRequestArgs, handle: IWindow): Promise<SignoutResponse>;
1721
- protected _signoutStart(args: CreateSignoutRequestArgs | undefined, handle: IWindow): Promise<NavigateResponse>;
1722
- protected _signoutEnd(url: string): Promise<SignoutResponse>;
1723
- /**
1724
- * Trigger a silent request (via an iframe) to the end session endpoint.
1725
- *
1726
- * @returns A promise
1727
- */
1728
- signoutSilent(args?: SignoutSilentArgs): Promise<void>;
1729
- /**
1730
- * Notify the parent window of response (callback) from the end session endpoint.
1731
- * It is recommended to use {@link UserManager.signoutCallback} instead.
1732
- *
1733
- * @returns A promise
1734
- *
1735
- * @see {@link UserManager.signoutCallback}
1736
- */
1737
- signoutSilentCallback(url?: string): Promise<void>;
1738
- revokeTokens(types?: RevokeTokensTypes): Promise<void>;
1739
- protected _revokeInternal(user: User | null, types?: ("access_token" | "refresh_token")[]): Promise<void>;
1740
- /**
1741
- * Enables silent renew for the `UserManager`.
1742
- */
1743
- startSilentRenew(): void;
1744
- /**
1745
- * Disables silent renew for the `UserManager`.
1746
- */
1747
- stopSilentRenew(): void;
1748
- protected get _userStoreKey(): string;
1749
- protected _loadUser(): Promise<User | null>;
1750
- storeUser(user: User | null): Promise<void>;
1751
- /**
1752
- * Removes stale state entries in storage for incomplete authorize requests.
1753
- */
1754
- clearStaleState(): Promise<void>;
1755
- /**
1756
- * Dynamically generates a DPoP proof for a given user, URL and optional Http method.
1757
- * This method is useful when you need to make a request to a resource server
1758
- * with fetch or similar, and you need to include a DPoP proof in a DPoP header.
1759
- * @param url - The URL to generate the DPoP proof for
1760
- * @param user - The user to generate the DPoP proof for
1761
- * @param httpMethod - Optional, defaults to "GET"
1762
- * @param nonce - Optional nonce provided by the resource server
1763
- *
1764
- * @returns A promise containing the DPoP proof or undefined if DPoP is not enabled/no user is found.
1765
- */
1766
- dpopProof(url: string, user: User, httpMethod?: string, nonce?: string): Promise<string | undefined>;
1767
- generateDPoPJkt(dpopSettings: DPoPSettings): Promise<string | undefined>;
1768
- }
1769
-
1770
- /**
1771
- * @public
1772
- */
1773
- export declare class UserManagerEvents extends AccessTokenEvents {
1774
- protected readonly _logger: Logger;
1775
- private readonly _userLoaded;
1776
- private readonly _userUnloaded;
1777
- private readonly _silentRenewError;
1778
- private readonly _userSignedIn;
1779
- private readonly _userSignedOut;
1780
- private readonly _userSessionChanged;
1781
- constructor(settings: UserManagerSettingsStore);
1782
- load(user: User, raiseEvent?: boolean): Promise<void>;
1783
- unload(): Promise<void>;
1784
- /**
1785
- * Add callback: Raised when a user session has been established (or re-established).
1786
- */
1787
- addUserLoaded(cb: UserLoadedCallback): () => void;
1788
- /**
1789
- * Remove callback: Raised when a user session has been established (or re-established).
1790
- */
1791
- removeUserLoaded(cb: UserLoadedCallback): void;
1792
- /**
1793
- * Add callback: Raised when a user session has been terminated.
1794
- */
1795
- addUserUnloaded(cb: UserUnloadedCallback): () => void;
1796
- /**
1797
- * Remove callback: Raised when a user session has been terminated.
1798
- */
1799
- removeUserUnloaded(cb: UserUnloadedCallback): void;
1800
- /**
1801
- * Add callback: Raised when the automatic silent renew has failed.
1802
- */
1803
- addSilentRenewError(cb: SilentRenewErrorCallback): () => void;
1804
- /**
1805
- * Remove callback: Raised when the automatic silent renew has failed.
1806
- */
1807
- removeSilentRenewError(cb: SilentRenewErrorCallback): void;
1808
- /**
1809
- * @internal
1810
- */
1811
- _raiseSilentRenewError(e: Error): Promise<void>;
1812
- /**
1813
- * Add callback: Raised when the user is signed in (when `monitorSession` is set).
1814
- * @see {@link UserManagerSettings.monitorSession}
1815
- */
1816
- addUserSignedIn(cb: UserSignedInCallback): () => void;
1817
- /**
1818
- * Remove callback: Raised when the user is signed in (when `monitorSession` is set).
1819
- */
1820
- removeUserSignedIn(cb: UserSignedInCallback): void;
1821
- /**
1822
- * @internal
1823
- */
1824
- _raiseUserSignedIn(): Promise<void>;
1825
- /**
1826
- * Add callback: Raised when the user's sign-in status at the OP has changed (when `monitorSession` is set).
1827
- * @see {@link UserManagerSettings.monitorSession}
1828
- */
1829
- addUserSignedOut(cb: UserSignedOutCallback): () => void;
1830
- /**
1831
- * Remove callback: Raised when the user's sign-in status at the OP has changed (when `monitorSession` is set).
1832
- */
1833
- removeUserSignedOut(cb: UserSignedOutCallback): void;
1834
- /**
1835
- * @internal
1836
- */
1837
- _raiseUserSignedOut(): Promise<void>;
1838
- /**
1839
- * Add callback: Raised when the user session changed (when `monitorSession` is set).
1840
- * @see {@link UserManagerSettings.monitorSession}
1841
- */
1842
- addUserSessionChanged(cb: UserSessionChangedCallback): () => void;
1843
- /**
1844
- * Remove callback: Raised when the user session changed (when `monitorSession` is set).
1845
- */
1846
- removeUserSessionChanged(cb: UserSessionChangedCallback): void;
1847
- /**
1848
- * @internal
1849
- */
1850
- _raiseUserSessionChanged(): Promise<void>;
1851
- }
1852
-
1853
- /**
1854
- * The settings used to configure the {@link UserManager}.
1855
- *
1856
- * @public
1857
- */
1858
- export declare interface UserManagerSettings extends OidcClientSettings {
1859
- /** The URL for the page containing the call to signinPopupCallback to handle the callback from the OIDC/OAuth2 */
1860
- popup_redirect_uri?: string;
1861
- popup_post_logout_redirect_uri?: string;
1862
- /**
1863
- * The features parameter to window.open for the popup signin window. By default, the popup is
1864
- * placed centered in front of the window opener.
1865
- * (default: \{ location: false, menubar: false, height: 640, closePopupWindowAfterInSeconds: -1 \})
1866
- */
1867
- popupWindowFeatures?: PopupWindowFeatures;
1868
- /** The target parameter to window.open for the popup signin window (default: "_blank") */
1869
- popupWindowTarget?: string;
1870
- /** The methods window.location method used to redirect (default: "assign") */
1871
- redirectMethod?: "replace" | "assign";
1872
- /** The methods target window being redirected (default: "self") */
1873
- redirectTarget?: "top" | "self";
1874
- /** The target to pass while calling postMessage inside iframe for callback (default: window.location.origin) */
1875
- iframeNotifyParentOrigin?: string;
1876
- /** The script origin to check during 'message' callback execution while performing silent auth via iframe (default: window.location.origin) */
1877
- iframeScriptOrigin?: string;
1878
- /** The URL for the page containing the code handling the silent renew */
1879
- silent_redirect_uri?: string;
1880
- /** Number of seconds to wait for the silent renew to return before assuming it has failed or timed out (default: 10) */
1881
- silentRequestTimeoutInSeconds?: number;
1882
- /** Flag to indicate if there should be an automatic attempt to renew the access token prior to its expiration. The automatic renew attempt starts 1 minute before the access token expires (default: true) */
1883
- automaticSilentRenew?: boolean;
1884
- /** Flag to validate user.profile.sub in silent renew calls (default: true) */
1885
- validateSubOnSilentRenew?: boolean;
1886
- /** Flag to control if id_token is included as id_token_hint in silent renew calls (default: false) */
1887
- includeIdTokenInSilentRenew?: boolean;
1888
- /** Will raise events for when user has performed a signout at the OP (default: false) */
1889
- monitorSession?: boolean;
1890
- monitorAnonymousSession?: boolean;
1891
- /** Interval in seconds to check the user's session (default: 2) */
1892
- checkSessionIntervalInSeconds?: number;
1893
- query_status_response_type?: string;
1894
- stopCheckSessionOnError?: boolean;
1895
- /**
1896
- * The `token_type_hint`s to pass to the authority server by default (default: ["access_token", "refresh_token"])
1897
- *
1898
- * Token types will be revoked in the same order as they are given here.
1899
- */
1900
- revokeTokenTypes?: ("access_token" | "refresh_token")[];
1901
- /** Will invoke the revocation endpoint on signout if there is an access token for the user (default: false) */
1902
- revokeTokensOnSignout?: boolean;
1903
- /** Flag to control if id_token is included as id_token_hint in silent signout calls (default: false) */
1904
- includeIdTokenInSilentSignout?: boolean;
1905
- /** The number of seconds before an access token is to expire to raise the accessTokenExpiring event (default: 60) */
1906
- accessTokenExpiringNotificationTimeInSeconds?: number;
1907
- /**
1908
- * Maximum number of timeout retries before raising silentRenewError event.
1909
- * Set to 0 to fail immediately on timeout.
1910
- * Undefined means infinite retries (maintains backward compatibility, default behavior).
1911
- */
1912
- maxSilentRenewTimeoutRetries?: number;
1913
- /**
1914
- * Storage object used to persist User for currently authenticated user (default: window.sessionStorage, InMemoryWebStorage iff no window).
1915
- * E.g. `userStore: new WebStorageStateStore({ store: window.localStorage })`
1916
- */
1917
- userStore?: StateStore;
1918
- }
1919
-
1920
- /**
1921
- * The settings with defaults applied of the {@link UserManager}.
1922
- * @see {@link UserManagerSettings}
1923
- *
1924
- * @public
1925
- */
1926
- export declare class UserManagerSettingsStore extends OidcClientSettingsStore {
1927
- readonly popup_redirect_uri: string;
1928
- readonly popup_post_logout_redirect_uri: string | undefined;
1929
- readonly popupWindowFeatures: PopupWindowFeatures;
1930
- readonly popupWindowTarget: string;
1931
- readonly redirectMethod: "replace" | "assign";
1932
- readonly redirectTarget: "top" | "self";
1933
- readonly iframeNotifyParentOrigin: string | undefined;
1934
- readonly iframeScriptOrigin: string | undefined;
1935
- readonly silent_redirect_uri: string;
1936
- readonly silentRequestTimeoutInSeconds: number;
1937
- readonly automaticSilentRenew: boolean;
1938
- readonly validateSubOnSilentRenew: boolean;
1939
- readonly includeIdTokenInSilentRenew: boolean;
1940
- readonly monitorSession: boolean;
1941
- readonly monitorAnonymousSession: boolean;
1942
- readonly checkSessionIntervalInSeconds: number;
1943
- readonly query_status_response_type: string;
1944
- readonly stopCheckSessionOnError: boolean;
1945
- readonly revokeTokenTypes: ("access_token" | "refresh_token")[];
1946
- readonly revokeTokensOnSignout: boolean;
1947
- readonly includeIdTokenInSilentSignout: boolean;
1948
- readonly accessTokenExpiringNotificationTimeInSeconds: number;
1949
- readonly maxSilentRenewTimeoutRetries?: number;
1950
- readonly userStore: StateStore;
1951
- constructor(args: UserManagerSettings);
1952
- }
1953
-
1954
- /**
1955
- * Holds claims represented by a combination of the `id_token` and the user info endpoint.
1956
- *
1957
- * @public
1958
- */
1959
- export declare type UserProfile = IdTokenClaims;
1960
-
1961
- /**
1962
- * @public
1963
- */
1964
- export declare type UserSessionChangedCallback = () => Promise<void> | void;
1965
-
1966
- /**
1967
- * @public
1968
- */
1969
- export declare type UserSignedInCallback = () => Promise<void> | void;
1970
-
1971
- /**
1972
- * @public
1973
- */
1974
- export declare type UserSignedOutCallback = () => Promise<void> | void;
1975
-
1976
- /**
1977
- * @public
1978
- */
1979
- export declare type UserUnloadedCallback = () => Promise<void> | void;
1980
-
1981
- /**
1982
- * @public
1983
- */
1984
- export declare const Version: string;
1985
-
1986
- /**
1987
- * @public
1988
- */
1989
- export declare class WebStorageStateStore implements StateStore {
1990
- private readonly _logger;
1991
- private readonly _store;
1992
- private readonly _prefix;
1993
- constructor({ prefix, store, }?: {
1994
- prefix?: string;
1995
- store?: AsyncStorage | Storage;
1996
- });
1997
- set(key: string, value: string): Promise<void>;
1998
- get(key: string): Promise<string | null>;
1999
- remove(key: string): Promise<string | null>;
2000
- getAllKeys(): Promise<string[]>;
2001
- }
2002
-
2003
- export { }