@wireapp/api-client 19.14.1 → 19.15.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [19.15.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/api-client/compare/@wireapp/api-client@19.14.1...@wireapp/api-client@19.15.0) (2022-07-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * Decrypt incoming MLS messages ([#4315](https://github.com/wireapp/wire-web-packages/tree/main/packages/api-client/issues/4315)) ([c93b0ae](https://github.com/wireapp/wire-web-packages/tree/main/packages/api-client/commit/c93b0aea0a43f5eef204d5a20ca047215d6998d6))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [19.14.1](https://github.com/wireapp/wire-web-packages/tree/main/packages/api-client/compare/@wireapp/api-client@19.14.0...@wireapp/api-client@19.14.1) (2022-07-15)
7
18
 
8
19
  **Note:** Version bump only for package @wireapp/api-client
package/package.json CHANGED
@@ -90,6 +90,6 @@
90
90
  "test:types": "tsc --noEmit",
91
91
  "watch": "webpack serve --config webpack.browser.js"
92
92
  },
93
- "version": "19.14.1",
94
- "gitHead": "bbe98e85b48966ae66bb4439f6560d0920368063"
93
+ "version": "19.15.0",
94
+ "gitHead": "9d06dbf709b35ec4c5d0f3e2aa3b2fdd370da607"
95
95
  }
@@ -0,0 +1,2 @@
1
+ /** Base 64 encoded string representing the encrypted content of the message */
2
+ export declare type ConversationMLSMessageAddData = string;
@@ -0,0 +1,21 @@
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
+ //# sourceMappingURL=ConversationMLSMessageAddData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationMLSMessageAddData.js","sourceRoot":"","sources":["ConversationMLSMessageAddData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -0,0 +1,2 @@
1
+ /** Base 64 encoded string representing the encrypted content of the message */
2
+ export declare type ConversationMLSWelcomeData = string;
@@ -0,0 +1,21 @@
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
+ //# sourceMappingURL=ConversationMLSWelcomeData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationMLSWelcomeData.js","sourceRoot":"","sources":["ConversationMLSWelcomeData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -9,6 +9,8 @@ export * from './ConversationMemberUpdateData';
9
9
  export * from './ConversationMessageTimerUpdateData';
10
10
  export * from './ConversationNameUpdateData';
11
11
  export * from './ConversationOtrMessageAddData';
12
+ export * from './ConversationMLSWelcomeData';
13
+ export * from './ConversationMLSMessageAddData';
12
14
  export * from './ConversationReceiptModeUpdateData';
13
15
  export * from './ConversationRenameData';
14
16
  export * from './ConversationTypingData';
@@ -39,6 +39,8 @@ __exportStar(require("./ConversationMemberUpdateData"), exports);
39
39
  __exportStar(require("./ConversationMessageTimerUpdateData"), exports);
40
40
  __exportStar(require("./ConversationNameUpdateData"), exports);
41
41
  __exportStar(require("./ConversationOtrMessageAddData"), exports);
42
+ __exportStar(require("./ConversationMLSWelcomeData"), exports);
43
+ __exportStar(require("./ConversationMLSMessageAddData"), exports);
42
44
  __exportStar(require("./ConversationReceiptModeUpdateData"), exports);
43
45
  __exportStar(require("./ConversationRenameData"), exports);
44
46
  __exportStar(require("./ConversationTypingData"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,iEAA+C;AAC/C,+DAA6C;AAC7C,mEAAiD;AACjD,2DAAyC;AACzC,yDAAuC;AACvC,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,+DAA6C;AAC7C,kEAAgD;AAChD,sEAAoD;AACpD,2DAAyC;AACzC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,iEAA+C;AAC/C,+DAA6C;AAC7C,mEAAiD;AACjD,2DAAyC;AACzC,yDAAuC;AACvC,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,kEAAgD;AAChD,sEAAoD;AACpD,2DAAyC;AACzC,2DAAyC"}
@@ -1,4 +1,4 @@
1
- import type { ConversationAccessUpdateData, ConversationCodeUpdateData, ConversationConnectRequestData, ConversationCreateData, ConversationMemberJoinData, ConversationMemberLeaveData, ConversationMemberUpdateData, ConversationMessageTimerUpdateData, ConversationOtrMessageAddData, ConversationReceiptModeUpdateData, ConversationRenameData, ConversationTypingData } from '../conversation/data/';
1
+ import type { ConversationAccessUpdateData, ConversationCodeUpdateData, ConversationConnectRequestData, ConversationCreateData, ConversationMemberJoinData, ConversationMemberLeaveData, ConversationMemberUpdateData, ConversationMessageTimerUpdateData, ConversationOtrMessageAddData, ConversationReceiptModeUpdateData, ConversationRenameData, ConversationTypingData, ConversationMLSWelcomeData, ConversationMLSMessageAddData } from '../conversation/data/';
2
2
  import { QualifiedId } from '../user';
3
3
  export declare enum CONVERSATION_EVENT {
4
4
  ACCESS_UPDATE = "conversation.access-update",
@@ -12,12 +12,14 @@ export declare enum CONVERSATION_EVENT {
12
12
  MEMBER_UPDATE = "conversation.member-update",
13
13
  MESSAGE_TIMER_UPDATE = "conversation.message-timer-update",
14
14
  OTR_MESSAGE_ADD = "conversation.otr-message-add",
15
+ MLS_MESSAGE_ADD = "conversation.mls-message-add",
16
+ MLS_WELCOME_MESSAGE = "conversation.mls-welcome",
15
17
  RECEIPT_MODE_UPDATE = "conversation.receipt-mode-update",
16
18
  RENAME = "conversation.rename",
17
19
  TYPING = "conversation.typing"
18
20
  }
19
- export declare type ConversationEventData = ConversationAccessUpdateData | ConversationCodeUpdateData | ConversationConnectRequestData | ConversationCreateData | ConversationMemberJoinData | ConversationMemberLeaveData | ConversationMemberUpdateData | ConversationMessageTimerUpdateData | ConversationOtrMessageAddData | ConversationReceiptModeUpdateData | ConversationRenameData | ConversationTypingData | null;
20
- export declare type ConversationEvent = ConversationAccessUpdateEvent | ConversationCodeDeleteEvent | ConversationConnectRequestEvent | ConversationCreateEvent | ConversationDeleteEvent | ConversationMemberJoinEvent | ConversationMemberLeaveEvent | ConversationMemberUpdateEvent | ConversationMessageTimerUpdateEvent | ConversationOtrMessageAddEvent | ConversationReceiptModeUpdateEvent | ConversationRenameEvent | ConversationTypingEvent;
21
+ export declare type ConversationEventData = ConversationAccessUpdateData | ConversationCodeUpdateData | ConversationConnectRequestData | ConversationCreateData | ConversationMemberJoinData | ConversationMemberLeaveData | ConversationMemberUpdateData | ConversationMessageTimerUpdateData | ConversationOtrMessageAddData | ConversationMLSWelcomeData | ConversationMLSMessageAddData | ConversationReceiptModeUpdateData | ConversationRenameData | ConversationTypingData | null;
22
+ export declare type ConversationEvent = ConversationAccessUpdateEvent | ConversationCodeDeleteEvent | ConversationConnectRequestEvent | ConversationCreateEvent | ConversationDeleteEvent | ConversationMemberJoinEvent | ConversationMemberLeaveEvent | ConversationMemberUpdateEvent | ConversationMessageTimerUpdateEvent | ConversationOtrMessageAddEvent | ConversationMLSMessageAddEvent | ConversationMLSWelcomeEvent | ConversationReceiptModeUpdateEvent | ConversationRenameEvent | ConversationTypingEvent;
21
23
  export interface BaseConversationEvent {
22
24
  conversation: string;
23
25
  data: ConversationEventData;
@@ -72,6 +74,14 @@ export interface ConversationOtrMessageAddEvent extends BaseConversationEvent {
72
74
  data: ConversationOtrMessageAddData;
73
75
  type: CONVERSATION_EVENT.OTR_MESSAGE_ADD;
74
76
  }
77
+ export interface ConversationMLSMessageAddEvent extends BaseConversationEvent {
78
+ data: ConversationMLSMessageAddData;
79
+ type: CONVERSATION_EVENT.MLS_MESSAGE_ADD;
80
+ }
81
+ export interface ConversationMLSWelcomeEvent extends BaseConversationEvent {
82
+ data: ConversationMLSWelcomeData;
83
+ type: CONVERSATION_EVENT.MLS_WELCOME_MESSAGE;
84
+ }
75
85
  export interface ConversationReceiptModeUpdateEvent extends BaseConversationEvent {
76
86
  data: ConversationReceiptModeUpdateData;
77
87
  type: CONVERSATION_EVENT.RECEIPT_MODE_UPDATE;
@@ -32,6 +32,8 @@ var CONVERSATION_EVENT;
32
32
  CONVERSATION_EVENT["MEMBER_UPDATE"] = "conversation.member-update";
33
33
  CONVERSATION_EVENT["MESSAGE_TIMER_UPDATE"] = "conversation.message-timer-update";
34
34
  CONVERSATION_EVENT["OTR_MESSAGE_ADD"] = "conversation.otr-message-add";
35
+ CONVERSATION_EVENT["MLS_MESSAGE_ADD"] = "conversation.mls-message-add";
36
+ CONVERSATION_EVENT["MLS_WELCOME_MESSAGE"] = "conversation.mls-welcome";
35
37
  CONVERSATION_EVENT["RECEIPT_MODE_UPDATE"] = "conversation.receipt-mode-update";
36
38
  CONVERSATION_EVENT["RENAME"] = "conversation.rename";
37
39
  CONVERSATION_EVENT["TYPING"] = "conversation.typing";
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationEvent.js","sourceRoot":"","sources":["ConversationEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAkBH,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAC5B,kEAA4C,CAAA;IAC5C,8DAAwC,CAAA;IACxC,8DAAwC,CAAA;IACxC,sEAAgD,CAAA;IAChD,oDAA8B,CAAA;IAC9B,oDAA8B,CAAA;IAC9B,8DAAwC,CAAA;IACxC,gEAA0C,CAAA;IAC1C,kEAA4C,CAAA;IAC5C,gFAA0D,CAAA;IAC1D,sEAAgD,CAAA;IAChD,8EAAwD,CAAA;IACxD,oDAA8B,CAAA;IAC9B,oDAA8B,CAAA;AAChC,CAAC,EAfW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAe7B"}
1
+ {"version":3,"file":"ConversationEvent.js","sourceRoot":"","sources":["ConversationEvent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAoBH,IAAY,kBAiBX;AAjBD,WAAY,kBAAkB;IAC5B,kEAA4C,CAAA;IAC5C,8DAAwC,CAAA;IACxC,8DAAwC,CAAA;IACxC,sEAAgD,CAAA;IAChD,oDAA8B,CAAA;IAC9B,oDAA8B,CAAA;IAC9B,8DAAwC,CAAA;IACxC,gEAA0C,CAAA;IAC1C,kEAA4C,CAAA;IAC5C,gFAA0D,CAAA;IAC1D,sEAAgD,CAAA;IAChD,sEAAgD,CAAA;IAChD,sEAAgD,CAAA;IAChD,8EAAwD,CAAA;IACxD,oDAA8B,CAAA;IAC9B,oDAA8B,CAAA;AAChC,CAAC,EAjBW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAiB7B"}