matrix-js-sdk 36.2.0 → 37.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 (806) hide show
  1. package/README.md +3 -3
  2. package/git-revision.txt +1 -1
  3. package/lib/@types/auth.d.ts +1 -1
  4. package/lib/@types/auth.d.ts.map +1 -1
  5. package/lib/@types/auth.js.map +1 -1
  6. package/lib/@types/beacon.d.ts +2 -2
  7. package/lib/@types/beacon.d.ts.map +1 -1
  8. package/lib/@types/beacon.js.map +1 -1
  9. package/lib/@types/common.d.ts +1 -0
  10. package/lib/@types/common.d.ts.map +1 -1
  11. package/lib/@types/common.js.map +1 -1
  12. package/lib/@types/crypto.d.ts +1 -5
  13. package/lib/@types/crypto.d.ts.map +1 -1
  14. package/lib/@types/crypto.js.map +1 -1
  15. package/lib/@types/event.d.ts +22 -20
  16. package/lib/@types/event.d.ts.map +1 -1
  17. package/lib/@types/event.js +0 -3
  18. package/lib/@types/event.js.map +1 -1
  19. package/lib/@types/events.d.ts +3 -3
  20. package/lib/@types/events.d.ts.map +1 -1
  21. package/lib/@types/events.js.map +1 -1
  22. package/lib/@types/extensible_events.d.ts +3 -3
  23. package/lib/@types/extensible_events.d.ts.map +1 -1
  24. package/lib/@types/extensible_events.js.map +1 -1
  25. package/lib/@types/global.d.js.map +1 -1
  26. package/lib/@types/location.d.ts +2 -2
  27. package/lib/@types/location.d.ts.map +1 -1
  28. package/lib/@types/location.js +0 -1
  29. package/lib/@types/location.js.map +1 -1
  30. package/lib/@types/media.d.ts +1 -1
  31. package/lib/@types/media.d.ts.map +1 -1
  32. package/lib/@types/media.js.map +1 -1
  33. package/lib/@types/polls.d.ts +5 -4
  34. package/lib/@types/polls.d.ts.map +1 -1
  35. package/lib/@types/polls.js.map +1 -1
  36. package/lib/@types/registration.d.ts +1 -1
  37. package/lib/@types/registration.d.ts.map +1 -1
  38. package/lib/@types/registration.js.map +1 -1
  39. package/lib/@types/requests.d.ts +8 -8
  40. package/lib/@types/requests.d.ts.map +1 -1
  41. package/lib/@types/requests.js.map +1 -1
  42. package/lib/@types/search.d.ts +3 -3
  43. package/lib/@types/search.d.ts.map +1 -1
  44. package/lib/@types/search.js.map +1 -1
  45. package/lib/@types/spaces.d.ts +3 -3
  46. package/lib/@types/spaces.d.ts.map +1 -1
  47. package/lib/@types/spaces.js.map +1 -1
  48. package/lib/@types/state_events.d.ts +4 -4
  49. package/lib/@types/state_events.d.ts.map +1 -1
  50. package/lib/@types/state_events.js.map +1 -1
  51. package/lib/@types/synapse.d.ts +1 -1
  52. package/lib/@types/synapse.d.ts.map +1 -1
  53. package/lib/@types/synapse.js.map +1 -1
  54. package/lib/@types/topic.d.ts +1 -1
  55. package/lib/@types/topic.d.ts.map +1 -1
  56. package/lib/@types/topic.js.map +1 -1
  57. package/lib/@types/uia.d.ts +3 -2
  58. package/lib/@types/uia.d.ts.map +1 -1
  59. package/lib/@types/uia.js.map +1 -1
  60. package/lib/NamespacedValue.d.ts +1 -1
  61. package/lib/NamespacedValue.d.ts.map +1 -1
  62. package/lib/NamespacedValue.js.map +1 -1
  63. package/lib/ReEmitter.d.ts +2 -2
  64. package/lib/ReEmitter.d.ts.map +1 -1
  65. package/lib/ReEmitter.js.map +1 -1
  66. package/lib/ToDeviceMessageQueue.d.ts +2 -2
  67. package/lib/ToDeviceMessageQueue.d.ts.map +1 -1
  68. package/lib/ToDeviceMessageQueue.js.map +1 -1
  69. package/lib/autodiscovery.d.ts +1 -1
  70. package/lib/autodiscovery.d.ts.map +1 -1
  71. package/lib/autodiscovery.js +1 -2
  72. package/lib/autodiscovery.js.map +1 -1
  73. package/lib/client.d.ts +131 -1122
  74. package/lib/client.d.ts.map +1 -1
  75. package/lib/client.js +497 -2350
  76. package/lib/client.js.map +1 -1
  77. package/lib/common-crypto/CryptoBackend.d.ts +5 -47
  78. package/lib/common-crypto/CryptoBackend.d.ts.map +1 -1
  79. package/lib/common-crypto/CryptoBackend.js +0 -4
  80. package/lib/common-crypto/CryptoBackend.js.map +1 -1
  81. package/lib/content-helpers.d.ts +4 -4
  82. package/lib/content-helpers.d.ts.map +1 -1
  83. package/lib/content-helpers.js.map +1 -1
  84. package/lib/crypto/store/base.d.ts +106 -57
  85. package/lib/crypto/store/base.d.ts.map +1 -1
  86. package/lib/crypto/store/base.js +67 -0
  87. package/lib/crypto/store/base.js.map +1 -1
  88. package/lib/crypto/store/indexeddb-crypto-store-backend.d.ts +3 -96
  89. package/lib/crypto/store/indexeddb-crypto-store-backend.d.ts.map +1 -1
  90. package/lib/crypto/store/indexeddb-crypto-store-backend.js +12 -554
  91. package/lib/crypto/store/indexeddb-crypto-store-backend.js.map +1 -1
  92. package/lib/crypto/store/indexeddb-crypto-store.d.ts +3 -184
  93. package/lib/crypto/store/indexeddb-crypto-store.d.ts.map +1 -1
  94. package/lib/crypto/store/indexeddb-crypto-store.js +0 -254
  95. package/lib/crypto/store/indexeddb-crypto-store.js.map +1 -1
  96. package/lib/crypto/store/localStorage-crypto-store.d.ts +2 -19
  97. package/lib/crypto/store/localStorage-crypto-store.d.ts.map +1 -1
  98. package/lib/crypto/store/localStorage-crypto-store.js +20 -179
  99. package/lib/crypto/store/localStorage-crypto-store.js.map +1 -1
  100. package/lib/crypto/store/memory-crypto-store.d.ts +2 -100
  101. package/lib/crypto/store/memory-crypto-store.d.ts.map +1 -1
  102. package/lib/crypto/store/memory-crypto-store.js +13 -324
  103. package/lib/crypto/store/memory-crypto-store.js.map +1 -1
  104. package/lib/crypto-api/CryptoEventHandlerMap.d.ts +6 -5
  105. package/lib/crypto-api/CryptoEventHandlerMap.d.ts.map +1 -1
  106. package/lib/crypto-api/CryptoEventHandlerMap.js +1 -22
  107. package/lib/crypto-api/CryptoEventHandlerMap.js.map +1 -1
  108. package/lib/crypto-api/index.d.ts +10 -12
  109. package/lib/crypto-api/index.d.ts.map +1 -1
  110. package/lib/crypto-api/index.js +1 -1
  111. package/lib/crypto-api/index.js.map +1 -1
  112. package/lib/crypto-api/keybackup.d.ts +4 -5
  113. package/lib/crypto-api/keybackup.d.ts.map +1 -1
  114. package/lib/crypto-api/keybackup.js.map +1 -1
  115. package/lib/crypto-api/verification.d.ts +2 -2
  116. package/lib/crypto-api/verification.d.ts.map +1 -1
  117. package/lib/crypto-api/verification.js.map +1 -1
  118. package/lib/embedded.d.ts +20 -11
  119. package/lib/embedded.d.ts.map +1 -1
  120. package/lib/embedded.js +3 -4
  121. package/lib/embedded.js.map +1 -1
  122. package/lib/event-mapper.d.ts +2 -2
  123. package/lib/event-mapper.d.ts.map +1 -1
  124. package/lib/event-mapper.js.map +1 -1
  125. package/lib/extensible_events_v1/ExtensibleEvent.d.ts +1 -1
  126. package/lib/extensible_events_v1/ExtensibleEvent.d.ts.map +1 -1
  127. package/lib/extensible_events_v1/ExtensibleEvent.js.map +1 -1
  128. package/lib/extensible_events_v1/MessageEvent.d.ts +2 -2
  129. package/lib/extensible_events_v1/MessageEvent.d.ts.map +1 -1
  130. package/lib/extensible_events_v1/MessageEvent.js.map +1 -1
  131. package/lib/extensible_events_v1/PollEndEvent.d.ts +2 -2
  132. package/lib/extensible_events_v1/PollEndEvent.d.ts.map +1 -1
  133. package/lib/extensible_events_v1/PollEndEvent.js.map +1 -1
  134. package/lib/extensible_events_v1/PollResponseEvent.d.ts +3 -3
  135. package/lib/extensible_events_v1/PollResponseEvent.d.ts.map +1 -1
  136. package/lib/extensible_events_v1/PollResponseEvent.js.map +1 -1
  137. package/lib/extensible_events_v1/PollStartEvent.d.ts +2 -2
  138. package/lib/extensible_events_v1/PollStartEvent.d.ts.map +1 -1
  139. package/lib/extensible_events_v1/PollStartEvent.js.map +1 -1
  140. package/lib/extensible_events_v1/utilities.d.ts +1 -1
  141. package/lib/extensible_events_v1/utilities.d.ts.map +1 -1
  142. package/lib/extensible_events_v1/utilities.js.map +1 -1
  143. package/lib/feature.d.ts +1 -1
  144. package/lib/feature.d.ts.map +1 -1
  145. package/lib/feature.js.map +1 -1
  146. package/lib/filter-component.d.ts +2 -2
  147. package/lib/filter-component.d.ts.map +1 -1
  148. package/lib/filter-component.js.map +1 -1
  149. package/lib/filter.d.ts +3 -3
  150. package/lib/filter.d.ts.map +1 -1
  151. package/lib/filter.js.map +1 -1
  152. package/lib/http-api/errors.d.ts +3 -3
  153. package/lib/http-api/errors.d.ts.map +1 -1
  154. package/lib/http-api/errors.js.map +1 -1
  155. package/lib/http-api/fetch.d.ts +4 -4
  156. package/lib/http-api/fetch.d.ts.map +1 -1
  157. package/lib/http-api/fetch.js.map +1 -1
  158. package/lib/http-api/index.d.ts +1 -1
  159. package/lib/http-api/index.d.ts.map +1 -1
  160. package/lib/http-api/index.js.map +1 -1
  161. package/lib/http-api/interface.d.ts +2 -2
  162. package/lib/http-api/interface.d.ts.map +1 -1
  163. package/lib/http-api/interface.js.map +1 -1
  164. package/lib/http-api/utils.js.map +1 -1
  165. package/lib/interactive-auth.d.ts +3 -4
  166. package/lib/interactive-auth.d.ts.map +1 -1
  167. package/lib/interactive-auth.js +2 -3
  168. package/lib/interactive-auth.js.map +1 -1
  169. package/lib/logger.d.ts +13 -13
  170. package/lib/logger.d.ts.map +1 -1
  171. package/lib/logger.js +15 -17
  172. package/lib/logger.js.map +1 -1
  173. package/lib/matrix.d.ts +4 -10
  174. package/lib/matrix.d.ts.map +1 -1
  175. package/lib/matrix.js +0 -7
  176. package/lib/matrix.js.map +1 -1
  177. package/lib/matrixrtc/CallMembership.d.ts +2 -2
  178. package/lib/matrixrtc/CallMembership.d.ts.map +1 -1
  179. package/lib/matrixrtc/CallMembership.js.map +1 -1
  180. package/lib/matrixrtc/EncryptionManager.d.ts +4 -4
  181. package/lib/matrixrtc/EncryptionManager.d.ts.map +1 -1
  182. package/lib/matrixrtc/EncryptionManager.js.map +1 -1
  183. package/lib/matrixrtc/LivekitFocus.d.ts +1 -1
  184. package/lib/matrixrtc/LivekitFocus.d.ts.map +1 -1
  185. package/lib/matrixrtc/LivekitFocus.js.map +1 -1
  186. package/lib/matrixrtc/MatrixRTCSession.d.ts +5 -5
  187. package/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
  188. package/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
  189. package/lib/matrixrtc/MatrixRTCSessionManager.d.ts +2 -2
  190. package/lib/matrixrtc/MatrixRTCSessionManager.d.ts.map +1 -1
  191. package/lib/matrixrtc/MatrixRTCSessionManager.js.map +1 -1
  192. package/lib/matrixrtc/MembershipManager.d.ts +4 -4
  193. package/lib/matrixrtc/MembershipManager.d.ts.map +1 -1
  194. package/lib/matrixrtc/MembershipManager.js.map +1 -1
  195. package/lib/matrixrtc/types.d.ts +1 -1
  196. package/lib/matrixrtc/types.d.ts.map +1 -1
  197. package/lib/matrixrtc/types.js.map +1 -1
  198. package/lib/models/MSC3089Branch.d.ts +5 -5
  199. package/lib/models/MSC3089Branch.d.ts.map +1 -1
  200. package/lib/models/MSC3089Branch.js.map +1 -1
  201. package/lib/models/MSC3089TreeSpace.d.ts +7 -6
  202. package/lib/models/MSC3089TreeSpace.d.ts.map +1 -1
  203. package/lib/models/MSC3089TreeSpace.js +2 -3
  204. package/lib/models/MSC3089TreeSpace.js.map +1 -1
  205. package/lib/models/beacon.d.ts +2 -2
  206. package/lib/models/beacon.d.ts.map +1 -1
  207. package/lib/models/beacon.js.map +1 -1
  208. package/lib/models/compare-event-ordering.d.ts +1 -1
  209. package/lib/models/compare-event-ordering.d.ts.map +1 -1
  210. package/lib/models/compare-event-ordering.js.map +1 -1
  211. package/lib/models/device.d.ts +1 -1
  212. package/lib/models/device.js +1 -1
  213. package/lib/models/device.js.map +1 -1
  214. package/lib/models/event-context.d.ts +1 -1
  215. package/lib/models/event-context.d.ts.map +1 -1
  216. package/lib/models/event-context.js.map +1 -1
  217. package/lib/models/event-timeline-set.d.ts +7 -7
  218. package/lib/models/event-timeline-set.d.ts.map +1 -1
  219. package/lib/models/event-timeline-set.js.map +1 -1
  220. package/lib/models/event-timeline.d.ts +4 -4
  221. package/lib/models/event-timeline.d.ts.map +1 -1
  222. package/lib/models/event-timeline.js.map +1 -1
  223. package/lib/models/event.d.ts +15 -39
  224. package/lib/models/event.d.ts.map +1 -1
  225. package/lib/models/event.js +1 -36
  226. package/lib/models/event.js.map +1 -1
  227. package/lib/models/invites-ignorer.d.ts +3 -3
  228. package/lib/models/invites-ignorer.d.ts.map +1 -1
  229. package/lib/models/invites-ignorer.js.map +1 -1
  230. package/lib/models/poll.d.ts +4 -4
  231. package/lib/models/poll.d.ts.map +1 -1
  232. package/lib/models/poll.js.map +1 -1
  233. package/lib/models/read-receipt.d.ts +3 -3
  234. package/lib/models/read-receipt.d.ts.map +1 -1
  235. package/lib/models/read-receipt.js.map +1 -1
  236. package/lib/models/related-relations.d.ts +3 -3
  237. package/lib/models/related-relations.d.ts.map +1 -1
  238. package/lib/models/related-relations.js.map +1 -1
  239. package/lib/models/relations-container.d.ts +5 -5
  240. package/lib/models/relations-container.d.ts.map +1 -1
  241. package/lib/models/relations-container.js.map +1 -1
  242. package/lib/models/relations.d.ts +2 -2
  243. package/lib/models/relations.d.ts.map +1 -1
  244. package/lib/models/relations.js.map +1 -1
  245. package/lib/models/room-member.d.ts +4 -4
  246. package/lib/models/room-member.d.ts.map +1 -1
  247. package/lib/models/room-member.js.map +1 -1
  248. package/lib/models/room-receipts.d.ts +2 -2
  249. package/lib/models/room-receipts.d.ts.map +1 -1
  250. package/lib/models/room-receipts.js.map +1 -1
  251. package/lib/models/room-state.d.ts +3 -3
  252. package/lib/models/room-state.d.ts.map +1 -1
  253. package/lib/models/room-state.js.map +1 -1
  254. package/lib/models/room.d.ts +10 -10
  255. package/lib/models/room.d.ts.map +1 -1
  256. package/lib/models/room.js.map +1 -1
  257. package/lib/models/search-result.d.ts +2 -2
  258. package/lib/models/search-result.d.ts.map +1 -1
  259. package/lib/models/search-result.js.map +1 -1
  260. package/lib/models/thread.d.ts +6 -6
  261. package/lib/models/thread.d.ts.map +1 -1
  262. package/lib/models/thread.js +2 -4
  263. package/lib/models/thread.js.map +1 -1
  264. package/lib/models/user.d.ts +2 -2
  265. package/lib/models/user.d.ts.map +1 -1
  266. package/lib/models/user.js.map +1 -1
  267. package/lib/oidc/authorize.d.ts +2 -2
  268. package/lib/oidc/authorize.d.ts.map +1 -1
  269. package/lib/oidc/authorize.js.map +1 -1
  270. package/lib/oidc/discovery.d.ts +1 -1
  271. package/lib/oidc/discovery.d.ts.map +1 -1
  272. package/lib/oidc/discovery.js.map +1 -1
  273. package/lib/oidc/index.d.ts +1 -1
  274. package/lib/oidc/index.d.ts.map +1 -1
  275. package/lib/oidc/index.js.map +1 -1
  276. package/lib/oidc/register.d.ts +2 -2
  277. package/lib/oidc/register.d.ts.map +1 -1
  278. package/lib/oidc/register.js.map +1 -1
  279. package/lib/oidc/tokenRefresher.d.ts +2 -2
  280. package/lib/oidc/tokenRefresher.d.ts.map +1 -1
  281. package/lib/oidc/tokenRefresher.js.map +1 -1
  282. package/lib/oidc/validate.d.ts +1 -1
  283. package/lib/oidc/validate.d.ts.map +1 -1
  284. package/lib/oidc/validate.js.map +1 -1
  285. package/lib/pushprocessor.d.ts +3 -3
  286. package/lib/pushprocessor.d.ts.map +1 -1
  287. package/lib/pushprocessor.js.map +1 -1
  288. package/lib/receipt-accumulator.d.ts +1 -1
  289. package/lib/receipt-accumulator.d.ts.map +1 -1
  290. package/lib/receipt-accumulator.js.map +1 -1
  291. package/lib/rendezvous/MSC4108SignInWithQR.d.ts +4 -4
  292. package/lib/rendezvous/MSC4108SignInWithQR.d.ts.map +1 -1
  293. package/lib/rendezvous/MSC4108SignInWithQR.js.map +1 -1
  294. package/lib/rendezvous/RendezvousChannel.d.ts +1 -1
  295. package/lib/rendezvous/RendezvousChannel.d.ts.map +1 -1
  296. package/lib/rendezvous/RendezvousChannel.js.map +1 -1
  297. package/lib/rendezvous/RendezvousCode.d.ts +1 -1
  298. package/lib/rendezvous/RendezvousCode.d.ts.map +1 -1
  299. package/lib/rendezvous/RendezvousCode.js.map +1 -1
  300. package/lib/rendezvous/RendezvousError.d.ts +1 -1
  301. package/lib/rendezvous/RendezvousError.d.ts.map +1 -1
  302. package/lib/rendezvous/RendezvousError.js.map +1 -1
  303. package/lib/rendezvous/RendezvousTransport.d.ts +1 -1
  304. package/lib/rendezvous/RendezvousTransport.d.ts.map +1 -1
  305. package/lib/rendezvous/RendezvousTransport.js.map +1 -1
  306. package/lib/rendezvous/channels/MSC4108SecureChannel.d.ts +3 -3
  307. package/lib/rendezvous/channels/MSC4108SecureChannel.d.ts.map +1 -1
  308. package/lib/rendezvous/channels/MSC4108SecureChannel.js.map +1 -1
  309. package/lib/rendezvous/transports/MSC4108RendezvousSession.d.ts +2 -2
  310. package/lib/rendezvous/transports/MSC4108RendezvousSession.d.ts.map +1 -1
  311. package/lib/rendezvous/transports/MSC4108RendezvousSession.js.map +1 -1
  312. package/lib/room-hierarchy.d.ts +2 -2
  313. package/lib/room-hierarchy.d.ts.map +1 -1
  314. package/lib/room-hierarchy.js.map +1 -1
  315. package/lib/rust-crypto/CrossSigningIdentity.d.ts +4 -4
  316. package/lib/rust-crypto/CrossSigningIdentity.d.ts.map +1 -1
  317. package/lib/rust-crypto/CrossSigningIdentity.js.map +1 -1
  318. package/lib/rust-crypto/DehydratedDeviceManager.d.ts +5 -5
  319. package/lib/rust-crypto/DehydratedDeviceManager.d.ts.map +1 -1
  320. package/lib/rust-crypto/DehydratedDeviceManager.js.map +1 -1
  321. package/lib/rust-crypto/KeyClaimManager.d.ts +3 -3
  322. package/lib/rust-crypto/KeyClaimManager.d.ts.map +1 -1
  323. package/lib/rust-crypto/KeyClaimManager.js.map +1 -1
  324. package/lib/rust-crypto/OutgoingRequestProcessor.d.ts +3 -3
  325. package/lib/rust-crypto/OutgoingRequestProcessor.d.ts.map +1 -1
  326. package/lib/rust-crypto/OutgoingRequestProcessor.js.map +1 -1
  327. package/lib/rust-crypto/OutgoingRequestsManager.d.ts +3 -3
  328. package/lib/rust-crypto/OutgoingRequestsManager.d.ts.map +1 -1
  329. package/lib/rust-crypto/OutgoingRequestsManager.js.map +1 -1
  330. package/lib/rust-crypto/PerSessionKeyBackupDownloader.d.ts +5 -5
  331. package/lib/rust-crypto/PerSessionKeyBackupDownloader.d.ts.map +1 -1
  332. package/lib/rust-crypto/PerSessionKeyBackupDownloader.js +1 -2
  333. package/lib/rust-crypto/PerSessionKeyBackupDownloader.js.map +1 -1
  334. package/lib/rust-crypto/RoomEncryptor.d.ts +7 -7
  335. package/lib/rust-crypto/RoomEncryptor.d.ts.map +1 -1
  336. package/lib/rust-crypto/RoomEncryptor.js.map +1 -1
  337. package/lib/rust-crypto/backup.d.ts +9 -9
  338. package/lib/rust-crypto/backup.d.ts.map +1 -1
  339. package/lib/rust-crypto/backup.js +19 -11
  340. package/lib/rust-crypto/backup.js.map +1 -1
  341. package/lib/rust-crypto/device-converter.d.ts +1 -1
  342. package/lib/rust-crypto/device-converter.d.ts.map +1 -1
  343. package/lib/rust-crypto/device-converter.js.map +1 -1
  344. package/lib/rust-crypto/index.d.ts +5 -5
  345. package/lib/rust-crypto/index.d.ts.map +1 -1
  346. package/lib/rust-crypto/index.js.map +1 -1
  347. package/lib/rust-crypto/libolm_migration.d.ts +4 -4
  348. package/lib/rust-crypto/libolm_migration.d.ts.map +1 -1
  349. package/lib/rust-crypto/libolm_migration.js.map +1 -1
  350. package/lib/rust-crypto/rust-crypto.d.ts +10 -44
  351. package/lib/rust-crypto/rust-crypto.d.ts.map +1 -1
  352. package/lib/rust-crypto/rust-crypto.js +11 -71
  353. package/lib/rust-crypto/rust-crypto.js.map +1 -1
  354. package/lib/rust-crypto/secret-storage.d.ts +1 -1
  355. package/lib/rust-crypto/secret-storage.d.ts.map +1 -1
  356. package/lib/rust-crypto/secret-storage.js.map +1 -1
  357. package/lib/rust-crypto/verification.d.ts +4 -4
  358. package/lib/rust-crypto/verification.d.ts.map +1 -1
  359. package/lib/rust-crypto/verification.js.map +1 -1
  360. package/lib/scheduler.d.ts +3 -3
  361. package/lib/scheduler.d.ts.map +1 -1
  362. package/lib/scheduler.js.map +1 -1
  363. package/lib/secret-storage.d.ts +14 -17
  364. package/lib/secret-storage.d.ts.map +1 -1
  365. package/lib/secret-storage.js +6 -9
  366. package/lib/secret-storage.js.map +1 -1
  367. package/lib/serverCapabilities.d.ts +1 -1
  368. package/lib/serverCapabilities.d.ts.map +1 -1
  369. package/lib/serverCapabilities.js.map +1 -1
  370. package/lib/service-types.js +1 -1
  371. package/lib/service-types.js.map +1 -1
  372. package/lib/sliding-sync-sdk.d.ts +4 -4
  373. package/lib/sliding-sync-sdk.d.ts.map +1 -1
  374. package/lib/sliding-sync-sdk.js.map +1 -1
  375. package/lib/sliding-sync.d.ts +3 -3
  376. package/lib/sliding-sync.d.ts.map +1 -1
  377. package/lib/sliding-sync.js.map +1 -1
  378. package/lib/store/index.d.ts +11 -11
  379. package/lib/store/index.d.ts.map +1 -1
  380. package/lib/store/index.js.map +1 -1
  381. package/lib/store/indexeddb-backend.d.ts +3 -3
  382. package/lib/store/indexeddb-backend.d.ts.map +1 -1
  383. package/lib/store/indexeddb-backend.js.map +1 -1
  384. package/lib/store/indexeddb-local-backend.d.ts +5 -5
  385. package/lib/store/indexeddb-local-backend.d.ts.map +1 -1
  386. package/lib/store/indexeddb-local-backend.js.map +1 -1
  387. package/lib/store/indexeddb-remote-backend.d.ts +5 -5
  388. package/lib/store/indexeddb-remote-backend.d.ts.map +1 -1
  389. package/lib/store/indexeddb-remote-backend.js.map +1 -1
  390. package/lib/store/indexeddb.d.ts +9 -9
  391. package/lib/store/indexeddb.d.ts.map +1 -1
  392. package/lib/store/indexeddb.js.map +1 -1
  393. package/lib/store/memory.d.ts +11 -11
  394. package/lib/store/memory.d.ts.map +1 -1
  395. package/lib/store/memory.js.map +1 -1
  396. package/lib/store/stub.d.ts +11 -11
  397. package/lib/store/stub.d.ts.map +1 -1
  398. package/lib/store/stub.js.map +1 -1
  399. package/lib/sync-accumulator.d.ts +3 -3
  400. package/lib/sync-accumulator.d.ts.map +1 -1
  401. package/lib/sync-accumulator.js.map +1 -1
  402. package/lib/sync.d.ts +2 -9
  403. package/lib/sync.d.ts.map +1 -1
  404. package/lib/sync.js +0 -32
  405. package/lib/sync.js.map +1 -1
  406. package/lib/testing.d.ts +3 -3
  407. package/lib/testing.d.ts.map +1 -1
  408. package/lib/testing.js.map +1 -1
  409. package/lib/thread-utils.d.ts +1 -1
  410. package/lib/thread-utils.d.ts.map +1 -1
  411. package/lib/thread-utils.js.map +1 -1
  412. package/lib/timeline-window.d.ts +4 -4
  413. package/lib/timeline-window.d.ts.map +1 -1
  414. package/lib/timeline-window.js.map +1 -1
  415. package/lib/utils/decryptAESSecretStorageItem.d.ts +1 -1
  416. package/lib/utils/decryptAESSecretStorageItem.d.ts.map +1 -1
  417. package/lib/utils/decryptAESSecretStorageItem.js.map +1 -1
  418. package/lib/utils/encryptAESSecretStorageItem.d.ts +1 -1
  419. package/lib/utils/encryptAESSecretStorageItem.d.ts.map +1 -1
  420. package/lib/utils/encryptAESSecretStorageItem.js.map +1 -1
  421. package/lib/utils.d.ts +3 -3
  422. package/lib/utils.d.ts.map +1 -1
  423. package/lib/utils.js.map +1 -1
  424. package/lib/webrtc/call.d.ts +8 -8
  425. package/lib/webrtc/call.d.ts.map +1 -1
  426. package/lib/webrtc/call.js +14 -22
  427. package/lib/webrtc/call.js.map +1 -1
  428. package/lib/webrtc/callEventHandler.d.ts +3 -3
  429. package/lib/webrtc/callEventHandler.d.ts.map +1 -1
  430. package/lib/webrtc/callEventHandler.js.map +1 -1
  431. package/lib/webrtc/callEventTypes.d.ts +1 -1
  432. package/lib/webrtc/callEventTypes.d.ts.map +1 -1
  433. package/lib/webrtc/callEventTypes.js.map +1 -1
  434. package/lib/webrtc/callFeed.d.ts +3 -3
  435. package/lib/webrtc/callFeed.d.ts.map +1 -1
  436. package/lib/webrtc/callFeed.js.map +1 -1
  437. package/lib/webrtc/groupCall.d.ts +6 -6
  438. package/lib/webrtc/groupCall.d.ts.map +1 -1
  439. package/lib/webrtc/groupCall.js.map +1 -1
  440. package/lib/webrtc/groupCallEventHandler.d.ts +2 -2
  441. package/lib/webrtc/groupCallEventHandler.d.ts.map +1 -1
  442. package/lib/webrtc/groupCallEventHandler.js.map +1 -1
  443. package/lib/webrtc/mediaHandler.d.ts +1 -1
  444. package/lib/webrtc/mediaHandler.d.ts.map +1 -1
  445. package/lib/webrtc/mediaHandler.js.map +1 -1
  446. package/lib/webrtc/stats/callFeedStatsReporter.d.ts +2 -2
  447. package/lib/webrtc/stats/callFeedStatsReporter.d.ts.map +1 -1
  448. package/lib/webrtc/stats/callFeedStatsReporter.js.map +1 -1
  449. package/lib/webrtc/stats/callStatsReportGatherer.d.ts +2 -2
  450. package/lib/webrtc/stats/callStatsReportGatherer.d.ts.map +1 -1
  451. package/lib/webrtc/stats/callStatsReportGatherer.js.map +1 -1
  452. package/lib/webrtc/stats/connectionStats.d.ts +2 -2
  453. package/lib/webrtc/stats/connectionStats.d.ts.map +1 -1
  454. package/lib/webrtc/stats/connectionStats.js.map +1 -1
  455. package/lib/webrtc/stats/connectionStatsBuilder.d.ts +1 -1
  456. package/lib/webrtc/stats/connectionStatsBuilder.d.ts.map +1 -1
  457. package/lib/webrtc/stats/connectionStatsBuilder.js.map +1 -1
  458. package/lib/webrtc/stats/connectionStatsReportBuilder.d.ts +2 -2
  459. package/lib/webrtc/stats/connectionStatsReportBuilder.d.ts.map +1 -1
  460. package/lib/webrtc/stats/connectionStatsReportBuilder.js.map +1 -1
  461. package/lib/webrtc/stats/groupCallStats.js.map +1 -1
  462. package/lib/webrtc/stats/media/mediaTrackStats.d.ts +2 -2
  463. package/lib/webrtc/stats/media/mediaTrackStats.d.ts.map +1 -1
  464. package/lib/webrtc/stats/media/mediaTrackStats.js.map +1 -1
  465. package/lib/webrtc/stats/media/mediaTrackStatsHandler.d.ts +3 -3
  466. package/lib/webrtc/stats/media/mediaTrackStatsHandler.d.ts.map +1 -1
  467. package/lib/webrtc/stats/media/mediaTrackStatsHandler.js.map +1 -1
  468. package/lib/webrtc/stats/statsReport.d.ts +3 -3
  469. package/lib/webrtc/stats/statsReport.d.ts.map +1 -1
  470. package/lib/webrtc/stats/statsReport.js.map +1 -1
  471. package/lib/webrtc/stats/statsReportEmitter.d.ts +1 -1
  472. package/lib/webrtc/stats/statsReportEmitter.d.ts.map +1 -1
  473. package/lib/webrtc/stats/statsReportEmitter.js.map +1 -1
  474. package/lib/webrtc/stats/summaryStatsReportGatherer.d.ts +5 -5
  475. package/lib/webrtc/stats/summaryStatsReportGatherer.d.ts.map +1 -1
  476. package/lib/webrtc/stats/summaryStatsReportGatherer.js.map +1 -1
  477. package/lib/webrtc/stats/trackStatsBuilder.d.ts +2 -2
  478. package/lib/webrtc/stats/trackStatsBuilder.d.ts.map +1 -1
  479. package/lib/webrtc/stats/trackStatsBuilder.js.map +1 -1
  480. package/lib/webrtc/stats/transportStatsBuilder.d.ts +1 -1
  481. package/lib/webrtc/stats/transportStatsBuilder.d.ts.map +1 -1
  482. package/lib/webrtc/stats/transportStatsBuilder.js.map +1 -1
  483. package/package.json +4 -4
  484. package/src/@types/auth.ts +1 -1
  485. package/src/@types/beacon.ts +2 -2
  486. package/src/@types/common.ts +2 -0
  487. package/src/@types/crypto.ts +1 -6
  488. package/src/@types/event.ts +45 -45
  489. package/src/@types/events.ts +3 -3
  490. package/src/@types/extensible_events.ts +3 -3
  491. package/src/@types/global.d.ts +1 -0
  492. package/src/@types/location.ts +2 -2
  493. package/src/@types/media.ts +1 -1
  494. package/src/@types/polls.ts +7 -6
  495. package/src/@types/registration.ts +1 -1
  496. package/src/@types/requests.ts +8 -8
  497. package/src/@types/search.ts +3 -3
  498. package/src/@types/spaces.ts +3 -3
  499. package/src/@types/state_events.ts +4 -4
  500. package/src/@types/synapse.ts +1 -1
  501. package/src/@types/topic.ts +1 -1
  502. package/src/@types/uia.ts +3 -2
  503. package/src/NamespacedValue.ts +1 -1
  504. package/src/ReEmitter.ts +2 -2
  505. package/src/ToDeviceMessageQueue.ts +6 -6
  506. package/src/autodiscovery.ts +2 -2
  507. package/src/client.ts +305 -2362
  508. package/src/common-crypto/CryptoBackend.ts +5 -52
  509. package/src/content-helpers.ts +8 -8
  510. package/src/crypto/store/base.ts +121 -81
  511. package/src/crypto/store/indexeddb-crypto-store-backend.ts +12 -607
  512. package/src/crypto/store/indexeddb-crypto-store.ts +11 -304
  513. package/src/crypto/store/localStorage-crypto-store.ts +10 -180
  514. package/src/crypto/store/memory-crypto-store.ts +11 -365
  515. package/src/crypto-api/CryptoEventHandlerMap.ts +6 -5
  516. package/src/crypto-api/index.ts +14 -16
  517. package/src/crypto-api/keybackup.ts +4 -5
  518. package/src/crypto-api/verification.ts +2 -2
  519. package/src/embedded.ts +41 -33
  520. package/src/event-mapper.ts +2 -2
  521. package/src/extensible_events_v1/ExtensibleEvent.ts +1 -1
  522. package/src/extensible_events_v1/MessageEvent.ts +5 -5
  523. package/src/extensible_events_v1/PollEndEvent.ts +3 -3
  524. package/src/extensible_events_v1/PollResponseEvent.ts +4 -4
  525. package/src/extensible_events_v1/PollStartEvent.ts +5 -5
  526. package/src/extensible_events_v1/utilities.ts +1 -1
  527. package/src/feature.ts +1 -1
  528. package/src/filter-component.ts +2 -2
  529. package/src/filter.ts +3 -3
  530. package/src/http-api/errors.ts +3 -3
  531. package/src/http-api/fetch.ts +11 -5
  532. package/src/http-api/index.ts +9 -2
  533. package/src/http-api/interface.ts +2 -2
  534. package/src/http-api/utils.ts +1 -1
  535. package/src/interactive-auth.ts +11 -9
  536. package/src/logger.ts +29 -24
  537. package/src/matrix.ts +4 -12
  538. package/src/matrixrtc/CallMembership.ts +2 -2
  539. package/src/matrixrtc/EncryptionManager.ts +6 -6
  540. package/src/matrixrtc/LivekitFocus.ts +1 -1
  541. package/src/matrixrtc/MatrixRTCSession.ts +6 -6
  542. package/src/matrixrtc/MatrixRTCSessionManager.ts +4 -4
  543. package/src/matrixrtc/MembershipManager.ts +7 -6
  544. package/src/matrixrtc/types.ts +1 -1
  545. package/src/models/MSC3089Branch.ts +5 -5
  546. package/src/models/MSC3089TreeSpace.ts +8 -7
  547. package/src/models/beacon.ts +4 -4
  548. package/src/models/compare-event-ordering.ts +2 -2
  549. package/src/models/device.ts +1 -1
  550. package/src/models/event-context.ts +1 -1
  551. package/src/models/event-timeline-set.ts +7 -7
  552. package/src/models/event-timeline.ts +4 -4
  553. package/src/models/event.ts +15 -56
  554. package/src/models/invites-ignorer.ts +4 -4
  555. package/src/models/poll.ts +4 -4
  556. package/src/models/read-receipt.ts +6 -6
  557. package/src/models/related-relations.ts +3 -3
  558. package/src/models/relations-container.ts +5 -5
  559. package/src/models/relations.ts +3 -3
  560. package/src/models/room-member.ts +4 -4
  561. package/src/models/room-receipts.ts +3 -3
  562. package/src/models/room-state.ts +10 -4
  563. package/src/models/room.ts +23 -17
  564. package/src/models/search-result.ts +2 -2
  565. package/src/models/thread.ts +7 -7
  566. package/src/models/user.ts +2 -2
  567. package/src/oidc/authorize.ts +4 -4
  568. package/src/oidc/discovery.ts +1 -1
  569. package/src/oidc/index.ts +1 -1
  570. package/src/oidc/register.ts +2 -2
  571. package/src/oidc/tokenRefresher.ts +2 -2
  572. package/src/oidc/validate.ts +1 -1
  573. package/src/pushprocessor.ts +16 -16
  574. package/src/receipt-accumulator.ts +3 -3
  575. package/src/rendezvous/MSC4108SignInWithQR.ts +5 -5
  576. package/src/rendezvous/RendezvousChannel.ts +1 -1
  577. package/src/rendezvous/RendezvousCode.ts +1 -1
  578. package/src/rendezvous/RendezvousError.ts +1 -1
  579. package/src/rendezvous/RendezvousTransport.ts +1 -1
  580. package/src/rendezvous/channels/MSC4108SecureChannel.ts +5 -5
  581. package/src/rendezvous/transports/MSC4108RendezvousSession.ts +2 -2
  582. package/src/room-hierarchy.ts +4 -4
  583. package/src/rust-crypto/CrossSigningIdentity.ts +15 -10
  584. package/src/rust-crypto/DehydratedDeviceManager.ts +6 -6
  585. package/src/rust-crypto/KeyClaimManager.ts +3 -3
  586. package/src/rust-crypto/OutgoingRequestProcessor.ts +5 -6
  587. package/src/rust-crypto/OutgoingRequestsManager.ts +4 -4
  588. package/src/rust-crypto/PerSessionKeyBackupDownloader.ts +7 -7
  589. package/src/rust-crypto/RoomEncryptor.ts +9 -9
  590. package/src/rust-crypto/backup.ts +33 -26
  591. package/src/rust-crypto/device-converter.ts +1 -1
  592. package/src/rust-crypto/index.ts +5 -5
  593. package/src/rust-crypto/libolm_migration.ts +7 -7
  594. package/src/rust-crypto/rust-crypto.ts +52 -109
  595. package/src/rust-crypto/secret-storage.ts +1 -1
  596. package/src/rust-crypto/verification.ts +10 -10
  597. package/src/scheduler.ts +4 -4
  598. package/src/secret-storage.ts +21 -18
  599. package/src/serverCapabilities.ts +1 -1
  600. package/src/sliding-sync-sdk.ts +17 -11
  601. package/src/sliding-sync.ts +5 -5
  602. package/src/store/index.ts +11 -11
  603. package/src/store/indexeddb-backend.ts +3 -3
  604. package/src/store/indexeddb-local-backend.ts +5 -5
  605. package/src/store/indexeddb-remote-backend.ts +6 -6
  606. package/src/store/indexeddb.ts +9 -9
  607. package/src/store/memory.ts +13 -13
  608. package/src/store/stub.ts +11 -11
  609. package/src/sync-accumulator.ts +3 -3
  610. package/src/sync.ts +28 -69
  611. package/src/testing.ts +5 -5
  612. package/src/thread-utils.ts +1 -1
  613. package/src/timeline-window.ts +6 -6
  614. package/src/utils/decryptAESSecretStorageItem.ts +1 -1
  615. package/src/utils/encryptAESSecretStorageItem.ts +1 -1
  616. package/src/utils.ts +3 -3
  617. package/src/webrtc/call.ts +27 -42
  618. package/src/webrtc/callEventHandler.ts +5 -5
  619. package/src/webrtc/callEventTypes.ts +1 -1
  620. package/src/webrtc/callFeed.ts +3 -3
  621. package/src/webrtc/groupCall.ts +11 -11
  622. package/src/webrtc/groupCallEventHandler.ts +6 -6
  623. package/src/webrtc/mediaHandler.ts +1 -1
  624. package/src/webrtc/stats/callFeedStatsReporter.ts +2 -2
  625. package/src/webrtc/stats/callStatsReportGatherer.ts +3 -3
  626. package/src/webrtc/stats/connectionStats.ts +2 -2
  627. package/src/webrtc/stats/connectionStatsBuilder.ts +1 -1
  628. package/src/webrtc/stats/connectionStatsReportBuilder.ts +7 -7
  629. package/src/webrtc/stats/groupCallStats.ts +1 -1
  630. package/src/webrtc/stats/media/mediaTrackStats.ts +2 -2
  631. package/src/webrtc/stats/media/mediaTrackStatsHandler.ts +3 -3
  632. package/src/webrtc/stats/statsReport.ts +3 -3
  633. package/src/webrtc/stats/statsReportEmitter.ts +4 -4
  634. package/src/webrtc/stats/summaryStatsReportGatherer.ts +5 -5
  635. package/src/webrtc/stats/trackStatsBuilder.ts +2 -2
  636. package/src/webrtc/stats/transportStatsBuilder.ts +1 -1
  637. package/lib/crypto/CrossSigning.d.ts +0 -184
  638. package/lib/crypto/CrossSigning.d.ts.map +0 -1
  639. package/lib/crypto/CrossSigning.js +0 -718
  640. package/lib/crypto/CrossSigning.js.map +0 -1
  641. package/lib/crypto/DeviceList.d.ts +0 -216
  642. package/lib/crypto/DeviceList.d.ts.map +0 -1
  643. package/lib/crypto/DeviceList.js +0 -892
  644. package/lib/crypto/DeviceList.js.map +0 -1
  645. package/lib/crypto/EncryptionSetup.d.ts +0 -149
  646. package/lib/crypto/EncryptionSetup.d.ts.map +0 -1
  647. package/lib/crypto/EncryptionSetup.js +0 -351
  648. package/lib/crypto/EncryptionSetup.js.map +0 -1
  649. package/lib/crypto/OlmDevice.d.ts +0 -457
  650. package/lib/crypto/OlmDevice.d.ts.map +0 -1
  651. package/lib/crypto/OlmDevice.js +0 -1241
  652. package/lib/crypto/OlmDevice.js.map +0 -1
  653. package/lib/crypto/OutgoingRoomKeyRequestManager.d.ts +0 -109
  654. package/lib/crypto/OutgoingRoomKeyRequestManager.d.ts.map +0 -1
  655. package/lib/crypto/OutgoingRoomKeyRequestManager.js +0 -415
  656. package/lib/crypto/OutgoingRoomKeyRequestManager.js.map +0 -1
  657. package/lib/crypto/RoomList.d.ts +0 -26
  658. package/lib/crypto/RoomList.d.ts.map +0 -1
  659. package/lib/crypto/RoomList.js +0 -71
  660. package/lib/crypto/RoomList.js.map +0 -1
  661. package/lib/crypto/SecretSharing.d.ts +0 -24
  662. package/lib/crypto/SecretSharing.d.ts.map +0 -1
  663. package/lib/crypto/SecretSharing.js +0 -194
  664. package/lib/crypto/SecretSharing.js.map +0 -1
  665. package/lib/crypto/SecretStorage.d.ts +0 -55
  666. package/lib/crypto/SecretStorage.d.ts.map +0 -1
  667. package/lib/crypto/SecretStorage.js +0 -118
  668. package/lib/crypto/SecretStorage.js.map +0 -1
  669. package/lib/crypto/aes.d.ts +0 -6
  670. package/lib/crypto/aes.d.ts.map +0 -1
  671. package/lib/crypto/aes.js +0 -24
  672. package/lib/crypto/aes.js.map +0 -1
  673. package/lib/crypto/algorithms/base.d.ts +0 -156
  674. package/lib/crypto/algorithms/base.d.ts.map +0 -1
  675. package/lib/crypto/algorithms/base.js +0 -187
  676. package/lib/crypto/algorithms/base.js.map +0 -1
  677. package/lib/crypto/algorithms/index.d.ts +0 -4
  678. package/lib/crypto/algorithms/index.d.ts.map +0 -1
  679. package/lib/crypto/algorithms/index.js +0 -20
  680. package/lib/crypto/algorithms/index.js.map +0 -1
  681. package/lib/crypto/algorithms/megolm.d.ts +0 -385
  682. package/lib/crypto/algorithms/megolm.d.ts.map +0 -1
  683. package/lib/crypto/algorithms/megolm.js +0 -1822
  684. package/lib/crypto/algorithms/megolm.js.map +0 -1
  685. package/lib/crypto/algorithms/olm.d.ts +0 -5
  686. package/lib/crypto/algorithms/olm.d.ts.map +0 -1
  687. package/lib/crypto/algorithms/olm.js +0 -299
  688. package/lib/crypto/algorithms/olm.js.map +0 -1
  689. package/lib/crypto/api.d.ts +0 -32
  690. package/lib/crypto/api.d.ts.map +0 -1
  691. package/lib/crypto/api.js +0 -22
  692. package/lib/crypto/api.js.map +0 -1
  693. package/lib/crypto/backup.d.ts +0 -227
  694. package/lib/crypto/backup.d.ts.map +0 -1
  695. package/lib/crypto/backup.js +0 -824
  696. package/lib/crypto/backup.js.map +0 -1
  697. package/lib/crypto/crypto.d.ts +0 -3
  698. package/lib/crypto/crypto.d.ts.map +0 -1
  699. package/lib/crypto/crypto.js +0 -19
  700. package/lib/crypto/crypto.js.map +0 -1
  701. package/lib/crypto/dehydration.d.ts +0 -34
  702. package/lib/crypto/dehydration.d.ts.map +0 -1
  703. package/lib/crypto/dehydration.js +0 -252
  704. package/lib/crypto/dehydration.js.map +0 -1
  705. package/lib/crypto/device-converter.d.ts +0 -9
  706. package/lib/crypto/device-converter.d.ts.map +0 -1
  707. package/lib/crypto/device-converter.js +0 -42
  708. package/lib/crypto/device-converter.js.map +0 -1
  709. package/lib/crypto/deviceinfo.d.ts +0 -99
  710. package/lib/crypto/deviceinfo.d.ts.map +0 -1
  711. package/lib/crypto/deviceinfo.js +0 -148
  712. package/lib/crypto/deviceinfo.js.map +0 -1
  713. package/lib/crypto/index.d.ts +0 -1217
  714. package/lib/crypto/index.d.ts.map +0 -1
  715. package/lib/crypto/index.js +0 -4117
  716. package/lib/crypto/index.js.map +0 -1
  717. package/lib/crypto/key_passphrase.d.ts +0 -14
  718. package/lib/crypto/key_passphrase.d.ts.map +0 -1
  719. package/lib/crypto/key_passphrase.js +0 -44
  720. package/lib/crypto/key_passphrase.js.map +0 -1
  721. package/lib/crypto/keybackup.d.ts +0 -18
  722. package/lib/crypto/keybackup.d.ts.map +0 -1
  723. package/lib/crypto/keybackup.js +0 -1
  724. package/lib/crypto/keybackup.js.map +0 -1
  725. package/lib/crypto/olmlib.d.ts +0 -129
  726. package/lib/crypto/olmlib.d.ts.map +0 -1
  727. package/lib/crypto/olmlib.js +0 -492
  728. package/lib/crypto/olmlib.js.map +0 -1
  729. package/lib/crypto/recoverykey.d.ts +0 -2
  730. package/lib/crypto/recoverykey.d.ts.map +0 -1
  731. package/lib/crypto/recoverykey.js +0 -19
  732. package/lib/crypto/recoverykey.js.map +0 -1
  733. package/lib/crypto/verification/Base.d.ts +0 -105
  734. package/lib/crypto/verification/Base.d.ts.map +0 -1
  735. package/lib/crypto/verification/Base.js +0 -372
  736. package/lib/crypto/verification/Base.js.map +0 -1
  737. package/lib/crypto/verification/Error.d.ts +0 -35
  738. package/lib/crypto/verification/Error.d.ts.map +0 -1
  739. package/lib/crypto/verification/Error.js +0 -86
  740. package/lib/crypto/verification/Error.js.map +0 -1
  741. package/lib/crypto/verification/IllegalMethod.d.ts +0 -15
  742. package/lib/crypto/verification/IllegalMethod.d.ts.map +0 -1
  743. package/lib/crypto/verification/IllegalMethod.js +0 -43
  744. package/lib/crypto/verification/IllegalMethod.js.map +0 -1
  745. package/lib/crypto/verification/QRCode.d.ts +0 -51
  746. package/lib/crypto/verification/QRCode.d.ts.map +0 -1
  747. package/lib/crypto/verification/QRCode.js +0 -277
  748. package/lib/crypto/verification/QRCode.js.map +0 -1
  749. package/lib/crypto/verification/SAS.d.ts +0 -27
  750. package/lib/crypto/verification/SAS.d.ts.map +0 -1
  751. package/lib/crypto/verification/SAS.js +0 -485
  752. package/lib/crypto/verification/SAS.js.map +0 -1
  753. package/lib/crypto/verification/SASDecimal.d.ts +0 -8
  754. package/lib/crypto/verification/SASDecimal.d.ts.map +0 -1
  755. package/lib/crypto/verification/SASDecimal.js +0 -34
  756. package/lib/crypto/verification/SASDecimal.js.map +0 -1
  757. package/lib/crypto/verification/request/Channel.d.ts +0 -18
  758. package/lib/crypto/verification/request/Channel.d.ts.map +0 -1
  759. package/lib/crypto/verification/request/Channel.js +0 -1
  760. package/lib/crypto/verification/request/Channel.js.map +0 -1
  761. package/lib/crypto/verification/request/InRoomChannel.d.ts +0 -113
  762. package/lib/crypto/verification/request/InRoomChannel.d.ts.map +0 -1
  763. package/lib/crypto/verification/request/InRoomChannel.js +0 -351
  764. package/lib/crypto/verification/request/InRoomChannel.js.map +0 -1
  765. package/lib/crypto/verification/request/ToDeviceChannel.d.ts +0 -105
  766. package/lib/crypto/verification/request/ToDeviceChannel.d.ts.map +0 -1
  767. package/lib/crypto/verification/request/ToDeviceChannel.js +0 -328
  768. package/lib/crypto/verification/request/ToDeviceChannel.js.map +0 -1
  769. package/lib/crypto/verification/request/VerificationRequest.d.ts +0 -227
  770. package/lib/crypto/verification/request/VerificationRequest.d.ts.map +0 -1
  771. package/lib/crypto/verification/request/VerificationRequest.js +0 -937
  772. package/lib/crypto/verification/request/VerificationRequest.js.map +0 -1
  773. package/src/crypto/CrossSigning.ts +0 -773
  774. package/src/crypto/DeviceList.ts +0 -989
  775. package/src/crypto/EncryptionSetup.ts +0 -351
  776. package/src/crypto/OlmDevice.ts +0 -1500
  777. package/src/crypto/OutgoingRoomKeyRequestManager.ts +0 -485
  778. package/src/crypto/RoomList.ts +0 -70
  779. package/src/crypto/SecretSharing.ts +0 -240
  780. package/src/crypto/SecretStorage.ts +0 -136
  781. package/src/crypto/aes.ts +0 -23
  782. package/src/crypto/algorithms/base.ts +0 -236
  783. package/src/crypto/algorithms/index.ts +0 -20
  784. package/src/crypto/algorithms/megolm.ts +0 -2216
  785. package/src/crypto/algorithms/olm.ts +0 -381
  786. package/src/crypto/api.ts +0 -70
  787. package/src/crypto/backup.ts +0 -922
  788. package/src/crypto/crypto.ts +0 -18
  789. package/src/crypto/dehydration.ts +0 -272
  790. package/src/crypto/device-converter.ts +0 -45
  791. package/src/crypto/deviceinfo.ts +0 -158
  792. package/src/crypto/index.ts +0 -4432
  793. package/src/crypto/key_passphrase.ts +0 -42
  794. package/src/crypto/keybackup.ts +0 -47
  795. package/src/crypto/olmlib.ts +0 -539
  796. package/src/crypto/recoverykey.ts +0 -18
  797. package/src/crypto/verification/Base.ts +0 -409
  798. package/src/crypto/verification/Error.ts +0 -76
  799. package/src/crypto/verification/IllegalMethod.ts +0 -50
  800. package/src/crypto/verification/QRCode.ts +0 -310
  801. package/src/crypto/verification/SAS.ts +0 -494
  802. package/src/crypto/verification/SASDecimal.ts +0 -37
  803. package/src/crypto/verification/request/Channel.ts +0 -34
  804. package/src/crypto/verification/request/InRoomChannel.ts +0 -371
  805. package/src/crypto/verification/request/ToDeviceChannel.ts +0 -354
  806. package/src/crypto/verification/request/VerificationRequest.ts +0 -977
@@ -1 +1 @@
1
- {"version":3,"file":"global.d.js","names":[],"sources":["../../src/@types/global.d.ts"],"sourcesContent":["/*\nCopyright 2020 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// this is needed to tell TS about globalThis.Olm\nimport \"@matrix-org/olm\";\n\nexport {};\n\ndeclare global {\n // use `number` as the return type in all cases for globalThis.set{Interval,Timeout},\n // so we don't accidentally use the methods on NodeJS.Timeout - they only exist in a subset of environments.\n // The overload for clear{Interval,Timeout} is resolved as expected.\n // We use `ReturnType<typeof setTimeout>` in the code to be agnostic of if this definition gets loaded.\n function setInterval(handler: TimerHandler, timeout: number, ...arguments: any[]): number;\n function setTimeout(handler: TimerHandler, timeout: number, ...arguments: any[]): number;\n\n namespace NodeJS {\n interface Global {\n // marker variable used to detect both the browser & node entrypoints being used at once\n __js_sdk_entrypoint: unknown;\n }\n }\n\n interface MediaDevices {\n // This is experimental and types don't know about it yet\n // https://github.com/microsoft/TypeScript/issues/33232\n getDisplayMedia(constraints: MediaStreamConstraints | DesktopCapturerConstraints): Promise<MediaStream>;\n getUserMedia(constraints: MediaStreamConstraints | DesktopCapturerConstraints): Promise<MediaStream>;\n }\n\n interface DesktopCapturerConstraints {\n audio:\n | boolean\n | {\n mandatory: {\n chromeMediaSource: string;\n chromeMediaSourceId: string;\n };\n };\n video:\n | boolean\n | {\n mandatory: {\n chromeMediaSource: string;\n chromeMediaSourceId: string;\n };\n };\n }\n\n interface DummyInterfaceWeShouldntBeUsingThis {}\n\n interface Navigator {\n // We check for the webkit-prefixed getUserMedia to detect if we're\n // on webkit: we should check if we still need to do this\n webkitGetUserMedia?: DummyInterfaceWeShouldntBeUsingThis;\n }\n\n export interface Uint8ArrayToBase64Options {\n alphabet?: \"base64\" | \"base64url\";\n omitPadding?: boolean;\n }\n\n interface Uint8Array {\n // https://tc39.es/proposal-arraybuffer-base64/spec/#sec-uint8array.prototype.tobase64\n toBase64?(options?: Uint8ArrayToBase64Options): string;\n }\n\n export interface Uint8ArrayFromBase64Options {\n alphabet?: \"base64\"; // Our fallback code only handles base64.\n lastChunkHandling?: \"loose\"; // Our fallback code doesn't support other handling at this time.\n }\n\n interface Uint8ArrayConstructor {\n // https://tc39.es/proposal-arraybuffer-base64/spec/#sec-uint8array.frombase64\n fromBase64?(base64: string, options?: Uint8ArrayFromBase64Options): Uint8Array;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAO,iBAAiB;AAExB","ignoreList":[]}
1
+ {"version":3,"file":"global.d.js","names":[],"sources":["../../src/@types/global.d.ts"],"sourcesContent":["/*\nCopyright 2020 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// this is needed to tell TS about globalThis.Olm\nimport \"@matrix-org/olm\";\n\nexport {};\n\ndeclare global {\n // use `number` as the return type in all cases for globalThis.set{Interval,Timeout},\n // so we don't accidentally use the methods on NodeJS.Timeout - they only exist in a subset of environments.\n // The overload for clear{Interval,Timeout} is resolved as expected.\n // We use `ReturnType<typeof setTimeout>` in the code to be agnostic of if this definition gets loaded.\n function setInterval(handler: TimerHandler, timeout: number, ...arguments: any[]): number;\n function setTimeout(handler: TimerHandler, timeout: number, ...arguments: any[]): number;\n\n namespace NodeJS {\n interface Global {\n // marker variable used to detect both the browser & node entrypoints being used at once\n __js_sdk_entrypoint: unknown;\n }\n }\n\n interface MediaDevices {\n // This is experimental and types don't know about it yet\n // https://github.com/microsoft/TypeScript/issues/33232\n getDisplayMedia(constraints: MediaStreamConstraints | DesktopCapturerConstraints): Promise<MediaStream>;\n getUserMedia(constraints: MediaStreamConstraints | DesktopCapturerConstraints): Promise<MediaStream>;\n }\n\n interface DesktopCapturerConstraints {\n audio:\n | boolean\n | {\n mandatory: {\n chromeMediaSource: string;\n chromeMediaSourceId: string;\n };\n };\n video:\n | boolean\n | {\n mandatory: {\n chromeMediaSource: string;\n chromeMediaSourceId: string;\n };\n };\n }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n interface DummyInterfaceWeShouldntBeUsingThis {}\n\n interface Navigator {\n // We check for the webkit-prefixed getUserMedia to detect if we're\n // on webkit: we should check if we still need to do this\n webkitGetUserMedia?: DummyInterfaceWeShouldntBeUsingThis;\n }\n\n export interface Uint8ArrayToBase64Options {\n alphabet?: \"base64\" | \"base64url\";\n omitPadding?: boolean;\n }\n\n interface Uint8Array {\n // https://tc39.es/proposal-arraybuffer-base64/spec/#sec-uint8array.prototype.tobase64\n toBase64?(options?: Uint8ArrayToBase64Options): string;\n }\n\n export interface Uint8ArrayFromBase64Options {\n alphabet?: \"base64\"; // Our fallback code only handles base64.\n lastChunkHandling?: \"loose\"; // Our fallback code doesn't support other handling at this time.\n }\n\n interface Uint8ArrayConstructor {\n // https://tc39.es/proposal-arraybuffer-base64/spec/#sec-uint8array.frombase64\n fromBase64?(base64: string, options?: Uint8ArrayFromBase64Options): Uint8Array;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAO,iBAAiB;AAExB","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- import { EitherAnd } from "matrix-events-sdk";
1
+ import { type EitherAnd } from "matrix-events-sdk";
2
2
  import { UnstableValue } from "../NamespacedValue.ts";
3
- import { M_TEXT } from "./extensible_events.ts";
3
+ import { type M_TEXT } from "./extensible_events.ts";
4
4
  export declare enum LocationAssetType {
5
5
  Self = "m.self",
6
6
  Pin = "m.pin"
@@ -1 +1 @@
1
- {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/@types/location.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,oBAAY,iBAAiB;IACzB,IAAI,WAAW;IACf,GAAG,UAAU;CAChB;AAED,eAAO,MAAM,OAAO,sDAA2D,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC;AACxD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;IAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,aAAa,CAAA;CAAE,EAAE;IAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AAE7G,eAAO,MAAM,WAAW,gDAAqD,CAAC;AAC9E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;IAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE;IAAE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE3G,eAAO,MAAM,UAAU,4DAAiE,CAAC;AAEzF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW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AAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,GAAG,qBAAqB,CAAC,CAAC;AAEnG,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,GAAG,0BAA0B,CAAC"}
@@ -17,7 +17,6 @@ limitations under the License.
17
17
  // Types for MSC3488 - m.location: Extending events with location data
18
18
 
19
19
  import { UnstableValue } from "../NamespacedValue.js";
20
- import { M_TEXT } from "./extensible_events.js";
21
20
  export var LocationAssetType = /*#__PURE__*/function (LocationAssetType) {
22
21
  LocationAssetType["Self"] = "m.self";
23
22
  LocationAssetType["Pin"] = "m.pin";
@@ -1 +1 @@
1
- {"version":3,"file":"location.js","names":["UnstableValue","M_TEXT","LocationAssetType","M_ASSET","M_TIMESTAMP","M_LOCATION"],"sources":["../../src/@types/location.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Types for MSC3488 - m.location: Extending events with location data\nimport { EitherAnd } from \"matrix-events-sdk\";\n\nimport { UnstableValue } from \"../NamespacedValue.ts\";\nimport { M_TEXT } from \"./extensible_events.ts\";\n\nexport enum LocationAssetType {\n Self = \"m.self\",\n Pin = \"m.pin\",\n}\n\nexport const M_ASSET = new UnstableValue(\"m.asset\", \"org.matrix.msc3488.asset\");\nexport type MAssetContent = { type: LocationAssetType };\n/**\n * The event definition for an m.asset event (in content)\n */\nexport type MAssetEvent = EitherAnd<{ [M_ASSET.name]: MAssetContent }, { [M_ASSET.altName]: MAssetContent }>;\n\nexport const M_TIMESTAMP = new UnstableValue(\"m.ts\", \"org.matrix.msc3488.ts\");\n/**\n * The event definition for an m.ts event (in content)\n */\nexport type MTimestampEvent = EitherAnd<{ [M_TIMESTAMP.name]: number }, { [M_TIMESTAMP.altName]: number }>;\n\nexport const M_LOCATION = new UnstableValue(\"m.location\", \"org.matrix.msc3488.location\");\n\nexport type MLocationContent = {\n uri: string;\n description?: string | null;\n};\n\nexport type MLocationEvent = EitherAnd<\n { [M_LOCATION.name]: MLocationContent },\n { [M_LOCATION.altName]: MLocationContent }\n>;\n\nexport type MTextEvent = EitherAnd<{ [M_TEXT.name]: string }, { [M_TEXT.altName]: string }>;\n\n/* From the spec at:\n * https://github.com/matrix-org/matrix-doc/blob/matthew/location/proposals/3488-location.md\n{\n \"type\": \"m.room.message\",\n \"content\": {\n \"body\": \"Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021\",\n \"msgtype\": \"m.location\",\n \"geo_uri\": \"geo:51.5008,0.1247;u=35\",\n \"m.location\": {\n \"uri\": \"geo:51.5008,0.1247;u=35\",\n \"description\": \"Matthew's whereabouts\",\n },\n \"m.asset\": {\n \"type\": \"m.self\"\n },\n \"m.text\": \"Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021\",\n \"m.ts\": 1636829458432,\n }\n}\n*/\ntype OptionalTimestampEvent = MTimestampEvent | undefined;\n/**\n * The content for an m.location event\n */\nexport type MLocationEventContent = MLocationEvent & MAssetEvent & MTextEvent & OptionalTimestampEvent;\n\nexport type LegacyLocationEventContent = {\n body: string;\n msgtype: string;\n geo_uri: string;\n};\n\n/**\n * Possible content for location events as sent over the wire\n */\nexport type LocationEventWireContent = Partial<LegacyLocationEventContent & MLocationEventContent>;\n\nexport type ILocationContent = MLocationEventContent & LegacyLocationEventContent;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAGA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,MAAM,QAAQ,wBAAwB;AAE/C,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAK7B,OAAO,IAAMC,OAAO,GAAG,IAAIH,aAAa,CAAC,SAAS,EAAE,0BAA0B,CAAC;;AAE/E;AACA;AACA;;AAGA,OAAO,IAAMI,WAAW,GAAG,IAAIJ,aAAa,CAAC,MAAM,EAAE,uBAAuB,CAAC;AAC7E;AACA;AACA;;AAGA,OAAO,IAAMK,UAAU,GAAG,IAAIL,aAAa,CAAC,YAAY,EAAE,6BAA6B,CAAC;;AAcxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AASA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"location.js","names":["UnstableValue","LocationAssetType","M_ASSET","M_TIMESTAMP","M_LOCATION"],"sources":["../../src/@types/location.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Types for MSC3488 - m.location: Extending events with location data\nimport { type EitherAnd } from \"matrix-events-sdk\";\n\nimport { UnstableValue } from \"../NamespacedValue.ts\";\nimport { type M_TEXT } from \"./extensible_events.ts\";\n\nexport enum LocationAssetType {\n Self = \"m.self\",\n Pin = \"m.pin\",\n}\n\nexport const M_ASSET = new UnstableValue(\"m.asset\", \"org.matrix.msc3488.asset\");\nexport type MAssetContent = { type: LocationAssetType };\n/**\n * The event definition for an m.asset event (in content)\n */\nexport type MAssetEvent = EitherAnd<{ [M_ASSET.name]: MAssetContent }, { [M_ASSET.altName]: MAssetContent }>;\n\nexport const M_TIMESTAMP = new UnstableValue(\"m.ts\", \"org.matrix.msc3488.ts\");\n/**\n * The event definition for an m.ts event (in content)\n */\nexport type MTimestampEvent = EitherAnd<{ [M_TIMESTAMP.name]: number }, { [M_TIMESTAMP.altName]: number }>;\n\nexport const M_LOCATION = new UnstableValue(\"m.location\", \"org.matrix.msc3488.location\");\n\nexport type MLocationContent = {\n uri: string;\n description?: string | null;\n};\n\nexport type MLocationEvent = EitherAnd<\n { [M_LOCATION.name]: MLocationContent },\n { [M_LOCATION.altName]: MLocationContent }\n>;\n\nexport type MTextEvent = EitherAnd<{ [M_TEXT.name]: string }, { [M_TEXT.altName]: string }>;\n\n/* From the spec at:\n * https://github.com/matrix-org/matrix-doc/blob/matthew/location/proposals/3488-location.md\n{\n \"type\": \"m.room.message\",\n \"content\": {\n \"body\": \"Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021\",\n \"msgtype\": \"m.location\",\n \"geo_uri\": \"geo:51.5008,0.1247;u=35\",\n \"m.location\": {\n \"uri\": \"geo:51.5008,0.1247;u=35\",\n \"description\": \"Matthew's whereabouts\",\n },\n \"m.asset\": {\n \"type\": \"m.self\"\n },\n \"m.text\": \"Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021\",\n \"m.ts\": 1636829458432,\n }\n}\n*/\ntype OptionalTimestampEvent = MTimestampEvent | undefined;\n/**\n * The content for an m.location event\n */\nexport type MLocationEventContent = MLocationEvent & MAssetEvent & MTextEvent & OptionalTimestampEvent;\n\nexport type LegacyLocationEventContent = {\n body: string;\n msgtype: string;\n geo_uri: string;\n};\n\n/**\n * Possible content for location events as sent over the wire\n */\nexport type LocationEventWireContent = Partial<LegacyLocationEventContent & MLocationEventContent>;\n\nexport type ILocationContent = MLocationEventContent & LegacyLocationEventContent;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAGA,SAASA,aAAa,QAAQ,uBAAuB;AAGrD,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAK7B,OAAO,IAAMC,OAAO,GAAG,IAAIF,aAAa,CAAC,SAAS,EAAE,0BAA0B,CAAC;;AAE/E;AACA;AACA;;AAGA,OAAO,IAAMG,WAAW,GAAG,IAAIH,aAAa,CAAC,MAAM,EAAE,uBAAuB,CAAC;AAC7E;AACA;AACA;;AAGA,OAAO,IAAMI,UAAU,GAAG,IAAIJ,aAAa,CAAC,YAAY,EAAE,6BAA6B,CAAC;;AAcxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AASA;AACA;AACA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { MsgType } from "../@types/event.ts";
1
+ import { type MsgType } from "../@types/event.ts";
2
2
  /**
3
3
  * Information on encrypted media attachments.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../src/@types/media.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE;QACD,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;QACZ,CAAC,EAAE,MAAM,CAAC;QACV,GAAG,EAAE,OAAO,CAAC;KAChB,CAAC;IACF;;OAEG;IACH,EAAE,EAAE,MAAM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AEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"media.js","names":[],"sources":["../../src/@types/media.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { MsgType } from \"../@types/event.ts\";\n\n/**\n * Information on encrypted media attachments.\n *\n * Used within `m.room.message` events that reference files, such as `m.file` and `m.image`.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#extensions-to-mroommessage-msgtypes\n */\nexport interface EncryptedFile {\n /**\n * The URL to the file.\n */\n url: string;\n /**\n * A JSON Web Key object.\n */\n key: {\n alg: string;\n key_ops: string[]; // eslint-disable-line camelcase\n kty: string;\n k: string;\n ext: boolean;\n };\n /**\n * The 128-bit unique counter block used by AES-CTR, encoded as unpadded base64.\n */\n iv: string;\n /**\n * A map from an algorithm name to a hash of the ciphertext, encoded as unpadded base64.\n * Clients should support the SHA-256 hash, which uses the key `sha256`.\n */\n hashes: { [alg: string]: string };\n /**\n * Version of the encrypted attachment's protocol. Must be `v2`.\n */\n v: string;\n}\n\ninterface ThumbnailInfo {\n /**\n * The mimetype of the image, e.g. image/jpeg.\n */\n mimetype?: string;\n /**\n * The intended display width of the image in pixels.\n * This may differ from the intrinsic dimensions of the image file.\n */\n w?: number;\n /**\n * The intended display height of the image in pixels.\n * This may differ from the intrinsic dimensions of the image file.\n */\n h?: number;\n /**\n * Size of the image in bytes.\n */\n size?: number;\n}\n\ninterface BaseInfo {\n mimetype?: string;\n size?: number;\n}\n\n/**\n * Information on media attachments of msgtype `m.file`\n *\n * Used within `m.room.message` events that reference files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mfile\n */\nexport interface FileInfo extends BaseInfo {\n /**\n * Information on the encrypted thumbnail file, as specified in End-to-end encryption.\n * Only present if the thumbnail is encrypted.\n * @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments\n */\n thumbnail_file?: EncryptedFile;\n /**\n * Metadata about the image referred to in thumbnail_url.\n */\n thumbnail_info?: ThumbnailInfo;\n /**\n * The URL to the thumbnail of the file. Only present if the thumbnail is unencrypted.\n */\n thumbnail_url?: string;\n}\n\n/**\n * Information on media attachments of msgtype `m.image`\n *\n * Used within `m.room.message` events that reference images.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mimage\n */\nexport interface ImageInfo extends FileInfo, ThumbnailInfo {}\n\n/**\n * Information on media attachments of msgtype `m.audio`\n *\n * Used within `m.room.message` events that reference audio files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#maudio\n */\nexport interface AudioInfo extends BaseInfo {\n /**\n * The duration of the audio in milliseconds.\n */\n duration?: number;\n}\n\n/**\n * Information on media attachments of msgtype `m.video`\n *\n * Used within `m.room.message` events that reference video files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mvideo\n */\nexport interface VideoInfo extends AudioInfo, ImageInfo {\n /**\n * The duration of the video in milliseconds.\n */\n duration?: number;\n}\n\n/**\n * Union type representing the `content.info` field of all specified media events.\n */\nexport type MediaEventInfo = FileInfo | ImageInfo | AudioInfo | VideoInfo;\n\ninterface BaseContent {\n /**\n * Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.\n * @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments\n */\n file?: EncryptedFile;\n /**\n * Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.\n */\n url?: string;\n /**\n * If filename is not set or the value of both properties are identical,\n * this is the filename of the original upload. Otherwise, this is a\n * caption for the file.\n */\n body: string;\n /**\n * The original filename of the uploaded file.\n */\n filename?: string;\n /**\n * The format used in the `formatted_body`.\n */\n format?: \"org.matrix.custom.html\";\n /**\n * The formatted version of the `body`, when it acts as a caption. This is required if `format` is specified.\n */\n formatted_body?: string;\n}\n\n/**\n * Content format of media events with msgtype `m.file`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mfile\n */\nexport interface FileContent extends BaseContent {\n /**\n * Information about the file referred to in url.\n */\n info?: FileInfo;\n /**\n * One of: [m.file].\n */\n msgtype: MsgType.File;\n}\n\n/**\n * Content format of media events with msgtype `m.image`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mimage\n */\nexport interface ImageContent extends BaseContent {\n /**\n * Metadata about the image referred to in url.\n */\n info?: ImageInfo;\n /**\n * One of: [m.image].\n */\n msgtype: MsgType.Image;\n}\n\n/**\n * Content format of media events with msgtype `m.audio`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#maudio\n */\nexport interface AudioContent extends BaseContent {\n /**\n * Metadata for the audio clip referred to in url.\n */\n info?: AudioInfo;\n /**\n * One of: [m.audio].\n */\n msgtype: MsgType.Audio;\n}\n\n/**\n * Content format of media events with msgtype `m.video`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mvideo\n */\nexport interface VideoContent extends BaseContent {\n /**\n * Metadata about the video clip referred to in url.\n */\n info?: VideoInfo;\n /**\n * One of: [m.video].\n */\n msgtype: MsgType.Video;\n}\n\n/**\n * Type representing media event contents for `m.room.message` events listed in the Matrix specification\n */\nexport type MediaEventContent = FileContent | ImageContent | AudioContent | VideoContent;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"media.js","names":[],"sources":["../../src/@types/media.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type MsgType } from \"../@types/event.ts\";\n\n/**\n * Information on encrypted media attachments.\n *\n * Used within `m.room.message` events that reference files, such as `m.file` and `m.image`.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#extensions-to-mroommessage-msgtypes\n */\nexport interface EncryptedFile {\n /**\n * The URL to the file.\n */\n url: string;\n /**\n * A JSON Web Key object.\n */\n key: {\n alg: string;\n key_ops: string[]; // eslint-disable-line camelcase\n kty: string;\n k: string;\n ext: boolean;\n };\n /**\n * The 128-bit unique counter block used by AES-CTR, encoded as unpadded base64.\n */\n iv: string;\n /**\n * A map from an algorithm name to a hash of the ciphertext, encoded as unpadded base64.\n * Clients should support the SHA-256 hash, which uses the key `sha256`.\n */\n hashes: { [alg: string]: string };\n /**\n * Version of the encrypted attachment's protocol. Must be `v2`.\n */\n v: string;\n}\n\ninterface ThumbnailInfo {\n /**\n * The mimetype of the image, e.g. image/jpeg.\n */\n mimetype?: string;\n /**\n * The intended display width of the image in pixels.\n * This may differ from the intrinsic dimensions of the image file.\n */\n w?: number;\n /**\n * The intended display height of the image in pixels.\n * This may differ from the intrinsic dimensions of the image file.\n */\n h?: number;\n /**\n * Size of the image in bytes.\n */\n size?: number;\n}\n\ninterface BaseInfo {\n mimetype?: string;\n size?: number;\n}\n\n/**\n * Information on media attachments of msgtype `m.file`\n *\n * Used within `m.room.message` events that reference files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mfile\n */\nexport interface FileInfo extends BaseInfo {\n /**\n * Information on the encrypted thumbnail file, as specified in End-to-end encryption.\n * Only present if the thumbnail is encrypted.\n * @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments\n */\n thumbnail_file?: EncryptedFile;\n /**\n * Metadata about the image referred to in thumbnail_url.\n */\n thumbnail_info?: ThumbnailInfo;\n /**\n * The URL to the thumbnail of the file. Only present if the thumbnail is unencrypted.\n */\n thumbnail_url?: string;\n}\n\n/**\n * Information on media attachments of msgtype `m.image`\n *\n * Used within `m.room.message` events that reference images.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mimage\n */\nexport interface ImageInfo extends FileInfo, ThumbnailInfo {}\n\n/**\n * Information on media attachments of msgtype `m.audio`\n *\n * Used within `m.room.message` events that reference audio files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#maudio\n */\nexport interface AudioInfo extends BaseInfo {\n /**\n * The duration of the audio in milliseconds.\n */\n duration?: number;\n}\n\n/**\n * Information on media attachments of msgtype `m.video`\n *\n * Used within `m.room.message` events that reference video files.\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mvideo\n */\nexport interface VideoInfo extends AudioInfo, ImageInfo {\n /**\n * The duration of the video in milliseconds.\n */\n duration?: number;\n}\n\n/**\n * Union type representing the `content.info` field of all specified media events.\n */\nexport type MediaEventInfo = FileInfo | ImageInfo | AudioInfo | VideoInfo;\n\ninterface BaseContent {\n /**\n * Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.\n * @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments\n */\n file?: EncryptedFile;\n /**\n * Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.\n */\n url?: string;\n /**\n * If filename is not set or the value of both properties are identical,\n * this is the filename of the original upload. Otherwise, this is a\n * caption for the file.\n */\n body: string;\n /**\n * The original filename of the uploaded file.\n */\n filename?: string;\n /**\n * The format used in the `formatted_body`.\n */\n format?: \"org.matrix.custom.html\";\n /**\n * The formatted version of the `body`, when it acts as a caption. This is required if `format` is specified.\n */\n formatted_body?: string;\n}\n\n/**\n * Content format of media events with msgtype `m.file`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mfile\n */\nexport interface FileContent extends BaseContent {\n /**\n * Information about the file referred to in url.\n */\n info?: FileInfo;\n /**\n * One of: [m.file].\n */\n msgtype: MsgType.File;\n}\n\n/**\n * Content format of media events with msgtype `m.image`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mimage\n */\nexport interface ImageContent extends BaseContent {\n /**\n * Metadata about the image referred to in url.\n */\n info?: ImageInfo;\n /**\n * One of: [m.image].\n */\n msgtype: MsgType.Image;\n}\n\n/**\n * Content format of media events with msgtype `m.audio`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#maudio\n */\nexport interface AudioContent extends BaseContent {\n /**\n * Metadata for the audio clip referred to in url.\n */\n info?: AudioInfo;\n /**\n * One of: [m.audio].\n */\n msgtype: MsgType.Audio;\n}\n\n/**\n * Content format of media events with msgtype `m.video`\n *\n * @see https://spec.matrix.org/v1.11/client-server-api/#mvideo\n */\nexport interface VideoContent extends BaseContent {\n /**\n * Metadata about the video clip referred to in url.\n */\n info?: VideoInfo;\n /**\n * One of: [m.video].\n */\n msgtype: MsgType.Video;\n}\n\n/**\n * Type representing media event contents for `m.room.message` events listed in the Matrix specification\n */\nexport type MediaEventContent = FileContent | ImageContent | AudioContent | VideoContent;\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +1,6 @@
1
- import { EitherAnd, UnstableValue } from "matrix-events-sdk";
2
- import { ExtensibleAnyMessageEventContent, REFERENCE_RELATION, RelatesToRelationship, TSNamespace } from "./extensible_events.ts";
1
+ import { type EitherAnd, UnstableValue } from "matrix-events-sdk";
2
+ import { type ExtensibleAnyMessageEventContent, type REFERENCE_RELATION, type RelatesToRelationship, type TSNamespace } from "./extensible_events.ts";
3
+ import { type EmptyObject } from "./common.ts";
3
4
  /**
4
5
  * Identifier for a disclosed poll.
5
6
  */
@@ -77,9 +78,9 @@ export declare const M_POLL_END: UnstableValue<"m.poll.end", "org.matrix.msc3381
77
78
  * The event definition for an m.poll.end event (in content)
78
79
  */
79
80
  export type PollEndEvent = EitherAnd<{
80
- [M_POLL_END.name]: {};
81
+ [M_POLL_END.name]: EmptyObject;
81
82
  }, {
82
- [M_POLL_END.altName]: {};
83
+ [M_POLL_END.altName]: EmptyObject;
83
84
  }>;
84
85
  /**
85
86
  * The content for an m.poll.end event
@@ -1 +1 @@
1
- {"version":3,"file":"polls.d.ts","sourceRoot":"","sources":["../../src/@types/polls.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EACH,gCAAgC,EAChC,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACd,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,e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,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAC1C,qBAAqB,CAAC,OAAO,kBAAkB,CAAC,GAChD,gCAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"polls.js","names":["UnstableValue","M_POLL_KIND_DISCLOSED","M_POLL_KIND_UNDISCLOSED","M_POLL_START","M_POLL_RESPONSE","M_POLL_END"],"sources":["../../src/@types/polls.ts"],"sourcesContent":["/*\nCopyright 2022 - 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { EitherAnd, UnstableValue } from \"matrix-events-sdk\";\n\nimport {\n ExtensibleAnyMessageEventContent,\n REFERENCE_RELATION,\n RelatesToRelationship,\n TSNamespace,\n} from \"./extensible_events.ts\";\n\n/**\n * Identifier for a disclosed poll.\n */\nexport const M_POLL_KIND_DISCLOSED = new UnstableValue(\"m.poll.disclosed\", \"org.matrix.msc3381.poll.disclosed\");\n\n/**\n * Identifier for an undisclosed poll.\n */\nexport const M_POLL_KIND_UNDISCLOSED = new UnstableValue(\"m.poll.undisclosed\", \"org.matrix.msc3381.poll.undisclosed\");\n\n/**\n * Any poll kind.\n */\nexport type PollKind = TSNamespace<typeof M_POLL_KIND_DISCLOSED> | TSNamespace<typeof M_POLL_KIND_UNDISCLOSED> | string;\n\n/**\n * Known poll kind namespaces.\n */\nexport type KnownPollKind = typeof M_POLL_KIND_DISCLOSED | typeof M_POLL_KIND_UNDISCLOSED;\n\n/**\n * The namespaced value for m.poll.start\n */\nexport const M_POLL_START = new UnstableValue(\"m.poll.start\", \"org.matrix.msc3381.poll.start\");\n\n/**\n * The m.poll.start type within event content\n */\nexport type PollStartSubtype = {\n question: ExtensibleAnyMessageEventContent;\n kind: PollKind;\n max_selections?: number; // default 1, always positive\n answers: PollAnswer[];\n};\n\n/**\n * A poll answer.\n */\nexport type PollAnswer = ExtensibleAnyMessageEventContent & { id: string };\n\n/**\n * The event definition for an m.poll.start event (in content)\n */\nexport type PollStartEvent = EitherAnd<\n { [M_POLL_START.name]: PollStartSubtype },\n { [M_POLL_START.altName]: PollStartSubtype }\n>;\n\n/**\n * The content for an m.poll.start event\n */\nexport type PollStartEventContent = PollStartEvent & ExtensibleAnyMessageEventContent;\n\n/**\n * The namespaced value for m.poll.response\n */\nexport const M_POLL_RESPONSE = new UnstableValue(\"m.poll.response\", \"org.matrix.msc3381.poll.response\");\n\n/**\n * The m.poll.response type within event content\n */\nexport type PollResponseSubtype = {\n answers: string[];\n};\n\n/**\n * The event definition for an m.poll.response event (in content)\n */\nexport type PollResponseEvent = EitherAnd<\n { [M_POLL_RESPONSE.name]: PollResponseSubtype },\n { [M_POLL_RESPONSE.altName]: PollResponseSubtype }\n>;\n\n/**\n * The content for an m.poll.response event\n */\nexport type PollResponseEventContent = PollResponseEvent & RelatesToRelationship<typeof REFERENCE_RELATION>;\n\n/**\n * The namespaced value for m.poll.end\n */\nexport const M_POLL_END = new UnstableValue(\"m.poll.end\", \"org.matrix.msc3381.poll.end\");\n\n/**\n * The event definition for an m.poll.end event (in content)\n */\nexport type PollEndEvent = EitherAnd<{ [M_POLL_END.name]: {} }, { [M_POLL_END.altName]: {} }>;\n\n/**\n * The content for an m.poll.end event\n */\nexport type PollEndEventContent = PollEndEvent &\n RelatesToRelationship<typeof REFERENCE_RELATION> &\n ExtensibleAnyMessageEventContent;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAoBA,aAAa,QAAQ,mBAAmB;AAS5D;AACA;AACA;AACA,OAAO,IAAMC,qBAAqB,GAAG,IAAID,aAAa,CAAC,kBAAkB,EAAE,mCAAmC,CAAC;;AAE/G;AACA;AACA;AACA,OAAO,IAAME,uBAAuB,GAAG,IAAIF,aAAa,CAAC,oBAAoB,EAAE,qCAAqC,CAAC;;AAErH;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,IAAMG,YAAY,GAAG,IAAIH,aAAa,CAAC,cAAc,EAAE,+BAA+B,CAAC;;AAE9F;AACA;AACA;;AAQA;AACA;AACA;;AAGA;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,IAAMI,eAAe,GAAG,IAAIJ,aAAa,CAAC,iBAAiB,EAAE,kCAAkC,CAAC;;AAEvG;AACA;AACA;;AAKA;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,IAAMK,UAAU,GAAG,IAAIL,aAAa,CAAC,YAAY,EAAE,6BAA6B,CAAC;;AAExF;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"polls.js","names":["UnstableValue","M_POLL_KIND_DISCLOSED","M_POLL_KIND_UNDISCLOSED","M_POLL_START","M_POLL_RESPONSE","M_POLL_END"],"sources":["../../src/@types/polls.ts"],"sourcesContent":["/*\nCopyright 2022 - 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type EitherAnd, UnstableValue } from \"matrix-events-sdk\";\n\nimport {\n type ExtensibleAnyMessageEventContent,\n type REFERENCE_RELATION,\n type RelatesToRelationship,\n type TSNamespace,\n} from \"./extensible_events.ts\";\nimport { type EmptyObject } from \"./common.ts\";\n\n/**\n * Identifier for a disclosed poll.\n */\nexport const M_POLL_KIND_DISCLOSED = new UnstableValue(\"m.poll.disclosed\", \"org.matrix.msc3381.poll.disclosed\");\n\n/**\n * Identifier for an undisclosed poll.\n */\nexport const M_POLL_KIND_UNDISCLOSED = new UnstableValue(\"m.poll.undisclosed\", \"org.matrix.msc3381.poll.undisclosed\");\n\n/**\n * Any poll kind.\n */\nexport type PollKind = TSNamespace<typeof M_POLL_KIND_DISCLOSED> | TSNamespace<typeof M_POLL_KIND_UNDISCLOSED> | string;\n\n/**\n * Known poll kind namespaces.\n */\nexport type KnownPollKind = typeof M_POLL_KIND_DISCLOSED | typeof M_POLL_KIND_UNDISCLOSED;\n\n/**\n * The namespaced value for m.poll.start\n */\nexport const M_POLL_START = new UnstableValue(\"m.poll.start\", \"org.matrix.msc3381.poll.start\");\n\n/**\n * The m.poll.start type within event content\n */\nexport type PollStartSubtype = {\n question: ExtensibleAnyMessageEventContent;\n kind: PollKind;\n max_selections?: number; // default 1, always positive\n answers: PollAnswer[];\n};\n\n/**\n * A poll answer.\n */\nexport type PollAnswer = ExtensibleAnyMessageEventContent & { id: string };\n\n/**\n * The event definition for an m.poll.start event (in content)\n */\nexport type PollStartEvent = EitherAnd<\n { [M_POLL_START.name]: PollStartSubtype },\n { [M_POLL_START.altName]: PollStartSubtype }\n>;\n\n/**\n * The content for an m.poll.start event\n */\nexport type PollStartEventContent = PollStartEvent & ExtensibleAnyMessageEventContent;\n\n/**\n * The namespaced value for m.poll.response\n */\nexport const M_POLL_RESPONSE = new UnstableValue(\"m.poll.response\", \"org.matrix.msc3381.poll.response\");\n\n/**\n * The m.poll.response type within event content\n */\nexport type PollResponseSubtype = {\n answers: string[];\n};\n\n/**\n * The event definition for an m.poll.response event (in content)\n */\nexport type PollResponseEvent = EitherAnd<\n { [M_POLL_RESPONSE.name]: PollResponseSubtype },\n { [M_POLL_RESPONSE.altName]: PollResponseSubtype }\n>;\n\n/**\n * The content for an m.poll.response event\n */\nexport type PollResponseEventContent = PollResponseEvent & RelatesToRelationship<typeof REFERENCE_RELATION>;\n\n/**\n * The namespaced value for m.poll.end\n */\nexport const M_POLL_END = new UnstableValue(\"m.poll.end\", \"org.matrix.msc3381.poll.end\");\n\n/**\n * The event definition for an m.poll.end event (in content)\n */\nexport type PollEndEvent = EitherAnd<{ [M_POLL_END.name]: EmptyObject }, { [M_POLL_END.altName]: EmptyObject }>;\n\n/**\n * The content for an m.poll.end event\n */\nexport type PollEndEventContent = PollEndEvent &\n RelatesToRelationship<typeof REFERENCE_RELATION> &\n ExtensibleAnyMessageEventContent;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAyBA,aAAa,QAAQ,mBAAmB;AAUjE;AACA;AACA;AACA,OAAO,IAAMC,qBAAqB,GAAG,IAAID,aAAa,CAAC,kBAAkB,EAAE,mCAAmC,CAAC;;AAE/G;AACA;AACA;AACA,OAAO,IAAME,uBAAuB,GAAG,IAAIF,aAAa,CAAC,oBAAoB,EAAE,qCAAqC,CAAC;;AAErH;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,IAAMG,YAAY,GAAG,IAAIH,aAAa,CAAC,cAAc,EAAE,+BAA+B,CAAC;;AAE9F;AACA;AACA;;AAQA;AACA;AACA;;AAGA;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,IAAMI,eAAe,GAAG,IAAIJ,aAAa,CAAC,iBAAiB,EAAE,kCAAkC,CAAC;;AAEvG;AACA;AACA;;AAKA;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,IAAMK,UAAU,GAAG,IAAIL,aAAa,CAAC,YAAY,EAAE,6BAA6B,CAAC;;AAExF;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { AuthDict } from "../interactive-auth.ts";
1
+ import { type AuthDict } from "../interactive-auth.ts";
2
2
  /**
3
3
  * The request body of a call to `POST /_matrix/client/v3/register`.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../src/@types/registration.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../src/@types/registration.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"registration.js","names":[],"sources":["../../src/@types/registration.ts"],"sourcesContent":["/*\nCopyright 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { AuthDict } from \"../interactive-auth.ts\";\n\n/**\n * The request body of a call to `POST /_matrix/client/v3/register`.\n *\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3register\n */\nexport interface RegisterRequest {\n /**\n * Additional authentication information for the user-interactive authentication API.\n * Note that this information is not used to define how the registered user should be authenticated,\n * but is instead used to authenticate the register call itself.\n */\n auth?: AuthDict;\n /**\n * The basis for the localpart of the desired Matrix ID.\n * If omitted, the homeserver MUST generate a Matrix ID local part.\n */\n username?: string;\n /**\n * The desired password for the account.\n */\n password?: string;\n /**\n * If true, the client supports refresh tokens.\n */\n refresh_token?: boolean;\n /**\n * If true, an access_token and device_id should not be returned from this call, therefore preventing an automatic login.\n * Defaults to false.\n */\n inhibit_login?: boolean;\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 * Guest users can also upgrade their account by going through the ordinary register flow,\n * but specifying the additional POST parameter guest_access_token containing the guest’s access token.\n * They are also required to specify the username parameter to the value of the local part of their username,\n * which is otherwise optional.\n * @see https://spec.matrix.org/v1.10/client-server-api/#guest-access\n */\n guest_access_token?: string;\n}\n\n/**\n * The result of a successful call to `POST /_matrix/client/v3/register`.\n *\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3register\n */\nexport interface RegisterResponse {\n /**\n * The fully-qualified Matrix user ID (MXID) that has been registered.\n */\n user_id: string;\n /**\n * An access token for the account.\n * This access token can then be used to authorize other requests.\n * Required if the inhibit_login option is false.\n */\n access_token?: string;\n /**\n * ID of the registered device.\n * Will be the same as the corresponding parameter in the request, if one was specified.\n * Required if the inhibit_login option is false.\n */\n device_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 * Omitted if the inhibit_login option is true.\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 * Omitted if the inhibit_login option is true.\n */\n refresh_token?: string;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"registration.js","names":[],"sources":["../../src/@types/registration.ts"],"sourcesContent":["/*\nCopyright 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type AuthDict } from \"../interactive-auth.ts\";\n\n/**\n * The request body of a call to `POST /_matrix/client/v3/register`.\n *\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3register\n */\nexport interface RegisterRequest {\n /**\n * Additional authentication information for the user-interactive authentication API.\n * Note that this information is not used to define how the registered user should be authenticated,\n * but is instead used to authenticate the register call itself.\n */\n auth?: AuthDict;\n /**\n * The basis for the localpart of the desired Matrix ID.\n * If omitted, the homeserver MUST generate a Matrix ID local part.\n */\n username?: string;\n /**\n * The desired password for the account.\n */\n password?: string;\n /**\n * If true, the client supports refresh tokens.\n */\n refresh_token?: boolean;\n /**\n * If true, an access_token and device_id should not be returned from this call, therefore preventing an automatic login.\n * Defaults to false.\n */\n inhibit_login?: boolean;\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 * Guest users can also upgrade their account by going through the ordinary register flow,\n * but specifying the additional POST parameter guest_access_token containing the guest’s access token.\n * They are also required to specify the username parameter to the value of the local part of their username,\n * which is otherwise optional.\n * @see https://spec.matrix.org/v1.10/client-server-api/#guest-access\n */\n guest_access_token?: string;\n}\n\n/**\n * The result of a successful call to `POST /_matrix/client/v3/register`.\n *\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3register\n */\nexport interface RegisterResponse {\n /**\n * The fully-qualified Matrix user ID (MXID) that has been registered.\n */\n user_id: string;\n /**\n * An access token for the account.\n * This access token can then be used to authorize other requests.\n * Required if the inhibit_login option is false.\n */\n access_token?: string;\n /**\n * ID of the registered device.\n * Will be the same as the corresponding parameter in the request, if one was specified.\n * Required if the inhibit_login option is false.\n */\n device_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 * Omitted if the inhibit_login option is true.\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 * Omitted if the inhibit_login option is true.\n */\n refresh_token?: string;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,11 +1,11 @@
1
- import { IContent, IEvent } from "../models/event.ts";
2
- import { Preset, Visibility } from "./partials.ts";
3
- import { IEventWithRoomId, SearchKey } from "./search.ts";
4
- import { IRoomEventFilter } from "../filter.ts";
5
- import { Direction } from "../models/event-timeline.ts";
6
- import { PushRuleAction } from "./PushRules.ts";
7
- import { IRoomEvent } from "../sync-accumulator.ts";
8
- import { EventType, RelationType, RoomType } from "./event.ts";
1
+ import { type IContent, type IEvent } from "../models/event.ts";
2
+ import { type Preset, type Visibility } from "./partials.ts";
3
+ import { type IEventWithRoomId, type SearchKey } from "./search.ts";
4
+ import { type IRoomEventFilter } from "../filter.ts";
5
+ import { type Direction } from "../models/event-timeline.ts";
6
+ import { type PushRuleAction } from "./PushRules.ts";
7
+ import { type IRoomEvent } from "../sync-accumulator.ts";
8
+ import { type EventType, type RelationType, type RoomType } from "./event.ts";
9
9
  export interface IJoinRoomOpts {
10
10
  /**
11
11
  * True to do a room initial sync on the resulting
@@ -1 +1 @@
1
- {"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../src/@types/requests.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,c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AC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,aAAa,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC5B,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE;QACF,CAAC,KAAK,EAAE,MAAM,GAAG;YACb,KAAK,EAAE,MAAM,CAAC;SACjB,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,eAAgB,SAAQ,aAAa;IAClD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"requests.js","names":["UpdateDelayedEventAction"],"sources":["../../src/@types/requests.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { IContent, IEvent } from \"../models/event.ts\";\nimport { Preset, Visibility } from \"./partials.ts\";\nimport { IEventWithRoomId, SearchKey } from \"./search.ts\";\nimport { IRoomEventFilter } from \"../filter.ts\";\nimport { Direction } from \"../models/event-timeline.ts\";\nimport { PushRuleAction } from \"./PushRules.ts\";\nimport { IRoomEvent } from \"../sync-accumulator.ts\";\nimport { EventType, RelationType, RoomType } from \"./event.ts\";\n\n// allow camelcase as these are things that go onto the wire\n/* eslint-disable camelcase */\n\nexport interface IJoinRoomOpts {\n /**\n * True to do a room initial sync on the resulting\n * room. If false, the <strong>returned Room object will have no current state.\n * </strong> Default: true.\n */\n syncRoom?: boolean;\n\n /**\n * If the caller has a keypair 3pid invite, the signing URL is passed in this parameter.\n */\n inviteSignUrl?: string;\n\n /**\n * The server names to try and join through in addition to those that are automatically chosen.\n */\n viaServers?: string[];\n}\n\nexport interface KnockRoomOpts {\n /**\n * The reason for the knock.\n */\n reason?: string;\n\n /**\n * The server names to try and knock through in addition to those that are automatically chosen.\n */\n viaServers?: string | string[];\n}\n\nexport interface IRedactOpts {\n reason?: string;\n /**\n * If specified, then any events which relate to the event being redacted with\n * any of the relationship types listed will also be redacted.\n * Provide a \"*\" list item to tell the server to redact relations of any type.\n *\n * <b>Raises an Error if the server does not support it.</b>\n * Check for server-side support before using this param with\n * <code>client.canSupport.get(Feature.RelationBasedRedactions)</code>.\n * {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}\n */\n with_rel_types?: Array<RelationType | \"*\">;\n}\n\nexport interface ISendEventResponse {\n event_id: string;\n}\n\nexport type TimeoutDelay = {\n delay: number;\n};\n\nexport type ParentDelayId = {\n parent_delay_id: string;\n};\n\nexport type SendTimeoutDelayedEventRequestOpts = TimeoutDelay & Partial<ParentDelayId>;\nexport type SendActionDelayedEventRequestOpts = ParentDelayId;\n\nexport type SendDelayedEventRequestOpts = SendTimeoutDelayedEventRequestOpts | SendActionDelayedEventRequestOpts;\n\nexport type SendDelayedEventResponse = {\n delay_id: string;\n};\n\nexport enum UpdateDelayedEventAction {\n Cancel = \"cancel\",\n Restart = \"restart\",\n Send = \"send\",\n}\n\nexport type UpdateDelayedEventRequestOpts = SendDelayedEventResponse & {\n action: UpdateDelayedEventAction;\n};\n\ntype DelayedPartialTimelineEvent = {\n room_id: string;\n type: string;\n content: IContent;\n};\n\ntype DelayedPartialStateEvent = DelayedPartialTimelineEvent & {\n state_key: string;\n};\n\ntype DelayedPartialEvent = DelayedPartialTimelineEvent | DelayedPartialStateEvent;\n\nexport type DelayedEventInfo = {\n delayed_events: (DelayedPartialEvent &\n SendDelayedEventResponse &\n SendDelayedEventRequestOpts & {\n running_since: number;\n })[];\n next_batch?: string;\n};\n\nexport interface IPresenceOpts {\n // One of \"online\", \"offline\" or \"unavailable\"\n presence: \"online\" | \"offline\" | \"unavailable\";\n // The status message to attach.\n status_msg?: string;\n}\n\nexport interface IPaginateOpts {\n // true to fill backwards, false to go forwards\n backwards?: boolean;\n // number of events to request\n limit?: number;\n}\n\nexport interface IGuestAccessOpts {\n /**\n * True to allow guests to join this room. This\n * implicitly gives guests write access. If false or not given, guests are\n * explicitly forbidden from joining the room.\n */\n allowJoin: boolean;\n /**\n * True to set history visibility to\n * be world_readable. This gives guests read access *from this point forward*.\n * If false or not given, history visibility is not modified.\n */\n allowRead: boolean;\n}\n\nexport interface ISearchOpts {\n keys?: SearchKey[];\n query: string;\n}\n\nexport interface IEventSearchOpts {\n // a JSON filter object to pass in the request\n filter?: IRoomEventFilter;\n // the term to search for\n term: string;\n}\n\nexport interface IInvite3PID {\n id_server: string;\n id_access_token?: string; // this gets injected by the js-sdk\n medium: string;\n address: string;\n}\n\nexport interface ICreateRoomStateEvent {\n type: string;\n state_key?: string; // defaults to an empty string\n content: IContent;\n}\n\nexport interface ICreateRoomOpts {\n // The alias localpart to assign to this room.\n room_alias_name?: string;\n // Either 'public' or 'private'.\n visibility?: Visibility;\n // The name to give this room.\n name?: string;\n // The topic to give this room.\n topic?: string;\n preset?: Preset;\n power_level_content_override?: {\n ban?: number;\n events?: Record<EventType | string, number>;\n events_default?: number;\n invite?: number;\n kick?: number;\n notifications?: Record<string, number>;\n redact?: number;\n state_default?: number;\n users?: Record<string, number>;\n users_default?: number;\n };\n creation_content?: object;\n initial_state?: ICreateRoomStateEvent[];\n // A list of user IDs to invite to this room.\n invite?: string[];\n invite_3pid?: IInvite3PID[];\n is_direct?: boolean;\n room_version?: string;\n}\n\nexport interface IRoomDirectoryOptions {\n /**\n * The remote server to query for the room list.\n * Optional. If unspecified, get the local homeserver's public room list.\n */\n server?: string;\n /**\n * Maximum number of entries to return\n */\n limit?: number;\n /**\n * Token to paginate from\n */\n since?: string;\n\n /** Filter parameters */\n filter?: {\n // String to search for\n generic_search_term?: string;\n room_types?: Array<RoomType | null>;\n };\n include_all_networks?: boolean;\n third_party_instance_id?: string;\n}\n\nexport interface IAddThreePidOnlyBody {\n auth?: {\n type: string;\n session?: string;\n };\n client_secret: string;\n sid: string;\n}\n\nexport interface IBindThreePidBody {\n client_secret: string;\n id_server: string;\n // Some older identity servers have no auth enabled\n id_access_token: string | null;\n sid: string;\n}\n\nexport interface IRelationsRequestOpts {\n from?: string;\n to?: string;\n limit?: number;\n dir?: Direction;\n recurse?: boolean; // MSC3981 Relations Recursion https://github.com/matrix-org/matrix-spec-proposals/pull/3981\n}\n\nexport interface IRelationsResponse {\n chunk: IEvent[];\n next_batch?: string;\n prev_batch?: string;\n}\n\nexport interface IContextResponse {\n end: string;\n start: string;\n state: IEventWithRoomId[];\n events_before: IEventWithRoomId[];\n events_after: IEventWithRoomId[];\n event: IEventWithRoomId;\n}\n\nexport interface IEventsResponse {\n chunk: IEventWithRoomId[];\n end: string;\n start: string;\n}\n\nexport interface INotification {\n actions: PushRuleAction[];\n event: IRoomEvent;\n profile_tag?: string;\n read: boolean;\n room_id: string;\n ts: number;\n}\n\nexport interface INotificationsResponse {\n next_token: string;\n notifications: INotification[];\n}\n\nexport interface IFilterResponse {\n filter_id: string;\n}\n\nexport interface ITagsResponse {\n tags: {\n [tagId: string]: {\n order: number;\n };\n };\n}\n\nexport interface IStatusResponse extends IPresenceOpts {\n currently_active?: boolean;\n last_active_ago?: number;\n}\n\n/* eslint-enable camelcase */\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;;AAqEA,WAAYA,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;;AA0NpC","ignoreList":[]}
1
+ {"version":3,"file":"requests.js","names":["UpdateDelayedEventAction"],"sources":["../../src/@types/requests.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type IContent, type IEvent } from \"../models/event.ts\";\nimport { type Preset, type Visibility } from \"./partials.ts\";\nimport { type IEventWithRoomId, type SearchKey } from \"./search.ts\";\nimport { type IRoomEventFilter } from \"../filter.ts\";\nimport { type Direction } from \"../models/event-timeline.ts\";\nimport { type PushRuleAction } from \"./PushRules.ts\";\nimport { type IRoomEvent } from \"../sync-accumulator.ts\";\nimport { type EventType, type RelationType, type RoomType } from \"./event.ts\";\n\n// allow camelcase as these are things that go onto the wire\n/* eslint-disable camelcase */\n\nexport interface IJoinRoomOpts {\n /**\n * True to do a room initial sync on the resulting\n * room. If false, the <strong>returned Room object will have no current state.\n * </strong> Default: true.\n */\n syncRoom?: boolean;\n\n /**\n * If the caller has a keypair 3pid invite, the signing URL is passed in this parameter.\n */\n inviteSignUrl?: string;\n\n /**\n * The server names to try and join through in addition to those that are automatically chosen.\n */\n viaServers?: string[];\n}\n\nexport interface KnockRoomOpts {\n /**\n * The reason for the knock.\n */\n reason?: string;\n\n /**\n * The server names to try and knock through in addition to those that are automatically chosen.\n */\n viaServers?: string | string[];\n}\n\nexport interface IRedactOpts {\n reason?: string;\n /**\n * If specified, then any events which relate to the event being redacted with\n * any of the relationship types listed will also be redacted.\n * Provide a \"*\" list item to tell the server to redact relations of any type.\n *\n * <b>Raises an Error if the server does not support it.</b>\n * Check for server-side support before using this param with\n * <code>client.canSupport.get(Feature.RelationBasedRedactions)</code>.\n * {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}\n */\n with_rel_types?: Array<RelationType | \"*\">;\n}\n\nexport interface ISendEventResponse {\n event_id: string;\n}\n\nexport type TimeoutDelay = {\n delay: number;\n};\n\nexport type ParentDelayId = {\n parent_delay_id: string;\n};\n\nexport type SendTimeoutDelayedEventRequestOpts = TimeoutDelay & Partial<ParentDelayId>;\nexport type SendActionDelayedEventRequestOpts = ParentDelayId;\n\nexport type SendDelayedEventRequestOpts = SendTimeoutDelayedEventRequestOpts | SendActionDelayedEventRequestOpts;\n\nexport type SendDelayedEventResponse = {\n delay_id: string;\n};\n\nexport enum UpdateDelayedEventAction {\n Cancel = \"cancel\",\n Restart = \"restart\",\n Send = \"send\",\n}\n\nexport type UpdateDelayedEventRequestOpts = SendDelayedEventResponse & {\n action: UpdateDelayedEventAction;\n};\n\ntype DelayedPartialTimelineEvent = {\n room_id: string;\n type: string;\n content: IContent;\n};\n\ntype DelayedPartialStateEvent = DelayedPartialTimelineEvent & {\n state_key: string;\n};\n\ntype DelayedPartialEvent = DelayedPartialTimelineEvent | DelayedPartialStateEvent;\n\nexport type DelayedEventInfo = {\n delayed_events: (DelayedPartialEvent &\n SendDelayedEventResponse &\n SendDelayedEventRequestOpts & {\n running_since: number;\n })[];\n next_batch?: string;\n};\n\nexport interface IPresenceOpts {\n // One of \"online\", \"offline\" or \"unavailable\"\n presence: \"online\" | \"offline\" | \"unavailable\";\n // The status message to attach.\n status_msg?: string;\n}\n\nexport interface IPaginateOpts {\n // true to fill backwards, false to go forwards\n backwards?: boolean;\n // number of events to request\n limit?: number;\n}\n\nexport interface IGuestAccessOpts {\n /**\n * True to allow guests to join this room. This\n * implicitly gives guests write access. If false or not given, guests are\n * explicitly forbidden from joining the room.\n */\n allowJoin: boolean;\n /**\n * True to set history visibility to\n * be world_readable. This gives guests read access *from this point forward*.\n * If false or not given, history visibility is not modified.\n */\n allowRead: boolean;\n}\n\nexport interface ISearchOpts {\n keys?: SearchKey[];\n query: string;\n}\n\nexport interface IEventSearchOpts {\n // a JSON filter object to pass in the request\n filter?: IRoomEventFilter;\n // the term to search for\n term: string;\n}\n\nexport interface IInvite3PID {\n id_server: string;\n id_access_token?: string; // this gets injected by the js-sdk\n medium: string;\n address: string;\n}\n\nexport interface ICreateRoomStateEvent {\n type: string;\n state_key?: string; // defaults to an empty string\n content: IContent;\n}\n\nexport interface ICreateRoomOpts {\n // The alias localpart to assign to this room.\n room_alias_name?: string;\n // Either 'public' or 'private'.\n visibility?: Visibility;\n // The name to give this room.\n name?: string;\n // The topic to give this room.\n topic?: string;\n preset?: Preset;\n power_level_content_override?: {\n ban?: number;\n events?: Record<EventType | string, number>;\n events_default?: number;\n invite?: number;\n kick?: number;\n notifications?: Record<string, number>;\n redact?: number;\n state_default?: number;\n users?: Record<string, number>;\n users_default?: number;\n };\n creation_content?: object;\n initial_state?: ICreateRoomStateEvent[];\n // A list of user IDs to invite to this room.\n invite?: string[];\n invite_3pid?: IInvite3PID[];\n is_direct?: boolean;\n room_version?: string;\n}\n\nexport interface IRoomDirectoryOptions {\n /**\n * The remote server to query for the room list.\n * Optional. If unspecified, get the local homeserver's public room list.\n */\n server?: string;\n /**\n * Maximum number of entries to return\n */\n limit?: number;\n /**\n * Token to paginate from\n */\n since?: string;\n\n /** Filter parameters */\n filter?: {\n // String to search for\n generic_search_term?: string;\n room_types?: Array<RoomType | null>;\n };\n include_all_networks?: boolean;\n third_party_instance_id?: string;\n}\n\nexport interface IAddThreePidOnlyBody {\n auth?: {\n type: string;\n session?: string;\n };\n client_secret: string;\n sid: string;\n}\n\nexport interface IBindThreePidBody {\n client_secret: string;\n id_server: string;\n // Some older identity servers have no auth enabled\n id_access_token: string | null;\n sid: string;\n}\n\nexport interface IRelationsRequestOpts {\n from?: string;\n to?: string;\n limit?: number;\n dir?: Direction;\n recurse?: boolean; // MSC3981 Relations Recursion https://github.com/matrix-org/matrix-spec-proposals/pull/3981\n}\n\nexport interface IRelationsResponse {\n chunk: IEvent[];\n next_batch?: string;\n prev_batch?: string;\n}\n\nexport interface IContextResponse {\n end: string;\n start: string;\n state: IEventWithRoomId[];\n events_before: IEventWithRoomId[];\n events_after: IEventWithRoomId[];\n event: IEventWithRoomId;\n}\n\nexport interface IEventsResponse {\n chunk: IEventWithRoomId[];\n end: string;\n start: string;\n}\n\nexport interface INotification {\n actions: PushRuleAction[];\n event: IRoomEvent;\n profile_tag?: string;\n read: boolean;\n room_id: string;\n ts: number;\n}\n\nexport interface INotificationsResponse {\n next_token: string;\n notifications: INotification[];\n}\n\nexport interface IFilterResponse {\n filter_id: string;\n}\n\nexport interface ITagsResponse {\n tags: {\n [tagId: string]: {\n order: number;\n };\n };\n}\n\nexport interface IStatusResponse extends IPresenceOpts {\n currently_active?: boolean;\n last_active_ago?: number;\n}\n\n/* eslint-enable camelcase */\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;;AAqEA,WAAYA,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;;AA0NpC","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- import { IRoomEvent, IStateEvent } from "../sync-accumulator.ts";
2
- import { IRoomEventFilter } from "../filter.ts";
3
- import { SearchResult } from "../models/search-result.ts";
1
+ import { type IRoomEvent, type IStateEvent } from "../sync-accumulator.ts";
2
+ import { type IRoomEventFilter } from "../filter.ts";
3
+ import { type SearchResult } from "../models/search-result.ts";
4
4
  export interface IEventWithRoomId extends IRoomEvent {
5
5
  room_id: string;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/@types/search.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAChD,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACtD,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC3B,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,EAAE,cAAc,CAAC;CAC3B;AAED,aAAK,QAAQ;IACT,MAAM,YAAY;IAClB,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE;QAAE,CAAC,MAAM,EAAE,MAAM,GAAG,qBAAqB,EAAE,CAAA;KAAE,CAAC;IACtD,MAAM,CAA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AK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","names":["GroupKey","SearchOrderBy"],"sources":["../../src/@types/search.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Types relating to the /search API\n\nimport { IRoomEvent, IStateEvent } from \"../sync-accumulator.ts\";\nimport { IRoomEventFilter } from \"../filter.ts\";\nimport { SearchResult } from \"../models/search-result.ts\";\n\n/* eslint-disable camelcase */\nexport interface IEventWithRoomId extends IRoomEvent {\n room_id: string;\n}\n\nexport interface IStateEventWithRoomId extends IStateEvent {\n room_id: string;\n}\n\nexport interface IMatrixProfile {\n avatar_url?: string;\n displayname?: string;\n}\n\nexport interface IResultContext {\n events_before: IEventWithRoomId[];\n events_after: IEventWithRoomId[];\n profile_info: Record<string, IMatrixProfile>;\n start?: string;\n end?: string;\n}\n\nexport interface ISearchResult {\n rank: number;\n result: IEventWithRoomId;\n context: IResultContext;\n}\n\nenum GroupKey {\n RoomId = \"room_id\",\n Sender = \"sender\",\n}\n\nexport interface IResultRoomEvents {\n count?: number;\n highlights?: string[];\n results?: ISearchResult[];\n state?: { [roomId: string]: IStateEventWithRoomId[] };\n groups?: {\n [groupKey in GroupKey]: {\n [value: string]: {\n next_batch?: string;\n order: number;\n results: string[];\n };\n };\n };\n next_batch?: string;\n}\n\ninterface IResultCategories {\n room_events: IResultRoomEvents;\n}\n\nexport type SearchKey = \"content.body\" | \"content.name\" | \"content.topic\";\n\nexport enum SearchOrderBy {\n Recent = \"recent\",\n Rank = \"rank\",\n}\n\nexport interface ISearchRequestBody {\n search_categories: {\n room_events: {\n search_term: string;\n keys?: SearchKey[];\n filter?: IRoomEventFilter;\n order_by?: SearchOrderBy;\n event_context?: {\n before_limit?: number;\n after_limit?: number;\n include_profile?: boolean;\n };\n include_state?: boolean;\n groupings?: {\n group_by: {\n key: GroupKey;\n }[];\n };\n };\n };\n}\n\nexport interface ISearchResponse {\n search_categories: IResultCategories;\n}\n\nexport interface ISearchResults {\n _query?: ISearchRequestBody;\n results: SearchResult[];\n highlights: string[];\n count?: number;\n next_batch?: string;\n pendingRequest?: Promise<ISearchResults>;\n abortSignal?: AbortSignal;\n}\n/* eslint-enable camelcase */\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAMA;AAAA,IA4BKA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA,EAARA,QAAQ;AA4Bb,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;;AAwCzB","ignoreList":[]}
1
+ {"version":3,"file":"search.js","names":["GroupKey","SearchOrderBy"],"sources":["../../src/@types/search.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Types relating to the /search API\n\nimport { type IRoomEvent, type IStateEvent } from \"../sync-accumulator.ts\";\nimport { type IRoomEventFilter } from \"../filter.ts\";\nimport { type SearchResult } from \"../models/search-result.ts\";\n\n/* eslint-disable camelcase */\nexport interface IEventWithRoomId extends IRoomEvent {\n room_id: string;\n}\n\nexport interface IStateEventWithRoomId extends IStateEvent {\n room_id: string;\n}\n\nexport interface IMatrixProfile {\n avatar_url?: string;\n displayname?: string;\n}\n\nexport interface IResultContext {\n events_before: IEventWithRoomId[];\n events_after: IEventWithRoomId[];\n profile_info: Record<string, IMatrixProfile>;\n start?: string;\n end?: string;\n}\n\nexport interface ISearchResult {\n rank: number;\n result: IEventWithRoomId;\n context: IResultContext;\n}\n\nenum GroupKey {\n RoomId = \"room_id\",\n Sender = \"sender\",\n}\n\nexport interface IResultRoomEvents {\n count?: number;\n highlights?: string[];\n results?: ISearchResult[];\n state?: { [roomId: string]: IStateEventWithRoomId[] };\n groups?: {\n [groupKey in GroupKey]: {\n [value: string]: {\n next_batch?: string;\n order: number;\n results: string[];\n };\n };\n };\n next_batch?: string;\n}\n\ninterface IResultCategories {\n room_events: IResultRoomEvents;\n}\n\nexport type SearchKey = \"content.body\" | \"content.name\" | \"content.topic\";\n\nexport enum SearchOrderBy {\n Recent = \"recent\",\n Rank = \"rank\",\n}\n\nexport interface ISearchRequestBody {\n search_categories: {\n room_events: {\n search_term: string;\n keys?: SearchKey[];\n filter?: IRoomEventFilter;\n order_by?: SearchOrderBy;\n event_context?: {\n before_limit?: number;\n after_limit?: number;\n include_profile?: boolean;\n };\n include_state?: boolean;\n groupings?: {\n group_by: {\n key: GroupKey;\n }[];\n };\n };\n };\n}\n\nexport interface ISearchResponse {\n search_categories: IResultCategories;\n}\n\nexport interface ISearchResults {\n _query?: ISearchRequestBody;\n results: SearchResult[];\n highlights: string[];\n count?: number;\n next_batch?: string;\n pendingRequest?: Promise<ISearchResults>;\n abortSignal?: AbortSignal;\n}\n/* eslint-enable camelcase */\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAMA;AAAA,IA4BKA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA,EAARA,QAAQ;AA4Bb,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;;AAwCzB","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- import { IPublicRoomsChunkRoom } from "../client.ts";
2
- import { RoomType } from "./event.ts";
3
- import { IStrippedState } from "../sync-accumulator.ts";
1
+ import { type IPublicRoomsChunkRoom } from "../client.ts";
2
+ import { type RoomType } from "./event.ts";
3
+ import { type IStrippedState } from "../sync-accumulator.ts";
4
4
  export interface IHierarchyRelation extends IStrippedState {
5
5
  origin_server_ts: number;
6
6
  content: {
@@ -1 +1 @@
1
- {"version":3,"file":"spaces.d.ts","sourceRoot":"","sources":["../../src/@types/spaces.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAKxD,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACL;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;IACzD,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9B,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACxC"}
1
+ {"version":3,"file":"spaces.d.ts","sourceRoot":"","sources":["../../src/@types/spaces.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACL;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;IACzD,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9B,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"spaces.js","names":[],"sources":["../../src/@types/spaces.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { IPublicRoomsChunkRoom } from \"../client.ts\";\nimport { RoomType } from \"./event.ts\";\nimport { IStrippedState } from \"../sync-accumulator.ts\";\n\n// Types relating to Rooms of type `m.space` and related APIs\n\n/* eslint-disable camelcase */\nexport interface IHierarchyRelation extends IStrippedState {\n origin_server_ts: number;\n content: {\n order?: string;\n suggested?: boolean;\n via?: string[];\n };\n}\n\nexport interface IHierarchyRoom extends IPublicRoomsChunkRoom {\n room_type?: RoomType | string;\n children_state: IHierarchyRelation[];\n}\n/* eslint-enable camelcase */\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"spaces.js","names":[],"sources":["../../src/@types/spaces.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type IPublicRoomsChunkRoom } from \"../client.ts\";\nimport { type RoomType } from \"./event.ts\";\nimport { type IStrippedState } from \"../sync-accumulator.ts\";\n\n// Types relating to Rooms of type `m.space` and related APIs\n\n/* eslint-disable camelcase */\nexport interface IHierarchyRelation extends IStrippedState {\n origin_server_ts: number;\n content: {\n order?: string;\n suggested?: boolean;\n via?: string[];\n };\n}\n\nexport interface IHierarchyRoom extends IPublicRoomsChunkRoom {\n room_type?: RoomType | string;\n children_state: IHierarchyRelation[];\n}\n/* eslint-enable camelcase */\n"],"mappings":"","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- import { RoomType } from "./event.ts";
2
- import { GuestAccess, HistoryVisibility, JoinRule, RestrictedAllowType } from "./partials.ts";
3
- import { ImageInfo } from "./media.ts";
4
- import { PolicyRecommendation } from "../models/invites-ignorer.ts";
1
+ import { type RoomType } from "./event.ts";
2
+ import { type GuestAccess, type HistoryVisibility, type JoinRule, type RestrictedAllowType } from "./partials.ts";
3
+ import { type ImageInfo } from "./media.ts";
4
+ import { type PolicyRecommendation } from "../models/invites-ignorer.ts";
5
5
  export interface RoomCanonicalAliasEventContent {
6
6
  alias?: string;
7
7
  alt_aliases?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"state_events.d.ts","sourceRoot":"","sources":["../../src/@types/state_events.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YA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ED,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,oBAAoB,CAAC;CACxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"state_events.js","names":[],"sources":["../../src/@types/state_events.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { RoomType } from \"./event.ts\";\nimport { GuestAccess, HistoryVisibility, JoinRule, RestrictedAllowType } from \"./partials.ts\";\nimport { ImageInfo } from \"./media.ts\";\nimport { PolicyRecommendation } from \"../models/invites-ignorer.ts\";\n\nexport interface RoomCanonicalAliasEventContent {\n alias?: string;\n alt_aliases?: string[];\n}\n\nexport interface RoomCreateEventContent {\n \"creator\"?: string;\n \"m.federate\"?: boolean;\n \"predecessor\"?: {\n event_id: string;\n room_id: string;\n };\n \"room_version\"?: string;\n \"type\"?: RoomType;\n}\n\nexport interface RoomJoinRulesEventContent {\n join_rule: JoinRule;\n allow?: {\n room_id: string;\n type: RestrictedAllowType;\n }[];\n}\n\nexport interface RoomMemberEventContent {\n avatar_url?: string;\n displayname?: string;\n is_direct?: boolean;\n join_authorised_via_users_server?: string;\n membership: \"invite\" | \"join\" | \"knock\" | \"leave\" | \"ban\";\n reason?: string;\n third_party_invite?: {\n display_name: string;\n signed: {\n mxid: string;\n token: string;\n ts: number;\n };\n };\n}\n\nexport interface RoomThirdPartyInviteEventContent {\n display_name: string;\n key_validity_url: string;\n public_key: string;\n public_keys: {\n key_validity_url?: string;\n public_key: string;\n }[];\n}\n\nexport interface RoomPowerLevelsEventContent {\n ban?: number;\n events?: { [eventType: string]: number };\n events_default?: number;\n invite?: number;\n kick?: number;\n notifications?: {\n room?: number;\n };\n redact?: number;\n state_default?: number;\n users?: { [userId: string]: number };\n users_default?: number;\n}\n\nexport interface RoomNameEventContent {\n name: string;\n}\n\nexport interface RoomTopicEventContent {\n topic: string | undefined | null;\n}\n\nexport interface RoomAvatarEventContent {\n url?: string;\n // The spec says that an encrypted file can be used for the thumbnail but this isn't true\n // https://github.com/matrix-org/matrix-spec/issues/562 so omit those fields\n info?: Omit<ImageInfo, \"thumbnail_file\">;\n}\n\nexport interface RoomPinnedEventsEventContent {\n pinned: string[];\n}\n\nexport interface RoomEncryptionEventContent {\n algorithm: \"m.megolm.v1.aes-sha2\";\n rotation_period_ms?: number;\n rotation_period_msgs?: number;\n}\n\nexport interface RoomHistoryVisibilityEventContent {\n history_visibility: HistoryVisibility;\n}\n\nexport interface RoomGuestAccessEventContent {\n guest_access: GuestAccess;\n}\n\nexport interface RoomServerAclEventContent {\n allow?: string[];\n allow_ip_literals?: boolean;\n deny?: string[];\n}\n\nexport interface RoomTombstoneEventContent {\n body: string;\n replacement_room: string;\n}\n\nexport interface SpaceChildEventContent {\n order?: string;\n suggested?: boolean;\n via?: string[];\n}\n\nexport interface SpaceParentEventContent {\n canonical?: boolean;\n via?: string[];\n}\n\nexport interface PolicyRuleEventContent {\n entity: string;\n reason: string;\n recommendation: PolicyRecommendation;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"state_events.js","names":[],"sources":["../../src/@types/state_events.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type RoomType } from \"./event.ts\";\nimport { type GuestAccess, type HistoryVisibility, type JoinRule, type RestrictedAllowType } from \"./partials.ts\";\nimport { type ImageInfo } from \"./media.ts\";\nimport { type PolicyRecommendation } from \"../models/invites-ignorer.ts\";\n\nexport interface RoomCanonicalAliasEventContent {\n alias?: string;\n alt_aliases?: string[];\n}\n\nexport interface RoomCreateEventContent {\n \"creator\"?: string;\n \"m.federate\"?: boolean;\n \"predecessor\"?: {\n event_id: string;\n room_id: string;\n };\n \"room_version\"?: string;\n \"type\"?: RoomType;\n}\n\nexport interface RoomJoinRulesEventContent {\n join_rule: JoinRule;\n allow?: {\n room_id: string;\n type: RestrictedAllowType;\n }[];\n}\n\nexport interface RoomMemberEventContent {\n avatar_url?: string;\n displayname?: string;\n is_direct?: boolean;\n join_authorised_via_users_server?: string;\n membership: \"invite\" | \"join\" | \"knock\" | \"leave\" | \"ban\";\n reason?: string;\n third_party_invite?: {\n display_name: string;\n signed: {\n mxid: string;\n token: string;\n ts: number;\n };\n };\n}\n\nexport interface RoomThirdPartyInviteEventContent {\n display_name: string;\n key_validity_url: string;\n public_key: string;\n public_keys: {\n key_validity_url?: string;\n public_key: string;\n }[];\n}\n\nexport interface RoomPowerLevelsEventContent {\n ban?: number;\n events?: { [eventType: string]: number };\n events_default?: number;\n invite?: number;\n kick?: number;\n notifications?: {\n room?: number;\n };\n redact?: number;\n state_default?: number;\n users?: { [userId: string]: number };\n users_default?: number;\n}\n\nexport interface RoomNameEventContent {\n name: string;\n}\n\nexport interface RoomTopicEventContent {\n topic: string | undefined | null;\n}\n\nexport interface RoomAvatarEventContent {\n url?: string;\n // The spec says that an encrypted file can be used for the thumbnail but this isn't true\n // https://github.com/matrix-org/matrix-spec/issues/562 so omit those fields\n info?: Omit<ImageInfo, \"thumbnail_file\">;\n}\n\nexport interface RoomPinnedEventsEventContent {\n pinned: string[];\n}\n\nexport interface RoomEncryptionEventContent {\n algorithm: \"m.megolm.v1.aes-sha2\";\n rotation_period_ms?: number;\n rotation_period_msgs?: number;\n}\n\nexport interface RoomHistoryVisibilityEventContent {\n history_visibility: HistoryVisibility;\n}\n\nexport interface RoomGuestAccessEventContent {\n guest_access: GuestAccess;\n}\n\nexport interface RoomServerAclEventContent {\n allow?: string[];\n allow_ip_literals?: boolean;\n deny?: string[];\n}\n\nexport interface RoomTombstoneEventContent {\n body: string;\n replacement_room: string;\n}\n\nexport interface SpaceChildEventContent {\n order?: string;\n suggested?: boolean;\n via?: string[];\n}\n\nexport interface SpaceParentEventContent {\n canonical?: boolean;\n via?: string[];\n}\n\nexport interface PolicyRuleEventContent {\n entity: string;\n reason: string;\n recommendation: PolicyRecommendation;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { IdServerUnbindResult } from "./partials.ts";
1
+ import { type IdServerUnbindResult } from "./partials.ts";
2
2
  export interface ISynapseAdminWhoisResponse {
3
3
  user_id: string;
4
4
  devices: {
@@ -1 +1 @@
1
- {"version":3,"file":"synapse.d.ts","sourceRoot":"","sources":["../../src/@types/synapse.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAKrD,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACL,CAAC,QAAQ,EAAE,MAAM,GAAG;YAChB,QAAQ,EAAE;gBACN,WAAW,EAAE;oBACT,EAAE,EAAE,MAAM,CAAC;oBACX,SAAS,EAAE,MAAM,CAAC;oBAClB,UAAU,EAAE,MAAM,CAAC;iBACtB,EAAE,CAAC;aACP,EAAE,CAAC;SACP,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,+BAA+B;IAC5C,uBAAuB,EAAE,oBAAoB,CAAC;CACjD"}
1
+ {"version":3,"file":"synapse.d.ts","sourceRoot":"","sources":["../../src/@types/synapse.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAK1D,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACL,CAAC,QAAQ,EAAE,MAAM,GAAG;YAChB,QAAQ,EAAE;gBACN,WAAW,EAAE;oBACT,EAAE,EAAE,MAAM,CAAC;oBACX,SAAS,EAAE,MAAM,CAAC;oBAClB,UAAU,EAAE,MAAM,CAAC;iBACtB,EAAE,CAAC;aACP,EAAE,CAAC;SACP,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,+BAA+B;IAC5C,uBAAuB,EAAE,oBAAoB,CAAC;CACjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"synapse.js","names":[],"sources":["../../src/@types/synapse.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { IdServerUnbindResult } from \"./partials.ts\";\n\n// Types relating to Synapse Admin APIs\n\n/* eslint-disable camelcase */\nexport interface ISynapseAdminWhoisResponse {\n user_id: string;\n devices: {\n [deviceId: string]: {\n sessions: {\n connections: {\n ip: string;\n last_seen: number; // millis since epoch\n user_agent: string;\n }[];\n }[];\n };\n };\n}\n\nexport interface ISynapseAdminDeactivateResponse {\n id_server_unbind_result: IdServerUnbindResult;\n}\n/* eslint-enable camelcase */\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"synapse.js","names":[],"sources":["../../src/@types/synapse.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type IdServerUnbindResult } from \"./partials.ts\";\n\n// Types relating to Synapse Admin APIs\n\n/* eslint-disable camelcase */\nexport interface ISynapseAdminWhoisResponse {\n user_id: string;\n devices: {\n [deviceId: string]: {\n sessions: {\n connections: {\n ip: string;\n last_seen: number; // millis since epoch\n user_agent: string;\n }[];\n }[];\n };\n };\n}\n\nexport interface ISynapseAdminDeactivateResponse {\n id_server_unbind_result: IdServerUnbindResult;\n}\n/* eslint-enable camelcase */\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import { UnstableValue } from "../NamespacedValue.ts";
2
- import { IMessageRendering } from "./extensible_events.ts";
2
+ import { type IMessageRendering } from "./extensible_events.ts";
3
3
  /**
4
4
  * Extensible topic event type based on MSC3765
5
5
  * https://github.com/matrix-org/matrix-spec-proposals/pull/3765
@@ -1 +1 @@
1
- {"version":3,"file":"topic.d.ts","sourceRoot":"","sources":["../../src/@types/topic.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,i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;AAE1F;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACpC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"topic.js","names":["UnstableValue","M_TOPIC"],"sources":["../../src/@types/topic.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*/\nimport { UnstableValue } from \"../NamespacedValue.ts\";\nimport { IMessageRendering } from \"./extensible_events.ts\";\n\n/**\n * Extensible topic event type based on MSC3765\n * https://github.com/matrix-org/matrix-spec-proposals/pull/3765\n *\n * @example\n * ```\n * {\n * \"type\": \"m.room.topic,\n * \"state_key\": \"\",\n * \"content\": {\n * \"topic\": \"All about **pizza**\",\n * \"m.topic\": [{\n * \"body\": \"All about **pizza**\",\n * \"mimetype\": \"text/plain\",\n * }, {\n * \"body\": \"All about <b>pizza</b>\",\n * \"mimetype\": \"text/html\",\n * }],\n * }\n * }\n * ```\n */\n\n/**\n * The event type for an m.topic event (in content)\n */\nexport const M_TOPIC = new UnstableValue(\"m.topic\", \"org.matrix.msc3765.topic\");\n\n/**\n * The event content for an m.topic event (in content)\n */\nexport type MTopicContent = IMessageRendering[];\n\ntype MTopicStable = { [M_TOPIC.altName]: MTopicContent };\ntype MTopicUnstable = { [M_TOPIC.name]: MTopicContent };\n\n/**\n * The event definition for an m.topic event (in content)\n */\nexport type MTopicEvent = (MTopicStable & MTopicUnstable) | MTopicStable | MTopicUnstable;\n\n/**\n * The event content for an m.room.topic event\n */\nexport type MRoomTopicEventContent = {\n topic: string | null | undefined;\n} & Partial<MTopicEvent>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,uBAAuB;AAGrD;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,OAAO,GAAG,IAAID,aAAa,CAAC,SAAS,EAAE,0BAA0B,CAAC;;AAE/E;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"topic.js","names":["UnstableValue","M_TOPIC"],"sources":["../../src/@types/topic.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*/\nimport { UnstableValue } from \"../NamespacedValue.ts\";\nimport { type IMessageRendering } from \"./extensible_events.ts\";\n\n/**\n * Extensible topic event type based on MSC3765\n * https://github.com/matrix-org/matrix-spec-proposals/pull/3765\n *\n * @example\n * ```\n * {\n * \"type\": \"m.room.topic,\n * \"state_key\": \"\",\n * \"content\": {\n * \"topic\": \"All about **pizza**\",\n * \"m.topic\": [{\n * \"body\": \"All about **pizza**\",\n * \"mimetype\": \"text/plain\",\n * }, {\n * \"body\": \"All about <b>pizza</b>\",\n * \"mimetype\": \"text/html\",\n * }],\n * }\n * }\n * ```\n */\n\n/**\n * The event type for an m.topic event (in content)\n */\nexport const M_TOPIC = new UnstableValue(\"m.topic\", \"org.matrix.msc3765.topic\");\n\n/**\n * The event content for an m.topic event (in content)\n */\nexport type MTopicContent = IMessageRendering[];\n\ntype MTopicStable = { [M_TOPIC.altName]: MTopicContent };\ntype MTopicUnstable = { [M_TOPIC.name]: MTopicContent };\n\n/**\n * The event definition for an m.topic event (in content)\n */\nexport type MTopicEvent = (MTopicStable & MTopicUnstable) | MTopicStable | MTopicUnstable;\n\n/**\n * The event content for an m.room.topic event\n */\nexport type MRoomTopicEventContent = {\n topic: string | null | undefined;\n} & Partial<MTopicEvent>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,uBAAuB;AAGrD;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,OAAO,GAAG,IAAID,aAAa,CAAC,SAAS,EAAE,0BAA0B,CAAC;;AAE/E;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { AuthDict, IAuthData } from "../interactive-auth.ts";
1
+ import { type AuthDict } from "../interactive-auth.ts";
2
2
  /**
3
3
  * Helper type to represent HTTP request body for a UIA enabled endpoint
4
4
  */
@@ -7,6 +7,7 @@ export type UIARequest<T> = T & {
7
7
  };
8
8
  /**
9
9
  * Helper type to represent HTTP response body for a UIA enabled endpoint
10
+ * @deprecated - a successful response for a UIA enabled endpoint is no different, UIA is signalled via an error
10
11
  */
11
- export type UIAResponse<T> = T | IAuthData;
12
+ export type UIAResponse<T> = T;
12
13
  //# sourceMappingURL=uia.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"uia.d.ts","sourceRoot":"","sources":["../../src/@types/uia.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG;IAC5B,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"uia.d.ts","sourceRoot":"","sources":["../../src/@types/uia.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG;IAC5B,IAAI,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"uia.js","names":[],"sources":["../../src/@types/uia.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 { AuthDict, IAuthData } from \"../interactive-auth.ts\";\n\n/**\n * Helper type to represent HTTP request body for a UIA enabled endpoint\n */\nexport type UIARequest<T> = T & {\n auth?: AuthDict;\n};\n\n/**\n * Helper type to represent HTTP response body for a UIA enabled endpoint\n */\nexport type UIAResponse<T> = T | IAuthData;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"uia.js","names":[],"sources":["../../src/@types/uia.ts"],"sourcesContent":["/*\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type AuthDict } from \"../interactive-auth.ts\";\n\n/**\n * Helper type to represent HTTP request body for a UIA enabled endpoint\n */\nexport type UIARequest<T> = T & {\n auth?: AuthDict;\n};\n\n/**\n * Helper type to represent HTTP response body for a UIA enabled endpoint\n * @deprecated - a successful response for a UIA enabled endpoint is no different, UIA is signalled via an error\n */\nexport type UIAResponse<T> = T;\n"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { Optional } from "matrix-events-sdk/lib/types";
1
+ import { type Optional } from "matrix-events-sdk/lib/types";
2
2
  /**
3
3
  * Represents a simple Matrix namespaced value. This will assume that if a stable prefix
4
4
  * is provided that the stable prefix should be used when representing the identifier.
@@ -1 +1 @@
1
- {"version":3,"file":"NamespacedValue.d.ts","sourceRoot":"","sources":["../src/NamespacedValue.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD;;;GAGG;AACH,qBAAa,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM;aAOvC,MAAM,CAAC,GAAE,CAAC,GAAG,IAAI;aACjB,QAAQ,CAAC,EAAE,CAAC;gBALb,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC;gBACtB,MAAM,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC;gBACvB,MAAM,EAAE,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC;IAUxD,IAAW,IAAI,IAAI,CAAC,GAAG,CAAC,CAKvB;IAED,IAAW,OAAO,IAAI,CAAC,GAAG,CAAC,GA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