@wireapp/core 36.3.1 → 36.4.3

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 (513) hide show
  1. package/lib/Account.d.ts +16 -4
  2. package/lib/Account.d.ts.map +1 -0
  3. package/lib/Account.js +24 -9
  4. package/lib/CoreError.d.ts +1 -0
  5. package/lib/CoreError.d.ts.map +1 -0
  6. package/lib/CoreError.js +0 -1
  7. package/lib/account/AccountService.d.ts +2 -1
  8. package/lib/account/AccountService.d.ts.map +1 -0
  9. package/lib/account/AccountService.js +0 -1
  10. package/lib/account/index.d.ts +1 -0
  11. package/lib/account/index.d.ts.map +1 -0
  12. package/lib/account/index.js +0 -1
  13. package/lib/auth/LoginSanitizer.d.ts +1 -0
  14. package/lib/auth/LoginSanitizer.d.ts.map +1 -0
  15. package/lib/auth/LoginSanitizer.js +0 -1
  16. package/lib/auth/index.d.ts +1 -0
  17. package/lib/auth/index.d.ts.map +1 -0
  18. package/lib/auth/index.js +0 -1
  19. package/lib/broadcast/AvailabilityType.d.ts +1 -0
  20. package/lib/broadcast/AvailabilityType.d.ts.map +1 -0
  21. package/lib/broadcast/AvailabilityType.js +0 -1
  22. package/lib/broadcast/BroadcastService.d.ts +2 -1
  23. package/lib/broadcast/BroadcastService.d.ts.map +1 -0
  24. package/lib/broadcast/BroadcastService.js +0 -1
  25. package/lib/broadcast/index.d.ts +1 -0
  26. package/lib/broadcast/index.d.ts.map +1 -0
  27. package/lib/broadcast/index.js +0 -1
  28. package/lib/client/ClientBackendRepository.d.ts +2 -1
  29. package/lib/client/ClientBackendRepository.d.ts.map +1 -0
  30. package/lib/client/ClientBackendRepository.js +0 -1
  31. package/lib/client/ClientDatabaseRepository.d.ts +2 -1
  32. package/lib/client/ClientDatabaseRepository.d.ts.map +1 -0
  33. package/lib/client/ClientDatabaseRepository.js +0 -1
  34. package/lib/client/ClientInfo.d.ts +1 -0
  35. package/lib/client/ClientInfo.d.ts.map +1 -0
  36. package/lib/client/ClientInfo.js +0 -1
  37. package/lib/client/ClientService.d.ts +2 -1
  38. package/lib/client/ClientService.d.ts.map +1 -0
  39. package/lib/client/ClientService.js +0 -1
  40. package/lib/client/index.d.ts +1 -0
  41. package/lib/client/index.d.ts.map +1 -0
  42. package/lib/client/index.js +0 -1
  43. package/lib/connection/ConnectionService.d.ts +2 -1
  44. package/lib/connection/ConnectionService.d.ts.map +1 -0
  45. package/lib/connection/ConnectionService.js +0 -1
  46. package/lib/connection/index.d.ts +1 -0
  47. package/lib/connection/index.d.ts.map +1 -0
  48. package/lib/connection/index.js +0 -1
  49. package/lib/conversation/AbortReason.d.ts +1 -0
  50. package/lib/conversation/AbortReason.d.ts.map +1 -0
  51. package/lib/conversation/AbortReason.js +0 -1
  52. package/lib/conversation/AssetService/AssetService.d.ts +2 -1
  53. package/lib/conversation/AssetService/AssetService.d.ts.map +1 -0
  54. package/lib/conversation/AssetService/AssetService.js +0 -1
  55. package/lib/conversation/AssetService/index.d.ts +1 -0
  56. package/lib/conversation/AssetService/index.d.ts.map +1 -0
  57. package/lib/conversation/AssetService/index.js +0 -1
  58. package/lib/conversation/AssetTransferState.d.ts +1 -0
  59. package/lib/conversation/AssetTransferState.d.ts.map +1 -0
  60. package/lib/conversation/AssetTransferState.js +0 -1
  61. package/lib/conversation/ClientActionType.d.ts +1 -0
  62. package/lib/conversation/ClientActionType.d.ts.map +1 -0
  63. package/lib/conversation/ClientActionType.js +0 -1
  64. package/lib/conversation/ConversationMapper/ConversationMapper.d.ts +1 -0
  65. package/lib/conversation/ConversationMapper/ConversationMapper.d.ts.map +1 -0
  66. package/lib/conversation/ConversationMapper/ConversationMapper.js +0 -1
  67. package/lib/conversation/ConversationMapper/index.d.ts +1 -0
  68. package/lib/conversation/ConversationMapper/index.d.ts.map +1 -0
  69. package/lib/conversation/ConversationMapper/index.js +0 -1
  70. package/lib/conversation/ConversationService/ConversationService.d.ts +5 -4
  71. package/lib/conversation/ConversationService/ConversationService.d.ts.map +1 -0
  72. package/lib/conversation/ConversationService/ConversationService.js +6 -7
  73. package/lib/conversation/ConversationService/ConversationService.types.d.ts +3 -2
  74. package/lib/conversation/ConversationService/ConversationService.types.d.ts.map +1 -0
  75. package/lib/conversation/ConversationService/ConversationService.types.js +0 -1
  76. package/lib/conversation/ConversationService/index.d.ts +1 -0
  77. package/lib/conversation/ConversationService/index.d.ts.map +1 -0
  78. package/lib/conversation/ConversationService/index.js +0 -1
  79. package/lib/conversation/GenericMessageType.d.ts +1 -0
  80. package/lib/conversation/GenericMessageType.d.ts.map +1 -0
  81. package/lib/conversation/GenericMessageType.js +0 -1
  82. package/lib/conversation/MessageTimer/MessageTimer.d.ts +1 -0
  83. package/lib/conversation/MessageTimer/MessageTimer.d.ts.map +1 -0
  84. package/lib/conversation/MessageTimer/MessageTimer.js +0 -1
  85. package/lib/conversation/MessageTimer/index.d.ts +1 -0
  86. package/lib/conversation/MessageTimer/index.d.ts.map +1 -0
  87. package/lib/conversation/MessageTimer/index.js +0 -1
  88. package/lib/conversation/ReactionType.d.ts +1 -0
  89. package/lib/conversation/ReactionType.d.ts.map +1 -0
  90. package/lib/conversation/ReactionType.js +0 -1
  91. package/lib/conversation/content/AssetContent.d.ts +2 -1
  92. package/lib/conversation/content/AssetContent.d.ts.map +1 -0
  93. package/lib/conversation/content/AssetContent.js +0 -1
  94. package/lib/conversation/content/ButtonActionConfirmationContent.d.ts +1 -0
  95. package/lib/conversation/content/ButtonActionConfirmationContent.d.ts.map +1 -0
  96. package/lib/conversation/content/ButtonActionConfirmationContent.js +0 -1
  97. package/lib/conversation/content/ButtonActionContent.d.ts +1 -0
  98. package/lib/conversation/content/ButtonActionContent.d.ts.map +1 -0
  99. package/lib/conversation/content/ButtonActionContent.js +0 -1
  100. package/lib/conversation/content/CallingContent.d.ts +1 -0
  101. package/lib/conversation/content/CallingContent.d.ts.map +1 -0
  102. package/lib/conversation/content/CallingContent.js +0 -1
  103. package/lib/conversation/content/ClearedContent.d.ts +1 -0
  104. package/lib/conversation/content/ClearedContent.d.ts.map +1 -0
  105. package/lib/conversation/content/ClearedContent.js +0 -1
  106. package/lib/conversation/content/ClientActionContent.d.ts +1 -0
  107. package/lib/conversation/content/ClientActionContent.d.ts.map +1 -0
  108. package/lib/conversation/content/ClientActionContent.js +0 -1
  109. package/lib/conversation/content/ClientAddContent.d.ts +1 -0
  110. package/lib/conversation/content/ClientAddContent.d.ts.map +1 -0
  111. package/lib/conversation/content/ClientAddContent.js +0 -1
  112. package/lib/conversation/content/ClientRemoveContent.d.ts +1 -0
  113. package/lib/conversation/content/ClientRemoveContent.d.ts.map +1 -0
  114. package/lib/conversation/content/ClientRemoveContent.js +0 -1
  115. package/lib/conversation/content/CompositeContent.d.ts +1 -0
  116. package/lib/conversation/content/CompositeContent.d.ts.map +1 -0
  117. package/lib/conversation/content/CompositeContent.js +0 -1
  118. package/lib/conversation/content/ConfirmationContent.d.ts +1 -0
  119. package/lib/conversation/content/ConfirmationContent.d.ts.map +1 -0
  120. package/lib/conversation/content/ConfirmationContent.js +0 -1
  121. package/lib/conversation/content/ContentType.d.ts +1 -0
  122. package/lib/conversation/content/ContentType.d.ts.map +1 -0
  123. package/lib/conversation/content/ContentType.js +0 -1
  124. package/lib/conversation/content/ConversationContent.d.ts +1 -0
  125. package/lib/conversation/content/ConversationContent.d.ts.map +1 -0
  126. package/lib/conversation/content/ConversationContent.js +0 -1
  127. package/lib/conversation/content/DeletedContent.d.ts +1 -0
  128. package/lib/conversation/content/DeletedContent.d.ts.map +1 -0
  129. package/lib/conversation/content/DeletedContent.js +0 -1
  130. package/lib/conversation/content/EditedTextContent.d.ts +1 -0
  131. package/lib/conversation/content/EditedTextContent.d.ts.map +1 -0
  132. package/lib/conversation/content/EditedTextContent.js +0 -1
  133. package/lib/conversation/content/FileContent.d.ts +1 -0
  134. package/lib/conversation/content/FileContent.d.ts.map +1 -0
  135. package/lib/conversation/content/FileContent.js +0 -1
  136. package/lib/conversation/content/HiddenContent.d.ts +1 -0
  137. package/lib/conversation/content/HiddenContent.d.ts.map +1 -0
  138. package/lib/conversation/content/HiddenContent.js +0 -1
  139. package/lib/conversation/content/ImageContent.d.ts +1 -0
  140. package/lib/conversation/content/ImageContent.d.ts.map +1 -0
  141. package/lib/conversation/content/ImageContent.js +0 -1
  142. package/lib/conversation/content/KnockContent.d.ts +1 -0
  143. package/lib/conversation/content/KnockContent.d.ts.map +1 -0
  144. package/lib/conversation/content/KnockContent.js +0 -1
  145. package/lib/conversation/content/LinkPreviewContent.d.ts +1 -0
  146. package/lib/conversation/content/LinkPreviewContent.d.ts.map +1 -0
  147. package/lib/conversation/content/LinkPreviewContent.js +0 -1
  148. package/lib/conversation/content/LocationContent.d.ts +1 -0
  149. package/lib/conversation/content/LocationContent.d.ts.map +1 -0
  150. package/lib/conversation/content/LocationContent.js +0 -1
  151. package/lib/conversation/content/MentionContent.d.ts +1 -0
  152. package/lib/conversation/content/MentionContent.d.ts.map +1 -0
  153. package/lib/conversation/content/MentionContent.js +0 -1
  154. package/lib/conversation/content/QuoteContent.d.ts +1 -0
  155. package/lib/conversation/content/QuoteContent.d.ts.map +1 -0
  156. package/lib/conversation/content/QuoteContent.js +0 -1
  157. package/lib/conversation/content/ReactionContent.d.ts +2 -1
  158. package/lib/conversation/content/ReactionContent.d.ts.map +1 -0
  159. package/lib/conversation/content/ReactionContent.js +0 -1
  160. package/lib/conversation/content/TextContent.d.ts +1 -0
  161. package/lib/conversation/content/TextContent.d.ts.map +1 -0
  162. package/lib/conversation/content/TextContent.js +0 -1
  163. package/lib/conversation/content/TweetContent.d.ts +1 -0
  164. package/lib/conversation/content/TweetContent.d.ts.map +1 -0
  165. package/lib/conversation/content/TweetContent.js +0 -1
  166. package/lib/conversation/content/index.d.ts +1 -0
  167. package/lib/conversation/content/index.d.ts.map +1 -0
  168. package/lib/conversation/content/index.js +0 -1
  169. package/lib/conversation/index.d.ts +1 -0
  170. package/lib/conversation/index.d.ts.map +1 -0
  171. package/lib/conversation/index.js +0 -1
  172. package/lib/conversation/message/CompositeContentBuilder.d.ts +2 -1
  173. package/lib/conversation/message/CompositeContentBuilder.d.ts.map +1 -0
  174. package/lib/conversation/message/CompositeContentBuilder.js +1 -2
  175. package/lib/conversation/message/Message.d.ts +1 -0
  176. package/lib/conversation/message/Message.d.ts.map +1 -0
  177. package/lib/conversation/message/Message.js +0 -1
  178. package/lib/conversation/message/MessageBuilder.d.ts +3 -2
  179. package/lib/conversation/message/MessageBuilder.d.ts.map +1 -0
  180. package/lib/conversation/message/MessageBuilder.js +4 -8
  181. package/lib/conversation/message/MessageService.d.ts +3 -2
  182. package/lib/conversation/message/MessageService.d.ts.map +1 -0
  183. package/lib/conversation/message/MessageService.js +7 -8
  184. package/lib/conversation/message/MessageToProtoMapper.d.ts +2 -1
  185. package/lib/conversation/message/MessageToProtoMapper.d.ts.map +1 -0
  186. package/lib/conversation/message/MessageToProtoMapper.js +0 -1
  187. package/lib/conversation/message/OtrMessage.d.ts +2 -1
  188. package/lib/conversation/message/OtrMessage.d.ts.map +1 -0
  189. package/lib/conversation/message/OtrMessage.js +0 -1
  190. package/lib/conversation/message/PayloadBundle.d.ts +2 -1
  191. package/lib/conversation/message/PayloadBundle.d.ts.map +1 -0
  192. package/lib/conversation/message/PayloadBundle.js +0 -1
  193. package/lib/conversation/message/TeamMessage.d.ts +1 -0
  194. package/lib/conversation/message/TeamMessage.d.ts.map +1 -0
  195. package/lib/conversation/message/TeamMessage.js +0 -1
  196. package/lib/conversation/message/TextContentBuilder.d.ts +2 -1
  197. package/lib/conversation/message/TextContentBuilder.d.ts.map +1 -0
  198. package/lib/conversation/message/TextContentBuilder.js +0 -1
  199. package/lib/conversation/message/UserClientsUtil.d.ts +1 -0
  200. package/lib/conversation/message/UserClientsUtil.d.ts.map +1 -0
  201. package/lib/conversation/message/UserClientsUtil.js +0 -1
  202. package/lib/conversation/message/UserMessage.d.ts +1 -0
  203. package/lib/conversation/message/UserMessage.d.ts.map +1 -0
  204. package/lib/conversation/message/UserMessage.js +0 -1
  205. package/lib/conversation/message/messageSender.d.ts +1 -0
  206. package/lib/conversation/message/messageSender.d.ts.map +1 -0
  207. package/lib/conversation/message/messageSender.js +0 -1
  208. package/lib/cryptography/AssetCryptography/EncryptedAsset.d.ts +1 -0
  209. package/lib/cryptography/AssetCryptography/EncryptedAsset.d.ts.map +1 -0
  210. package/lib/cryptography/AssetCryptography/EncryptedAsset.js +0 -1
  211. package/lib/cryptography/AssetCryptography/crypto.browser.d.ts +1 -0
  212. package/lib/cryptography/AssetCryptography/crypto.browser.d.ts.map +1 -0
  213. package/lib/cryptography/AssetCryptography/crypto.browser.js +0 -1
  214. package/lib/cryptography/AssetCryptography/crypto.node.d.ts +1 -0
  215. package/lib/cryptography/AssetCryptography/crypto.node.d.ts.map +1 -0
  216. package/lib/cryptography/AssetCryptography/crypto.node.js +0 -1
  217. package/lib/cryptography/AssetCryptography/index.d.ts +1 -0
  218. package/lib/cryptography/AssetCryptography/index.d.ts.map +1 -0
  219. package/lib/cryptography/AssetCryptography/index.js +0 -1
  220. package/lib/cryptography/AssetCryptography/interfaces.d.ts +1 -0
  221. package/lib/cryptography/AssetCryptography/interfaces.d.ts.map +1 -0
  222. package/lib/cryptography/AssetCryptography/interfaces.js +0 -1
  223. package/lib/cryptography/CryptographyDatabaseRepository.d.ts +1 -0
  224. package/lib/cryptography/CryptographyDatabaseRepository.d.ts.map +1 -0
  225. package/lib/cryptography/CryptographyDatabaseRepository.js +0 -1
  226. package/lib/cryptography/CryptographyService.d.ts +2 -1
  227. package/lib/cryptography/CryptographyService.d.ts.map +1 -0
  228. package/lib/cryptography/CryptographyService.js +4 -5
  229. package/lib/cryptography/GenericMessageMapper.d.ts +1 -0
  230. package/lib/cryptography/GenericMessageMapper.d.ts.map +1 -0
  231. package/lib/cryptography/GenericMessageMapper.js +0 -1
  232. package/lib/cryptography/MessageHashService.d.ts +1 -0
  233. package/lib/cryptography/MessageHashService.d.ts.map +1 -0
  234. package/lib/cryptography/MessageHashService.js +0 -1
  235. package/lib/cryptography/SessionPayloadBundle.d.ts +1 -0
  236. package/lib/cryptography/SessionPayloadBundle.d.ts.map +1 -0
  237. package/lib/cryptography/SessionPayloadBundle.js +0 -1
  238. package/lib/cryptography/index.d.ts +1 -0
  239. package/lib/cryptography/index.d.ts.map +1 -0
  240. package/lib/cryptography/index.js +0 -1
  241. package/lib/giphy/GiphyService.d.ts +2 -1
  242. package/lib/giphy/GiphyService.d.ts.map +1 -0
  243. package/lib/giphy/GiphyService.js +0 -1
  244. package/lib/giphy/index.d.ts +1 -0
  245. package/lib/giphy/index.d.ts.map +1 -0
  246. package/lib/giphy/index.js +0 -1
  247. package/lib/index.d.ts +1 -0
  248. package/lib/index.d.ts.map +1 -0
  249. package/lib/index.js +0 -1
  250. package/lib/linkPreview/LinkPreviewService.d.ts +1 -0
  251. package/lib/linkPreview/LinkPreviewService.d.ts.map +1 -0
  252. package/lib/linkPreview/LinkPreviewService.js +0 -1
  253. package/lib/linkPreview/index.d.ts +1 -0
  254. package/lib/linkPreview/index.d.ts.map +1 -0
  255. package/lib/linkPreview/index.js +0 -1
  256. package/lib/mls/EventHandler/ConversationEvent/ConversationEvent.d.ts +1 -0
  257. package/lib/mls/EventHandler/ConversationEvent/ConversationEvent.d.ts.map +1 -0
  258. package/lib/mls/EventHandler/ConversationEvent/ConversationEvent.js +1 -2
  259. package/lib/mls/EventHandler/ConversationEvent/events/index.d.ts +1 -0
  260. package/lib/mls/EventHandler/ConversationEvent/events/index.d.ts.map +1 -0
  261. package/lib/mls/EventHandler/ConversationEvent/events/index.js +0 -1
  262. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/index.d.ts +1 -0
  263. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/index.d.ts.map +1 -0
  264. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/index.js +0 -1
  265. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts +1 -0
  266. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts.map +1 -0
  267. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.js +1 -2
  268. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts +1 -0
  269. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts.map +1 -0
  270. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.js +0 -1
  271. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts +1 -0
  272. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts.map +1 -0
  273. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.js +0 -1
  274. package/lib/mls/EventHandler/ConversationEvent/index.d.ts +1 -0
  275. package/lib/mls/EventHandler/ConversationEvent/index.d.ts.map +1 -0
  276. package/lib/mls/EventHandler/ConversationEvent/index.js +0 -1
  277. package/lib/mls/EventHandler/EventHandler.d.ts +1 -0
  278. package/lib/mls/EventHandler/EventHandler.d.ts.map +1 -0
  279. package/lib/mls/EventHandler/EventHandler.js +0 -1
  280. package/lib/mls/EventHandler/EventHandler.types.d.ts +2 -1
  281. package/lib/mls/EventHandler/EventHandler.types.d.ts.map +1 -0
  282. package/lib/mls/EventHandler/EventHandler.types.js +0 -1
  283. package/lib/mls/EventHandler/index.d.ts +1 -0
  284. package/lib/mls/EventHandler/index.d.ts.map +1 -0
  285. package/lib/mls/EventHandler/index.js +0 -1
  286. package/lib/mls/MLSService/MLSService.d.ts +5 -4
  287. package/lib/mls/MLSService/MLSService.d.ts.map +1 -0
  288. package/lib/mls/MLSService/MLSService.js +5 -6
  289. package/lib/mls/MLSService/commitBundleUtil.d.ts +1 -0
  290. package/lib/mls/MLSService/commitBundleUtil.d.ts.map +1 -0
  291. package/lib/mls/MLSService/commitBundleUtil.js +1 -2
  292. package/lib/mls/MLSService/index.d.ts +1 -0
  293. package/lib/mls/MLSService/index.d.ts.map +1 -0
  294. package/lib/mls/MLSService/index.js +0 -1
  295. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/index.d.ts +1 -0
  296. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/index.d.ts.map +1 -0
  297. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/index.js +0 -1
  298. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts +1 -0
  299. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts.map +1 -0
  300. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.js +0 -1
  301. package/lib/mls/MLSService/stores/pendingProposalsStore/index.d.ts +1 -0
  302. package/lib/mls/MLSService/stores/pendingProposalsStore/index.d.ts.map +1 -0
  303. package/lib/mls/MLSService/stores/pendingProposalsStore/index.js +0 -1
  304. package/lib/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts +1 -0
  305. package/lib/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts.map +1 -0
  306. package/lib/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.js +0 -1
  307. package/lib/mls/MLSService/stores/stores.mock.d.ts +1 -0
  308. package/lib/mls/MLSService/stores/stores.mock.d.ts.map +1 -0
  309. package/lib/mls/MLSService/stores/stores.mock.js +0 -1
  310. package/lib/mls/index.d.ts +1 -0
  311. package/lib/mls/index.d.ts.map +1 -0
  312. package/lib/mls/index.js +0 -1
  313. package/lib/mls/types.d.ts +1 -0
  314. package/lib/mls/types.d.ts.map +1 -0
  315. package/lib/mls/types.js +0 -1
  316. package/lib/notification/NotificationBackendRepository.d.ts +2 -1
  317. package/lib/notification/NotificationBackendRepository.d.ts.map +1 -0
  318. package/lib/notification/NotificationBackendRepository.js +0 -1
  319. package/lib/notification/NotificationDatabaseRepository.d.ts +1 -0
  320. package/lib/notification/NotificationDatabaseRepository.d.ts.map +1 -0
  321. package/lib/notification/NotificationDatabaseRepository.js +0 -1
  322. package/lib/notification/NotificationService.d.ts +5 -4
  323. package/lib/notification/NotificationService.d.ts.map +1 -0
  324. package/lib/notification/NotificationService.js +4 -5
  325. package/lib/notification/index.d.ts +1 -0
  326. package/lib/notification/index.d.ts.map +1 -0
  327. package/lib/notification/index.js +0 -1
  328. package/lib/self/SelfService.d.ts +2 -1
  329. package/lib/self/SelfService.d.ts.map +1 -0
  330. package/lib/self/SelfService.js +0 -1
  331. package/lib/self/index.d.ts +1 -0
  332. package/lib/self/index.d.ts.map +1 -0
  333. package/lib/self/index.js +0 -1
  334. package/lib/team/TeamService.d.ts +2 -1
  335. package/lib/team/TeamService.d.ts.map +1 -0
  336. package/lib/team/TeamService.js +0 -1
  337. package/lib/team/index.d.ts +1 -0
  338. package/lib/team/index.d.ts.map +1 -0
  339. package/lib/team/index.js +0 -1
  340. package/lib/user/UserMapper.d.ts +1 -0
  341. package/lib/user/UserMapper.d.ts.map +1 -0
  342. package/lib/user/UserMapper.js +0 -1
  343. package/lib/user/UserService.d.ts +2 -1
  344. package/lib/user/UserService.d.ts.map +1 -0
  345. package/lib/user/UserService.js +3 -7
  346. package/lib/user/index.d.ts +1 -0
  347. package/lib/user/index.d.ts.map +1 -0
  348. package/lib/user/index.js +0 -1
  349. package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.d.ts +1 -0
  350. package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.d.ts.map +1 -0
  351. package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.js +0 -1
  352. package/lib/util/LowPrecisionTaskScheduler/index.d.ts +1 -0
  353. package/lib/util/LowPrecisionTaskScheduler/index.d.ts.map +1 -0
  354. package/lib/util/LowPrecisionTaskScheduler/index.js +0 -1
  355. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.d.ts +1 -0
  356. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.d.ts.map +1 -0
  357. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.js +2 -3
  358. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.d.ts +1 -0
  359. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.d.ts.map +1 -0
  360. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.js +0 -1
  361. package/lib/util/RecurringTaskScheduler/index.d.ts +1 -0
  362. package/lib/util/RecurringTaskScheduler/index.d.ts.map +1 -0
  363. package/lib/util/RecurringTaskScheduler/index.js +0 -1
  364. package/lib/util/TaskScheduler/TaskScheduler.d.ts +1 -0
  365. package/lib/util/TaskScheduler/TaskScheduler.d.ts.map +1 -0
  366. package/lib/util/TaskScheduler/TaskScheduler.js +0 -1
  367. package/lib/util/TaskScheduler/index.d.ts +1 -0
  368. package/lib/util/TaskScheduler/index.d.ts.map +1 -0
  369. package/lib/util/TaskScheduler/index.js +0 -1
  370. package/lib/util/TypePredicateUtil.d.ts +1 -0
  371. package/lib/util/TypePredicateUtil.d.ts.map +1 -0
  372. package/lib/util/TypePredicateUtil.js +0 -1
  373. package/lib/util/encryptedStore.d.ts +1 -0
  374. package/lib/util/encryptedStore.d.ts.map +1 -0
  375. package/lib/util/encryptedStore.js +0 -1
  376. package/lib/util/encryptedStore.test.node.d.ts +1 -0
  377. package/lib/util/encryptedStore.test.node.d.ts.map +1 -0
  378. package/lib/util/encryptedStore.test.node.js +0 -1
  379. package/lib/util/fullyQualifiedClientIdUtils.d.ts +1 -0
  380. package/lib/util/fullyQualifiedClientIdUtils.d.ts.map +1 -0
  381. package/lib/util/fullyQualifiedClientIdUtils.js +0 -1
  382. package/lib/util/index.d.ts +1 -0
  383. package/lib/util/index.d.ts.map +1 -0
  384. package/lib/util/index.js +0 -1
  385. package/package.json +7 -9
  386. package/lib/Account.js.map +0 -1
  387. package/lib/CoreError.js.map +0 -1
  388. package/lib/account/AccountService.js.map +0 -1
  389. package/lib/account/index.js.map +0 -1
  390. package/lib/auth/LoginSanitizer.js.map +0 -1
  391. package/lib/auth/index.js.map +0 -1
  392. package/lib/broadcast/AvailabilityType.js.map +0 -1
  393. package/lib/broadcast/BroadcastService.js.map +0 -1
  394. package/lib/broadcast/index.js.map +0 -1
  395. package/lib/client/ClientBackendRepository.js.map +0 -1
  396. package/lib/client/ClientDatabaseRepository.js.map +0 -1
  397. package/lib/client/ClientInfo.js.map +0 -1
  398. package/lib/client/ClientService.js.map +0 -1
  399. package/lib/client/index.js.map +0 -1
  400. package/lib/connection/ConnectionService.js.map +0 -1
  401. package/lib/connection/index.js.map +0 -1
  402. package/lib/conversation/AbortReason.js.map +0 -1
  403. package/lib/conversation/AssetService/AssetService.js.map +0 -1
  404. package/lib/conversation/AssetService/index.js.map +0 -1
  405. package/lib/conversation/AssetTransferState.js.map +0 -1
  406. package/lib/conversation/ClientActionType.js.map +0 -1
  407. package/lib/conversation/ConversationMapper/ConversationMapper.js.map +0 -1
  408. package/lib/conversation/ConversationMapper/index.js.map +0 -1
  409. package/lib/conversation/ConversationService/ConversationService.js.map +0 -1
  410. package/lib/conversation/ConversationService/ConversationService.types.js.map +0 -1
  411. package/lib/conversation/ConversationService/index.js.map +0 -1
  412. package/lib/conversation/GenericMessageType.js.map +0 -1
  413. package/lib/conversation/MessageTimer/MessageTimer.js.map +0 -1
  414. package/lib/conversation/MessageTimer/index.js.map +0 -1
  415. package/lib/conversation/ReactionType.js.map +0 -1
  416. package/lib/conversation/content/AssetContent.js.map +0 -1
  417. package/lib/conversation/content/ButtonActionConfirmationContent.js.map +0 -1
  418. package/lib/conversation/content/ButtonActionContent.js.map +0 -1
  419. package/lib/conversation/content/CallingContent.js.map +0 -1
  420. package/lib/conversation/content/ClearedContent.js.map +0 -1
  421. package/lib/conversation/content/ClientActionContent.js.map +0 -1
  422. package/lib/conversation/content/ClientAddContent.js.map +0 -1
  423. package/lib/conversation/content/ClientRemoveContent.js.map +0 -1
  424. package/lib/conversation/content/CompositeContent.js.map +0 -1
  425. package/lib/conversation/content/ConfirmationContent.js.map +0 -1
  426. package/lib/conversation/content/ContentType.js.map +0 -1
  427. package/lib/conversation/content/ConversationContent.js.map +0 -1
  428. package/lib/conversation/content/DeletedContent.js.map +0 -1
  429. package/lib/conversation/content/EditedTextContent.js.map +0 -1
  430. package/lib/conversation/content/FileContent.js.map +0 -1
  431. package/lib/conversation/content/HiddenContent.js.map +0 -1
  432. package/lib/conversation/content/ImageContent.js.map +0 -1
  433. package/lib/conversation/content/KnockContent.js.map +0 -1
  434. package/lib/conversation/content/LinkPreviewContent.js.map +0 -1
  435. package/lib/conversation/content/LocationContent.js.map +0 -1
  436. package/lib/conversation/content/MentionContent.js.map +0 -1
  437. package/lib/conversation/content/QuoteContent.js.map +0 -1
  438. package/lib/conversation/content/ReactionContent.js.map +0 -1
  439. package/lib/conversation/content/TextContent.js.map +0 -1
  440. package/lib/conversation/content/TweetContent.js.map +0 -1
  441. package/lib/conversation/content/index.js.map +0 -1
  442. package/lib/conversation/index.js.map +0 -1
  443. package/lib/conversation/message/CompositeContentBuilder.js.map +0 -1
  444. package/lib/conversation/message/Message.js.map +0 -1
  445. package/lib/conversation/message/MessageBuilder.js.map +0 -1
  446. package/lib/conversation/message/MessageService.js.map +0 -1
  447. package/lib/conversation/message/MessageToProtoMapper.js.map +0 -1
  448. package/lib/conversation/message/OtrMessage.js.map +0 -1
  449. package/lib/conversation/message/PayloadBundle.js.map +0 -1
  450. package/lib/conversation/message/TeamMessage.js.map +0 -1
  451. package/lib/conversation/message/TextContentBuilder.js.map +0 -1
  452. package/lib/conversation/message/UserClientsUtil.js.map +0 -1
  453. package/lib/conversation/message/UserMessage.js.map +0 -1
  454. package/lib/conversation/message/messageSender.js.map +0 -1
  455. package/lib/cryptography/AssetCryptography/EncryptedAsset.js.map +0 -1
  456. package/lib/cryptography/AssetCryptography/crypto.browser.js.map +0 -1
  457. package/lib/cryptography/AssetCryptography/crypto.node.js.map +0 -1
  458. package/lib/cryptography/AssetCryptography/index.js.map +0 -1
  459. package/lib/cryptography/AssetCryptography/interfaces.js.map +0 -1
  460. package/lib/cryptography/CryptographyDatabaseRepository.js.map +0 -1
  461. package/lib/cryptography/CryptographyService.js.map +0 -1
  462. package/lib/cryptography/GenericMessageMapper.js.map +0 -1
  463. package/lib/cryptography/MessageHashService.js.map +0 -1
  464. package/lib/cryptography/SessionPayloadBundle.js.map +0 -1
  465. package/lib/cryptography/index.js.map +0 -1
  466. package/lib/giphy/GiphyService.js.map +0 -1
  467. package/lib/giphy/index.js.map +0 -1
  468. package/lib/index.js.map +0 -1
  469. package/lib/linkPreview/LinkPreviewService.js.map +0 -1
  470. package/lib/linkPreview/index.js.map +0 -1
  471. package/lib/mls/EventHandler/ConversationEvent/ConversationEvent.js.map +0 -1
  472. package/lib/mls/EventHandler/ConversationEvent/events/index.js.map +0 -1
  473. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/index.js.map +0 -1
  474. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.js.map +0 -1
  475. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.js.map +0 -1
  476. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.js.map +0 -1
  477. package/lib/mls/EventHandler/ConversationEvent/index.js.map +0 -1
  478. package/lib/mls/EventHandler/EventHandler.js.map +0 -1
  479. package/lib/mls/EventHandler/EventHandler.types.js.map +0 -1
  480. package/lib/mls/EventHandler/index.js.map +0 -1
  481. package/lib/mls/MLSService/MLSService.js.map +0 -1
  482. package/lib/mls/MLSService/commitBundleUtil.js.map +0 -1
  483. package/lib/mls/MLSService/index.js.map +0 -1
  484. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/index.js.map +0 -1
  485. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.js.map +0 -1
  486. package/lib/mls/MLSService/stores/pendingProposalsStore/index.js.map +0 -1
  487. package/lib/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.js.map +0 -1
  488. package/lib/mls/MLSService/stores/stores.mock.js.map +0 -1
  489. package/lib/mls/index.js.map +0 -1
  490. package/lib/mls/types.js.map +0 -1
  491. package/lib/notification/NotificationBackendRepository.js.map +0 -1
  492. package/lib/notification/NotificationDatabaseRepository.js.map +0 -1
  493. package/lib/notification/NotificationService.js.map +0 -1
  494. package/lib/notification/index.js.map +0 -1
  495. package/lib/self/SelfService.js.map +0 -1
  496. package/lib/self/index.js.map +0 -1
  497. package/lib/team/TeamService.js.map +0 -1
  498. package/lib/team/index.js.map +0 -1
  499. package/lib/user/UserMapper.js.map +0 -1
  500. package/lib/user/UserService.js.map +0 -1
  501. package/lib/user/index.js.map +0 -1
  502. package/lib/util/LowPrecisionTaskScheduler/LowPrecisionTaskScheduler.js.map +0 -1
  503. package/lib/util/LowPrecisionTaskScheduler/index.js.map +0 -1
  504. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.js.map +0 -1
  505. package/lib/util/RecurringTaskScheduler/RecurringTaskScheduler.store.js.map +0 -1
  506. package/lib/util/RecurringTaskScheduler/index.js.map +0 -1
  507. package/lib/util/TaskScheduler/TaskScheduler.js.map +0 -1
  508. package/lib/util/TaskScheduler/index.js.map +0 -1
  509. package/lib/util/TypePredicateUtil.js.map +0 -1
  510. package/lib/util/encryptedStore.js.map +0 -1
  511. package/lib/util/encryptedStore.test.node.js.map +0 -1
  512. package/lib/util/fullyQualifiedClientIdUtils.js.map +0 -1
  513. package/lib/util/index.js.map +0 -1
package/lib/Account.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  /// <reference types="node" />
2
- import { APIClient, BackendFeatures } from '@wireapp/api-client';
3
- import { RegisterData } from '@wireapp/api-client/lib/auth';
4
- import { Context, Cookie, LoginData } from '@wireapp/api-client/lib/auth/';
2
+ import { RegisterData, Context, Cookie, LoginData } from '@wireapp/api-client/lib/auth';
5
3
  import { ClientType, RegisteredClient } from '@wireapp/api-client/lib/client/';
6
4
  import * as Events from '@wireapp/api-client/lib/event';
7
- import { CRUDEngine } from '@wireapp/store-engine';
8
5
  import { EventEmitter } from 'events';
6
+ import { APIClient, BackendFeatures } from '@wireapp/api-client';
7
+ import { CRUDEngine } from '@wireapp/store-engine';
9
8
  import { AccountService } from './account/';
10
9
  import { BroadcastService } from './broadcast/';
11
10
  import { ClientInfo, ClientService } from './client/';
@@ -126,6 +125,18 @@ export declare class Account<T = any> extends EventEmitter {
126
125
  * @param accountOptions
127
126
  */
128
127
  constructor(apiClient?: APIClient, { createStore, nbPrekeys, cryptoProtocolConfig }?: AccountOptions<T>);
128
+ /**
129
+ * Will set the APIClient to use a specific version of the API (by default uses version 0)
130
+ * It will fetch the API Config and use the highest possible version
131
+ * @param acceptedVersions Which version the consumer supports
132
+ * @param useDevVersion allow the api-client to use development version of the api (if present). The dev version also need to be listed on the supportedVersions given as parameters
133
+ * If we have version 2 that is a dev version, this is going to be the output of those calls
134
+ * - useVersion([0, 1, 2], true) > version 2 is used
135
+ * - useVersion([0, 1, 2], false) > version 1 is used
136
+ * - useVersion([0, 1], true) > version 1 is used
137
+ * @return The highest version that is both supported by client and backend
138
+ */
139
+ useAPIVersion(supportedVersions: number[], useDevVersion?: boolean): Promise<BackendFeatures>;
129
140
  private persistCookie;
130
141
  get clientId(): string;
131
142
  get userId(): string;
@@ -227,3 +238,4 @@ export declare class Account<T = any> extends EventEmitter {
227
238
  private initEngine;
228
239
  }
229
240
  export {};
241
+ //# sourceMappingURL=Account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../src/Account.ts"],"names":[],"mappings":";AAmBA,OAAO,EACL,YAAY,EAGZ,OAAO,EACP,MAAM,EAEN,SAAS,EACV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAuB,UAAU,EAAE,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACnG,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AASxD,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AAEpC,OAAO,EAAC,SAAS,EAAE,eAAe,EAAC,MAAM,qBA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B,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC;YAiB9E,eAAe;YA2Cf,cAAc;IA4B5B,OAAO,CAAC,YAAY;IAKpB;;;OAGG;IACU,MAAM,CAAC,SAAS,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAS9D;;;;;;OAMG;IACI,MAAM,CAAC,EACZ,OAAkB,EAClB,wBAAmC,EACnC,4BAAuC,EACvC,qBAAgC,EAChC,MAAc,GACf,GAAE;QACD;;;;WAIG;QACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;QAE9E;;WAEG;QACH,4BAA4B,CAAC,EAAE,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,EAAE;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI,CAAC;QAEtF;;WAEG;QACH,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;QAE5D;;;;;;WAMG;QACH,qBAAqB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;QAEzD;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KACb,GAAG,MAAM,IAAI;IAoFnB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,qBAAqB;YAIf,UAAU;CAqBzB"}
package/lib/Account.js CHANGED
@@ -52,19 +52,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
52
52
  };
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.Account = exports.ConnectionState = void 0;
55
- const api_client_1 = require("@wireapp/api-client");
56
- const auth_1 = require("@wireapp/api-client/lib/auth/");
55
+ const auth_1 = require("@wireapp/api-client/lib/auth");
57
56
  const client_1 = require("@wireapp/api-client/lib/client/");
58
57
  const tcp_1 = require("@wireapp/api-client/lib/tcp/");
59
- const cryptobox = __importStar(require("@wireapp/cryptobox"));
60
- const store_engine_1 = require("@wireapp/store-engine");
61
- const events_1 = require("events");
62
- const http_status_codes_1 = require("http-status-codes");
63
- const logdown_1 = __importDefault(require("logdown"));
64
58
  const ReconnectingWebsocket_1 = require("@wireapp/api-client/lib/tcp/ReconnectingWebsocket");
65
- const core_crypto_1 = require("@wireapp/core-crypto");
66
59
  const axios_1 = __importDefault(require("axios"));
67
60
  const bazinga64_1 = require("bazinga64");
61
+ const http_status_codes_1 = require("http-status-codes");
62
+ const logdown_1 = __importDefault(require("logdown"));
63
+ const events_1 = require("events");
64
+ const api_client_1 = require("@wireapp/api-client");
65
+ const core_crypto_1 = require("@wireapp/core-crypto");
66
+ const cryptobox = __importStar(require("@wireapp/cryptobox"));
67
+ const store_engine_1 = require("@wireapp/store-engine");
68
68
  const account_1 = require("./account/");
69
69
  const auth_2 = require("./auth/");
70
70
  const broadcast_1 = require("./broadcast/");
@@ -128,6 +128,22 @@ class Account extends events_1.EventEmitter {
128
128
  markdown: false,
129
129
  });
130
130
  }
131
+ /**
132
+ * Will set the APIClient to use a specific version of the API (by default uses version 0)
133
+ * It will fetch the API Config and use the highest possible version
134
+ * @param acceptedVersions Which version the consumer supports
135
+ * @param useDevVersion allow the api-client to use development version of the api (if present). The dev version also need to be listed on the supportedVersions given as parameters
136
+ * If we have version 2 that is a dev version, this is going to be the output of those calls
137
+ * - useVersion([0, 1, 2], true) > version 2 is used
138
+ * - useVersion([0, 1, 2], false) > version 1 is used
139
+ * - useVersion([0, 1], true) > version 1 is used
140
+ * @return The highest version that is both supported by client and backend
141
+ */
142
+ async useAPIVersion(supportedVersions, useDevVersion) {
143
+ const features = await this.apiClient.useVersion(supportedVersions, useDevVersion);
144
+ this.backendFeatures = features;
145
+ return features;
146
+ }
131
147
  persistCookie(storeEngine, cookie) {
132
148
  const entity = { expiration: cookie.expiration, zuid: cookie.zuid };
133
149
  return storeEngine.updateOrCreate(auth_1.AUTH_TABLE_NAME, auth_1.AUTH_COOKIE_KEY, entity);
@@ -505,4 +521,3 @@ class Account extends events_1.EventEmitter {
505
521
  }
506
522
  exports.Account = Account;
507
523
  Account.TOPIC = TOPIC;
508
- //# sourceMappingURL=Account.js.map
@@ -7,3 +7,4 @@ export interface NotificationError {
7
7
  notification: Notification;
8
8
  type: CoreError.NOTIFICATION_ERROR;
9
9
  }
10
+ //# sourceMappingURL=CoreError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoreError.d.ts","sourceRoot":"","sources":["../src/CoreError.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,sCAAsC,CAAC;AAElE,oBAAY,SAAS;IACnB,kBAAkB,iCAAiC;CACpD;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,SAAS,CAAC,kBAAkB,CAAC;CACpC"}
package/lib/CoreError.js CHANGED
@@ -23,4 +23,3 @@ var CoreError;
23
23
  (function (CoreError) {
24
24
  CoreError["NOTIFICATION_ERROR"] = "CoreError.NOTIFICATION_ERROR";
25
25
  })(CoreError = exports.CoreError || (exports.CoreError = {}));
26
- //# sourceMappingURL=CoreError.js.map
@@ -1,7 +1,8 @@
1
- import { APIClient } from '@wireapp/api-client';
2
1
  import { CallConfigData } from '@wireapp/api-client/lib/account/CallConfigData';
2
+ import { APIClient } from '@wireapp/api-client';
3
3
  export declare class AccountService {
4
4
  private readonly apiClient;
5
5
  constructor(apiClient: APIClient);
6
6
  getCallConfig(): Promise<CallConfigData>;
7
7
  }
8
+ //# sourceMappingURL=AccountService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountService.d.ts","sourceRoot":"","sources":["../../src/account/AccountService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,cAAc,EAAC,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAG9C,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD,aAAa,IAAI,OAAO,CAAC,cAAc,CAAC;CAIzC"}
@@ -30,4 +30,3 @@ class AccountService {
30
30
  }
31
31
  }
32
32
  exports.AccountService = AccountService;
33
- //# sourceMappingURL=AccountService.js.map
@@ -1 +1,2 @@
1
1
  export * from './AccountService';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account/index.ts"],"names":[],"mappings":"AAmBA,cAAc,kBAAkB,CAAC"}
@@ -33,4 +33,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  __exportStar(require("./AccountService"), exports);
36
- //# sourceMappingURL=index.js.map
@@ -3,3 +3,4 @@ export declare class LoginSanitizer {
3
3
  constructor();
4
4
  static removeNonPrintableCharacters(loginData: LoginData): void;
5
5
  }
6
+ //# sourceMappingURL=LoginSanitizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoginSanitizer.d.ts","sourceRoot":"","sources":["../../src/auth/LoginSanitizer.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,+BAA+B,CAAC;AAExD,qBAAa,cAAc;;WAGX,4BAA4B,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;CAmBvE"}
@@ -38,4 +38,3 @@ class LoginSanitizer {
38
38
  }
39
39
  }
40
40
  exports.LoginSanitizer = LoginSanitizer;
41
- //# sourceMappingURL=LoginSanitizer.js.map
@@ -1 +1,2 @@
1
1
  export * from './LoginSanitizer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAmBA,cAAc,kBAAkB,CAAC"}
package/lib/auth/index.js CHANGED
@@ -33,4 +33,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  __exportStar(require("./LoginSanitizer"), exports);
36
- //# sourceMappingURL=index.js.map
@@ -1,2 +1,3 @@
1
1
  import { Availability } from '@wireapp/protocol-messaging';
2
2
  export declare type AvailabilityType = Availability.Type;
3
+ //# sourceMappingURL=AvailabilityType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvailabilityType.d.ts","sourceRoot":"","sources":["../../src/broadcast/AvailabilityType.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAEzD,oBAAY,gBAAgB,GAAG,YAAY,CAAC,IAAI,CAAC"}
@@ -18,4 +18,3 @@
18
18
  *
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- //# sourceMappingURL=AvailabilityType.js.map
@@ -1,6 +1,6 @@
1
- import { APIClient } from '@wireapp/api-client';
2
1
  import { ClientMismatch, MessageSendingStatus, QualifiedUserClients, UserClients } from '@wireapp/api-client/lib/conversation';
3
2
  import { UserPreKeyBundleMap } from '@wireapp/api-client/lib/user/';
3
+ import { APIClient } from '@wireapp/api-client';
4
4
  import { GenericMessage } from '@wireapp/protocol-messaging';
5
5
  import { CryptographyService } from '../cryptography/';
6
6
  export declare class BroadcastService {
@@ -22,3 +22,4 @@ export declare class BroadcastService {
22
22
  errored?: boolean | undefined;
23
23
  })>;
24
24
  }
25
+ //# sourceMappingURL=BroadcastService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BroadcastService.d.ts","sourceRoot":"","sources":["../../src/broadcast/BroadcastService.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACZ,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAI3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAGrD,qBAAa,gBAAgB;IAGf,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAa,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAFvF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;gBAEnB,SAAS,EAAE,SAAS,EAAmB,mBAAmB,EAAE,mBAAmB;IAI5G;;;;;;OAMG;IACU,wBAAwB,CACnC,MAAM,EAAE,MAAM,EACd,cAAc,UAAQ,EACtB,qBAAqB,UAAQ,GAC5B,OAAO,CAAC,mBAAmB,CAAC;IAyBlB,uBAAuB,CAClC,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,mBAAmB,GAAG,WAAW,GAAG,oBAAoB,EACpE,cAAc,CAAC,EAAE,OAAO,EACxB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,GAAG,oBAAoB,KAAK,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;;;CAc5G"}
@@ -71,4 +71,3 @@ class BroadcastService {
71
71
  }
72
72
  }
73
73
  exports.BroadcastService = BroadcastService;
74
- //# sourceMappingURL=BroadcastService.js.map
@@ -1,2 +1,3 @@
1
1
  export * from './AvailabilityType';
2
2
  export * from './BroadcastService';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/broadcast/index.ts"],"names":[],"mappings":"AAmBA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
@@ -34,4 +34,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  __exportStar(require("./AvailabilityType"), exports);
36
36
  __exportStar(require("./BroadcastService"), exports);
37
- //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { APIClient } from '@wireapp/api-client';
2
1
  import { CreateClientPayload, RegisteredClient, UpdateClientPayload } from '@wireapp/api-client/lib/client/';
2
+ import { APIClient } from '@wireapp/api-client';
3
3
  export declare class ClientBackendRepository {
4
4
  private readonly apiClient;
5
5
  constructor(apiClient: APIClient);
@@ -9,3 +9,4 @@ export declare class ClientBackendRepository {
9
9
  deleteClient(clientId: string, password?: string): Promise<void>;
10
10
  uploadMLSKeyPackages(clientId: string, keyPackages: string[]): Promise<void>;
11
11
  }
12
+ //# sourceMappingURL=ClientBackendRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientBackendRepository.d.ts","sourceRoot":"","sources":["../../src/client/ClientBackendRepository.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,mBAAmB,EAAE,gBAAgB,EAAE,mBAAmB,EAAC,MAAM,iCAAiC,CAAC;AAE3G,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAE1C,UAAU,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIzC,UAAU,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIlE,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxE,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhE,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAGpF"}
@@ -40,4 +40,3 @@ class ClientBackendRepository {
40
40
  }
41
41
  }
42
42
  exports.ClientBackendRepository = ClientBackendRepository;
43
- //# sourceMappingURL=ClientBackendRepository.js.map
@@ -1,7 +1,7 @@
1
1
  import { RegisteredClient } from '@wireapp/api-client/lib/client/';
2
2
  import { CRUDEngine } from '@wireapp/store-engine';
3
- import { CryptographyService } from '../cryptography/';
4
3
  import { MetaClient } from './ClientService';
4
+ import { CryptographyService } from '../cryptography/';
5
5
  export declare enum DatabaseStores {
6
6
  CLIENTS = "clients"
7
7
  }
@@ -25,3 +25,4 @@ export declare class ClientDatabaseRepository {
25
25
  private transformClient;
26
26
  private transformLocalClient;
27
27
  }
28
+ //# sourceMappingURL=ClientDatabaseRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientDatabaseRepository.d.ts","sourceRoot":"","sources":["../../src/client/ClientDatabaseRepository.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAErD,oBAAY,cAAc;IACxB,OAAO,YAAY;CACpB;AAED,qBAAa,wBAAwB;IAOvB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAAc,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAN1F,gBAAuB,MAAM,wBAAkB;IAE/C,OAAc,IAAI;;MAEhB;gBAE2B,WAAW,EAAE,UAAU,EAAmB,mBAAmB,EAAE,mBAAmB;IAExG,cAAc,IAAI,OAAO,CAAC,UAAU,CAAC;IAIrC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAIjD,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIpC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhD,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAQlG,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAUjF,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAUjF,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAU5F,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAUzG,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,oBAAoB;CAO7B"}
@@ -82,4 +82,3 @@ ClientDatabaseRepository.STORES = DatabaseStores;
82
82
  ClientDatabaseRepository.KEYS = {
83
83
  LOCAL_IDENTITY: 'local_identity',
84
84
  };
85
- //# sourceMappingURL=ClientDatabaseRepository.js.map
@@ -6,3 +6,4 @@ export interface ClientInfo {
6
6
  location?: Location;
7
7
  model: string;
8
8
  }
9
+ //# sourceMappingURL=ClientInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientInfo.d.ts","sourceRoot":"","sources":["../../src/client/ClientInfo.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,oBAAoB,EAAE,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AAE/E,MAAM,WAAW,UAAU;IACzB,cAAc,EAAE,oBAAoB,CAAC,OAAO,GAAG,oBAAoB,CAAC,KAAK,GAAG,oBAAoB,CAAC,MAAM,CAAC;IACxG,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -18,4 +18,3 @@
18
18
  *
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- //# sourceMappingURL=ClientInfo.js.map
@@ -1,6 +1,6 @@
1
- import { APIClient } from '@wireapp/api-client';
2
1
  import { LoginData } from '@wireapp/api-client/lib/auth/';
3
2
  import { RegisteredClient } from '@wireapp/api-client/lib/client/';
3
+ import { APIClient } from '@wireapp/api-client';
4
4
  import { CRUDEngine } from '@wireapp/store-engine';
5
5
  import { CryptographyService } from '../cryptography/';
6
6
  import { ClientInfo } from './';
@@ -38,3 +38,4 @@ export declare class ClientService {
38
38
  synchronizeClients(): Promise<MetaClient[]>;
39
39
  register(loginData: LoginData, clientInfo: ClientInfo, entropyData?: Uint8Array): Promise<RegisteredClient>;
40
40
  }
41
+ //# sourceMappingURL=ClientService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientService.d.ts","sourceRoot":"","sources":["../../src/client/ClientService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAS,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAkC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAGlG,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAC,UAAU,EAAoD,MAAM,IAAI,CAAC;AAEjF,MAAM,WAAW,UAAW,SAAQ,gBAAgB;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,qBAAa,aAAa;IAKtB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IANtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;IACpD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;gBAG/B,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,UAAU,EACvB,mBAAmB,EAAE,mBAAmB;IAMpD,UAAU,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIhD;;;;;;;OAOG;IACU,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMhF;;;OAGG;IACU,iBAAiB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAS3D,cAAc,IAAI,OAAO,CAAC,UAAU,CAAC;IAIrC,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAI3E,kBAAkB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAW3C,QAAQ,CACnB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,WAAW,CAAC,EAAE,UAAU,GACvB,OAAO,CAAC,gBAAgB,CAAC;CAkC7B"}
@@ -100,4 +100,3 @@ class ClientService {
100
100
  }
101
101
  }
102
102
  exports.ClientService = ClientService;
103
- //# sourceMappingURL=ClientService.js.map
@@ -2,3 +2,4 @@ export * from './ClientInfo';
2
2
  export * from './ClientService';
3
3
  export * from './ClientBackendRepository';
4
4
  export * from './ClientDatabaseRepository';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAmBA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
@@ -36,4 +36,3 @@ __exportStar(require("./ClientInfo"), exports);
36
36
  __exportStar(require("./ClientService"), exports);
37
37
  __exportStar(require("./ClientBackendRepository"), exports);
38
38
  __exportStar(require("./ClientDatabaseRepository"), exports);
39
- //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import { APIClient } from '@wireapp/api-client';
2
1
  import { Connection } from '@wireapp/api-client/lib/connection/';
3
2
  import { QualifiedId } from '@wireapp/api-client/lib/user';
3
+ import { APIClient } from '@wireapp/api-client';
4
4
  export declare class ConnectionService {
5
5
  private readonly apiClient;
6
6
  constructor(apiClient: APIClient);
@@ -9,3 +9,4 @@ export declare class ConnectionService {
9
9
  ignoreConnection(userId: string): Promise<Connection>;
10
10
  createConnection(userId: QualifiedId): Promise<Connection>;
11
11
  }
12
+ //# sourceMappingURL=ConnectionService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectionService.d.ts","sourceRoot":"","sources":["../../src/connection/ConnectionService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,EAAmB,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,qBAAa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAE1C,cAAc,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAIvC,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAMrD,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAMrD,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;CAGlE"}
@@ -42,4 +42,3 @@ class ConnectionService {
42
42
  }
43
43
  }
44
44
  exports.ConnectionService = ConnectionService;
45
- //# sourceMappingURL=ConnectionService.js.map
@@ -1 +1,2 @@
1
1
  export * from './ConnectionService';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connection/index.ts"],"names":[],"mappings":"AAmBA,cAAc,qBAAqB,CAAC"}
@@ -33,4 +33,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  __exportStar(require("./ConnectionService"), exports);
36
- //# sourceMappingURL=index.js.map
@@ -1,2 +1,3 @@
1
1
  import { Asset } from '@wireapp/protocol-messaging';
2
2
  export declare type AbortReason = Asset.NotUploaded;
3
+ //# sourceMappingURL=AbortReason.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AbortReason.d.ts","sourceRoot":"","sources":["../../src/conversation/AbortReason.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,KAAK,EAAC,MAAM,6BAA6B,CAAC;AAElD,oBAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC"}
@@ -18,4 +18,3 @@
18
18
  *
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- //# sourceMappingURL=AbortReason.js.map
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
- import { APIClient } from '@wireapp/api-client';
3
2
  import { AssetOptions } from '@wireapp/api-client/lib/asset';
4
3
  import { ProgressCallback, RequestCancelable } from '@wireapp/api-client/lib/http';
4
+ import { APIClient } from '@wireapp/api-client';
5
5
  import { EncryptedAssetUploaded } from '../../cryptography';
6
6
  export interface AssetDataV4 {
7
7
  assetKey: string;
@@ -63,3 +63,4 @@ export declare class AssetService {
63
63
  */
64
64
  uploadAsset(plainText: Buffer | Uint8Array, options?: AssetOptions, progressCallback?: ProgressCallback): Promise<RequestCancelable<EncryptedAssetUploaded>>;
65
65
  }
66
+ //# sourceMappingURL=AssetService.d.ts.map
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G;IACI,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,EAAE,OAAO,CAAC,EAAE,YAAY,EAAE,gBAAgB,CAAC,EAAE,gBAAgB;IAI7G;;;;;;;OAOG;IACU,WAAW,CACtB,SAAS,EAAE,MAAM,GAAG,UAAU,EAC9B,OAAO,CAAC,EAAE,YAAY,EACtB,gBAAgB,CAAC,EAAE,gBAAgB,GAClC,OAAO,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;CAwBtD"}
@@ -85,4 +85,3 @@ class AssetService {
85
85
  }
86
86
  }
87
87
  exports.AssetService = AssetService;
88
- //# sourceMappingURL=AssetService.js.map
@@ -1 +1,2 @@
1
1
  export * from './AssetService';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/conversation/AssetService/index.ts"],"names":[],"mappings":"AAmBA,cAAc,gBAAgB,CAAC"}
@@ -33,4 +33,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  __exportStar(require("./AssetService"), exports);
36
- //# sourceMappingURL=index.js.map
@@ -2,3 +2,4 @@ export declare enum AssetTransferState {
2
2
  NOT_UPLOADED = "notUploaded",
3
3
  UPLOADED = "uploaded"
4
4
  }
5
+ //# sourceMappingURL=AssetTransferState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssetTransferState.d.ts","sourceRoot":"","sources":["../../src/conversation/AssetTransferState.ts"],"names":[],"mappings":"AAmBA,oBAAY,kBAAkB;IAC5B,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;CACtB"}
@@ -24,4 +24,3 @@ var AssetTransferState;
24
24
  AssetTransferState["NOT_UPLOADED"] = "notUploaded";
25
25
  AssetTransferState["UPLOADED"] = "uploaded";
26
26
  })(AssetTransferState = exports.AssetTransferState || (exports.AssetTransferState = {}));
27
- //# sourceMappingURL=AssetTransferState.js.map
@@ -1 +1,2 @@
1
1
  export { ClientAction as ClientActionType } from '@wireapp/protocol-messaging';
2
+ //# sourceMappingURL=ClientActionType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientActionType.d.ts","sourceRoot":"","sources":["../../src/conversation/ClientActionType.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,IAAI,gBAAgB,EAAC,MAAM,6BAA6B,CAAC"}
@@ -21,4 +21,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.ClientActionType = void 0;
22
22
  var protocol_messaging_1 = require("@wireapp/protocol-messaging");
23
23
  Object.defineProperty(exports, "ClientActionType", { enumerable: true, get: function () { return protocol_messaging_1.ClientAction; } });
24
- //# sourceMappingURL=ClientActionType.js.map
@@ -4,3 +4,4 @@ export declare class ConversationMapper {
4
4
  static mapConversationEvent(event: ConversationEvent, source: PayloadBundleSource): PayloadBundle;
5
5
  private static mapConversationEventType;
6
6
  }
7
+ //# sourceMappingURL=ConversationMapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationMapper.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationMapper/ConversationMapper.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAqB,iBAAiB,EAAC,MAAM,+BAA+B,CAAC;AAGpF,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAwC,MAAM,0BAA0B,CAAC;AAEnH,qBAAa,kBAAkB;WACf,oBAAoB,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,mBAAmB,GAAG,aAAa;IAgBxG,OAAO,CAAC,MAAM,CAAC,wBAAwB;CAcxC"}
@@ -54,4 +54,3 @@ class ConversationMapper {
54
54
  }
55
55
  }
56
56
  exports.ConversationMapper = ConversationMapper;
57
- //# sourceMappingURL=ConversationMapper.js.map
@@ -1 +1,2 @@
1
1
  export * from './ConversationMapper';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationMapper/index.ts"],"names":[],"mappings":"AAmBA,cAAc,sBAAsB,CAAC"}
@@ -33,4 +33,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  __exportStar(require("./ConversationMapper"), exports);
36
- //# sourceMappingURL=index.js.map
@@ -1,13 +1,13 @@
1
- import { APIClient } from '@wireapp/api-client';
2
1
  import { Conversation, DefaultConversationRoleName, MutedStatus, NewConversation, QualifiedUserClients, UserClients } from '@wireapp/api-client/lib/conversation';
3
2
  import { ConversationMemberLeaveEvent } from '@wireapp/api-client/lib/event';
4
3
  import { QualifiedId, UserPreKeyBundleMap } from '@wireapp/api-client/lib/user';
4
+ import { XOR } from '@wireapp/commons/lib/util/TypeUtil';
5
+ import { APIClient } from '@wireapp/api-client';
6
+ import { AddUsersParams, MLSReturnType, SendMlsMessageParams, SendProteusMessageParams } from './ConversationService.types';
5
7
  import { MessageTimer, PayloadBundleState, RemoveUsersParams } from '../../conversation/';
6
- import { RemoteData } from '../content';
7
8
  import { CryptographyService } from '../../cryptography/';
8
9
  import { MLSService } from '../../mls';
9
- import { XOR } from '@wireapp/commons/lib/util/TypeUtil';
10
- import { AddUsersParams, MLSReturnType, SendMlsMessageParams, SendProteusMessageParams } from './ConversationService.types';
10
+ import { RemoteData } from '../content';
11
11
  declare type SendResult = {
12
12
  /** The id of the message sent */
13
13
  id: string;
@@ -124,3 +124,4 @@ export declare class ConversationService {
124
124
  wipeMLSConversation(groupId: Uint8Array): Promise<void>;
125
125
  }
126
126
  export {};
127
+ //# sourceMappingURL=ConversationService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationService.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationService/ConversationService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEL,YAAY,EACZ,2BAA2B,EAC3B,WAAW,EACX,eAAe,EACf,o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,IAAI,CAAC;CAGrE"}
@@ -19,19 +19,19 @@
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.ConversationService = void 0;
22
- const core_crypto_1 = require("@wireapp/core-crypto");
23
22
  const conversation_1 = require("@wireapp/api-client/lib/conversation");
24
23
  const data_1 = require("@wireapp/api-client/lib/conversation/data");
24
+ const bazinga64_1 = require("bazinga64");
25
+ const core_crypto_1 = require("@wireapp/core-crypto");
25
26
  const protocol_messaging_1 = require("@wireapp/protocol-messaging");
27
+ const ConversationService_types_1 = require("./ConversationService.types");
26
28
  const conversation_2 = require("../../conversation/");
27
29
  const AssetCryptography_1 = require("../../cryptography/AssetCryptography");
28
- const TypePredicateUtil_1 = require("../../util/TypePredicateUtil");
29
- const MessageService_1 = require("../message/MessageService");
30
- const ConversationService_types_1 = require("./ConversationService.types");
31
- const bazinga64_1 = require("bazinga64");
32
- const fullyQualifiedClientIdUtils_1 = require("../../util/fullyQualifiedClientIdUtils");
33
30
  const mls_1 = require("../../mls");
31
+ const fullyQualifiedClientIdUtils_1 = require("../../util/fullyQualifiedClientIdUtils");
32
+ const TypePredicateUtil_1 = require("../../util/TypePredicateUtil");
34
33
  const messageSender_1 = require("../message/messageSender");
34
+ const MessageService_1 = require("../message/MessageService");
35
35
  class ConversationService {
36
36
  constructor(apiClient, cryptographyService, config, mlsService) {
37
37
  this.apiClient = apiClient;
@@ -497,4 +497,3 @@ class ConversationService {
497
497
  }
498
498
  }
499
499
  exports.ConversationService = ConversationService;
500
- //# sourceMappingURL=ConversationService.js.map
@@ -1,7 +1,7 @@
1
- import { GenericMessage } from '@wireapp/protocol-messaging';
2
1
  import { QualifiedUserClients, ClientMismatch, ConversationProtocol, MessageSendingStatus, UserClients, Conversation } from '@wireapp/api-client/lib/conversation';
3
- import { QualifiedId } from '@wireapp/api-client/lib/user';
4
2
  import { MlsEvent } from '@wireapp/api-client/lib/conversation/data/MlsEventData';
3
+ import { QualifiedId } from '@wireapp/api-client/lib/user';
4
+ import { GenericMessage } from '@wireapp/protocol-messaging';
5
5
  export declare enum MessageTargetMode {
6
6
  NONE = 0,
7
7
  USERS = 1,
@@ -96,3 +96,4 @@ export declare type MLSReturnType = {
96
96
  events: MlsEvent[];
97
97
  conversation: Conversation;
98
98
  };
99
+ //# sourceMappingURL=ConversationService.types.d.ts.map