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

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 +51 -168
  2. package/lib/Account.d.ts.map +1 -1
  3. package/lib/Account.js +127 -517
  4. package/lib/Account.test.js +147 -158
  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 +3 -4
  11. package/lib/client/ClientService.d.ts.map +1 -1
  12. package/lib/client/ClientService.js +5 -19
  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 +30 -12
  16. package/lib/conversation/AssetService/AssetService.d.ts.map +1 -1
  17. package/lib/conversation/AssetService/AssetService.js +10 -1
  18. package/lib/conversation/AssetService/AssetService.test.js +3 -8
  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 +14 -98
  23. package/lib/conversation/ConversationService/ConversationService.d.ts.map +1 -1
  24. package/lib/conversation/ConversationService/ConversationService.js +101 -314
  25. package/lib/conversation/ConversationService/ConversationService.test.js +47 -441
  26. package/lib/conversation/ConversationService/ConversationService.types.d.ts +4 -5
  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 +3 -6
  30. package/lib/conversation/SubconversationService/SubconversationService.d.ts.map +1 -1
  31. package/lib/conversation/SubconversationService/SubconversationService.js +11 -158
  32. package/lib/conversation/SubconversationService/SubconversationService.test.js +2 -8
  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 +1 -7
  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 +0 -9
  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 +1 -2
  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 +11 -13
  86. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceExternal.test.js +16 -21
  87. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceInternal.d.ts +3 -9
  88. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceInternal.d.ts.map +1 -1
  89. package/lib/messagingProtocols/mls/E2EIdentityService/E2EIServiceInternal.js +12 -31
  90. package/lib/messagingProtocols/mls/E2EIdentityService/Helper/index.d.ts +0 -6
  91. package/lib/messagingProtocols/mls/E2EIdentityService/Helper/index.d.ts.map +1 -1
  92. package/lib/messagingProtocols/mls/E2EIdentityService/Helper/index.js +1 -19
  93. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.d.ts +4 -0
  94. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.d.ts.map +1 -0
  95. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.js +69 -0
  96. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/index.d.ts +2 -0
  97. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/{IncomingProposalsQueue → IncomingMessagesQueue}/index.d.ts.map +1 -1
  98. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/{IncomingProposalsQueue → IncomingMessagesQueue}/index.js +1 -1
  99. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/index.d.ts +1 -0
  100. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/index.d.ts.map +1 -1
  101. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/index.js +1 -0
  102. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.d.ts.map +1 -1
  103. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.js +14 -23
  104. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.test.d.ts +2 -0
  105. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.test.d.ts.map +1 -0
  106. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/messageAdd.test.js +98 -0
  107. package/lib/messagingProtocols/mls/EventHandler/events/welcomeMessage/welcomeMessage.d.ts.map +1 -1
  108. package/lib/messagingProtocols/mls/EventHandler/events/welcomeMessage/welcomeMessage.js +2 -5
  109. package/lib/messagingProtocols/mls/EventHandler/events/welcomeMessage/welcomeMessage.test.js +3 -13
  110. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.d.ts +2 -38
  111. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.d.ts.map +1 -1
  112. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.js +6 -41
  113. package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts +34 -38
  114. package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts.map +1 -1
  115. package/lib/messagingProtocols/mls/MLSService/MLSService.js +208 -267
  116. package/lib/messagingProtocols/mls/MLSService/MLSService.test.js +160 -157
  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/types.d.ts +8 -0
  121. package/lib/messagingProtocols/mls/types.d.ts.map +1 -1
  122. package/lib/messagingProtocols/proteus/EventHandler/events/otrMessageAdd/otrMessageAdd.d.ts.map +1 -1
  123. package/lib/messagingProtocols/proteus/EventHandler/events/otrMessageAdd/otrMessageAdd.js +1 -7
  124. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CoreCryptoWrapper/CoreCryptoWrapper.d.ts +15 -8
  125. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CoreCryptoWrapper/CoreCryptoWrapper.d.ts.map +1 -1
  126. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CoreCryptoWrapper/CoreCryptoWrapper.js +62 -97
  127. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CryptoClient.types.d.ts +6 -0
  128. package/lib/messagingProtocols/proteus/ProteusService/CryptoClient/CryptoClient.types.d.ts.map +1 -1
  129. package/lib/messagingProtocols/proteus/ProteusService/DecryptionErrorGenerator/DecryptionErrorGenerator.d.ts +6 -1
  130. package/lib/messagingProtocols/proteus/ProteusService/DecryptionErrorGenerator/DecryptionErrorGenerator.d.ts.map +1 -1
  131. package/lib/messagingProtocols/proteus/ProteusService/DecryptionErrorGenerator/DecryptionErrorGenerator.js +22 -19
  132. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts +3 -5
  133. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts.map +1 -1
  134. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.js +24 -11
  135. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.mocks.d.ts +0 -1
  136. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.mocks.d.ts.map +1 -1
  137. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.mocks.js +2 -11
  138. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.test.js +9 -13
  139. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts +2 -3
  140. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts.map +1 -1
  141. package/lib/messagingProtocols/proteus/ProteusService/WithMockedGenerics.test.js +4 -11
  142. package/lib/messagingProtocols/proteus/ProteusService/cryptoMigrationStateStore.d.ts +4 -0
  143. package/lib/messagingProtocols/proteus/ProteusService/cryptoMigrationStateStore.d.ts.map +1 -1
  144. package/lib/messagingProtocols/proteus/ProteusService/cryptoMigrationStateStore.js +5 -0
  145. package/lib/messagingProtocols/proteus/ProteusService/identityClearer.d.ts +1 -2
  146. package/lib/messagingProtocols/proteus/ProteusService/identityClearer.d.ts.map +1 -1
  147. package/lib/messagingProtocols/proteus/ProteusService/identityClearer.js +2 -8
  148. package/lib/messagingProtocols/proteus/Utility/SessionHandler/SessionHandler.test.js +0 -4
  149. package/lib/messagingProtocols/proteus/Utility/getGenericMessageParams.d.ts +1 -1
  150. package/lib/messagingProtocols/proteus/Utility/getGenericMessageParams.d.ts.map +1 -1
  151. package/lib/messagingProtocols/proteus/Utility/getGenericMessageParams.js +1 -1
  152. package/lib/notification/NotificationService.d.ts +6 -20
  153. package/lib/notification/NotificationService.d.ts.map +1 -1
  154. package/lib/notification/NotificationService.js +14 -23
  155. package/lib/notification/NotificationService.test.js +0 -8
  156. package/lib/secretStore/secretKeyGenerator.d.ts +0 -1
  157. package/lib/secretStore/secretKeyGenerator.d.ts.map +1 -1
  158. package/lib/secretStore/secretKeyGenerator.js +1 -3
  159. package/lib/self/SelfService.d.ts +2 -2
  160. package/lib/self/SelfService.d.ts.map +1 -1
  161. package/lib/self/SelfService.test.js +2 -5
  162. package/lib/team/TeamService.d.ts +2 -5
  163. package/lib/team/TeamService.d.ts.map +1 -1
  164. package/lib/team/TeamService.js +2 -12
  165. package/lib/user/UserService.d.ts +2 -2
  166. package/lib/user/UserService.d.ts.map +1 -1
  167. package/lib/user/UserService.js +3 -3
  168. package/lib/util/TypePredicateUtil.d.ts.map +1 -1
  169. package/lib/util/TypePredicateUtil.js +2 -2
  170. package/package.json +3 -3
  171. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingProposalsQueue/IncomingProposalsQueue.d.ts +0 -7
  172. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingProposalsQueue/IncomingProposalsQueue.d.ts.map +0 -1
  173. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingProposalsQueue/IncomingProposalsQueue.js +0 -48
  174. package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingProposalsQueue/index.d.ts +0 -2
  175. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.test.d.ts +0 -2
  176. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.test.d.ts.map +0 -1
  177. package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.test.js +0 -124
  178. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.d.ts +0 -78
  179. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.d.ts.map +0 -1
  180. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.js +0 -173
  181. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.test.d.ts +0 -2
  182. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.test.d.ts.map +0 -1
  183. package/lib/messagingProtocols/mls/recovery/MlsErrorMapper.test.js +0 -117
  184. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.d.ts +0 -167
  185. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.d.ts.map +0 -1
  186. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.js +0 -317
  187. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.test.d.ts +0 -2
  188. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.test.d.ts.map +0 -1
  189. package/lib/messagingProtocols/mls/recovery/MlsRecoveryOrchestrator.test.js +0 -248
  190. package/lib/messagingProtocols/mls/recovery/index.d.ts +0 -5
  191. package/lib/messagingProtocols/mls/recovery/index.d.ts.map +0 -1
  192. package/lib/messagingProtocols/mls/recovery/index.js +0 -28
  193. package/lib/test/StoreHelper.d.ts +0 -2
  194. package/lib/test/StoreHelper.d.ts.map +0 -1
  195. package/lib/test/StoreHelper.js +0 -27
@@ -2,13 +2,33 @@ 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
- export { ProgressCallback };
6
- export type AssetUrlData = {
5
+ interface AssetDataV4 {
7
6
  assetKey: string;
7
+ assetToken: string;
8
8
  assetDomain: string;
9
- forceCaching?: boolean;
10
- assetToken?: string;
11
- };
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;
12
32
  export declare class AssetService {
13
33
  private readonly apiClient;
14
34
  constructor(apiClient: APIClient);
@@ -20,7 +40,10 @@ export declare class AssetService {
20
40
  * @param progressCallback?
21
41
  * @return Resolves when the asset has been uploaded
22
42
  */
23
- downloadRawAsset(assetData: AssetUrlData, progressCallback?: ProgressCallback): RequestCancelable<AssetResponse>;
43
+ downloadRawAsset(assetData: AssetUrlData, progressCallback?: ProgressCallback): {
44
+ cancel: () => void;
45
+ response: Promise<AssetResponse>;
46
+ };
24
47
  /**
25
48
  * Uploads a raw asset to the backend without encrypting it
26
49
  *
@@ -29,12 +52,7 @@ export declare class AssetService {
29
52
  * @param progressCallback?
30
53
  * @return cancellable request that resolves with the uploaded image
31
54
  */
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
- }>;
55
+ uploadRawAsset(asset: Buffer | Uint8Array, options?: AssetOptions, progressCallback?: ProgressCallback): RequestCancelable<import("@wireapp/api-client/lib/asset").AssetUploadData>;
38
56
  /**
39
57
  * Will encrypt and upload an asset to the backend
40
58
  *
@@ -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,cA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MAAM,GAAG,UAAU,EAC9B,OAAO,CAAC,EAAE,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,7 +35,16 @@ class AssetService {
35
35
  */
36
36
  downloadRawAsset(assetData, progressCallback) {
37
37
  const { forceCaching } = assetData;
38
- return this.apiClient.api.asset.getAsset(assetData.assetKey, assetData.assetDomain, assetData.assetToken, forceCaching, progressCallback);
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
+ }
39
48
  }
40
49
  /**
41
50
  * Uploads a raw asset to the backend without encrypting it
@@ -23,15 +23,10 @@ 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
- });
30
26
  it('builds an encrypted asset payload', async () => {
31
- apiClient = new api_client_1.APIClient();
27
+ const apiClient = new api_client_1.APIClient();
32
28
  const assetService = new AssetService_1.AssetService(apiClient);
33
29
  const assetServerData = {
34
- domain: 'asset-server.test.wire.com',
35
30
  key: `3-2-${(0, uuid_1.v4)()}`,
36
31
  token: (0, uuid_1.v4)(),
37
32
  expires: '',
@@ -49,7 +44,7 @@ describe('AssetService', () => {
49
44
  }));
50
45
  });
51
46
  it('allows cancelling asset upload', async () => {
52
- apiClient = new api_client_1.APIClient();
47
+ const apiClient = new api_client_1.APIClient();
53
48
  const assetService = new AssetService_1.AssetService(apiClient);
54
49
  const apiUpload = {
55
50
  cancel: jest.fn(),
@@ -61,7 +56,7 @@ describe('AssetService', () => {
61
56
  expect(apiUpload.cancel).toHaveBeenCalled();
62
57
  });
63
58
  it('exposes upload progress', async () => {
64
- apiClient = new api_client_1.APIClient();
59
+ const apiClient = new api_client_1.APIClient();
65
60
  const assetService = new AssetService_1.AssetService(apiClient);
66
61
  const apiUpload = {
67
62
  cancel: jest.fn(),
@@ -1,2 +1,2 @@
1
- export { ClientAction as ClientActionType } from '@wireapp/protocol-messaging';
1
+ export { ClientAction as ClientActionType } from '@pydio/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,6BAA6B,CAAC"}
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"}
@@ -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("@wireapp/protocol-messaging");
22
+ var protocol_messaging_1 = require("@pydio/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, MLSConversation, SUBCONVERSATION_ID } from '@wireapp/api-client/lib/conversation';
1
+ import { Conversation, DefaultConversationRoleName, MutedStatus, NewConversation, QualifiedUserClients, RemoteConversations, PostMlsMessageResponse, 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, BaseCreateConversationResponse, SendMlsMessageParams, SendResult } from './ConversationService.types';
7
+ import { AddUsersParams, MLSCreateConversationResponse, SendMlsMessageParams, SendResult } from './ConversationService.types';
8
8
  import { MessageTimer, RemoveUsersParams } from '../../conversation/';
9
- import { MLSService, MLSServiceEvents } from '../../messagingProtocols/mls';
9
+ import { MLSService } 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,10 +16,6 @@ type Events = {
16
16
  MLSConversationRecovered: {
17
17
  conversationId: QualifiedId;
18
18
  };
19
- [MLSServiceEvents.MLS_EVENT_DISTRIBUTED]: {
20
- events: any;
21
- time: string;
22
- };
23
19
  };
24
20
  export declare class ConversationService extends TypedEventEmitter<Events> {
25
21
  private readonly apiClient;
@@ -27,13 +23,10 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
27
23
  private readonly coreDatabase;
28
24
  private readonly groupIdFromConversationId;
29
25
  private readonly subconversationService;
30
- private readonly isMLSConversationRecoveryEnabled;
31
26
  private readonly _mlsService?;
32
27
  readonly messageTimer: MessageTimer;
33
28
  private readonly logger;
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);
29
+ constructor(apiClient: APIClient, proteusService: ProteusService, coreDatabase: CoreDatabase, groupIdFromConversationId: (conversationId: QualifiedId, subconversationId?: SUBCONVERSATION_ID) => Promise<string | undefined>, subconversationService: SubconversationService, _mlsService?: MLSService | undefined);
37
30
  get mlsService(): MLSService;
38
31
  /**
39
32
  * Get a fresh list from backend of clients for all the participants of the conversation.
@@ -53,7 +46,7 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
53
46
  * @param conversationData Payload object for group creation
54
47
  * @returns Resolves when the conversation was created
55
48
  */
56
- createProteusConversation(conversationData: NewConversation): Promise<BaseCreateConversationResponse>;
49
+ createProteusConversation(conversationData: NewConversation): Promise<import("./ConversationService.types").BaseCreateConversationResponse>;
57
50
  getConversation(conversationId: QualifiedId): Promise<Conversation>;
58
51
  getMLSSelfConversation(): Promise<MLSConversation>;
59
52
  getConversations(conversationIds?: QualifiedId[]): Promise<RemoteConversations>;
@@ -93,76 +86,18 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
93
86
  * Will create a conversation on backend and register it to CoreCrypto once created
94
87
  * @param conversationData
95
88
  */
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
- */
89
+ createMLSConversation(conversationData: NewConversation, selfUserId: QualifiedId, selfClientId: string): Promise<MLSCreateConversationResponse>;
121
90
  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;
138
91
  /**
139
- * Remove users from an existing MLS group with recovery.
92
+ * Will add users to existing MLS group by claiming their key packages and passing them to CoreCrypto.addClientsToConversation
140
93
  *
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.
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
143
97
  */
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;
98
+ addUsersToMLSConversation({ qualifiedUsers, groupId, conversationId, }: Required<AddUsersParams>): Promise<MLSCreateConversationResponse>;
99
+ removeUsersFromMLSConversation({ groupId, conversationId, qualifiedUserIds, }: RemoveUsersParams): Promise<MLSCreateConversationResponse>;
100
+ joinByExternalCommit(conversationId: QualifiedId): Promise<PostMlsMessageResponse>;
166
101
  /**
167
102
  * Will check if mls group exists locally.
168
103
  * @param groupId groupId of the conversation
@@ -174,7 +109,7 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
174
109
  * @param groupId groupId of the conversation
175
110
  */
176
111
  isMLSGroupEstablishedLocally(groupId: string): Promise<boolean>;
177
- wipeMLSConversation: (groupId: string) => Promise<void>;
112
+ wipeMLSConversation(groupId: string): Promise<void>;
178
113
  private matchesEpoch;
179
114
  handleConversationsEpochMismatch(): Promise<void>;
180
115
  /**
@@ -228,27 +163,8 @@ export declare class ConversationService extends TypedEventEmitter<Events> {
228
163
  selfUserId: QualifiedId;
229
164
  qualifiedUsers: QualifiedId[];
230
165
  }): 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
- */
241
166
  private handleMLSMessageAddEvent;
242
167
  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
- */
252
168
  private handleMLSWelcomeMessageEvent;
253
169
  private handleOtrMessageAddEvent;
254
170
  private isConversationBlacklisted;
@@ -1 +1 @@
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,iBA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,IAAI,CAAC;YAQ/D,8BAA8B;YAI9B,6BAA6B;YAU7B,wBAAwB;IAOtC;;;;;OAKG;IACH,OAAO,CAAC,+BAA+B,CA0BrC;YAEY,oBAAoB;IAiElC;;;OAGG;IACU,qBAAqB,CAAC,OAAO,EAAE,MAAM;IAIlD;;;;OAIG;IACU,4BAA4B,CAAC,OAAO,EAAE,MAAM;IAIlD,mBAAmB,YAAmB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;YAEY,YAAY;IAYb,gCAAgC;IAe7C;;;OAGG;YACW,kCAAkC;IA2BhD;;;OAGG;YACW,+BAA+B;IAqB7C;;;;;;;OAOG;YACW,gBAAgB;IAc9B;;;OAGG;IACG,sBAAsB,CAAC,MAAM,EAAE,WAAW;IAShD;;;;;;;OAOG;IACH,SAAgB,4BAA4B,YACjC,MAAM,YACL;QAAC,IAAI,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,eAChC,WAAW,4BAEvB,OAAO,CAAC,eAAe,CAAC,CAwDzB;IAEF;;;;;;;;OAQG;IACU,uBAAuB,CAAC,EACnC,OAAO,EACP,cAAc,EACd,UAAU,EACV,cAAc,GACf,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,WAAW,CAAC;QAC5B,UAAU,EAAE,WAAW,CAAC;QACxB,cAAc,EAAE,WAAW,EAAE,CAAC;KAC/B,GAAG,OAAO,CAAC,IAAI,CAAC;IAkCjB;;;;;;;;;OASG;YACW,wBAAwB;YAwBxB,gCAAgC;IA0B9C;;;;;;;;OAQG;YACW,4BAA4B;YAY5B,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":"AAoBA,OAAO,EACL,Y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