violetics 7.0.6-alpha → 7.0.7-alpha
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/.github/workflows/publish.yml +75 -0
- package/.pnp.cjs +8572 -0
- package/.pnp.loader.mjs +2126 -0
- package/.yarn/install-state.gz +0 -0
- package/WAProto/index.js +1542 -179
- package/lib/Defaults/index.js +7 -8
- package/lib/Socket/Client/websocket.js +1 -10
- package/lib/Socket/chats.js +4 -5
- package/lib/Socket/messages-recv.js +85 -26
- package/lib/Socket/messages-send.js +47 -52
- package/lib/Socket/newsletter.js +2 -10
- package/lib/Socket/socket.js +13 -23
- package/lib/Types/Message.js +1 -1
- package/lib/Utils/event-buffer.js +2 -2
- package/lib/Utils/generics.js +1 -2
- package/lib/Utils/index.js +1 -0
- package/lib/Utils/message-retry-manager.js +1 -1
- package/lib/Utils/messages-media.js +18 -12
- package/lib/Utils/messages.js +86 -85
- package/lib/Utils/noise-handler.js +0 -6
- package/lib/Utils/use-single-file-auth-state.js +96 -0
- package/lib/WABinary/generic-utils.js +58 -41
- package/lib/WABinary/jid-utils.js +1 -1
- package/package.json +3 -22
package/WAProto/index.js
CHANGED
|
@@ -6762,6 +6762,14 @@ export const proto = $root.proto = (() => {
|
|
|
6762
6762
|
case 59:
|
|
6763
6763
|
m.capabilities[i] = 59;
|
|
6764
6764
|
break;
|
|
6765
|
+
case "UNIFIED_RESPONSE_EMBEDDED_SCREENS":
|
|
6766
|
+
case 60:
|
|
6767
|
+
m.capabilities[i] = 60;
|
|
6768
|
+
break;
|
|
6769
|
+
case "AI_SUBSCRIPTION_ENABLED":
|
|
6770
|
+
case 61:
|
|
6771
|
+
m.capabilities[i] = 61;
|
|
6772
|
+
break;
|
|
6765
6773
|
}
|
|
6766
6774
|
}
|
|
6767
6775
|
}
|
|
@@ -6857,12 +6865,141 @@ export const proto = $root.proto = (() => {
|
|
|
6857
6865
|
values[valuesById[57] = "RICH_RESPONSE_UR_IMAGINE_VIDEO"] = 57;
|
|
6858
6866
|
values[valuesById[58] = "JSON_PATCH_STREAMING"] = 58;
|
|
6859
6867
|
values[valuesById[59] = "AI_TAB_FORCE_CLIPPY"] = 59;
|
|
6868
|
+
values[valuesById[60] = "UNIFIED_RESPONSE_EMBEDDED_SCREENS"] = 60;
|
|
6869
|
+
values[valuesById[61] = "AI_SUBSCRIPTION_ENABLED"] = 61;
|
|
6860
6870
|
return values;
|
|
6861
6871
|
})();
|
|
6862
6872
|
|
|
6863
6873
|
return BotCapabilityMetadata;
|
|
6864
6874
|
})();
|
|
6865
6875
|
|
|
6876
|
+
proto.BotCommandMetadata = (function() {
|
|
6877
|
+
|
|
6878
|
+
function BotCommandMetadata(p) {
|
|
6879
|
+
if (p)
|
|
6880
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
6881
|
+
if (p[ks[i]] != null)
|
|
6882
|
+
this[ks[i]] = p[ks[i]];
|
|
6883
|
+
}
|
|
6884
|
+
|
|
6885
|
+
BotCommandMetadata.prototype.commandName = null;
|
|
6886
|
+
BotCommandMetadata.prototype.commandDescription = null;
|
|
6887
|
+
BotCommandMetadata.prototype.commandPrompt = null;
|
|
6888
|
+
|
|
6889
|
+
let $oneOfFields;
|
|
6890
|
+
|
|
6891
|
+
Object.defineProperty(BotCommandMetadata.prototype, "_commandName", {
|
|
6892
|
+
get: $util.oneOfGetter($oneOfFields = ["commandName"]),
|
|
6893
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6894
|
+
});
|
|
6895
|
+
|
|
6896
|
+
Object.defineProperty(BotCommandMetadata.prototype, "_commandDescription", {
|
|
6897
|
+
get: $util.oneOfGetter($oneOfFields = ["commandDescription"]),
|
|
6898
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6899
|
+
});
|
|
6900
|
+
|
|
6901
|
+
Object.defineProperty(BotCommandMetadata.prototype, "_commandPrompt", {
|
|
6902
|
+
get: $util.oneOfGetter($oneOfFields = ["commandPrompt"]),
|
|
6903
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6904
|
+
});
|
|
6905
|
+
|
|
6906
|
+
BotCommandMetadata.create = function create(properties) {
|
|
6907
|
+
return new BotCommandMetadata(properties);
|
|
6908
|
+
};
|
|
6909
|
+
|
|
6910
|
+
BotCommandMetadata.encode = function encode(m, w) {
|
|
6911
|
+
if (!w)
|
|
6912
|
+
w = $Writer.create();
|
|
6913
|
+
if (m.commandName != null && Object.hasOwnProperty.call(m, "commandName"))
|
|
6914
|
+
w.uint32(10).string(m.commandName);
|
|
6915
|
+
if (m.commandDescription != null && Object.hasOwnProperty.call(m, "commandDescription"))
|
|
6916
|
+
w.uint32(18).string(m.commandDescription);
|
|
6917
|
+
if (m.commandPrompt != null && Object.hasOwnProperty.call(m, "commandPrompt"))
|
|
6918
|
+
w.uint32(26).string(m.commandPrompt);
|
|
6919
|
+
return w;
|
|
6920
|
+
};
|
|
6921
|
+
|
|
6922
|
+
BotCommandMetadata.decode = function decode(r, l, e) {
|
|
6923
|
+
if (!(r instanceof $Reader))
|
|
6924
|
+
r = $Reader.create(r);
|
|
6925
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotCommandMetadata();
|
|
6926
|
+
while (r.pos < c) {
|
|
6927
|
+
var t = r.uint32();
|
|
6928
|
+
if (t === e)
|
|
6929
|
+
break;
|
|
6930
|
+
switch (t >>> 3) {
|
|
6931
|
+
case 1: {
|
|
6932
|
+
m.commandName = r.string();
|
|
6933
|
+
break;
|
|
6934
|
+
}
|
|
6935
|
+
case 2: {
|
|
6936
|
+
m.commandDescription = r.string();
|
|
6937
|
+
break;
|
|
6938
|
+
}
|
|
6939
|
+
case 3: {
|
|
6940
|
+
m.commandPrompt = r.string();
|
|
6941
|
+
break;
|
|
6942
|
+
}
|
|
6943
|
+
default:
|
|
6944
|
+
r.skipType(t & 7);
|
|
6945
|
+
break;
|
|
6946
|
+
}
|
|
6947
|
+
}
|
|
6948
|
+
return m;
|
|
6949
|
+
};
|
|
6950
|
+
|
|
6951
|
+
BotCommandMetadata.fromObject = function fromObject(d) {
|
|
6952
|
+
if (d instanceof $root.proto.BotCommandMetadata)
|
|
6953
|
+
return d;
|
|
6954
|
+
var m = new $root.proto.BotCommandMetadata();
|
|
6955
|
+
if (d.commandName != null) {
|
|
6956
|
+
m.commandName = String(d.commandName);
|
|
6957
|
+
}
|
|
6958
|
+
if (d.commandDescription != null) {
|
|
6959
|
+
m.commandDescription = String(d.commandDescription);
|
|
6960
|
+
}
|
|
6961
|
+
if (d.commandPrompt != null) {
|
|
6962
|
+
m.commandPrompt = String(d.commandPrompt);
|
|
6963
|
+
}
|
|
6964
|
+
return m;
|
|
6965
|
+
};
|
|
6966
|
+
|
|
6967
|
+
BotCommandMetadata.toObject = function toObject(m, o) {
|
|
6968
|
+
if (!o)
|
|
6969
|
+
o = {};
|
|
6970
|
+
var d = {};
|
|
6971
|
+
if (m.commandName != null && m.hasOwnProperty("commandName")) {
|
|
6972
|
+
d.commandName = m.commandName;
|
|
6973
|
+
if (o.oneofs)
|
|
6974
|
+
d._commandName = "commandName";
|
|
6975
|
+
}
|
|
6976
|
+
if (m.commandDescription != null && m.hasOwnProperty("commandDescription")) {
|
|
6977
|
+
d.commandDescription = m.commandDescription;
|
|
6978
|
+
if (o.oneofs)
|
|
6979
|
+
d._commandDescription = "commandDescription";
|
|
6980
|
+
}
|
|
6981
|
+
if (m.commandPrompt != null && m.hasOwnProperty("commandPrompt")) {
|
|
6982
|
+
d.commandPrompt = m.commandPrompt;
|
|
6983
|
+
if (o.oneofs)
|
|
6984
|
+
d._commandPrompt = "commandPrompt";
|
|
6985
|
+
}
|
|
6986
|
+
return d;
|
|
6987
|
+
};
|
|
6988
|
+
|
|
6989
|
+
BotCommandMetadata.prototype.toJSON = function toJSON() {
|
|
6990
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6991
|
+
};
|
|
6992
|
+
|
|
6993
|
+
BotCommandMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
6994
|
+
if (typeUrlPrefix === undefined) {
|
|
6995
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
6996
|
+
}
|
|
6997
|
+
return typeUrlPrefix + "/proto.BotCommandMetadata";
|
|
6998
|
+
};
|
|
6999
|
+
|
|
7000
|
+
return BotCommandMetadata;
|
|
7001
|
+
})();
|
|
7002
|
+
|
|
6866
7003
|
proto.BotDocumentMessageMetadata = (function() {
|
|
6867
7004
|
|
|
6868
7005
|
function BotDocumentMessageMetadata(p) {
|
|
@@ -10185,6 +10322,10 @@ export const proto = $root.proto = (() => {
|
|
|
10185
10322
|
case 55:
|
|
10186
10323
|
m.botEntryPointOrigin = 55;
|
|
10187
10324
|
break;
|
|
10325
|
+
case "NEW_CHAT_LIST":
|
|
10326
|
+
case 56:
|
|
10327
|
+
m.botEntryPointOrigin = 56;
|
|
10328
|
+
break;
|
|
10188
10329
|
}
|
|
10189
10330
|
if (d.forwardScore != null) {
|
|
10190
10331
|
m.forwardScore = d.forwardScore >>> 0;
|
|
@@ -10269,6 +10410,7 @@ export const proto = $root.proto = (() => {
|
|
|
10269
10410
|
BotMetadata.prototype.botRenderingConfigMetadata = null;
|
|
10270
10411
|
BotMetadata.prototype.botInfrastructureDiagnostics = null;
|
|
10271
10412
|
BotMetadata.prototype.aiMediaCollectionMetadata = null;
|
|
10413
|
+
BotMetadata.prototype.commandMetadata = null;
|
|
10272
10414
|
BotMetadata.prototype.internalMetadata = null;
|
|
10273
10415
|
|
|
10274
10416
|
let $oneOfFields;
|
|
@@ -10458,6 +10600,11 @@ export const proto = $root.proto = (() => {
|
|
|
10458
10600
|
set: $util.oneOfSetter($oneOfFields)
|
|
10459
10601
|
});
|
|
10460
10602
|
|
|
10603
|
+
Object.defineProperty(BotMetadata.prototype, "_commandMetadata", {
|
|
10604
|
+
get: $util.oneOfGetter($oneOfFields = ["commandMetadata"]),
|
|
10605
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
10606
|
+
});
|
|
10607
|
+
|
|
10461
10608
|
Object.defineProperty(BotMetadata.prototype, "_internalMetadata", {
|
|
10462
10609
|
get: $util.oneOfGetter($oneOfFields = ["internalMetadata"]),
|
|
10463
10610
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -10544,6 +10691,8 @@ export const proto = $root.proto = (() => {
|
|
|
10544
10691
|
$root.proto.BotInfrastructureDiagnostics.encode(m.botInfrastructureDiagnostics, w.uint32(298).fork()).ldelim();
|
|
10545
10692
|
if (m.aiMediaCollectionMetadata != null && Object.hasOwnProperty.call(m, "aiMediaCollectionMetadata"))
|
|
10546
10693
|
$root.proto.AIMediaCollectionMetadata.encode(m.aiMediaCollectionMetadata, w.uint32(306).fork()).ldelim();
|
|
10694
|
+
if (m.commandMetadata != null && Object.hasOwnProperty.call(m, "commandMetadata"))
|
|
10695
|
+
$root.proto.BotCommandMetadata.encode(m.commandMetadata, w.uint32(314).fork()).ldelim();
|
|
10547
10696
|
if (m.internalMetadata != null && Object.hasOwnProperty.call(m, "internalMetadata"))
|
|
10548
10697
|
w.uint32(7994).bytes(m.internalMetadata);
|
|
10549
10698
|
return w;
|
|
@@ -10706,6 +10855,10 @@ export const proto = $root.proto = (() => {
|
|
|
10706
10855
|
m.aiMediaCollectionMetadata = $root.proto.AIMediaCollectionMetadata.decode(r, r.uint32());
|
|
10707
10856
|
break;
|
|
10708
10857
|
}
|
|
10858
|
+
case 39: {
|
|
10859
|
+
m.commandMetadata = $root.proto.BotCommandMetadata.decode(r, r.uint32());
|
|
10860
|
+
break;
|
|
10861
|
+
}
|
|
10709
10862
|
case 999: {
|
|
10710
10863
|
m.internalMetadata = r.bytes();
|
|
10711
10864
|
break;
|
|
@@ -10896,6 +11049,11 @@ export const proto = $root.proto = (() => {
|
|
|
10896
11049
|
throw TypeError(".proto.BotMetadata.aiMediaCollectionMetadata: object expected");
|
|
10897
11050
|
m.aiMediaCollectionMetadata = $root.proto.AIMediaCollectionMetadata.fromObject(d.aiMediaCollectionMetadata);
|
|
10898
11051
|
}
|
|
11052
|
+
if (d.commandMetadata != null) {
|
|
11053
|
+
if (typeof d.commandMetadata !== "object")
|
|
11054
|
+
throw TypeError(".proto.BotMetadata.commandMetadata: object expected");
|
|
11055
|
+
m.commandMetadata = $root.proto.BotCommandMetadata.fromObject(d.commandMetadata);
|
|
11056
|
+
}
|
|
10899
11057
|
if (d.internalMetadata != null) {
|
|
10900
11058
|
if (typeof d.internalMetadata === "string")
|
|
10901
11059
|
$util.base64.decode(d.internalMetadata, m.internalMetadata = $util.newBuffer($util.base64.length(d.internalMetadata)), 0);
|
|
@@ -11094,6 +11252,11 @@ export const proto = $root.proto = (() => {
|
|
|
11094
11252
|
if (o.oneofs)
|
|
11095
11253
|
d._aiMediaCollectionMetadata = "aiMediaCollectionMetadata";
|
|
11096
11254
|
}
|
|
11255
|
+
if (m.commandMetadata != null && m.hasOwnProperty("commandMetadata")) {
|
|
11256
|
+
d.commandMetadata = $root.proto.BotCommandMetadata.toObject(m.commandMetadata, o);
|
|
11257
|
+
if (o.oneofs)
|
|
11258
|
+
d._commandMetadata = "commandMetadata";
|
|
11259
|
+
}
|
|
11097
11260
|
if (m.internalMetadata != null && m.hasOwnProperty("internalMetadata")) {
|
|
11098
11261
|
d.internalMetadata = o.bytes === String ? $util.base64.encode(m.internalMetadata, 0, m.internalMetadata.length) : o.bytes === Array ? Array.prototype.slice.call(m.internalMetadata) : m.internalMetadata;
|
|
11099
11262
|
if (o.oneofs)
|
|
@@ -11165,6 +11328,7 @@ export const proto = $root.proto = (() => {
|
|
|
11165
11328
|
values[valuesById[47] = "WEB_NAVIGATION_BAR"] = 47;
|
|
11166
11329
|
values[valuesById[54] = "GROUP_MEMBER"] = 54;
|
|
11167
11330
|
values[valuesById[55] = "CHATLIST_SEARCH"] = 55;
|
|
11331
|
+
values[valuesById[56] = "NEW_CHAT_LIST"] = 56;
|
|
11168
11332
|
return values;
|
|
11169
11333
|
})();
|
|
11170
11334
|
|
|
@@ -11445,6 +11609,10 @@ export const proto = $root.proto = (() => {
|
|
|
11445
11609
|
case 55:
|
|
11446
11610
|
m.destinationEntryPoint = 55;
|
|
11447
11611
|
break;
|
|
11612
|
+
case "NEW_CHAT_LIST":
|
|
11613
|
+
case 56:
|
|
11614
|
+
m.destinationEntryPoint = 56;
|
|
11615
|
+
break;
|
|
11448
11616
|
}
|
|
11449
11617
|
switch (d.threadOrigin) {
|
|
11450
11618
|
default:
|
|
@@ -17534,32 +17702,10 @@ export const proto = $root.proto = (() => {
|
|
|
17534
17702
|
this[ks[i]] = p[ks[i]];
|
|
17535
17703
|
}
|
|
17536
17704
|
|
|
17537
|
-
Citation.prototype.title =
|
|
17538
|
-
Citation.prototype.subtitle =
|
|
17539
|
-
Citation.prototype.cmsId =
|
|
17540
|
-
Citation.prototype.imageUrl =
|
|
17541
|
-
|
|
17542
|
-
let $oneOfFields;
|
|
17543
|
-
|
|
17544
|
-
Object.defineProperty(Citation.prototype, "_title", {
|
|
17545
|
-
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
|
17546
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
17547
|
-
});
|
|
17548
|
-
|
|
17549
|
-
Object.defineProperty(Citation.prototype, "_subtitle", {
|
|
17550
|
-
get: $util.oneOfGetter($oneOfFields = ["subtitle"]),
|
|
17551
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
17552
|
-
});
|
|
17553
|
-
|
|
17554
|
-
Object.defineProperty(Citation.prototype, "_cmsId", {
|
|
17555
|
-
get: $util.oneOfGetter($oneOfFields = ["cmsId"]),
|
|
17556
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
17557
|
-
});
|
|
17558
|
-
|
|
17559
|
-
Object.defineProperty(Citation.prototype, "_imageUrl", {
|
|
17560
|
-
get: $util.oneOfGetter($oneOfFields = ["imageUrl"]),
|
|
17561
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
17562
|
-
});
|
|
17705
|
+
Citation.prototype.title = "";
|
|
17706
|
+
Citation.prototype.subtitle = "";
|
|
17707
|
+
Citation.prototype.cmsId = "";
|
|
17708
|
+
Citation.prototype.imageUrl = "";
|
|
17563
17709
|
|
|
17564
17710
|
Citation.create = function create(properties) {
|
|
17565
17711
|
return new Citation(properties);
|
|
@@ -17635,25 +17781,23 @@ export const proto = $root.proto = (() => {
|
|
|
17635
17781
|
if (!o)
|
|
17636
17782
|
o = {};
|
|
17637
17783
|
var d = {};
|
|
17784
|
+
if (o.defaults) {
|
|
17785
|
+
d.title = "";
|
|
17786
|
+
d.subtitle = "";
|
|
17787
|
+
d.cmsId = "";
|
|
17788
|
+
d.imageUrl = "";
|
|
17789
|
+
}
|
|
17638
17790
|
if (m.title != null && m.hasOwnProperty("title")) {
|
|
17639
17791
|
d.title = m.title;
|
|
17640
|
-
if (o.oneofs)
|
|
17641
|
-
d._title = "title";
|
|
17642
17792
|
}
|
|
17643
17793
|
if (m.subtitle != null && m.hasOwnProperty("subtitle")) {
|
|
17644
17794
|
d.subtitle = m.subtitle;
|
|
17645
|
-
if (o.oneofs)
|
|
17646
|
-
d._subtitle = "subtitle";
|
|
17647
17795
|
}
|
|
17648
17796
|
if (m.cmsId != null && m.hasOwnProperty("cmsId")) {
|
|
17649
17797
|
d.cmsId = m.cmsId;
|
|
17650
|
-
if (o.oneofs)
|
|
17651
|
-
d._cmsId = "cmsId";
|
|
17652
17798
|
}
|
|
17653
17799
|
if (m.imageUrl != null && m.hasOwnProperty("imageUrl")) {
|
|
17654
17800
|
d.imageUrl = m.imageUrl;
|
|
17655
|
-
if (o.oneofs)
|
|
17656
|
-
d._imageUrl = "imageUrl";
|
|
17657
17801
|
}
|
|
17658
17802
|
return d;
|
|
17659
17803
|
};
|
|
@@ -23482,6 +23626,11 @@ export const proto = $root.proto = (() => {
|
|
|
23482
23626
|
ExternalAdReplyInfo.prototype.adType = null;
|
|
23483
23627
|
ExternalAdReplyInfo.prototype.wtwaWebsiteUrl = null;
|
|
23484
23628
|
ExternalAdReplyInfo.prototype.adPreviewUrl = null;
|
|
23629
|
+
ExternalAdReplyInfo.prototype.containsCtwaFlowsAutoReply = null;
|
|
23630
|
+
ExternalAdReplyInfo.prototype.agmThumbnailStrategy = null;
|
|
23631
|
+
ExternalAdReplyInfo.prototype.agmTitleStrategy = null;
|
|
23632
|
+
ExternalAdReplyInfo.prototype.agmSubtitleStrategy = null;
|
|
23633
|
+
ExternalAdReplyInfo.prototype.agmHeaderInteractionStrategy = null;
|
|
23485
23634
|
|
|
23486
23635
|
let $oneOfFields;
|
|
23487
23636
|
|
|
@@ -23620,6 +23769,31 @@ export const proto = $root.proto = (() => {
|
|
|
23620
23769
|
set: $util.oneOfSetter($oneOfFields)
|
|
23621
23770
|
});
|
|
23622
23771
|
|
|
23772
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_containsCtwaFlowsAutoReply", {
|
|
23773
|
+
get: $util.oneOfGetter($oneOfFields = ["containsCtwaFlowsAutoReply"]),
|
|
23774
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23775
|
+
});
|
|
23776
|
+
|
|
23777
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmThumbnailStrategy", {
|
|
23778
|
+
get: $util.oneOfGetter($oneOfFields = ["agmThumbnailStrategy"]),
|
|
23779
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23780
|
+
});
|
|
23781
|
+
|
|
23782
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmTitleStrategy", {
|
|
23783
|
+
get: $util.oneOfGetter($oneOfFields = ["agmTitleStrategy"]),
|
|
23784
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23785
|
+
});
|
|
23786
|
+
|
|
23787
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmSubtitleStrategy", {
|
|
23788
|
+
get: $util.oneOfGetter($oneOfFields = ["agmSubtitleStrategy"]),
|
|
23789
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23790
|
+
});
|
|
23791
|
+
|
|
23792
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmHeaderInteractionStrategy", {
|
|
23793
|
+
get: $util.oneOfGetter($oneOfFields = ["agmHeaderInteractionStrategy"]),
|
|
23794
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23795
|
+
});
|
|
23796
|
+
|
|
23623
23797
|
ExternalAdReplyInfo.create = function create(properties) {
|
|
23624
23798
|
return new ExternalAdReplyInfo(properties);
|
|
23625
23799
|
};
|
|
@@ -23681,6 +23855,16 @@ export const proto = $root.proto = (() => {
|
|
|
23681
23855
|
w.uint32(210).string(m.wtwaWebsiteUrl);
|
|
23682
23856
|
if (m.adPreviewUrl != null && Object.hasOwnProperty.call(m, "adPreviewUrl"))
|
|
23683
23857
|
w.uint32(218).string(m.adPreviewUrl);
|
|
23858
|
+
if (m.containsCtwaFlowsAutoReply != null && Object.hasOwnProperty.call(m, "containsCtwaFlowsAutoReply"))
|
|
23859
|
+
w.uint32(224).bool(m.containsCtwaFlowsAutoReply);
|
|
23860
|
+
if (m.agmThumbnailStrategy != null && Object.hasOwnProperty.call(m, "agmThumbnailStrategy"))
|
|
23861
|
+
w.uint32(232).int32(m.agmThumbnailStrategy);
|
|
23862
|
+
if (m.agmTitleStrategy != null && Object.hasOwnProperty.call(m, "agmTitleStrategy"))
|
|
23863
|
+
w.uint32(240).int32(m.agmTitleStrategy);
|
|
23864
|
+
if (m.agmSubtitleStrategy != null && Object.hasOwnProperty.call(m, "agmSubtitleStrategy"))
|
|
23865
|
+
w.uint32(248).int32(m.agmSubtitleStrategy);
|
|
23866
|
+
if (m.agmHeaderInteractionStrategy != null && Object.hasOwnProperty.call(m, "agmHeaderInteractionStrategy"))
|
|
23867
|
+
w.uint32(256).int32(m.agmHeaderInteractionStrategy);
|
|
23684
23868
|
return w;
|
|
23685
23869
|
};
|
|
23686
23870
|
|
|
@@ -23801,6 +23985,26 @@ export const proto = $root.proto = (() => {
|
|
|
23801
23985
|
m.adPreviewUrl = r.string();
|
|
23802
23986
|
break;
|
|
23803
23987
|
}
|
|
23988
|
+
case 28: {
|
|
23989
|
+
m.containsCtwaFlowsAutoReply = r.bool();
|
|
23990
|
+
break;
|
|
23991
|
+
}
|
|
23992
|
+
case 29: {
|
|
23993
|
+
m.agmThumbnailStrategy = r.int32();
|
|
23994
|
+
break;
|
|
23995
|
+
}
|
|
23996
|
+
case 30: {
|
|
23997
|
+
m.agmTitleStrategy = r.int32();
|
|
23998
|
+
break;
|
|
23999
|
+
}
|
|
24000
|
+
case 31: {
|
|
24001
|
+
m.agmSubtitleStrategy = r.int32();
|
|
24002
|
+
break;
|
|
24003
|
+
}
|
|
24004
|
+
case 32: {
|
|
24005
|
+
m.agmHeaderInteractionStrategy = r.int32();
|
|
24006
|
+
break;
|
|
24007
|
+
}
|
|
23804
24008
|
default:
|
|
23805
24009
|
r.skipType(t & 7);
|
|
23806
24010
|
break;
|
|
@@ -23927,6 +24131,21 @@ export const proto = $root.proto = (() => {
|
|
|
23927
24131
|
if (d.adPreviewUrl != null) {
|
|
23928
24132
|
m.adPreviewUrl = String(d.adPreviewUrl);
|
|
23929
24133
|
}
|
|
24134
|
+
if (d.containsCtwaFlowsAutoReply != null) {
|
|
24135
|
+
m.containsCtwaFlowsAutoReply = Boolean(d.containsCtwaFlowsAutoReply);
|
|
24136
|
+
}
|
|
24137
|
+
if (d.agmThumbnailStrategy != null) {
|
|
24138
|
+
m.agmThumbnailStrategy = d.agmThumbnailStrategy | 0;
|
|
24139
|
+
}
|
|
24140
|
+
if (d.agmTitleStrategy != null) {
|
|
24141
|
+
m.agmTitleStrategy = d.agmTitleStrategy | 0;
|
|
24142
|
+
}
|
|
24143
|
+
if (d.agmSubtitleStrategy != null) {
|
|
24144
|
+
m.agmSubtitleStrategy = d.agmSubtitleStrategy | 0;
|
|
24145
|
+
}
|
|
24146
|
+
if (d.agmHeaderInteractionStrategy != null) {
|
|
24147
|
+
m.agmHeaderInteractionStrategy = d.agmHeaderInteractionStrategy | 0;
|
|
24148
|
+
}
|
|
23930
24149
|
return m;
|
|
23931
24150
|
};
|
|
23932
24151
|
|
|
@@ -24069,6 +24288,31 @@ export const proto = $root.proto = (() => {
|
|
|
24069
24288
|
if (o.oneofs)
|
|
24070
24289
|
d._adPreviewUrl = "adPreviewUrl";
|
|
24071
24290
|
}
|
|
24291
|
+
if (m.containsCtwaFlowsAutoReply != null && m.hasOwnProperty("containsCtwaFlowsAutoReply")) {
|
|
24292
|
+
d.containsCtwaFlowsAutoReply = m.containsCtwaFlowsAutoReply;
|
|
24293
|
+
if (o.oneofs)
|
|
24294
|
+
d._containsCtwaFlowsAutoReply = "containsCtwaFlowsAutoReply";
|
|
24295
|
+
}
|
|
24296
|
+
if (m.agmThumbnailStrategy != null && m.hasOwnProperty("agmThumbnailStrategy")) {
|
|
24297
|
+
d.agmThumbnailStrategy = m.agmThumbnailStrategy;
|
|
24298
|
+
if (o.oneofs)
|
|
24299
|
+
d._agmThumbnailStrategy = "agmThumbnailStrategy";
|
|
24300
|
+
}
|
|
24301
|
+
if (m.agmTitleStrategy != null && m.hasOwnProperty("agmTitleStrategy")) {
|
|
24302
|
+
d.agmTitleStrategy = m.agmTitleStrategy;
|
|
24303
|
+
if (o.oneofs)
|
|
24304
|
+
d._agmTitleStrategy = "agmTitleStrategy";
|
|
24305
|
+
}
|
|
24306
|
+
if (m.agmSubtitleStrategy != null && m.hasOwnProperty("agmSubtitleStrategy")) {
|
|
24307
|
+
d.agmSubtitleStrategy = m.agmSubtitleStrategy;
|
|
24308
|
+
if (o.oneofs)
|
|
24309
|
+
d._agmSubtitleStrategy = "agmSubtitleStrategy";
|
|
24310
|
+
}
|
|
24311
|
+
if (m.agmHeaderInteractionStrategy != null && m.hasOwnProperty("agmHeaderInteractionStrategy")) {
|
|
24312
|
+
d.agmHeaderInteractionStrategy = m.agmHeaderInteractionStrategy;
|
|
24313
|
+
if (o.oneofs)
|
|
24314
|
+
d._agmHeaderInteractionStrategy = "agmHeaderInteractionStrategy";
|
|
24315
|
+
}
|
|
24072
24316
|
return d;
|
|
24073
24317
|
};
|
|
24074
24318
|
|
|
@@ -25019,7 +25263,7 @@ export const proto = $root.proto = (() => {
|
|
|
25019
25263
|
this[ks[i]] = p[ks[i]];
|
|
25020
25264
|
}
|
|
25021
25265
|
|
|
25022
|
-
Conversation.prototype.id =
|
|
25266
|
+
Conversation.prototype.id = "";
|
|
25023
25267
|
Conversation.prototype.messages = $util.emptyArray;
|
|
25024
25268
|
Conversation.prototype.newJid = null;
|
|
25025
25269
|
Conversation.prototype.oldJid = null;
|
|
@@ -25075,14 +25319,10 @@ export const proto = $root.proto = (() => {
|
|
|
25075
25319
|
Conversation.prototype.maibaAiThreadEnabled = null;
|
|
25076
25320
|
Conversation.prototype.isMarketingMessageThread = null;
|
|
25077
25321
|
Conversation.prototype.isSenderNewAccount = null;
|
|
25322
|
+
Conversation.prototype.afterReadDuration = null;
|
|
25078
25323
|
|
|
25079
25324
|
let $oneOfFields;
|
|
25080
25325
|
|
|
25081
|
-
Object.defineProperty(Conversation.prototype, "_id", {
|
|
25082
|
-
get: $util.oneOfGetter($oneOfFields = ["id"]),
|
|
25083
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
25084
|
-
});
|
|
25085
|
-
|
|
25086
25326
|
Object.defineProperty(Conversation.prototype, "_newJid", {
|
|
25087
25327
|
get: $util.oneOfGetter($oneOfFields = ["newJid"]),
|
|
25088
25328
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -25348,6 +25588,11 @@ export const proto = $root.proto = (() => {
|
|
|
25348
25588
|
set: $util.oneOfSetter($oneOfFields)
|
|
25349
25589
|
});
|
|
25350
25590
|
|
|
25591
|
+
Object.defineProperty(Conversation.prototype, "_afterReadDuration", {
|
|
25592
|
+
get: $util.oneOfGetter($oneOfFields = ["afterReadDuration"]),
|
|
25593
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
25594
|
+
});
|
|
25595
|
+
|
|
25351
25596
|
Conversation.create = function create(properties) {
|
|
25352
25597
|
return new Conversation(properties);
|
|
25353
25598
|
};
|
|
@@ -25471,6 +25716,8 @@ export const proto = $root.proto = (() => {
|
|
|
25471
25716
|
w.uint32(440).bool(m.isMarketingMessageThread);
|
|
25472
25717
|
if (m.isSenderNewAccount != null && Object.hasOwnProperty.call(m, "isSenderNewAccount"))
|
|
25473
25718
|
w.uint32(448).bool(m.isSenderNewAccount);
|
|
25719
|
+
if (m.afterReadDuration != null && Object.hasOwnProperty.call(m, "afterReadDuration"))
|
|
25720
|
+
w.uint32(456).uint32(m.afterReadDuration);
|
|
25474
25721
|
return w;
|
|
25475
25722
|
};
|
|
25476
25723
|
|
|
@@ -25711,6 +25958,10 @@ export const proto = $root.proto = (() => {
|
|
|
25711
25958
|
m.isSenderNewAccount = r.bool();
|
|
25712
25959
|
break;
|
|
25713
25960
|
}
|
|
25961
|
+
case 57: {
|
|
25962
|
+
m.afterReadDuration = r.uint32();
|
|
25963
|
+
break;
|
|
25964
|
+
}
|
|
25714
25965
|
default:
|
|
25715
25966
|
r.skipType(t & 7);
|
|
25716
25967
|
break;
|
|
@@ -26034,10 +26285,6 @@ export const proto = $root.proto = (() => {
|
|
|
26034
26285
|
case 3:
|
|
26035
26286
|
m.limitSharingTrigger = 3;
|
|
26036
26287
|
break;
|
|
26037
|
-
case "DEPRECATION":
|
|
26038
|
-
case 4:
|
|
26039
|
-
m.limitSharingTrigger = 4;
|
|
26040
|
-
break;
|
|
26041
26288
|
}
|
|
26042
26289
|
if (d.limitSharingInitiatedByMe != null) {
|
|
26043
26290
|
m.limitSharingInitiatedByMe = Boolean(d.limitSharingInitiatedByMe);
|
|
@@ -26051,6 +26298,9 @@ export const proto = $root.proto = (() => {
|
|
|
26051
26298
|
if (d.isSenderNewAccount != null) {
|
|
26052
26299
|
m.isSenderNewAccount = Boolean(d.isSenderNewAccount);
|
|
26053
26300
|
}
|
|
26301
|
+
if (d.afterReadDuration != null) {
|
|
26302
|
+
m.afterReadDuration = d.afterReadDuration >>> 0;
|
|
26303
|
+
}
|
|
26054
26304
|
return m;
|
|
26055
26305
|
};
|
|
26056
26306
|
|
|
@@ -26062,10 +26312,11 @@ export const proto = $root.proto = (() => {
|
|
|
26062
26312
|
d.messages = [];
|
|
26063
26313
|
d.participant = [];
|
|
26064
26314
|
}
|
|
26315
|
+
if (o.defaults) {
|
|
26316
|
+
d.id = "";
|
|
26317
|
+
}
|
|
26065
26318
|
if (m.id != null && m.hasOwnProperty("id")) {
|
|
26066
26319
|
d.id = m.id;
|
|
26067
|
-
if (o.oneofs)
|
|
26068
|
-
d._id = "id";
|
|
26069
26320
|
}
|
|
26070
26321
|
if (m.messages && m.messages.length) {
|
|
26071
26322
|
d.messages = [];
|
|
@@ -26368,6 +26619,11 @@ export const proto = $root.proto = (() => {
|
|
|
26368
26619
|
if (o.oneofs)
|
|
26369
26620
|
d._isSenderNewAccount = "isSenderNewAccount";
|
|
26370
26621
|
}
|
|
26622
|
+
if (m.afterReadDuration != null && m.hasOwnProperty("afterReadDuration")) {
|
|
26623
|
+
d.afterReadDuration = m.afterReadDuration;
|
|
26624
|
+
if (o.oneofs)
|
|
26625
|
+
d._afterReadDuration = "afterReadDuration";
|
|
26626
|
+
}
|
|
26371
26627
|
return d;
|
|
26372
26628
|
};
|
|
26373
26629
|
|
|
@@ -26745,6 +27001,7 @@ export const proto = $root.proto = (() => {
|
|
|
26745
27001
|
BusinessBroadcast.prototype.companionSupportEnabled = null;
|
|
26746
27002
|
BusinessBroadcast.prototype.campaignSyncEnabled = null;
|
|
26747
27003
|
BusinessBroadcast.prototype.insightsSyncEnabled = null;
|
|
27004
|
+
BusinessBroadcast.prototype.recipientLimit = null;
|
|
26748
27005
|
|
|
26749
27006
|
let $oneOfFields;
|
|
26750
27007
|
|
|
@@ -26768,6 +27025,11 @@ export const proto = $root.proto = (() => {
|
|
|
26768
27025
|
set: $util.oneOfSetter($oneOfFields)
|
|
26769
27026
|
});
|
|
26770
27027
|
|
|
27028
|
+
Object.defineProperty(BusinessBroadcast.prototype, "_recipientLimit", {
|
|
27029
|
+
get: $util.oneOfGetter($oneOfFields = ["recipientLimit"]),
|
|
27030
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
27031
|
+
});
|
|
27032
|
+
|
|
26771
27033
|
BusinessBroadcast.create = function create(properties) {
|
|
26772
27034
|
return new BusinessBroadcast(properties);
|
|
26773
27035
|
};
|
|
@@ -26783,6 +27045,8 @@ export const proto = $root.proto = (() => {
|
|
|
26783
27045
|
w.uint32(24).bool(m.campaignSyncEnabled);
|
|
26784
27046
|
if (m.insightsSyncEnabled != null && Object.hasOwnProperty.call(m, "insightsSyncEnabled"))
|
|
26785
27047
|
w.uint32(32).bool(m.insightsSyncEnabled);
|
|
27048
|
+
if (m.recipientLimit != null && Object.hasOwnProperty.call(m, "recipientLimit"))
|
|
27049
|
+
w.uint32(40).int32(m.recipientLimit);
|
|
26786
27050
|
return w;
|
|
26787
27051
|
};
|
|
26788
27052
|
|
|
@@ -26811,6 +27075,10 @@ export const proto = $root.proto = (() => {
|
|
|
26811
27075
|
m.insightsSyncEnabled = r.bool();
|
|
26812
27076
|
break;
|
|
26813
27077
|
}
|
|
27078
|
+
case 5: {
|
|
27079
|
+
m.recipientLimit = r.int32();
|
|
27080
|
+
break;
|
|
27081
|
+
}
|
|
26814
27082
|
default:
|
|
26815
27083
|
r.skipType(t & 7);
|
|
26816
27084
|
break;
|
|
@@ -26835,6 +27103,9 @@ export const proto = $root.proto = (() => {
|
|
|
26835
27103
|
if (d.insightsSyncEnabled != null) {
|
|
26836
27104
|
m.insightsSyncEnabled = Boolean(d.insightsSyncEnabled);
|
|
26837
27105
|
}
|
|
27106
|
+
if (d.recipientLimit != null) {
|
|
27107
|
+
m.recipientLimit = d.recipientLimit | 0;
|
|
27108
|
+
}
|
|
26838
27109
|
return m;
|
|
26839
27110
|
};
|
|
26840
27111
|
|
|
@@ -26862,6 +27133,11 @@ export const proto = $root.proto = (() => {
|
|
|
26862
27133
|
if (o.oneofs)
|
|
26863
27134
|
d._insightsSyncEnabled = "insightsSyncEnabled";
|
|
26864
27135
|
}
|
|
27136
|
+
if (m.recipientLimit != null && m.hasOwnProperty("recipientLimit")) {
|
|
27137
|
+
d.recipientLimit = m.recipientLimit;
|
|
27138
|
+
if (o.oneofs)
|
|
27139
|
+
d._recipientLimit = "recipientLimit";
|
|
27140
|
+
}
|
|
26865
27141
|
return d;
|
|
26866
27142
|
};
|
|
26867
27143
|
|
|
@@ -27944,6 +28220,7 @@ export const proto = $root.proto = (() => {
|
|
|
27944
28220
|
DeviceProps.HistorySyncConfig = (function() {
|
|
27945
28221
|
|
|
27946
28222
|
function HistorySyncConfig(p) {
|
|
28223
|
+
this.supportedBotChannelFbids = [];
|
|
27947
28224
|
if (p)
|
|
27948
28225
|
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
27949
28226
|
if (p[ks[i]] != null)
|
|
@@ -27972,6 +28249,8 @@ export const proto = $root.proto = (() => {
|
|
|
27972
28249
|
HistorySyncConfig.prototype.initialSyncMaxMessagesPerChat = null;
|
|
27973
28250
|
HistorySyncConfig.prototype.supportManusHistory = null;
|
|
27974
28251
|
HistorySyncConfig.prototype.supportHatchHistory = null;
|
|
28252
|
+
HistorySyncConfig.prototype.supportedBotChannelFbids = $util.emptyArray;
|
|
28253
|
+
HistorySyncConfig.prototype.supportInlineContacts = null;
|
|
27975
28254
|
|
|
27976
28255
|
let $oneOfFields;
|
|
27977
28256
|
|
|
@@ -28085,6 +28364,11 @@ export const proto = $root.proto = (() => {
|
|
|
28085
28364
|
set: $util.oneOfSetter($oneOfFields)
|
|
28086
28365
|
});
|
|
28087
28366
|
|
|
28367
|
+
Object.defineProperty(HistorySyncConfig.prototype, "_supportInlineContacts", {
|
|
28368
|
+
get: $util.oneOfGetter($oneOfFields = ["supportInlineContacts"]),
|
|
28369
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
28370
|
+
});
|
|
28371
|
+
|
|
28088
28372
|
HistorySyncConfig.create = function create(properties) {
|
|
28089
28373
|
return new HistorySyncConfig(properties);
|
|
28090
28374
|
};
|
|
@@ -28136,6 +28420,12 @@ export const proto = $root.proto = (() => {
|
|
|
28136
28420
|
w.uint32(168).bool(m.supportManusHistory);
|
|
28137
28421
|
if (m.supportHatchHistory != null && Object.hasOwnProperty.call(m, "supportHatchHistory"))
|
|
28138
28422
|
w.uint32(176).bool(m.supportHatchHistory);
|
|
28423
|
+
if (m.supportedBotChannelFbids != null && m.supportedBotChannelFbids.length) {
|
|
28424
|
+
for (var i = 0; i < m.supportedBotChannelFbids.length; ++i)
|
|
28425
|
+
w.uint32(186).string(m.supportedBotChannelFbids[i]);
|
|
28426
|
+
}
|
|
28427
|
+
if (m.supportInlineContacts != null && Object.hasOwnProperty.call(m, "supportInlineContacts"))
|
|
28428
|
+
w.uint32(192).bool(m.supportInlineContacts);
|
|
28139
28429
|
return w;
|
|
28140
28430
|
};
|
|
28141
28431
|
|
|
@@ -28236,6 +28526,16 @@ export const proto = $root.proto = (() => {
|
|
|
28236
28526
|
m.supportHatchHistory = r.bool();
|
|
28237
28527
|
break;
|
|
28238
28528
|
}
|
|
28529
|
+
case 23: {
|
|
28530
|
+
if (!(m.supportedBotChannelFbids && m.supportedBotChannelFbids.length))
|
|
28531
|
+
m.supportedBotChannelFbids = [];
|
|
28532
|
+
m.supportedBotChannelFbids.push(r.string());
|
|
28533
|
+
break;
|
|
28534
|
+
}
|
|
28535
|
+
case 24: {
|
|
28536
|
+
m.supportInlineContacts = r.bool();
|
|
28537
|
+
break;
|
|
28538
|
+
}
|
|
28239
28539
|
default:
|
|
28240
28540
|
r.skipType(t & 7);
|
|
28241
28541
|
break;
|
|
@@ -28314,6 +28614,17 @@ export const proto = $root.proto = (() => {
|
|
|
28314
28614
|
if (d.supportHatchHistory != null) {
|
|
28315
28615
|
m.supportHatchHistory = Boolean(d.supportHatchHistory);
|
|
28316
28616
|
}
|
|
28617
|
+
if (d.supportedBotChannelFbids) {
|
|
28618
|
+
if (!Array.isArray(d.supportedBotChannelFbids))
|
|
28619
|
+
throw TypeError(".proto.DeviceProps.HistorySyncConfig.supportedBotChannelFbids: array expected");
|
|
28620
|
+
m.supportedBotChannelFbids = [];
|
|
28621
|
+
for (var i = 0; i < d.supportedBotChannelFbids.length; ++i) {
|
|
28622
|
+
m.supportedBotChannelFbids[i] = String(d.supportedBotChannelFbids[i]);
|
|
28623
|
+
}
|
|
28624
|
+
}
|
|
28625
|
+
if (d.supportInlineContacts != null) {
|
|
28626
|
+
m.supportInlineContacts = Boolean(d.supportInlineContacts);
|
|
28627
|
+
}
|
|
28317
28628
|
return m;
|
|
28318
28629
|
};
|
|
28319
28630
|
|
|
@@ -28321,6 +28632,9 @@ export const proto = $root.proto = (() => {
|
|
|
28321
28632
|
if (!o)
|
|
28322
28633
|
o = {};
|
|
28323
28634
|
var d = {};
|
|
28635
|
+
if (o.arrays || o.defaults) {
|
|
28636
|
+
d.supportedBotChannelFbids = [];
|
|
28637
|
+
}
|
|
28324
28638
|
if (m.fullSyncDaysLimit != null && m.hasOwnProperty("fullSyncDaysLimit")) {
|
|
28325
28639
|
d.fullSyncDaysLimit = m.fullSyncDaysLimit;
|
|
28326
28640
|
if (o.oneofs)
|
|
@@ -28431,6 +28745,17 @@ export const proto = $root.proto = (() => {
|
|
|
28431
28745
|
if (o.oneofs)
|
|
28432
28746
|
d._supportHatchHistory = "supportHatchHistory";
|
|
28433
28747
|
}
|
|
28748
|
+
if (m.supportedBotChannelFbids && m.supportedBotChannelFbids.length) {
|
|
28749
|
+
d.supportedBotChannelFbids = [];
|
|
28750
|
+
for (var j = 0; j < m.supportedBotChannelFbids.length; ++j) {
|
|
28751
|
+
d.supportedBotChannelFbids[j] = m.supportedBotChannelFbids[j];
|
|
28752
|
+
}
|
|
28753
|
+
}
|
|
28754
|
+
if (m.supportInlineContacts != null && m.hasOwnProperty("supportInlineContacts")) {
|
|
28755
|
+
d.supportInlineContacts = m.supportInlineContacts;
|
|
28756
|
+
if (o.oneofs)
|
|
28757
|
+
d._supportInlineContacts = "supportInlineContacts";
|
|
28758
|
+
}
|
|
28434
28759
|
return d;
|
|
28435
28760
|
};
|
|
28436
28761
|
|
|
@@ -31319,17 +31644,12 @@ export const proto = $root.proto = (() => {
|
|
|
31319
31644
|
this[ks[i]] = p[ks[i]];
|
|
31320
31645
|
}
|
|
31321
31646
|
|
|
31322
|
-
GroupParticipant.prototype.userJid =
|
|
31647
|
+
GroupParticipant.prototype.userJid = "";
|
|
31323
31648
|
GroupParticipant.prototype.rank = null;
|
|
31324
31649
|
GroupParticipant.prototype.memberLabel = null;
|
|
31325
31650
|
|
|
31326
31651
|
let $oneOfFields;
|
|
31327
31652
|
|
|
31328
|
-
Object.defineProperty(GroupParticipant.prototype, "_userJid", {
|
|
31329
|
-
get: $util.oneOfGetter($oneOfFields = ["userJid"]),
|
|
31330
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
31331
|
-
});
|
|
31332
|
-
|
|
31333
31653
|
Object.defineProperty(GroupParticipant.prototype, "_rank", {
|
|
31334
31654
|
get: $util.oneOfGetter($oneOfFields = ["rank"]),
|
|
31335
31655
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -31424,10 +31744,11 @@ export const proto = $root.proto = (() => {
|
|
|
31424
31744
|
if (!o)
|
|
31425
31745
|
o = {};
|
|
31426
31746
|
var d = {};
|
|
31747
|
+
if (o.defaults) {
|
|
31748
|
+
d.userJid = "";
|
|
31749
|
+
}
|
|
31427
31750
|
if (m.userJid != null && m.hasOwnProperty("userJid")) {
|
|
31428
31751
|
d.userJid = m.userJid;
|
|
31429
|
-
if (o.oneofs)
|
|
31430
|
-
d._userJid = "userJid";
|
|
31431
31752
|
}
|
|
31432
31753
|
if (m.rank != null && m.hasOwnProperty("rank")) {
|
|
31433
31754
|
d.rank = o.enums === String ? $root.proto.GroupParticipant.Rank[m.rank] === undefined ? m.rank : $root.proto.GroupParticipant.Rank[m.rank] : m.rank;
|
|
@@ -31464,6 +31785,242 @@ export const proto = $root.proto = (() => {
|
|
|
31464
31785
|
return GroupParticipant;
|
|
31465
31786
|
})();
|
|
31466
31787
|
|
|
31788
|
+
proto.GroupRootKeyShare = (function() {
|
|
31789
|
+
|
|
31790
|
+
function GroupRootKeyShare(p) {
|
|
31791
|
+
this.keys = [];
|
|
31792
|
+
if (p)
|
|
31793
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
31794
|
+
if (p[ks[i]] != null)
|
|
31795
|
+
this[ks[i]] = p[ks[i]];
|
|
31796
|
+
}
|
|
31797
|
+
|
|
31798
|
+
GroupRootKeyShare.prototype.keys = $util.emptyArray;
|
|
31799
|
+
|
|
31800
|
+
GroupRootKeyShare.create = function create(properties) {
|
|
31801
|
+
return new GroupRootKeyShare(properties);
|
|
31802
|
+
};
|
|
31803
|
+
|
|
31804
|
+
GroupRootKeyShare.encode = function encode(m, w) {
|
|
31805
|
+
if (!w)
|
|
31806
|
+
w = $Writer.create();
|
|
31807
|
+
if (m.keys != null && m.keys.length) {
|
|
31808
|
+
for (var i = 0; i < m.keys.length; ++i)
|
|
31809
|
+
$root.proto.GroupRootKeyShareEntry.encode(m.keys[i], w.uint32(10).fork()).ldelim();
|
|
31810
|
+
}
|
|
31811
|
+
return w;
|
|
31812
|
+
};
|
|
31813
|
+
|
|
31814
|
+
GroupRootKeyShare.decode = function decode(r, l, e) {
|
|
31815
|
+
if (!(r instanceof $Reader))
|
|
31816
|
+
r = $Reader.create(r);
|
|
31817
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.GroupRootKeyShare();
|
|
31818
|
+
while (r.pos < c) {
|
|
31819
|
+
var t = r.uint32();
|
|
31820
|
+
if (t === e)
|
|
31821
|
+
break;
|
|
31822
|
+
switch (t >>> 3) {
|
|
31823
|
+
case 1: {
|
|
31824
|
+
if (!(m.keys && m.keys.length))
|
|
31825
|
+
m.keys = [];
|
|
31826
|
+
m.keys.push($root.proto.GroupRootKeyShareEntry.decode(r, r.uint32()));
|
|
31827
|
+
break;
|
|
31828
|
+
}
|
|
31829
|
+
default:
|
|
31830
|
+
r.skipType(t & 7);
|
|
31831
|
+
break;
|
|
31832
|
+
}
|
|
31833
|
+
}
|
|
31834
|
+
return m;
|
|
31835
|
+
};
|
|
31836
|
+
|
|
31837
|
+
GroupRootKeyShare.fromObject = function fromObject(d) {
|
|
31838
|
+
if (d instanceof $root.proto.GroupRootKeyShare)
|
|
31839
|
+
return d;
|
|
31840
|
+
var m = new $root.proto.GroupRootKeyShare();
|
|
31841
|
+
if (d.keys) {
|
|
31842
|
+
if (!Array.isArray(d.keys))
|
|
31843
|
+
throw TypeError(".proto.GroupRootKeyShare.keys: array expected");
|
|
31844
|
+
m.keys = [];
|
|
31845
|
+
for (var i = 0; i < d.keys.length; ++i) {
|
|
31846
|
+
if (typeof d.keys[i] !== "object")
|
|
31847
|
+
throw TypeError(".proto.GroupRootKeyShare.keys: object expected");
|
|
31848
|
+
m.keys[i] = $root.proto.GroupRootKeyShareEntry.fromObject(d.keys[i]);
|
|
31849
|
+
}
|
|
31850
|
+
}
|
|
31851
|
+
return m;
|
|
31852
|
+
};
|
|
31853
|
+
|
|
31854
|
+
GroupRootKeyShare.toObject = function toObject(m, o) {
|
|
31855
|
+
if (!o)
|
|
31856
|
+
o = {};
|
|
31857
|
+
var d = {};
|
|
31858
|
+
if (o.arrays || o.defaults) {
|
|
31859
|
+
d.keys = [];
|
|
31860
|
+
}
|
|
31861
|
+
if (m.keys && m.keys.length) {
|
|
31862
|
+
d.keys = [];
|
|
31863
|
+
for (var j = 0; j < m.keys.length; ++j) {
|
|
31864
|
+
d.keys[j] = $root.proto.GroupRootKeyShareEntry.toObject(m.keys[j], o);
|
|
31865
|
+
}
|
|
31866
|
+
}
|
|
31867
|
+
return d;
|
|
31868
|
+
};
|
|
31869
|
+
|
|
31870
|
+
GroupRootKeyShare.prototype.toJSON = function toJSON() {
|
|
31871
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
31872
|
+
};
|
|
31873
|
+
|
|
31874
|
+
GroupRootKeyShare.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
31875
|
+
if (typeUrlPrefix === undefined) {
|
|
31876
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
31877
|
+
}
|
|
31878
|
+
return typeUrlPrefix + "/proto.GroupRootKeyShare";
|
|
31879
|
+
};
|
|
31880
|
+
|
|
31881
|
+
return GroupRootKeyShare;
|
|
31882
|
+
})();
|
|
31883
|
+
|
|
31884
|
+
proto.GroupRootKeyShareEntry = (function() {
|
|
31885
|
+
|
|
31886
|
+
function GroupRootKeyShareEntry(p) {
|
|
31887
|
+
if (p)
|
|
31888
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
31889
|
+
if (p[ks[i]] != null)
|
|
31890
|
+
this[ks[i]] = p[ks[i]];
|
|
31891
|
+
}
|
|
31892
|
+
|
|
31893
|
+
GroupRootKeyShareEntry.prototype.groupRootKey = null;
|
|
31894
|
+
GroupRootKeyShareEntry.prototype.keyId = null;
|
|
31895
|
+
GroupRootKeyShareEntry.prototype.expiryTimestampMs = null;
|
|
31896
|
+
|
|
31897
|
+
let $oneOfFields;
|
|
31898
|
+
|
|
31899
|
+
Object.defineProperty(GroupRootKeyShareEntry.prototype, "_groupRootKey", {
|
|
31900
|
+
get: $util.oneOfGetter($oneOfFields = ["groupRootKey"]),
|
|
31901
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
31902
|
+
});
|
|
31903
|
+
|
|
31904
|
+
Object.defineProperty(GroupRootKeyShareEntry.prototype, "_keyId", {
|
|
31905
|
+
get: $util.oneOfGetter($oneOfFields = ["keyId"]),
|
|
31906
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
31907
|
+
});
|
|
31908
|
+
|
|
31909
|
+
Object.defineProperty(GroupRootKeyShareEntry.prototype, "_expiryTimestampMs", {
|
|
31910
|
+
get: $util.oneOfGetter($oneOfFields = ["expiryTimestampMs"]),
|
|
31911
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
31912
|
+
});
|
|
31913
|
+
|
|
31914
|
+
GroupRootKeyShareEntry.create = function create(properties) {
|
|
31915
|
+
return new GroupRootKeyShareEntry(properties);
|
|
31916
|
+
};
|
|
31917
|
+
|
|
31918
|
+
GroupRootKeyShareEntry.encode = function encode(m, w) {
|
|
31919
|
+
if (!w)
|
|
31920
|
+
w = $Writer.create();
|
|
31921
|
+
if (m.groupRootKey != null && Object.hasOwnProperty.call(m, "groupRootKey"))
|
|
31922
|
+
w.uint32(10).bytes(m.groupRootKey);
|
|
31923
|
+
if (m.keyId != null && Object.hasOwnProperty.call(m, "keyId"))
|
|
31924
|
+
w.uint32(18).string(m.keyId);
|
|
31925
|
+
if (m.expiryTimestampMs != null && Object.hasOwnProperty.call(m, "expiryTimestampMs"))
|
|
31926
|
+
w.uint32(24).int64(m.expiryTimestampMs);
|
|
31927
|
+
return w;
|
|
31928
|
+
};
|
|
31929
|
+
|
|
31930
|
+
GroupRootKeyShareEntry.decode = function decode(r, l, e) {
|
|
31931
|
+
if (!(r instanceof $Reader))
|
|
31932
|
+
r = $Reader.create(r);
|
|
31933
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.GroupRootKeyShareEntry();
|
|
31934
|
+
while (r.pos < c) {
|
|
31935
|
+
var t = r.uint32();
|
|
31936
|
+
if (t === e)
|
|
31937
|
+
break;
|
|
31938
|
+
switch (t >>> 3) {
|
|
31939
|
+
case 1: {
|
|
31940
|
+
m.groupRootKey = r.bytes();
|
|
31941
|
+
break;
|
|
31942
|
+
}
|
|
31943
|
+
case 2: {
|
|
31944
|
+
m.keyId = r.string();
|
|
31945
|
+
break;
|
|
31946
|
+
}
|
|
31947
|
+
case 3: {
|
|
31948
|
+
m.expiryTimestampMs = r.int64();
|
|
31949
|
+
break;
|
|
31950
|
+
}
|
|
31951
|
+
default:
|
|
31952
|
+
r.skipType(t & 7);
|
|
31953
|
+
break;
|
|
31954
|
+
}
|
|
31955
|
+
}
|
|
31956
|
+
return m;
|
|
31957
|
+
};
|
|
31958
|
+
|
|
31959
|
+
GroupRootKeyShareEntry.fromObject = function fromObject(d) {
|
|
31960
|
+
if (d instanceof $root.proto.GroupRootKeyShareEntry)
|
|
31961
|
+
return d;
|
|
31962
|
+
var m = new $root.proto.GroupRootKeyShareEntry();
|
|
31963
|
+
if (d.groupRootKey != null) {
|
|
31964
|
+
if (typeof d.groupRootKey === "string")
|
|
31965
|
+
$util.base64.decode(d.groupRootKey, m.groupRootKey = $util.newBuffer($util.base64.length(d.groupRootKey)), 0);
|
|
31966
|
+
else if (d.groupRootKey.length >= 0)
|
|
31967
|
+
m.groupRootKey = d.groupRootKey;
|
|
31968
|
+
}
|
|
31969
|
+
if (d.keyId != null) {
|
|
31970
|
+
m.keyId = String(d.keyId);
|
|
31971
|
+
}
|
|
31972
|
+
if (d.expiryTimestampMs != null) {
|
|
31973
|
+
if ($util.Long)
|
|
31974
|
+
(m.expiryTimestampMs = $util.Long.fromValue(d.expiryTimestampMs)).unsigned = false;
|
|
31975
|
+
else if (typeof d.expiryTimestampMs === "string")
|
|
31976
|
+
m.expiryTimestampMs = parseInt(d.expiryTimestampMs, 10);
|
|
31977
|
+
else if (typeof d.expiryTimestampMs === "number")
|
|
31978
|
+
m.expiryTimestampMs = d.expiryTimestampMs;
|
|
31979
|
+
else if (typeof d.expiryTimestampMs === "object")
|
|
31980
|
+
m.expiryTimestampMs = new $util.LongBits(d.expiryTimestampMs.low >>> 0, d.expiryTimestampMs.high >>> 0).toNumber();
|
|
31981
|
+
}
|
|
31982
|
+
return m;
|
|
31983
|
+
};
|
|
31984
|
+
|
|
31985
|
+
GroupRootKeyShareEntry.toObject = function toObject(m, o) {
|
|
31986
|
+
if (!o)
|
|
31987
|
+
o = {};
|
|
31988
|
+
var d = {};
|
|
31989
|
+
if (m.groupRootKey != null && m.hasOwnProperty("groupRootKey")) {
|
|
31990
|
+
d.groupRootKey = o.bytes === String ? $util.base64.encode(m.groupRootKey, 0, m.groupRootKey.length) : o.bytes === Array ? Array.prototype.slice.call(m.groupRootKey) : m.groupRootKey;
|
|
31991
|
+
if (o.oneofs)
|
|
31992
|
+
d._groupRootKey = "groupRootKey";
|
|
31993
|
+
}
|
|
31994
|
+
if (m.keyId != null && m.hasOwnProperty("keyId")) {
|
|
31995
|
+
d.keyId = m.keyId;
|
|
31996
|
+
if (o.oneofs)
|
|
31997
|
+
d._keyId = "keyId";
|
|
31998
|
+
}
|
|
31999
|
+
if (m.expiryTimestampMs != null && m.hasOwnProperty("expiryTimestampMs")) {
|
|
32000
|
+
if (typeof m.expiryTimestampMs === "number")
|
|
32001
|
+
d.expiryTimestampMs = o.longs === String ? String(m.expiryTimestampMs) : m.expiryTimestampMs;
|
|
32002
|
+
else
|
|
32003
|
+
d.expiryTimestampMs = o.longs === String ? longToString(m.expiryTimestampMs) : o.longs === Number ? longToNumber(m.expiryTimestampMs) : m.expiryTimestampMs;
|
|
32004
|
+
if (o.oneofs)
|
|
32005
|
+
d._expiryTimestampMs = "expiryTimestampMs";
|
|
32006
|
+
}
|
|
32007
|
+
return d;
|
|
32008
|
+
};
|
|
32009
|
+
|
|
32010
|
+
GroupRootKeyShareEntry.prototype.toJSON = function toJSON() {
|
|
32011
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32012
|
+
};
|
|
32013
|
+
|
|
32014
|
+
GroupRootKeyShareEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
32015
|
+
if (typeUrlPrefix === undefined) {
|
|
32016
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
32017
|
+
}
|
|
32018
|
+
return typeUrlPrefix + "/proto.GroupRootKeyShareEntry";
|
|
32019
|
+
};
|
|
32020
|
+
|
|
32021
|
+
return GroupRootKeyShareEntry;
|
|
32022
|
+
})();
|
|
32023
|
+
|
|
31467
32024
|
proto.HandshakeMessage = (function() {
|
|
31468
32025
|
|
|
31469
32026
|
function HandshakeMessage(p) {
|
|
@@ -31790,6 +32347,8 @@ export const proto = $root.proto = (() => {
|
|
|
31790
32347
|
ClientHello.prototype.paddedBytes = null;
|
|
31791
32348
|
ClientHello.prototype.sendServerHelloPaddedBytes = null;
|
|
31792
32349
|
ClientHello.prototype.simulateXxkemFs = null;
|
|
32350
|
+
ClientHello.prototype.pqMode = null;
|
|
32351
|
+
ClientHello.prototype.extendedEphemeral = null;
|
|
31793
32352
|
|
|
31794
32353
|
let $oneOfFields;
|
|
31795
32354
|
|
|
@@ -31833,6 +32392,16 @@ export const proto = $root.proto = (() => {
|
|
|
31833
32392
|
set: $util.oneOfSetter($oneOfFields)
|
|
31834
32393
|
});
|
|
31835
32394
|
|
|
32395
|
+
Object.defineProperty(ClientHello.prototype, "_pqMode", {
|
|
32396
|
+
get: $util.oneOfGetter($oneOfFields = ["pqMode"]),
|
|
32397
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
32398
|
+
});
|
|
32399
|
+
|
|
32400
|
+
Object.defineProperty(ClientHello.prototype, "_extendedEphemeral", {
|
|
32401
|
+
get: $util.oneOfGetter($oneOfFields = ["extendedEphemeral"]),
|
|
32402
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
32403
|
+
});
|
|
32404
|
+
|
|
31836
32405
|
ClientHello.create = function create(properties) {
|
|
31837
32406
|
return new ClientHello(properties);
|
|
31838
32407
|
};
|
|
@@ -31856,6 +32425,10 @@ export const proto = $root.proto = (() => {
|
|
|
31856
32425
|
w.uint32(56).bool(m.sendServerHelloPaddedBytes);
|
|
31857
32426
|
if (m.simulateXxkemFs != null && Object.hasOwnProperty.call(m, "simulateXxkemFs"))
|
|
31858
32427
|
w.uint32(64).bool(m.simulateXxkemFs);
|
|
32428
|
+
if (m.pqMode != null && Object.hasOwnProperty.call(m, "pqMode"))
|
|
32429
|
+
w.uint32(72).int32(m.pqMode);
|
|
32430
|
+
if (m.extendedEphemeral != null && Object.hasOwnProperty.call(m, "extendedEphemeral"))
|
|
32431
|
+
w.uint32(82).bytes(m.extendedEphemeral);
|
|
31859
32432
|
return w;
|
|
31860
32433
|
};
|
|
31861
32434
|
|
|
@@ -31900,6 +32473,14 @@ export const proto = $root.proto = (() => {
|
|
|
31900
32473
|
m.simulateXxkemFs = r.bool();
|
|
31901
32474
|
break;
|
|
31902
32475
|
}
|
|
32476
|
+
case 9: {
|
|
32477
|
+
m.pqMode = r.int32();
|
|
32478
|
+
break;
|
|
32479
|
+
}
|
|
32480
|
+
case 10: {
|
|
32481
|
+
m.extendedEphemeral = r.bytes();
|
|
32482
|
+
break;
|
|
32483
|
+
}
|
|
31903
32484
|
default:
|
|
31904
32485
|
r.skipType(t & 7);
|
|
31905
32486
|
break;
|
|
@@ -31951,6 +32532,56 @@ export const proto = $root.proto = (() => {
|
|
|
31951
32532
|
if (d.simulateXxkemFs != null) {
|
|
31952
32533
|
m.simulateXxkemFs = Boolean(d.simulateXxkemFs);
|
|
31953
32534
|
}
|
|
32535
|
+
switch (d.pqMode) {
|
|
32536
|
+
default:
|
|
32537
|
+
if (typeof d.pqMode === "number") {
|
|
32538
|
+
m.pqMode = d.pqMode;
|
|
32539
|
+
break;
|
|
32540
|
+
}
|
|
32541
|
+
break;
|
|
32542
|
+
case "HANDSHAKE_PQ_MODE_UNKNOWN":
|
|
32543
|
+
case 0:
|
|
32544
|
+
m.pqMode = 0;
|
|
32545
|
+
break;
|
|
32546
|
+
case "XXKEM":
|
|
32547
|
+
case 1:
|
|
32548
|
+
m.pqMode = 1;
|
|
32549
|
+
break;
|
|
32550
|
+
case "XXKEM_FS":
|
|
32551
|
+
case 2:
|
|
32552
|
+
m.pqMode = 2;
|
|
32553
|
+
break;
|
|
32554
|
+
case "WA_CLASSICAL":
|
|
32555
|
+
case 3:
|
|
32556
|
+
m.pqMode = 3;
|
|
32557
|
+
break;
|
|
32558
|
+
case "WA_PQ":
|
|
32559
|
+
case 4:
|
|
32560
|
+
m.pqMode = 4;
|
|
32561
|
+
break;
|
|
32562
|
+
case "IKKEM":
|
|
32563
|
+
case 5:
|
|
32564
|
+
m.pqMode = 5;
|
|
32565
|
+
break;
|
|
32566
|
+
case "IKKEM_FS":
|
|
32567
|
+
case 6:
|
|
32568
|
+
m.pqMode = 6;
|
|
32569
|
+
break;
|
|
32570
|
+
case "XXKEM_2":
|
|
32571
|
+
case 7:
|
|
32572
|
+
m.pqMode = 7;
|
|
32573
|
+
break;
|
|
32574
|
+
case "IKKEM_2":
|
|
32575
|
+
case 8:
|
|
32576
|
+
m.pqMode = 8;
|
|
32577
|
+
break;
|
|
32578
|
+
}
|
|
32579
|
+
if (d.extendedEphemeral != null) {
|
|
32580
|
+
if (typeof d.extendedEphemeral === "string")
|
|
32581
|
+
$util.base64.decode(d.extendedEphemeral, m.extendedEphemeral = $util.newBuffer($util.base64.length(d.extendedEphemeral)), 0);
|
|
32582
|
+
else if (d.extendedEphemeral.length >= 0)
|
|
32583
|
+
m.extendedEphemeral = d.extendedEphemeral;
|
|
32584
|
+
}
|
|
31954
32585
|
return m;
|
|
31955
32586
|
};
|
|
31956
32587
|
|
|
@@ -31998,6 +32629,16 @@ export const proto = $root.proto = (() => {
|
|
|
31998
32629
|
if (o.oneofs)
|
|
31999
32630
|
d._simulateXxkemFs = "simulateXxkemFs";
|
|
32000
32631
|
}
|
|
32632
|
+
if (m.pqMode != null && m.hasOwnProperty("pqMode")) {
|
|
32633
|
+
d.pqMode = o.enums === String ? $root.proto.HandshakeMessage.HandshakePqMode[m.pqMode] === undefined ? m.pqMode : $root.proto.HandshakeMessage.HandshakePqMode[m.pqMode] : m.pqMode;
|
|
32634
|
+
if (o.oneofs)
|
|
32635
|
+
d._pqMode = "pqMode";
|
|
32636
|
+
}
|
|
32637
|
+
if (m.extendedEphemeral != null && m.hasOwnProperty("extendedEphemeral")) {
|
|
32638
|
+
d.extendedEphemeral = o.bytes === String ? $util.base64.encode(m.extendedEphemeral, 0, m.extendedEphemeral.length) : o.bytes === Array ? Array.prototype.slice.call(m.extendedEphemeral) : m.extendedEphemeral;
|
|
32639
|
+
if (o.oneofs)
|
|
32640
|
+
d._extendedEphemeral = "extendedEphemeral";
|
|
32641
|
+
}
|
|
32001
32642
|
return d;
|
|
32002
32643
|
};
|
|
32003
32644
|
|
|
@@ -32015,6 +32656,20 @@ export const proto = $root.proto = (() => {
|
|
|
32015
32656
|
return ClientHello;
|
|
32016
32657
|
})();
|
|
32017
32658
|
|
|
32659
|
+
HandshakeMessage.HandshakePqMode = (function() {
|
|
32660
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
32661
|
+
values[valuesById[0] = "HANDSHAKE_PQ_MODE_UNKNOWN"] = 0;
|
|
32662
|
+
values[valuesById[1] = "XXKEM"] = 1;
|
|
32663
|
+
values[valuesById[2] = "XXKEM_FS"] = 2;
|
|
32664
|
+
values[valuesById[3] = "WA_CLASSICAL"] = 3;
|
|
32665
|
+
values[valuesById[4] = "WA_PQ"] = 4;
|
|
32666
|
+
values[valuesById[5] = "IKKEM"] = 5;
|
|
32667
|
+
values[valuesById[6] = "IKKEM_FS"] = 6;
|
|
32668
|
+
values[valuesById[7] = "XXKEM_2"] = 7;
|
|
32669
|
+
values[valuesById[8] = "IKKEM_2"] = 8;
|
|
32670
|
+
return values;
|
|
32671
|
+
})();
|
|
32672
|
+
|
|
32018
32673
|
HandshakeMessage.ServerHello = (function() {
|
|
32019
32674
|
|
|
32020
32675
|
function ServerHello(p) {
|
|
@@ -32029,6 +32684,7 @@ export const proto = $root.proto = (() => {
|
|
|
32029
32684
|
ServerHello.prototype.payload = null;
|
|
32030
32685
|
ServerHello.prototype.extendedStatic = null;
|
|
32031
32686
|
ServerHello.prototype.paddingBytes = null;
|
|
32687
|
+
ServerHello.prototype.extendedCiphertext = null;
|
|
32032
32688
|
|
|
32033
32689
|
let $oneOfFields;
|
|
32034
32690
|
|
|
@@ -32057,6 +32713,11 @@ export const proto = $root.proto = (() => {
|
|
|
32057
32713
|
set: $util.oneOfSetter($oneOfFields)
|
|
32058
32714
|
});
|
|
32059
32715
|
|
|
32716
|
+
Object.defineProperty(ServerHello.prototype, "_extendedCiphertext", {
|
|
32717
|
+
get: $util.oneOfGetter($oneOfFields = ["extendedCiphertext"]),
|
|
32718
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
32719
|
+
});
|
|
32720
|
+
|
|
32060
32721
|
ServerHello.create = function create(properties) {
|
|
32061
32722
|
return new ServerHello(properties);
|
|
32062
32723
|
};
|
|
@@ -32074,6 +32735,8 @@ export const proto = $root.proto = (() => {
|
|
|
32074
32735
|
w.uint32(34).bytes(m.extendedStatic);
|
|
32075
32736
|
if (m.paddingBytes != null && Object.hasOwnProperty.call(m, "paddingBytes"))
|
|
32076
32737
|
w.uint32(42).bytes(m.paddingBytes);
|
|
32738
|
+
if (m.extendedCiphertext != null && Object.hasOwnProperty.call(m, "extendedCiphertext"))
|
|
32739
|
+
w.uint32(50).bytes(m.extendedCiphertext);
|
|
32077
32740
|
return w;
|
|
32078
32741
|
};
|
|
32079
32742
|
|
|
@@ -32106,6 +32769,10 @@ export const proto = $root.proto = (() => {
|
|
|
32106
32769
|
m.paddingBytes = r.bytes();
|
|
32107
32770
|
break;
|
|
32108
32771
|
}
|
|
32772
|
+
case 6: {
|
|
32773
|
+
m.extendedCiphertext = r.bytes();
|
|
32774
|
+
break;
|
|
32775
|
+
}
|
|
32109
32776
|
default:
|
|
32110
32777
|
r.skipType(t & 7);
|
|
32111
32778
|
break;
|
|
@@ -32148,6 +32815,12 @@ export const proto = $root.proto = (() => {
|
|
|
32148
32815
|
else if (d.paddingBytes.length >= 0)
|
|
32149
32816
|
m.paddingBytes = d.paddingBytes;
|
|
32150
32817
|
}
|
|
32818
|
+
if (d.extendedCiphertext != null) {
|
|
32819
|
+
if (typeof d.extendedCiphertext === "string")
|
|
32820
|
+
$util.base64.decode(d.extendedCiphertext, m.extendedCiphertext = $util.newBuffer($util.base64.length(d.extendedCiphertext)), 0);
|
|
32821
|
+
else if (d.extendedCiphertext.length >= 0)
|
|
32822
|
+
m.extendedCiphertext = d.extendedCiphertext;
|
|
32823
|
+
}
|
|
32151
32824
|
return m;
|
|
32152
32825
|
};
|
|
32153
32826
|
|
|
@@ -32180,6 +32853,11 @@ export const proto = $root.proto = (() => {
|
|
|
32180
32853
|
if (o.oneofs)
|
|
32181
32854
|
d._paddingBytes = "paddingBytes";
|
|
32182
32855
|
}
|
|
32856
|
+
if (m.extendedCiphertext != null && m.hasOwnProperty("extendedCiphertext")) {
|
|
32857
|
+
d.extendedCiphertext = o.bytes === String ? $util.base64.encode(m.extendedCiphertext, 0, m.extendedCiphertext.length) : o.bytes === Array ? Array.prototype.slice.call(m.extendedCiphertext) : m.extendedCiphertext;
|
|
32858
|
+
if (o.oneofs)
|
|
32859
|
+
d._extendedCiphertext = "extendedCiphertext";
|
|
32860
|
+
}
|
|
32183
32861
|
return d;
|
|
32184
32862
|
};
|
|
32185
32863
|
|
|
@@ -32211,6 +32889,7 @@ export const proto = $root.proto = (() => {
|
|
|
32211
32889
|
this.callLogRecords = [];
|
|
32212
32890
|
this.phoneNumberToLidMappings = [];
|
|
32213
32891
|
this.accounts = [];
|
|
32892
|
+
this.inlineContacts = [];
|
|
32214
32893
|
if (p)
|
|
32215
32894
|
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
32216
32895
|
if (p[ks[i]] != null)
|
|
@@ -32235,6 +32914,8 @@ export const proto = $root.proto = (() => {
|
|
|
32235
32914
|
HistorySync.prototype.shareableChatIdentifierEncryptionKey = null;
|
|
32236
32915
|
HistorySync.prototype.accounts = $util.emptyArray;
|
|
32237
32916
|
HistorySync.prototype.nctSalt = null;
|
|
32917
|
+
HistorySync.prototype.inlineContacts = $util.emptyArray;
|
|
32918
|
+
HistorySync.prototype.inlineContactsProvided = null;
|
|
32238
32919
|
|
|
32239
32920
|
let $oneOfFields;
|
|
32240
32921
|
|
|
@@ -32283,6 +32964,11 @@ export const proto = $root.proto = (() => {
|
|
|
32283
32964
|
set: $util.oneOfSetter($oneOfFields)
|
|
32284
32965
|
});
|
|
32285
32966
|
|
|
32967
|
+
Object.defineProperty(HistorySync.prototype, "_inlineContactsProvided", {
|
|
32968
|
+
get: $util.oneOfGetter($oneOfFields = ["inlineContactsProvided"]),
|
|
32969
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
32970
|
+
});
|
|
32971
|
+
|
|
32286
32972
|
HistorySync.create = function create(properties) {
|
|
32287
32973
|
return new HistorySync(properties);
|
|
32288
32974
|
};
|
|
@@ -32342,6 +33028,12 @@ export const proto = $root.proto = (() => {
|
|
|
32342
33028
|
}
|
|
32343
33029
|
if (m.nctSalt != null && Object.hasOwnProperty.call(m, "nctSalt"))
|
|
32344
33030
|
w.uint32(154).bytes(m.nctSalt);
|
|
33031
|
+
if (m.inlineContacts != null && m.inlineContacts.length) {
|
|
33032
|
+
for (var i = 0; i < m.inlineContacts.length; ++i)
|
|
33033
|
+
$root.proto.InlineContact.encode(m.inlineContacts[i], w.uint32(162).fork()).ldelim();
|
|
33034
|
+
}
|
|
33035
|
+
if (m.inlineContactsProvided != null && Object.hasOwnProperty.call(m, "inlineContactsProvided"))
|
|
33036
|
+
w.uint32(168).bool(m.inlineContactsProvided);
|
|
32345
33037
|
return w;
|
|
32346
33038
|
};
|
|
32347
33039
|
|
|
@@ -32442,6 +33134,16 @@ export const proto = $root.proto = (() => {
|
|
|
32442
33134
|
m.nctSalt = r.bytes();
|
|
32443
33135
|
break;
|
|
32444
33136
|
}
|
|
33137
|
+
case 20: {
|
|
33138
|
+
if (!(m.inlineContacts && m.inlineContacts.length))
|
|
33139
|
+
m.inlineContacts = [];
|
|
33140
|
+
m.inlineContacts.push($root.proto.InlineContact.decode(r, r.uint32()));
|
|
33141
|
+
break;
|
|
33142
|
+
}
|
|
33143
|
+
case 21: {
|
|
33144
|
+
m.inlineContactsProvided = r.bool();
|
|
33145
|
+
break;
|
|
33146
|
+
}
|
|
32445
33147
|
default:
|
|
32446
33148
|
r.skipType(t & 7);
|
|
32447
33149
|
break;
|
|
@@ -32621,6 +33323,19 @@ export const proto = $root.proto = (() => {
|
|
|
32621
33323
|
else if (d.nctSalt.length >= 0)
|
|
32622
33324
|
m.nctSalt = d.nctSalt;
|
|
32623
33325
|
}
|
|
33326
|
+
if (d.inlineContacts) {
|
|
33327
|
+
if (!Array.isArray(d.inlineContacts))
|
|
33328
|
+
throw TypeError(".proto.HistorySync.inlineContacts: array expected");
|
|
33329
|
+
m.inlineContacts = [];
|
|
33330
|
+
for (var i = 0; i < d.inlineContacts.length; ++i) {
|
|
33331
|
+
if (typeof d.inlineContacts[i] !== "object")
|
|
33332
|
+
throw TypeError(".proto.HistorySync.inlineContacts: object expected");
|
|
33333
|
+
m.inlineContacts[i] = $root.proto.InlineContact.fromObject(d.inlineContacts[i]);
|
|
33334
|
+
}
|
|
33335
|
+
}
|
|
33336
|
+
if (d.inlineContactsProvided != null) {
|
|
33337
|
+
m.inlineContactsProvided = Boolean(d.inlineContactsProvided);
|
|
33338
|
+
}
|
|
32624
33339
|
return m;
|
|
32625
33340
|
};
|
|
32626
33341
|
|
|
@@ -32637,6 +33352,7 @@ export const proto = $root.proto = (() => {
|
|
|
32637
33352
|
d.callLogRecords = [];
|
|
32638
33353
|
d.phoneNumberToLidMappings = [];
|
|
32639
33354
|
d.accounts = [];
|
|
33355
|
+
d.inlineContacts = [];
|
|
32640
33356
|
}
|
|
32641
33357
|
if (o.defaults) {
|
|
32642
33358
|
d.syncType = o.enums === String ? "INITIAL_BOOTSTRAP" : 0;
|
|
@@ -32737,6 +33453,17 @@ export const proto = $root.proto = (() => {
|
|
|
32737
33453
|
if (o.oneofs)
|
|
32738
33454
|
d._nctSalt = "nctSalt";
|
|
32739
33455
|
}
|
|
33456
|
+
if (m.inlineContacts && m.inlineContacts.length) {
|
|
33457
|
+
d.inlineContacts = [];
|
|
33458
|
+
for (var j = 0; j < m.inlineContacts.length; ++j) {
|
|
33459
|
+
d.inlineContacts[j] = $root.proto.InlineContact.toObject(m.inlineContacts[j], o);
|
|
33460
|
+
}
|
|
33461
|
+
}
|
|
33462
|
+
if (m.inlineContactsProvided != null && m.hasOwnProperty("inlineContactsProvided")) {
|
|
33463
|
+
d.inlineContactsProvided = m.inlineContactsProvided;
|
|
33464
|
+
if (o.oneofs)
|
|
33465
|
+
d._inlineContactsProvided = "inlineContactsProvided";
|
|
33466
|
+
}
|
|
32740
33467
|
return d;
|
|
32741
33468
|
};
|
|
32742
33469
|
|
|
@@ -34353,6 +35080,173 @@ export const proto = $root.proto = (() => {
|
|
|
34353
35080
|
return InThreadSurveyMetadata;
|
|
34354
35081
|
})();
|
|
34355
35082
|
|
|
35083
|
+
proto.InlineContact = (function() {
|
|
35084
|
+
|
|
35085
|
+
function InlineContact(p) {
|
|
35086
|
+
if (p)
|
|
35087
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
35088
|
+
if (p[ks[i]] != null)
|
|
35089
|
+
this[ks[i]] = p[ks[i]];
|
|
35090
|
+
}
|
|
35091
|
+
|
|
35092
|
+
InlineContact.prototype.pnJid = null;
|
|
35093
|
+
InlineContact.prototype.lidJid = null;
|
|
35094
|
+
InlineContact.prototype.fullName = null;
|
|
35095
|
+
InlineContact.prototype.firstName = null;
|
|
35096
|
+
InlineContact.prototype.username = null;
|
|
35097
|
+
|
|
35098
|
+
let $oneOfFields;
|
|
35099
|
+
|
|
35100
|
+
Object.defineProperty(InlineContact.prototype, "_pnJid", {
|
|
35101
|
+
get: $util.oneOfGetter($oneOfFields = ["pnJid"]),
|
|
35102
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35103
|
+
});
|
|
35104
|
+
|
|
35105
|
+
Object.defineProperty(InlineContact.prototype, "_lidJid", {
|
|
35106
|
+
get: $util.oneOfGetter($oneOfFields = ["lidJid"]),
|
|
35107
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35108
|
+
});
|
|
35109
|
+
|
|
35110
|
+
Object.defineProperty(InlineContact.prototype, "_fullName", {
|
|
35111
|
+
get: $util.oneOfGetter($oneOfFields = ["fullName"]),
|
|
35112
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35113
|
+
});
|
|
35114
|
+
|
|
35115
|
+
Object.defineProperty(InlineContact.prototype, "_firstName", {
|
|
35116
|
+
get: $util.oneOfGetter($oneOfFields = ["firstName"]),
|
|
35117
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35118
|
+
});
|
|
35119
|
+
|
|
35120
|
+
Object.defineProperty(InlineContact.prototype, "_username", {
|
|
35121
|
+
get: $util.oneOfGetter($oneOfFields = ["username"]),
|
|
35122
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35123
|
+
});
|
|
35124
|
+
|
|
35125
|
+
InlineContact.create = function create(properties) {
|
|
35126
|
+
return new InlineContact(properties);
|
|
35127
|
+
};
|
|
35128
|
+
|
|
35129
|
+
InlineContact.encode = function encode(m, w) {
|
|
35130
|
+
if (!w)
|
|
35131
|
+
w = $Writer.create();
|
|
35132
|
+
if (m.pnJid != null && Object.hasOwnProperty.call(m, "pnJid"))
|
|
35133
|
+
w.uint32(10).string(m.pnJid);
|
|
35134
|
+
if (m.lidJid != null && Object.hasOwnProperty.call(m, "lidJid"))
|
|
35135
|
+
w.uint32(18).string(m.lidJid);
|
|
35136
|
+
if (m.fullName != null && Object.hasOwnProperty.call(m, "fullName"))
|
|
35137
|
+
w.uint32(26).string(m.fullName);
|
|
35138
|
+
if (m.firstName != null && Object.hasOwnProperty.call(m, "firstName"))
|
|
35139
|
+
w.uint32(34).string(m.firstName);
|
|
35140
|
+
if (m.username != null && Object.hasOwnProperty.call(m, "username"))
|
|
35141
|
+
w.uint32(42).string(m.username);
|
|
35142
|
+
return w;
|
|
35143
|
+
};
|
|
35144
|
+
|
|
35145
|
+
InlineContact.decode = function decode(r, l, e) {
|
|
35146
|
+
if (!(r instanceof $Reader))
|
|
35147
|
+
r = $Reader.create(r);
|
|
35148
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InlineContact();
|
|
35149
|
+
while (r.pos < c) {
|
|
35150
|
+
var t = r.uint32();
|
|
35151
|
+
if (t === e)
|
|
35152
|
+
break;
|
|
35153
|
+
switch (t >>> 3) {
|
|
35154
|
+
case 1: {
|
|
35155
|
+
m.pnJid = r.string();
|
|
35156
|
+
break;
|
|
35157
|
+
}
|
|
35158
|
+
case 2: {
|
|
35159
|
+
m.lidJid = r.string();
|
|
35160
|
+
break;
|
|
35161
|
+
}
|
|
35162
|
+
case 3: {
|
|
35163
|
+
m.fullName = r.string();
|
|
35164
|
+
break;
|
|
35165
|
+
}
|
|
35166
|
+
case 4: {
|
|
35167
|
+
m.firstName = r.string();
|
|
35168
|
+
break;
|
|
35169
|
+
}
|
|
35170
|
+
case 5: {
|
|
35171
|
+
m.username = r.string();
|
|
35172
|
+
break;
|
|
35173
|
+
}
|
|
35174
|
+
default:
|
|
35175
|
+
r.skipType(t & 7);
|
|
35176
|
+
break;
|
|
35177
|
+
}
|
|
35178
|
+
}
|
|
35179
|
+
return m;
|
|
35180
|
+
};
|
|
35181
|
+
|
|
35182
|
+
InlineContact.fromObject = function fromObject(d) {
|
|
35183
|
+
if (d instanceof $root.proto.InlineContact)
|
|
35184
|
+
return d;
|
|
35185
|
+
var m = new $root.proto.InlineContact();
|
|
35186
|
+
if (d.pnJid != null) {
|
|
35187
|
+
m.pnJid = String(d.pnJid);
|
|
35188
|
+
}
|
|
35189
|
+
if (d.lidJid != null) {
|
|
35190
|
+
m.lidJid = String(d.lidJid);
|
|
35191
|
+
}
|
|
35192
|
+
if (d.fullName != null) {
|
|
35193
|
+
m.fullName = String(d.fullName);
|
|
35194
|
+
}
|
|
35195
|
+
if (d.firstName != null) {
|
|
35196
|
+
m.firstName = String(d.firstName);
|
|
35197
|
+
}
|
|
35198
|
+
if (d.username != null) {
|
|
35199
|
+
m.username = String(d.username);
|
|
35200
|
+
}
|
|
35201
|
+
return m;
|
|
35202
|
+
};
|
|
35203
|
+
|
|
35204
|
+
InlineContact.toObject = function toObject(m, o) {
|
|
35205
|
+
if (!o)
|
|
35206
|
+
o = {};
|
|
35207
|
+
var d = {};
|
|
35208
|
+
if (m.pnJid != null && m.hasOwnProperty("pnJid")) {
|
|
35209
|
+
d.pnJid = m.pnJid;
|
|
35210
|
+
if (o.oneofs)
|
|
35211
|
+
d._pnJid = "pnJid";
|
|
35212
|
+
}
|
|
35213
|
+
if (m.lidJid != null && m.hasOwnProperty("lidJid")) {
|
|
35214
|
+
d.lidJid = m.lidJid;
|
|
35215
|
+
if (o.oneofs)
|
|
35216
|
+
d._lidJid = "lidJid";
|
|
35217
|
+
}
|
|
35218
|
+
if (m.fullName != null && m.hasOwnProperty("fullName")) {
|
|
35219
|
+
d.fullName = m.fullName;
|
|
35220
|
+
if (o.oneofs)
|
|
35221
|
+
d._fullName = "fullName";
|
|
35222
|
+
}
|
|
35223
|
+
if (m.firstName != null && m.hasOwnProperty("firstName")) {
|
|
35224
|
+
d.firstName = m.firstName;
|
|
35225
|
+
if (o.oneofs)
|
|
35226
|
+
d._firstName = "firstName";
|
|
35227
|
+
}
|
|
35228
|
+
if (m.username != null && m.hasOwnProperty("username")) {
|
|
35229
|
+
d.username = m.username;
|
|
35230
|
+
if (o.oneofs)
|
|
35231
|
+
d._username = "username";
|
|
35232
|
+
}
|
|
35233
|
+
return d;
|
|
35234
|
+
};
|
|
35235
|
+
|
|
35236
|
+
InlineContact.prototype.toJSON = function toJSON() {
|
|
35237
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
35238
|
+
};
|
|
35239
|
+
|
|
35240
|
+
InlineContact.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
35241
|
+
if (typeUrlPrefix === undefined) {
|
|
35242
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
35243
|
+
}
|
|
35244
|
+
return typeUrlPrefix + "/proto.InlineContact";
|
|
35245
|
+
};
|
|
35246
|
+
|
|
35247
|
+
return InlineContact;
|
|
35248
|
+
})();
|
|
35249
|
+
|
|
34356
35250
|
proto.InteractiveAnnotation = (function() {
|
|
34357
35251
|
|
|
34358
35252
|
function InteractiveAnnotation(p) {
|
|
@@ -35810,10 +36704,6 @@ export const proto = $root.proto = (() => {
|
|
|
35810
36704
|
case 3:
|
|
35811
36705
|
m.trigger = 3;
|
|
35812
36706
|
break;
|
|
35813
|
-
case "DEPRECATION":
|
|
35814
|
-
case 4:
|
|
35815
|
-
m.trigger = 4;
|
|
35816
|
-
break;
|
|
35817
36707
|
}
|
|
35818
36708
|
if (d.limitSharingSettingTimestamp != null) {
|
|
35819
36709
|
if ($util.Long)
|
|
@@ -35878,7 +36768,6 @@ export const proto = $root.proto = (() => {
|
|
|
35878
36768
|
values[valuesById[1] = "CHAT_SETTING"] = 1;
|
|
35879
36769
|
values[valuesById[2] = "BIZ_SUPPORTS_FB_HOSTING"] = 2;
|
|
35880
36770
|
values[valuesById[3] = "UNKNOWN_GROUP"] = 3;
|
|
35881
|
-
values[valuesById[4] = "DEPRECATION"] = 4;
|
|
35882
36771
|
return values;
|
|
35883
36772
|
})();
|
|
35884
36773
|
|
|
@@ -36917,6 +37806,7 @@ export const proto = $root.proto = (() => {
|
|
|
36917
37806
|
Message.prototype.conditionalRevealMessage = null;
|
|
36918
37807
|
Message.prototype.pollAddOptionMessage = null;
|
|
36919
37808
|
Message.prototype.eventInviteMessage = null;
|
|
37809
|
+
Message.prototype.groupRootKeyShare = null;
|
|
36920
37810
|
|
|
36921
37811
|
let $oneOfFields;
|
|
36922
37812
|
|
|
@@ -37430,6 +38320,11 @@ export const proto = $root.proto = (() => {
|
|
|
37430
38320
|
set: $util.oneOfSetter($oneOfFields)
|
|
37431
38321
|
});
|
|
37432
38322
|
|
|
38323
|
+
Object.defineProperty(Message.prototype, "_groupRootKeyShare", {
|
|
38324
|
+
get: $util.oneOfGetter($oneOfFields = ["groupRootKeyShare"]),
|
|
38325
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
38326
|
+
});
|
|
38327
|
+
|
|
37433
38328
|
Message.create = function create(properties) {
|
|
37434
38329
|
return new Message(properties);
|
|
37435
38330
|
};
|
|
@@ -37641,6 +38536,8 @@ export const proto = $root.proto = (() => {
|
|
|
37641
38536
|
$root.proto.Message.PollAddOptionMessage.encode(m.pollAddOptionMessage, w.uint32(970).fork()).ldelim();
|
|
37642
38537
|
if (m.eventInviteMessage != null && Object.hasOwnProperty.call(m, "eventInviteMessage"))
|
|
37643
38538
|
$root.proto.Message.EventInviteMessage.encode(m.eventInviteMessage, w.uint32(978).fork()).ldelim();
|
|
38539
|
+
if (m.groupRootKeyShare != null && Object.hasOwnProperty.call(m, "groupRootKeyShare"))
|
|
38540
|
+
$root.proto.GroupRootKeyShare.encode(m.groupRootKeyShare, w.uint32(986).fork()).ldelim();
|
|
37644
38541
|
return w;
|
|
37645
38542
|
};
|
|
37646
38543
|
|
|
@@ -38061,6 +38958,10 @@ export const proto = $root.proto = (() => {
|
|
|
38061
38958
|
m.eventInviteMessage = $root.proto.Message.EventInviteMessage.decode(r, r.uint32());
|
|
38062
38959
|
break;
|
|
38063
38960
|
}
|
|
38961
|
+
case 123: {
|
|
38962
|
+
m.groupRootKeyShare = $root.proto.GroupRootKeyShare.decode(r, r.uint32());
|
|
38963
|
+
break;
|
|
38964
|
+
}
|
|
38064
38965
|
default:
|
|
38065
38966
|
r.skipType(t & 7);
|
|
38066
38967
|
break;
|
|
@@ -38581,6 +39482,11 @@ export const proto = $root.proto = (() => {
|
|
|
38581
39482
|
throw TypeError(".proto.Message.eventInviteMessage: object expected");
|
|
38582
39483
|
m.eventInviteMessage = $root.proto.Message.EventInviteMessage.fromObject(d.eventInviteMessage);
|
|
38583
39484
|
}
|
|
39485
|
+
if (d.groupRootKeyShare != null) {
|
|
39486
|
+
if (typeof d.groupRootKeyShare !== "object")
|
|
39487
|
+
throw TypeError(".proto.Message.groupRootKeyShare: object expected");
|
|
39488
|
+
m.groupRootKeyShare = $root.proto.GroupRootKeyShare.fromObject(d.groupRootKeyShare);
|
|
39489
|
+
}
|
|
38584
39490
|
return m;
|
|
38585
39491
|
};
|
|
38586
39492
|
|
|
@@ -39098,6 +40004,11 @@ export const proto = $root.proto = (() => {
|
|
|
39098
40004
|
if (o.oneofs)
|
|
39099
40005
|
d._eventInviteMessage = "eventInviteMessage";
|
|
39100
40006
|
}
|
|
40007
|
+
if (m.groupRootKeyShare != null && m.hasOwnProperty("groupRootKeyShare")) {
|
|
40008
|
+
d.groupRootKeyShare = $root.proto.GroupRootKeyShare.toObject(m.groupRootKeyShare, o);
|
|
40009
|
+
if (o.oneofs)
|
|
40010
|
+
d._groupRootKeyShare = "groupRootKeyShare";
|
|
40011
|
+
}
|
|
39101
40012
|
return d;
|
|
39102
40013
|
};
|
|
39103
40014
|
|
|
@@ -42533,6 +43444,10 @@ export const proto = $root.proto = (() => {
|
|
|
42533
43444
|
case 2:
|
|
42534
43445
|
m.status = 2;
|
|
42535
43446
|
break;
|
|
43447
|
+
case "INFO":
|
|
43448
|
+
case 3:
|
|
43449
|
+
m.status = 3;
|
|
43450
|
+
break;
|
|
42536
43451
|
}
|
|
42537
43452
|
if (d.senderNotificationTimestampMs != null) {
|
|
42538
43453
|
if ($util.Long)
|
|
@@ -42617,6 +43532,7 @@ export const proto = $root.proto = (() => {
|
|
|
42617
43532
|
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
42618
43533
|
values[valuesById[1] = "CONTROL_PASSED"] = 1;
|
|
42619
43534
|
values[valuesById[2] = "CONTROL_TAKEN"] = 2;
|
|
43535
|
+
values[valuesById[3] = "INFO"] = 3;
|
|
42620
43536
|
return values;
|
|
42621
43537
|
})();
|
|
42622
43538
|
|
|
@@ -59200,6 +60116,10 @@ export const proto = $root.proto = (() => {
|
|
|
59200
60116
|
case 6:
|
|
59201
60117
|
m.responseCode = 6;
|
|
59202
60118
|
break;
|
|
60119
|
+
case "ERROR_MULTI_PROVIDER_NOT_CONFIGURED":
|
|
60120
|
+
case 7:
|
|
60121
|
+
m.responseCode = 7;
|
|
60122
|
+
break;
|
|
59203
60123
|
}
|
|
59204
60124
|
return m;
|
|
59205
60125
|
};
|
|
@@ -59244,6 +60164,7 @@ export const proto = $root.proto = (() => {
|
|
|
59244
60164
|
values[valuesById[4] = "ERROR_REQUEST_ON_NON_SMB_PRIMARY"] = 4;
|
|
59245
60165
|
values[valuesById[5] = "ERROR_HOSTED_DEVICE_NOT_CONNECTED"] = 5;
|
|
59246
60166
|
values[valuesById[6] = "ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET"] = 6;
|
|
60167
|
+
values[valuesById[7] = "ERROR_MULTI_PROVIDER_NOT_CONFIGURED"] = 7;
|
|
59247
60168
|
return values;
|
|
59248
60169
|
})();
|
|
59249
60170
|
|
|
@@ -65608,6 +66529,7 @@ export const proto = $root.proto = (() => {
|
|
|
65608
66529
|
StickerMessage.prototype.isLottie = null;
|
|
65609
66530
|
StickerMessage.prototype.accessibilityLabel = null;
|
|
65610
66531
|
StickerMessage.prototype.premium = null;
|
|
66532
|
+
StickerMessage.prototype.emojis = null;
|
|
65611
66533
|
|
|
65612
66534
|
let $oneOfFields;
|
|
65613
66535
|
|
|
@@ -65716,6 +66638,11 @@ export const proto = $root.proto = (() => {
|
|
|
65716
66638
|
set: $util.oneOfSetter($oneOfFields)
|
|
65717
66639
|
});
|
|
65718
66640
|
|
|
66641
|
+
Object.defineProperty(StickerMessage.prototype, "_emojis", {
|
|
66642
|
+
get: $util.oneOfGetter($oneOfFields = ["emojis"]),
|
|
66643
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
66644
|
+
});
|
|
66645
|
+
|
|
65719
66646
|
StickerMessage.create = function create(properties) {
|
|
65720
66647
|
return new StickerMessage(properties);
|
|
65721
66648
|
};
|
|
@@ -65765,6 +66692,8 @@ export const proto = $root.proto = (() => {
|
|
|
65765
66692
|
w.uint32(178).string(m.accessibilityLabel);
|
|
65766
66693
|
if (m.premium != null && Object.hasOwnProperty.call(m, "premium"))
|
|
65767
66694
|
w.uint32(192).int32(m.premium);
|
|
66695
|
+
if (m.emojis != null && Object.hasOwnProperty.call(m, "emojis"))
|
|
66696
|
+
w.uint32(202).string(m.emojis);
|
|
65768
66697
|
return w;
|
|
65769
66698
|
};
|
|
65770
66699
|
|
|
@@ -65861,6 +66790,10 @@ export const proto = $root.proto = (() => {
|
|
|
65861
66790
|
m.premium = r.int32();
|
|
65862
66791
|
break;
|
|
65863
66792
|
}
|
|
66793
|
+
case 25: {
|
|
66794
|
+
m.emojis = r.string();
|
|
66795
|
+
break;
|
|
66796
|
+
}
|
|
65864
66797
|
default:
|
|
65865
66798
|
r.skipType(t & 7);
|
|
65866
66799
|
break;
|
|
@@ -65974,6 +66907,9 @@ export const proto = $root.proto = (() => {
|
|
|
65974
66907
|
if (d.premium != null) {
|
|
65975
66908
|
m.premium = d.premium | 0;
|
|
65976
66909
|
}
|
|
66910
|
+
if (d.emojis != null) {
|
|
66911
|
+
m.emojis = String(d.emojis);
|
|
66912
|
+
}
|
|
65977
66913
|
return m;
|
|
65978
66914
|
};
|
|
65979
66915
|
|
|
@@ -66095,6 +67031,11 @@ export const proto = $root.proto = (() => {
|
|
|
66095
67031
|
if (o.oneofs)
|
|
66096
67032
|
d._premium = "premium";
|
|
66097
67033
|
}
|
|
67034
|
+
if (m.emojis != null && m.hasOwnProperty("emojis")) {
|
|
67035
|
+
d.emojis = m.emojis;
|
|
67036
|
+
if (o.oneofs)
|
|
67037
|
+
d._emojis = "emojis";
|
|
67038
|
+
}
|
|
66098
67039
|
return d;
|
|
66099
67040
|
};
|
|
66100
67041
|
|
|
@@ -68014,32 +68955,10 @@ export const proto = $root.proto = (() => {
|
|
|
68014
68955
|
this[ks[i]] = p[ks[i]];
|
|
68015
68956
|
}
|
|
68016
68957
|
|
|
68017
|
-
VideoEndCard.prototype.username =
|
|
68018
|
-
VideoEndCard.prototype.caption =
|
|
68019
|
-
VideoEndCard.prototype.thumbnailImageUrl =
|
|
68020
|
-
VideoEndCard.prototype.profilePictureUrl =
|
|
68021
|
-
|
|
68022
|
-
let $oneOfFields;
|
|
68023
|
-
|
|
68024
|
-
Object.defineProperty(VideoEndCard.prototype, "_username", {
|
|
68025
|
-
get: $util.oneOfGetter($oneOfFields = ["username"]),
|
|
68026
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
68027
|
-
});
|
|
68028
|
-
|
|
68029
|
-
Object.defineProperty(VideoEndCard.prototype, "_caption", {
|
|
68030
|
-
get: $util.oneOfGetter($oneOfFields = ["caption"]),
|
|
68031
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
68032
|
-
});
|
|
68033
|
-
|
|
68034
|
-
Object.defineProperty(VideoEndCard.prototype, "_thumbnailImageUrl", {
|
|
68035
|
-
get: $util.oneOfGetter($oneOfFields = ["thumbnailImageUrl"]),
|
|
68036
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
68037
|
-
});
|
|
68038
|
-
|
|
68039
|
-
Object.defineProperty(VideoEndCard.prototype, "_profilePictureUrl", {
|
|
68040
|
-
get: $util.oneOfGetter($oneOfFields = ["profilePictureUrl"]),
|
|
68041
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
68042
|
-
});
|
|
68958
|
+
VideoEndCard.prototype.username = "";
|
|
68959
|
+
VideoEndCard.prototype.caption = "";
|
|
68960
|
+
VideoEndCard.prototype.thumbnailImageUrl = "";
|
|
68961
|
+
VideoEndCard.prototype.profilePictureUrl = "";
|
|
68043
68962
|
|
|
68044
68963
|
VideoEndCard.create = function create(properties) {
|
|
68045
68964
|
return new VideoEndCard(properties);
|
|
@@ -68115,25 +69034,23 @@ export const proto = $root.proto = (() => {
|
|
|
68115
69034
|
if (!o)
|
|
68116
69035
|
o = {};
|
|
68117
69036
|
var d = {};
|
|
69037
|
+
if (o.defaults) {
|
|
69038
|
+
d.username = "";
|
|
69039
|
+
d.caption = "";
|
|
69040
|
+
d.thumbnailImageUrl = "";
|
|
69041
|
+
d.profilePictureUrl = "";
|
|
69042
|
+
}
|
|
68118
69043
|
if (m.username != null && m.hasOwnProperty("username")) {
|
|
68119
69044
|
d.username = m.username;
|
|
68120
|
-
if (o.oneofs)
|
|
68121
|
-
d._username = "username";
|
|
68122
69045
|
}
|
|
68123
69046
|
if (m.caption != null && m.hasOwnProperty("caption")) {
|
|
68124
69047
|
d.caption = m.caption;
|
|
68125
|
-
if (o.oneofs)
|
|
68126
|
-
d._caption = "caption";
|
|
68127
69048
|
}
|
|
68128
69049
|
if (m.thumbnailImageUrl != null && m.hasOwnProperty("thumbnailImageUrl")) {
|
|
68129
69050
|
d.thumbnailImageUrl = m.thumbnailImageUrl;
|
|
68130
|
-
if (o.oneofs)
|
|
68131
|
-
d._thumbnailImageUrl = "thumbnailImageUrl";
|
|
68132
69051
|
}
|
|
68133
69052
|
if (m.profilePictureUrl != null && m.hasOwnProperty("profilePictureUrl")) {
|
|
68134
69053
|
d.profilePictureUrl = m.profilePictureUrl;
|
|
68135
|
-
if (o.oneofs)
|
|
68136
|
-
d._profilePictureUrl = "profilePictureUrl";
|
|
68137
69054
|
}
|
|
68138
69055
|
return d;
|
|
68139
69056
|
};
|
|
@@ -69663,6 +70580,7 @@ export const proto = $root.proto = (() => {
|
|
|
69663
70580
|
MessageContextInfo.prototype.limitSharingV2 = null;
|
|
69664
70581
|
MessageContextInfo.prototype.threadId = $util.emptyArray;
|
|
69665
70582
|
MessageContextInfo.prototype.weblinkRenderConfig = null;
|
|
70583
|
+
MessageContextInfo.prototype.teeBotMetadata = null;
|
|
69666
70584
|
|
|
69667
70585
|
let $oneOfFields;
|
|
69668
70586
|
|
|
@@ -69741,6 +70659,11 @@ export const proto = $root.proto = (() => {
|
|
|
69741
70659
|
set: $util.oneOfSetter($oneOfFields)
|
|
69742
70660
|
});
|
|
69743
70661
|
|
|
70662
|
+
Object.defineProperty(MessageContextInfo.prototype, "_teeBotMetadata", {
|
|
70663
|
+
get: $util.oneOfGetter($oneOfFields = ["teeBotMetadata"]),
|
|
70664
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70665
|
+
});
|
|
70666
|
+
|
|
69744
70667
|
MessageContextInfo.create = function create(properties) {
|
|
69745
70668
|
return new MessageContextInfo(properties);
|
|
69746
70669
|
};
|
|
@@ -69782,6 +70705,8 @@ export const proto = $root.proto = (() => {
|
|
|
69782
70705
|
}
|
|
69783
70706
|
if (m.weblinkRenderConfig != null && Object.hasOwnProperty.call(m, "weblinkRenderConfig"))
|
|
69784
70707
|
w.uint32(128).int32(m.weblinkRenderConfig);
|
|
70708
|
+
if (m.teeBotMetadata != null && Object.hasOwnProperty.call(m, "teeBotMetadata"))
|
|
70709
|
+
w.uint32(138).bytes(m.teeBotMetadata);
|
|
69785
70710
|
return w;
|
|
69786
70711
|
};
|
|
69787
70712
|
|
|
@@ -69860,6 +70785,10 @@ export const proto = $root.proto = (() => {
|
|
|
69860
70785
|
m.weblinkRenderConfig = r.int32();
|
|
69861
70786
|
break;
|
|
69862
70787
|
}
|
|
70788
|
+
case 17: {
|
|
70789
|
+
m.teeBotMetadata = r.bytes();
|
|
70790
|
+
break;
|
|
70791
|
+
}
|
|
69863
70792
|
default:
|
|
69864
70793
|
r.skipType(t & 7);
|
|
69865
70794
|
break;
|
|
@@ -69972,6 +70901,12 @@ export const proto = $root.proto = (() => {
|
|
|
69972
70901
|
m.weblinkRenderConfig = 1;
|
|
69973
70902
|
break;
|
|
69974
70903
|
}
|
|
70904
|
+
if (d.teeBotMetadata != null) {
|
|
70905
|
+
if (typeof d.teeBotMetadata === "string")
|
|
70906
|
+
$util.base64.decode(d.teeBotMetadata, m.teeBotMetadata = $util.newBuffer($util.base64.length(d.teeBotMetadata)), 0);
|
|
70907
|
+
else if (d.teeBotMetadata.length >= 0)
|
|
70908
|
+
m.teeBotMetadata = d.teeBotMetadata;
|
|
70909
|
+
}
|
|
69975
70910
|
return m;
|
|
69976
70911
|
};
|
|
69977
70912
|
|
|
@@ -70063,6 +70998,11 @@ export const proto = $root.proto = (() => {
|
|
|
70063
70998
|
if (o.oneofs)
|
|
70064
70999
|
d._weblinkRenderConfig = "weblinkRenderConfig";
|
|
70065
71000
|
}
|
|
71001
|
+
if (m.teeBotMetadata != null && m.hasOwnProperty("teeBotMetadata")) {
|
|
71002
|
+
d.teeBotMetadata = o.bytes === String ? $util.base64.encode(m.teeBotMetadata, 0, m.teeBotMetadata.length) : o.bytes === Array ? Array.prototype.slice.call(m.teeBotMetadata) : m.teeBotMetadata;
|
|
71003
|
+
if (o.oneofs)
|
|
71004
|
+
d._teeBotMetadata = "teeBotMetadata";
|
|
71005
|
+
}
|
|
70066
71006
|
return d;
|
|
70067
71007
|
};
|
|
70068
71008
|
|
|
@@ -77654,6 +78594,146 @@ export const proto = $root.proto = (() => {
|
|
|
77654
78594
|
return ReportingTokenInfo;
|
|
77655
78595
|
})();
|
|
77656
78596
|
|
|
78597
|
+
proto.ScheduledMessageMetadata = (function() {
|
|
78598
|
+
|
|
78599
|
+
function ScheduledMessageMetadata(p) {
|
|
78600
|
+
if (p)
|
|
78601
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
78602
|
+
if (p[ks[i]] != null)
|
|
78603
|
+
this[ks[i]] = p[ks[i]];
|
|
78604
|
+
}
|
|
78605
|
+
|
|
78606
|
+
ScheduledMessageMetadata.prototype.revealKeyId = null;
|
|
78607
|
+
ScheduledMessageMetadata.prototype.revealKey = null;
|
|
78608
|
+
ScheduledMessageMetadata.prototype.scheduledTime = null;
|
|
78609
|
+
|
|
78610
|
+
let $oneOfFields;
|
|
78611
|
+
|
|
78612
|
+
Object.defineProperty(ScheduledMessageMetadata.prototype, "_revealKeyId", {
|
|
78613
|
+
get: $util.oneOfGetter($oneOfFields = ["revealKeyId"]),
|
|
78614
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
78615
|
+
});
|
|
78616
|
+
|
|
78617
|
+
Object.defineProperty(ScheduledMessageMetadata.prototype, "_revealKey", {
|
|
78618
|
+
get: $util.oneOfGetter($oneOfFields = ["revealKey"]),
|
|
78619
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
78620
|
+
});
|
|
78621
|
+
|
|
78622
|
+
Object.defineProperty(ScheduledMessageMetadata.prototype, "_scheduledTime", {
|
|
78623
|
+
get: $util.oneOfGetter($oneOfFields = ["scheduledTime"]),
|
|
78624
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
78625
|
+
});
|
|
78626
|
+
|
|
78627
|
+
ScheduledMessageMetadata.create = function create(properties) {
|
|
78628
|
+
return new ScheduledMessageMetadata(properties);
|
|
78629
|
+
};
|
|
78630
|
+
|
|
78631
|
+
ScheduledMessageMetadata.encode = function encode(m, w) {
|
|
78632
|
+
if (!w)
|
|
78633
|
+
w = $Writer.create();
|
|
78634
|
+
if (m.revealKeyId != null && Object.hasOwnProperty.call(m, "revealKeyId"))
|
|
78635
|
+
w.uint32(10).string(m.revealKeyId);
|
|
78636
|
+
if (m.revealKey != null && Object.hasOwnProperty.call(m, "revealKey"))
|
|
78637
|
+
w.uint32(18).bytes(m.revealKey);
|
|
78638
|
+
if (m.scheduledTime != null && Object.hasOwnProperty.call(m, "scheduledTime"))
|
|
78639
|
+
w.uint32(24).uint64(m.scheduledTime);
|
|
78640
|
+
return w;
|
|
78641
|
+
};
|
|
78642
|
+
|
|
78643
|
+
ScheduledMessageMetadata.decode = function decode(r, l, e) {
|
|
78644
|
+
if (!(r instanceof $Reader))
|
|
78645
|
+
r = $Reader.create(r);
|
|
78646
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ScheduledMessageMetadata();
|
|
78647
|
+
while (r.pos < c) {
|
|
78648
|
+
var t = r.uint32();
|
|
78649
|
+
if (t === e)
|
|
78650
|
+
break;
|
|
78651
|
+
switch (t >>> 3) {
|
|
78652
|
+
case 1: {
|
|
78653
|
+
m.revealKeyId = r.string();
|
|
78654
|
+
break;
|
|
78655
|
+
}
|
|
78656
|
+
case 2: {
|
|
78657
|
+
m.revealKey = r.bytes();
|
|
78658
|
+
break;
|
|
78659
|
+
}
|
|
78660
|
+
case 3: {
|
|
78661
|
+
m.scheduledTime = r.uint64();
|
|
78662
|
+
break;
|
|
78663
|
+
}
|
|
78664
|
+
default:
|
|
78665
|
+
r.skipType(t & 7);
|
|
78666
|
+
break;
|
|
78667
|
+
}
|
|
78668
|
+
}
|
|
78669
|
+
return m;
|
|
78670
|
+
};
|
|
78671
|
+
|
|
78672
|
+
ScheduledMessageMetadata.fromObject = function fromObject(d) {
|
|
78673
|
+
if (d instanceof $root.proto.ScheduledMessageMetadata)
|
|
78674
|
+
return d;
|
|
78675
|
+
var m = new $root.proto.ScheduledMessageMetadata();
|
|
78676
|
+
if (d.revealKeyId != null) {
|
|
78677
|
+
m.revealKeyId = String(d.revealKeyId);
|
|
78678
|
+
}
|
|
78679
|
+
if (d.revealKey != null) {
|
|
78680
|
+
if (typeof d.revealKey === "string")
|
|
78681
|
+
$util.base64.decode(d.revealKey, m.revealKey = $util.newBuffer($util.base64.length(d.revealKey)), 0);
|
|
78682
|
+
else if (d.revealKey.length >= 0)
|
|
78683
|
+
m.revealKey = d.revealKey;
|
|
78684
|
+
}
|
|
78685
|
+
if (d.scheduledTime != null) {
|
|
78686
|
+
if ($util.Long)
|
|
78687
|
+
(m.scheduledTime = $util.Long.fromValue(d.scheduledTime)).unsigned = true;
|
|
78688
|
+
else if (typeof d.scheduledTime === "string")
|
|
78689
|
+
m.scheduledTime = parseInt(d.scheduledTime, 10);
|
|
78690
|
+
else if (typeof d.scheduledTime === "number")
|
|
78691
|
+
m.scheduledTime = d.scheduledTime;
|
|
78692
|
+
else if (typeof d.scheduledTime === "object")
|
|
78693
|
+
m.scheduledTime = new $util.LongBits(d.scheduledTime.low >>> 0, d.scheduledTime.high >>> 0).toNumber(true);
|
|
78694
|
+
}
|
|
78695
|
+
return m;
|
|
78696
|
+
};
|
|
78697
|
+
|
|
78698
|
+
ScheduledMessageMetadata.toObject = function toObject(m, o) {
|
|
78699
|
+
if (!o)
|
|
78700
|
+
o = {};
|
|
78701
|
+
var d = {};
|
|
78702
|
+
if (m.revealKeyId != null && m.hasOwnProperty("revealKeyId")) {
|
|
78703
|
+
d.revealKeyId = m.revealKeyId;
|
|
78704
|
+
if (o.oneofs)
|
|
78705
|
+
d._revealKeyId = "revealKeyId";
|
|
78706
|
+
}
|
|
78707
|
+
if (m.revealKey != null && m.hasOwnProperty("revealKey")) {
|
|
78708
|
+
d.revealKey = o.bytes === String ? $util.base64.encode(m.revealKey, 0, m.revealKey.length) : o.bytes === Array ? Array.prototype.slice.call(m.revealKey) : m.revealKey;
|
|
78709
|
+
if (o.oneofs)
|
|
78710
|
+
d._revealKey = "revealKey";
|
|
78711
|
+
}
|
|
78712
|
+
if (m.scheduledTime != null && m.hasOwnProperty("scheduledTime")) {
|
|
78713
|
+
if (typeof m.scheduledTime === "number")
|
|
78714
|
+
d.scheduledTime = o.longs === String ? String(m.scheduledTime) : m.scheduledTime;
|
|
78715
|
+
else
|
|
78716
|
+
d.scheduledTime = o.longs === String ? longToString(m.scheduledTime, true) : o.longs === Number ? longToNumber(m.scheduledTime, true) : m.scheduledTime;
|
|
78717
|
+
if (o.oneofs)
|
|
78718
|
+
d._scheduledTime = "scheduledTime";
|
|
78719
|
+
}
|
|
78720
|
+
return d;
|
|
78721
|
+
};
|
|
78722
|
+
|
|
78723
|
+
ScheduledMessageMetadata.prototype.toJSON = function toJSON() {
|
|
78724
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
78725
|
+
};
|
|
78726
|
+
|
|
78727
|
+
ScheduledMessageMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
78728
|
+
if (typeUrlPrefix === undefined) {
|
|
78729
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
78730
|
+
}
|
|
78731
|
+
return typeUrlPrefix + "/proto.ScheduledMessageMetadata";
|
|
78732
|
+
};
|
|
78733
|
+
|
|
78734
|
+
return ScheduledMessageMetadata;
|
|
78735
|
+
})();
|
|
78736
|
+
|
|
77657
78737
|
proto.SenderKeyDistributionMessage = (function() {
|
|
77658
78738
|
|
|
77659
78739
|
function SenderKeyDistributionMessage(p) {
|
|
@@ -85334,6 +86414,7 @@ export const proto = $root.proto = (() => {
|
|
|
85334
86414
|
BusinessBroadcastListAction.prototype.participants = $util.emptyArray;
|
|
85335
86415
|
BusinessBroadcastListAction.prototype.listName = null;
|
|
85336
86416
|
BusinessBroadcastListAction.prototype.labelIds = $util.emptyArray;
|
|
86417
|
+
BusinessBroadcastListAction.prototype.audienceExpression = null;
|
|
85337
86418
|
|
|
85338
86419
|
let $oneOfFields;
|
|
85339
86420
|
|
|
@@ -85347,6 +86428,11 @@ export const proto = $root.proto = (() => {
|
|
|
85347
86428
|
set: $util.oneOfSetter($oneOfFields)
|
|
85348
86429
|
});
|
|
85349
86430
|
|
|
86431
|
+
Object.defineProperty(BusinessBroadcastListAction.prototype, "_audienceExpression", {
|
|
86432
|
+
get: $util.oneOfGetter($oneOfFields = ["audienceExpression"]),
|
|
86433
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
86434
|
+
});
|
|
86435
|
+
|
|
85350
86436
|
BusinessBroadcastListAction.create = function create(properties) {
|
|
85351
86437
|
return new BusinessBroadcastListAction(properties);
|
|
85352
86438
|
};
|
|
@@ -85366,6 +86452,8 @@ export const proto = $root.proto = (() => {
|
|
|
85366
86452
|
for (var i = 0; i < m.labelIds.length; ++i)
|
|
85367
86453
|
w.uint32(34).string(m.labelIds[i]);
|
|
85368
86454
|
}
|
|
86455
|
+
if (m.audienceExpression != null && Object.hasOwnProperty.call(m, "audienceExpression"))
|
|
86456
|
+
w.uint32(42).string(m.audienceExpression);
|
|
85369
86457
|
return w;
|
|
85370
86458
|
};
|
|
85371
86459
|
|
|
@@ -85398,6 +86486,10 @@ export const proto = $root.proto = (() => {
|
|
|
85398
86486
|
m.labelIds.push(r.string());
|
|
85399
86487
|
break;
|
|
85400
86488
|
}
|
|
86489
|
+
case 5: {
|
|
86490
|
+
m.audienceExpression = r.string();
|
|
86491
|
+
break;
|
|
86492
|
+
}
|
|
85401
86493
|
default:
|
|
85402
86494
|
r.skipType(t & 7);
|
|
85403
86495
|
break;
|
|
@@ -85434,6 +86526,9 @@ export const proto = $root.proto = (() => {
|
|
|
85434
86526
|
m.labelIds[i] = String(d.labelIds[i]);
|
|
85435
86527
|
}
|
|
85436
86528
|
}
|
|
86529
|
+
if (d.audienceExpression != null) {
|
|
86530
|
+
m.audienceExpression = String(d.audienceExpression);
|
|
86531
|
+
}
|
|
85437
86532
|
return m;
|
|
85438
86533
|
};
|
|
85439
86534
|
|
|
@@ -85467,6 +86562,11 @@ export const proto = $root.proto = (() => {
|
|
|
85467
86562
|
d.labelIds[j] = m.labelIds[j];
|
|
85468
86563
|
}
|
|
85469
86564
|
}
|
|
86565
|
+
if (m.audienceExpression != null && m.hasOwnProperty("audienceExpression")) {
|
|
86566
|
+
d.audienceExpression = m.audienceExpression;
|
|
86567
|
+
if (o.oneofs)
|
|
86568
|
+
d._audienceExpression = "audienceExpression";
|
|
86569
|
+
}
|
|
85470
86570
|
return d;
|
|
85471
86571
|
};
|
|
85472
86572
|
|
|
@@ -86120,28 +87220,11 @@ export const proto = $root.proto = (() => {
|
|
|
86120
87220
|
this[ks[i]] = p[ks[i]];
|
|
86121
87221
|
}
|
|
86122
87222
|
|
|
86123
|
-
CustomPaymentMethod.prototype.credentialId =
|
|
86124
|
-
CustomPaymentMethod.prototype.country =
|
|
86125
|
-
CustomPaymentMethod.prototype.type =
|
|
87223
|
+
CustomPaymentMethod.prototype.credentialId = "";
|
|
87224
|
+
CustomPaymentMethod.prototype.country = "";
|
|
87225
|
+
CustomPaymentMethod.prototype.type = "";
|
|
86126
87226
|
CustomPaymentMethod.prototype.metadata = $util.emptyArray;
|
|
86127
87227
|
|
|
86128
|
-
let $oneOfFields;
|
|
86129
|
-
|
|
86130
|
-
Object.defineProperty(CustomPaymentMethod.prototype, "_credentialId", {
|
|
86131
|
-
get: $util.oneOfGetter($oneOfFields = ["credentialId"]),
|
|
86132
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
86133
|
-
});
|
|
86134
|
-
|
|
86135
|
-
Object.defineProperty(CustomPaymentMethod.prototype, "_country", {
|
|
86136
|
-
get: $util.oneOfGetter($oneOfFields = ["country"]),
|
|
86137
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
86138
|
-
});
|
|
86139
|
-
|
|
86140
|
-
Object.defineProperty(CustomPaymentMethod.prototype, "_type", {
|
|
86141
|
-
get: $util.oneOfGetter($oneOfFields = ["type"]),
|
|
86142
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
86143
|
-
});
|
|
86144
|
-
|
|
86145
87228
|
CustomPaymentMethod.create = function create(properties) {
|
|
86146
87229
|
return new CustomPaymentMethod(properties);
|
|
86147
87230
|
};
|
|
@@ -86230,20 +87313,19 @@ export const proto = $root.proto = (() => {
|
|
|
86230
87313
|
if (o.arrays || o.defaults) {
|
|
86231
87314
|
d.metadata = [];
|
|
86232
87315
|
}
|
|
87316
|
+
if (o.defaults) {
|
|
87317
|
+
d.credentialId = "";
|
|
87318
|
+
d.country = "";
|
|
87319
|
+
d.type = "";
|
|
87320
|
+
}
|
|
86233
87321
|
if (m.credentialId != null && m.hasOwnProperty("credentialId")) {
|
|
86234
87322
|
d.credentialId = m.credentialId;
|
|
86235
|
-
if (o.oneofs)
|
|
86236
|
-
d._credentialId = "credentialId";
|
|
86237
87323
|
}
|
|
86238
87324
|
if (m.country != null && m.hasOwnProperty("country")) {
|
|
86239
87325
|
d.country = m.country;
|
|
86240
|
-
if (o.oneofs)
|
|
86241
|
-
d._country = "country";
|
|
86242
87326
|
}
|
|
86243
87327
|
if (m.type != null && m.hasOwnProperty("type")) {
|
|
86244
87328
|
d.type = m.type;
|
|
86245
|
-
if (o.oneofs)
|
|
86246
|
-
d._type = "type";
|
|
86247
87329
|
}
|
|
86248
87330
|
if (m.metadata && m.metadata.length) {
|
|
86249
87331
|
d.metadata = [];
|
|
@@ -86277,20 +87359,8 @@ export const proto = $root.proto = (() => {
|
|
|
86277
87359
|
this[ks[i]] = p[ks[i]];
|
|
86278
87360
|
}
|
|
86279
87361
|
|
|
86280
|
-
CustomPaymentMethodMetadata.prototype.key =
|
|
86281
|
-
CustomPaymentMethodMetadata.prototype.value =
|
|
86282
|
-
|
|
86283
|
-
let $oneOfFields;
|
|
86284
|
-
|
|
86285
|
-
Object.defineProperty(CustomPaymentMethodMetadata.prototype, "_key", {
|
|
86286
|
-
get: $util.oneOfGetter($oneOfFields = ["key"]),
|
|
86287
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
86288
|
-
});
|
|
86289
|
-
|
|
86290
|
-
Object.defineProperty(CustomPaymentMethodMetadata.prototype, "_value", {
|
|
86291
|
-
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
86292
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
86293
|
-
});
|
|
87362
|
+
CustomPaymentMethodMetadata.prototype.key = "";
|
|
87363
|
+
CustomPaymentMethodMetadata.prototype.value = "";
|
|
86294
87364
|
|
|
86295
87365
|
CustomPaymentMethodMetadata.create = function create(properties) {
|
|
86296
87366
|
return new CustomPaymentMethodMetadata(properties);
|
|
@@ -86348,15 +87418,15 @@ export const proto = $root.proto = (() => {
|
|
|
86348
87418
|
if (!o)
|
|
86349
87419
|
o = {};
|
|
86350
87420
|
var d = {};
|
|
87421
|
+
if (o.defaults) {
|
|
87422
|
+
d.key = "";
|
|
87423
|
+
d.value = "";
|
|
87424
|
+
}
|
|
86351
87425
|
if (m.key != null && m.hasOwnProperty("key")) {
|
|
86352
87426
|
d.key = m.key;
|
|
86353
|
-
if (o.oneofs)
|
|
86354
|
-
d._key = "key";
|
|
86355
87427
|
}
|
|
86356
87428
|
if (m.value != null && m.hasOwnProperty("value")) {
|
|
86357
87429
|
d.value = m.value;
|
|
86358
|
-
if (o.oneofs)
|
|
86359
|
-
d._value = "value";
|
|
86360
87430
|
}
|
|
86361
87431
|
return d;
|
|
86362
87432
|
};
|
|
@@ -87477,16 +88547,11 @@ export const proto = $root.proto = (() => {
|
|
|
87477
88547
|
this[ks[i]] = p[ks[i]];
|
|
87478
88548
|
}
|
|
87479
88549
|
|
|
87480
|
-
InteractiveMessageAction.prototype.type =
|
|
88550
|
+
InteractiveMessageAction.prototype.type = 1;
|
|
87481
88551
|
InteractiveMessageAction.prototype.agmId = null;
|
|
87482
88552
|
|
|
87483
88553
|
let $oneOfFields;
|
|
87484
88554
|
|
|
87485
|
-
Object.defineProperty(InteractiveMessageAction.prototype, "_type", {
|
|
87486
|
-
get: $util.oneOfGetter($oneOfFields = ["type"]),
|
|
87487
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
87488
|
-
});
|
|
87489
|
-
|
|
87490
88555
|
Object.defineProperty(InteractiveMessageAction.prototype, "_agmId", {
|
|
87491
88556
|
get: $util.oneOfGetter($oneOfFields = ["agmId"]),
|
|
87492
88557
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -87557,10 +88622,11 @@ export const proto = $root.proto = (() => {
|
|
|
87557
88622
|
if (!o)
|
|
87558
88623
|
o = {};
|
|
87559
88624
|
var d = {};
|
|
88625
|
+
if (o.defaults) {
|
|
88626
|
+
d.type = o.enums === String ? "DISABLE_CTA" : 1;
|
|
88627
|
+
}
|
|
87560
88628
|
if (m.type != null && m.hasOwnProperty("type")) {
|
|
87561
88629
|
d.type = o.enums === String ? $root.proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode[m.type] === undefined ? m.type : $root.proto.SyncActionValue.InteractiveMessageAction.InteractiveMessageActionMode[m.type] : m.type;
|
|
87562
|
-
if (o.oneofs)
|
|
87563
|
-
d._type = "type";
|
|
87564
88630
|
}
|
|
87565
88631
|
if (m.agmId != null && m.hasOwnProperty("agmId")) {
|
|
87566
88632
|
d.agmId = m.agmId;
|
|
@@ -87984,6 +89050,10 @@ export const proto = $root.proto = (() => {
|
|
|
87984
89050
|
case 10:
|
|
87985
89051
|
m.type = 10;
|
|
87986
89052
|
break;
|
|
89053
|
+
case "AI_RESPONDING":
|
|
89054
|
+
case 11:
|
|
89055
|
+
m.type = 11;
|
|
89056
|
+
break;
|
|
87987
89057
|
}
|
|
87988
89058
|
if (d.isImmutable != null) {
|
|
87989
89059
|
m.isImmutable = Boolean(d.isImmutable);
|
|
@@ -88080,6 +89150,7 @@ export const proto = $root.proto = (() => {
|
|
|
88080
89150
|
values[valuesById[8] = "DRAFTED"] = 8;
|
|
88081
89151
|
values[valuesById[9] = "AI_HANDOFF"] = 9;
|
|
88082
89152
|
values[valuesById[10] = "CHANNELS"] = 10;
|
|
89153
|
+
values[valuesById[11] = "AI_RESPONDING"] = 11;
|
|
88083
89154
|
return values;
|
|
88084
89155
|
})();
|
|
88085
89156
|
|
|
@@ -89047,23 +90118,13 @@ export const proto = $root.proto = (() => {
|
|
|
89047
90118
|
this[ks[i]] = p[ks[i]];
|
|
89048
90119
|
}
|
|
89049
90120
|
|
|
89050
|
-
MerchantPaymentPartnerAction.prototype.status =
|
|
89051
|
-
MerchantPaymentPartnerAction.prototype.country =
|
|
90121
|
+
MerchantPaymentPartnerAction.prototype.status = 0;
|
|
90122
|
+
MerchantPaymentPartnerAction.prototype.country = "";
|
|
89052
90123
|
MerchantPaymentPartnerAction.prototype.gatewayName = null;
|
|
89053
90124
|
MerchantPaymentPartnerAction.prototype.credentialId = null;
|
|
89054
90125
|
|
|
89055
90126
|
let $oneOfFields;
|
|
89056
90127
|
|
|
89057
|
-
Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_status", {
|
|
89058
|
-
get: $util.oneOfGetter($oneOfFields = ["status"]),
|
|
89059
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
89060
|
-
});
|
|
89061
|
-
|
|
89062
|
-
Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_country", {
|
|
89063
|
-
get: $util.oneOfGetter($oneOfFields = ["country"]),
|
|
89064
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
89065
|
-
});
|
|
89066
|
-
|
|
89067
90128
|
Object.defineProperty(MerchantPaymentPartnerAction.prototype, "_gatewayName", {
|
|
89068
90129
|
get: $util.oneOfGetter($oneOfFields = ["gatewayName"]),
|
|
89069
90130
|
set: $util.oneOfSetter($oneOfFields)
|
|
@@ -89161,15 +90222,15 @@ export const proto = $root.proto = (() => {
|
|
|
89161
90222
|
if (!o)
|
|
89162
90223
|
o = {};
|
|
89163
90224
|
var d = {};
|
|
90225
|
+
if (o.defaults) {
|
|
90226
|
+
d.status = o.enums === String ? "ACTIVE" : 0;
|
|
90227
|
+
d.country = "";
|
|
90228
|
+
}
|
|
89164
90229
|
if (m.status != null && m.hasOwnProperty("status")) {
|
|
89165
90230
|
d.status = o.enums === String ? $root.proto.SyncActionValue.MerchantPaymentPartnerAction.Status[m.status] === undefined ? m.status : $root.proto.SyncActionValue.MerchantPaymentPartnerAction.Status[m.status] : m.status;
|
|
89166
|
-
if (o.oneofs)
|
|
89167
|
-
d._status = "status";
|
|
89168
90231
|
}
|
|
89169
90232
|
if (m.country != null && m.hasOwnProperty("country")) {
|
|
89170
90233
|
d.country = m.country;
|
|
89171
|
-
if (o.oneofs)
|
|
89172
|
-
d._country = "country";
|
|
89173
90234
|
}
|
|
89174
90235
|
if (m.gatewayName != null && m.hasOwnProperty("gatewayName")) {
|
|
89175
90236
|
d.gatewayName = m.gatewayName;
|
|
@@ -90288,20 +91349,8 @@ export const proto = $root.proto = (() => {
|
|
|
90288
91349
|
this[ks[i]] = p[ks[i]];
|
|
90289
91350
|
}
|
|
90290
91351
|
|
|
90291
|
-
PaymentTosAction.prototype.paymentNotice =
|
|
90292
|
-
PaymentTosAction.prototype.accepted =
|
|
90293
|
-
|
|
90294
|
-
let $oneOfFields;
|
|
90295
|
-
|
|
90296
|
-
Object.defineProperty(PaymentTosAction.prototype, "_paymentNotice", {
|
|
90297
|
-
get: $util.oneOfGetter($oneOfFields = ["paymentNotice"]),
|
|
90298
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
90299
|
-
});
|
|
90300
|
-
|
|
90301
|
-
Object.defineProperty(PaymentTosAction.prototype, "_accepted", {
|
|
90302
|
-
get: $util.oneOfGetter($oneOfFields = ["accepted"]),
|
|
90303
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
90304
|
-
});
|
|
91352
|
+
PaymentTosAction.prototype.paymentNotice = 0;
|
|
91353
|
+
PaymentTosAction.prototype.accepted = false;
|
|
90305
91354
|
|
|
90306
91355
|
PaymentTosAction.create = function create(properties) {
|
|
90307
91356
|
return new PaymentTosAction(properties);
|
|
@@ -90368,15 +91417,15 @@ export const proto = $root.proto = (() => {
|
|
|
90368
91417
|
if (!o)
|
|
90369
91418
|
o = {};
|
|
90370
91419
|
var d = {};
|
|
91420
|
+
if (o.defaults) {
|
|
91421
|
+
d.paymentNotice = o.enums === String ? "BR_PAY_PRIVACY_POLICY" : 0;
|
|
91422
|
+
d.accepted = false;
|
|
91423
|
+
}
|
|
90371
91424
|
if (m.paymentNotice != null && m.hasOwnProperty("paymentNotice")) {
|
|
90372
91425
|
d.paymentNotice = o.enums === String ? $root.proto.SyncActionValue.PaymentTosAction.PaymentNotice[m.paymentNotice] === undefined ? m.paymentNotice : $root.proto.SyncActionValue.PaymentTosAction.PaymentNotice[m.paymentNotice] : m.paymentNotice;
|
|
90373
|
-
if (o.oneofs)
|
|
90374
|
-
d._paymentNotice = "paymentNotice";
|
|
90375
91426
|
}
|
|
90376
91427
|
if (m.accepted != null && m.hasOwnProperty("accepted")) {
|
|
90377
91428
|
d.accepted = m.accepted;
|
|
90378
|
-
if (o.oneofs)
|
|
90379
|
-
d._accepted = "accepted";
|
|
90380
91429
|
}
|
|
90381
91430
|
return d;
|
|
90382
91431
|
};
|
|
@@ -91625,6 +92674,8 @@ export const proto = $root.proto = (() => {
|
|
|
91625
92674
|
SettingsSyncAction.prototype.isStatusNotificationEnabled = null;
|
|
91626
92675
|
SettingsSyncAction.prototype.statusNotificationToneId = null;
|
|
91627
92676
|
SettingsSyncAction.prototype.shouldPlaySoundForCallNotification = null;
|
|
92677
|
+
SettingsSyncAction.prototype.chatThemeId = null;
|
|
92678
|
+
SettingsSyncAction.prototype.colorSchemeId = null;
|
|
91628
92679
|
|
|
91629
92680
|
let $oneOfFields;
|
|
91630
92681
|
|
|
@@ -91783,6 +92834,16 @@ export const proto = $root.proto = (() => {
|
|
|
91783
92834
|
set: $util.oneOfSetter($oneOfFields)
|
|
91784
92835
|
});
|
|
91785
92836
|
|
|
92837
|
+
Object.defineProperty(SettingsSyncAction.prototype, "_chatThemeId", {
|
|
92838
|
+
get: $util.oneOfGetter($oneOfFields = ["chatThemeId"]),
|
|
92839
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
92840
|
+
});
|
|
92841
|
+
|
|
92842
|
+
Object.defineProperty(SettingsSyncAction.prototype, "_colorSchemeId", {
|
|
92843
|
+
get: $util.oneOfGetter($oneOfFields = ["colorSchemeId"]),
|
|
92844
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
92845
|
+
});
|
|
92846
|
+
|
|
91786
92847
|
SettingsSyncAction.create = function create(properties) {
|
|
91787
92848
|
return new SettingsSyncAction(properties);
|
|
91788
92849
|
};
|
|
@@ -91852,6 +92913,10 @@ export const proto = $root.proto = (() => {
|
|
|
91852
92913
|
w.uint32(240).int32(m.statusNotificationToneId);
|
|
91853
92914
|
if (m.shouldPlaySoundForCallNotification != null && Object.hasOwnProperty.call(m, "shouldPlaySoundForCallNotification"))
|
|
91854
92915
|
w.uint32(248).bool(m.shouldPlaySoundForCallNotification);
|
|
92916
|
+
if (m.chatThemeId != null && Object.hasOwnProperty.call(m, "chatThemeId"))
|
|
92917
|
+
w.uint32(258).string(m.chatThemeId);
|
|
92918
|
+
if (m.colorSchemeId != null && Object.hasOwnProperty.call(m, "colorSchemeId"))
|
|
92919
|
+
w.uint32(266).string(m.colorSchemeId);
|
|
91855
92920
|
return w;
|
|
91856
92921
|
};
|
|
91857
92922
|
|
|
@@ -91988,6 +93053,14 @@ export const proto = $root.proto = (() => {
|
|
|
91988
93053
|
m.shouldPlaySoundForCallNotification = r.bool();
|
|
91989
93054
|
break;
|
|
91990
93055
|
}
|
|
93056
|
+
case 32: {
|
|
93057
|
+
m.chatThemeId = r.string();
|
|
93058
|
+
break;
|
|
93059
|
+
}
|
|
93060
|
+
case 33: {
|
|
93061
|
+
m.colorSchemeId = r.string();
|
|
93062
|
+
break;
|
|
93063
|
+
}
|
|
91991
93064
|
default:
|
|
91992
93065
|
r.skipType(t & 7);
|
|
91993
93066
|
break;
|
|
@@ -92152,6 +93225,12 @@ export const proto = $root.proto = (() => {
|
|
|
92152
93225
|
if (d.shouldPlaySoundForCallNotification != null) {
|
|
92153
93226
|
m.shouldPlaySoundForCallNotification = Boolean(d.shouldPlaySoundForCallNotification);
|
|
92154
93227
|
}
|
|
93228
|
+
if (d.chatThemeId != null) {
|
|
93229
|
+
m.chatThemeId = String(d.chatThemeId);
|
|
93230
|
+
}
|
|
93231
|
+
if (d.colorSchemeId != null) {
|
|
93232
|
+
m.colorSchemeId = String(d.colorSchemeId);
|
|
93233
|
+
}
|
|
92155
93234
|
return m;
|
|
92156
93235
|
};
|
|
92157
93236
|
|
|
@@ -92314,6 +93393,16 @@ export const proto = $root.proto = (() => {
|
|
|
92314
93393
|
if (o.oneofs)
|
|
92315
93394
|
d._shouldPlaySoundForCallNotification = "shouldPlaySoundForCallNotification";
|
|
92316
93395
|
}
|
|
93396
|
+
if (m.chatThemeId != null && m.hasOwnProperty("chatThemeId")) {
|
|
93397
|
+
d.chatThemeId = m.chatThemeId;
|
|
93398
|
+
if (o.oneofs)
|
|
93399
|
+
d._chatThemeId = "chatThemeId";
|
|
93400
|
+
}
|
|
93401
|
+
if (m.colorSchemeId != null && m.hasOwnProperty("colorSchemeId")) {
|
|
93402
|
+
d.colorSchemeId = m.colorSchemeId;
|
|
93403
|
+
if (o.oneofs)
|
|
93404
|
+
d._colorSchemeId = "colorSchemeId";
|
|
93405
|
+
}
|
|
92317
93406
|
return d;
|
|
92318
93407
|
};
|
|
92319
93408
|
|
|
@@ -92379,6 +93468,8 @@ export const proto = $root.proto = (() => {
|
|
|
92379
93468
|
values[valuesById[29] = "IS_STATUS_NOTIFICATION_ENABLED"] = 29;
|
|
92380
93469
|
values[valuesById[30] = "STATUS_NOTIFICATION_TONE_ID"] = 30;
|
|
92381
93470
|
values[valuesById[31] = "SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION"] = 31;
|
|
93471
|
+
values[valuesById[32] = "CHAT_THEME_ID"] = 32;
|
|
93472
|
+
values[valuesById[33] = "COLOR_SCHEME_ID"] = 33;
|
|
92382
93473
|
return values;
|
|
92383
93474
|
})();
|
|
92384
93475
|
|
|
@@ -92573,6 +93664,7 @@ export const proto = $root.proto = (() => {
|
|
|
92573
93664
|
|
|
92574
93665
|
function StatusPrivacyAction(p) {
|
|
92575
93666
|
this.userJid = [];
|
|
93667
|
+
this.customLists = [];
|
|
92576
93668
|
if (p)
|
|
92577
93669
|
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
92578
93670
|
if (p[ks[i]] != null)
|
|
@@ -92583,6 +93675,7 @@ export const proto = $root.proto = (() => {
|
|
|
92583
93675
|
StatusPrivacyAction.prototype.userJid = $util.emptyArray;
|
|
92584
93676
|
StatusPrivacyAction.prototype.shareToFB = null;
|
|
92585
93677
|
StatusPrivacyAction.prototype.shareToIG = null;
|
|
93678
|
+
StatusPrivacyAction.prototype.customLists = $util.emptyArray;
|
|
92586
93679
|
|
|
92587
93680
|
let $oneOfFields;
|
|
92588
93681
|
|
|
@@ -92618,6 +93711,10 @@ export const proto = $root.proto = (() => {
|
|
|
92618
93711
|
w.uint32(24).bool(m.shareToFB);
|
|
92619
93712
|
if (m.shareToIG != null && Object.hasOwnProperty.call(m, "shareToIG"))
|
|
92620
93713
|
w.uint32(32).bool(m.shareToIG);
|
|
93714
|
+
if (m.customLists != null && m.customLists.length) {
|
|
93715
|
+
for (var i = 0; i < m.customLists.length; ++i)
|
|
93716
|
+
$root.proto.SyncActionValue.StatusPrivacyAction.CustomList.encode(m.customLists[i], w.uint32(42).fork()).ldelim();
|
|
93717
|
+
}
|
|
92621
93718
|
return w;
|
|
92622
93719
|
};
|
|
92623
93720
|
|
|
@@ -92648,6 +93745,12 @@ export const proto = $root.proto = (() => {
|
|
|
92648
93745
|
m.shareToIG = r.bool();
|
|
92649
93746
|
break;
|
|
92650
93747
|
}
|
|
93748
|
+
case 5: {
|
|
93749
|
+
if (!(m.customLists && m.customLists.length))
|
|
93750
|
+
m.customLists = [];
|
|
93751
|
+
m.customLists.push($root.proto.SyncActionValue.StatusPrivacyAction.CustomList.decode(r, r.uint32()));
|
|
93752
|
+
break;
|
|
93753
|
+
}
|
|
92651
93754
|
default:
|
|
92652
93755
|
r.skipType(t & 7);
|
|
92653
93756
|
break;
|
|
@@ -92683,6 +93786,10 @@ export const proto = $root.proto = (() => {
|
|
|
92683
93786
|
case 3:
|
|
92684
93787
|
m.mode = 3;
|
|
92685
93788
|
break;
|
|
93789
|
+
case "CUSTOM_LIST":
|
|
93790
|
+
case 4:
|
|
93791
|
+
m.mode = 4;
|
|
93792
|
+
break;
|
|
92686
93793
|
}
|
|
92687
93794
|
if (d.userJid) {
|
|
92688
93795
|
if (!Array.isArray(d.userJid))
|
|
@@ -92698,6 +93805,16 @@ export const proto = $root.proto = (() => {
|
|
|
92698
93805
|
if (d.shareToIG != null) {
|
|
92699
93806
|
m.shareToIG = Boolean(d.shareToIG);
|
|
92700
93807
|
}
|
|
93808
|
+
if (d.customLists) {
|
|
93809
|
+
if (!Array.isArray(d.customLists))
|
|
93810
|
+
throw TypeError(".proto.SyncActionValue.StatusPrivacyAction.customLists: array expected");
|
|
93811
|
+
m.customLists = [];
|
|
93812
|
+
for (var i = 0; i < d.customLists.length; ++i) {
|
|
93813
|
+
if (typeof d.customLists[i] !== "object")
|
|
93814
|
+
throw TypeError(".proto.SyncActionValue.StatusPrivacyAction.customLists: object expected");
|
|
93815
|
+
m.customLists[i] = $root.proto.SyncActionValue.StatusPrivacyAction.CustomList.fromObject(d.customLists[i]);
|
|
93816
|
+
}
|
|
93817
|
+
}
|
|
92701
93818
|
return m;
|
|
92702
93819
|
};
|
|
92703
93820
|
|
|
@@ -92707,6 +93824,7 @@ export const proto = $root.proto = (() => {
|
|
|
92707
93824
|
var d = {};
|
|
92708
93825
|
if (o.arrays || o.defaults) {
|
|
92709
93826
|
d.userJid = [];
|
|
93827
|
+
d.customLists = [];
|
|
92710
93828
|
}
|
|
92711
93829
|
if (m.mode != null && m.hasOwnProperty("mode")) {
|
|
92712
93830
|
d.mode = o.enums === String ? $root.proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[m.mode] === undefined ? m.mode : $root.proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[m.mode] : m.mode;
|
|
@@ -92729,6 +93847,12 @@ export const proto = $root.proto = (() => {
|
|
|
92729
93847
|
if (o.oneofs)
|
|
92730
93848
|
d._shareToIG = "shareToIG";
|
|
92731
93849
|
}
|
|
93850
|
+
if (m.customLists && m.customLists.length) {
|
|
93851
|
+
d.customLists = [];
|
|
93852
|
+
for (var j = 0; j < m.customLists.length; ++j) {
|
|
93853
|
+
d.customLists[j] = $root.proto.SyncActionValue.StatusPrivacyAction.CustomList.toObject(m.customLists[j], o);
|
|
93854
|
+
}
|
|
93855
|
+
}
|
|
92732
93856
|
return d;
|
|
92733
93857
|
};
|
|
92734
93858
|
|
|
@@ -92743,12 +93867,189 @@ export const proto = $root.proto = (() => {
|
|
|
92743
93867
|
return typeUrlPrefix + "/proto.SyncActionValue.StatusPrivacyAction";
|
|
92744
93868
|
};
|
|
92745
93869
|
|
|
93870
|
+
StatusPrivacyAction.CustomList = (function() {
|
|
93871
|
+
|
|
93872
|
+
function CustomList(p) {
|
|
93873
|
+
this.userJid = [];
|
|
93874
|
+
if (p)
|
|
93875
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
93876
|
+
if (p[ks[i]] != null)
|
|
93877
|
+
this[ks[i]] = p[ks[i]];
|
|
93878
|
+
}
|
|
93879
|
+
|
|
93880
|
+
CustomList.prototype.listId = null;
|
|
93881
|
+
CustomList.prototype.name = null;
|
|
93882
|
+
CustomList.prototype.emoji = null;
|
|
93883
|
+
CustomList.prototype.isSelected = null;
|
|
93884
|
+
CustomList.prototype.userJid = $util.emptyArray;
|
|
93885
|
+
|
|
93886
|
+
let $oneOfFields;
|
|
93887
|
+
|
|
93888
|
+
Object.defineProperty(CustomList.prototype, "_listId", {
|
|
93889
|
+
get: $util.oneOfGetter($oneOfFields = ["listId"]),
|
|
93890
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93891
|
+
});
|
|
93892
|
+
|
|
93893
|
+
Object.defineProperty(CustomList.prototype, "_name", {
|
|
93894
|
+
get: $util.oneOfGetter($oneOfFields = ["name"]),
|
|
93895
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93896
|
+
});
|
|
93897
|
+
|
|
93898
|
+
Object.defineProperty(CustomList.prototype, "_emoji", {
|
|
93899
|
+
get: $util.oneOfGetter($oneOfFields = ["emoji"]),
|
|
93900
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93901
|
+
});
|
|
93902
|
+
|
|
93903
|
+
Object.defineProperty(CustomList.prototype, "_isSelected", {
|
|
93904
|
+
get: $util.oneOfGetter($oneOfFields = ["isSelected"]),
|
|
93905
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93906
|
+
});
|
|
93907
|
+
|
|
93908
|
+
CustomList.create = function create(properties) {
|
|
93909
|
+
return new CustomList(properties);
|
|
93910
|
+
};
|
|
93911
|
+
|
|
93912
|
+
CustomList.encode = function encode(m, w) {
|
|
93913
|
+
if (!w)
|
|
93914
|
+
w = $Writer.create();
|
|
93915
|
+
if (m.listId != null && Object.hasOwnProperty.call(m, "listId"))
|
|
93916
|
+
w.uint32(10).string(m.listId);
|
|
93917
|
+
if (m.name != null && Object.hasOwnProperty.call(m, "name"))
|
|
93918
|
+
w.uint32(18).string(m.name);
|
|
93919
|
+
if (m.emoji != null && Object.hasOwnProperty.call(m, "emoji"))
|
|
93920
|
+
w.uint32(26).string(m.emoji);
|
|
93921
|
+
if (m.isSelected != null && Object.hasOwnProperty.call(m, "isSelected"))
|
|
93922
|
+
w.uint32(32).bool(m.isSelected);
|
|
93923
|
+
if (m.userJid != null && m.userJid.length) {
|
|
93924
|
+
for (var i = 0; i < m.userJid.length; ++i)
|
|
93925
|
+
w.uint32(42).string(m.userJid[i]);
|
|
93926
|
+
}
|
|
93927
|
+
return w;
|
|
93928
|
+
};
|
|
93929
|
+
|
|
93930
|
+
CustomList.decode = function decode(r, l, e) {
|
|
93931
|
+
if (!(r instanceof $Reader))
|
|
93932
|
+
r = $Reader.create(r);
|
|
93933
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.StatusPrivacyAction.CustomList();
|
|
93934
|
+
while (r.pos < c) {
|
|
93935
|
+
var t = r.uint32();
|
|
93936
|
+
if (t === e)
|
|
93937
|
+
break;
|
|
93938
|
+
switch (t >>> 3) {
|
|
93939
|
+
case 1: {
|
|
93940
|
+
m.listId = r.string();
|
|
93941
|
+
break;
|
|
93942
|
+
}
|
|
93943
|
+
case 2: {
|
|
93944
|
+
m.name = r.string();
|
|
93945
|
+
break;
|
|
93946
|
+
}
|
|
93947
|
+
case 3: {
|
|
93948
|
+
m.emoji = r.string();
|
|
93949
|
+
break;
|
|
93950
|
+
}
|
|
93951
|
+
case 4: {
|
|
93952
|
+
m.isSelected = r.bool();
|
|
93953
|
+
break;
|
|
93954
|
+
}
|
|
93955
|
+
case 5: {
|
|
93956
|
+
if (!(m.userJid && m.userJid.length))
|
|
93957
|
+
m.userJid = [];
|
|
93958
|
+
m.userJid.push(r.string());
|
|
93959
|
+
break;
|
|
93960
|
+
}
|
|
93961
|
+
default:
|
|
93962
|
+
r.skipType(t & 7);
|
|
93963
|
+
break;
|
|
93964
|
+
}
|
|
93965
|
+
}
|
|
93966
|
+
return m;
|
|
93967
|
+
};
|
|
93968
|
+
|
|
93969
|
+
CustomList.fromObject = function fromObject(d) {
|
|
93970
|
+
if (d instanceof $root.proto.SyncActionValue.StatusPrivacyAction.CustomList)
|
|
93971
|
+
return d;
|
|
93972
|
+
var m = new $root.proto.SyncActionValue.StatusPrivacyAction.CustomList();
|
|
93973
|
+
if (d.listId != null) {
|
|
93974
|
+
m.listId = String(d.listId);
|
|
93975
|
+
}
|
|
93976
|
+
if (d.name != null) {
|
|
93977
|
+
m.name = String(d.name);
|
|
93978
|
+
}
|
|
93979
|
+
if (d.emoji != null) {
|
|
93980
|
+
m.emoji = String(d.emoji);
|
|
93981
|
+
}
|
|
93982
|
+
if (d.isSelected != null) {
|
|
93983
|
+
m.isSelected = Boolean(d.isSelected);
|
|
93984
|
+
}
|
|
93985
|
+
if (d.userJid) {
|
|
93986
|
+
if (!Array.isArray(d.userJid))
|
|
93987
|
+
throw TypeError(".proto.SyncActionValue.StatusPrivacyAction.CustomList.userJid: array expected");
|
|
93988
|
+
m.userJid = [];
|
|
93989
|
+
for (var i = 0; i < d.userJid.length; ++i) {
|
|
93990
|
+
m.userJid[i] = String(d.userJid[i]);
|
|
93991
|
+
}
|
|
93992
|
+
}
|
|
93993
|
+
return m;
|
|
93994
|
+
};
|
|
93995
|
+
|
|
93996
|
+
CustomList.toObject = function toObject(m, o) {
|
|
93997
|
+
if (!o)
|
|
93998
|
+
o = {};
|
|
93999
|
+
var d = {};
|
|
94000
|
+
if (o.arrays || o.defaults) {
|
|
94001
|
+
d.userJid = [];
|
|
94002
|
+
}
|
|
94003
|
+
if (m.listId != null && m.hasOwnProperty("listId")) {
|
|
94004
|
+
d.listId = m.listId;
|
|
94005
|
+
if (o.oneofs)
|
|
94006
|
+
d._listId = "listId";
|
|
94007
|
+
}
|
|
94008
|
+
if (m.name != null && m.hasOwnProperty("name")) {
|
|
94009
|
+
d.name = m.name;
|
|
94010
|
+
if (o.oneofs)
|
|
94011
|
+
d._name = "name";
|
|
94012
|
+
}
|
|
94013
|
+
if (m.emoji != null && m.hasOwnProperty("emoji")) {
|
|
94014
|
+
d.emoji = m.emoji;
|
|
94015
|
+
if (o.oneofs)
|
|
94016
|
+
d._emoji = "emoji";
|
|
94017
|
+
}
|
|
94018
|
+
if (m.isSelected != null && m.hasOwnProperty("isSelected")) {
|
|
94019
|
+
d.isSelected = m.isSelected;
|
|
94020
|
+
if (o.oneofs)
|
|
94021
|
+
d._isSelected = "isSelected";
|
|
94022
|
+
}
|
|
94023
|
+
if (m.userJid && m.userJid.length) {
|
|
94024
|
+
d.userJid = [];
|
|
94025
|
+
for (var j = 0; j < m.userJid.length; ++j) {
|
|
94026
|
+
d.userJid[j] = m.userJid[j];
|
|
94027
|
+
}
|
|
94028
|
+
}
|
|
94029
|
+
return d;
|
|
94030
|
+
};
|
|
94031
|
+
|
|
94032
|
+
CustomList.prototype.toJSON = function toJSON() {
|
|
94033
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
94034
|
+
};
|
|
94035
|
+
|
|
94036
|
+
CustomList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
94037
|
+
if (typeUrlPrefix === undefined) {
|
|
94038
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
94039
|
+
}
|
|
94040
|
+
return typeUrlPrefix + "/proto.SyncActionValue.StatusPrivacyAction.CustomList";
|
|
94041
|
+
};
|
|
94042
|
+
|
|
94043
|
+
return CustomList;
|
|
94044
|
+
})();
|
|
94045
|
+
|
|
92746
94046
|
StatusPrivacyAction.StatusDistributionMode = (function() {
|
|
92747
94047
|
const valuesById = {}, values = Object.create(valuesById);
|
|
92748
94048
|
values[valuesById[0] = "ALLOW_LIST"] = 0;
|
|
92749
94049
|
values[valuesById[1] = "DENY_LIST"] = 1;
|
|
92750
94050
|
values[valuesById[2] = "CONTACTS"] = 2;
|
|
92751
94051
|
values[valuesById[3] = "CLOSE_FRIENDS"] = 3;
|
|
94052
|
+
values[valuesById[4] = "CUSTOM_LIST"] = 4;
|
|
92752
94053
|
return values;
|
|
92753
94054
|
})();
|
|
92754
94055
|
|
|
@@ -99956,6 +101257,8 @@ export const proto = $root.proto = (() => {
|
|
|
99956
101257
|
WebMessageInfo.prototype.quarantinedMessage = null;
|
|
99957
101258
|
WebMessageInfo.prototype.nonJidMentions = null;
|
|
99958
101259
|
WebMessageInfo.prototype.hsmTag = null;
|
|
101260
|
+
WebMessageInfo.prototype.ephemeralExpirationTimestamp = null;
|
|
101261
|
+
WebMessageInfo.prototype.scheduledMessageMetadata = null;
|
|
99959
101262
|
|
|
99960
101263
|
let $oneOfFields;
|
|
99961
101264
|
|
|
@@ -100244,6 +101547,16 @@ export const proto = $root.proto = (() => {
|
|
|
100244
101547
|
set: $util.oneOfSetter($oneOfFields)
|
|
100245
101548
|
});
|
|
100246
101549
|
|
|
101550
|
+
Object.defineProperty(WebMessageInfo.prototype, "_ephemeralExpirationTimestamp", {
|
|
101551
|
+
get: $util.oneOfGetter($oneOfFields = ["ephemeralExpirationTimestamp"]),
|
|
101552
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
101553
|
+
});
|
|
101554
|
+
|
|
101555
|
+
Object.defineProperty(WebMessageInfo.prototype, "_scheduledMessageMetadata", {
|
|
101556
|
+
get: $util.oneOfGetter($oneOfFields = ["scheduledMessageMetadata"]),
|
|
101557
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
101558
|
+
});
|
|
101559
|
+
|
|
100247
101560
|
WebMessageInfo.create = function create(properties) {
|
|
100248
101561
|
return new WebMessageInfo(properties);
|
|
100249
101562
|
};
|
|
@@ -100407,6 +101720,10 @@ export const proto = $root.proto = (() => {
|
|
|
100407
101720
|
w.uint32(624).uint32(m.nonJidMentions);
|
|
100408
101721
|
if (m.hsmTag != null && Object.hasOwnProperty.call(m, "hsmTag"))
|
|
100409
101722
|
w.uint32(634).string(m.hsmTag);
|
|
101723
|
+
if (m.ephemeralExpirationTimestamp != null && Object.hasOwnProperty.call(m, "ephemeralExpirationTimestamp"))
|
|
101724
|
+
w.uint32(640).uint64(m.ephemeralExpirationTimestamp);
|
|
101725
|
+
if (m.scheduledMessageMetadata != null && Object.hasOwnProperty.call(m, "scheduledMessageMetadata"))
|
|
101726
|
+
$root.proto.ScheduledMessageMetadata.encode(m.scheduledMessageMetadata, w.uint32(650).fork()).ldelim();
|
|
100410
101727
|
return w;
|
|
100411
101728
|
};
|
|
100412
101729
|
|
|
@@ -100711,6 +102028,14 @@ export const proto = $root.proto = (() => {
|
|
|
100711
102028
|
m.hsmTag = r.string();
|
|
100712
102029
|
break;
|
|
100713
102030
|
}
|
|
102031
|
+
case 80: {
|
|
102032
|
+
m.ephemeralExpirationTimestamp = r.uint64();
|
|
102033
|
+
break;
|
|
102034
|
+
}
|
|
102035
|
+
case 81: {
|
|
102036
|
+
m.scheduledMessageMetadata = $root.proto.ScheduledMessageMetadata.decode(r, r.uint32());
|
|
102037
|
+
break;
|
|
102038
|
+
}
|
|
100714
102039
|
default:
|
|
100715
102040
|
r.skipType(t & 7);
|
|
100716
102041
|
break;
|
|
@@ -101718,6 +103043,14 @@ export const proto = $root.proto = (() => {
|
|
|
101718
103043
|
case 223:
|
|
101719
103044
|
m.messageStubType = 223;
|
|
101720
103045
|
break;
|
|
103046
|
+
case "CONTACT_INFO":
|
|
103047
|
+
case 224:
|
|
103048
|
+
m.messageStubType = 224;
|
|
103049
|
+
break;
|
|
103050
|
+
case "SCHEDULED_MESSAGE_CREATED":
|
|
103051
|
+
case 225:
|
|
103052
|
+
m.messageStubType = 225;
|
|
103053
|
+
break;
|
|
101721
103054
|
}
|
|
101722
103055
|
if (d.clearMedia != null) {
|
|
101723
103056
|
m.clearMedia = Boolean(d.clearMedia);
|
|
@@ -102028,6 +103361,21 @@ export const proto = $root.proto = (() => {
|
|
|
102028
103361
|
if (d.hsmTag != null) {
|
|
102029
103362
|
m.hsmTag = String(d.hsmTag);
|
|
102030
103363
|
}
|
|
103364
|
+
if (d.ephemeralExpirationTimestamp != null) {
|
|
103365
|
+
if ($util.Long)
|
|
103366
|
+
(m.ephemeralExpirationTimestamp = $util.Long.fromValue(d.ephemeralExpirationTimestamp)).unsigned = true;
|
|
103367
|
+
else if (typeof d.ephemeralExpirationTimestamp === "string")
|
|
103368
|
+
m.ephemeralExpirationTimestamp = parseInt(d.ephemeralExpirationTimestamp, 10);
|
|
103369
|
+
else if (typeof d.ephemeralExpirationTimestamp === "number")
|
|
103370
|
+
m.ephemeralExpirationTimestamp = d.ephemeralExpirationTimestamp;
|
|
103371
|
+
else if (typeof d.ephemeralExpirationTimestamp === "object")
|
|
103372
|
+
m.ephemeralExpirationTimestamp = new $util.LongBits(d.ephemeralExpirationTimestamp.low >>> 0, d.ephemeralExpirationTimestamp.high >>> 0).toNumber(true);
|
|
103373
|
+
}
|
|
103374
|
+
if (d.scheduledMessageMetadata != null) {
|
|
103375
|
+
if (typeof d.scheduledMessageMetadata !== "object")
|
|
103376
|
+
throw TypeError(".proto.WebMessageInfo.scheduledMessageMetadata: object expected");
|
|
103377
|
+
m.scheduledMessageMetadata = $root.proto.ScheduledMessageMetadata.fromObject(d.scheduledMessageMetadata);
|
|
103378
|
+
}
|
|
102031
103379
|
return m;
|
|
102032
103380
|
};
|
|
102033
103381
|
|
|
@@ -102413,6 +103761,19 @@ export const proto = $root.proto = (() => {
|
|
|
102413
103761
|
if (o.oneofs)
|
|
102414
103762
|
d._hsmTag = "hsmTag";
|
|
102415
103763
|
}
|
|
103764
|
+
if (m.ephemeralExpirationTimestamp != null && m.hasOwnProperty("ephemeralExpirationTimestamp")) {
|
|
103765
|
+
if (typeof m.ephemeralExpirationTimestamp === "number")
|
|
103766
|
+
d.ephemeralExpirationTimestamp = o.longs === String ? String(m.ephemeralExpirationTimestamp) : m.ephemeralExpirationTimestamp;
|
|
103767
|
+
else
|
|
103768
|
+
d.ephemeralExpirationTimestamp = o.longs === String ? longToString(m.ephemeralExpirationTimestamp, true) : o.longs === Number ? longToNumber(m.ephemeralExpirationTimestamp, true) : m.ephemeralExpirationTimestamp;
|
|
103769
|
+
if (o.oneofs)
|
|
103770
|
+
d._ephemeralExpirationTimestamp = "ephemeralExpirationTimestamp";
|
|
103771
|
+
}
|
|
103772
|
+
if (m.scheduledMessageMetadata != null && m.hasOwnProperty("scheduledMessageMetadata")) {
|
|
103773
|
+
d.scheduledMessageMetadata = $root.proto.ScheduledMessageMetadata.toObject(m.scheduledMessageMetadata, o);
|
|
103774
|
+
if (o.oneofs)
|
|
103775
|
+
d._scheduledMessageMetadata = "scheduledMessageMetadata";
|
|
103776
|
+
}
|
|
102416
103777
|
return d;
|
|
102417
103778
|
};
|
|
102418
103779
|
|
|
@@ -102673,6 +104034,8 @@ export const proto = $root.proto = (() => {
|
|
|
102673
104034
|
values[valuesById[221] = "GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE"] = 221;
|
|
102674
104035
|
values[valuesById[222] = "GROUP_OPEN_BOT_ADDED"] = 222;
|
|
102675
104036
|
values[valuesById[223] = "GROUP_TEE_BOT_ADDED"] = 223;
|
|
104037
|
+
values[valuesById[224] = "CONTACT_INFO"] = 224;
|
|
104038
|
+
values[valuesById[225] = "SCHEDULED_MESSAGE_CREATED"] = 225;
|
|
102676
104039
|
return values;
|
|
102677
104040
|
})();
|
|
102678
104041
|
|