@wireapp/core 37.5.0 → 38.0.0-beta

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 (458) hide show
  1. package/package.json +9 -8
  2. package/LICENSE +0 -674
  3. package/lib/Account.d.ts +0 -213
  4. package/lib/Account.d.ts.map +0 -1
  5. package/lib/Account.js +0 -543
  6. package/lib/CoreError.d.ts +0 -10
  7. package/lib/CoreError.d.ts.map +0 -1
  8. package/lib/CoreError.js +0 -25
  9. package/lib/account/AccountService.d.ts +0 -8
  10. package/lib/account/AccountService.d.ts.map +0 -1
  11. package/lib/account/AccountService.js +0 -32
  12. package/lib/account/index.d.ts +0 -2
  13. package/lib/account/index.d.ts.map +0 -1
  14. package/lib/account/index.js +0 -35
  15. package/lib/auth/LoginSanitizer.d.ts +0 -6
  16. package/lib/auth/LoginSanitizer.d.ts.map +0 -1
  17. package/lib/auth/LoginSanitizer.js +0 -40
  18. package/lib/auth/index.d.ts +0 -2
  19. package/lib/auth/index.d.ts.map +0 -1
  20. package/lib/auth/index.js +0 -35
  21. package/lib/broadcast/AvailabilityType.d.ts +0 -3
  22. package/lib/broadcast/AvailabilityType.d.ts.map +0 -1
  23. package/lib/broadcast/AvailabilityType.js +0 -20
  24. package/lib/broadcast/BroadcastService.d.ts +0 -21
  25. package/lib/broadcast/BroadcastService.d.ts.map +0 -1
  26. package/lib/broadcast/BroadcastService.js +0 -77
  27. package/lib/broadcast/index.d.ts +0 -3
  28. package/lib/broadcast/index.d.ts.map +0 -1
  29. package/lib/broadcast/index.js +0 -36
  30. package/lib/client/ClientBackendRepository.d.ts +0 -12
  31. package/lib/client/ClientBackendRepository.d.ts.map +0 -1
  32. package/lib/client/ClientBackendRepository.js +0 -42
  33. package/lib/client/ClientDatabaseRepository.d.ts +0 -28
  34. package/lib/client/ClientDatabaseRepository.d.ts.map +0 -1
  35. package/lib/client/ClientDatabaseRepository.js +0 -84
  36. package/lib/client/ClientInfo.d.ts +0 -9
  37. package/lib/client/ClientInfo.d.ts.map +0 -1
  38. package/lib/client/ClientInfo.js +0 -20
  39. package/lib/client/ClientService.d.ts +0 -41
  40. package/lib/client/ClientService.d.ts.map +0 -1
  41. package/lib/client/ClientService.js +0 -102
  42. package/lib/client/index.d.ts +0 -5
  43. package/lib/client/index.d.ts.map +0 -1
  44. package/lib/client/index.js +0 -38
  45. package/lib/connection/ConnectionService.d.ts +0 -12
  46. package/lib/connection/ConnectionService.d.ts.map +0 -1
  47. package/lib/connection/ConnectionService.js +0 -44
  48. package/lib/connection/index.d.ts +0 -2
  49. package/lib/connection/index.d.ts.map +0 -1
  50. package/lib/connection/index.js +0 -35
  51. package/lib/conversation/AbortReason.d.ts +0 -3
  52. package/lib/conversation/AbortReason.d.ts.map +0 -1
  53. package/lib/conversation/AbortReason.js +0 -20
  54. package/lib/conversation/AssetService/AssetService.d.ts +0 -66
  55. package/lib/conversation/AssetService/AssetService.d.ts.map +0 -1
  56. package/lib/conversation/AssetService/AssetService.js +0 -87
  57. package/lib/conversation/AssetService/index.d.ts +0 -2
  58. package/lib/conversation/AssetService/index.d.ts.map +0 -1
  59. package/lib/conversation/AssetService/index.js +0 -35
  60. package/lib/conversation/AssetTransferState.d.ts +0 -5
  61. package/lib/conversation/AssetTransferState.d.ts.map +0 -1
  62. package/lib/conversation/AssetTransferState.js +0 -26
  63. package/lib/conversation/ClientActionType.d.ts +0 -2
  64. package/lib/conversation/ClientActionType.d.ts.map +0 -1
  65. package/lib/conversation/ClientActionType.js +0 -23
  66. package/lib/conversation/ConversationMapper/ConversationMapper.d.ts +0 -8
  67. package/lib/conversation/ConversationMapper/ConversationMapper.d.ts.map +0 -1
  68. package/lib/conversation/ConversationMapper/ConversationMapper.js +0 -57
  69. package/lib/conversation/ConversationService/ConversationService.d.ts +0 -98
  70. package/lib/conversation/ConversationService/ConversationService.d.ts.map +0 -1
  71. package/lib/conversation/ConversationService/ConversationService.js +0 -316
  72. package/lib/conversation/ConversationService/ConversationService.types.d.ts +0 -95
  73. package/lib/conversation/ConversationService/ConversationService.types.d.ts.map +0 -1
  74. package/lib/conversation/ConversationService/ConversationService.types.js +0 -27
  75. package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.d.ts +0 -9
  76. package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.d.ts.map +0 -1
  77. package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.js +0 -34
  78. package/lib/conversation/ConversationService/index.d.ts +0 -3
  79. package/lib/conversation/ConversationService/index.d.ts.map +0 -1
  80. package/lib/conversation/ConversationService/index.js +0 -36
  81. package/lib/conversation/GenericMessageType.d.ts +0 -26
  82. package/lib/conversation/GenericMessageType.d.ts.map +0 -1
  83. package/lib/conversation/GenericMessageType.js +0 -48
  84. package/lib/conversation/MessageTimer/MessageTimer.d.ts +0 -11
  85. package/lib/conversation/MessageTimer/MessageTimer.d.ts.map +0 -1
  86. package/lib/conversation/MessageTimer/MessageTimer.js +0 -53
  87. package/lib/conversation/MessageTimer/index.d.ts +0 -2
  88. package/lib/conversation/MessageTimer/index.d.ts.map +0 -1
  89. package/lib/conversation/MessageTimer/index.js +0 -35
  90. package/lib/conversation/ReactionType.d.ts +0 -5
  91. package/lib/conversation/ReactionType.d.ts.map +0 -1
  92. package/lib/conversation/ReactionType.js +0 -26
  93. package/lib/conversation/content/AssetContent.d.ts +0 -43
  94. package/lib/conversation/content/AssetContent.d.ts.map +0 -1
  95. package/lib/conversation/content/AssetContent.js +0 -20
  96. package/lib/conversation/content/ButtonActionConfirmationContent.d.ts +0 -3
  97. package/lib/conversation/content/ButtonActionConfirmationContent.d.ts.map +0 -1
  98. package/lib/conversation/content/ButtonActionConfirmationContent.js +0 -20
  99. package/lib/conversation/content/ButtonActionContent.d.ts +0 -3
  100. package/lib/conversation/content/ButtonActionContent.d.ts.map +0 -1
  101. package/lib/conversation/content/ButtonActionContent.js +0 -20
  102. package/lib/conversation/content/CallingContent.d.ts +0 -2
  103. package/lib/conversation/content/CallingContent.d.ts.map +0 -1
  104. package/lib/conversation/content/CallingContent.js +0 -20
  105. package/lib/conversation/content/ClearedContent.d.ts +0 -3
  106. package/lib/conversation/content/ClearedContent.d.ts.map +0 -1
  107. package/lib/conversation/content/ClearedContent.js +0 -20
  108. package/lib/conversation/content/ClientActionContent.d.ts +0 -3
  109. package/lib/conversation/content/ClientActionContent.d.ts.map +0 -1
  110. package/lib/conversation/content/ClientActionContent.js +0 -20
  111. package/lib/conversation/content/ClientAddContent.d.ts +0 -5
  112. package/lib/conversation/content/ClientAddContent.d.ts.map +0 -1
  113. package/lib/conversation/content/ClientAddContent.js +0 -20
  114. package/lib/conversation/content/ClientRemoveContent.d.ts +0 -7
  115. package/lib/conversation/content/ClientRemoveContent.d.ts.map +0 -1
  116. package/lib/conversation/content/ClientRemoveContent.js +0 -20
  117. package/lib/conversation/content/CompositeContent.d.ts +0 -3
  118. package/lib/conversation/content/CompositeContent.d.ts.map +0 -1
  119. package/lib/conversation/content/CompositeContent.js +0 -20
  120. package/lib/conversation/content/ConfirmationContent.d.ts +0 -3
  121. package/lib/conversation/content/ConfirmationContent.d.ts.map +0 -1
  122. package/lib/conversation/content/ConfirmationContent.js +0 -20
  123. package/lib/conversation/content/ContentType.d.ts +0 -22
  124. package/lib/conversation/content/ContentType.d.ts.map +0 -1
  125. package/lib/conversation/content/ContentType.js +0 -93
  126. package/lib/conversation/content/ConversationContent.d.ts +0 -4
  127. package/lib/conversation/content/ConversationContent.d.ts.map +0 -1
  128. package/lib/conversation/content/ConversationContent.js +0 -20
  129. package/lib/conversation/content/DeletedContent.d.ts +0 -3
  130. package/lib/conversation/content/DeletedContent.d.ts.map +0 -1
  131. package/lib/conversation/content/DeletedContent.js +0 -20
  132. package/lib/conversation/content/EditedTextContent.d.ts +0 -12
  133. package/lib/conversation/content/EditedTextContent.d.ts.map +0 -1
  134. package/lib/conversation/content/EditedTextContent.js +0 -20
  135. package/lib/conversation/content/FileContent.d.ts +0 -14
  136. package/lib/conversation/content/FileContent.d.ts.map +0 -1
  137. package/lib/conversation/content/FileContent.js +0 -20
  138. package/lib/conversation/content/HiddenContent.d.ts +0 -3
  139. package/lib/conversation/content/HiddenContent.d.ts.map +0 -1
  140. package/lib/conversation/content/HiddenContent.js +0 -20
  141. package/lib/conversation/content/ImageContent.d.ts +0 -8
  142. package/lib/conversation/content/ImageContent.d.ts.map +0 -1
  143. package/lib/conversation/content/ImageContent.js +0 -20
  144. package/lib/conversation/content/KnockContent.d.ts +0 -3
  145. package/lib/conversation/content/KnockContent.d.ts.map +0 -1
  146. package/lib/conversation/content/KnockContent.js +0 -20
  147. package/lib/conversation/content/LinkPreviewContent.d.ts +0 -11
  148. package/lib/conversation/content/LinkPreviewContent.d.ts.map +0 -1
  149. package/lib/conversation/content/LinkPreviewContent.js +0 -20
  150. package/lib/conversation/content/LocationContent.d.ts +0 -10
  151. package/lib/conversation/content/LocationContent.d.ts.map +0 -1
  152. package/lib/conversation/content/LocationContent.js +0 -20
  153. package/lib/conversation/content/MentionContent.d.ts +0 -3
  154. package/lib/conversation/content/MentionContent.d.ts.map +0 -1
  155. package/lib/conversation/content/MentionContent.js +0 -20
  156. package/lib/conversation/content/QuoteContent.d.ts +0 -8
  157. package/lib/conversation/content/QuoteContent.d.ts.map +0 -1
  158. package/lib/conversation/content/QuoteContent.js +0 -20
  159. package/lib/conversation/content/ReactionContent.d.ts +0 -8
  160. package/lib/conversation/content/ReactionContent.d.ts.map +0 -1
  161. package/lib/conversation/content/ReactionContent.js +0 -20
  162. package/lib/conversation/content/TextContent.d.ts +0 -10
  163. package/lib/conversation/content/TextContent.d.ts.map +0 -1
  164. package/lib/conversation/content/TextContent.js +0 -20
  165. package/lib/conversation/content/TweetContent.d.ts +0 -3
  166. package/lib/conversation/content/TweetContent.d.ts.map +0 -1
  167. package/lib/conversation/content/TweetContent.js +0 -20
  168. package/lib/conversation/content/index.d.ts +0 -29
  169. package/lib/conversation/content/index.d.ts.map +0 -1
  170. package/lib/conversation/content/index.js +0 -75
  171. package/lib/conversation/index.d.ts +0 -11
  172. package/lib/conversation/index.d.ts.map +0 -1
  173. package/lib/conversation/index.js +0 -44
  174. package/lib/conversation/message/Message.d.ts +0 -5
  175. package/lib/conversation/message/Message.d.ts.map +0 -1
  176. package/lib/conversation/message/Message.js +0 -20
  177. package/lib/conversation/message/Message.types.d.ts +0 -7
  178. package/lib/conversation/message/Message.types.d.ts.map +0 -1
  179. package/lib/conversation/message/Message.types.js +0 -28
  180. package/lib/conversation/message/MessageBuilder.d.ts +0 -26
  181. package/lib/conversation/message/MessageBuilder.d.ts.map +0 -1
  182. package/lib/conversation/message/MessageBuilder.js +0 -291
  183. package/lib/conversation/message/MessageService.d.ts +0 -68
  184. package/lib/conversation/message/MessageService.d.ts.map +0 -1
  185. package/lib/conversation/message/MessageService.js +0 -291
  186. package/lib/conversation/message/MessageToProtoMapper.d.ts +0 -7
  187. package/lib/conversation/message/MessageToProtoMapper.d.ts.map +0 -1
  188. package/lib/conversation/message/MessageToProtoMapper.js +0 -98
  189. package/lib/conversation/message/OtrMessage.d.ts +0 -81
  190. package/lib/conversation/message/OtrMessage.d.ts.map +0 -1
  191. package/lib/conversation/message/OtrMessage.js +0 -20
  192. package/lib/conversation/message/PayloadBundle.d.ts +0 -68
  193. package/lib/conversation/message/PayloadBundle.d.ts.map +0 -1
  194. package/lib/conversation/message/PayloadBundle.js +0 -67
  195. package/lib/conversation/message/TeamMessage.d.ts +0 -32
  196. package/lib/conversation/message/TeamMessage.d.ts.map +0 -1
  197. package/lib/conversation/message/TeamMessage.js +0 -20
  198. package/lib/conversation/message/TextContentBuilder.d.ts +0 -12
  199. package/lib/conversation/message/TextContentBuilder.d.ts.map +0 -1
  200. package/lib/conversation/message/TextContentBuilder.js +0 -61
  201. package/lib/conversation/message/UserClientsUtil.d.ts +0 -23
  202. package/lib/conversation/message/UserClientsUtil.d.ts.map +0 -1
  203. package/lib/conversation/message/UserClientsUtil.js +0 -37
  204. package/lib/conversation/message/UserMessage.d.ts +0 -44
  205. package/lib/conversation/message/UserMessage.d.ts.map +0 -1
  206. package/lib/conversation/message/UserMessage.js +0 -20
  207. package/lib/conversation/message/index.d.ts +0 -2
  208. package/lib/conversation/message/index.d.ts.map +0 -1
  209. package/lib/conversation/message/index.js +0 -35
  210. package/lib/conversation/message/messageSender.d.ts +0 -7
  211. package/lib/conversation/message/messageSender.d.ts.map +0 -1
  212. package/lib/conversation/message/messageSender.js +0 -43
  213. package/lib/cryptography/AssetCryptography/EncryptedAsset.d.ts +0 -12
  214. package/lib/cryptography/AssetCryptography/EncryptedAsset.d.ts.map +0 -1
  215. package/lib/cryptography/AssetCryptography/EncryptedAsset.js +0 -20
  216. package/lib/cryptography/AssetCryptography/crypto.browser.d.ts +0 -3
  217. package/lib/cryptography/AssetCryptography/crypto.browser.d.ts.map +0 -1
  218. package/lib/cryptography/AssetCryptography/crypto.browser.js +0 -45
  219. package/lib/cryptography/AssetCryptography/crypto.node.d.ts +0 -3
  220. package/lib/cryptography/AssetCryptography/crypto.node.d.ts.map +0 -1
  221. package/lib/cryptography/AssetCryptography/crypto.node.js +0 -71
  222. package/lib/cryptography/AssetCryptography/index.d.ts +0 -9
  223. package/lib/cryptography/AssetCryptography/index.d.ts.map +0 -1
  224. package/lib/cryptography/AssetCryptography/index.js +0 -52
  225. package/lib/cryptography/AssetCryptography/interfaces.d.ts +0 -10
  226. package/lib/cryptography/AssetCryptography/interfaces.d.ts.map +0 -1
  227. package/lib/cryptography/AssetCryptography/interfaces.js +0 -20
  228. package/lib/cryptography/CryptographyDatabaseRepository.d.ts +0 -16
  229. package/lib/cryptography/CryptographyDatabaseRepository.d.ts.map +0 -1
  230. package/lib/cryptography/CryptographyDatabaseRepository.js +0 -42
  231. package/lib/cryptography/CryptographyService.d.ts +0 -77
  232. package/lib/cryptography/CryptographyService.d.ts.map +0 -1
  233. package/lib/cryptography/CryptographyService.js +0 -222
  234. package/lib/cryptography/GenericMessageMapper.d.ts +0 -8
  235. package/lib/cryptography/GenericMessageMapper.d.ts.map +0 -1
  236. package/lib/cryptography/GenericMessageMapper.js +0 -159
  237. package/lib/cryptography/MessageHashService.d.ts +0 -17
  238. package/lib/cryptography/MessageHashService.d.ts.map +0 -1
  239. package/lib/cryptography/MessageHashService.js +0 -117
  240. package/lib/cryptography/SessionPayloadBundle.d.ts +0 -5
  241. package/lib/cryptography/SessionPayloadBundle.d.ts.map +0 -1
  242. package/lib/cryptography/SessionPayloadBundle.js +0 -20
  243. package/lib/cryptography/Utlility/generateDecryptionError.d.ts +0 -6
  244. package/lib/cryptography/Utlility/generateDecryptionError.d.ts.map +0 -1
  245. package/lib/cryptography/Utlility/generateDecryptionError.js +0 -50
  246. package/lib/cryptography/index.d.ts +0 -5
  247. package/lib/cryptography/index.d.ts.map +0 -1
  248. package/lib/cryptography/index.js +0 -38
  249. package/lib/errors/DecryptionError.d.ts +0 -6
  250. package/lib/errors/DecryptionError.d.ts.map +0 -1
  251. package/lib/errors/DecryptionError.js +0 -29
  252. package/lib/giphy/GiphyService.d.ts +0 -10
  253. package/lib/giphy/GiphyService.d.ts.map +0 -1
  254. package/lib/giphy/GiphyService.js +0 -36
  255. package/lib/giphy/index.d.ts +0 -2
  256. package/lib/giphy/index.d.ts.map +0 -1
  257. package/lib/giphy/index.js +0 -35
  258. package/lib/index.d.ts +0 -8
  259. package/lib/index.d.ts.map +0 -1
  260. package/lib/index.js +0 -54
  261. package/lib/linkPreview/LinkPreviewService.d.ts +0 -8
  262. package/lib/linkPreview/LinkPreviewService.d.ts.map +0 -1
  263. package/lib/linkPreview/LinkPreviewService.js +0 -51
  264. package/lib/linkPreview/index.d.ts +0 -2
  265. package/lib/linkPreview/index.d.ts.map +0 -1
  266. package/lib/linkPreview/index.js +0 -35
  267. package/lib/messagingProtocols/common.types.d.ts +0 -3
  268. package/lib/messagingProtocols/common.types.d.ts.map +0 -1
  269. package/lib/messagingProtocols/common.types.js +0 -20
  270. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/ConversationEvent.d.ts +0 -5
  271. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/ConversationEvent.d.ts.map +0 -1
  272. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/ConversationEvent.js +0 -37
  273. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/index.d.ts +0 -3
  274. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/index.d.ts.map +0 -1
  275. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/index.js +0 -36
  276. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/index.d.ts +0 -2
  277. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/index.d.ts.map +0 -1
  278. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/index.js +0 -35
  279. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts +0 -12
  280. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts.map +0 -1
  281. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.js +0 -62
  282. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts +0 -2
  283. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts.map +0 -1
  284. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.js +0 -35
  285. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts +0 -10
  286. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts.map +0 -1
  287. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.js +0 -36
  288. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/index.d.ts +0 -2
  289. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/index.d.ts.map +0 -1
  290. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/index.js +0 -35
  291. package/lib/messagingProtocols/mls/EventHandler/EventHandler.d.ts +0 -5
  292. package/lib/messagingProtocols/mls/EventHandler/EventHandler.d.ts.map +0 -1
  293. package/lib/messagingProtocols/mls/EventHandler/EventHandler.js +0 -24
  294. package/lib/messagingProtocols/mls/EventHandler/EventHandler.types.d.ts +0 -11
  295. package/lib/messagingProtocols/mls/EventHandler/EventHandler.types.d.ts.map +0 -1
  296. package/lib/messagingProtocols/mls/EventHandler/EventHandler.types.js +0 -20
  297. package/lib/messagingProtocols/mls/EventHandler/index.d.ts +0 -3
  298. package/lib/messagingProtocols/mls/EventHandler/index.d.ts.map +0 -1
  299. package/lib/messagingProtocols/mls/EventHandler/index.js +0 -36
  300. package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts +0 -126
  301. package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts.map +0 -1
  302. package/lib/messagingProtocols/mls/MLSService/MLSService.js +0 -428
  303. package/lib/messagingProtocols/mls/MLSService/MLSService.types.d.ts +0 -16
  304. package/lib/messagingProtocols/mls/MLSService/MLSService.types.d.ts.map +0 -1
  305. package/lib/messagingProtocols/mls/MLSService/MLSService.types.js +0 -20
  306. package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.d.ts +0 -8
  307. package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.d.ts.map +0 -1
  308. package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.js +0 -50
  309. package/lib/messagingProtocols/mls/MLSService/index.d.ts +0 -2
  310. package/lib/messagingProtocols/mls/MLSService/index.d.ts.map +0 -1
  311. package/lib/messagingProtocols/mls/MLSService/index.js +0 -35
  312. package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/index.d.ts +0 -2
  313. package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/index.d.ts.map +0 -1
  314. package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/index.js +0 -35
  315. package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts +0 -11
  316. package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts.map +0 -1
  317. package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.js +0 -50
  318. package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/index.d.ts +0 -2
  319. package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/index.d.ts.map +0 -1
  320. package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/index.js +0 -35
  321. package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts +0 -10
  322. package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts.map +0 -1
  323. package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.js +0 -50
  324. package/lib/messagingProtocols/mls/MLSService/stores/stores.mock.d.ts +0 -9
  325. package/lib/messagingProtocols/mls/MLSService/stores/stores.mock.d.ts.map +0 -1
  326. package/lib/messagingProtocols/mls/MLSService/stores/stores.mock.js +0 -43
  327. package/lib/messagingProtocols/mls/index.d.ts +0 -2
  328. package/lib/messagingProtocols/mls/index.d.ts.map +0 -1
  329. package/lib/messagingProtocols/mls/index.js +0 -35
  330. package/lib/messagingProtocols/mls/types.d.ts +0 -55
  331. package/lib/messagingProtocols/mls/types.d.ts.map +0 -1
  332. package/lib/messagingProtocols/mls/types.js +0 -20
  333. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/ConversationEvent.d.ts +0 -5
  334. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/ConversationEvent.d.ts.map +0 -1
  335. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/ConversationEvent.js +0 -29
  336. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/index.d.ts +0 -2
  337. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/index.d.ts.map +0 -1
  338. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/index.js +0 -35
  339. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/index.d.ts +0 -2
  340. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/index.d.ts.map +0 -1
  341. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/index.js +0 -35
  342. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/otrMessageAdd.d.ts +0 -10
  343. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/otrMessageAdd.d.ts.map +0 -1
  344. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/events/otrMessageAdd/otrMessageAdd.js +0 -46
  345. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/index.d.ts +0 -2
  346. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/index.d.ts.map +0 -1
  347. package/lib/messagingProtocols/proteus/EventHandler/ConversationEvent/index.js +0 -35
  348. package/lib/messagingProtocols/proteus/EventHandler/EventHandler.d.ts +0 -5
  349. package/lib/messagingProtocols/proteus/EventHandler/EventHandler.d.ts.map +0 -1
  350. package/lib/messagingProtocols/proteus/EventHandler/EventHandler.js +0 -24
  351. package/lib/messagingProtocols/proteus/EventHandler/EventHandler.types.d.ts +0 -11
  352. package/lib/messagingProtocols/proteus/EventHandler/EventHandler.types.d.ts.map +0 -1
  353. package/lib/messagingProtocols/proteus/EventHandler/EventHandler.types.js +0 -20
  354. package/lib/messagingProtocols/proteus/EventHandler/index.d.ts +0 -3
  355. package/lib/messagingProtocols/proteus/EventHandler/index.d.ts.map +0 -1
  356. package/lib/messagingProtocols/proteus/EventHandler/index.js +0 -36
  357. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts +0 -20
  358. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts.map +0 -1
  359. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.js +0 -93
  360. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts +0 -25
  361. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts.map +0 -1
  362. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.js +0 -20
  363. package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.d.ts +0 -24
  364. package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.d.ts.map +0 -1
  365. package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.js +0 -86
  366. package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.d.ts +0 -17
  367. package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.d.ts.map +0 -1
  368. package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.js +0 -43
  369. package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.d.ts +0 -12
  370. package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.d.ts.map +0 -1
  371. package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.js +0 -38
  372. package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.d.ts +0 -35
  373. package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.d.ts.map +0 -1
  374. package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.js +0 -87
  375. package/lib/messagingProtocols/proteus/ProteusService/Utility/index.d.ts +0 -6
  376. package/lib/messagingProtocols/proteus/ProteusService/Utility/index.d.ts.map +0 -1
  377. package/lib/messagingProtocols/proteus/ProteusService/Utility/index.js +0 -39
  378. package/lib/messagingProtocols/proteus/ProteusService/Utility/isClearFromMismatch.d.ts +0 -4
  379. package/lib/messagingProtocols/proteus/ProteusService/Utility/isClearFromMismatch.d.ts.map +0 -1
  380. package/lib/messagingProtocols/proteus/ProteusService/Utility/isClearFromMismatch.js +0 -29
  381. package/lib/messagingProtocols/proteus/ProteusService/index.d.ts +0 -4
  382. package/lib/messagingProtocols/proteus/ProteusService/index.d.ts.map +0 -1
  383. package/lib/messagingProtocols/proteus/ProteusService/index.js +0 -37
  384. package/lib/messagingProtocols/proteus/index.d.ts +0 -2
  385. package/lib/messagingProtocols/proteus/index.d.ts.map +0 -1
  386. package/lib/messagingProtocols/proteus/index.js +0 -35
  387. package/lib/notification/NotificationBackendRepository.d.ts +0 -12
  388. package/lib/notification/NotificationBackendRepository.d.ts.map +0 -1
  389. package/lib/notification/NotificationBackendRepository.js +0 -33
  390. package/lib/notification/NotificationDatabaseRepository.d.ts +0 -21
  391. package/lib/notification/NotificationDatabaseRepository.d.ts.map +0 -1
  392. package/lib/notification/NotificationDatabaseRepository.js +0 -67
  393. package/lib/notification/NotificationService.d.ts +0 -70
  394. package/lib/notification/NotificationService.d.ts.map +0 -1
  395. package/lib/notification/NotificationService.js +0 -224
  396. package/lib/notification/Notifications.types.d.ts +0 -6
  397. package/lib/notification/Notifications.types.d.ts.map +0 -1
  398. package/lib/notification/Notifications.types.js +0 -27
  399. package/lib/notification/index.d.ts +0 -3
  400. package/lib/notification/index.d.ts.map +0 -1
  401. package/lib/notification/index.js +0 -36
  402. package/lib/self/SelfService.d.ts +0 -14
  403. package/lib/self/SelfService.d.ts.map +0 -1
  404. package/lib/self/SelfService.js +0 -54
  405. package/lib/self/index.d.ts +0 -2
  406. package/lib/self/index.d.ts.map +0 -1
  407. package/lib/self/index.js +0 -35
  408. package/lib/team/TeamService.d.ts +0 -16
  409. package/lib/team/TeamService.d.ts.map +0 -1
  410. package/lib/team/TeamService.js +0 -54
  411. package/lib/team/index.d.ts +0 -2
  412. package/lib/team/index.d.ts.map +0 -1
  413. package/lib/team/index.js +0 -35
  414. package/lib/user/UserMapper.d.ts +0 -7
  415. package/lib/user/UserMapper.d.ts.map +0 -1
  416. package/lib/user/UserMapper.js +0 -87
  417. package/lib/user/UserService.d.ts +0 -24
  418. package/lib/user/UserService.d.ts.map +0 -1
  419. package/lib/user/UserService.js +0 -81
  420. package/lib/user/index.d.ts +0 -2
  421. package/lib/user/index.d.ts.map +0 -1
  422. package/lib/user/index.js +0 -35
  423. package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.d.ts +0 -22
  424. package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.d.ts.map +0 -1
  425. package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.js +0 -66
  426. package/lib/util/LowPrecisionTaskScheduler/index.d.ts +0 -2
  427. package/lib/util/LowPrecisionTaskScheduler/index.d.ts.map +0 -1
  428. package/lib/util/LowPrecisionTaskScheduler/index.js +0 -35
  429. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.d.ts +0 -9
  430. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.d.ts.map +0 -1
  431. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.js +0 -52
  432. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.d.ts +0 -4
  433. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.d.ts.map +0 -1
  434. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.js +0 -34
  435. package/lib/util/RecurringTaskScheduler/index.d.ts +0 -2
  436. package/lib/util/RecurringTaskScheduler/index.d.ts.map +0 -1
  437. package/lib/util/RecurringTaskScheduler/index.js +0 -35
  438. package/lib/util/TaskScheduler/TaskScheduler.d.ts +0 -11
  439. package/lib/util/TaskScheduler/TaskScheduler.d.ts.map +0 -1
  440. package/lib/util/TaskScheduler/TaskScheduler.js +0 -70
  441. package/lib/util/TaskScheduler/index.d.ts +0 -2
  442. package/lib/util/TaskScheduler/index.d.ts.map +0 -1
  443. package/lib/util/TaskScheduler/index.js +0 -35
  444. package/lib/util/TypePredicateUtil.d.ts +0 -10
  445. package/lib/util/TypePredicateUtil.d.ts.map +0 -1
  446. package/lib/util/TypePredicateUtil.js +0 -60
  447. package/lib/util/encryptedStore.d.ts +0 -46
  448. package/lib/util/encryptedStore.d.ts.map +0 -1
  449. package/lib/util/encryptedStore.js +0 -115
  450. package/lib/util/encryptedStore.test.node.d.ts +0 -2
  451. package/lib/util/encryptedStore.test.node.d.ts.map +0 -1
  452. package/lib/util/encryptedStore.test.node.js +0 -53
  453. package/lib/util/fullyQualifiedClientIdUtils.d.ts +0 -14
  454. package/lib/util/fullyQualifiedClientIdUtils.d.ts.map +0 -1
  455. package/lib/util/fullyQualifiedClientIdUtils.js +0 -41
  456. package/lib/util/index.d.ts +0 -2
  457. package/lib/util/index.d.ts.map +0 -1
  458. package/lib/util/index.js +0 -35
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2021 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import { CRUDEngine } from '@wireapp/store-engine';
2
- export declare enum DatabaseStores {
3
- AMPLIFY = "amplify",
4
- CLIENTS = "clients",
5
- KEYS = "keys",
6
- PRE_KEYS = "prekeys",
7
- SESSIONS = "sessions",
8
- GROUP_IDS = "group_ids"
9
- }
10
- export declare class CryptographyDatabaseRepository {
11
- private readonly storeEngine;
12
- static readonly STORES: typeof DatabaseStores;
13
- constructor(storeEngine: CRUDEngine);
14
- deleteStores(): Promise<boolean[]>;
15
- }
16
- //# sourceMappingURL=CryptographyDatabaseRepository.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CryptographyDatabaseRepository.d.ts","sourceRoot":"","sources":["../../src/cryptography/CryptographyDatabaseRepository.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,YAAY;IACpB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,qBAAa,8BAA8B;IAG7B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAFxC,gBAAuB,MAAM,wBAAkB;gBAElB,WAAW,EAAE,UAAU;IAE7C,YAAY,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAM1C"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2018 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
- Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.CryptographyDatabaseRepository = exports.DatabaseStores = void 0;
22
- var DatabaseStores;
23
- (function (DatabaseStores) {
24
- DatabaseStores["AMPLIFY"] = "amplify";
25
- DatabaseStores["CLIENTS"] = "clients";
26
- DatabaseStores["KEYS"] = "keys";
27
- DatabaseStores["PRE_KEYS"] = "prekeys";
28
- DatabaseStores["SESSIONS"] = "sessions";
29
- DatabaseStores["GROUP_IDS"] = "group_ids";
30
- })(DatabaseStores = exports.DatabaseStores || (exports.DatabaseStores = {}));
31
- class CryptographyDatabaseRepository {
32
- constructor(storeEngine) {
33
- this.storeEngine = storeEngine;
34
- }
35
- deleteStores() {
36
- return Promise.all(
37
- //make sure we use enum's lowercase values, not uppercase keys
38
- Object.values(CryptographyDatabaseRepository.STORES).map(store => this.storeEngine.deleteAll(store)));
39
- }
40
- }
41
- exports.CryptographyDatabaseRepository = CryptographyDatabaseRepository;
42
- CryptographyDatabaseRepository.STORES = DatabaseStores;
@@ -1,77 +0,0 @@
1
- import { PreKey } from '@wireapp/api-client/lib/auth/';
2
- import { RegisteredClient } from '@wireapp/api-client/lib/client/';
3
- import { OTRRecipients, QualifiedOTRRecipients, QualifiedUserClients, UserClients } from '@wireapp/api-client/lib/conversation/';
4
- import { ConversationOtrMessageAddEvent } from '@wireapp/api-client/lib/event';
5
- import { QualifiedId, QualifiedUserPreKeyBundleMap, UserPreKeyBundleMap } from '@wireapp/api-client/lib/user/';
6
- import { APIClient } from '@wireapp/api-client';
7
- import { Cryptobox } from '@wireapp/cryptobox';
8
- import { GenericMessage } from '@wireapp/protocol-messaging';
9
- import { CRUDEngine } from '@wireapp/store-engine';
10
- export type SessionId = {
11
- userId: string;
12
- clientId: string;
13
- domain?: string;
14
- };
15
- export interface MetaClient extends RegisteredClient {
16
- meta: {
17
- is_verified?: boolean;
18
- primary_key: string;
19
- };
20
- }
21
- export declare class CryptographyService {
22
- readonly apiClient: APIClient;
23
- private readonly storeEngine;
24
- private readonly config;
25
- private readonly logger;
26
- cryptobox: Cryptobox;
27
- private readonly database;
28
- constructor(apiClient: APIClient, storeEngine: CRUDEngine, config: {
29
- useQualifiedIds: boolean;
30
- nbPrekeys: number;
31
- });
32
- constructSessionId(userId: string | QualifiedId, clientId: string, domain?: string): string;
33
- private isSessionId;
34
- /**
35
- * Splits a sessionId into userId, clientId & domain (if any).
36
- */
37
- parseSessionId(sessionId: string): SessionId;
38
- static convertArrayRecipientsToBase64(recipients: OTRRecipients<Uint8Array>): OTRRecipients<string>;
39
- setCryptoboxHooks({ onNewPrekeys, onNewSession, }: {
40
- onNewPrekeys?: (prekeys: {
41
- id: number;
42
- key: string;
43
- }[]) => void;
44
- onNewSession?: (sessionId: SessionId) => void;
45
- }): void;
46
- static convertBase64RecipientsToArray(recipients: OTRRecipients<string>): OTRRecipients<Uint8Array>;
47
- createCryptobox(entropyData?: Uint8Array): Promise<PreKey[]>;
48
- decrypt(sessionId: string, encodedCiphertext: string): Promise<Uint8Array>;
49
- encryptQualified(plainText: Uint8Array, preKeyBundles: QualifiedUserPreKeyBundleMap | QualifiedUserClients): Promise<{
50
- missing: QualifiedUserClients;
51
- encrypted: QualifiedOTRRecipients;
52
- }>;
53
- encrypt(plainText: Uint8Array, users: UserPreKeyBundleMap | UserClients, domain?: string): Promise<{
54
- missing: UserClients;
55
- encrypted: OTRRecipients<Uint8Array>;
56
- }>;
57
- private encryptPayloadForSession;
58
- initCryptobox(): Promise<void>;
59
- /**
60
- * Get the fingerprint of the local client.
61
- */
62
- getLocalFingerprint(): string;
63
- /**
64
- * Get the fingerprint of a remote client
65
- * @param userId ID of user
66
- * @param clientId ID of client
67
- * @param prekey A prekey can be given to create a session if it doesn't already exist.
68
- * If not provided and the session doesn't exists it will fetch a new prekey from the backend
69
- */
70
- getRemoteFingerprint(userId: QualifiedId, clientId: string, prekey?: PreKey): Promise<string>;
71
- private getOrCreateSession;
72
- private getUserPrekey;
73
- deleteCryptographyStores(): Promise<boolean[]>;
74
- resetSession(sessionId: string): Promise<void>;
75
- decryptMessage(otrMessage: ConversationOtrMessageAddEvent): Promise<GenericMessage>;
76
- }
77
- //# sourceMappingURL=CryptographyService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CryptographyService.d.ts","sourceRoot":"","sources":["../../src/cryptography/CryptographyService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAEL,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAC,8BAA8B,EAAC,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAC,WAAW,EAAE,4BAA4B,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AAI7G,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAmB,MAAM,oBAAoB,CAAC;AAE/D,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAQjD,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,WAAW,UAAW,SAAQ,gBAAgB;IAClD,IAAI,EAAE;QACJ,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,qBAAa,mBAAmB;IAO5B,QAAQ,CAAC,SAAS,EAAE,SAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM;IARzB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IAEjC,SAAS,EAAE,SAAS,CAAC;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiC;gBAG/C,SAAS,EAAE,SAAS,EACZ,WAAW,EAAE,UAAU,EACvB,MAAM,EAAE;QAAC,eAAe,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAC;IAUjE,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAMlG,OAAO,CAAC,WAAW;IAInB;;OAEG;IACI,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;WAUrC,8BAA8B,CAAC,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC;IAanG,iBAAiB,CAAC,EACvB,YAAY,EACZ,YAAY,GACb,EAAE;QACD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAC,EAAE,KAAK,IAAI,CAAC;QAC9D,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;KAC/C;WAYa,8BAA8B,CAAC,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,UAAU,CAAC;IAa7F,eAAe,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAclE,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAMpE,gBAAgB,CAC3B,SAAS,EAAE,UAAU,EACrB,aAAa,EAAE,4BAA4B,GAAG,oBAAoB,GACjE,OAAO,CAAC;QAAC,OAAO,EAAE,oBAAoB,CAAC;QAAC,SAAS,EAAE,sBAAsB,CAAA;KAAC,CAAC;IAgBjE,OAAO,CAClB,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,mBAAmB,GAAG,WAAW,EACxC,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC;QAAC,OAAO,EAAE,WAAW,CAAC;QAAC,SAAS,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;KAAC,CAAC;YA2B1D,wBAAwB;IA4BzB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3C;;OAEG;IACI,mBAAmB,IAAI,MAAM;IAIpC;;;;;;OAMG;IACU,oBAAoB,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;YAK5F,kBAAkB;IAehC,OAAO,CAAC,aAAa;IAId,wBAAwB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAIxC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9C,cAAc,CAAC,UAAU,EAAE,8BAA8B,GAAG,OAAO,CAAC,cAAc,CAAC;CAejG"}
@@ -1,222 +0,0 @@
1
- "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2018 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
- var __importDefault = (this && this.__importDefault) || function (mod) {
21
- return (mod && mod.__esModule) ? mod : { "default": mod };
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.CryptographyService = void 0;
25
- const bazinga64_1 = require("bazinga64");
26
- const logdown_1 = __importDefault(require("logdown"));
27
- const cryptobox_1 = require("@wireapp/cryptobox");
28
- const proteus_1 = require("@wireapp/proteus");
29
- const protocol_messaging_1 = require("@wireapp/protocol-messaging");
30
- const CryptographyDatabaseRepository_1 = require("./CryptographyDatabaseRepository");
31
- const generateDecryptionError_1 = require("./Utlility/generateDecryptionError");
32
- const util_1 = require("../util");
33
- class CryptographyService {
34
- constructor(apiClient, storeEngine, config) {
35
- this.apiClient = apiClient;
36
- this.storeEngine = storeEngine;
37
- this.config = config;
38
- this.cryptobox = new cryptobox_1.Cryptobox(this.storeEngine, config.nbPrekeys);
39
- this.database = new CryptographyDatabaseRepository_1.CryptographyDatabaseRepository(this.storeEngine);
40
- this.logger = (0, logdown_1.default)('@wireapp/core/CryptographyService', {
41
- logger: console,
42
- markdown: false,
43
- });
44
- }
45
- constructSessionId(userId, clientId, domain) {
46
- const { id, domain: baseDomain } = typeof userId === 'string' ? { id: userId, domain } : userId;
47
- const baseId = `${id}@${clientId}`;
48
- return baseDomain && this.config.useQualifiedIds ? `${baseDomain}@${baseId}` : baseId;
49
- }
50
- isSessionId(object) {
51
- return object.userId && object.clientId;
52
- }
53
- /**
54
- * Splits a sessionId into userId, clientId & domain (if any).
55
- */
56
- parseSessionId(sessionId) {
57
- // see https://regex101.com/r/c8FtCw/1
58
- const regex = /((?<domain>.+)@)?(?<userId>.+)@(?<clientId>.+)$/g;
59
- const match = regex.exec(sessionId);
60
- if (!match || !this.isSessionId(match.groups)) {
61
- throw new Error(`given session id "${sessionId}" has wrong format`);
62
- }
63
- return match.groups;
64
- }
65
- static convertArrayRecipientsToBase64(recipients) {
66
- return Object.fromEntries(Object.entries(recipients).map(([userId, otrClientMap]) => {
67
- const otrClientMapWithBase64 = Object.fromEntries(Object.entries(otrClientMap).map(([clientId, payload]) => {
68
- return [clientId, bazinga64_1.Encoder.toBase64(payload).asString];
69
- }));
70
- return [userId, otrClientMapWithBase64];
71
- }));
72
- }
73
- setCryptoboxHooks({ onNewPrekeys, onNewSession, }) {
74
- if (onNewPrekeys) {
75
- this.cryptobox.on(cryptobox_1.Cryptobox.TOPIC.NEW_PREKEYS, prekeys => {
76
- const serializedPreKeys = prekeys.map(prekey => this.cryptobox.serialize_prekey(prekey));
77
- onNewPrekeys(serializedPreKeys);
78
- });
79
- }
80
- if (onNewSession) {
81
- this.cryptobox.on(cryptobox_1.Cryptobox.TOPIC.NEW_SESSION, sessionId => onNewSession(this.parseSessionId(sessionId)));
82
- }
83
- }
84
- static convertBase64RecipientsToArray(recipients) {
85
- return Object.fromEntries(Object.entries(recipients).map(([userId, otrClientMap]) => {
86
- const otrClientMapWithUint8Array = Object.fromEntries(Object.entries(otrClientMap).map(([clientId, payload]) => {
87
- return [clientId, bazinga64_1.Decoder.fromBase64(payload).asBytes];
88
- }));
89
- return [userId, otrClientMapWithUint8Array];
90
- }));
91
- }
92
- async createCryptobox(entropyData) {
93
- const initialPreKeys = await this.cryptobox.create(entropyData);
94
- return initialPreKeys
95
- .map(preKey => {
96
- const preKeyJson = this.cryptobox.serialize_prekey(preKey);
97
- if (preKeyJson.id !== proteus_1.keys.PreKey.MAX_PREKEY_ID) {
98
- return preKeyJson;
99
- }
100
- return { id: -1, key: '' };
101
- })
102
- .filter(serializedPreKey => serializedPreKey.key);
103
- }
104
- decrypt(sessionId, encodedCiphertext) {
105
- this.logger.log(`Decrypting message for session ID "${sessionId}"`);
106
- const messageBytes = bazinga64_1.Decoder.fromBase64(encodedCiphertext).asBytes;
107
- return this.cryptobox.decrypt(sessionId, messageBytes.buffer);
108
- }
109
- async encryptQualified(plainText, preKeyBundles) {
110
- const qualifiedOTRRecipients = {};
111
- const missing = {};
112
- for (const [domain, preKeyBundleMap] of Object.entries(preKeyBundles)) {
113
- const result = await this.encrypt(plainText, preKeyBundleMap, domain);
114
- qualifiedOTRRecipients[domain] = result.encrypted;
115
- missing[domain] = result.missing;
116
- }
117
- return {
118
- encrypted: qualifiedOTRRecipients,
119
- missing,
120
- };
121
- }
122
- async encrypt(plainText, users, domain) {
123
- var _a;
124
- const encrypted = {};
125
- const missing = {};
126
- for (const userId in users) {
127
- const clientIds = (0, util_1.isUserClients)(users)
128
- ? users[userId]
129
- : Object.keys(users[userId])
130
- // We filter out clients that have `null` prekey
131
- .filter(clientId => !!users[userId][clientId]);
132
- for (const clientId of clientIds) {
133
- const base64PreKey = (0, util_1.isUserClients)(users) ? undefined : (_a = users[userId][clientId]) === null || _a === void 0 ? void 0 : _a.key;
134
- const sessionId = this.constructSessionId(userId, clientId, domain);
135
- const result = await this.encryptPayloadForSession(sessionId, plainText, base64PreKey);
136
- if (result) {
137
- encrypted[userId] || (encrypted[userId] = {});
138
- encrypted[userId][clientId] = result.encryptedPayload;
139
- }
140
- else {
141
- missing[userId] || (missing[userId] = []);
142
- missing[userId].push(clientId);
143
- }
144
- }
145
- }
146
- return { encrypted, missing };
147
- }
148
- async encryptPayloadForSession(sessionId, plainText, base64EncodedPreKey) {
149
- this.logger.log(`Encrypting payload for session ID "${sessionId}"`);
150
- let encryptedPayload;
151
- try {
152
- const decodedPreKeyBundle = base64EncodedPreKey
153
- ? bazinga64_1.Decoder.fromBase64(base64EncodedPreKey).asBytes.buffer
154
- : undefined;
155
- const payloadAsArrayBuffer = await this.cryptobox.encrypt(sessionId, plainText, decodedPreKeyBundle);
156
- encryptedPayload = new Uint8Array(payloadAsArrayBuffer);
157
- }
158
- catch (error) {
159
- const notFoundErrorCode = 2;
160
- if (error.code === notFoundErrorCode) {
161
- // If the session is not in the database, we just return undefined. Later on there will be a mismatch and the session will be created
162
- return undefined;
163
- }
164
- this.logger.error(`Could not encrypt payload: ${error.message}`);
165
- encryptedPayload = new Uint8Array(Buffer.from('💣', 'utf-8'));
166
- }
167
- return { encryptedPayload, sessionId };
168
- }
169
- async initCryptobox() {
170
- await this.cryptobox.load();
171
- }
172
- /**
173
- * Get the fingerprint of the local client.
174
- */
175
- getLocalFingerprint() {
176
- return this.cryptobox.getIdentity().public_key.fingerprint();
177
- }
178
- /**
179
- * Get the fingerprint of a remote client
180
- * @param userId ID of user
181
- * @param clientId ID of client
182
- * @param prekey A prekey can be given to create a session if it doesn't already exist.
183
- * If not provided and the session doesn't exists it will fetch a new prekey from the backend
184
- */
185
- async getRemoteFingerprint(userId, clientId, prekey) {
186
- const session = await this.getOrCreateSession(userId, clientId, prekey);
187
- return session.fingerprint_remote();
188
- }
189
- async getOrCreateSession(userId, clientId, initialPrekey) {
190
- const sessionId = this.constructSessionId(userId, clientId);
191
- try {
192
- return await this.cryptobox.session_load(sessionId);
193
- }
194
- catch (error) {
195
- const prekey = initialPrekey !== null && initialPrekey !== void 0 ? initialPrekey : (await this.getUserPrekey(userId, clientId)).prekey;
196
- const prekeyBuffer = bazinga64_1.Decoder.fromBase64(prekey.key).asBytes;
197
- return this.cryptobox.session_from_prekey(sessionId, prekeyBuffer.buffer);
198
- }
199
- }
200
- getUserPrekey(userId, clientId) {
201
- return this.apiClient.api.user.getClientPreKey(userId, clientId);
202
- }
203
- deleteCryptographyStores() {
204
- return this.database.deleteStores();
205
- }
206
- async resetSession(sessionId) {
207
- await this.cryptobox.session_delete(sessionId);
208
- this.logger.log(`Deleted session ID "${sessionId}".`);
209
- }
210
- async decryptMessage(otrMessage) {
211
- const { from, qualified_from, data: { sender, text: cipherText }, } = otrMessage;
212
- const sessionId = this.constructSessionId(from, sender, qualified_from === null || qualified_from === void 0 ? void 0 : qualified_from.domain);
213
- try {
214
- const decryptedMessage = await this.decrypt(sessionId, cipherText);
215
- return protocol_messaging_1.GenericMessage.decode(decryptedMessage);
216
- }
217
- catch (error) {
218
- throw (0, generateDecryptionError_1.generateDecryptionError)(otrMessage, error, this.logger);
219
- }
220
- }
221
- }
222
- exports.CryptographyService = CryptographyService;
@@ -1,8 +0,0 @@
1
- import { ConversationOtrMessageAddEvent } from '@wireapp/api-client/lib/event/';
2
- import { PayloadBundle } from '../conversation';
3
- import { NotificationSource } from '../notification';
4
- export declare class GenericMessageMapper {
5
- private static readonly logger;
6
- static mapGenericMessage(genericMessage: any, event: ConversationOtrMessageAddEvent, source: NotificationSource): PayloadBundle;
7
- }
8
- //# sourceMappingURL=GenericMessageMapper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GenericMessageMapper.d.ts","sourceRoot":"","sources":["../../src/cryptography/GenericMessageMapper.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,8BAA8B,EAAC,MAAM,gCAAgC,CAAC;AAG9E,OAAO,EAA0C,aAAa,EAAoB,MAAM,iBAAiB,CAAC;AAa1G,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AACnD,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAG3B;WAIW,iBAAiB,CAC7B,cAAc,EAAE,GAAG,EACnB,KAAK,EAAE,8BAA8B,EACrC,MAAM,EAAE,kBAAkB,GACzB,aAAa;CA4NjB"}
@@ -1,159 +0,0 @@
1
- "use strict";
2
- /*
3
- * Wire
4
- * Copyright (C) 2019 Wire Swiss GmbH
5
- *
6
- * This program is free software: you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation, either version 3 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see http://www.gnu.org/licenses/.
18
- *
19
- */
20
- var __importDefault = (this && this.__importDefault) || function (mod) {
21
- return (mod && mod.__esModule) ? mod : { "default": mod };
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.GenericMessageMapper = void 0;
25
- const logdown_1 = __importDefault(require("logdown"));
26
- const conversation_1 = require("../conversation");
27
- class GenericMessageMapper {
28
- // TODO: Turn "any" into a specific type (or collection of types) and make the return type more specific based on the
29
- // "genericMessage" input parameter.
30
- static mapGenericMessage(genericMessage, event, source) {
31
- const baseMessage = {
32
- conversation: event.conversation,
33
- qualifiedConversation: event.qualified_conversation,
34
- qualifiedFrom: event.qualified_from,
35
- fromClientId: event.data.sender,
36
- from: event.from,
37
- state: conversation_1.MessageSendingState.INCOMING,
38
- timestamp: new Date(event.time).getTime(),
39
- id: genericMessage.messageId,
40
- messageTimer: 0,
41
- source,
42
- };
43
- switch (genericMessage.content) {
44
- case conversation_1.GenericMessageType.TEXT: {
45
- const { content: text, expectsReadConfirmation, legalHoldStatus, linkPreview: linkPreviews, mentions, quote, } = genericMessage[conversation_1.GenericMessageType.TEXT];
46
- const content = { expectsReadConfirmation, legalHoldStatus, text };
47
- if (linkPreviews === null || linkPreviews === void 0 ? void 0 : linkPreviews.length) {
48
- content.linkPreviews = linkPreviews;
49
- }
50
- if (mentions === null || mentions === void 0 ? void 0 : mentions.length) {
51
- content.mentions = mentions;
52
- }
53
- if (quote) {
54
- content.quote = quote;
55
- }
56
- if (typeof legalHoldStatus !== 'undefined') {
57
- content.legalHoldStatus = legalHoldStatus;
58
- }
59
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.TEXT });
60
- }
61
- case conversation_1.GenericMessageType.BUTTON_ACTION: {
62
- return Object.assign(Object.assign({}, baseMessage), { content: genericMessage.buttonAction, type: conversation_1.PayloadBundleType.BUTTON_ACTION });
63
- }
64
- case conversation_1.GenericMessageType.CALLING: {
65
- return Object.assign(Object.assign({}, baseMessage), { content: genericMessage.calling.content, type: conversation_1.PayloadBundleType.CALL });
66
- }
67
- case conversation_1.GenericMessageType.CONFIRMATION: {
68
- const { firstMessageId, moreMessageIds, type } = genericMessage[conversation_1.GenericMessageType.CONFIRMATION];
69
- const content = { firstMessageId, moreMessageIds, type };
70
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.CONFIRMATION });
71
- }
72
- case conversation_1.GenericMessageType.CLEARED: {
73
- const content = genericMessage[conversation_1.GenericMessageType.CLEARED];
74
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.CONVERSATION_CLEAR });
75
- }
76
- case conversation_1.GenericMessageType.DELETED: {
77
- const originalMessageId = genericMessage[conversation_1.GenericMessageType.DELETED].messageId;
78
- const content = { messageId: originalMessageId };
79
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.MESSAGE_DELETE });
80
- }
81
- case conversation_1.GenericMessageType.EDITED: {
82
- const { expectsReadConfirmation, text: { content: editedText, legalHoldStatus, linkPreview: editedLinkPreviews, mentions: editedMentions, quote: editedQuote, }, replacingMessageId, } = genericMessage[conversation_1.GenericMessageType.EDITED];
83
- const content = {
84
- expectsReadConfirmation,
85
- legalHoldStatus,
86
- originalMessageId: replacingMessageId,
87
- text: editedText,
88
- };
89
- if (editedLinkPreviews === null || editedLinkPreviews === void 0 ? void 0 : editedLinkPreviews.length) {
90
- content.linkPreviews = editedLinkPreviews;
91
- }
92
- if (editedMentions === null || editedMentions === void 0 ? void 0 : editedMentions.length) {
93
- content.mentions = editedMentions;
94
- }
95
- if (editedQuote) {
96
- content.quote = editedQuote;
97
- }
98
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.MESSAGE_EDIT });
99
- }
100
- case conversation_1.GenericMessageType.HIDDEN: {
101
- const { conversationId, messageId } = genericMessage[conversation_1.GenericMessageType.HIDDEN];
102
- const content = {
103
- conversationId,
104
- messageId,
105
- };
106
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.MESSAGE_HIDE });
107
- }
108
- case conversation_1.GenericMessageType.KNOCK: {
109
- const { expectsReadConfirmation, legalHoldStatus } = genericMessage[conversation_1.GenericMessageType.KNOCK];
110
- const content = { expectsReadConfirmation, hotKnock: false, legalHoldStatus };
111
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.PING });
112
- }
113
- case conversation_1.GenericMessageType.LOCATION: {
114
- const { expectsReadConfirmation, latitude, legalHoldStatus, longitude, name, zoom } = genericMessage[conversation_1.GenericMessageType.LOCATION];
115
- const content = {
116
- expectsReadConfirmation,
117
- latitude,
118
- legalHoldStatus,
119
- longitude,
120
- name,
121
- zoom,
122
- };
123
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.LOCATION });
124
- }
125
- case conversation_1.GenericMessageType.ASSET: {
126
- const { expectsReadConfirmation, legalHoldStatus, notUploaded, original, preview, status, uploaded } = genericMessage[conversation_1.GenericMessageType.ASSET];
127
- const isImage = !!(uploaded === null || uploaded === void 0 ? void 0 : uploaded.assetId) && !!(original === null || original === void 0 ? void 0 : original.image);
128
- const content = {
129
- abortReason: notUploaded,
130
- expectsReadConfirmation,
131
- legalHoldStatus,
132
- original,
133
- preview,
134
- status,
135
- uploaded,
136
- };
137
- return Object.assign(Object.assign({}, baseMessage), { content, type: isImage ? conversation_1.PayloadBundleType.ASSET_IMAGE : conversation_1.PayloadBundleType.ASSET });
138
- }
139
- case conversation_1.GenericMessageType.REACTION: {
140
- const { emoji, legalHoldStatus, messageId } = genericMessage[conversation_1.GenericMessageType.REACTION];
141
- const content = {
142
- legalHoldStatus,
143
- originalMessageId: messageId,
144
- type: emoji,
145
- };
146
- return Object.assign(Object.assign({}, baseMessage), { content, type: conversation_1.PayloadBundleType.REACTION });
147
- }
148
- default: {
149
- this.logger.warn(`Unhandled event type "${genericMessage.content}": ${JSON.stringify(genericMessage)}`);
150
- return Object.assign(Object.assign({}, baseMessage), { content: genericMessage.content, type: conversation_1.PayloadBundleType.UNKNOWN });
151
- }
152
- }
153
- }
154
- }
155
- exports.GenericMessageMapper = GenericMessageMapper;
156
- GenericMessageMapper.logger = (0, logdown_1.default)('@wireapp/core/GenericMessageMapper', {
157
- logger: console,
158
- markdown: false,
159
- });
@@ -1,17 +0,0 @@
1
- /// <reference types="node" />
2
- import { AssetContent, LocationContent, TextContent } from '../conversation/content';
3
- export type AvailableMessageContent = AssetContent | LocationContent | TextContent;
4
- export declare class MessageHashService {
5
- private readonly messageContent;
6
- private readonly timestamp;
7
- constructor(messageContent: AvailableMessageContent, timestamp?: number);
8
- private createSha256Hash;
9
- private convertToUtf16BE;
10
- private getAssetBytes;
11
- private getTimestampBuffer;
12
- private getLocationBytes;
13
- private getTextBytes;
14
- private getBytes;
15
- getHash(): Buffer;
16
- }
17
- //# sourceMappingURL=MessageHashService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageHashService.d.ts","sourceRoot":"","sources":["../../src/cryptography/MessageHashService.ts"],"names":[],"mappings":";AAsBA,OAAO,EAAC,YAAY,EAAoC,eAAe,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAErH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,eAAe,GAAG,WAAW,CAAC;AAEnF,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0B;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;gBAEvB,cAAc,EAAE,uBAAuB,EAAE,SAAS,GAAE,MAAmB;IAMnF,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,QAAQ;IAiBhB,OAAO,IAAI,MAAM;CAIlB"}