@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
@@ -27,7 +27,7 @@ import { UnstableValue } from "../NamespacedValue.js";
27
27
  * 2. a user can have an arbitrary number of beacon_info events
28
28
  *
29
29
  * 1. is achieved by setting the state_key to the owners mxid.
30
- * Event keys in room state are a combination of `type` + `state_key`.
30
+ * Event keys in room state are a combination of `typestate_key`.
31
31
  * To achieve an arbitrary number of only owner-writable state events
32
32
  * we introduce a variable suffix to the event type
33
33
  *
@@ -1 +1 @@
1
- {"version":3,"file":"beacon.js","names":[],"sources":["../../src/@types/beacon.ts"],"sourcesContent":["/*\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type RelatesToRelationship, type REFERENCE_RELATION } from \"./extensible_events.ts\";\nimport { UnstableValue } from \"../NamespacedValue.ts\";\nimport { type MAssetEvent, type MLocationEvent, type MTimestampEvent } from \"./location.ts\";\n\n/**\n * Beacon info and beacon event types as described in MSC3672\n * https://github.com/matrix-org/matrix-spec-proposals/pull/3672\n */\n\n/**\n * Beacon info events are state events.\n * We have two requirements for these events:\n * 1. they can only be written by their owner\n * 2. a user can have an arbitrary number of beacon_info events\n *\n * 1. is achieved by setting the state_key to the owners mxid.\n * Event keys in room state are a combination of `type` + `state_key`.\n * To achieve an arbitrary number of only owner-writable state events\n * we introduce a variable suffix to the event type\n *\n * @example\n * ```\n * {\n * \"type\": \"m.beacon_info.@matthew:matrix.org.1\",\n * \"state_key\": \"@matthew:matrix.org\",\n * \"content\": {\n * \"m.beacon_info\": {\n * \"description\": \"The Matthew Tracker\",\n * \"timeout\": 86400000,\n * },\n * // more content as described below\n * }\n * },\n * {\n * \"type\": \"m.beacon_info.@matthew:matrix.org.2\",\n * \"state_key\": \"@matthew:matrix.org\",\n * \"content\": {\n * \"m.beacon_info\": {\n * \"description\": \"Another different Matthew tracker\",\n * \"timeout\": 400000,\n * },\n * // more content as described below\n * }\n * }\n * ```\n */\n\n/**\n * Non-variable type for m.beacon_info event content\n */\nexport const M_BEACON_INFO = new UnstableValue(\"m.beacon_info\", \"org.matrix.msc3672.beacon_info\");\nexport const M_BEACON = new UnstableValue(\"m.beacon\", \"org.matrix.msc3672.beacon\");\n\nexport type MBeaconInfoContent = {\n description?: string;\n // how long from the last event until we consider the beacon inactive in milliseconds\n timeout: number;\n // true when this is a live location beacon\n // https://github.com/matrix-org/matrix-spec-proposals/pull/3672\n live?: boolean;\n};\n\n/**\n * m.beacon_info Event example from the spec\n * https://github.com/matrix-org/matrix-spec-proposals/pull/3672\n * @example\n * ```\n * {\n * \"type\": \"m.beacon_info\",\n * \"state_key\": \"@matthew:matrix.org\",\n * \"content\": {\n * \"m.beacon_info\": {\n * \"description\": \"The Matthew Tracker\", // same as an `m.location` description\n * \"timeout\": 86400000, // how long from the last event until we consider the beacon inactive in milliseconds\n * },\n * \"m.ts\": 1436829458432, // creation timestamp of the beacon on the client\n * \"m.asset\": {\n * \"type\": \"m.self\" // the type of asset being tracked as per MSC3488\n * }\n * }\n * }\n * ```\n */\n\n/**\n * m.beacon_info.* event content\n */\nexport type MBeaconInfoEventContent = MBeaconInfoContent &\n // creation timestamp of the beacon on the client\n MTimestampEvent &\n // the type of asset being tracked as per MSC3488\n MAssetEvent;\n\n/**\n * m.beacon event example\n * https://github.com/matrix-org/matrix-spec-proposals/pull/3672\n * @example\n * ```\n * {\n * \"type\": \"m.beacon\",\n * \"sender\": \"@matthew:matrix.org\",\n * \"content\": {\n * \"m.relates_to\": { // from MSC2674: https://github.com/matrix-org/matrix-doc/pull/2674\n * \"rel_type\": \"m.reference\", // from MSC3267: https://github.com/matrix-org/matrix-doc/pull/3267\n * \"event_id\": \"$beacon_info\"\n * },\n * \"m.location\": {\n * \"uri\": \"geo:51.5008,0.1247;u=35\",\n * \"description\": \"Arbitrary beacon information\"\n * },\n * \"m.ts\": 1636829458432,\n * }\n * }\n * ```\n */\n\n/**\n * Content of an m.beacon event\n */\nexport type MBeaconEventContent = MLocationEvent &\n // timestamp when location was taken\n MTimestampEvent &\n // relates to a beacon_info event\n RelatesToRelationship<typeof REFERENCE_RELATION>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAAS,aAAa,QAAQ,uBAAuB;AAGrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,eAAe,EAAE,gCAAgC,CAAC;AACjG,OAAO,MAAM,QAAQ,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,2BAA2B,CAAC;;AAWlF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"beacon.js","names":[],"sources":["../../src/@types/beacon.ts"],"sourcesContent":["/*\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type RelatesToRelationship, type REFERENCE_RELATION } from \"./extensible_events.ts\";\nimport { UnstableValue } from \"../NamespacedValue.ts\";\nimport { type MAssetEvent, type MLocationEvent, type MTimestampEvent } from \"./location.ts\";\n\n/**\n * Beacon info and beacon event types as described in MSC3672\n * https://github.com/matrix-org/matrix-spec-proposals/pull/3672\n */\n\n/**\n * Beacon info events are state events.\n * We have two requirements for these events:\n * 1. they can only be written by their owner\n * 2. a user can have an arbitrary number of beacon_info events\n *\n * 1. is achieved by setting the state_key to the owners mxid.\n * Event keys in room state are a combination of `typestate_key`.\n * To achieve an arbitrary number of only owner-writable state events\n * we introduce a variable suffix to the event type\n *\n * @example\n * ```\n * {\n * \"type\": \"m.beacon_info.@matthew:matrix.org.1\",\n * \"state_key\": \"@matthew:matrix.org\",\n * \"content\": {\n * \"m.beacon_info\": {\n * \"description\": \"The Matthew Tracker\",\n * \"timeout\": 86400000,\n * },\n * // more content as described below\n * }\n * },\n * {\n * \"type\": \"m.beacon_info.@matthew:matrix.org.2\",\n * \"state_key\": \"@matthew:matrix.org\",\n * \"content\": {\n * \"m.beacon_info\": {\n * \"description\": \"Another different Matthew tracker\",\n * \"timeout\": 400000,\n * },\n * // more content as described below\n * }\n * }\n * ```\n */\n\n/**\n * Non-variable type for m.beacon_info event content\n */\nexport const M_BEACON_INFO = new UnstableValue(\"m.beacon_info\", \"org.matrix.msc3672.beacon_info\");\nexport const M_BEACON = new UnstableValue(\"m.beacon\", \"org.matrix.msc3672.beacon\");\n\nexport type MBeaconInfoContent = {\n description?: string;\n // how long from the last event until we consider the beacon inactive in milliseconds\n timeout: number;\n // true when this is a live location beacon\n // https://github.com/matrix-org/matrix-spec-proposals/pull/3672\n live?: boolean;\n};\n\n/**\n * m.beacon_info Event example from the spec\n * https://github.com/matrix-org/matrix-spec-proposals/pull/3672\n * @example\n * ```\n * {\n * \"type\": \"m.beacon_info\",\n * \"state_key\": \"@matthew:matrix.org\",\n * \"content\": {\n * \"m.beacon_info\": {\n * \"description\": \"The Matthew Tracker\", // same as an `m.location` description\n * \"timeout\": 86400000, // how long from the last event until we consider the beacon inactive in milliseconds\n * },\n * \"m.ts\": 1436829458432, // creation timestamp of the beacon on the client\n * \"m.asset\": {\n * \"type\": \"m.self\" // the type of asset being tracked as per MSC3488\n * }\n * }\n * }\n * ```\n */\n\n/**\n * m.beacon_info.* event content\n */\nexport type MBeaconInfoEventContent = MBeaconInfoContent &\n // creation timestamp of the beacon on the client\n MTimestampEvent &\n // the type of asset being tracked as per MSC3488\n MAssetEvent;\n\n/**\n * m.beacon event example\n * https://github.com/matrix-org/matrix-spec-proposals/pull/3672\n * @example\n * ```\n * {\n * \"type\": \"m.beacon\",\n * \"sender\": \"@matthew:matrix.org\",\n * \"content\": {\n * \"m.relates_to\": { // from MSC2674: https://github.com/matrix-org/matrix-doc/pull/2674\n * \"rel_type\": \"m.reference\", // from MSC3267: https://github.com/matrix-org/matrix-doc/pull/3267\n * \"event_id\": \"$beacon_info\"\n * },\n * \"m.location\": {\n * \"uri\": \"geo:51.5008,0.1247;u=35\",\n * \"description\": \"Arbitrary beacon information\"\n * },\n * \"m.ts\": 1636829458432,\n * }\n * }\n * ```\n */\n\n/**\n * Content of an m.beacon event\n */\nexport type MBeaconEventContent = MLocationEvent &\n // timestamp when location was taken\n MTimestampEvent &\n // relates to a beacon_info event\n RelatesToRelationship<typeof REFERENCE_RELATION>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAAS,aAAa,QAAQ,uBAAuB;AAGrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,eAAe,EAAE,gCAAgC,CAAC;AACjG,OAAO,MAAM,QAAQ,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,2BAA2B,CAAC;;AAWlF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/@types/crypto.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO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M,mCAAmC,CAAC;AAG/E,mEAAmE;AACnE,KAAK,sBAAsB,GAAG,qBAAqB,CAAC;AACpD,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEvC,UAAU,UAAU;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,0EAA0E;AAC1E,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IAClD,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,+BAA+B,EAAE,MAAM,EAAE,CAAC;IAC1C,oCAAoC;IACpC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"crypto.js","names":[],"sources":["../../src/@types/crypto.ts"],"sourcesContent":["/*\nCopyright 2022-2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport type { ISignatures } from \"./signed.ts\";\nimport type { EventDecryptionResult } from \"../common-crypto/CryptoBackend.ts\";\n\n// Backwards compatible re-export\n/** @deprecated This is an internal type and should not be used. */\ntype IEventDecryptionResult = EventDecryptionResult;\nexport type { IEventDecryptionResult };\n\ninterface Extensible {\n [key: string]: any;\n}\n\n/* eslint-disable camelcase */\n\n/** The result of a call to {@link crypto-api!CryptoApi.exportRoomKeys} */\nexport interface IMegolmSessionData extends Extensible {\n /** Sender's Curve25519 device key */\n sender_key: string;\n /** Devices which forwarded this session to us (normally empty). */\n forwarding_curve25519_key_chain: string[];\n /** Other keys the sender claims. */\n sender_claimed_keys: Record<string, string>;\n /** Room this session is used in */\n room_id: string;\n /** Unique id for the session */\n session_id: string;\n /** Base64'ed key data */\n session_key: string;\n algorithm?: string;\n untrusted?: boolean;\n}\n\n/* eslint-enable camelcase */\n\n/** the type of the `device_keys` parameter on `/_matrix/client/v3/keys/upload`\n *\n * @see https://spec.matrix.org/v1.5/client-server-api/#post_matrixclientv3keysupload\n */\nexport interface IDeviceKeys {\n algorithms: Array<string>;\n device_id: string; // eslint-disable-line camelcase\n user_id: string; // eslint-disable-line camelcase\n keys: Record<string, string>;\n signatures?: ISignatures;\n}\n\n/** the type of the `one_time_keys` and `fallback_keys` parameters on `/_matrix/client/v3/keys/upload`\n *\n * @see https://spec.matrix.org/v1.5/client-server-api/#post_matrixclientv3keysupload\n */\nexport interface IOneTimeKey {\n key: string;\n fallback?: boolean;\n signatures?: ISignatures;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"crypto.js","names":[],"sources":["../../src/@types/crypto.ts"],"sourcesContent":["/*\nCopyright 2022-2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport type { ISignatures } from \"./signed.ts\";\nimport type { EventDecryptionResult } from \"../common-crypto/CryptoBackend.ts\";\n\n// Backwards compatible re-export\n/** @deprecated This is an internal type and should not be used. */\ntype IEventDecryptionResult = EventDecryptionResult;\nexport type { IEventDecryptionResult };\n\ninterface Extensible {\n [key: string]: any;\n}\n\n/** The result of a call to {@link crypto-api!CryptoApi.exportRoomKeys} */\nexport interface IMegolmSessionData extends Extensible {\n /** Sender's Curve25519 device key */\n sender_key: string;\n /** Devices which forwarded this session to us (normally empty). */\n forwarding_curve25519_key_chain: string[];\n /** Other keys the sender claims. */\n sender_claimed_keys: Record<string, string>;\n /** Room this session is used in */\n room_id: string;\n /** Unique id for the session */\n session_id: string;\n /** Base64'ed key data */\n session_key: string;\n algorithm?: string;\n untrusted?: boolean;\n}\n\n/** the type of the `device_keys` parameter on `/_matrix/client/v3/keys/upload`\n *\n * @see https://spec.matrix.org/v1.5/client-server-api/#post_matrixclientv3keysupload\n */\nexport interface IDeviceKeys {\n algorithms: Array<string>;\n device_id: string;\n user_id: string;\n keys: Record<string, string>;\n signatures?: ISignatures;\n}\n\n/** the type of the `one_time_keys` and `fallback_keys` parameters on `/_matrix/client/v3/keys/upload`\n *\n * @see https://spec.matrix.org/v1.5/client-server-api/#post_matrixclientv3keysupload\n */\nexport interface IOneTimeKey {\n key: string;\n fallback?: boolean;\n signatures?: ISignatures;\n}\n"],"mappings":"","ignoreList":[]}
@@ -7,7 +7,7 @@ import { type M_BEACON, type M_BEACON_INFO, type MBeaconEventContent, type MBeac
7
7
  import { type EmptyObject } from "./common.ts";
8
8
  import { type ReactionEventContent, type RoomMessageEventContent, type StickerEventContent } from "./events.ts";
9
9
  import { type MCallAnswer, type MCallBase, type MCallCandidates, type MCallHangupReject, type MCallInviteNegotiate, type MCallReplacesEvent, type MCallSelectAnswer, type SDPStreamMetadata } from "../webrtc/callEventTypes.ts";
10
- import { type IRTCNotificationContent, type IRTCDeclineContent, type EncryptionKeysEventContent, type ICallNotifyContent } from "../matrixrtc/types.ts";
10
+ import { type IRTCNotificationContent, type IRTCDeclineContent, type EncryptionKeysEventContent, type ICallNotifyContent, type RtcSlotEventContent } from "../matrixrtc/types.ts";
11
11
  import { type M_POLL_END, type M_POLL_START, type PollEndEventContent, type PollStartEventContent } from "./polls.ts";
12
12
  import { type RtcMembershipData, type SessionMembershipData } from "../matrixrtc/membershipData/index.ts";
13
13
  import { type LocalNotificationSettings } from "./local_notifications.ts";
@@ -84,6 +84,7 @@ export declare enum EventType {
84
84
  SecretSend = "m.secret.send",
85
85
  GroupCallPrefix = "org.matrix.msc3401.call",
86
86
  GroupCallMemberPrefix = "org.matrix.msc3401.call.member",
87
+ RTCSlot = "org.matrix.msc4143.rtc.slot",
87
88
  RTCMembership = "org.matrix.msc4143.rtc.member",
88
89
  CallNotify = "org.matrix.msc4075.call.notify",
89
90
  RTCNotification = "org.matrix.msc4075.rtc.notification",
@@ -282,6 +283,7 @@ export interface StateEvents {
282
283
  [EventType.GroupCallPrefix]: IGroupCallRoomState;
283
284
  [EventType.GroupCallMemberPrefix]: IGroupCallRoomMemberState | SessionMembershipData | EmptyObject;
284
285
  [EventType.RTCMembership]: RtcMembershipData | EmptyObject;
286
+ [EventType.RTCSlot]: RtcSlotEventContent | EmptyObject;
285
287
  [UNSTABLE_MSC3089_BRANCH.name]: MSC3089EventContent;
286
288
  [M_BEACON_INFO.name]: MBeaconInfoEventContent;
287
289
  [ROOM_RETENTION_TYPE.name]: RoomRetentionContent | EmptyObject;
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources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AAA;KAAE,CAAC;IAC3D,CAAC,2BAA2B,CAAC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE9D,CAAC,SAAS,CAAC,sBAAsB,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIhE,gBAAgB,EAAE;QACd,YAAY,EAAE,KAAK,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACjB,CAAC,CAAC;KACN,CAAC;CACL;AAED;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,EAAE,cAAc,GAAG,cAAc,CAAC,CAAC;AAEpG;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C,oBAAoB,EAAE,UAAU,CAAC;IACjC,wBAAwB,EAAE,UAAU,CAAC;IACrC,8BAA8B,EAAE,UAAU,CAAC;IAC3C,8BAA8B,EAAE,UAAU,CAAC;IAC3C,oBAAoB,EAAE,UAAU,CAAC;CACpC"}
@@ -97,6 +97,7 @@ export let EventType = /*#__PURE__*/function (EventType) {
97
97
  EventType["GroupCallPrefix"] = "org.matrix.msc3401.call";
98
98
  EventType["GroupCallMemberPrefix"] = "org.matrix.msc3401.call.member";
99
99
  // MatrixRTC events
100
+ EventType["RTCSlot"] = "org.matrix.msc4143.rtc.slot";
100
101
  EventType["RTCMembership"] = "org.matrix.msc4143.rtc.member";
101
102
  EventType["CallNotify"] = "org.matrix.msc4075.call.notify";
102
103
  EventType["RTCNotification"] = "org.matrix.msc4075.rtc.notification";
@@ -1 +1 @@
1
- {"version":3,"file":"event.js","names":[],"sources":["../../src/@types/event.ts"],"sourcesContent":["/*\nCopyright 2020-2026 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type EitherAnd } from \"matrix-events-sdk\";\n\nimport { NamespacedValue, UnstableValue } from \"../NamespacedValue.ts\";\nimport {\n type PolicyRuleEventContent,\n type RoomAvatarEventContent,\n type RoomCanonicalAliasEventContent,\n type RoomCreateEventContent,\n type RoomEncryptionEventContent,\n type RoomGuestAccessEventContent,\n type RoomHistoryVisibilityEventContent,\n type RoomJoinRulesEventContent,\n type RoomMemberEventContent,\n type RoomNameEventContent,\n type RoomPinnedEventsEventContent,\n type RoomPolicyContent,\n type RoomPowerLevelsEventContent,\n type RoomServerAclEventContent,\n type RoomThirdPartyInviteEventContent,\n type RoomTombstoneEventContent,\n type RoomTopicEventContent,\n type SpaceChildEventContent,\n type SpaceParentEventContent,\n} from \"./state_events.ts\";\nimport { type IGroupCallRoomMemberState, type IGroupCallRoomState } from \"../webrtc/groupCall.ts\";\nimport { type MSC3089EventContent } from \"../models/MSC3089Branch.ts\";\nimport { type M_BEACON, type M_BEACON_INFO, type MBeaconEventContent, type MBeaconInfoEventContent } from \"./beacon.ts\";\nimport { type EmptyObject } from \"./common.ts\";\nimport { type ReactionEventContent, type RoomMessageEventContent, type StickerEventContent } from \"./events.ts\";\nimport {\n type MCallAnswer,\n type MCallBase,\n type MCallCandidates,\n type MCallHangupReject,\n type MCallInviteNegotiate,\n type MCallReplacesEvent,\n type MCallSelectAnswer,\n type SDPStreamMetadata,\n} from \"../webrtc/callEventTypes.ts\";\nimport {\n type IRTCNotificationContent,\n type IRTCDeclineContent,\n type EncryptionKeysEventContent,\n type ICallNotifyContent,\n} from \"../matrixrtc/types.ts\";\nimport { type M_POLL_END, type M_POLL_START, type PollEndEventContent, type PollStartEventContent } from \"./polls.ts\";\nimport { type RtcMembershipData, type SessionMembershipData } from \"../matrixrtc/membershipData/index.ts\";\nimport { type LocalNotificationSettings } from \"./local_notifications.ts\";\nimport { type IPushRules } from \"./PushRules.ts\";\nimport { type SecretInfo, type SecretStorageKeyDescription } from \"../secret-storage.ts\";\nimport { type POLICIES_ACCOUNT_EVENT_TYPE } from \"../models/invites-ignorer-types.ts\";\nimport type { ROOM_RETENTION_TYPE, RoomRetentionContent } from \"./retention.ts\";\n\nexport enum EventType {\n // Room state events\n RoomCanonicalAlias = \"m.room.canonical_alias\",\n RoomCreate = \"m.room.create\",\n RoomJoinRules = \"m.room.join_rules\",\n RoomMember = \"m.room.member\",\n RoomThirdPartyInvite = \"m.room.third_party_invite\",\n RoomPowerLevels = \"m.room.power_levels\",\n RoomName = \"m.room.name\",\n RoomTopic = \"m.room.topic\",\n RoomAvatar = \"m.room.avatar\",\n RoomPinnedEvents = \"m.room.pinned_events\",\n RoomEncryption = \"m.room.encryption\",\n RoomHistoryVisibility = \"m.room.history_visibility\",\n RoomGuestAccess = \"m.room.guest_access\",\n RoomServerAcl = \"m.room.server_acl\",\n RoomTombstone = \"m.room.tombstone\",\n RoomPredecessor = \"org.matrix.msc3946.room_predecessor\",\n\n // Moderation policy lists\n PolicyRuleUser = \"m.policy.rule.user\",\n PolicyRuleRoom = \"m.policy.rule.room\",\n PolicyRuleServer = \"m.policy.rule.server\",\n\n SpaceChild = \"m.space.child\",\n SpaceParent = \"m.space.parent\",\n\n // Room timeline events\n RoomRedaction = \"m.room.redaction\",\n RoomMessage = \"m.room.message\",\n RoomMessageEncrypted = \"m.room.encrypted\",\n Sticker = \"m.sticker\",\n CallInvite = \"m.call.invite\",\n CallCandidates = \"m.call.candidates\",\n CallAnswer = \"m.call.answer\",\n CallHangup = \"m.call.hangup\",\n CallReject = \"m.call.reject\",\n CallSelectAnswer = \"m.call.select_answer\",\n CallNegotiate = \"m.call.negotiate\",\n CallSDPStreamMetadataChanged = \"m.call.sdp_stream_metadata_changed\",\n CallSDPStreamMetadataChangedPrefix = \"org.matrix.call.sdp_stream_metadata_changed\",\n CallReplaces = \"m.call.replaces\",\n CallAssertedIdentity = \"m.call.asserted_identity\",\n CallAssertedIdentityPrefix = \"org.matrix.call.asserted_identity\",\n CallEncryptionKeysPrefix = \"io.element.call.encryption_keys\",\n KeyVerificationRequest = \"m.key.verification.request\",\n KeyVerificationStart = \"m.key.verification.start\",\n KeyVerificationCancel = \"m.key.verification.cancel\",\n KeyVerificationMac = \"m.key.verification.mac\",\n KeyVerificationDone = \"m.key.verification.done\",\n KeyVerificationKey = \"m.key.verification.key\",\n KeyVerificationAccept = \"m.key.verification.accept\",\n // Not used directly - see READY_TYPE in VerificationRequest.\n KeyVerificationReady = \"m.key.verification.ready\",\n // use of this is discouraged https://matrix.org/docs/spec/client_server/r0.6.1#m-room-message-feedback\n RoomMessageFeedback = \"m.room.message.feedback\",\n Reaction = \"m.reaction\",\n PollStart = \"org.matrix.msc3381.poll.start\",\n\n // Room ephemeral events\n Typing = \"m.typing\",\n Receipt = \"m.receipt\",\n Presence = \"m.presence\",\n\n // Room account_data events\n FullyRead = \"m.fully_read\",\n Tag = \"m.tag\",\n SpaceOrder = \"org.matrix.msc3230.space_order\", // MSC3230\n MarkedUnread = \"m.marked_unread\",\n\n // User account_data events\n PushRules = \"m.push_rules\",\n Direct = \"m.direct\",\n IgnoredUserList = \"m.ignored_user_list\",\n InvitePermissionConfig = \"m.invite_permission_config\", // MSC4380\n\n // to_device events\n RoomKey = \"m.room_key\",\n RoomKeyRequest = \"m.room_key_request\",\n ForwardedRoomKey = \"m.forwarded_room_key\",\n Dummy = \"m.dummy\",\n SecretRequest = \"m.secret.request\",\n SecretSend = \"m.secret.send\",\n\n // Group call events\n GroupCallPrefix = \"org.matrix.msc3401.call\",\n GroupCallMemberPrefix = \"org.matrix.msc3401.call.member\",\n\n // MatrixRTC events\n RTCMembership = \"org.matrix.msc4143.rtc.member\",\n CallNotify = \"org.matrix.msc4075.call.notify\",\n RTCNotification = \"org.matrix.msc4075.rtc.notification\",\n RTCDecline = \"org.matrix.msc4310.rtc.decline\",\n\n // Policy servers\n RoomPolicy = \"org.matrix.msc4284.policy\",\n\n // Retention\n RetentionPolicy = \"m.room.retention\",\n RetentionPolicyUnstable = \"org.matrix.msc1763.retention\",\n}\n\nexport enum RelationType {\n Annotation = \"m.annotation\",\n Replace = \"m.replace\",\n Reference = \"m.reference\",\n\n // Don't use this yet: it's only the stable version. The code still assumes we support the unstable prefix and,\n // moreover, our tests currently use the unstable prefix. Use THREAD_RELATION_TYPE.name.\n // Once we support *only* the stable prefix, THREAD_RELATION_TYPE can die and we can switch to this.\n Thread = \"m.thread\",\n}\n\nexport enum MsgType {\n Text = \"m.text\",\n Emote = \"m.emote\",\n Notice = \"m.notice\",\n Image = \"m.image\",\n File = \"m.file\",\n Audio = \"m.audio\",\n Location = \"m.location\",\n Video = \"m.video\",\n KeyVerificationRequest = \"m.key.verification.request\",\n}\n\nexport const RoomCreateTypeField = \"type\";\n\nexport enum RoomType {\n Space = \"m.space\",\n UnstableCall = \"org.matrix.msc3417.call\",\n ElementVideo = \"io.element.video\",\n}\n\nexport const ToDeviceMessageId = \"org.matrix.msgid\";\n\n/**\n * Identifier for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)\n * room purpose. Note that this reference is UNSTABLE and subject to breaking changes,\n * including its eventual removal.\n */\nexport const UNSTABLE_MSC3088_PURPOSE = new UnstableValue(\"m.room.purpose\", \"org.matrix.msc3088.purpose\");\n\n/**\n * Enabled flag for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)\n * room purpose. Note that this reference is UNSTABLE and subject to breaking changes,\n * including its eventual removal.\n */\nexport const UNSTABLE_MSC3088_ENABLED = new UnstableValue(\"m.enabled\", \"org.matrix.msc3088.enabled\");\n\n/**\n * Subtype for an [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.\n * Note that this reference is UNSTABLE and subject to breaking changes, including its\n * eventual removal.\n */\nexport const UNSTABLE_MSC3089_TREE_SUBTYPE = new UnstableValue(\"m.data_tree\", \"org.matrix.msc3089.data_tree\");\n\n/**\n * Leaf type for an event in a [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.\n * Note that this reference is UNSTABLE and subject to breaking changes, including its\n * eventual removal.\n */\nexport const UNSTABLE_MSC3089_LEAF = new UnstableValue(\"m.leaf\", \"org.matrix.msc3089.leaf\");\n\n/**\n * Branch (Leaf Reference) type for the index approach in a\n * [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room. Note that this reference is\n * UNSTABLE and subject to breaking changes, including its eventual removal.\n */\nexport const UNSTABLE_MSC3089_BRANCH = new UnstableValue(\"m.branch\", \"org.matrix.msc3089.branch\");\n\n/**\n * Marker event type to point back at imported historical content in a room. See\n * [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716).\n * Note that this reference is UNSTABLE and subject to breaking changes,\n * including its eventual removal.\n */\nexport const UNSTABLE_MSC2716_MARKER = new UnstableValue(\"m.room.marker\", \"org.matrix.msc2716.marker\");\n\n/**\n * Name of the request property for relation based redactions.\n * {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}\n */\nexport const MSC3912_RELATION_BASED_REDACTIONS_PROP = new UnstableValue(\n \"with_rel_types\",\n \"org.matrix.msc3912.with_relations\",\n);\n\n/**\n * Functional members type for declaring a purpose of room members (e.g. helpful bots).\n * Note that this reference is UNSTABLE and subject to breaking changes, including its\n * eventual removal.\n *\n * Schema (TypeScript):\n * ```\n * {\n * service_members?: string[]\n * }\n * ```\n *\n * @example\n * ```\n * {\n * \"service_members\": [\n * \"@helperbot:localhost\",\n * \"@reminderbot:alice.tdl\"\n * ]\n * }\n * ```\n */\nexport const UNSTABLE_ELEMENT_FUNCTIONAL_USERS = new UnstableValue(\n \"io.element.functional_members\",\n \"io.element.functional_members\",\n);\n\n/**\n * A type of message that affects visibility of a message,\n * as per https://github.com/matrix-org/matrix-doc/pull/3531\n *\n * @experimental\n */\nexport const EVENT_VISIBILITY_CHANGE_TYPE = new UnstableValue(\"m.visibility\", \"org.matrix.msc3531.visibility\");\n\n/**\n * https://github.com/matrix-org/matrix-doc/pull/3881\n *\n * @experimental\n */\nexport const PUSHER_ENABLED = new UnstableValue(\"enabled\", \"org.matrix.msc3881.enabled\");\n\n/**\n * https://github.com/matrix-org/matrix-doc/pull/3881\n *\n * @experimental\n */\nexport const PUSHER_DEVICE_ID = new UnstableValue(\"device_id\", \"org.matrix.msc3881.device_id\");\n\n/**\n * https://github.com/matrix-org/matrix-doc/pull/3890\n *\n * @experimental\n */\nexport const LOCAL_NOTIFICATION_SETTINGS_PREFIX = new UnstableValue(\n \"m.local_notification_settings\",\n \"org.matrix.msc3890.local_notification_settings\",\n);\n\n/**\n * https://github.com/matrix-org/matrix-doc/pull/4023\n *\n * @experimental\n */\nexport const UNSIGNED_THREAD_ID_FIELD = new UnstableValue(\"thread_id\", \"org.matrix.msc4023.thread_id\");\n\n/**\n * https://github.com/matrix-org/matrix-spec-proposals/pull/4115\n *\n * @experimental\n */\nexport const UNSIGNED_MEMBERSHIP_FIELD = new NamespacedValue(\"membership\", \"io.element.msc4115.membership\");\n\n/**\n * Mapped type from event type to content type for all specified non-state room events.\n */\nexport interface TimelineEvents {\n [EventType.RoomMessage]: RoomMessageEventContent;\n [EventType.Sticker]: StickerEventContent;\n [EventType.Reaction]: ReactionEventContent;\n [EventType.CallReplaces]: MCallReplacesEvent;\n [EventType.CallAnswer]: MCallAnswer;\n [EventType.CallSelectAnswer]: MCallSelectAnswer;\n [EventType.CallNegotiate]: Omit<MCallInviteNegotiate, \"offer\">;\n [EventType.CallInvite]: MCallInviteNegotiate;\n [EventType.CallCandidates]: MCallCandidates;\n [EventType.CallHangup]: MCallHangupReject;\n [EventType.CallReject]: MCallHangupReject;\n [EventType.CallSDPStreamMetadataChangedPrefix]: MCallBase &\n EitherAnd<\n { sdp_stream_metadata: SDPStreamMetadata },\n { \"org.matrix.msc3077.sdp_stream_metadata\": SDPStreamMetadata }\n >;\n [EventType.CallSDPStreamMetadataChanged]: MCallBase &\n EitherAnd<\n { sdp_stream_metadata: SDPStreamMetadata },\n { \"org.matrix.msc3077.sdp_stream_metadata\": SDPStreamMetadata }\n >;\n [EventType.CallEncryptionKeysPrefix]: EncryptionKeysEventContent;\n [EventType.CallNotify]: ICallNotifyContent;\n [EventType.RTCNotification]: IRTCNotificationContent;\n [EventType.RTCDecline]: IRTCDeclineContent;\n [M_BEACON.name]: MBeaconEventContent;\n [M_POLL_START.name]: PollStartEventContent;\n [M_POLL_END.name]: PollEndEventContent;\n [EventType.RTCMembership]: RtcMembershipData | { msc4354_sticky_key: string }; // An object containing just the sticky key is empty.\n}\n\n/**\n * Mapped type from event type to content type for all specified room state events.\n */\nexport interface StateEvents {\n [EventType.RoomCanonicalAlias]: RoomCanonicalAliasEventContent;\n [EventType.RoomCreate]: RoomCreateEventContent;\n [EventType.RoomJoinRules]: RoomJoinRulesEventContent;\n [EventType.RoomMember]: RoomMemberEventContent;\n // XXX: Spec says this event has 3 required fields but kicking such an invitation requires sending `{}`\n [EventType.RoomThirdPartyInvite]: RoomThirdPartyInviteEventContent | EmptyObject;\n [EventType.RoomPowerLevels]: RoomPowerLevelsEventContent;\n [EventType.RoomName]: RoomNameEventContent;\n [EventType.RoomTopic]: RoomTopicEventContent;\n [EventType.RoomAvatar]: RoomAvatarEventContent;\n [EventType.RoomPinnedEvents]: RoomPinnedEventsEventContent;\n [EventType.RoomEncryption]: RoomEncryptionEventContent;\n [EventType.RoomHistoryVisibility]: RoomHistoryVisibilityEventContent;\n [EventType.RoomGuestAccess]: RoomGuestAccessEventContent;\n [EventType.RoomServerAcl]: RoomServerAclEventContent;\n [EventType.RoomTombstone]: RoomTombstoneEventContent;\n [EventType.SpaceChild]: SpaceChildEventContent;\n [EventType.SpaceParent]: SpaceParentEventContent;\n\n [EventType.PolicyRuleUser]: PolicyRuleEventContent | EmptyObject;\n [EventType.PolicyRuleRoom]: PolicyRuleEventContent | EmptyObject;\n [EventType.PolicyRuleServer]: PolicyRuleEventContent | EmptyObject;\n\n // MSC4284: Policy servers\n [EventType.RoomPolicy]: RoomPolicyContent | EmptyObject;\n\n // MSC3401\n [EventType.GroupCallPrefix]: IGroupCallRoomState;\n [EventType.GroupCallMemberPrefix]: IGroupCallRoomMemberState | SessionMembershipData | EmptyObject;\n [EventType.RTCMembership]: RtcMembershipData | EmptyObject;\n // MSC3089\n [UNSTABLE_MSC3089_BRANCH.name]: MSC3089EventContent;\n\n // MSC3672\n [M_BEACON_INFO.name]: MBeaconInfoEventContent;\n\n // MSC1763\n [ROOM_RETENTION_TYPE.name]: RoomRetentionContent | EmptyObject;\n [ROOM_RETENTION_TYPE.altName]: RoomRetentionContent | EmptyObject;\n}\n\n/**\n * Mapped type from event type to content type for all specified room-specific account_data events.\n */\nexport interface RoomAccountDataEvents extends SecretStorageAccountDataEvents {\n [EventType.FullyRead]: { event_id: string };\n [EventType.Tag]: { tags: { [name: string]: { order?: number } } };\n [EventType.SpaceOrder]: { order: string };\n [EventType.MarkedUnread]: { unread: boolean };\n}\n\n/**\n * Mapped type from event type to content type for all specified global account_data events.\n */\nexport interface AccountDataEvents extends SecretStorageAccountDataEvents {\n [EventType.PushRules]: IPushRules;\n [EventType.Direct]: { [userId: string]: string[] };\n [EventType.IgnoredUserList]: { ignored_users: { [userId: string]: EmptyObject } };\n \"m.secret_storage.default_key\": { key: string };\n\n // MSC4287: Sharing key backup preference between clients - used to mark that the user opted out of key storage\n \"m.key_backup\": { enabled: boolean };\n // MSC4287 unstable prefix (note the boolean property has the opposite sense)\n \"m.org.matrix.custom.backup_disabled\": { disabled: boolean };\n\n \"m.identity_server\": { base_url: string | null };\n [key: `${typeof LOCAL_NOTIFICATION_SETTINGS_PREFIX.name}.${string}`]: LocalNotificationSettings;\n [key: `m.secret_storage.key.${string}`]: SecretStorageKeyDescription;\n\n // Invites-ignorer events\n [POLICIES_ACCOUNT_EVENT_TYPE.name]: { [key: string]: any };\n [POLICIES_ACCOUNT_EVENT_TYPE.altName]: { [key: string]: any };\n\n [EventType.InvitePermissionConfig]: { default_action?: string };\n\n // List of recently used reaction emojis\n // https://spec.matrix.org/v1.18/client-server-api/#mrecent_emoji\n \"m.recent_emoji\": {\n recent_emoji: Array<{\n emoji: string;\n total: number;\n }>;\n };\n}\n\n/**\n * Subset of AccountDataEvents, excluding events specified in https://spec.matrix.org/v1.17/client-server-api/#server-behaviour-12\n */\nexport type WritableAccountDataEvents = Exclude<AccountDataEvents, \"m.fully_read\" | \"m.push_rules\">;\n\n/**\n * Mapped type from event type to content type for all specified global events encrypted by secret storage.\n *\n * See https://spec.matrix.org/v1.13/client-server-api/#msecret_storagev1aes-hmac-sha2-1\n */\nexport interface SecretStorageAccountDataEvents {\n \"m.megolm_backup.v1\": SecretInfo;\n \"m.cross_signing.master\": SecretInfo;\n \"m.cross_signing.self_signing\": SecretInfo;\n \"m.cross_signing.user_signing\": SecretInfo;\n \"org.matrix.msc3814\": SecretInfo;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAAS,eAAe,EAAE,aAAa,QAAQ,uBAAuB;AAmDtE,WAAY,SAAS,0BAAT,SAAS;EACjB;EADQ,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAmBjB;EAnBQ,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EA2BjB;EA3BQ,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;EAAT,SAAS;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aAAa,CAAC,WAAW,EAAE,8BAA8B,CAAC;;AAEtG;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,yBAAyB,GAAG,IAAI,eAAe,CAAC,YAAY,EAAE,+BAA+B,CAAC;;AAE3G;AACA;AACA;;AAiCA;AACA;AACA;;AA2CA;AACA;AACA;;AAQA;AACA;AACA;;AAgCA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"event.js","names":[],"sources":["../../src/@types/event.ts"],"sourcesContent":["/*\nCopyright 2020-2026 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type EitherAnd } from \"matrix-events-sdk\";\n\nimport { NamespacedValue, UnstableValue } from \"../NamespacedValue.ts\";\nimport {\n type PolicyRuleEventContent,\n type RoomAvatarEventContent,\n type RoomCanonicalAliasEventContent,\n type RoomCreateEventContent,\n type RoomEncryptionEventContent,\n type RoomGuestAccessEventContent,\n type RoomHistoryVisibilityEventContent,\n type RoomJoinRulesEventContent,\n type RoomMemberEventContent,\n type RoomNameEventContent,\n type RoomPinnedEventsEventContent,\n type RoomPolicyContent,\n type RoomPowerLevelsEventContent,\n type RoomServerAclEventContent,\n type RoomThirdPartyInviteEventContent,\n type RoomTombstoneEventContent,\n type RoomTopicEventContent,\n type SpaceChildEventContent,\n type SpaceParentEventContent,\n} from \"./state_events.ts\";\nimport { type IGroupCallRoomMemberState, type IGroupCallRoomState } from \"../webrtc/groupCall.ts\";\nimport { type MSC3089EventContent } from \"../models/MSC3089Branch.ts\";\nimport { type M_BEACON, type M_BEACON_INFO, type MBeaconEventContent, type MBeaconInfoEventContent } from \"./beacon.ts\";\nimport { type EmptyObject } from \"./common.ts\";\nimport { type ReactionEventContent, type RoomMessageEventContent, type StickerEventContent } from \"./events.ts\";\nimport {\n type MCallAnswer,\n type MCallBase,\n type MCallCandidates,\n type MCallHangupReject,\n type MCallInviteNegotiate,\n type MCallReplacesEvent,\n type MCallSelectAnswer,\n type SDPStreamMetadata,\n} from \"../webrtc/callEventTypes.ts\";\nimport {\n type IRTCNotificationContent,\n type IRTCDeclineContent,\n type EncryptionKeysEventContent,\n type ICallNotifyContent,\n type RtcSlotEventContent,\n} from \"../matrixrtc/types.ts\";\nimport { type M_POLL_END, type M_POLL_START, type PollEndEventContent, type PollStartEventContent } from \"./polls.ts\";\nimport { type RtcMembershipData, type SessionMembershipData } from \"../matrixrtc/membershipData/index.ts\";\nimport { type LocalNotificationSettings } from \"./local_notifications.ts\";\nimport { type IPushRules } from \"./PushRules.ts\";\nimport { type SecretInfo, type SecretStorageKeyDescription } from \"../secret-storage.ts\";\nimport { type POLICIES_ACCOUNT_EVENT_TYPE } from \"../models/invites-ignorer-types.ts\";\nimport type { ROOM_RETENTION_TYPE, RoomRetentionContent } from \"./retention.ts\";\n\nexport enum EventType {\n // Room state events\n RoomCanonicalAlias = \"m.room.canonical_alias\",\n RoomCreate = \"m.room.create\",\n RoomJoinRules = \"m.room.join_rules\",\n RoomMember = \"m.room.member\",\n RoomThirdPartyInvite = \"m.room.third_party_invite\",\n RoomPowerLevels = \"m.room.power_levels\",\n RoomName = \"m.room.name\",\n RoomTopic = \"m.room.topic\",\n RoomAvatar = \"m.room.avatar\",\n RoomPinnedEvents = \"m.room.pinned_events\",\n RoomEncryption = \"m.room.encryption\",\n RoomHistoryVisibility = \"m.room.history_visibility\",\n RoomGuestAccess = \"m.room.guest_access\",\n RoomServerAcl = \"m.room.server_acl\",\n RoomTombstone = \"m.room.tombstone\",\n RoomPredecessor = \"org.matrix.msc3946.room_predecessor\",\n\n // Moderation policy lists\n PolicyRuleUser = \"m.policy.rule.user\",\n PolicyRuleRoom = \"m.policy.rule.room\",\n PolicyRuleServer = \"m.policy.rule.server\",\n\n SpaceChild = \"m.space.child\",\n SpaceParent = \"m.space.parent\",\n\n // Room timeline events\n RoomRedaction = \"m.room.redaction\",\n RoomMessage = \"m.room.message\",\n RoomMessageEncrypted = \"m.room.encrypted\",\n Sticker = \"m.sticker\",\n CallInvite = \"m.call.invite\",\n CallCandidates = \"m.call.candidates\",\n CallAnswer = \"m.call.answer\",\n CallHangup = \"m.call.hangup\",\n CallReject = \"m.call.reject\",\n CallSelectAnswer = \"m.call.select_answer\",\n CallNegotiate = \"m.call.negotiate\",\n CallSDPStreamMetadataChanged = \"m.call.sdp_stream_metadata_changed\",\n CallSDPStreamMetadataChangedPrefix = \"org.matrix.call.sdp_stream_metadata_changed\",\n CallReplaces = \"m.call.replaces\",\n CallAssertedIdentity = \"m.call.asserted_identity\",\n CallAssertedIdentityPrefix = \"org.matrix.call.asserted_identity\",\n CallEncryptionKeysPrefix = \"io.element.call.encryption_keys\",\n KeyVerificationRequest = \"m.key.verification.request\",\n KeyVerificationStart = \"m.key.verification.start\",\n KeyVerificationCancel = \"m.key.verification.cancel\",\n KeyVerificationMac = \"m.key.verification.mac\",\n KeyVerificationDone = \"m.key.verification.done\",\n KeyVerificationKey = \"m.key.verification.key\",\n KeyVerificationAccept = \"m.key.verification.accept\",\n // Not used directly - see READY_TYPE in VerificationRequest.\n KeyVerificationReady = \"m.key.verification.ready\",\n // use of this is discouraged https://matrix.org/docs/spec/client_server/r0.6.1#m-room-message-feedback\n RoomMessageFeedback = \"m.room.message.feedback\",\n Reaction = \"m.reaction\",\n PollStart = \"org.matrix.msc3381.poll.start\",\n\n // Room ephemeral events\n Typing = \"m.typing\",\n Receipt = \"m.receipt\",\n Presence = \"m.presence\",\n\n // Room account_data events\n FullyRead = \"m.fully_read\",\n Tag = \"m.tag\",\n SpaceOrder = \"org.matrix.msc3230.space_order\", // MSC3230\n MarkedUnread = \"m.marked_unread\",\n\n // User account_data events\n PushRules = \"m.push_rules\",\n Direct = \"m.direct\",\n IgnoredUserList = \"m.ignored_user_list\",\n InvitePermissionConfig = \"m.invite_permission_config\", // MSC4380\n\n // to_device events\n RoomKey = \"m.room_key\",\n RoomKeyRequest = \"m.room_key_request\",\n ForwardedRoomKey = \"m.forwarded_room_key\",\n Dummy = \"m.dummy\",\n SecretRequest = \"m.secret.request\",\n SecretSend = \"m.secret.send\",\n\n // Group call events\n GroupCallPrefix = \"org.matrix.msc3401.call\",\n GroupCallMemberPrefix = \"org.matrix.msc3401.call.member\",\n\n // MatrixRTC events\n RTCSlot = \"org.matrix.msc4143.rtc.slot\",\n RTCMembership = \"org.matrix.msc4143.rtc.member\",\n CallNotify = \"org.matrix.msc4075.call.notify\",\n RTCNotification = \"org.matrix.msc4075.rtc.notification\",\n RTCDecline = \"org.matrix.msc4310.rtc.decline\",\n\n // Policy servers\n RoomPolicy = \"org.matrix.msc4284.policy\",\n\n // Retention\n RetentionPolicy = \"m.room.retention\",\n RetentionPolicyUnstable = \"org.matrix.msc1763.retention\",\n}\n\nexport enum RelationType {\n Annotation = \"m.annotation\",\n Replace = \"m.replace\",\n Reference = \"m.reference\",\n\n // Don't use this yet: it's only the stable version. The code still assumes we support the unstable prefix and,\n // moreover, our tests currently use the unstable prefix. Use THREAD_RELATION_TYPE.name.\n // Once we support *only* the stable prefix, THREAD_RELATION_TYPE can die and we can switch to this.\n Thread = \"m.thread\",\n}\n\nexport enum MsgType {\n Text = \"m.text\",\n Emote = \"m.emote\",\n Notice = \"m.notice\",\n Image = \"m.image\",\n File = \"m.file\",\n Audio = \"m.audio\",\n Location = \"m.location\",\n Video = \"m.video\",\n KeyVerificationRequest = \"m.key.verification.request\",\n}\n\nexport const RoomCreateTypeField = \"type\";\n\nexport enum RoomType {\n Space = \"m.space\",\n UnstableCall = \"org.matrix.msc3417.call\",\n ElementVideo = \"io.element.video\",\n}\n\nexport const ToDeviceMessageId = \"org.matrix.msgid\";\n\n/**\n * Identifier for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)\n * room purpose. Note that this reference is UNSTABLE and subject to breaking changes,\n * including its eventual removal.\n */\nexport const UNSTABLE_MSC3088_PURPOSE = new UnstableValue(\"m.room.purpose\", \"org.matrix.msc3088.purpose\");\n\n/**\n * Enabled flag for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)\n * room purpose. Note that this reference is UNSTABLE and subject to breaking changes,\n * including its eventual removal.\n */\nexport const UNSTABLE_MSC3088_ENABLED = new UnstableValue(\"m.enabled\", \"org.matrix.msc3088.enabled\");\n\n/**\n * Subtype for an [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.\n * Note that this reference is UNSTABLE and subject to breaking changes, including its\n * eventual removal.\n */\nexport const UNSTABLE_MSC3089_TREE_SUBTYPE = new UnstableValue(\"m.data_tree\", \"org.matrix.msc3089.data_tree\");\n\n/**\n * Leaf type for an event in a [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.\n * Note that this reference is UNSTABLE and subject to breaking changes, including its\n * eventual removal.\n */\nexport const UNSTABLE_MSC3089_LEAF = new UnstableValue(\"m.leaf\", \"org.matrix.msc3089.leaf\");\n\n/**\n * Branch (Leaf Reference) type for the index approach in a\n * [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room. Note that this reference is\n * UNSTABLE and subject to breaking changes, including its eventual removal.\n */\nexport const UNSTABLE_MSC3089_BRANCH = new UnstableValue(\"m.branch\", \"org.matrix.msc3089.branch\");\n\n/**\n * Marker event type to point back at imported historical content in a room. See\n * [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716).\n * Note that this reference is UNSTABLE and subject to breaking changes,\n * including its eventual removal.\n */\nexport const UNSTABLE_MSC2716_MARKER = new UnstableValue(\"m.room.marker\", \"org.matrix.msc2716.marker\");\n\n/**\n * Name of the request property for relation based redactions.\n * {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}\n */\nexport const MSC3912_RELATION_BASED_REDACTIONS_PROP = new UnstableValue(\n \"with_rel_types\",\n \"org.matrix.msc3912.with_relations\",\n);\n\n/**\n * Functional members type for declaring a purpose of room members (e.g. helpful bots).\n * Note that this reference is UNSTABLE and subject to breaking changes, including its\n * eventual removal.\n *\n * Schema (TypeScript):\n * ```\n * {\n * service_members?: string[]\n * }\n * ```\n *\n * @example\n * ```\n * {\n * \"service_members\": [\n * \"@helperbot:localhost\",\n * \"@reminderbot:alice.tdl\"\n * ]\n * }\n * ```\n */\nexport const UNSTABLE_ELEMENT_FUNCTIONAL_USERS = new UnstableValue(\n \"io.element.functional_members\",\n \"io.element.functional_members\",\n);\n\n/**\n * A type of message that affects visibility of a message,\n * as per https://github.com/matrix-org/matrix-doc/pull/3531\n *\n * @experimental\n */\nexport const EVENT_VISIBILITY_CHANGE_TYPE = new UnstableValue(\"m.visibility\", \"org.matrix.msc3531.visibility\");\n\n/**\n * https://github.com/matrix-org/matrix-doc/pull/3881\n *\n * @experimental\n */\nexport const PUSHER_ENABLED = new UnstableValue(\"enabled\", \"org.matrix.msc3881.enabled\");\n\n/**\n * https://github.com/matrix-org/matrix-doc/pull/3881\n *\n * @experimental\n */\nexport const PUSHER_DEVICE_ID = new UnstableValue(\"device_id\", \"org.matrix.msc3881.device_id\");\n\n/**\n * https://github.com/matrix-org/matrix-doc/pull/3890\n *\n * @experimental\n */\nexport const LOCAL_NOTIFICATION_SETTINGS_PREFIX = new UnstableValue(\n \"m.local_notification_settings\",\n \"org.matrix.msc3890.local_notification_settings\",\n);\n\n/**\n * https://github.com/matrix-org/matrix-doc/pull/4023\n *\n * @experimental\n */\nexport const UNSIGNED_THREAD_ID_FIELD = new UnstableValue(\"thread_id\", \"org.matrix.msc4023.thread_id\");\n\n/**\n * https://github.com/matrix-org/matrix-spec-proposals/pull/4115\n *\n * @experimental\n */\nexport const UNSIGNED_MEMBERSHIP_FIELD = new NamespacedValue(\"membership\", \"io.element.msc4115.membership\");\n\n/**\n * Mapped type from event type to content type for all specified non-state room events.\n */\nexport interface TimelineEvents {\n [EventType.RoomMessage]: RoomMessageEventContent;\n [EventType.Sticker]: StickerEventContent;\n [EventType.Reaction]: ReactionEventContent;\n [EventType.CallReplaces]: MCallReplacesEvent;\n [EventType.CallAnswer]: MCallAnswer;\n [EventType.CallSelectAnswer]: MCallSelectAnswer;\n [EventType.CallNegotiate]: Omit<MCallInviteNegotiate, \"offer\">;\n [EventType.CallInvite]: MCallInviteNegotiate;\n [EventType.CallCandidates]: MCallCandidates;\n [EventType.CallHangup]: MCallHangupReject;\n [EventType.CallReject]: MCallHangupReject;\n [EventType.CallSDPStreamMetadataChangedPrefix]: MCallBase &\n EitherAnd<\n { sdp_stream_metadata: SDPStreamMetadata },\n { \"org.matrix.msc3077.sdp_stream_metadata\": SDPStreamMetadata }\n >;\n [EventType.CallSDPStreamMetadataChanged]: MCallBase &\n EitherAnd<\n { sdp_stream_metadata: SDPStreamMetadata },\n { \"org.matrix.msc3077.sdp_stream_metadata\": SDPStreamMetadata }\n >;\n [EventType.CallEncryptionKeysPrefix]: EncryptionKeysEventContent;\n [EventType.CallNotify]: ICallNotifyContent;\n [EventType.RTCNotification]: IRTCNotificationContent;\n [EventType.RTCDecline]: IRTCDeclineContent;\n [M_BEACON.name]: MBeaconEventContent;\n [M_POLL_START.name]: PollStartEventContent;\n [M_POLL_END.name]: PollEndEventContent;\n [EventType.RTCMembership]: RtcMembershipData | { msc4354_sticky_key: string }; // An object containing just the sticky key is empty.\n}\n\n/**\n * Mapped type from event type to content type for all specified room state events.\n */\nexport interface StateEvents {\n [EventType.RoomCanonicalAlias]: RoomCanonicalAliasEventContent;\n [EventType.RoomCreate]: RoomCreateEventContent;\n [EventType.RoomJoinRules]: RoomJoinRulesEventContent;\n [EventType.RoomMember]: RoomMemberEventContent;\n // XXX: Spec says this event has 3 required fields but kicking such an invitation requires sending `{}`\n [EventType.RoomThirdPartyInvite]: RoomThirdPartyInviteEventContent | EmptyObject;\n [EventType.RoomPowerLevels]: RoomPowerLevelsEventContent;\n [EventType.RoomName]: RoomNameEventContent;\n [EventType.RoomTopic]: RoomTopicEventContent;\n [EventType.RoomAvatar]: RoomAvatarEventContent;\n [EventType.RoomPinnedEvents]: RoomPinnedEventsEventContent;\n [EventType.RoomEncryption]: RoomEncryptionEventContent;\n [EventType.RoomHistoryVisibility]: RoomHistoryVisibilityEventContent;\n [EventType.RoomGuestAccess]: RoomGuestAccessEventContent;\n [EventType.RoomServerAcl]: RoomServerAclEventContent;\n [EventType.RoomTombstone]: RoomTombstoneEventContent;\n [EventType.SpaceChild]: SpaceChildEventContent;\n [EventType.SpaceParent]: SpaceParentEventContent;\n\n [EventType.PolicyRuleUser]: PolicyRuleEventContent | EmptyObject;\n [EventType.PolicyRuleRoom]: PolicyRuleEventContent | EmptyObject;\n [EventType.PolicyRuleServer]: PolicyRuleEventContent | EmptyObject;\n\n // MSC4284: Policy servers\n [EventType.RoomPolicy]: RoomPolicyContent | EmptyObject;\n\n // MSC3401\n [EventType.GroupCallPrefix]: IGroupCallRoomState;\n [EventType.GroupCallMemberPrefix]: IGroupCallRoomMemberState | SessionMembershipData | EmptyObject;\n [EventType.RTCMembership]: RtcMembershipData | EmptyObject;\n [EventType.RTCSlot]: RtcSlotEventContent | EmptyObject;\n // MSC3089\n [UNSTABLE_MSC3089_BRANCH.name]: MSC3089EventContent;\n\n // MSC3672\n [M_BEACON_INFO.name]: MBeaconInfoEventContent;\n\n // MSC1763\n [ROOM_RETENTION_TYPE.name]: RoomRetentionContent | EmptyObject;\n [ROOM_RETENTION_TYPE.altName]: RoomRetentionContent | EmptyObject;\n}\n\n/**\n * Mapped type from event type to content type for all specified room-specific account_data events.\n */\nexport interface RoomAccountDataEvents extends SecretStorageAccountDataEvents {\n [EventType.FullyRead]: { event_id: string };\n [EventType.Tag]: { tags: { [name: string]: { order?: number } } };\n [EventType.SpaceOrder]: { order: string };\n [EventType.MarkedUnread]: { unread: boolean };\n}\n\n/**\n * Mapped type from event type to content type for all specified global account_data events.\n */\nexport interface AccountDataEvents extends SecretStorageAccountDataEvents {\n [EventType.PushRules]: IPushRules;\n [EventType.Direct]: { [userId: string]: string[] };\n [EventType.IgnoredUserList]: { ignored_users: { [userId: string]: EmptyObject } };\n \"m.secret_storage.default_key\": { key: string };\n\n // MSC4287: Sharing key backup preference between clients - used to mark that the user opted out of key storage\n \"m.key_backup\": { enabled: boolean };\n // MSC4287 unstable prefix (note the boolean property has the opposite sense)\n \"m.org.matrix.custom.backup_disabled\": { disabled: boolean };\n\n \"m.identity_server\": { base_url: string | null };\n [key: `${typeof LOCAL_NOTIFICATION_SETTINGS_PREFIX.name}.${string}`]: LocalNotificationSettings;\n [key: `m.secret_storage.key.${string}`]: SecretStorageKeyDescription;\n\n // Invites-ignorer events\n [POLICIES_ACCOUNT_EVENT_TYPE.name]: { [key: string]: any };\n [POLICIES_ACCOUNT_EVENT_TYPE.altName]: { [key: string]: any };\n\n [EventType.InvitePermissionConfig]: { default_action?: string };\n\n // List of recently used reaction emojis\n // https://spec.matrix.org/v1.18/client-server-api/#mrecent_emoji\n \"m.recent_emoji\": {\n recent_emoji: Array<{\n emoji: string;\n total: number;\n }>;\n };\n}\n\n/**\n * Subset of AccountDataEvents, excluding events specified in https://spec.matrix.org/v1.17/client-server-api/#server-behaviour-12\n */\nexport type WritableAccountDataEvents = Exclude<AccountDataEvents, \"m.fully_read\" | \"m.push_rules\">;\n\n/**\n * Mapped type from event type to content type for all specified global events encrypted by secret storage.\n *\n * See https://spec.matrix.org/v1.13/client-server-api/#msecret_storagev1aes-hmac-sha2-1\n */\nexport interface SecretStorageAccountDataEvents {\n \"m.megolm_backup.v1\": SecretInfo;\n \"m.cross_signing.master\": SecretInfo;\n \"m.cross_signing.self_signing\": SecretInfo;\n \"m.cross_signing.user_signing\": SecretInfo;\n \"org.matrix.msc3814\": SecretInfo;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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ACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,iCAAiC,GAAG,IAAI,aAAa,CAC9D,+BAA+B,EAC/B,+BACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,4BAA4B,GAAG,IAAI,aAAa,CAAC,cAAc,EAAE,+BAA+B,CAAC;;AAE9G;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,cAAc,GAAG,IAAI,aAAa,CAAC,SAAS,EAAE,4BAA4B,CAAC;;AAExF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,8BAA8B,CAAC;;AAE9F;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,kCAAkC,GAAG,IAAI,aAAa,CAC/D,+BAA+B,EAC/B,gDACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,wBAAwB,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,8BAA8B,CAAC;;AAEtG;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,yBAAyB,GAAG,IAAI,eAAe,CAAC,YAAY,EAAE,+BAA+B,CAAC;;AAE3G;AACA;AACA;;AAiCA;AACA;AACA;;AA4CA;AACA;AACA;;AAQA;AACA;AACA;;AAgCA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"extensible_events.d.ts","sourceRoot":"","sources":["../../src/@types/extensible_events.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMnF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAEpG;;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BAAqB,CAAC,CAAC,GAAG,KAAK,IAAI;IAC3C,cAAc,EAAE;QAEZ,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAC7D,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;CACL,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,QAAQ;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;AAE3E;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,EAAE,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GAAG,OAAO,CAkBhH"}
@@ -1 +1 @@
1
- {"version":3,"file":"extensible_events.js","names":[],"sources":["../../src/@types/extensible_events.ts"],"sourcesContent":["/*\nCopyright 2021 - 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type EitherAnd, NamespacedValue, UnstableValue } from \"matrix-events-sdk\";\n\nimport { isProvided } from \"../extensible_events_v1/utilities.ts\";\n\n// Types and utilities for MSC1767: Extensible events (version 1) in Matrix\n\n/**\n * Represents the stable and unstable values of a given namespace.\n */\nexport type TSNamespace<N> =\n N extends NamespacedValue<infer S, infer U> ? TSNamespaceValue<S> | TSNamespaceValue<U> : never;\n\n/**\n * Represents a namespaced value, if the value is a string. Used to extract provided types\n * from a TSNamespace<N> (in cases where only stable *or* unstable is provided).\n */\nexport type TSNamespaceValue<V> = V extends string ? V : never;\n\n/**\n * Creates a type which is V when T is `never`, otherwise T.\n */\n// See https://github.com/microsoft/TypeScript/issues/23182#issuecomment-379091887 for details on the array syntax.\nexport type DefaultNever<T, V> = [T] extends [never] ? V : T;\n\n/**\n * The namespaced value for m.message\n */\nexport const M_MESSAGE = new UnstableValue(\"m.message\", \"org.matrix.msc1767.message\");\n\n/**\n * An m.message event rendering\n */\nexport interface IMessageRendering {\n body: string;\n mimetype?: string;\n}\n\n/**\n * The content for an m.message event\n */\nexport type ExtensibleMessageEventContent = EitherAnd<\n { [M_MESSAGE.name]: IMessageRendering[] },\n { [M_MESSAGE.altName]: IMessageRendering[] }\n>;\n\n/**\n * The namespaced value for m.text\n */\nexport const M_TEXT = new UnstableValue(\"m.text\", \"org.matrix.msc1767.text\");\n\n/**\n * The content for an m.text event\n */\nexport type TextEventContent = EitherAnd<{ [M_TEXT.name]: string }, { [M_TEXT.altName]: string }>;\n\n/**\n * The namespaced value for m.html\n */\nexport const M_HTML = new UnstableValue(\"m.html\", \"org.matrix.msc1767.html\");\n\n/**\n * The content for an m.html event\n */\nexport type HtmlEventContent = EitherAnd<{ [M_HTML.name]: string }, { [M_HTML.altName]: string }>;\n\n/**\n * The content for an m.message, m.text, or m.html event\n */\nexport type ExtensibleAnyMessageEventContent = ExtensibleMessageEventContent | TextEventContent | HtmlEventContent;\n\n/**\n * The namespaced value for an m.reference relation\n */\nexport const REFERENCE_RELATION = new NamespacedValue(\"m.reference\");\n\n/**\n * Represents any relation type\n */\nexport type AnyRelation = TSNamespace<typeof REFERENCE_RELATION> | string;\n\n/**\n * An m.relates_to relationship\n */\nexport type RelatesToRelationship<R = never> = {\n \"m.relates_to\": {\n // See https://github.com/microsoft/TypeScript/issues/23182#issuecomment-379091887 for array syntax\n rel_type: [R] extends [never] ? AnyRelation : TSNamespace<R>;\n event_id: string;\n };\n};\n\n/**\n * Partial types for a Matrix Event.\n */\nexport interface IPartialEvent<TContent> {\n type: string;\n content: TContent;\n}\n\n/**\n * Represents a potentially namespaced event type.\n */\nexport type ExtensibleEventType = NamespacedValue<string, string> | string;\n\n/**\n * Determines if two event types are the same, including namespaces.\n * @param given - The given event type. This will be compared\n * against the expected type.\n * @param expected - The expected event type.\n * @returns True if the given type matches the expected type.\n */\nexport function isEventTypeSame(given: ExtensibleEventType | null, expected: ExtensibleEventType | null): boolean {\n if (typeof given === \"string\") {\n if (typeof expected === \"string\") {\n return expected === given;\n } else {\n return (expected as NamespacedValue<string, string>).matches(given as string);\n }\n } else {\n if (typeof expected === \"string\") {\n return (given as NamespacedValue<string, string>).matches(expected as string);\n } else {\n const expectedNs = expected as NamespacedValue<string, string>;\n const givenNs = given as NamespacedValue<string, string>;\n return (\n expectedNs.matches(givenNs.name) ||\n (isProvided(givenNs.altName) && expectedNs.matches(givenNs.altName!))\n );\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAyB,eAAe,EAAE,aAAa,QAAQ,mBAAmB;AAElF,SAAS,UAAU,QAAQ,sCAAsC;;AAEjE;;AAEA;AACA;AACA;;AAIA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,SAAS,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,4BAA4B,CAAC;;AAErF;AACA;AACA;;AAMA;AACA;AACA;;AAMA;AACA;AACA;AACA,OAAO,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,QAAQ,EAAE,yBAAyB,CAAC;;AAE5E;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,QAAQ,EAAE,yBAAyB,CAAC;;AAE5E;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,kBAAkB,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC;;AAEpE;AACA;AACA;;AAGA;AACA;AACA;;AASA;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS,eAAe,CAAC,KAAiC,EAAE,QAAoC,EAAW;EAC9G,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IAC3B,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MAC9B,OAAO,QAAQ,KAAK,KAAK;IAC7B,CAAC,MAAM;MACH,OAAQ,QAAQ,CAAqC,OAAO,CAAC,KAAe,CAAC;IACjF;EACJ,CAAC,MAAM;IACH,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MAC9B,OAAQ,KAAK,CAAqC,OAAO,CAAC,QAAkB,CAAC;IACjF,CAAC,MAAM;MACH,MAAM,UAAU,GAAG,QAA2C;MAC9D,MAAM,OAAO,GAAG,KAAwC;MACxD,OACI,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAC/B,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,OAAQ,CAAE;IAE7E;EACJ;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"extensible_events.js","names":[],"sources":["../../src/@types/extensible_events.ts"],"sourcesContent":["/*\nCopyright 2021 - 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type EitherAnd, NamespacedValue, UnstableValue } from \"matrix-events-sdk\";\n\nimport { isProvided } from \"../extensible_events_v1/utilities.ts\";\n\n// Types and utilities for MSC1767: Extensible events (version 1) in Matrix\n\n/**\n * Represents the stable and unstable values of a given namespace.\n */\nexport type TSNamespace<N> =\n N extends NamespacedValue<infer S, infer U> ? TSNamespaceValue<S> | TSNamespaceValue<U> : never;\n\n/**\n * Represents a namespaced value, if the value is a string. Used to extract provided types\n * from a TSNamespace<N> (in cases where only stable *or* unstable is provided).\n */\nexport type TSNamespaceValue<V> = V extends string ? V : never;\n\n/**\n * Creates a type which is V when T is `never`, otherwise T.\n */\n// See https://github.com/microsoft/TypeScript/issues/23182#issuecomment-379091887 for details on the array syntax.\nexport type DefaultNever<T, V> = [T] extends [never] ? V : T;\n\n/**\n * The namespaced value for m.message\n */\nexport const M_MESSAGE = new UnstableValue(\"m.message\", \"org.matrix.msc1767.message\");\n\n/**\n * An m.message event rendering\n */\nexport interface IMessageRendering {\n body: string;\n mimetype?: string;\n}\n\n/**\n * The content for an m.message event\n */\nexport type ExtensibleMessageEventContent = EitherAnd<\n { [M_MESSAGE.name]: IMessageRendering[] },\n { [M_MESSAGE.altName]: IMessageRendering[] }\n>;\n\n/**\n * The namespaced value for m.text\n */\nexport const M_TEXT = new UnstableValue(\"m.text\", \"org.matrix.msc1767.text\");\n\n/**\n * The content for an m.text event\n */\nexport type TextEventContent = EitherAnd<{ [M_TEXT.name]: string }, { [M_TEXT.altName]: string }>;\n\n/**\n * The namespaced value for m.html\n */\nexport const M_HTML = new UnstableValue(\"m.html\", \"org.matrix.msc1767.html\");\n\n/**\n * The content for an m.html event\n */\nexport type HtmlEventContent = EitherAnd<{ [M_HTML.name]: string }, { [M_HTML.altName]: string }>;\n\n/**\n * The content for an m.message, m.text, or m.html event\n */\nexport type ExtensibleAnyMessageEventContent = ExtensibleMessageEventContent | TextEventContent | HtmlEventContent;\n\n/**\n * The namespaced value for an m.reference relation\n */\nexport const REFERENCE_RELATION = new NamespacedValue(\"m.reference\");\n\n/**\n * Represents any relation type\n */\nexport type AnyRelation = TSNamespace<typeof REFERENCE_RELATION> | string;\n\n/**\n * An m.relates_to relationship\n */\nexport type RelatesToRelationship<R = never> = {\n \"m.relates_to\": {\n // See https://github.com/microsoft/TypeScript/issues/23182#issuecomment-379091887 for array syntax\n rel_type: [R] extends [never] ? AnyRelation : TSNamespace<R>;\n event_id: string;\n };\n};\n\n/**\n * Partial types for a Matrix Event.\n */\nexport interface IPartialEvent<TContent> {\n type: string;\n content: TContent;\n}\n\n/**\n * Represents a potentially namespaced event type.\n */\nexport type ExtensibleEventType = NamespacedValue<string, string> | string;\n\n/**\n * Determines if two event types are the same, including namespaces.\n * @param given - The given event type. This will be compared\n * against the expected type.\n * @param expected - The expected event type.\n * @returns True if the given type matches the expected type.\n */\nexport function isEventTypeSame(given: ExtensibleEventType | null, expected: ExtensibleEventType | null): boolean {\n if (typeof given === \"string\") {\n if (typeof expected === \"string\") {\n return expected === given;\n } else {\n return expected!.matches(given);\n }\n } else {\n if (typeof expected === \"string\") {\n return given!.matches(expected);\n } else {\n const expectedNs = expected!;\n const givenNs = given!;\n return (\n expectedNs.matches(givenNs.name) || (isProvided(givenNs.altName) && expectedNs.matches(givenNs.altName))\n );\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAyB,eAAe,EAAE,aAAa,QAAQ,mBAAmB;AAElF,SAAS,UAAU,QAAQ,sCAAsC;;AAEjE;;AAEA;AACA;AACA;;AAIA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,SAAS,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,4BAA4B,CAAC;;AAErF;AACA;AACA;;AAMA;AACA;AACA;;AAMA;AACA;AACA;AACA,OAAO,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,QAAQ,EAAE,yBAAyB,CAAC;;AAE5E;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,QAAQ,EAAE,yBAAyB,CAAC;;AAE5E;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,kBAAkB,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC;;AAEpE;AACA;AACA;;AAGA;AACA;AACA;;AASA;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAAS,eAAe,CAAC,KAAiC,EAAE,QAAoC,EAAW;EAC9G,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IAC3B,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MAC9B,OAAO,QAAQ,KAAK,KAAK;IAC7B,CAAC,MAAM;MACH,OAAO,QAAQ,CAAE,OAAO,CAAC,KAAK,CAAC;IACnC;EACJ,CAAC,MAAM;IACH,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MAC9B,OAAO,KAAK,CAAE,OAAO,CAAC,QAAQ,CAAC;IACnC,CAAC,MAAM;MACH,MAAM,UAAU,GAAG,QAAS;MAC5B,MAAM,OAAO,GAAG,KAAM;MACtB,OACI,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAK,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAE;IAEhH;EACJ;AACJ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"matrix-sdk-crypto-wasm.d.js","names":[],"sources":["../../src/@types/matrix-sdk-crypto-wasm.d.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport type * as RustSdkCryptoJs from \"@matrix-org/matrix-sdk-crypto-wasm\";\n\ndeclare module \"@matrix-org/matrix-sdk-crypto-wasm\" {\n interface SecretsBundle {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n to_json(): Promise<{\n cross_signing: {\n master_key: string;\n self_signing_key: string;\n user_signing_key: string;\n };\n backup?: {\n algorithm: string;\n key: string;\n backup_version: string;\n };\n }>;\n }\n\n interface Device {\n requestVerification(methods?: any[]): [RustSdkCryptoJs.VerificationRequest, RustSdkCryptoJs.ToDeviceRequest];\n }\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"matrix-sdk-crypto-wasm.d.js","names":[],"sources":["../../src/@types/matrix-sdk-crypto-wasm.d.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport type * as RustSdkCryptoJs from \"@matrix-org/matrix-sdk-crypto-wasm\";\n\ndeclare module \"@matrix-org/matrix-sdk-crypto-wasm\" {\n interface SecretsBundle {\n to_json(): Promise<{\n cross_signing: {\n master_key: string;\n self_signing_key: string;\n user_signing_key: string;\n };\n backup?: {\n algorithm: string;\n key: string;\n backup_version: string;\n };\n }>;\n }\n\n interface Device {\n requestVerification(methods?: any[]): [RustSdkCryptoJs.VerificationRequest, RustSdkCryptoJs.ToDeviceRequest];\n }\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"media.js","names":[],"sources":["../../src/@types/media.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type MsgType } from \"../@types/event.ts\";\n\n/**\n * Information on encrypted media attachments.\n *\n * Used within `m.room.message` events that reference files, such as `m.file` and `m.image`.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#extensions-to-mroommessage-msgtypes\n */\nexport interface EncryptedFile {\n /**\n * The URL to the file.\n */\n url: string;\n /**\n * A JSON Web Key object.\n */\n key: {\n alg: string;\n key_ops: string[]; // eslint-disable-line camelcase\n kty: string;\n k: string;\n ext: boolean;\n };\n /**\n * The 128-bit unique counter block used by AES-CTR, encoded as unpadded base64.\n */\n iv: string;\n /**\n * A map from an algorithm name to a hash of the ciphertext, encoded as unpadded base64.\n * Clients should support the SHA-256 hash, which uses the key `sha256`.\n */\n hashes: { [alg: string]: string };\n /**\n * Version of the encrypted attachment's protocol. Must be `v2`.\n */\n v: string;\n}\n\ninterface ThumbnailInfo {\n /**\n * The mimetype of the image, e.g. image/jpeg.\n */\n mimetype?: string;\n /**\n * The intended display width of the image in pixels.\n * This may differ from the intrinsic dimensions of the image file.\n */\n w?: number;\n /**\n * The intended display height of the image in pixels.\n * This may differ from the intrinsic dimensions of the image file.\n */\n h?: number;\n /**\n * Size of the image in bytes.\n */\n size?: number;\n}\n\ninterface BaseInfo {\n mimetype?: string;\n size?: number;\n}\n\n/**\n * Information on media attachments of msgtype `m.file`\n *\n * Used within `m.room.message` events that reference files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mfile\n */\nexport interface FileInfo extends BaseInfo {\n /**\n * Information on the encrypted thumbnail file, as specified in End-to-end encryption.\n * Only present if the thumbnail is encrypted.\n * @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments\n */\n thumbnail_file?: EncryptedFile;\n /**\n * Metadata about the image referred to in thumbnail_url.\n */\n thumbnail_info?: ThumbnailInfo;\n /**\n * The URL to the thumbnail of the file. Only present if the thumbnail is unencrypted.\n */\n thumbnail_url?: string;\n}\n\n/**\n * Information on media attachments of msgtype `m.image`\n *\n * Used within `m.room.message` events that reference images.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mimage\n */\nexport interface ImageInfo extends FileInfo, ThumbnailInfo {}\n\n/**\n * Information on media attachments of msgtype `m.audio`\n *\n * Used within `m.room.message` events that reference audio files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#maudio\n */\nexport interface AudioInfo extends BaseInfo {\n /**\n * The duration of the audio in milliseconds.\n */\n duration?: number;\n}\n\n/**\n * Information on media attachments of msgtype `m.video`\n *\n * Used within `m.room.message` events that reference video files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mvideo\n */\nexport interface VideoInfo extends AudioInfo, ImageInfo {\n /**\n * The duration of the video in milliseconds.\n */\n duration?: number;\n}\n\n/**\n * Union type representing the `content.info` field of all specified media events.\n */\nexport type MediaEventInfo = FileInfo | ImageInfo | AudioInfo | VideoInfo;\n\ninterface BaseContent {\n /**\n * Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.\n * @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments\n */\n file?: EncryptedFile;\n /**\n * Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.\n */\n url?: string;\n /**\n * If filename is not set or the value of both properties are identical,\n * this is the filename of the original upload. Otherwise, this is a\n * caption for the file.\n */\n body: string;\n /**\n * The original filename of the uploaded file.\n */\n filename?: string;\n /**\n * The format used in the `formatted_body`.\n */\n format?: \"org.matrix.custom.html\";\n /**\n * The formatted version of the `body`, when it acts as a caption. This is required if `format` is specified.\n */\n formatted_body?: string;\n}\n\n/**\n * Content format of media events with msgtype `m.file`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mfile\n */\nexport interface FileContent extends BaseContent {\n /**\n * Information about the file referred to in url.\n */\n info?: FileInfo;\n /**\n * One of: [m.file].\n */\n msgtype: MsgType.File;\n}\n\n/**\n * Content format of media events with msgtype `m.image`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mimage\n */\nexport interface ImageContent extends BaseContent {\n /**\n * Metadata about the image referred to in url.\n */\n info?: ImageInfo;\n /**\n * One of: [m.image].\n */\n msgtype: MsgType.Image;\n}\n\n/**\n * Content format of media events with msgtype `m.audio`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#maudio\n */\nexport interface AudioContent extends BaseContent {\n /**\n * Metadata for the audio clip referred to in url.\n */\n info?: AudioInfo;\n /**\n * One of: [m.audio].\n */\n msgtype: MsgType.Audio;\n}\n\n/**\n * Content format of media events with msgtype `m.video`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mvideo\n */\nexport interface VideoContent extends BaseContent {\n /**\n * Metadata about the video clip referred to in url.\n */\n info?: VideoInfo;\n /**\n * One of: [m.video].\n */\n msgtype: MsgType.Video;\n}\n\n/**\n * Type representing media event contents for `m.room.message` events listed in the Matrix specification\n */\nexport type MediaEventContent = FileContent | ImageContent | AudioContent | VideoContent;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"media.js","names":[],"sources":["../../src/@types/media.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type MsgType } from \"../@types/event.ts\";\n\n/**\n * Information on encrypted media attachments.\n *\n * Used within `m.room.message` events that reference files, such as `m.file` and `m.image`.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#extensions-to-mroommessage-msgtypes\n */\nexport interface EncryptedFile {\n /**\n * The URL to the file.\n */\n url: string;\n /**\n * A JSON Web Key object.\n */\n key: {\n alg: string;\n key_ops: string[];\n kty: string;\n k: string;\n ext: boolean;\n };\n /**\n * The 128-bit unique counter block used by AES-CTR, encoded as unpadded base64.\n */\n iv: string;\n /**\n * A map from an algorithm name to a hash of the ciphertext, encoded as unpadded base64.\n * Clients should support the SHA-256 hash, which uses the key `sha256`.\n */\n hashes: { [alg: string]: string };\n /**\n * Version of the encrypted attachment's protocol. Must be `v2`.\n */\n v: string;\n}\n\ninterface ThumbnailInfo {\n /**\n * The mimetype of the image, e.g. image/jpeg.\n */\n mimetype?: string;\n /**\n * The intended display width of the image in pixels.\n * This may differ from the intrinsic dimensions of the image file.\n */\n w?: number;\n /**\n * The intended display height of the image in pixels.\n * This may differ from the intrinsic dimensions of the image file.\n */\n h?: number;\n /**\n * Size of the image in bytes.\n */\n size?: number;\n}\n\ninterface BaseInfo {\n mimetype?: string;\n size?: number;\n}\n\n/**\n * Information on media attachments of msgtype `m.file`\n *\n * Used within `m.room.message` events that reference files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mfile\n */\nexport interface FileInfo extends BaseInfo {\n /**\n * Information on the encrypted thumbnail file, as specified in End-to-end encryption.\n * Only present if the thumbnail is encrypted.\n * @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments\n */\n thumbnail_file?: EncryptedFile;\n /**\n * Metadata about the image referred to in thumbnail_url.\n */\n thumbnail_info?: ThumbnailInfo;\n /**\n * The URL to the thumbnail of the file. Only present if the thumbnail is unencrypted.\n */\n thumbnail_url?: string;\n}\n\n/**\n * Information on media attachments of msgtype `m.image`\n *\n * Used within `m.room.message` events that reference images.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mimage\n */\nexport interface ImageInfo extends FileInfo, ThumbnailInfo {}\n\n/**\n * Information on media attachments of msgtype `m.audio`\n *\n * Used within `m.room.message` events that reference audio files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#maudio\n */\nexport interface AudioInfo extends BaseInfo {\n /**\n * The duration of the audio in milliseconds.\n */\n duration?: number;\n}\n\n/**\n * Information on media attachments of msgtype `m.video`\n *\n * Used within `m.room.message` events that reference video files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mvideo\n */\nexport interface VideoInfo extends AudioInfo, ImageInfo {\n /**\n * The duration of the video in milliseconds.\n */\n duration?: number;\n}\n\n/**\n * Union type representing the `content.info` field of all specified media events.\n */\nexport type MediaEventInfo = FileInfo | ImageInfo | AudioInfo | VideoInfo;\n\ninterface BaseContent {\n /**\n * Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.\n * @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments\n */\n file?: EncryptedFile;\n /**\n * Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.\n */\n url?: string;\n /**\n * If filename is not set or the value of both properties are identical,\n * this is the filename of the original upload. Otherwise, this is a\n * caption for the file.\n */\n body: string;\n /**\n * The original filename of the uploaded file.\n */\n filename?: string;\n /**\n * The format used in the `formatted_body`.\n */\n format?: \"org.matrix.custom.html\";\n /**\n * The formatted version of the `body`, when it acts as a caption. This is required if `format` is specified.\n */\n formatted_body?: string;\n}\n\n/**\n * Content format of media events with msgtype `m.file`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mfile\n */\nexport interface FileContent extends BaseContent {\n /**\n * Information about the file referred to in url.\n */\n info?: FileInfo;\n /**\n * One of: [m.file].\n */\n msgtype: MsgType.File;\n}\n\n/**\n * Content format of media events with msgtype `m.image`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mimage\n */\nexport interface ImageContent extends BaseContent {\n /**\n * Metadata about the image referred to in url.\n */\n info?: ImageInfo;\n /**\n * One of: [m.image].\n */\n msgtype: MsgType.Image;\n}\n\n/**\n * Content format of media events with msgtype `m.audio`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#maudio\n */\nexport interface AudioContent extends BaseContent {\n /**\n * Metadata for the audio clip referred to in url.\n */\n info?: AudioInfo;\n /**\n * One of: [m.audio].\n */\n msgtype: MsgType.Audio;\n}\n\n/**\n * Content format of media events with msgtype `m.video`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mvideo\n */\nexport interface VideoContent extends BaseContent {\n /**\n * Metadata about the video clip referred to in url.\n */\n info?: VideoInfo;\n /**\n * One of: [m.video].\n */\n msgtype: MsgType.Video;\n}\n\n/**\n * Type representing media event contents for `m.room.message` events listed in the Matrix specification\n */\nexport type MediaEventContent = FileContent | ImageContent | AudioContent | VideoContent;\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"partials.d.ts","sourceRoot":"","sources":["../../src/@types/partials.ts"],"names":[],"mappings":"AAgBA,oBAAY,UAAU;IAClB,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB;AAED,oBAAY,MAAM;IACd,WAAW,iBAAiB;IAC5B,kBAAkB,yBAAyB;IAC3C,UAAU,gBAAgB;CAC7B;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5C,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,SAAS,CAAC;AAG5D,oBAAY,QAAQ;IAChB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB;;OAEG;IACH,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,UAAU,eAAe;CAC5B;AAED,oBAAY,mBAAmB;IAC3B,cAAc,sBAAsB;CACvC;AAED,oBAAY,WAAW;IACnB,OAAO,aAAa;IACpB,SAAS,cAAc;CAC1B;AAED,oBAAY,iBAAiB;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,aAAa,mBAAmB;CACnC;AAED,MAAM,WAAW,WAAW;IAIxB,UAAU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IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACnB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,CAAC,IAAI,EAAE,MAAM,GAAG,uBAAuB,GAAG,MAAM,CAAC;CACpD;AAED;;;GAGG;AACH,MAAM,WAAW,KAAK;IAClB,QAAQ,EAAE;QACN,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;KAChC,CAAC;CACL"}
@@ -1 +1 @@
1
- {"version":3,"file":"partials.js","names":[],"sources":["../../src/@types/partials.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport enum Visibility {\n Public = \"public\",\n Private = \"private\",\n}\n\nexport enum Preset {\n PrivateChat = \"private_chat\",\n TrustedPrivateChat = \"trusted_private_chat\",\n PublicChat = \"public_chat\",\n}\n\nexport type ResizeMethod = \"crop\" | \"scale\";\n\nexport type IdServerUnbindResult = \"no-support\" | \"success\";\n\n// Knock and private are reserved keywords which are not yet implemented.\nexport enum JoinRule {\n Public = \"public\",\n Invite = \"invite\",\n /**\n * @deprecated Reserved keyword. Should not be used. Not yet implemented.\n */\n Private = \"private\",\n Knock = \"knock\",\n Restricted = \"restricted\",\n}\n\nexport enum RestrictedAllowType {\n RoomMembership = \"m.room_membership\",\n}\n\nexport enum GuestAccess {\n CanJoin = \"can_join\",\n Forbidden = \"forbidden\",\n}\n\nexport enum HistoryVisibility {\n Invited = \"invited\",\n Joined = \"joined\",\n Shared = \"shared\",\n WorldReadable = \"world_readable\",\n}\n\nexport interface IUsageLimit {\n // \"hs_disabled\" is NOT a specced string, but is used in Synapse\n // This is tracked over at https://github.com/matrix-org/synapse/issues/9237\n // eslint-disable-next-line camelcase\n limit_type: \"monthly_active_user\" | \"hs_disabled\" | string;\n // eslint-disable-next-line camelcase\n admin_contact?: string;\n}\n\n/**\n * A policy name & url in a specific internationalisation\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_internationalised-policy\n */\nexport interface InternationalisedPolicy {\n name: string;\n url: string;\n}\n\n/**\n * A versioned policy with internationalised variants\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_policy-object\n */\nexport interface Policy {\n /**\n * The version for the policy.\n * There are no requirements on what this might be and could be “alpha”, semantically versioned, or arbitrary.\n */\n version: string;\n /**\n * The policy information for the specified language.\n * @remarks the type has to include a union with string due to limitations in the type system.\n */\n [lang: string]: InternationalisedPolicy | string;\n}\n\n/**\n * Response from the Terms API for Identity servers\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms\n */\nexport interface Terms {\n policies: {\n [policyName: string]: Policy;\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAY,UAAU,0BAAV,UAAU;EAAV,UAAU;EAAV,UAAU;EAAA,OAAV,UAAU;AAAA;AAKtB,WAAY,MAAM,0BAAN,MAAM;EAAN,MAAM;EAAN,MAAM;EAAN,MAAM;EAAA,OAAN,MAAM;AAAA;AAUlB;AACA,WAAY,QAAQ,0BAAR,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAGhB;AACJ;AACA;EALY,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAAA,OAAR,QAAQ;AAAA;AAWpB,WAAY,mBAAmB,0BAAnB,mBAAmB;EAAnB,mBAAmB;EAAA,OAAnB,mBAAmB;AAAA;AAI/B,WAAY,WAAW,0BAAX,WAAW;EAAX,WAAW;EAAX,WAAW;EAAA,OAAX,WAAW;AAAA;AAKvB,WAAY,iBAAiB,0BAAjB,iBAAiB;EAAjB,iBAAiB;EAAjB,iBAAiB;EAAjB,iBAAiB;EAAjB,iBAAiB;EAAA,OAAjB,iBAAiB;AAAA;;AAgB7B;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"partials.js","names":[],"sources":["../../src/@types/partials.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport enum Visibility {\n Public = \"public\",\n Private = \"private\",\n}\n\nexport enum Preset {\n PrivateChat = \"private_chat\",\n TrustedPrivateChat = \"trusted_private_chat\",\n PublicChat = \"public_chat\",\n}\n\nexport type ResizeMethod = \"crop\" | \"scale\";\n\nexport type IdServerUnbindResult = \"no-support\" | \"success\";\n\n// Knock and private are reserved keywords which are not yet implemented.\nexport enum JoinRule {\n Public = \"public\",\n Invite = \"invite\",\n /**\n * @deprecated Reserved keyword. Should not be used. Not yet implemented.\n */\n Private = \"private\",\n Knock = \"knock\",\n Restricted = \"restricted\",\n}\n\nexport enum RestrictedAllowType {\n RoomMembership = \"m.room_membership\",\n}\n\nexport enum GuestAccess {\n CanJoin = \"can_join\",\n Forbidden = \"forbidden\",\n}\n\nexport enum HistoryVisibility {\n Invited = \"invited\",\n Joined = \"joined\",\n Shared = \"shared\",\n WorldReadable = \"world_readable\",\n}\n\nexport interface IUsageLimit {\n // \"hs_disabled\" is NOT a specced string, but is used in Synapse\n // This is tracked over at https://github.com/matrix-org/synapse/issues/9237\n limit_type: \"monthly_active_user\" | \"hs_disabled\" | string;\n admin_contact?: string;\n}\n\n/**\n * A policy name & url in a specific internationalisation\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_internationalised-policy\n */\nexport interface InternationalisedPolicy {\n name: string;\n url: string;\n}\n\n/**\n * A versioned policy with internationalised variants\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_policy-object\n */\nexport interface Policy {\n /**\n * The version for the policy.\n * There are no requirements on what this might be and could be “alpha”, semantically versioned, or arbitrary.\n */\n version: string;\n /**\n * The policy information for the specified language.\n * @remarks the type has to include a union with string due to limitations in the type system.\n */\n [lang: string]: InternationalisedPolicy | string;\n}\n\n/**\n * Response from the Terms API for Identity servers\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms\n */\nexport interface Terms {\n policies: {\n [policyName: string]: Policy;\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAY,UAAU,0BAAV,UAAU;EAAV,UAAU;EAAV,UAAU;EAAA,OAAV,UAAU;AAAA;AAKtB,WAAY,MAAM,0BAAN,MAAM;EAAN,MAAM;EAAN,MAAM;EAAN,MAAM;EAAA,OAAN,MAAM;AAAA;AAUlB;AACA,WAAY,QAAQ,0BAAR,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAGhB;AACJ;AACA;EALY,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAAA,OAAR,QAAQ;AAAA;AAWpB,WAAY,mBAAmB,0BAAnB,mBAAmB;EAAnB,mBAAmB;EAAA,OAAnB,mBAAmB;AAAA;AAI/B,WAAY,WAAW,0BAAX,WA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limitations under the License.
15
15
  */
16
16
 
17
- // allow camelcase as these are things that go onto the wire
18
- /* eslint-disable camelcase */
19
-
20
17
  /** Options object for {@link MatrixClient.invite}. */
21
18
 
22
19
  export function isSendDelayedEventRequestOpts(opts) {
@@ -37,6 +34,4 @@ export let UpdateDelayedEventAction = /*#__PURE__*/function (UpdateDelayedEventA
37
34
  UpdateDelayedEventAction["Send"] = "send";
38
35
  return UpdateDelayedEventAction;
39
36
  }({});
40
-
41
- /* eslint-enable camelcase */
42
37
  //# sourceMappingURL=requests.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"requests.js","names":[],"sources":["../../src/@types/requests.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type IContent, type IEvent } from \"../models/event.ts\";\nimport { type Preset, type Visibility } from \"./partials.ts\";\nimport { type IEventWithRoomId, type SearchKey } from \"./search.ts\";\nimport { type IRoomEventFilter } from \"../filter.ts\";\nimport { type Direction } from \"../models/event-timeline.ts\";\nimport { type PushRuleAction } from \"./PushRules.ts\";\nimport { type MatrixError } from \"../matrix.ts\";\nimport { type IRoomEvent } from \"../sync-accumulator.ts\";\nimport { type EventType, type RelationType, type RoomType } from \"./event.ts\";\n\n// allow camelcase as these are things that go onto the wire\n/* eslint-disable camelcase */\n\nexport interface IJoinRoomOpts {\n /**\n * If the caller has a keypair 3pid invite, the signing URL is passed in this parameter.\n */\n inviteSignUrl?: string;\n\n /**\n * The server names to try and join through in addition to those that are automatically chosen.\n * Only the first 3 are actually used in the request, to avoid HTTP 414 Request-URI Too Long responses.\n */\n viaServers?: string[];\n\n /**\n * Previously, configured whether to accept encrypted history shared by the inviter. This is now always enabled,\n * and the setting is only retained to avoid a breaking change to the API. It has no effect.\n *\n * @deprecated\n */\n acceptSharedHistory?: boolean;\n}\n\n/** Options object for {@link MatrixClient.invite}. */\nexport interface InviteOpts {\n /**\n * The reason for the invite.\n */\n reason?: string;\n\n /**\n * Previously, configured whether to send encrypted history if the visibility settings allow it.\n * This is now always enabled, and the setting is only retained to avoid a breaking change to the API. It has no effect.\n *\n * @deprecated\n */\n shareEncryptedHistory?: boolean;\n}\n\nexport interface KnockRoomOpts {\n /**\n * The reason for the knock.\n */\n reason?: string;\n\n /**\n * The server names to try and knock through in addition to those that are automatically chosen.\n * Only the first 3 are actually used in the request, to avoid HTTP 414 Request-URI Too Long responses.\n */\n viaServers?: string | string[];\n}\n\nexport interface IRedactOpts {\n reason?: string;\n /**\n * If specified, then any events which relate to the event being redacted with\n * any of the relationship types listed will also be redacted.\n * Provide a \"*\" list item to tell the server to redact relations of any type.\n *\n * <b>Raises an Error if the server does not support it.</b>\n * Check for server-side support before using this param with\n * <code>client.canSupport.get(Feature.RelationBasedRedactions)</code>.\n * {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}\n */\n with_rel_types?: Array<RelationType | \"*\">;\n}\n\nexport interface ISendEventResponse {\n event_id: string;\n}\n\nexport type SendDelayedEventRequestOpts = { parent_delay_id: string } | { delay: number; parent_delay_id?: string };\n\nexport function isSendDelayedEventRequestOpts(opts: object): opts is SendDelayedEventRequestOpts {\n if (\"parent_delay_id\" in opts && typeof opts.parent_delay_id !== \"string\") {\n // Invalid type, reject\n return false;\n }\n if (\"delay\" in opts && typeof opts.delay !== \"number\") {\n // Invalid type, reject.\n return true;\n }\n // At least one of these fields must be specified.\n return \"delay\" in opts || \"parent_delay_id\" in opts;\n}\nexport type SendDelayedEventResponse = {\n delay_id: string;\n};\n\nexport enum UpdateDelayedEventAction {\n Cancel = \"cancel\",\n Restart = \"restart\",\n Send = \"send\",\n}\n\nexport type UpdateDelayedEventRequestOpts = SendDelayedEventResponse & {\n action: UpdateDelayedEventAction;\n};\n\ntype DelayedPartialTimelineEvent = {\n room_id: string;\n type: string;\n content: IContent;\n};\n\ntype DelayedPartialStateEvent = DelayedPartialTimelineEvent & {\n state_key: string;\n};\n\ntype DelayedPartialEvent = DelayedPartialTimelineEvent | DelayedPartialStateEvent;\n\nexport type DelayedEventInfoItem = DelayedPartialEvent &\n SendDelayedEventResponse &\n SendDelayedEventRequestOpts & {\n running_since: number;\n };\n\nexport type DelayedEventInfo = {\n scheduled?: DelayedEventInfoItem[];\n finalised?: {\n delayed_event: DelayedEventInfoItem;\n outcome: \"send\" | \"cancel\";\n reason: \"error\" | \"action\" | \"delay\";\n error?: MatrixError[\"data\"];\n event_id?: string;\n origin_server_ts?: number;\n }[];\n next_batch?: string;\n};\n\nexport interface IPresenceOpts {\n // One of \"online\", \"offline\" or \"unavailable\"\n presence: \"online\" | \"offline\" | \"unavailable\";\n // The status message to attach.\n status_msg?: string;\n}\n\nexport interface IPaginateOpts {\n // true to fill backwards, false to go forwards\n backwards?: boolean;\n // number of events to request\n limit?: number;\n}\n\nexport interface IGuestAccessOpts {\n /**\n * True to allow guests to join this room. This\n * implicitly gives guests write access. If false or not given, guests are\n * explicitly forbidden from joining the room.\n */\n allowJoin: boolean;\n /**\n * True to set history visibility to\n * be world_readable. This gives guests read access *from this point forward*.\n * If false or not given, history visibility is not modified.\n */\n allowRead: boolean;\n}\n\nexport interface ISearchOpts {\n keys?: SearchKey[];\n query: string;\n}\n\nexport interface IEventSearchOpts {\n // a JSON filter object to pass in the request\n filter?: IRoomEventFilter;\n // the term to search for\n term: string;\n}\n\nexport interface IInvite3PID {\n id_server: string;\n id_access_token?: string; // this gets injected by the js-sdk\n medium: string;\n address: string;\n}\n\nexport interface ICreateRoomStateEvent {\n type: string;\n state_key?: string; // defaults to an empty string\n content: IContent;\n}\n\nexport interface ICreateRoomOpts {\n // The alias localpart to assign to this room.\n room_alias_name?: string;\n // Either 'public' or 'private'.\n visibility?: Visibility;\n // The name to give this room.\n name?: string;\n // The topic to give this room.\n topic?: string;\n preset?: Preset;\n power_level_content_override?: {\n ban?: number;\n events?: Record<EventType | string, number>;\n events_default?: number;\n invite?: number;\n kick?: number;\n notifications?: Record<string, number>;\n redact?: number;\n state_default?: number;\n users?: Record<string, number>;\n users_default?: number;\n };\n creation_content?: object;\n initial_state?: ICreateRoomStateEvent[];\n // A list of user IDs to invite to this room.\n invite?: string[];\n invite_3pid?: IInvite3PID[];\n is_direct?: boolean;\n room_version?: string;\n}\n\nexport interface IRoomDirectoryOptions {\n /**\n * The remote server to query for the room list.\n * Optional. If unspecified, get the local homeserver's public room list.\n */\n server?: string;\n /**\n * Maximum number of entries to return\n */\n limit?: number;\n /**\n * Token to paginate from\n */\n since?: string;\n\n /** Filter parameters */\n filter?: {\n // String to search for\n generic_search_term?: string;\n room_types?: Array<RoomType | null>;\n };\n include_all_networks?: boolean;\n third_party_instance_id?: string;\n}\n\nexport interface IAddThreePidOnlyBody {\n auth?: {\n type: string;\n session?: string;\n };\n client_secret: string;\n sid: string;\n}\n\nexport interface IBindThreePidBody {\n client_secret: string;\n id_server: string;\n // Some older identity servers have no auth enabled\n id_access_token: string | null;\n sid: string;\n}\n\nexport interface IRelationsRequestOpts {\n from?: string;\n to?: string;\n limit?: number;\n dir?: Direction;\n recurse?: boolean; // MSC3981 Relations Recursion https://github.com/matrix-org/matrix-spec-proposals/pull/3981\n}\n\nexport interface IRelationsResponse {\n chunk: IEvent[];\n next_batch?: string;\n prev_batch?: string;\n}\n\nexport interface IContextResponse {\n end?: string;\n start?: string;\n state?: IEventWithRoomId[];\n events_before?: IEventWithRoomId[];\n events_after?: IEventWithRoomId[];\n event?: IEventWithRoomId;\n}\n\nexport interface IEventsResponse {\n chunk: IEventWithRoomId[];\n end: string;\n start: string;\n}\n\nexport interface INotification {\n actions: PushRuleAction[];\n event: IRoomEvent;\n profile_tag?: string;\n read: boolean;\n room_id: string;\n ts: number;\n}\n\nexport interface INotificationsResponse {\n next_token: string;\n notifications: INotification[];\n}\n\nexport interface IFilterResponse {\n filter_id: string;\n}\n\nexport interface ITagsResponse {\n tags: {\n [tagId: string]: {\n order: number;\n };\n };\n}\n\nexport interface IStatusResponse extends IPresenceOpts {\n currently_active?: boolean;\n last_active_ago?: number;\n}\n\n/* eslint-enable camelcase */\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA;;AAuBA;;AAkDA,OAAO,SAAS,6BAA6B,CAAC,IAAY,EAAuC;EAC7F,IAAI,iBAAiB,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,eAAe,KAAK,QAAQ,EAAE;IACvE;IACA,OAAO,KAAK;EAChB;EACA,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;IACnD;IACA,OAAO,IAAI;EACf;EACA;EACA,OAAO,OAAO,IAAI,IAAI,IAAI,iBAAiB,IAAI,IAAI;AACvD;AAKA,WAAY,wBAAwB,0BAAxB,wBAAwB;EAAxB,wBAAwB;EAAxB,wBAAwB;EAAxB,wBAAwB;EAAA,OAAxB,wBAAwB;AAAA;;AAoOpC","ignoreList":[]}
1
+ {"version":3,"file":"requests.js","names":[],"sources":["../../src/@types/requests.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type IContent, type IEvent } from \"../models/event.ts\";\nimport { type Preset, type Visibility } from \"./partials.ts\";\nimport { type IEventWithRoomId, type SearchKey } from \"./search.ts\";\nimport { type IRoomEventFilter } from \"../filter.ts\";\nimport { type Direction } from \"../models/event-timeline.ts\";\nimport { type PushRuleAction } from \"./PushRules.ts\";\nimport { type MatrixError } from \"../matrix.ts\";\nimport { type IRoomEvent } from \"../sync-accumulator.ts\";\nimport { type EventType, type RelationType, type RoomType } from \"./event.ts\";\n\nexport interface IJoinRoomOpts {\n /**\n * If the caller has a keypair 3pid invite, the signing URL is passed in this parameter.\n */\n inviteSignUrl?: string;\n\n /**\n * The server names to try and join through in addition to those that are automatically chosen.\n * Only the first 3 are actually used in the request, to avoid HTTP 414 Request-URI Too Long responses.\n */\n viaServers?: string[];\n\n /**\n * Previously, configured whether to accept encrypted history shared by the inviter. This is now always enabled,\n * and the setting is only retained to avoid a breaking change to the API. It has no effect.\n *\n * @deprecated\n */\n acceptSharedHistory?: boolean;\n}\n\n/** Options object for {@link MatrixClient.invite}. */\nexport interface InviteOpts {\n /**\n * The reason for the invite.\n */\n reason?: string;\n\n /**\n * Previously, configured whether to send encrypted history if the visibility settings allow it.\n * This is now always enabled, and the setting is only retained to avoid a breaking change to the API. It has no effect.\n *\n * @deprecated\n */\n shareEncryptedHistory?: boolean;\n}\n\nexport interface KnockRoomOpts {\n /**\n * The reason for the knock.\n */\n reason?: string;\n\n /**\n * The server names to try and knock through in addition to those that are automatically chosen.\n * Only the first 3 are actually used in the request, to avoid HTTP 414 Request-URI Too Long responses.\n */\n viaServers?: string | string[];\n}\n\nexport interface IRedactOpts {\n reason?: string;\n /**\n * If specified, then any events which relate to the event being redacted with\n * any of the relationship types listed will also be redacted.\n * Provide a \"*\" list item to tell the server to redact relations of any type.\n *\n * <b>Raises an Error if the server does not support it.</b>\n * Check for server-side support before using this param with\n * <code>client.canSupport.get(Feature.RelationBasedRedactions)</code>.\n * {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}\n */\n with_rel_types?: Array<RelationType | \"*\">;\n}\n\nexport interface ISendEventResponse {\n event_id: string;\n}\n\nexport type SendDelayedEventRequestOpts = { parent_delay_id: string } | { delay: number; parent_delay_id?: string };\n\nexport function isSendDelayedEventRequestOpts(opts: object): opts is SendDelayedEventRequestOpts {\n if (\"parent_delay_id\" in opts && typeof opts.parent_delay_id !== \"string\") {\n // Invalid type, reject\n return false;\n }\n if (\"delay\" in opts && typeof opts.delay !== \"number\") {\n // Invalid type, reject.\n return true;\n }\n // At least one of these fields must be specified.\n return \"delay\" in opts || \"parent_delay_id\" in opts;\n}\nexport type SendDelayedEventResponse = {\n delay_id: string;\n};\n\nexport enum UpdateDelayedEventAction {\n Cancel = \"cancel\",\n Restart = \"restart\",\n Send = \"send\",\n}\n\nexport type UpdateDelayedEventRequestOpts = SendDelayedEventResponse & {\n action: UpdateDelayedEventAction;\n};\n\ntype DelayedPartialTimelineEvent = {\n room_id: string;\n type: string;\n content: IContent;\n};\n\ntype DelayedPartialStateEvent = DelayedPartialTimelineEvent & {\n state_key: string;\n};\n\ntype DelayedPartialEvent = DelayedPartialTimelineEvent | DelayedPartialStateEvent;\n\nexport type DelayedEventInfoItem = DelayedPartialEvent &\n SendDelayedEventResponse &\n SendDelayedEventRequestOpts & {\n running_since: number;\n };\n\nexport type DelayedEventInfo = {\n scheduled?: DelayedEventInfoItem[];\n finalised?: {\n delayed_event: DelayedEventInfoItem;\n outcome: \"send\" | \"cancel\";\n reason: \"error\" | \"action\" | \"delay\";\n error?: MatrixError[\"data\"];\n event_id?: string;\n origin_server_ts?: number;\n }[];\n next_batch?: string;\n};\n\nexport interface IPresenceOpts {\n // One of \"online\", \"offline\" or \"unavailable\"\n presence: \"online\" | \"offline\" | \"unavailable\";\n // The status message to attach.\n status_msg?: string;\n}\n\nexport interface IPaginateOpts {\n // true to fill backwards, false to go forwards\n backwards?: boolean;\n // number of events to request\n limit?: number;\n}\n\nexport interface IGuestAccessOpts {\n /**\n * True to allow guests to join this room. This\n * implicitly gives guests write access. If false or not given, guests are\n * explicitly forbidden from joining the room.\n */\n allowJoin: boolean;\n /**\n * True to set history visibility to\n * be world_readable. This gives guests read access *from this point forward*.\n * If false or not given, history visibility is not modified.\n */\n allowRead: boolean;\n}\n\nexport interface ISearchOpts {\n keys?: SearchKey[];\n query: string;\n}\n\nexport interface IEventSearchOpts {\n // a JSON filter object to pass in the request\n filter?: IRoomEventFilter;\n // the term to search for\n term: string;\n}\n\nexport interface IInvite3PID {\n id_server: string;\n id_access_token?: string; // this gets injected by the js-sdk\n medium: string;\n address: string;\n}\n\nexport interface ICreateRoomStateEvent {\n type: string;\n state_key?: string; // defaults to an empty string\n content: IContent;\n}\n\nexport interface ICreateRoomOpts {\n // The alias localpart to assign to this room.\n room_alias_name?: string;\n // Either 'public' or 'private'.\n visibility?: Visibility;\n // The name to give this room.\n name?: string;\n // The topic to give this room.\n topic?: string;\n preset?: Preset;\n power_level_content_override?: {\n ban?: number;\n events?: Record<EventType | string, number>;\n events_default?: number;\n invite?: number;\n kick?: number;\n notifications?: Record<string, number>;\n redact?: number;\n state_default?: number;\n users?: Record<string, number>;\n users_default?: number;\n };\n creation_content?: object;\n initial_state?: ICreateRoomStateEvent[];\n // A list of user IDs to invite to this room.\n invite?: string[];\n invite_3pid?: IInvite3PID[];\n is_direct?: boolean;\n room_version?: string;\n}\n\nexport interface IRoomDirectoryOptions {\n /**\n * The remote server to query for the room list.\n * Optional. If unspecified, get the local homeserver's public room list.\n */\n server?: string;\n /**\n * Maximum number of entries to return\n */\n limit?: number;\n /**\n * Token to paginate from\n */\n since?: string;\n\n /** Filter parameters */\n filter?: {\n // String to search for\n generic_search_term?: string;\n room_types?: Array<RoomType | null>;\n };\n include_all_networks?: boolean;\n third_party_instance_id?: string;\n}\n\nexport interface IAddThreePidOnlyBody {\n auth?: {\n type: string;\n session?: string;\n };\n client_secret: string;\n sid: string;\n}\n\nexport interface IBindThreePidBody {\n client_secret: string;\n id_server: string;\n // Some older identity servers have no auth enabled\n id_access_token: string | null;\n sid: string;\n}\n\nexport interface IRelationsRequestOpts {\n from?: string;\n to?: string;\n limit?: number;\n dir?: Direction;\n recurse?: boolean; // MSC3981 Relations Recursion https://github.com/matrix-org/matrix-spec-proposals/pull/3981\n}\n\nexport interface IRelationsResponse {\n chunk: IEvent[];\n next_batch?: string;\n prev_batch?: string;\n}\n\nexport interface IContextResponse {\n end?: string;\n start?: string;\n state?: IEventWithRoomId[];\n events_before?: IEventWithRoomId[];\n events_after?: IEventWithRoomId[];\n event?: IEventWithRoomId;\n}\n\nexport interface IEventsResponse {\n chunk: IEventWithRoomId[];\n end: string;\n start: string;\n}\n\nexport interface INotification {\n actions: PushRuleAction[];\n event: IRoomEvent;\n profile_tag?: string;\n read: boolean;\n room_id: string;\n ts: number;\n}\n\nexport interface INotificationsResponse {\n next_token: string;\n notifications: INotification[];\n}\n\nexport interface IFilterResponse {\n filter_id: string;\n}\n\nexport interface ITagsResponse {\n tags: {\n [tagId: string]: {\n order: number;\n };\n };\n}\n\nexport interface IStatusResponse extends IPresenceOpts {\n currently_active?: boolean;\n last_active_ago?: number;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAiCA;;AAkDA,OAAO,SAAS,6BAA6B,CAAC,IAAY,EAAuC;EAC7F,IAAI,iBAAiB,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,eAAe,KAAK,QAAQ,EAAE;IACvE;IACA,OAAO,KAAK;EAChB;EACA,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;IACnD;IACA,OAAO,IAAI;EACf;EACA;EACA,OAAO,OAAO,IAAI,IAAI,IAAI,iBAAiB,IAAI,IAAI;AACvD;AAKA,WAAY,wBAAwB,0BAAxB,wBAAwB;EAAxB,wBAAwB;EAAxB,wBAAwB;EAAxB,wBAAwB;EAAA,OAAxB,wBAAwB;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":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AAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B"}
@@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */
16
16
  // Types relating to the /search API
17
- /* eslint-disable camelcase */
18
17
  var GroupKey = /*#__PURE__*/function (GroupKey) {
19
18
  GroupKey["RoomId"] = "room_id";
20
19
  GroupKey["Sender"] = "sender";
@@ -25,6 +24,4 @@ export let SearchOrderBy = /*#__PURE__*/function (SearchOrderBy) {
25
24
  SearchOrderBy["Rank"] = "rank";
26
25
  return SearchOrderBy;
27
26
  }({});
28
-
29
- /* eslint-enable camelcase */
30
27
  //# sourceMappingURL=search.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","names":[],"sources":["../../src/@types/search.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Types relating to the /search API\n\nimport { type IRoomEvent, type IStateEvent } from \"../sync-accumulator.ts\";\nimport { type IRoomEventFilter } from \"../filter.ts\";\nimport { type SearchResult } from \"../models/search-result.ts\";\n\n/* eslint-disable camelcase */\nexport interface IEventWithRoomId extends IRoomEvent {\n room_id: string;\n}\n\nexport interface IStateEventWithRoomId extends IStateEvent {\n room_id: string;\n}\n\nexport interface IMatrixProfile {\n avatar_url?: string;\n displayname?: string;\n}\n\nexport interface IResultContext {\n events_before: IEventWithRoomId[];\n events_after: IEventWithRoomId[];\n profile_info: Record<string, IMatrixProfile>;\n start?: string;\n end?: string;\n}\n\nexport interface ISearchResult {\n rank: number;\n result: IEventWithRoomId;\n context: IResultContext;\n}\n\nenum GroupKey {\n RoomId = \"room_id\",\n Sender = \"sender\",\n}\n\nexport interface IResultRoomEvents {\n count?: number;\n highlights?: string[];\n results?: ISearchResult[];\n state?: { [roomId: string]: IStateEventWithRoomId[] };\n groups?: {\n [groupKey in GroupKey]: {\n [value: string]: {\n next_batch?: string;\n order: number;\n results: string[];\n };\n };\n };\n next_batch?: string;\n}\n\ninterface IResultCategories {\n room_events: IResultRoomEvents;\n}\n\nexport type SearchKey = \"content.body\" | \"content.name\" | \"content.topic\";\n\nexport enum SearchOrderBy {\n Recent = \"recent\",\n Rank = \"rank\",\n}\n\nexport interface ISearchRequestBody {\n search_categories: {\n room_events: {\n search_term: string;\n keys?: SearchKey[];\n filter?: IRoomEventFilter;\n order_by?: SearchOrderBy;\n event_context?: {\n before_limit?: number;\n after_limit?: number;\n include_profile?: boolean;\n };\n include_state?: boolean;\n groupings?: {\n group_by: {\n key: GroupKey;\n }[];\n };\n };\n };\n}\n\nexport interface ISearchResponse {\n search_categories: IResultCategories;\n}\n\nexport interface ISearchResults {\n _query?: ISearchRequestBody;\n results: SearchResult[];\n highlights: string[];\n count?: number;\n next_batch?: string;\n pendingRequest?: Promise<ISearchResults>;\n abortSignal?: AbortSignal;\n}\n/* eslint-enable camelcase */\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAMA;AAAA,IA4BK,QAAQ,0BAAR,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAAA,OAAR,QAAQ;AAAA,EAAR,QAAQ;AA4Bb,WAAY,aAAa,0BAAb,aAAa;EAAb,aAAa;EAAb,aAAa;EAAA,OAAb,aAAa;AAAA;;AAwCzB","ignoreList":[]}
1
+ {"version":3,"file":"search.js","names":[],"sources":["../../src/@types/search.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Types relating to the /search API\n\nimport { type IRoomEvent, type IStateEvent } from \"../sync-accumulator.ts\";\nimport { type IRoomEventFilter } from \"../filter.ts\";\nimport { type SearchResult } from \"../models/search-result.ts\";\n\nexport interface IEventWithRoomId extends IRoomEvent {\n room_id: string;\n}\n\nexport interface IStateEventWithRoomId extends IStateEvent {\n room_id: string;\n}\n\nexport interface IMatrixProfile {\n avatar_url?: string;\n displayname?: string;\n}\n\nexport interface IResultContext {\n events_before: IEventWithRoomId[];\n events_after: IEventWithRoomId[];\n profile_info: Record<string, IMatrixProfile>;\n start?: string;\n end?: string;\n}\n\nexport interface ISearchResult {\n rank: number;\n result: IEventWithRoomId;\n context: IResultContext;\n}\n\nenum GroupKey {\n RoomId = \"room_id\",\n Sender = \"sender\",\n}\n\nexport interface IResultRoomEvents {\n count?: number;\n highlights?: string[];\n results?: ISearchResult[];\n state?: { [roomId: string]: IStateEventWithRoomId[] };\n groups?: {\n [groupKey in GroupKey]: {\n [value: string]: {\n next_batch?: string;\n order: number;\n results: string[];\n };\n };\n };\n next_batch?: string;\n}\n\ninterface IResultCategories {\n room_events: IResultRoomEvents;\n}\n\nexport type SearchKey = \"content.body\" | \"content.name\" | \"content.topic\";\n\nexport enum SearchOrderBy {\n Recent = \"recent\",\n Rank = \"rank\",\n}\n\nexport interface ISearchRequestBody {\n search_categories: {\n room_events: {\n search_term: string;\n keys?: SearchKey[];\n filter?: IRoomEventFilter;\n order_by?: SearchOrderBy;\n event_context?: {\n before_limit?: number;\n after_limit?: number;\n include_profile?: boolean;\n };\n include_state?: boolean;\n groupings?: {\n group_by: {\n key: GroupKey;\n }[];\n };\n };\n };\n}\n\nexport interface ISearchResponse {\n search_categories: IResultCategories;\n}\n\nexport interface ISearchResults {\n _query?: ISearchRequestBody;\n results: SearchResult[];\n highlights: string[];\n count?: number;\n next_batch?: string;\n pendingRequest?: Promise<ISearchResults>;\n abortSignal?: AbortSignal;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA,IAiCK,QAAQ,0BAAR,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAAA,OAAR,QAAQ;AAAA,EAAR,QAAQ;AA4Bb,WAAY,aAAa,0BAAb,aAAa;EAAb,aAAa;EAAb,aAAa;EAAA,OAAb,aAAa;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"spaces.d.ts","sourceRoot":"","sources":["../../src/@types/spaces.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACL;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;IACzD,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9B,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACxC"}
1
+ {"version":3,"file":"spaces.d.ts","sourceRoot":"","sources":["../../src/@types/spaces.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACL;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;IACzD,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9B,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"spaces.js","names":[],"sources":["../../src/@types/spaces.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type IPublicRoomsChunkRoom } from \"../client.ts\";\nimport { type RoomType } from \"./event.ts\";\nimport { type IStrippedState } from \"../sync-accumulator.ts\";\n\n// Types relating to Rooms of type `m.space` and related APIs\n\n/* eslint-disable camelcase */\nexport interface IHierarchyRelation extends IStrippedState {\n origin_server_ts: number;\n content: {\n order?: string;\n suggested?: boolean;\n via?: string[];\n };\n}\n\nexport interface IHierarchyRoom extends IPublicRoomsChunkRoom {\n room_type?: RoomType | string;\n children_state: IHierarchyRelation[];\n}\n/* eslint-enable camelcase */\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"spaces.js","names":[],"sources":["../../src/@types/spaces.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type IPublicRoomsChunkRoom } from \"../client.ts\";\nimport { type RoomType } from \"./event.ts\";\nimport { type IStrippedState } from \"../sync-accumulator.ts\";\n\n// Types relating to Rooms of type `m.space` and related APIs\n\nexport interface IHierarchyRelation extends IStrippedState {\n origin_server_ts: number;\n content: {\n order?: string;\n suggested?: boolean;\n via?: string[];\n };\n}\n\nexport interface IHierarchyRoom extends IPublicRoomsChunkRoom {\n room_type?: RoomType | string;\n children_state: IHierarchyRelation[];\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"synapse.d.ts","sourceRoot":"","sources":["../../src/@types/synapse.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAK1D,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACL,CAAC,QAAQ,EAAE,MAAM,GAAG;YAChB,QAAQ,EAAE;gBACN,WAAW,EAAE;oBACT,EAAE,EAAE,MAAM,CAAC;oBACX,SAAS,EAAE,MAAM,CAAC;oBAClB,UAAU,EAAE,MAAM,CAAC;iBACtB,EAAE,CAAC;aACP,EAAE,CAAC;SACP,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,+BAA+B;IAC5C,uBAAuB,EAAE,oBAAoB,CAAC;CACjD"}
1
+ {"version":3,"file":"synapse.d.ts","sourceRoot":"","sources":["../../src/@types/synapse.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAI1D,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACL,CAAC,QAAQ,EAAE,MAAM,GAAG;YAChB,QAAQ,EAAE;gBACN,WAAW,EAAE;oBACT,EAAE,EAAE,MAAM,CAAC;oBACX,SAAS,EAAE,MAAM,CAAC;oBAClB,UAAU,EAAE,MAAM,CAAC;iBACtB,EAAE,CAAC;aACP,EAAE,CAAC;SACP,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,+BAA+B;IAC5C,uBAAuB,EAAE,oBAAoB,CAAC;CACjD"}