@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
package/WAProto/Web/Web.js
CHANGED
@@ -25950,6 +25950,7 @@ case 11:
|
|
25950
25950
|
case 12:
|
25951
25951
|
case 13:
|
25952
25952
|
case 14:
|
25953
|
+
case 15:
|
25953
25954
|
break;
|
25954
25955
|
}
|
25955
25956
|
}
|
@@ -26047,6 +26048,10 @@ case "VIEW_ALL_REPLIES":
|
|
26047
26048
|
case 14:
|
26048
26049
|
message.associationType = 14;
|
26049
26050
|
break;
|
26051
|
+
case "STATUS_ADD_YOURS_AI_IMAGINE":
|
26052
|
+
case 15:
|
26053
|
+
message.associationType = 15;
|
26054
|
+
break;
|
26050
26055
|
}
|
26051
26056
|
if (object.parentMessageKey != null) {
|
26052
26057
|
if (typeof object.parentMessageKey !== "object")
|
@@ -26130,6 +26135,7 @@ return typeUrlPrefix + "/E2E.MessageAssociation";
|
|
26130
26135
|
* @property {number} MOTION_PHOTO=12 MOTION_PHOTO value
|
26131
26136
|
* @property {number} STATUS_LINK_ACTION=13 STATUS_LINK_ACTION value
|
26132
26137
|
* @property {number} VIEW_ALL_REPLIES=14 VIEW_ALL_REPLIES value
|
26138
|
+
* @property {number} STATUS_ADD_YOURS_AI_IMAGINE=15 STATUS_ADD_YOURS_AI_IMAGINE value
|
26133
26139
|
*/
|
26134
26140
|
MessageAssociation.AssociationType = (function() {
|
26135
26141
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -26148,6 +26154,7 @@ values[valuesById[11] = "STICKER_ANNOTATION"] = 11;
|
|
26148
26154
|
values[valuesById[12] = "MOTION_PHOTO"] = 12;
|
26149
26155
|
values[valuesById[13] = "STATUS_LINK_ACTION"] = 13;
|
26150
26156
|
values[valuesById[14] = "VIEW_ALL_REPLIES"] = 14;
|
26157
|
+
values[valuesById[15] = "STATUS_ADD_YOURS_AI_IMAGINE"] = 15;
|
26151
26158
|
return values;
|
26152
26159
|
})();
|
26153
26160
|
return MessageAssociation;
|
@@ -26182,6 +26189,8 @@ E2E.BotMetadata = (function() {
|
|
26182
26189
|
* @property {E2E.IBotQuotaMetadata|null} [botQuotaMetadata] BotMetadata botQuotaMetadata
|
26183
26190
|
* @property {E2E.IBotAgeCollectionMetadata|null} [botAgeCollectionMetadata] BotMetadata botAgeCollectionMetadata
|
26184
26191
|
* @property {string|null} [conversationStarterPromptId] BotMetadata conversationStarterPromptId
|
26192
|
+
* @property {string|null} [botResponseId] BotMetadata botResponseId
|
26193
|
+
* @property {E2E.IBotSignatureVerificationMetadata|null} [verificationMetadata] BotMetadata verificationMetadata
|
26185
26194
|
*/
|
26186
26195
|
/**
|
26187
26196
|
* Constructs a new BotMetadata.
|
@@ -26372,6 +26381,20 @@ BotMetadata.prototype.botAgeCollectionMetadata = null;
|
|
26372
26381
|
* @instance
|
26373
26382
|
*/
|
26374
26383
|
BotMetadata.prototype.conversationStarterPromptId = null;
|
26384
|
+
/**
|
26385
|
+
* BotMetadata botResponseId.
|
26386
|
+
* @member {string|null|undefined} botResponseId
|
26387
|
+
* @memberof E2E.BotMetadata
|
26388
|
+
* @instance
|
26389
|
+
*/
|
26390
|
+
BotMetadata.prototype.botResponseId = null;
|
26391
|
+
/**
|
26392
|
+
* BotMetadata verificationMetadata.
|
26393
|
+
* @member {E2E.IBotSignatureVerificationMetadata|null|undefined} verificationMetadata
|
26394
|
+
* @memberof E2E.BotMetadata
|
26395
|
+
* @instance
|
26396
|
+
*/
|
26397
|
+
BotMetadata.prototype.verificationMetadata = null;
|
26375
26398
|
// OneOf field names bound to virtual getters and setters
|
26376
26399
|
var $oneOfFields;
|
26377
26400
|
/**
|
@@ -26625,6 +26648,26 @@ get: $util.oneOfGetter($oneOfFields = ["conversationStarterPromptId"]),
|
|
26625
26648
|
set: $util.oneOfSetter($oneOfFields)
|
26626
26649
|
});
|
26627
26650
|
/**
|
26651
|
+
* BotMetadata _botResponseId.
|
26652
|
+
* @member {"botResponseId"|undefined} _botResponseId
|
26653
|
+
* @memberof E2E.BotMetadata
|
26654
|
+
* @instance
|
26655
|
+
*/
|
26656
|
+
Object.defineProperty(BotMetadata.prototype, "_botResponseId", {
|
26657
|
+
get: $util.oneOfGetter($oneOfFields = ["botResponseId"]),
|
26658
|
+
set: $util.oneOfSetter($oneOfFields)
|
26659
|
+
});
|
26660
|
+
/**
|
26661
|
+
* BotMetadata _verificationMetadata.
|
26662
|
+
* @member {"verificationMetadata"|undefined} _verificationMetadata
|
26663
|
+
* @memberof E2E.BotMetadata
|
26664
|
+
* @instance
|
26665
|
+
*/
|
26666
|
+
Object.defineProperty(BotMetadata.prototype, "_verificationMetadata", {
|
26667
|
+
get: $util.oneOfGetter($oneOfFields = ["verificationMetadata"]),
|
26668
|
+
set: $util.oneOfSetter($oneOfFields)
|
26669
|
+
});
|
26670
|
+
/**
|
26628
26671
|
* Creates a new BotMetadata instance using the specified properties.
|
26629
26672
|
* @function create
|
26630
26673
|
* @memberof E2E.BotMetadata
|
@@ -26697,6 +26740,10 @@ if (message.botAgeCollectionMetadata != null && Object.hasOwnProperty.call(messa
|
|
26697
26740
|
$root.E2E.BotAgeCollectionMetadata.encode(message.botAgeCollectionMetadata, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
|
26698
26741
|
if (message.conversationStarterPromptId != null && Object.hasOwnProperty.call(message, "conversationStarterPromptId"))
|
26699
26742
|
writer.uint32(/* id 25, wireType 2 =*/202).string(message.conversationStarterPromptId);
|
26743
|
+
if (message.botResponseId != null && Object.hasOwnProperty.call(message, "botResponseId"))
|
26744
|
+
writer.uint32(/* id 26, wireType 2 =*/210).string(message.botResponseId);
|
26745
|
+
if (message.verificationMetadata != null && Object.hasOwnProperty.call(message, "verificationMetadata"))
|
26746
|
+
$root.E2E.BotSignatureVerificationMetadata.encode(message.verificationMetadata, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
26700
26747
|
return writer;
|
26701
26748
|
};
|
26702
26749
|
/**
|
@@ -26831,6 +26878,14 @@ case 25: {
|
|
26831
26878
|
message.conversationStarterPromptId = reader.string();
|
26832
26879
|
break;
|
26833
26880
|
}
|
26881
|
+
case 26: {
|
26882
|
+
message.botResponseId = reader.string();
|
26883
|
+
break;
|
26884
|
+
}
|
26885
|
+
case 27: {
|
26886
|
+
message.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.decode(reader, reader.uint32());
|
26887
|
+
break;
|
26888
|
+
}
|
26834
26889
|
default:
|
26835
26890
|
reader.skipType(tag & 7);
|
26836
26891
|
break;
|
@@ -27047,6 +27102,19 @@ properties._conversationStarterPromptId = 1;
|
|
27047
27102
|
if (!$util.isString(message.conversationStarterPromptId))
|
27048
27103
|
return "conversationStarterPromptId: string expected";
|
27049
27104
|
}
|
27105
|
+
if (message.botResponseId != null && message.hasOwnProperty("botResponseId")) {
|
27106
|
+
properties._botResponseId = 1;
|
27107
|
+
if (!$util.isString(message.botResponseId))
|
27108
|
+
return "botResponseId: string expected";
|
27109
|
+
}
|
27110
|
+
if (message.verificationMetadata != null && message.hasOwnProperty("verificationMetadata")) {
|
27111
|
+
properties._verificationMetadata = 1;
|
27112
|
+
{
|
27113
|
+
var error = $root.E2E.BotSignatureVerificationMetadata.verify(message.verificationMetadata);
|
27114
|
+
if (error)
|
27115
|
+
return "verificationMetadata." + error;
|
27116
|
+
}
|
27117
|
+
}
|
27050
27118
|
return null;
|
27051
27119
|
};
|
27052
27120
|
/**
|
@@ -27171,6 +27239,13 @@ message.botAgeCollectionMetadata = $root.E2E.BotAgeCollectionMetadata.fromObject
|
|
27171
27239
|
}
|
27172
27240
|
if (object.conversationStarterPromptId != null)
|
27173
27241
|
message.conversationStarterPromptId = String(object.conversationStarterPromptId);
|
27242
|
+
if (object.botResponseId != null)
|
27243
|
+
message.botResponseId = String(object.botResponseId);
|
27244
|
+
if (object.verificationMetadata != null) {
|
27245
|
+
if (typeof object.verificationMetadata !== "object")
|
27246
|
+
throw TypeError(".E2E.BotMetadata.verificationMetadata: object expected");
|
27247
|
+
message.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.fromObject(object.verificationMetadata);
|
27248
|
+
}
|
27174
27249
|
return message;
|
27175
27250
|
};
|
27176
27251
|
/**
|
@@ -27311,6 +27386,16 @@ object.conversationStarterPromptId = message.conversationStarterPromptId;
|
|
27311
27386
|
if (options.oneofs)
|
27312
27387
|
object._conversationStarterPromptId = "conversationStarterPromptId";
|
27313
27388
|
}
|
27389
|
+
if (message.botResponseId != null && message.hasOwnProperty("botResponseId")) {
|
27390
|
+
object.botResponseId = message.botResponseId;
|
27391
|
+
if (options.oneofs)
|
27392
|
+
object._botResponseId = "botResponseId";
|
27393
|
+
}
|
27394
|
+
if (message.verificationMetadata != null && message.hasOwnProperty("verificationMetadata")) {
|
27395
|
+
object.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.toObject(message.verificationMetadata, options);
|
27396
|
+
if (options.oneofs)
|
27397
|
+
object._verificationMetadata = "verificationMetadata";
|
27398
|
+
}
|
27314
27399
|
return object;
|
27315
27400
|
};
|
27316
27401
|
/**
|
@@ -29439,6 +29524,7 @@ case 32:
|
|
29439
29524
|
case 33:
|
29440
29525
|
case 34:
|
29441
29526
|
case 35:
|
29527
|
+
case 36:
|
29442
29528
|
break;
|
29443
29529
|
}
|
29444
29530
|
}
|
@@ -29611,6 +29697,10 @@ case "PROMOTION_MESSAGE":
|
|
29611
29697
|
case 35:
|
29612
29698
|
message.capabilities[i] = 35;
|
29613
29699
|
break;
|
29700
|
+
case "SIMPLIFIED_PROFILE_PAGE":
|
29701
|
+
case 36:
|
29702
|
+
message.capabilities[i] = 36;
|
29703
|
+
break;
|
29614
29704
|
}
|
29615
29705
|
}
|
29616
29706
|
return message;
|
@@ -29701,6 +29791,7 @@ return typeUrlPrefix + "/E2E.BotCapabilityMetadata";
|
|
29701
29791
|
* @property {number} PROACTIVE_MESSAGE=33 PROACTIVE_MESSAGE value
|
29702
29792
|
* @property {number} RICH_RESPONSE_UNIFIED_RESPONSE=34 RICH_RESPONSE_UNIFIED_RESPONSE value
|
29703
29793
|
* @property {number} PROMOTION_MESSAGE=35 PROMOTION_MESSAGE value
|
29794
|
+
* @property {number} SIMPLIFIED_PROFILE_PAGE=36 SIMPLIFIED_PROFILE_PAGE value
|
29704
29795
|
*/
|
29705
29796
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
29706
29797
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -29740,6 +29831,7 @@ values[valuesById[32] = "QUERY_PLAN"] = 32;
|
|
29740
29831
|
values[valuesById[33] = "PROACTIVE_MESSAGE"] = 33;
|
29741
29832
|
values[valuesById[34] = "RICH_RESPONSE_UNIFIED_RESPONSE"] = 34;
|
29742
29833
|
values[valuesById[35] = "PROMOTION_MESSAGE"] = 35;
|
29834
|
+
values[valuesById[36] = "SIMPLIFIED_PROFILE_PAGE"] = 36;
|
29743
29835
|
return values;
|
29744
29836
|
})();
|
29745
29837
|
return BotCapabilityMetadata;
|
@@ -34380,6 +34472,7 @@ E2E.AIRichResponseMessage = (function() {
|
|
34380
34472
|
* @property {E2E.AIRichResponseMessage.AIRichResponseMessageType|null} [messageType] AIRichResponseMessage messageType
|
34381
34473
|
* @property {Array.<E2E.AIRichResponseMessage.IAIRichResponseSubMessage>|null} [submessages] AIRichResponseMessage submessages
|
34382
34474
|
* @property {E2E.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null} [unifiedResponse] AIRichResponseMessage unifiedResponse
|
34475
|
+
* @property {E2E.IContextInfo|null} [contextInfo] AIRichResponseMessage contextInfo
|
34383
34476
|
*/
|
34384
34477
|
/**
|
34385
34478
|
* Constructs a new AIRichResponseMessage.
|
@@ -34417,6 +34510,13 @@ AIRichResponseMessage.prototype.submessages = $util.emptyArray;
|
|
34417
34510
|
* @instance
|
34418
34511
|
*/
|
34419
34512
|
AIRichResponseMessage.prototype.unifiedResponse = null;
|
34513
|
+
/**
|
34514
|
+
* AIRichResponseMessage contextInfo.
|
34515
|
+
* @member {E2E.IContextInfo|null|undefined} contextInfo
|
34516
|
+
* @memberof E2E.AIRichResponseMessage
|
34517
|
+
* @instance
|
34518
|
+
*/
|
34519
|
+
AIRichResponseMessage.prototype.contextInfo = null;
|
34420
34520
|
// OneOf field names bound to virtual getters and setters
|
34421
34521
|
var $oneOfFields;
|
34422
34522
|
/**
|
@@ -34440,6 +34540,16 @@ get: $util.oneOfGetter($oneOfFields = ["unifiedResponse"]),
|
|
34440
34540
|
set: $util.oneOfSetter($oneOfFields)
|
34441
34541
|
});
|
34442
34542
|
/**
|
34543
|
+
* AIRichResponseMessage _contextInfo.
|
34544
|
+
* @member {"contextInfo"|undefined} _contextInfo
|
34545
|
+
* @memberof E2E.AIRichResponseMessage
|
34546
|
+
* @instance
|
34547
|
+
*/
|
34548
|
+
Object.defineProperty(AIRichResponseMessage.prototype, "_contextInfo", {
|
34549
|
+
get: $util.oneOfGetter($oneOfFields = ["contextInfo"]),
|
34550
|
+
set: $util.oneOfSetter($oneOfFields)
|
34551
|
+
});
|
34552
|
+
/**
|
34443
34553
|
* Creates a new AIRichResponseMessage instance using the specified properties.
|
34444
34554
|
* @function create
|
34445
34555
|
* @memberof E2E.AIRichResponseMessage
|
@@ -34469,6 +34579,8 @@ for (var i = 0; i < message.submessages.length; ++i)
|
|
34469
34579
|
$root.E2E.AIRichResponseMessage.AIRichResponseSubMessage.encode(message.submessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
34470
34580
|
if (message.unifiedResponse != null && Object.hasOwnProperty.call(message, "unifiedResponse"))
|
34471
34581
|
$root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.encode(message.unifiedResponse, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
34582
|
+
if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
|
34583
|
+
$root.E2E.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
34472
34584
|
return writer;
|
34473
34585
|
};
|
34474
34586
|
/**
|
@@ -34517,6 +34629,10 @@ case 3: {
|
|
34517
34629
|
message.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.decode(reader, reader.uint32());
|
34518
34630
|
break;
|
34519
34631
|
}
|
34632
|
+
case 4: {
|
34633
|
+
message.contextInfo = $root.E2E.ContextInfo.decode(reader, reader.uint32());
|
34634
|
+
break;
|
34635
|
+
}
|
34520
34636
|
default:
|
34521
34637
|
reader.skipType(tag & 7);
|
34522
34638
|
break;
|
@@ -34578,6 +34694,14 @@ if (error)
|
|
34578
34694
|
return "unifiedResponse." + error;
|
34579
34695
|
}
|
34580
34696
|
}
|
34697
|
+
if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
|
34698
|
+
properties._contextInfo = 1;
|
34699
|
+
{
|
34700
|
+
var error = $root.E2E.ContextInfo.verify(message.contextInfo);
|
34701
|
+
if (error)
|
34702
|
+
return "contextInfo." + error;
|
34703
|
+
}
|
34704
|
+
}
|
34581
34705
|
return null;
|
34582
34706
|
};
|
34583
34707
|
/**
|
@@ -34623,6 +34747,11 @@ if (typeof object.unifiedResponse !== "object")
|
|
34623
34747
|
throw TypeError(".E2E.AIRichResponseMessage.unifiedResponse: object expected");
|
34624
34748
|
message.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.fromObject(object.unifiedResponse);
|
34625
34749
|
}
|
34750
|
+
if (object.contextInfo != null) {
|
34751
|
+
if (typeof object.contextInfo !== "object")
|
34752
|
+
throw TypeError(".E2E.AIRichResponseMessage.contextInfo: object expected");
|
34753
|
+
message.contextInfo = $root.E2E.ContextInfo.fromObject(object.contextInfo);
|
34754
|
+
}
|
34626
34755
|
return message;
|
34627
34756
|
};
|
34628
34757
|
/**
|
@@ -34655,6 +34784,11 @@ object.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedRe
|
|
34655
34784
|
if (options.oneofs)
|
34656
34785
|
object._unifiedResponse = "unifiedResponse";
|
34657
34786
|
}
|
34787
|
+
if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
|
34788
|
+
object.contextInfo = $root.E2E.ContextInfo.toObject(message.contextInfo, options);
|
34789
|
+
if (options.oneofs)
|
34790
|
+
object._contextInfo = "contextInfo";
|
34791
|
+
}
|
34658
34792
|
return object;
|
34659
34793
|
};
|
34660
34794
|
/**
|
@@ -39470,6 +39604,7 @@ AIRichResponseMessage.AIRichResponseTableMetadata = (function() {
|
|
39470
39604
|
* @memberof E2E.AIRichResponseMessage
|
39471
39605
|
* @interface IAIRichResponseTableMetadata
|
39472
39606
|
* @property {Array.<E2E.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow>|null} [rows] AIRichResponseTableMetadata rows
|
39607
|
+
* @property {string|null} [title] AIRichResponseTableMetadata title
|
39473
39608
|
*/
|
39474
39609
|
/**
|
39475
39610
|
* Constructs a new AIRichResponseTableMetadata.
|
@@ -39494,6 +39629,25 @@ this[keys[i]] = properties[keys[i]];
|
|
39494
39629
|
*/
|
39495
39630
|
AIRichResponseTableMetadata.prototype.rows = $util.emptyArray;
|
39496
39631
|
/**
|
39632
|
+
* AIRichResponseTableMetadata title.
|
39633
|
+
* @member {string|null|undefined} title
|
39634
|
+
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
39635
|
+
* @instance
|
39636
|
+
*/
|
39637
|
+
AIRichResponseTableMetadata.prototype.title = null;
|
39638
|
+
// OneOf field names bound to virtual getters and setters
|
39639
|
+
var $oneOfFields;
|
39640
|
+
/**
|
39641
|
+
* AIRichResponseTableMetadata _title.
|
39642
|
+
* @member {"title"|undefined} _title
|
39643
|
+
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
39644
|
+
* @instance
|
39645
|
+
*/
|
39646
|
+
Object.defineProperty(AIRichResponseTableMetadata.prototype, "_title", {
|
39647
|
+
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
39648
|
+
set: $util.oneOfSetter($oneOfFields)
|
39649
|
+
});
|
39650
|
+
/**
|
39497
39651
|
* Creates a new AIRichResponseTableMetadata instance using the specified properties.
|
39498
39652
|
* @function create
|
39499
39653
|
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
@@ -39519,6 +39673,8 @@ writer = $Writer.create();
|
|
39519
39673
|
if (message.rows != null && message.rows.length)
|
39520
39674
|
for (var i = 0; i < message.rows.length; ++i)
|
39521
39675
|
$root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.encode(message.rows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
39676
|
+
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
39677
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
|
39522
39678
|
return writer;
|
39523
39679
|
};
|
39524
39680
|
/**
|
@@ -39559,6 +39715,10 @@ message.rows = [];
|
|
39559
39715
|
message.rows.push($root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.decode(reader, reader.uint32()));
|
39560
39716
|
break;
|
39561
39717
|
}
|
39718
|
+
case 2: {
|
39719
|
+
message.title = reader.string();
|
39720
|
+
break;
|
39721
|
+
}
|
39562
39722
|
default:
|
39563
39723
|
reader.skipType(tag & 7);
|
39564
39724
|
break;
|
@@ -39592,6 +39752,7 @@ return this.decode(reader, reader.uint32());
|
|
39592
39752
|
AIRichResponseTableMetadata.verify = function verify(message) {
|
39593
39753
|
if (typeof message !== "object" || message === null)
|
39594
39754
|
return "object expected";
|
39755
|
+
var properties = {};
|
39595
39756
|
if (message.rows != null && message.hasOwnProperty("rows")) {
|
39596
39757
|
if (!Array.isArray(message.rows))
|
39597
39758
|
return "rows: array expected";
|
@@ -39601,6 +39762,11 @@ if (error)
|
|
39601
39762
|
return "rows." + error;
|
39602
39763
|
}
|
39603
39764
|
}
|
39765
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
39766
|
+
properties._title = 1;
|
39767
|
+
if (!$util.isString(message.title))
|
39768
|
+
return "title: string expected";
|
39769
|
+
}
|
39604
39770
|
return null;
|
39605
39771
|
};
|
39606
39772
|
/**
|
@@ -39625,6 +39791,8 @@ throw TypeError(".E2E.AIRichResponseMessage.AIRichResponseTableMetadata.rows: ob
|
|
39625
39791
|
message.rows[i] = $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.fromObject(object.rows[i]);
|
39626
39792
|
}
|
39627
39793
|
}
|
39794
|
+
if (object.title != null)
|
39795
|
+
message.title = String(object.title);
|
39628
39796
|
return message;
|
39629
39797
|
};
|
39630
39798
|
/**
|
@@ -39647,6 +39815,11 @@ object.rows = [];
|
|
39647
39815
|
for (var j = 0; j < message.rows.length; ++j)
|
39648
39816
|
object.rows[j] = $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.toObject(message.rows[j], options);
|
39649
39817
|
}
|
39818
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
39819
|
+
object.title = message.title;
|
39820
|
+
if (options.oneofs)
|
39821
|
+
object._title = "title";
|
39822
|
+
}
|
39650
39823
|
return object;
|
39651
39824
|
};
|
39652
39825
|
/**
|
@@ -40131,6 +40304,562 @@ return AIRichResponseUnifiedResponse;
|
|
40131
40304
|
})();
|
40132
40305
|
return AIRichResponseMessage;
|
40133
40306
|
})();
|
40307
|
+
E2E.BotSignatureVerificationUseCaseProof = (function() {
|
40308
|
+
/**
|
40309
|
+
* Properties of a BotSignatureVerificationUseCaseProof.
|
40310
|
+
* @memberof E2E
|
40311
|
+
* @interface IBotSignatureVerificationUseCaseProof
|
40312
|
+
* @property {number|null} [version] BotSignatureVerificationUseCaseProof version
|
40313
|
+
* @property {E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null} [useCase] BotSignatureVerificationUseCaseProof useCase
|
40314
|
+
* @property {Uint8Array|null} [signature] BotSignatureVerificationUseCaseProof signature
|
40315
|
+
* @property {Uint8Array|null} [certificateChain] BotSignatureVerificationUseCaseProof certificateChain
|
40316
|
+
*/
|
40317
|
+
/**
|
40318
|
+
* Constructs a new BotSignatureVerificationUseCaseProof.
|
40319
|
+
* @memberof E2E
|
40320
|
+
* @classdesc Represents a BotSignatureVerificationUseCaseProof.
|
40321
|
+
* @implements IBotSignatureVerificationUseCaseProof
|
40322
|
+
* @constructor
|
40323
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof=} [properties] Properties to set
|
40324
|
+
*/
|
40325
|
+
function BotSignatureVerificationUseCaseProof(properties) {
|
40326
|
+
if (properties)
|
40327
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
40328
|
+
if (properties[keys[i]] != null)
|
40329
|
+
this[keys[i]] = properties[keys[i]];
|
40330
|
+
}
|
40331
|
+
/**
|
40332
|
+
* BotSignatureVerificationUseCaseProof version.
|
40333
|
+
* @member {number|null|undefined} version
|
40334
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40335
|
+
* @instance
|
40336
|
+
*/
|
40337
|
+
BotSignatureVerificationUseCaseProof.prototype.version = null;
|
40338
|
+
/**
|
40339
|
+
* BotSignatureVerificationUseCaseProof useCase.
|
40340
|
+
* @member {E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null|undefined} useCase
|
40341
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40342
|
+
* @instance
|
40343
|
+
*/
|
40344
|
+
BotSignatureVerificationUseCaseProof.prototype.useCase = null;
|
40345
|
+
/**
|
40346
|
+
* BotSignatureVerificationUseCaseProof signature.
|
40347
|
+
* @member {Uint8Array|null|undefined} signature
|
40348
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40349
|
+
* @instance
|
40350
|
+
*/
|
40351
|
+
BotSignatureVerificationUseCaseProof.prototype.signature = null;
|
40352
|
+
/**
|
40353
|
+
* BotSignatureVerificationUseCaseProof certificateChain.
|
40354
|
+
* @member {Uint8Array|null|undefined} certificateChain
|
40355
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40356
|
+
* @instance
|
40357
|
+
*/
|
40358
|
+
BotSignatureVerificationUseCaseProof.prototype.certificateChain = null;
|
40359
|
+
// OneOf field names bound to virtual getters and setters
|
40360
|
+
var $oneOfFields;
|
40361
|
+
/**
|
40362
|
+
* BotSignatureVerificationUseCaseProof _version.
|
40363
|
+
* @member {"version"|undefined} _version
|
40364
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40365
|
+
* @instance
|
40366
|
+
*/
|
40367
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_version", {
|
40368
|
+
get: $util.oneOfGetter($oneOfFields = ["version"]),
|
40369
|
+
set: $util.oneOfSetter($oneOfFields)
|
40370
|
+
});
|
40371
|
+
/**
|
40372
|
+
* BotSignatureVerificationUseCaseProof _useCase.
|
40373
|
+
* @member {"useCase"|undefined} _useCase
|
40374
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40375
|
+
* @instance
|
40376
|
+
*/
|
40377
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_useCase", {
|
40378
|
+
get: $util.oneOfGetter($oneOfFields = ["useCase"]),
|
40379
|
+
set: $util.oneOfSetter($oneOfFields)
|
40380
|
+
});
|
40381
|
+
/**
|
40382
|
+
* BotSignatureVerificationUseCaseProof _signature.
|
40383
|
+
* @member {"signature"|undefined} _signature
|
40384
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40385
|
+
* @instance
|
40386
|
+
*/
|
40387
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_signature", {
|
40388
|
+
get: $util.oneOfGetter($oneOfFields = ["signature"]),
|
40389
|
+
set: $util.oneOfSetter($oneOfFields)
|
40390
|
+
});
|
40391
|
+
/**
|
40392
|
+
* BotSignatureVerificationUseCaseProof _certificateChain.
|
40393
|
+
* @member {"certificateChain"|undefined} _certificateChain
|
40394
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40395
|
+
* @instance
|
40396
|
+
*/
|
40397
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_certificateChain", {
|
40398
|
+
get: $util.oneOfGetter($oneOfFields = ["certificateChain"]),
|
40399
|
+
set: $util.oneOfSetter($oneOfFields)
|
40400
|
+
});
|
40401
|
+
/**
|
40402
|
+
* Creates a new BotSignatureVerificationUseCaseProof instance using the specified properties.
|
40403
|
+
* @function create
|
40404
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40405
|
+
* @static
|
40406
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof=} [properties] Properties to set
|
40407
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof instance
|
40408
|
+
*/
|
40409
|
+
BotSignatureVerificationUseCaseProof.create = function create(properties) {
|
40410
|
+
return new BotSignatureVerificationUseCaseProof(properties);
|
40411
|
+
};
|
40412
|
+
/**
|
40413
|
+
* Encodes the specified BotSignatureVerificationUseCaseProof message. Does not implicitly {@link E2E.BotSignatureVerificationUseCaseProof.verify|verify} messages.
|
40414
|
+
* @function encode
|
40415
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40416
|
+
* @static
|
40417
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof message or plain object to encode
|
40418
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
40419
|
+
* @returns {$protobuf.Writer} Writer
|
40420
|
+
*/
|
40421
|
+
BotSignatureVerificationUseCaseProof.encode = function encode(message, writer) {
|
40422
|
+
if (!writer)
|
40423
|
+
writer = $Writer.create();
|
40424
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
40425
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version);
|
40426
|
+
if (message.useCase != null && Object.hasOwnProperty.call(message, "useCase"))
|
40427
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.useCase);
|
40428
|
+
if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
|
40429
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature);
|
40430
|
+
if (message.certificateChain != null && Object.hasOwnProperty.call(message, "certificateChain"))
|
40431
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.certificateChain);
|
40432
|
+
return writer;
|
40433
|
+
};
|
40434
|
+
/**
|
40435
|
+
* Encodes the specified BotSignatureVerificationUseCaseProof message, length delimited. Does not implicitly {@link E2E.BotSignatureVerificationUseCaseProof.verify|verify} messages.
|
40436
|
+
* @function encodeDelimited
|
40437
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40438
|
+
* @static
|
40439
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof message or plain object to encode
|
40440
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
40441
|
+
* @returns {$protobuf.Writer} Writer
|
40442
|
+
*/
|
40443
|
+
BotSignatureVerificationUseCaseProof.encodeDelimited = function encodeDelimited(message, writer) {
|
40444
|
+
return this.encode(message, writer).ldelim();
|
40445
|
+
};
|
40446
|
+
/**
|
40447
|
+
* Decodes a BotSignatureVerificationUseCaseProof message from the specified reader or buffer.
|
40448
|
+
* @function decode
|
40449
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40450
|
+
* @static
|
40451
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
40452
|
+
* @param {number} [length] Message length if known beforehand
|
40453
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
40454
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40455
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40456
|
+
*/
|
40457
|
+
BotSignatureVerificationUseCaseProof.decode = function decode(reader, length, error) {
|
40458
|
+
if (!(reader instanceof $Reader))
|
40459
|
+
reader = $Reader.create(reader);
|
40460
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.BotSignatureVerificationUseCaseProof();
|
40461
|
+
while (reader.pos < end) {
|
40462
|
+
var tag = reader.uint32();
|
40463
|
+
if (tag === error)
|
40464
|
+
break;
|
40465
|
+
switch (tag >>> 3) {
|
40466
|
+
case 1: {
|
40467
|
+
message.version = reader.int32();
|
40468
|
+
break;
|
40469
|
+
}
|
40470
|
+
case 2: {
|
40471
|
+
message.useCase = reader.int32();
|
40472
|
+
break;
|
40473
|
+
}
|
40474
|
+
case 3: {
|
40475
|
+
message.signature = reader.bytes();
|
40476
|
+
break;
|
40477
|
+
}
|
40478
|
+
case 4: {
|
40479
|
+
message.certificateChain = reader.bytes();
|
40480
|
+
break;
|
40481
|
+
}
|
40482
|
+
default:
|
40483
|
+
reader.skipType(tag & 7);
|
40484
|
+
break;
|
40485
|
+
}
|
40486
|
+
}
|
40487
|
+
return message;
|
40488
|
+
};
|
40489
|
+
/**
|
40490
|
+
* Decodes a BotSignatureVerificationUseCaseProof message from the specified reader or buffer, length delimited.
|
40491
|
+
* @function decodeDelimited
|
40492
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40493
|
+
* @static
|
40494
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
40495
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
40496
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40497
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40498
|
+
*/
|
40499
|
+
BotSignatureVerificationUseCaseProof.decodeDelimited = function decodeDelimited(reader) {
|
40500
|
+
if (!(reader instanceof $Reader))
|
40501
|
+
reader = new $Reader(reader);
|
40502
|
+
return this.decode(reader, reader.uint32());
|
40503
|
+
};
|
40504
|
+
/**
|
40505
|
+
* Verifies a BotSignatureVerificationUseCaseProof message.
|
40506
|
+
* @function verify
|
40507
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40508
|
+
* @static
|
40509
|
+
* @param {Object.<string,*>} message Plain object to verify
|
40510
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
40511
|
+
*/
|
40512
|
+
BotSignatureVerificationUseCaseProof.verify = function verify(message) {
|
40513
|
+
if (typeof message !== "object" || message === null)
|
40514
|
+
return "object expected";
|
40515
|
+
var properties = {};
|
40516
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
40517
|
+
properties._version = 1;
|
40518
|
+
if (!$util.isInteger(message.version))
|
40519
|
+
return "version: integer expected";
|
40520
|
+
}
|
40521
|
+
if (message.useCase != null && message.hasOwnProperty("useCase")) {
|
40522
|
+
properties._useCase = 1;
|
40523
|
+
switch (message.useCase) {
|
40524
|
+
default:
|
40525
|
+
return "useCase: enum value expected";
|
40526
|
+
case 0:
|
40527
|
+
break;
|
40528
|
+
}
|
40529
|
+
}
|
40530
|
+
if (message.signature != null && message.hasOwnProperty("signature")) {
|
40531
|
+
properties._signature = 1;
|
40532
|
+
if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature)))
|
40533
|
+
return "signature: buffer expected";
|
40534
|
+
}
|
40535
|
+
if (message.certificateChain != null && message.hasOwnProperty("certificateChain")) {
|
40536
|
+
properties._certificateChain = 1;
|
40537
|
+
if (!(message.certificateChain && typeof message.certificateChain.length === "number" || $util.isString(message.certificateChain)))
|
40538
|
+
return "certificateChain: buffer expected";
|
40539
|
+
}
|
40540
|
+
return null;
|
40541
|
+
};
|
40542
|
+
/**
|
40543
|
+
* Creates a BotSignatureVerificationUseCaseProof message from a plain object. Also converts values to their respective internal types.
|
40544
|
+
* @function fromObject
|
40545
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40546
|
+
* @static
|
40547
|
+
* @param {Object.<string,*>} object Plain object
|
40548
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
40549
|
+
*/
|
40550
|
+
BotSignatureVerificationUseCaseProof.fromObject = function fromObject(object) {
|
40551
|
+
if (object instanceof $root.E2E.BotSignatureVerificationUseCaseProof)
|
40552
|
+
return object;
|
40553
|
+
var message = new $root.E2E.BotSignatureVerificationUseCaseProof();
|
40554
|
+
if (object.version != null)
|
40555
|
+
message.version = object.version | 0;
|
40556
|
+
switch (object.useCase) {
|
40557
|
+
default:
|
40558
|
+
if (typeof object.useCase === "number") {
|
40559
|
+
message.useCase = object.useCase;
|
40560
|
+
break;
|
40561
|
+
}
|
40562
|
+
break;
|
40563
|
+
case "WA_BOT_MSG":
|
40564
|
+
case 0:
|
40565
|
+
message.useCase = 0;
|
40566
|
+
break;
|
40567
|
+
}
|
40568
|
+
if (object.signature != null)
|
40569
|
+
if (typeof object.signature === "string")
|
40570
|
+
$util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0);
|
40571
|
+
else if (object.signature.length >= 0)
|
40572
|
+
message.signature = object.signature;
|
40573
|
+
if (object.certificateChain != null)
|
40574
|
+
if (typeof object.certificateChain === "string")
|
40575
|
+
$util.base64.decode(object.certificateChain, message.certificateChain = $util.newBuffer($util.base64.length(object.certificateChain)), 0);
|
40576
|
+
else if (object.certificateChain.length >= 0)
|
40577
|
+
message.certificateChain = object.certificateChain;
|
40578
|
+
return message;
|
40579
|
+
};
|
40580
|
+
/**
|
40581
|
+
* Creates a plain object from a BotSignatureVerificationUseCaseProof message. Also converts values to other types if specified.
|
40582
|
+
* @function toObject
|
40583
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40584
|
+
* @static
|
40585
|
+
* @param {E2E.BotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof
|
40586
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
40587
|
+
* @returns {Object.<string,*>} Plain object
|
40588
|
+
*/
|
40589
|
+
BotSignatureVerificationUseCaseProof.toObject = function toObject(message, options) {
|
40590
|
+
if (!options)
|
40591
|
+
options = {};
|
40592
|
+
var object = {};
|
40593
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
40594
|
+
object.version = message.version;
|
40595
|
+
if (options.oneofs)
|
40596
|
+
object._version = "version";
|
40597
|
+
}
|
40598
|
+
if (message.useCase != null && message.hasOwnProperty("useCase")) {
|
40599
|
+
object.useCase = options.enums === String ? $root.E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[message.useCase] === undefined ? message.useCase : $root.E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[message.useCase] : message.useCase;
|
40600
|
+
if (options.oneofs)
|
40601
|
+
object._useCase = "useCase";
|
40602
|
+
}
|
40603
|
+
if (message.signature != null && message.hasOwnProperty("signature")) {
|
40604
|
+
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;
|
40605
|
+
if (options.oneofs)
|
40606
|
+
object._signature = "signature";
|
40607
|
+
}
|
40608
|
+
if (message.certificateChain != null && message.hasOwnProperty("certificateChain")) {
|
40609
|
+
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;
|
40610
|
+
if (options.oneofs)
|
40611
|
+
object._certificateChain = "certificateChain";
|
40612
|
+
}
|
40613
|
+
return object;
|
40614
|
+
};
|
40615
|
+
/**
|
40616
|
+
* Converts this BotSignatureVerificationUseCaseProof to JSON.
|
40617
|
+
* @function toJSON
|
40618
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40619
|
+
* @instance
|
40620
|
+
* @returns {Object.<string,*>} JSON object
|
40621
|
+
*/
|
40622
|
+
BotSignatureVerificationUseCaseProof.prototype.toJSON = function toJSON() {
|
40623
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
40624
|
+
};
|
40625
|
+
/**
|
40626
|
+
* Gets the default type url for BotSignatureVerificationUseCaseProof
|
40627
|
+
* @function getTypeUrl
|
40628
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
40629
|
+
* @static
|
40630
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
40631
|
+
* @returns {string} The default type url
|
40632
|
+
*/
|
40633
|
+
BotSignatureVerificationUseCaseProof.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
40634
|
+
if (typeUrlPrefix === undefined) {
|
40635
|
+
typeUrlPrefix = "type.googleapis.com";
|
40636
|
+
}
|
40637
|
+
return typeUrlPrefix + "/E2E.BotSignatureVerificationUseCaseProof";
|
40638
|
+
};
|
40639
|
+
/**
|
40640
|
+
* BotSignatureUseCase enum.
|
40641
|
+
* @name E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase
|
40642
|
+
* @enum {number}
|
40643
|
+
* @property {number} WA_BOT_MSG=0 WA_BOT_MSG value
|
40644
|
+
*/
|
40645
|
+
BotSignatureVerificationUseCaseProof.BotSignatureUseCase = (function() {
|
40646
|
+
var valuesById = {}, values = Object.create(valuesById);
|
40647
|
+
values[valuesById[0] = "WA_BOT_MSG"] = 0;
|
40648
|
+
return values;
|
40649
|
+
})();
|
40650
|
+
return BotSignatureVerificationUseCaseProof;
|
40651
|
+
})();
|
40652
|
+
E2E.BotSignatureVerificationMetadata = (function() {
|
40653
|
+
/**
|
40654
|
+
* Properties of a BotSignatureVerificationMetadata.
|
40655
|
+
* @memberof E2E
|
40656
|
+
* @interface IBotSignatureVerificationMetadata
|
40657
|
+
* @property {Array.<E2E.IBotSignatureVerificationUseCaseProof>|null} [proofs] BotSignatureVerificationMetadata proofs
|
40658
|
+
*/
|
40659
|
+
/**
|
40660
|
+
* Constructs a new BotSignatureVerificationMetadata.
|
40661
|
+
* @memberof E2E
|
40662
|
+
* @classdesc Represents a BotSignatureVerificationMetadata.
|
40663
|
+
* @implements IBotSignatureVerificationMetadata
|
40664
|
+
* @constructor
|
40665
|
+
* @param {E2E.IBotSignatureVerificationMetadata=} [properties] Properties to set
|
40666
|
+
*/
|
40667
|
+
function BotSignatureVerificationMetadata(properties) {
|
40668
|
+
this.proofs = [];
|
40669
|
+
if (properties)
|
40670
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
40671
|
+
if (properties[keys[i]] != null)
|
40672
|
+
this[keys[i]] = properties[keys[i]];
|
40673
|
+
}
|
40674
|
+
/**
|
40675
|
+
* BotSignatureVerificationMetadata proofs.
|
40676
|
+
* @member {Array.<E2E.IBotSignatureVerificationUseCaseProof>} proofs
|
40677
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40678
|
+
* @instance
|
40679
|
+
*/
|
40680
|
+
BotSignatureVerificationMetadata.prototype.proofs = $util.emptyArray;
|
40681
|
+
/**
|
40682
|
+
* Creates a new BotSignatureVerificationMetadata instance using the specified properties.
|
40683
|
+
* @function create
|
40684
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40685
|
+
* @static
|
40686
|
+
* @param {E2E.IBotSignatureVerificationMetadata=} [properties] Properties to set
|
40687
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata instance
|
40688
|
+
*/
|
40689
|
+
BotSignatureVerificationMetadata.create = function create(properties) {
|
40690
|
+
return new BotSignatureVerificationMetadata(properties);
|
40691
|
+
};
|
40692
|
+
/**
|
40693
|
+
* Encodes the specified BotSignatureVerificationMetadata message. Does not implicitly {@link E2E.BotSignatureVerificationMetadata.verify|verify} messages.
|
40694
|
+
* @function encode
|
40695
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40696
|
+
* @static
|
40697
|
+
* @param {E2E.IBotSignatureVerificationMetadata} message BotSignatureVerificationMetadata message or plain object to encode
|
40698
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
40699
|
+
* @returns {$protobuf.Writer} Writer
|
40700
|
+
*/
|
40701
|
+
BotSignatureVerificationMetadata.encode = function encode(message, writer) {
|
40702
|
+
if (!writer)
|
40703
|
+
writer = $Writer.create();
|
40704
|
+
if (message.proofs != null && message.proofs.length)
|
40705
|
+
for (var i = 0; i < message.proofs.length; ++i)
|
40706
|
+
$root.E2E.BotSignatureVerificationUseCaseProof.encode(message.proofs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
40707
|
+
return writer;
|
40708
|
+
};
|
40709
|
+
/**
|
40710
|
+
* Encodes the specified BotSignatureVerificationMetadata message, length delimited. Does not implicitly {@link E2E.BotSignatureVerificationMetadata.verify|verify} messages.
|
40711
|
+
* @function encodeDelimited
|
40712
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40713
|
+
* @static
|
40714
|
+
* @param {E2E.IBotSignatureVerificationMetadata} message BotSignatureVerificationMetadata message or plain object to encode
|
40715
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
40716
|
+
* @returns {$protobuf.Writer} Writer
|
40717
|
+
*/
|
40718
|
+
BotSignatureVerificationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
40719
|
+
return this.encode(message, writer).ldelim();
|
40720
|
+
};
|
40721
|
+
/**
|
40722
|
+
* Decodes a BotSignatureVerificationMetadata message from the specified reader or buffer.
|
40723
|
+
* @function decode
|
40724
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40725
|
+
* @static
|
40726
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
40727
|
+
* @param {number} [length] Message length if known beforehand
|
40728
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
40729
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40730
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40731
|
+
*/
|
40732
|
+
BotSignatureVerificationMetadata.decode = function decode(reader, length, error) {
|
40733
|
+
if (!(reader instanceof $Reader))
|
40734
|
+
reader = $Reader.create(reader);
|
40735
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.BotSignatureVerificationMetadata();
|
40736
|
+
while (reader.pos < end) {
|
40737
|
+
var tag = reader.uint32();
|
40738
|
+
if (tag === error)
|
40739
|
+
break;
|
40740
|
+
switch (tag >>> 3) {
|
40741
|
+
case 1: {
|
40742
|
+
if (!(message.proofs && message.proofs.length))
|
40743
|
+
message.proofs = [];
|
40744
|
+
message.proofs.push($root.E2E.BotSignatureVerificationUseCaseProof.decode(reader, reader.uint32()));
|
40745
|
+
break;
|
40746
|
+
}
|
40747
|
+
default:
|
40748
|
+
reader.skipType(tag & 7);
|
40749
|
+
break;
|
40750
|
+
}
|
40751
|
+
}
|
40752
|
+
return message;
|
40753
|
+
};
|
40754
|
+
/**
|
40755
|
+
* Decodes a BotSignatureVerificationMetadata message from the specified reader or buffer, length delimited.
|
40756
|
+
* @function decodeDelimited
|
40757
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40758
|
+
* @static
|
40759
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
40760
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
40761
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
40762
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
40763
|
+
*/
|
40764
|
+
BotSignatureVerificationMetadata.decodeDelimited = function decodeDelimited(reader) {
|
40765
|
+
if (!(reader instanceof $Reader))
|
40766
|
+
reader = new $Reader(reader);
|
40767
|
+
return this.decode(reader, reader.uint32());
|
40768
|
+
};
|
40769
|
+
/**
|
40770
|
+
* Verifies a BotSignatureVerificationMetadata message.
|
40771
|
+
* @function verify
|
40772
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40773
|
+
* @static
|
40774
|
+
* @param {Object.<string,*>} message Plain object to verify
|
40775
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
40776
|
+
*/
|
40777
|
+
BotSignatureVerificationMetadata.verify = function verify(message) {
|
40778
|
+
if (typeof message !== "object" || message === null)
|
40779
|
+
return "object expected";
|
40780
|
+
if (message.proofs != null && message.hasOwnProperty("proofs")) {
|
40781
|
+
if (!Array.isArray(message.proofs))
|
40782
|
+
return "proofs: array expected";
|
40783
|
+
for (var i = 0; i < message.proofs.length; ++i) {
|
40784
|
+
var error = $root.E2E.BotSignatureVerificationUseCaseProof.verify(message.proofs[i]);
|
40785
|
+
if (error)
|
40786
|
+
return "proofs." + error;
|
40787
|
+
}
|
40788
|
+
}
|
40789
|
+
return null;
|
40790
|
+
};
|
40791
|
+
/**
|
40792
|
+
* Creates a BotSignatureVerificationMetadata message from a plain object. Also converts values to their respective internal types.
|
40793
|
+
* @function fromObject
|
40794
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40795
|
+
* @static
|
40796
|
+
* @param {Object.<string,*>} object Plain object
|
40797
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
40798
|
+
*/
|
40799
|
+
BotSignatureVerificationMetadata.fromObject = function fromObject(object) {
|
40800
|
+
if (object instanceof $root.E2E.BotSignatureVerificationMetadata)
|
40801
|
+
return object;
|
40802
|
+
var message = new $root.E2E.BotSignatureVerificationMetadata();
|
40803
|
+
if (object.proofs) {
|
40804
|
+
if (!Array.isArray(object.proofs))
|
40805
|
+
throw TypeError(".E2E.BotSignatureVerificationMetadata.proofs: array expected");
|
40806
|
+
message.proofs = [];
|
40807
|
+
for (var i = 0; i < object.proofs.length; ++i) {
|
40808
|
+
if (typeof object.proofs[i] !== "object")
|
40809
|
+
throw TypeError(".E2E.BotSignatureVerificationMetadata.proofs: object expected");
|
40810
|
+
message.proofs[i] = $root.E2E.BotSignatureVerificationUseCaseProof.fromObject(object.proofs[i]);
|
40811
|
+
}
|
40812
|
+
}
|
40813
|
+
return message;
|
40814
|
+
};
|
40815
|
+
/**
|
40816
|
+
* Creates a plain object from a BotSignatureVerificationMetadata message. Also converts values to other types if specified.
|
40817
|
+
* @function toObject
|
40818
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40819
|
+
* @static
|
40820
|
+
* @param {E2E.BotSignatureVerificationMetadata} message BotSignatureVerificationMetadata
|
40821
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
40822
|
+
* @returns {Object.<string,*>} Plain object
|
40823
|
+
*/
|
40824
|
+
BotSignatureVerificationMetadata.toObject = function toObject(message, options) {
|
40825
|
+
if (!options)
|
40826
|
+
options = {};
|
40827
|
+
var object = {};
|
40828
|
+
if (options.arrays || options.defaults)
|
40829
|
+
object.proofs = [];
|
40830
|
+
if (message.proofs && message.proofs.length) {
|
40831
|
+
object.proofs = [];
|
40832
|
+
for (var j = 0; j < message.proofs.length; ++j)
|
40833
|
+
object.proofs[j] = $root.E2E.BotSignatureVerificationUseCaseProof.toObject(message.proofs[j], options);
|
40834
|
+
}
|
40835
|
+
return object;
|
40836
|
+
};
|
40837
|
+
/**
|
40838
|
+
* Converts this BotSignatureVerificationMetadata to JSON.
|
40839
|
+
* @function toJSON
|
40840
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40841
|
+
* @instance
|
40842
|
+
* @returns {Object.<string,*>} JSON object
|
40843
|
+
*/
|
40844
|
+
BotSignatureVerificationMetadata.prototype.toJSON = function toJSON() {
|
40845
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
40846
|
+
};
|
40847
|
+
/**
|
40848
|
+
* Gets the default type url for BotSignatureVerificationMetadata
|
40849
|
+
* @function getTypeUrl
|
40850
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
40851
|
+
* @static
|
40852
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
40853
|
+
* @returns {string} The default type url
|
40854
|
+
*/
|
40855
|
+
BotSignatureVerificationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
40856
|
+
if (typeUrlPrefix === undefined) {
|
40857
|
+
typeUrlPrefix = "type.googleapis.com";
|
40858
|
+
}
|
40859
|
+
return typeUrlPrefix + "/E2E.BotSignatureVerificationMetadata";
|
40860
|
+
};
|
40861
|
+
return BotSignatureVerificationMetadata;
|
40862
|
+
})();
|
40134
40863
|
E2E.BotMemoryFact = (function() {
|
40135
40864
|
/**
|
40136
40865
|
* Properties of a BotMemoryFact.
|
@@ -75862,6 +76591,8 @@ Message.LinkPreviewMetadata = (function() {
|
|
75862
76591
|
* @property {E2E.Message.IPaymentLinkMetadata|null} [paymentLinkMetadata] LinkPreviewMetadata paymentLinkMetadata
|
75863
76592
|
* @property {E2E.Message.IURLMetadata|null} [urlMetadata] LinkPreviewMetadata urlMetadata
|
75864
76593
|
* @property {number|null} [fbExperimentId] LinkPreviewMetadata fbExperimentId
|
76594
|
+
* @property {number|null} [linkMediaDuration] LinkPreviewMetadata linkMediaDuration
|
76595
|
+
* @property {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null} [socialMediaPostType] LinkPreviewMetadata socialMediaPostType
|
75865
76596
|
*/
|
75866
76597
|
/**
|
75867
76598
|
* Constructs a new LinkPreviewMetadata.
|
@@ -75898,6 +76629,20 @@ LinkPreviewMetadata.prototype.urlMetadata = null;
|
|
75898
76629
|
* @instance
|
75899
76630
|
*/
|
75900
76631
|
LinkPreviewMetadata.prototype.fbExperimentId = null;
|
76632
|
+
/**
|
76633
|
+
* LinkPreviewMetadata linkMediaDuration.
|
76634
|
+
* @member {number|null|undefined} linkMediaDuration
|
76635
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
76636
|
+
* @instance
|
76637
|
+
*/
|
76638
|
+
LinkPreviewMetadata.prototype.linkMediaDuration = null;
|
76639
|
+
/**
|
76640
|
+
* LinkPreviewMetadata socialMediaPostType.
|
76641
|
+
* @member {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null|undefined} socialMediaPostType
|
76642
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
76643
|
+
* @instance
|
76644
|
+
*/
|
76645
|
+
LinkPreviewMetadata.prototype.socialMediaPostType = null;
|
75901
76646
|
// OneOf field names bound to virtual getters and setters
|
75902
76647
|
var $oneOfFields;
|
75903
76648
|
/**
|
@@ -75931,6 +76676,26 @@ get: $util.oneOfGetter($oneOfFields = ["fbExperimentId"]),
|
|
75931
76676
|
set: $util.oneOfSetter($oneOfFields)
|
75932
76677
|
});
|
75933
76678
|
/**
|
76679
|
+
* LinkPreviewMetadata _linkMediaDuration.
|
76680
|
+
* @member {"linkMediaDuration"|undefined} _linkMediaDuration
|
76681
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
76682
|
+
* @instance
|
76683
|
+
*/
|
76684
|
+
Object.defineProperty(LinkPreviewMetadata.prototype, "_linkMediaDuration", {
|
76685
|
+
get: $util.oneOfGetter($oneOfFields = ["linkMediaDuration"]),
|
76686
|
+
set: $util.oneOfSetter($oneOfFields)
|
76687
|
+
});
|
76688
|
+
/**
|
76689
|
+
* LinkPreviewMetadata _socialMediaPostType.
|
76690
|
+
* @member {"socialMediaPostType"|undefined} _socialMediaPostType
|
76691
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
76692
|
+
* @instance
|
76693
|
+
*/
|
76694
|
+
Object.defineProperty(LinkPreviewMetadata.prototype, "_socialMediaPostType", {
|
76695
|
+
get: $util.oneOfGetter($oneOfFields = ["socialMediaPostType"]),
|
76696
|
+
set: $util.oneOfSetter($oneOfFields)
|
76697
|
+
});
|
76698
|
+
/**
|
75934
76699
|
* Creates a new LinkPreviewMetadata instance using the specified properties.
|
75935
76700
|
* @function create
|
75936
76701
|
* @memberof E2E.Message.LinkPreviewMetadata
|
@@ -75959,6 +76724,10 @@ if (message.urlMetadata != null && Object.hasOwnProperty.call(message, "urlMetad
|
|
75959
76724
|
$root.E2E.Message.URLMetadata.encode(message.urlMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
75960
76725
|
if (message.fbExperimentId != null && Object.hasOwnProperty.call(message, "fbExperimentId"))
|
75961
76726
|
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.fbExperimentId);
|
76727
|
+
if (message.linkMediaDuration != null && Object.hasOwnProperty.call(message, "linkMediaDuration"))
|
76728
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.linkMediaDuration);
|
76729
|
+
if (message.socialMediaPostType != null && Object.hasOwnProperty.call(message, "socialMediaPostType"))
|
76730
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.socialMediaPostType);
|
75962
76731
|
return writer;
|
75963
76732
|
};
|
75964
76733
|
/**
|
@@ -76005,6 +76774,14 @@ case 3: {
|
|
76005
76774
|
message.fbExperimentId = reader.uint32();
|
76006
76775
|
break;
|
76007
76776
|
}
|
76777
|
+
case 4: {
|
76778
|
+
message.linkMediaDuration = reader.uint32();
|
76779
|
+
break;
|
76780
|
+
}
|
76781
|
+
case 5: {
|
76782
|
+
message.socialMediaPostType = reader.int32();
|
76783
|
+
break;
|
76784
|
+
}
|
76008
76785
|
default:
|
76009
76786
|
reader.skipType(tag & 7);
|
76010
76787
|
break;
|
@@ -76060,6 +76837,25 @@ properties._fbExperimentId = 1;
|
|
76060
76837
|
if (!$util.isInteger(message.fbExperimentId))
|
76061
76838
|
return "fbExperimentId: integer expected";
|
76062
76839
|
}
|
76840
|
+
if (message.linkMediaDuration != null && message.hasOwnProperty("linkMediaDuration")) {
|
76841
|
+
properties._linkMediaDuration = 1;
|
76842
|
+
if (!$util.isInteger(message.linkMediaDuration))
|
76843
|
+
return "linkMediaDuration: integer expected";
|
76844
|
+
}
|
76845
|
+
if (message.socialMediaPostType != null && message.hasOwnProperty("socialMediaPostType")) {
|
76846
|
+
properties._socialMediaPostType = 1;
|
76847
|
+
switch (message.socialMediaPostType) {
|
76848
|
+
default:
|
76849
|
+
return "socialMediaPostType: enum value expected";
|
76850
|
+
case 0:
|
76851
|
+
case 1:
|
76852
|
+
case 2:
|
76853
|
+
case 3:
|
76854
|
+
case 4:
|
76855
|
+
case 5:
|
76856
|
+
break;
|
76857
|
+
}
|
76858
|
+
}
|
76063
76859
|
return null;
|
76064
76860
|
};
|
76065
76861
|
/**
|
@@ -76086,6 +76882,40 @@ message.urlMetadata = $root.E2E.Message.URLMetadata.fromObject(object.urlMetadat
|
|
76086
76882
|
}
|
76087
76883
|
if (object.fbExperimentId != null)
|
76088
76884
|
message.fbExperimentId = object.fbExperimentId >>> 0;
|
76885
|
+
if (object.linkMediaDuration != null)
|
76886
|
+
message.linkMediaDuration = object.linkMediaDuration >>> 0;
|
76887
|
+
switch (object.socialMediaPostType) {
|
76888
|
+
default:
|
76889
|
+
if (typeof object.socialMediaPostType === "number") {
|
76890
|
+
message.socialMediaPostType = object.socialMediaPostType;
|
76891
|
+
break;
|
76892
|
+
}
|
76893
|
+
break;
|
76894
|
+
case "NONE":
|
76895
|
+
case 0:
|
76896
|
+
message.socialMediaPostType = 0;
|
76897
|
+
break;
|
76898
|
+
case "REEL":
|
76899
|
+
case 1:
|
76900
|
+
message.socialMediaPostType = 1;
|
76901
|
+
break;
|
76902
|
+
case "LIVE_VIDEO":
|
76903
|
+
case 2:
|
76904
|
+
message.socialMediaPostType = 2;
|
76905
|
+
break;
|
76906
|
+
case "LONG_VIDEO":
|
76907
|
+
case 3:
|
76908
|
+
message.socialMediaPostType = 3;
|
76909
|
+
break;
|
76910
|
+
case "SINGLE_IMAGE":
|
76911
|
+
case 4:
|
76912
|
+
message.socialMediaPostType = 4;
|
76913
|
+
break;
|
76914
|
+
case "CAROUSEL":
|
76915
|
+
case 5:
|
76916
|
+
message.socialMediaPostType = 5;
|
76917
|
+
break;
|
76918
|
+
}
|
76089
76919
|
return message;
|
76090
76920
|
};
|
76091
76921
|
/**
|
@@ -76116,6 +76946,16 @@ object.fbExperimentId = message.fbExperimentId;
|
|
76116
76946
|
if (options.oneofs)
|
76117
76947
|
object._fbExperimentId = "fbExperimentId";
|
76118
76948
|
}
|
76949
|
+
if (message.linkMediaDuration != null && message.hasOwnProperty("linkMediaDuration")) {
|
76950
|
+
object.linkMediaDuration = message.linkMediaDuration;
|
76951
|
+
if (options.oneofs)
|
76952
|
+
object._linkMediaDuration = "linkMediaDuration";
|
76953
|
+
}
|
76954
|
+
if (message.socialMediaPostType != null && message.hasOwnProperty("socialMediaPostType")) {
|
76955
|
+
object.socialMediaPostType = options.enums === String ? $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] === undefined ? message.socialMediaPostType : $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] : message.socialMediaPostType;
|
76956
|
+
if (options.oneofs)
|
76957
|
+
object._socialMediaPostType = "socialMediaPostType";
|
76958
|
+
}
|
76119
76959
|
return object;
|
76120
76960
|
};
|
76121
76961
|
/**
|
@@ -76142,6 +76982,27 @@ typeUrlPrefix = "type.googleapis.com";
|
|
76142
76982
|
}
|
76143
76983
|
return typeUrlPrefix + "/E2E.Message.LinkPreviewMetadata";
|
76144
76984
|
};
|
76985
|
+
/**
|
76986
|
+
* SocialMediaPostType enum.
|
76987
|
+
* @name E2E.Message.LinkPreviewMetadata.SocialMediaPostType
|
76988
|
+
* @enum {number}
|
76989
|
+
* @property {number} NONE=0 NONE value
|
76990
|
+
* @property {number} REEL=1 REEL value
|
76991
|
+
* @property {number} LIVE_VIDEO=2 LIVE_VIDEO value
|
76992
|
+
* @property {number} LONG_VIDEO=3 LONG_VIDEO value
|
76993
|
+
* @property {number} SINGLE_IMAGE=4 SINGLE_IMAGE value
|
76994
|
+
* @property {number} CAROUSEL=5 CAROUSEL value
|
76995
|
+
*/
|
76996
|
+
LinkPreviewMetadata.SocialMediaPostType = (function() {
|
76997
|
+
var valuesById = {}, values = Object.create(valuesById);
|
76998
|
+
values[valuesById[0] = "NONE"] = 0;
|
76999
|
+
values[valuesById[1] = "REEL"] = 1;
|
77000
|
+
values[valuesById[2] = "LIVE_VIDEO"] = 2;
|
77001
|
+
values[valuesById[3] = "LONG_VIDEO"] = 3;
|
77002
|
+
values[valuesById[4] = "SINGLE_IMAGE"] = 4;
|
77003
|
+
values[valuesById[5] = "CAROUSEL"] = 5;
|
77004
|
+
return values;
|
77005
|
+
})();
|
76145
77006
|
return LinkPreviewMetadata;
|
76146
77007
|
})();
|
76147
77008
|
Message.ListMessage = (function() {
|
@@ -84152,6 +85013,7 @@ case 5:
|
|
84152
85013
|
case 6:
|
84153
85014
|
case 7:
|
84154
85015
|
case 8:
|
85016
|
+
case 9:
|
84155
85017
|
break;
|
84156
85018
|
}
|
84157
85019
|
}
|
@@ -84263,6 +85125,10 @@ case "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY":
|
|
84263
85125
|
case 8:
|
84264
85126
|
message.peerDataOperationRequestType = 8;
|
84265
85127
|
break;
|
85128
|
+
case "COMPANION_CANONICAL_USER_NONCE_FETCH":
|
85129
|
+
case 9:
|
85130
|
+
message.peerDataOperationRequestType = 9;
|
85131
|
+
break;
|
84266
85132
|
}
|
84267
85133
|
if (object.requestStickerReupload) {
|
84268
85134
|
if (!Array.isArray(object.requestStickerReupload))
|
@@ -86147,6 +87013,7 @@ case 5:
|
|
86147
87013
|
case 6:
|
86148
87014
|
case 7:
|
86149
87015
|
case 8:
|
87016
|
+
case 9:
|
86150
87017
|
break;
|
86151
87018
|
}
|
86152
87019
|
}
|
@@ -86221,6 +87088,10 @@ case "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY":
|
|
86221
87088
|
case 8:
|
86222
87089
|
message.peerDataOperationRequestType = 8;
|
86223
87090
|
break;
|
87091
|
+
case "COMPANION_CANONICAL_USER_NONCE_FETCH":
|
87092
|
+
case 9:
|
87093
|
+
message.peerDataOperationRequestType = 9;
|
87094
|
+
break;
|
86224
87095
|
}
|
86225
87096
|
if (object.stanzaId != null)
|
86226
87097
|
message.stanzaId = String(object.stanzaId);
|
@@ -86305,6 +87176,7 @@ PeerDataOperationRequestResponseMessage.PeerDataOperationResult = (function() {
|
|
86305
87176
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFullHistorySyncOnDemandRequestResponse|null} [fullHistorySyncOnDemandRequestResponse] PeerDataOperationResult fullHistorySyncOnDemandRequestResponse
|
86306
87177
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionMetaNonceFetchResponse|null} [companionMetaNonceFetchRequestResponse] PeerDataOperationResult companionMetaNonceFetchRequestResponse
|
86307
87178
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ISyncDSnapshotFatalRecoveryResponse|null} [syncdSnapshotFatalRecoveryResponse] PeerDataOperationResult syncdSnapshotFatalRecoveryResponse
|
87179
|
+
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null} [companionCanonicalUserNonceFetchRequestResponse] PeerDataOperationResult companionCanonicalUserNonceFetchRequestResponse
|
86308
87180
|
*/
|
86309
87181
|
/**
|
86310
87182
|
* Constructs a new PeerDataOperationResult.
|
@@ -86376,6 +87248,13 @@ PeerDataOperationResult.prototype.companionMetaNonceFetchRequestResponse = null;
|
|
86376
87248
|
* @instance
|
86377
87249
|
*/
|
86378
87250
|
PeerDataOperationResult.prototype.syncdSnapshotFatalRecoveryResponse = null;
|
87251
|
+
/**
|
87252
|
+
* PeerDataOperationResult companionCanonicalUserNonceFetchRequestResponse.
|
87253
|
+
* @member {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null|undefined} companionCanonicalUserNonceFetchRequestResponse
|
87254
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
87255
|
+
* @instance
|
87256
|
+
*/
|
87257
|
+
PeerDataOperationResult.prototype.companionCanonicalUserNonceFetchRequestResponse = null;
|
86379
87258
|
// OneOf field names bound to virtual getters and setters
|
86380
87259
|
var $oneOfFields;
|
86381
87260
|
/**
|
@@ -86459,6 +87338,16 @@ get: $util.oneOfGetter($oneOfFields = ["syncdSnapshotFatalRecoveryResponse"]),
|
|
86459
87338
|
set: $util.oneOfSetter($oneOfFields)
|
86460
87339
|
});
|
86461
87340
|
/**
|
87341
|
+
* PeerDataOperationResult _companionCanonicalUserNonceFetchRequestResponse.
|
87342
|
+
* @member {"companionCanonicalUserNonceFetchRequestResponse"|undefined} _companionCanonicalUserNonceFetchRequestResponse
|
87343
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
87344
|
+
* @instance
|
87345
|
+
*/
|
87346
|
+
Object.defineProperty(PeerDataOperationResult.prototype, "_companionCanonicalUserNonceFetchRequestResponse", {
|
87347
|
+
get: $util.oneOfGetter($oneOfFields = ["companionCanonicalUserNonceFetchRequestResponse"]),
|
87348
|
+
set: $util.oneOfSetter($oneOfFields)
|
87349
|
+
});
|
87350
|
+
/**
|
86462
87351
|
* Creates a new PeerDataOperationResult instance using the specified properties.
|
86463
87352
|
* @function create
|
86464
87353
|
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
@@ -86497,6 +87386,8 @@ if (message.companionMetaNonceFetchRequestResponse != null && Object.hasOwnPrope
|
|
86497
87386
|
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionMetaNonceFetchResponse.encode(message.companionMetaNonceFetchRequestResponse, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
86498
87387
|
if (message.syncdSnapshotFatalRecoveryResponse != null && Object.hasOwnProperty.call(message, "syncdSnapshotFatalRecoveryResponse"))
|
86499
87388
|
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.encode(message.syncdSnapshotFatalRecoveryResponse, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
87389
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && Object.hasOwnProperty.call(message, "companionCanonicalUserNonceFetchRequestResponse"))
|
87390
|
+
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.encode(message.companionCanonicalUserNonceFetchRequestResponse, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
86500
87391
|
return writer;
|
86501
87392
|
};
|
86502
87393
|
/**
|
@@ -86563,6 +87454,10 @@ case 8: {
|
|
86563
87454
|
message.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.decode(reader, reader.uint32());
|
86564
87455
|
break;
|
86565
87456
|
}
|
87457
|
+
case 9: {
|
87458
|
+
message.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.decode(reader, reader.uint32());
|
87459
|
+
break;
|
87460
|
+
}
|
86566
87461
|
default:
|
86567
87462
|
reader.skipType(tag & 7);
|
86568
87463
|
break;
|
@@ -86665,6 +87560,14 @@ if (error)
|
|
86665
87560
|
return "syncdSnapshotFatalRecoveryResponse." + error;
|
86666
87561
|
}
|
86667
87562
|
}
|
87563
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && message.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) {
|
87564
|
+
properties._companionCanonicalUserNonceFetchRequestResponse = 1;
|
87565
|
+
{
|
87566
|
+
var error = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify(message.companionCanonicalUserNonceFetchRequestResponse);
|
87567
|
+
if (error)
|
87568
|
+
return "companionCanonicalUserNonceFetchRequestResponse." + error;
|
87569
|
+
}
|
87570
|
+
}
|
86668
87571
|
return null;
|
86669
87572
|
};
|
86670
87573
|
/**
|
@@ -86738,6 +87641,11 @@ if (typeof object.syncdSnapshotFatalRecoveryResponse !== "object")
|
|
86738
87641
|
throw TypeError(".E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.syncdSnapshotFatalRecoveryResponse: object expected");
|
86739
87642
|
message.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.fromObject(object.syncdSnapshotFatalRecoveryResponse);
|
86740
87643
|
}
|
87644
|
+
if (object.companionCanonicalUserNonceFetchRequestResponse != null) {
|
87645
|
+
if (typeof object.companionCanonicalUserNonceFetchRequestResponse !== "object")
|
87646
|
+
throw TypeError(".E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.companionCanonicalUserNonceFetchRequestResponse: object expected");
|
87647
|
+
message.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.fromObject(object.companionCanonicalUserNonceFetchRequestResponse);
|
87648
|
+
}
|
86741
87649
|
return message;
|
86742
87650
|
};
|
86743
87651
|
/**
|
@@ -86793,6 +87701,11 @@ object.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationR
|
|
86793
87701
|
if (options.oneofs)
|
86794
87702
|
object._syncdSnapshotFatalRecoveryResponse = "syncdSnapshotFatalRecoveryResponse";
|
86795
87703
|
}
|
87704
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && message.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) {
|
87705
|
+
object.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.toObject(message.companionCanonicalUserNonceFetchRequestResponse, options);
|
87706
|
+
if (options.oneofs)
|
87707
|
+
object._companionCanonicalUserNonceFetchRequestResponse = "companionCanonicalUserNonceFetchRequestResponse";
|
87708
|
+
}
|
86796
87709
|
return object;
|
86797
87710
|
};
|
86798
87711
|
/**
|
@@ -86819,6 +87732,212 @@ typeUrlPrefix = "type.googleapis.com";
|
|
86819
87732
|
}
|
86820
87733
|
return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult";
|
86821
87734
|
};
|
87735
|
+
PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse = (function() {
|
87736
|
+
/**
|
87737
|
+
* Properties of a CompanionCanonicalUserNonceFetchResponse.
|
87738
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
87739
|
+
* @interface ICompanionCanonicalUserNonceFetchResponse
|
87740
|
+
* @property {string|null} [nonce] CompanionCanonicalUserNonceFetchResponse nonce
|
87741
|
+
*/
|
87742
|
+
/**
|
87743
|
+
* Constructs a new CompanionCanonicalUserNonceFetchResponse.
|
87744
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
87745
|
+
* @classdesc Represents a CompanionCanonicalUserNonceFetchResponse.
|
87746
|
+
* @implements ICompanionCanonicalUserNonceFetchResponse
|
87747
|
+
* @constructor
|
87748
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse=} [properties] Properties to set
|
87749
|
+
*/
|
87750
|
+
function CompanionCanonicalUserNonceFetchResponse(properties) {
|
87751
|
+
if (properties)
|
87752
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
87753
|
+
if (properties[keys[i]] != null)
|
87754
|
+
this[keys[i]] = properties[keys[i]];
|
87755
|
+
}
|
87756
|
+
/**
|
87757
|
+
* CompanionCanonicalUserNonceFetchResponse nonce.
|
87758
|
+
* @member {string|null|undefined} nonce
|
87759
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87760
|
+
* @instance
|
87761
|
+
*/
|
87762
|
+
CompanionCanonicalUserNonceFetchResponse.prototype.nonce = null;
|
87763
|
+
// OneOf field names bound to virtual getters and setters
|
87764
|
+
var $oneOfFields;
|
87765
|
+
/**
|
87766
|
+
* CompanionCanonicalUserNonceFetchResponse _nonce.
|
87767
|
+
* @member {"nonce"|undefined} _nonce
|
87768
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87769
|
+
* @instance
|
87770
|
+
*/
|
87771
|
+
Object.defineProperty(CompanionCanonicalUserNonceFetchResponse.prototype, "_nonce", {
|
87772
|
+
get: $util.oneOfGetter($oneOfFields = ["nonce"]),
|
87773
|
+
set: $util.oneOfSetter($oneOfFields)
|
87774
|
+
});
|
87775
|
+
/**
|
87776
|
+
* Creates a new CompanionCanonicalUserNonceFetchResponse instance using the specified properties.
|
87777
|
+
* @function create
|
87778
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87779
|
+
* @static
|
87780
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse=} [properties] Properties to set
|
87781
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse instance
|
87782
|
+
*/
|
87783
|
+
CompanionCanonicalUserNonceFetchResponse.create = function create(properties) {
|
87784
|
+
return new CompanionCanonicalUserNonceFetchResponse(properties);
|
87785
|
+
};
|
87786
|
+
/**
|
87787
|
+
* Encodes the specified CompanionCanonicalUserNonceFetchResponse message. Does not implicitly {@link E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify|verify} messages.
|
87788
|
+
* @function encode
|
87789
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87790
|
+
* @static
|
87791
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse message or plain object to encode
|
87792
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
87793
|
+
* @returns {$protobuf.Writer} Writer
|
87794
|
+
*/
|
87795
|
+
CompanionCanonicalUserNonceFetchResponse.encode = function encode(message, writer) {
|
87796
|
+
if (!writer)
|
87797
|
+
writer = $Writer.create();
|
87798
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
87799
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.nonce);
|
87800
|
+
return writer;
|
87801
|
+
};
|
87802
|
+
/**
|
87803
|
+
* Encodes the specified CompanionCanonicalUserNonceFetchResponse message, length delimited. Does not implicitly {@link E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify|verify} messages.
|
87804
|
+
* @function encodeDelimited
|
87805
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87806
|
+
* @static
|
87807
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse message or plain object to encode
|
87808
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
87809
|
+
* @returns {$protobuf.Writer} Writer
|
87810
|
+
*/
|
87811
|
+
CompanionCanonicalUserNonceFetchResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
87812
|
+
return this.encode(message, writer).ldelim();
|
87813
|
+
};
|
87814
|
+
/**
|
87815
|
+
* Decodes a CompanionCanonicalUserNonceFetchResponse message from the specified reader or buffer.
|
87816
|
+
* @function decode
|
87817
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87818
|
+
* @static
|
87819
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
87820
|
+
* @param {number} [length] Message length if known beforehand
|
87821
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
87822
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
87823
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
87824
|
+
*/
|
87825
|
+
CompanionCanonicalUserNonceFetchResponse.decode = function decode(reader, length, error) {
|
87826
|
+
if (!(reader instanceof $Reader))
|
87827
|
+
reader = $Reader.create(reader);
|
87828
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
|
87829
|
+
while (reader.pos < end) {
|
87830
|
+
var tag = reader.uint32();
|
87831
|
+
if (tag === error)
|
87832
|
+
break;
|
87833
|
+
switch (tag >>> 3) {
|
87834
|
+
case 1: {
|
87835
|
+
message.nonce = reader.string();
|
87836
|
+
break;
|
87837
|
+
}
|
87838
|
+
default:
|
87839
|
+
reader.skipType(tag & 7);
|
87840
|
+
break;
|
87841
|
+
}
|
87842
|
+
}
|
87843
|
+
return message;
|
87844
|
+
};
|
87845
|
+
/**
|
87846
|
+
* Decodes a CompanionCanonicalUserNonceFetchResponse message from the specified reader or buffer, length delimited.
|
87847
|
+
* @function decodeDelimited
|
87848
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87849
|
+
* @static
|
87850
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
87851
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
87852
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
87853
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
87854
|
+
*/
|
87855
|
+
CompanionCanonicalUserNonceFetchResponse.decodeDelimited = function decodeDelimited(reader) {
|
87856
|
+
if (!(reader instanceof $Reader))
|
87857
|
+
reader = new $Reader(reader);
|
87858
|
+
return this.decode(reader, reader.uint32());
|
87859
|
+
};
|
87860
|
+
/**
|
87861
|
+
* Verifies a CompanionCanonicalUserNonceFetchResponse message.
|
87862
|
+
* @function verify
|
87863
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87864
|
+
* @static
|
87865
|
+
* @param {Object.<string,*>} message Plain object to verify
|
87866
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
87867
|
+
*/
|
87868
|
+
CompanionCanonicalUserNonceFetchResponse.verify = function verify(message) {
|
87869
|
+
if (typeof message !== "object" || message === null)
|
87870
|
+
return "object expected";
|
87871
|
+
var properties = {};
|
87872
|
+
if (message.nonce != null && message.hasOwnProperty("nonce")) {
|
87873
|
+
properties._nonce = 1;
|
87874
|
+
if (!$util.isString(message.nonce))
|
87875
|
+
return "nonce: string expected";
|
87876
|
+
}
|
87877
|
+
return null;
|
87878
|
+
};
|
87879
|
+
/**
|
87880
|
+
* Creates a CompanionCanonicalUserNonceFetchResponse message from a plain object. Also converts values to their respective internal types.
|
87881
|
+
* @function fromObject
|
87882
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87883
|
+
* @static
|
87884
|
+
* @param {Object.<string,*>} object Plain object
|
87885
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
87886
|
+
*/
|
87887
|
+
CompanionCanonicalUserNonceFetchResponse.fromObject = function fromObject(object) {
|
87888
|
+
if (object instanceof $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse)
|
87889
|
+
return object;
|
87890
|
+
var message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
|
87891
|
+
if (object.nonce != null)
|
87892
|
+
message.nonce = String(object.nonce);
|
87893
|
+
return message;
|
87894
|
+
};
|
87895
|
+
/**
|
87896
|
+
* Creates a plain object from a CompanionCanonicalUserNonceFetchResponse message. Also converts values to other types if specified.
|
87897
|
+
* @function toObject
|
87898
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87899
|
+
* @static
|
87900
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse
|
87901
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
87902
|
+
* @returns {Object.<string,*>} Plain object
|
87903
|
+
*/
|
87904
|
+
CompanionCanonicalUserNonceFetchResponse.toObject = function toObject(message, options) {
|
87905
|
+
if (!options)
|
87906
|
+
options = {};
|
87907
|
+
var object = {};
|
87908
|
+
if (message.nonce != null && message.hasOwnProperty("nonce")) {
|
87909
|
+
object.nonce = message.nonce;
|
87910
|
+
if (options.oneofs)
|
87911
|
+
object._nonce = "nonce";
|
87912
|
+
}
|
87913
|
+
return object;
|
87914
|
+
};
|
87915
|
+
/**
|
87916
|
+
* Converts this CompanionCanonicalUserNonceFetchResponse to JSON.
|
87917
|
+
* @function toJSON
|
87918
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87919
|
+
* @instance
|
87920
|
+
* @returns {Object.<string,*>} JSON object
|
87921
|
+
*/
|
87922
|
+
CompanionCanonicalUserNonceFetchResponse.prototype.toJSON = function toJSON() {
|
87923
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
87924
|
+
};
|
87925
|
+
/**
|
87926
|
+
* Gets the default type url for CompanionCanonicalUserNonceFetchResponse
|
87927
|
+
* @function getTypeUrl
|
87928
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
87929
|
+
* @static
|
87930
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
87931
|
+
* @returns {string} The default type url
|
87932
|
+
*/
|
87933
|
+
CompanionCanonicalUserNonceFetchResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
87934
|
+
if (typeUrlPrefix === undefined) {
|
87935
|
+
typeUrlPrefix = "type.googleapis.com";
|
87936
|
+
}
|
87937
|
+
return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse";
|
87938
|
+
};
|
87939
|
+
return CompanionCanonicalUserNonceFetchResponse;
|
87940
|
+
})();
|
86822
87941
|
PeerDataOperationResult.CompanionMetaNonceFetchResponse = (function() {
|
86823
87942
|
/**
|
86824
87943
|
* Properties of a CompanionMetaNonceFetchResponse.
|
@@ -88919,6 +90038,7 @@ return PeerDataOperationRequestResponseMessage;
|
|
88919
90038
|
* @property {number} FULL_HISTORY_SYNC_ON_DEMAND=6 FULL_HISTORY_SYNC_ON_DEMAND value
|
88920
90039
|
* @property {number} COMPANION_META_NONCE_FETCH=7 COMPANION_META_NONCE_FETCH value
|
88921
90040
|
* @property {number} COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8 COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY value
|
90041
|
+
* @property {number} COMPANION_CANONICAL_USER_NONCE_FETCH=9 COMPANION_CANONICAL_USER_NONCE_FETCH value
|
88922
90042
|
*/
|
88923
90043
|
Message.PeerDataOperationRequestType = (function() {
|
88924
90044
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -88931,6 +90051,7 @@ values[valuesById[5] = "WAFFLE_LINKING_NONCE_FETCH"] = 5;
|
|
88931
90051
|
values[valuesById[6] = "FULL_HISTORY_SYNC_ON_DEMAND"] = 6;
|
88932
90052
|
values[valuesById[7] = "COMPANION_META_NONCE_FETCH"] = 7;
|
88933
90053
|
values[valuesById[8] = "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY"] = 8;
|
90054
|
+
values[valuesById[9] = "COMPANION_CANONICAL_USER_NONCE_FETCH"] = 9;
|
88934
90055
|
return values;
|
88935
90056
|
})();
|
88936
90057
|
Message.PinInChatMessage = (function() {
|
@@ -106164,6 +107285,7 @@ StatusAttributions.StatusAttribution = (function() {
|
|
106164
107285
|
* @property {StatusAttributions.StatusAttribution.IStatusReshare|null} [statusReshare] StatusAttribution statusReshare
|
106165
107286
|
* @property {StatusAttributions.StatusAttribution.IExternalShare|null} [externalShare] StatusAttribution externalShare
|
106166
107287
|
* @property {StatusAttributions.StatusAttribution.IMusic|null} [music] StatusAttribution music
|
107288
|
+
* @property {StatusAttributions.StatusAttribution.IGroupStatus|null} [groupStatus] StatusAttribution groupStatus
|
106167
107289
|
*/
|
106168
107290
|
/**
|
106169
107291
|
* Constructs a new StatusAttribution.
|
@@ -106214,6 +107336,13 @@ StatusAttribution.prototype.externalShare = null;
|
|
106214
107336
|
* @instance
|
106215
107337
|
*/
|
106216
107338
|
StatusAttribution.prototype.music = null;
|
107339
|
+
/**
|
107340
|
+
* StatusAttribution groupStatus.
|
107341
|
+
* @member {StatusAttributions.StatusAttribution.IGroupStatus|null|undefined} groupStatus
|
107342
|
+
* @memberof StatusAttributions.StatusAttribution
|
107343
|
+
* @instance
|
107344
|
+
*/
|
107345
|
+
StatusAttribution.prototype.groupStatus = null;
|
106217
107346
|
// OneOf field names bound to virtual getters and setters
|
106218
107347
|
var $oneOfFields;
|
106219
107348
|
/**
|
@@ -106238,12 +107367,12 @@ set: $util.oneOfSetter($oneOfFields)
|
|
106238
107367
|
});
|
106239
107368
|
/**
|
106240
107369
|
* StatusAttribution attributionData.
|
106241
|
-
* @member {"statusReshare"|"externalShare"|"music"|undefined} attributionData
|
107370
|
+
* @member {"statusReshare"|"externalShare"|"music"|"groupStatus"|undefined} attributionData
|
106242
107371
|
* @memberof StatusAttributions.StatusAttribution
|
106243
107372
|
* @instance
|
106244
107373
|
*/
|
106245
107374
|
Object.defineProperty(StatusAttribution.prototype, "attributionData", {
|
106246
|
-
get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music"]),
|
107375
|
+
get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music", "groupStatus"]),
|
106247
107376
|
set: $util.oneOfSetter($oneOfFields)
|
106248
107377
|
});
|
106249
107378
|
/**
|
@@ -106279,6 +107408,8 @@ if (message.externalShare != null && Object.hasOwnProperty.call(message, "extern
|
|
106279
107408
|
$root.StatusAttributions.StatusAttribution.ExternalShare.encode(message.externalShare, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
106280
107409
|
if (message.music != null && Object.hasOwnProperty.call(message, "music"))
|
106281
107410
|
$root.StatusAttributions.StatusAttribution.Music.encode(message.music, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
107411
|
+
if (message.groupStatus != null && Object.hasOwnProperty.call(message, "groupStatus"))
|
107412
|
+
$root.StatusAttributions.StatusAttribution.GroupStatus.encode(message.groupStatus, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
106282
107413
|
return writer;
|
106283
107414
|
};
|
106284
107415
|
/**
|
@@ -106333,6 +107464,10 @@ case 5: {
|
|
106333
107464
|
message.music = $root.StatusAttributions.StatusAttribution.Music.decode(reader, reader.uint32());
|
106334
107465
|
break;
|
106335
107466
|
}
|
107467
|
+
case 6: {
|
107468
|
+
message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.decode(reader, reader.uint32());
|
107469
|
+
break;
|
107470
|
+
}
|
106336
107471
|
default:
|
106337
107472
|
reader.skipType(tag & 7);
|
106338
107473
|
break;
|
@@ -106375,6 +107510,8 @@ return "type: enum value expected";
|
|
106375
107510
|
case 0:
|
106376
107511
|
case 1:
|
106377
107512
|
case 2:
|
107513
|
+
case 3:
|
107514
|
+
case 4:
|
106378
107515
|
break;
|
106379
107516
|
}
|
106380
107517
|
}
|
@@ -106411,6 +107548,16 @@ if (error)
|
|
106411
107548
|
return "music." + error;
|
106412
107549
|
}
|
106413
107550
|
}
|
107551
|
+
if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
|
107552
|
+
if (properties.attributionData === 1)
|
107553
|
+
return "attributionData: multiple values";
|
107554
|
+
properties.attributionData = 1;
|
107555
|
+
{
|
107556
|
+
var error = $root.StatusAttributions.StatusAttribution.GroupStatus.verify(message.groupStatus);
|
107557
|
+
if (error)
|
107558
|
+
return "groupStatus." + error;
|
107559
|
+
}
|
107560
|
+
}
|
106414
107561
|
return null;
|
106415
107562
|
};
|
106416
107563
|
/**
|
@@ -106444,6 +107591,14 @@ case "MUSIC":
|
|
106444
107591
|
case 2:
|
106445
107592
|
message.type = 2;
|
106446
107593
|
break;
|
107594
|
+
case "STATUS_MENTION":
|
107595
|
+
case 3:
|
107596
|
+
message.type = 3;
|
107597
|
+
break;
|
107598
|
+
case "GROUP_STATUS":
|
107599
|
+
case 4:
|
107600
|
+
message.type = 4;
|
107601
|
+
break;
|
106447
107602
|
}
|
106448
107603
|
if (object.actionUrl != null)
|
106449
107604
|
message.actionUrl = String(object.actionUrl);
|
@@ -106462,6 +107617,11 @@ if (typeof object.music !== "object")
|
|
106462
107617
|
throw TypeError(".StatusAttributions.StatusAttribution.music: object expected");
|
106463
107618
|
message.music = $root.StatusAttributions.StatusAttribution.Music.fromObject(object.music);
|
106464
107619
|
}
|
107620
|
+
if (object.groupStatus != null) {
|
107621
|
+
if (typeof object.groupStatus !== "object")
|
107622
|
+
throw TypeError(".StatusAttributions.StatusAttribution.groupStatus: object expected");
|
107623
|
+
message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.fromObject(object.groupStatus);
|
107624
|
+
}
|
106465
107625
|
return message;
|
106466
107626
|
};
|
106467
107627
|
/**
|
@@ -106502,6 +107662,11 @@ object.music = $root.StatusAttributions.StatusAttribution.Music.toObject(message
|
|
106502
107662
|
if (options.oneofs)
|
106503
107663
|
object.attributionData = "music";
|
106504
107664
|
}
|
107665
|
+
if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
|
107666
|
+
object.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.toObject(message.groupStatus, options);
|
107667
|
+
if (options.oneofs)
|
107668
|
+
object.attributionData = "groupStatus";
|
107669
|
+
}
|
106505
107670
|
return object;
|
106506
107671
|
};
|
106507
107672
|
/**
|
@@ -106752,6 +107917,8 @@ case 1:
|
|
106752
107917
|
case 2:
|
106753
107918
|
case 3:
|
106754
107919
|
case 4:
|
107920
|
+
case 5:
|
107921
|
+
case 6:
|
106755
107922
|
break;
|
106756
107923
|
}
|
106757
107924
|
}
|
@@ -106808,6 +107975,14 @@ case "SPOTIFY":
|
|
106808
107975
|
case 4:
|
106809
107976
|
message.source = 4;
|
106810
107977
|
break;
|
107978
|
+
case "YOUTUBE":
|
107979
|
+
case 5:
|
107980
|
+
message.source = 5;
|
107981
|
+
break;
|
107982
|
+
case "PINTEREST":
|
107983
|
+
case 6:
|
107984
|
+
message.source = 6;
|
107985
|
+
break;
|
106811
107986
|
}
|
106812
107987
|
if (object.duration != null)
|
106813
107988
|
message.duration = object.duration | 0;
|
@@ -106883,6 +108058,8 @@ return typeUrlPrefix + "/StatusAttributions.StatusAttribution.ExternalShare";
|
|
106883
108058
|
* @property {number} FACEBOOK=2 FACEBOOK value
|
106884
108059
|
* @property {number} MESSENGER=3 MESSENGER value
|
106885
108060
|
* @property {number} SPOTIFY=4 SPOTIFY value
|
108061
|
+
* @property {number} YOUTUBE=5 YOUTUBE value
|
108062
|
+
* @property {number} PINTEREST=6 PINTEREST value
|
106886
108063
|
*/
|
106887
108064
|
ExternalShare.Source = (function() {
|
106888
108065
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -106891,10 +108068,218 @@ values[valuesById[1] = "INSTAGRAM"] = 1;
|
|
106891
108068
|
values[valuesById[2] = "FACEBOOK"] = 2;
|
106892
108069
|
values[valuesById[3] = "MESSENGER"] = 3;
|
106893
108070
|
values[valuesById[4] = "SPOTIFY"] = 4;
|
108071
|
+
values[valuesById[5] = "YOUTUBE"] = 5;
|
108072
|
+
values[valuesById[6] = "PINTEREST"] = 6;
|
106894
108073
|
return values;
|
106895
108074
|
})();
|
106896
108075
|
return ExternalShare;
|
106897
108076
|
})();
|
108077
|
+
StatusAttribution.GroupStatus = (function() {
|
108078
|
+
/**
|
108079
|
+
* Properties of a GroupStatus.
|
108080
|
+
* @memberof StatusAttributions.StatusAttribution
|
108081
|
+
* @interface IGroupStatus
|
108082
|
+
* @property {string|null} [authorJid] GroupStatus authorJid
|
108083
|
+
*/
|
108084
|
+
/**
|
108085
|
+
* Constructs a new GroupStatus.
|
108086
|
+
* @memberof StatusAttributions.StatusAttribution
|
108087
|
+
* @classdesc Represents a GroupStatus.
|
108088
|
+
* @implements IGroupStatus
|
108089
|
+
* @constructor
|
108090
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
|
108091
|
+
*/
|
108092
|
+
function GroupStatus(properties) {
|
108093
|
+
if (properties)
|
108094
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
108095
|
+
if (properties[keys[i]] != null)
|
108096
|
+
this[keys[i]] = properties[keys[i]];
|
108097
|
+
}
|
108098
|
+
/**
|
108099
|
+
* GroupStatus authorJid.
|
108100
|
+
* @member {string|null|undefined} authorJid
|
108101
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108102
|
+
* @instance
|
108103
|
+
*/
|
108104
|
+
GroupStatus.prototype.authorJid = null;
|
108105
|
+
// OneOf field names bound to virtual getters and setters
|
108106
|
+
var $oneOfFields;
|
108107
|
+
/**
|
108108
|
+
* GroupStatus _authorJid.
|
108109
|
+
* @member {"authorJid"|undefined} _authorJid
|
108110
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108111
|
+
* @instance
|
108112
|
+
*/
|
108113
|
+
Object.defineProperty(GroupStatus.prototype, "_authorJid", {
|
108114
|
+
get: $util.oneOfGetter($oneOfFields = ["authorJid"]),
|
108115
|
+
set: $util.oneOfSetter($oneOfFields)
|
108116
|
+
});
|
108117
|
+
/**
|
108118
|
+
* Creates a new GroupStatus instance using the specified properties.
|
108119
|
+
* @function create
|
108120
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108121
|
+
* @static
|
108122
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
|
108123
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus instance
|
108124
|
+
*/
|
108125
|
+
GroupStatus.create = function create(properties) {
|
108126
|
+
return new GroupStatus(properties);
|
108127
|
+
};
|
108128
|
+
/**
|
108129
|
+
* Encodes the specified GroupStatus message. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
|
108130
|
+
* @function encode
|
108131
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108132
|
+
* @static
|
108133
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
|
108134
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
108135
|
+
* @returns {$protobuf.Writer} Writer
|
108136
|
+
*/
|
108137
|
+
GroupStatus.encode = function encode(message, writer) {
|
108138
|
+
if (!writer)
|
108139
|
+
writer = $Writer.create();
|
108140
|
+
if (message.authorJid != null && Object.hasOwnProperty.call(message, "authorJid"))
|
108141
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.authorJid);
|
108142
|
+
return writer;
|
108143
|
+
};
|
108144
|
+
/**
|
108145
|
+
* Encodes the specified GroupStatus message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
|
108146
|
+
* @function encodeDelimited
|
108147
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108148
|
+
* @static
|
108149
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
|
108150
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
108151
|
+
* @returns {$protobuf.Writer} Writer
|
108152
|
+
*/
|
108153
|
+
GroupStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
108154
|
+
return this.encode(message, writer).ldelim();
|
108155
|
+
};
|
108156
|
+
/**
|
108157
|
+
* Decodes a GroupStatus message from the specified reader or buffer.
|
108158
|
+
* @function decode
|
108159
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108160
|
+
* @static
|
108161
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
108162
|
+
* @param {number} [length] Message length if known beforehand
|
108163
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
108164
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
108165
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
108166
|
+
*/
|
108167
|
+
GroupStatus.decode = function decode(reader, length, error) {
|
108168
|
+
if (!(reader instanceof $Reader))
|
108169
|
+
reader = $Reader.create(reader);
|
108170
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
|
108171
|
+
while (reader.pos < end) {
|
108172
|
+
var tag = reader.uint32();
|
108173
|
+
if (tag === error)
|
108174
|
+
break;
|
108175
|
+
switch (tag >>> 3) {
|
108176
|
+
case 1: {
|
108177
|
+
message.authorJid = reader.string();
|
108178
|
+
break;
|
108179
|
+
}
|
108180
|
+
default:
|
108181
|
+
reader.skipType(tag & 7);
|
108182
|
+
break;
|
108183
|
+
}
|
108184
|
+
}
|
108185
|
+
return message;
|
108186
|
+
};
|
108187
|
+
/**
|
108188
|
+
* Decodes a GroupStatus message from the specified reader or buffer, length delimited.
|
108189
|
+
* @function decodeDelimited
|
108190
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108191
|
+
* @static
|
108192
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
108193
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
108194
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
108195
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
108196
|
+
*/
|
108197
|
+
GroupStatus.decodeDelimited = function decodeDelimited(reader) {
|
108198
|
+
if (!(reader instanceof $Reader))
|
108199
|
+
reader = new $Reader(reader);
|
108200
|
+
return this.decode(reader, reader.uint32());
|
108201
|
+
};
|
108202
|
+
/**
|
108203
|
+
* Verifies a GroupStatus message.
|
108204
|
+
* @function verify
|
108205
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108206
|
+
* @static
|
108207
|
+
* @param {Object.<string,*>} message Plain object to verify
|
108208
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
108209
|
+
*/
|
108210
|
+
GroupStatus.verify = function verify(message) {
|
108211
|
+
if (typeof message !== "object" || message === null)
|
108212
|
+
return "object expected";
|
108213
|
+
var properties = {};
|
108214
|
+
if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
|
108215
|
+
properties._authorJid = 1;
|
108216
|
+
if (!$util.isString(message.authorJid))
|
108217
|
+
return "authorJid: string expected";
|
108218
|
+
}
|
108219
|
+
return null;
|
108220
|
+
};
|
108221
|
+
/**
|
108222
|
+
* Creates a GroupStatus message from a plain object. Also converts values to their respective internal types.
|
108223
|
+
* @function fromObject
|
108224
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108225
|
+
* @static
|
108226
|
+
* @param {Object.<string,*>} object Plain object
|
108227
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
108228
|
+
*/
|
108229
|
+
GroupStatus.fromObject = function fromObject(object) {
|
108230
|
+
if (object instanceof $root.StatusAttributions.StatusAttribution.GroupStatus)
|
108231
|
+
return object;
|
108232
|
+
var message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
|
108233
|
+
if (object.authorJid != null)
|
108234
|
+
message.authorJid = String(object.authorJid);
|
108235
|
+
return message;
|
108236
|
+
};
|
108237
|
+
/**
|
108238
|
+
* Creates a plain object from a GroupStatus message. Also converts values to other types if specified.
|
108239
|
+
* @function toObject
|
108240
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108241
|
+
* @static
|
108242
|
+
* @param {StatusAttributions.StatusAttribution.GroupStatus} message GroupStatus
|
108243
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
108244
|
+
* @returns {Object.<string,*>} Plain object
|
108245
|
+
*/
|
108246
|
+
GroupStatus.toObject = function toObject(message, options) {
|
108247
|
+
if (!options)
|
108248
|
+
options = {};
|
108249
|
+
var object = {};
|
108250
|
+
if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
|
108251
|
+
object.authorJid = message.authorJid;
|
108252
|
+
if (options.oneofs)
|
108253
|
+
object._authorJid = "authorJid";
|
108254
|
+
}
|
108255
|
+
return object;
|
108256
|
+
};
|
108257
|
+
/**
|
108258
|
+
* Converts this GroupStatus to JSON.
|
108259
|
+
* @function toJSON
|
108260
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108261
|
+
* @instance
|
108262
|
+
* @returns {Object.<string,*>} JSON object
|
108263
|
+
*/
|
108264
|
+
GroupStatus.prototype.toJSON = function toJSON() {
|
108265
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
108266
|
+
};
|
108267
|
+
/**
|
108268
|
+
* Gets the default type url for GroupStatus
|
108269
|
+
* @function getTypeUrl
|
108270
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
108271
|
+
* @static
|
108272
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
108273
|
+
* @returns {string} The default type url
|
108274
|
+
*/
|
108275
|
+
GroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
108276
|
+
if (typeUrlPrefix === undefined) {
|
108277
|
+
typeUrlPrefix = "type.googleapis.com";
|
108278
|
+
}
|
108279
|
+
return typeUrlPrefix + "/StatusAttributions.StatusAttribution.GroupStatus";
|
108280
|
+
};
|
108281
|
+
return GroupStatus;
|
108282
|
+
})();
|
106898
108283
|
StatusAttribution.Music = (function() {
|
106899
108284
|
/**
|
106900
108285
|
* Properties of a Music.
|
@@ -107896,12 +109281,16 @@ return StatusReshare;
|
|
107896
109281
|
* @property {number} RESHARE=0 RESHARE value
|
107897
109282
|
* @property {number} EXTERNAL_SHARE=1 EXTERNAL_SHARE value
|
107898
109283
|
* @property {number} MUSIC=2 MUSIC value
|
109284
|
+
* @property {number} STATUS_MENTION=3 STATUS_MENTION value
|
109285
|
+
* @property {number} GROUP_STATUS=4 GROUP_STATUS value
|
107899
109286
|
*/
|
107900
109287
|
StatusAttribution.Type = (function() {
|
107901
109288
|
var valuesById = {}, values = Object.create(valuesById);
|
107902
109289
|
values[valuesById[0] = "RESHARE"] = 0;
|
107903
109290
|
values[valuesById[1] = "EXTERNAL_SHARE"] = 1;
|
107904
109291
|
values[valuesById[2] = "MUSIC"] = 2;
|
109292
|
+
values[valuesById[3] = "STATUS_MENTION"] = 3;
|
109293
|
+
values[valuesById[4] = "GROUP_STATUS"] = 4;
|
107905
109294
|
return values;
|
107906
109295
|
})();
|
107907
109296
|
return StatusAttribution;
|
@@ -107922,6 +109311,7 @@ CompanionReg.ClientPairingProps = (function() {
|
|
107922
109311
|
* @interface IClientPairingProps
|
107923
109312
|
* @property {boolean|null} [isChatDbLidMigrated] ClientPairingProps isChatDbLidMigrated
|
107924
109313
|
* @property {boolean|null} [isSyncdPureLidSession] ClientPairingProps isSyncdPureLidSession
|
109314
|
+
* @property {boolean|null} [isSyncdSnapshotRecoveryEnabled] ClientPairingProps isSyncdSnapshotRecoveryEnabled
|
107925
109315
|
*/
|
107926
109316
|
/**
|
107927
109317
|
* Constructs a new ClientPairingProps.
|
@@ -107951,6 +109341,13 @@ ClientPairingProps.prototype.isChatDbLidMigrated = null;
|
|
107951
109341
|
* @instance
|
107952
109342
|
*/
|
107953
109343
|
ClientPairingProps.prototype.isSyncdPureLidSession = null;
|
109344
|
+
/**
|
109345
|
+
* ClientPairingProps isSyncdSnapshotRecoveryEnabled.
|
109346
|
+
* @member {boolean|null|undefined} isSyncdSnapshotRecoveryEnabled
|
109347
|
+
* @memberof CompanionReg.ClientPairingProps
|
109348
|
+
* @instance
|
109349
|
+
*/
|
109350
|
+
ClientPairingProps.prototype.isSyncdSnapshotRecoveryEnabled = null;
|
107954
109351
|
// OneOf field names bound to virtual getters and setters
|
107955
109352
|
var $oneOfFields;
|
107956
109353
|
/**
|
@@ -107974,6 +109371,16 @@ get: $util.oneOfGetter($oneOfFields = ["isSyncdPureLidSession"]),
|
|
107974
109371
|
set: $util.oneOfSetter($oneOfFields)
|
107975
109372
|
});
|
107976
109373
|
/**
|
109374
|
+
* ClientPairingProps _isSyncdSnapshotRecoveryEnabled.
|
109375
|
+
* @member {"isSyncdSnapshotRecoveryEnabled"|undefined} _isSyncdSnapshotRecoveryEnabled
|
109376
|
+
* @memberof CompanionReg.ClientPairingProps
|
109377
|
+
* @instance
|
109378
|
+
*/
|
109379
|
+
Object.defineProperty(ClientPairingProps.prototype, "_isSyncdSnapshotRecoveryEnabled", {
|
109380
|
+
get: $util.oneOfGetter($oneOfFields = ["isSyncdSnapshotRecoveryEnabled"]),
|
109381
|
+
set: $util.oneOfSetter($oneOfFields)
|
109382
|
+
});
|
109383
|
+
/**
|
107977
109384
|
* Creates a new ClientPairingProps instance using the specified properties.
|
107978
109385
|
* @function create
|
107979
109386
|
* @memberof CompanionReg.ClientPairingProps
|
@@ -108000,6 +109407,8 @@ if (message.isChatDbLidMigrated != null && Object.hasOwnProperty.call(message, "
|
|
108000
109407
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isChatDbLidMigrated);
|
108001
109408
|
if (message.isSyncdPureLidSession != null && Object.hasOwnProperty.call(message, "isSyncdPureLidSession"))
|
108002
109409
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSyncdPureLidSession);
|
109410
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && Object.hasOwnProperty.call(message, "isSyncdSnapshotRecoveryEnabled"))
|
109411
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSyncdSnapshotRecoveryEnabled);
|
108003
109412
|
return writer;
|
108004
109413
|
};
|
108005
109414
|
/**
|
@@ -108042,6 +109451,10 @@ case 2: {
|
|
108042
109451
|
message.isSyncdPureLidSession = reader.bool();
|
108043
109452
|
break;
|
108044
109453
|
}
|
109454
|
+
case 3: {
|
109455
|
+
message.isSyncdSnapshotRecoveryEnabled = reader.bool();
|
109456
|
+
break;
|
109457
|
+
}
|
108045
109458
|
default:
|
108046
109459
|
reader.skipType(tag & 7);
|
108047
109460
|
break;
|
@@ -108086,6 +109499,11 @@ properties._isSyncdPureLidSession = 1;
|
|
108086
109499
|
if (typeof message.isSyncdPureLidSession !== "boolean")
|
108087
109500
|
return "isSyncdPureLidSession: boolean expected";
|
108088
109501
|
}
|
109502
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
|
109503
|
+
properties._isSyncdSnapshotRecoveryEnabled = 1;
|
109504
|
+
if (typeof message.isSyncdSnapshotRecoveryEnabled !== "boolean")
|
109505
|
+
return "isSyncdSnapshotRecoveryEnabled: boolean expected";
|
109506
|
+
}
|
108089
109507
|
return null;
|
108090
109508
|
};
|
108091
109509
|
/**
|
@@ -108104,6 +109522,8 @@ if (object.isChatDbLidMigrated != null)
|
|
108104
109522
|
message.isChatDbLidMigrated = Boolean(object.isChatDbLidMigrated);
|
108105
109523
|
if (object.isSyncdPureLidSession != null)
|
108106
109524
|
message.isSyncdPureLidSession = Boolean(object.isSyncdPureLidSession);
|
109525
|
+
if (object.isSyncdSnapshotRecoveryEnabled != null)
|
109526
|
+
message.isSyncdSnapshotRecoveryEnabled = Boolean(object.isSyncdSnapshotRecoveryEnabled);
|
108107
109527
|
return message;
|
108108
109528
|
};
|
108109
109529
|
/**
|
@@ -108129,6 +109549,11 @@ object.isSyncdPureLidSession = message.isSyncdPureLidSession;
|
|
108129
109549
|
if (options.oneofs)
|
108130
109550
|
object._isSyncdPureLidSession = "isSyncdPureLidSession";
|
108131
109551
|
}
|
109552
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
|
109553
|
+
object.isSyncdSnapshotRecoveryEnabled = message.isSyncdSnapshotRecoveryEnabled;
|
109554
|
+
if (options.oneofs)
|
109555
|
+
object._isSyncdSnapshotRecoveryEnabled = "isSyncdSnapshotRecoveryEnabled";
|
109556
|
+
}
|
108132
109557
|
return object;
|
108133
109558
|
};
|
108134
109559
|
/**
|