@kaels/casileys 0.4.3 → 0.4.5
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/README.md +1099 -539
- package/WAProto/index.d.ts +237 -34
- package/WAProto/index.js +1729 -211
- package/lib/Defaults/index.d.ts +8 -2
- package/lib/Defaults/index.d.ts.map +1 -1
- package/lib/Defaults/index.js +12 -6
- package/lib/Defaults/index.js.map +1 -1
- package/lib/Socket/business.d.ts +1 -1
- package/lib/Socket/chats.d.ts +8 -1
- package/lib/Socket/chats.d.ts.map +1 -1
- package/lib/Socket/chats.js +13 -8
- package/lib/Socket/chats.js.map +1 -1
- package/lib/Socket/communities.d.ts +1 -1
- package/lib/Socket/groups.d.ts +1 -1
- package/lib/Socket/index.d.ts +1 -1
- package/lib/Socket/index.js +2 -19
- package/lib/Socket/messages-recv.d.ts +1 -1
- package/lib/Socket/messages-send.d.ts +1 -1
- package/lib/Socket/newsletter.d.ts +1 -1
- package/lib/Socket/socket.d.ts.map +1 -1
- package/lib/Socket/socket.js +3 -0
- package/lib/Socket/socket.js.map +1 -1
- package/lib/Store/make-in-memory-store.js +2 -2
- package/lib/Utils/auth-utils.d.ts.map +1 -1
- package/lib/Utils/auth-utils.js +5 -1
- package/lib/Utils/auth-utils.js.map +1 -1
- package/lib/Utils/browser-utils.d.ts +2 -1
- package/lib/Utils/browser-utils.d.ts.map +1 -1
- package/lib/Utils/browser-utils.js +2 -1
- package/lib/Utils/browser-utils.js.map +1 -1
- package/lib/Utils/chat-utils.js +1 -1
- package/lib/Utils/decode-wa-message.d.ts.map +1 -1
- package/lib/Utils/decode-wa-message.js +6 -0
- package/lib/Utils/decode-wa-message.js.map +1 -1
- package/lib/Utils/event-buffer.js +1 -1
- package/lib/Utils/generics.d.ts +1 -1
- package/lib/Utils/generics.js +10 -10
- package/lib/Utils/group-status.d.ts +58 -0
- package/lib/Utils/group-status.js +477 -0
- package/lib/Utils/index.d.ts +1 -0
- package/lib/Utils/index.js +2 -0
- package/lib/Utils/index.js.map +1 -1
- package/lib/Utils/messages.d.ts +4 -4
- package/lib/Utils/messages.d.ts.map +1 -1
- package/lib/Utils/messages.js +32 -64
- package/lib/Utils/messages.js.map +1 -1
- package/lib/Utils/process-message.d.ts.map +1 -1
- package/lib/Utils/process-message.js.map +1 -1
- package/lib/Utils/rich-message-utils.d.ts +1 -1
- package/lib/Utils/rich-message-utils.d.ts.map +1 -1
- package/lib/Utils/rich-message-utils.js +124 -12
- package/lib/Utils/rich-message-utils.js.map +1 -1
- package/lib/Utils/tc-token-utils.d.ts.map +1 -1
- package/lib/Utils/tc-token-utils.js +3 -2
- package/lib/Utils/tc-token-utils.js.map +1 -1
- package/lib/Utils/use-single-file-auth-state.js +1 -1
- package/lib/Utils/use-sqlite-auth-state.d.ts +11 -0
- package/lib/Utils/use-sqlite-auth-state.d.ts.map +1 -0
- package/lib/Utils/use-sqlite-auth-state.js +109 -0
- package/lib/Utils/use-sqlite-auth-state.js.map +1 -0
- package/lib/Utils/validate-connection.d.ts.map +1 -1
- package/lib/Utils/validate-connection.js +9 -2
- package/lib/Utils/validate-connection.js.map +1 -1
- package/lib/WABinary/constants.d.ts +16 -0
- package/lib/WABinary/constants.d.ts.map +1 -1
- package/lib/WABinary/constants.js +99 -5
- package/lib/WABinary/constants.js.map +1 -1
- package/lib/WABinary/generic-utils.js +1 -1
- package/package.json +109 -105
package/WAProto/index.js
CHANGED
|
@@ -1687,6 +1687,104 @@ export const proto = $root.proto = (() => {
|
|
|
1687
1687
|
return AIMediaCollectionMetadata;
|
|
1688
1688
|
})();
|
|
1689
1689
|
|
|
1690
|
+
proto.AIMetadataOperation = (function() {
|
|
1691
|
+
|
|
1692
|
+
function AIMetadataOperation(p) {
|
|
1693
|
+
if (p)
|
|
1694
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
1695
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
1696
|
+
this[ks[i]] = p[ks[i]];
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
AIMetadataOperation.prototype.hatchMetadataSync = null;
|
|
1700
|
+
|
|
1701
|
+
let $oneOfFields;
|
|
1702
|
+
|
|
1703
|
+
// Virtual OneOf for proto3 optional field
|
|
1704
|
+
Object.defineProperty(AIMetadataOperation.prototype, "_hatchMetadataSync", {
|
|
1705
|
+
get: $util.oneOfGetter($oneOfFields = ["hatchMetadataSync"]),
|
|
1706
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1707
|
+
});
|
|
1708
|
+
|
|
1709
|
+
AIMetadataOperation.create = function create(properties) {
|
|
1710
|
+
return new AIMetadataOperation(properties);
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
AIMetadataOperation.encode = function encode(m, w) {
|
|
1714
|
+
if (!w)
|
|
1715
|
+
w = $Writer.create();
|
|
1716
|
+
if (m.hatchMetadataSync != null && Object.hasOwnProperty.call(m, "hatchMetadataSync"))
|
|
1717
|
+
$root.proto.HatchMetadataSync.encode(m.hatchMetadataSync, w.uint32(10).fork()).ldelim();
|
|
1718
|
+
return w;
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
AIMetadataOperation.decode = function decode(r, l, e, n) {
|
|
1722
|
+
if (!(r instanceof $Reader))
|
|
1723
|
+
r = $Reader.create(r);
|
|
1724
|
+
if (n === undefined)
|
|
1725
|
+
n = 0;
|
|
1726
|
+
if (n > $Reader.recursionLimit)
|
|
1727
|
+
throw Error("maximum nesting depth exceeded");
|
|
1728
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIMetadataOperation();
|
|
1729
|
+
while (r.pos < c) {
|
|
1730
|
+
var t = r.uint32();
|
|
1731
|
+
if (t === e)
|
|
1732
|
+
break;
|
|
1733
|
+
switch (t >>> 3) {
|
|
1734
|
+
case 1: {
|
|
1735
|
+
m.hatchMetadataSync = $root.proto.HatchMetadataSync.decode(r, r.uint32(), undefined, n + 1);
|
|
1736
|
+
break;
|
|
1737
|
+
}
|
|
1738
|
+
default:
|
|
1739
|
+
r.skipType(t & 7, n);
|
|
1740
|
+
break;
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
return m;
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
AIMetadataOperation.fromObject = function fromObject(d, n) {
|
|
1747
|
+
if (d instanceof $root.proto.AIMetadataOperation)
|
|
1748
|
+
return d;
|
|
1749
|
+
if (n === undefined)
|
|
1750
|
+
n = 0;
|
|
1751
|
+
if (n > $util.recursionLimit)
|
|
1752
|
+
throw Error("maximum nesting depth exceeded");
|
|
1753
|
+
var m = new $root.proto.AIMetadataOperation();
|
|
1754
|
+
if (d.hatchMetadataSync != null) {
|
|
1755
|
+
if (typeof d.hatchMetadataSync !== "object")
|
|
1756
|
+
throw TypeError(".proto.AIMetadataOperation.hatchMetadataSync: object expected");
|
|
1757
|
+
m.hatchMetadataSync = $root.proto.HatchMetadataSync.fromObject(d.hatchMetadataSync, n + 1);
|
|
1758
|
+
}
|
|
1759
|
+
return m;
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
AIMetadataOperation.toObject = function toObject(m, o) {
|
|
1763
|
+
if (!o)
|
|
1764
|
+
o = {};
|
|
1765
|
+
var d = {};
|
|
1766
|
+
if (m.hatchMetadataSync != null && m.hasOwnProperty("hatchMetadataSync")) {
|
|
1767
|
+
d.hatchMetadataSync = $root.proto.HatchMetadataSync.toObject(m.hatchMetadataSync, o);
|
|
1768
|
+
if (o.oneofs)
|
|
1769
|
+
d._hatchMetadataSync = "hatchMetadataSync";
|
|
1770
|
+
}
|
|
1771
|
+
return d;
|
|
1772
|
+
};
|
|
1773
|
+
|
|
1774
|
+
AIMetadataOperation.prototype.toJSON = function toJSON() {
|
|
1775
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1778
|
+
AIMetadataOperation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1779
|
+
if (typeUrlPrefix === undefined) {
|
|
1780
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1781
|
+
}
|
|
1782
|
+
return typeUrlPrefix + "/proto.AIMetadataOperation";
|
|
1783
|
+
};
|
|
1784
|
+
|
|
1785
|
+
return AIMetadataOperation;
|
|
1786
|
+
})();
|
|
1787
|
+
|
|
1690
1788
|
proto.AIQueryFanout = (function() {
|
|
1691
1789
|
|
|
1692
1790
|
function AIQueryFanout(p) {
|
|
@@ -7409,6 +7507,10 @@ export const proto = $root.proto = (() => {
|
|
|
7409
7507
|
case 64:
|
|
7410
7508
|
m.capabilities[i] = 64;
|
|
7411
7509
|
break;
|
|
7510
|
+
case "AI_SUBSCRIPTION_METERING_ENABLED":
|
|
7511
|
+
case 65:
|
|
7512
|
+
m.capabilities[i] = 65;
|
|
7513
|
+
break;
|
|
7412
7514
|
}
|
|
7413
7515
|
}
|
|
7414
7516
|
}
|
|
@@ -7509,6 +7611,7 @@ export const proto = $root.proto = (() => {
|
|
|
7509
7611
|
values[valuesById[62] = "UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED"] = 62;
|
|
7510
7612
|
values[valuesById[63] = "UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED"] = 63;
|
|
7511
7613
|
values[valuesById[64] = "AI_RICH_RESPONSE_MAPS_V2_ENABLED"] = 64;
|
|
7614
|
+
values[valuesById[65] = "AI_SUBSCRIPTION_METERING_ENABLED"] = 65;
|
|
7512
7615
|
return values;
|
|
7513
7616
|
})();
|
|
7514
7617
|
|
|
@@ -11306,6 +11409,7 @@ export const proto = $root.proto = (() => {
|
|
|
11306
11409
|
BotMetadata.prototype.commandMetadata = null;
|
|
11307
11410
|
BotMetadata.prototype.resolvedToolCallMetadata = null;
|
|
11308
11411
|
BotMetadata.prototype.subscriptionUpsellMetadata = null;
|
|
11412
|
+
BotMetadata.prototype.pttPromptMetadata = null;
|
|
11309
11413
|
BotMetadata.prototype.internalMetadata = null;
|
|
11310
11414
|
|
|
11311
11415
|
let $oneOfFields;
|
|
@@ -11550,6 +11654,12 @@ export const proto = $root.proto = (() => {
|
|
|
11550
11654
|
set: $util.oneOfSetter($oneOfFields)
|
|
11551
11655
|
});
|
|
11552
11656
|
|
|
11657
|
+
// Virtual OneOf for proto3 optional field
|
|
11658
|
+
Object.defineProperty(BotMetadata.prototype, "_pttPromptMetadata", {
|
|
11659
|
+
get: $util.oneOfGetter($oneOfFields = ["pttPromptMetadata"]),
|
|
11660
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11661
|
+
});
|
|
11662
|
+
|
|
11553
11663
|
// Virtual OneOf for proto3 optional field
|
|
11554
11664
|
Object.defineProperty(BotMetadata.prototype, "_internalMetadata", {
|
|
11555
11665
|
get: $util.oneOfGetter($oneOfFields = ["internalMetadata"]),
|
|
@@ -11643,6 +11753,8 @@ export const proto = $root.proto = (() => {
|
|
|
11643
11753
|
$root.proto.BotResolvedToolCallMetadata.encode(m.resolvedToolCallMetadata, w.uint32(322).fork()).ldelim();
|
|
11644
11754
|
if (m.subscriptionUpsellMetadata != null && Object.hasOwnProperty.call(m, "subscriptionUpsellMetadata"))
|
|
11645
11755
|
$root.proto.AISubscriptionUpsellMetadata.encode(m.subscriptionUpsellMetadata, w.uint32(330).fork()).ldelim();
|
|
11756
|
+
if (m.pttPromptMetadata != null && Object.hasOwnProperty.call(m, "pttPromptMetadata"))
|
|
11757
|
+
$root.proto.BotPttPromptMetadata.encode(m.pttPromptMetadata, w.uint32(338).fork()).ldelim();
|
|
11646
11758
|
if (m.internalMetadata != null && Object.hasOwnProperty.call(m, "internalMetadata"))
|
|
11647
11759
|
w.uint32(7994).bytes(m.internalMetadata);
|
|
11648
11760
|
return w;
|
|
@@ -11821,6 +11933,10 @@ export const proto = $root.proto = (() => {
|
|
|
11821
11933
|
m.subscriptionUpsellMetadata = $root.proto.AISubscriptionUpsellMetadata.decode(r, r.uint32(), undefined, n + 1);
|
|
11822
11934
|
break;
|
|
11823
11935
|
}
|
|
11936
|
+
case 42: {
|
|
11937
|
+
m.pttPromptMetadata = $root.proto.BotPttPromptMetadata.decode(r, r.uint32(), undefined, n + 1);
|
|
11938
|
+
break;
|
|
11939
|
+
}
|
|
11824
11940
|
case 999: {
|
|
11825
11941
|
m.internalMetadata = r.bytes();
|
|
11826
11942
|
break;
|
|
@@ -12030,6 +12146,11 @@ export const proto = $root.proto = (() => {
|
|
|
12030
12146
|
throw TypeError(".proto.BotMetadata.subscriptionUpsellMetadata: object expected");
|
|
12031
12147
|
m.subscriptionUpsellMetadata = $root.proto.AISubscriptionUpsellMetadata.fromObject(d.subscriptionUpsellMetadata, n + 1);
|
|
12032
12148
|
}
|
|
12149
|
+
if (d.pttPromptMetadata != null) {
|
|
12150
|
+
if (typeof d.pttPromptMetadata !== "object")
|
|
12151
|
+
throw TypeError(".proto.BotMetadata.pttPromptMetadata: object expected");
|
|
12152
|
+
m.pttPromptMetadata = $root.proto.BotPttPromptMetadata.fromObject(d.pttPromptMetadata, n + 1);
|
|
12153
|
+
}
|
|
12033
12154
|
if (d.internalMetadata != null) {
|
|
12034
12155
|
if (typeof d.internalMetadata === "string")
|
|
12035
12156
|
$util.base64.decode(d.internalMetadata, m.internalMetadata = $util.newBuffer($util.base64.length(d.internalMetadata)), 0);
|
|
@@ -12243,6 +12364,11 @@ export const proto = $root.proto = (() => {
|
|
|
12243
12364
|
if (o.oneofs)
|
|
12244
12365
|
d._subscriptionUpsellMetadata = "subscriptionUpsellMetadata";
|
|
12245
12366
|
}
|
|
12367
|
+
if (m.pttPromptMetadata != null && m.hasOwnProperty("pttPromptMetadata")) {
|
|
12368
|
+
d.pttPromptMetadata = $root.proto.BotPttPromptMetadata.toObject(m.pttPromptMetadata, o);
|
|
12369
|
+
if (o.oneofs)
|
|
12370
|
+
d._pttPromptMetadata = "pttPromptMetadata";
|
|
12371
|
+
}
|
|
12246
12372
|
if (m.internalMetadata != null && m.hasOwnProperty("internalMetadata")) {
|
|
12247
12373
|
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;
|
|
12248
12374
|
if (o.oneofs)
|
|
@@ -14754,6 +14880,102 @@ export const proto = $root.proto = (() => {
|
|
|
14754
14880
|
return BotPromptSuggestions;
|
|
14755
14881
|
})();
|
|
14756
14882
|
|
|
14883
|
+
proto.BotPttPromptMetadata = (function() {
|
|
14884
|
+
|
|
14885
|
+
function BotPttPromptMetadata(p) {
|
|
14886
|
+
if (p)
|
|
14887
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
14888
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
14889
|
+
this[ks[i]] = p[ks[i]];
|
|
14890
|
+
}
|
|
14891
|
+
|
|
14892
|
+
BotPttPromptMetadata.prototype.transcript = null;
|
|
14893
|
+
|
|
14894
|
+
let $oneOfFields;
|
|
14895
|
+
|
|
14896
|
+
// Virtual OneOf for proto3 optional field
|
|
14897
|
+
Object.defineProperty(BotPttPromptMetadata.prototype, "_transcript", {
|
|
14898
|
+
get: $util.oneOfGetter($oneOfFields = ["transcript"]),
|
|
14899
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14900
|
+
});
|
|
14901
|
+
|
|
14902
|
+
BotPttPromptMetadata.create = function create(properties) {
|
|
14903
|
+
return new BotPttPromptMetadata(properties);
|
|
14904
|
+
};
|
|
14905
|
+
|
|
14906
|
+
BotPttPromptMetadata.encode = function encode(m, w) {
|
|
14907
|
+
if (!w)
|
|
14908
|
+
w = $Writer.create();
|
|
14909
|
+
if (m.transcript != null && Object.hasOwnProperty.call(m, "transcript"))
|
|
14910
|
+
w.uint32(10).string(m.transcript);
|
|
14911
|
+
return w;
|
|
14912
|
+
};
|
|
14913
|
+
|
|
14914
|
+
BotPttPromptMetadata.decode = function decode(r, l, e, n) {
|
|
14915
|
+
if (!(r instanceof $Reader))
|
|
14916
|
+
r = $Reader.create(r);
|
|
14917
|
+
if (n === undefined)
|
|
14918
|
+
n = 0;
|
|
14919
|
+
if (n > $Reader.recursionLimit)
|
|
14920
|
+
throw Error("maximum nesting depth exceeded");
|
|
14921
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotPttPromptMetadata();
|
|
14922
|
+
while (r.pos < c) {
|
|
14923
|
+
var t = r.uint32();
|
|
14924
|
+
if (t === e)
|
|
14925
|
+
break;
|
|
14926
|
+
switch (t >>> 3) {
|
|
14927
|
+
case 1: {
|
|
14928
|
+
m.transcript = r.string();
|
|
14929
|
+
break;
|
|
14930
|
+
}
|
|
14931
|
+
default:
|
|
14932
|
+
r.skipType(t & 7, n);
|
|
14933
|
+
break;
|
|
14934
|
+
}
|
|
14935
|
+
}
|
|
14936
|
+
return m;
|
|
14937
|
+
};
|
|
14938
|
+
|
|
14939
|
+
BotPttPromptMetadata.fromObject = function fromObject(d, n) {
|
|
14940
|
+
if (d instanceof $root.proto.BotPttPromptMetadata)
|
|
14941
|
+
return d;
|
|
14942
|
+
if (n === undefined)
|
|
14943
|
+
n = 0;
|
|
14944
|
+
if (n > $util.recursionLimit)
|
|
14945
|
+
throw Error("maximum nesting depth exceeded");
|
|
14946
|
+
var m = new $root.proto.BotPttPromptMetadata();
|
|
14947
|
+
if (d.transcript != null) {
|
|
14948
|
+
m.transcript = String(d.transcript);
|
|
14949
|
+
}
|
|
14950
|
+
return m;
|
|
14951
|
+
};
|
|
14952
|
+
|
|
14953
|
+
BotPttPromptMetadata.toObject = function toObject(m, o) {
|
|
14954
|
+
if (!o)
|
|
14955
|
+
o = {};
|
|
14956
|
+
var d = {};
|
|
14957
|
+
if (m.transcript != null && m.hasOwnProperty("transcript")) {
|
|
14958
|
+
d.transcript = m.transcript;
|
|
14959
|
+
if (o.oneofs)
|
|
14960
|
+
d._transcript = "transcript";
|
|
14961
|
+
}
|
|
14962
|
+
return d;
|
|
14963
|
+
};
|
|
14964
|
+
|
|
14965
|
+
BotPttPromptMetadata.prototype.toJSON = function toJSON() {
|
|
14966
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14967
|
+
};
|
|
14968
|
+
|
|
14969
|
+
BotPttPromptMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
14970
|
+
if (typeUrlPrefix === undefined) {
|
|
14971
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
14972
|
+
}
|
|
14973
|
+
return typeUrlPrefix + "/proto.BotPttPromptMetadata";
|
|
14974
|
+
};
|
|
14975
|
+
|
|
14976
|
+
return BotPttPromptMetadata;
|
|
14977
|
+
})();
|
|
14978
|
+
|
|
14757
14979
|
proto.BotQuotaMetadata = (function() {
|
|
14758
14980
|
|
|
14759
14981
|
function BotQuotaMetadata(p) {
|
|
@@ -16141,6 +16363,10 @@ export const proto = $root.proto = (() => {
|
|
|
16141
16363
|
case 2:
|
|
16142
16364
|
m.useCase = 2;
|
|
16143
16365
|
break;
|
|
16366
|
+
case "P2P_PILLS":
|
|
16367
|
+
case 3:
|
|
16368
|
+
m.useCase = 3;
|
|
16369
|
+
break;
|
|
16144
16370
|
}
|
|
16145
16371
|
if (d.signature != null) {
|
|
16146
16372
|
if (typeof d.signature === "string")
|
|
@@ -16209,6 +16435,7 @@ export const proto = $root.proto = (() => {
|
|
|
16209
16435
|
values[valuesById[0] = "UNSPECIFIED"] = 0;
|
|
16210
16436
|
values[valuesById[1] = "WA_BOT_MSG"] = 1;
|
|
16211
16437
|
values[valuesById[2] = "WA_TEE_BOT_MSG"] = 2;
|
|
16438
|
+
values[valuesById[3] = "P2P_PILLS"] = 3;
|
|
16212
16439
|
return values;
|
|
16213
16440
|
})();
|
|
16214
16441
|
|
|
@@ -25135,6 +25362,8 @@ export const proto = $root.proto = (() => {
|
|
|
25135
25362
|
BusinessInteractionPills.prototype.businessJid = null;
|
|
25136
25363
|
BusinessInteractionPills.prototype.pills = $util.emptyArray;
|
|
25137
25364
|
BusinessInteractionPills.prototype.entryPoint = null;
|
|
25365
|
+
BusinessInteractionPills.prototype.signedPayload = null;
|
|
25366
|
+
BusinessInteractionPills.prototype.signatureEnvelope = null;
|
|
25138
25367
|
|
|
25139
25368
|
let $oneOfFields;
|
|
25140
25369
|
|
|
@@ -25150,6 +25379,18 @@ export const proto = $root.proto = (() => {
|
|
|
25150
25379
|
set: $util.oneOfSetter($oneOfFields)
|
|
25151
25380
|
});
|
|
25152
25381
|
|
|
25382
|
+
// Virtual OneOf for proto3 optional field
|
|
25383
|
+
Object.defineProperty(BusinessInteractionPills.prototype, "_signedPayload", {
|
|
25384
|
+
get: $util.oneOfGetter($oneOfFields = ["signedPayload"]),
|
|
25385
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
25386
|
+
});
|
|
25387
|
+
|
|
25388
|
+
// Virtual OneOf for proto3 optional field
|
|
25389
|
+
Object.defineProperty(BusinessInteractionPills.prototype, "_signatureEnvelope", {
|
|
25390
|
+
get: $util.oneOfGetter($oneOfFields = ["signatureEnvelope"]),
|
|
25391
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
25392
|
+
});
|
|
25393
|
+
|
|
25153
25394
|
BusinessInteractionPills.create = function create(properties) {
|
|
25154
25395
|
return new BusinessInteractionPills(properties);
|
|
25155
25396
|
};
|
|
@@ -25165,6 +25406,10 @@ export const proto = $root.proto = (() => {
|
|
|
25165
25406
|
}
|
|
25166
25407
|
if (m.entryPoint != null && Object.hasOwnProperty.call(m, "entryPoint"))
|
|
25167
25408
|
w.uint32(24).int32(m.entryPoint);
|
|
25409
|
+
if (m.signedPayload != null && Object.hasOwnProperty.call(m, "signedPayload"))
|
|
25410
|
+
w.uint32(34).bytes(m.signedPayload);
|
|
25411
|
+
if (m.signatureEnvelope != null && Object.hasOwnProperty.call(m, "signatureEnvelope"))
|
|
25412
|
+
$root.proto.BotSignatureVerificationMetadata.encode(m.signatureEnvelope, w.uint32(42).fork()).ldelim();
|
|
25168
25413
|
return w;
|
|
25169
25414
|
};
|
|
25170
25415
|
|
|
@@ -25195,6 +25440,14 @@ export const proto = $root.proto = (() => {
|
|
|
25195
25440
|
m.entryPoint = r.int32();
|
|
25196
25441
|
break;
|
|
25197
25442
|
}
|
|
25443
|
+
case 4: {
|
|
25444
|
+
m.signedPayload = r.bytes();
|
|
25445
|
+
break;
|
|
25446
|
+
}
|
|
25447
|
+
case 5: {
|
|
25448
|
+
m.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.decode(r, r.uint32(), undefined, n + 1);
|
|
25449
|
+
break;
|
|
25450
|
+
}
|
|
25198
25451
|
default:
|
|
25199
25452
|
r.skipType(t & 7, n);
|
|
25200
25453
|
break;
|
|
@@ -25256,6 +25509,17 @@ export const proto = $root.proto = (() => {
|
|
|
25256
25509
|
m.entryPoint = 5;
|
|
25257
25510
|
break;
|
|
25258
25511
|
}
|
|
25512
|
+
if (d.signedPayload != null) {
|
|
25513
|
+
if (typeof d.signedPayload === "string")
|
|
25514
|
+
$util.base64.decode(d.signedPayload, m.signedPayload = $util.newBuffer($util.base64.length(d.signedPayload)), 0);
|
|
25515
|
+
else if (d.signedPayload.length >= 0)
|
|
25516
|
+
m.signedPayload = d.signedPayload;
|
|
25517
|
+
}
|
|
25518
|
+
if (d.signatureEnvelope != null) {
|
|
25519
|
+
if (typeof d.signatureEnvelope !== "object")
|
|
25520
|
+
throw TypeError(".proto.ContextInfo.BusinessInteractionPills.signatureEnvelope: object expected");
|
|
25521
|
+
m.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.fromObject(d.signatureEnvelope, n + 1);
|
|
25522
|
+
}
|
|
25259
25523
|
return m;
|
|
25260
25524
|
};
|
|
25261
25525
|
|
|
@@ -25282,6 +25546,16 @@ export const proto = $root.proto = (() => {
|
|
|
25282
25546
|
if (o.oneofs)
|
|
25283
25547
|
d._entryPoint = "entryPoint";
|
|
25284
25548
|
}
|
|
25549
|
+
if (m.signedPayload != null && m.hasOwnProperty("signedPayload")) {
|
|
25550
|
+
d.signedPayload = o.bytes === String ? $util.base64.encode(m.signedPayload, 0, m.signedPayload.length) : o.bytes === Array ? Array.prototype.slice.call(m.signedPayload) : m.signedPayload;
|
|
25551
|
+
if (o.oneofs)
|
|
25552
|
+
d._signedPayload = "signedPayload";
|
|
25553
|
+
}
|
|
25554
|
+
if (m.signatureEnvelope != null && m.hasOwnProperty("signatureEnvelope")) {
|
|
25555
|
+
d.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.toObject(m.signatureEnvelope, o);
|
|
25556
|
+
if (o.oneofs)
|
|
25557
|
+
d._signatureEnvelope = "signatureEnvelope";
|
|
25558
|
+
}
|
|
25285
25559
|
return d;
|
|
25286
25560
|
};
|
|
25287
25561
|
|
|
@@ -25499,6 +25773,133 @@ export const proto = $root.proto = (() => {
|
|
|
25499
25773
|
return values;
|
|
25500
25774
|
})();
|
|
25501
25775
|
|
|
25776
|
+
BusinessInteractionPills.SignedPayload = (function() {
|
|
25777
|
+
|
|
25778
|
+
function SignedPayload(p) {
|
|
25779
|
+
this.pills = [];
|
|
25780
|
+
if (p)
|
|
25781
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
25782
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
25783
|
+
this[ks[i]] = p[ks[i]];
|
|
25784
|
+
}
|
|
25785
|
+
|
|
25786
|
+
SignedPayload.prototype.verifiedName = null;
|
|
25787
|
+
SignedPayload.prototype.pills = $util.emptyArray;
|
|
25788
|
+
|
|
25789
|
+
let $oneOfFields;
|
|
25790
|
+
|
|
25791
|
+
// Virtual OneOf for proto3 optional field
|
|
25792
|
+
Object.defineProperty(SignedPayload.prototype, "_verifiedName", {
|
|
25793
|
+
get: $util.oneOfGetter($oneOfFields = ["verifiedName"]),
|
|
25794
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
25795
|
+
});
|
|
25796
|
+
|
|
25797
|
+
SignedPayload.create = function create(properties) {
|
|
25798
|
+
return new SignedPayload(properties);
|
|
25799
|
+
};
|
|
25800
|
+
|
|
25801
|
+
SignedPayload.encode = function encode(m, w) {
|
|
25802
|
+
if (!w)
|
|
25803
|
+
w = $Writer.create();
|
|
25804
|
+
if (m.verifiedName != null && Object.hasOwnProperty.call(m, "verifiedName"))
|
|
25805
|
+
w.uint32(10).string(m.verifiedName);
|
|
25806
|
+
if (m.pills != null && m.pills.length) {
|
|
25807
|
+
for (var i = 0; i < m.pills.length; ++i)
|
|
25808
|
+
$root.proto.ContextInfo.BusinessInteractionPills.Pill.encode(m.pills[i], w.uint32(18).fork()).ldelim();
|
|
25809
|
+
}
|
|
25810
|
+
return w;
|
|
25811
|
+
};
|
|
25812
|
+
|
|
25813
|
+
SignedPayload.decode = function decode(r, l, e, n) {
|
|
25814
|
+
if (!(r instanceof $Reader))
|
|
25815
|
+
r = $Reader.create(r);
|
|
25816
|
+
if (n === undefined)
|
|
25817
|
+
n = 0;
|
|
25818
|
+
if (n > $Reader.recursionLimit)
|
|
25819
|
+
throw Error("maximum nesting depth exceeded");
|
|
25820
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload();
|
|
25821
|
+
while (r.pos < c) {
|
|
25822
|
+
var t = r.uint32();
|
|
25823
|
+
if (t === e)
|
|
25824
|
+
break;
|
|
25825
|
+
switch (t >>> 3) {
|
|
25826
|
+
case 1: {
|
|
25827
|
+
m.verifiedName = r.string();
|
|
25828
|
+
break;
|
|
25829
|
+
}
|
|
25830
|
+
case 2: {
|
|
25831
|
+
if (!(m.pills && m.pills.length))
|
|
25832
|
+
m.pills = [];
|
|
25833
|
+
m.pills.push($root.proto.ContextInfo.BusinessInteractionPills.Pill.decode(r, r.uint32(), undefined, n + 1));
|
|
25834
|
+
break;
|
|
25835
|
+
}
|
|
25836
|
+
default:
|
|
25837
|
+
r.skipType(t & 7, n);
|
|
25838
|
+
break;
|
|
25839
|
+
}
|
|
25840
|
+
}
|
|
25841
|
+
return m;
|
|
25842
|
+
};
|
|
25843
|
+
|
|
25844
|
+
SignedPayload.fromObject = function fromObject(d, n) {
|
|
25845
|
+
if (d instanceof $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload)
|
|
25846
|
+
return d;
|
|
25847
|
+
if (n === undefined)
|
|
25848
|
+
n = 0;
|
|
25849
|
+
if (n > $util.recursionLimit)
|
|
25850
|
+
throw Error("maximum nesting depth exceeded");
|
|
25851
|
+
var m = new $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload();
|
|
25852
|
+
if (d.verifiedName != null) {
|
|
25853
|
+
m.verifiedName = String(d.verifiedName);
|
|
25854
|
+
}
|
|
25855
|
+
if (d.pills) {
|
|
25856
|
+
if (!Array.isArray(d.pills))
|
|
25857
|
+
throw TypeError(".proto.ContextInfo.BusinessInteractionPills.SignedPayload.pills: array expected");
|
|
25858
|
+
m.pills = [];
|
|
25859
|
+
for (var i = 0; i < d.pills.length; ++i) {
|
|
25860
|
+
if (typeof d.pills[i] !== "object")
|
|
25861
|
+
throw TypeError(".proto.ContextInfo.BusinessInteractionPills.SignedPayload.pills: object expected");
|
|
25862
|
+
m.pills[i] = $root.proto.ContextInfo.BusinessInteractionPills.Pill.fromObject(d.pills[i], n + 1);
|
|
25863
|
+
}
|
|
25864
|
+
}
|
|
25865
|
+
return m;
|
|
25866
|
+
};
|
|
25867
|
+
|
|
25868
|
+
SignedPayload.toObject = function toObject(m, o) {
|
|
25869
|
+
if (!o)
|
|
25870
|
+
o = {};
|
|
25871
|
+
var d = {};
|
|
25872
|
+
if (o.arrays || o.defaults) {
|
|
25873
|
+
d.pills = [];
|
|
25874
|
+
}
|
|
25875
|
+
if (m.verifiedName != null && m.hasOwnProperty("verifiedName")) {
|
|
25876
|
+
d.verifiedName = m.verifiedName;
|
|
25877
|
+
if (o.oneofs)
|
|
25878
|
+
d._verifiedName = "verifiedName";
|
|
25879
|
+
}
|
|
25880
|
+
if (m.pills && m.pills.length) {
|
|
25881
|
+
d.pills = [];
|
|
25882
|
+
for (var j = 0; j < m.pills.length; ++j) {
|
|
25883
|
+
d.pills[j] = $root.proto.ContextInfo.BusinessInteractionPills.Pill.toObject(m.pills[j], o);
|
|
25884
|
+
}
|
|
25885
|
+
}
|
|
25886
|
+
return d;
|
|
25887
|
+
};
|
|
25888
|
+
|
|
25889
|
+
SignedPayload.prototype.toJSON = function toJSON() {
|
|
25890
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25891
|
+
};
|
|
25892
|
+
|
|
25893
|
+
SignedPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
25894
|
+
if (typeUrlPrefix === undefined) {
|
|
25895
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
25896
|
+
}
|
|
25897
|
+
return typeUrlPrefix + "/proto.ContextInfo.BusinessInteractionPills.SignedPayload";
|
|
25898
|
+
};
|
|
25899
|
+
|
|
25900
|
+
return SignedPayload;
|
|
25901
|
+
})();
|
|
25902
|
+
|
|
25502
25903
|
return BusinessInteractionPills;
|
|
25503
25904
|
})();
|
|
25504
25905
|
|
|
@@ -34960,6 +35361,7 @@ export const proto = $root.proto = (() => {
|
|
|
34960
35361
|
GroupRootKeyShareEntry.prototype.groupRootKey = null;
|
|
34961
35362
|
GroupRootKeyShareEntry.prototype.keyId = null;
|
|
34962
35363
|
GroupRootKeyShareEntry.prototype.expiryTimestampMs = null;
|
|
35364
|
+
GroupRootKeyShareEntry.prototype.createdTimestampMs = null;
|
|
34963
35365
|
|
|
34964
35366
|
let $oneOfFields;
|
|
34965
35367
|
|
|
@@ -34981,6 +35383,12 @@ export const proto = $root.proto = (() => {
|
|
|
34981
35383
|
set: $util.oneOfSetter($oneOfFields)
|
|
34982
35384
|
});
|
|
34983
35385
|
|
|
35386
|
+
// Virtual OneOf for proto3 optional field
|
|
35387
|
+
Object.defineProperty(GroupRootKeyShareEntry.prototype, "_createdTimestampMs", {
|
|
35388
|
+
get: $util.oneOfGetter($oneOfFields = ["createdTimestampMs"]),
|
|
35389
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35390
|
+
});
|
|
35391
|
+
|
|
34984
35392
|
GroupRootKeyShareEntry.create = function create(properties) {
|
|
34985
35393
|
return new GroupRootKeyShareEntry(properties);
|
|
34986
35394
|
};
|
|
@@ -34994,6 +35402,8 @@ export const proto = $root.proto = (() => {
|
|
|
34994
35402
|
w.uint32(18).string(m.keyId);
|
|
34995
35403
|
if (m.expiryTimestampMs != null && Object.hasOwnProperty.call(m, "expiryTimestampMs"))
|
|
34996
35404
|
w.uint32(24).int64(m.expiryTimestampMs);
|
|
35405
|
+
if (m.createdTimestampMs != null && Object.hasOwnProperty.call(m, "createdTimestampMs"))
|
|
35406
|
+
w.uint32(32).int64(m.createdTimestampMs);
|
|
34997
35407
|
return w;
|
|
34998
35408
|
};
|
|
34999
35409
|
|
|
@@ -35022,6 +35432,10 @@ export const proto = $root.proto = (() => {
|
|
|
35022
35432
|
m.expiryTimestampMs = r.int64();
|
|
35023
35433
|
break;
|
|
35024
35434
|
}
|
|
35435
|
+
case 4: {
|
|
35436
|
+
m.createdTimestampMs = r.int64();
|
|
35437
|
+
break;
|
|
35438
|
+
}
|
|
35025
35439
|
default:
|
|
35026
35440
|
r.skipType(t & 7, n);
|
|
35027
35441
|
break;
|
|
@@ -35057,6 +35471,16 @@ export const proto = $root.proto = (() => {
|
|
|
35057
35471
|
else if (typeof d.expiryTimestampMs === "object")
|
|
35058
35472
|
m.expiryTimestampMs = new $util.LongBits(d.expiryTimestampMs.low >>> 0, d.expiryTimestampMs.high >>> 0).toNumber();
|
|
35059
35473
|
}
|
|
35474
|
+
if (d.createdTimestampMs != null) {
|
|
35475
|
+
if ($util.Long)
|
|
35476
|
+
(m.createdTimestampMs = $util.Long.fromValue(d.createdTimestampMs)).unsigned = false;
|
|
35477
|
+
else if (typeof d.createdTimestampMs === "string")
|
|
35478
|
+
m.createdTimestampMs = parseInt(d.createdTimestampMs, 10);
|
|
35479
|
+
else if (typeof d.createdTimestampMs === "number")
|
|
35480
|
+
m.createdTimestampMs = d.createdTimestampMs;
|
|
35481
|
+
else if (typeof d.createdTimestampMs === "object")
|
|
35482
|
+
m.createdTimestampMs = new $util.LongBits(d.createdTimestampMs.low >>> 0, d.createdTimestampMs.high >>> 0).toNumber();
|
|
35483
|
+
}
|
|
35060
35484
|
return m;
|
|
35061
35485
|
};
|
|
35062
35486
|
|
|
@@ -35082,6 +35506,14 @@ export const proto = $root.proto = (() => {
|
|
|
35082
35506
|
if (o.oneofs)
|
|
35083
35507
|
d._expiryTimestampMs = "expiryTimestampMs";
|
|
35084
35508
|
}
|
|
35509
|
+
if (m.createdTimestampMs != null && m.hasOwnProperty("createdTimestampMs")) {
|
|
35510
|
+
if (typeof m.createdTimestampMs === "number")
|
|
35511
|
+
d.createdTimestampMs = o.longs === String ? String(m.createdTimestampMs) : m.createdTimestampMs;
|
|
35512
|
+
else
|
|
35513
|
+
d.createdTimestampMs = o.longs === String ? longToString(m.createdTimestampMs) : o.longs === Number ? longToNumber(m.createdTimestampMs) : m.createdTimestampMs;
|
|
35514
|
+
if (o.oneofs)
|
|
35515
|
+
d._createdTimestampMs = "createdTimestampMs";
|
|
35516
|
+
}
|
|
35085
35517
|
return d;
|
|
35086
35518
|
};
|
|
35087
35519
|
|
|
@@ -36012,6 +36444,157 @@ export const proto = $root.proto = (() => {
|
|
|
36012
36444
|
return HandshakeMessage;
|
|
36013
36445
|
})();
|
|
36014
36446
|
|
|
36447
|
+
proto.HatchMetadataSync = (function() {
|
|
36448
|
+
|
|
36449
|
+
function HatchMetadataSync(p) {
|
|
36450
|
+
if (p)
|
|
36451
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
36452
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
36453
|
+
this[ks[i]] = p[ks[i]];
|
|
36454
|
+
}
|
|
36455
|
+
|
|
36456
|
+
HatchMetadataSync.prototype.data = null;
|
|
36457
|
+
HatchMetadataSync.prototype.timestampMs = null;
|
|
36458
|
+
HatchMetadataSync.prototype.requestId = null;
|
|
36459
|
+
|
|
36460
|
+
let $oneOfFields;
|
|
36461
|
+
|
|
36462
|
+
// Virtual OneOf for proto3 optional field
|
|
36463
|
+
Object.defineProperty(HatchMetadataSync.prototype, "_data", {
|
|
36464
|
+
get: $util.oneOfGetter($oneOfFields = ["data"]),
|
|
36465
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
36466
|
+
});
|
|
36467
|
+
|
|
36468
|
+
// Virtual OneOf for proto3 optional field
|
|
36469
|
+
Object.defineProperty(HatchMetadataSync.prototype, "_timestampMs", {
|
|
36470
|
+
get: $util.oneOfGetter($oneOfFields = ["timestampMs"]),
|
|
36471
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
36472
|
+
});
|
|
36473
|
+
|
|
36474
|
+
// Virtual OneOf for proto3 optional field
|
|
36475
|
+
Object.defineProperty(HatchMetadataSync.prototype, "_requestId", {
|
|
36476
|
+
get: $util.oneOfGetter($oneOfFields = ["requestId"]),
|
|
36477
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
36478
|
+
});
|
|
36479
|
+
|
|
36480
|
+
HatchMetadataSync.create = function create(properties) {
|
|
36481
|
+
return new HatchMetadataSync(properties);
|
|
36482
|
+
};
|
|
36483
|
+
|
|
36484
|
+
HatchMetadataSync.encode = function encode(m, w) {
|
|
36485
|
+
if (!w)
|
|
36486
|
+
w = $Writer.create();
|
|
36487
|
+
if (m.data != null && Object.hasOwnProperty.call(m, "data"))
|
|
36488
|
+
w.uint32(10).bytes(m.data);
|
|
36489
|
+
if (m.timestampMs != null && Object.hasOwnProperty.call(m, "timestampMs"))
|
|
36490
|
+
w.uint32(16).int64(m.timestampMs);
|
|
36491
|
+
if (m.requestId != null && Object.hasOwnProperty.call(m, "requestId"))
|
|
36492
|
+
w.uint32(26).string(m.requestId);
|
|
36493
|
+
return w;
|
|
36494
|
+
};
|
|
36495
|
+
|
|
36496
|
+
HatchMetadataSync.decode = function decode(r, l, e, n) {
|
|
36497
|
+
if (!(r instanceof $Reader))
|
|
36498
|
+
r = $Reader.create(r);
|
|
36499
|
+
if (n === undefined)
|
|
36500
|
+
n = 0;
|
|
36501
|
+
if (n > $Reader.recursionLimit)
|
|
36502
|
+
throw Error("maximum nesting depth exceeded");
|
|
36503
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.HatchMetadataSync();
|
|
36504
|
+
while (r.pos < c) {
|
|
36505
|
+
var t = r.uint32();
|
|
36506
|
+
if (t === e)
|
|
36507
|
+
break;
|
|
36508
|
+
switch (t >>> 3) {
|
|
36509
|
+
case 1: {
|
|
36510
|
+
m.data = r.bytes();
|
|
36511
|
+
break;
|
|
36512
|
+
}
|
|
36513
|
+
case 2: {
|
|
36514
|
+
m.timestampMs = r.int64();
|
|
36515
|
+
break;
|
|
36516
|
+
}
|
|
36517
|
+
case 3: {
|
|
36518
|
+
m.requestId = r.string();
|
|
36519
|
+
break;
|
|
36520
|
+
}
|
|
36521
|
+
default:
|
|
36522
|
+
r.skipType(t & 7, n);
|
|
36523
|
+
break;
|
|
36524
|
+
}
|
|
36525
|
+
}
|
|
36526
|
+
return m;
|
|
36527
|
+
};
|
|
36528
|
+
|
|
36529
|
+
HatchMetadataSync.fromObject = function fromObject(d, n) {
|
|
36530
|
+
if (d instanceof $root.proto.HatchMetadataSync)
|
|
36531
|
+
return d;
|
|
36532
|
+
if (n === undefined)
|
|
36533
|
+
n = 0;
|
|
36534
|
+
if (n > $util.recursionLimit)
|
|
36535
|
+
throw Error("maximum nesting depth exceeded");
|
|
36536
|
+
var m = new $root.proto.HatchMetadataSync();
|
|
36537
|
+
if (d.data != null) {
|
|
36538
|
+
if (typeof d.data === "string")
|
|
36539
|
+
$util.base64.decode(d.data, m.data = $util.newBuffer($util.base64.length(d.data)), 0);
|
|
36540
|
+
else if (d.data.length >= 0)
|
|
36541
|
+
m.data = d.data;
|
|
36542
|
+
}
|
|
36543
|
+
if (d.timestampMs != null) {
|
|
36544
|
+
if ($util.Long)
|
|
36545
|
+
(m.timestampMs = $util.Long.fromValue(d.timestampMs)).unsigned = false;
|
|
36546
|
+
else if (typeof d.timestampMs === "string")
|
|
36547
|
+
m.timestampMs = parseInt(d.timestampMs, 10);
|
|
36548
|
+
else if (typeof d.timestampMs === "number")
|
|
36549
|
+
m.timestampMs = d.timestampMs;
|
|
36550
|
+
else if (typeof d.timestampMs === "object")
|
|
36551
|
+
m.timestampMs = new $util.LongBits(d.timestampMs.low >>> 0, d.timestampMs.high >>> 0).toNumber();
|
|
36552
|
+
}
|
|
36553
|
+
if (d.requestId != null) {
|
|
36554
|
+
m.requestId = String(d.requestId);
|
|
36555
|
+
}
|
|
36556
|
+
return m;
|
|
36557
|
+
};
|
|
36558
|
+
|
|
36559
|
+
HatchMetadataSync.toObject = function toObject(m, o) {
|
|
36560
|
+
if (!o)
|
|
36561
|
+
o = {};
|
|
36562
|
+
var d = {};
|
|
36563
|
+
if (m.data != null && m.hasOwnProperty("data")) {
|
|
36564
|
+
d.data = o.bytes === String ? $util.base64.encode(m.data, 0, m.data.length) : o.bytes === Array ? Array.prototype.slice.call(m.data) : m.data;
|
|
36565
|
+
if (o.oneofs)
|
|
36566
|
+
d._data = "data";
|
|
36567
|
+
}
|
|
36568
|
+
if (m.timestampMs != null && m.hasOwnProperty("timestampMs")) {
|
|
36569
|
+
if (typeof m.timestampMs === "number")
|
|
36570
|
+
d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
|
|
36571
|
+
else
|
|
36572
|
+
d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
|
|
36573
|
+
if (o.oneofs)
|
|
36574
|
+
d._timestampMs = "timestampMs";
|
|
36575
|
+
}
|
|
36576
|
+
if (m.requestId != null && m.hasOwnProperty("requestId")) {
|
|
36577
|
+
d.requestId = m.requestId;
|
|
36578
|
+
if (o.oneofs)
|
|
36579
|
+
d._requestId = "requestId";
|
|
36580
|
+
}
|
|
36581
|
+
return d;
|
|
36582
|
+
};
|
|
36583
|
+
|
|
36584
|
+
HatchMetadataSync.prototype.toJSON = function toJSON() {
|
|
36585
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36586
|
+
};
|
|
36587
|
+
|
|
36588
|
+
HatchMetadataSync.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
36589
|
+
if (typeUrlPrefix === undefined) {
|
|
36590
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
36591
|
+
}
|
|
36592
|
+
return typeUrlPrefix + "/proto.HatchMetadataSync";
|
|
36593
|
+
};
|
|
36594
|
+
|
|
36595
|
+
return HatchMetadataSync;
|
|
36596
|
+
})();
|
|
36597
|
+
|
|
36015
36598
|
proto.HistorySync = (function() {
|
|
36016
36599
|
|
|
36017
36600
|
function HistorySync(p) {
|
|
@@ -41270,6 +41853,7 @@ export const proto = $root.proto = (() => {
|
|
|
41270
41853
|
Message.prototype.paymentReminderMessage = null;
|
|
41271
41854
|
Message.prototype.splitPaymentMessage = null;
|
|
41272
41855
|
Message.prototype.newsletterAdminProfileStatusMessage = null;
|
|
41856
|
+
Message.prototype.rootSecretDistributeMessage = null;
|
|
41273
41857
|
|
|
41274
41858
|
let $oneOfFields;
|
|
41275
41859
|
|
|
@@ -41909,6 +42493,12 @@ export const proto = $root.proto = (() => {
|
|
|
41909
42493
|
set: $util.oneOfSetter($oneOfFields)
|
|
41910
42494
|
});
|
|
41911
42495
|
|
|
42496
|
+
// Virtual OneOf for proto3 optional field
|
|
42497
|
+
Object.defineProperty(Message.prototype, "_rootSecretDistributeMessage", {
|
|
42498
|
+
get: $util.oneOfGetter($oneOfFields = ["rootSecretDistributeMessage"]),
|
|
42499
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
42500
|
+
});
|
|
42501
|
+
|
|
41912
42502
|
Message.create = function create(properties) {
|
|
41913
42503
|
return new Message(properties);
|
|
41914
42504
|
};
|
|
@@ -42128,6 +42718,8 @@ export const proto = $root.proto = (() => {
|
|
|
42128
42718
|
$root.proto.Message.SplitPaymentMessage.encode(m.splitPaymentMessage, w.uint32(1002).fork()).ldelim();
|
|
42129
42719
|
if (m.newsletterAdminProfileStatusMessage != null && Object.hasOwnProperty.call(m, "newsletterAdminProfileStatusMessage"))
|
|
42130
42720
|
$root.proto.Message.FutureProofMessage.encode(m.newsletterAdminProfileStatusMessage, w.uint32(1010).fork()).ldelim();
|
|
42721
|
+
if (m.rootSecretDistributeMessage != null && Object.hasOwnProperty.call(m, "rootSecretDistributeMessage"))
|
|
42722
|
+
$root.proto.Message.RootSecretDistributeMessage.encode(m.rootSecretDistributeMessage, w.uint32(1018).fork()).ldelim();
|
|
42131
42723
|
return w;
|
|
42132
42724
|
};
|
|
42133
42725
|
|
|
@@ -42568,6 +43160,10 @@ export const proto = $root.proto = (() => {
|
|
|
42568
43160
|
m.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
42569
43161
|
break;
|
|
42570
43162
|
}
|
|
43163
|
+
case 127: {
|
|
43164
|
+
m.rootSecretDistributeMessage = $root.proto.Message.RootSecretDistributeMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
43165
|
+
break;
|
|
43166
|
+
}
|
|
42571
43167
|
default:
|
|
42572
43168
|
r.skipType(t & 7, n);
|
|
42573
43169
|
break;
|
|
@@ -43112,6 +43708,11 @@ export const proto = $root.proto = (() => {
|
|
|
43112
43708
|
throw TypeError(".proto.Message.newsletterAdminProfileStatusMessage: object expected");
|
|
43113
43709
|
m.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.fromObject(d.newsletterAdminProfileStatusMessage, n + 1);
|
|
43114
43710
|
}
|
|
43711
|
+
if (d.rootSecretDistributeMessage != null) {
|
|
43712
|
+
if (typeof d.rootSecretDistributeMessage !== "object")
|
|
43713
|
+
throw TypeError(".proto.Message.rootSecretDistributeMessage: object expected");
|
|
43714
|
+
m.rootSecretDistributeMessage = $root.proto.Message.RootSecretDistributeMessage.fromObject(d.rootSecretDistributeMessage, n + 1);
|
|
43715
|
+
}
|
|
43115
43716
|
return m;
|
|
43116
43717
|
};
|
|
43117
43718
|
|
|
@@ -43649,6 +44250,11 @@ export const proto = $root.proto = (() => {
|
|
|
43649
44250
|
if (o.oneofs)
|
|
43650
44251
|
d._newsletterAdminProfileStatusMessage = "newsletterAdminProfileStatusMessage";
|
|
43651
44252
|
}
|
|
44253
|
+
if (m.rootSecretDistributeMessage != null && m.hasOwnProperty("rootSecretDistributeMessage")) {
|
|
44254
|
+
d.rootSecretDistributeMessage = $root.proto.Message.RootSecretDistributeMessage.toObject(m.rootSecretDistributeMessage, o);
|
|
44255
|
+
if (o.oneofs)
|
|
44256
|
+
d._rootSecretDistributeMessage = "rootSecretDistributeMessage";
|
|
44257
|
+
}
|
|
43652
44258
|
return d;
|
|
43653
44259
|
};
|
|
43654
44260
|
|
|
@@ -55400,6 +56006,7 @@ export const proto = $root.proto = (() => {
|
|
|
55400
56006
|
BloksWidget.prototype.uuid = null;
|
|
55401
56007
|
BloksWidget.prototype.data = null;
|
|
55402
56008
|
BloksWidget.prototype.type = null;
|
|
56009
|
+
BloksWidget.prototype.fallback = null;
|
|
55403
56010
|
|
|
55404
56011
|
let $oneOfFields;
|
|
55405
56012
|
|
|
@@ -55421,6 +56028,12 @@ export const proto = $root.proto = (() => {
|
|
|
55421
56028
|
set: $util.oneOfSetter($oneOfFields)
|
|
55422
56029
|
});
|
|
55423
56030
|
|
|
56031
|
+
// Virtual OneOf for proto3 optional field
|
|
56032
|
+
Object.defineProperty(BloksWidget.prototype, "_fallback", {
|
|
56033
|
+
get: $util.oneOfGetter($oneOfFields = ["fallback"]),
|
|
56034
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
56035
|
+
});
|
|
56036
|
+
|
|
55424
56037
|
BloksWidget.create = function create(properties) {
|
|
55425
56038
|
return new BloksWidget(properties);
|
|
55426
56039
|
};
|
|
@@ -55434,6 +56047,8 @@ export const proto = $root.proto = (() => {
|
|
|
55434
56047
|
w.uint32(18).string(m.data);
|
|
55435
56048
|
if (m.type != null && Object.hasOwnProperty.call(m, "type"))
|
|
55436
56049
|
w.uint32(26).string(m.type);
|
|
56050
|
+
if (m.fallback != null && Object.hasOwnProperty.call(m, "fallback"))
|
|
56051
|
+
w.uint32(34).string(m.fallback);
|
|
55437
56052
|
return w;
|
|
55438
56053
|
};
|
|
55439
56054
|
|
|
@@ -55462,6 +56077,10 @@ export const proto = $root.proto = (() => {
|
|
|
55462
56077
|
m.type = r.string();
|
|
55463
56078
|
break;
|
|
55464
56079
|
}
|
|
56080
|
+
case 4: {
|
|
56081
|
+
m.fallback = r.string();
|
|
56082
|
+
break;
|
|
56083
|
+
}
|
|
55465
56084
|
default:
|
|
55466
56085
|
r.skipType(t & 7, n);
|
|
55467
56086
|
break;
|
|
@@ -55487,6 +56106,9 @@ export const proto = $root.proto = (() => {
|
|
|
55487
56106
|
if (d.type != null) {
|
|
55488
56107
|
m.type = String(d.type);
|
|
55489
56108
|
}
|
|
56109
|
+
if (d.fallback != null) {
|
|
56110
|
+
m.fallback = String(d.fallback);
|
|
56111
|
+
}
|
|
55490
56112
|
return m;
|
|
55491
56113
|
};
|
|
55492
56114
|
|
|
@@ -55509,6 +56131,11 @@ export const proto = $root.proto = (() => {
|
|
|
55509
56131
|
if (o.oneofs)
|
|
55510
56132
|
d._type = "type";
|
|
55511
56133
|
}
|
|
56134
|
+
if (m.fallback != null && m.hasOwnProperty("fallback")) {
|
|
56135
|
+
d.fallback = m.fallback;
|
|
56136
|
+
if (o.oneofs)
|
|
56137
|
+
d._fallback = "fallback";
|
|
56138
|
+
}
|
|
55512
56139
|
return d;
|
|
55513
56140
|
};
|
|
55514
56141
|
|
|
@@ -67927,6 +68554,7 @@ export const proto = $root.proto = (() => {
|
|
|
67927
68554
|
|
|
67928
68555
|
PollAddOptionMessage.prototype.pollCreationMessageKey = null;
|
|
67929
68556
|
PollAddOptionMessage.prototype.addOption = null;
|
|
68557
|
+
PollAddOptionMessage.prototype.metadata = null;
|
|
67930
68558
|
|
|
67931
68559
|
let $oneOfFields;
|
|
67932
68560
|
|
|
@@ -67942,6 +68570,12 @@ export const proto = $root.proto = (() => {
|
|
|
67942
68570
|
set: $util.oneOfSetter($oneOfFields)
|
|
67943
68571
|
});
|
|
67944
68572
|
|
|
68573
|
+
// Virtual OneOf for proto3 optional field
|
|
68574
|
+
Object.defineProperty(PollAddOptionMessage.prototype, "_metadata", {
|
|
68575
|
+
get: $util.oneOfGetter($oneOfFields = ["metadata"]),
|
|
68576
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
68577
|
+
});
|
|
68578
|
+
|
|
67945
68579
|
PollAddOptionMessage.create = function create(properties) {
|
|
67946
68580
|
return new PollAddOptionMessage(properties);
|
|
67947
68581
|
};
|
|
@@ -67953,6 +68587,8 @@ export const proto = $root.proto = (() => {
|
|
|
67953
68587
|
$root.proto.MessageKey.encode(m.pollCreationMessageKey, w.uint32(10).fork()).ldelim();
|
|
67954
68588
|
if (m.addOption != null && Object.hasOwnProperty.call(m, "addOption"))
|
|
67955
68589
|
$root.proto.Message.PollCreationMessage.Option.encode(m.addOption, w.uint32(18).fork()).ldelim();
|
|
68590
|
+
if (m.metadata != null && Object.hasOwnProperty.call(m, "metadata"))
|
|
68591
|
+
$root.proto.Message.PollUpdateMessageMetadata.encode(m.metadata, w.uint32(26).fork()).ldelim();
|
|
67956
68592
|
return w;
|
|
67957
68593
|
};
|
|
67958
68594
|
|
|
@@ -67977,6 +68613,10 @@ export const proto = $root.proto = (() => {
|
|
|
67977
68613
|
m.addOption = $root.proto.Message.PollCreationMessage.Option.decode(r, r.uint32(), undefined, n + 1);
|
|
67978
68614
|
break;
|
|
67979
68615
|
}
|
|
68616
|
+
case 3: {
|
|
68617
|
+
m.metadata = $root.proto.Message.PollUpdateMessageMetadata.decode(r, r.uint32(), undefined, n + 1);
|
|
68618
|
+
break;
|
|
68619
|
+
}
|
|
67980
68620
|
default:
|
|
67981
68621
|
r.skipType(t & 7, n);
|
|
67982
68622
|
break;
|
|
@@ -68003,6 +68643,11 @@ export const proto = $root.proto = (() => {
|
|
|
68003
68643
|
throw TypeError(".proto.Message.PollAddOptionMessage.addOption: object expected");
|
|
68004
68644
|
m.addOption = $root.proto.Message.PollCreationMessage.Option.fromObject(d.addOption, n + 1);
|
|
68005
68645
|
}
|
|
68646
|
+
if (d.metadata != null) {
|
|
68647
|
+
if (typeof d.metadata !== "object")
|
|
68648
|
+
throw TypeError(".proto.Message.PollAddOptionMessage.metadata: object expected");
|
|
68649
|
+
m.metadata = $root.proto.Message.PollUpdateMessageMetadata.fromObject(d.metadata, n + 1);
|
|
68650
|
+
}
|
|
68006
68651
|
return m;
|
|
68007
68652
|
};
|
|
68008
68653
|
|
|
@@ -68020,6 +68665,11 @@ export const proto = $root.proto = (() => {
|
|
|
68020
68665
|
if (o.oneofs)
|
|
68021
68666
|
d._addOption = "addOption";
|
|
68022
68667
|
}
|
|
68668
|
+
if (m.metadata != null && m.hasOwnProperty("metadata")) {
|
|
68669
|
+
d.metadata = $root.proto.Message.PollUpdateMessageMetadata.toObject(m.metadata, o);
|
|
68670
|
+
if (o.oneofs)
|
|
68671
|
+
d._metadata = "metadata";
|
|
68672
|
+
}
|
|
68023
68673
|
return d;
|
|
68024
68674
|
};
|
|
68025
68675
|
|
|
@@ -69150,6 +69800,23 @@ export const proto = $root.proto = (() => {
|
|
|
69150
69800
|
this[ks[i]] = p[ks[i]];
|
|
69151
69801
|
}
|
|
69152
69802
|
|
|
69803
|
+
PollUpdateMessageMetadata.prototype.pollNameHash = null;
|
|
69804
|
+
PollUpdateMessageMetadata.prototype.lastEditStanzaId = null;
|
|
69805
|
+
|
|
69806
|
+
let $oneOfFields;
|
|
69807
|
+
|
|
69808
|
+
// Virtual OneOf for proto3 optional field
|
|
69809
|
+
Object.defineProperty(PollUpdateMessageMetadata.prototype, "_pollNameHash", {
|
|
69810
|
+
get: $util.oneOfGetter($oneOfFields = ["pollNameHash"]),
|
|
69811
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
69812
|
+
});
|
|
69813
|
+
|
|
69814
|
+
// Virtual OneOf for proto3 optional field
|
|
69815
|
+
Object.defineProperty(PollUpdateMessageMetadata.prototype, "_lastEditStanzaId", {
|
|
69816
|
+
get: $util.oneOfGetter($oneOfFields = ["lastEditStanzaId"]),
|
|
69817
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
69818
|
+
});
|
|
69819
|
+
|
|
69153
69820
|
PollUpdateMessageMetadata.create = function create(properties) {
|
|
69154
69821
|
return new PollUpdateMessageMetadata(properties);
|
|
69155
69822
|
};
|
|
@@ -69157,6 +69824,10 @@ export const proto = $root.proto = (() => {
|
|
|
69157
69824
|
PollUpdateMessageMetadata.encode = function encode(m, w) {
|
|
69158
69825
|
if (!w)
|
|
69159
69826
|
w = $Writer.create();
|
|
69827
|
+
if (m.pollNameHash != null && Object.hasOwnProperty.call(m, "pollNameHash"))
|
|
69828
|
+
w.uint32(10).bytes(m.pollNameHash);
|
|
69829
|
+
if (m.lastEditStanzaId != null && Object.hasOwnProperty.call(m, "lastEditStanzaId"))
|
|
69830
|
+
w.uint32(18).string(m.lastEditStanzaId);
|
|
69160
69831
|
return w;
|
|
69161
69832
|
};
|
|
69162
69833
|
|
|
@@ -69173,6 +69844,14 @@ export const proto = $root.proto = (() => {
|
|
|
69173
69844
|
if (t === e)
|
|
69174
69845
|
break;
|
|
69175
69846
|
switch (t >>> 3) {
|
|
69847
|
+
case 1: {
|
|
69848
|
+
m.pollNameHash = r.bytes();
|
|
69849
|
+
break;
|
|
69850
|
+
}
|
|
69851
|
+
case 2: {
|
|
69852
|
+
m.lastEditStanzaId = r.string();
|
|
69853
|
+
break;
|
|
69854
|
+
}
|
|
69176
69855
|
default:
|
|
69177
69856
|
r.skipType(t & 7, n);
|
|
69178
69857
|
break;
|
|
@@ -69188,11 +69867,34 @@ export const proto = $root.proto = (() => {
|
|
|
69188
69867
|
n = 0;
|
|
69189
69868
|
if (n > $util.recursionLimit)
|
|
69190
69869
|
throw Error("maximum nesting depth exceeded");
|
|
69191
|
-
|
|
69870
|
+
var m = new $root.proto.Message.PollUpdateMessageMetadata();
|
|
69871
|
+
if (d.pollNameHash != null) {
|
|
69872
|
+
if (typeof d.pollNameHash === "string")
|
|
69873
|
+
$util.base64.decode(d.pollNameHash, m.pollNameHash = $util.newBuffer($util.base64.length(d.pollNameHash)), 0);
|
|
69874
|
+
else if (d.pollNameHash.length >= 0)
|
|
69875
|
+
m.pollNameHash = d.pollNameHash;
|
|
69876
|
+
}
|
|
69877
|
+
if (d.lastEditStanzaId != null) {
|
|
69878
|
+
m.lastEditStanzaId = String(d.lastEditStanzaId);
|
|
69879
|
+
}
|
|
69880
|
+
return m;
|
|
69192
69881
|
};
|
|
69193
69882
|
|
|
69194
|
-
PollUpdateMessageMetadata.toObject = function toObject() {
|
|
69195
|
-
|
|
69883
|
+
PollUpdateMessageMetadata.toObject = function toObject(m, o) {
|
|
69884
|
+
if (!o)
|
|
69885
|
+
o = {};
|
|
69886
|
+
var d = {};
|
|
69887
|
+
if (m.pollNameHash != null && m.hasOwnProperty("pollNameHash")) {
|
|
69888
|
+
d.pollNameHash = o.bytes === String ? $util.base64.encode(m.pollNameHash, 0, m.pollNameHash.length) : o.bytes === Array ? Array.prototype.slice.call(m.pollNameHash) : m.pollNameHash;
|
|
69889
|
+
if (o.oneofs)
|
|
69890
|
+
d._pollNameHash = "pollNameHash";
|
|
69891
|
+
}
|
|
69892
|
+
if (m.lastEditStanzaId != null && m.hasOwnProperty("lastEditStanzaId")) {
|
|
69893
|
+
d.lastEditStanzaId = m.lastEditStanzaId;
|
|
69894
|
+
if (o.oneofs)
|
|
69895
|
+
d._lastEditStanzaId = "lastEditStanzaId";
|
|
69896
|
+
}
|
|
69897
|
+
return d;
|
|
69196
69898
|
};
|
|
69197
69899
|
|
|
69198
69900
|
PollUpdateMessageMetadata.prototype.toJSON = function toJSON() {
|
|
@@ -70046,6 +70748,7 @@ export const proto = $root.proto = (() => {
|
|
|
70046
70748
|
ProtocolMessage.prototype.aiMediaCollectionMessage = null;
|
|
70047
70749
|
ProtocolMessage.prototype.afterReadDuration = null;
|
|
70048
70750
|
ProtocolMessage.prototype.chatThemeSetting = null;
|
|
70751
|
+
ProtocolMessage.prototype.aiMetadataOperation = null;
|
|
70049
70752
|
|
|
70050
70753
|
let $oneOfFields;
|
|
70051
70754
|
|
|
@@ -70211,6 +70914,12 @@ export const proto = $root.proto = (() => {
|
|
|
70211
70914
|
set: $util.oneOfSetter($oneOfFields)
|
|
70212
70915
|
});
|
|
70213
70916
|
|
|
70917
|
+
// Virtual OneOf for proto3 optional field
|
|
70918
|
+
Object.defineProperty(ProtocolMessage.prototype, "_aiMetadataOperation", {
|
|
70919
|
+
get: $util.oneOfGetter($oneOfFields = ["aiMetadataOperation"]),
|
|
70920
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
70921
|
+
});
|
|
70922
|
+
|
|
70214
70923
|
ProtocolMessage.create = function create(properties) {
|
|
70215
70924
|
return new ProtocolMessage(properties);
|
|
70216
70925
|
};
|
|
@@ -70272,6 +70981,8 @@ export const proto = $root.proto = (() => {
|
|
|
70272
70981
|
w.uint32(232).uint32(m.afterReadDuration);
|
|
70273
70982
|
if (m.chatThemeSetting != null && Object.hasOwnProperty.call(m, "chatThemeSetting"))
|
|
70274
70983
|
$root.proto.Message.ChatThemeSetting.encode(m.chatThemeSetting, w.uint32(242).fork()).ldelim();
|
|
70984
|
+
if (m.aiMetadataOperation != null && Object.hasOwnProperty.call(m, "aiMetadataOperation"))
|
|
70985
|
+
$root.proto.AIMetadataOperation.encode(m.aiMetadataOperation, w.uint32(250).fork()).ldelim();
|
|
70275
70986
|
return w;
|
|
70276
70987
|
};
|
|
70277
70988
|
|
|
@@ -70396,6 +71107,10 @@ export const proto = $root.proto = (() => {
|
|
|
70396
71107
|
m.chatThemeSetting = $root.proto.Message.ChatThemeSetting.decode(r, r.uint32(), undefined, n + 1);
|
|
70397
71108
|
break;
|
|
70398
71109
|
}
|
|
71110
|
+
case 31: {
|
|
71111
|
+
m.aiMetadataOperation = $root.proto.AIMetadataOperation.decode(r, r.uint32(), undefined, n + 1);
|
|
71112
|
+
break;
|
|
71113
|
+
}
|
|
70399
71114
|
default:
|
|
70400
71115
|
r.skipType(t & 7, n);
|
|
70401
71116
|
break;
|
|
@@ -70540,6 +71255,10 @@ export const proto = $root.proto = (() => {
|
|
|
70540
71255
|
case 34:
|
|
70541
71256
|
m.type = 34;
|
|
70542
71257
|
break;
|
|
71258
|
+
case "AI_METADATA_OPERATION":
|
|
71259
|
+
case 35:
|
|
71260
|
+
m.type = 35;
|
|
71261
|
+
break;
|
|
70543
71262
|
}
|
|
70544
71263
|
if (d.ephemeralExpiration != null) {
|
|
70545
71264
|
m.ephemeralExpiration = d.ephemeralExpiration >>> 0;
|
|
@@ -70671,6 +71390,11 @@ export const proto = $root.proto = (() => {
|
|
|
70671
71390
|
throw TypeError(".proto.Message.ProtocolMessage.chatThemeSetting: object expected");
|
|
70672
71391
|
m.chatThemeSetting = $root.proto.Message.ChatThemeSetting.fromObject(d.chatThemeSetting, n + 1);
|
|
70673
71392
|
}
|
|
71393
|
+
if (d.aiMetadataOperation != null) {
|
|
71394
|
+
if (typeof d.aiMetadataOperation !== "object")
|
|
71395
|
+
throw TypeError(".proto.Message.ProtocolMessage.aiMetadataOperation: object expected");
|
|
71396
|
+
m.aiMetadataOperation = $root.proto.AIMetadataOperation.fromObject(d.aiMetadataOperation, n + 1);
|
|
71397
|
+
}
|
|
70674
71398
|
return m;
|
|
70675
71399
|
};
|
|
70676
71400
|
|
|
@@ -70819,6 +71543,11 @@ export const proto = $root.proto = (() => {
|
|
|
70819
71543
|
if (o.oneofs)
|
|
70820
71544
|
d._chatThemeSetting = "chatThemeSetting";
|
|
70821
71545
|
}
|
|
71546
|
+
if (m.aiMetadataOperation != null && m.hasOwnProperty("aiMetadataOperation")) {
|
|
71547
|
+
d.aiMetadataOperation = $root.proto.AIMetadataOperation.toObject(m.aiMetadataOperation, o);
|
|
71548
|
+
if (o.oneofs)
|
|
71549
|
+
d._aiMetadataOperation = "aiMetadataOperation";
|
|
71550
|
+
}
|
|
70822
71551
|
return d;
|
|
70823
71552
|
};
|
|
70824
71553
|
|
|
@@ -70864,6 +71593,7 @@ export const proto = $root.proto = (() => {
|
|
|
70864
71593
|
values[valuesById[31] = "AI_MEDIA_COLLECTION_MESSAGE"] = 31;
|
|
70865
71594
|
values[valuesById[32] = "MESSAGE_UNSCHEDULE"] = 32;
|
|
70866
71595
|
values[valuesById[34] = "CHAT_THEME_SETTING"] = 34;
|
|
71596
|
+
values[valuesById[35] = "AI_METADATA_OPERATION"] = 35;
|
|
70867
71597
|
return values;
|
|
70868
71598
|
})();
|
|
70869
71599
|
|
|
@@ -71686,6 +72416,102 @@ export const proto = $root.proto = (() => {
|
|
|
71686
72416
|
return RequestWelcomeMessageMetadata;
|
|
71687
72417
|
})();
|
|
71688
72418
|
|
|
72419
|
+
Message.RootSecretDistributeMessage = (function() {
|
|
72420
|
+
|
|
72421
|
+
function RootSecretDistributeMessage(p) {
|
|
72422
|
+
if (p)
|
|
72423
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
72424
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
72425
|
+
this[ks[i]] = p[ks[i]];
|
|
72426
|
+
}
|
|
72427
|
+
|
|
72428
|
+
RootSecretDistributeMessage.prototype.chatJid = null;
|
|
72429
|
+
|
|
72430
|
+
let $oneOfFields;
|
|
72431
|
+
|
|
72432
|
+
// Virtual OneOf for proto3 optional field
|
|
72433
|
+
Object.defineProperty(RootSecretDistributeMessage.prototype, "_chatJid", {
|
|
72434
|
+
get: $util.oneOfGetter($oneOfFields = ["chatJid"]),
|
|
72435
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
72436
|
+
});
|
|
72437
|
+
|
|
72438
|
+
RootSecretDistributeMessage.create = function create(properties) {
|
|
72439
|
+
return new RootSecretDistributeMessage(properties);
|
|
72440
|
+
};
|
|
72441
|
+
|
|
72442
|
+
RootSecretDistributeMessage.encode = function encode(m, w) {
|
|
72443
|
+
if (!w)
|
|
72444
|
+
w = $Writer.create();
|
|
72445
|
+
if (m.chatJid != null && Object.hasOwnProperty.call(m, "chatJid"))
|
|
72446
|
+
w.uint32(10).string(m.chatJid);
|
|
72447
|
+
return w;
|
|
72448
|
+
};
|
|
72449
|
+
|
|
72450
|
+
RootSecretDistributeMessage.decode = function decode(r, l, e, n) {
|
|
72451
|
+
if (!(r instanceof $Reader))
|
|
72452
|
+
r = $Reader.create(r);
|
|
72453
|
+
if (n === undefined)
|
|
72454
|
+
n = 0;
|
|
72455
|
+
if (n > $Reader.recursionLimit)
|
|
72456
|
+
throw Error("maximum nesting depth exceeded");
|
|
72457
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.RootSecretDistributeMessage();
|
|
72458
|
+
while (r.pos < c) {
|
|
72459
|
+
var t = r.uint32();
|
|
72460
|
+
if (t === e)
|
|
72461
|
+
break;
|
|
72462
|
+
switch (t >>> 3) {
|
|
72463
|
+
case 1: {
|
|
72464
|
+
m.chatJid = r.string();
|
|
72465
|
+
break;
|
|
72466
|
+
}
|
|
72467
|
+
default:
|
|
72468
|
+
r.skipType(t & 7, n);
|
|
72469
|
+
break;
|
|
72470
|
+
}
|
|
72471
|
+
}
|
|
72472
|
+
return m;
|
|
72473
|
+
};
|
|
72474
|
+
|
|
72475
|
+
RootSecretDistributeMessage.fromObject = function fromObject(d, n) {
|
|
72476
|
+
if (d instanceof $root.proto.Message.RootSecretDistributeMessage)
|
|
72477
|
+
return d;
|
|
72478
|
+
if (n === undefined)
|
|
72479
|
+
n = 0;
|
|
72480
|
+
if (n > $util.recursionLimit)
|
|
72481
|
+
throw Error("maximum nesting depth exceeded");
|
|
72482
|
+
var m = new $root.proto.Message.RootSecretDistributeMessage();
|
|
72483
|
+
if (d.chatJid != null) {
|
|
72484
|
+
m.chatJid = String(d.chatJid);
|
|
72485
|
+
}
|
|
72486
|
+
return m;
|
|
72487
|
+
};
|
|
72488
|
+
|
|
72489
|
+
RootSecretDistributeMessage.toObject = function toObject(m, o) {
|
|
72490
|
+
if (!o)
|
|
72491
|
+
o = {};
|
|
72492
|
+
var d = {};
|
|
72493
|
+
if (m.chatJid != null && m.hasOwnProperty("chatJid")) {
|
|
72494
|
+
d.chatJid = m.chatJid;
|
|
72495
|
+
if (o.oneofs)
|
|
72496
|
+
d._chatJid = "chatJid";
|
|
72497
|
+
}
|
|
72498
|
+
return d;
|
|
72499
|
+
};
|
|
72500
|
+
|
|
72501
|
+
RootSecretDistributeMessage.prototype.toJSON = function toJSON() {
|
|
72502
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
72503
|
+
};
|
|
72504
|
+
|
|
72505
|
+
RootSecretDistributeMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
72506
|
+
if (typeUrlPrefix === undefined) {
|
|
72507
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
72508
|
+
}
|
|
72509
|
+
return typeUrlPrefix + "/proto.Message.RootSecretDistributeMessage";
|
|
72510
|
+
};
|
|
72511
|
+
|
|
72512
|
+
return RootSecretDistributeMessage;
|
|
72513
|
+
})();
|
|
72514
|
+
|
|
71689
72515
|
Message.ScheduledCallCreationMessage = (function() {
|
|
71690
72516
|
|
|
71691
72517
|
function ScheduledCallCreationMessage(p) {
|
|
@@ -78825,6 +79651,14 @@ export const proto = $root.proto = (() => {
|
|
|
78825
79651
|
MsgOpaqueData.prototype.pollEndTime = null;
|
|
78826
79652
|
MsgOpaqueData.prototype.pollHideVoterNames = null;
|
|
78827
79653
|
MsgOpaqueData.prototype.pollAllowAddOption = null;
|
|
79654
|
+
MsgOpaqueData.prototype.sharableEventInviteId = null;
|
|
79655
|
+
MsgOpaqueData.prototype.sharableEventInviteTitle = null;
|
|
79656
|
+
MsgOpaqueData.prototype.sharableEventInviteStartTime = null;
|
|
79657
|
+
MsgOpaqueData.prototype.sharableEventInviteEndTime = null;
|
|
79658
|
+
MsgOpaqueData.prototype.sharableEventInviteCaption = null;
|
|
79659
|
+
MsgOpaqueData.prototype.sharableEventInviteIsCanceled = null;
|
|
79660
|
+
MsgOpaqueData.prototype.sharableEventInviteJpegThumbnail = null;
|
|
79661
|
+
MsgOpaqueData.prototype.sharableEventInviteCallLink = null;
|
|
78828
79662
|
|
|
78829
79663
|
let $oneOfFields;
|
|
78830
79664
|
|
|
@@ -79104,6 +79938,54 @@ export const proto = $root.proto = (() => {
|
|
|
79104
79938
|
set: $util.oneOfSetter($oneOfFields)
|
|
79105
79939
|
});
|
|
79106
79940
|
|
|
79941
|
+
// Virtual OneOf for proto3 optional field
|
|
79942
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteId", {
|
|
79943
|
+
get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteId"]),
|
|
79944
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79945
|
+
});
|
|
79946
|
+
|
|
79947
|
+
// Virtual OneOf for proto3 optional field
|
|
79948
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteTitle", {
|
|
79949
|
+
get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteTitle"]),
|
|
79950
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79951
|
+
});
|
|
79952
|
+
|
|
79953
|
+
// Virtual OneOf for proto3 optional field
|
|
79954
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteStartTime", {
|
|
79955
|
+
get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteStartTime"]),
|
|
79956
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79957
|
+
});
|
|
79958
|
+
|
|
79959
|
+
// Virtual OneOf for proto3 optional field
|
|
79960
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteEndTime", {
|
|
79961
|
+
get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteEndTime"]),
|
|
79962
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79963
|
+
});
|
|
79964
|
+
|
|
79965
|
+
// Virtual OneOf for proto3 optional field
|
|
79966
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteCaption", {
|
|
79967
|
+
get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteCaption"]),
|
|
79968
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79969
|
+
});
|
|
79970
|
+
|
|
79971
|
+
// Virtual OneOf for proto3 optional field
|
|
79972
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteIsCanceled", {
|
|
79973
|
+
get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteIsCanceled"]),
|
|
79974
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79975
|
+
});
|
|
79976
|
+
|
|
79977
|
+
// Virtual OneOf for proto3 optional field
|
|
79978
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteJpegThumbnail", {
|
|
79979
|
+
get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteJpegThumbnail"]),
|
|
79980
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79981
|
+
});
|
|
79982
|
+
|
|
79983
|
+
// Virtual OneOf for proto3 optional field
|
|
79984
|
+
Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteCallLink", {
|
|
79985
|
+
get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteCallLink"]),
|
|
79986
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
79987
|
+
});
|
|
79988
|
+
|
|
79107
79989
|
MsgOpaqueData.create = function create(properties) {
|
|
79108
79990
|
return new MsgOpaqueData(properties);
|
|
79109
79991
|
};
|
|
@@ -79207,6 +80089,22 @@ export const proto = $root.proto = (() => {
|
|
|
79207
80089
|
w.uint32(410).string(m.originalSelfAuthor);
|
|
79208
80090
|
if (m.pollAllowAddOption != null && Object.hasOwnProperty.call(m, "pollAllowAddOption"))
|
|
79209
80091
|
w.uint32(416).bool(m.pollAllowAddOption);
|
|
80092
|
+
if (m.sharableEventInviteId != null && Object.hasOwnProperty.call(m, "sharableEventInviteId"))
|
|
80093
|
+
w.uint32(426).string(m.sharableEventInviteId);
|
|
80094
|
+
if (m.sharableEventInviteTitle != null && Object.hasOwnProperty.call(m, "sharableEventInviteTitle"))
|
|
80095
|
+
w.uint32(434).string(m.sharableEventInviteTitle);
|
|
80096
|
+
if (m.sharableEventInviteStartTime != null && Object.hasOwnProperty.call(m, "sharableEventInviteStartTime"))
|
|
80097
|
+
w.uint32(440).int64(m.sharableEventInviteStartTime);
|
|
80098
|
+
if (m.sharableEventInviteEndTime != null && Object.hasOwnProperty.call(m, "sharableEventInviteEndTime"))
|
|
80099
|
+
w.uint32(448).int64(m.sharableEventInviteEndTime);
|
|
80100
|
+
if (m.sharableEventInviteCaption != null && Object.hasOwnProperty.call(m, "sharableEventInviteCaption"))
|
|
80101
|
+
w.uint32(458).string(m.sharableEventInviteCaption);
|
|
80102
|
+
if (m.sharableEventInviteIsCanceled != null && Object.hasOwnProperty.call(m, "sharableEventInviteIsCanceled"))
|
|
80103
|
+
w.uint32(464).bool(m.sharableEventInviteIsCanceled);
|
|
80104
|
+
if (m.sharableEventInviteJpegThumbnail != null && Object.hasOwnProperty.call(m, "sharableEventInviteJpegThumbnail"))
|
|
80105
|
+
w.uint32(474).bytes(m.sharableEventInviteJpegThumbnail);
|
|
80106
|
+
if (m.sharableEventInviteCallLink != null && Object.hasOwnProperty.call(m, "sharableEventInviteCallLink"))
|
|
80107
|
+
w.uint32(482).string(m.sharableEventInviteCallLink);
|
|
79210
80108
|
return w;
|
|
79211
80109
|
};
|
|
79212
80110
|
|
|
@@ -79413,6 +80311,38 @@ export const proto = $root.proto = (() => {
|
|
|
79413
80311
|
m.pollAllowAddOption = r.bool();
|
|
79414
80312
|
break;
|
|
79415
80313
|
}
|
|
80314
|
+
case 53: {
|
|
80315
|
+
m.sharableEventInviteId = r.string();
|
|
80316
|
+
break;
|
|
80317
|
+
}
|
|
80318
|
+
case 54: {
|
|
80319
|
+
m.sharableEventInviteTitle = r.string();
|
|
80320
|
+
break;
|
|
80321
|
+
}
|
|
80322
|
+
case 55: {
|
|
80323
|
+
m.sharableEventInviteStartTime = r.int64();
|
|
80324
|
+
break;
|
|
80325
|
+
}
|
|
80326
|
+
case 56: {
|
|
80327
|
+
m.sharableEventInviteEndTime = r.int64();
|
|
80328
|
+
break;
|
|
80329
|
+
}
|
|
80330
|
+
case 57: {
|
|
80331
|
+
m.sharableEventInviteCaption = r.string();
|
|
80332
|
+
break;
|
|
80333
|
+
}
|
|
80334
|
+
case 58: {
|
|
80335
|
+
m.sharableEventInviteIsCanceled = r.bool();
|
|
80336
|
+
break;
|
|
80337
|
+
}
|
|
80338
|
+
case 59: {
|
|
80339
|
+
m.sharableEventInviteJpegThumbnail = r.bytes();
|
|
80340
|
+
break;
|
|
80341
|
+
}
|
|
80342
|
+
case 60: {
|
|
80343
|
+
m.sharableEventInviteCallLink = r.string();
|
|
80344
|
+
break;
|
|
80345
|
+
}
|
|
79416
80346
|
default:
|
|
79417
80347
|
r.skipType(t & 7, n);
|
|
79418
80348
|
break;
|
|
@@ -79665,6 +80595,47 @@ export const proto = $root.proto = (() => {
|
|
|
79665
80595
|
if (d.pollAllowAddOption != null) {
|
|
79666
80596
|
m.pollAllowAddOption = Boolean(d.pollAllowAddOption);
|
|
79667
80597
|
}
|
|
80598
|
+
if (d.sharableEventInviteId != null) {
|
|
80599
|
+
m.sharableEventInviteId = String(d.sharableEventInviteId);
|
|
80600
|
+
}
|
|
80601
|
+
if (d.sharableEventInviteTitle != null) {
|
|
80602
|
+
m.sharableEventInviteTitle = String(d.sharableEventInviteTitle);
|
|
80603
|
+
}
|
|
80604
|
+
if (d.sharableEventInviteStartTime != null) {
|
|
80605
|
+
if ($util.Long)
|
|
80606
|
+
(m.sharableEventInviteStartTime = $util.Long.fromValue(d.sharableEventInviteStartTime)).unsigned = false;
|
|
80607
|
+
else if (typeof d.sharableEventInviteStartTime === "string")
|
|
80608
|
+
m.sharableEventInviteStartTime = parseInt(d.sharableEventInviteStartTime, 10);
|
|
80609
|
+
else if (typeof d.sharableEventInviteStartTime === "number")
|
|
80610
|
+
m.sharableEventInviteStartTime = d.sharableEventInviteStartTime;
|
|
80611
|
+
else if (typeof d.sharableEventInviteStartTime === "object")
|
|
80612
|
+
m.sharableEventInviteStartTime = new $util.LongBits(d.sharableEventInviteStartTime.low >>> 0, d.sharableEventInviteStartTime.high >>> 0).toNumber();
|
|
80613
|
+
}
|
|
80614
|
+
if (d.sharableEventInviteEndTime != null) {
|
|
80615
|
+
if ($util.Long)
|
|
80616
|
+
(m.sharableEventInviteEndTime = $util.Long.fromValue(d.sharableEventInviteEndTime)).unsigned = false;
|
|
80617
|
+
else if (typeof d.sharableEventInviteEndTime === "string")
|
|
80618
|
+
m.sharableEventInviteEndTime = parseInt(d.sharableEventInviteEndTime, 10);
|
|
80619
|
+
else if (typeof d.sharableEventInviteEndTime === "number")
|
|
80620
|
+
m.sharableEventInviteEndTime = d.sharableEventInviteEndTime;
|
|
80621
|
+
else if (typeof d.sharableEventInviteEndTime === "object")
|
|
80622
|
+
m.sharableEventInviteEndTime = new $util.LongBits(d.sharableEventInviteEndTime.low >>> 0, d.sharableEventInviteEndTime.high >>> 0).toNumber();
|
|
80623
|
+
}
|
|
80624
|
+
if (d.sharableEventInviteCaption != null) {
|
|
80625
|
+
m.sharableEventInviteCaption = String(d.sharableEventInviteCaption);
|
|
80626
|
+
}
|
|
80627
|
+
if (d.sharableEventInviteIsCanceled != null) {
|
|
80628
|
+
m.sharableEventInviteIsCanceled = Boolean(d.sharableEventInviteIsCanceled);
|
|
80629
|
+
}
|
|
80630
|
+
if (d.sharableEventInviteJpegThumbnail != null) {
|
|
80631
|
+
if (typeof d.sharableEventInviteJpegThumbnail === "string")
|
|
80632
|
+
$util.base64.decode(d.sharableEventInviteJpegThumbnail, m.sharableEventInviteJpegThumbnail = $util.newBuffer($util.base64.length(d.sharableEventInviteJpegThumbnail)), 0);
|
|
80633
|
+
else if (d.sharableEventInviteJpegThumbnail.length >= 0)
|
|
80634
|
+
m.sharableEventInviteJpegThumbnail = d.sharableEventInviteJpegThumbnail;
|
|
80635
|
+
}
|
|
80636
|
+
if (d.sharableEventInviteCallLink != null) {
|
|
80637
|
+
m.sharableEventInviteCallLink = String(d.sharableEventInviteCallLink);
|
|
80638
|
+
}
|
|
79668
80639
|
return m;
|
|
79669
80640
|
};
|
|
79670
80641
|
|
|
@@ -79923,6 +80894,52 @@ export const proto = $root.proto = (() => {
|
|
|
79923
80894
|
if (o.oneofs)
|
|
79924
80895
|
d._pollAllowAddOption = "pollAllowAddOption";
|
|
79925
80896
|
}
|
|
80897
|
+
if (m.sharableEventInviteId != null && m.hasOwnProperty("sharableEventInviteId")) {
|
|
80898
|
+
d.sharableEventInviteId = m.sharableEventInviteId;
|
|
80899
|
+
if (o.oneofs)
|
|
80900
|
+
d._sharableEventInviteId = "sharableEventInviteId";
|
|
80901
|
+
}
|
|
80902
|
+
if (m.sharableEventInviteTitle != null && m.hasOwnProperty("sharableEventInviteTitle")) {
|
|
80903
|
+
d.sharableEventInviteTitle = m.sharableEventInviteTitle;
|
|
80904
|
+
if (o.oneofs)
|
|
80905
|
+
d._sharableEventInviteTitle = "sharableEventInviteTitle";
|
|
80906
|
+
}
|
|
80907
|
+
if (m.sharableEventInviteStartTime != null && m.hasOwnProperty("sharableEventInviteStartTime")) {
|
|
80908
|
+
if (typeof m.sharableEventInviteStartTime === "number")
|
|
80909
|
+
d.sharableEventInviteStartTime = o.longs === String ? String(m.sharableEventInviteStartTime) : m.sharableEventInviteStartTime;
|
|
80910
|
+
else
|
|
80911
|
+
d.sharableEventInviteStartTime = o.longs === String ? longToString(m.sharableEventInviteStartTime) : o.longs === Number ? longToNumber(m.sharableEventInviteStartTime) : m.sharableEventInviteStartTime;
|
|
80912
|
+
if (o.oneofs)
|
|
80913
|
+
d._sharableEventInviteStartTime = "sharableEventInviteStartTime";
|
|
80914
|
+
}
|
|
80915
|
+
if (m.sharableEventInviteEndTime != null && m.hasOwnProperty("sharableEventInviteEndTime")) {
|
|
80916
|
+
if (typeof m.sharableEventInviteEndTime === "number")
|
|
80917
|
+
d.sharableEventInviteEndTime = o.longs === String ? String(m.sharableEventInviteEndTime) : m.sharableEventInviteEndTime;
|
|
80918
|
+
else
|
|
80919
|
+
d.sharableEventInviteEndTime = o.longs === String ? longToString(m.sharableEventInviteEndTime) : o.longs === Number ? longToNumber(m.sharableEventInviteEndTime) : m.sharableEventInviteEndTime;
|
|
80920
|
+
if (o.oneofs)
|
|
80921
|
+
d._sharableEventInviteEndTime = "sharableEventInviteEndTime";
|
|
80922
|
+
}
|
|
80923
|
+
if (m.sharableEventInviteCaption != null && m.hasOwnProperty("sharableEventInviteCaption")) {
|
|
80924
|
+
d.sharableEventInviteCaption = m.sharableEventInviteCaption;
|
|
80925
|
+
if (o.oneofs)
|
|
80926
|
+
d._sharableEventInviteCaption = "sharableEventInviteCaption";
|
|
80927
|
+
}
|
|
80928
|
+
if (m.sharableEventInviteIsCanceled != null && m.hasOwnProperty("sharableEventInviteIsCanceled")) {
|
|
80929
|
+
d.sharableEventInviteIsCanceled = m.sharableEventInviteIsCanceled;
|
|
80930
|
+
if (o.oneofs)
|
|
80931
|
+
d._sharableEventInviteIsCanceled = "sharableEventInviteIsCanceled";
|
|
80932
|
+
}
|
|
80933
|
+
if (m.sharableEventInviteJpegThumbnail != null && m.hasOwnProperty("sharableEventInviteJpegThumbnail")) {
|
|
80934
|
+
d.sharableEventInviteJpegThumbnail = o.bytes === String ? $util.base64.encode(m.sharableEventInviteJpegThumbnail, 0, m.sharableEventInviteJpegThumbnail.length) : o.bytes === Array ? Array.prototype.slice.call(m.sharableEventInviteJpegThumbnail) : m.sharableEventInviteJpegThumbnail;
|
|
80935
|
+
if (o.oneofs)
|
|
80936
|
+
d._sharableEventInviteJpegThumbnail = "sharableEventInviteJpegThumbnail";
|
|
80937
|
+
}
|
|
80938
|
+
if (m.sharableEventInviteCallLink != null && m.hasOwnProperty("sharableEventInviteCallLink")) {
|
|
80939
|
+
d.sharableEventInviteCallLink = m.sharableEventInviteCallLink;
|
|
80940
|
+
if (o.oneofs)
|
|
80941
|
+
d._sharableEventInviteCallLink = "sharableEventInviteCallLink";
|
|
80942
|
+
}
|
|
79926
80943
|
return d;
|
|
79927
80944
|
};
|
|
79928
80945
|
|
|
@@ -80703,6 +81720,8 @@ export const proto = $root.proto = (() => {
|
|
|
80703
81720
|
values[valuesById[85] = "THREAD_PIN_ACTION"] = 85;
|
|
80704
81721
|
values[valuesById[86] = "AUTO_ORGANIZE_BUSINESS_CHAT_SETTING"] = 86;
|
|
80705
81722
|
values[valuesById[87] = "BIZ_AI_SETTINGS_NUDGE_ACTION"] = 87;
|
|
81723
|
+
values[valuesById[88] = "COEX_V2_VERSION_ACTION"] = 88;
|
|
81724
|
+
values[valuesById[89] = "WASA_ROOT_SECRET_ACTION"] = 89;
|
|
80706
81725
|
values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
|
|
80707
81726
|
values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
|
|
80708
81727
|
values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
|
|
@@ -84047,6 +85066,7 @@ export const proto = $root.proto = (() => {
|
|
|
84047
85066
|
proto.PollAdditionalMetadata = (function() {
|
|
84048
85067
|
|
|
84049
85068
|
function PollAdditionalMetadata(p) {
|
|
85069
|
+
this.pollNameHashHistory = [];
|
|
84050
85070
|
if (p)
|
|
84051
85071
|
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
84052
85072
|
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
@@ -84054,6 +85074,7 @@ export const proto = $root.proto = (() => {
|
|
|
84054
85074
|
}
|
|
84055
85075
|
|
|
84056
85076
|
PollAdditionalMetadata.prototype.pollInvalidated = null;
|
|
85077
|
+
PollAdditionalMetadata.prototype.pollNameHashHistory = $util.emptyArray;
|
|
84057
85078
|
|
|
84058
85079
|
let $oneOfFields;
|
|
84059
85080
|
|
|
@@ -84072,6 +85093,10 @@ export const proto = $root.proto = (() => {
|
|
|
84072
85093
|
w = $Writer.create();
|
|
84073
85094
|
if (m.pollInvalidated != null && Object.hasOwnProperty.call(m, "pollInvalidated"))
|
|
84074
85095
|
w.uint32(8).bool(m.pollInvalidated);
|
|
85096
|
+
if (m.pollNameHashHistory != null && m.pollNameHashHistory.length) {
|
|
85097
|
+
for (var i = 0; i < m.pollNameHashHistory.length; ++i)
|
|
85098
|
+
$root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.encode(m.pollNameHashHistory[i], w.uint32(18).fork()).ldelim();
|
|
85099
|
+
}
|
|
84075
85100
|
return w;
|
|
84076
85101
|
};
|
|
84077
85102
|
|
|
@@ -84092,6 +85117,12 @@ export const proto = $root.proto = (() => {
|
|
|
84092
85117
|
m.pollInvalidated = r.bool();
|
|
84093
85118
|
break;
|
|
84094
85119
|
}
|
|
85120
|
+
case 2: {
|
|
85121
|
+
if (!(m.pollNameHashHistory && m.pollNameHashHistory.length))
|
|
85122
|
+
m.pollNameHashHistory = [];
|
|
85123
|
+
m.pollNameHashHistory.push($root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.decode(r, r.uint32(), undefined, n + 1));
|
|
85124
|
+
break;
|
|
85125
|
+
}
|
|
84095
85126
|
default:
|
|
84096
85127
|
r.skipType(t & 7, n);
|
|
84097
85128
|
break;
|
|
@@ -84111,6 +85142,16 @@ export const proto = $root.proto = (() => {
|
|
|
84111
85142
|
if (d.pollInvalidated != null) {
|
|
84112
85143
|
m.pollInvalidated = Boolean(d.pollInvalidated);
|
|
84113
85144
|
}
|
|
85145
|
+
if (d.pollNameHashHistory) {
|
|
85146
|
+
if (!Array.isArray(d.pollNameHashHistory))
|
|
85147
|
+
throw TypeError(".proto.PollAdditionalMetadata.pollNameHashHistory: array expected");
|
|
85148
|
+
m.pollNameHashHistory = [];
|
|
85149
|
+
for (var i = 0; i < d.pollNameHashHistory.length; ++i) {
|
|
85150
|
+
if (typeof d.pollNameHashHistory[i] !== "object")
|
|
85151
|
+
throw TypeError(".proto.PollAdditionalMetadata.pollNameHashHistory: object expected");
|
|
85152
|
+
m.pollNameHashHistory[i] = $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.fromObject(d.pollNameHashHistory[i], n + 1);
|
|
85153
|
+
}
|
|
85154
|
+
}
|
|
84114
85155
|
return m;
|
|
84115
85156
|
};
|
|
84116
85157
|
|
|
@@ -84118,11 +85159,20 @@ export const proto = $root.proto = (() => {
|
|
|
84118
85159
|
if (!o)
|
|
84119
85160
|
o = {};
|
|
84120
85161
|
var d = {};
|
|
85162
|
+
if (o.arrays || o.defaults) {
|
|
85163
|
+
d.pollNameHashHistory = [];
|
|
85164
|
+
}
|
|
84121
85165
|
if (m.pollInvalidated != null && m.hasOwnProperty("pollInvalidated")) {
|
|
84122
85166
|
d.pollInvalidated = m.pollInvalidated;
|
|
84123
85167
|
if (o.oneofs)
|
|
84124
85168
|
d._pollInvalidated = "pollInvalidated";
|
|
84125
85169
|
}
|
|
85170
|
+
if (m.pollNameHashHistory && m.pollNameHashHistory.length) {
|
|
85171
|
+
d.pollNameHashHistory = [];
|
|
85172
|
+
for (var j = 0; j < m.pollNameHashHistory.length; ++j) {
|
|
85173
|
+
d.pollNameHashHistory[j] = $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.toObject(m.pollNameHashHistory[j], o);
|
|
85174
|
+
}
|
|
85175
|
+
}
|
|
84126
85176
|
return d;
|
|
84127
85177
|
};
|
|
84128
85178
|
|
|
@@ -84137,6 +85187,126 @@ export const proto = $root.proto = (() => {
|
|
|
84137
85187
|
return typeUrlPrefix + "/proto.PollAdditionalMetadata";
|
|
84138
85188
|
};
|
|
84139
85189
|
|
|
85190
|
+
PollAdditionalMetadata.PollNameHashHistoryEntry = (function() {
|
|
85191
|
+
|
|
85192
|
+
function PollNameHashHistoryEntry(p) {
|
|
85193
|
+
if (p)
|
|
85194
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
85195
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
85196
|
+
this[ks[i]] = p[ks[i]];
|
|
85197
|
+
}
|
|
85198
|
+
|
|
85199
|
+
PollNameHashHistoryEntry.prototype.editStanzaId = null;
|
|
85200
|
+
PollNameHashHistoryEntry.prototype.pollNameHash = null;
|
|
85201
|
+
|
|
85202
|
+
let $oneOfFields;
|
|
85203
|
+
|
|
85204
|
+
// Virtual OneOf for proto3 optional field
|
|
85205
|
+
Object.defineProperty(PollNameHashHistoryEntry.prototype, "_editStanzaId", {
|
|
85206
|
+
get: $util.oneOfGetter($oneOfFields = ["editStanzaId"]),
|
|
85207
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85208
|
+
});
|
|
85209
|
+
|
|
85210
|
+
// Virtual OneOf for proto3 optional field
|
|
85211
|
+
Object.defineProperty(PollNameHashHistoryEntry.prototype, "_pollNameHash", {
|
|
85212
|
+
get: $util.oneOfGetter($oneOfFields = ["pollNameHash"]),
|
|
85213
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85214
|
+
});
|
|
85215
|
+
|
|
85216
|
+
PollNameHashHistoryEntry.create = function create(properties) {
|
|
85217
|
+
return new PollNameHashHistoryEntry(properties);
|
|
85218
|
+
};
|
|
85219
|
+
|
|
85220
|
+
PollNameHashHistoryEntry.encode = function encode(m, w) {
|
|
85221
|
+
if (!w)
|
|
85222
|
+
w = $Writer.create();
|
|
85223
|
+
if (m.editStanzaId != null && Object.hasOwnProperty.call(m, "editStanzaId"))
|
|
85224
|
+
w.uint32(10).string(m.editStanzaId);
|
|
85225
|
+
if (m.pollNameHash != null && Object.hasOwnProperty.call(m, "pollNameHash"))
|
|
85226
|
+
w.uint32(18).bytes(m.pollNameHash);
|
|
85227
|
+
return w;
|
|
85228
|
+
};
|
|
85229
|
+
|
|
85230
|
+
PollNameHashHistoryEntry.decode = function decode(r, l, e, n) {
|
|
85231
|
+
if (!(r instanceof $Reader))
|
|
85232
|
+
r = $Reader.create(r);
|
|
85233
|
+
if (n === undefined)
|
|
85234
|
+
n = 0;
|
|
85235
|
+
if (n > $Reader.recursionLimit)
|
|
85236
|
+
throw Error("maximum nesting depth exceeded");
|
|
85237
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry();
|
|
85238
|
+
while (r.pos < c) {
|
|
85239
|
+
var t = r.uint32();
|
|
85240
|
+
if (t === e)
|
|
85241
|
+
break;
|
|
85242
|
+
switch (t >>> 3) {
|
|
85243
|
+
case 1: {
|
|
85244
|
+
m.editStanzaId = r.string();
|
|
85245
|
+
break;
|
|
85246
|
+
}
|
|
85247
|
+
case 2: {
|
|
85248
|
+
m.pollNameHash = r.bytes();
|
|
85249
|
+
break;
|
|
85250
|
+
}
|
|
85251
|
+
default:
|
|
85252
|
+
r.skipType(t & 7, n);
|
|
85253
|
+
break;
|
|
85254
|
+
}
|
|
85255
|
+
}
|
|
85256
|
+
return m;
|
|
85257
|
+
};
|
|
85258
|
+
|
|
85259
|
+
PollNameHashHistoryEntry.fromObject = function fromObject(d, n) {
|
|
85260
|
+
if (d instanceof $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry)
|
|
85261
|
+
return d;
|
|
85262
|
+
if (n === undefined)
|
|
85263
|
+
n = 0;
|
|
85264
|
+
if (n > $util.recursionLimit)
|
|
85265
|
+
throw Error("maximum nesting depth exceeded");
|
|
85266
|
+
var m = new $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry();
|
|
85267
|
+
if (d.editStanzaId != null) {
|
|
85268
|
+
m.editStanzaId = String(d.editStanzaId);
|
|
85269
|
+
}
|
|
85270
|
+
if (d.pollNameHash != null) {
|
|
85271
|
+
if (typeof d.pollNameHash === "string")
|
|
85272
|
+
$util.base64.decode(d.pollNameHash, m.pollNameHash = $util.newBuffer($util.base64.length(d.pollNameHash)), 0);
|
|
85273
|
+
else if (d.pollNameHash.length >= 0)
|
|
85274
|
+
m.pollNameHash = d.pollNameHash;
|
|
85275
|
+
}
|
|
85276
|
+
return m;
|
|
85277
|
+
};
|
|
85278
|
+
|
|
85279
|
+
PollNameHashHistoryEntry.toObject = function toObject(m, o) {
|
|
85280
|
+
if (!o)
|
|
85281
|
+
o = {};
|
|
85282
|
+
var d = {};
|
|
85283
|
+
if (m.editStanzaId != null && m.hasOwnProperty("editStanzaId")) {
|
|
85284
|
+
d.editStanzaId = m.editStanzaId;
|
|
85285
|
+
if (o.oneofs)
|
|
85286
|
+
d._editStanzaId = "editStanzaId";
|
|
85287
|
+
}
|
|
85288
|
+
if (m.pollNameHash != null && m.hasOwnProperty("pollNameHash")) {
|
|
85289
|
+
d.pollNameHash = o.bytes === String ? $util.base64.encode(m.pollNameHash, 0, m.pollNameHash.length) : o.bytes === Array ? Array.prototype.slice.call(m.pollNameHash) : m.pollNameHash;
|
|
85290
|
+
if (o.oneofs)
|
|
85291
|
+
d._pollNameHash = "pollNameHash";
|
|
85292
|
+
}
|
|
85293
|
+
return d;
|
|
85294
|
+
};
|
|
85295
|
+
|
|
85296
|
+
PollNameHashHistoryEntry.prototype.toJSON = function toJSON() {
|
|
85297
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
85298
|
+
};
|
|
85299
|
+
|
|
85300
|
+
PollNameHashHistoryEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
85301
|
+
if (typeUrlPrefix === undefined) {
|
|
85302
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
85303
|
+
}
|
|
85304
|
+
return typeUrlPrefix + "/proto.PollAdditionalMetadata.PollNameHashHistoryEntry";
|
|
85305
|
+
};
|
|
85306
|
+
|
|
85307
|
+
return PollNameHashHistoryEntry;
|
|
85308
|
+
})();
|
|
85309
|
+
|
|
84140
85310
|
return PollAdditionalMetadata;
|
|
84141
85311
|
})();
|
|
84142
85312
|
|
|
@@ -84277,6 +85447,7 @@ export const proto = $root.proto = (() => {
|
|
|
84277
85447
|
PollUpdate.prototype.senderTimestampMs = null;
|
|
84278
85448
|
PollUpdate.prototype.serverTimestampMs = null;
|
|
84279
85449
|
PollUpdate.prototype.unread = null;
|
|
85450
|
+
PollUpdate.prototype.metadata = null;
|
|
84280
85451
|
|
|
84281
85452
|
let $oneOfFields;
|
|
84282
85453
|
|
|
@@ -84310,6 +85481,12 @@ export const proto = $root.proto = (() => {
|
|
|
84310
85481
|
set: $util.oneOfSetter($oneOfFields)
|
|
84311
85482
|
});
|
|
84312
85483
|
|
|
85484
|
+
// Virtual OneOf for proto3 optional field
|
|
85485
|
+
Object.defineProperty(PollUpdate.prototype, "_metadata", {
|
|
85486
|
+
get: $util.oneOfGetter($oneOfFields = ["metadata"]),
|
|
85487
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85488
|
+
});
|
|
85489
|
+
|
|
84313
85490
|
PollUpdate.create = function create(properties) {
|
|
84314
85491
|
return new PollUpdate(properties);
|
|
84315
85492
|
};
|
|
@@ -84327,6 +85504,8 @@ export const proto = $root.proto = (() => {
|
|
|
84327
85504
|
w.uint32(32).int64(m.serverTimestampMs);
|
|
84328
85505
|
if (m.unread != null && Object.hasOwnProperty.call(m, "unread"))
|
|
84329
85506
|
w.uint32(40).bool(m.unread);
|
|
85507
|
+
if (m.metadata != null && Object.hasOwnProperty.call(m, "metadata"))
|
|
85508
|
+
$root.proto.Message.PollUpdateMessageMetadata.encode(m.metadata, w.uint32(50).fork()).ldelim();
|
|
84330
85509
|
return w;
|
|
84331
85510
|
};
|
|
84332
85511
|
|
|
@@ -84363,6 +85542,10 @@ export const proto = $root.proto = (() => {
|
|
|
84363
85542
|
m.unread = r.bool();
|
|
84364
85543
|
break;
|
|
84365
85544
|
}
|
|
85545
|
+
case 6: {
|
|
85546
|
+
m.metadata = $root.proto.Message.PollUpdateMessageMetadata.decode(r, r.uint32(), undefined, n + 1);
|
|
85547
|
+
break;
|
|
85548
|
+
}
|
|
84366
85549
|
default:
|
|
84367
85550
|
r.skipType(t & 7, n);
|
|
84368
85551
|
break;
|
|
@@ -84412,6 +85595,11 @@ export const proto = $root.proto = (() => {
|
|
|
84412
85595
|
if (d.unread != null) {
|
|
84413
85596
|
m.unread = Boolean(d.unread);
|
|
84414
85597
|
}
|
|
85598
|
+
if (d.metadata != null) {
|
|
85599
|
+
if (typeof d.metadata !== "object")
|
|
85600
|
+
throw TypeError(".proto.PollUpdate.metadata: object expected");
|
|
85601
|
+
m.metadata = $root.proto.Message.PollUpdateMessageMetadata.fromObject(d.metadata, n + 1);
|
|
85602
|
+
}
|
|
84415
85603
|
return m;
|
|
84416
85604
|
};
|
|
84417
85605
|
|
|
@@ -84450,6 +85638,11 @@ export const proto = $root.proto = (() => {
|
|
|
84450
85638
|
if (o.oneofs)
|
|
84451
85639
|
d._unread = "unread";
|
|
84452
85640
|
}
|
|
85641
|
+
if (m.metadata != null && m.hasOwnProperty("metadata")) {
|
|
85642
|
+
d.metadata = $root.proto.Message.PollUpdateMessageMetadata.toObject(m.metadata, o);
|
|
85643
|
+
if (o.oneofs)
|
|
85644
|
+
d._metadata = "metadata";
|
|
85645
|
+
}
|
|
84453
85646
|
return d;
|
|
84454
85647
|
};
|
|
84455
85648
|
|
|
@@ -91600,6 +92793,8 @@ export const proto = $root.proto = (() => {
|
|
|
91600
92793
|
SyncActionValue.prototype.threadPinAction = null;
|
|
91601
92794
|
SyncActionValue.prototype.autoOrganizeBusinessChatSetting = null;
|
|
91602
92795
|
SyncActionValue.prototype.bizAiSettingsNudgeAction = null;
|
|
92796
|
+
SyncActionValue.prototype.coexV2VersionAction = null;
|
|
92797
|
+
SyncActionValue.prototype.wasaRootSecretAction = null;
|
|
91603
92798
|
|
|
91604
92799
|
let $oneOfFields;
|
|
91605
92800
|
|
|
@@ -92071,6 +93266,18 @@ export const proto = $root.proto = (() => {
|
|
|
92071
93266
|
set: $util.oneOfSetter($oneOfFields)
|
|
92072
93267
|
});
|
|
92073
93268
|
|
|
93269
|
+
// Virtual OneOf for proto3 optional field
|
|
93270
|
+
Object.defineProperty(SyncActionValue.prototype, "_coexV2VersionAction", {
|
|
93271
|
+
get: $util.oneOfGetter($oneOfFields = ["coexV2VersionAction"]),
|
|
93272
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93273
|
+
});
|
|
93274
|
+
|
|
93275
|
+
// Virtual OneOf for proto3 optional field
|
|
93276
|
+
Object.defineProperty(SyncActionValue.prototype, "_wasaRootSecretAction", {
|
|
93277
|
+
get: $util.oneOfGetter($oneOfFields = ["wasaRootSecretAction"]),
|
|
93278
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93279
|
+
});
|
|
93280
|
+
|
|
92074
93281
|
SyncActionValue.create = function create(properties) {
|
|
92075
93282
|
return new SyncActionValue(properties);
|
|
92076
93283
|
};
|
|
@@ -92234,6 +93441,10 @@ export const proto = $root.proto = (() => {
|
|
|
92234
93441
|
$root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting.encode(m.autoOrganizeBusinessChatSetting, w.uint32(690).fork()).ldelim();
|
|
92235
93442
|
if (m.bizAiSettingsNudgeAction != null && Object.hasOwnProperty.call(m, "bizAiSettingsNudgeAction"))
|
|
92236
93443
|
$root.proto.SyncActionValue.BizAISettingsNudgeAction.encode(m.bizAiSettingsNudgeAction, w.uint32(698).fork()).ldelim();
|
|
93444
|
+
if (m.coexV2VersionAction != null && Object.hasOwnProperty.call(m, "coexV2VersionAction"))
|
|
93445
|
+
$root.proto.SyncActionValue.CoexV2VersionAction.encode(m.coexV2VersionAction, w.uint32(706).fork()).ldelim();
|
|
93446
|
+
if (m.wasaRootSecretAction != null && Object.hasOwnProperty.call(m, "wasaRootSecretAction"))
|
|
93447
|
+
$root.proto.SyncActionValue.WASARootSecretAction.encode(m.wasaRootSecretAction, w.uint32(714).fork()).ldelim();
|
|
92237
93448
|
return w;
|
|
92238
93449
|
};
|
|
92239
93450
|
|
|
@@ -92562,6 +93773,14 @@ export const proto = $root.proto = (() => {
|
|
|
92562
93773
|
m.bizAiSettingsNudgeAction = $root.proto.SyncActionValue.BizAISettingsNudgeAction.decode(r, r.uint32(), undefined, n + 1);
|
|
92563
93774
|
break;
|
|
92564
93775
|
}
|
|
93776
|
+
case 88: {
|
|
93777
|
+
m.coexV2VersionAction = $root.proto.SyncActionValue.CoexV2VersionAction.decode(r, r.uint32(), undefined, n + 1);
|
|
93778
|
+
break;
|
|
93779
|
+
}
|
|
93780
|
+
case 89: {
|
|
93781
|
+
m.wasaRootSecretAction = $root.proto.SyncActionValue.WASARootSecretAction.decode(r, r.uint32(), undefined, n + 1);
|
|
93782
|
+
break;
|
|
93783
|
+
}
|
|
92565
93784
|
default:
|
|
92566
93785
|
r.skipType(t & 7, n);
|
|
92567
93786
|
break;
|
|
@@ -92973,6 +94192,16 @@ export const proto = $root.proto = (() => {
|
|
|
92973
94192
|
throw TypeError(".proto.SyncActionValue.bizAiSettingsNudgeAction: object expected");
|
|
92974
94193
|
m.bizAiSettingsNudgeAction = $root.proto.SyncActionValue.BizAISettingsNudgeAction.fromObject(d.bizAiSettingsNudgeAction, n + 1);
|
|
92975
94194
|
}
|
|
94195
|
+
if (d.coexV2VersionAction != null) {
|
|
94196
|
+
if (typeof d.coexV2VersionAction !== "object")
|
|
94197
|
+
throw TypeError(".proto.SyncActionValue.coexV2VersionAction: object expected");
|
|
94198
|
+
m.coexV2VersionAction = $root.proto.SyncActionValue.CoexV2VersionAction.fromObject(d.coexV2VersionAction, n + 1);
|
|
94199
|
+
}
|
|
94200
|
+
if (d.wasaRootSecretAction != null) {
|
|
94201
|
+
if (typeof d.wasaRootSecretAction !== "object")
|
|
94202
|
+
throw TypeError(".proto.SyncActionValue.wasaRootSecretAction: object expected");
|
|
94203
|
+
m.wasaRootSecretAction = $root.proto.SyncActionValue.WASARootSecretAction.fromObject(d.wasaRootSecretAction, n + 1);
|
|
94204
|
+
}
|
|
92976
94205
|
return m;
|
|
92977
94206
|
};
|
|
92978
94207
|
|
|
@@ -93373,6 +94602,16 @@ export const proto = $root.proto = (() => {
|
|
|
93373
94602
|
if (o.oneofs)
|
|
93374
94603
|
d._bizAiSettingsNudgeAction = "bizAiSettingsNudgeAction";
|
|
93375
94604
|
}
|
|
94605
|
+
if (m.coexV2VersionAction != null && m.hasOwnProperty("coexV2VersionAction")) {
|
|
94606
|
+
d.coexV2VersionAction = $root.proto.SyncActionValue.CoexV2VersionAction.toObject(m.coexV2VersionAction, o);
|
|
94607
|
+
if (o.oneofs)
|
|
94608
|
+
d._coexV2VersionAction = "coexV2VersionAction";
|
|
94609
|
+
}
|
|
94610
|
+
if (m.wasaRootSecretAction != null && m.hasOwnProperty("wasaRootSecretAction")) {
|
|
94611
|
+
d.wasaRootSecretAction = $root.proto.SyncActionValue.WASARootSecretAction.toObject(m.wasaRootSecretAction, o);
|
|
94612
|
+
if (o.oneofs)
|
|
94613
|
+
d._wasaRootSecretAction = "wasaRootSecretAction";
|
|
94614
|
+
}
|
|
93376
94615
|
return d;
|
|
93377
94616
|
};
|
|
93378
94617
|
|
|
@@ -93397,7 +94636,7 @@ export const proto = $root.proto = (() => {
|
|
|
93397
94636
|
}
|
|
93398
94637
|
|
|
93399
94638
|
AgentAction.prototype.name = null;
|
|
93400
|
-
AgentAction.prototype.
|
|
94639
|
+
AgentAction.prototype.deviceId = null;
|
|
93401
94640
|
AgentAction.prototype.isDeleted = null;
|
|
93402
94641
|
|
|
93403
94642
|
let $oneOfFields;
|
|
@@ -93409,8 +94648,8 @@ export const proto = $root.proto = (() => {
|
|
|
93409
94648
|
});
|
|
93410
94649
|
|
|
93411
94650
|
// Virtual OneOf for proto3 optional field
|
|
93412
|
-
Object.defineProperty(AgentAction.prototype, "
|
|
93413
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
94651
|
+
Object.defineProperty(AgentAction.prototype, "_deviceId", {
|
|
94652
|
+
get: $util.oneOfGetter($oneOfFields = ["deviceId"]),
|
|
93414
94653
|
set: $util.oneOfSetter($oneOfFields)
|
|
93415
94654
|
});
|
|
93416
94655
|
|
|
@@ -93429,8 +94668,8 @@ export const proto = $root.proto = (() => {
|
|
|
93429
94668
|
w = $Writer.create();
|
|
93430
94669
|
if (m.name != null && Object.hasOwnProperty.call(m, "name"))
|
|
93431
94670
|
w.uint32(10).string(m.name);
|
|
93432
|
-
if (m.
|
|
93433
|
-
w.uint32(16).int32(m.
|
|
94671
|
+
if (m.deviceId != null && Object.hasOwnProperty.call(m, "deviceId"))
|
|
94672
|
+
w.uint32(16).int32(m.deviceId);
|
|
93434
94673
|
if (m.isDeleted != null && Object.hasOwnProperty.call(m, "isDeleted"))
|
|
93435
94674
|
w.uint32(24).bool(m.isDeleted);
|
|
93436
94675
|
return w;
|
|
@@ -93454,7 +94693,7 @@ export const proto = $root.proto = (() => {
|
|
|
93454
94693
|
break;
|
|
93455
94694
|
}
|
|
93456
94695
|
case 2: {
|
|
93457
|
-
m.
|
|
94696
|
+
m.deviceId = r.int32();
|
|
93458
94697
|
break;
|
|
93459
94698
|
}
|
|
93460
94699
|
case 3: {
|
|
@@ -93480,8 +94719,8 @@ export const proto = $root.proto = (() => {
|
|
|
93480
94719
|
if (d.name != null) {
|
|
93481
94720
|
m.name = String(d.name);
|
|
93482
94721
|
}
|
|
93483
|
-
if (d.
|
|
93484
|
-
m.
|
|
94722
|
+
if (d.deviceId != null) {
|
|
94723
|
+
m.deviceId = d.deviceId | 0;
|
|
93485
94724
|
}
|
|
93486
94725
|
if (d.isDeleted != null) {
|
|
93487
94726
|
m.isDeleted = Boolean(d.isDeleted);
|
|
@@ -93498,10 +94737,10 @@ export const proto = $root.proto = (() => {
|
|
|
93498
94737
|
if (o.oneofs)
|
|
93499
94738
|
d._name = "name";
|
|
93500
94739
|
}
|
|
93501
|
-
if (m.
|
|
93502
|
-
d.
|
|
94740
|
+
if (m.deviceId != null && m.hasOwnProperty("deviceId")) {
|
|
94741
|
+
d.deviceId = m.deviceId;
|
|
93503
94742
|
if (o.oneofs)
|
|
93504
|
-
d.
|
|
94743
|
+
d._deviceId = "deviceId";
|
|
93505
94744
|
}
|
|
93506
94745
|
if (m.isDeleted != null && m.hasOwnProperty("isDeleted")) {
|
|
93507
94746
|
d.isDeleted = m.isDeleted;
|
|
@@ -95388,13 +96627,13 @@ export const proto = $root.proto = (() => {
|
|
|
95388
96627
|
this[ks[i]] = p[ks[i]];
|
|
95389
96628
|
}
|
|
95390
96629
|
|
|
95391
|
-
ChatAssignmentAction.prototype.
|
|
96630
|
+
ChatAssignmentAction.prototype.deviceAgentId = null;
|
|
95392
96631
|
|
|
95393
96632
|
let $oneOfFields;
|
|
95394
96633
|
|
|
95395
96634
|
// Virtual OneOf for proto3 optional field
|
|
95396
|
-
Object.defineProperty(ChatAssignmentAction.prototype, "
|
|
95397
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
96635
|
+
Object.defineProperty(ChatAssignmentAction.prototype, "_deviceAgentId", {
|
|
96636
|
+
get: $util.oneOfGetter($oneOfFields = ["deviceAgentId"]),
|
|
95398
96637
|
set: $util.oneOfSetter($oneOfFields)
|
|
95399
96638
|
});
|
|
95400
96639
|
|
|
@@ -95405,8 +96644,8 @@ export const proto = $root.proto = (() => {
|
|
|
95405
96644
|
ChatAssignmentAction.encode = function encode(m, w) {
|
|
95406
96645
|
if (!w)
|
|
95407
96646
|
w = $Writer.create();
|
|
95408
|
-
if (m.
|
|
95409
|
-
w.uint32(10).string(m.
|
|
96647
|
+
if (m.deviceAgentId != null && Object.hasOwnProperty.call(m, "deviceAgentId"))
|
|
96648
|
+
w.uint32(10).string(m.deviceAgentId);
|
|
95410
96649
|
return w;
|
|
95411
96650
|
};
|
|
95412
96651
|
|
|
@@ -95424,7 +96663,7 @@ export const proto = $root.proto = (() => {
|
|
|
95424
96663
|
break;
|
|
95425
96664
|
switch (t >>> 3) {
|
|
95426
96665
|
case 1: {
|
|
95427
|
-
m.
|
|
96666
|
+
m.deviceAgentId = r.string();
|
|
95428
96667
|
break;
|
|
95429
96668
|
}
|
|
95430
96669
|
default:
|
|
@@ -95443,8 +96682,8 @@ export const proto = $root.proto = (() => {
|
|
|
95443
96682
|
if (n > $util.recursionLimit)
|
|
95444
96683
|
throw Error("maximum nesting depth exceeded");
|
|
95445
96684
|
var m = new $root.proto.SyncActionValue.ChatAssignmentAction();
|
|
95446
|
-
if (d.
|
|
95447
|
-
m.
|
|
96685
|
+
if (d.deviceAgentId != null) {
|
|
96686
|
+
m.deviceAgentId = String(d.deviceAgentId);
|
|
95448
96687
|
}
|
|
95449
96688
|
return m;
|
|
95450
96689
|
};
|
|
@@ -95453,10 +96692,10 @@ export const proto = $root.proto = (() => {
|
|
|
95453
96692
|
if (!o)
|
|
95454
96693
|
o = {};
|
|
95455
96694
|
var d = {};
|
|
95456
|
-
if (m.
|
|
95457
|
-
d.
|
|
96695
|
+
if (m.deviceAgentId != null && m.hasOwnProperty("deviceAgentId")) {
|
|
96696
|
+
d.deviceAgentId = m.deviceAgentId;
|
|
95458
96697
|
if (o.oneofs)
|
|
95459
|
-
d.
|
|
96698
|
+
d._deviceAgentId = "deviceAgentId";
|
|
95460
96699
|
}
|
|
95461
96700
|
return d;
|
|
95462
96701
|
};
|
|
@@ -95669,6 +96908,112 @@ export const proto = $root.proto = (() => {
|
|
|
95669
96908
|
return ClearChatAction;
|
|
95670
96909
|
})();
|
|
95671
96910
|
|
|
96911
|
+
SyncActionValue.CoexV2VersionAction = (function() {
|
|
96912
|
+
|
|
96913
|
+
function CoexV2VersionAction(p) {
|
|
96914
|
+
if (p)
|
|
96915
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
96916
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
96917
|
+
this[ks[i]] = p[ks[i]];
|
|
96918
|
+
}
|
|
96919
|
+
|
|
96920
|
+
CoexV2VersionAction.prototype.version = null;
|
|
96921
|
+
|
|
96922
|
+
let $oneOfFields;
|
|
96923
|
+
|
|
96924
|
+
// Virtual OneOf for proto3 optional field
|
|
96925
|
+
Object.defineProperty(CoexV2VersionAction.prototype, "_version", {
|
|
96926
|
+
get: $util.oneOfGetter($oneOfFields = ["version"]),
|
|
96927
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
96928
|
+
});
|
|
96929
|
+
|
|
96930
|
+
CoexV2VersionAction.create = function create(properties) {
|
|
96931
|
+
return new CoexV2VersionAction(properties);
|
|
96932
|
+
};
|
|
96933
|
+
|
|
96934
|
+
CoexV2VersionAction.encode = function encode(m, w) {
|
|
96935
|
+
if (!w)
|
|
96936
|
+
w = $Writer.create();
|
|
96937
|
+
if (m.version != null && Object.hasOwnProperty.call(m, "version"))
|
|
96938
|
+
w.uint32(8).uint64(m.version);
|
|
96939
|
+
return w;
|
|
96940
|
+
};
|
|
96941
|
+
|
|
96942
|
+
CoexV2VersionAction.decode = function decode(r, l, e, n) {
|
|
96943
|
+
if (!(r instanceof $Reader))
|
|
96944
|
+
r = $Reader.create(r);
|
|
96945
|
+
if (n === undefined)
|
|
96946
|
+
n = 0;
|
|
96947
|
+
if (n > $Reader.recursionLimit)
|
|
96948
|
+
throw Error("maximum nesting depth exceeded");
|
|
96949
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.CoexV2VersionAction();
|
|
96950
|
+
while (r.pos < c) {
|
|
96951
|
+
var t = r.uint32();
|
|
96952
|
+
if (t === e)
|
|
96953
|
+
break;
|
|
96954
|
+
switch (t >>> 3) {
|
|
96955
|
+
case 1: {
|
|
96956
|
+
m.version = r.uint64();
|
|
96957
|
+
break;
|
|
96958
|
+
}
|
|
96959
|
+
default:
|
|
96960
|
+
r.skipType(t & 7, n);
|
|
96961
|
+
break;
|
|
96962
|
+
}
|
|
96963
|
+
}
|
|
96964
|
+
return m;
|
|
96965
|
+
};
|
|
96966
|
+
|
|
96967
|
+
CoexV2VersionAction.fromObject = function fromObject(d, n) {
|
|
96968
|
+
if (d instanceof $root.proto.SyncActionValue.CoexV2VersionAction)
|
|
96969
|
+
return d;
|
|
96970
|
+
if (n === undefined)
|
|
96971
|
+
n = 0;
|
|
96972
|
+
if (n > $util.recursionLimit)
|
|
96973
|
+
throw Error("maximum nesting depth exceeded");
|
|
96974
|
+
var m = new $root.proto.SyncActionValue.CoexV2VersionAction();
|
|
96975
|
+
if (d.version != null) {
|
|
96976
|
+
if ($util.Long)
|
|
96977
|
+
(m.version = $util.Long.fromValue(d.version)).unsigned = true;
|
|
96978
|
+
else if (typeof d.version === "string")
|
|
96979
|
+
m.version = parseInt(d.version, 10);
|
|
96980
|
+
else if (typeof d.version === "number")
|
|
96981
|
+
m.version = d.version;
|
|
96982
|
+
else if (typeof d.version === "object")
|
|
96983
|
+
m.version = new $util.LongBits(d.version.low >>> 0, d.version.high >>> 0).toNumber(true);
|
|
96984
|
+
}
|
|
96985
|
+
return m;
|
|
96986
|
+
};
|
|
96987
|
+
|
|
96988
|
+
CoexV2VersionAction.toObject = function toObject(m, o) {
|
|
96989
|
+
if (!o)
|
|
96990
|
+
o = {};
|
|
96991
|
+
var d = {};
|
|
96992
|
+
if (m.version != null && m.hasOwnProperty("version")) {
|
|
96993
|
+
if (typeof m.version === "number")
|
|
96994
|
+
d.version = o.longs === String ? String(m.version) : m.version;
|
|
96995
|
+
else
|
|
96996
|
+
d.version = o.longs === String ? longToString(m.version, true) : o.longs === Number ? longToNumber(m.version, true) : m.version;
|
|
96997
|
+
if (o.oneofs)
|
|
96998
|
+
d._version = "version";
|
|
96999
|
+
}
|
|
97000
|
+
return d;
|
|
97001
|
+
};
|
|
97002
|
+
|
|
97003
|
+
CoexV2VersionAction.prototype.toJSON = function toJSON() {
|
|
97004
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
97005
|
+
};
|
|
97006
|
+
|
|
97007
|
+
CoexV2VersionAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
97008
|
+
if (typeUrlPrefix === undefined) {
|
|
97009
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
97010
|
+
}
|
|
97011
|
+
return typeUrlPrefix + "/proto.SyncActionValue.CoexV2VersionAction";
|
|
97012
|
+
};
|
|
97013
|
+
|
|
97014
|
+
return CoexV2VersionAction;
|
|
97015
|
+
})();
|
|
97016
|
+
|
|
95672
97017
|
SyncActionValue.ContactAction = (function() {
|
|
95673
97018
|
|
|
95674
97019
|
function ContactAction(p) {
|
|
@@ -97627,7 +98972,6 @@ export const proto = $root.proto = (() => {
|
|
|
97627
98972
|
SyncActionValue.LabelAssociationAction = (function() {
|
|
97628
98973
|
|
|
97629
98974
|
function LabelAssociationAction(p) {
|
|
97630
|
-
this.modelMetaData = [];
|
|
97631
98975
|
if (p)
|
|
97632
98976
|
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
97633
98977
|
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
@@ -97635,7 +98979,7 @@ export const proto = $root.proto = (() => {
|
|
|
97635
98979
|
}
|
|
97636
98980
|
|
|
97637
98981
|
LabelAssociationAction.prototype.labeled = null;
|
|
97638
|
-
LabelAssociationAction.prototype.modelMetaData =
|
|
98982
|
+
LabelAssociationAction.prototype.modelMetaData = null;
|
|
97639
98983
|
|
|
97640
98984
|
let $oneOfFields;
|
|
97641
98985
|
|
|
@@ -97645,6 +98989,12 @@ export const proto = $root.proto = (() => {
|
|
|
97645
98989
|
set: $util.oneOfSetter($oneOfFields)
|
|
97646
98990
|
});
|
|
97647
98991
|
|
|
98992
|
+
// Virtual OneOf for proto3 optional field
|
|
98993
|
+
Object.defineProperty(LabelAssociationAction.prototype, "_modelMetaData", {
|
|
98994
|
+
get: $util.oneOfGetter($oneOfFields = ["modelMetaData"]),
|
|
98995
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
98996
|
+
});
|
|
98997
|
+
|
|
97648
98998
|
LabelAssociationAction.create = function create(properties) {
|
|
97649
98999
|
return new LabelAssociationAction(properties);
|
|
97650
99000
|
};
|
|
@@ -97654,10 +99004,8 @@ export const proto = $root.proto = (() => {
|
|
|
97654
99004
|
w = $Writer.create();
|
|
97655
99005
|
if (m.labeled != null && Object.hasOwnProperty.call(m, "labeled"))
|
|
97656
99006
|
w.uint32(8).bool(m.labeled);
|
|
97657
|
-
if (m.modelMetaData != null && m
|
|
97658
|
-
|
|
97659
|
-
$root.proto.SyncActionValue.ModelMetadata.encode(m.modelMetaData[i], w.uint32(18).fork()).ldelim();
|
|
97660
|
-
}
|
|
99007
|
+
if (m.modelMetaData != null && Object.hasOwnProperty.call(m, "modelMetaData"))
|
|
99008
|
+
w.uint32(18).string(m.modelMetaData);
|
|
97661
99009
|
return w;
|
|
97662
99010
|
};
|
|
97663
99011
|
|
|
@@ -97679,9 +99027,7 @@ export const proto = $root.proto = (() => {
|
|
|
97679
99027
|
break;
|
|
97680
99028
|
}
|
|
97681
99029
|
case 2: {
|
|
97682
|
-
|
|
97683
|
-
m.modelMetaData = [];
|
|
97684
|
-
m.modelMetaData.push($root.proto.SyncActionValue.ModelMetadata.decode(r, r.uint32(), undefined, n + 1));
|
|
99030
|
+
m.modelMetaData = r.string();
|
|
97685
99031
|
break;
|
|
97686
99032
|
}
|
|
97687
99033
|
default:
|
|
@@ -97703,15 +99049,8 @@ export const proto = $root.proto = (() => {
|
|
|
97703
99049
|
if (d.labeled != null) {
|
|
97704
99050
|
m.labeled = Boolean(d.labeled);
|
|
97705
99051
|
}
|
|
97706
|
-
if (d.modelMetaData) {
|
|
97707
|
-
|
|
97708
|
-
throw TypeError(".proto.SyncActionValue.LabelAssociationAction.modelMetaData: array expected");
|
|
97709
|
-
m.modelMetaData = [];
|
|
97710
|
-
for (var i = 0; i < d.modelMetaData.length; ++i) {
|
|
97711
|
-
if (typeof d.modelMetaData[i] !== "object")
|
|
97712
|
-
throw TypeError(".proto.SyncActionValue.LabelAssociationAction.modelMetaData: object expected");
|
|
97713
|
-
m.modelMetaData[i] = $root.proto.SyncActionValue.ModelMetadata.fromObject(d.modelMetaData[i], n + 1);
|
|
97714
|
-
}
|
|
99052
|
+
if (d.modelMetaData != null) {
|
|
99053
|
+
m.modelMetaData = String(d.modelMetaData);
|
|
97715
99054
|
}
|
|
97716
99055
|
return m;
|
|
97717
99056
|
};
|
|
@@ -97720,19 +99059,15 @@ export const proto = $root.proto = (() => {
|
|
|
97720
99059
|
if (!o)
|
|
97721
99060
|
o = {};
|
|
97722
99061
|
var d = {};
|
|
97723
|
-
if (o.arrays || o.defaults) {
|
|
97724
|
-
d.modelMetaData = [];
|
|
97725
|
-
}
|
|
97726
99062
|
if (m.labeled != null && m.hasOwnProperty("labeled")) {
|
|
97727
99063
|
d.labeled = m.labeled;
|
|
97728
99064
|
if (o.oneofs)
|
|
97729
99065
|
d._labeled = "labeled";
|
|
97730
99066
|
}
|
|
97731
|
-
if (m.modelMetaData && m.modelMetaData
|
|
97732
|
-
d.modelMetaData =
|
|
97733
|
-
|
|
97734
|
-
d.
|
|
97735
|
-
}
|
|
99067
|
+
if (m.modelMetaData != null && m.hasOwnProperty("modelMetaData")) {
|
|
99068
|
+
d.modelMetaData = m.modelMetaData;
|
|
99069
|
+
if (o.oneofs)
|
|
99070
|
+
d._modelMetaData = "modelMetaData";
|
|
97736
99071
|
}
|
|
97737
99072
|
return d;
|
|
97738
99073
|
};
|
|
@@ -97992,6 +99327,22 @@ export const proto = $root.proto = (() => {
|
|
|
97992
99327
|
case 11:
|
|
97993
99328
|
m.type = 11;
|
|
97994
99329
|
break;
|
|
99330
|
+
case "ARCHIVED":
|
|
99331
|
+
case 12:
|
|
99332
|
+
m.type = 12;
|
|
99333
|
+
break;
|
|
99334
|
+
case "LOCKED":
|
|
99335
|
+
case 13:
|
|
99336
|
+
m.type = 13;
|
|
99337
|
+
break;
|
|
99338
|
+
case "INVITES":
|
|
99339
|
+
case 14:
|
|
99340
|
+
m.type = 14;
|
|
99341
|
+
break;
|
|
99342
|
+
case "THIRD_PARTY":
|
|
99343
|
+
case 15:
|
|
99344
|
+
m.type = 15;
|
|
99345
|
+
break;
|
|
97995
99346
|
}
|
|
97996
99347
|
if (d.isImmutable != null) {
|
|
97997
99348
|
m.isImmutable = Boolean(d.isImmutable);
|
|
@@ -98089,6 +99440,10 @@ export const proto = $root.proto = (() => {
|
|
|
98089
99440
|
values[valuesById[9] = "AI_HANDOFF"] = 9;
|
|
98090
99441
|
values[valuesById[10] = "CHANNELS"] = 10;
|
|
98091
99442
|
values[valuesById[11] = "AI_RESPONDING"] = 11;
|
|
99443
|
+
values[valuesById[12] = "ARCHIVED"] = 12;
|
|
99444
|
+
values[valuesById[13] = "LOCKED"] = 13;
|
|
99445
|
+
values[valuesById[14] = "INVITES"] = 14;
|
|
99446
|
+
values[valuesById[15] = "THIRD_PARTY"] = 15;
|
|
98092
99447
|
return values;
|
|
98093
99448
|
})();
|
|
98094
99449
|
|
|
@@ -98544,6 +99899,7 @@ export const proto = $root.proto = (() => {
|
|
|
98544
99899
|
}
|
|
98545
99900
|
|
|
98546
99901
|
MaibaAIFeaturesControlAction.prototype.aiFeatureStatus = null;
|
|
99902
|
+
MaibaAIFeaturesControlAction.prototype.aiReplyMode = null;
|
|
98547
99903
|
|
|
98548
99904
|
let $oneOfFields;
|
|
98549
99905
|
|
|
@@ -98553,6 +99909,12 @@ export const proto = $root.proto = (() => {
|
|
|
98553
99909
|
set: $util.oneOfSetter($oneOfFields)
|
|
98554
99910
|
});
|
|
98555
99911
|
|
|
99912
|
+
// Virtual OneOf for proto3 optional field
|
|
99913
|
+
Object.defineProperty(MaibaAIFeaturesControlAction.prototype, "_aiReplyMode", {
|
|
99914
|
+
get: $util.oneOfGetter($oneOfFields = ["aiReplyMode"]),
|
|
99915
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
99916
|
+
});
|
|
99917
|
+
|
|
98556
99918
|
MaibaAIFeaturesControlAction.create = function create(properties) {
|
|
98557
99919
|
return new MaibaAIFeaturesControlAction(properties);
|
|
98558
99920
|
};
|
|
@@ -98562,6 +99924,8 @@ export const proto = $root.proto = (() => {
|
|
|
98562
99924
|
w = $Writer.create();
|
|
98563
99925
|
if (m.aiFeatureStatus != null && Object.hasOwnProperty.call(m, "aiFeatureStatus"))
|
|
98564
99926
|
w.uint32(8).int32(m.aiFeatureStatus);
|
|
99927
|
+
if (m.aiReplyMode != null && Object.hasOwnProperty.call(m, "aiReplyMode"))
|
|
99928
|
+
w.uint32(16).int32(m.aiReplyMode);
|
|
98565
99929
|
return w;
|
|
98566
99930
|
};
|
|
98567
99931
|
|
|
@@ -98582,6 +99946,10 @@ export const proto = $root.proto = (() => {
|
|
|
98582
99946
|
m.aiFeatureStatus = r.int32();
|
|
98583
99947
|
break;
|
|
98584
99948
|
}
|
|
99949
|
+
case 2: {
|
|
99950
|
+
m.aiReplyMode = r.int32();
|
|
99951
|
+
break;
|
|
99952
|
+
}
|
|
98585
99953
|
default:
|
|
98586
99954
|
r.skipType(t & 7, n);
|
|
98587
99955
|
break;
|
|
@@ -98618,6 +99986,26 @@ export const proto = $root.proto = (() => {
|
|
|
98618
99986
|
m.aiFeatureStatus = 2;
|
|
98619
99987
|
break;
|
|
98620
99988
|
}
|
|
99989
|
+
switch (d.aiReplyMode) {
|
|
99990
|
+
default:
|
|
99991
|
+
if (typeof d.aiReplyMode === "number") {
|
|
99992
|
+
m.aiReplyMode = d.aiReplyMode;
|
|
99993
|
+
break;
|
|
99994
|
+
}
|
|
99995
|
+
break;
|
|
99996
|
+
case "MUTED":
|
|
99997
|
+
case 0:
|
|
99998
|
+
m.aiReplyMode = 0;
|
|
99999
|
+
break;
|
|
100000
|
+
case "AI_AGENT":
|
|
100001
|
+
case 1:
|
|
100002
|
+
m.aiReplyMode = 1;
|
|
100003
|
+
break;
|
|
100004
|
+
case "SUGGESTIONS":
|
|
100005
|
+
case 2:
|
|
100006
|
+
m.aiReplyMode = 2;
|
|
100007
|
+
break;
|
|
100008
|
+
}
|
|
98621
100009
|
return m;
|
|
98622
100010
|
};
|
|
98623
100011
|
|
|
@@ -98630,6 +100018,11 @@ export const proto = $root.proto = (() => {
|
|
|
98630
100018
|
if (o.oneofs)
|
|
98631
100019
|
d._aiFeatureStatus = "aiFeatureStatus";
|
|
98632
100020
|
}
|
|
100021
|
+
if (m.aiReplyMode != null && m.hasOwnProperty("aiReplyMode")) {
|
|
100022
|
+
d.aiReplyMode = o.enums === String ? $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode[m.aiReplyMode] === undefined ? m.aiReplyMode : $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode[m.aiReplyMode] : m.aiReplyMode;
|
|
100023
|
+
if (o.oneofs)
|
|
100024
|
+
d._aiReplyMode = "aiReplyMode";
|
|
100025
|
+
}
|
|
98633
100026
|
return d;
|
|
98634
100027
|
};
|
|
98635
100028
|
|
|
@@ -98652,6 +100045,14 @@ export const proto = $root.proto = (() => {
|
|
|
98652
100045
|
return values;
|
|
98653
100046
|
})();
|
|
98654
100047
|
|
|
100048
|
+
MaibaAIFeaturesControlAction.MaibaAIReplyMode = (function() {
|
|
100049
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
100050
|
+
values[valuesById[0] = "MUTED"] = 0;
|
|
100051
|
+
values[valuesById[1] = "AI_AGENT"] = 1;
|
|
100052
|
+
values[valuesById[2] = "SUGGESTIONS"] = 2;
|
|
100053
|
+
return values;
|
|
100054
|
+
})();
|
|
100055
|
+
|
|
98655
100056
|
return MaibaAIFeaturesControlAction;
|
|
98656
100057
|
})();
|
|
98657
100058
|
|
|
@@ -99294,144 +100695,6 @@ export const proto = $root.proto = (() => {
|
|
|
99294
100695
|
return MerchantPaymentPartnerAction;
|
|
99295
100696
|
})();
|
|
99296
100697
|
|
|
99297
|
-
SyncActionValue.ModelMetadata = (function() {
|
|
99298
|
-
|
|
99299
|
-
function ModelMetadata(p) {
|
|
99300
|
-
if (p)
|
|
99301
|
-
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
99302
|
-
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
99303
|
-
this[ks[i]] = p[ks[i]];
|
|
99304
|
-
}
|
|
99305
|
-
|
|
99306
|
-
ModelMetadata.prototype.modelName = null;
|
|
99307
|
-
ModelMetadata.prototype.isLatestModel = null;
|
|
99308
|
-
ModelMetadata.prototype.isDetected = null;
|
|
99309
|
-
|
|
99310
|
-
let $oneOfFields;
|
|
99311
|
-
|
|
99312
|
-
// Virtual OneOf for proto3 optional field
|
|
99313
|
-
Object.defineProperty(ModelMetadata.prototype, "_modelName", {
|
|
99314
|
-
get: $util.oneOfGetter($oneOfFields = ["modelName"]),
|
|
99315
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
99316
|
-
});
|
|
99317
|
-
|
|
99318
|
-
// Virtual OneOf for proto3 optional field
|
|
99319
|
-
Object.defineProperty(ModelMetadata.prototype, "_isLatestModel", {
|
|
99320
|
-
get: $util.oneOfGetter($oneOfFields = ["isLatestModel"]),
|
|
99321
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
99322
|
-
});
|
|
99323
|
-
|
|
99324
|
-
// Virtual OneOf for proto3 optional field
|
|
99325
|
-
Object.defineProperty(ModelMetadata.prototype, "_isDetected", {
|
|
99326
|
-
get: $util.oneOfGetter($oneOfFields = ["isDetected"]),
|
|
99327
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
99328
|
-
});
|
|
99329
|
-
|
|
99330
|
-
ModelMetadata.create = function create(properties) {
|
|
99331
|
-
return new ModelMetadata(properties);
|
|
99332
|
-
};
|
|
99333
|
-
|
|
99334
|
-
ModelMetadata.encode = function encode(m, w) {
|
|
99335
|
-
if (!w)
|
|
99336
|
-
w = $Writer.create();
|
|
99337
|
-
if (m.modelName != null && Object.hasOwnProperty.call(m, "modelName"))
|
|
99338
|
-
w.uint32(10).string(m.modelName);
|
|
99339
|
-
if (m.isLatestModel != null && Object.hasOwnProperty.call(m, "isLatestModel"))
|
|
99340
|
-
w.uint32(16).bool(m.isLatestModel);
|
|
99341
|
-
if (m.isDetected != null && Object.hasOwnProperty.call(m, "isDetected"))
|
|
99342
|
-
w.uint32(24).bool(m.isDetected);
|
|
99343
|
-
return w;
|
|
99344
|
-
};
|
|
99345
|
-
|
|
99346
|
-
ModelMetadata.decode = function decode(r, l, e, n) {
|
|
99347
|
-
if (!(r instanceof $Reader))
|
|
99348
|
-
r = $Reader.create(r);
|
|
99349
|
-
if (n === undefined)
|
|
99350
|
-
n = 0;
|
|
99351
|
-
if (n > $Reader.recursionLimit)
|
|
99352
|
-
throw Error("maximum nesting depth exceeded");
|
|
99353
|
-
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.ModelMetadata();
|
|
99354
|
-
while (r.pos < c) {
|
|
99355
|
-
var t = r.uint32();
|
|
99356
|
-
if (t === e)
|
|
99357
|
-
break;
|
|
99358
|
-
switch (t >>> 3) {
|
|
99359
|
-
case 1: {
|
|
99360
|
-
m.modelName = r.string();
|
|
99361
|
-
break;
|
|
99362
|
-
}
|
|
99363
|
-
case 2: {
|
|
99364
|
-
m.isLatestModel = r.bool();
|
|
99365
|
-
break;
|
|
99366
|
-
}
|
|
99367
|
-
case 3: {
|
|
99368
|
-
m.isDetected = r.bool();
|
|
99369
|
-
break;
|
|
99370
|
-
}
|
|
99371
|
-
default:
|
|
99372
|
-
r.skipType(t & 7, n);
|
|
99373
|
-
break;
|
|
99374
|
-
}
|
|
99375
|
-
}
|
|
99376
|
-
return m;
|
|
99377
|
-
};
|
|
99378
|
-
|
|
99379
|
-
ModelMetadata.fromObject = function fromObject(d, n) {
|
|
99380
|
-
if (d instanceof $root.proto.SyncActionValue.ModelMetadata)
|
|
99381
|
-
return d;
|
|
99382
|
-
if (n === undefined)
|
|
99383
|
-
n = 0;
|
|
99384
|
-
if (n > $util.recursionLimit)
|
|
99385
|
-
throw Error("maximum nesting depth exceeded");
|
|
99386
|
-
var m = new $root.proto.SyncActionValue.ModelMetadata();
|
|
99387
|
-
if (d.modelName != null) {
|
|
99388
|
-
m.modelName = String(d.modelName);
|
|
99389
|
-
}
|
|
99390
|
-
if (d.isLatestModel != null) {
|
|
99391
|
-
m.isLatestModel = Boolean(d.isLatestModel);
|
|
99392
|
-
}
|
|
99393
|
-
if (d.isDetected != null) {
|
|
99394
|
-
m.isDetected = Boolean(d.isDetected);
|
|
99395
|
-
}
|
|
99396
|
-
return m;
|
|
99397
|
-
};
|
|
99398
|
-
|
|
99399
|
-
ModelMetadata.toObject = function toObject(m, o) {
|
|
99400
|
-
if (!o)
|
|
99401
|
-
o = {};
|
|
99402
|
-
var d = {};
|
|
99403
|
-
if (m.modelName != null && m.hasOwnProperty("modelName")) {
|
|
99404
|
-
d.modelName = m.modelName;
|
|
99405
|
-
if (o.oneofs)
|
|
99406
|
-
d._modelName = "modelName";
|
|
99407
|
-
}
|
|
99408
|
-
if (m.isLatestModel != null && m.hasOwnProperty("isLatestModel")) {
|
|
99409
|
-
d.isLatestModel = m.isLatestModel;
|
|
99410
|
-
if (o.oneofs)
|
|
99411
|
-
d._isLatestModel = "isLatestModel";
|
|
99412
|
-
}
|
|
99413
|
-
if (m.isDetected != null && m.hasOwnProperty("isDetected")) {
|
|
99414
|
-
d.isDetected = m.isDetected;
|
|
99415
|
-
if (o.oneofs)
|
|
99416
|
-
d._isDetected = "isDetected";
|
|
99417
|
-
}
|
|
99418
|
-
return d;
|
|
99419
|
-
};
|
|
99420
|
-
|
|
99421
|
-
ModelMetadata.prototype.toJSON = function toJSON() {
|
|
99422
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
99423
|
-
};
|
|
99424
|
-
|
|
99425
|
-
ModelMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
99426
|
-
if (typeUrlPrefix === undefined) {
|
|
99427
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
99428
|
-
}
|
|
99429
|
-
return typeUrlPrefix + "/proto.SyncActionValue.ModelMetadata";
|
|
99430
|
-
};
|
|
99431
|
-
|
|
99432
|
-
return ModelMetadata;
|
|
99433
|
-
})();
|
|
99434
|
-
|
|
99435
100698
|
SyncActionValue.MusicUserIdAction = (function() {
|
|
99436
100699
|
|
|
99437
100700
|
function MusicUserIdAction(p) {
|
|
@@ -103138,8 +104401,8 @@ export const proto = $root.proto = (() => {
|
|
|
103138
104401
|
|
|
103139
104402
|
StatusPrivacyAction.prototype.mode = null;
|
|
103140
104403
|
StatusPrivacyAction.prototype.userJid = $util.emptyArray;
|
|
103141
|
-
StatusPrivacyAction.prototype.
|
|
103142
|
-
StatusPrivacyAction.prototype.
|
|
104404
|
+
StatusPrivacyAction.prototype.shareToFb = null;
|
|
104405
|
+
StatusPrivacyAction.prototype.shareToIg = null;
|
|
103143
104406
|
StatusPrivacyAction.prototype.customLists = $util.emptyArray;
|
|
103144
104407
|
StatusPrivacyAction.prototype.modes = $util.emptyArray;
|
|
103145
104408
|
|
|
@@ -103152,14 +104415,14 @@ export const proto = $root.proto = (() => {
|
|
|
103152
104415
|
});
|
|
103153
104416
|
|
|
103154
104417
|
// Virtual OneOf for proto3 optional field
|
|
103155
|
-
Object.defineProperty(StatusPrivacyAction.prototype, "
|
|
103156
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
104418
|
+
Object.defineProperty(StatusPrivacyAction.prototype, "_shareToFb", {
|
|
104419
|
+
get: $util.oneOfGetter($oneOfFields = ["shareToFb"]),
|
|
103157
104420
|
set: $util.oneOfSetter($oneOfFields)
|
|
103158
104421
|
});
|
|
103159
104422
|
|
|
103160
104423
|
// Virtual OneOf for proto3 optional field
|
|
103161
|
-
Object.defineProperty(StatusPrivacyAction.prototype, "
|
|
103162
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
104424
|
+
Object.defineProperty(StatusPrivacyAction.prototype, "_shareToIg", {
|
|
104425
|
+
get: $util.oneOfGetter($oneOfFields = ["shareToIg"]),
|
|
103163
104426
|
set: $util.oneOfSetter($oneOfFields)
|
|
103164
104427
|
});
|
|
103165
104428
|
|
|
@@ -103176,10 +104439,10 @@ export const proto = $root.proto = (() => {
|
|
|
103176
104439
|
for (var i = 0; i < m.userJid.length; ++i)
|
|
103177
104440
|
w.uint32(18).string(m.userJid[i]);
|
|
103178
104441
|
}
|
|
103179
|
-
if (m.
|
|
103180
|
-
w.uint32(24).bool(m.
|
|
103181
|
-
if (m.
|
|
103182
|
-
w.uint32(32).bool(m.
|
|
104442
|
+
if (m.shareToFb != null && Object.hasOwnProperty.call(m, "shareToFb"))
|
|
104443
|
+
w.uint32(24).bool(m.shareToFb);
|
|
104444
|
+
if (m.shareToIg != null && Object.hasOwnProperty.call(m, "shareToIg"))
|
|
104445
|
+
w.uint32(32).bool(m.shareToIg);
|
|
103183
104446
|
if (m.customLists != null && m.customLists.length) {
|
|
103184
104447
|
for (var i = 0; i < m.customLists.length; ++i)
|
|
103185
104448
|
$root.proto.SyncActionValue.StatusPrivacyAction.CustomList.encode(m.customLists[i], w.uint32(42).fork()).ldelim();
|
|
@@ -103217,11 +104480,11 @@ export const proto = $root.proto = (() => {
|
|
|
103217
104480
|
break;
|
|
103218
104481
|
}
|
|
103219
104482
|
case 3: {
|
|
103220
|
-
m.
|
|
104483
|
+
m.shareToFb = r.bool();
|
|
103221
104484
|
break;
|
|
103222
104485
|
}
|
|
103223
104486
|
case 4: {
|
|
103224
|
-
m.
|
|
104487
|
+
m.shareToIg = r.bool();
|
|
103225
104488
|
break;
|
|
103226
104489
|
}
|
|
103227
104490
|
case 5: {
|
|
@@ -103293,11 +104556,11 @@ export const proto = $root.proto = (() => {
|
|
|
103293
104556
|
m.userJid[i] = String(d.userJid[i]);
|
|
103294
104557
|
}
|
|
103295
104558
|
}
|
|
103296
|
-
if (d.
|
|
103297
|
-
m.
|
|
104559
|
+
if (d.shareToFb != null) {
|
|
104560
|
+
m.shareToFb = Boolean(d.shareToFb);
|
|
103298
104561
|
}
|
|
103299
|
-
if (d.
|
|
103300
|
-
m.
|
|
104562
|
+
if (d.shareToIg != null) {
|
|
104563
|
+
m.shareToIg = Boolean(d.shareToIg);
|
|
103301
104564
|
}
|
|
103302
104565
|
if (d.customLists) {
|
|
103303
104566
|
if (!Array.isArray(d.customLists))
|
|
@@ -103366,15 +104629,15 @@ export const proto = $root.proto = (() => {
|
|
|
103366
104629
|
d.userJid[j] = m.userJid[j];
|
|
103367
104630
|
}
|
|
103368
104631
|
}
|
|
103369
|
-
if (m.
|
|
103370
|
-
d.
|
|
104632
|
+
if (m.shareToFb != null && m.hasOwnProperty("shareToFb")) {
|
|
104633
|
+
d.shareToFb = m.shareToFb;
|
|
103371
104634
|
if (o.oneofs)
|
|
103372
|
-
d.
|
|
104635
|
+
d._shareToFb = "shareToFb";
|
|
103373
104636
|
}
|
|
103374
|
-
if (m.
|
|
103375
|
-
d.
|
|
104637
|
+
if (m.shareToIg != null && m.hasOwnProperty("shareToIg")) {
|
|
104638
|
+
d.shareToIg = m.shareToIg;
|
|
103376
104639
|
if (o.oneofs)
|
|
103377
|
-
d.
|
|
104640
|
+
d._shareToIg = "shareToIg";
|
|
103378
104641
|
}
|
|
103379
104642
|
if (m.customLists && m.customLists.length) {
|
|
103380
104643
|
d.customLists = [];
|
|
@@ -105586,6 +106849,261 @@ export const proto = $root.proto = (() => {
|
|
|
105586
106849
|
return UsernameChatStartModeAction;
|
|
105587
106850
|
})();
|
|
105588
106851
|
|
|
106852
|
+
SyncActionValue.WASARootSecretAction = (function() {
|
|
106853
|
+
|
|
106854
|
+
function WASARootSecretAction(p) {
|
|
106855
|
+
this.secrets = [];
|
|
106856
|
+
if (p)
|
|
106857
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
106858
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
106859
|
+
this[ks[i]] = p[ks[i]];
|
|
106860
|
+
}
|
|
106861
|
+
|
|
106862
|
+
WASARootSecretAction.prototype.secrets = $util.emptyArray;
|
|
106863
|
+
|
|
106864
|
+
WASARootSecretAction.create = function create(properties) {
|
|
106865
|
+
return new WASARootSecretAction(properties);
|
|
106866
|
+
};
|
|
106867
|
+
|
|
106868
|
+
WASARootSecretAction.encode = function encode(m, w) {
|
|
106869
|
+
if (!w)
|
|
106870
|
+
w = $Writer.create();
|
|
106871
|
+
if (m.secrets != null && m.secrets.length) {
|
|
106872
|
+
for (var i = 0; i < m.secrets.length; ++i)
|
|
106873
|
+
$root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry.encode(m.secrets[i], w.uint32(10).fork()).ldelim();
|
|
106874
|
+
}
|
|
106875
|
+
return w;
|
|
106876
|
+
};
|
|
106877
|
+
|
|
106878
|
+
WASARootSecretAction.decode = function decode(r, l, e, n) {
|
|
106879
|
+
if (!(r instanceof $Reader))
|
|
106880
|
+
r = $Reader.create(r);
|
|
106881
|
+
if (n === undefined)
|
|
106882
|
+
n = 0;
|
|
106883
|
+
if (n > $Reader.recursionLimit)
|
|
106884
|
+
throw Error("maximum nesting depth exceeded");
|
|
106885
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.WASARootSecretAction();
|
|
106886
|
+
while (r.pos < c) {
|
|
106887
|
+
var t = r.uint32();
|
|
106888
|
+
if (t === e)
|
|
106889
|
+
break;
|
|
106890
|
+
switch (t >>> 3) {
|
|
106891
|
+
case 1: {
|
|
106892
|
+
if (!(m.secrets && m.secrets.length))
|
|
106893
|
+
m.secrets = [];
|
|
106894
|
+
m.secrets.push($root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry.decode(r, r.uint32(), undefined, n + 1));
|
|
106895
|
+
break;
|
|
106896
|
+
}
|
|
106897
|
+
default:
|
|
106898
|
+
r.skipType(t & 7, n);
|
|
106899
|
+
break;
|
|
106900
|
+
}
|
|
106901
|
+
}
|
|
106902
|
+
return m;
|
|
106903
|
+
};
|
|
106904
|
+
|
|
106905
|
+
WASARootSecretAction.fromObject = function fromObject(d, n) {
|
|
106906
|
+
if (d instanceof $root.proto.SyncActionValue.WASARootSecretAction)
|
|
106907
|
+
return d;
|
|
106908
|
+
if (n === undefined)
|
|
106909
|
+
n = 0;
|
|
106910
|
+
if (n > $util.recursionLimit)
|
|
106911
|
+
throw Error("maximum nesting depth exceeded");
|
|
106912
|
+
var m = new $root.proto.SyncActionValue.WASARootSecretAction();
|
|
106913
|
+
if (d.secrets) {
|
|
106914
|
+
if (!Array.isArray(d.secrets))
|
|
106915
|
+
throw TypeError(".proto.SyncActionValue.WASARootSecretAction.secrets: array expected");
|
|
106916
|
+
m.secrets = [];
|
|
106917
|
+
for (var i = 0; i < d.secrets.length; ++i) {
|
|
106918
|
+
if (typeof d.secrets[i] !== "object")
|
|
106919
|
+
throw TypeError(".proto.SyncActionValue.WASARootSecretAction.secrets: object expected");
|
|
106920
|
+
m.secrets[i] = $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry.fromObject(d.secrets[i], n + 1);
|
|
106921
|
+
}
|
|
106922
|
+
}
|
|
106923
|
+
return m;
|
|
106924
|
+
};
|
|
106925
|
+
|
|
106926
|
+
WASARootSecretAction.toObject = function toObject(m, o) {
|
|
106927
|
+
if (!o)
|
|
106928
|
+
o = {};
|
|
106929
|
+
var d = {};
|
|
106930
|
+
if (o.arrays || o.defaults) {
|
|
106931
|
+
d.secrets = [];
|
|
106932
|
+
}
|
|
106933
|
+
if (m.secrets && m.secrets.length) {
|
|
106934
|
+
d.secrets = [];
|
|
106935
|
+
for (var j = 0; j < m.secrets.length; ++j) {
|
|
106936
|
+
d.secrets[j] = $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry.toObject(m.secrets[j], o);
|
|
106937
|
+
}
|
|
106938
|
+
}
|
|
106939
|
+
return d;
|
|
106940
|
+
};
|
|
106941
|
+
|
|
106942
|
+
WASARootSecretAction.prototype.toJSON = function toJSON() {
|
|
106943
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
106944
|
+
};
|
|
106945
|
+
|
|
106946
|
+
WASARootSecretAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
106947
|
+
if (typeUrlPrefix === undefined) {
|
|
106948
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
106949
|
+
}
|
|
106950
|
+
return typeUrlPrefix + "/proto.SyncActionValue.WASARootSecretAction";
|
|
106951
|
+
};
|
|
106952
|
+
|
|
106953
|
+
WASARootSecretAction.RootSecretEntry = (function() {
|
|
106954
|
+
|
|
106955
|
+
function RootSecretEntry(p) {
|
|
106956
|
+
if (p)
|
|
106957
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
106958
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
106959
|
+
this[ks[i]] = p[ks[i]];
|
|
106960
|
+
}
|
|
106961
|
+
|
|
106962
|
+
RootSecretEntry.prototype.id = null;
|
|
106963
|
+
RootSecretEntry.prototype.rootSecret = null;
|
|
106964
|
+
RootSecretEntry.prototype.epoch = null;
|
|
106965
|
+
|
|
106966
|
+
let $oneOfFields;
|
|
106967
|
+
|
|
106968
|
+
// Virtual OneOf for proto3 optional field
|
|
106969
|
+
Object.defineProperty(RootSecretEntry.prototype, "_id", {
|
|
106970
|
+
get: $util.oneOfGetter($oneOfFields = ["id"]),
|
|
106971
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
106972
|
+
});
|
|
106973
|
+
|
|
106974
|
+
// Virtual OneOf for proto3 optional field
|
|
106975
|
+
Object.defineProperty(RootSecretEntry.prototype, "_rootSecret", {
|
|
106976
|
+
get: $util.oneOfGetter($oneOfFields = ["rootSecret"]),
|
|
106977
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
106978
|
+
});
|
|
106979
|
+
|
|
106980
|
+
// Virtual OneOf for proto3 optional field
|
|
106981
|
+
Object.defineProperty(RootSecretEntry.prototype, "_epoch", {
|
|
106982
|
+
get: $util.oneOfGetter($oneOfFields = ["epoch"]),
|
|
106983
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
106984
|
+
});
|
|
106985
|
+
|
|
106986
|
+
RootSecretEntry.create = function create(properties) {
|
|
106987
|
+
return new RootSecretEntry(properties);
|
|
106988
|
+
};
|
|
106989
|
+
|
|
106990
|
+
RootSecretEntry.encode = function encode(m, w) {
|
|
106991
|
+
if (!w)
|
|
106992
|
+
w = $Writer.create();
|
|
106993
|
+
if (m.id != null && Object.hasOwnProperty.call(m, "id"))
|
|
106994
|
+
w.uint32(10).string(m.id);
|
|
106995
|
+
if (m.rootSecret != null && Object.hasOwnProperty.call(m, "rootSecret"))
|
|
106996
|
+
w.uint32(18).bytes(m.rootSecret);
|
|
106997
|
+
if (m.epoch != null && Object.hasOwnProperty.call(m, "epoch"))
|
|
106998
|
+
w.uint32(24).int64(m.epoch);
|
|
106999
|
+
return w;
|
|
107000
|
+
};
|
|
107001
|
+
|
|
107002
|
+
RootSecretEntry.decode = function decode(r, l, e, n) {
|
|
107003
|
+
if (!(r instanceof $Reader))
|
|
107004
|
+
r = $Reader.create(r);
|
|
107005
|
+
if (n === undefined)
|
|
107006
|
+
n = 0;
|
|
107007
|
+
if (n > $Reader.recursionLimit)
|
|
107008
|
+
throw Error("maximum nesting depth exceeded");
|
|
107009
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry();
|
|
107010
|
+
while (r.pos < c) {
|
|
107011
|
+
var t = r.uint32();
|
|
107012
|
+
if (t === e)
|
|
107013
|
+
break;
|
|
107014
|
+
switch (t >>> 3) {
|
|
107015
|
+
case 1: {
|
|
107016
|
+
m.id = r.string();
|
|
107017
|
+
break;
|
|
107018
|
+
}
|
|
107019
|
+
case 2: {
|
|
107020
|
+
m.rootSecret = r.bytes();
|
|
107021
|
+
break;
|
|
107022
|
+
}
|
|
107023
|
+
case 3: {
|
|
107024
|
+
m.epoch = r.int64();
|
|
107025
|
+
break;
|
|
107026
|
+
}
|
|
107027
|
+
default:
|
|
107028
|
+
r.skipType(t & 7, n);
|
|
107029
|
+
break;
|
|
107030
|
+
}
|
|
107031
|
+
}
|
|
107032
|
+
return m;
|
|
107033
|
+
};
|
|
107034
|
+
|
|
107035
|
+
RootSecretEntry.fromObject = function fromObject(d, n) {
|
|
107036
|
+
if (d instanceof $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry)
|
|
107037
|
+
return d;
|
|
107038
|
+
if (n === undefined)
|
|
107039
|
+
n = 0;
|
|
107040
|
+
if (n > $util.recursionLimit)
|
|
107041
|
+
throw Error("maximum nesting depth exceeded");
|
|
107042
|
+
var m = new $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry();
|
|
107043
|
+
if (d.id != null) {
|
|
107044
|
+
m.id = String(d.id);
|
|
107045
|
+
}
|
|
107046
|
+
if (d.rootSecret != null) {
|
|
107047
|
+
if (typeof d.rootSecret === "string")
|
|
107048
|
+
$util.base64.decode(d.rootSecret, m.rootSecret = $util.newBuffer($util.base64.length(d.rootSecret)), 0);
|
|
107049
|
+
else if (d.rootSecret.length >= 0)
|
|
107050
|
+
m.rootSecret = d.rootSecret;
|
|
107051
|
+
}
|
|
107052
|
+
if (d.epoch != null) {
|
|
107053
|
+
if ($util.Long)
|
|
107054
|
+
(m.epoch = $util.Long.fromValue(d.epoch)).unsigned = false;
|
|
107055
|
+
else if (typeof d.epoch === "string")
|
|
107056
|
+
m.epoch = parseInt(d.epoch, 10);
|
|
107057
|
+
else if (typeof d.epoch === "number")
|
|
107058
|
+
m.epoch = d.epoch;
|
|
107059
|
+
else if (typeof d.epoch === "object")
|
|
107060
|
+
m.epoch = new $util.LongBits(d.epoch.low >>> 0, d.epoch.high >>> 0).toNumber();
|
|
107061
|
+
}
|
|
107062
|
+
return m;
|
|
107063
|
+
};
|
|
107064
|
+
|
|
107065
|
+
RootSecretEntry.toObject = function toObject(m, o) {
|
|
107066
|
+
if (!o)
|
|
107067
|
+
o = {};
|
|
107068
|
+
var d = {};
|
|
107069
|
+
if (m.id != null && m.hasOwnProperty("id")) {
|
|
107070
|
+
d.id = m.id;
|
|
107071
|
+
if (o.oneofs)
|
|
107072
|
+
d._id = "id";
|
|
107073
|
+
}
|
|
107074
|
+
if (m.rootSecret != null && m.hasOwnProperty("rootSecret")) {
|
|
107075
|
+
d.rootSecret = o.bytes === String ? $util.base64.encode(m.rootSecret, 0, m.rootSecret.length) : o.bytes === Array ? Array.prototype.slice.call(m.rootSecret) : m.rootSecret;
|
|
107076
|
+
if (o.oneofs)
|
|
107077
|
+
d._rootSecret = "rootSecret";
|
|
107078
|
+
}
|
|
107079
|
+
if (m.epoch != null && m.hasOwnProperty("epoch")) {
|
|
107080
|
+
if (typeof m.epoch === "number")
|
|
107081
|
+
d.epoch = o.longs === String ? String(m.epoch) : m.epoch;
|
|
107082
|
+
else
|
|
107083
|
+
d.epoch = o.longs === String ? longToString(m.epoch) : o.longs === Number ? longToNumber(m.epoch) : m.epoch;
|
|
107084
|
+
if (o.oneofs)
|
|
107085
|
+
d._epoch = "epoch";
|
|
107086
|
+
}
|
|
107087
|
+
return d;
|
|
107088
|
+
};
|
|
107089
|
+
|
|
107090
|
+
RootSecretEntry.prototype.toJSON = function toJSON() {
|
|
107091
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
107092
|
+
};
|
|
107093
|
+
|
|
107094
|
+
RootSecretEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
107095
|
+
if (typeUrlPrefix === undefined) {
|
|
107096
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
107097
|
+
}
|
|
107098
|
+
return typeUrlPrefix + "/proto.SyncActionValue.WASARootSecretAction.RootSecretEntry";
|
|
107099
|
+
};
|
|
107100
|
+
|
|
107101
|
+
return RootSecretEntry;
|
|
107102
|
+
})();
|
|
107103
|
+
|
|
107104
|
+
return WASARootSecretAction;
|
|
107105
|
+
})();
|
|
107106
|
+
|
|
105589
107107
|
SyncActionValue.WaffleAccountLinkStateAction = (function() {
|
|
105590
107108
|
|
|
105591
107109
|
function WaffleAccountLinkStateAction(p) {
|