@wireapp/protocol-messaging 1.39.0 → 1.41.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/package.json +10 -11
- package/web/messages.d.ts +38 -0
- package/web/messages.js +1247 -473
- package/web/mls.d.ts +3 -0
- package/web/mls.js +71 -23
- package/web/otr.d.ts +15 -0
- package/web/otr.js +376 -121
package/web/mls.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as $protobuf from "protobufjs";
|
|
2
|
+
import Long = require("long");
|
|
2
3
|
export namespace mls {
|
|
3
4
|
|
|
4
5
|
enum GroupInfoType {
|
|
@@ -33,6 +34,7 @@ export namespace mls {
|
|
|
33
34
|
public static fromObject(object: { [k: string]: any }): mls.GroupInfoBundle;
|
|
34
35
|
public static toObject(message: mls.GroupInfoBundle, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
35
36
|
public toJSON(): { [k: string]: any };
|
|
37
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
interface ICommitBundle {
|
|
@@ -55,5 +57,6 @@ export namespace mls {
|
|
|
55
57
|
public static fromObject(object: { [k: string]: any }): mls.CommitBundle;
|
|
56
58
|
public static toObject(message: mls.CommitBundle, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
57
59
|
public toJSON(): { [k: string]: any };
|
|
60
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
58
61
|
}
|
|
59
62
|
}
|
package/web/mls.js
CHANGED
|
@@ -161,15 +161,18 @@ $root.mls = (function() {
|
|
|
161
161
|
while (reader.pos < end) {
|
|
162
162
|
var tag = reader.uint32();
|
|
163
163
|
switch (tag >>> 3) {
|
|
164
|
-
case 1:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
164
|
+
case 1: {
|
|
165
|
+
message.groupInfoType = reader.int32();
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
case 2: {
|
|
169
|
+
message.ratchetTreeType = reader.int32();
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
case 3: {
|
|
173
|
+
message.groupInfo = reader.bytes();
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
173
176
|
default:
|
|
174
177
|
reader.skipType(tag & 7);
|
|
175
178
|
break;
|
|
@@ -245,6 +248,12 @@ $root.mls = (function() {
|
|
|
245
248
|
return object;
|
|
246
249
|
var message = new $root.mls.GroupInfoBundle();
|
|
247
250
|
switch (object.groupInfoType) {
|
|
251
|
+
default:
|
|
252
|
+
if (typeof object.groupInfoType === "number") {
|
|
253
|
+
message.groupInfoType = object.groupInfoType;
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
break;
|
|
248
257
|
case "PUBLIC_GROUP_STATE":
|
|
249
258
|
case 1:
|
|
250
259
|
message.groupInfoType = 1;
|
|
@@ -259,6 +268,12 @@ $root.mls = (function() {
|
|
|
259
268
|
break;
|
|
260
269
|
}
|
|
261
270
|
switch (object.ratchetTreeType) {
|
|
271
|
+
default:
|
|
272
|
+
if (typeof object.ratchetTreeType === "number") {
|
|
273
|
+
message.ratchetTreeType = object.ratchetTreeType;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
break;
|
|
262
277
|
case "FULL":
|
|
263
278
|
case 1:
|
|
264
279
|
message.ratchetTreeType = 1;
|
|
@@ -275,7 +290,7 @@ $root.mls = (function() {
|
|
|
275
290
|
if (object.groupInfo != null)
|
|
276
291
|
if (typeof object.groupInfo === "string")
|
|
277
292
|
$util.base64.decode(object.groupInfo, message.groupInfo = $util.newBuffer($util.base64.length(object.groupInfo)), 0);
|
|
278
|
-
else if (object.groupInfo.length)
|
|
293
|
+
else if (object.groupInfo.length >= 0)
|
|
279
294
|
message.groupInfo = object.groupInfo;
|
|
280
295
|
return message;
|
|
281
296
|
};
|
|
@@ -305,9 +320,9 @@ $root.mls = (function() {
|
|
|
305
320
|
}
|
|
306
321
|
}
|
|
307
322
|
if (message.groupInfoType != null && message.hasOwnProperty("groupInfoType"))
|
|
308
|
-
object.groupInfoType = options.enums === String ? $root.mls.GroupInfoType[message.groupInfoType] : message.groupInfoType;
|
|
323
|
+
object.groupInfoType = options.enums === String ? $root.mls.GroupInfoType[message.groupInfoType] === undefined ? message.groupInfoType : $root.mls.GroupInfoType[message.groupInfoType] : message.groupInfoType;
|
|
309
324
|
if (message.ratchetTreeType != null && message.hasOwnProperty("ratchetTreeType"))
|
|
310
|
-
object.ratchetTreeType = options.enums === String ? $root.mls.RatchetTreeType[message.ratchetTreeType] : message.ratchetTreeType;
|
|
325
|
+
object.ratchetTreeType = options.enums === String ? $root.mls.RatchetTreeType[message.ratchetTreeType] === undefined ? message.ratchetTreeType : $root.mls.RatchetTreeType[message.ratchetTreeType] : message.ratchetTreeType;
|
|
311
326
|
if (message.groupInfo != null && message.hasOwnProperty("groupInfo"))
|
|
312
327
|
object.groupInfo = options.bytes === String ? $util.base64.encode(message.groupInfo, 0, message.groupInfo.length) : options.bytes === Array ? Array.prototype.slice.call(message.groupInfo) : message.groupInfo;
|
|
313
328
|
return object;
|
|
@@ -324,6 +339,21 @@ $root.mls = (function() {
|
|
|
324
339
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
325
340
|
};
|
|
326
341
|
|
|
342
|
+
/**
|
|
343
|
+
* Gets the default type url for GroupInfoBundle
|
|
344
|
+
* @function getTypeUrl
|
|
345
|
+
* @memberof mls.GroupInfoBundle
|
|
346
|
+
* @static
|
|
347
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
348
|
+
* @returns {string} The default type url
|
|
349
|
+
*/
|
|
350
|
+
GroupInfoBundle.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
351
|
+
if (typeUrlPrefix === undefined) {
|
|
352
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
353
|
+
}
|
|
354
|
+
return typeUrlPrefix + "/mls.GroupInfoBundle";
|
|
355
|
+
};
|
|
356
|
+
|
|
327
357
|
return GroupInfoBundle;
|
|
328
358
|
})();
|
|
329
359
|
|
|
@@ -439,15 +469,18 @@ $root.mls = (function() {
|
|
|
439
469
|
while (reader.pos < end) {
|
|
440
470
|
var tag = reader.uint32();
|
|
441
471
|
switch (tag >>> 3) {
|
|
442
|
-
case 1:
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
472
|
+
case 1: {
|
|
473
|
+
message.commit = reader.bytes();
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
case 2: {
|
|
477
|
+
message.welcome = reader.bytes();
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
case 3: {
|
|
481
|
+
message.groupInfoBundle = $root.mls.GroupInfoBundle.decode(reader, reader.uint32());
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
451
484
|
default:
|
|
452
485
|
reader.skipType(tag & 7);
|
|
453
486
|
break;
|
|
@@ -515,12 +548,12 @@ $root.mls = (function() {
|
|
|
515
548
|
if (object.commit != null)
|
|
516
549
|
if (typeof object.commit === "string")
|
|
517
550
|
$util.base64.decode(object.commit, message.commit = $util.newBuffer($util.base64.length(object.commit)), 0);
|
|
518
|
-
else if (object.commit.length)
|
|
551
|
+
else if (object.commit.length >= 0)
|
|
519
552
|
message.commit = object.commit;
|
|
520
553
|
if (object.welcome != null)
|
|
521
554
|
if (typeof object.welcome === "string")
|
|
522
555
|
$util.base64.decode(object.welcome, message.welcome = $util.newBuffer($util.base64.length(object.welcome)), 0);
|
|
523
|
-
else if (object.welcome.length)
|
|
556
|
+
else if (object.welcome.length >= 0)
|
|
524
557
|
message.welcome = object.welcome;
|
|
525
558
|
if (object.groupInfoBundle != null) {
|
|
526
559
|
if (typeof object.groupInfoBundle !== "object")
|
|
@@ -580,6 +613,21 @@ $root.mls = (function() {
|
|
|
580
613
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
581
614
|
};
|
|
582
615
|
|
|
616
|
+
/**
|
|
617
|
+
* Gets the default type url for CommitBundle
|
|
618
|
+
* @function getTypeUrl
|
|
619
|
+
* @memberof mls.CommitBundle
|
|
620
|
+
* @static
|
|
621
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
622
|
+
* @returns {string} The default type url
|
|
623
|
+
*/
|
|
624
|
+
CommitBundle.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
625
|
+
if (typeUrlPrefix === undefined) {
|
|
626
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
627
|
+
}
|
|
628
|
+
return typeUrlPrefix + "/mls.CommitBundle";
|
|
629
|
+
};
|
|
630
|
+
|
|
583
631
|
return CommitBundle;
|
|
584
632
|
})();
|
|
585
633
|
|
package/web/otr.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as $protobuf from "protobufjs";
|
|
2
|
+
import Long = require("long");
|
|
2
3
|
export namespace proteus {
|
|
3
4
|
|
|
4
5
|
interface IUserId {
|
|
@@ -17,6 +18,7 @@ export namespace proteus {
|
|
|
17
18
|
public static fromObject(object: { [k: string]: any }): proteus.UserId;
|
|
18
19
|
public static toObject(message: proteus.UserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19
20
|
public toJSON(): { [k: string]: any };
|
|
21
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
interface IQualifiedUserId {
|
|
@@ -37,6 +39,7 @@ export namespace proteus {
|
|
|
37
39
|
public static fromObject(object: { [k: string]: any }): proteus.QualifiedUserId;
|
|
38
40
|
public static toObject(message: proteus.QualifiedUserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
39
41
|
public toJSON(): { [k: string]: any };
|
|
42
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
interface IClientId {
|
|
@@ -55,6 +58,7 @@ export namespace proteus {
|
|
|
55
58
|
public static fromObject(object: { [k: string]: any }): proteus.ClientId;
|
|
56
59
|
public static toObject(message: proteus.ClientId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
57
60
|
public toJSON(): { [k: string]: any };
|
|
61
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
interface IClientEntry {
|
|
@@ -75,6 +79,7 @@ export namespace proteus {
|
|
|
75
79
|
public static fromObject(object: { [k: string]: any }): proteus.ClientEntry;
|
|
76
80
|
public static toObject(message: proteus.ClientEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
77
81
|
public toJSON(): { [k: string]: any };
|
|
82
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
interface IUserEntry {
|
|
@@ -95,6 +100,7 @@ export namespace proteus {
|
|
|
95
100
|
public static fromObject(object: { [k: string]: any }): proteus.UserEntry;
|
|
96
101
|
public static toObject(message: proteus.UserEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
97
102
|
public toJSON(): { [k: string]: any };
|
|
103
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
98
104
|
}
|
|
99
105
|
|
|
100
106
|
interface IQualifiedUserEntry {
|
|
@@ -115,6 +121,7 @@ export namespace proteus {
|
|
|
115
121
|
public static fromObject(object: { [k: string]: any }): proteus.QualifiedUserEntry;
|
|
116
122
|
public static toObject(message: proteus.QualifiedUserEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
117
123
|
public toJSON(): { [k: string]: any };
|
|
124
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
118
125
|
}
|
|
119
126
|
|
|
120
127
|
enum Priority {
|
|
@@ -150,6 +157,7 @@ export namespace proteus {
|
|
|
150
157
|
public static fromObject(object: { [k: string]: any }): proteus.NewOtrMessage;
|
|
151
158
|
public static toObject(message: proteus.NewOtrMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
152
159
|
public toJSON(): { [k: string]: any };
|
|
160
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
153
161
|
}
|
|
154
162
|
|
|
155
163
|
interface IQualifiedNewOtrMessage {
|
|
@@ -187,6 +195,7 @@ export namespace proteus {
|
|
|
187
195
|
public static fromObject(object: { [k: string]: any }): proteus.QualifiedNewOtrMessage;
|
|
188
196
|
public static toObject(message: proteus.QualifiedNewOtrMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
189
197
|
public toJSON(): { [k: string]: any };
|
|
198
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
190
199
|
}
|
|
191
200
|
|
|
192
201
|
interface IClientMismatchStrategy {
|
|
@@ -203,6 +212,7 @@ export namespace proteus {
|
|
|
203
212
|
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy;
|
|
204
213
|
public static toObject(message: proteus.ClientMismatchStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
205
214
|
public toJSON(): { [k: string]: any };
|
|
215
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
206
216
|
}
|
|
207
217
|
|
|
208
218
|
namespace ClientMismatchStrategy {
|
|
@@ -221,6 +231,7 @@ export namespace proteus {
|
|
|
221
231
|
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy.ReportAll;
|
|
222
232
|
public static toObject(message: proteus.ClientMismatchStrategy.ReportAll, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
223
233
|
public toJSON(): { [k: string]: any };
|
|
234
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
224
235
|
}
|
|
225
236
|
|
|
226
237
|
interface IIgnoreAll {
|
|
@@ -237,6 +248,7 @@ export namespace proteus {
|
|
|
237
248
|
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy.IgnoreAll;
|
|
238
249
|
public static toObject(message: proteus.ClientMismatchStrategy.IgnoreAll, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
239
250
|
public toJSON(): { [k: string]: any };
|
|
251
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
240
252
|
}
|
|
241
253
|
|
|
242
254
|
interface IReportOnly {
|
|
@@ -255,6 +267,7 @@ export namespace proteus {
|
|
|
255
267
|
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy.ReportOnly;
|
|
256
268
|
public static toObject(message: proteus.ClientMismatchStrategy.ReportOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
257
269
|
public toJSON(): { [k: string]: any };
|
|
270
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
258
271
|
}
|
|
259
272
|
|
|
260
273
|
interface IIgnoreOnly {
|
|
@@ -273,6 +286,7 @@ export namespace proteus {
|
|
|
273
286
|
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy.IgnoreOnly;
|
|
274
287
|
public static toObject(message: proteus.ClientMismatchStrategy.IgnoreOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
275
288
|
public toJSON(): { [k: string]: any };
|
|
289
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
276
290
|
}
|
|
277
291
|
}
|
|
278
292
|
|
|
@@ -298,5 +312,6 @@ export namespace proteus {
|
|
|
298
312
|
public static fromObject(object: { [k: string]: any }): proteus.OtrAssetMeta;
|
|
299
313
|
public static toObject(message: proteus.OtrAssetMeta, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
300
314
|
public toJSON(): { [k: string]: any };
|
|
315
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
301
316
|
}
|
|
302
317
|
}
|