@vanzxy/baileys 1.6.4 → 1.6.6
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.
Potentially problematic release.
This version of @vanzxy/baileys might be problematic. Click here for more details.
- package/README.md +212 -48
- package/WAProto/CHANGELOG-proto-upgrade.md +111 -0
- package/WAProto/index.js +773 -0
- package/lib/Defaults/index.d.ts +5 -0
- package/lib/Defaults/index.js +21 -4
- package/lib/Utils/A2UI.js +63 -3
- package/lib/Utils/anti-delete.d.ts +6 -0
- package/lib/Utils/anti-delete.js +29 -0
- package/lib/Utils/auth-utils.js +11 -6
- package/lib/Utils/auto-reply.js +4 -1
- package/lib/Utils/baileys-event-stream.d.ts +8 -0
- package/lib/Utils/baileys-event-stream.js +62 -0
- package/lib/Utils/business.js +8 -0
- package/lib/Utils/button-sender.js +8 -1
- package/lib/Utils/chat-control.d.ts +159 -0
- package/lib/Utils/chat-control.js +232 -0
- package/lib/Utils/generics.d.ts +6 -0
- package/lib/Utils/generics.js +24 -0
- package/lib/Utils/index.d.ts +4 -0
- package/lib/Utils/index.js +4 -0
- package/lib/Utils/media-set.js +4 -1
- package/lib/Utils/message-search.js +20 -5
- package/lib/Utils/messages.js +5 -0
- package/lib/Utils/past-participants.d.ts +14 -0
- package/lib/Utils/past-participants.js +40 -0
- package/lib/Utils/process-message.js +6 -2
- package/lib/Utils/stickerpack.js +10 -11
- package/lib/Utils/use-cache-manager-auth-state.d.ts +13 -0
- package/lib/Utils/use-cache-manager-auth-state.js +82 -0
- package/lib/Utils/validate-connection.js +2 -6
- package/lib/Utils/vcard.js +15 -4
- package/package.json +7 -7
- package/postinstall-banner.js +37 -5
- package/NOTICE.md +0 -91
package/WAProto/index.js
CHANGED
|
@@ -4245,6 +4245,7 @@ export const proto = $root.proto = (() => {
|
|
|
4245
4245
|
AIRichResponseMessage.prototype.submessages = $util.emptyArray;
|
|
4246
4246
|
AIRichResponseMessage.prototype.unifiedResponse = null;
|
|
4247
4247
|
AIRichResponseMessage.prototype.contextInfo = null;
|
|
4248
|
+
AIRichResponseMessage.prototype.originalRecipientMetadata = null;
|
|
4248
4249
|
|
|
4249
4250
|
let $oneOfFields;
|
|
4250
4251
|
|
|
@@ -4266,6 +4267,12 @@ export const proto = $root.proto = (() => {
|
|
|
4266
4267
|
set: $util.oneOfSetter($oneOfFields)
|
|
4267
4268
|
});
|
|
4268
4269
|
|
|
4270
|
+
// Virtual OneOf for proto3 optional field
|
|
4271
|
+
Object.defineProperty(AIRichResponseMessage.prototype, "_originalRecipientMetadata", {
|
|
4272
|
+
get: $util.oneOfGetter($oneOfFields = ["originalRecipientMetadata"]),
|
|
4273
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4274
|
+
});
|
|
4275
|
+
|
|
4269
4276
|
AIRichResponseMessage.create = function create(properties) {
|
|
4270
4277
|
return new AIRichResponseMessage(properties);
|
|
4271
4278
|
};
|
|
@@ -4283,6 +4290,8 @@ export const proto = $root.proto = (() => {
|
|
|
4283
4290
|
$root.proto.AIRichResponseUnifiedResponse.encode(m.unifiedResponse, w.uint32(26).fork()).ldelim();
|
|
4284
4291
|
if (m.contextInfo != null && Object.hasOwnProperty.call(m, "contextInfo"))
|
|
4285
4292
|
$root.proto.ContextInfo.encode(m.contextInfo, w.uint32(34).fork()).ldelim();
|
|
4293
|
+
if (m.originalRecipientMetadata != null && Object.hasOwnProperty.call(m, "originalRecipientMetadata"))
|
|
4294
|
+
$root.proto.AIRichResponseUnifiedResponse.encode(m.originalRecipientMetadata, w.uint32(42).fork()).ldelim();
|
|
4286
4295
|
return w;
|
|
4287
4296
|
};
|
|
4288
4297
|
|
|
@@ -4317,6 +4326,10 @@ export const proto = $root.proto = (() => {
|
|
|
4317
4326
|
m.contextInfo = $root.proto.ContextInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
4318
4327
|
break;
|
|
4319
4328
|
}
|
|
4329
|
+
case 5: {
|
|
4330
|
+
m.originalRecipientMetadata = $root.proto.AIRichResponseUnifiedResponse.decode(r, r.uint32(), undefined, n + 1);
|
|
4331
|
+
break;
|
|
4332
|
+
}
|
|
4320
4333
|
default:
|
|
4321
4334
|
r.skipType(t & 7, n);
|
|
4322
4335
|
break;
|
|
@@ -4369,6 +4382,11 @@ export const proto = $root.proto = (() => {
|
|
|
4369
4382
|
throw TypeError(".proto.AIRichResponseMessage.contextInfo: object expected");
|
|
4370
4383
|
m.contextInfo = $root.proto.ContextInfo.fromObject(d.contextInfo, n + 1);
|
|
4371
4384
|
}
|
|
4385
|
+
if (d.originalRecipientMetadata != null) {
|
|
4386
|
+
if (typeof d.originalRecipientMetadata !== "object")
|
|
4387
|
+
throw TypeError(".proto.AIRichResponseMessage.originalRecipientMetadata: object expected");
|
|
4388
|
+
m.originalRecipientMetadata = $root.proto.AIRichResponseUnifiedResponse.fromObject(d.originalRecipientMetadata, n + 1);
|
|
4389
|
+
}
|
|
4372
4390
|
return m;
|
|
4373
4391
|
};
|
|
4374
4392
|
|
|
@@ -4400,6 +4418,11 @@ export const proto = $root.proto = (() => {
|
|
|
4400
4418
|
if (o.oneofs)
|
|
4401
4419
|
d._contextInfo = "contextInfo";
|
|
4402
4420
|
}
|
|
4421
|
+
if (m.originalRecipientMetadata != null && m.hasOwnProperty("originalRecipientMetadata")) {
|
|
4422
|
+
d.originalRecipientMetadata = $root.proto.AIRichResponseUnifiedResponse.toObject(m.originalRecipientMetadata, o);
|
|
4423
|
+
if (o.oneofs)
|
|
4424
|
+
d._originalRecipientMetadata = "originalRecipientMetadata";
|
|
4425
|
+
}
|
|
4403
4426
|
return d;
|
|
4404
4427
|
};
|
|
4405
4428
|
|
|
@@ -11590,6 +11613,7 @@ export const proto = $root.proto = (() => {
|
|
|
11590
11613
|
BotMetadata.prototype.pttPromptMetadata = null;
|
|
11591
11614
|
BotMetadata.prototype.botHistoryShareMetadata = null;
|
|
11592
11615
|
BotMetadata.prototype.internalMetadata = null;
|
|
11616
|
+
BotMetadata.prototype.responseStoppedByUser = null;
|
|
11593
11617
|
|
|
11594
11618
|
let $oneOfFields;
|
|
11595
11619
|
|
|
@@ -11851,6 +11875,12 @@ export const proto = $root.proto = (() => {
|
|
|
11851
11875
|
set: $util.oneOfSetter($oneOfFields)
|
|
11852
11876
|
});
|
|
11853
11877
|
|
|
11878
|
+
// Virtual OneOf for proto3 optional field
|
|
11879
|
+
Object.defineProperty(BotMetadata.prototype, "_responseStoppedByUser", {
|
|
11880
|
+
get: $util.oneOfGetter($oneOfFields = ["responseStoppedByUser"]),
|
|
11881
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
11882
|
+
});
|
|
11883
|
+
|
|
11854
11884
|
BotMetadata.create = function create(properties) {
|
|
11855
11885
|
return new BotMetadata(properties);
|
|
11856
11886
|
};
|
|
@@ -11944,6 +11974,8 @@ export const proto = $root.proto = (() => {
|
|
|
11944
11974
|
$root.proto.BotHistoryShareMetadata.encode(m.botHistoryShareMetadata, w.uint32(346).fork()).ldelim();
|
|
11945
11975
|
if (m.internalMetadata != null && Object.hasOwnProperty.call(m, "internalMetadata"))
|
|
11946
11976
|
w.uint32(7994).bytes(m.internalMetadata);
|
|
11977
|
+
if (m.responseStoppedByUser != null && Object.hasOwnProperty.call(m, "responseStoppedByUser"))
|
|
11978
|
+
w.uint32(352).bool(m.responseStoppedByUser);
|
|
11947
11979
|
return w;
|
|
11948
11980
|
};
|
|
11949
11981
|
|
|
@@ -12132,6 +12164,10 @@ export const proto = $root.proto = (() => {
|
|
|
12132
12164
|
m.internalMetadata = r.bytes();
|
|
12133
12165
|
break;
|
|
12134
12166
|
}
|
|
12167
|
+
case 44: {
|
|
12168
|
+
m.responseStoppedByUser = r.bool();
|
|
12169
|
+
break;
|
|
12170
|
+
}
|
|
12135
12171
|
default:
|
|
12136
12172
|
r.skipType(t & 7, n);
|
|
12137
12173
|
break;
|
|
@@ -12353,6 +12389,9 @@ export const proto = $root.proto = (() => {
|
|
|
12353
12389
|
else if (d.internalMetadata.length >= 0)
|
|
12354
12390
|
m.internalMetadata = d.internalMetadata;
|
|
12355
12391
|
}
|
|
12392
|
+
if (d.responseStoppedByUser != null) {
|
|
12393
|
+
m.responseStoppedByUser = Boolean(d.responseStoppedByUser);
|
|
12394
|
+
}
|
|
12356
12395
|
return m;
|
|
12357
12396
|
};
|
|
12358
12397
|
|
|
@@ -12575,6 +12614,11 @@ export const proto = $root.proto = (() => {
|
|
|
12575
12614
|
if (o.oneofs)
|
|
12576
12615
|
d._internalMetadata = "internalMetadata";
|
|
12577
12616
|
}
|
|
12617
|
+
if (m.responseStoppedByUser != null && m.hasOwnProperty("responseStoppedByUser")) {
|
|
12618
|
+
d.responseStoppedByUser = m.responseStoppedByUser;
|
|
12619
|
+
if (o.oneofs)
|
|
12620
|
+
d._responseStoppedByUser = "responseStoppedByUser";
|
|
12621
|
+
}
|
|
12578
12622
|
return d;
|
|
12579
12623
|
};
|
|
12580
12624
|
|
|
@@ -28837,6 +28881,7 @@ export const proto = $root.proto = (() => {
|
|
|
28837
28881
|
ContextInfo.prototype.posterStatusId = null;
|
|
28838
28882
|
ContextInfo.prototype.instagramThreadLink = null;
|
|
28839
28883
|
ContextInfo.prototype.aiProvenance = null;
|
|
28884
|
+
ContextInfo.prototype.experienceIds = $util.emptyArray;
|
|
28840
28885
|
|
|
28841
28886
|
let $oneOfFields;
|
|
28842
28887
|
|
|
@@ -29347,6 +29392,12 @@ export const proto = $root.proto = (() => {
|
|
|
29347
29392
|
$root.proto.ContextInfo.InstagramThreadLink.encode(m.instagramThreadLink, w.uint32(642).fork()).ldelim();
|
|
29348
29393
|
if (m.aiProvenance != null && Object.hasOwnProperty.call(m, "aiProvenance"))
|
|
29349
29394
|
$root.proto.AIProvenance.encode(m.aiProvenance, w.uint32(650).fork()).ldelim();
|
|
29395
|
+
if (m.experienceIds != null && m.experienceIds.length) {
|
|
29396
|
+
w.uint32(658).fork();
|
|
29397
|
+
for (var i = 0; i < m.experienceIds.length; ++i)
|
|
29398
|
+
w.uint32(m.experienceIds[i]);
|
|
29399
|
+
w.ldelim();
|
|
29400
|
+
}
|
|
29350
29401
|
return w;
|
|
29351
29402
|
};
|
|
29352
29403
|
|
|
@@ -29625,6 +29676,17 @@ export const proto = $root.proto = (() => {
|
|
|
29625
29676
|
m.aiProvenance = $root.proto.AIProvenance.decode(r, r.uint32(), undefined, n + 1);
|
|
29626
29677
|
break;
|
|
29627
29678
|
}
|
|
29679
|
+
case 82: {
|
|
29680
|
+
if (!(m.experienceIds && m.experienceIds.length))
|
|
29681
|
+
m.experienceIds = [];
|
|
29682
|
+
if ((t & 7) === 2) {
|
|
29683
|
+
var c2 = r.uint32() + r.pos;
|
|
29684
|
+
while (r.pos < c2)
|
|
29685
|
+
m.experienceIds.push(r.uint32());
|
|
29686
|
+
} else
|
|
29687
|
+
m.experienceIds.push(r.uint32());
|
|
29688
|
+
break;
|
|
29689
|
+
}
|
|
29628
29690
|
default:
|
|
29629
29691
|
r.skipType(t & 7, n);
|
|
29630
29692
|
break;
|
|
@@ -30066,6 +30128,14 @@ export const proto = $root.proto = (() => {
|
|
|
30066
30128
|
throw TypeError(".proto.ContextInfo.aiProvenance: object expected");
|
|
30067
30129
|
m.aiProvenance = $root.proto.AIProvenance.fromObject(d.aiProvenance, n + 1);
|
|
30068
30130
|
}
|
|
30131
|
+
if (d.experienceIds) {
|
|
30132
|
+
if (!Array.isArray(d.experienceIds))
|
|
30133
|
+
throw TypeError(".proto.ContextInfo.experienceIds: array expected");
|
|
30134
|
+
m.experienceIds = [];
|
|
30135
|
+
for (var i = 0; i < d.experienceIds.length; ++i) {
|
|
30136
|
+
m.experienceIds[i] = d.experienceIds[i] >>> 0;
|
|
30137
|
+
}
|
|
30138
|
+
}
|
|
30069
30139
|
return m;
|
|
30070
30140
|
};
|
|
30071
30141
|
|
|
@@ -30077,6 +30147,7 @@ export const proto = $root.proto = (() => {
|
|
|
30077
30147
|
d.mentionedJid = [];
|
|
30078
30148
|
d.groupMentions = [];
|
|
30079
30149
|
d.statusAttributions = [];
|
|
30150
|
+
d.experienceIds = [];
|
|
30080
30151
|
}
|
|
30081
30152
|
if (m.stanzaId != null && m.hasOwnProperty("stanzaId")) {
|
|
30082
30153
|
d.stanzaId = m.stanzaId;
|
|
@@ -30404,6 +30475,12 @@ export const proto = $root.proto = (() => {
|
|
|
30404
30475
|
if (o.oneofs)
|
|
30405
30476
|
d._aiProvenance = "aiProvenance";
|
|
30406
30477
|
}
|
|
30478
|
+
if (m.experienceIds && m.experienceIds.length) {
|
|
30479
|
+
d.experienceIds = [];
|
|
30480
|
+
for (var j = 0; j < m.experienceIds.length; ++j) {
|
|
30481
|
+
d.experienceIds[j] = m.experienceIds[j];
|
|
30482
|
+
}
|
|
30483
|
+
}
|
|
30407
30484
|
return d;
|
|
30408
30485
|
};
|
|
30409
30486
|
|
|
@@ -39752,6 +39829,7 @@ export const proto = $root.proto = (() => {
|
|
|
39752
39829
|
BusinessBroadcast.prototype.campaignSyncEnabled = null;
|
|
39753
39830
|
BusinessBroadcast.prototype.insightsSyncEnabled = null;
|
|
39754
39831
|
BusinessBroadcast.prototype.recipientLimit = null;
|
|
39832
|
+
BusinessBroadcast.prototype.proCompanionSupportEnabled = null;
|
|
39755
39833
|
|
|
39756
39834
|
let $oneOfFields;
|
|
39757
39835
|
|
|
@@ -39785,6 +39863,12 @@ export const proto = $root.proto = (() => {
|
|
|
39785
39863
|
set: $util.oneOfSetter($oneOfFields)
|
|
39786
39864
|
});
|
|
39787
39865
|
|
|
39866
|
+
// Virtual OneOf for proto3 optional field
|
|
39867
|
+
Object.defineProperty(BusinessBroadcast.prototype, "_proCompanionSupportEnabled", {
|
|
39868
|
+
get: $util.oneOfGetter($oneOfFields = ["proCompanionSupportEnabled"]),
|
|
39869
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39870
|
+
});
|
|
39871
|
+
|
|
39788
39872
|
BusinessBroadcast.create = function create(properties) {
|
|
39789
39873
|
return new BusinessBroadcast(properties);
|
|
39790
39874
|
};
|
|
@@ -39802,6 +39886,8 @@ export const proto = $root.proto = (() => {
|
|
|
39802
39886
|
w.uint32(32).bool(m.insightsSyncEnabled);
|
|
39803
39887
|
if (m.recipientLimit != null && Object.hasOwnProperty.call(m, "recipientLimit"))
|
|
39804
39888
|
w.uint32(40).int32(m.recipientLimit);
|
|
39889
|
+
if (m.proCompanionSupportEnabled != null && Object.hasOwnProperty.call(m, "proCompanionSupportEnabled"))
|
|
39890
|
+
w.uint32(48).bool(m.proCompanionSupportEnabled);
|
|
39805
39891
|
return w;
|
|
39806
39892
|
};
|
|
39807
39893
|
|
|
@@ -39838,6 +39924,10 @@ export const proto = $root.proto = (() => {
|
|
|
39838
39924
|
m.recipientLimit = r.int32();
|
|
39839
39925
|
break;
|
|
39840
39926
|
}
|
|
39927
|
+
case 6: {
|
|
39928
|
+
m.proCompanionSupportEnabled = r.bool();
|
|
39929
|
+
break;
|
|
39930
|
+
}
|
|
39841
39931
|
default:
|
|
39842
39932
|
r.skipType(t & 7, n);
|
|
39843
39933
|
break;
|
|
@@ -39869,6 +39959,9 @@ export const proto = $root.proto = (() => {
|
|
|
39869
39959
|
if (d.recipientLimit != null) {
|
|
39870
39960
|
m.recipientLimit = d.recipientLimit | 0;
|
|
39871
39961
|
}
|
|
39962
|
+
if (d.proCompanionSupportEnabled != null) {
|
|
39963
|
+
m.proCompanionSupportEnabled = Boolean(d.proCompanionSupportEnabled);
|
|
39964
|
+
}
|
|
39872
39965
|
return m;
|
|
39873
39966
|
};
|
|
39874
39967
|
|
|
@@ -39901,6 +39994,11 @@ export const proto = $root.proto = (() => {
|
|
|
39901
39994
|
if (o.oneofs)
|
|
39902
39995
|
d._recipientLimit = "recipientLimit";
|
|
39903
39996
|
}
|
|
39997
|
+
if (m.proCompanionSupportEnabled != null && m.hasOwnProperty("proCompanionSupportEnabled")) {
|
|
39998
|
+
d.proCompanionSupportEnabled = m.proCompanionSupportEnabled;
|
|
39999
|
+
if (o.oneofs)
|
|
40000
|
+
d._proCompanionSupportEnabled = "proCompanionSupportEnabled";
|
|
40001
|
+
}
|
|
39904
40002
|
return d;
|
|
39905
40003
|
};
|
|
39906
40004
|
|
|
@@ -54692,6 +54790,301 @@ export const proto = $root.proto = (() => {
|
|
|
54692
54790
|
return LIDMigrationMappingSyncMessage;
|
|
54693
54791
|
})();
|
|
54694
54792
|
|
|
54793
|
+
proto.LIDMigrationMapping = (function() {
|
|
54794
|
+
|
|
54795
|
+
function LIDMigrationMapping(p) {
|
|
54796
|
+
if (p)
|
|
54797
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
54798
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
54799
|
+
this[ks[i]] = p[ks[i]];
|
|
54800
|
+
}
|
|
54801
|
+
|
|
54802
|
+
LIDMigrationMapping.prototype.pn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
54803
|
+
LIDMigrationMapping.prototype.assignedLid = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
54804
|
+
LIDMigrationMapping.prototype.latestLid = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
54805
|
+
|
|
54806
|
+
LIDMigrationMapping.create = function create(properties) {
|
|
54807
|
+
return new LIDMigrationMapping(properties);
|
|
54808
|
+
};
|
|
54809
|
+
|
|
54810
|
+
LIDMigrationMapping.encode = function encode(m, w) {
|
|
54811
|
+
if (!w)
|
|
54812
|
+
w = $Writer.create();
|
|
54813
|
+
w.uint32(8).uint64(m.pn);
|
|
54814
|
+
w.uint32(16).uint64(m.assignedLid);
|
|
54815
|
+
if (m.latestLid != null && Object.hasOwnProperty.call(m, "latestLid"))
|
|
54816
|
+
w.uint32(24).uint64(m.latestLid);
|
|
54817
|
+
return w;
|
|
54818
|
+
};
|
|
54819
|
+
|
|
54820
|
+
LIDMigrationMapping.decode = function decode(r, l, e, n) {
|
|
54821
|
+
if (!(r instanceof $Reader))
|
|
54822
|
+
r = $Reader.create(r);
|
|
54823
|
+
if (n === undefined)
|
|
54824
|
+
n = 0;
|
|
54825
|
+
if (n > $Reader.recursionLimit)
|
|
54826
|
+
throw Error("maximum nesting depth exceeded");
|
|
54827
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.LIDMigrationMapping();
|
|
54828
|
+
while (r.pos < c) {
|
|
54829
|
+
var t = r.uint32();
|
|
54830
|
+
if (t === e)
|
|
54831
|
+
break;
|
|
54832
|
+
switch (t >>> 3) {
|
|
54833
|
+
case 1: {
|
|
54834
|
+
m.pn = r.uint64();
|
|
54835
|
+
break;
|
|
54836
|
+
}
|
|
54837
|
+
case 2: {
|
|
54838
|
+
m.assignedLid = r.uint64();
|
|
54839
|
+
break;
|
|
54840
|
+
}
|
|
54841
|
+
case 3: {
|
|
54842
|
+
m.latestLid = r.uint64();
|
|
54843
|
+
break;
|
|
54844
|
+
}
|
|
54845
|
+
default:
|
|
54846
|
+
r.skipType(t & 7, n);
|
|
54847
|
+
break;
|
|
54848
|
+
}
|
|
54849
|
+
}
|
|
54850
|
+
if (!m.hasOwnProperty("pn"))
|
|
54851
|
+
throw $util.ProtocolError("missing required 'pn'", { instance: m });
|
|
54852
|
+
if (!m.hasOwnProperty("assignedLid"))
|
|
54853
|
+
throw $util.ProtocolError("missing required 'assignedLid'", { instance: m });
|
|
54854
|
+
return m;
|
|
54855
|
+
};
|
|
54856
|
+
|
|
54857
|
+
LIDMigrationMapping.fromObject = function fromObject(d, n) {
|
|
54858
|
+
if (d instanceof $root.proto.LIDMigrationMapping)
|
|
54859
|
+
return d;
|
|
54860
|
+
if (n === undefined)
|
|
54861
|
+
n = 0;
|
|
54862
|
+
if (n > $util.recursionLimit)
|
|
54863
|
+
throw Error("maximum nesting depth exceeded");
|
|
54864
|
+
var m = new $root.proto.LIDMigrationMapping();
|
|
54865
|
+
if (d.pn != null) {
|
|
54866
|
+
if ($util.Long)
|
|
54867
|
+
(m.pn = $util.Long.fromValue(d.pn)).unsigned = true;
|
|
54868
|
+
else if (typeof d.pn === "string")
|
|
54869
|
+
m.pn = parseInt(d.pn, 10);
|
|
54870
|
+
else if (typeof d.pn === "number")
|
|
54871
|
+
m.pn = d.pn;
|
|
54872
|
+
else if (typeof d.pn === "object")
|
|
54873
|
+
m.pn = new $util.LongBits(d.pn.low >>> 0, d.pn.high >>> 0).toNumber(true);
|
|
54874
|
+
}
|
|
54875
|
+
if (d.assignedLid != null) {
|
|
54876
|
+
if ($util.Long)
|
|
54877
|
+
(m.assignedLid = $util.Long.fromValue(d.assignedLid)).unsigned = true;
|
|
54878
|
+
else if (typeof d.assignedLid === "string")
|
|
54879
|
+
m.assignedLid = parseInt(d.assignedLid, 10);
|
|
54880
|
+
else if (typeof d.assignedLid === "number")
|
|
54881
|
+
m.assignedLid = d.assignedLid;
|
|
54882
|
+
else if (typeof d.assignedLid === "object")
|
|
54883
|
+
m.assignedLid = new $util.LongBits(d.assignedLid.low >>> 0, d.assignedLid.high >>> 0).toNumber(true);
|
|
54884
|
+
}
|
|
54885
|
+
if (d.latestLid != null) {
|
|
54886
|
+
if ($util.Long)
|
|
54887
|
+
(m.latestLid = $util.Long.fromValue(d.latestLid)).unsigned = true;
|
|
54888
|
+
else if (typeof d.latestLid === "string")
|
|
54889
|
+
m.latestLid = parseInt(d.latestLid, 10);
|
|
54890
|
+
else if (typeof d.latestLid === "number")
|
|
54891
|
+
m.latestLid = d.latestLid;
|
|
54892
|
+
else if (typeof d.latestLid === "object")
|
|
54893
|
+
m.latestLid = new $util.LongBits(d.latestLid.low >>> 0, d.latestLid.high >>> 0).toNumber(true);
|
|
54894
|
+
}
|
|
54895
|
+
return m;
|
|
54896
|
+
};
|
|
54897
|
+
|
|
54898
|
+
LIDMigrationMapping.toObject = function toObject(m, o) {
|
|
54899
|
+
if (!o)
|
|
54900
|
+
o = {};
|
|
54901
|
+
var d = {};
|
|
54902
|
+
if (o.defaults) {
|
|
54903
|
+
if ($util.Long) {
|
|
54904
|
+
var n = new $util.Long(0, 0, true);
|
|
54905
|
+
d.pn = o.longs === String ? n.toString() : o.longs === Number ? n.toNumber() : n;
|
|
54906
|
+
} else
|
|
54907
|
+
d.pn = o.longs === String ? "0" : 0;
|
|
54908
|
+
if ($util.Long) {
|
|
54909
|
+
var n = new $util.Long(0, 0, true);
|
|
54910
|
+
d.assignedLid = o.longs === String ? n.toString() : o.longs === Number ? n.toNumber() : n;
|
|
54911
|
+
} else
|
|
54912
|
+
d.assignedLid = o.longs === String ? "0" : 0;
|
|
54913
|
+
if ($util.Long) {
|
|
54914
|
+
var n = new $util.Long(0, 0, true);
|
|
54915
|
+
d.latestLid = o.longs === String ? n.toString() : o.longs === Number ? n.toNumber() : n;
|
|
54916
|
+
} else
|
|
54917
|
+
d.latestLid = o.longs === String ? "0" : 0;
|
|
54918
|
+
}
|
|
54919
|
+
if (m.pn != null && m.hasOwnProperty("pn")) {
|
|
54920
|
+
if (typeof m.pn === "number")
|
|
54921
|
+
d.pn = o.longs === String ? String(m.pn) : m.pn;
|
|
54922
|
+
else
|
|
54923
|
+
d.pn = o.longs === String ? longToString(m.pn, true) : o.longs === Number ? longToNumber(m.pn, true) : m.pn;
|
|
54924
|
+
}
|
|
54925
|
+
if (m.assignedLid != null && m.hasOwnProperty("assignedLid")) {
|
|
54926
|
+
if (typeof m.assignedLid === "number")
|
|
54927
|
+
d.assignedLid = o.longs === String ? String(m.assignedLid) : m.assignedLid;
|
|
54928
|
+
else
|
|
54929
|
+
d.assignedLid = o.longs === String ? longToString(m.assignedLid, true) : o.longs === Number ? longToNumber(m.assignedLid, true) : m.assignedLid;
|
|
54930
|
+
}
|
|
54931
|
+
if (m.latestLid != null && m.hasOwnProperty("latestLid")) {
|
|
54932
|
+
if (typeof m.latestLid === "number")
|
|
54933
|
+
d.latestLid = o.longs === String ? String(m.latestLid) : m.latestLid;
|
|
54934
|
+
else
|
|
54935
|
+
d.latestLid = o.longs === String ? longToString(m.latestLid, true) : o.longs === Number ? longToNumber(m.latestLid, true) : m.latestLid;
|
|
54936
|
+
}
|
|
54937
|
+
return d;
|
|
54938
|
+
};
|
|
54939
|
+
|
|
54940
|
+
LIDMigrationMapping.prototype.toJSON = function toJSON() {
|
|
54941
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54942
|
+
};
|
|
54943
|
+
|
|
54944
|
+
LIDMigrationMapping.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
54945
|
+
if (typeUrlPrefix === undefined) {
|
|
54946
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
54947
|
+
}
|
|
54948
|
+
return typeUrlPrefix + "/proto.LIDMigrationMapping";
|
|
54949
|
+
};
|
|
54950
|
+
|
|
54951
|
+
return LIDMigrationMapping;
|
|
54952
|
+
})();
|
|
54953
|
+
|
|
54954
|
+
proto.LIDMigrationMappingSyncPayload = (function() {
|
|
54955
|
+
|
|
54956
|
+
function LIDMigrationMappingSyncPayload(p) {
|
|
54957
|
+
this.pnToLidMappings = [];
|
|
54958
|
+
if (p)
|
|
54959
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
54960
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
54961
|
+
this[ks[i]] = p[ks[i]];
|
|
54962
|
+
}
|
|
54963
|
+
|
|
54964
|
+
LIDMigrationMappingSyncPayload.prototype.pnToLidMappings = $util.emptyArray;
|
|
54965
|
+
LIDMigrationMappingSyncPayload.prototype.chatDbMigrationTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
54966
|
+
|
|
54967
|
+
LIDMigrationMappingSyncPayload.create = function create(properties) {
|
|
54968
|
+
return new LIDMigrationMappingSyncPayload(properties);
|
|
54969
|
+
};
|
|
54970
|
+
|
|
54971
|
+
LIDMigrationMappingSyncPayload.encode = function encode(m, w) {
|
|
54972
|
+
if (!w)
|
|
54973
|
+
w = $Writer.create();
|
|
54974
|
+
if (m.pnToLidMappings != null && m.pnToLidMappings.length) {
|
|
54975
|
+
for (var i = 0; i < m.pnToLidMappings.length; ++i)
|
|
54976
|
+
$root.proto.LIDMigrationMapping.encode(m.pnToLidMappings[i], w.uint32(10).fork()).ldelim();
|
|
54977
|
+
}
|
|
54978
|
+
if (m.chatDbMigrationTimestamp != null && Object.hasOwnProperty.call(m, "chatDbMigrationTimestamp"))
|
|
54979
|
+
w.uint32(16).uint64(m.chatDbMigrationTimestamp);
|
|
54980
|
+
return w;
|
|
54981
|
+
};
|
|
54982
|
+
|
|
54983
|
+
LIDMigrationMappingSyncPayload.decode = function decode(r, l, e, n) {
|
|
54984
|
+
if (!(r instanceof $Reader))
|
|
54985
|
+
r = $Reader.create(r);
|
|
54986
|
+
if (n === undefined)
|
|
54987
|
+
n = 0;
|
|
54988
|
+
if (n > $Reader.recursionLimit)
|
|
54989
|
+
throw Error("maximum nesting depth exceeded");
|
|
54990
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.LIDMigrationMappingSyncPayload();
|
|
54991
|
+
while (r.pos < c) {
|
|
54992
|
+
var t = r.uint32();
|
|
54993
|
+
if (t === e)
|
|
54994
|
+
break;
|
|
54995
|
+
switch (t >>> 3) {
|
|
54996
|
+
case 1: {
|
|
54997
|
+
if (!(m.pnToLidMappings && m.pnToLidMappings.length))
|
|
54998
|
+
m.pnToLidMappings = [];
|
|
54999
|
+
m.pnToLidMappings.push($root.proto.LIDMigrationMapping.decode(r, r.uint32(), undefined, n + 1));
|
|
55000
|
+
break;
|
|
55001
|
+
}
|
|
55002
|
+
case 2: {
|
|
55003
|
+
m.chatDbMigrationTimestamp = r.uint64();
|
|
55004
|
+
break;
|
|
55005
|
+
}
|
|
55006
|
+
default:
|
|
55007
|
+
r.skipType(t & 7, n);
|
|
55008
|
+
break;
|
|
55009
|
+
}
|
|
55010
|
+
}
|
|
55011
|
+
return m;
|
|
55012
|
+
};
|
|
55013
|
+
|
|
55014
|
+
LIDMigrationMappingSyncPayload.fromObject = function fromObject(d, n) {
|
|
55015
|
+
if (d instanceof $root.proto.LIDMigrationMappingSyncPayload)
|
|
55016
|
+
return d;
|
|
55017
|
+
if (n === undefined)
|
|
55018
|
+
n = 0;
|
|
55019
|
+
if (n > $util.recursionLimit)
|
|
55020
|
+
throw Error("maximum nesting depth exceeded");
|
|
55021
|
+
var m = new $root.proto.LIDMigrationMappingSyncPayload();
|
|
55022
|
+
if (d.pnToLidMappings) {
|
|
55023
|
+
if (!Array.isArray(d.pnToLidMappings))
|
|
55024
|
+
throw TypeError(".proto.LIDMigrationMappingSyncPayload.pnToLidMappings: array expected");
|
|
55025
|
+
m.pnToLidMappings = [];
|
|
55026
|
+
for (var i = 0; i < d.pnToLidMappings.length; ++i) {
|
|
55027
|
+
if (typeof d.pnToLidMappings[i] !== "object")
|
|
55028
|
+
throw TypeError(".proto.LIDMigrationMappingSyncPayload.pnToLidMappings: object expected");
|
|
55029
|
+
m.pnToLidMappings[i] = $root.proto.LIDMigrationMapping.fromObject(d.pnToLidMappings[i], n + 1);
|
|
55030
|
+
}
|
|
55031
|
+
}
|
|
55032
|
+
if (d.chatDbMigrationTimestamp != null) {
|
|
55033
|
+
if ($util.Long)
|
|
55034
|
+
(m.chatDbMigrationTimestamp = $util.Long.fromValue(d.chatDbMigrationTimestamp)).unsigned = true;
|
|
55035
|
+
else if (typeof d.chatDbMigrationTimestamp === "string")
|
|
55036
|
+
m.chatDbMigrationTimestamp = parseInt(d.chatDbMigrationTimestamp, 10);
|
|
55037
|
+
else if (typeof d.chatDbMigrationTimestamp === "number")
|
|
55038
|
+
m.chatDbMigrationTimestamp = d.chatDbMigrationTimestamp;
|
|
55039
|
+
else if (typeof d.chatDbMigrationTimestamp === "object")
|
|
55040
|
+
m.chatDbMigrationTimestamp = new $util.LongBits(d.chatDbMigrationTimestamp.low >>> 0, d.chatDbMigrationTimestamp.high >>> 0).toNumber(true);
|
|
55041
|
+
}
|
|
55042
|
+
return m;
|
|
55043
|
+
};
|
|
55044
|
+
|
|
55045
|
+
LIDMigrationMappingSyncPayload.toObject = function toObject(m, o) {
|
|
55046
|
+
if (!o)
|
|
55047
|
+
o = {};
|
|
55048
|
+
var d = {};
|
|
55049
|
+
if (o.arrays || o.defaults) {
|
|
55050
|
+
d.pnToLidMappings = [];
|
|
55051
|
+
}
|
|
55052
|
+
if (o.defaults) {
|
|
55053
|
+
if ($util.Long) {
|
|
55054
|
+
var n = new $util.Long(0, 0, true);
|
|
55055
|
+
d.chatDbMigrationTimestamp = o.longs === String ? n.toString() : o.longs === Number ? n.toNumber() : n;
|
|
55056
|
+
} else
|
|
55057
|
+
d.chatDbMigrationTimestamp = o.longs === String ? "0" : 0;
|
|
55058
|
+
}
|
|
55059
|
+
if (m.pnToLidMappings && m.pnToLidMappings.length) {
|
|
55060
|
+
d.pnToLidMappings = [];
|
|
55061
|
+
for (var j = 0; j < m.pnToLidMappings.length; ++j) {
|
|
55062
|
+
d.pnToLidMappings[j] = $root.proto.LIDMigrationMapping.toObject(m.pnToLidMappings[j], o);
|
|
55063
|
+
}
|
|
55064
|
+
}
|
|
55065
|
+
if (m.chatDbMigrationTimestamp != null && m.hasOwnProperty("chatDbMigrationTimestamp")) {
|
|
55066
|
+
if (typeof m.chatDbMigrationTimestamp === "number")
|
|
55067
|
+
d.chatDbMigrationTimestamp = o.longs === String ? String(m.chatDbMigrationTimestamp) : m.chatDbMigrationTimestamp;
|
|
55068
|
+
else
|
|
55069
|
+
d.chatDbMigrationTimestamp = o.longs === String ? longToString(m.chatDbMigrationTimestamp, true) : o.longs === Number ? longToNumber(m.chatDbMigrationTimestamp, true) : m.chatDbMigrationTimestamp;
|
|
55070
|
+
}
|
|
55071
|
+
return d;
|
|
55072
|
+
};
|
|
55073
|
+
|
|
55074
|
+
LIDMigrationMappingSyncPayload.prototype.toJSON = function toJSON() {
|
|
55075
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55076
|
+
};
|
|
55077
|
+
|
|
55078
|
+
LIDMigrationMappingSyncPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
55079
|
+
if (typeUrlPrefix === undefined) {
|
|
55080
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
55081
|
+
}
|
|
55082
|
+
return typeUrlPrefix + "/proto.LIDMigrationMappingSyncPayload";
|
|
55083
|
+
};
|
|
55084
|
+
|
|
55085
|
+
return LIDMigrationMappingSyncPayload;
|
|
55086
|
+
})();
|
|
55087
|
+
|
|
54695
55088
|
proto.LabyrinthWaCommand = (function() {
|
|
54696
55089
|
|
|
54697
55090
|
function LabyrinthWaCommand(p) {
|
|
@@ -60542,6 +60935,7 @@ export const proto = $root.proto = (() => {
|
|
|
60542
60935
|
Message.prototype.musicMessage = null;
|
|
60543
60936
|
Message.prototype.statusLinkPreviewMetadata = null;
|
|
60544
60937
|
Message.prototype.botPlatformRegistrationSuccessMessage = null;
|
|
60938
|
+
Message.prototype.newsletterScheduledMessage = null;
|
|
60545
60939
|
|
|
60546
60940
|
let $oneOfFields;
|
|
60547
60941
|
|
|
@@ -61211,6 +61605,12 @@ export const proto = $root.proto = (() => {
|
|
|
61211
61605
|
set: $util.oneOfSetter($oneOfFields)
|
|
61212
61606
|
});
|
|
61213
61607
|
|
|
61608
|
+
// Virtual OneOf for proto3 optional field
|
|
61609
|
+
Object.defineProperty(Message.prototype, "_newsletterScheduledMessage", {
|
|
61610
|
+
get: $util.oneOfGetter($oneOfFields = ["newsletterScheduledMessage"]),
|
|
61611
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
61612
|
+
});
|
|
61613
|
+
|
|
61214
61614
|
Message.create = function create(properties) {
|
|
61215
61615
|
return new Message(properties);
|
|
61216
61616
|
};
|
|
@@ -61440,6 +61840,8 @@ export const proto = $root.proto = (() => {
|
|
|
61440
61840
|
$root.proto.Message.StatusLinkPreviewMetadata.encode(m.statusLinkPreviewMetadata, w.uint32(1042).fork()).ldelim();
|
|
61441
61841
|
if (m.botPlatformRegistrationSuccessMessage != null && Object.hasOwnProperty.call(m, "botPlatformRegistrationSuccessMessage"))
|
|
61442
61842
|
$root.proto.Message.FutureProofMessage.encode(m.botPlatformRegistrationSuccessMessage, w.uint32(1050).fork()).ldelim();
|
|
61843
|
+
if (m.newsletterScheduledMessage != null && Object.hasOwnProperty.call(m, "newsletterScheduledMessage"))
|
|
61844
|
+
$root.proto.Message.FutureProofMessage.encode(m.newsletterScheduledMessage, w.uint32(1058).fork()).ldelim();
|
|
61443
61845
|
return w;
|
|
61444
61846
|
};
|
|
61445
61847
|
|
|
@@ -61900,6 +62302,10 @@ export const proto = $root.proto = (() => {
|
|
|
61900
62302
|
m.botPlatformRegistrationSuccessMessage = $root.proto.Message.FutureProofMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
61901
62303
|
break;
|
|
61902
62304
|
}
|
|
62305
|
+
case 132: {
|
|
62306
|
+
m.newsletterScheduledMessage = $root.proto.Message.FutureProofMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
62307
|
+
break;
|
|
62308
|
+
}
|
|
61903
62309
|
default:
|
|
61904
62310
|
r.skipType(t & 7, n);
|
|
61905
62311
|
break;
|
|
@@ -62469,6 +62875,11 @@ export const proto = $root.proto = (() => {
|
|
|
62469
62875
|
throw TypeError(".proto.Message.botPlatformRegistrationSuccessMessage: object expected");
|
|
62470
62876
|
m.botPlatformRegistrationSuccessMessage = $root.proto.Message.FutureProofMessage.fromObject(d.botPlatformRegistrationSuccessMessage, n + 1);
|
|
62471
62877
|
}
|
|
62878
|
+
if (d.newsletterScheduledMessage != null) {
|
|
62879
|
+
if (typeof d.newsletterScheduledMessage !== "object")
|
|
62880
|
+
throw TypeError(".proto.Message.newsletterScheduledMessage: object expected");
|
|
62881
|
+
m.newsletterScheduledMessage = $root.proto.Message.FutureProofMessage.fromObject(d.newsletterScheduledMessage, n + 1);
|
|
62882
|
+
}
|
|
62472
62883
|
return m;
|
|
62473
62884
|
};
|
|
62474
62885
|
|
|
@@ -63031,6 +63442,11 @@ export const proto = $root.proto = (() => {
|
|
|
63031
63442
|
if (o.oneofs)
|
|
63032
63443
|
d._botPlatformRegistrationSuccessMessage = "botPlatformRegistrationSuccessMessage";
|
|
63033
63444
|
}
|
|
63445
|
+
if (m.newsletterScheduledMessage != null && m.hasOwnProperty("newsletterScheduledMessage")) {
|
|
63446
|
+
d.newsletterScheduledMessage = $root.proto.Message.FutureProofMessage.toObject(m.newsletterScheduledMessage, o);
|
|
63447
|
+
if (o.oneofs)
|
|
63448
|
+
d._newsletterScheduledMessage = "newsletterScheduledMessage";
|
|
63449
|
+
}
|
|
63034
63450
|
return d;
|
|
63035
63451
|
};
|
|
63036
63452
|
|
|
@@ -95930,6 +96346,7 @@ export const proto = $root.proto = (() => {
|
|
|
95930
96346
|
VideoMessage.prototype.motionPhotoPresentationOffsetMs = null;
|
|
95931
96347
|
VideoMessage.prototype.metadataUrl = null;
|
|
95932
96348
|
VideoMessage.prototype.videoSourceType = null;
|
|
96349
|
+
VideoMessage.prototype.dashManifestUrl = null;
|
|
95933
96350
|
|
|
95934
96351
|
let $oneOfFields;
|
|
95935
96352
|
|
|
@@ -96095,6 +96512,12 @@ export const proto = $root.proto = (() => {
|
|
|
96095
96512
|
set: $util.oneOfSetter($oneOfFields)
|
|
96096
96513
|
});
|
|
96097
96514
|
|
|
96515
|
+
// Virtual OneOf for proto3 optional field
|
|
96516
|
+
Object.defineProperty(VideoMessage.prototype, "_dashManifestUrl", {
|
|
96517
|
+
get: $util.oneOfGetter($oneOfFields = ["dashManifestUrl"]),
|
|
96518
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
96519
|
+
});
|
|
96520
|
+
|
|
96098
96521
|
VideoMessage.create = function create(properties) {
|
|
96099
96522
|
return new VideoMessage(properties);
|
|
96100
96523
|
};
|
|
@@ -96168,6 +96591,8 @@ export const proto = $root.proto = (() => {
|
|
|
96168
96591
|
w.uint32(242).string(m.metadataUrl);
|
|
96169
96592
|
if (m.videoSourceType != null && Object.hasOwnProperty.call(m, "videoSourceType"))
|
|
96170
96593
|
w.uint32(248).int32(m.videoSourceType);
|
|
96594
|
+
if (m.dashManifestUrl != null && Object.hasOwnProperty.call(m, "dashManifestUrl"))
|
|
96595
|
+
w.uint32(266).string(m.dashManifestUrl);
|
|
96171
96596
|
return w;
|
|
96172
96597
|
};
|
|
96173
96598
|
|
|
@@ -96310,6 +96735,10 @@ export const proto = $root.proto = (() => {
|
|
|
96310
96735
|
m.videoSourceType = r.int32();
|
|
96311
96736
|
break;
|
|
96312
96737
|
}
|
|
96738
|
+
case 33: {
|
|
96739
|
+
m.dashManifestUrl = r.string();
|
|
96740
|
+
break;
|
|
96741
|
+
}
|
|
96313
96742
|
default:
|
|
96314
96743
|
r.skipType(t & 7, n);
|
|
96315
96744
|
break;
|
|
@@ -96515,6 +96944,9 @@ export const proto = $root.proto = (() => {
|
|
|
96515
96944
|
m.videoSourceType = 1;
|
|
96516
96945
|
break;
|
|
96517
96946
|
}
|
|
96947
|
+
if (d.dashManifestUrl != null) {
|
|
96948
|
+
m.dashManifestUrl = String(d.dashManifestUrl);
|
|
96949
|
+
}
|
|
96518
96950
|
return m;
|
|
96519
96951
|
};
|
|
96520
96952
|
|
|
@@ -96689,6 +97121,11 @@ export const proto = $root.proto = (() => {
|
|
|
96689
97121
|
if (o.oneofs)
|
|
96690
97122
|
d._videoSourceType = "videoSourceType";
|
|
96691
97123
|
}
|
|
97124
|
+
if (m.dashManifestUrl != null && m.hasOwnProperty("dashManifestUrl")) {
|
|
97125
|
+
d.dashManifestUrl = m.dashManifestUrl;
|
|
97126
|
+
if (o.oneofs)
|
|
97127
|
+
d._dashManifestUrl = "dashManifestUrl";
|
|
97128
|
+
}
|
|
96692
97129
|
return d;
|
|
96693
97130
|
};
|
|
96694
97131
|
|
|
@@ -117172,6 +117609,9 @@ export const proto = $root.proto = (() => {
|
|
|
117172
117609
|
SyncActionValue.prototype.labelSublistAction = null;
|
|
117173
117610
|
SyncActionValue.prototype.deviceCapabilitiesV2 = null;
|
|
117174
117611
|
SyncActionValue.prototype.ctwaMessageReceivedAction = null;
|
|
117612
|
+
SyncActionValue.prototype.sharedDeviceAllowlistAction = null;
|
|
117613
|
+
SyncActionValue.prototype.contactManagerMetadataAction = null;
|
|
117614
|
+
SyncActionValue.prototype.businessFolderActivationAction = null;
|
|
117175
117615
|
|
|
117176
117616
|
let $oneOfFields;
|
|
117177
117617
|
|
|
@@ -117679,6 +118119,24 @@ export const proto = $root.proto = (() => {
|
|
|
117679
118119
|
set: $util.oneOfSetter($oneOfFields)
|
|
117680
118120
|
});
|
|
117681
118121
|
|
|
118122
|
+
// Virtual OneOf for proto3 optional field
|
|
118123
|
+
Object.defineProperty(SyncActionValue.prototype, "_sharedDeviceAllowlistAction", {
|
|
118124
|
+
get: $util.oneOfGetter($oneOfFields = ["sharedDeviceAllowlistAction"]),
|
|
118125
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
118126
|
+
});
|
|
118127
|
+
|
|
118128
|
+
// Virtual OneOf for proto3 optional field
|
|
118129
|
+
Object.defineProperty(SyncActionValue.prototype, "_contactManagerMetadataAction", {
|
|
118130
|
+
get: $util.oneOfGetter($oneOfFields = ["contactManagerMetadataAction"]),
|
|
118131
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
118132
|
+
});
|
|
118133
|
+
|
|
118134
|
+
// Virtual OneOf for proto3 optional field
|
|
118135
|
+
Object.defineProperty(SyncActionValue.prototype, "_businessFolderActivationAction", {
|
|
118136
|
+
get: $util.oneOfGetter($oneOfFields = ["businessFolderActivationAction"]),
|
|
118137
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
118138
|
+
});
|
|
118139
|
+
|
|
117682
118140
|
SyncActionValue.create = function create(properties) {
|
|
117683
118141
|
return new SyncActionValue(properties);
|
|
117684
118142
|
};
|
|
@@ -117854,6 +118312,12 @@ export const proto = $root.proto = (() => {
|
|
|
117854
118312
|
$root.proto.DeviceCapabilities.encode(m.deviceCapabilitiesV2, w.uint32(738).fork()).ldelim();
|
|
117855
118313
|
if (m.ctwaMessageReceivedAction != null && Object.hasOwnProperty.call(m, "ctwaMessageReceivedAction"))
|
|
117856
118314
|
$root.proto.SyncActionValue.CtwaMessageReceivedAction.encode(m.ctwaMessageReceivedAction, w.uint32(746).fork()).ldelim();
|
|
118315
|
+
if (m.sharedDeviceAllowlistAction != null && Object.hasOwnProperty.call(m, "sharedDeviceAllowlistAction"))
|
|
118316
|
+
$root.proto.SyncActionValue.SharedDeviceAllowlistAction.encode(m.sharedDeviceAllowlistAction, w.uint32(754).fork()).ldelim();
|
|
118317
|
+
if (m.contactManagerMetadataAction != null && Object.hasOwnProperty.call(m, "contactManagerMetadataAction"))
|
|
118318
|
+
$root.proto.SyncActionValue.ContactManagerMetadataAction.encode(m.contactManagerMetadataAction, w.uint32(762).fork()).ldelim();
|
|
118319
|
+
if (m.businessFolderActivationAction != null && Object.hasOwnProperty.call(m, "businessFolderActivationAction"))
|
|
118320
|
+
$root.proto.SyncActionValue.BusinessFolderActivationAction.encode(m.businessFolderActivationAction, w.uint32(770).fork()).ldelim();
|
|
117857
118321
|
return w;
|
|
117858
118322
|
};
|
|
117859
118323
|
|
|
@@ -118206,6 +118670,18 @@ export const proto = $root.proto = (() => {
|
|
|
118206
118670
|
m.ctwaMessageReceivedAction = $root.proto.SyncActionValue.CtwaMessageReceivedAction.decode(r, r.uint32(), undefined, n + 1);
|
|
118207
118671
|
break;
|
|
118208
118672
|
}
|
|
118673
|
+
case 94: {
|
|
118674
|
+
m.sharedDeviceAllowlistAction = $root.proto.SyncActionValue.SharedDeviceAllowlistAction.decode(r, r.uint32(), undefined, n + 1);
|
|
118675
|
+
break;
|
|
118676
|
+
}
|
|
118677
|
+
case 95: {
|
|
118678
|
+
m.contactManagerMetadataAction = $root.proto.SyncActionValue.ContactManagerMetadataAction.decode(r, r.uint32(), undefined, n + 1);
|
|
118679
|
+
break;
|
|
118680
|
+
}
|
|
118681
|
+
case 96: {
|
|
118682
|
+
m.businessFolderActivationAction = $root.proto.SyncActionValue.BusinessFolderActivationAction.decode(r, r.uint32(), undefined, n + 1);
|
|
118683
|
+
break;
|
|
118684
|
+
}
|
|
118209
118685
|
default:
|
|
118210
118686
|
r.skipType(t & 7, n);
|
|
118211
118687
|
break;
|
|
@@ -118647,6 +119123,21 @@ export const proto = $root.proto = (() => {
|
|
|
118647
119123
|
throw TypeError(".proto.SyncActionValue.ctwaMessageReceivedAction: object expected");
|
|
118648
119124
|
m.ctwaMessageReceivedAction = $root.proto.SyncActionValue.CtwaMessageReceivedAction.fromObject(d.ctwaMessageReceivedAction, n + 1);
|
|
118649
119125
|
}
|
|
119126
|
+
if (d.sharedDeviceAllowlistAction != null) {
|
|
119127
|
+
if (typeof d.sharedDeviceAllowlistAction !== "object")
|
|
119128
|
+
throw TypeError(".proto.SyncActionValue.sharedDeviceAllowlistAction: object expected");
|
|
119129
|
+
m.sharedDeviceAllowlistAction = $root.proto.SyncActionValue.SharedDeviceAllowlistAction.fromObject(d.sharedDeviceAllowlistAction, n + 1);
|
|
119130
|
+
}
|
|
119131
|
+
if (d.contactManagerMetadataAction != null) {
|
|
119132
|
+
if (typeof d.contactManagerMetadataAction !== "object")
|
|
119133
|
+
throw TypeError(".proto.SyncActionValue.contactManagerMetadataAction: object expected");
|
|
119134
|
+
m.contactManagerMetadataAction = $root.proto.SyncActionValue.ContactManagerMetadataAction.fromObject(d.contactManagerMetadataAction, n + 1);
|
|
119135
|
+
}
|
|
119136
|
+
if (d.businessFolderActivationAction != null) {
|
|
119137
|
+
if (typeof d.businessFolderActivationAction !== "object")
|
|
119138
|
+
throw TypeError(".proto.SyncActionValue.businessFolderActivationAction: object expected");
|
|
119139
|
+
m.businessFolderActivationAction = $root.proto.SyncActionValue.BusinessFolderActivationAction.fromObject(d.businessFolderActivationAction, n + 1);
|
|
119140
|
+
}
|
|
118650
119141
|
return m;
|
|
118651
119142
|
};
|
|
118652
119143
|
|
|
@@ -119077,6 +119568,21 @@ export const proto = $root.proto = (() => {
|
|
|
119077
119568
|
if (o.oneofs)
|
|
119078
119569
|
d._ctwaMessageReceivedAction = "ctwaMessageReceivedAction";
|
|
119079
119570
|
}
|
|
119571
|
+
if (m.sharedDeviceAllowlistAction != null && m.hasOwnProperty("sharedDeviceAllowlistAction")) {
|
|
119572
|
+
d.sharedDeviceAllowlistAction = $root.proto.SyncActionValue.SharedDeviceAllowlistAction.toObject(m.sharedDeviceAllowlistAction, o);
|
|
119573
|
+
if (o.oneofs)
|
|
119574
|
+
d._sharedDeviceAllowlistAction = "sharedDeviceAllowlistAction";
|
|
119575
|
+
}
|
|
119576
|
+
if (m.contactManagerMetadataAction != null && m.hasOwnProperty("contactManagerMetadataAction")) {
|
|
119577
|
+
d.contactManagerMetadataAction = $root.proto.SyncActionValue.ContactManagerMetadataAction.toObject(m.contactManagerMetadataAction, o);
|
|
119578
|
+
if (o.oneofs)
|
|
119579
|
+
d._contactManagerMetadataAction = "contactManagerMetadataAction";
|
|
119580
|
+
}
|
|
119581
|
+
if (m.businessFolderActivationAction != null && m.hasOwnProperty("businessFolderActivationAction")) {
|
|
119582
|
+
d.businessFolderActivationAction = $root.proto.SyncActionValue.BusinessFolderActivationAction.toObject(m.businessFolderActivationAction, o);
|
|
119583
|
+
if (o.oneofs)
|
|
119584
|
+
d._businessFolderActivationAction = "businessFolderActivationAction";
|
|
119585
|
+
}
|
|
119080
119586
|
return d;
|
|
119081
119587
|
};
|
|
119082
119588
|
|
|
@@ -121744,6 +122250,273 @@ export const proto = $root.proto = (() => {
|
|
|
121744
122250
|
return CtwaMessageReceivedAction;
|
|
121745
122251
|
})();
|
|
121746
122252
|
|
|
122253
|
+
SyncActionValue.BusinessFolderActivationAction = (function() {
|
|
122254
|
+
|
|
122255
|
+
function BusinessFolderActivationAction(p) {
|
|
122256
|
+
if (p)
|
|
122257
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
122258
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
122259
|
+
this[ks[i]] = p[ks[i]];
|
|
122260
|
+
}
|
|
122261
|
+
|
|
122262
|
+
BusinessFolderActivationAction.prototype.activated = null;
|
|
122263
|
+
|
|
122264
|
+
let $oneOfFields;
|
|
122265
|
+
|
|
122266
|
+
// Virtual OneOf for proto3 optional field
|
|
122267
|
+
Object.defineProperty(BusinessFolderActivationAction.prototype, "_activated", {
|
|
122268
|
+
get: $util.oneOfGetter($oneOfFields = ["activated"]),
|
|
122269
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
122270
|
+
});
|
|
122271
|
+
|
|
122272
|
+
BusinessFolderActivationAction.create = function create(properties) {
|
|
122273
|
+
return new BusinessFolderActivationAction(properties);
|
|
122274
|
+
};
|
|
122275
|
+
|
|
122276
|
+
BusinessFolderActivationAction.encode = function encode(m, w) {
|
|
122277
|
+
if (!w)
|
|
122278
|
+
w = $Writer.create();
|
|
122279
|
+
if (m.activated != null && Object.hasOwnProperty.call(m, "activated"))
|
|
122280
|
+
w.uint32(8).bool(m.activated);
|
|
122281
|
+
return w;
|
|
122282
|
+
};
|
|
122283
|
+
|
|
122284
|
+
BusinessFolderActivationAction.decode = function decode(r, l, e, n) {
|
|
122285
|
+
if (!(r instanceof $Reader))
|
|
122286
|
+
r = $Reader.create(r);
|
|
122287
|
+
if (n === undefined)
|
|
122288
|
+
n = 0;
|
|
122289
|
+
if (n > $Reader.recursionLimit)
|
|
122290
|
+
throw Error("maximum nesting depth exceeded");
|
|
122291
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.BusinessFolderActivationAction();
|
|
122292
|
+
while (r.pos < c) {
|
|
122293
|
+
var t = r.uint32();
|
|
122294
|
+
if (t === e)
|
|
122295
|
+
break;
|
|
122296
|
+
switch (t >>> 3) {
|
|
122297
|
+
case 1: {
|
|
122298
|
+
m.activated = r.bool();
|
|
122299
|
+
break;
|
|
122300
|
+
}
|
|
122301
|
+
default:
|
|
122302
|
+
r.skipType(t & 7, n);
|
|
122303
|
+
break;
|
|
122304
|
+
}
|
|
122305
|
+
}
|
|
122306
|
+
return m;
|
|
122307
|
+
};
|
|
122308
|
+
|
|
122309
|
+
BusinessFolderActivationAction.fromObject = function fromObject(d, n) {
|
|
122310
|
+
if (d instanceof $root.proto.SyncActionValue.BusinessFolderActivationAction)
|
|
122311
|
+
return d;
|
|
122312
|
+
if (n === undefined)
|
|
122313
|
+
n = 0;
|
|
122314
|
+
if (n > $util.recursionLimit)
|
|
122315
|
+
throw Error("maximum nesting depth exceeded");
|
|
122316
|
+
var m = new $root.proto.SyncActionValue.BusinessFolderActivationAction();
|
|
122317
|
+
if (d.activated != null) {
|
|
122318
|
+
m.activated = Boolean(d.activated);
|
|
122319
|
+
}
|
|
122320
|
+
return m;
|
|
122321
|
+
};
|
|
122322
|
+
|
|
122323
|
+
BusinessFolderActivationAction.toObject = function toObject(m, o) {
|
|
122324
|
+
if (!o)
|
|
122325
|
+
o = {};
|
|
122326
|
+
var d = {};
|
|
122327
|
+
if (m.activated != null && m.hasOwnProperty("activated")) {
|
|
122328
|
+
d.activated = m.activated;
|
|
122329
|
+
if (o.oneofs)
|
|
122330
|
+
d._activated = "activated";
|
|
122331
|
+
}
|
|
122332
|
+
return d;
|
|
122333
|
+
};
|
|
122334
|
+
|
|
122335
|
+
BusinessFolderActivationAction.prototype.toJSON = function toJSON() {
|
|
122336
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
122337
|
+
};
|
|
122338
|
+
|
|
122339
|
+
return BusinessFolderActivationAction;
|
|
122340
|
+
})();
|
|
122341
|
+
|
|
122342
|
+
SyncActionValue.ContactManagerMetadataAction = (function() {
|
|
122343
|
+
|
|
122344
|
+
function ContactManagerMetadataAction(p) {
|
|
122345
|
+
if (p)
|
|
122346
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
122347
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
122348
|
+
this[ks[i]] = p[ks[i]];
|
|
122349
|
+
}
|
|
122350
|
+
|
|
122351
|
+
ContactManagerMetadataAction.prototype.isHidden = null;
|
|
122352
|
+
|
|
122353
|
+
let $oneOfFields;
|
|
122354
|
+
|
|
122355
|
+
// Virtual OneOf for proto3 optional field
|
|
122356
|
+
Object.defineProperty(ContactManagerMetadataAction.prototype, "_isHidden", {
|
|
122357
|
+
get: $util.oneOfGetter($oneOfFields = ["isHidden"]),
|
|
122358
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
122359
|
+
});
|
|
122360
|
+
|
|
122361
|
+
ContactManagerMetadataAction.create = function create(properties) {
|
|
122362
|
+
return new ContactManagerMetadataAction(properties);
|
|
122363
|
+
};
|
|
122364
|
+
|
|
122365
|
+
ContactManagerMetadataAction.encode = function encode(m, w) {
|
|
122366
|
+
if (!w)
|
|
122367
|
+
w = $Writer.create();
|
|
122368
|
+
if (m.isHidden != null && Object.hasOwnProperty.call(m, "isHidden"))
|
|
122369
|
+
w.uint32(8).bool(m.isHidden);
|
|
122370
|
+
return w;
|
|
122371
|
+
};
|
|
122372
|
+
|
|
122373
|
+
ContactManagerMetadataAction.decode = function decode(r, l, e, n) {
|
|
122374
|
+
if (!(r instanceof $Reader))
|
|
122375
|
+
r = $Reader.create(r);
|
|
122376
|
+
if (n === undefined)
|
|
122377
|
+
n = 0;
|
|
122378
|
+
if (n > $Reader.recursionLimit)
|
|
122379
|
+
throw Error("maximum nesting depth exceeded");
|
|
122380
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.ContactManagerMetadataAction();
|
|
122381
|
+
while (r.pos < c) {
|
|
122382
|
+
var t = r.uint32();
|
|
122383
|
+
if (t === e)
|
|
122384
|
+
break;
|
|
122385
|
+
switch (t >>> 3) {
|
|
122386
|
+
case 1: {
|
|
122387
|
+
m.isHidden = r.bool();
|
|
122388
|
+
break;
|
|
122389
|
+
}
|
|
122390
|
+
default:
|
|
122391
|
+
r.skipType(t & 7, n);
|
|
122392
|
+
break;
|
|
122393
|
+
}
|
|
122394
|
+
}
|
|
122395
|
+
return m;
|
|
122396
|
+
};
|
|
122397
|
+
|
|
122398
|
+
ContactManagerMetadataAction.fromObject = function fromObject(d, n) {
|
|
122399
|
+
if (d instanceof $root.proto.SyncActionValue.ContactManagerMetadataAction)
|
|
122400
|
+
return d;
|
|
122401
|
+
if (n === undefined)
|
|
122402
|
+
n = 0;
|
|
122403
|
+
if (n > $util.recursionLimit)
|
|
122404
|
+
throw Error("maximum nesting depth exceeded");
|
|
122405
|
+
var m = new $root.proto.SyncActionValue.ContactManagerMetadataAction();
|
|
122406
|
+
if (d.isHidden != null) {
|
|
122407
|
+
m.isHidden = Boolean(d.isHidden);
|
|
122408
|
+
}
|
|
122409
|
+
return m;
|
|
122410
|
+
};
|
|
122411
|
+
|
|
122412
|
+
ContactManagerMetadataAction.toObject = function toObject(m, o) {
|
|
122413
|
+
if (!o)
|
|
122414
|
+
o = {};
|
|
122415
|
+
var d = {};
|
|
122416
|
+
if (m.isHidden != null && m.hasOwnProperty("isHidden")) {
|
|
122417
|
+
d.isHidden = m.isHidden;
|
|
122418
|
+
if (o.oneofs)
|
|
122419
|
+
d._isHidden = "isHidden";
|
|
122420
|
+
}
|
|
122421
|
+
return d;
|
|
122422
|
+
};
|
|
122423
|
+
|
|
122424
|
+
ContactManagerMetadataAction.prototype.toJSON = function toJSON() {
|
|
122425
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
122426
|
+
};
|
|
122427
|
+
|
|
122428
|
+
return ContactManagerMetadataAction;
|
|
122429
|
+
})();
|
|
122430
|
+
|
|
122431
|
+
SyncActionValue.SharedDeviceAllowlistAction = (function() {
|
|
122432
|
+
|
|
122433
|
+
function SharedDeviceAllowlistAction(p) {
|
|
122434
|
+
if (p)
|
|
122435
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
122436
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
122437
|
+
this[ks[i]] = p[ks[i]];
|
|
122438
|
+
}
|
|
122439
|
+
|
|
122440
|
+
SharedDeviceAllowlistAction.prototype.allowed = null;
|
|
122441
|
+
|
|
122442
|
+
let $oneOfFields;
|
|
122443
|
+
|
|
122444
|
+
// Virtual OneOf for proto3 optional field
|
|
122445
|
+
Object.defineProperty(SharedDeviceAllowlistAction.prototype, "_allowed", {
|
|
122446
|
+
get: $util.oneOfGetter($oneOfFields = ["allowed"]),
|
|
122447
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
122448
|
+
});
|
|
122449
|
+
|
|
122450
|
+
SharedDeviceAllowlistAction.create = function create(properties) {
|
|
122451
|
+
return new SharedDeviceAllowlistAction(properties);
|
|
122452
|
+
};
|
|
122453
|
+
|
|
122454
|
+
SharedDeviceAllowlistAction.encode = function encode(m, w) {
|
|
122455
|
+
if (!w)
|
|
122456
|
+
w = $Writer.create();
|
|
122457
|
+
if (m.allowed != null && Object.hasOwnProperty.call(m, "allowed"))
|
|
122458
|
+
w.uint32(8).bool(m.allowed);
|
|
122459
|
+
return w;
|
|
122460
|
+
};
|
|
122461
|
+
|
|
122462
|
+
SharedDeviceAllowlistAction.decode = function decode(r, l, e, n) {
|
|
122463
|
+
if (!(r instanceof $Reader))
|
|
122464
|
+
r = $Reader.create(r);
|
|
122465
|
+
if (n === undefined)
|
|
122466
|
+
n = 0;
|
|
122467
|
+
if (n > $Reader.recursionLimit)
|
|
122468
|
+
throw Error("maximum nesting depth exceeded");
|
|
122469
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.SharedDeviceAllowlistAction();
|
|
122470
|
+
while (r.pos < c) {
|
|
122471
|
+
var t = r.uint32();
|
|
122472
|
+
if (t === e)
|
|
122473
|
+
break;
|
|
122474
|
+
switch (t >>> 3) {
|
|
122475
|
+
case 1: {
|
|
122476
|
+
m.allowed = r.bool();
|
|
122477
|
+
break;
|
|
122478
|
+
}
|
|
122479
|
+
default:
|
|
122480
|
+
r.skipType(t & 7, n);
|
|
122481
|
+
break;
|
|
122482
|
+
}
|
|
122483
|
+
}
|
|
122484
|
+
return m;
|
|
122485
|
+
};
|
|
122486
|
+
|
|
122487
|
+
SharedDeviceAllowlistAction.fromObject = function fromObject(d, n) {
|
|
122488
|
+
if (d instanceof $root.proto.SyncActionValue.SharedDeviceAllowlistAction)
|
|
122489
|
+
return d;
|
|
122490
|
+
if (n === undefined)
|
|
122491
|
+
n = 0;
|
|
122492
|
+
if (n > $util.recursionLimit)
|
|
122493
|
+
throw Error("maximum nesting depth exceeded");
|
|
122494
|
+
var m = new $root.proto.SyncActionValue.SharedDeviceAllowlistAction();
|
|
122495
|
+
if (d.allowed != null) {
|
|
122496
|
+
m.allowed = Boolean(d.allowed);
|
|
122497
|
+
}
|
|
122498
|
+
return m;
|
|
122499
|
+
};
|
|
122500
|
+
|
|
122501
|
+
SharedDeviceAllowlistAction.toObject = function toObject(m, o) {
|
|
122502
|
+
if (!o)
|
|
122503
|
+
o = {};
|
|
122504
|
+
var d = {};
|
|
122505
|
+
if (m.allowed != null && m.hasOwnProperty("allowed")) {
|
|
122506
|
+
d.allowed = m.allowed;
|
|
122507
|
+
if (o.oneofs)
|
|
122508
|
+
d._allowed = "allowed";
|
|
122509
|
+
}
|
|
122510
|
+
return d;
|
|
122511
|
+
};
|
|
122512
|
+
|
|
122513
|
+
SharedDeviceAllowlistAction.prototype.toJSON = function toJSON() {
|
|
122514
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
122515
|
+
};
|
|
122516
|
+
|
|
122517
|
+
return SharedDeviceAllowlistAction;
|
|
122518
|
+
})();
|
|
122519
|
+
|
|
121747
122520
|
SyncActionValue.CtwaPerCustomerDataSharingAction = (function() {
|
|
121748
122521
|
|
|
121749
122522
|
function CtwaPerCustomerDataSharingAction(p) {
|