@wireapp/core 46.46.6-beta.14.f6fd03fe6 → 46.46.6

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 (195) hide show
  1. package/lib/Account.d.ts +156 -51
  2. package/lib/Account.d.ts.map +1 -1
  3. package/lib/Account.js +503 -127
  4. package/lib/Account.test.js +158 -147
  5. package/lib/broadcast/AvailabilityType.d.ts +1 -1
  6. package/lib/broadcast/AvailabilityType.d.ts.map +1 -1
  7. package/lib/broadcast/BroadcastService.d.ts +1 -1
  8. package/lib/broadcast/BroadcastService.d.ts.map +1 -1
  9. package/lib/broadcast/BroadcastService.js +1 -1
  10. package/lib/client/ClientService.d.ts +4 -3
  11. package/lib/client/ClientService.d.ts.map +1 -1
  12. package/lib/client/ClientService.js +19 -5
  13. package/lib/conversation/AbortReason.d.ts +1 -1
  14. package/lib/conversation/AbortReason.d.ts.map +1 -1
  15. package/lib/conversation/AssetService/AssetService.d.ts +12 -30
  16. package/lib/conversation/AssetService/AssetService.d.ts.map +1 -1
  17. package/lib/conversation/AssetService/AssetService.js +1 -10
  18. package/lib/conversation/AssetService/AssetService.test.js +8 -3
  19. package/lib/conversation/ClientActionType.d.ts +1 -1
  20. package/lib/conversation/ClientActionType.d.ts.map +1 -1
  21. package/lib/conversation/ClientActionType.js +1 -1
  22. package/lib/conversation/ConversationService/ConversationService.d.ts +98 -14
  23. package/lib/conversation/ConversationService/ConversationService.d.ts.map +1 -1
  24. package/lib/conversation/ConversationService/ConversationService.js +314 -101
  25. package/lib/conversation/ConversationService/ConversationService.test.js +441 -47
  26. package/lib/conversation/ConversationService/ConversationService.types.d.ts +5 -4
  27. package/lib/conversation/ConversationService/ConversationService.types.d.ts.map +1 -1
  28. package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.d.ts.map +1 -1
  29. package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.js +6 -3
  30. package/lib/conversation/SubconversationService/SubconversationService.d.ts.map +1 -1
  31. package/lib/conversation/SubconversationService/SubconversationService.js +158 -11
  32. package/lib/conversation/SubconversationService/SubconversationService.test.js +8 -2
  33. package/lib/conversation/content/AssetContent.d.ts +1 -1
  34. package/lib/conversation/content/AssetContent.d.ts.map +1 -1
  35. package/lib/conversation/content/ButtonActionConfirmationContent.d.ts +1 -1
  36. package/lib/conversation/content/ButtonActionConfirmationContent.d.ts.map +1 -1
  37. package/lib/conversation/content/ButtonActionContent.d.ts +1 -1
  38. package/lib/conversation/content/ButtonActionContent.d.ts.map +1 -1
  39. package/lib/conversation/content/ClearedContent.d.ts +1 -1
  40. package/lib/conversation/content/ClearedContent.d.ts.map +1 -1
  41. package/lib/conversation/content/ClientActionContent.d.ts +1 -1
  42. package/lib/conversation/content/ClientActionContent.d.ts.map +1 -1
  43. package/lib/conversation/content/CompositeContent.d.ts +1 -1
  44. package/lib/conversation/content/CompositeContent.d.ts.map +1 -1
  45. package/lib/conversation/content/ConfirmationContent.d.ts +1 -1
  46. package/lib/conversation/content/ConfirmationContent.d.ts.map +1 -1
  47. package/lib/conversation/content/DeletedContent.d.ts +1 -1
  48. package/lib/conversation/content/DeletedContent.d.ts.map +1 -1
  49. package/lib/conversation/content/HiddenContent.d.ts +1 -1
  50. package/lib/conversation/content/HiddenContent.d.ts.map +1 -1
  51. package/lib/conversation/content/KnockContent.d.ts +1 -1
  52. package/lib/conversation/content/KnockContent.d.ts.map +1 -1
  53. package/lib/conversation/content/LinkPreviewContent.d.ts +1 -1
  54. package/lib/conversation/content/LinkPreviewContent.d.ts.map +1 -1
  55. package/lib/conversation/content/MentionContent.d.ts +1 -1
  56. package/lib/conversation/content/MentionContent.d.ts.map +1 -1
  57. package/lib/conversation/content/MultipartContent.d.ts +1 -1
  58. package/lib/conversation/content/MultipartContent.d.ts.map +1 -1
  59. package/lib/conversation/content/QuoteContent.d.ts +1 -1
  60. package/lib/conversation/content/QuoteContent.d.ts.map +1 -1
  61. package/lib/conversation/content/TweetContent.d.ts +1 -1
  62. package/lib/conversation/content/TweetContent.d.ts.map +1 -1
  63. package/lib/conversation/content/index.d.ts +1 -1
  64. package/lib/conversation/content/index.d.ts.map +1 -1
  65. package/lib/conversation/content/index.js +1 -1
  66. package/lib/conversation/message/MessageBuilder.d.ts +1 -1
  67. package/lib/conversation/message/MessageBuilder.d.ts.map +1 -1
  68. package/lib/conversation/message/MessageBuilder.js +1 -1
  69. package/lib/conversation/message/MessageService.d.ts.map +1 -1
  70. package/lib/conversation/message/MessageService.js +1 -1
  71. package/lib/conversation/message/MessageService.test.js +7 -1
  72. package/lib/conversation/message/MessageToProtoMapper.d.ts +1 -1
  73. package/lib/conversation/message/MessageToProtoMapper.d.ts.map +1 -1
  74. package/lib/conversation/message/MessageToProtoMapper.js +1 -1
  75. package/lib/conversation/message/messageSender.js +2 -2
  76. package/lib/cryptography/AssetCryptography/EncryptedAsset.d.ts +2 -2
  77. package/lib/cryptography/AssetCryptography/EncryptedAsset.d.ts.map +1 -1
  78. package/lib/messagingProtocols/common.types.d.ts +9 -0
  79. package/lib/messagingProtocols/common.types.d.ts.map +1 -1
  80. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIService.types.d.ts +2 -2
  81. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIService.types.d.ts.map +1 -1
  82. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIService.types.js +2 -1
  83. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceExternal.d.ts +1 -1
  84. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceExternal.d.ts.map +1 -1
  85. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceExternal.js +13 -11
  86. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceExternal.test.js +21 -16
  87. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceInternal.d.ts +9 -3
  88. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceInternal.d.ts.map +1 -1
  89. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceInternal.js +31 -12
  90. package/lib/messagingProtocols/mls/E2EIdentityService/Helper/index.d.ts +6 -0
  91. package/lib/messagingProtocols/mls/E2EIdentityService/Helper/index.d.ts.map +1 -1
  92. package/lib/messagingProtocols/mls/E2EIdentityService/Helper/index.js +19 -1
  93. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingProposalsQueue/IncomingProposalsQueue.d.ts +7 -0
  94. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingProposalsQueue/IncomingProposalsQueue.d.ts.map +1 -0
  95. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingProposalsQueue/IncomingProposalsQueue.js +48 -0
  96. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingProposalsQueue/index.d.ts +2 -0
  97. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/{IncomingMessagesQueue → IncomingProposalsQueue}/index.d.ts.map +1 -1
  98. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/{IncomingMessagesQueue → IncomingProposalsQueue}/index.js +1 -1
  99. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/index.d.ts +0 -1
  100. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/index.d.ts.map +1 -1
  101. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/index.js +0 -1
  102. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.d.ts.map +1 -1
  103. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.js +23 -14
  104. package/lib/messagingProtocols/mls/EventHandler/events/welcomeMessage/welcomeMessage.d.ts.map +1 -1
  105. package/lib/messagingProtocols/mls/EventHandler/events/welcomeMessage/welcomeMessage.js +5 -2
  106. package/lib/messagingProtocols/mls/EventHandler/events/welcomeMessage/welcomeMessage.test.js +13 -3
  107. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.d.ts +38 -2
  108. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.d.ts.map +1 -1
  109. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.js +41 -6
  110. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.test.d.ts +2 -0
  111. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.test.d.ts.map +1 -0
  112. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.test.js +124 -0
  113. package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts +38 -34
  114. package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts.map +1 -1
  115. package/lib/messagingProtocols/mls/MLSService/MLSService.js +267 -208
  116. package/lib/messagingProtocols/mls/MLSService/MLSService.test.js +157 -160
  117. package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.js +3 -3
  118. package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.test.js +5 -5
  119. package/lib/messagingProtocols/mls/conversationRejoinQueue.js +2 -2
  120. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.d.ts +78 -0
  121. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.d.ts.map +1 -0
  122. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.js +173 -0
  123. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.test.d.ts +2 -0
  124. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.test.d.ts.map +1 -0
  125. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.test.js +117 -0
  126. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.d.ts +167 -0
  127. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.d.ts.map +1 -0
  128. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.js +317 -0
  129. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.test.d.ts +2 -0
  130. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.test.d.ts.map +1 -0
  131. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.test.js +248 -0
  132. package/lib/messagingProtocols/mls/recovery/index.d.ts +5 -0
  133. package/lib/messagingProtocols/mls/recovery/index.d.ts.map +1 -0
  134. package/lib/messagingProtocols/mls/recovery/index.js +28 -0
  135. package/lib/messagingProtocols/mls/types.d.ts +0 -8
  136. package/lib/messagingProtocols/mls/types.d.ts.map +1 -1
  137. package/lib/messagingProtocols/proteus/EventHandler/events/otrMessageAdd/otrMessageAdd.d.ts.map +1 -1
  138. package/lib/messagingProtocols/proteus/EventHandler/events/otrMessageAdd/otrMessageAdd.js +7 -1
  139. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CoreCryptoWrapper/CoreCryptoWrapper.d.ts +8 -15
  140. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CoreCryptoWrapper/CoreCryptoWrapper.d.ts.map +1 -1
  141. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CoreCryptoWrapper/CoreCryptoWrapper.js +97 -62
  142. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CryptoClient.types.d.ts +0 -6
  143. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CryptoClient.types.d.ts.map +1 -1
  144. package/lib/messagingProtocols/proteus/ProteusService/DecryptionErrorGenerator/DecryptionErrorGenerator.d.ts +1 -6
  145. package/lib/messagingProtocols/proteus/ProteusService/DecryptionErrorGenerator/DecryptionErrorGenerator.d.ts.map +1 -1
  146. package/lib/messagingProtocols/proteus/ProteusService/DecryptionErrorGenerator/DecryptionErrorGenerator.js +19 -22
  147. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts +5 -3
  148. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts.map +1 -1
  149. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.js +11 -24
  150. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.mocks.d.ts +1 -0
  151. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.mocks.d.ts.map +1 -1
  152. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.mocks.js +11 -2
  153. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.test.js +13 -9
  154. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts +3 -2
  155. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts.map +1 -1
  156. package/lib/messagingProtocols/proteus/ProteusService/WithMockedGenerics.test.js +11 -4
  157. package/lib/messagingProtocols/proteus/ProteusService/cryptoMigrationStateStore.d.ts +0 -4
  158. package/lib/messagingProtocols/proteus/ProteusService/cryptoMigrationStateStore.d.ts.map +1 -1
  159. package/lib/messagingProtocols/proteus/ProteusService/cryptoMigrationStateStore.js +0 -5
  160. package/lib/messagingProtocols/proteus/ProteusService/identityClearer.d.ts +2 -1
  161. package/lib/messagingProtocols/proteus/ProteusService/identityClearer.d.ts.map +1 -1
  162. package/lib/messagingProtocols/proteus/ProteusService/identityClearer.js +8 -2
  163. package/lib/messagingProtocols/proteus/Utility/SessionHandler/SessionHandler.test.js +4 -0
  164. package/lib/messagingProtocols/proteus/Utility/getGenericMessageParams.d.ts +1 -1
  165. package/lib/messagingProtocols/proteus/Utility/getGenericMessageParams.d.ts.map +1 -1
  166. package/lib/messagingProtocols/proteus/Utility/getGenericMessageParams.js +1 -1
  167. package/lib/notification/NotificationService.d.ts +20 -6
  168. package/lib/notification/NotificationService.d.ts.map +1 -1
  169. package/lib/notification/NotificationService.js +23 -14
  170. package/lib/notification/NotificationService.test.js +8 -0
  171. package/lib/secretStore/secretKeyGenerator.d.ts +1 -0
  172. package/lib/secretStore/secretKeyGenerator.d.ts.map +1 -1
  173. package/lib/secretStore/secretKeyGenerator.js +3 -1
  174. package/lib/self/SelfService.d.ts +2 -2
  175. package/lib/self/SelfService.d.ts.map +1 -1
  176. package/lib/self/SelfService.test.js +5 -2
  177. package/lib/team/TeamService.d.ts +5 -2
  178. package/lib/team/TeamService.d.ts.map +1 -1
  179. package/lib/team/TeamService.js +12 -2
  180. package/lib/test/StoreHelper.d.ts +2 -0
  181. package/lib/test/StoreHelper.d.ts.map +1 -0
  182. package/lib/test/StoreHelper.js +27 -0
  183. package/lib/user/UserService.d.ts +2 -2
  184. package/lib/user/UserService.d.ts.map +1 -1
  185. package/lib/user/UserService.js +3 -3
  186. package/lib/util/TypePredicateUtil.d.ts.map +1 -1
  187. package/lib/util/TypePredicateUtil.js +2 -2
  188. package/package.json +3 -3
  189. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.d.ts +0 -4
  190. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.d.ts.map +0 -1
  191. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.js +0 -69
  192. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/index.d.ts +0 -2
  193. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.test.d.ts +0 -2
  194. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.test.d.ts.map +0 -1
  195. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.test.js +0 -98
@@ -2,33 +2,13 @@ import { AssetOptions, AssetResponse } from '@wireapp/api-client/lib/asset';
2
2
  import { ProgressCallback, RequestCancelable } from '@wireapp/api-client/lib/http';
3
3
  import { APIClient } from '@wireapp/api-client';
4
4
  import { EncryptedAsset, EncryptedAssetUploaded } from '../../cryptography';
5
- interface AssetDataV4 {
5
+ export { ProgressCallback };
6
+ export type AssetUrlData = {
6
7
  assetKey: string;
7
- assetToken: string;
8
8
  assetDomain: string;
9
- forceCaching: boolean;
10
- version: 4;
11
- }
12
- interface AssetDataV3 {
13
- assetKey: string;
14
- assetToken: string;
15
- forceCaching: boolean;
16
- version: 3;
17
- }
18
- interface AssetDataV2 {
19
- assetId: string;
20
- conversationId: string;
21
- forceCaching: boolean;
22
- version: 2;
23
- }
24
- interface AssetDataV1 {
25
- assetId: string;
26
- conversationId: string;
27
- forceCaching: boolean;
28
- version: 1;
29
- }
30
- export { ProgressCallback };
31
- export type AssetUrlData = AssetDataV1 | AssetDataV2 | AssetDataV3 | AssetDataV4;
9
+ forceCaching?: boolean;
10
+ assetToken?: string;
11
+ };
32
12
  export declare class AssetService {
33
13
  private readonly apiClient;
34
14
  constructor(apiClient: APIClient);
@@ -40,10 +20,7 @@ export declare class AssetService {
40
20
  * @param progressCallback?
41
21
  * @return Resolves when the asset has been uploaded
42
22
  */
43
- downloadRawAsset(assetData: AssetUrlData, progressCallback?: ProgressCallback): {
44
- cancel: () => void;
45
- response: Promise<AssetResponse>;
46
- };
23
+ downloadRawAsset(assetData: AssetUrlData, progressCallback?: ProgressCallback): RequestCancelable<AssetResponse>;
47
24
  /**
48
25
  * Uploads a raw asset to the backend without encrypting it
49
26
  *
@@ -52,7 +29,12 @@ export declare class AssetService {
52
29
  * @param progressCallback?
53
30
  * @return cancellable request that resolves with the uploaded image
54
31
  */
55
- uploadRawAsset(asset: Buffer | Uint8Array, options?: AssetOptions, progressCallback?: ProgressCallback): RequestCancelable<import("@wireapp/api-client/lib/asset").AssetUploadData>;
32
+ uploadRawAsset(asset: Buffer | Uint8Array, options?: AssetOptions, progressCallback?: ProgressCallback): RequestCancelable<{
33
+ key: string;
34
+ domain: string;
35
+ token?: string | undefined;
36
+ expires?: string | undefined;
37
+ }>;
56
38
  /**
57
39
  * Will encrypt and upload an asset to the backend
58
40
  *
@@ -1 +1 @@
1
- {"version":3,"file":"AssetService.d.ts","sourceRoot":"","sources":["../../../src/conversation/AssetService/AssetService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAE,aAAa,EAAC,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAEjF,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAC,cAAc,EAAE,sBAAsB,EAAC,MAAM,oBAAoB,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AAE,YAAY,EACtB,gBAAgB,CAAC,EAAE,gBAAgB,GAClC,OAAO,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;IAyB9C,YAAY,CAAC,KAAK,EAAE,cAAc;IAIzC;;;;;;OAMG;IACI,aAAa,CAClB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,gBAAgB,CAAC,EAAE,gBAAgB,GAClC;QAAC,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,IAAI,CAAA;KAAC;CAgB1D"}
@@ -35,16 +35,7 @@ class AssetService {
35
35
  */
36
36
  downloadRawAsset(assetData, progressCallback) {
37
37
  const { forceCaching } = assetData;
38
- switch (assetData.version) {
39
- case 1:
40
- return this.apiClient.api.asset.getAssetV1(assetData.assetId, assetData.conversationId, forceCaching, progressCallback);
41
- case 2:
42
- return this.apiClient.api.asset.getAssetV2(assetData.assetId, assetData.conversationId, forceCaching, progressCallback);
43
- case 3:
44
- return this.apiClient.api.asset.getAssetV3(assetData.assetKey, assetData.assetToken, forceCaching, progressCallback);
45
- case 4:
46
- return this.apiClient.api.asset.getAssetV4(assetData.assetKey, assetData.assetDomain, assetData.assetToken, forceCaching, progressCallback);
47
- }
38
+ return this.apiClient.api.asset.getAsset(assetData.assetKey, assetData.assetDomain, assetData.assetToken, forceCaching, progressCallback);
48
39
  }
49
40
  /**
50
41
  * Uploads a raw asset to the backend without encrypting it
@@ -23,10 +23,15 @@ const api_client_1 = require("@wireapp/api-client");
23
23
  const AssetService_1 = require("./AssetService");
24
24
  describe('AssetService', () => {
25
25
  describe('"uploadAsset"', () => {
26
+ let apiClient;
27
+ afterEach(() => {
28
+ apiClient?.disconnect();
29
+ });
26
30
  it('builds an encrypted asset payload', async () => {
27
- const apiClient = new api_client_1.APIClient();
31
+ apiClient = new api_client_1.APIClient();
28
32
  const assetService = new AssetService_1.AssetService(apiClient);
29
33
  const assetServerData = {
34
+ domain: 'asset-server.test.wire.com',
30
35
  key: `3-2-${(0, uuid_1.v4)()}`,
31
36
  token: (0, uuid_1.v4)(),
32
37
  expires: '',
@@ -44,7 +49,7 @@ describe('AssetService', () => {
44
49
  }));
45
50
  });
46
51
  it('allows cancelling asset upload', async () => {
47
- const apiClient = new api_client_1.APIClient();
52
+ apiClient = new api_client_1.APIClient();
48
53
  const assetService = new AssetService_1.AssetService(apiClient);
49
54
  const apiUpload = {
50
55
  cancel: jest.fn(),
@@ -56,7 +61,7 @@ describe('AssetService', () => {
56
61
  expect(apiUpload.cancel).toHaveBeenCalled();
57
62
  });
58
63
  it('exposes upload progress', async () => {
59
- const apiClient = new api_client_1.APIClient();
64
+ apiClient = new api_client_1.APIClient();
60
65
  const assetService = new AssetService_1.AssetService(apiClient);
61
66
  const apiUpload = {
62
67
  cancel: jest.fn(),
@@ -1,2 +1,2 @@
1
- export { ClientAction as ClientActionType } from '@pydio/protocol-messaging';
1
+ export { ClientAction as ClientActionType } from '@wireapp/protocol-messaging';
2
2
  //# sourceMappingURL=ClientActionType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientActionType.d.ts","sourceRoot":"","sources":["../../src/conversation/ClientActionType.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,IAAI,gBAAgB,EAAC,MAAM,2BAA2B,CAAC"}
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"}
@@ -19,5 +19,5 @@
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.ClientActionType = void 0;
22
- var protocol_messaging_1 = require("@pydio/protocol-messaging");
22
+ var protocol_messaging_1 = require("@wireapp/protocol-messaging");
23
23
  Object.defineProperty(exports, "ClientActionType", { enumerable: true, get: function () { return protocol_messaging_1.ClientAction; } });
@@ -1,12 +1,12 @@
1
- import { Conversation, DefaultConversationRoleName, MutedStatus, NewConversation, QualifiedUserClients, RemoteConversations, PostMlsMessageResponse, MLSConversation, SUBCONVERSATION_ID } from '@wireapp/api-client/lib/conversation';
1
+ import { Conversation, DefaultConversationRoleName, MutedStatus, NewConversation, QualifiedUserClients, RemoteConversations, MLSConversation, SUBCONVERSATION_ID } from '@wireapp/api-client/lib/conversation';
2
2
  import { BackendEvent, ConversationMemberLeaveEvent } from '@wireapp/api-client/lib/event';
3
3
  import { QualifiedId } from '@wireapp/api-client/lib/user';
4
4
  import { XOR } from '@wireapp/commons/lib/util/TypeUtil';
5
5
  import { APIClient } from '@wireapp/api-client';
6
6
  import { TypedEventEmitter } from '@wireapp/commons';
7
- import { AddUsersParams, MLSCreateConversationResponse, SendMlsMessageParams, SendResult } from './ConversationService.types';
7
+ import { AddUsersParams, BaseCreateConversationResponse, SendMlsMessageParams, SendResult } from './ConversationService.types';
8
8
  import { MessageTimer, RemoveUsersParams } from '../../conversation/';
9
- import { MLSService } from '../../messagingProtocols/mls';
9
+ import { MLSService, MLSServiceEvents } from '../../messagingProtocols/mls';
10
10
  import { ProteusService } from '../../messagingProtocols/proteus';
11
11
  import { AddUsersToProteusConversationParams, SendProteusMessageParams } from '../../messagingProtocols/proteus/ProteusService/ProteusService.types';
12
12
  import { HandledEventResult } from '../../notification';
@@ -16,6 +16,10 @@ type Events = {
16
16
  MLSConversationRecovered: {
17
17
  conversationId: QualifiedId;
18
18
  };
19
+ [MLSServiceEvents.MLS_EVENT_DISTRIBUTED]: {
20
+ events: any;
21
+ time: string;
22
+ };
19
23
  };
20
24
  export declare class ConversationService extends TypedEventEmitter<Events> {
21
25
  private readonly apiClient;
@@ -23,10 +27,13 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
23
27
  private readonly coreDatabase;
24
28
  private readonly groupIdFromConversationId;
25
29
  private readonly subconversationService;
30
+ private readonly isMLSConversationRecoveryEnabled;
26
31
  private readonly _mlsService?;
27
32
  readonly messageTimer: MessageTimer;
28
33
  private readonly logger;
29
- constructor(apiClient: APIClient, proteusService: ProteusService, coreDatabase: CoreDatabase, groupIdFromConversationId: (conversationId: QualifiedId, subconversationId?: SUBCONVERSATION_ID) => Promise<string | undefined>, subconversationService: SubconversationService, _mlsService?: MLSService | undefined);
34
+ private groupIdConversationMap;
35
+ private MLSRecoveryOrchestrator;
36
+ constructor(apiClient: APIClient, proteusService: ProteusService, coreDatabase: CoreDatabase, groupIdFromConversationId: (conversationId: QualifiedId, subconversationId?: SUBCONVERSATION_ID) => Promise<string | undefined>, subconversationService: SubconversationService, isMLSConversationRecoveryEnabled: () => Promise<boolean>, _mlsService?: MLSService | undefined);
30
37
  get mlsService(): MLSService;
31
38
  /**
32
39
  * Get a fresh list from backend of clients for all the participants of the conversation.
@@ -46,7 +53,7 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
46
53
  * @param conversationData Payload object for group creation
47
54
  * @returns Resolves when the conversation was created
48
55
  */
49
- createProteusConversation(conversationData: NewConversation): Promise<import("./ConversationService.types").BaseCreateConversationResponse>;
56
+ createProteusConversation(conversationData: NewConversation): Promise<BaseCreateConversationResponse>;
50
57
  getConversation(conversationId: QualifiedId): Promise<Conversation>;
51
58
  getMLSSelfConversation(): Promise<MLSConversation>;
52
59
  getConversations(conversationIds?: QualifiedId[]): Promise<RemoteConversations>;
@@ -86,18 +93,76 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
86
93
  * Will create a conversation on backend and register it to CoreCrypto once created
87
94
  * @param conversationData
88
95
  */
89
- createMLSConversation(conversationData: NewConversation, selfUserId: QualifiedId, selfClientId: string): Promise<MLSCreateConversationResponse>;
96
+ createMLSConversation(conversationData: NewConversation, selfUserId: QualifiedId, selfClientId: string): Promise<BaseCreateConversationResponse>;
97
+ /**
98
+ * Centralized handler for scenarios where an MLS conversation is detected as broken.
99
+ * It resets the conversation and then invokes the provided callback so callers can retry
100
+ * their original operation (e.g., re-adding/removing users, re-joining, etc.) with the new group id.
101
+ *
102
+ * Contract:
103
+ * - input: conversationId to reset; callback invoked after reset with the new group id
104
+ * - output: the value returned by the callback
105
+ * - error: throws if reset fails or new group id is missing
106
+ */
107
+ private handleBrokenMLSConversation;
108
+ /**
109
+ * Will create a conversation on backend and register it to CoreCrypto once created
110
+ * @param conversationData
111
+ */
112
+ establishMLSGroupConversation(groupId: string, userIdsToAdd: QualifiedId[], selfUserId: QualifiedId, selfClientId: string, conversationQualifiedId: QualifiedId): Promise<BaseCreateConversationResponse>;
113
+ /**
114
+ * Send an MLS message wrapped with recovery.
115
+ *
116
+ * Uses the MLS recovery orchestrator to handle transient MLS errors (for example, wrong epoch)
117
+ * according to per-operation policies. When configured, the original send is retried once
118
+ * after a successful recovery. Unrecoverable errors are re-thrown by the orchestrator.
119
+ * The low-level send logic lives in {@link performSendMLSMessageAPI}.
120
+ */
90
121
  private sendMLSMessage;
122
+ private performSendMLSMessageAPI;
123
+ /**
124
+ * Add users to an existing MLS group with recovery.
125
+ *
126
+ * Claims key packages and passes them to CoreCrypto.addClientsToConversation. The MLS recovery
127
+ * orchestrator handles recoverable failures (e.g., wrong epoch) and may retry the operation once
128
+ * depending on policy. The optional shouldRetry flag is ignored; retries are governed by policies.
129
+ *
130
+ * @param qualifiedUsers List of qualified user ids (use skipOwnClientId on self to avoid claiming its key package)
131
+ * @param groupId Id of the MLS group to add users to
132
+ * @param conversationId Qualified id of the conversation
133
+ */
134
+ addUsersToMLSConversation({ qualifiedUsers, groupId, conversationId, }: Required<AddUsersParams> & {
135
+ shouldRetry?: boolean;
136
+ }): Promise<BaseCreateConversationResponse>;
137
+ private performAddUsersToMLSConversationAPI;
91
138
  /**
92
- * Will add users to existing MLS group by claiming their key packages and passing them to CoreCrypto.addClientsToConversation
139
+ * Remove users from an existing MLS group with recovery.
93
140
  *
94
- * @param qualifiedUsers List of qualified user ids (with optional skipOwnClientId field - if provided we will not claim key package for this self client)
95
- * @param groupId Id of the group to which we want to add users
96
- * @param conversationId Id of the conversation to which we want to add users
141
+ * The MLS recovery orchestrator handles recoverable failures and may retry the operation once
142
+ * depending on policy. The optional shouldRetry flag is ignored; retries are policy-driven.
97
143
  */
98
- addUsersToMLSConversation({ qualifiedUsers, groupId, conversationId, }: Required<AddUsersParams>): Promise<MLSCreateConversationResponse>;
99
- removeUsersFromMLSConversation({ groupId, conversationId, qualifiedUserIds, }: RemoveUsersParams): Promise<MLSCreateConversationResponse>;
100
- joinByExternalCommit(conversationId: QualifiedId): Promise<PostMlsMessageResponse>;
144
+ removeUsersFromMLSConversation({ groupId, conversationId, qualifiedUserIds, }: RemoveUsersParams & {
145
+ shouldRetry?: boolean;
146
+ }): Promise<Conversation>;
147
+ private performRemoveUsersFromMLSConversationAPI;
148
+ /**
149
+ * Join an MLS conversation via external commit with recovery.
150
+ *
151
+ * If the group is not established or is out of date, the orchestrator recovers accordingly.
152
+ * The join operation itself is not automatically re-run by policy.
153
+ */
154
+ joinByExternalCommit(conversationId: QualifiedId): Promise<void>;
155
+ private performJoinByExternalCommitAPI;
156
+ private refreshGroupIdConversationMap;
157
+ private getConversationByGroupId;
158
+ /**
159
+ * React to a key material update failure using the recovery orchestrator.
160
+ *
161
+ * The original error is forwarded to the orchestrator under the 'keyMaterialUpdate' operation
162
+ * so it can map and apply the configured recovery policy. Unrecoverable errors are logged.
163
+ */
164
+ private reactToKeyMaterialUpdateFailure;
165
+ private resetMLSConversation;
101
166
  /**
102
167
  * Will check if mls group exists locally.
103
168
  * @param groupId groupId of the conversation
@@ -109,7 +174,7 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
109
174
  * @param groupId groupId of the conversation
110
175
  */
111
176
  isMLSGroupEstablishedLocally(groupId: string): Promise<boolean>;
112
- wipeMLSConversation(groupId: string): Promise<void>;
177
+ wipeMLSConversation: (groupId: string) => Promise<void>;
113
178
  private matchesEpoch;
114
179
  handleConversationsEpochMismatch(): Promise<void>;
115
180
  /**
@@ -163,8 +228,27 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
163
228
  selfUserId: QualifiedId;
164
229
  qualifiedUsers: QualifiedId[];
165
230
  }): Promise<void>;
231
+ /**
232
+ * Handle an inbound MLS message-add event with recovery.
233
+ *
234
+ * Policies (see MlsRecoveryOrchestrator):
235
+ * - WrongEpoch.handleMessageAdd → recover from epoch mismatch and re-run once.
236
+ * - GroupOutOfSync.handleMessageAdd → not handled here; the error bubbles.
237
+ *
238
+ * Returns the decrypted payload when available. Unknown or unrecoverable errors are logged
239
+ * and result in null so event processing can continue safely.
240
+ */
166
241
  private handleMLSMessageAddEvent;
167
242
  private recoverMLSGroupFromEpochMismatch;
243
+ /**
244
+ * Handle an MLS welcome event with recovery.
245
+ *
246
+ * Policies (see MlsRecoveryOrchestrator):
247
+ * - OrphanWelcome → join via external commit (no auto re-run).
248
+ * - ConversationAlreadyExists → wipe local state and re-run welcome once.
249
+ *
250
+ * Always resolves to null; the effects are applied to local state.
251
+ */
168
252
  private handleMLSWelcomeMessageEvent;
169
253
  private handleOtrMessageAddEvent;
170
254
  private isConversationBlacklisted;
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationService.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationService/ConversationService.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,WAAW,EACX,eAAe,EACf,oBAAoB,EAEpB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAGnB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,YAAY,EAIZ,4BAA4B,EAE7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AAGvD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAa,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAEL,cAAc,EAEd,6BAA6B,EAC7B,oBAA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B,cAAc,EAAE,WAAW,CAAC;QAC5B,UAAU,EAAE,WAAW,CAAC;QACxB,cAAc,EAAE,WAAW,EAAE,CAAC;KAC/B,GAAG,OAAO,CAAC,IAAI,CAAC;YA4BH,wBAAwB;YAsBxB,gCAAgC;YAyBhC,4BAA4B;YA0B5B,wBAAwB;YAIxB,yBAAyB;IAKvC;;;;OAIG;IACU,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAoB3E"}
1
+ {"version":3,"file":"ConversationService.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationService/ConversationService.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAGnB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,YAAY,EAIZ,4BAA4B,EAE7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AAGvD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAa,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAI/D,OAAO,EACL,cAAc,EACd,8BAA8B,EAE9B,oBAAoB,EACpB,UAAU,EACX,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAC,YAAY,EAAuB,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAQ1E,OAAO,EAAkC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AACjG,OAAO,EACL,mCAAmC,EACnC,wBAAwB,EACzB,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EAAsB,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAC,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