@jkt48connect-corp/baileys 7.4.6 → 7.4.9
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/WAProto/CompanionReg/CompanionReg.d.ts +6 -0
- package/WAProto/CompanionReg/CompanionReg.js +36 -0
- package/WAProto/CompanionReg/CompanionReg.proto +1 -0
- package/WAProto/E2E/E2E.d.ts +434 -6
- package/WAProto/E2E/E2E.js +1427 -2
- package/WAProto/E2E/E2E.proto +33 -0
- package/WAProto/HistorySync/HistorySync.d.ts +434 -6
- package/WAProto/HistorySync/HistorySync.js +1427 -2
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +434 -6
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1427 -2
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +95 -3
- package/WAProto/StatusAttributions/StatusAttributions.js +270 -2
- package/WAProto/StatusAttributions/StatusAttributions.proto +8 -0
- package/WAProto/Web/Web.d.ts +434 -6
- package/WAProto/Web/Web.js +1427 -2
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Socket/business.js +3 -3
- package/lib/Socket/chats.js +7 -7
- package/lib/Socket/groups.js +11 -9
- package/lib/Socket/messages-recv.js +12 -11
- package/lib/Socket/messages-send.js +981 -983
- package/lib/Socket/newsletter.js +3 -3
- package/lib/Socket/socket.js +12 -12
- package/lib/Socket/usync.js +3 -3
- package/lib/Store/make-cache-manager-store.js +9 -17
- package/lib/Store/make-in-memory-store.d.ts +2 -2
- package/lib/Store/make-in-memory-store.js +5 -5
- package/lib/Types/GroupMetadata.d.ts +2 -1
- package/lib/Utils/business.js +4 -0
- package/lib/Utils/decode-wa-message.js +4 -0
- package/lib/Utils/generics.js +10 -9
- package/lib/Utils/messages.js +1329 -1326
- package/lib/Utils/process-message.js +14 -1
- package/lib/index.js +1 -1
- package/package.json +5 -6
- package/WAProto/Adv/JKT48Connect - Valzyy +0 -0
- package/WAProto/Cert/JKT48Connect - Valzyy +0 -0
- package/WAProto/ChatLockSettings/JKT48Connect - Valzyy +0 -0
- package/WAProto/CompanionReg/JKT48Connect - Valzyy +0 -0
- package/WAProto/DeviceCapabilities/JKT48Connect - Valzyy +0 -0
- package/WAProto/E2E/JKT48Connect - Valzyy +0 -0
- package/WAProto/Ephemeral/JKT48Connect - Valzyy +0 -0
- package/WAProto/HistorySync/JKT48Connect - Valzyy +0 -0
- package/WAProto/JKT48Connect - Valzyy +0 -0
- package/WAProto/MdStorageChatRowOpaqueData/JKT48Connect - Valzyy +0 -0
- package/WAProto/MdStorageMsgRowOpaqueData/JKT48Connect - Valzyy +0 -0
- package/WAProto/MmsRetry/JKT48Connect - Valzyy +0 -0
- package/WAProto/Protocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/Reporting/JKT48Connect - Valzyy +0 -0
- package/WAProto/ServerSync/JKT48Connect - Valzyy +0 -0
- package/WAProto/SignalLocalStorageProtocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/SignalWhisperTextProtocol/JKT48Connect - Valzyy +0 -0
- package/WAProto/StatusAttributions/JKT48Connect - Valzyy +0 -0
- package/WAProto/SyncAction/JKT48Connect - Valzyy +0 -0
- package/WAProto/UserPassword/JKT48Connect - Valzyy +0 -0
- package/WAProto/VnameCert/JKT48Connect - Valzyy +0 -0
- package/WAProto/Wa6/JKT48Connect - Valzyy +0 -0
- package/WAProto/Web/JKT48Connect - Valzyy +0 -0
- package/lib/JKT48Connect - Valzyy +0 -0
@@ -14280,6 +14280,7 @@ case 11:
|
|
14280
14280
|
case 12:
|
14281
14281
|
case 13:
|
14282
14282
|
case 14:
|
14283
|
+
case 15:
|
14283
14284
|
break;
|
14284
14285
|
}
|
14285
14286
|
}
|
@@ -14377,6 +14378,10 @@ case "VIEW_ALL_REPLIES":
|
|
14377
14378
|
case 14:
|
14378
14379
|
message.associationType = 14;
|
14379
14380
|
break;
|
14381
|
+
case "STATUS_ADD_YOURS_AI_IMAGINE":
|
14382
|
+
case 15:
|
14383
|
+
message.associationType = 15;
|
14384
|
+
break;
|
14380
14385
|
}
|
14381
14386
|
if (object.parentMessageKey != null) {
|
14382
14387
|
if (typeof object.parentMessageKey !== "object")
|
@@ -14460,6 +14465,7 @@ return typeUrlPrefix + "/E2E.MessageAssociation";
|
|
14460
14465
|
* @property {number} MOTION_PHOTO=12 MOTION_PHOTO value
|
14461
14466
|
* @property {number} STATUS_LINK_ACTION=13 STATUS_LINK_ACTION value
|
14462
14467
|
* @property {number} VIEW_ALL_REPLIES=14 VIEW_ALL_REPLIES value
|
14468
|
+
* @property {number} STATUS_ADD_YOURS_AI_IMAGINE=15 STATUS_ADD_YOURS_AI_IMAGINE value
|
14463
14469
|
*/
|
14464
14470
|
MessageAssociation.AssociationType = (function() {
|
14465
14471
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -14478,6 +14484,7 @@ values[valuesById[11] = "STICKER_ANNOTATION"] = 11;
|
|
14478
14484
|
values[valuesById[12] = "MOTION_PHOTO"] = 12;
|
14479
14485
|
values[valuesById[13] = "STATUS_LINK_ACTION"] = 13;
|
14480
14486
|
values[valuesById[14] = "VIEW_ALL_REPLIES"] = 14;
|
14487
|
+
values[valuesById[15] = "STATUS_ADD_YOURS_AI_IMAGINE"] = 15;
|
14481
14488
|
return values;
|
14482
14489
|
})();
|
14483
14490
|
return MessageAssociation;
|
@@ -14512,6 +14519,8 @@ E2E.BotMetadata = (function() {
|
|
14512
14519
|
* @property {E2E.IBotQuotaMetadata|null} [botQuotaMetadata] BotMetadata botQuotaMetadata
|
14513
14520
|
* @property {E2E.IBotAgeCollectionMetadata|null} [botAgeCollectionMetadata] BotMetadata botAgeCollectionMetadata
|
14514
14521
|
* @property {string|null} [conversationStarterPromptId] BotMetadata conversationStarterPromptId
|
14522
|
+
* @property {string|null} [botResponseId] BotMetadata botResponseId
|
14523
|
+
* @property {E2E.IBotSignatureVerificationMetadata|null} [verificationMetadata] BotMetadata verificationMetadata
|
14515
14524
|
*/
|
14516
14525
|
/**
|
14517
14526
|
* Constructs a new BotMetadata.
|
@@ -14702,6 +14711,20 @@ BotMetadata.prototype.botAgeCollectionMetadata = null;
|
|
14702
14711
|
* @instance
|
14703
14712
|
*/
|
14704
14713
|
BotMetadata.prototype.conversationStarterPromptId = null;
|
14714
|
+
/**
|
14715
|
+
* BotMetadata botResponseId.
|
14716
|
+
* @member {string|null|undefined} botResponseId
|
14717
|
+
* @memberof E2E.BotMetadata
|
14718
|
+
* @instance
|
14719
|
+
*/
|
14720
|
+
BotMetadata.prototype.botResponseId = null;
|
14721
|
+
/**
|
14722
|
+
* BotMetadata verificationMetadata.
|
14723
|
+
* @member {E2E.IBotSignatureVerificationMetadata|null|undefined} verificationMetadata
|
14724
|
+
* @memberof E2E.BotMetadata
|
14725
|
+
* @instance
|
14726
|
+
*/
|
14727
|
+
BotMetadata.prototype.verificationMetadata = null;
|
14705
14728
|
// OneOf field names bound to virtual getters and setters
|
14706
14729
|
var $oneOfFields;
|
14707
14730
|
/**
|
@@ -14955,6 +14978,26 @@ get: $util.oneOfGetter($oneOfFields = ["conversationStarterPromptId"]),
|
|
14955
14978
|
set: $util.oneOfSetter($oneOfFields)
|
14956
14979
|
});
|
14957
14980
|
/**
|
14981
|
+
* BotMetadata _botResponseId.
|
14982
|
+
* @member {"botResponseId"|undefined} _botResponseId
|
14983
|
+
* @memberof E2E.BotMetadata
|
14984
|
+
* @instance
|
14985
|
+
*/
|
14986
|
+
Object.defineProperty(BotMetadata.prototype, "_botResponseId", {
|
14987
|
+
get: $util.oneOfGetter($oneOfFields = ["botResponseId"]),
|
14988
|
+
set: $util.oneOfSetter($oneOfFields)
|
14989
|
+
});
|
14990
|
+
/**
|
14991
|
+
* BotMetadata _verificationMetadata.
|
14992
|
+
* @member {"verificationMetadata"|undefined} _verificationMetadata
|
14993
|
+
* @memberof E2E.BotMetadata
|
14994
|
+
* @instance
|
14995
|
+
*/
|
14996
|
+
Object.defineProperty(BotMetadata.prototype, "_verificationMetadata", {
|
14997
|
+
get: $util.oneOfGetter($oneOfFields = ["verificationMetadata"]),
|
14998
|
+
set: $util.oneOfSetter($oneOfFields)
|
14999
|
+
});
|
15000
|
+
/**
|
14958
15001
|
* Creates a new BotMetadata instance using the specified properties.
|
14959
15002
|
* @function create
|
14960
15003
|
* @memberof E2E.BotMetadata
|
@@ -15027,6 +15070,10 @@ if (message.botAgeCollectionMetadata != null && Object.hasOwnProperty.call(messa
|
|
15027
15070
|
$root.E2E.BotAgeCollectionMetadata.encode(message.botAgeCollectionMetadata, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
|
15028
15071
|
if (message.conversationStarterPromptId != null && Object.hasOwnProperty.call(message, "conversationStarterPromptId"))
|
15029
15072
|
writer.uint32(/* id 25, wireType 2 =*/202).string(message.conversationStarterPromptId);
|
15073
|
+
if (message.botResponseId != null && Object.hasOwnProperty.call(message, "botResponseId"))
|
15074
|
+
writer.uint32(/* id 26, wireType 2 =*/210).string(message.botResponseId);
|
15075
|
+
if (message.verificationMetadata != null && Object.hasOwnProperty.call(message, "verificationMetadata"))
|
15076
|
+
$root.E2E.BotSignatureVerificationMetadata.encode(message.verificationMetadata, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
15030
15077
|
return writer;
|
15031
15078
|
};
|
15032
15079
|
/**
|
@@ -15161,6 +15208,14 @@ case 25: {
|
|
15161
15208
|
message.conversationStarterPromptId = reader.string();
|
15162
15209
|
break;
|
15163
15210
|
}
|
15211
|
+
case 26: {
|
15212
|
+
message.botResponseId = reader.string();
|
15213
|
+
break;
|
15214
|
+
}
|
15215
|
+
case 27: {
|
15216
|
+
message.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.decode(reader, reader.uint32());
|
15217
|
+
break;
|
15218
|
+
}
|
15164
15219
|
default:
|
15165
15220
|
reader.skipType(tag & 7);
|
15166
15221
|
break;
|
@@ -15377,6 +15432,19 @@ properties._conversationStarterPromptId = 1;
|
|
15377
15432
|
if (!$util.isString(message.conversationStarterPromptId))
|
15378
15433
|
return "conversationStarterPromptId: string expected";
|
15379
15434
|
}
|
15435
|
+
if (message.botResponseId != null && message.hasOwnProperty("botResponseId")) {
|
15436
|
+
properties._botResponseId = 1;
|
15437
|
+
if (!$util.isString(message.botResponseId))
|
15438
|
+
return "botResponseId: string expected";
|
15439
|
+
}
|
15440
|
+
if (message.verificationMetadata != null && message.hasOwnProperty("verificationMetadata")) {
|
15441
|
+
properties._verificationMetadata = 1;
|
15442
|
+
{
|
15443
|
+
var error = $root.E2E.BotSignatureVerificationMetadata.verify(message.verificationMetadata);
|
15444
|
+
if (error)
|
15445
|
+
return "verificationMetadata." + error;
|
15446
|
+
}
|
15447
|
+
}
|
15380
15448
|
return null;
|
15381
15449
|
};
|
15382
15450
|
/**
|
@@ -15501,6 +15569,13 @@ message.botAgeCollectionMetadata = $root.E2E.BotAgeCollectionMetadata.fromObject
|
|
15501
15569
|
}
|
15502
15570
|
if (object.conversationStarterPromptId != null)
|
15503
15571
|
message.conversationStarterPromptId = String(object.conversationStarterPromptId);
|
15572
|
+
if (object.botResponseId != null)
|
15573
|
+
message.botResponseId = String(object.botResponseId);
|
15574
|
+
if (object.verificationMetadata != null) {
|
15575
|
+
if (typeof object.verificationMetadata !== "object")
|
15576
|
+
throw TypeError(".E2E.BotMetadata.verificationMetadata: object expected");
|
15577
|
+
message.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.fromObject(object.verificationMetadata);
|
15578
|
+
}
|
15504
15579
|
return message;
|
15505
15580
|
};
|
15506
15581
|
/**
|
@@ -15641,6 +15716,16 @@ object.conversationStarterPromptId = message.conversationStarterPromptId;
|
|
15641
15716
|
if (options.oneofs)
|
15642
15717
|
object._conversationStarterPromptId = "conversationStarterPromptId";
|
15643
15718
|
}
|
15719
|
+
if (message.botResponseId != null && message.hasOwnProperty("botResponseId")) {
|
15720
|
+
object.botResponseId = message.botResponseId;
|
15721
|
+
if (options.oneofs)
|
15722
|
+
object._botResponseId = "botResponseId";
|
15723
|
+
}
|
15724
|
+
if (message.verificationMetadata != null && message.hasOwnProperty("verificationMetadata")) {
|
15725
|
+
object.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.toObject(message.verificationMetadata, options);
|
15726
|
+
if (options.oneofs)
|
15727
|
+
object._verificationMetadata = "verificationMetadata";
|
15728
|
+
}
|
15644
15729
|
return object;
|
15645
15730
|
};
|
15646
15731
|
/**
|
@@ -17769,6 +17854,7 @@ case 32:
|
|
17769
17854
|
case 33:
|
17770
17855
|
case 34:
|
17771
17856
|
case 35:
|
17857
|
+
case 36:
|
17772
17858
|
break;
|
17773
17859
|
}
|
17774
17860
|
}
|
@@ -17941,6 +18027,10 @@ case "PROMOTION_MESSAGE":
|
|
17941
18027
|
case 35:
|
17942
18028
|
message.capabilities[i] = 35;
|
17943
18029
|
break;
|
18030
|
+
case "SIMPLIFIED_PROFILE_PAGE":
|
18031
|
+
case 36:
|
18032
|
+
message.capabilities[i] = 36;
|
18033
|
+
break;
|
17944
18034
|
}
|
17945
18035
|
}
|
17946
18036
|
return message;
|
@@ -18031,6 +18121,7 @@ return typeUrlPrefix + "/E2E.BotCapabilityMetadata";
|
|
18031
18121
|
* @property {number} PROACTIVE_MESSAGE=33 PROACTIVE_MESSAGE value
|
18032
18122
|
* @property {number} RICH_RESPONSE_UNIFIED_RESPONSE=34 RICH_RESPONSE_UNIFIED_RESPONSE value
|
18033
18123
|
* @property {number} PROMOTION_MESSAGE=35 PROMOTION_MESSAGE value
|
18124
|
+
* @property {number} SIMPLIFIED_PROFILE_PAGE=36 SIMPLIFIED_PROFILE_PAGE value
|
18034
18125
|
*/
|
18035
18126
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
18036
18127
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -18070,6 +18161,7 @@ values[valuesById[32] = "QUERY_PLAN"] = 32;
|
|
18070
18161
|
values[valuesById[33] = "PROACTIVE_MESSAGE"] = 33;
|
18071
18162
|
values[valuesById[34] = "RICH_RESPONSE_UNIFIED_RESPONSE"] = 34;
|
18072
18163
|
values[valuesById[35] = "PROMOTION_MESSAGE"] = 35;
|
18164
|
+
values[valuesById[36] = "SIMPLIFIED_PROFILE_PAGE"] = 36;
|
18073
18165
|
return values;
|
18074
18166
|
})();
|
18075
18167
|
return BotCapabilityMetadata;
|
@@ -22710,6 +22802,7 @@ E2E.AIRichResponseMessage = (function() {
|
|
22710
22802
|
* @property {E2E.AIRichResponseMessage.AIRichResponseMessageType|null} [messageType] AIRichResponseMessage messageType
|
22711
22803
|
* @property {Array.<E2E.AIRichResponseMessage.IAIRichResponseSubMessage>|null} [submessages] AIRichResponseMessage submessages
|
22712
22804
|
* @property {E2E.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null} [unifiedResponse] AIRichResponseMessage unifiedResponse
|
22805
|
+
* @property {E2E.IContextInfo|null} [contextInfo] AIRichResponseMessage contextInfo
|
22713
22806
|
*/
|
22714
22807
|
/**
|
22715
22808
|
* Constructs a new AIRichResponseMessage.
|
@@ -22747,6 +22840,13 @@ AIRichResponseMessage.prototype.submessages = $util.emptyArray;
|
|
22747
22840
|
* @instance
|
22748
22841
|
*/
|
22749
22842
|
AIRichResponseMessage.prototype.unifiedResponse = null;
|
22843
|
+
/**
|
22844
|
+
* AIRichResponseMessage contextInfo.
|
22845
|
+
* @member {E2E.IContextInfo|null|undefined} contextInfo
|
22846
|
+
* @memberof E2E.AIRichResponseMessage
|
22847
|
+
* @instance
|
22848
|
+
*/
|
22849
|
+
AIRichResponseMessage.prototype.contextInfo = null;
|
22750
22850
|
// OneOf field names bound to virtual getters and setters
|
22751
22851
|
var $oneOfFields;
|
22752
22852
|
/**
|
@@ -22770,6 +22870,16 @@ get: $util.oneOfGetter($oneOfFields = ["unifiedResponse"]),
|
|
22770
22870
|
set: $util.oneOfSetter($oneOfFields)
|
22771
22871
|
});
|
22772
22872
|
/**
|
22873
|
+
* AIRichResponseMessage _contextInfo.
|
22874
|
+
* @member {"contextInfo"|undefined} _contextInfo
|
22875
|
+
* @memberof E2E.AIRichResponseMessage
|
22876
|
+
* @instance
|
22877
|
+
*/
|
22878
|
+
Object.defineProperty(AIRichResponseMessage.prototype, "_contextInfo", {
|
22879
|
+
get: $util.oneOfGetter($oneOfFields = ["contextInfo"]),
|
22880
|
+
set: $util.oneOfSetter($oneOfFields)
|
22881
|
+
});
|
22882
|
+
/**
|
22773
22883
|
* Creates a new AIRichResponseMessage instance using the specified properties.
|
22774
22884
|
* @function create
|
22775
22885
|
* @memberof E2E.AIRichResponseMessage
|
@@ -22799,6 +22909,8 @@ for (var i = 0; i < message.submessages.length; ++i)
|
|
22799
22909
|
$root.E2E.AIRichResponseMessage.AIRichResponseSubMessage.encode(message.submessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
22800
22910
|
if (message.unifiedResponse != null && Object.hasOwnProperty.call(message, "unifiedResponse"))
|
22801
22911
|
$root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.encode(message.unifiedResponse, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
22912
|
+
if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
|
22913
|
+
$root.E2E.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
22802
22914
|
return writer;
|
22803
22915
|
};
|
22804
22916
|
/**
|
@@ -22847,6 +22959,10 @@ case 3: {
|
|
22847
22959
|
message.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.decode(reader, reader.uint32());
|
22848
22960
|
break;
|
22849
22961
|
}
|
22962
|
+
case 4: {
|
22963
|
+
message.contextInfo = $root.E2E.ContextInfo.decode(reader, reader.uint32());
|
22964
|
+
break;
|
22965
|
+
}
|
22850
22966
|
default:
|
22851
22967
|
reader.skipType(tag & 7);
|
22852
22968
|
break;
|
@@ -22908,6 +23024,14 @@ if (error)
|
|
22908
23024
|
return "unifiedResponse." + error;
|
22909
23025
|
}
|
22910
23026
|
}
|
23027
|
+
if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
|
23028
|
+
properties._contextInfo = 1;
|
23029
|
+
{
|
23030
|
+
var error = $root.E2E.ContextInfo.verify(message.contextInfo);
|
23031
|
+
if (error)
|
23032
|
+
return "contextInfo." + error;
|
23033
|
+
}
|
23034
|
+
}
|
22911
23035
|
return null;
|
22912
23036
|
};
|
22913
23037
|
/**
|
@@ -22953,6 +23077,11 @@ if (typeof object.unifiedResponse !== "object")
|
|
22953
23077
|
throw TypeError(".E2E.AIRichResponseMessage.unifiedResponse: object expected");
|
22954
23078
|
message.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.fromObject(object.unifiedResponse);
|
22955
23079
|
}
|
23080
|
+
if (object.contextInfo != null) {
|
23081
|
+
if (typeof object.contextInfo !== "object")
|
23082
|
+
throw TypeError(".E2E.AIRichResponseMessage.contextInfo: object expected");
|
23083
|
+
message.contextInfo = $root.E2E.ContextInfo.fromObject(object.contextInfo);
|
23084
|
+
}
|
22956
23085
|
return message;
|
22957
23086
|
};
|
22958
23087
|
/**
|
@@ -22985,6 +23114,11 @@ object.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedRe
|
|
22985
23114
|
if (options.oneofs)
|
22986
23115
|
object._unifiedResponse = "unifiedResponse";
|
22987
23116
|
}
|
23117
|
+
if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
|
23118
|
+
object.contextInfo = $root.E2E.ContextInfo.toObject(message.contextInfo, options);
|
23119
|
+
if (options.oneofs)
|
23120
|
+
object._contextInfo = "contextInfo";
|
23121
|
+
}
|
22988
23122
|
return object;
|
22989
23123
|
};
|
22990
23124
|
/**
|
@@ -27800,6 +27934,7 @@ AIRichResponseMessage.AIRichResponseTableMetadata = (function() {
|
|
27800
27934
|
* @memberof E2E.AIRichResponseMessage
|
27801
27935
|
* @interface IAIRichResponseTableMetadata
|
27802
27936
|
* @property {Array.<E2E.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow>|null} [rows] AIRichResponseTableMetadata rows
|
27937
|
+
* @property {string|null} [title] AIRichResponseTableMetadata title
|
27803
27938
|
*/
|
27804
27939
|
/**
|
27805
27940
|
* Constructs a new AIRichResponseTableMetadata.
|
@@ -27824,6 +27959,25 @@ this[keys[i]] = properties[keys[i]];
|
|
27824
27959
|
*/
|
27825
27960
|
AIRichResponseTableMetadata.prototype.rows = $util.emptyArray;
|
27826
27961
|
/**
|
27962
|
+
* AIRichResponseTableMetadata title.
|
27963
|
+
* @member {string|null|undefined} title
|
27964
|
+
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
27965
|
+
* @instance
|
27966
|
+
*/
|
27967
|
+
AIRichResponseTableMetadata.prototype.title = null;
|
27968
|
+
// OneOf field names bound to virtual getters and setters
|
27969
|
+
var $oneOfFields;
|
27970
|
+
/**
|
27971
|
+
* AIRichResponseTableMetadata _title.
|
27972
|
+
* @member {"title"|undefined} _title
|
27973
|
+
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
27974
|
+
* @instance
|
27975
|
+
*/
|
27976
|
+
Object.defineProperty(AIRichResponseTableMetadata.prototype, "_title", {
|
27977
|
+
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
27978
|
+
set: $util.oneOfSetter($oneOfFields)
|
27979
|
+
});
|
27980
|
+
/**
|
27827
27981
|
* Creates a new AIRichResponseTableMetadata instance using the specified properties.
|
27828
27982
|
* @function create
|
27829
27983
|
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
@@ -27849,6 +28003,8 @@ writer = $Writer.create();
|
|
27849
28003
|
if (message.rows != null && message.rows.length)
|
27850
28004
|
for (var i = 0; i < message.rows.length; ++i)
|
27851
28005
|
$root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.encode(message.rows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
28006
|
+
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
28007
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
|
27852
28008
|
return writer;
|
27853
28009
|
};
|
27854
28010
|
/**
|
@@ -27889,6 +28045,10 @@ message.rows = [];
|
|
27889
28045
|
message.rows.push($root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.decode(reader, reader.uint32()));
|
27890
28046
|
break;
|
27891
28047
|
}
|
28048
|
+
case 2: {
|
28049
|
+
message.title = reader.string();
|
28050
|
+
break;
|
28051
|
+
}
|
27892
28052
|
default:
|
27893
28053
|
reader.skipType(tag & 7);
|
27894
28054
|
break;
|
@@ -27922,6 +28082,7 @@ return this.decode(reader, reader.uint32());
|
|
27922
28082
|
AIRichResponseTableMetadata.verify = function verify(message) {
|
27923
28083
|
if (typeof message !== "object" || message === null)
|
27924
28084
|
return "object expected";
|
28085
|
+
var properties = {};
|
27925
28086
|
if (message.rows != null && message.hasOwnProperty("rows")) {
|
27926
28087
|
if (!Array.isArray(message.rows))
|
27927
28088
|
return "rows: array expected";
|
@@ -27931,6 +28092,11 @@ if (error)
|
|
27931
28092
|
return "rows." + error;
|
27932
28093
|
}
|
27933
28094
|
}
|
28095
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
28096
|
+
properties._title = 1;
|
28097
|
+
if (!$util.isString(message.title))
|
28098
|
+
return "title: string expected";
|
28099
|
+
}
|
27934
28100
|
return null;
|
27935
28101
|
};
|
27936
28102
|
/**
|
@@ -27955,6 +28121,8 @@ throw TypeError(".E2E.AIRichResponseMessage.AIRichResponseTableMetadata.rows: ob
|
|
27955
28121
|
message.rows[i] = $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.fromObject(object.rows[i]);
|
27956
28122
|
}
|
27957
28123
|
}
|
28124
|
+
if (object.title != null)
|
28125
|
+
message.title = String(object.title);
|
27958
28126
|
return message;
|
27959
28127
|
};
|
27960
28128
|
/**
|
@@ -27977,6 +28145,11 @@ object.rows = [];
|
|
27977
28145
|
for (var j = 0; j < message.rows.length; ++j)
|
27978
28146
|
object.rows[j] = $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.toObject(message.rows[j], options);
|
27979
28147
|
}
|
28148
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
28149
|
+
object.title = message.title;
|
28150
|
+
if (options.oneofs)
|
28151
|
+
object._title = "title";
|
28152
|
+
}
|
27980
28153
|
return object;
|
27981
28154
|
};
|
27982
28155
|
/**
|
@@ -28461,6 +28634,562 @@ return AIRichResponseUnifiedResponse;
|
|
28461
28634
|
})();
|
28462
28635
|
return AIRichResponseMessage;
|
28463
28636
|
})();
|
28637
|
+
E2E.BotSignatureVerificationUseCaseProof = (function() {
|
28638
|
+
/**
|
28639
|
+
* Properties of a BotSignatureVerificationUseCaseProof.
|
28640
|
+
* @memberof E2E
|
28641
|
+
* @interface IBotSignatureVerificationUseCaseProof
|
28642
|
+
* @property {number|null} [version] BotSignatureVerificationUseCaseProof version
|
28643
|
+
* @property {E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null} [useCase] BotSignatureVerificationUseCaseProof useCase
|
28644
|
+
* @property {Uint8Array|null} [signature] BotSignatureVerificationUseCaseProof signature
|
28645
|
+
* @property {Uint8Array|null} [certificateChain] BotSignatureVerificationUseCaseProof certificateChain
|
28646
|
+
*/
|
28647
|
+
/**
|
28648
|
+
* Constructs a new BotSignatureVerificationUseCaseProof.
|
28649
|
+
* @memberof E2E
|
28650
|
+
* @classdesc Represents a BotSignatureVerificationUseCaseProof.
|
28651
|
+
* @implements IBotSignatureVerificationUseCaseProof
|
28652
|
+
* @constructor
|
28653
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof=} [properties] Properties to set
|
28654
|
+
*/
|
28655
|
+
function BotSignatureVerificationUseCaseProof(properties) {
|
28656
|
+
if (properties)
|
28657
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
28658
|
+
if (properties[keys[i]] != null)
|
28659
|
+
this[keys[i]] = properties[keys[i]];
|
28660
|
+
}
|
28661
|
+
/**
|
28662
|
+
* BotSignatureVerificationUseCaseProof version.
|
28663
|
+
* @member {number|null|undefined} version
|
28664
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28665
|
+
* @instance
|
28666
|
+
*/
|
28667
|
+
BotSignatureVerificationUseCaseProof.prototype.version = null;
|
28668
|
+
/**
|
28669
|
+
* BotSignatureVerificationUseCaseProof useCase.
|
28670
|
+
* @member {E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null|undefined} useCase
|
28671
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28672
|
+
* @instance
|
28673
|
+
*/
|
28674
|
+
BotSignatureVerificationUseCaseProof.prototype.useCase = null;
|
28675
|
+
/**
|
28676
|
+
* BotSignatureVerificationUseCaseProof signature.
|
28677
|
+
* @member {Uint8Array|null|undefined} signature
|
28678
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28679
|
+
* @instance
|
28680
|
+
*/
|
28681
|
+
BotSignatureVerificationUseCaseProof.prototype.signature = null;
|
28682
|
+
/**
|
28683
|
+
* BotSignatureVerificationUseCaseProof certificateChain.
|
28684
|
+
* @member {Uint8Array|null|undefined} certificateChain
|
28685
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28686
|
+
* @instance
|
28687
|
+
*/
|
28688
|
+
BotSignatureVerificationUseCaseProof.prototype.certificateChain = null;
|
28689
|
+
// OneOf field names bound to virtual getters and setters
|
28690
|
+
var $oneOfFields;
|
28691
|
+
/**
|
28692
|
+
* BotSignatureVerificationUseCaseProof _version.
|
28693
|
+
* @member {"version"|undefined} _version
|
28694
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28695
|
+
* @instance
|
28696
|
+
*/
|
28697
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_version", {
|
28698
|
+
get: $util.oneOfGetter($oneOfFields = ["version"]),
|
28699
|
+
set: $util.oneOfSetter($oneOfFields)
|
28700
|
+
});
|
28701
|
+
/**
|
28702
|
+
* BotSignatureVerificationUseCaseProof _useCase.
|
28703
|
+
* @member {"useCase"|undefined} _useCase
|
28704
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28705
|
+
* @instance
|
28706
|
+
*/
|
28707
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_useCase", {
|
28708
|
+
get: $util.oneOfGetter($oneOfFields = ["useCase"]),
|
28709
|
+
set: $util.oneOfSetter($oneOfFields)
|
28710
|
+
});
|
28711
|
+
/**
|
28712
|
+
* BotSignatureVerificationUseCaseProof _signature.
|
28713
|
+
* @member {"signature"|undefined} _signature
|
28714
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28715
|
+
* @instance
|
28716
|
+
*/
|
28717
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_signature", {
|
28718
|
+
get: $util.oneOfGetter($oneOfFields = ["signature"]),
|
28719
|
+
set: $util.oneOfSetter($oneOfFields)
|
28720
|
+
});
|
28721
|
+
/**
|
28722
|
+
* BotSignatureVerificationUseCaseProof _certificateChain.
|
28723
|
+
* @member {"certificateChain"|undefined} _certificateChain
|
28724
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28725
|
+
* @instance
|
28726
|
+
*/
|
28727
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_certificateChain", {
|
28728
|
+
get: $util.oneOfGetter($oneOfFields = ["certificateChain"]),
|
28729
|
+
set: $util.oneOfSetter($oneOfFields)
|
28730
|
+
});
|
28731
|
+
/**
|
28732
|
+
* Creates a new BotSignatureVerificationUseCaseProof instance using the specified properties.
|
28733
|
+
* @function create
|
28734
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28735
|
+
* @static
|
28736
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof=} [properties] Properties to set
|
28737
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof instance
|
28738
|
+
*/
|
28739
|
+
BotSignatureVerificationUseCaseProof.create = function create(properties) {
|
28740
|
+
return new BotSignatureVerificationUseCaseProof(properties);
|
28741
|
+
};
|
28742
|
+
/**
|
28743
|
+
* Encodes the specified BotSignatureVerificationUseCaseProof message. Does not implicitly {@link E2E.BotSignatureVerificationUseCaseProof.verify|verify} messages.
|
28744
|
+
* @function encode
|
28745
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28746
|
+
* @static
|
28747
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof message or plain object to encode
|
28748
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
28749
|
+
* @returns {$protobuf.Writer} Writer
|
28750
|
+
*/
|
28751
|
+
BotSignatureVerificationUseCaseProof.encode = function encode(message, writer) {
|
28752
|
+
if (!writer)
|
28753
|
+
writer = $Writer.create();
|
28754
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
28755
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version);
|
28756
|
+
if (message.useCase != null && Object.hasOwnProperty.call(message, "useCase"))
|
28757
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.useCase);
|
28758
|
+
if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
|
28759
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature);
|
28760
|
+
if (message.certificateChain != null && Object.hasOwnProperty.call(message, "certificateChain"))
|
28761
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.certificateChain);
|
28762
|
+
return writer;
|
28763
|
+
};
|
28764
|
+
/**
|
28765
|
+
* Encodes the specified BotSignatureVerificationUseCaseProof message, length delimited. Does not implicitly {@link E2E.BotSignatureVerificationUseCaseProof.verify|verify} messages.
|
28766
|
+
* @function encodeDelimited
|
28767
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28768
|
+
* @static
|
28769
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof message or plain object to encode
|
28770
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
28771
|
+
* @returns {$protobuf.Writer} Writer
|
28772
|
+
*/
|
28773
|
+
BotSignatureVerificationUseCaseProof.encodeDelimited = function encodeDelimited(message, writer) {
|
28774
|
+
return this.encode(message, writer).ldelim();
|
28775
|
+
};
|
28776
|
+
/**
|
28777
|
+
* Decodes a BotSignatureVerificationUseCaseProof message from the specified reader or buffer.
|
28778
|
+
* @function decode
|
28779
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28780
|
+
* @static
|
28781
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
28782
|
+
* @param {number} [length] Message length if known beforehand
|
28783
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
28784
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
28785
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
28786
|
+
*/
|
28787
|
+
BotSignatureVerificationUseCaseProof.decode = function decode(reader, length, error) {
|
28788
|
+
if (!(reader instanceof $Reader))
|
28789
|
+
reader = $Reader.create(reader);
|
28790
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.BotSignatureVerificationUseCaseProof();
|
28791
|
+
while (reader.pos < end) {
|
28792
|
+
var tag = reader.uint32();
|
28793
|
+
if (tag === error)
|
28794
|
+
break;
|
28795
|
+
switch (tag >>> 3) {
|
28796
|
+
case 1: {
|
28797
|
+
message.version = reader.int32();
|
28798
|
+
break;
|
28799
|
+
}
|
28800
|
+
case 2: {
|
28801
|
+
message.useCase = reader.int32();
|
28802
|
+
break;
|
28803
|
+
}
|
28804
|
+
case 3: {
|
28805
|
+
message.signature = reader.bytes();
|
28806
|
+
break;
|
28807
|
+
}
|
28808
|
+
case 4: {
|
28809
|
+
message.certificateChain = reader.bytes();
|
28810
|
+
break;
|
28811
|
+
}
|
28812
|
+
default:
|
28813
|
+
reader.skipType(tag & 7);
|
28814
|
+
break;
|
28815
|
+
}
|
28816
|
+
}
|
28817
|
+
return message;
|
28818
|
+
};
|
28819
|
+
/**
|
28820
|
+
* Decodes a BotSignatureVerificationUseCaseProof message from the specified reader or buffer, length delimited.
|
28821
|
+
* @function decodeDelimited
|
28822
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28823
|
+
* @static
|
28824
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
28825
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
28826
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
28827
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
28828
|
+
*/
|
28829
|
+
BotSignatureVerificationUseCaseProof.decodeDelimited = function decodeDelimited(reader) {
|
28830
|
+
if (!(reader instanceof $Reader))
|
28831
|
+
reader = new $Reader(reader);
|
28832
|
+
return this.decode(reader, reader.uint32());
|
28833
|
+
};
|
28834
|
+
/**
|
28835
|
+
* Verifies a BotSignatureVerificationUseCaseProof message.
|
28836
|
+
* @function verify
|
28837
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28838
|
+
* @static
|
28839
|
+
* @param {Object.<string,*>} message Plain object to verify
|
28840
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
28841
|
+
*/
|
28842
|
+
BotSignatureVerificationUseCaseProof.verify = function verify(message) {
|
28843
|
+
if (typeof message !== "object" || message === null)
|
28844
|
+
return "object expected";
|
28845
|
+
var properties = {};
|
28846
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
28847
|
+
properties._version = 1;
|
28848
|
+
if (!$util.isInteger(message.version))
|
28849
|
+
return "version: integer expected";
|
28850
|
+
}
|
28851
|
+
if (message.useCase != null && message.hasOwnProperty("useCase")) {
|
28852
|
+
properties._useCase = 1;
|
28853
|
+
switch (message.useCase) {
|
28854
|
+
default:
|
28855
|
+
return "useCase: enum value expected";
|
28856
|
+
case 0:
|
28857
|
+
break;
|
28858
|
+
}
|
28859
|
+
}
|
28860
|
+
if (message.signature != null && message.hasOwnProperty("signature")) {
|
28861
|
+
properties._signature = 1;
|
28862
|
+
if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature)))
|
28863
|
+
return "signature: buffer expected";
|
28864
|
+
}
|
28865
|
+
if (message.certificateChain != null && message.hasOwnProperty("certificateChain")) {
|
28866
|
+
properties._certificateChain = 1;
|
28867
|
+
if (!(message.certificateChain && typeof message.certificateChain.length === "number" || $util.isString(message.certificateChain)))
|
28868
|
+
return "certificateChain: buffer expected";
|
28869
|
+
}
|
28870
|
+
return null;
|
28871
|
+
};
|
28872
|
+
/**
|
28873
|
+
* Creates a BotSignatureVerificationUseCaseProof message from a plain object. Also converts values to their respective internal types.
|
28874
|
+
* @function fromObject
|
28875
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28876
|
+
* @static
|
28877
|
+
* @param {Object.<string,*>} object Plain object
|
28878
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
28879
|
+
*/
|
28880
|
+
BotSignatureVerificationUseCaseProof.fromObject = function fromObject(object) {
|
28881
|
+
if (object instanceof $root.E2E.BotSignatureVerificationUseCaseProof)
|
28882
|
+
return object;
|
28883
|
+
var message = new $root.E2E.BotSignatureVerificationUseCaseProof();
|
28884
|
+
if (object.version != null)
|
28885
|
+
message.version = object.version | 0;
|
28886
|
+
switch (object.useCase) {
|
28887
|
+
default:
|
28888
|
+
if (typeof object.useCase === "number") {
|
28889
|
+
message.useCase = object.useCase;
|
28890
|
+
break;
|
28891
|
+
}
|
28892
|
+
break;
|
28893
|
+
case "WA_BOT_MSG":
|
28894
|
+
case 0:
|
28895
|
+
message.useCase = 0;
|
28896
|
+
break;
|
28897
|
+
}
|
28898
|
+
if (object.signature != null)
|
28899
|
+
if (typeof object.signature === "string")
|
28900
|
+
$util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0);
|
28901
|
+
else if (object.signature.length >= 0)
|
28902
|
+
message.signature = object.signature;
|
28903
|
+
if (object.certificateChain != null)
|
28904
|
+
if (typeof object.certificateChain === "string")
|
28905
|
+
$util.base64.decode(object.certificateChain, message.certificateChain = $util.newBuffer($util.base64.length(object.certificateChain)), 0);
|
28906
|
+
else if (object.certificateChain.length >= 0)
|
28907
|
+
message.certificateChain = object.certificateChain;
|
28908
|
+
return message;
|
28909
|
+
};
|
28910
|
+
/**
|
28911
|
+
* Creates a plain object from a BotSignatureVerificationUseCaseProof message. Also converts values to other types if specified.
|
28912
|
+
* @function toObject
|
28913
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28914
|
+
* @static
|
28915
|
+
* @param {E2E.BotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof
|
28916
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
28917
|
+
* @returns {Object.<string,*>} Plain object
|
28918
|
+
*/
|
28919
|
+
BotSignatureVerificationUseCaseProof.toObject = function toObject(message, options) {
|
28920
|
+
if (!options)
|
28921
|
+
options = {};
|
28922
|
+
var object = {};
|
28923
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
28924
|
+
object.version = message.version;
|
28925
|
+
if (options.oneofs)
|
28926
|
+
object._version = "version";
|
28927
|
+
}
|
28928
|
+
if (message.useCase != null && message.hasOwnProperty("useCase")) {
|
28929
|
+
object.useCase = options.enums === String ? $root.E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[message.useCase] === undefined ? message.useCase : $root.E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[message.useCase] : message.useCase;
|
28930
|
+
if (options.oneofs)
|
28931
|
+
object._useCase = "useCase";
|
28932
|
+
}
|
28933
|
+
if (message.signature != null && message.hasOwnProperty("signature")) {
|
28934
|
+
object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature;
|
28935
|
+
if (options.oneofs)
|
28936
|
+
object._signature = "signature";
|
28937
|
+
}
|
28938
|
+
if (message.certificateChain != null && message.hasOwnProperty("certificateChain")) {
|
28939
|
+
object.certificateChain = options.bytes === String ? $util.base64.encode(message.certificateChain, 0, message.certificateChain.length) : options.bytes === Array ? Array.prototype.slice.call(message.certificateChain) : message.certificateChain;
|
28940
|
+
if (options.oneofs)
|
28941
|
+
object._certificateChain = "certificateChain";
|
28942
|
+
}
|
28943
|
+
return object;
|
28944
|
+
};
|
28945
|
+
/**
|
28946
|
+
* Converts this BotSignatureVerificationUseCaseProof to JSON.
|
28947
|
+
* @function toJSON
|
28948
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28949
|
+
* @instance
|
28950
|
+
* @returns {Object.<string,*>} JSON object
|
28951
|
+
*/
|
28952
|
+
BotSignatureVerificationUseCaseProof.prototype.toJSON = function toJSON() {
|
28953
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
28954
|
+
};
|
28955
|
+
/**
|
28956
|
+
* Gets the default type url for BotSignatureVerificationUseCaseProof
|
28957
|
+
* @function getTypeUrl
|
28958
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
28959
|
+
* @static
|
28960
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
28961
|
+
* @returns {string} The default type url
|
28962
|
+
*/
|
28963
|
+
BotSignatureVerificationUseCaseProof.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
28964
|
+
if (typeUrlPrefix === undefined) {
|
28965
|
+
typeUrlPrefix = "type.googleapis.com";
|
28966
|
+
}
|
28967
|
+
return typeUrlPrefix + "/E2E.BotSignatureVerificationUseCaseProof";
|
28968
|
+
};
|
28969
|
+
/**
|
28970
|
+
* BotSignatureUseCase enum.
|
28971
|
+
* @name E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase
|
28972
|
+
* @enum {number}
|
28973
|
+
* @property {number} WA_BOT_MSG=0 WA_BOT_MSG value
|
28974
|
+
*/
|
28975
|
+
BotSignatureVerificationUseCaseProof.BotSignatureUseCase = (function() {
|
28976
|
+
var valuesById = {}, values = Object.create(valuesById);
|
28977
|
+
values[valuesById[0] = "WA_BOT_MSG"] = 0;
|
28978
|
+
return values;
|
28979
|
+
})();
|
28980
|
+
return BotSignatureVerificationUseCaseProof;
|
28981
|
+
})();
|
28982
|
+
E2E.BotSignatureVerificationMetadata = (function() {
|
28983
|
+
/**
|
28984
|
+
* Properties of a BotSignatureVerificationMetadata.
|
28985
|
+
* @memberof E2E
|
28986
|
+
* @interface IBotSignatureVerificationMetadata
|
28987
|
+
* @property {Array.<E2E.IBotSignatureVerificationUseCaseProof>|null} [proofs] BotSignatureVerificationMetadata proofs
|
28988
|
+
*/
|
28989
|
+
/**
|
28990
|
+
* Constructs a new BotSignatureVerificationMetadata.
|
28991
|
+
* @memberof E2E
|
28992
|
+
* @classdesc Represents a BotSignatureVerificationMetadata.
|
28993
|
+
* @implements IBotSignatureVerificationMetadata
|
28994
|
+
* @constructor
|
28995
|
+
* @param {E2E.IBotSignatureVerificationMetadata=} [properties] Properties to set
|
28996
|
+
*/
|
28997
|
+
function BotSignatureVerificationMetadata(properties) {
|
28998
|
+
this.proofs = [];
|
28999
|
+
if (properties)
|
29000
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
29001
|
+
if (properties[keys[i]] != null)
|
29002
|
+
this[keys[i]] = properties[keys[i]];
|
29003
|
+
}
|
29004
|
+
/**
|
29005
|
+
* BotSignatureVerificationMetadata proofs.
|
29006
|
+
* @member {Array.<E2E.IBotSignatureVerificationUseCaseProof>} proofs
|
29007
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29008
|
+
* @instance
|
29009
|
+
*/
|
29010
|
+
BotSignatureVerificationMetadata.prototype.proofs = $util.emptyArray;
|
29011
|
+
/**
|
29012
|
+
* Creates a new BotSignatureVerificationMetadata instance using the specified properties.
|
29013
|
+
* @function create
|
29014
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29015
|
+
* @static
|
29016
|
+
* @param {E2E.IBotSignatureVerificationMetadata=} [properties] Properties to set
|
29017
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata instance
|
29018
|
+
*/
|
29019
|
+
BotSignatureVerificationMetadata.create = function create(properties) {
|
29020
|
+
return new BotSignatureVerificationMetadata(properties);
|
29021
|
+
};
|
29022
|
+
/**
|
29023
|
+
* Encodes the specified BotSignatureVerificationMetadata message. Does not implicitly {@link E2E.BotSignatureVerificationMetadata.verify|verify} messages.
|
29024
|
+
* @function encode
|
29025
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29026
|
+
* @static
|
29027
|
+
* @param {E2E.IBotSignatureVerificationMetadata} message BotSignatureVerificationMetadata message or plain object to encode
|
29028
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
29029
|
+
* @returns {$protobuf.Writer} Writer
|
29030
|
+
*/
|
29031
|
+
BotSignatureVerificationMetadata.encode = function encode(message, writer) {
|
29032
|
+
if (!writer)
|
29033
|
+
writer = $Writer.create();
|
29034
|
+
if (message.proofs != null && message.proofs.length)
|
29035
|
+
for (var i = 0; i < message.proofs.length; ++i)
|
29036
|
+
$root.E2E.BotSignatureVerificationUseCaseProof.encode(message.proofs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
29037
|
+
return writer;
|
29038
|
+
};
|
29039
|
+
/**
|
29040
|
+
* Encodes the specified BotSignatureVerificationMetadata message, length delimited. Does not implicitly {@link E2E.BotSignatureVerificationMetadata.verify|verify} messages.
|
29041
|
+
* @function encodeDelimited
|
29042
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29043
|
+
* @static
|
29044
|
+
* @param {E2E.IBotSignatureVerificationMetadata} message BotSignatureVerificationMetadata message or plain object to encode
|
29045
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
29046
|
+
* @returns {$protobuf.Writer} Writer
|
29047
|
+
*/
|
29048
|
+
BotSignatureVerificationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
29049
|
+
return this.encode(message, writer).ldelim();
|
29050
|
+
};
|
29051
|
+
/**
|
29052
|
+
* Decodes a BotSignatureVerificationMetadata message from the specified reader or buffer.
|
29053
|
+
* @function decode
|
29054
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29055
|
+
* @static
|
29056
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
29057
|
+
* @param {number} [length] Message length if known beforehand
|
29058
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
29059
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
29060
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
29061
|
+
*/
|
29062
|
+
BotSignatureVerificationMetadata.decode = function decode(reader, length, error) {
|
29063
|
+
if (!(reader instanceof $Reader))
|
29064
|
+
reader = $Reader.create(reader);
|
29065
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.BotSignatureVerificationMetadata();
|
29066
|
+
while (reader.pos < end) {
|
29067
|
+
var tag = reader.uint32();
|
29068
|
+
if (tag === error)
|
29069
|
+
break;
|
29070
|
+
switch (tag >>> 3) {
|
29071
|
+
case 1: {
|
29072
|
+
if (!(message.proofs && message.proofs.length))
|
29073
|
+
message.proofs = [];
|
29074
|
+
message.proofs.push($root.E2E.BotSignatureVerificationUseCaseProof.decode(reader, reader.uint32()));
|
29075
|
+
break;
|
29076
|
+
}
|
29077
|
+
default:
|
29078
|
+
reader.skipType(tag & 7);
|
29079
|
+
break;
|
29080
|
+
}
|
29081
|
+
}
|
29082
|
+
return message;
|
29083
|
+
};
|
29084
|
+
/**
|
29085
|
+
* Decodes a BotSignatureVerificationMetadata message from the specified reader or buffer, length delimited.
|
29086
|
+
* @function decodeDelimited
|
29087
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29088
|
+
* @static
|
29089
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
29090
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
29091
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
29092
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
29093
|
+
*/
|
29094
|
+
BotSignatureVerificationMetadata.decodeDelimited = function decodeDelimited(reader) {
|
29095
|
+
if (!(reader instanceof $Reader))
|
29096
|
+
reader = new $Reader(reader);
|
29097
|
+
return this.decode(reader, reader.uint32());
|
29098
|
+
};
|
29099
|
+
/**
|
29100
|
+
* Verifies a BotSignatureVerificationMetadata message.
|
29101
|
+
* @function verify
|
29102
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29103
|
+
* @static
|
29104
|
+
* @param {Object.<string,*>} message Plain object to verify
|
29105
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
29106
|
+
*/
|
29107
|
+
BotSignatureVerificationMetadata.verify = function verify(message) {
|
29108
|
+
if (typeof message !== "object" || message === null)
|
29109
|
+
return "object expected";
|
29110
|
+
if (message.proofs != null && message.hasOwnProperty("proofs")) {
|
29111
|
+
if (!Array.isArray(message.proofs))
|
29112
|
+
return "proofs: array expected";
|
29113
|
+
for (var i = 0; i < message.proofs.length; ++i) {
|
29114
|
+
var error = $root.E2E.BotSignatureVerificationUseCaseProof.verify(message.proofs[i]);
|
29115
|
+
if (error)
|
29116
|
+
return "proofs." + error;
|
29117
|
+
}
|
29118
|
+
}
|
29119
|
+
return null;
|
29120
|
+
};
|
29121
|
+
/**
|
29122
|
+
* Creates a BotSignatureVerificationMetadata message from a plain object. Also converts values to their respective internal types.
|
29123
|
+
* @function fromObject
|
29124
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29125
|
+
* @static
|
29126
|
+
* @param {Object.<string,*>} object Plain object
|
29127
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
29128
|
+
*/
|
29129
|
+
BotSignatureVerificationMetadata.fromObject = function fromObject(object) {
|
29130
|
+
if (object instanceof $root.E2E.BotSignatureVerificationMetadata)
|
29131
|
+
return object;
|
29132
|
+
var message = new $root.E2E.BotSignatureVerificationMetadata();
|
29133
|
+
if (object.proofs) {
|
29134
|
+
if (!Array.isArray(object.proofs))
|
29135
|
+
throw TypeError(".E2E.BotSignatureVerificationMetadata.proofs: array expected");
|
29136
|
+
message.proofs = [];
|
29137
|
+
for (var i = 0; i < object.proofs.length; ++i) {
|
29138
|
+
if (typeof object.proofs[i] !== "object")
|
29139
|
+
throw TypeError(".E2E.BotSignatureVerificationMetadata.proofs: object expected");
|
29140
|
+
message.proofs[i] = $root.E2E.BotSignatureVerificationUseCaseProof.fromObject(object.proofs[i]);
|
29141
|
+
}
|
29142
|
+
}
|
29143
|
+
return message;
|
29144
|
+
};
|
29145
|
+
/**
|
29146
|
+
* Creates a plain object from a BotSignatureVerificationMetadata message. Also converts values to other types if specified.
|
29147
|
+
* @function toObject
|
29148
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29149
|
+
* @static
|
29150
|
+
* @param {E2E.BotSignatureVerificationMetadata} message BotSignatureVerificationMetadata
|
29151
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
29152
|
+
* @returns {Object.<string,*>} Plain object
|
29153
|
+
*/
|
29154
|
+
BotSignatureVerificationMetadata.toObject = function toObject(message, options) {
|
29155
|
+
if (!options)
|
29156
|
+
options = {};
|
29157
|
+
var object = {};
|
29158
|
+
if (options.arrays || options.defaults)
|
29159
|
+
object.proofs = [];
|
29160
|
+
if (message.proofs && message.proofs.length) {
|
29161
|
+
object.proofs = [];
|
29162
|
+
for (var j = 0; j < message.proofs.length; ++j)
|
29163
|
+
object.proofs[j] = $root.E2E.BotSignatureVerificationUseCaseProof.toObject(message.proofs[j], options);
|
29164
|
+
}
|
29165
|
+
return object;
|
29166
|
+
};
|
29167
|
+
/**
|
29168
|
+
* Converts this BotSignatureVerificationMetadata to JSON.
|
29169
|
+
* @function toJSON
|
29170
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29171
|
+
* @instance
|
29172
|
+
* @returns {Object.<string,*>} JSON object
|
29173
|
+
*/
|
29174
|
+
BotSignatureVerificationMetadata.prototype.toJSON = function toJSON() {
|
29175
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
29176
|
+
};
|
29177
|
+
/**
|
29178
|
+
* Gets the default type url for BotSignatureVerificationMetadata
|
29179
|
+
* @function getTypeUrl
|
29180
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
29181
|
+
* @static
|
29182
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
29183
|
+
* @returns {string} The default type url
|
29184
|
+
*/
|
29185
|
+
BotSignatureVerificationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
29186
|
+
if (typeUrlPrefix === undefined) {
|
29187
|
+
typeUrlPrefix = "type.googleapis.com";
|
29188
|
+
}
|
29189
|
+
return typeUrlPrefix + "/E2E.BotSignatureVerificationMetadata";
|
29190
|
+
};
|
29191
|
+
return BotSignatureVerificationMetadata;
|
29192
|
+
})();
|
28464
29193
|
E2E.BotMemoryFact = (function() {
|
28465
29194
|
/**
|
28466
29195
|
* Properties of a BotMemoryFact.
|
@@ -64192,6 +64921,8 @@ Message.LinkPreviewMetadata = (function() {
|
|
64192
64921
|
* @property {E2E.Message.IPaymentLinkMetadata|null} [paymentLinkMetadata] LinkPreviewMetadata paymentLinkMetadata
|
64193
64922
|
* @property {E2E.Message.IURLMetadata|null} [urlMetadata] LinkPreviewMetadata urlMetadata
|
64194
64923
|
* @property {number|null} [fbExperimentId] LinkPreviewMetadata fbExperimentId
|
64924
|
+
* @property {number|null} [linkMediaDuration] LinkPreviewMetadata linkMediaDuration
|
64925
|
+
* @property {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null} [socialMediaPostType] LinkPreviewMetadata socialMediaPostType
|
64195
64926
|
*/
|
64196
64927
|
/**
|
64197
64928
|
* Constructs a new LinkPreviewMetadata.
|
@@ -64228,6 +64959,20 @@ LinkPreviewMetadata.prototype.urlMetadata = null;
|
|
64228
64959
|
* @instance
|
64229
64960
|
*/
|
64230
64961
|
LinkPreviewMetadata.prototype.fbExperimentId = null;
|
64962
|
+
/**
|
64963
|
+
* LinkPreviewMetadata linkMediaDuration.
|
64964
|
+
* @member {number|null|undefined} linkMediaDuration
|
64965
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
64966
|
+
* @instance
|
64967
|
+
*/
|
64968
|
+
LinkPreviewMetadata.prototype.linkMediaDuration = null;
|
64969
|
+
/**
|
64970
|
+
* LinkPreviewMetadata socialMediaPostType.
|
64971
|
+
* @member {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null|undefined} socialMediaPostType
|
64972
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
64973
|
+
* @instance
|
64974
|
+
*/
|
64975
|
+
LinkPreviewMetadata.prototype.socialMediaPostType = null;
|
64231
64976
|
// OneOf field names bound to virtual getters and setters
|
64232
64977
|
var $oneOfFields;
|
64233
64978
|
/**
|
@@ -64261,6 +65006,26 @@ get: $util.oneOfGetter($oneOfFields = ["fbExperimentId"]),
|
|
64261
65006
|
set: $util.oneOfSetter($oneOfFields)
|
64262
65007
|
});
|
64263
65008
|
/**
|
65009
|
+
* LinkPreviewMetadata _linkMediaDuration.
|
65010
|
+
* @member {"linkMediaDuration"|undefined} _linkMediaDuration
|
65011
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
65012
|
+
* @instance
|
65013
|
+
*/
|
65014
|
+
Object.defineProperty(LinkPreviewMetadata.prototype, "_linkMediaDuration", {
|
65015
|
+
get: $util.oneOfGetter($oneOfFields = ["linkMediaDuration"]),
|
65016
|
+
set: $util.oneOfSetter($oneOfFields)
|
65017
|
+
});
|
65018
|
+
/**
|
65019
|
+
* LinkPreviewMetadata _socialMediaPostType.
|
65020
|
+
* @member {"socialMediaPostType"|undefined} _socialMediaPostType
|
65021
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
65022
|
+
* @instance
|
65023
|
+
*/
|
65024
|
+
Object.defineProperty(LinkPreviewMetadata.prototype, "_socialMediaPostType", {
|
65025
|
+
get: $util.oneOfGetter($oneOfFields = ["socialMediaPostType"]),
|
65026
|
+
set: $util.oneOfSetter($oneOfFields)
|
65027
|
+
});
|
65028
|
+
/**
|
64264
65029
|
* Creates a new LinkPreviewMetadata instance using the specified properties.
|
64265
65030
|
* @function create
|
64266
65031
|
* @memberof E2E.Message.LinkPreviewMetadata
|
@@ -64289,6 +65054,10 @@ if (message.urlMetadata != null && Object.hasOwnProperty.call(message, "urlMetad
|
|
64289
65054
|
$root.E2E.Message.URLMetadata.encode(message.urlMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
64290
65055
|
if (message.fbExperimentId != null && Object.hasOwnProperty.call(message, "fbExperimentId"))
|
64291
65056
|
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.fbExperimentId);
|
65057
|
+
if (message.linkMediaDuration != null && Object.hasOwnProperty.call(message, "linkMediaDuration"))
|
65058
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.linkMediaDuration);
|
65059
|
+
if (message.socialMediaPostType != null && Object.hasOwnProperty.call(message, "socialMediaPostType"))
|
65060
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.socialMediaPostType);
|
64292
65061
|
return writer;
|
64293
65062
|
};
|
64294
65063
|
/**
|
@@ -64335,6 +65104,14 @@ case 3: {
|
|
64335
65104
|
message.fbExperimentId = reader.uint32();
|
64336
65105
|
break;
|
64337
65106
|
}
|
65107
|
+
case 4: {
|
65108
|
+
message.linkMediaDuration = reader.uint32();
|
65109
|
+
break;
|
65110
|
+
}
|
65111
|
+
case 5: {
|
65112
|
+
message.socialMediaPostType = reader.int32();
|
65113
|
+
break;
|
65114
|
+
}
|
64338
65115
|
default:
|
64339
65116
|
reader.skipType(tag & 7);
|
64340
65117
|
break;
|
@@ -64390,6 +65167,25 @@ properties._fbExperimentId = 1;
|
|
64390
65167
|
if (!$util.isInteger(message.fbExperimentId))
|
64391
65168
|
return "fbExperimentId: integer expected";
|
64392
65169
|
}
|
65170
|
+
if (message.linkMediaDuration != null && message.hasOwnProperty("linkMediaDuration")) {
|
65171
|
+
properties._linkMediaDuration = 1;
|
65172
|
+
if (!$util.isInteger(message.linkMediaDuration))
|
65173
|
+
return "linkMediaDuration: integer expected";
|
65174
|
+
}
|
65175
|
+
if (message.socialMediaPostType != null && message.hasOwnProperty("socialMediaPostType")) {
|
65176
|
+
properties._socialMediaPostType = 1;
|
65177
|
+
switch (message.socialMediaPostType) {
|
65178
|
+
default:
|
65179
|
+
return "socialMediaPostType: enum value expected";
|
65180
|
+
case 0:
|
65181
|
+
case 1:
|
65182
|
+
case 2:
|
65183
|
+
case 3:
|
65184
|
+
case 4:
|
65185
|
+
case 5:
|
65186
|
+
break;
|
65187
|
+
}
|
65188
|
+
}
|
64393
65189
|
return null;
|
64394
65190
|
};
|
64395
65191
|
/**
|
@@ -64416,6 +65212,40 @@ message.urlMetadata = $root.E2E.Message.URLMetadata.fromObject(object.urlMetadat
|
|
64416
65212
|
}
|
64417
65213
|
if (object.fbExperimentId != null)
|
64418
65214
|
message.fbExperimentId = object.fbExperimentId >>> 0;
|
65215
|
+
if (object.linkMediaDuration != null)
|
65216
|
+
message.linkMediaDuration = object.linkMediaDuration >>> 0;
|
65217
|
+
switch (object.socialMediaPostType) {
|
65218
|
+
default:
|
65219
|
+
if (typeof object.socialMediaPostType === "number") {
|
65220
|
+
message.socialMediaPostType = object.socialMediaPostType;
|
65221
|
+
break;
|
65222
|
+
}
|
65223
|
+
break;
|
65224
|
+
case "NONE":
|
65225
|
+
case 0:
|
65226
|
+
message.socialMediaPostType = 0;
|
65227
|
+
break;
|
65228
|
+
case "REEL":
|
65229
|
+
case 1:
|
65230
|
+
message.socialMediaPostType = 1;
|
65231
|
+
break;
|
65232
|
+
case "LIVE_VIDEO":
|
65233
|
+
case 2:
|
65234
|
+
message.socialMediaPostType = 2;
|
65235
|
+
break;
|
65236
|
+
case "LONG_VIDEO":
|
65237
|
+
case 3:
|
65238
|
+
message.socialMediaPostType = 3;
|
65239
|
+
break;
|
65240
|
+
case "SINGLE_IMAGE":
|
65241
|
+
case 4:
|
65242
|
+
message.socialMediaPostType = 4;
|
65243
|
+
break;
|
65244
|
+
case "CAROUSEL":
|
65245
|
+
case 5:
|
65246
|
+
message.socialMediaPostType = 5;
|
65247
|
+
break;
|
65248
|
+
}
|
64419
65249
|
return message;
|
64420
65250
|
};
|
64421
65251
|
/**
|
@@ -64446,6 +65276,16 @@ object.fbExperimentId = message.fbExperimentId;
|
|
64446
65276
|
if (options.oneofs)
|
64447
65277
|
object._fbExperimentId = "fbExperimentId";
|
64448
65278
|
}
|
65279
|
+
if (message.linkMediaDuration != null && message.hasOwnProperty("linkMediaDuration")) {
|
65280
|
+
object.linkMediaDuration = message.linkMediaDuration;
|
65281
|
+
if (options.oneofs)
|
65282
|
+
object._linkMediaDuration = "linkMediaDuration";
|
65283
|
+
}
|
65284
|
+
if (message.socialMediaPostType != null && message.hasOwnProperty("socialMediaPostType")) {
|
65285
|
+
object.socialMediaPostType = options.enums === String ? $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] === undefined ? message.socialMediaPostType : $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] : message.socialMediaPostType;
|
65286
|
+
if (options.oneofs)
|
65287
|
+
object._socialMediaPostType = "socialMediaPostType";
|
65288
|
+
}
|
64449
65289
|
return object;
|
64450
65290
|
};
|
64451
65291
|
/**
|
@@ -64472,6 +65312,27 @@ typeUrlPrefix = "type.googleapis.com";
|
|
64472
65312
|
}
|
64473
65313
|
return typeUrlPrefix + "/E2E.Message.LinkPreviewMetadata";
|
64474
65314
|
};
|
65315
|
+
/**
|
65316
|
+
* SocialMediaPostType enum.
|
65317
|
+
* @name E2E.Message.LinkPreviewMetadata.SocialMediaPostType
|
65318
|
+
* @enum {number}
|
65319
|
+
* @property {number} NONE=0 NONE value
|
65320
|
+
* @property {number} REEL=1 REEL value
|
65321
|
+
* @property {number} LIVE_VIDEO=2 LIVE_VIDEO value
|
65322
|
+
* @property {number} LONG_VIDEO=3 LONG_VIDEO value
|
65323
|
+
* @property {number} SINGLE_IMAGE=4 SINGLE_IMAGE value
|
65324
|
+
* @property {number} CAROUSEL=5 CAROUSEL value
|
65325
|
+
*/
|
65326
|
+
LinkPreviewMetadata.SocialMediaPostType = (function() {
|
65327
|
+
var valuesById = {}, values = Object.create(valuesById);
|
65328
|
+
values[valuesById[0] = "NONE"] = 0;
|
65329
|
+
values[valuesById[1] = "REEL"] = 1;
|
65330
|
+
values[valuesById[2] = "LIVE_VIDEO"] = 2;
|
65331
|
+
values[valuesById[3] = "LONG_VIDEO"] = 3;
|
65332
|
+
values[valuesById[4] = "SINGLE_IMAGE"] = 4;
|
65333
|
+
values[valuesById[5] = "CAROUSEL"] = 5;
|
65334
|
+
return values;
|
65335
|
+
})();
|
64475
65336
|
return LinkPreviewMetadata;
|
64476
65337
|
})();
|
64477
65338
|
Message.ListMessage = (function() {
|
@@ -72482,6 +73343,7 @@ case 5:
|
|
72482
73343
|
case 6:
|
72483
73344
|
case 7:
|
72484
73345
|
case 8:
|
73346
|
+
case 9:
|
72485
73347
|
break;
|
72486
73348
|
}
|
72487
73349
|
}
|
@@ -72593,6 +73455,10 @@ case "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY":
|
|
72593
73455
|
case 8:
|
72594
73456
|
message.peerDataOperationRequestType = 8;
|
72595
73457
|
break;
|
73458
|
+
case "COMPANION_CANONICAL_USER_NONCE_FETCH":
|
73459
|
+
case 9:
|
73460
|
+
message.peerDataOperationRequestType = 9;
|
73461
|
+
break;
|
72596
73462
|
}
|
72597
73463
|
if (object.requestStickerReupload) {
|
72598
73464
|
if (!Array.isArray(object.requestStickerReupload))
|
@@ -74477,6 +75343,7 @@ case 5:
|
|
74477
75343
|
case 6:
|
74478
75344
|
case 7:
|
74479
75345
|
case 8:
|
75346
|
+
case 9:
|
74480
75347
|
break;
|
74481
75348
|
}
|
74482
75349
|
}
|
@@ -74551,6 +75418,10 @@ case "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY":
|
|
74551
75418
|
case 8:
|
74552
75419
|
message.peerDataOperationRequestType = 8;
|
74553
75420
|
break;
|
75421
|
+
case "COMPANION_CANONICAL_USER_NONCE_FETCH":
|
75422
|
+
case 9:
|
75423
|
+
message.peerDataOperationRequestType = 9;
|
75424
|
+
break;
|
74554
75425
|
}
|
74555
75426
|
if (object.stanzaId != null)
|
74556
75427
|
message.stanzaId = String(object.stanzaId);
|
@@ -74635,6 +75506,7 @@ PeerDataOperationRequestResponseMessage.PeerDataOperationResult = (function() {
|
|
74635
75506
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFullHistorySyncOnDemandRequestResponse|null} [fullHistorySyncOnDemandRequestResponse] PeerDataOperationResult fullHistorySyncOnDemandRequestResponse
|
74636
75507
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionMetaNonceFetchResponse|null} [companionMetaNonceFetchRequestResponse] PeerDataOperationResult companionMetaNonceFetchRequestResponse
|
74637
75508
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ISyncDSnapshotFatalRecoveryResponse|null} [syncdSnapshotFatalRecoveryResponse] PeerDataOperationResult syncdSnapshotFatalRecoveryResponse
|
75509
|
+
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null} [companionCanonicalUserNonceFetchRequestResponse] PeerDataOperationResult companionCanonicalUserNonceFetchRequestResponse
|
74638
75510
|
*/
|
74639
75511
|
/**
|
74640
75512
|
* Constructs a new PeerDataOperationResult.
|
@@ -74706,6 +75578,13 @@ PeerDataOperationResult.prototype.companionMetaNonceFetchRequestResponse = null;
|
|
74706
75578
|
* @instance
|
74707
75579
|
*/
|
74708
75580
|
PeerDataOperationResult.prototype.syncdSnapshotFatalRecoveryResponse = null;
|
75581
|
+
/**
|
75582
|
+
* PeerDataOperationResult companionCanonicalUserNonceFetchRequestResponse.
|
75583
|
+
* @member {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null|undefined} companionCanonicalUserNonceFetchRequestResponse
|
75584
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
75585
|
+
* @instance
|
75586
|
+
*/
|
75587
|
+
PeerDataOperationResult.prototype.companionCanonicalUserNonceFetchRequestResponse = null;
|
74709
75588
|
// OneOf field names bound to virtual getters and setters
|
74710
75589
|
var $oneOfFields;
|
74711
75590
|
/**
|
@@ -74789,6 +75668,16 @@ get: $util.oneOfGetter($oneOfFields = ["syncdSnapshotFatalRecoveryResponse"]),
|
|
74789
75668
|
set: $util.oneOfSetter($oneOfFields)
|
74790
75669
|
});
|
74791
75670
|
/**
|
75671
|
+
* PeerDataOperationResult _companionCanonicalUserNonceFetchRequestResponse.
|
75672
|
+
* @member {"companionCanonicalUserNonceFetchRequestResponse"|undefined} _companionCanonicalUserNonceFetchRequestResponse
|
75673
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
75674
|
+
* @instance
|
75675
|
+
*/
|
75676
|
+
Object.defineProperty(PeerDataOperationResult.prototype, "_companionCanonicalUserNonceFetchRequestResponse", {
|
75677
|
+
get: $util.oneOfGetter($oneOfFields = ["companionCanonicalUserNonceFetchRequestResponse"]),
|
75678
|
+
set: $util.oneOfSetter($oneOfFields)
|
75679
|
+
});
|
75680
|
+
/**
|
74792
75681
|
* Creates a new PeerDataOperationResult instance using the specified properties.
|
74793
75682
|
* @function create
|
74794
75683
|
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
@@ -74827,6 +75716,8 @@ if (message.companionMetaNonceFetchRequestResponse != null && Object.hasOwnPrope
|
|
74827
75716
|
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionMetaNonceFetchResponse.encode(message.companionMetaNonceFetchRequestResponse, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
74828
75717
|
if (message.syncdSnapshotFatalRecoveryResponse != null && Object.hasOwnProperty.call(message, "syncdSnapshotFatalRecoveryResponse"))
|
74829
75718
|
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.encode(message.syncdSnapshotFatalRecoveryResponse, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
75719
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && Object.hasOwnProperty.call(message, "companionCanonicalUserNonceFetchRequestResponse"))
|
75720
|
+
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.encode(message.companionCanonicalUserNonceFetchRequestResponse, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
74830
75721
|
return writer;
|
74831
75722
|
};
|
74832
75723
|
/**
|
@@ -74893,6 +75784,10 @@ case 8: {
|
|
74893
75784
|
message.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.decode(reader, reader.uint32());
|
74894
75785
|
break;
|
74895
75786
|
}
|
75787
|
+
case 9: {
|
75788
|
+
message.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.decode(reader, reader.uint32());
|
75789
|
+
break;
|
75790
|
+
}
|
74896
75791
|
default:
|
74897
75792
|
reader.skipType(tag & 7);
|
74898
75793
|
break;
|
@@ -74995,6 +75890,14 @@ if (error)
|
|
74995
75890
|
return "syncdSnapshotFatalRecoveryResponse." + error;
|
74996
75891
|
}
|
74997
75892
|
}
|
75893
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && message.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) {
|
75894
|
+
properties._companionCanonicalUserNonceFetchRequestResponse = 1;
|
75895
|
+
{
|
75896
|
+
var error = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify(message.companionCanonicalUserNonceFetchRequestResponse);
|
75897
|
+
if (error)
|
75898
|
+
return "companionCanonicalUserNonceFetchRequestResponse." + error;
|
75899
|
+
}
|
75900
|
+
}
|
74998
75901
|
return null;
|
74999
75902
|
};
|
75000
75903
|
/**
|
@@ -75068,6 +75971,11 @@ if (typeof object.syncdSnapshotFatalRecoveryResponse !== "object")
|
|
75068
75971
|
throw TypeError(".E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.syncdSnapshotFatalRecoveryResponse: object expected");
|
75069
75972
|
message.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.fromObject(object.syncdSnapshotFatalRecoveryResponse);
|
75070
75973
|
}
|
75974
|
+
if (object.companionCanonicalUserNonceFetchRequestResponse != null) {
|
75975
|
+
if (typeof object.companionCanonicalUserNonceFetchRequestResponse !== "object")
|
75976
|
+
throw TypeError(".E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.companionCanonicalUserNonceFetchRequestResponse: object expected");
|
75977
|
+
message.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.fromObject(object.companionCanonicalUserNonceFetchRequestResponse);
|
75978
|
+
}
|
75071
75979
|
return message;
|
75072
75980
|
};
|
75073
75981
|
/**
|
@@ -75123,6 +76031,11 @@ object.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationR
|
|
75123
76031
|
if (options.oneofs)
|
75124
76032
|
object._syncdSnapshotFatalRecoveryResponse = "syncdSnapshotFatalRecoveryResponse";
|
75125
76033
|
}
|
76034
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && message.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) {
|
76035
|
+
object.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.toObject(message.companionCanonicalUserNonceFetchRequestResponse, options);
|
76036
|
+
if (options.oneofs)
|
76037
|
+
object._companionCanonicalUserNonceFetchRequestResponse = "companionCanonicalUserNonceFetchRequestResponse";
|
76038
|
+
}
|
75126
76039
|
return object;
|
75127
76040
|
};
|
75128
76041
|
/**
|
@@ -75149,6 +76062,212 @@ typeUrlPrefix = "type.googleapis.com";
|
|
75149
76062
|
}
|
75150
76063
|
return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult";
|
75151
76064
|
};
|
76065
|
+
PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse = (function() {
|
76066
|
+
/**
|
76067
|
+
* Properties of a CompanionCanonicalUserNonceFetchResponse.
|
76068
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
76069
|
+
* @interface ICompanionCanonicalUserNonceFetchResponse
|
76070
|
+
* @property {string|null} [nonce] CompanionCanonicalUserNonceFetchResponse nonce
|
76071
|
+
*/
|
76072
|
+
/**
|
76073
|
+
* Constructs a new CompanionCanonicalUserNonceFetchResponse.
|
76074
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
76075
|
+
* @classdesc Represents a CompanionCanonicalUserNonceFetchResponse.
|
76076
|
+
* @implements ICompanionCanonicalUserNonceFetchResponse
|
76077
|
+
* @constructor
|
76078
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse=} [properties] Properties to set
|
76079
|
+
*/
|
76080
|
+
function CompanionCanonicalUserNonceFetchResponse(properties) {
|
76081
|
+
if (properties)
|
76082
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
76083
|
+
if (properties[keys[i]] != null)
|
76084
|
+
this[keys[i]] = properties[keys[i]];
|
76085
|
+
}
|
76086
|
+
/**
|
76087
|
+
* CompanionCanonicalUserNonceFetchResponse nonce.
|
76088
|
+
* @member {string|null|undefined} nonce
|
76089
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76090
|
+
* @instance
|
76091
|
+
*/
|
76092
|
+
CompanionCanonicalUserNonceFetchResponse.prototype.nonce = null;
|
76093
|
+
// OneOf field names bound to virtual getters and setters
|
76094
|
+
var $oneOfFields;
|
76095
|
+
/**
|
76096
|
+
* CompanionCanonicalUserNonceFetchResponse _nonce.
|
76097
|
+
* @member {"nonce"|undefined} _nonce
|
76098
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76099
|
+
* @instance
|
76100
|
+
*/
|
76101
|
+
Object.defineProperty(CompanionCanonicalUserNonceFetchResponse.prototype, "_nonce", {
|
76102
|
+
get: $util.oneOfGetter($oneOfFields = ["nonce"]),
|
76103
|
+
set: $util.oneOfSetter($oneOfFields)
|
76104
|
+
});
|
76105
|
+
/**
|
76106
|
+
* Creates a new CompanionCanonicalUserNonceFetchResponse instance using the specified properties.
|
76107
|
+
* @function create
|
76108
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76109
|
+
* @static
|
76110
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse=} [properties] Properties to set
|
76111
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse instance
|
76112
|
+
*/
|
76113
|
+
CompanionCanonicalUserNonceFetchResponse.create = function create(properties) {
|
76114
|
+
return new CompanionCanonicalUserNonceFetchResponse(properties);
|
76115
|
+
};
|
76116
|
+
/**
|
76117
|
+
* Encodes the specified CompanionCanonicalUserNonceFetchResponse message. Does not implicitly {@link E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify|verify} messages.
|
76118
|
+
* @function encode
|
76119
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76120
|
+
* @static
|
76121
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse message or plain object to encode
|
76122
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
76123
|
+
* @returns {$protobuf.Writer} Writer
|
76124
|
+
*/
|
76125
|
+
CompanionCanonicalUserNonceFetchResponse.encode = function encode(message, writer) {
|
76126
|
+
if (!writer)
|
76127
|
+
writer = $Writer.create();
|
76128
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
76129
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.nonce);
|
76130
|
+
return writer;
|
76131
|
+
};
|
76132
|
+
/**
|
76133
|
+
* Encodes the specified CompanionCanonicalUserNonceFetchResponse message, length delimited. Does not implicitly {@link E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify|verify} messages.
|
76134
|
+
* @function encodeDelimited
|
76135
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76136
|
+
* @static
|
76137
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse message or plain object to encode
|
76138
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
76139
|
+
* @returns {$protobuf.Writer} Writer
|
76140
|
+
*/
|
76141
|
+
CompanionCanonicalUserNonceFetchResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
76142
|
+
return this.encode(message, writer).ldelim();
|
76143
|
+
};
|
76144
|
+
/**
|
76145
|
+
* Decodes a CompanionCanonicalUserNonceFetchResponse message from the specified reader or buffer.
|
76146
|
+
* @function decode
|
76147
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76148
|
+
* @static
|
76149
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
76150
|
+
* @param {number} [length] Message length if known beforehand
|
76151
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
76152
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
76153
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
76154
|
+
*/
|
76155
|
+
CompanionCanonicalUserNonceFetchResponse.decode = function decode(reader, length, error) {
|
76156
|
+
if (!(reader instanceof $Reader))
|
76157
|
+
reader = $Reader.create(reader);
|
76158
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
|
76159
|
+
while (reader.pos < end) {
|
76160
|
+
var tag = reader.uint32();
|
76161
|
+
if (tag === error)
|
76162
|
+
break;
|
76163
|
+
switch (tag >>> 3) {
|
76164
|
+
case 1: {
|
76165
|
+
message.nonce = reader.string();
|
76166
|
+
break;
|
76167
|
+
}
|
76168
|
+
default:
|
76169
|
+
reader.skipType(tag & 7);
|
76170
|
+
break;
|
76171
|
+
}
|
76172
|
+
}
|
76173
|
+
return message;
|
76174
|
+
};
|
76175
|
+
/**
|
76176
|
+
* Decodes a CompanionCanonicalUserNonceFetchResponse message from the specified reader or buffer, length delimited.
|
76177
|
+
* @function decodeDelimited
|
76178
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76179
|
+
* @static
|
76180
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
76181
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
76182
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
76183
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
76184
|
+
*/
|
76185
|
+
CompanionCanonicalUserNonceFetchResponse.decodeDelimited = function decodeDelimited(reader) {
|
76186
|
+
if (!(reader instanceof $Reader))
|
76187
|
+
reader = new $Reader(reader);
|
76188
|
+
return this.decode(reader, reader.uint32());
|
76189
|
+
};
|
76190
|
+
/**
|
76191
|
+
* Verifies a CompanionCanonicalUserNonceFetchResponse message.
|
76192
|
+
* @function verify
|
76193
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76194
|
+
* @static
|
76195
|
+
* @param {Object.<string,*>} message Plain object to verify
|
76196
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
76197
|
+
*/
|
76198
|
+
CompanionCanonicalUserNonceFetchResponse.verify = function verify(message) {
|
76199
|
+
if (typeof message !== "object" || message === null)
|
76200
|
+
return "object expected";
|
76201
|
+
var properties = {};
|
76202
|
+
if (message.nonce != null && message.hasOwnProperty("nonce")) {
|
76203
|
+
properties._nonce = 1;
|
76204
|
+
if (!$util.isString(message.nonce))
|
76205
|
+
return "nonce: string expected";
|
76206
|
+
}
|
76207
|
+
return null;
|
76208
|
+
};
|
76209
|
+
/**
|
76210
|
+
* Creates a CompanionCanonicalUserNonceFetchResponse message from a plain object. Also converts values to their respective internal types.
|
76211
|
+
* @function fromObject
|
76212
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76213
|
+
* @static
|
76214
|
+
* @param {Object.<string,*>} object Plain object
|
76215
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
76216
|
+
*/
|
76217
|
+
CompanionCanonicalUserNonceFetchResponse.fromObject = function fromObject(object) {
|
76218
|
+
if (object instanceof $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse)
|
76219
|
+
return object;
|
76220
|
+
var message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
|
76221
|
+
if (object.nonce != null)
|
76222
|
+
message.nonce = String(object.nonce);
|
76223
|
+
return message;
|
76224
|
+
};
|
76225
|
+
/**
|
76226
|
+
* Creates a plain object from a CompanionCanonicalUserNonceFetchResponse message. Also converts values to other types if specified.
|
76227
|
+
* @function toObject
|
76228
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76229
|
+
* @static
|
76230
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse
|
76231
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
76232
|
+
* @returns {Object.<string,*>} Plain object
|
76233
|
+
*/
|
76234
|
+
CompanionCanonicalUserNonceFetchResponse.toObject = function toObject(message, options) {
|
76235
|
+
if (!options)
|
76236
|
+
options = {};
|
76237
|
+
var object = {};
|
76238
|
+
if (message.nonce != null && message.hasOwnProperty("nonce")) {
|
76239
|
+
object.nonce = message.nonce;
|
76240
|
+
if (options.oneofs)
|
76241
|
+
object._nonce = "nonce";
|
76242
|
+
}
|
76243
|
+
return object;
|
76244
|
+
};
|
76245
|
+
/**
|
76246
|
+
* Converts this CompanionCanonicalUserNonceFetchResponse to JSON.
|
76247
|
+
* @function toJSON
|
76248
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76249
|
+
* @instance
|
76250
|
+
* @returns {Object.<string,*>} JSON object
|
76251
|
+
*/
|
76252
|
+
CompanionCanonicalUserNonceFetchResponse.prototype.toJSON = function toJSON() {
|
76253
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
76254
|
+
};
|
76255
|
+
/**
|
76256
|
+
* Gets the default type url for CompanionCanonicalUserNonceFetchResponse
|
76257
|
+
* @function getTypeUrl
|
76258
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
76259
|
+
* @static
|
76260
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
76261
|
+
* @returns {string} The default type url
|
76262
|
+
*/
|
76263
|
+
CompanionCanonicalUserNonceFetchResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
76264
|
+
if (typeUrlPrefix === undefined) {
|
76265
|
+
typeUrlPrefix = "type.googleapis.com";
|
76266
|
+
}
|
76267
|
+
return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse";
|
76268
|
+
};
|
76269
|
+
return CompanionCanonicalUserNonceFetchResponse;
|
76270
|
+
})();
|
75152
76271
|
PeerDataOperationResult.CompanionMetaNonceFetchResponse = (function() {
|
75153
76272
|
/**
|
75154
76273
|
* Properties of a CompanionMetaNonceFetchResponse.
|
@@ -77249,6 +78368,7 @@ return PeerDataOperationRequestResponseMessage;
|
|
77249
78368
|
* @property {number} FULL_HISTORY_SYNC_ON_DEMAND=6 FULL_HISTORY_SYNC_ON_DEMAND value
|
77250
78369
|
* @property {number} COMPANION_META_NONCE_FETCH=7 COMPANION_META_NONCE_FETCH value
|
77251
78370
|
* @property {number} COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8 COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY value
|
78371
|
+
* @property {number} COMPANION_CANONICAL_USER_NONCE_FETCH=9 COMPANION_CANONICAL_USER_NONCE_FETCH value
|
77252
78372
|
*/
|
77253
78373
|
Message.PeerDataOperationRequestType = (function() {
|
77254
78374
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -77261,6 +78381,7 @@ values[valuesById[5] = "WAFFLE_LINKING_NONCE_FETCH"] = 5;
|
|
77261
78381
|
values[valuesById[6] = "FULL_HISTORY_SYNC_ON_DEMAND"] = 6;
|
77262
78382
|
values[valuesById[7] = "COMPANION_META_NONCE_FETCH"] = 7;
|
77263
78383
|
values[valuesById[8] = "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY"] = 8;
|
78384
|
+
values[valuesById[9] = "COMPANION_CANONICAL_USER_NONCE_FETCH"] = 9;
|
77264
78385
|
return values;
|
77265
78386
|
})();
|
77266
78387
|
Message.PinInChatMessage = (function() {
|
@@ -94494,6 +95615,7 @@ StatusAttributions.StatusAttribution = (function() {
|
|
94494
95615
|
* @property {StatusAttributions.StatusAttribution.IStatusReshare|null} [statusReshare] StatusAttribution statusReshare
|
94495
95616
|
* @property {StatusAttributions.StatusAttribution.IExternalShare|null} [externalShare] StatusAttribution externalShare
|
94496
95617
|
* @property {StatusAttributions.StatusAttribution.IMusic|null} [music] StatusAttribution music
|
95618
|
+
* @property {StatusAttributions.StatusAttribution.IGroupStatus|null} [groupStatus] StatusAttribution groupStatus
|
94497
95619
|
*/
|
94498
95620
|
/**
|
94499
95621
|
* Constructs a new StatusAttribution.
|
@@ -94544,6 +95666,13 @@ StatusAttribution.prototype.externalShare = null;
|
|
94544
95666
|
* @instance
|
94545
95667
|
*/
|
94546
95668
|
StatusAttribution.prototype.music = null;
|
95669
|
+
/**
|
95670
|
+
* StatusAttribution groupStatus.
|
95671
|
+
* @member {StatusAttributions.StatusAttribution.IGroupStatus|null|undefined} groupStatus
|
95672
|
+
* @memberof StatusAttributions.StatusAttribution
|
95673
|
+
* @instance
|
95674
|
+
*/
|
95675
|
+
StatusAttribution.prototype.groupStatus = null;
|
94547
95676
|
// OneOf field names bound to virtual getters and setters
|
94548
95677
|
var $oneOfFields;
|
94549
95678
|
/**
|
@@ -94568,12 +95697,12 @@ set: $util.oneOfSetter($oneOfFields)
|
|
94568
95697
|
});
|
94569
95698
|
/**
|
94570
95699
|
* StatusAttribution attributionData.
|
94571
|
-
* @member {"statusReshare"|"externalShare"|"music"|undefined} attributionData
|
95700
|
+
* @member {"statusReshare"|"externalShare"|"music"|"groupStatus"|undefined} attributionData
|
94572
95701
|
* @memberof StatusAttributions.StatusAttribution
|
94573
95702
|
* @instance
|
94574
95703
|
*/
|
94575
95704
|
Object.defineProperty(StatusAttribution.prototype, "attributionData", {
|
94576
|
-
get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music"]),
|
95705
|
+
get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music", "groupStatus"]),
|
94577
95706
|
set: $util.oneOfSetter($oneOfFields)
|
94578
95707
|
});
|
94579
95708
|
/**
|
@@ -94609,6 +95738,8 @@ if (message.externalShare != null && Object.hasOwnProperty.call(message, "extern
|
|
94609
95738
|
$root.StatusAttributions.StatusAttribution.ExternalShare.encode(message.externalShare, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
94610
95739
|
if (message.music != null && Object.hasOwnProperty.call(message, "music"))
|
94611
95740
|
$root.StatusAttributions.StatusAttribution.Music.encode(message.music, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
95741
|
+
if (message.groupStatus != null && Object.hasOwnProperty.call(message, "groupStatus"))
|
95742
|
+
$root.StatusAttributions.StatusAttribution.GroupStatus.encode(message.groupStatus, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
94612
95743
|
return writer;
|
94613
95744
|
};
|
94614
95745
|
/**
|
@@ -94663,6 +95794,10 @@ case 5: {
|
|
94663
95794
|
message.music = $root.StatusAttributions.StatusAttribution.Music.decode(reader, reader.uint32());
|
94664
95795
|
break;
|
94665
95796
|
}
|
95797
|
+
case 6: {
|
95798
|
+
message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.decode(reader, reader.uint32());
|
95799
|
+
break;
|
95800
|
+
}
|
94666
95801
|
default:
|
94667
95802
|
reader.skipType(tag & 7);
|
94668
95803
|
break;
|
@@ -94705,6 +95840,8 @@ return "type: enum value expected";
|
|
94705
95840
|
case 0:
|
94706
95841
|
case 1:
|
94707
95842
|
case 2:
|
95843
|
+
case 3:
|
95844
|
+
case 4:
|
94708
95845
|
break;
|
94709
95846
|
}
|
94710
95847
|
}
|
@@ -94741,6 +95878,16 @@ if (error)
|
|
94741
95878
|
return "music." + error;
|
94742
95879
|
}
|
94743
95880
|
}
|
95881
|
+
if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
|
95882
|
+
if (properties.attributionData === 1)
|
95883
|
+
return "attributionData: multiple values";
|
95884
|
+
properties.attributionData = 1;
|
95885
|
+
{
|
95886
|
+
var error = $root.StatusAttributions.StatusAttribution.GroupStatus.verify(message.groupStatus);
|
95887
|
+
if (error)
|
95888
|
+
return "groupStatus." + error;
|
95889
|
+
}
|
95890
|
+
}
|
94744
95891
|
return null;
|
94745
95892
|
};
|
94746
95893
|
/**
|
@@ -94774,6 +95921,14 @@ case "MUSIC":
|
|
94774
95921
|
case 2:
|
94775
95922
|
message.type = 2;
|
94776
95923
|
break;
|
95924
|
+
case "STATUS_MENTION":
|
95925
|
+
case 3:
|
95926
|
+
message.type = 3;
|
95927
|
+
break;
|
95928
|
+
case "GROUP_STATUS":
|
95929
|
+
case 4:
|
95930
|
+
message.type = 4;
|
95931
|
+
break;
|
94777
95932
|
}
|
94778
95933
|
if (object.actionUrl != null)
|
94779
95934
|
message.actionUrl = String(object.actionUrl);
|
@@ -94792,6 +95947,11 @@ if (typeof object.music !== "object")
|
|
94792
95947
|
throw TypeError(".StatusAttributions.StatusAttribution.music: object expected");
|
94793
95948
|
message.music = $root.StatusAttributions.StatusAttribution.Music.fromObject(object.music);
|
94794
95949
|
}
|
95950
|
+
if (object.groupStatus != null) {
|
95951
|
+
if (typeof object.groupStatus !== "object")
|
95952
|
+
throw TypeError(".StatusAttributions.StatusAttribution.groupStatus: object expected");
|
95953
|
+
message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.fromObject(object.groupStatus);
|
95954
|
+
}
|
94795
95955
|
return message;
|
94796
95956
|
};
|
94797
95957
|
/**
|
@@ -94832,6 +95992,11 @@ object.music = $root.StatusAttributions.StatusAttribution.Music.toObject(message
|
|
94832
95992
|
if (options.oneofs)
|
94833
95993
|
object.attributionData = "music";
|
94834
95994
|
}
|
95995
|
+
if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
|
95996
|
+
object.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.toObject(message.groupStatus, options);
|
95997
|
+
if (options.oneofs)
|
95998
|
+
object.attributionData = "groupStatus";
|
95999
|
+
}
|
94835
96000
|
return object;
|
94836
96001
|
};
|
94837
96002
|
/**
|
@@ -95082,6 +96247,8 @@ case 1:
|
|
95082
96247
|
case 2:
|
95083
96248
|
case 3:
|
95084
96249
|
case 4:
|
96250
|
+
case 5:
|
96251
|
+
case 6:
|
95085
96252
|
break;
|
95086
96253
|
}
|
95087
96254
|
}
|
@@ -95138,6 +96305,14 @@ case "SPOTIFY":
|
|
95138
96305
|
case 4:
|
95139
96306
|
message.source = 4;
|
95140
96307
|
break;
|
96308
|
+
case "YOUTUBE":
|
96309
|
+
case 5:
|
96310
|
+
message.source = 5;
|
96311
|
+
break;
|
96312
|
+
case "PINTEREST":
|
96313
|
+
case 6:
|
96314
|
+
message.source = 6;
|
96315
|
+
break;
|
95141
96316
|
}
|
95142
96317
|
if (object.duration != null)
|
95143
96318
|
message.duration = object.duration | 0;
|
@@ -95213,6 +96388,8 @@ return typeUrlPrefix + "/StatusAttributions.StatusAttribution.ExternalShare";
|
|
95213
96388
|
* @property {number} FACEBOOK=2 FACEBOOK value
|
95214
96389
|
* @property {number} MESSENGER=3 MESSENGER value
|
95215
96390
|
* @property {number} SPOTIFY=4 SPOTIFY value
|
96391
|
+
* @property {number} YOUTUBE=5 YOUTUBE value
|
96392
|
+
* @property {number} PINTEREST=6 PINTEREST value
|
95216
96393
|
*/
|
95217
96394
|
ExternalShare.Source = (function() {
|
95218
96395
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -95221,10 +96398,218 @@ values[valuesById[1] = "INSTAGRAM"] = 1;
|
|
95221
96398
|
values[valuesById[2] = "FACEBOOK"] = 2;
|
95222
96399
|
values[valuesById[3] = "MESSENGER"] = 3;
|
95223
96400
|
values[valuesById[4] = "SPOTIFY"] = 4;
|
96401
|
+
values[valuesById[5] = "YOUTUBE"] = 5;
|
96402
|
+
values[valuesById[6] = "PINTEREST"] = 6;
|
95224
96403
|
return values;
|
95225
96404
|
})();
|
95226
96405
|
return ExternalShare;
|
95227
96406
|
})();
|
96407
|
+
StatusAttribution.GroupStatus = (function() {
|
96408
|
+
/**
|
96409
|
+
* Properties of a GroupStatus.
|
96410
|
+
* @memberof StatusAttributions.StatusAttribution
|
96411
|
+
* @interface IGroupStatus
|
96412
|
+
* @property {string|null} [authorJid] GroupStatus authorJid
|
96413
|
+
*/
|
96414
|
+
/**
|
96415
|
+
* Constructs a new GroupStatus.
|
96416
|
+
* @memberof StatusAttributions.StatusAttribution
|
96417
|
+
* @classdesc Represents a GroupStatus.
|
96418
|
+
* @implements IGroupStatus
|
96419
|
+
* @constructor
|
96420
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
|
96421
|
+
*/
|
96422
|
+
function GroupStatus(properties) {
|
96423
|
+
if (properties)
|
96424
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
96425
|
+
if (properties[keys[i]] != null)
|
96426
|
+
this[keys[i]] = properties[keys[i]];
|
96427
|
+
}
|
96428
|
+
/**
|
96429
|
+
* GroupStatus authorJid.
|
96430
|
+
* @member {string|null|undefined} authorJid
|
96431
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96432
|
+
* @instance
|
96433
|
+
*/
|
96434
|
+
GroupStatus.prototype.authorJid = null;
|
96435
|
+
// OneOf field names bound to virtual getters and setters
|
96436
|
+
var $oneOfFields;
|
96437
|
+
/**
|
96438
|
+
* GroupStatus _authorJid.
|
96439
|
+
* @member {"authorJid"|undefined} _authorJid
|
96440
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96441
|
+
* @instance
|
96442
|
+
*/
|
96443
|
+
Object.defineProperty(GroupStatus.prototype, "_authorJid", {
|
96444
|
+
get: $util.oneOfGetter($oneOfFields = ["authorJid"]),
|
96445
|
+
set: $util.oneOfSetter($oneOfFields)
|
96446
|
+
});
|
96447
|
+
/**
|
96448
|
+
* Creates a new GroupStatus instance using the specified properties.
|
96449
|
+
* @function create
|
96450
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96451
|
+
* @static
|
96452
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
|
96453
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus instance
|
96454
|
+
*/
|
96455
|
+
GroupStatus.create = function create(properties) {
|
96456
|
+
return new GroupStatus(properties);
|
96457
|
+
};
|
96458
|
+
/**
|
96459
|
+
* Encodes the specified GroupStatus message. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
|
96460
|
+
* @function encode
|
96461
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96462
|
+
* @static
|
96463
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
|
96464
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
96465
|
+
* @returns {$protobuf.Writer} Writer
|
96466
|
+
*/
|
96467
|
+
GroupStatus.encode = function encode(message, writer) {
|
96468
|
+
if (!writer)
|
96469
|
+
writer = $Writer.create();
|
96470
|
+
if (message.authorJid != null && Object.hasOwnProperty.call(message, "authorJid"))
|
96471
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.authorJid);
|
96472
|
+
return writer;
|
96473
|
+
};
|
96474
|
+
/**
|
96475
|
+
* Encodes the specified GroupStatus message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
|
96476
|
+
* @function encodeDelimited
|
96477
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96478
|
+
* @static
|
96479
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
|
96480
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
96481
|
+
* @returns {$protobuf.Writer} Writer
|
96482
|
+
*/
|
96483
|
+
GroupStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
96484
|
+
return this.encode(message, writer).ldelim();
|
96485
|
+
};
|
96486
|
+
/**
|
96487
|
+
* Decodes a GroupStatus message from the specified reader or buffer.
|
96488
|
+
* @function decode
|
96489
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96490
|
+
* @static
|
96491
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
96492
|
+
* @param {number} [length] Message length if known beforehand
|
96493
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
96494
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
96495
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
96496
|
+
*/
|
96497
|
+
GroupStatus.decode = function decode(reader, length, error) {
|
96498
|
+
if (!(reader instanceof $Reader))
|
96499
|
+
reader = $Reader.create(reader);
|
96500
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
|
96501
|
+
while (reader.pos < end) {
|
96502
|
+
var tag = reader.uint32();
|
96503
|
+
if (tag === error)
|
96504
|
+
break;
|
96505
|
+
switch (tag >>> 3) {
|
96506
|
+
case 1: {
|
96507
|
+
message.authorJid = reader.string();
|
96508
|
+
break;
|
96509
|
+
}
|
96510
|
+
default:
|
96511
|
+
reader.skipType(tag & 7);
|
96512
|
+
break;
|
96513
|
+
}
|
96514
|
+
}
|
96515
|
+
return message;
|
96516
|
+
};
|
96517
|
+
/**
|
96518
|
+
* Decodes a GroupStatus message from the specified reader or buffer, length delimited.
|
96519
|
+
* @function decodeDelimited
|
96520
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96521
|
+
* @static
|
96522
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
96523
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
96524
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
96525
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
96526
|
+
*/
|
96527
|
+
GroupStatus.decodeDelimited = function decodeDelimited(reader) {
|
96528
|
+
if (!(reader instanceof $Reader))
|
96529
|
+
reader = new $Reader(reader);
|
96530
|
+
return this.decode(reader, reader.uint32());
|
96531
|
+
};
|
96532
|
+
/**
|
96533
|
+
* Verifies a GroupStatus message.
|
96534
|
+
* @function verify
|
96535
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96536
|
+
* @static
|
96537
|
+
* @param {Object.<string,*>} message Plain object to verify
|
96538
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
96539
|
+
*/
|
96540
|
+
GroupStatus.verify = function verify(message) {
|
96541
|
+
if (typeof message !== "object" || message === null)
|
96542
|
+
return "object expected";
|
96543
|
+
var properties = {};
|
96544
|
+
if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
|
96545
|
+
properties._authorJid = 1;
|
96546
|
+
if (!$util.isString(message.authorJid))
|
96547
|
+
return "authorJid: string expected";
|
96548
|
+
}
|
96549
|
+
return null;
|
96550
|
+
};
|
96551
|
+
/**
|
96552
|
+
* Creates a GroupStatus message from a plain object. Also converts values to their respective internal types.
|
96553
|
+
* @function fromObject
|
96554
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96555
|
+
* @static
|
96556
|
+
* @param {Object.<string,*>} object Plain object
|
96557
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
96558
|
+
*/
|
96559
|
+
GroupStatus.fromObject = function fromObject(object) {
|
96560
|
+
if (object instanceof $root.StatusAttributions.StatusAttribution.GroupStatus)
|
96561
|
+
return object;
|
96562
|
+
var message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
|
96563
|
+
if (object.authorJid != null)
|
96564
|
+
message.authorJid = String(object.authorJid);
|
96565
|
+
return message;
|
96566
|
+
};
|
96567
|
+
/**
|
96568
|
+
* Creates a plain object from a GroupStatus message. Also converts values to other types if specified.
|
96569
|
+
* @function toObject
|
96570
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96571
|
+
* @static
|
96572
|
+
* @param {StatusAttributions.StatusAttribution.GroupStatus} message GroupStatus
|
96573
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
96574
|
+
* @returns {Object.<string,*>} Plain object
|
96575
|
+
*/
|
96576
|
+
GroupStatus.toObject = function toObject(message, options) {
|
96577
|
+
if (!options)
|
96578
|
+
options = {};
|
96579
|
+
var object = {};
|
96580
|
+
if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
|
96581
|
+
object.authorJid = message.authorJid;
|
96582
|
+
if (options.oneofs)
|
96583
|
+
object._authorJid = "authorJid";
|
96584
|
+
}
|
96585
|
+
return object;
|
96586
|
+
};
|
96587
|
+
/**
|
96588
|
+
* Converts this GroupStatus to JSON.
|
96589
|
+
* @function toJSON
|
96590
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96591
|
+
* @instance
|
96592
|
+
* @returns {Object.<string,*>} JSON object
|
96593
|
+
*/
|
96594
|
+
GroupStatus.prototype.toJSON = function toJSON() {
|
96595
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
96596
|
+
};
|
96597
|
+
/**
|
96598
|
+
* Gets the default type url for GroupStatus
|
96599
|
+
* @function getTypeUrl
|
96600
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
96601
|
+
* @static
|
96602
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
96603
|
+
* @returns {string} The default type url
|
96604
|
+
*/
|
96605
|
+
GroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
96606
|
+
if (typeUrlPrefix === undefined) {
|
96607
|
+
typeUrlPrefix = "type.googleapis.com";
|
96608
|
+
}
|
96609
|
+
return typeUrlPrefix + "/StatusAttributions.StatusAttribution.GroupStatus";
|
96610
|
+
};
|
96611
|
+
return GroupStatus;
|
96612
|
+
})();
|
95228
96613
|
StatusAttribution.Music = (function() {
|
95229
96614
|
/**
|
95230
96615
|
* Properties of a Music.
|
@@ -96226,12 +97611,16 @@ return StatusReshare;
|
|
96226
97611
|
* @property {number} RESHARE=0 RESHARE value
|
96227
97612
|
* @property {number} EXTERNAL_SHARE=1 EXTERNAL_SHARE value
|
96228
97613
|
* @property {number} MUSIC=2 MUSIC value
|
97614
|
+
* @property {number} STATUS_MENTION=3 STATUS_MENTION value
|
97615
|
+
* @property {number} GROUP_STATUS=4 GROUP_STATUS value
|
96229
97616
|
*/
|
96230
97617
|
StatusAttribution.Type = (function() {
|
96231
97618
|
var valuesById = {}, values = Object.create(valuesById);
|
96232
97619
|
values[valuesById[0] = "RESHARE"] = 0;
|
96233
97620
|
values[valuesById[1] = "EXTERNAL_SHARE"] = 1;
|
96234
97621
|
values[valuesById[2] = "MUSIC"] = 2;
|
97622
|
+
values[valuesById[3] = "STATUS_MENTION"] = 3;
|
97623
|
+
values[valuesById[4] = "GROUP_STATUS"] = 4;
|
96235
97624
|
return values;
|
96236
97625
|
})();
|
96237
97626
|
return StatusAttribution;
|
@@ -96252,6 +97641,7 @@ CompanionReg.ClientPairingProps = (function() {
|
|
96252
97641
|
* @interface IClientPairingProps
|
96253
97642
|
* @property {boolean|null} [isChatDbLidMigrated] ClientPairingProps isChatDbLidMigrated
|
96254
97643
|
* @property {boolean|null} [isSyncdPureLidSession] ClientPairingProps isSyncdPureLidSession
|
97644
|
+
* @property {boolean|null} [isSyncdSnapshotRecoveryEnabled] ClientPairingProps isSyncdSnapshotRecoveryEnabled
|
96255
97645
|
*/
|
96256
97646
|
/**
|
96257
97647
|
* Constructs a new ClientPairingProps.
|
@@ -96281,6 +97671,13 @@ ClientPairingProps.prototype.isChatDbLidMigrated = null;
|
|
96281
97671
|
* @instance
|
96282
97672
|
*/
|
96283
97673
|
ClientPairingProps.prototype.isSyncdPureLidSession = null;
|
97674
|
+
/**
|
97675
|
+
* ClientPairingProps isSyncdSnapshotRecoveryEnabled.
|
97676
|
+
* @member {boolean|null|undefined} isSyncdSnapshotRecoveryEnabled
|
97677
|
+
* @memberof CompanionReg.ClientPairingProps
|
97678
|
+
* @instance
|
97679
|
+
*/
|
97680
|
+
ClientPairingProps.prototype.isSyncdSnapshotRecoveryEnabled = null;
|
96284
97681
|
// OneOf field names bound to virtual getters and setters
|
96285
97682
|
var $oneOfFields;
|
96286
97683
|
/**
|
@@ -96304,6 +97701,16 @@ get: $util.oneOfGetter($oneOfFields = ["isSyncdPureLidSession"]),
|
|
96304
97701
|
set: $util.oneOfSetter($oneOfFields)
|
96305
97702
|
});
|
96306
97703
|
/**
|
97704
|
+
* ClientPairingProps _isSyncdSnapshotRecoveryEnabled.
|
97705
|
+
* @member {"isSyncdSnapshotRecoveryEnabled"|undefined} _isSyncdSnapshotRecoveryEnabled
|
97706
|
+
* @memberof CompanionReg.ClientPairingProps
|
97707
|
+
* @instance
|
97708
|
+
*/
|
97709
|
+
Object.defineProperty(ClientPairingProps.prototype, "_isSyncdSnapshotRecoveryEnabled", {
|
97710
|
+
get: $util.oneOfGetter($oneOfFields = ["isSyncdSnapshotRecoveryEnabled"]),
|
97711
|
+
set: $util.oneOfSetter($oneOfFields)
|
97712
|
+
});
|
97713
|
+
/**
|
96307
97714
|
* Creates a new ClientPairingProps instance using the specified properties.
|
96308
97715
|
* @function create
|
96309
97716
|
* @memberof CompanionReg.ClientPairingProps
|
@@ -96330,6 +97737,8 @@ if (message.isChatDbLidMigrated != null && Object.hasOwnProperty.call(message, "
|
|
96330
97737
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isChatDbLidMigrated);
|
96331
97738
|
if (message.isSyncdPureLidSession != null && Object.hasOwnProperty.call(message, "isSyncdPureLidSession"))
|
96332
97739
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSyncdPureLidSession);
|
97740
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && Object.hasOwnProperty.call(message, "isSyncdSnapshotRecoveryEnabled"))
|
97741
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSyncdSnapshotRecoveryEnabled);
|
96333
97742
|
return writer;
|
96334
97743
|
};
|
96335
97744
|
/**
|
@@ -96372,6 +97781,10 @@ case 2: {
|
|
96372
97781
|
message.isSyncdPureLidSession = reader.bool();
|
96373
97782
|
break;
|
96374
97783
|
}
|
97784
|
+
case 3: {
|
97785
|
+
message.isSyncdSnapshotRecoveryEnabled = reader.bool();
|
97786
|
+
break;
|
97787
|
+
}
|
96375
97788
|
default:
|
96376
97789
|
reader.skipType(tag & 7);
|
96377
97790
|
break;
|
@@ -96416,6 +97829,11 @@ properties._isSyncdPureLidSession = 1;
|
|
96416
97829
|
if (typeof message.isSyncdPureLidSession !== "boolean")
|
96417
97830
|
return "isSyncdPureLidSession: boolean expected";
|
96418
97831
|
}
|
97832
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
|
97833
|
+
properties._isSyncdSnapshotRecoveryEnabled = 1;
|
97834
|
+
if (typeof message.isSyncdSnapshotRecoveryEnabled !== "boolean")
|
97835
|
+
return "isSyncdSnapshotRecoveryEnabled: boolean expected";
|
97836
|
+
}
|
96419
97837
|
return null;
|
96420
97838
|
};
|
96421
97839
|
/**
|
@@ -96434,6 +97852,8 @@ if (object.isChatDbLidMigrated != null)
|
|
96434
97852
|
message.isChatDbLidMigrated = Boolean(object.isChatDbLidMigrated);
|
96435
97853
|
if (object.isSyncdPureLidSession != null)
|
96436
97854
|
message.isSyncdPureLidSession = Boolean(object.isSyncdPureLidSession);
|
97855
|
+
if (object.isSyncdSnapshotRecoveryEnabled != null)
|
97856
|
+
message.isSyncdSnapshotRecoveryEnabled = Boolean(object.isSyncdSnapshotRecoveryEnabled);
|
96437
97857
|
return message;
|
96438
97858
|
};
|
96439
97859
|
/**
|
@@ -96459,6 +97879,11 @@ object.isSyncdPureLidSession = message.isSyncdPureLidSession;
|
|
96459
97879
|
if (options.oneofs)
|
96460
97880
|
object._isSyncdPureLidSession = "isSyncdPureLidSession";
|
96461
97881
|
}
|
97882
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
|
97883
|
+
object.isSyncdSnapshotRecoveryEnabled = message.isSyncdSnapshotRecoveryEnabled;
|
97884
|
+
if (options.oneofs)
|
97885
|
+
object._isSyncdSnapshotRecoveryEnabled = "isSyncdSnapshotRecoveryEnabled";
|
97886
|
+
}
|
96462
97887
|
return object;
|
96463
97888
|
};
|
96464
97889
|
/**
|