@wireapp/protocol-messaging 1.38.0 → 1.40.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 +5 -4
- package/proto/mls.proto +50 -0
- package/web/messages.d.ts +38 -0
- package/web/messages.js +1247 -473
- package/web/mls.d.ts +62 -0
- package/web/mls.js +637 -0
- package/web/otr.d.ts +15 -0
- package/web/otr.js +376 -121
package/web/otr.js
CHANGED
|
@@ -109,9 +109,10 @@ $root.proteus = (function() {
|
|
|
109
109
|
while (reader.pos < end) {
|
|
110
110
|
var tag = reader.uint32();
|
|
111
111
|
switch (tag >>> 3) {
|
|
112
|
-
case 1:
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
case 1: {
|
|
113
|
+
message.uuid = reader.bytes();
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
115
116
|
default:
|
|
116
117
|
reader.skipType(tag & 7);
|
|
117
118
|
break;
|
|
@@ -169,7 +170,7 @@ $root.proteus = (function() {
|
|
|
169
170
|
if (object.uuid != null)
|
|
170
171
|
if (typeof object.uuid === "string")
|
|
171
172
|
$util.base64.decode(object.uuid, message.uuid = $util.newBuffer($util.base64.length(object.uuid)), 0);
|
|
172
|
-
else if (object.uuid.length)
|
|
173
|
+
else if (object.uuid.length >= 0)
|
|
173
174
|
message.uuid = object.uuid;
|
|
174
175
|
return message;
|
|
175
176
|
};
|
|
@@ -211,6 +212,21 @@ $root.proteus = (function() {
|
|
|
211
212
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
212
213
|
};
|
|
213
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Gets the default type url for UserId
|
|
217
|
+
* @function getTypeUrl
|
|
218
|
+
* @memberof proteus.UserId
|
|
219
|
+
* @static
|
|
220
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
221
|
+
* @returns {string} The default type url
|
|
222
|
+
*/
|
|
223
|
+
UserId.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
224
|
+
if (typeUrlPrefix === undefined) {
|
|
225
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
226
|
+
}
|
|
227
|
+
return typeUrlPrefix + "/proteus.UserId";
|
|
228
|
+
};
|
|
229
|
+
|
|
214
230
|
return UserId;
|
|
215
231
|
})();
|
|
216
232
|
|
|
@@ -315,12 +331,14 @@ $root.proteus = (function() {
|
|
|
315
331
|
while (reader.pos < end) {
|
|
316
332
|
var tag = reader.uint32();
|
|
317
333
|
switch (tag >>> 3) {
|
|
318
|
-
case 1:
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
334
|
+
case 1: {
|
|
335
|
+
message.id = reader.string();
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
case 2: {
|
|
339
|
+
message.domain = reader.string();
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
324
342
|
default:
|
|
325
343
|
reader.skipType(tag & 7);
|
|
326
344
|
break;
|
|
@@ -421,6 +439,21 @@ $root.proteus = (function() {
|
|
|
421
439
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
422
440
|
};
|
|
423
441
|
|
|
442
|
+
/**
|
|
443
|
+
* Gets the default type url for QualifiedUserId
|
|
444
|
+
* @function getTypeUrl
|
|
445
|
+
* @memberof proteus.QualifiedUserId
|
|
446
|
+
* @static
|
|
447
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
448
|
+
* @returns {string} The default type url
|
|
449
|
+
*/
|
|
450
|
+
QualifiedUserId.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
451
|
+
if (typeUrlPrefix === undefined) {
|
|
452
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
453
|
+
}
|
|
454
|
+
return typeUrlPrefix + "/proteus.QualifiedUserId";
|
|
455
|
+
};
|
|
456
|
+
|
|
424
457
|
return QualifiedUserId;
|
|
425
458
|
})();
|
|
426
459
|
|
|
@@ -515,9 +548,10 @@ $root.proteus = (function() {
|
|
|
515
548
|
while (reader.pos < end) {
|
|
516
549
|
var tag = reader.uint32();
|
|
517
550
|
switch (tag >>> 3) {
|
|
518
|
-
case 1:
|
|
519
|
-
|
|
520
|
-
|
|
551
|
+
case 1: {
|
|
552
|
+
message.client = reader.uint64();
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
521
555
|
default:
|
|
522
556
|
reader.skipType(tag & 7);
|
|
523
557
|
break;
|
|
@@ -622,6 +656,21 @@ $root.proteus = (function() {
|
|
|
622
656
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
623
657
|
};
|
|
624
658
|
|
|
659
|
+
/**
|
|
660
|
+
* Gets the default type url for ClientId
|
|
661
|
+
* @function getTypeUrl
|
|
662
|
+
* @memberof proteus.ClientId
|
|
663
|
+
* @static
|
|
664
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
665
|
+
* @returns {string} The default type url
|
|
666
|
+
*/
|
|
667
|
+
ClientId.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
668
|
+
if (typeUrlPrefix === undefined) {
|
|
669
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
670
|
+
}
|
|
671
|
+
return typeUrlPrefix + "/proteus.ClientId";
|
|
672
|
+
};
|
|
673
|
+
|
|
625
674
|
return ClientId;
|
|
626
675
|
})();
|
|
627
676
|
|
|
@@ -726,12 +775,14 @@ $root.proteus = (function() {
|
|
|
726
775
|
while (reader.pos < end) {
|
|
727
776
|
var tag = reader.uint32();
|
|
728
777
|
switch (tag >>> 3) {
|
|
729
|
-
case 1:
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
778
|
+
case 1: {
|
|
779
|
+
message.client = $root.proteus.ClientId.decode(reader, reader.uint32());
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
case 2: {
|
|
783
|
+
message.text = reader.bytes();
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
735
786
|
default:
|
|
736
787
|
reader.skipType(tag & 7);
|
|
737
788
|
break;
|
|
@@ -801,7 +852,7 @@ $root.proteus = (function() {
|
|
|
801
852
|
if (object.text != null)
|
|
802
853
|
if (typeof object.text === "string")
|
|
803
854
|
$util.base64.decode(object.text, message.text = $util.newBuffer($util.base64.length(object.text)), 0);
|
|
804
|
-
else if (object.text.length)
|
|
855
|
+
else if (object.text.length >= 0)
|
|
805
856
|
message.text = object.text;
|
|
806
857
|
return message;
|
|
807
858
|
};
|
|
@@ -847,6 +898,21 @@ $root.proteus = (function() {
|
|
|
847
898
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
848
899
|
};
|
|
849
900
|
|
|
901
|
+
/**
|
|
902
|
+
* Gets the default type url for ClientEntry
|
|
903
|
+
* @function getTypeUrl
|
|
904
|
+
* @memberof proteus.ClientEntry
|
|
905
|
+
* @static
|
|
906
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
907
|
+
* @returns {string} The default type url
|
|
908
|
+
*/
|
|
909
|
+
ClientEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
910
|
+
if (typeUrlPrefix === undefined) {
|
|
911
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
912
|
+
}
|
|
913
|
+
return typeUrlPrefix + "/proteus.ClientEntry";
|
|
914
|
+
};
|
|
915
|
+
|
|
850
916
|
return ClientEntry;
|
|
851
917
|
})();
|
|
852
918
|
|
|
@@ -954,14 +1020,16 @@ $root.proteus = (function() {
|
|
|
954
1020
|
while (reader.pos < end) {
|
|
955
1021
|
var tag = reader.uint32();
|
|
956
1022
|
switch (tag >>> 3) {
|
|
957
|
-
case 1:
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
message.clients
|
|
963
|
-
|
|
964
|
-
|
|
1023
|
+
case 1: {
|
|
1024
|
+
message.user = $root.proteus.UserId.decode(reader, reader.uint32());
|
|
1025
|
+
break;
|
|
1026
|
+
}
|
|
1027
|
+
case 2: {
|
|
1028
|
+
if (!(message.clients && message.clients.length))
|
|
1029
|
+
message.clients = [];
|
|
1030
|
+
message.clients.push($root.proteus.ClientEntry.decode(reader, reader.uint32()));
|
|
1031
|
+
break;
|
|
1032
|
+
}
|
|
965
1033
|
default:
|
|
966
1034
|
reader.skipType(tag & 7);
|
|
967
1035
|
break;
|
|
@@ -1084,6 +1152,21 @@ $root.proteus = (function() {
|
|
|
1084
1152
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1085
1153
|
};
|
|
1086
1154
|
|
|
1155
|
+
/**
|
|
1156
|
+
* Gets the default type url for UserEntry
|
|
1157
|
+
* @function getTypeUrl
|
|
1158
|
+
* @memberof proteus.UserEntry
|
|
1159
|
+
* @static
|
|
1160
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1161
|
+
* @returns {string} The default type url
|
|
1162
|
+
*/
|
|
1163
|
+
UserEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1164
|
+
if (typeUrlPrefix === undefined) {
|
|
1165
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1166
|
+
}
|
|
1167
|
+
return typeUrlPrefix + "/proteus.UserEntry";
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1087
1170
|
return UserEntry;
|
|
1088
1171
|
})();
|
|
1089
1172
|
|
|
@@ -1191,14 +1274,16 @@ $root.proteus = (function() {
|
|
|
1191
1274
|
while (reader.pos < end) {
|
|
1192
1275
|
var tag = reader.uint32();
|
|
1193
1276
|
switch (tag >>> 3) {
|
|
1194
|
-
case 1:
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
message.entries
|
|
1200
|
-
|
|
1201
|
-
|
|
1277
|
+
case 1: {
|
|
1278
|
+
message.domain = reader.string();
|
|
1279
|
+
break;
|
|
1280
|
+
}
|
|
1281
|
+
case 2: {
|
|
1282
|
+
if (!(message.entries && message.entries.length))
|
|
1283
|
+
message.entries = [];
|
|
1284
|
+
message.entries.push($root.proteus.UserEntry.decode(reader, reader.uint32()));
|
|
1285
|
+
break;
|
|
1286
|
+
}
|
|
1202
1287
|
default:
|
|
1203
1288
|
reader.skipType(tag & 7);
|
|
1204
1289
|
break;
|
|
@@ -1315,6 +1400,21 @@ $root.proteus = (function() {
|
|
|
1315
1400
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1316
1401
|
};
|
|
1317
1402
|
|
|
1403
|
+
/**
|
|
1404
|
+
* Gets the default type url for QualifiedUserEntry
|
|
1405
|
+
* @function getTypeUrl
|
|
1406
|
+
* @memberof proteus.QualifiedUserEntry
|
|
1407
|
+
* @static
|
|
1408
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1409
|
+
* @returns {string} The default type url
|
|
1410
|
+
*/
|
|
1411
|
+
QualifiedUserEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1412
|
+
if (typeUrlPrefix === undefined) {
|
|
1413
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1414
|
+
}
|
|
1415
|
+
return typeUrlPrefix + "/proteus.QualifiedUserEntry";
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1318
1418
|
return QualifiedUserEntry;
|
|
1319
1419
|
})();
|
|
1320
1420
|
|
|
@@ -1493,31 +1593,38 @@ $root.proteus = (function() {
|
|
|
1493
1593
|
while (reader.pos < end) {
|
|
1494
1594
|
var tag = reader.uint32();
|
|
1495
1595
|
switch (tag >>> 3) {
|
|
1496
|
-
case 1:
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
message.recipients
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
case
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1596
|
+
case 1: {
|
|
1597
|
+
message.sender = $root.proteus.ClientId.decode(reader, reader.uint32());
|
|
1598
|
+
break;
|
|
1599
|
+
}
|
|
1600
|
+
case 2: {
|
|
1601
|
+
if (!(message.recipients && message.recipients.length))
|
|
1602
|
+
message.recipients = [];
|
|
1603
|
+
message.recipients.push($root.proteus.UserEntry.decode(reader, reader.uint32()));
|
|
1604
|
+
break;
|
|
1605
|
+
}
|
|
1606
|
+
case 3: {
|
|
1607
|
+
message.nativePush = reader.bool();
|
|
1608
|
+
break;
|
|
1609
|
+
}
|
|
1610
|
+
case 4: {
|
|
1611
|
+
message.blob = reader.bytes();
|
|
1612
|
+
break;
|
|
1613
|
+
}
|
|
1614
|
+
case 5: {
|
|
1615
|
+
message.nativePriority = reader.int32();
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
case 6: {
|
|
1619
|
+
message.transient = reader.bool();
|
|
1620
|
+
break;
|
|
1621
|
+
}
|
|
1622
|
+
case 7: {
|
|
1623
|
+
if (!(message.reportMissing && message.reportMissing.length))
|
|
1624
|
+
message.reportMissing = [];
|
|
1625
|
+
message.reportMissing.push($root.proteus.UserId.decode(reader, reader.uint32()));
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1521
1628
|
default:
|
|
1522
1629
|
reader.skipType(tag & 7);
|
|
1523
1630
|
break;
|
|
@@ -1630,9 +1737,15 @@ $root.proteus = (function() {
|
|
|
1630
1737
|
if (object.blob != null)
|
|
1631
1738
|
if (typeof object.blob === "string")
|
|
1632
1739
|
$util.base64.decode(object.blob, message.blob = $util.newBuffer($util.base64.length(object.blob)), 0);
|
|
1633
|
-
else if (object.blob.length)
|
|
1740
|
+
else if (object.blob.length >= 0)
|
|
1634
1741
|
message.blob = object.blob;
|
|
1635
1742
|
switch (object.nativePriority) {
|
|
1743
|
+
default:
|
|
1744
|
+
if (typeof object.nativePriority === "number") {
|
|
1745
|
+
message.nativePriority = object.nativePriority;
|
|
1746
|
+
break;
|
|
1747
|
+
}
|
|
1748
|
+
break;
|
|
1636
1749
|
case "LOW_PRIORITY":
|
|
1637
1750
|
case 1:
|
|
1638
1751
|
message.nativePriority = 1;
|
|
@@ -1699,7 +1812,7 @@ $root.proteus = (function() {
|
|
|
1699
1812
|
if (message.blob != null && message.hasOwnProperty("blob"))
|
|
1700
1813
|
object.blob = options.bytes === String ? $util.base64.encode(message.blob, 0, message.blob.length) : options.bytes === Array ? Array.prototype.slice.call(message.blob) : message.blob;
|
|
1701
1814
|
if (message.nativePriority != null && message.hasOwnProperty("nativePriority"))
|
|
1702
|
-
object.nativePriority = options.enums === String ? $root.proteus.Priority[message.nativePriority] : message.nativePriority;
|
|
1815
|
+
object.nativePriority = options.enums === String ? $root.proteus.Priority[message.nativePriority] === undefined ? message.nativePriority : $root.proteus.Priority[message.nativePriority] : message.nativePriority;
|
|
1703
1816
|
if (message.transient != null && message.hasOwnProperty("transient"))
|
|
1704
1817
|
object.transient = message.transient;
|
|
1705
1818
|
if (message.reportMissing && message.reportMissing.length) {
|
|
@@ -1721,6 +1834,21 @@ $root.proteus = (function() {
|
|
|
1721
1834
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1722
1835
|
};
|
|
1723
1836
|
|
|
1837
|
+
/**
|
|
1838
|
+
* Gets the default type url for NewOtrMessage
|
|
1839
|
+
* @function getTypeUrl
|
|
1840
|
+
* @memberof proteus.NewOtrMessage
|
|
1841
|
+
* @static
|
|
1842
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1843
|
+
* @returns {string} The default type url
|
|
1844
|
+
*/
|
|
1845
|
+
NewOtrMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1846
|
+
if (typeUrlPrefix === undefined) {
|
|
1847
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1848
|
+
}
|
|
1849
|
+
return typeUrlPrefix + "/proteus.NewOtrMessage";
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1724
1852
|
return NewOtrMessage;
|
|
1725
1853
|
})();
|
|
1726
1854
|
|
|
@@ -1930,38 +2058,48 @@ $root.proteus = (function() {
|
|
|
1930
2058
|
while (reader.pos < end) {
|
|
1931
2059
|
var tag = reader.uint32();
|
|
1932
2060
|
switch (tag >>> 3) {
|
|
1933
|
-
case 1:
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
message.recipients
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
case
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
case
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
2061
|
+
case 1: {
|
|
2062
|
+
message.sender = $root.proteus.ClientId.decode(reader, reader.uint32());
|
|
2063
|
+
break;
|
|
2064
|
+
}
|
|
2065
|
+
case 2: {
|
|
2066
|
+
if (!(message.recipients && message.recipients.length))
|
|
2067
|
+
message.recipients = [];
|
|
2068
|
+
message.recipients.push($root.proteus.QualifiedUserEntry.decode(reader, reader.uint32()));
|
|
2069
|
+
break;
|
|
2070
|
+
}
|
|
2071
|
+
case 3: {
|
|
2072
|
+
message.nativePush = reader.bool();
|
|
2073
|
+
break;
|
|
2074
|
+
}
|
|
2075
|
+
case 4: {
|
|
2076
|
+
message.blob = reader.bytes();
|
|
2077
|
+
break;
|
|
2078
|
+
}
|
|
2079
|
+
case 5: {
|
|
2080
|
+
message.nativePriority = reader.int32();
|
|
2081
|
+
break;
|
|
2082
|
+
}
|
|
2083
|
+
case 6: {
|
|
2084
|
+
message.transient = reader.bool();
|
|
2085
|
+
break;
|
|
2086
|
+
}
|
|
2087
|
+
case 7: {
|
|
2088
|
+
message.reportAll = $root.proteus.ClientMismatchStrategy.ReportAll.decode(reader, reader.uint32());
|
|
2089
|
+
break;
|
|
2090
|
+
}
|
|
2091
|
+
case 8: {
|
|
2092
|
+
message.ignoreAll = $root.proteus.ClientMismatchStrategy.IgnoreAll.decode(reader, reader.uint32());
|
|
2093
|
+
break;
|
|
2094
|
+
}
|
|
2095
|
+
case 9: {
|
|
2096
|
+
message.reportOnly = $root.proteus.ClientMismatchStrategy.ReportOnly.decode(reader, reader.uint32());
|
|
2097
|
+
break;
|
|
2098
|
+
}
|
|
2099
|
+
case 10: {
|
|
2100
|
+
message.ignoreOnly = $root.proteus.ClientMismatchStrategy.IgnoreOnly.decode(reader, reader.uint32());
|
|
2101
|
+
break;
|
|
2102
|
+
}
|
|
1965
2103
|
default:
|
|
1966
2104
|
reader.skipType(tag & 7);
|
|
1967
2105
|
break;
|
|
@@ -2104,9 +2242,15 @@ $root.proteus = (function() {
|
|
|
2104
2242
|
if (object.blob != null)
|
|
2105
2243
|
if (typeof object.blob === "string")
|
|
2106
2244
|
$util.base64.decode(object.blob, message.blob = $util.newBuffer($util.base64.length(object.blob)), 0);
|
|
2107
|
-
else if (object.blob.length)
|
|
2245
|
+
else if (object.blob.length >= 0)
|
|
2108
2246
|
message.blob = object.blob;
|
|
2109
2247
|
switch (object.nativePriority) {
|
|
2248
|
+
default:
|
|
2249
|
+
if (typeof object.nativePriority === "number") {
|
|
2250
|
+
message.nativePriority = object.nativePriority;
|
|
2251
|
+
break;
|
|
2252
|
+
}
|
|
2253
|
+
break;
|
|
2110
2254
|
case "LOW_PRIORITY":
|
|
2111
2255
|
case 1:
|
|
2112
2256
|
message.nativePriority = 1;
|
|
@@ -2181,7 +2325,7 @@ $root.proteus = (function() {
|
|
|
2181
2325
|
if (message.blob != null && message.hasOwnProperty("blob"))
|
|
2182
2326
|
object.blob = options.bytes === String ? $util.base64.encode(message.blob, 0, message.blob.length) : options.bytes === Array ? Array.prototype.slice.call(message.blob) : message.blob;
|
|
2183
2327
|
if (message.nativePriority != null && message.hasOwnProperty("nativePriority"))
|
|
2184
|
-
object.nativePriority = options.enums === String ? $root.proteus.Priority[message.nativePriority] : message.nativePriority;
|
|
2328
|
+
object.nativePriority = options.enums === String ? $root.proteus.Priority[message.nativePriority] === undefined ? message.nativePriority : $root.proteus.Priority[message.nativePriority] : message.nativePriority;
|
|
2185
2329
|
if (message.transient != null && message.hasOwnProperty("transient"))
|
|
2186
2330
|
object.transient = message.transient;
|
|
2187
2331
|
if (message.reportAll != null && message.hasOwnProperty("reportAll")) {
|
|
@@ -2218,6 +2362,21 @@ $root.proteus = (function() {
|
|
|
2218
2362
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2219
2363
|
};
|
|
2220
2364
|
|
|
2365
|
+
/**
|
|
2366
|
+
* Gets the default type url for QualifiedNewOtrMessage
|
|
2367
|
+
* @function getTypeUrl
|
|
2368
|
+
* @memberof proteus.QualifiedNewOtrMessage
|
|
2369
|
+
* @static
|
|
2370
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2371
|
+
* @returns {string} The default type url
|
|
2372
|
+
*/
|
|
2373
|
+
QualifiedNewOtrMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2374
|
+
if (typeUrlPrefix === undefined) {
|
|
2375
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2376
|
+
}
|
|
2377
|
+
return typeUrlPrefix + "/proteus.QualifiedNewOtrMessage";
|
|
2378
|
+
};
|
|
2379
|
+
|
|
2221
2380
|
return QualifiedNewOtrMessage;
|
|
2222
2381
|
})();
|
|
2223
2382
|
|
|
@@ -2378,6 +2537,21 @@ $root.proteus = (function() {
|
|
|
2378
2537
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2379
2538
|
};
|
|
2380
2539
|
|
|
2540
|
+
/**
|
|
2541
|
+
* Gets the default type url for ClientMismatchStrategy
|
|
2542
|
+
* @function getTypeUrl
|
|
2543
|
+
* @memberof proteus.ClientMismatchStrategy
|
|
2544
|
+
* @static
|
|
2545
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2546
|
+
* @returns {string} The default type url
|
|
2547
|
+
*/
|
|
2548
|
+
ClientMismatchStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2549
|
+
if (typeUrlPrefix === undefined) {
|
|
2550
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2551
|
+
}
|
|
2552
|
+
return typeUrlPrefix + "/proteus.ClientMismatchStrategy";
|
|
2553
|
+
};
|
|
2554
|
+
|
|
2381
2555
|
ClientMismatchStrategy.ReportAll = (function() {
|
|
2382
2556
|
|
|
2383
2557
|
/**
|
|
@@ -2535,6 +2709,21 @@ $root.proteus = (function() {
|
|
|
2535
2709
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2536
2710
|
};
|
|
2537
2711
|
|
|
2712
|
+
/**
|
|
2713
|
+
* Gets the default type url for ReportAll
|
|
2714
|
+
* @function getTypeUrl
|
|
2715
|
+
* @memberof proteus.ClientMismatchStrategy.ReportAll
|
|
2716
|
+
* @static
|
|
2717
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2718
|
+
* @returns {string} The default type url
|
|
2719
|
+
*/
|
|
2720
|
+
ReportAll.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2721
|
+
if (typeUrlPrefix === undefined) {
|
|
2722
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2723
|
+
}
|
|
2724
|
+
return typeUrlPrefix + "/proteus.ClientMismatchStrategy.ReportAll";
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2538
2727
|
return ReportAll;
|
|
2539
2728
|
})();
|
|
2540
2729
|
|
|
@@ -2695,6 +2884,21 @@ $root.proteus = (function() {
|
|
|
2695
2884
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2696
2885
|
};
|
|
2697
2886
|
|
|
2887
|
+
/**
|
|
2888
|
+
* Gets the default type url for IgnoreAll
|
|
2889
|
+
* @function getTypeUrl
|
|
2890
|
+
* @memberof proteus.ClientMismatchStrategy.IgnoreAll
|
|
2891
|
+
* @static
|
|
2892
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2893
|
+
* @returns {string} The default type url
|
|
2894
|
+
*/
|
|
2895
|
+
IgnoreAll.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2896
|
+
if (typeUrlPrefix === undefined) {
|
|
2897
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2898
|
+
}
|
|
2899
|
+
return typeUrlPrefix + "/proteus.ClientMismatchStrategy.IgnoreAll";
|
|
2900
|
+
};
|
|
2901
|
+
|
|
2698
2902
|
return IgnoreAll;
|
|
2699
2903
|
})();
|
|
2700
2904
|
|
|
@@ -2792,11 +2996,12 @@ $root.proteus = (function() {
|
|
|
2792
2996
|
while (reader.pos < end) {
|
|
2793
2997
|
var tag = reader.uint32();
|
|
2794
2998
|
switch (tag >>> 3) {
|
|
2795
|
-
case 1:
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2999
|
+
case 1: {
|
|
3000
|
+
if (!(message.userIds && message.userIds.length))
|
|
3001
|
+
message.userIds = [];
|
|
3002
|
+
message.userIds.push($root.proteus.QualifiedUserId.decode(reader, reader.uint32()));
|
|
3003
|
+
break;
|
|
3004
|
+
}
|
|
2800
3005
|
default:
|
|
2801
3006
|
reader.skipType(tag & 7);
|
|
2802
3007
|
break;
|
|
@@ -2903,6 +3108,21 @@ $root.proteus = (function() {
|
|
|
2903
3108
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2904
3109
|
};
|
|
2905
3110
|
|
|
3111
|
+
/**
|
|
3112
|
+
* Gets the default type url for ReportOnly
|
|
3113
|
+
* @function getTypeUrl
|
|
3114
|
+
* @memberof proteus.ClientMismatchStrategy.ReportOnly
|
|
3115
|
+
* @static
|
|
3116
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3117
|
+
* @returns {string} The default type url
|
|
3118
|
+
*/
|
|
3119
|
+
ReportOnly.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3120
|
+
if (typeUrlPrefix === undefined) {
|
|
3121
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3122
|
+
}
|
|
3123
|
+
return typeUrlPrefix + "/proteus.ClientMismatchStrategy.ReportOnly";
|
|
3124
|
+
};
|
|
3125
|
+
|
|
2906
3126
|
return ReportOnly;
|
|
2907
3127
|
})();
|
|
2908
3128
|
|
|
@@ -3000,11 +3220,12 @@ $root.proteus = (function() {
|
|
|
3000
3220
|
while (reader.pos < end) {
|
|
3001
3221
|
var tag = reader.uint32();
|
|
3002
3222
|
switch (tag >>> 3) {
|
|
3003
|
-
case 1:
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3223
|
+
case 1: {
|
|
3224
|
+
if (!(message.userIds && message.userIds.length))
|
|
3225
|
+
message.userIds = [];
|
|
3226
|
+
message.userIds.push($root.proteus.QualifiedUserId.decode(reader, reader.uint32()));
|
|
3227
|
+
break;
|
|
3228
|
+
}
|
|
3008
3229
|
default:
|
|
3009
3230
|
reader.skipType(tag & 7);
|
|
3010
3231
|
break;
|
|
@@ -3111,6 +3332,21 @@ $root.proteus = (function() {
|
|
|
3111
3332
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3112
3333
|
};
|
|
3113
3334
|
|
|
3335
|
+
/**
|
|
3336
|
+
* Gets the default type url for IgnoreOnly
|
|
3337
|
+
* @function getTypeUrl
|
|
3338
|
+
* @memberof proteus.ClientMismatchStrategy.IgnoreOnly
|
|
3339
|
+
* @static
|
|
3340
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3341
|
+
* @returns {string} The default type url
|
|
3342
|
+
*/
|
|
3343
|
+
IgnoreOnly.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3344
|
+
if (typeUrlPrefix === undefined) {
|
|
3345
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3346
|
+
}
|
|
3347
|
+
return typeUrlPrefix + "/proteus.ClientMismatchStrategy.IgnoreOnly";
|
|
3348
|
+
};
|
|
3349
|
+
|
|
3114
3350
|
return IgnoreOnly;
|
|
3115
3351
|
})();
|
|
3116
3352
|
|
|
@@ -3243,20 +3479,24 @@ $root.proteus = (function() {
|
|
|
3243
3479
|
while (reader.pos < end) {
|
|
3244
3480
|
var tag = reader.uint32();
|
|
3245
3481
|
switch (tag >>> 3) {
|
|
3246
|
-
case 1:
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
message.recipients
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3482
|
+
case 1: {
|
|
3483
|
+
message.sender = $root.proteus.ClientId.decode(reader, reader.uint32());
|
|
3484
|
+
break;
|
|
3485
|
+
}
|
|
3486
|
+
case 2: {
|
|
3487
|
+
if (!(message.recipients && message.recipients.length))
|
|
3488
|
+
message.recipients = [];
|
|
3489
|
+
message.recipients.push($root.proteus.UserEntry.decode(reader, reader.uint32()));
|
|
3490
|
+
break;
|
|
3491
|
+
}
|
|
3492
|
+
case 3: {
|
|
3493
|
+
message.isInline = reader.bool();
|
|
3494
|
+
break;
|
|
3495
|
+
}
|
|
3496
|
+
case 4: {
|
|
3497
|
+
message.nativePush = reader.bool();
|
|
3498
|
+
break;
|
|
3499
|
+
}
|
|
3260
3500
|
default:
|
|
3261
3501
|
reader.skipType(tag & 7);
|
|
3262
3502
|
break;
|
|
@@ -3396,6 +3636,21 @@ $root.proteus = (function() {
|
|
|
3396
3636
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3397
3637
|
};
|
|
3398
3638
|
|
|
3639
|
+
/**
|
|
3640
|
+
* Gets the default type url for OtrAssetMeta
|
|
3641
|
+
* @function getTypeUrl
|
|
3642
|
+
* @memberof proteus.OtrAssetMeta
|
|
3643
|
+
* @static
|
|
3644
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3645
|
+
* @returns {string} The default type url
|
|
3646
|
+
*/
|
|
3647
|
+
OtrAssetMeta.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3648
|
+
if (typeUrlPrefix === undefined) {
|
|
3649
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3650
|
+
}
|
|
3651
|
+
return typeUrlPrefix + "/proteus.OtrAssetMeta";
|
|
3652
|
+
};
|
|
3653
|
+
|
|
3399
3654
|
return OtrAssetMeta;
|
|
3400
3655
|
})();
|
|
3401
3656
|
|