@wireapp/core 34.1.6 → 35.0.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 (338) hide show
  1. package/README.md +2 -2
  2. package/{src/main → lib}/Account.d.ts +8 -8
  3. package/{src/main → lib}/Account.js +12 -12
  4. package/lib/Account.js.map +1 -0
  5. package/{src/main → lib}/CoreError.d.ts +1 -1
  6. package/{src/main → lib}/CoreError.js +0 -0
  7. package/lib/CoreError.js.map +1 -0
  8. package/{src/main → lib}/account/AccountService.d.ts +1 -1
  9. package/{src/main → lib}/account/AccountService.js +0 -0
  10. package/lib/account/AccountService.js.map +1 -0
  11. package/{src/main → lib}/account/index.d.ts +0 -0
  12. package/{src/main → lib}/account/index.js +0 -0
  13. package/lib/account/index.js.map +1 -0
  14. package/{src/main → lib}/auth/LoginSanitizer.d.ts +1 -1
  15. package/{src/main → lib}/auth/LoginSanitizer.js +0 -0
  16. package/lib/auth/LoginSanitizer.js.map +1 -0
  17. package/{src/main → lib}/auth/index.d.ts +0 -0
  18. package/{src/main → lib}/auth/index.js +0 -0
  19. package/lib/auth/index.js.map +1 -0
  20. package/{src/main → lib}/broadcast/AvailabilityType.d.ts +0 -0
  21. package/{src/main → lib}/broadcast/AvailabilityType.js +0 -0
  22. package/lib/broadcast/AvailabilityType.js.map +1 -0
  23. package/{src/main → lib}/broadcast/BroadcastService.d.ts +2 -2
  24. package/{src/main → lib}/broadcast/BroadcastService.js +0 -0
  25. package/lib/broadcast/BroadcastService.js.map +1 -0
  26. package/{src/main → lib}/broadcast/index.d.ts +0 -0
  27. package/{src/main → lib}/broadcast/index.js +0 -0
  28. package/lib/broadcast/index.js.map +1 -0
  29. package/{src/main → lib}/client/ClientBackendRepository.d.ts +1 -1
  30. package/{src/main → lib}/client/ClientBackendRepository.js +0 -0
  31. package/lib/client/ClientBackendRepository.js.map +1 -0
  32. package/{src/main → lib}/client/ClientDatabaseRepository.d.ts +1 -1
  33. package/{src/main → lib}/client/ClientDatabaseRepository.js +0 -0
  34. package/lib/client/ClientDatabaseRepository.js.map +1 -0
  35. package/{src/main → lib}/client/ClientInfo.d.ts +1 -1
  36. package/{src/main → lib}/client/ClientInfo.js +0 -0
  37. package/lib/client/ClientInfo.js.map +1 -0
  38. package/{src/main → lib}/client/ClientService.d.ts +2 -2
  39. package/{src/main → lib}/client/ClientService.js +1 -1
  40. package/lib/client/ClientService.js.map +1 -0
  41. package/{src/main → lib}/client/index.d.ts +0 -0
  42. package/{src/main → lib}/client/index.js +0 -0
  43. package/lib/client/index.js.map +1 -0
  44. package/{src/main → lib}/connection/ConnectionService.d.ts +2 -2
  45. package/{src/main → lib}/connection/ConnectionService.js +1 -1
  46. package/lib/connection/ConnectionService.js.map +1 -0
  47. package/{src/main → lib}/connection/index.d.ts +0 -0
  48. package/{src/main → lib}/connection/index.js +0 -0
  49. package/lib/connection/index.js.map +1 -0
  50. package/{src/main → lib}/conversation/AbortReason.d.ts +0 -0
  51. package/{src/main → lib}/conversation/AbortReason.js +0 -0
  52. package/lib/conversation/AbortReason.js.map +1 -0
  53. package/{src/main → lib}/conversation/AssetService/AssetService.d.ts +7 -4
  54. package/{src/main → lib}/conversation/AssetService/AssetService.js +0 -0
  55. package/lib/conversation/AssetService/AssetService.js.map +1 -0
  56. package/{src/main → lib}/conversation/AssetService/index.d.ts +0 -0
  57. package/{src/main → lib}/conversation/AssetService/index.js +0 -0
  58. package/lib/conversation/AssetService/index.js.map +1 -0
  59. package/{src/main → lib}/conversation/AssetTransferState.d.ts +0 -0
  60. package/{src/main → lib}/conversation/AssetTransferState.js +0 -0
  61. package/lib/conversation/AssetTransferState.js.map +1 -0
  62. package/{src/main → lib}/conversation/ClientActionType.d.ts +0 -0
  63. package/{src/main → lib}/conversation/ClientActionType.js +0 -0
  64. package/lib/conversation/ClientActionType.js.map +1 -0
  65. package/{src/main → lib}/conversation/ConversationMapper/ConversationMapper.d.ts +1 -1
  66. package/{src/main → lib}/conversation/ConversationMapper/ConversationMapper.js +1 -1
  67. package/lib/conversation/ConversationMapper/ConversationMapper.js.map +1 -0
  68. package/{src/main → lib}/conversation/ConversationMapper/index.d.ts +0 -0
  69. package/{src/main → lib}/conversation/ConversationMapper/index.js +0 -0
  70. package/lib/conversation/ConversationMapper/index.js.map +1 -0
  71. package/{src/main → lib}/conversation/ConversationService/ConversationService.d.ts +5 -5
  72. package/{src/main → lib}/conversation/ConversationService/ConversationService.js +2 -2
  73. package/lib/conversation/ConversationService/ConversationService.js.map +1 -0
  74. package/{src/main → lib}/conversation/ConversationService/ConversationService.types.d.ts +3 -3
  75. package/{src/main → lib}/conversation/ConversationService/ConversationService.types.js +0 -0
  76. package/lib/conversation/ConversationService/ConversationService.types.js.map +1 -0
  77. package/{src/main → lib}/conversation/ConversationService/index.d.ts +0 -0
  78. package/{src/main → lib}/conversation/ConversationService/index.js +0 -0
  79. package/lib/conversation/ConversationService/index.js.map +1 -0
  80. package/{src/main → lib}/conversation/GenericMessageType.d.ts +0 -0
  81. package/{src/main → lib}/conversation/GenericMessageType.js +0 -0
  82. package/lib/conversation/GenericMessageType.js.map +1 -0
  83. package/{src/main → lib}/conversation/MessageTimer/MessageTimer.d.ts +0 -0
  84. package/{src/main → lib}/conversation/MessageTimer/MessageTimer.js +0 -0
  85. package/lib/conversation/MessageTimer/MessageTimer.js.map +1 -0
  86. package/{src/main → lib}/conversation/MessageTimer/index.d.ts +0 -0
  87. package/{src/main → lib}/conversation/MessageTimer/index.js +0 -0
  88. package/lib/conversation/MessageTimer/index.js.map +1 -0
  89. package/{src/main → lib}/conversation/ReactionType.d.ts +0 -0
  90. package/{src/main → lib}/conversation/ReactionType.js +0 -0
  91. package/lib/conversation/ReactionType.js.map +1 -0
  92. package/{src/main → lib}/conversation/content/AssetContent.d.ts +0 -0
  93. package/{src/main → lib}/conversation/content/AssetContent.js +0 -0
  94. package/lib/conversation/content/AssetContent.js.map +1 -0
  95. package/{src/main → lib}/conversation/content/ButtonActionConfirmationContent.d.ts +0 -0
  96. package/{src/main → lib}/conversation/content/ButtonActionConfirmationContent.js +0 -0
  97. package/lib/conversation/content/ButtonActionConfirmationContent.js.map +1 -0
  98. package/{src/main → lib}/conversation/content/ButtonActionContent.d.ts +0 -0
  99. package/{src/main → lib}/conversation/content/ButtonActionContent.js +0 -0
  100. package/lib/conversation/content/ButtonActionContent.js.map +1 -0
  101. package/{src/main → lib}/conversation/content/CallingContent.d.ts +0 -0
  102. package/{src/main → lib}/conversation/content/CallingContent.js +0 -0
  103. package/lib/conversation/content/CallingContent.js.map +1 -0
  104. package/{src/main → lib}/conversation/content/ClearedContent.d.ts +0 -0
  105. package/{src/main → lib}/conversation/content/ClearedContent.js +0 -0
  106. package/lib/conversation/content/ClearedContent.js.map +1 -0
  107. package/{src/main → lib}/conversation/content/ClientActionContent.d.ts +0 -0
  108. package/{src/main → lib}/conversation/content/ClientActionContent.js +0 -0
  109. package/lib/conversation/content/ClientActionContent.js.map +1 -0
  110. package/{src/main → lib}/conversation/content/ClientAddContent.d.ts +1 -1
  111. package/{src/main → lib}/conversation/content/ClientAddContent.js +0 -0
  112. package/lib/conversation/content/ClientAddContent.js.map +1 -0
  113. package/{src/main → lib}/conversation/content/ClientRemoveContent.d.ts +0 -0
  114. package/{src/main → lib}/conversation/content/ClientRemoveContent.js +0 -0
  115. package/lib/conversation/content/ClientRemoveContent.js.map +1 -0
  116. package/{src/main → lib}/conversation/content/CompositeContent.d.ts +0 -0
  117. package/{src/main → lib}/conversation/content/CompositeContent.js +0 -0
  118. package/lib/conversation/content/CompositeContent.js.map +1 -0
  119. package/{src/main → lib}/conversation/content/ConfirmationContent.d.ts +0 -0
  120. package/{src/main → lib}/conversation/content/ConfirmationContent.js +0 -0
  121. package/lib/conversation/content/ConfirmationContent.js.map +1 -0
  122. package/{src/main → lib}/conversation/content/ContentType.d.ts +1 -1
  123. package/{src/main → lib}/conversation/content/ContentType.js +0 -0
  124. package/lib/conversation/content/ContentType.js.map +1 -0
  125. package/{src/main → lib}/conversation/content/ConversationContent.d.ts +0 -0
  126. package/{src/main → lib}/conversation/content/ConversationContent.js +0 -0
  127. package/lib/conversation/content/ConversationContent.js.map +1 -0
  128. package/{src/main → lib}/conversation/content/DeletedContent.d.ts +0 -0
  129. package/{src/main → lib}/conversation/content/DeletedContent.js +0 -0
  130. package/lib/conversation/content/DeletedContent.js.map +1 -0
  131. package/{src/main → lib}/conversation/content/EditedTextContent.d.ts +0 -0
  132. package/{src/main → lib}/conversation/content/EditedTextContent.js +0 -0
  133. package/lib/conversation/content/EditedTextContent.js.map +1 -0
  134. package/{src/main → lib}/conversation/content/FileContent.d.ts +0 -0
  135. package/{src/main → lib}/conversation/content/FileContent.js +0 -0
  136. package/lib/conversation/content/FileContent.js.map +1 -0
  137. package/{src/main → lib}/conversation/content/HiddenContent.d.ts +0 -0
  138. package/{src/main → lib}/conversation/content/HiddenContent.js +0 -0
  139. package/lib/conversation/content/HiddenContent.js.map +1 -0
  140. package/{src/main → lib}/conversation/content/ImageContent.d.ts +0 -0
  141. package/{src/main → lib}/conversation/content/ImageContent.js +0 -0
  142. package/lib/conversation/content/ImageContent.js.map +1 -0
  143. package/{src/main → lib}/conversation/content/KnockContent.d.ts +0 -0
  144. package/{src/main → lib}/conversation/content/KnockContent.js +0 -0
  145. package/lib/conversation/content/KnockContent.js.map +1 -0
  146. package/{src/main → lib}/conversation/content/LinkPreviewContent.d.ts +0 -0
  147. package/{src/main → lib}/conversation/content/LinkPreviewContent.js +0 -0
  148. package/lib/conversation/content/LinkPreviewContent.js.map +1 -0
  149. package/{src/main → lib}/conversation/content/LocationContent.d.ts +0 -0
  150. package/{src/main → lib}/conversation/content/LocationContent.js +0 -0
  151. package/lib/conversation/content/LocationContent.js.map +1 -0
  152. package/{src/main → lib}/conversation/content/MentionContent.d.ts +0 -0
  153. package/{src/main → lib}/conversation/content/MentionContent.js +0 -0
  154. package/lib/conversation/content/MentionContent.js.map +1 -0
  155. package/{src/main → lib}/conversation/content/QuoteContent.d.ts +0 -0
  156. package/{src/main → lib}/conversation/content/QuoteContent.js +0 -0
  157. package/lib/conversation/content/QuoteContent.js.map +1 -0
  158. package/{src/main → lib}/conversation/content/ReactionContent.d.ts +0 -0
  159. package/{src/main → lib}/conversation/content/ReactionContent.js +0 -0
  160. package/lib/conversation/content/ReactionContent.js.map +1 -0
  161. package/{src/main → lib}/conversation/content/TextContent.d.ts +0 -0
  162. package/{src/main → lib}/conversation/content/TextContent.js +0 -0
  163. package/lib/conversation/content/TextContent.js.map +1 -0
  164. package/{src/main → lib}/conversation/content/TweetContent.d.ts +0 -0
  165. package/{src/main → lib}/conversation/content/TweetContent.js +0 -0
  166. package/lib/conversation/content/TweetContent.js.map +1 -0
  167. package/{src/main → lib}/conversation/content/index.d.ts +1 -1
  168. package/{src/main → lib}/conversation/content/index.js +0 -0
  169. package/lib/conversation/content/index.js.map +1 -0
  170. package/{src/main → lib}/conversation/index.d.ts +0 -0
  171. package/{src/main → lib}/conversation/index.js +0 -0
  172. package/lib/conversation/index.js.map +1 -0
  173. package/{src/main → lib}/conversation/message/CompositeContentBuilder.d.ts +0 -0
  174. package/{src/main → lib}/conversation/message/CompositeContentBuilder.js +0 -0
  175. package/lib/conversation/message/CompositeContentBuilder.js.map +1 -0
  176. package/{src/main → lib}/conversation/message/Message.d.ts +0 -0
  177. package/{src/main → lib}/conversation/message/Message.js +0 -0
  178. package/lib/conversation/message/Message.js.map +1 -0
  179. package/{src/main → lib}/conversation/message/MessageBuilder.d.ts +1 -1
  180. package/{src/main → lib}/conversation/message/MessageBuilder.js +0 -0
  181. package/lib/conversation/message/MessageBuilder.js.map +1 -0
  182. package/{src/main → lib}/conversation/message/MessageService.d.ts +2 -2
  183. package/{src/main → lib}/conversation/message/MessageService.js +1 -1
  184. package/lib/conversation/message/MessageService.js.map +1 -0
  185. package/{src/main → lib}/conversation/message/MessageToProtoMapper.d.ts +0 -0
  186. package/{src/main → lib}/conversation/message/MessageToProtoMapper.js +0 -0
  187. package/lib/conversation/message/MessageToProtoMapper.js.map +1 -0
  188. package/{src/main → lib}/conversation/message/OtrMessage.d.ts +0 -0
  189. package/{src/main → lib}/conversation/message/OtrMessage.js +0 -0
  190. package/lib/conversation/message/OtrMessage.js.map +1 -0
  191. package/{src/main → lib}/conversation/message/PayloadBundle.d.ts +2 -2
  192. package/{src/main → lib}/conversation/message/PayloadBundle.js +0 -0
  193. package/lib/conversation/message/PayloadBundle.js.map +1 -0
  194. package/{src/main → lib}/conversation/message/TeamMessage.d.ts +1 -1
  195. package/{src/main → lib}/conversation/message/TeamMessage.js +0 -0
  196. package/lib/conversation/message/TeamMessage.js.map +1 -0
  197. package/{src/main → lib}/conversation/message/TextContentBuilder.d.ts +0 -0
  198. package/{src/main → lib}/conversation/message/TextContentBuilder.js +0 -0
  199. package/lib/conversation/message/TextContentBuilder.js.map +1 -0
  200. package/{src/main → lib}/conversation/message/UserClientsUtil.d.ts +1 -1
  201. package/{src/main → lib}/conversation/message/UserClientsUtil.js +0 -0
  202. package/lib/conversation/message/UserClientsUtil.js.map +1 -0
  203. package/{src/main → lib}/conversation/message/UserMessage.d.ts +1 -1
  204. package/{src/main → lib}/conversation/message/UserMessage.js +0 -0
  205. package/lib/conversation/message/UserMessage.js.map +1 -0
  206. package/{src/main → lib}/conversation/message/messageSender.d.ts +0 -0
  207. package/{src/main → lib}/conversation/message/messageSender.js +0 -0
  208. package/lib/conversation/message/messageSender.js.map +1 -0
  209. package/{src/main → lib}/cryptography/AssetCryptography/EncryptedAsset.d.ts +0 -0
  210. package/{src/main → lib}/cryptography/AssetCryptography/EncryptedAsset.js +0 -0
  211. package/lib/cryptography/AssetCryptography/EncryptedAsset.js.map +1 -0
  212. package/{src/main → lib}/cryptography/AssetCryptography/crypto.browser.d.ts +0 -0
  213. package/{src/main → lib}/cryptography/AssetCryptography/crypto.browser.js +0 -0
  214. package/lib/cryptography/AssetCryptography/crypto.browser.js.map +1 -0
  215. package/{src/main → lib}/cryptography/AssetCryptography/crypto.node.d.ts +0 -0
  216. package/{src/main → lib}/cryptography/AssetCryptography/crypto.node.js +0 -0
  217. package/lib/cryptography/AssetCryptography/crypto.node.js.map +1 -0
  218. package/{src/main → lib}/cryptography/AssetCryptography/index.d.ts +1 -1
  219. package/{src/main → lib}/cryptography/AssetCryptography/index.js +0 -0
  220. package/lib/cryptography/AssetCryptography/index.js.map +1 -0
  221. package/{src/main → lib}/cryptography/AssetCryptography/interfaces.d.ts +0 -0
  222. package/{src/main → lib}/cryptography/AssetCryptography/interfaces.js +0 -0
  223. package/lib/cryptography/AssetCryptography/interfaces.js.map +1 -0
  224. package/{src/main → lib}/cryptography/CryptographyDatabaseRepository.d.ts +0 -0
  225. package/{src/main → lib}/cryptography/CryptographyDatabaseRepository.js +0 -0
  226. package/lib/cryptography/CryptographyDatabaseRepository.js.map +1 -0
  227. package/{src/main → lib}/cryptography/CryptographyService.d.ts +5 -5
  228. package/{src/main → lib}/cryptography/CryptographyService.js +0 -0
  229. package/lib/cryptography/CryptographyService.js.map +1 -0
  230. package/{src/main → lib}/cryptography/GenericMessageMapper.d.ts +1 -1
  231. package/{src/main → lib}/cryptography/GenericMessageMapper.js +0 -0
  232. package/lib/cryptography/GenericMessageMapper.js.map +1 -0
  233. package/{src/main → lib}/cryptography/MessageHashService.d.ts +0 -0
  234. package/{src/main → lib}/cryptography/MessageHashService.js +0 -0
  235. package/lib/cryptography/MessageHashService.js.map +1 -0
  236. package/{src/main → lib}/cryptography/SessionPayloadBundle.d.ts +0 -0
  237. package/{src/main → lib}/cryptography/SessionPayloadBundle.js +0 -0
  238. package/lib/cryptography/SessionPayloadBundle.js.map +1 -0
  239. package/{src/main → lib}/cryptography/index.d.ts +0 -0
  240. package/{src/main → lib}/cryptography/index.js +0 -0
  241. package/lib/cryptography/index.js.map +1 -0
  242. package/{src/main → lib}/giphy/GiphyService.d.ts +1 -1
  243. package/{src/main → lib}/giphy/GiphyService.js +0 -0
  244. package/lib/giphy/GiphyService.js.map +1 -0
  245. package/{src/main → lib}/giphy/index.d.ts +0 -0
  246. package/{src/main → lib}/giphy/index.js +0 -0
  247. package/lib/giphy/index.js.map +1 -0
  248. package/{src/main → lib}/index.d.ts +0 -0
  249. package/{src/main → lib}/index.js +0 -0
  250. package/lib/index.js.map +1 -0
  251. package/{src/main → lib}/linkPreview/LinkPreviewService.d.ts +0 -0
  252. package/{src/main → lib}/linkPreview/LinkPreviewService.js +0 -0
  253. package/lib/linkPreview/LinkPreviewService.js.map +1 -0
  254. package/{src/main → lib}/linkPreview/index.d.ts +0 -0
  255. package/{src/main → lib}/linkPreview/index.js +0 -0
  256. package/lib/linkPreview/index.js.map +1 -0
  257. package/{src/main → lib}/mls/MLSService/MLSService.d.ts +1 -1
  258. package/{src/main → lib}/mls/MLSService/MLSService.js +0 -0
  259. package/lib/mls/MLSService/MLSService.js.map +1 -0
  260. package/{src/main → lib}/mls/index.d.ts +0 -0
  261. package/{src/main → lib}/mls/index.js +0 -0
  262. package/lib/mls/index.js.map +1 -0
  263. package/{src/main → lib}/mls/keyMaterialUpdatesStore/index.d.ts +0 -0
  264. package/{src/main → lib}/mls/keyMaterialUpdatesStore/index.js +0 -0
  265. package/lib/mls/keyMaterialUpdatesStore/index.js.map +1 -0
  266. package/{src/main → lib}/mls/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts +0 -0
  267. package/{src/main → lib}/mls/keyMaterialUpdatesStore/keyMaterialUpdatesStore.js +0 -0
  268. package/lib/mls/keyMaterialUpdatesStore/keyMaterialUpdatesStore.js.map +1 -0
  269. package/{src/main → lib}/mls/keyPackagesStatusStore/keyPackagesStatusStore.d.ts +0 -0
  270. package/{src/main → lib}/mls/keyPackagesStatusStore/keyPackagesStatusStore.js +0 -0
  271. package/lib/mls/keyPackagesStatusStore/keyPackagesStatusStore.js.map +1 -0
  272. package/{src/main → lib}/mls/types.d.ts +1 -1
  273. package/{src/main → lib}/mls/types.js +0 -0
  274. package/lib/mls/types.js.map +1 -0
  275. package/{src/main → lib}/notification/NotificationBackendRepository.d.ts +1 -1
  276. package/{src/main → lib}/notification/NotificationBackendRepository.js +0 -0
  277. package/lib/notification/NotificationBackendRepository.js.map +1 -0
  278. package/{src/main → lib}/notification/NotificationDatabaseRepository.d.ts +2 -2
  279. package/{src/main → lib}/notification/NotificationDatabaseRepository.js +0 -0
  280. package/lib/notification/NotificationDatabaseRepository.js.map +1 -0
  281. package/{src/main → lib}/notification/NotificationService.d.ts +3 -3
  282. package/{src/main → lib}/notification/NotificationService.js +1 -1
  283. package/lib/notification/NotificationService.js.map +1 -0
  284. package/{src/main → lib}/notification/index.d.ts +0 -0
  285. package/{src/main → lib}/notification/index.js +0 -0
  286. package/lib/notification/index.js.map +1 -0
  287. package/{src/main → lib}/notification/types.d.ts +0 -0
  288. package/{src/main → lib}/notification/types.js +0 -0
  289. package/lib/notification/types.js.map +1 -0
  290. package/{src/main → lib}/self/SelfService.d.ts +1 -1
  291. package/{src/main → lib}/self/SelfService.js +0 -0
  292. package/lib/self/SelfService.js.map +1 -0
  293. package/{src/main → lib}/self/index.d.ts +0 -0
  294. package/{src/main → lib}/self/index.js +0 -0
  295. package/lib/self/index.js.map +1 -0
  296. package/{src/main → lib}/team/TeamService.d.ts +1 -1
  297. package/{src/main → lib}/team/TeamService.js +0 -0
  298. package/lib/team/TeamService.js.map +1 -0
  299. package/{src/main → lib}/team/index.d.ts +0 -0
  300. package/{src/main → lib}/team/index.js +0 -0
  301. package/lib/team/index.js.map +1 -0
  302. package/{src/main → lib}/user/UserMapper.d.ts +1 -1
  303. package/{src/main → lib}/user/UserMapper.js +1 -1
  304. package/lib/user/UserMapper.js.map +1 -0
  305. package/{src/main → lib}/user/UserService.d.ts +1 -1
  306. package/{src/main → lib}/user/UserService.js +1 -1
  307. package/lib/user/UserService.js.map +1 -0
  308. package/{src/main → lib}/user/index.d.ts +0 -0
  309. package/{src/main → lib}/user/index.js +0 -0
  310. package/lib/user/index.js.map +1 -0
  311. package/{src/main → lib}/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.d.ts +0 -0
  312. package/{src/main → lib}/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.js +0 -0
  313. package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.js.map +1 -0
  314. package/{src/main → lib}/util/TaskScheduler/TaskScheduler.d.ts +0 -0
  315. package/{src/main → lib}/util/TaskScheduler/TaskScheduler.js +0 -0
  316. package/lib/util/TaskScheduler/TaskScheduler.js.map +1 -0
  317. package/{src/main → lib}/util/TypePredicateUtil.d.ts +2 -2
  318. package/{src/main → lib}/util/TypePredicateUtil.js +0 -0
  319. package/lib/util/TypePredicateUtil.js.map +1 -0
  320. package/{src/main → lib}/util/encryptedStore.d.ts +0 -0
  321. package/{src/main → lib}/util/encryptedStore.js +0 -0
  322. package/lib/util/encryptedStore.js.map +1 -0
  323. package/lib/util/encryptedStore.test.node.d.ts +1 -0
  324. package/lib/util/encryptedStore.test.node.js +54 -0
  325. package/lib/util/encryptedStore.test.node.js.map +1 -0
  326. package/{src/main → lib}/util/fullyQualifiedClientIdUtils.d.ts +1 -1
  327. package/{src/main → lib}/util/fullyQualifiedClientIdUtils.js +0 -0
  328. package/lib/util/fullyQualifiedClientIdUtils.js.map +1 -0
  329. package/{src/main → lib}/util/index.d.ts +0 -0
  330. package/{src/main → lib}/util/index.js +0 -0
  331. package/lib/util/index.js.map +1 -0
  332. package/package.json +23 -23
  333. package/src/main/test/AccountHelper.js +0 -21
  334. package/src/main/test/CryptographyHelper.d.ts +0 -4
  335. package/src/main/test/CryptographyHelper.js +0 -69
  336. package/src/main/test/PayloadHelper.d.ts +0 -3
  337. package/src/main/test/PayloadHelper.js +0 -66
  338. package/src/main/test/StoreHelper.js +0 -9
@@ -1,4 +1,4 @@
1
- import { QualifiedUserClientMap } from '@wireapp/api-client/src/client';
1
+ import { QualifiedUserClientMap } from '@wireapp/api-client/lib/client';
2
2
  declare type UserId = string;
3
3
  declare type ClientId = string;
4
4
  declare type Domain = string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fullyQualifiedClientIdUtils.js","sourceRoot":"","sources":["../../src/util/fullyQualifiedClientIdUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AASI,MAAM,+BAA+B,GAAG,CAC7C,MAAc,EACd,QAAkB,EAClB,MAAc,EACM,EAAE,CAAC,GAAG,MAAM,IAAI,QAAQ,IAAI,MAAM,EAAE,CAAC;AAJ9C,QAAA,+BAA+B,mCAIe;AAEpD,MAAM,0BAA0B,GAAG,CAAC,WAAmB,EAAoD,EAAE;;IAClH,MAAM,MAAM,GAAG,qDAAqD,CAAC;IACrE,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,MAAA,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,mCAAI,EAAE,CAAC;IACjE,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,iDAAiD,WAAW,GAAG,CAAC,CAAC;KAClF;IACD,OAAO,EAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAC,CAAC;AAChC,CAAC,CAAC;AAPW,QAAA,0BAA0B,8BAOrC;AAEK,MAAM,kDAAkD,GAAG,CAAC,gBAAwC,EAAE,EAAE;IAC7G,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,OAAO,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE;QAClE,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACtC,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAC3C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,uCAA+B,EAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAClG,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AARW,QAAA,kDAAkD,sDAQ7D"}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,sDAAoC"}
package/package.json CHANGED
@@ -1,17 +1,25 @@
1
1
  {
2
+ "name": "@wireapp/core",
3
+ "license": "GPL-3.0",
4
+ "description": "Wire for Web's communication core.",
5
+ "repository": "https://github.com/wireapp/wire-web-packages/tree/main/packages/core",
6
+ "files": [
7
+ "lib"
8
+ ],
9
+ "main": "lib/index",
2
10
  "browser": {
3
- "./src/main/cryptography/AssetCryptography/crypto.node": "./src/main/cryptography/AssetCryptography/crypto.browser.js"
11
+ "./lib/cryptography/AssetCryptography/crypto.node": "./lib/cryptography/AssetCryptography/crypto.browser.js"
4
12
  },
5
13
  "dependencies": {
6
- "@wireapp/api-client": "^21.0.6",
7
- "@wireapp/commons": "^4.5.1",
14
+ "@wireapp/api-client": "^22.0.0",
15
+ "@wireapp/commons": "^5.0.0",
8
16
  "@wireapp/core-crypto": "0.5.2",
9
17
  "@wireapp/cryptobox": "12.8.0",
10
- "@wireapp/promise-queue": "^1.3.6",
18
+ "@wireapp/promise-queue": "^2.0.0",
11
19
  "@wireapp/protocol-messaging": "1.42.0",
12
- "@wireapp/store-engine-dexie": "^1.7.13",
20
+ "@wireapp/store-engine-dexie": "^2.0.0",
13
21
  "axios": "1.1.2",
14
- "bazinga64": "5.11.12",
22
+ "bazinga64": "6.0.0",
15
23
  "hash.js": "1.1.7",
16
24
  "http-status-codes": "2.2.0",
17
25
  "idb": "7.1.0",
@@ -25,6 +33,7 @@
25
33
  "@swc/jest": "^0.2.23",
26
34
  "@types/jest": "^29.2.0",
27
35
  "@types/long": "^5.0.0",
36
+ "@types/rimraf": "^3.0.2",
28
37
  "@types/tough-cookie": "4.0.2",
29
38
  "@wireapp/commons": "workspace:^",
30
39
  "@wireapp/store-engine-dexie": "workspace:^",
@@ -34,25 +43,16 @@
34
43
  "jest": "^29.2.1",
35
44
  "jest-websocket-mock": "2.4.0",
36
45
  "mock-socket": "9.1.5",
37
- "nock": "13.2.9"
46
+ "nock": "13.2.9",
47
+ "rimraf": "^3.0.2",
48
+ "typescript": "^4.8.4"
38
49
  },
39
- "description": "Wire for Web's communication core.",
40
- "files": [
41
- "src/main/**/*.d.ts",
42
- "src/main/**/*.js",
43
- "!src/main/**/*test*.js",
44
- "!src/main/**/*test*.ts"
45
- ],
46
- "license": "GPL-3.0",
47
- "main": "src/main/index",
48
- "name": "@wireapp/core",
49
- "repository": "https://github.com/wireapp/wire-web-packages/tree/main/packages/core",
50
50
  "scripts": {
51
- "build": "tsc",
52
- "clean": "rimraf .tmp \"src/main/{!(*.test*).js,*.js.map,*.d.ts}\" \"src/main/test/{*.js.map,*.d.ts}\" \"src/main/!(test)/{!(*.test*).js,*.js.map,*.d.ts}\" \"src/main/**/{!(*.test*|AccountHelper|StoreHelper).js,*.js.map,*.d.ts}\" \"src/main/**/*.node.js\"",
51
+ "build": "yarn clean && tsc",
52
+ "clean": "rimraf .tmp lib",
53
+ "dist": "yarn build",
53
54
  "demo:composite": "cross-env NODE_DEBUG='@wireapp*' ts-node src/demo/composite.ts",
54
55
  "demo:sendCounter": "cross-env NODE_DEBUG='@wireapp*' ts-node src/demo/sendCounter.ts",
55
- "dist": "yarn clean && yarn build",
56
56
  "start": "yarn dist && node index.js",
57
57
  "start:echo": "cross-env NODE_DEBUG='@wireapp/core*' node src/demo/echo.js",
58
58
  "start:sender": "cross-env NODE_DEBUG='@wireapp/core*' node src/demo/sender.js",
@@ -60,6 +60,6 @@
60
60
  "test:coverage": "jest --coverage",
61
61
  "watch": "tsc --watch"
62
62
  },
63
- "version": "34.1.6",
64
- "gitHead": "ecfe3cdd621e5f5d632800fe7eb21fa154d7f2e3"
63
+ "version": "35.0.0",
64
+ "gitHead": "2d645a80b9db0e9db3f735e6063d036433a41e36"
65
65
  }
@@ -1,21 +0,0 @@
1
- const StoreHelper = require('./StoreHelper');
2
- const {Account} = require('@wireapp/core');
3
- const {APIClient} = require('@wireapp/api-client');
4
- const {ClientType} = require('@wireapp/api-client/src/client/');
5
-
6
- module.exports = {
7
- getAccount: async function (email, password) {
8
- const login = {
9
- clientType: ClientType.TEMPORARY,
10
- email,
11
- password,
12
- };
13
- const backend = APIClient.BACKEND.STAGING;
14
- const engine = await StoreHelper.createMemoryEngine(email);
15
- const apiClient = new APIClient({store: engine, urls: backend});
16
- const account = new Account(apiClient);
17
- await account.login(login);
18
- await account.listen();
19
- return account;
20
- },
21
- };
@@ -1,4 +0,0 @@
1
- import { keys } from '@wireapp/proteus';
2
- import { CryptographyService } from '../cryptography';
3
- export declare function createEncodedCipherText(receiver: keys.IdentityKeyPair, preKey: keys.PreKey, text: string): Promise<string>;
4
- export declare function getPlainText(cryptographyService: CryptographyService, encodedPreKeyMessage: string, sessionId?: string): Promise<string | void>;
@@ -1,69 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- var desc = Object.getOwnPropertyDescriptor(m, k);
23
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
- desc = { enumerable: true, get: function() { return m[k]; } };
25
- }
26
- Object.defineProperty(o, k2, desc);
27
- }) : (function(o, m, k, k2) {
28
- if (k2 === undefined) k2 = k;
29
- o[k2] = m[k];
30
- }));
31
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
- Object.defineProperty(o, "default", { enumerable: true, value: v });
33
- }) : function(o, v) {
34
- o["default"] = v;
35
- });
36
- var __importStar = (this && this.__importStar) || function (mod) {
37
- if (mod && mod.__esModule) return mod;
38
- var result = {};
39
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
40
- __setModuleDefault(result, mod);
41
- return result;
42
- };
43
- Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.getPlainText = exports.createEncodedCipherText = void 0;
45
- const cryptobox_1 = require("@wireapp/cryptobox");
46
- const proteus_1 = require("@wireapp/proteus");
47
- const bazinga64 = __importStar(require("bazinga64"));
48
- const StoreHelper = require('./StoreHelper');
49
- async function createEncodedCipherText(receiver, preKey, text) {
50
- await (0, proteus_1.init)();
51
- const senderEngine = await StoreHelper.createMemoryEngine();
52
- const sender = new cryptobox_1.Cryptobox(senderEngine, 1);
53
- await sender.create();
54
- const sessionId = `from-${sender['identity'].public_key.fingerprint()}-to-${preKey.key_pair.public_key.fingerprint()}`;
55
- const alicePublicKey = receiver.public_key;
56
- const publicPreKeyBundle = new proteus_1.keys.PreKeyBundle(alicePublicKey, preKey);
57
- const encryptedPreKeyMessage = await sender.encrypt(sessionId, text, publicPreKeyBundle.serialise());
58
- return bazinga64.Encoder.toBase64(encryptedPreKeyMessage).asString;
59
- }
60
- exports.createEncodedCipherText = createEncodedCipherText;
61
- async function getPlainText(cryptographyService, encodedPreKeyMessage, sessionId = `temp-${Date.now()}`) {
62
- try {
63
- const decryptedMessage = await cryptographyService.decrypt(sessionId, encodedPreKeyMessage);
64
- return Buffer.from(decryptedMessage).toString('utf8');
65
- }
66
- catch (error) { }
67
- }
68
- exports.getPlainText = getPlainText;
69
- //# sourceMappingURL=CryptographyHelper.js.map
@@ -1,3 +0,0 @@
1
- export declare function getUUID(): string;
2
- export declare function getUrlParameter(url: string, parameter: string): string | string[] | null;
3
- export declare function mockUserPayload(userId: string): Object;
@@ -1,66 +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.mockUserPayload = exports.getUrlParameter = exports.getUUID = void 0;
25
- const faker_1 = require("@faker-js/faker");
26
- const uuidjs_1 = __importDefault(require("uuidjs"));
27
- function getUUID() {
28
- return uuidjs_1.default.genV4().toString();
29
- }
30
- exports.getUUID = getUUID;
31
- function getUrlParameter(url, parameter) {
32
- if (typeof window === 'undefined') {
33
- return require('url').parse(url, true).query[parameter];
34
- }
35
- return new URL(url).searchParams.get(parameter);
36
- }
37
- exports.getUrlParameter = getUrlParameter;
38
- function mockUserPayload(userId) {
39
- return {
40
- accent_id: 3,
41
- assets: [],
42
- id: userId,
43
- locale: 'en',
44
- name: faker_1.faker.name.fullName(),
45
- picture: [
46
- {
47
- content_length: 263345,
48
- content_type: 'image/jpeg',
49
- data: null,
50
- id: getUUID(),
51
- info: {
52
- correlation_id: getUUID(),
53
- height: 960,
54
- nonce: getUUID(),
55
- original_height: 960,
56
- original_width: 1280,
57
- public: true,
58
- tag: 'medium',
59
- width: 1280,
60
- },
61
- },
62
- ],
63
- };
64
- }
65
- exports.mockUserPayload = mockUserPayload;
66
- //# sourceMappingURL=PayloadHelper.js.map
@@ -1,9 +0,0 @@
1
- const {MemoryEngine} = require('@wireapp/store-engine');
2
-
3
- module.exports = {
4
- createMemoryEngine: async (storeName = `temp-${Date.now()}`) => {
5
- const engine = new MemoryEngine();
6
- await engine.init(storeName);
7
- return engine;
8
- },
9
- };