@wireapp/core 36.4.4 → 36.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/lib/Account.d.ts +5 -5
  2. package/lib/Account.d.ts.map +1 -1
  3. package/lib/Account.js +13 -6
  4. package/lib/conversation/ConversationService/ConversationService.d.ts +8 -40
  5. package/lib/conversation/ConversationService/ConversationService.d.ts.map +1 -1
  6. package/lib/conversation/ConversationService/ConversationService.js +9 -201
  7. package/lib/conversation/ConversationService/ConversationService.types.d.ts +9 -13
  8. package/lib/conversation/ConversationService/ConversationService.types.d.ts.map +1 -1
  9. package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.d.ts +9 -0
  10. package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.d.ts.map +1 -0
  11. package/lib/conversation/ConversationService/Utility/getConversationQualifiedMembers.js +34 -0
  12. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/ConversationEvent.d.ts +0 -0
  13. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/ConversationEvent.d.ts.map +1 -0
  14. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/ConversationEvent.js +0 -0
  15. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/index.d.ts +0 -0
  16. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/index.d.ts.map +1 -0
  17. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/index.js +0 -0
  18. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/messageAdd/index.d.ts +0 -0
  19. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/index.d.ts.map +1 -0
  20. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/messageAdd/index.js +0 -0
  21. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts +0 -0
  22. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts.map +1 -0
  23. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/messageAdd/messageAdd.js +0 -0
  24. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts +0 -0
  25. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts.map +1 -0
  26. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/welcomeMessage/index.js +0 -0
  27. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts +0 -0
  28. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts.map +1 -0
  29. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.js +0 -0
  30. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/index.d.ts +0 -0
  31. package/lib/messagingProtocols/mls/EventHandler/ConversationEvent/index.d.ts.map +1 -0
  32. package/lib/{mls → messagingProtocols/mls}/EventHandler/ConversationEvent/index.js +0 -0
  33. package/lib/{mls → messagingProtocols/mls}/EventHandler/EventHandler.d.ts +0 -0
  34. package/lib/messagingProtocols/mls/EventHandler/EventHandler.d.ts.map +1 -0
  35. package/lib/{mls → messagingProtocols/mls}/EventHandler/EventHandler.js +0 -0
  36. package/lib/{mls → messagingProtocols/mls}/EventHandler/EventHandler.types.d.ts +2 -2
  37. package/lib/messagingProtocols/mls/EventHandler/EventHandler.types.d.ts.map +1 -0
  38. package/lib/{mls → messagingProtocols/mls}/EventHandler/EventHandler.types.js +1 -1
  39. package/lib/{mls → messagingProtocols/mls}/EventHandler/index.d.ts +0 -0
  40. package/lib/messagingProtocols/mls/EventHandler/index.d.ts.map +1 -0
  41. package/lib/{mls → messagingProtocols/mls}/EventHandler/index.js +0 -0
  42. package/lib/{mls → messagingProtocols/mls}/MLSService/MLSService.d.ts +2 -6
  43. package/lib/messagingProtocols/mls/MLSService/MLSService.d.ts.map +1 -0
  44. package/lib/{mls → messagingProtocols/mls}/MLSService/MLSService.js +4 -4
  45. package/lib/messagingProtocols/mls/MLSService/MLSService.types.d.ts +16 -0
  46. package/lib/messagingProtocols/mls/MLSService/MLSService.types.d.ts.map +1 -0
  47. package/lib/{mls/types.js → messagingProtocols/mls/MLSService/MLSService.types.js} +0 -0
  48. package/lib/{mls → messagingProtocols/mls}/MLSService/commitBundleUtil.d.ts +0 -0
  49. package/lib/messagingProtocols/mls/MLSService/commitBundleUtil.d.ts.map +1 -0
  50. package/lib/{mls → messagingProtocols/mls}/MLSService/commitBundleUtil.js +0 -0
  51. package/lib/{mls → messagingProtocols/mls}/MLSService/index.d.ts +0 -0
  52. package/lib/messagingProtocols/mls/MLSService/index.d.ts.map +1 -0
  53. package/lib/{mls → messagingProtocols/mls}/MLSService/index.js +0 -0
  54. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/keyMaterialUpdatesStore/index.d.ts +0 -0
  55. package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/index.d.ts.map +1 -0
  56. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/keyMaterialUpdatesStore/index.js +0 -0
  57. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts +0 -0
  58. package/lib/messagingProtocols/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts.map +1 -0
  59. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.js +0 -0
  60. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/pendingProposalsStore/index.d.ts +0 -0
  61. package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/index.d.ts.map +1 -0
  62. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/pendingProposalsStore/index.js +0 -0
  63. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts +0 -0
  64. package/lib/messagingProtocols/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts.map +1 -0
  65. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/pendingProposalsStore/pendingProposalsStore.js +0 -0
  66. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/stores.mock.d.ts +0 -0
  67. package/lib/messagingProtocols/mls/MLSService/stores/stores.mock.d.ts.map +1 -0
  68. package/lib/{mls → messagingProtocols/mls}/MLSService/stores/stores.mock.js +0 -0
  69. package/lib/messagingProtocols/mls/index.d.ts +2 -0
  70. package/lib/messagingProtocols/mls/index.d.ts.map +1 -0
  71. package/lib/{mls → messagingProtocols/mls}/index.js +1 -1
  72. package/lib/{mls → messagingProtocols/mls}/types.d.ts +0 -0
  73. package/lib/messagingProtocols/mls/types.d.ts.map +1 -0
  74. package/lib/messagingProtocols/mls/types.js +20 -0
  75. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts +15 -0
  76. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.d.ts.map +1 -0
  77. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.js +77 -0
  78. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts +20 -0
  79. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.d.ts.map +1 -0
  80. package/lib/messagingProtocols/proteus/ProteusService/ProteusService.types.js +20 -0
  81. package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.d.ts +24 -0
  82. package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.d.ts.map +1 -0
  83. package/lib/messagingProtocols/proteus/ProteusService/Utility/PreKeyBundle.js +86 -0
  84. package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.d.ts +17 -0
  85. package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.d.ts.map +1 -0
  86. package/lib/messagingProtocols/proteus/ProteusService/Utility/Recipients.js +43 -0
  87. package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.d.ts +12 -0
  88. package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.d.ts.map +1 -0
  89. package/lib/messagingProtocols/proteus/ProteusService/Utility/UserIds.js +38 -0
  90. package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.d.ts +35 -0
  91. package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.d.ts.map +1 -0
  92. package/lib/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.js +87 -0
  93. package/lib/messagingProtocols/proteus/ProteusService/Utility/index.d.ts +5 -0
  94. package/lib/messagingProtocols/proteus/ProteusService/Utility/index.d.ts.map +1 -0
  95. package/lib/messagingProtocols/proteus/ProteusService/Utility/index.js +38 -0
  96. package/lib/messagingProtocols/proteus/ProteusService/index.d.ts +4 -0
  97. package/lib/messagingProtocols/proteus/ProteusService/index.d.ts.map +1 -0
  98. package/lib/messagingProtocols/proteus/ProteusService/index.js +37 -0
  99. package/lib/messagingProtocols/proteus/index.d.ts +2 -0
  100. package/lib/messagingProtocols/proteus/index.d.ts.map +1 -0
  101. package/lib/messagingProtocols/proteus/index.js +35 -0
  102. package/lib/notification/NotificationService.d.ts +1 -1
  103. package/lib/notification/NotificationService.d.ts.map +1 -1
  104. package/lib/user/UserService.d.ts +1 -3
  105. package/lib/user/UserService.d.ts.map +1 -1
  106. package/lib/user/UserService.js +7 -5
  107. package/package.json +3 -3
  108. package/lib/mls/EventHandler/ConversationEvent/ConversationEvent.d.ts.map +0 -1
  109. package/lib/mls/EventHandler/ConversationEvent/events/index.d.ts.map +0 -1
  110. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/index.d.ts.map +0 -1
  111. package/lib/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.d.ts.map +0 -1
  112. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.d.ts.map +0 -1
  113. package/lib/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.d.ts.map +0 -1
  114. package/lib/mls/EventHandler/ConversationEvent/index.d.ts.map +0 -1
  115. package/lib/mls/EventHandler/EventHandler.d.ts.map +0 -1
  116. package/lib/mls/EventHandler/EventHandler.types.d.ts.map +0 -1
  117. package/lib/mls/EventHandler/index.d.ts.map +0 -1
  118. package/lib/mls/MLSService/MLSService.d.ts.map +0 -1
  119. package/lib/mls/MLSService/commitBundleUtil.d.ts.map +0 -1
  120. package/lib/mls/MLSService/index.d.ts.map +0 -1
  121. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/index.d.ts.map +0 -1
  122. package/lib/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.d.ts.map +0 -1
  123. package/lib/mls/MLSService/stores/pendingProposalsStore/index.d.ts.map +0 -1
  124. package/lib/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.d.ts.map +0 -1
  125. package/lib/mls/MLSService/stores/stores.mock.d.ts.map +0 -1
  126. package/lib/mls/index.d.ts +0 -2
  127. package/lib/mls/index.d.ts.map +0 -1
  128. package/lib/mls/types.d.ts.map +0 -1
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /*
3
+ * Wire
4
+ * Copyright (C) 2022 Wire Swiss GmbH
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program. If not, see http://www.gnu.org/licenses/.
18
+ *
19
+ */
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.extractUserIds = exports.extractQualifiedUserIds = void 0;
22
+ const util_1 = require("../../../../util");
23
+ const extractUserIds = ({ userIds }) => {
24
+ if ((0, util_1.isUserClients)(userIds)) {
25
+ return Object.keys(userIds);
26
+ }
27
+ return userIds;
28
+ };
29
+ exports.extractUserIds = extractUserIds;
30
+ const extractQualifiedUserIds = ({ userIds }) => {
31
+ if ((0, util_1.isQualifiedUserClients)(userIds)) {
32
+ return Object.entries(userIds).reduce((ids, [domain, userClients]) => {
33
+ return ids.concat(Object.keys(userClients).map(userId => ({ domain, id: userId })));
34
+ }, []);
35
+ }
36
+ return userIds;
37
+ };
38
+ exports.extractQualifiedUserIds = extractQualifiedUserIds;
@@ -0,0 +1,35 @@
1
+ import { APIClient } from '@wireapp/api-client/lib/APIClient';
2
+ import { QualifiedUserClients, UserClients } from '@wireapp/api-client/lib/conversation';
3
+ import { QualifiedId, QualifiedUserPreKeyBundleMap, UserPreKeyBundleMap } from '@wireapp/api-client/lib/user';
4
+ import { GenericMessage } from '@wireapp/protocol-messaging';
5
+ import { MessageSendingOptions } from '../../../../conversation';
6
+ export declare type FederatedMessageParams = {
7
+ federated: true;
8
+ sendingClientId: string;
9
+ recipients: QualifiedUserClients | QualifiedUserPreKeyBundleMap;
10
+ plainText: Uint8Array;
11
+ options: {
12
+ conversationId: QualifiedId;
13
+ nativePush: boolean | undefined;
14
+ reportMissing: boolean | QualifiedId[] | undefined;
15
+ };
16
+ };
17
+ export declare type MessageParams = Omit<FederatedMessageParams, 'recipients' | 'options' | 'federated'> & {
18
+ federated: false;
19
+ recipients: UserClients | UserPreKeyBundleMap;
20
+ options: Omit<FederatedMessageParams['options'], 'reportMissing'> & {
21
+ reportMissing: boolean | string[] | undefined;
22
+ };
23
+ };
24
+ interface GetGenericMessageParamsParams {
25
+ sendingClientId: string;
26
+ conversationId: QualifiedId;
27
+ genericMessage: GenericMessage;
28
+ options: MessageSendingOptions;
29
+ useQualifiedIds: boolean;
30
+ apiClient: APIClient;
31
+ }
32
+ declare type GetGenericMessageParamsReturnType = Promise<MessageParams | FederatedMessageParams>;
33
+ declare const getGenericMessageParams: ({ sendingClientId, conversationId, genericMessage, options: { targetMode, userIds, nativePush }, useQualifiedIds, apiClient, }: GetGenericMessageParamsParams) => GetGenericMessageParamsReturnType;
34
+ export { getGenericMessageParams };
35
+ //# sourceMappingURL=getGenericMessageParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGenericMessageParams.d.ts","sourceRoot":"","sources":["../../../../../src/messagingProtocols/proteus/ProteusService/Utility/getGenericMessageParams.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAC,oBAAoB,EAAE,WAAW,EAAC,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAC,WAAW,EAAE,4BAA4B,EAAE,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AAE5G,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAK3D,OAAO,EAAoB,qBAAqB,EAAC,MAAM,0BAA0B,CAAC;AAGlF,oBAAY,sBAAsB,GAAG;IACnC,SAAS,EAAE,IAAI,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,oBAAoB,GAAG,4BAA4B,CAAC;IAChE,SAAS,EAAE,UAAU,CAAC;IACtB,OAAO,EAAE;QACP,cAAc,EAAE,WAAW,CAAC;QAC5B,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;QAChC,aAAa,EAAE,OAAO,GAAG,WAAW,EAAE,GAAG,SAAS,CAAC;KACpD,CAAC;CACH,CAAC;AACF,oBAAY,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC,GAAG;IACjG,SAAS,EAAE,KAAK,CAAC;IACjB,UAAU,EAAE,WAAW,GAAG,mBAAmB,CAAC;IAC9C,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE,eAAe,CAAC,GAAG;QAClE,aAAa,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;KAC/C,CAAC;CACH,CAAC;AACF,UAAU,6BAA6B;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,WAAW,CAAC;IAC5B,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;CACtB;AACD,aAAK,iCAAiC,GAAG,OAAO,CAAC,aAAa,GAAG,sBAAsB,CAAC,CAAC;AAEzF,QAAA,MAAM,uBAAuB,mIAO1B,6BAA6B,sCAyD/B,CAAC;AAEF,OAAO,EAAC,uBAAuB,EAAC,CAAC"}
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ /*
3
+ * Wire
4
+ * Copyright (C) 2022 Wire Swiss GmbH
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program. If not, see http://www.gnu.org/licenses/.
18
+ *
19
+ */
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.getGenericMessageParams = void 0;
22
+ const protocol_messaging_1 = require("@wireapp/protocol-messaging");
23
+ const Recipients_1 = require("./Recipients");
24
+ const UserIds_1 = require("./UserIds");
25
+ const conversation_1 = require("../../../../conversation");
26
+ const util_1 = require("../../../../util");
27
+ const getGenericMessageParams = async ({ sendingClientId, conversationId, genericMessage, options: { targetMode = conversation_1.MessageTargetMode.NONE, userIds, nativePush }, useQualifiedIds, apiClient, }) => {
28
+ const plainText = protocol_messaging_1.GenericMessage.encode(genericMessage).finish();
29
+ if (targetMode !== conversation_1.MessageTargetMode.NONE && !userIds) {
30
+ throw new Error('Cannot send targetted message when no userIds are given');
31
+ }
32
+ if (conversationId.domain && useQualifiedIds) {
33
+ if ((0, util_1.isStringArray)(userIds) || (0, util_1.isUserClients)(userIds)) {
34
+ throw new Error('Invalid userIds option for sending to federated backend');
35
+ }
36
+ const recipients = await (0, Recipients_1.getQualifiedRecipientsForConversation)({ apiClient, conversationId, userIds });
37
+ let reportMissing;
38
+ if (targetMode === conversation_1.MessageTargetMode.NONE) {
39
+ reportMissing = (0, util_1.isQualifiedUserClients)(userIds); // we want to check mismatch in case the consumer gave an exact list of users/devices
40
+ }
41
+ else if (targetMode === conversation_1.MessageTargetMode.USERS) {
42
+ reportMissing = (0, UserIds_1.extractQualifiedUserIds)({ userIds });
43
+ }
44
+ else {
45
+ // in case the message is fully targetted at user/client pairs, we do not want to report the missing clients or users at all
46
+ reportMissing = false;
47
+ }
48
+ return {
49
+ federated: true,
50
+ sendingClientId,
51
+ recipients,
52
+ plainText,
53
+ options: {
54
+ conversationId,
55
+ nativePush,
56
+ reportMissing,
57
+ },
58
+ };
59
+ }
60
+ if ((0, util_1.isQualifiedIdArray)(userIds) || (0, util_1.isQualifiedUserClients)(userIds)) {
61
+ throw new Error('Invalid userIds option for sending');
62
+ }
63
+ const recipients = await (0, Recipients_1.getRecipientsForConversation)({ apiClient, conversationId, userIds });
64
+ let reportMissing;
65
+ if (targetMode === conversation_1.MessageTargetMode.NONE) {
66
+ reportMissing = (0, util_1.isUserClients)(userIds); // we want to check mismatch in case the consumer gave an exact list of users/devices
67
+ }
68
+ else if (targetMode === conversation_1.MessageTargetMode.USERS) {
69
+ reportMissing = (0, UserIds_1.extractUserIds)({ userIds });
70
+ }
71
+ else {
72
+ // in case the message is fully targetted at user/client pairs, we do not want to report the missing clients or users at all
73
+ reportMissing = false;
74
+ }
75
+ return {
76
+ federated: false,
77
+ sendingClientId,
78
+ recipients,
79
+ plainText,
80
+ options: {
81
+ conversationId,
82
+ nativePush,
83
+ reportMissing,
84
+ },
85
+ };
86
+ };
87
+ exports.getGenericMessageParams = getGenericMessageParams;
@@ -0,0 +1,5 @@
1
+ export * from './PreKeyBundle';
2
+ export * from '../../../../conversation/ConversationService/Utility/getConversationQualifiedMembers';
3
+ export * from './UserIds';
4
+ export * from './Recipients';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/messagingProtocols/proteus/ProteusService/Utility/index.ts"],"names":[],"mappings":"AAmBA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sFAAsF,CAAC;AACrG,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /*
3
+ * Wire
4
+ * Copyright (C) 2022 Wire Swiss GmbH
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program. If not, see http://www.gnu.org/licenses/.
18
+ *
19
+ */
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ __exportStar(require("./PreKeyBundle"), exports);
36
+ __exportStar(require("../../../../conversation/ConversationService/Utility/getConversationQualifiedMembers"), exports);
37
+ __exportStar(require("./UserIds"), exports);
38
+ __exportStar(require("./Recipients"), exports);
@@ -0,0 +1,4 @@
1
+ export * from './ProteusService';
2
+ export * from './Utility';
3
+ export * from './Utility/getGenericMessageParams';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/messagingProtocols/proteus/ProteusService/index.ts"],"names":[],"mappings":"AAmBA,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /*
3
+ * Wire
4
+ * Copyright (C) 2022 Wire Swiss GmbH
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program. If not, see http://www.gnu.org/licenses/.
18
+ *
19
+ */
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ __exportStar(require("./ProteusService"), exports);
36
+ __exportStar(require("./Utility"), exports);
37
+ __exportStar(require("./Utility/getGenericMessageParams"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './ProteusService';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messagingProtocols/proteus/index.ts"],"names":[],"mappings":"AAmBA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /*
3
+ * Wire
4
+ * Copyright (C) 2022 Wire Swiss GmbH
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation, either version 3 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program. If not, see http://www.gnu.org/licenses/.
18
+ *
19
+ */
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ __exportStar(require("./ProteusService"), exports);
@@ -9,7 +9,7 @@ import { CRUDEngine } from '@wireapp/store-engine';
9
9
  import { PayloadBundle, PayloadBundleSource } from '../conversation';
10
10
  import { NotificationError } from '../CoreError';
11
11
  import { CryptographyService } from '../cryptography';
12
- import { MLSService } from '../mls';
12
+ import { MLSService } from '../messagingProtocols/mls';
13
13
  export declare type HandledEventPayload = {
14
14
  event: Events.BackendEvent;
15
15
  mappedEvent?: PayloadBundle;
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationService.d.ts","sourceRoot":"","sources":["../../src/notification/NotificationService.ts"],"names":[],"mappings":";AAmBA,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAGzD,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AAEpC,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAC,UAAU,EAA4B,MAAM,uBAAuB,CAAC;AAK5E,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAoB,MAAM,iBAAiB,CAAC;AAGtF,OAAO,EAAY,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,mBAAmB,EAAkB,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAGlC,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,aAAa,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CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;IAIpD,gBAAgB,CAAC,SAAS,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBhD,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAItE,yBAAyB,CACpC,mBAAmB,EAAE,mBAAmB,EACxC,qBAAqB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,EACvD,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC;IAoC3D;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAYT,kBAAkB,CAC9B,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,mBAAmB,EAC3B,MAAM,GAAE,OAAe,GACtB,cAAc,CAAC,mBAAmB,CAAC;IAsCtC,OAAO,CAAC,oBAAoB;IAmB5B;;;;;;OAMG;YACW,WAAW;CA2D1B"}
@@ -2,13 +2,11 @@ import { QualifiedId, User } from '@wireapp/api-client/lib/user/';
2
2
  import { APIClient } from '@wireapp/api-client';
3
3
  import { AvailabilityType, BroadcastService } from '../broadcast/';
4
4
  import { ConnectionService } from '../connection';
5
- import { ConversationService } from '../conversation';
6
5
  export declare class UserService {
7
6
  private readonly apiClient;
8
7
  private readonly broadcastService;
9
8
  private readonly connectionService;
10
- private readonly conversationService;
11
- constructor(apiClient: APIClient, broadcastService: BroadcastService, conversationService: ConversationService, connectionService: ConnectionService);
9
+ constructor(apiClient: APIClient, broadcastService: BroadcastService, connectionService: ConnectionService);
12
10
  getUser(userId: string | QualifiedId): Promise<User>;
13
11
  getUsers(userIds: string[] | QualifiedId[]): Promise<User[]>;
14
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../src/user/UserService.ts"],"names":[],"mappings":"AAoBA,OAAO,E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AAe,CAAC;AAIhD,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;IACpD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;gBAE1C,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB;IAMnG,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IASzE;;;;;;OAMG;IACU,eAAe,CAC1B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,gBAAgB,EACtB,EAAC,OAAe,EAAE,cAAsB,EAAC;;;KAAK,GAC7C,OAAO,CAAC,IAAI,CAAC;CAuCjB"}
@@ -22,13 +22,13 @@ exports.UserService = void 0;
22
22
  const connection_1 = require("@wireapp/api-client/lib/connection");
23
23
  const uuidjs_1 = require("uuidjs");
24
24
  const protocol_messaging_1 = require("@wireapp/protocol-messaging");
25
+ const proteus_1 = require("../messagingProtocols/proteus");
25
26
  const TypePredicateUtil_1 = require("../util/TypePredicateUtil");
26
27
  class UserService {
27
- constructor(apiClient, broadcastService, conversationService, connectionService) {
28
+ constructor(apiClient, broadcastService, connectionService) {
28
29
  this.apiClient = apiClient;
29
30
  this.broadcastService = broadcastService;
30
31
  this.connectionService = connectionService;
31
- this.conversationService = conversationService;
32
32
  }
33
33
  getUser(userId) {
34
34
  return this.apiClient.api.user.getUser(userId);
@@ -59,9 +59,11 @@ class UserService {
59
59
  userId: connection.to,
60
60
  conversationId: connection.conversation,
61
61
  };
62
- return this.conversationService.getPreKeyBundleMap({ id: mappedConnection.conversationId, domain: '' }, [
63
- mappedConnection.userId,
64
- ]);
62
+ return (0, proteus_1.getPreKeyBundleMap)({
63
+ apiClient: this.apiClient,
64
+ conversationId: { id: mappedConnection.conversationId, domain: '' },
65
+ userIds: [mappedConnection.userId],
66
+ });
65
67
  });
66
68
  const preKeyBundlesFromConnections = await Promise.all(preKeyBundlePromises);
67
69
  // Merge pre-key bundles
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "./lib/cryptography/AssetCryptography/crypto.node": "./lib/cryptography/AssetCryptography/crypto.browser.js"
12
12
  },
13
13
  "dependencies": {
14
- "@wireapp/api-client": "^22.4.0",
14
+ "@wireapp/api-client": "^22.5.0",
15
15
  "@wireapp/commons": "^5.0.3",
16
16
  "@wireapp/core-crypto": "0.6.0-pre.4",
17
17
  "@wireapp/cryptobox": "12.8.0",
@@ -58,6 +58,6 @@
58
58
  "test:coverage": "jest --coverage",
59
59
  "watch": "tsc --watch"
60
60
  },
61
- "version": "36.4.4",
62
- "gitHead": "c96f21b129bad3f8442e559239034a6da96f81fe"
61
+ "version": "36.6.0",
62
+ "gitHead": "505b8aac71cc49dbf316348f932070aa4c1801e9"
63
63
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConversationEvent.d.ts","sourceRoot":"","sources":["../../../../src/mls/EventHandler/ConversationEvent/ConversationEvent.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,IAAI,CAAC;AAI1D,QAAA,MAAM,uBAAuB,WAAkB,kBAAkB,uBAQhE,CAAC;AAEF,OAAO,EAAC,uBAAuB,EAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mls/EventHandler/ConversationEvent/events/index.ts"],"names":[],"mappings":"AAmBA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/mls/EventHandler/ConversationEvent/events/messageAdd/index.ts"],"names":[],"mappings":"AAmBA,cAAc,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"messageAdd.d.ts","sourceRoot":"","sources":["../../../../../../src/mls/EventHandler/ConversationEvent/events/messageAdd/messageAdd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAE,8BAA8B,EAAqB,MAAM,+BAA+B,CAAC;AAE/G,OAAO,OAAO,MAAM,SAAS,CAAC;AAK9B,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AAEnF,QAAA,MAAM,oBAAoB,UAAW,YAAY,4CACE,CAAC;AAEpD,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,KAAK,EAAE,8BAA8B,CAAC;IACtC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;CACxB;AACD,QAAA,MAAM,mBAAmB,kCAAuC,yBAAyB,uBAgDxF,CAAC;AAEF,OAAO,EAAC,oBAAoB,EAAE,mBAAmB,EAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/mls/EventHandler/ConversationEvent/events/welcomeMessage/index.ts"],"names":[],"mappings":"AAmBA,cAAc,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"welcomeMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/mls/EventHandler/ConversationEvent/events/welcomeMessage/welcomeMessage.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAE,2BAA2B,EAAqB,MAAM,+BAA+B,CAAC;AAG5G,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AAEnF,QAAA,MAAM,qBAAqB,UAAW,YAAY,yCACK,CAAC;AAExD,UAAU,0BAA2B,SAAQ,kBAAkB;IAC7D,KAAK,EAAE,2BAA2B,CAAC;CACpC;AACD,QAAA,MAAM,oBAAoB,0BAA+B,0BAA0B,uBASlF,CAAC;AAEF,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mls/EventHandler/ConversationEvent/index.ts"],"names":[],"mappings":"AAmBA,cAAc,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventHandler.d.ts","sourceRoot":"","sources":["../../../src/mls/EventHandler/EventHandler.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAE5E,QAAA,MAAM,kBAAkB,WAAkB,kBAAkB,uBAAwD,CAAC;AAErH,OAAO,EAAC,kBAAkB,EAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventHandler.types.d.ts","sourceRoot":"","sources":["../../../src/mls/EventHandler/EventHandler.types.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAC,CAAC;AAC3C,oBAAY,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;AACrE,oBAAY,kBAAkB,GAAG;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mls/EventHandler/index.ts"],"names":[],"mappings":"AAmBA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MLSService.d.ts","source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;OAGG;IACI,uBAAuB,CAAC,OAAO,EAAE,MAAM;IAK9C;;;OAGG;IACI,0BAA0B,CAAC,OAAO,EAAE,MAAM;IAUjD;;;OAGG;IACI,0BAA0B;IASjC;;;OAGG;IACI,8BAA8B;YAQvB,eAAe;IAmB7B;;;;;OAKG;IACU,mBAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM;IAM3D,oBAAoB,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,MAAM;IAOhE,gBAAgB,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/D,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,GAAG,kBAAkB;IAI/F;;;;;OAKG;IACU,4BAA4B,CAAC,uBAAuB,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhG;;;;;;;OAOG;IACU,sBAAsB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAC,EAAE,4BAA4B;IAoBjG;;;;;OAKG;IACU,sBAAsB,CAAC,EAAC,OAAO,EAAE,UAAkB,EAAC,EAAE,4BAA4B;IAa/F;;;;OAIG;IACU,6BAA6B;CAgB3C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"commitBundleUtil.d.ts","sourceRoot":"","sources":["../../../src/mls/MLSService/commitBundleUtil.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,YAAY,EAAkD,MAAM,sBAAsB,CAAC;AAYnG;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAC,EAAE,YAAY,GAAG,UAAU,CAWpG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mls/MLSService/index.ts"],"names":[],"mappings":"AAmBA,cAAc,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mls/MLSService/stores/keyMaterialUpdatesStore/index.ts"],"names":[],"mappings":"AAmBA,cAAc,2BAA2B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyMaterialUpdatesStore.d.ts","sourceRoot":"","sources":["../../../../../src/mls/MLSService/stores/keyMaterialUpdatesStore/keyMaterialUpdatesStore.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,oBAAY,2BAA2B,GAAG,SAAS,CAAC;AACpD,MAAM,WAAW,uBAAuB;IACtC,CAAC,OAAO,EAAE,MAAM,GAAG,2BAA2B,CAAC;CAChD;AA+BD,eAAO,MAAM,uBAAuB;6BAnBN,2BAA2B,EAAE;kDAKR,2BAA2B;mDAM1B,SAAS;CAY5D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mls/MLSService/stores/pendingProposalsStore/index.ts"],"names":[],"mappings":"AAmBA,cAAc,yBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pendingProposalsStore.d.ts","sourceRoot":"","sources":["../../../../../src/mls/MLSService/stores/pendingProposalsStore/pendingProposalsStore.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,oBAAY,sBAAsB,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,SAAS,CAAC;AAmCd,eAAO,MAAM,qBAAqB;uBAnBV,sBAAsB,EAAE;yCAKN,sBAAsB;8BAMjC,SAAS;CAYvC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores.mock.d.ts","sourceRoot":"","sources":["../../../../src/mls/MLSService/stores/stores.mock.ts"],"names":[],"mappings":"AAmBA,iBAAS,WAAW;mBAIQ,GAAG,SAAS,GAAG;mBAGf,GAAG;sBAGA,GAAG;;aAMZ,GAAG;EAKxB;AAED,OAAO,EAAC,WAAW,EAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './MLSService';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mls/index.ts"],"names":[],"mappings":"AAmBA,cAAc,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/mls/types.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AAEzD,aAAK,YAAY,CAAC,CAAC,IAAI;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,mBAAmB,EAAE,WAAW,GAAG,eAAe,CAAC;IAC5F;;;;;OAKG;IACH,yBAAyB,EAAE,CAAC,cAAc,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACzF;AAED,oBAAY,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,SAAS,CAAC;AAEd,oBAAY,4BAA4B,GAAG;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,GAAG;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAE/B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC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