matrix-js-sdk 32.4.0 → 33.0.0-rc.0

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 (514) hide show
  1. package/git-revision.txt +1 -1
  2. package/lib/@types/IIdentityServerProvider.js +1 -6
  3. package/lib/@types/PushRules.js +15 -16
  4. package/lib/@types/PushRules.js.map +1 -1
  5. package/lib/@types/another-json.d.js +0 -1
  6. package/lib/@types/auth.d.ts +0 -5
  7. package/lib/@types/auth.d.ts.map +1 -1
  8. package/lib/@types/auth.js +14 -10
  9. package/lib/@types/auth.js.map +1 -1
  10. package/lib/@types/beacon.js +3 -9
  11. package/lib/@types/beacon.js.map +1 -1
  12. package/lib/@types/common.js +1 -6
  13. package/lib/@types/crypto.js +1 -6
  14. package/lib/@types/event.d.ts +0 -5
  15. package/lib/@types/event.d.ts.map +1 -1
  16. package/lib/@types/event.js +24 -33
  17. package/lib/@types/event.js.map +1 -1
  18. package/lib/@types/events.js +1 -6
  19. package/lib/@types/extensible_events.js +11 -17
  20. package/lib/@types/extensible_events.js.map +1 -1
  21. package/lib/@types/global.d.js +18 -5
  22. package/lib/@types/global.d.js.map +1 -1
  23. package/lib/@types/local_notifications.js +1 -6
  24. package/lib/@types/location.js +8 -12
  25. package/lib/@types/location.js.map +1 -1
  26. package/lib/@types/media.js +1 -6
  27. package/lib/@types/membership.js +3 -7
  28. package/lib/@types/membership.js.map +1 -1
  29. package/lib/@types/oidc-client-ts.d.js +16 -2
  30. package/lib/@types/oidc-client-ts.d.js.map +1 -1
  31. package/lib/@types/partials.js +7 -12
  32. package/lib/@types/partials.js.map +1 -1
  33. package/lib/@types/polls.js +6 -12
  34. package/lib/@types/polls.js.map +1 -1
  35. package/lib/@types/read_receipts.js +3 -8
  36. package/lib/@types/read_receipts.js.map +1 -1
  37. package/lib/@types/registration.d.ts +5 -19
  38. package/lib/@types/registration.d.ts.map +1 -1
  39. package/lib/@types/registration.js +1 -6
  40. package/lib/@types/registration.js.map +1 -1
  41. package/lib/@types/requests.js +1 -6
  42. package/lib/@types/search.js +2 -7
  43. package/lib/@types/search.js.map +1 -1
  44. package/lib/@types/signed.js +1 -6
  45. package/lib/@types/spaces.js +1 -6
  46. package/lib/@types/state_events.js +1 -6
  47. package/lib/@types/synapse.js +1 -6
  48. package/lib/@types/sync.js +3 -8
  49. package/lib/@types/sync.js.map +1 -1
  50. package/lib/@types/threepids.js +5 -8
  51. package/lib/@types/threepids.js.map +1 -1
  52. package/lib/@types/topic.js +2 -8
  53. package/lib/@types/topic.js.map +1 -1
  54. package/lib/@types/uia.js +1 -6
  55. package/lib/NamespacedValue.js +11 -21
  56. package/lib/NamespacedValue.js.map +1 -1
  57. package/lib/ReEmitter.js +19 -21
  58. package/lib/ReEmitter.js.map +1 -1
  59. package/lib/ToDeviceMessageQueue.js +70 -70
  60. package/lib/ToDeviceMessageQueue.js.map +1 -1
  61. package/lib/autodiscovery.d.ts +1 -5
  62. package/lib/autodiscovery.d.ts.map +1 -1
  63. package/lib/autodiscovery.js +270 -268
  64. package/lib/autodiscovery.js.map +1 -1
  65. package/lib/base64.js +7 -16
  66. package/lib/base64.js.map +1 -1
  67. package/lib/browser-index.js +3 -19
  68. package/lib/browser-index.js.map +1 -1
  69. package/lib/client.d.ts +22 -21
  70. package/lib/client.d.ts.map +1 -1
  71. package/lib/client.js +2619 -2343
  72. package/lib/client.js.map +1 -1
  73. package/lib/common-crypto/CryptoBackend.d.ts +2 -1
  74. package/lib/common-crypto/CryptoBackend.d.ts.map +1 -1
  75. package/lib/common-crypto/CryptoBackend.js +2 -9
  76. package/lib/common-crypto/CryptoBackend.js.map +1 -1
  77. package/lib/content-helpers.js +68 -88
  78. package/lib/content-helpers.js.map +1 -1
  79. package/lib/content-repo.js +12 -14
  80. package/lib/content-repo.js.map +1 -1
  81. package/lib/crypto/CrossSigning.d.ts +6 -6
  82. package/lib/crypto/CrossSigning.d.ts.map +1 -1
  83. package/lib/crypto/CrossSigning.js +360 -319
  84. package/lib/crypto/CrossSigning.js.map +1 -1
  85. package/lib/crypto/DeviceList.js +338 -310
  86. package/lib/crypto/DeviceList.js.map +1 -1
  87. package/lib/crypto/EncryptionSetup.d.ts +3 -3
  88. package/lib/crypto/EncryptionSetup.d.ts.map +1 -1
  89. package/lib/crypto/EncryptionSetup.js +127 -122
  90. package/lib/crypto/EncryptionSetup.js.map +1 -1
  91. package/lib/crypto/OlmDevice.js +562 -481
  92. package/lib/crypto/OlmDevice.js.map +1 -1
  93. package/lib/crypto/OutgoingRoomKeyRequestManager.js +148 -137
  94. package/lib/crypto/OutgoingRoomKeyRequestManager.js.map +1 -1
  95. package/lib/crypto/RoomList.js +25 -25
  96. package/lib/crypto/RoomList.js.map +1 -1
  97. package/lib/crypto/SecretSharing.js +96 -103
  98. package/lib/crypto/SecretSharing.js.map +1 -1
  99. package/lib/crypto/SecretStorage.js +12 -14
  100. package/lib/crypto/SecretStorage.js.map +1 -1
  101. package/lib/crypto/aes.js +90 -80
  102. package/lib/crypto/aes.js.map +1 -1
  103. package/lib/crypto/algorithms/base.js +19 -33
  104. package/lib/crypto/algorithms/base.js.map +1 -1
  105. package/lib/crypto/algorithms/index.js +18 -17
  106. package/lib/crypto/algorithms/index.js.map +1 -1
  107. package/lib/crypto/algorithms/megolm.js +967 -841
  108. package/lib/crypto/algorithms/megolm.js.map +1 -1
  109. package/lib/crypto/algorithms/olm.js +184 -179
  110. package/lib/crypto/algorithms/olm.js.map +1 -1
  111. package/lib/crypto/api.js +21 -12
  112. package/lib/crypto/api.js.map +1 -1
  113. package/lib/crypto/backup.js +517 -457
  114. package/lib/crypto/backup.js.map +1 -1
  115. package/lib/crypto/crypto.js +15 -23
  116. package/lib/crypto/crypto.js.map +1 -1
  117. package/lib/crypto/dehydration.js +197 -183
  118. package/lib/crypto/dehydration.js.map +1 -1
  119. package/lib/crypto/device-converter.js +8 -14
  120. package/lib/crypto/device-converter.js.map +1 -1
  121. package/lib/crypto/deviceinfo.js +18 -26
  122. package/lib/crypto/deviceinfo.js.map +1 -1
  123. package/lib/crypto/index.d.ts +18 -18
  124. package/lib/crypto/index.d.ts.map +1 -1
  125. package/lib/crypto/index.js +2163 -1904
  126. package/lib/crypto/index.js.map +1 -1
  127. package/lib/crypto/key_passphrase.js +44 -38
  128. package/lib/crypto/key_passphrase.js.map +1 -1
  129. package/lib/crypto/keybackup.js +1 -6
  130. package/lib/crypto/olmlib.js +318 -276
  131. package/lib/crypto/olmlib.js.map +1 -1
  132. package/lib/crypto/recoverykey.js +14 -22
  133. package/lib/crypto/recoverykey.js.map +1 -1
  134. package/lib/crypto/store/base.d.ts +3 -3
  135. package/lib/crypto/store/base.d.ts.map +1 -1
  136. package/lib/crypto/store/base.js +4 -9
  137. package/lib/crypto/store/base.js.map +1 -1
  138. package/lib/crypto/store/indexeddb-crypto-store-backend.d.ts +3 -3
  139. package/lib/crypto/store/indexeddb-crypto-store-backend.d.ts.map +1 -1
  140. package/lib/crypto/store/indexeddb-crypto-store-backend.js +417 -365
  141. package/lib/crypto/store/indexeddb-crypto-store-backend.js.map +1 -1
  142. package/lib/crypto/store/indexeddb-crypto-store.d.ts +3 -3
  143. package/lib/crypto/store/indexeddb-crypto-store.d.ts.map +1 -1
  144. package/lib/crypto/store/indexeddb-crypto-store.js +52 -58
  145. package/lib/crypto/store/indexeddb-crypto-store.js.map +1 -1
  146. package/lib/crypto/store/localStorage-crypto-store.d.ts +3 -3
  147. package/lib/crypto/store/localStorage-crypto-store.d.ts.map +1 -1
  148. package/lib/crypto/store/localStorage-crypto-store.js +223 -192
  149. package/lib/crypto/store/localStorage-crypto-store.js.map +1 -1
  150. package/lib/crypto/store/memory-crypto-store.d.ts +3 -3
  151. package/lib/crypto/store/memory-crypto-store.d.ts.map +1 -1
  152. package/lib/crypto/store/memory-crypto-store.js +213 -180
  153. package/lib/crypto/store/memory-crypto-store.js.map +1 -1
  154. package/lib/crypto/verification/Base.js +105 -105
  155. package/lib/crypto/verification/Base.js.map +1 -1
  156. package/lib/crypto/verification/Error.js +16 -25
  157. package/lib/crypto/verification/Error.js.map +1 -1
  158. package/lib/crypto/verification/IllegalMethod.js +8 -15
  159. package/lib/crypto/verification/IllegalMethod.js.map +1 -1
  160. package/lib/crypto/verification/QRCode.js +101 -102
  161. package/lib/crypto/verification/QRCode.js.map +1 -1
  162. package/lib/crypto/verification/SAS.js +228 -211
  163. package/lib/crypto/verification/SAS.js.map +1 -1
  164. package/lib/crypto/verification/SASDecimal.js +1 -7
  165. package/lib/crypto/verification/SASDecimal.js.map +1 -1
  166. package/lib/crypto/verification/request/Channel.js +1 -6
  167. package/lib/crypto/verification/request/InRoomChannel.js +100 -100
  168. package/lib/crypto/verification/request/InRoomChannel.js.map +1 -1
  169. package/lib/crypto/verification/request/ToDeviceChannel.js +105 -101
  170. package/lib/crypto/verification/request/ToDeviceChannel.js.map +1 -1
  171. package/lib/crypto/verification/request/VerificationRequest.js +278 -263
  172. package/lib/crypto/verification/request/VerificationRequest.js.map +1 -1
  173. package/lib/crypto-api/keybackup.d.ts +1 -1
  174. package/lib/crypto-api/keybackup.js +1 -6
  175. package/lib/crypto-api/keybackup.js.map +1 -1
  176. package/lib/crypto-api/verification.js +16 -11
  177. package/lib/crypto-api/verification.js.map +1 -1
  178. package/lib/crypto-api.js +20 -46
  179. package/lib/crypto-api.js.map +1 -1
  180. package/lib/embedded.js +263 -186
  181. package/lib/embedded.js.map +1 -1
  182. package/lib/errors.js +8 -17
  183. package/lib/errors.js.map +1 -1
  184. package/lib/event-mapper.js +18 -23
  185. package/lib/event-mapper.js.map +1 -1
  186. package/lib/extensible_events_v1/ExtensibleEvent.js +1 -8
  187. package/lib/extensible_events_v1/ExtensibleEvent.js.map +1 -1
  188. package/lib/extensible_events_v1/InvalidEventError.js +1 -8
  189. package/lib/extensible_events_v1/InvalidEventError.js.map +1 -1
  190. package/lib/extensible_events_v1/MessageEvent.js +28 -33
  191. package/lib/extensible_events_v1/MessageEvent.js.map +1 -1
  192. package/lib/extensible_events_v1/PollEndEvent.js +23 -28
  193. package/lib/extensible_events_v1/PollEndEvent.js.map +1 -1
  194. package/lib/extensible_events_v1/PollResponseEvent.js +20 -28
  195. package/lib/extensible_events_v1/PollResponseEvent.js.map +1 -1
  196. package/lib/extensible_events_v1/PollStartEvent.js +38 -43
  197. package/lib/extensible_events_v1/PollStartEvent.js.map +1 -1
  198. package/lib/extensible_events_v1/utilities.js +2 -9
  199. package/lib/extensible_events_v1/utilities.js.map +1 -1
  200. package/lib/feature.js +28 -27
  201. package/lib/feature.js.map +1 -1
  202. package/lib/filter-component.js +22 -28
  203. package/lib/filter-component.js.map +1 -1
  204. package/lib/filter.js +18 -24
  205. package/lib/filter.js.map +1 -1
  206. package/lib/http-api/errors.js +13 -18
  207. package/lib/http-api/errors.js.map +1 -1
  208. package/lib/http-api/fetch.js +168 -158
  209. package/lib/http-api/fetch.js.map +1 -1
  210. package/lib/http-api/index.js +40 -103
  211. package/lib/http-api/index.js.map +1 -1
  212. package/lib/http-api/interface.js +4 -7
  213. package/lib/http-api/interface.js.map +1 -1
  214. package/lib/http-api/method.js +2 -7
  215. package/lib/http-api/method.js.map +1 -1
  216. package/lib/http-api/prefix.js +4 -9
  217. package/lib/http-api/prefix.js.map +1 -1
  218. package/lib/http-api/utils.js +50 -52
  219. package/lib/http-api/utils.js.map +1 -1
  220. package/lib/index.js +3 -22
  221. package/lib/index.js.map +1 -1
  222. package/lib/indexeddb-helpers.js +4 -10
  223. package/lib/indexeddb-helpers.js.map +1 -1
  224. package/lib/indexeddb-worker.js +24 -12
  225. package/lib/indexeddb-worker.js.map +1 -1
  226. package/lib/interactive-auth.d.ts +0 -4
  227. package/lib/interactive-auth.d.ts.map +1 -1
  228. package/lib/interactive-auth.js +229 -215
  229. package/lib/interactive-auth.js.map +1 -1
  230. package/lib/logger.js +36 -25
  231. package/lib/logger.js.map +1 -1
  232. package/lib/matrix.d.ts +0 -16
  233. package/lib/matrix.d.ts.map +1 -1
  234. package/lib/matrix.js +86 -858
  235. package/lib/matrix.js.map +1 -1
  236. package/lib/matrixrtc/CallMembership.js +6 -12
  237. package/lib/matrixrtc/CallMembership.js.map +1 -1
  238. package/lib/matrixrtc/MatrixRTCSession.js +244 -237
  239. package/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
  240. package/lib/matrixrtc/MatrixRTCSessionManager.js +45 -48
  241. package/lib/matrixrtc/MatrixRTCSessionManager.js.map +1 -1
  242. package/lib/matrixrtc/focus.js +1 -6
  243. package/lib/matrixrtc/types.js +1 -6
  244. package/lib/models/MSC3089Branch.js +118 -102
  245. package/lib/models/MSC3089Branch.js.map +1 -1
  246. package/lib/models/MSC3089TreeSpace.d.ts +1 -1
  247. package/lib/models/MSC3089TreeSpace.d.ts.map +1 -1
  248. package/lib/models/MSC3089TreeSpace.js +265 -246
  249. package/lib/models/MSC3089TreeSpace.js.map +1 -1
  250. package/lib/models/ToDeviceMessage.js +1 -6
  251. package/lib/models/beacon.js +21 -29
  252. package/lib/models/beacon.js.map +1 -1
  253. package/lib/models/compare-event-ordering.js +16 -21
  254. package/lib/models/compare-event-ordering.js.map +1 -1
  255. package/lib/models/device.js +9 -14
  256. package/lib/models/device.js.map +1 -1
  257. package/lib/models/event-context.js +15 -20
  258. package/lib/models/event-context.js.map +1 -1
  259. package/lib/models/event-status.js +2 -7
  260. package/lib/models/event-status.js.map +1 -1
  261. package/lib/models/event-timeline-set.d.ts +1 -5
  262. package/lib/models/event-timeline-set.d.ts.map +1 -1
  263. package/lib/models/event-timeline-set.js +106 -123
  264. package/lib/models/event-timeline-set.js.map +1 -1
  265. package/lib/models/event-timeline.d.ts +1 -5
  266. package/lib/models/event-timeline.d.ts.map +1 -1
  267. package/lib/models/event-timeline.js +41 -59
  268. package/lib/models/event-timeline.js.map +1 -1
  269. package/lib/models/event.d.ts +1 -13
  270. package/lib/models/event.d.ts.map +1 -1
  271. package/lib/models/event.js +224 -224
  272. package/lib/models/event.js.map +1 -1
  273. package/lib/models/invites-ignorer.js +197 -179
  274. package/lib/models/invites-ignorer.js.map +1 -1
  275. package/lib/models/poll.js +87 -88
  276. package/lib/models/poll.js.map +1 -1
  277. package/lib/models/read-receipt.js +60 -60
  278. package/lib/models/read-receipt.js.map +1 -1
  279. package/lib/models/related-relations.js +1 -8
  280. package/lib/models/related-relations.js.map +1 -1
  281. package/lib/models/relations-container.js +25 -33
  282. package/lib/models/relations-container.js.map +1 -1
  283. package/lib/models/relations.js +162 -146
  284. package/lib/models/relations.js.map +1 -1
  285. package/lib/models/room-member.js +51 -56
  286. package/lib/models/room-member.js.map +1 -1
  287. package/lib/models/room-receipts.js +35 -42
  288. package/lib/models/room-receipts.js.map +1 -1
  289. package/lib/models/room-state.js +178 -170
  290. package/lib/models/room-state.js.map +1 -1
  291. package/lib/models/room-summary.js +1 -8
  292. package/lib/models/room-summary.js.map +1 -1
  293. package/lib/models/room.d.ts +1 -30
  294. package/lib/models/room.d.ts.map +1 -1
  295. package/lib/models/room.js +863 -854
  296. package/lib/models/room.js.map +1 -1
  297. package/lib/models/search-result.js +7 -14
  298. package/lib/models/search-result.js.map +1 -1
  299. package/lib/models/thread.js +303 -266
  300. package/lib/models/thread.js.map +1 -1
  301. package/lib/models/typed-event-emitter.js +25 -16
  302. package/lib/models/typed-event-emitter.js.map +1 -1
  303. package/lib/models/user.js +17 -24
  304. package/lib/models/user.js.map +1 -1
  305. package/lib/oidc/authorize.js +172 -155
  306. package/lib/oidc/authorize.js.map +1 -1
  307. package/lib/oidc/discovery.js +37 -37
  308. package/lib/oidc/discovery.js.map +1 -1
  309. package/lib/oidc/error.js +2 -7
  310. package/lib/oidc/error.js.map +1 -1
  311. package/lib/oidc/index.js +27 -70
  312. package/lib/oidc/index.js.map +1 -1
  313. package/lib/oidc/register.js +59 -59
  314. package/lib/oidc/register.js.map +1 -1
  315. package/lib/oidc/tokenRefresher.js +71 -66
  316. package/lib/oidc/tokenRefresher.js.map +1 -1
  317. package/lib/oidc/validate.js +37 -48
  318. package/lib/oidc/validate.js.map +1 -1
  319. package/lib/pushprocessor.js +110 -115
  320. package/lib/pushprocessor.js.map +1 -1
  321. package/lib/randomstring.js +14 -23
  322. package/lib/randomstring.js.map +1 -1
  323. package/lib/realtime-callbacks.js +32 -35
  324. package/lib/realtime-callbacks.js.map +1 -1
  325. package/lib/receipt-accumulator.js +22 -29
  326. package/lib/receipt-accumulator.js.map +1 -1
  327. package/lib/rendezvous/MSC3906Rendezvous.js +191 -162
  328. package/lib/rendezvous/MSC3906Rendezvous.js.map +1 -1
  329. package/lib/rendezvous/RendezvousChannel.js +1 -6
  330. package/lib/rendezvous/RendezvousCode.js +1 -6
  331. package/lib/rendezvous/RendezvousError.js +1 -8
  332. package/lib/rendezvous/RendezvousError.js.map +1 -1
  333. package/lib/rendezvous/RendezvousFailureReason.js +2 -7
  334. package/lib/rendezvous/RendezvousFailureReason.js.map +1 -1
  335. package/lib/rendezvous/RendezvousIntent.js +2 -7
  336. package/lib/rendezvous/RendezvousIntent.js.map +1 -1
  337. package/lib/rendezvous/RendezvousTransport.js +1 -6
  338. package/lib/rendezvous/channels/MSC3903ECDHv2RendezvousChannel.js +175 -152
  339. package/lib/rendezvous/channels/MSC3903ECDHv2RendezvousChannel.js.map +1 -1
  340. package/lib/rendezvous/channels/index.js +16 -15
  341. package/lib/rendezvous/channels/index.js.map +1 -1
  342. package/lib/rendezvous/index.js +22 -81
  343. package/lib/rendezvous/index.js.map +1 -1
  344. package/lib/rendezvous/transports/MSC3886SimpleHttpRendezvousTransport.js +134 -125
  345. package/lib/rendezvous/transports/MSC3886SimpleHttpRendezvousTransport.js.map +1 -1
  346. package/lib/rendezvous/transports/index.js +16 -15
  347. package/lib/rendezvous/transports/index.js.map +1 -1
  348. package/lib/room-hierarchy.js +57 -58
  349. package/lib/room-hierarchy.js.map +1 -1
  350. package/lib/rust-crypto/CrossSigningIdentity.js +101 -98
  351. package/lib/rust-crypto/CrossSigningIdentity.js.map +1 -1
  352. package/lib/rust-crypto/DehydratedDeviceManager.js +142 -125
  353. package/lib/rust-crypto/DehydratedDeviceManager.js.map +1 -1
  354. package/lib/rust-crypto/KeyClaimManager.js +23 -27
  355. package/lib/rust-crypto/KeyClaimManager.js.map +1 -1
  356. package/lib/rust-crypto/OutgoingRequestProcessor.js +136 -120
  357. package/lib/rust-crypto/OutgoingRequestProcessor.js.map +1 -1
  358. package/lib/rust-crypto/OutgoingRequestsManager.js +58 -51
  359. package/lib/rust-crypto/OutgoingRequestsManager.js.map +1 -1
  360. package/lib/rust-crypto/PerSessionKeyBackupDownloader.d.ts.map +1 -1
  361. package/lib/rust-crypto/PerSessionKeyBackupDownloader.js +242 -221
  362. package/lib/rust-crypto/PerSessionKeyBackupDownloader.js.map +1 -1
  363. package/lib/rust-crypto/RoomEncryptor.js +145 -140
  364. package/lib/rust-crypto/RoomEncryptor.js.map +1 -1
  365. package/lib/rust-crypto/backup.d.ts +1 -1
  366. package/lib/rust-crypto/backup.d.ts.map +1 -1
  367. package/lib/rust-crypto/backup.js +391 -338
  368. package/lib/rust-crypto/backup.js.map +1 -1
  369. package/lib/rust-crypto/constants.js +1 -7
  370. package/lib/rust-crypto/constants.js.map +1 -1
  371. package/lib/rust-crypto/device-converter.js +28 -35
  372. package/lib/rust-crypto/device-converter.js.map +1 -1
  373. package/lib/rust-crypto/index.d.ts +10 -3
  374. package/lib/rust-crypto/index.d.ts.map +1 -1
  375. package/lib/rust-crypto/index.js +118 -103
  376. package/lib/rust-crypto/index.js.map +1 -1
  377. package/lib/rust-crypto/libolm_migration.d.ts.map +1 -1
  378. package/lib/rust-crypto/libolm_migration.js +378 -316
  379. package/lib/rust-crypto/libolm_migration.js.map +1 -1
  380. package/lib/rust-crypto/rust-crypto.d.ts +2 -2
  381. package/lib/rust-crypto/rust-crypto.d.ts.map +1 -1
  382. package/lib/rust-crypto/rust-crypto.js +943 -754
  383. package/lib/rust-crypto/rust-crypto.js.map +1 -1
  384. package/lib/rust-crypto/secret-storage.js +25 -19
  385. package/lib/rust-crypto/secret-storage.js.map +1 -1
  386. package/lib/rust-crypto/verification.d.ts.map +1 -1
  387. package/lib/rust-crypto/verification.js +257 -216
  388. package/lib/rust-crypto/verification.js.map +1 -1
  389. package/lib/scheduler.js +33 -67
  390. package/lib/scheduler.js.map +1 -1
  391. package/lib/secret-storage.js +206 -187
  392. package/lib/secret-storage.js.map +1 -1
  393. package/lib/service-types.js +2 -7
  394. package/lib/service-types.js.map +1 -1
  395. package/lib/sliding-sync-sdk.js +442 -411
  396. package/lib/sliding-sync-sdk.js.map +1 -1
  397. package/lib/sliding-sync.js +236 -209
  398. package/lib/sliding-sync.js.map +1 -1
  399. package/lib/store/index.js +1 -6
  400. package/lib/store/indexeddb-backend.js +1 -6
  401. package/lib/store/indexeddb-local-backend.js +210 -186
  402. package/lib/store/indexeddb-local-backend.js.map +1 -1
  403. package/lib/store/indexeddb-remote-backend.js +38 -33
  404. package/lib/store/indexeddb-remote-backend.js.map +1 -1
  405. package/lib/store/indexeddb-store-worker.js +10 -18
  406. package/lib/store/indexeddb-store-worker.js.map +1 -1
  407. package/lib/store/indexeddb.js +86 -79
  408. package/lib/store/indexeddb.js.map +1 -1
  409. package/lib/store/local-storage-events-emitter.js +5 -10
  410. package/lib/store/local-storage-events-emitter.js.map +1 -1
  411. package/lib/store/memory.js +49 -46
  412. package/lib/store/memory.js.map +1 -1
  413. package/lib/store/stub.js +20 -21
  414. package/lib/store/stub.js.map +1 -1
  415. package/lib/sync-accumulator.d.ts +0 -2
  416. package/lib/sync-accumulator.d.ts.map +1 -1
  417. package/lib/sync-accumulator.js +62 -58
  418. package/lib/sync-accumulator.js.map +1 -1
  419. package/lib/sync.js +976 -918
  420. package/lib/sync.js.map +1 -1
  421. package/lib/testing.js +85 -61
  422. package/lib/testing.js.map +1 -1
  423. package/lib/thread-utils.js +3 -9
  424. package/lib/thread-utils.js.map +1 -1
  425. package/lib/timeline-window.js +104 -103
  426. package/lib/timeline-window.js.map +1 -1
  427. package/lib/types.js +4 -22
  428. package/lib/types.js.map +1 -1
  429. package/lib/utils.d.ts.map +1 -1
  430. package/lib/utils.js +148 -165
  431. package/lib/utils.js.map +1 -1
  432. package/lib/version-support.js +3 -9
  433. package/lib/version-support.js.map +1 -1
  434. package/lib/webrtc/audioContext.js +4 -12
  435. package/lib/webrtc/audioContext.js.map +1 -1
  436. package/lib/webrtc/call.js +1286 -1173
  437. package/lib/webrtc/call.js.map +1 -1
  438. package/lib/webrtc/callEventHandler.js +234 -234
  439. package/lib/webrtc/callEventHandler.js.map +1 -1
  440. package/lib/webrtc/callEventTypes.js +3 -8
  441. package/lib/webrtc/callEventTypes.js.map +1 -1
  442. package/lib/webrtc/callFeed.js +39 -46
  443. package/lib/webrtc/callFeed.js.map +1 -1
  444. package/lib/webrtc/groupCall.js +637 -580
  445. package/lib/webrtc/groupCall.js.map +1 -1
  446. package/lib/webrtc/groupCallEventHandler.js +73 -76
  447. package/lib/webrtc/groupCallEventHandler.js.map +1 -1
  448. package/lib/webrtc/mediaHandler.js +225 -198
  449. package/lib/webrtc/mediaHandler.js.map +1 -1
  450. package/lib/webrtc/stats/callFeedStatsReporter.js +17 -22
  451. package/lib/webrtc/stats/callFeedStatsReporter.js.map +1 -1
  452. package/lib/webrtc/stats/callStatsReportGatherer.js +97 -98
  453. package/lib/webrtc/stats/callStatsReportGatherer.js.map +1 -1
  454. package/lib/webrtc/stats/callStatsReportSummary.js +1 -6
  455. package/lib/webrtc/stats/connectionStats.js +6 -14
  456. package/lib/webrtc/stats/connectionStats.js.map +1 -1
  457. package/lib/webrtc/stats/connectionStatsBuilder.js +3 -10
  458. package/lib/webrtc/stats/connectionStatsBuilder.js.map +1 -1
  459. package/lib/webrtc/stats/connectionStatsReportBuilder.js +21 -28
  460. package/lib/webrtc/stats/connectionStatsReportBuilder.js.map +1 -1
  461. package/lib/webrtc/stats/groupCallStats.js +14 -22
  462. package/lib/webrtc/stats/groupCallStats.js.map +1 -1
  463. package/lib/webrtc/stats/media/mediaSsrcHandler.js +10 -18
  464. package/lib/webrtc/stats/media/mediaSsrcHandler.js.map +1 -1
  465. package/lib/webrtc/stats/media/mediaTrackHandler.js +4 -11
  466. package/lib/webrtc/stats/media/mediaTrackHandler.js.map +1 -1
  467. package/lib/webrtc/stats/media/mediaTrackStats.js +12 -20
  468. package/lib/webrtc/stats/media/mediaTrackStats.js.map +1 -1
  469. package/lib/webrtc/stats/media/mediaTrackStatsHandler.js +11 -19
  470. package/lib/webrtc/stats/media/mediaTrackStatsHandler.js.map +1 -1
  471. package/lib/webrtc/stats/statsReport.js +8 -8
  472. package/lib/webrtc/stats/statsReport.js.map +1 -1
  473. package/lib/webrtc/stats/statsReportEmitter.js +7 -14
  474. package/lib/webrtc/stats/statsReportEmitter.js.map +1 -1
  475. package/lib/webrtc/stats/summaryStatsReportGatherer.js +15 -22
  476. package/lib/webrtc/stats/summaryStatsReportGatherer.js.map +1 -1
  477. package/lib/webrtc/stats/trackStatsBuilder.js +32 -39
  478. package/lib/webrtc/stats/trackStatsBuilder.js.map +1 -1
  479. package/lib/webrtc/stats/transportStats.js +1 -6
  480. package/lib/webrtc/stats/transportStatsBuilder.js +10 -17
  481. package/lib/webrtc/stats/transportStatsBuilder.js.map +1 -1
  482. package/lib/webrtc/stats/valueFormatter.js +2 -9
  483. package/lib/webrtc/stats/valueFormatter.js.map +1 -1
  484. package/package.json +3 -3
  485. package/src/@types/auth.ts +0 -5
  486. package/src/@types/event.ts +0 -6
  487. package/src/@types/registration.ts +5 -19
  488. package/src/autodiscovery.ts +0 -5
  489. package/src/client.ts +40 -58
  490. package/src/common-crypto/CryptoBackend.ts +2 -1
  491. package/src/crypto/CrossSigning.ts +9 -9
  492. package/src/crypto/EncryptionSetup.ts +3 -10
  493. package/src/crypto/index.ts +24 -26
  494. package/src/crypto/store/base.ts +3 -3
  495. package/src/crypto/store/indexeddb-crypto-store-backend.ts +3 -3
  496. package/src/crypto/store/indexeddb-crypto-store.ts +3 -3
  497. package/src/crypto/store/localStorage-crypto-store.ts +4 -4
  498. package/src/crypto/store/memory-crypto-store.ts +4 -4
  499. package/src/crypto-api/keybackup.ts +1 -1
  500. package/src/interactive-auth.ts +4 -10
  501. package/src/matrix.ts +0 -18
  502. package/src/models/MSC3089TreeSpace.ts +1 -1
  503. package/src/models/event-timeline-set.ts +1 -36
  504. package/src/models/event-timeline.ts +1 -22
  505. package/src/models/event.ts +4 -17
  506. package/src/models/room.ts +3 -96
  507. package/src/rust-crypto/PerSessionKeyBackupDownloader.ts +8 -4
  508. package/src/rust-crypto/backup.ts +6 -1
  509. package/src/rust-crypto/index.ts +21 -7
  510. package/src/rust-crypto/libolm_migration.ts +13 -0
  511. package/src/rust-crypto/rust-crypto.ts +7 -3
  512. package/src/rust-crypto/verification.ts +8 -2
  513. package/src/sync-accumulator.ts +1 -3
  514. package/src/utils.ts +1 -6
package/git-revision.txt CHANGED
@@ -1 +1 @@
1
- a86d4ceb49137f13240674ddb358bb96934ba720
1
+ 9d6210b3f9188d2847ca3700ffa871dc16e8fda4
@@ -1,6 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=IIdentityServerProvider.js.map
1
+ export {};
@@ -1,10 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TweakName = exports.RuleId = exports.PushRuleKind = exports.PushRuleActionName = exports.DMMemberCountCondition = exports.ConditionOperator = exports.ConditionKind = void 0;
7
- exports.isDmMemberCountCondition = isDmMemberCountCondition;
8
1
  /*
9
2
  Copyright 2021 The Matrix.org Foundation C.I.C.
10
3
 
@@ -20,20 +13,22 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
13
  See the License for the specific language governing permissions and
21
14
  limitations under the License.
22
15
  */
16
+
23
17
  // allow camelcase as these are things that go onto the wire
24
18
  /* eslint-disable camelcase */
25
- let PushRuleActionName = exports.PushRuleActionName = /*#__PURE__*/function (PushRuleActionName) {
19
+
20
+ export var PushRuleActionName = /*#__PURE__*/function (PushRuleActionName) {
26
21
  PushRuleActionName["DontNotify"] = "dont_notify";
27
22
  PushRuleActionName["Notify"] = "notify";
28
23
  PushRuleActionName["Coalesce"] = "coalesce";
29
24
  return PushRuleActionName;
30
25
  }({});
31
- let TweakName = exports.TweakName = /*#__PURE__*/function (TweakName) {
26
+ export var TweakName = /*#__PURE__*/function (TweakName) {
32
27
  TweakName["Highlight"] = "highlight";
33
28
  TweakName["Sound"] = "sound";
34
29
  return TweakName;
35
30
  }({});
36
- let ConditionOperator = exports.ConditionOperator = /*#__PURE__*/function (ConditionOperator) {
31
+ export var ConditionOperator = /*#__PURE__*/function (ConditionOperator) {
37
32
  ConditionOperator["ExactEquals"] = "==";
38
33
  ConditionOperator["LessThan"] = "<";
39
34
  ConditionOperator["GreaterThan"] = ">";
@@ -41,11 +36,11 @@ let ConditionOperator = exports.ConditionOperator = /*#__PURE__*/function (Condi
41
36
  ConditionOperator["LessThanOrEqual"] = "<=";
42
37
  return ConditionOperator;
43
38
  }({});
44
- const DMMemberCountCondition = exports.DMMemberCountCondition = "2";
45
- function isDmMemberCountCondition(condition) {
39
+ export var DMMemberCountCondition = "2";
40
+ export function isDmMemberCountCondition(condition) {
46
41
  return condition === "==2" || condition === "2";
47
42
  }
48
- let ConditionKind = exports.ConditionKind = /*#__PURE__*/function (ConditionKind) {
43
+ export var ConditionKind = /*#__PURE__*/function (ConditionKind) {
49
44
  ConditionKind["EventMatch"] = "event_match";
50
45
  ConditionKind["EventPropertyIs"] = "event_property_is";
51
46
  ConditionKind["EventPropertyContains"] = "event_property_contains";
@@ -55,9 +50,12 @@ let ConditionKind = exports.ConditionKind = /*#__PURE__*/function (ConditionKind
55
50
  ConditionKind["CallStarted"] = "call_started";
56
51
  ConditionKind["CallStartedPrefix"] = "org.matrix.msc3914.call_started";
57
52
  return ConditionKind;
58
- }({}); // XXX: custom conditions are possible but always fail, and break the typescript discriminated union so ignore them here
53
+ }({});
54
+
55
+ // XXX: custom conditions are possible but always fail, and break the typescript discriminated union so ignore them here
59
56
  // IPushRuleCondition<Exclude<string, ConditionKind>> unfortunately does not resolve this at the time of writing.
60
- let PushRuleKind = exports.PushRuleKind = /*#__PURE__*/function (PushRuleKind) {
57
+
58
+ export var PushRuleKind = /*#__PURE__*/function (PushRuleKind) {
61
59
  PushRuleKind["Override"] = "override";
62
60
  PushRuleKind["ContentSpecific"] = "content";
63
61
  PushRuleKind["RoomSpecific"] = "room";
@@ -65,7 +63,7 @@ let PushRuleKind = exports.PushRuleKind = /*#__PURE__*/function (PushRuleKind) {
65
63
  PushRuleKind["Underride"] = "underride";
66
64
  return PushRuleKind;
67
65
  }({});
68
- let RuleId = exports.RuleId = /*#__PURE__*/function (RuleId) {
66
+ export var RuleId = /*#__PURE__*/function (RuleId) {
69
67
  RuleId["Master"] = ".m.rule.master";
70
68
  RuleId["IsUserMention"] = ".m.rule.is_user_mention";
71
69
  RuleId["IsRoomMention"] = ".m.rule.is_room_mention";
@@ -91,5 +89,6 @@ let RuleId = exports.RuleId = /*#__PURE__*/function (RuleId) {
91
89
  RuleId["PollEndOneToOneUnstable"] = ".org.matrix.msc3930.rule.poll_end_one_to_one";
92
90
  return RuleId;
93
91
  }({});
92
+
94
93
  /* eslint-enable camelcase */
95
94
  //# sourceMappingURL=PushRules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PushRules.js","names":["PushRuleActionName","exports","TweakName","ConditionOperator","DMMemberCountCondition","isDmMemberCountCondition","condition","ConditionKind","PushRuleKind","RuleId"],"sources":["../../src/@types/PushRules.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// allow camelcase as these are things that go onto the wire\n/* eslint-disable camelcase */\n\nexport enum PushRuleActionName {\n DontNotify = \"dont_notify\",\n Notify = \"notify\",\n Coalesce = \"coalesce\",\n}\n\nexport enum TweakName {\n Highlight = \"highlight\",\n Sound = \"sound\",\n}\n\nexport type Tweak<N extends TweakName, V> = {\n set_tweak: N;\n value?: V;\n};\n\nexport type TweakHighlight = Tweak<TweakName.Highlight, boolean>;\nexport type TweakSound = Tweak<TweakName.Sound, string>;\n\nexport type Tweaks = TweakHighlight | TweakSound;\n\nexport enum ConditionOperator {\n ExactEquals = \"==\",\n LessThan = \"<\",\n GreaterThan = \">\",\n GreaterThanOrEqual = \">=\",\n LessThanOrEqual = \"<=\",\n}\n\nexport type PushRuleAction = Tweaks | PushRuleActionName;\n\nexport type MemberCountCondition<N extends number, Op extends ConditionOperator = ConditionOperator.ExactEquals> =\n | `${Op}${N}`\n | (Op extends ConditionOperator.ExactEquals ? `${N}` : never);\n\nexport type AnyMemberCountCondition = MemberCountCondition<number, ConditionOperator>;\n\nexport const DMMemberCountCondition: MemberCountCondition<2> = \"2\";\n\nexport function isDmMemberCountCondition(condition: AnyMemberCountCondition): boolean {\n return condition === \"==2\" || condition === \"2\";\n}\n\nexport enum ConditionKind {\n EventMatch = \"event_match\",\n EventPropertyIs = \"event_property_is\",\n EventPropertyContains = \"event_property_contains\",\n ContainsDisplayName = \"contains_display_name\",\n RoomMemberCount = \"room_member_count\",\n SenderNotificationPermission = \"sender_notification_permission\",\n CallStarted = \"call_started\",\n CallStartedPrefix = \"org.matrix.msc3914.call_started\",\n}\n\nexport interface IPushRuleCondition<N extends ConditionKind | string> {\n [k: string]: any; // for custom conditions, there can be other fields here\n kind: N;\n}\n\nexport interface IEventMatchCondition extends IPushRuleCondition<ConditionKind.EventMatch> {\n key: string;\n pattern?: string;\n // Note that value property is an optimization for patterns which do not do\n // any globbing and when the key is not \"content.body\".\n value?: string;\n}\n\nexport interface IEventPropertyIsCondition extends IPushRuleCondition<ConditionKind.EventPropertyIs> {\n key: string;\n value: string | boolean | null | number;\n}\n\nexport interface IEventPropertyContainsCondition extends IPushRuleCondition<ConditionKind.EventPropertyContains> {\n key: string;\n value: string | boolean | null | number;\n}\n\nexport interface IContainsDisplayNameCondition extends IPushRuleCondition<ConditionKind.ContainsDisplayName> {\n // no additional fields\n}\n\nexport interface IRoomMemberCountCondition extends IPushRuleCondition<ConditionKind.RoomMemberCount> {\n is: AnyMemberCountCondition;\n}\n\nexport interface ISenderNotificationPermissionCondition\n extends IPushRuleCondition<ConditionKind.SenderNotificationPermission> {\n key: string;\n}\n\nexport interface ICallStartedCondition extends IPushRuleCondition<ConditionKind.CallStarted> {\n // no additional fields\n}\n\nexport interface ICallStartedPrefixCondition extends IPushRuleCondition<ConditionKind.CallStartedPrefix> {\n // no additional fields\n}\n\n// XXX: custom conditions are possible but always fail, and break the typescript discriminated union so ignore them here\n// IPushRuleCondition<Exclude<string, ConditionKind>> unfortunately does not resolve this at the time of writing.\nexport type PushRuleCondition =\n | IEventMatchCondition\n | IEventPropertyIsCondition\n | IEventPropertyContainsCondition\n | IContainsDisplayNameCondition\n | IRoomMemberCountCondition\n | ISenderNotificationPermissionCondition\n | ICallStartedCondition\n | ICallStartedPrefixCondition;\n\nexport enum PushRuleKind {\n Override = \"override\",\n ContentSpecific = \"content\",\n RoomSpecific = \"room\",\n SenderSpecific = \"sender\",\n Underride = \"underride\",\n}\n\nexport enum RuleId {\n Master = \".m.rule.master\",\n IsUserMention = \".m.rule.is_user_mention\",\n IsRoomMention = \".m.rule.is_room_mention\",\n ContainsDisplayName = \".m.rule.contains_display_name\",\n ContainsUserName = \".m.rule.contains_user_name\",\n AtRoomNotification = \".m.rule.roomnotif\",\n DM = \".m.rule.room_one_to_one\",\n EncryptedDM = \".m.rule.encrypted_room_one_to_one\",\n Message = \".m.rule.message\",\n EncryptedMessage = \".m.rule.encrypted\",\n InviteToSelf = \".m.rule.invite_for_me\",\n MemberEvent = \".m.rule.member_event\",\n IncomingCall = \".m.rule.call\",\n SuppressNotices = \".m.rule.suppress_notices\",\n Tombstone = \".m.rule.tombstone\",\n PollStart = \".m.rule.poll_start\",\n PollStartUnstable = \".org.matrix.msc3930.rule.poll_start\",\n PollEnd = \".m.rule.poll_end\",\n PollEndUnstable = \".org.matrix.msc3930.rule.poll_end\",\n PollStartOneToOne = \".m.rule.poll_start_one_to_one\",\n PollStartOneToOneUnstable = \".org.matrix.msc3930.rule.poll_start_one_to_one\",\n PollEndOneToOne = \".m.rule.poll_end_one_to_one\",\n PollEndOneToOneUnstable = \".org.matrix.msc3930.rule.poll_end_one_to_one\",\n}\n\nexport type PushRuleSet = {\n [k in PushRuleKind]?: IPushRule[];\n};\n\nexport interface IPushRule {\n actions: PushRuleAction[];\n conditions?: PushRuleCondition[];\n default: boolean;\n enabled: boolean;\n pattern?: string;\n rule_id: RuleId | string;\n}\n\nexport interface IAnnotatedPushRule extends IPushRule {\n kind: PushRuleKind;\n}\n\nexport interface IPushRules {\n global: PushRuleSet;\n device?: PushRuleSet;\n}\n\nexport interface IPusher {\n \"app_display_name\": string;\n \"app_id\": string;\n \"data\": {\n format?: string;\n url?: string; // TODO: Required if kind==http\n brand?: string; // TODO: For email notifications only? Unspecced field\n };\n \"device_display_name\": string;\n \"kind\": \"http\" | string;\n \"lang\": string;\n \"profile_tag\"?: string;\n \"pushkey\": string;\n \"enabled\"?: boolean | null;\n \"org.matrix.msc3881.enabled\"?: boolean | null;\n \"device_id\"?: string | null;\n \"org.matrix.msc3881.device_id\"?: string | null;\n}\n\nexport interface IPusherRequest extends Omit<IPusher, \"device_id\" | \"org.matrix.msc3881.device_id\"> {\n append?: boolean;\n}\n\n/* eslint-enable camelcase */\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA,IAEYA,kBAAkB,GAAAC,OAAA,CAAAD,k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ANA,MAAM;EAANA,MAAM;EAAA,OAANA,MAAM;AAAA;AAuElB","ignoreList":[]}
1
+ {"version":3,"file":"PushRules.js","names":["PushRuleActionName","TweakName","ConditionOperator","DMMemberCountCondition","isDmMemberCountCondition","condition","ConditionKind","PushRuleKind","RuleId"],"sources":["../../src/@types/PushRules.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// allow camelcase as these are things that go onto the wire\n/* eslint-disable camelcase */\n\nexport enum PushRuleActionName {\n DontNotify = \"dont_notify\",\n Notify = \"notify\",\n Coalesce = \"coalesce\",\n}\n\nexport enum TweakName {\n Highlight = \"highlight\",\n Sound = \"sound\",\n}\n\nexport type Tweak<N extends TweakName, V> = {\n set_tweak: N;\n value?: V;\n};\n\nexport type TweakHighlight = Tweak<TweakName.Highlight, boolean>;\nexport type TweakSound = Tweak<TweakName.Sound, string>;\n\nexport type Tweaks = TweakHighlight | TweakSound;\n\nexport enum ConditionOperator {\n ExactEquals = \"==\",\n LessThan = \"<\",\n GreaterThan = \">\",\n GreaterThanOrEqual = \">=\",\n LessThanOrEqual = \"<=\",\n}\n\nexport type PushRuleAction = Tweaks | PushRuleActionName;\n\nexport type MemberCountCondition<N extends number, Op extends ConditionOperator = ConditionOperator.ExactEquals> =\n | `${Op}${N}`\n | (Op extends ConditionOperator.ExactEquals ? `${N}` : never);\n\nexport type AnyMemberCountCondition = MemberCountCondition<number, ConditionOperator>;\n\nexport const DMMemberCountCondition: MemberCountCondition<2> = \"2\";\n\nexport function isDmMemberCountCondition(condition: AnyMemberCountCondition): boolean {\n return condition === \"==2\" || condition === \"2\";\n}\n\nexport enum ConditionKind {\n EventMatch = \"event_match\",\n EventPropertyIs = \"event_property_is\",\n EventPropertyContains = \"event_property_contains\",\n ContainsDisplayName = \"contains_display_name\",\n RoomMemberCount = \"room_member_count\",\n SenderNotificationPermission = \"sender_notification_permission\",\n CallStarted = \"call_started\",\n CallStartedPrefix = \"org.matrix.msc3914.call_started\",\n}\n\nexport interface IPushRuleCondition<N extends ConditionKind | string> {\n [k: string]: any; // for custom conditions, there can be other fields here\n kind: N;\n}\n\nexport interface IEventMatchCondition extends IPushRuleCondition<ConditionKind.EventMatch> {\n key: string;\n pattern?: string;\n // Note that value property is an optimization for patterns which do not do\n // any globbing and when the key is not \"content.body\".\n value?: string;\n}\n\nexport interface IEventPropertyIsCondition extends IPushRuleCondition<ConditionKind.EventPropertyIs> {\n key: string;\n value: string | boolean | null | number;\n}\n\nexport interface IEventPropertyContainsCondition extends IPushRuleCondition<ConditionKind.EventPropertyContains> {\n key: string;\n value: string | boolean | null | number;\n}\n\nexport interface IContainsDisplayNameCondition extends IPushRuleCondition<ConditionKind.ContainsDisplayName> {\n // no additional fields\n}\n\nexport interface IRoomMemberCountCondition extends IPushRuleCondition<ConditionKind.RoomMemberCount> {\n is: AnyMemberCountCondition;\n}\n\nexport interface ISenderNotificationPermissionCondition\n extends IPushRuleCondition<ConditionKind.SenderNotificationPermission> {\n key: string;\n}\n\nexport interface ICallStartedCondition extends IPushRuleCondition<ConditionKind.CallStarted> {\n // no additional fields\n}\n\nexport interface ICallStartedPrefixCondition extends IPushRuleCondition<ConditionKind.CallStartedPrefix> {\n // no additional fields\n}\n\n// XXX: custom conditions are possible but always fail, and break the typescript discriminated union so ignore them here\n// IPushRuleCondition<Exclude<string, ConditionKind>> unfortunately does not resolve this at the time of writing.\nexport type PushRuleCondition =\n | IEventMatchCondition\n | IEventPropertyIsCondition\n | IEventPropertyContainsCondition\n | IContainsDisplayNameCondition\n | IRoomMemberCountCondition\n | ISenderNotificationPermissionCondition\n | ICallStartedCondition\n | ICallStartedPrefixCondition;\n\nexport enum PushRuleKind {\n Override = \"override\",\n ContentSpecific = \"content\",\n RoomSpecific = \"room\",\n SenderSpecific = \"sender\",\n Underride = \"underride\",\n}\n\nexport enum RuleId {\n Master = \".m.rule.master\",\n IsUserMention = \".m.rule.is_user_mention\",\n IsRoomMention = \".m.rule.is_room_mention\",\n ContainsDisplayName = \".m.rule.contains_display_name\",\n ContainsUserName = \".m.rule.contains_user_name\",\n AtRoomNotification = \".m.rule.roomnotif\",\n DM = \".m.rule.room_one_to_one\",\n EncryptedDM = \".m.rule.encrypted_room_one_to_one\",\n Message = \".m.rule.message\",\n EncryptedMessage = \".m.rule.encrypted\",\n InviteToSelf = \".m.rule.invite_for_me\",\n MemberEvent = \".m.rule.member_event\",\n IncomingCall = \".m.rule.call\",\n SuppressNotices = \".m.rule.suppress_notices\",\n Tombstone = \".m.rule.tombstone\",\n PollStart = \".m.rule.poll_start\",\n PollStartUnstable = \".org.matrix.msc3930.rule.poll_start\",\n PollEnd = \".m.rule.poll_end\",\n PollEndUnstable = \".org.matrix.msc3930.rule.poll_end\",\n PollStartOneToOne = \".m.rule.poll_start_one_to_one\",\n PollStartOneToOneUnstable = \".org.matrix.msc3930.rule.poll_start_one_to_one\",\n PollEndOneToOne = \".m.rule.poll_end_one_to_one\",\n PollEndOneToOneUnstable = \".org.matrix.msc3930.rule.poll_end_one_to_one\",\n}\n\nexport type PushRuleSet = {\n [k in PushRuleKind]?: IPushRule[];\n};\n\nexport interface IPushRule {\n actions: PushRuleAction[];\n conditions?: PushRuleCondition[];\n default: boolean;\n enabled: boolean;\n pattern?: string;\n rule_id: RuleId | string;\n}\n\nexport interface IAnnotatedPushRule extends IPushRule {\n kind: PushRuleKind;\n}\n\nexport interface IPushRules {\n global: PushRuleSet;\n device?: PushRuleSet;\n}\n\nexport interface IPusher {\n \"app_display_name\": string;\n \"app_id\": string;\n \"data\": {\n format?: string;\n url?: string; // TODO: Required if kind==http\n brand?: string; // TODO: For email notifications only? Unspecced field\n };\n \"device_display_name\": string;\n \"kind\": \"http\" | string;\n \"lang\": string;\n \"profile_tag\"?: string;\n \"pushkey\": string;\n \"enabled\"?: boolean | null;\n \"org.matrix.msc3881.enabled\"?: boolean | null;\n \"device_id\"?: string | null;\n \"org.matrix.msc3881.device_id\"?: string | null;\n}\n\nexport interface IPusherRequest extends Omit<IPusher, \"device_id\" | \"org.matrix.msc3881.device_id\"> {\n append?: boolean;\n}\n\n/* eslint-enable camelcase */\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAM9B,WAAYC,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAerB,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAgB7B,OAAO,IAAMC,sBAA+C,GAAG,GAAG;AAElE,OAAO,SAASC,wBAAwBA,CAACC,SAAkC,EAAW;EAClF,OAAOA,SAAS,KAAK,KAAK,IAAIA,SAAS,KAAK,GAAG;AACnD;AAEA,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;;AAuDzB;AACA;;AAWA,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAQxB,WAAYC,MAAM,0BAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAAA,OAANA,MAAM;AAAA;;AAuElB","ignoreList":[]}
@@ -1 +0,0 @@
1
- "use strict";
@@ -106,11 +106,6 @@ export interface LoginRequest {
106
106
  * The login type being used.
107
107
  */
108
108
  type: "m.login.password" | "m.login.token" | string;
109
- /**
110
- * Third-party identifier for the user.
111
- * @deprecated in favour of `identifier`.
112
- */
113
- address?: string;
114
109
  /**
115
110
  * ID of the client device.
116
111
  * If this does not correspond to a known client device, a new device will be created.
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/@types/auth.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAK7C;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACzB;AAID;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,SAAS,EAAE,CAAC;CACtB;AAED,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC7C,IAAI,EAAE,kBAAkB,CAAC;CAC5B;AAED,eAAO,MAAM,4BAA4B,kG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OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAGD,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB"}
@@ -1,10 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SSOAction = exports.IdentityProviderBrand = exports.DELEGATED_OIDC_COMPATIBILITY = void 0;
7
- var _NamespacedValue = require("../NamespacedValue");
8
1
  /*
9
2
  Copyright 2022 The Matrix.org Foundation C.I.C.
10
3
 
@@ -21,6 +14,8 @@ See the License for the specific language governing permissions and
21
14
  limitations under the License.
22
15
  */
23
16
 
17
+ import { UnstableValue } from "../NamespacedValue";
18
+
24
19
  // disable lint because these are wire responses
25
20
  /* eslint-disable camelcase */
26
21
 
@@ -34,12 +29,13 @@ limitations under the License.
34
29
  * Response to GET login flows as per https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv3login
35
30
  */
36
31
 
37
- const DELEGATED_OIDC_COMPATIBILITY = exports.DELEGATED_OIDC_COMPATIBILITY = new _NamespacedValue.UnstableValue("delegated_oidc_compatibility", "org.matrix.msc3824.delegated_oidc_compatibility");
32
+ export var DELEGATED_OIDC_COMPATIBILITY = new UnstableValue("delegated_oidc_compatibility", "org.matrix.msc3824.delegated_oidc_compatibility");
38
33
 
39
34
  /**
40
35
  * Representation of SSO flow as per https://spec.matrix.org/v1.3/client-server-api/#client-login-via-sso
41
36
  */
42
- let IdentityProviderBrand = exports.IdentityProviderBrand = /*#__PURE__*/function (IdentityProviderBrand) {
37
+
38
+ export var IdentityProviderBrand = /*#__PURE__*/function (IdentityProviderBrand) {
43
39
  IdentityProviderBrand["Gitlab"] = "gitlab";
44
40
  IdentityProviderBrand["Github"] = "github";
45
41
  IdentityProviderBrand["Apple"] = "apple";
@@ -48,22 +44,25 @@ let IdentityProviderBrand = exports.IdentityProviderBrand = /*#__PURE__*/functio
48
44
  IdentityProviderBrand["Twitter"] = "twitter";
49
45
  return IdentityProviderBrand;
50
46
  }({});
51
- let SSOAction = exports.SSOAction = /*#__PURE__*/function (SSOAction) {
47
+ export var SSOAction = /*#__PURE__*/function (SSOAction) {
52
48
  SSOAction["LOGIN"] = "login";
53
49
  SSOAction["REGISTER"] = "register";
54
50
  return SSOAction;
55
51
  }({});
52
+
56
53
  /**
57
54
  * A client can identify a user using their Matrix ID.
58
55
  * This can either be the fully qualified Matrix user ID, or just the localpart of the user ID.
59
56
  * @see https://spec.matrix.org/v1.7/client-server-api/#matrix-user-id
60
57
  */
58
+
61
59
  /**
62
60
  * A client can identify a user using a 3PID associated with the user’s account on the homeserver,
63
61
  * where the 3PID was previously associated using the /account/3pid API.
64
62
  * See the 3PID Types Appendix for a list of Third-party ID media.
65
63
  * @see https://spec.matrix.org/v1.7/client-server-api/#third-party-id
66
64
  */
65
+
67
66
  /**
68
67
  * A client can identify a user using a phone number associated with the user’s account,
69
68
  * where the phone number was previously associated using the /account/3pid API.
@@ -75,20 +74,25 @@ let SSOAction = exports.SSOAction = /*#__PURE__*/function (SSOAction) {
75
74
  *
76
75
  * @see https://spec.matrix.org/v1.7/client-server-api/#phone-number
77
76
  */
77
+
78
78
  /**
79
79
  * User Identifiers usable for login & user-interactive authentication.
80
80
  *
81
81
  * Extensibly allows more than Matrix specified identifiers.
82
82
  */
83
+
83
84
  /**
84
85
  * Request body for POST /login request
85
86
  * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login
86
87
  */
88
+
87
89
  // Export for backwards compatibility
90
+
88
91
  /**
89
92
  * Response body for POST /login request
90
93
  * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login
91
94
  */
95
+
92
96
  /**
93
97
  * The result of a successful `m.login.token` issuance request as per https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv1loginget_token
94
98
  */
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","names":["_NamespacedValue","require","DELEGATED_OIDC_COMPATIBILITY","exports","UnstableValue","IdentityProviderBrand","SSOAction"],"sources":["../../src/@types/auth.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 { UnstableValue } from \"../NamespacedValue\";\nimport { IClientWellKnown } from \"../client\";\n\n// disable lint because these are wire responses\n/* eslint-disable camelcase */\n\n/**\n * Represents a response to the CSAPI `/refresh` endpoint.\n */\nexport interface IRefreshTokenResponse {\n access_token: string;\n expires_in_ms: number;\n refresh_token: string;\n}\n\n/* eslint-enable camelcase */\n\n/**\n * Response to GET login flows as per https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv3login\n */\nexport interface ILoginFlowsResponse {\n flows: LoginFlow[];\n}\n\nexport type LoginFlow = ISSOFlow | IPasswordFlow | ILoginFlow;\n\nexport interface ILoginFlow {\n type: string;\n}\n\nexport interface IPasswordFlow extends ILoginFlow {\n type: \"m.login.password\";\n}\n\nexport const DELEGATED_OIDC_COMPATIBILITY = new UnstableValue(\n \"delegated_oidc_compatibility\",\n \"org.matrix.msc3824.delegated_oidc_compatibility\",\n);\n\n/**\n * Representation of SSO flow as per https://spec.matrix.org/v1.3/client-server-api/#client-login-via-sso\n */\nexport interface ISSOFlow extends ILoginFlow {\n type: \"m.login.sso\" | \"m.login.cas\";\n // eslint-disable-next-line camelcase\n identity_providers?: IIdentityProvider[];\n [DELEGATED_OIDC_COMPATIBILITY.name]?: boolean;\n [DELEGATED_OIDC_COMPATIBILITY.altName]?: boolean;\n}\n\nexport enum IdentityProviderBrand {\n Gitlab = \"gitlab\",\n Github = \"github\",\n Apple = \"apple\",\n Google = \"google\",\n Facebook = \"facebook\",\n Twitter = \"twitter\",\n}\n\nexport interface IIdentityProvider {\n id: string;\n name: string;\n icon?: string;\n brand?: IdentityProviderBrand | string;\n}\n\nexport enum SSOAction {\n /** The user intends to login to an existing account */\n LOGIN = \"login\",\n\n /** The user intends to register for a new account */\n REGISTER = \"register\",\n}\n\n/**\n * A client can identify a user using their Matrix ID.\n * This can either be the fully qualified Matrix user ID, or just the localpart of the user ID.\n * @see https://spec.matrix.org/v1.7/client-server-api/#matrix-user-id\n */\ntype UserLoginIdentifier = {\n type: \"m.id.user\";\n user: string;\n};\n\n/**\n * A client can identify a user using a 3PID associated with the user’s account on the homeserver,\n * where the 3PID was previously associated using the /account/3pid API.\n * See the 3PID Types Appendix for a list of Third-party ID media.\n * @see https://spec.matrix.org/v1.7/client-server-api/#third-party-id\n */\ntype ThirdPartyLoginIdentifier = {\n type: \"m.id.thirdparty\";\n medium: string;\n address: string;\n};\n\n/**\n * A client can identify a user using a phone number associated with the user’s account,\n * where the phone number was previously associated using the /account/3pid API.\n * The phone number can be passed in as entered by the user; the homeserver will be responsible for canonicalising it.\n * If the client wishes to canonicalise the phone number,\n * then it can use the m.id.thirdparty identifier type with a medium of msisdn instead.\n *\n * The country is the two-letter uppercase ISO-3166-1 alpha-2 country code that the number in phone should be parsed as if it were dialled from.\n *\n * @see https://spec.matrix.org/v1.7/client-server-api/#phone-number\n */\ntype PhoneLoginIdentifier = {\n type: \"m.id.phone\";\n country: string;\n phone: string;\n};\n\ntype SpecUserIdentifier = UserLoginIdentifier | ThirdPartyLoginIdentifier | PhoneLoginIdentifier;\n\n/**\n * User Identifiers usable for login & user-interactive authentication.\n *\n * Extensibly allows more than Matrix specified identifiers.\n */\nexport type UserIdentifier =\n | SpecUserIdentifier\n | { type: Exclude<string, SpecUserIdentifier[\"type\"]>; [key: string]: any };\n\n/**\n * Request body for POST /login request\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login\n */\nexport interface LoginRequest {\n /**\n * The login type being used.\n */\n type: \"m.login.password\" | \"m.login.token\" | string;\n /**\n * Third-party identifier for the user.\n * @deprecated in favour of `identifier`.\n */\n address?: string;\n /**\n * ID of the client device.\n * If this does not correspond to a known client device, a new device will be created.\n * The given device ID must not be the same as a cross-signing key ID.\n * The server will auto-generate a device_id if this is not specified.\n */\n device_id?: string;\n /**\n * Identification information for a user\n */\n identifier?: UserIdentifier;\n /**\n * A display name to assign to the newly-created device.\n * Ignored if device_id corresponds to a known device.\n */\n initial_device_display_name?: string;\n /**\n * When logging in using a third-party identifier, the medium of the identifier.\n * Must be `email`.\n * @deprecated in favour of `identifier`.\n */\n medium?: \"email\";\n /**\n * Required when type is `m.login.password`. The user’s password.\n */\n password?: string;\n /**\n * If true, the client supports refresh tokens.\n */\n refresh_token?: boolean;\n /**\n * Required when type is `m.login.token`. Part of Token-based login.\n */\n token?: string;\n /**\n * The fully qualified user ID or just local part of the user ID, to log in.\n * @deprecated in favour of identifier.\n */\n user?: string;\n // Extensible\n [key: string]: any;\n}\n\n// Export for backwards compatibility\nexport type ILoginParams = LoginRequest;\n\n/**\n * Response body for POST /login request\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login\n */\nexport interface LoginResponse {\n /**\n * An access token for the account.\n * This access token can then be used to authorize other requests.\n */\n access_token: string;\n /**\n * ID of the logged-in device.\n * Will be the same as the corresponding parameter in the request, if one was specified.\n */\n device_id: string;\n /**\n * The fully-qualified Matrix ID for the account.\n */\n user_id: string;\n /**\n * The lifetime of the access token, in milliseconds.\n * Once the access token has expired a new access token can be obtained by using the provided refresh token.\n * If no refresh token is provided, the client will need to re-log in to obtain a new access token.\n * If not given, the client can assume that the access token will not expire.\n */\n expires_in_ms?: number;\n /**\n * A refresh token for the account.\n * This token can be used to obtain a new access token when it expires by calling the /refresh endpoint.\n */\n refresh_token?: string;\n /**\n * Optional client configuration provided by the server.\n * If present, clients SHOULD use the provided object to reconfigure themselves, optionally validating the URLs within.\n * This object takes the same form as the one returned from .well-known autodiscovery.\n */\n well_known?: IClientWellKnown;\n /**\n * The server_name of the homeserver on which the account has been registered.\n * @deprecated Clients should extract the server_name from user_id (by splitting at the first colon) if they require it.\n */\n home_server?: string;\n}\n\n/**\n * The result of a successful `m.login.token` issuance request as per https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv1loginget_token\n */\nexport interface LoginTokenPostResponse {\n /**\n * The token to use with `m.login.token` to authenticate.\n */\n login_token: string;\n /**\n * Expiration in milliseconds.\n */\n expires_in_ms: number;\n}\n"],"mappings":";;;;;;AAgBA,IAAAA,gBAAA,GAAAC,OAAA;AAhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;;AAEA;AACA;AACA;;AAOA;;AAEA;AACA;AACA;;AAeO,MAAMC,4BAA4B,GAAAC,OAAA,CAAAD,4BAAA,GAAG,IAAIE,8BAAa,CACzD,8BAA8B,EAC9B,iDACJ,CAAC;;AAED;AACA;AACA;AAFA,IAWYC,qBAAqB,GAAAF,OAAA,CAAAE,qBAAA,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAAA,IAgBrBC,SAAS,GAAAH,OAAA,CAAAG,SAAA,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAQrB;AACA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AAsDA;AAGA;AACA;AACA;AACA;AAyCA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"auth.js","names":["UnstableValue","DELEGATED_OIDC_COMPATIBILITY","IdentityProviderBrand","SSOAction"],"sources":["../../src/@types/auth.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 { UnstableValue } from \"../NamespacedValue\";\nimport { IClientWellKnown } from \"../client\";\n\n// disable lint because these are wire responses\n/* eslint-disable camelcase */\n\n/**\n * Represents a response to the CSAPI `/refresh` endpoint.\n */\nexport interface IRefreshTokenResponse {\n access_token: string;\n expires_in_ms: number;\n refresh_token: string;\n}\n\n/* eslint-enable camelcase */\n\n/**\n * Response to GET login flows as per https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv3login\n */\nexport interface ILoginFlowsResponse {\n flows: LoginFlow[];\n}\n\nexport type LoginFlow = ISSOFlow | IPasswordFlow | ILoginFlow;\n\nexport interface ILoginFlow {\n type: string;\n}\n\nexport interface IPasswordFlow extends ILoginFlow {\n type: \"m.login.password\";\n}\n\nexport const DELEGATED_OIDC_COMPATIBILITY = new UnstableValue(\n \"delegated_oidc_compatibility\",\n \"org.matrix.msc3824.delegated_oidc_compatibility\",\n);\n\n/**\n * Representation of SSO flow as per https://spec.matrix.org/v1.3/client-server-api/#client-login-via-sso\n */\nexport interface ISSOFlow extends ILoginFlow {\n type: \"m.login.sso\" | \"m.login.cas\";\n // eslint-disable-next-line camelcase\n identity_providers?: IIdentityProvider[];\n [DELEGATED_OIDC_COMPATIBILITY.name]?: boolean;\n [DELEGATED_OIDC_COMPATIBILITY.altName]?: boolean;\n}\n\nexport enum IdentityProviderBrand {\n Gitlab = \"gitlab\",\n Github = \"github\",\n Apple = \"apple\",\n Google = \"google\",\n Facebook = \"facebook\",\n Twitter = \"twitter\",\n}\n\nexport interface IIdentityProvider {\n id: string;\n name: string;\n icon?: string;\n brand?: IdentityProviderBrand | string;\n}\n\nexport enum SSOAction {\n /** The user intends to login to an existing account */\n LOGIN = \"login\",\n\n /** The user intends to register for a new account */\n REGISTER = \"register\",\n}\n\n/**\n * A client can identify a user using their Matrix ID.\n * This can either be the fully qualified Matrix user ID, or just the localpart of the user ID.\n * @see https://spec.matrix.org/v1.7/client-server-api/#matrix-user-id\n */\ntype UserLoginIdentifier = {\n type: \"m.id.user\";\n user: string;\n};\n\n/**\n * A client can identify a user using a 3PID associated with the user’s account on the homeserver,\n * where the 3PID was previously associated using the /account/3pid API.\n * See the 3PID Types Appendix for a list of Third-party ID media.\n * @see https://spec.matrix.org/v1.7/client-server-api/#third-party-id\n */\ntype ThirdPartyLoginIdentifier = {\n type: \"m.id.thirdparty\";\n medium: string;\n address: string;\n};\n\n/**\n * A client can identify a user using a phone number associated with the user’s account,\n * where the phone number was previously associated using the /account/3pid API.\n * The phone number can be passed in as entered by the user; the homeserver will be responsible for canonicalising it.\n * If the client wishes to canonicalise the phone number,\n * then it can use the m.id.thirdparty identifier type with a medium of msisdn instead.\n *\n * The country is the two-letter uppercase ISO-3166-1 alpha-2 country code that the number in phone should be parsed as if it were dialled from.\n *\n * @see https://spec.matrix.org/v1.7/client-server-api/#phone-number\n */\ntype PhoneLoginIdentifier = {\n type: \"m.id.phone\";\n country: string;\n phone: string;\n};\n\ntype SpecUserIdentifier = UserLoginIdentifier | ThirdPartyLoginIdentifier | PhoneLoginIdentifier;\n\n/**\n * User Identifiers usable for login & user-interactive authentication.\n *\n * Extensibly allows more than Matrix specified identifiers.\n */\nexport type UserIdentifier =\n | SpecUserIdentifier\n | { type: Exclude<string, SpecUserIdentifier[\"type\"]>; [key: string]: any };\n\n/**\n * Request body for POST /login request\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login\n */\nexport interface LoginRequest {\n /**\n * The login type being used.\n */\n type: \"m.login.password\" | \"m.login.token\" | string;\n /**\n * ID of the client device.\n * If this does not correspond to a known client device, a new device will be created.\n * The given device ID must not be the same as a cross-signing key ID.\n * The server will auto-generate a device_id if this is not specified.\n */\n device_id?: string;\n /**\n * Identification information for a user\n */\n identifier?: UserIdentifier;\n /**\n * A display name to assign to the newly-created device.\n * Ignored if device_id corresponds to a known device.\n */\n initial_device_display_name?: string;\n /**\n * When logging in using a third-party identifier, the medium of the identifier.\n * Must be `email`.\n * @deprecated in favour of `identifier`.\n */\n medium?: \"email\";\n /**\n * Required when type is `m.login.password`. The user’s password.\n */\n password?: string;\n /**\n * If true, the client supports refresh tokens.\n */\n refresh_token?: boolean;\n /**\n * Required when type is `m.login.token`. Part of Token-based login.\n */\n token?: string;\n /**\n * The fully qualified user ID or just local part of the user ID, to log in.\n * @deprecated in favour of identifier.\n */\n user?: string;\n // Extensible\n [key: string]: any;\n}\n\n// Export for backwards compatibility\nexport type ILoginParams = LoginRequest;\n\n/**\n * Response body for POST /login request\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login\n */\nexport interface LoginResponse {\n /**\n * An access token for the account.\n * This access token can then be used to authorize other requests.\n */\n access_token: string;\n /**\n * ID of the logged-in device.\n * Will be the same as the corresponding parameter in the request, if one was specified.\n */\n device_id: string;\n /**\n * The fully-qualified Matrix ID for the account.\n */\n user_id: string;\n /**\n * The lifetime of the access token, in milliseconds.\n * Once the access token has expired a new access token can be obtained by using the provided refresh token.\n * If no refresh token is provided, the client will need to re-log in to obtain a new access token.\n * If not given, the client can assume that the access token will not expire.\n */\n expires_in_ms?: number;\n /**\n * A refresh token for the account.\n * This token can be used to obtain a new access token when it expires by calling the /refresh endpoint.\n */\n refresh_token?: string;\n /**\n * Optional client configuration provided by the server.\n * If present, clients SHOULD use the provided object to reconfigure themselves, optionally validating the URLs within.\n * This object takes the same form as the one returned from .well-known autodiscovery.\n */\n well_known?: IClientWellKnown;\n /**\n * The server_name of the homeserver on which the account has been registered.\n * @deprecated Clients should extract the server_name from user_id (by splitting at the first colon) if they require it.\n */\n home_server?: string;\n}\n\n/**\n * The result of a successful `m.login.token` issuance request as per https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv1loginget_token\n */\nexport interface LoginTokenPostResponse {\n /**\n * The token to use with `m.login.token` to authenticate.\n */\n login_token: string;\n /**\n * Expiration in milliseconds.\n */\n expires_in_ms: number;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,oBAAoB;;AAGlD;AACA;;AAEA;AACA;AACA;;AAOA;;AAEA;AACA;AACA;;AAeA,OAAO,IAAMC,4BAA4B,GAAG,IAAID,aAAa,CACzD,8BAA8B,EAC9B,iDACJ,CAAC;;AAED;AACA;AACA;;AASA,WAAYE,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAgBjC,WAAYC,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;;AAQrB;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;;AAiDA;;AAGA;AACA;AACA;AACA;;AAyCA;AACA;AACA","ignoreList":[]}
@@ -1,10 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.M_BEACON_INFO = exports.M_BEACON = void 0;
7
- var _NamespacedValue = require("../NamespacedValue");
8
1
  /*
9
2
  Copyright 2022 The Matrix.org Foundation C.I.C.
10
3
 
@@ -21,6 +14,7 @@ See the License for the specific language governing permissions and
21
14
  limitations under the License.
22
15
  */
23
16
 
17
+ import { UnstableValue } from "../NamespacedValue";
24
18
  /**
25
19
  * Beacon info and beacon event types as described in MSC3672
26
20
  * https://github.com/matrix-org/matrix-spec-proposals/pull/3672
@@ -67,8 +61,8 @@ limitations under the License.
67
61
  /**
68
62
  * Non-variable type for m.beacon_info event content
69
63
  */
70
- const M_BEACON_INFO = exports.M_BEACON_INFO = new _NamespacedValue.UnstableValue("m.beacon_info", "org.matrix.msc3672.beacon_info");
71
- const M_BEACON = exports.M_BEACON = new _NamespacedValue.UnstableValue("m.beacon", "org.matrix.msc3672.beacon");
64
+ export var M_BEACON_INFO = new UnstableValue("m.beacon_info", "org.matrix.msc3672.beacon_info");
65
+ export var M_BEACON = new UnstableValue("m.beacon", "org.matrix.msc3672.beacon");
72
66
 
73
67
  /**
74
68
  * m.beacon_info Event example from the spec
@@ -1 +1 @@
1
- {"version":3,"file":"beacon.js","names":["_NamespacedValue","require","M_BEACON_INFO","exports","UnstableValue","M_BEACON"],"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 { RelatesToRelationship, REFERENCE_RELATION } from \"./extensible_events\";\nimport { UnstableValue } from \"../NamespacedValue\";\nimport { MAssetEvent, MLocationEvent, MTimestampEvent } from \"./location\";\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":";;;;;;AAiBA,IAAAA,gBAAA,GAAAC,OAAA;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;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;AACO,MAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAIE,8BAAa,CAAC,eAAe,EAAE,gCAAgC,CAAC;AAC1F,MAAMC,QAAQ,GAAAF,OAAA,CAAAE,QAAA,GAAG,IAAID,8BAAa,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":["UnstableValue","M_BEACON_INFO","M_BEACON"],"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 { RelatesToRelationship, REFERENCE_RELATION } from \"./extensible_events\";\nimport { UnstableValue } from \"../NamespacedValue\";\nimport { MAssetEvent, MLocationEvent, MTimestampEvent } from \"./location\";\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,SAASA,aAAa,QAAQ,oBAAoB;AAGlD;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,IAAMC,aAAa,GAAG,IAAID,aAAa,CAAC,eAAe,EAAE,gCAAgC,CAAC;AACjG,OAAO,IAAME,QAAQ,GAAG,IAAIF,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,6 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=common.js.map
1
+ export {};
@@ -1,6 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=crypto.js.map
1
+ export {};
@@ -7,7 +7,6 @@ import { XOR } from "./common";
7
7
  import { ReactionEventContent, RoomMessageEventContent, StickerEventContent } from "./events";
8
8
  import { MCallAnswer, MCallBase, MCallCandidates, MCallHangupReject, MCallInviteNegotiate, MCallReplacesEvent, MCallSelectAnswer, SDPStreamMetadata, SDPStreamMetadataKey } from "../webrtc/callEventTypes";
9
9
  import { EncryptionKeysEventContent, ICallNotifyContent } from "../matrixrtc/types";
10
- import { EncryptedFile } from "./media";
11
10
  import { M_POLL_END, M_POLL_START, PollEndEventContent, PollStartEventContent } from "./polls";
12
11
  export declare enum EventType {
13
12
  RoomCanonicalAlias = "m.room.canonical_alias",
@@ -202,10 +201,6 @@ export declare const UNSIGNED_THREAD_ID_FIELD: UnstableValue<"thread_id", "org.m
202
201
  * @experimental
203
202
  */
204
203
  export declare const UNSIGNED_MEMBERSHIP_FIELD: UnstableValue<"membership", "io.element.msc4115.membership">;
205
- /**
206
- * @deprecated in favour of {@link EncryptedFile}
207
- */
208
- export type IEncryptedFile = EncryptedFile;
209
204
  /**
210
205
  * Mapped type from event type to content type for all specified non-state room events.
211
206
  */
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/@types/event.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,O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,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,sBAAsB,CAAC;IAC/C,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,uBAAuB,CAAC;IAEjD,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,GAAG,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;IAG9D,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACjD,CAAC,SAAS,CAAC,qBAAqB,CAAC,EAAE,GAAG,CAAC,yBAAyB,EAAE,oCAAoC,CAAC,CAAC;IAGxG,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAGpD,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,uBAAuB,CAAC;CACjD"}
@@ -1,12 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.UNSTABLE_MSC3089_TREE_SUBTYPE = exports.UNSTABLE_MSC3089_LEAF = exports.UNSTABLE_MSC3089_BRANCH = exports.UNSTABLE_MSC3088_PURPOSE = exports.UNSTABLE_MSC3088_ENABLED = exports.UNSTABLE_MSC2716_MARKER = exports.UNSTABLE_ELEMENT_FUNCTIONAL_USERS = exports.UNSIGNED_THREAD_ID_FIELD = exports.UNSIGNED_MEMBERSHIP_FIELD = exports.ToDeviceMessageId = exports.RoomType = exports.RoomCreateTypeField = exports.RelationType = exports.PUSHER_ENABLED = exports.PUSHER_DEVICE_ID = exports.MsgType = exports.MSC3912_RELATION_BASED_REDACTIONS_PROP = exports.LOCAL_NOTIFICATION_SETTINGS_PREFIX = exports.EventType = exports.EVENT_VISIBILITY_CHANGE_TYPE = void 0;
7
- var _NamespacedValue = require("../NamespacedValue");
8
- var _beacon = require("./beacon");
9
- var _polls = require("./polls");
10
1
  /*
11
2
  Copyright 2020 The Matrix.org Foundation C.I.C.
12
3
 
@@ -22,7 +13,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
13
  See the License for the specific language governing permissions and
23
14
  limitations under the License.
24
15
  */
25
- let EventType = exports.EventType = /*#__PURE__*/function (EventType) {
16
+
17
+ import { UnstableValue } from "../NamespacedValue";
18
+ import { M_BEACON, M_BEACON_INFO } from "./beacon";
19
+ import { M_POLL_END, M_POLL_START } from "./polls";
20
+ export var EventType = /*#__PURE__*/function (EventType) {
26
21
  EventType["RoomCanonicalAlias"] = "m.room.canonical_alias";
27
22
  EventType["RoomCreate"] = "m.room.create";
28
23
  EventType["RoomJoinRules"] = "m.room.join_rules";
@@ -90,14 +85,14 @@ let EventType = exports.EventType = /*#__PURE__*/function (EventType) {
90
85
  EventType["CallNotify"] = "org.matrix.msc4075.call.notify";
91
86
  return EventType;
92
87
  }({});
93
- let RelationType = exports.RelationType = /*#__PURE__*/function (RelationType) {
88
+ export var RelationType = /*#__PURE__*/function (RelationType) {
94
89
  RelationType["Annotation"] = "m.annotation";
95
90
  RelationType["Replace"] = "m.replace";
96
91
  RelationType["Reference"] = "m.reference";
97
92
  RelationType["Thread"] = "m.thread";
98
93
  return RelationType;
99
94
  }({});
100
- let MsgType = exports.MsgType = /*#__PURE__*/function (MsgType) {
95
+ export var MsgType = /*#__PURE__*/function (MsgType) {
101
96
  MsgType["Text"] = "m.text";
102
97
  MsgType["Emote"] = "m.emote";
103
98
  MsgType["Notice"] = "m.notice";
@@ -109,49 +104,49 @@ let MsgType = exports.MsgType = /*#__PURE__*/function (MsgType) {
109
104
  MsgType["KeyVerificationRequest"] = "m.key.verification.request";
110
105
  return MsgType;
111
106
  }({});
112
- const RoomCreateTypeField = exports.RoomCreateTypeField = "type";
113
- let RoomType = exports.RoomType = /*#__PURE__*/function (RoomType) {
107
+ export var RoomCreateTypeField = "type";
108
+ export var RoomType = /*#__PURE__*/function (RoomType) {
114
109
  RoomType["Space"] = "m.space";
115
110
  RoomType["UnstableCall"] = "org.matrix.msc3417.call";
116
111
  RoomType["ElementVideo"] = "io.element.video";
117
112
  return RoomType;
118
113
  }({});
119
- const ToDeviceMessageId = exports.ToDeviceMessageId = "org.matrix.msgid";
114
+ export var ToDeviceMessageId = "org.matrix.msgid";
120
115
 
121
116
  /**
122
117
  * Identifier for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)
123
118
  * room purpose. Note that this reference is UNSTABLE and subject to breaking changes,
124
119
  * including its eventual removal.
125
120
  */
126
- const UNSTABLE_MSC3088_PURPOSE = exports.UNSTABLE_MSC3088_PURPOSE = new _NamespacedValue.UnstableValue("m.room.purpose", "org.matrix.msc3088.purpose");
121
+ export var UNSTABLE_MSC3088_PURPOSE = new UnstableValue("m.room.purpose", "org.matrix.msc3088.purpose");
127
122
 
128
123
  /**
129
124
  * Enabled flag for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)
130
125
  * room purpose. Note that this reference is UNSTABLE and subject to breaking changes,
131
126
  * including its eventual removal.
132
127
  */
133
- const UNSTABLE_MSC3088_ENABLED = exports.UNSTABLE_MSC3088_ENABLED = new _NamespacedValue.UnstableValue("m.enabled", "org.matrix.msc3088.enabled");
128
+ export var UNSTABLE_MSC3088_ENABLED = new UnstableValue("m.enabled", "org.matrix.msc3088.enabled");
134
129
 
135
130
  /**
136
131
  * Subtype for an [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.
137
132
  * Note that this reference is UNSTABLE and subject to breaking changes, including its
138
133
  * eventual removal.
139
134
  */
140
- const UNSTABLE_MSC3089_TREE_SUBTYPE = exports.UNSTABLE_MSC3089_TREE_SUBTYPE = new _NamespacedValue.UnstableValue("m.data_tree", "org.matrix.msc3089.data_tree");
135
+ export var UNSTABLE_MSC3089_TREE_SUBTYPE = new UnstableValue("m.data_tree", "org.matrix.msc3089.data_tree");
141
136
 
142
137
  /**
143
138
  * Leaf type for an event in a [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.
144
139
  * Note that this reference is UNSTABLE and subject to breaking changes, including its
145
140
  * eventual removal.
146
141
  */
147
- const UNSTABLE_MSC3089_LEAF = exports.UNSTABLE_MSC3089_LEAF = new _NamespacedValue.UnstableValue("m.leaf", "org.matrix.msc3089.leaf");
142
+ export var UNSTABLE_MSC3089_LEAF = new UnstableValue("m.leaf", "org.matrix.msc3089.leaf");
148
143
 
149
144
  /**
150
145
  * Branch (Leaf Reference) type for the index approach in a
151
146
  * [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room. Note that this reference is
152
147
  * UNSTABLE and subject to breaking changes, including its eventual removal.
153
148
  */
154
- const UNSTABLE_MSC3089_BRANCH = exports.UNSTABLE_MSC3089_BRANCH = new _NamespacedValue.UnstableValue("m.branch", "org.matrix.msc3089.branch");
149
+ export var UNSTABLE_MSC3089_BRANCH = new UnstableValue("m.branch", "org.matrix.msc3089.branch");
155
150
 
156
151
  /**
157
152
  * Marker event type to point back at imported historical content in a room. See
@@ -159,13 +154,13 @@ const UNSTABLE_MSC3089_BRANCH = exports.UNSTABLE_MSC3089_BRANCH = new _Namespace
159
154
  * Note that this reference is UNSTABLE and subject to breaking changes,
160
155
  * including its eventual removal.
161
156
  */
162
- const UNSTABLE_MSC2716_MARKER = exports.UNSTABLE_MSC2716_MARKER = new _NamespacedValue.UnstableValue("m.room.marker", "org.matrix.msc2716.marker");
157
+ export var UNSTABLE_MSC2716_MARKER = new UnstableValue("m.room.marker", "org.matrix.msc2716.marker");
163
158
 
164
159
  /**
165
160
  * Name of the request property for relation based redactions.
166
161
  * {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}
167
162
  */
168
- const MSC3912_RELATION_BASED_REDACTIONS_PROP = exports.MSC3912_RELATION_BASED_REDACTIONS_PROP = new _NamespacedValue.UnstableValue("with_rel_types", "org.matrix.msc3912.with_relations");
163
+ export var MSC3912_RELATION_BASED_REDACTIONS_PROP = new UnstableValue("with_rel_types", "org.matrix.msc3912.with_relations");
169
164
 
170
165
  /**
171
166
  * Functional members type for declaring a purpose of room members (e.g. helpful bots).
@@ -189,7 +184,7 @@ const MSC3912_RELATION_BASED_REDACTIONS_PROP = exports.MSC3912_RELATION_BASED_RE
189
184
  * }
190
185
  * ```
191
186
  */
192
- const UNSTABLE_ELEMENT_FUNCTIONAL_USERS = exports.UNSTABLE_ELEMENT_FUNCTIONAL_USERS = new _NamespacedValue.UnstableValue("io.element.functional_members", "io.element.functional_members");
187
+ export var UNSTABLE_ELEMENT_FUNCTIONAL_USERS = new UnstableValue("io.element.functional_members", "io.element.functional_members");
193
188
 
194
189
  /**
195
190
  * A type of message that affects visibility of a message,
@@ -197,46 +192,42 @@ const UNSTABLE_ELEMENT_FUNCTIONAL_USERS = exports.UNSTABLE_ELEMENT_FUNCTIONAL_US
197
192
  *
198
193
  * @experimental
199
194
  */
200
- const EVENT_VISIBILITY_CHANGE_TYPE = exports.EVENT_VISIBILITY_CHANGE_TYPE = new _NamespacedValue.UnstableValue("m.visibility", "org.matrix.msc3531.visibility");
195
+ export var EVENT_VISIBILITY_CHANGE_TYPE = new UnstableValue("m.visibility", "org.matrix.msc3531.visibility");
201
196
 
202
197
  /**
203
198
  * https://github.com/matrix-org/matrix-doc/pull/3881
204
199
  *
205
200
  * @experimental
206
201
  */
207
- const PUSHER_ENABLED = exports.PUSHER_ENABLED = new _NamespacedValue.UnstableValue("enabled", "org.matrix.msc3881.enabled");
202
+ export var PUSHER_ENABLED = new UnstableValue("enabled", "org.matrix.msc3881.enabled");
208
203
 
209
204
  /**
210
205
  * https://github.com/matrix-org/matrix-doc/pull/3881
211
206
  *
212
207
  * @experimental
213
208
  */
214
- const PUSHER_DEVICE_ID = exports.PUSHER_DEVICE_ID = new _NamespacedValue.UnstableValue("device_id", "org.matrix.msc3881.device_id");
209
+ export var PUSHER_DEVICE_ID = new UnstableValue("device_id", "org.matrix.msc3881.device_id");
215
210
 
216
211
  /**
217
212
  * https://github.com/matrix-org/matrix-doc/pull/3890
218
213
  *
219
214
  * @experimental
220
215
  */
221
- const LOCAL_NOTIFICATION_SETTINGS_PREFIX = exports.LOCAL_NOTIFICATION_SETTINGS_PREFIX = new _NamespacedValue.UnstableValue("m.local_notification_settings", "org.matrix.msc3890.local_notification_settings");
216
+ export var LOCAL_NOTIFICATION_SETTINGS_PREFIX = new UnstableValue("m.local_notification_settings", "org.matrix.msc3890.local_notification_settings");
222
217
 
223
218
  /**
224
219
  * https://github.com/matrix-org/matrix-doc/pull/4023
225
220
  *
226
221
  * @experimental
227
222
  */
228
- const UNSIGNED_THREAD_ID_FIELD = exports.UNSIGNED_THREAD_ID_FIELD = new _NamespacedValue.UnstableValue("thread_id", "org.matrix.msc4023.thread_id");
223
+ export var UNSIGNED_THREAD_ID_FIELD = new UnstableValue("thread_id", "org.matrix.msc4023.thread_id");
229
224
 
230
225
  /**
231
226
  * https://github.com/matrix-org/matrix-spec-proposals/pull/4115
232
227
  *
233
228
  * @experimental
234
229
  */
235
- const UNSIGNED_MEMBERSHIP_FIELD = exports.UNSIGNED_MEMBERSHIP_FIELD = new _NamespacedValue.UnstableValue("membership", "io.element.msc4115.membership");
236
-
237
- /**
238
- * @deprecated in favour of {@link EncryptedFile}
239
- */
230
+ export var UNSIGNED_MEMBERSHIP_FIELD = new UnstableValue("membership", "io.element.msc4115.membership");
240
231
 
241
232
  /**
242
233
  * Mapped type from event type to content type for all specified non-state room events.