@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/E2E/E2E.js
CHANGED
@@ -10986,6 +10986,7 @@ case 11:
|
|
10986
10986
|
case 12:
|
10987
10987
|
case 13:
|
10988
10988
|
case 14:
|
10989
|
+
case 15:
|
10989
10990
|
break;
|
10990
10991
|
}
|
10991
10992
|
}
|
@@ -11083,6 +11084,10 @@ case "VIEW_ALL_REPLIES":
|
|
11083
11084
|
case 14:
|
11084
11085
|
message.associationType = 14;
|
11085
11086
|
break;
|
11087
|
+
case "STATUS_ADD_YOURS_AI_IMAGINE":
|
11088
|
+
case 15:
|
11089
|
+
message.associationType = 15;
|
11090
|
+
break;
|
11086
11091
|
}
|
11087
11092
|
if (object.parentMessageKey != null) {
|
11088
11093
|
if (typeof object.parentMessageKey !== "object")
|
@@ -11166,6 +11171,7 @@ return typeUrlPrefix + "/E2E.MessageAssociation";
|
|
11166
11171
|
* @property {number} MOTION_PHOTO=12 MOTION_PHOTO value
|
11167
11172
|
* @property {number} STATUS_LINK_ACTION=13 STATUS_LINK_ACTION value
|
11168
11173
|
* @property {number} VIEW_ALL_REPLIES=14 VIEW_ALL_REPLIES value
|
11174
|
+
* @property {number} STATUS_ADD_YOURS_AI_IMAGINE=15 STATUS_ADD_YOURS_AI_IMAGINE value
|
11169
11175
|
*/
|
11170
11176
|
MessageAssociation.AssociationType = (function() {
|
11171
11177
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -11184,6 +11190,7 @@ values[valuesById[11] = "STICKER_ANNOTATION"] = 11;
|
|
11184
11190
|
values[valuesById[12] = "MOTION_PHOTO"] = 12;
|
11185
11191
|
values[valuesById[13] = "STATUS_LINK_ACTION"] = 13;
|
11186
11192
|
values[valuesById[14] = "VIEW_ALL_REPLIES"] = 14;
|
11193
|
+
values[valuesById[15] = "STATUS_ADD_YOURS_AI_IMAGINE"] = 15;
|
11187
11194
|
return values;
|
11188
11195
|
})();
|
11189
11196
|
return MessageAssociation;
|
@@ -11218,6 +11225,8 @@ E2E.BotMetadata = (function() {
|
|
11218
11225
|
* @property {E2E.IBotQuotaMetadata|null} [botQuotaMetadata] BotMetadata botQuotaMetadata
|
11219
11226
|
* @property {E2E.IBotAgeCollectionMetadata|null} [botAgeCollectionMetadata] BotMetadata botAgeCollectionMetadata
|
11220
11227
|
* @property {string|null} [conversationStarterPromptId] BotMetadata conversationStarterPromptId
|
11228
|
+
* @property {string|null} [botResponseId] BotMetadata botResponseId
|
11229
|
+
* @property {E2E.IBotSignatureVerificationMetadata|null} [verificationMetadata] BotMetadata verificationMetadata
|
11221
11230
|
*/
|
11222
11231
|
/**
|
11223
11232
|
* Constructs a new BotMetadata.
|
@@ -11408,6 +11417,20 @@ BotMetadata.prototype.botAgeCollectionMetadata = null;
|
|
11408
11417
|
* @instance
|
11409
11418
|
*/
|
11410
11419
|
BotMetadata.prototype.conversationStarterPromptId = null;
|
11420
|
+
/**
|
11421
|
+
* BotMetadata botResponseId.
|
11422
|
+
* @member {string|null|undefined} botResponseId
|
11423
|
+
* @memberof E2E.BotMetadata
|
11424
|
+
* @instance
|
11425
|
+
*/
|
11426
|
+
BotMetadata.prototype.botResponseId = null;
|
11427
|
+
/**
|
11428
|
+
* BotMetadata verificationMetadata.
|
11429
|
+
* @member {E2E.IBotSignatureVerificationMetadata|null|undefined} verificationMetadata
|
11430
|
+
* @memberof E2E.BotMetadata
|
11431
|
+
* @instance
|
11432
|
+
*/
|
11433
|
+
BotMetadata.prototype.verificationMetadata = null;
|
11411
11434
|
// OneOf field names bound to virtual getters and setters
|
11412
11435
|
var $oneOfFields;
|
11413
11436
|
/**
|
@@ -11661,6 +11684,26 @@ get: $util.oneOfGetter($oneOfFields = ["conversationStarterPromptId"]),
|
|
11661
11684
|
set: $util.oneOfSetter($oneOfFields)
|
11662
11685
|
});
|
11663
11686
|
/**
|
11687
|
+
* BotMetadata _botResponseId.
|
11688
|
+
* @member {"botResponseId"|undefined} _botResponseId
|
11689
|
+
* @memberof E2E.BotMetadata
|
11690
|
+
* @instance
|
11691
|
+
*/
|
11692
|
+
Object.defineProperty(BotMetadata.prototype, "_botResponseId", {
|
11693
|
+
get: $util.oneOfGetter($oneOfFields = ["botResponseId"]),
|
11694
|
+
set: $util.oneOfSetter($oneOfFields)
|
11695
|
+
});
|
11696
|
+
/**
|
11697
|
+
* BotMetadata _verificationMetadata.
|
11698
|
+
* @member {"verificationMetadata"|undefined} _verificationMetadata
|
11699
|
+
* @memberof E2E.BotMetadata
|
11700
|
+
* @instance
|
11701
|
+
*/
|
11702
|
+
Object.defineProperty(BotMetadata.prototype, "_verificationMetadata", {
|
11703
|
+
get: $util.oneOfGetter($oneOfFields = ["verificationMetadata"]),
|
11704
|
+
set: $util.oneOfSetter($oneOfFields)
|
11705
|
+
});
|
11706
|
+
/**
|
11664
11707
|
* Creates a new BotMetadata instance using the specified properties.
|
11665
11708
|
* @function create
|
11666
11709
|
* @memberof E2E.BotMetadata
|
@@ -11733,6 +11776,10 @@ if (message.botAgeCollectionMetadata != null && Object.hasOwnProperty.call(messa
|
|
11733
11776
|
$root.E2E.BotAgeCollectionMetadata.encode(message.botAgeCollectionMetadata, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
|
11734
11777
|
if (message.conversationStarterPromptId != null && Object.hasOwnProperty.call(message, "conversationStarterPromptId"))
|
11735
11778
|
writer.uint32(/* id 25, wireType 2 =*/202).string(message.conversationStarterPromptId);
|
11779
|
+
if (message.botResponseId != null && Object.hasOwnProperty.call(message, "botResponseId"))
|
11780
|
+
writer.uint32(/* id 26, wireType 2 =*/210).string(message.botResponseId);
|
11781
|
+
if (message.verificationMetadata != null && Object.hasOwnProperty.call(message, "verificationMetadata"))
|
11782
|
+
$root.E2E.BotSignatureVerificationMetadata.encode(message.verificationMetadata, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
11736
11783
|
return writer;
|
11737
11784
|
};
|
11738
11785
|
/**
|
@@ -11867,6 +11914,14 @@ case 25: {
|
|
11867
11914
|
message.conversationStarterPromptId = reader.string();
|
11868
11915
|
break;
|
11869
11916
|
}
|
11917
|
+
case 26: {
|
11918
|
+
message.botResponseId = reader.string();
|
11919
|
+
break;
|
11920
|
+
}
|
11921
|
+
case 27: {
|
11922
|
+
message.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.decode(reader, reader.uint32());
|
11923
|
+
break;
|
11924
|
+
}
|
11870
11925
|
default:
|
11871
11926
|
reader.skipType(tag & 7);
|
11872
11927
|
break;
|
@@ -12083,6 +12138,19 @@ properties._conversationStarterPromptId = 1;
|
|
12083
12138
|
if (!$util.isString(message.conversationStarterPromptId))
|
12084
12139
|
return "conversationStarterPromptId: string expected";
|
12085
12140
|
}
|
12141
|
+
if (message.botResponseId != null && message.hasOwnProperty("botResponseId")) {
|
12142
|
+
properties._botResponseId = 1;
|
12143
|
+
if (!$util.isString(message.botResponseId))
|
12144
|
+
return "botResponseId: string expected";
|
12145
|
+
}
|
12146
|
+
if (message.verificationMetadata != null && message.hasOwnProperty("verificationMetadata")) {
|
12147
|
+
properties._verificationMetadata = 1;
|
12148
|
+
{
|
12149
|
+
var error = $root.E2E.BotSignatureVerificationMetadata.verify(message.verificationMetadata);
|
12150
|
+
if (error)
|
12151
|
+
return "verificationMetadata." + error;
|
12152
|
+
}
|
12153
|
+
}
|
12086
12154
|
return null;
|
12087
12155
|
};
|
12088
12156
|
/**
|
@@ -12207,6 +12275,13 @@ message.botAgeCollectionMetadata = $root.E2E.BotAgeCollectionMetadata.fromObject
|
|
12207
12275
|
}
|
12208
12276
|
if (object.conversationStarterPromptId != null)
|
12209
12277
|
message.conversationStarterPromptId = String(object.conversationStarterPromptId);
|
12278
|
+
if (object.botResponseId != null)
|
12279
|
+
message.botResponseId = String(object.botResponseId);
|
12280
|
+
if (object.verificationMetadata != null) {
|
12281
|
+
if (typeof object.verificationMetadata !== "object")
|
12282
|
+
throw TypeError(".E2E.BotMetadata.verificationMetadata: object expected");
|
12283
|
+
message.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.fromObject(object.verificationMetadata);
|
12284
|
+
}
|
12210
12285
|
return message;
|
12211
12286
|
};
|
12212
12287
|
/**
|
@@ -12347,6 +12422,16 @@ object.conversationStarterPromptId = message.conversationStarterPromptId;
|
|
12347
12422
|
if (options.oneofs)
|
12348
12423
|
object._conversationStarterPromptId = "conversationStarterPromptId";
|
12349
12424
|
}
|
12425
|
+
if (message.botResponseId != null && message.hasOwnProperty("botResponseId")) {
|
12426
|
+
object.botResponseId = message.botResponseId;
|
12427
|
+
if (options.oneofs)
|
12428
|
+
object._botResponseId = "botResponseId";
|
12429
|
+
}
|
12430
|
+
if (message.verificationMetadata != null && message.hasOwnProperty("verificationMetadata")) {
|
12431
|
+
object.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.toObject(message.verificationMetadata, options);
|
12432
|
+
if (options.oneofs)
|
12433
|
+
object._verificationMetadata = "verificationMetadata";
|
12434
|
+
}
|
12350
12435
|
return object;
|
12351
12436
|
};
|
12352
12437
|
/**
|
@@ -14475,6 +14560,7 @@ case 32:
|
|
14475
14560
|
case 33:
|
14476
14561
|
case 34:
|
14477
14562
|
case 35:
|
14563
|
+
case 36:
|
14478
14564
|
break;
|
14479
14565
|
}
|
14480
14566
|
}
|
@@ -14647,6 +14733,10 @@ case "PROMOTION_MESSAGE":
|
|
14647
14733
|
case 35:
|
14648
14734
|
message.capabilities[i] = 35;
|
14649
14735
|
break;
|
14736
|
+
case "SIMPLIFIED_PROFILE_PAGE":
|
14737
|
+
case 36:
|
14738
|
+
message.capabilities[i] = 36;
|
14739
|
+
break;
|
14650
14740
|
}
|
14651
14741
|
}
|
14652
14742
|
return message;
|
@@ -14737,6 +14827,7 @@ return typeUrlPrefix + "/E2E.BotCapabilityMetadata";
|
|
14737
14827
|
* @property {number} PROACTIVE_MESSAGE=33 PROACTIVE_MESSAGE value
|
14738
14828
|
* @property {number} RICH_RESPONSE_UNIFIED_RESPONSE=34 RICH_RESPONSE_UNIFIED_RESPONSE value
|
14739
14829
|
* @property {number} PROMOTION_MESSAGE=35 PROMOTION_MESSAGE value
|
14830
|
+
* @property {number} SIMPLIFIED_PROFILE_PAGE=36 SIMPLIFIED_PROFILE_PAGE value
|
14740
14831
|
*/
|
14741
14832
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
14742
14833
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -14776,6 +14867,7 @@ values[valuesById[32] = "QUERY_PLAN"] = 32;
|
|
14776
14867
|
values[valuesById[33] = "PROACTIVE_MESSAGE"] = 33;
|
14777
14868
|
values[valuesById[34] = "RICH_RESPONSE_UNIFIED_RESPONSE"] = 34;
|
14778
14869
|
values[valuesById[35] = "PROMOTION_MESSAGE"] = 35;
|
14870
|
+
values[valuesById[36] = "SIMPLIFIED_PROFILE_PAGE"] = 36;
|
14779
14871
|
return values;
|
14780
14872
|
})();
|
14781
14873
|
return BotCapabilityMetadata;
|
@@ -19416,6 +19508,7 @@ E2E.AIRichResponseMessage = (function() {
|
|
19416
19508
|
* @property {E2E.AIRichResponseMessage.AIRichResponseMessageType|null} [messageType] AIRichResponseMessage messageType
|
19417
19509
|
* @property {Array.<E2E.AIRichResponseMessage.IAIRichResponseSubMessage>|null} [submessages] AIRichResponseMessage submessages
|
19418
19510
|
* @property {E2E.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null} [unifiedResponse] AIRichResponseMessage unifiedResponse
|
19511
|
+
* @property {E2E.IContextInfo|null} [contextInfo] AIRichResponseMessage contextInfo
|
19419
19512
|
*/
|
19420
19513
|
/**
|
19421
19514
|
* Constructs a new AIRichResponseMessage.
|
@@ -19453,6 +19546,13 @@ AIRichResponseMessage.prototype.submessages = $util.emptyArray;
|
|
19453
19546
|
* @instance
|
19454
19547
|
*/
|
19455
19548
|
AIRichResponseMessage.prototype.unifiedResponse = null;
|
19549
|
+
/**
|
19550
|
+
* AIRichResponseMessage contextInfo.
|
19551
|
+
* @member {E2E.IContextInfo|null|undefined} contextInfo
|
19552
|
+
* @memberof E2E.AIRichResponseMessage
|
19553
|
+
* @instance
|
19554
|
+
*/
|
19555
|
+
AIRichResponseMessage.prototype.contextInfo = null;
|
19456
19556
|
// OneOf field names bound to virtual getters and setters
|
19457
19557
|
var $oneOfFields;
|
19458
19558
|
/**
|
@@ -19476,6 +19576,16 @@ get: $util.oneOfGetter($oneOfFields = ["unifiedResponse"]),
|
|
19476
19576
|
set: $util.oneOfSetter($oneOfFields)
|
19477
19577
|
});
|
19478
19578
|
/**
|
19579
|
+
* AIRichResponseMessage _contextInfo.
|
19580
|
+
* @member {"contextInfo"|undefined} _contextInfo
|
19581
|
+
* @memberof E2E.AIRichResponseMessage
|
19582
|
+
* @instance
|
19583
|
+
*/
|
19584
|
+
Object.defineProperty(AIRichResponseMessage.prototype, "_contextInfo", {
|
19585
|
+
get: $util.oneOfGetter($oneOfFields = ["contextInfo"]),
|
19586
|
+
set: $util.oneOfSetter($oneOfFields)
|
19587
|
+
});
|
19588
|
+
/**
|
19479
19589
|
* Creates a new AIRichResponseMessage instance using the specified properties.
|
19480
19590
|
* @function create
|
19481
19591
|
* @memberof E2E.AIRichResponseMessage
|
@@ -19505,6 +19615,8 @@ for (var i = 0; i < message.submessages.length; ++i)
|
|
19505
19615
|
$root.E2E.AIRichResponseMessage.AIRichResponseSubMessage.encode(message.submessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
19506
19616
|
if (message.unifiedResponse != null && Object.hasOwnProperty.call(message, "unifiedResponse"))
|
19507
19617
|
$root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.encode(message.unifiedResponse, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
19618
|
+
if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
|
19619
|
+
$root.E2E.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
19508
19620
|
return writer;
|
19509
19621
|
};
|
19510
19622
|
/**
|
@@ -19553,6 +19665,10 @@ case 3: {
|
|
19553
19665
|
message.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.decode(reader, reader.uint32());
|
19554
19666
|
break;
|
19555
19667
|
}
|
19668
|
+
case 4: {
|
19669
|
+
message.contextInfo = $root.E2E.ContextInfo.decode(reader, reader.uint32());
|
19670
|
+
break;
|
19671
|
+
}
|
19556
19672
|
default:
|
19557
19673
|
reader.skipType(tag & 7);
|
19558
19674
|
break;
|
@@ -19614,6 +19730,14 @@ if (error)
|
|
19614
19730
|
return "unifiedResponse." + error;
|
19615
19731
|
}
|
19616
19732
|
}
|
19733
|
+
if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
|
19734
|
+
properties._contextInfo = 1;
|
19735
|
+
{
|
19736
|
+
var error = $root.E2E.ContextInfo.verify(message.contextInfo);
|
19737
|
+
if (error)
|
19738
|
+
return "contextInfo." + error;
|
19739
|
+
}
|
19740
|
+
}
|
19617
19741
|
return null;
|
19618
19742
|
};
|
19619
19743
|
/**
|
@@ -19659,6 +19783,11 @@ if (typeof object.unifiedResponse !== "object")
|
|
19659
19783
|
throw TypeError(".E2E.AIRichResponseMessage.unifiedResponse: object expected");
|
19660
19784
|
message.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.fromObject(object.unifiedResponse);
|
19661
19785
|
}
|
19786
|
+
if (object.contextInfo != null) {
|
19787
|
+
if (typeof object.contextInfo !== "object")
|
19788
|
+
throw TypeError(".E2E.AIRichResponseMessage.contextInfo: object expected");
|
19789
|
+
message.contextInfo = $root.E2E.ContextInfo.fromObject(object.contextInfo);
|
19790
|
+
}
|
19662
19791
|
return message;
|
19663
19792
|
};
|
19664
19793
|
/**
|
@@ -19691,6 +19820,11 @@ object.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedRe
|
|
19691
19820
|
if (options.oneofs)
|
19692
19821
|
object._unifiedResponse = "unifiedResponse";
|
19693
19822
|
}
|
19823
|
+
if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
|
19824
|
+
object.contextInfo = $root.E2E.ContextInfo.toObject(message.contextInfo, options);
|
19825
|
+
if (options.oneofs)
|
19826
|
+
object._contextInfo = "contextInfo";
|
19827
|
+
}
|
19694
19828
|
return object;
|
19695
19829
|
};
|
19696
19830
|
/**
|
@@ -24506,6 +24640,7 @@ AIRichResponseMessage.AIRichResponseTableMetadata = (function() {
|
|
24506
24640
|
* @memberof E2E.AIRichResponseMessage
|
24507
24641
|
* @interface IAIRichResponseTableMetadata
|
24508
24642
|
* @property {Array.<E2E.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow>|null} [rows] AIRichResponseTableMetadata rows
|
24643
|
+
* @property {string|null} [title] AIRichResponseTableMetadata title
|
24509
24644
|
*/
|
24510
24645
|
/**
|
24511
24646
|
* Constructs a new AIRichResponseTableMetadata.
|
@@ -24530,6 +24665,25 @@ this[keys[i]] = properties[keys[i]];
|
|
24530
24665
|
*/
|
24531
24666
|
AIRichResponseTableMetadata.prototype.rows = $util.emptyArray;
|
24532
24667
|
/**
|
24668
|
+
* AIRichResponseTableMetadata title.
|
24669
|
+
* @member {string|null|undefined} title
|
24670
|
+
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
24671
|
+
* @instance
|
24672
|
+
*/
|
24673
|
+
AIRichResponseTableMetadata.prototype.title = null;
|
24674
|
+
// OneOf field names bound to virtual getters and setters
|
24675
|
+
var $oneOfFields;
|
24676
|
+
/**
|
24677
|
+
* AIRichResponseTableMetadata _title.
|
24678
|
+
* @member {"title"|undefined} _title
|
24679
|
+
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
24680
|
+
* @instance
|
24681
|
+
*/
|
24682
|
+
Object.defineProperty(AIRichResponseTableMetadata.prototype, "_title", {
|
24683
|
+
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
24684
|
+
set: $util.oneOfSetter($oneOfFields)
|
24685
|
+
});
|
24686
|
+
/**
|
24533
24687
|
* Creates a new AIRichResponseTableMetadata instance using the specified properties.
|
24534
24688
|
* @function create
|
24535
24689
|
* @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
|
@@ -24555,6 +24709,8 @@ writer = $Writer.create();
|
|
24555
24709
|
if (message.rows != null && message.rows.length)
|
24556
24710
|
for (var i = 0; i < message.rows.length; ++i)
|
24557
24711
|
$root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.encode(message.rows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
24712
|
+
if (message.title != null && Object.hasOwnProperty.call(message, "title"))
|
24713
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
|
24558
24714
|
return writer;
|
24559
24715
|
};
|
24560
24716
|
/**
|
@@ -24595,6 +24751,10 @@ message.rows = [];
|
|
24595
24751
|
message.rows.push($root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.decode(reader, reader.uint32()));
|
24596
24752
|
break;
|
24597
24753
|
}
|
24754
|
+
case 2: {
|
24755
|
+
message.title = reader.string();
|
24756
|
+
break;
|
24757
|
+
}
|
24598
24758
|
default:
|
24599
24759
|
reader.skipType(tag & 7);
|
24600
24760
|
break;
|
@@ -24628,6 +24788,7 @@ return this.decode(reader, reader.uint32());
|
|
24628
24788
|
AIRichResponseTableMetadata.verify = function verify(message) {
|
24629
24789
|
if (typeof message !== "object" || message === null)
|
24630
24790
|
return "object expected";
|
24791
|
+
var properties = {};
|
24631
24792
|
if (message.rows != null && message.hasOwnProperty("rows")) {
|
24632
24793
|
if (!Array.isArray(message.rows))
|
24633
24794
|
return "rows: array expected";
|
@@ -24637,6 +24798,11 @@ if (error)
|
|
24637
24798
|
return "rows." + error;
|
24638
24799
|
}
|
24639
24800
|
}
|
24801
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
24802
|
+
properties._title = 1;
|
24803
|
+
if (!$util.isString(message.title))
|
24804
|
+
return "title: string expected";
|
24805
|
+
}
|
24640
24806
|
return null;
|
24641
24807
|
};
|
24642
24808
|
/**
|
@@ -24661,6 +24827,8 @@ throw TypeError(".E2E.AIRichResponseMessage.AIRichResponseTableMetadata.rows: ob
|
|
24661
24827
|
message.rows[i] = $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.fromObject(object.rows[i]);
|
24662
24828
|
}
|
24663
24829
|
}
|
24830
|
+
if (object.title != null)
|
24831
|
+
message.title = String(object.title);
|
24664
24832
|
return message;
|
24665
24833
|
};
|
24666
24834
|
/**
|
@@ -24683,6 +24851,11 @@ object.rows = [];
|
|
24683
24851
|
for (var j = 0; j < message.rows.length; ++j)
|
24684
24852
|
object.rows[j] = $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.toObject(message.rows[j], options);
|
24685
24853
|
}
|
24854
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
24855
|
+
object.title = message.title;
|
24856
|
+
if (options.oneofs)
|
24857
|
+
object._title = "title";
|
24858
|
+
}
|
24686
24859
|
return object;
|
24687
24860
|
};
|
24688
24861
|
/**
|
@@ -25167,6 +25340,562 @@ return AIRichResponseUnifiedResponse;
|
|
25167
25340
|
})();
|
25168
25341
|
return AIRichResponseMessage;
|
25169
25342
|
})();
|
25343
|
+
E2E.BotSignatureVerificationUseCaseProof = (function() {
|
25344
|
+
/**
|
25345
|
+
* Properties of a BotSignatureVerificationUseCaseProof.
|
25346
|
+
* @memberof E2E
|
25347
|
+
* @interface IBotSignatureVerificationUseCaseProof
|
25348
|
+
* @property {number|null} [version] BotSignatureVerificationUseCaseProof version
|
25349
|
+
* @property {E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null} [useCase] BotSignatureVerificationUseCaseProof useCase
|
25350
|
+
* @property {Uint8Array|null} [signature] BotSignatureVerificationUseCaseProof signature
|
25351
|
+
* @property {Uint8Array|null} [certificateChain] BotSignatureVerificationUseCaseProof certificateChain
|
25352
|
+
*/
|
25353
|
+
/**
|
25354
|
+
* Constructs a new BotSignatureVerificationUseCaseProof.
|
25355
|
+
* @memberof E2E
|
25356
|
+
* @classdesc Represents a BotSignatureVerificationUseCaseProof.
|
25357
|
+
* @implements IBotSignatureVerificationUseCaseProof
|
25358
|
+
* @constructor
|
25359
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof=} [properties] Properties to set
|
25360
|
+
*/
|
25361
|
+
function BotSignatureVerificationUseCaseProof(properties) {
|
25362
|
+
if (properties)
|
25363
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
25364
|
+
if (properties[keys[i]] != null)
|
25365
|
+
this[keys[i]] = properties[keys[i]];
|
25366
|
+
}
|
25367
|
+
/**
|
25368
|
+
* BotSignatureVerificationUseCaseProof version.
|
25369
|
+
* @member {number|null|undefined} version
|
25370
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25371
|
+
* @instance
|
25372
|
+
*/
|
25373
|
+
BotSignatureVerificationUseCaseProof.prototype.version = null;
|
25374
|
+
/**
|
25375
|
+
* BotSignatureVerificationUseCaseProof useCase.
|
25376
|
+
* @member {E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null|undefined} useCase
|
25377
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25378
|
+
* @instance
|
25379
|
+
*/
|
25380
|
+
BotSignatureVerificationUseCaseProof.prototype.useCase = null;
|
25381
|
+
/**
|
25382
|
+
* BotSignatureVerificationUseCaseProof signature.
|
25383
|
+
* @member {Uint8Array|null|undefined} signature
|
25384
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25385
|
+
* @instance
|
25386
|
+
*/
|
25387
|
+
BotSignatureVerificationUseCaseProof.prototype.signature = null;
|
25388
|
+
/**
|
25389
|
+
* BotSignatureVerificationUseCaseProof certificateChain.
|
25390
|
+
* @member {Uint8Array|null|undefined} certificateChain
|
25391
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25392
|
+
* @instance
|
25393
|
+
*/
|
25394
|
+
BotSignatureVerificationUseCaseProof.prototype.certificateChain = null;
|
25395
|
+
// OneOf field names bound to virtual getters and setters
|
25396
|
+
var $oneOfFields;
|
25397
|
+
/**
|
25398
|
+
* BotSignatureVerificationUseCaseProof _version.
|
25399
|
+
* @member {"version"|undefined} _version
|
25400
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25401
|
+
* @instance
|
25402
|
+
*/
|
25403
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_version", {
|
25404
|
+
get: $util.oneOfGetter($oneOfFields = ["version"]),
|
25405
|
+
set: $util.oneOfSetter($oneOfFields)
|
25406
|
+
});
|
25407
|
+
/**
|
25408
|
+
* BotSignatureVerificationUseCaseProof _useCase.
|
25409
|
+
* @member {"useCase"|undefined} _useCase
|
25410
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25411
|
+
* @instance
|
25412
|
+
*/
|
25413
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_useCase", {
|
25414
|
+
get: $util.oneOfGetter($oneOfFields = ["useCase"]),
|
25415
|
+
set: $util.oneOfSetter($oneOfFields)
|
25416
|
+
});
|
25417
|
+
/**
|
25418
|
+
* BotSignatureVerificationUseCaseProof _signature.
|
25419
|
+
* @member {"signature"|undefined} _signature
|
25420
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25421
|
+
* @instance
|
25422
|
+
*/
|
25423
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_signature", {
|
25424
|
+
get: $util.oneOfGetter($oneOfFields = ["signature"]),
|
25425
|
+
set: $util.oneOfSetter($oneOfFields)
|
25426
|
+
});
|
25427
|
+
/**
|
25428
|
+
* BotSignatureVerificationUseCaseProof _certificateChain.
|
25429
|
+
* @member {"certificateChain"|undefined} _certificateChain
|
25430
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25431
|
+
* @instance
|
25432
|
+
*/
|
25433
|
+
Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_certificateChain", {
|
25434
|
+
get: $util.oneOfGetter($oneOfFields = ["certificateChain"]),
|
25435
|
+
set: $util.oneOfSetter($oneOfFields)
|
25436
|
+
});
|
25437
|
+
/**
|
25438
|
+
* Creates a new BotSignatureVerificationUseCaseProof instance using the specified properties.
|
25439
|
+
* @function create
|
25440
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25441
|
+
* @static
|
25442
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof=} [properties] Properties to set
|
25443
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof instance
|
25444
|
+
*/
|
25445
|
+
BotSignatureVerificationUseCaseProof.create = function create(properties) {
|
25446
|
+
return new BotSignatureVerificationUseCaseProof(properties);
|
25447
|
+
};
|
25448
|
+
/**
|
25449
|
+
* Encodes the specified BotSignatureVerificationUseCaseProof message. Does not implicitly {@link E2E.BotSignatureVerificationUseCaseProof.verify|verify} messages.
|
25450
|
+
* @function encode
|
25451
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25452
|
+
* @static
|
25453
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof message or plain object to encode
|
25454
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
25455
|
+
* @returns {$protobuf.Writer} Writer
|
25456
|
+
*/
|
25457
|
+
BotSignatureVerificationUseCaseProof.encode = function encode(message, writer) {
|
25458
|
+
if (!writer)
|
25459
|
+
writer = $Writer.create();
|
25460
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
25461
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version);
|
25462
|
+
if (message.useCase != null && Object.hasOwnProperty.call(message, "useCase"))
|
25463
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.useCase);
|
25464
|
+
if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
|
25465
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature);
|
25466
|
+
if (message.certificateChain != null && Object.hasOwnProperty.call(message, "certificateChain"))
|
25467
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.certificateChain);
|
25468
|
+
return writer;
|
25469
|
+
};
|
25470
|
+
/**
|
25471
|
+
* Encodes the specified BotSignatureVerificationUseCaseProof message, length delimited. Does not implicitly {@link E2E.BotSignatureVerificationUseCaseProof.verify|verify} messages.
|
25472
|
+
* @function encodeDelimited
|
25473
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25474
|
+
* @static
|
25475
|
+
* @param {E2E.IBotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof message or plain object to encode
|
25476
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
25477
|
+
* @returns {$protobuf.Writer} Writer
|
25478
|
+
*/
|
25479
|
+
BotSignatureVerificationUseCaseProof.encodeDelimited = function encodeDelimited(message, writer) {
|
25480
|
+
return this.encode(message, writer).ldelim();
|
25481
|
+
};
|
25482
|
+
/**
|
25483
|
+
* Decodes a BotSignatureVerificationUseCaseProof message from the specified reader or buffer.
|
25484
|
+
* @function decode
|
25485
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25486
|
+
* @static
|
25487
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
25488
|
+
* @param {number} [length] Message length if known beforehand
|
25489
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
25490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
25491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
25492
|
+
*/
|
25493
|
+
BotSignatureVerificationUseCaseProof.decode = function decode(reader, length, error) {
|
25494
|
+
if (!(reader instanceof $Reader))
|
25495
|
+
reader = $Reader.create(reader);
|
25496
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.BotSignatureVerificationUseCaseProof();
|
25497
|
+
while (reader.pos < end) {
|
25498
|
+
var tag = reader.uint32();
|
25499
|
+
if (tag === error)
|
25500
|
+
break;
|
25501
|
+
switch (tag >>> 3) {
|
25502
|
+
case 1: {
|
25503
|
+
message.version = reader.int32();
|
25504
|
+
break;
|
25505
|
+
}
|
25506
|
+
case 2: {
|
25507
|
+
message.useCase = reader.int32();
|
25508
|
+
break;
|
25509
|
+
}
|
25510
|
+
case 3: {
|
25511
|
+
message.signature = reader.bytes();
|
25512
|
+
break;
|
25513
|
+
}
|
25514
|
+
case 4: {
|
25515
|
+
message.certificateChain = reader.bytes();
|
25516
|
+
break;
|
25517
|
+
}
|
25518
|
+
default:
|
25519
|
+
reader.skipType(tag & 7);
|
25520
|
+
break;
|
25521
|
+
}
|
25522
|
+
}
|
25523
|
+
return message;
|
25524
|
+
};
|
25525
|
+
/**
|
25526
|
+
* Decodes a BotSignatureVerificationUseCaseProof message from the specified reader or buffer, length delimited.
|
25527
|
+
* @function decodeDelimited
|
25528
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25529
|
+
* @static
|
25530
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
25531
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
25532
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
25533
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
25534
|
+
*/
|
25535
|
+
BotSignatureVerificationUseCaseProof.decodeDelimited = function decodeDelimited(reader) {
|
25536
|
+
if (!(reader instanceof $Reader))
|
25537
|
+
reader = new $Reader(reader);
|
25538
|
+
return this.decode(reader, reader.uint32());
|
25539
|
+
};
|
25540
|
+
/**
|
25541
|
+
* Verifies a BotSignatureVerificationUseCaseProof message.
|
25542
|
+
* @function verify
|
25543
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25544
|
+
* @static
|
25545
|
+
* @param {Object.<string,*>} message Plain object to verify
|
25546
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
25547
|
+
*/
|
25548
|
+
BotSignatureVerificationUseCaseProof.verify = function verify(message) {
|
25549
|
+
if (typeof message !== "object" || message === null)
|
25550
|
+
return "object expected";
|
25551
|
+
var properties = {};
|
25552
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
25553
|
+
properties._version = 1;
|
25554
|
+
if (!$util.isInteger(message.version))
|
25555
|
+
return "version: integer expected";
|
25556
|
+
}
|
25557
|
+
if (message.useCase != null && message.hasOwnProperty("useCase")) {
|
25558
|
+
properties._useCase = 1;
|
25559
|
+
switch (message.useCase) {
|
25560
|
+
default:
|
25561
|
+
return "useCase: enum value expected";
|
25562
|
+
case 0:
|
25563
|
+
break;
|
25564
|
+
}
|
25565
|
+
}
|
25566
|
+
if (message.signature != null && message.hasOwnProperty("signature")) {
|
25567
|
+
properties._signature = 1;
|
25568
|
+
if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature)))
|
25569
|
+
return "signature: buffer expected";
|
25570
|
+
}
|
25571
|
+
if (message.certificateChain != null && message.hasOwnProperty("certificateChain")) {
|
25572
|
+
properties._certificateChain = 1;
|
25573
|
+
if (!(message.certificateChain && typeof message.certificateChain.length === "number" || $util.isString(message.certificateChain)))
|
25574
|
+
return "certificateChain: buffer expected";
|
25575
|
+
}
|
25576
|
+
return null;
|
25577
|
+
};
|
25578
|
+
/**
|
25579
|
+
* Creates a BotSignatureVerificationUseCaseProof message from a plain object. Also converts values to their respective internal types.
|
25580
|
+
* @function fromObject
|
25581
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25582
|
+
* @static
|
25583
|
+
* @param {Object.<string,*>} object Plain object
|
25584
|
+
* @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
|
25585
|
+
*/
|
25586
|
+
BotSignatureVerificationUseCaseProof.fromObject = function fromObject(object) {
|
25587
|
+
if (object instanceof $root.E2E.BotSignatureVerificationUseCaseProof)
|
25588
|
+
return object;
|
25589
|
+
var message = new $root.E2E.BotSignatureVerificationUseCaseProof();
|
25590
|
+
if (object.version != null)
|
25591
|
+
message.version = object.version | 0;
|
25592
|
+
switch (object.useCase) {
|
25593
|
+
default:
|
25594
|
+
if (typeof object.useCase === "number") {
|
25595
|
+
message.useCase = object.useCase;
|
25596
|
+
break;
|
25597
|
+
}
|
25598
|
+
break;
|
25599
|
+
case "WA_BOT_MSG":
|
25600
|
+
case 0:
|
25601
|
+
message.useCase = 0;
|
25602
|
+
break;
|
25603
|
+
}
|
25604
|
+
if (object.signature != null)
|
25605
|
+
if (typeof object.signature === "string")
|
25606
|
+
$util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0);
|
25607
|
+
else if (object.signature.length >= 0)
|
25608
|
+
message.signature = object.signature;
|
25609
|
+
if (object.certificateChain != null)
|
25610
|
+
if (typeof object.certificateChain === "string")
|
25611
|
+
$util.base64.decode(object.certificateChain, message.certificateChain = $util.newBuffer($util.base64.length(object.certificateChain)), 0);
|
25612
|
+
else if (object.certificateChain.length >= 0)
|
25613
|
+
message.certificateChain = object.certificateChain;
|
25614
|
+
return message;
|
25615
|
+
};
|
25616
|
+
/**
|
25617
|
+
* Creates a plain object from a BotSignatureVerificationUseCaseProof message. Also converts values to other types if specified.
|
25618
|
+
* @function toObject
|
25619
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25620
|
+
* @static
|
25621
|
+
* @param {E2E.BotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof
|
25622
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
25623
|
+
* @returns {Object.<string,*>} Plain object
|
25624
|
+
*/
|
25625
|
+
BotSignatureVerificationUseCaseProof.toObject = function toObject(message, options) {
|
25626
|
+
if (!options)
|
25627
|
+
options = {};
|
25628
|
+
var object = {};
|
25629
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
25630
|
+
object.version = message.version;
|
25631
|
+
if (options.oneofs)
|
25632
|
+
object._version = "version";
|
25633
|
+
}
|
25634
|
+
if (message.useCase != null && message.hasOwnProperty("useCase")) {
|
25635
|
+
object.useCase = options.enums === String ? $root.E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[message.useCase] === undefined ? message.useCase : $root.E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[message.useCase] : message.useCase;
|
25636
|
+
if (options.oneofs)
|
25637
|
+
object._useCase = "useCase";
|
25638
|
+
}
|
25639
|
+
if (message.signature != null && message.hasOwnProperty("signature")) {
|
25640
|
+
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;
|
25641
|
+
if (options.oneofs)
|
25642
|
+
object._signature = "signature";
|
25643
|
+
}
|
25644
|
+
if (message.certificateChain != null && message.hasOwnProperty("certificateChain")) {
|
25645
|
+
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;
|
25646
|
+
if (options.oneofs)
|
25647
|
+
object._certificateChain = "certificateChain";
|
25648
|
+
}
|
25649
|
+
return object;
|
25650
|
+
};
|
25651
|
+
/**
|
25652
|
+
* Converts this BotSignatureVerificationUseCaseProof to JSON.
|
25653
|
+
* @function toJSON
|
25654
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25655
|
+
* @instance
|
25656
|
+
* @returns {Object.<string,*>} JSON object
|
25657
|
+
*/
|
25658
|
+
BotSignatureVerificationUseCaseProof.prototype.toJSON = function toJSON() {
|
25659
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
25660
|
+
};
|
25661
|
+
/**
|
25662
|
+
* Gets the default type url for BotSignatureVerificationUseCaseProof
|
25663
|
+
* @function getTypeUrl
|
25664
|
+
* @memberof E2E.BotSignatureVerificationUseCaseProof
|
25665
|
+
* @static
|
25666
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
25667
|
+
* @returns {string} The default type url
|
25668
|
+
*/
|
25669
|
+
BotSignatureVerificationUseCaseProof.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
25670
|
+
if (typeUrlPrefix === undefined) {
|
25671
|
+
typeUrlPrefix = "type.googleapis.com";
|
25672
|
+
}
|
25673
|
+
return typeUrlPrefix + "/E2E.BotSignatureVerificationUseCaseProof";
|
25674
|
+
};
|
25675
|
+
/**
|
25676
|
+
* BotSignatureUseCase enum.
|
25677
|
+
* @name E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase
|
25678
|
+
* @enum {number}
|
25679
|
+
* @property {number} WA_BOT_MSG=0 WA_BOT_MSG value
|
25680
|
+
*/
|
25681
|
+
BotSignatureVerificationUseCaseProof.BotSignatureUseCase = (function() {
|
25682
|
+
var valuesById = {}, values = Object.create(valuesById);
|
25683
|
+
values[valuesById[0] = "WA_BOT_MSG"] = 0;
|
25684
|
+
return values;
|
25685
|
+
})();
|
25686
|
+
return BotSignatureVerificationUseCaseProof;
|
25687
|
+
})();
|
25688
|
+
E2E.BotSignatureVerificationMetadata = (function() {
|
25689
|
+
/**
|
25690
|
+
* Properties of a BotSignatureVerificationMetadata.
|
25691
|
+
* @memberof E2E
|
25692
|
+
* @interface IBotSignatureVerificationMetadata
|
25693
|
+
* @property {Array.<E2E.IBotSignatureVerificationUseCaseProof>|null} [proofs] BotSignatureVerificationMetadata proofs
|
25694
|
+
*/
|
25695
|
+
/**
|
25696
|
+
* Constructs a new BotSignatureVerificationMetadata.
|
25697
|
+
* @memberof E2E
|
25698
|
+
* @classdesc Represents a BotSignatureVerificationMetadata.
|
25699
|
+
* @implements IBotSignatureVerificationMetadata
|
25700
|
+
* @constructor
|
25701
|
+
* @param {E2E.IBotSignatureVerificationMetadata=} [properties] Properties to set
|
25702
|
+
*/
|
25703
|
+
function BotSignatureVerificationMetadata(properties) {
|
25704
|
+
this.proofs = [];
|
25705
|
+
if (properties)
|
25706
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
25707
|
+
if (properties[keys[i]] != null)
|
25708
|
+
this[keys[i]] = properties[keys[i]];
|
25709
|
+
}
|
25710
|
+
/**
|
25711
|
+
* BotSignatureVerificationMetadata proofs.
|
25712
|
+
* @member {Array.<E2E.IBotSignatureVerificationUseCaseProof>} proofs
|
25713
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25714
|
+
* @instance
|
25715
|
+
*/
|
25716
|
+
BotSignatureVerificationMetadata.prototype.proofs = $util.emptyArray;
|
25717
|
+
/**
|
25718
|
+
* Creates a new BotSignatureVerificationMetadata instance using the specified properties.
|
25719
|
+
* @function create
|
25720
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25721
|
+
* @static
|
25722
|
+
* @param {E2E.IBotSignatureVerificationMetadata=} [properties] Properties to set
|
25723
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata instance
|
25724
|
+
*/
|
25725
|
+
BotSignatureVerificationMetadata.create = function create(properties) {
|
25726
|
+
return new BotSignatureVerificationMetadata(properties);
|
25727
|
+
};
|
25728
|
+
/**
|
25729
|
+
* Encodes the specified BotSignatureVerificationMetadata message. Does not implicitly {@link E2E.BotSignatureVerificationMetadata.verify|verify} messages.
|
25730
|
+
* @function encode
|
25731
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25732
|
+
* @static
|
25733
|
+
* @param {E2E.IBotSignatureVerificationMetadata} message BotSignatureVerificationMetadata message or plain object to encode
|
25734
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
25735
|
+
* @returns {$protobuf.Writer} Writer
|
25736
|
+
*/
|
25737
|
+
BotSignatureVerificationMetadata.encode = function encode(message, writer) {
|
25738
|
+
if (!writer)
|
25739
|
+
writer = $Writer.create();
|
25740
|
+
if (message.proofs != null && message.proofs.length)
|
25741
|
+
for (var i = 0; i < message.proofs.length; ++i)
|
25742
|
+
$root.E2E.BotSignatureVerificationUseCaseProof.encode(message.proofs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
25743
|
+
return writer;
|
25744
|
+
};
|
25745
|
+
/**
|
25746
|
+
* Encodes the specified BotSignatureVerificationMetadata message, length delimited. Does not implicitly {@link E2E.BotSignatureVerificationMetadata.verify|verify} messages.
|
25747
|
+
* @function encodeDelimited
|
25748
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25749
|
+
* @static
|
25750
|
+
* @param {E2E.IBotSignatureVerificationMetadata} message BotSignatureVerificationMetadata message or plain object to encode
|
25751
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
25752
|
+
* @returns {$protobuf.Writer} Writer
|
25753
|
+
*/
|
25754
|
+
BotSignatureVerificationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
25755
|
+
return this.encode(message, writer).ldelim();
|
25756
|
+
};
|
25757
|
+
/**
|
25758
|
+
* Decodes a BotSignatureVerificationMetadata message from the specified reader or buffer.
|
25759
|
+
* @function decode
|
25760
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25761
|
+
* @static
|
25762
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
25763
|
+
* @param {number} [length] Message length if known beforehand
|
25764
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
25765
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
25766
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
25767
|
+
*/
|
25768
|
+
BotSignatureVerificationMetadata.decode = function decode(reader, length, error) {
|
25769
|
+
if (!(reader instanceof $Reader))
|
25770
|
+
reader = $Reader.create(reader);
|
25771
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.BotSignatureVerificationMetadata();
|
25772
|
+
while (reader.pos < end) {
|
25773
|
+
var tag = reader.uint32();
|
25774
|
+
if (tag === error)
|
25775
|
+
break;
|
25776
|
+
switch (tag >>> 3) {
|
25777
|
+
case 1: {
|
25778
|
+
if (!(message.proofs && message.proofs.length))
|
25779
|
+
message.proofs = [];
|
25780
|
+
message.proofs.push($root.E2E.BotSignatureVerificationUseCaseProof.decode(reader, reader.uint32()));
|
25781
|
+
break;
|
25782
|
+
}
|
25783
|
+
default:
|
25784
|
+
reader.skipType(tag & 7);
|
25785
|
+
break;
|
25786
|
+
}
|
25787
|
+
}
|
25788
|
+
return message;
|
25789
|
+
};
|
25790
|
+
/**
|
25791
|
+
* Decodes a BotSignatureVerificationMetadata message from the specified reader or buffer, length delimited.
|
25792
|
+
* @function decodeDelimited
|
25793
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25794
|
+
* @static
|
25795
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
25796
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
25797
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
25798
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
25799
|
+
*/
|
25800
|
+
BotSignatureVerificationMetadata.decodeDelimited = function decodeDelimited(reader) {
|
25801
|
+
if (!(reader instanceof $Reader))
|
25802
|
+
reader = new $Reader(reader);
|
25803
|
+
return this.decode(reader, reader.uint32());
|
25804
|
+
};
|
25805
|
+
/**
|
25806
|
+
* Verifies a BotSignatureVerificationMetadata message.
|
25807
|
+
* @function verify
|
25808
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25809
|
+
* @static
|
25810
|
+
* @param {Object.<string,*>} message Plain object to verify
|
25811
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
25812
|
+
*/
|
25813
|
+
BotSignatureVerificationMetadata.verify = function verify(message) {
|
25814
|
+
if (typeof message !== "object" || message === null)
|
25815
|
+
return "object expected";
|
25816
|
+
if (message.proofs != null && message.hasOwnProperty("proofs")) {
|
25817
|
+
if (!Array.isArray(message.proofs))
|
25818
|
+
return "proofs: array expected";
|
25819
|
+
for (var i = 0; i < message.proofs.length; ++i) {
|
25820
|
+
var error = $root.E2E.BotSignatureVerificationUseCaseProof.verify(message.proofs[i]);
|
25821
|
+
if (error)
|
25822
|
+
return "proofs." + error;
|
25823
|
+
}
|
25824
|
+
}
|
25825
|
+
return null;
|
25826
|
+
};
|
25827
|
+
/**
|
25828
|
+
* Creates a BotSignatureVerificationMetadata message from a plain object. Also converts values to their respective internal types.
|
25829
|
+
* @function fromObject
|
25830
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25831
|
+
* @static
|
25832
|
+
* @param {Object.<string,*>} object Plain object
|
25833
|
+
* @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
|
25834
|
+
*/
|
25835
|
+
BotSignatureVerificationMetadata.fromObject = function fromObject(object) {
|
25836
|
+
if (object instanceof $root.E2E.BotSignatureVerificationMetadata)
|
25837
|
+
return object;
|
25838
|
+
var message = new $root.E2E.BotSignatureVerificationMetadata();
|
25839
|
+
if (object.proofs) {
|
25840
|
+
if (!Array.isArray(object.proofs))
|
25841
|
+
throw TypeError(".E2E.BotSignatureVerificationMetadata.proofs: array expected");
|
25842
|
+
message.proofs = [];
|
25843
|
+
for (var i = 0; i < object.proofs.length; ++i) {
|
25844
|
+
if (typeof object.proofs[i] !== "object")
|
25845
|
+
throw TypeError(".E2E.BotSignatureVerificationMetadata.proofs: object expected");
|
25846
|
+
message.proofs[i] = $root.E2E.BotSignatureVerificationUseCaseProof.fromObject(object.proofs[i]);
|
25847
|
+
}
|
25848
|
+
}
|
25849
|
+
return message;
|
25850
|
+
};
|
25851
|
+
/**
|
25852
|
+
* Creates a plain object from a BotSignatureVerificationMetadata message. Also converts values to other types if specified.
|
25853
|
+
* @function toObject
|
25854
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25855
|
+
* @static
|
25856
|
+
* @param {E2E.BotSignatureVerificationMetadata} message BotSignatureVerificationMetadata
|
25857
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
25858
|
+
* @returns {Object.<string,*>} Plain object
|
25859
|
+
*/
|
25860
|
+
BotSignatureVerificationMetadata.toObject = function toObject(message, options) {
|
25861
|
+
if (!options)
|
25862
|
+
options = {};
|
25863
|
+
var object = {};
|
25864
|
+
if (options.arrays || options.defaults)
|
25865
|
+
object.proofs = [];
|
25866
|
+
if (message.proofs && message.proofs.length) {
|
25867
|
+
object.proofs = [];
|
25868
|
+
for (var j = 0; j < message.proofs.length; ++j)
|
25869
|
+
object.proofs[j] = $root.E2E.BotSignatureVerificationUseCaseProof.toObject(message.proofs[j], options);
|
25870
|
+
}
|
25871
|
+
return object;
|
25872
|
+
};
|
25873
|
+
/**
|
25874
|
+
* Converts this BotSignatureVerificationMetadata to JSON.
|
25875
|
+
* @function toJSON
|
25876
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25877
|
+
* @instance
|
25878
|
+
* @returns {Object.<string,*>} JSON object
|
25879
|
+
*/
|
25880
|
+
BotSignatureVerificationMetadata.prototype.toJSON = function toJSON() {
|
25881
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
25882
|
+
};
|
25883
|
+
/**
|
25884
|
+
* Gets the default type url for BotSignatureVerificationMetadata
|
25885
|
+
* @function getTypeUrl
|
25886
|
+
* @memberof E2E.BotSignatureVerificationMetadata
|
25887
|
+
* @static
|
25888
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
25889
|
+
* @returns {string} The default type url
|
25890
|
+
*/
|
25891
|
+
BotSignatureVerificationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
25892
|
+
if (typeUrlPrefix === undefined) {
|
25893
|
+
typeUrlPrefix = "type.googleapis.com";
|
25894
|
+
}
|
25895
|
+
return typeUrlPrefix + "/E2E.BotSignatureVerificationMetadata";
|
25896
|
+
};
|
25897
|
+
return BotSignatureVerificationMetadata;
|
25898
|
+
})();
|
25170
25899
|
E2E.BotMemoryFact = (function() {
|
25171
25900
|
/**
|
25172
25901
|
* Properties of a BotMemoryFact.
|
@@ -60898,6 +61627,8 @@ Message.LinkPreviewMetadata = (function() {
|
|
60898
61627
|
* @property {E2E.Message.IPaymentLinkMetadata|null} [paymentLinkMetadata] LinkPreviewMetadata paymentLinkMetadata
|
60899
61628
|
* @property {E2E.Message.IURLMetadata|null} [urlMetadata] LinkPreviewMetadata urlMetadata
|
60900
61629
|
* @property {number|null} [fbExperimentId] LinkPreviewMetadata fbExperimentId
|
61630
|
+
* @property {number|null} [linkMediaDuration] LinkPreviewMetadata linkMediaDuration
|
61631
|
+
* @property {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null} [socialMediaPostType] LinkPreviewMetadata socialMediaPostType
|
60901
61632
|
*/
|
60902
61633
|
/**
|
60903
61634
|
* Constructs a new LinkPreviewMetadata.
|
@@ -60934,6 +61665,20 @@ LinkPreviewMetadata.prototype.urlMetadata = null;
|
|
60934
61665
|
* @instance
|
60935
61666
|
*/
|
60936
61667
|
LinkPreviewMetadata.prototype.fbExperimentId = null;
|
61668
|
+
/**
|
61669
|
+
* LinkPreviewMetadata linkMediaDuration.
|
61670
|
+
* @member {number|null|undefined} linkMediaDuration
|
61671
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
61672
|
+
* @instance
|
61673
|
+
*/
|
61674
|
+
LinkPreviewMetadata.prototype.linkMediaDuration = null;
|
61675
|
+
/**
|
61676
|
+
* LinkPreviewMetadata socialMediaPostType.
|
61677
|
+
* @member {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null|undefined} socialMediaPostType
|
61678
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
61679
|
+
* @instance
|
61680
|
+
*/
|
61681
|
+
LinkPreviewMetadata.prototype.socialMediaPostType = null;
|
60937
61682
|
// OneOf field names bound to virtual getters and setters
|
60938
61683
|
var $oneOfFields;
|
60939
61684
|
/**
|
@@ -60967,6 +61712,26 @@ get: $util.oneOfGetter($oneOfFields = ["fbExperimentId"]),
|
|
60967
61712
|
set: $util.oneOfSetter($oneOfFields)
|
60968
61713
|
});
|
60969
61714
|
/**
|
61715
|
+
* LinkPreviewMetadata _linkMediaDuration.
|
61716
|
+
* @member {"linkMediaDuration"|undefined} _linkMediaDuration
|
61717
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
61718
|
+
* @instance
|
61719
|
+
*/
|
61720
|
+
Object.defineProperty(LinkPreviewMetadata.prototype, "_linkMediaDuration", {
|
61721
|
+
get: $util.oneOfGetter($oneOfFields = ["linkMediaDuration"]),
|
61722
|
+
set: $util.oneOfSetter($oneOfFields)
|
61723
|
+
});
|
61724
|
+
/**
|
61725
|
+
* LinkPreviewMetadata _socialMediaPostType.
|
61726
|
+
* @member {"socialMediaPostType"|undefined} _socialMediaPostType
|
61727
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
61728
|
+
* @instance
|
61729
|
+
*/
|
61730
|
+
Object.defineProperty(LinkPreviewMetadata.prototype, "_socialMediaPostType", {
|
61731
|
+
get: $util.oneOfGetter($oneOfFields = ["socialMediaPostType"]),
|
61732
|
+
set: $util.oneOfSetter($oneOfFields)
|
61733
|
+
});
|
61734
|
+
/**
|
60970
61735
|
* Creates a new LinkPreviewMetadata instance using the specified properties.
|
60971
61736
|
* @function create
|
60972
61737
|
* @memberof E2E.Message.LinkPreviewMetadata
|
@@ -60995,6 +61760,10 @@ if (message.urlMetadata != null && Object.hasOwnProperty.call(message, "urlMetad
|
|
60995
61760
|
$root.E2E.Message.URLMetadata.encode(message.urlMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
60996
61761
|
if (message.fbExperimentId != null && Object.hasOwnProperty.call(message, "fbExperimentId"))
|
60997
61762
|
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.fbExperimentId);
|
61763
|
+
if (message.linkMediaDuration != null && Object.hasOwnProperty.call(message, "linkMediaDuration"))
|
61764
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.linkMediaDuration);
|
61765
|
+
if (message.socialMediaPostType != null && Object.hasOwnProperty.call(message, "socialMediaPostType"))
|
61766
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.socialMediaPostType);
|
60998
61767
|
return writer;
|
60999
61768
|
};
|
61000
61769
|
/**
|
@@ -61041,6 +61810,14 @@ case 3: {
|
|
61041
61810
|
message.fbExperimentId = reader.uint32();
|
61042
61811
|
break;
|
61043
61812
|
}
|
61813
|
+
case 4: {
|
61814
|
+
message.linkMediaDuration = reader.uint32();
|
61815
|
+
break;
|
61816
|
+
}
|
61817
|
+
case 5: {
|
61818
|
+
message.socialMediaPostType = reader.int32();
|
61819
|
+
break;
|
61820
|
+
}
|
61044
61821
|
default:
|
61045
61822
|
reader.skipType(tag & 7);
|
61046
61823
|
break;
|
@@ -61096,6 +61873,25 @@ properties._fbExperimentId = 1;
|
|
61096
61873
|
if (!$util.isInteger(message.fbExperimentId))
|
61097
61874
|
return "fbExperimentId: integer expected";
|
61098
61875
|
}
|
61876
|
+
if (message.linkMediaDuration != null && message.hasOwnProperty("linkMediaDuration")) {
|
61877
|
+
properties._linkMediaDuration = 1;
|
61878
|
+
if (!$util.isInteger(message.linkMediaDuration))
|
61879
|
+
return "linkMediaDuration: integer expected";
|
61880
|
+
}
|
61881
|
+
if (message.socialMediaPostType != null && message.hasOwnProperty("socialMediaPostType")) {
|
61882
|
+
properties._socialMediaPostType = 1;
|
61883
|
+
switch (message.socialMediaPostType) {
|
61884
|
+
default:
|
61885
|
+
return "socialMediaPostType: enum value expected";
|
61886
|
+
case 0:
|
61887
|
+
case 1:
|
61888
|
+
case 2:
|
61889
|
+
case 3:
|
61890
|
+
case 4:
|
61891
|
+
case 5:
|
61892
|
+
break;
|
61893
|
+
}
|
61894
|
+
}
|
61099
61895
|
return null;
|
61100
61896
|
};
|
61101
61897
|
/**
|
@@ -61122,6 +61918,40 @@ message.urlMetadata = $root.E2E.Message.URLMetadata.fromObject(object.urlMetadat
|
|
61122
61918
|
}
|
61123
61919
|
if (object.fbExperimentId != null)
|
61124
61920
|
message.fbExperimentId = object.fbExperimentId >>> 0;
|
61921
|
+
if (object.linkMediaDuration != null)
|
61922
|
+
message.linkMediaDuration = object.linkMediaDuration >>> 0;
|
61923
|
+
switch (object.socialMediaPostType) {
|
61924
|
+
default:
|
61925
|
+
if (typeof object.socialMediaPostType === "number") {
|
61926
|
+
message.socialMediaPostType = object.socialMediaPostType;
|
61927
|
+
break;
|
61928
|
+
}
|
61929
|
+
break;
|
61930
|
+
case "NONE":
|
61931
|
+
case 0:
|
61932
|
+
message.socialMediaPostType = 0;
|
61933
|
+
break;
|
61934
|
+
case "REEL":
|
61935
|
+
case 1:
|
61936
|
+
message.socialMediaPostType = 1;
|
61937
|
+
break;
|
61938
|
+
case "LIVE_VIDEO":
|
61939
|
+
case 2:
|
61940
|
+
message.socialMediaPostType = 2;
|
61941
|
+
break;
|
61942
|
+
case "LONG_VIDEO":
|
61943
|
+
case 3:
|
61944
|
+
message.socialMediaPostType = 3;
|
61945
|
+
break;
|
61946
|
+
case "SINGLE_IMAGE":
|
61947
|
+
case 4:
|
61948
|
+
message.socialMediaPostType = 4;
|
61949
|
+
break;
|
61950
|
+
case "CAROUSEL":
|
61951
|
+
case 5:
|
61952
|
+
message.socialMediaPostType = 5;
|
61953
|
+
break;
|
61954
|
+
}
|
61125
61955
|
return message;
|
61126
61956
|
};
|
61127
61957
|
/**
|
@@ -61152,6 +61982,16 @@ object.fbExperimentId = message.fbExperimentId;
|
|
61152
61982
|
if (options.oneofs)
|
61153
61983
|
object._fbExperimentId = "fbExperimentId";
|
61154
61984
|
}
|
61985
|
+
if (message.linkMediaDuration != null && message.hasOwnProperty("linkMediaDuration")) {
|
61986
|
+
object.linkMediaDuration = message.linkMediaDuration;
|
61987
|
+
if (options.oneofs)
|
61988
|
+
object._linkMediaDuration = "linkMediaDuration";
|
61989
|
+
}
|
61990
|
+
if (message.socialMediaPostType != null && message.hasOwnProperty("socialMediaPostType")) {
|
61991
|
+
object.socialMediaPostType = options.enums === String ? $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] === undefined ? message.socialMediaPostType : $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] : message.socialMediaPostType;
|
61992
|
+
if (options.oneofs)
|
61993
|
+
object._socialMediaPostType = "socialMediaPostType";
|
61994
|
+
}
|
61155
61995
|
return object;
|
61156
61996
|
};
|
61157
61997
|
/**
|
@@ -61178,6 +62018,27 @@ typeUrlPrefix = "type.googleapis.com";
|
|
61178
62018
|
}
|
61179
62019
|
return typeUrlPrefix + "/E2E.Message.LinkPreviewMetadata";
|
61180
62020
|
};
|
62021
|
+
/**
|
62022
|
+
* SocialMediaPostType enum.
|
62023
|
+
* @name E2E.Message.LinkPreviewMetadata.SocialMediaPostType
|
62024
|
+
* @enum {number}
|
62025
|
+
* @property {number} NONE=0 NONE value
|
62026
|
+
* @property {number} REEL=1 REEL value
|
62027
|
+
* @property {number} LIVE_VIDEO=2 LIVE_VIDEO value
|
62028
|
+
* @property {number} LONG_VIDEO=3 LONG_VIDEO value
|
62029
|
+
* @property {number} SINGLE_IMAGE=4 SINGLE_IMAGE value
|
62030
|
+
* @property {number} CAROUSEL=5 CAROUSEL value
|
62031
|
+
*/
|
62032
|
+
LinkPreviewMetadata.SocialMediaPostType = (function() {
|
62033
|
+
var valuesById = {}, values = Object.create(valuesById);
|
62034
|
+
values[valuesById[0] = "NONE"] = 0;
|
62035
|
+
values[valuesById[1] = "REEL"] = 1;
|
62036
|
+
values[valuesById[2] = "LIVE_VIDEO"] = 2;
|
62037
|
+
values[valuesById[3] = "LONG_VIDEO"] = 3;
|
62038
|
+
values[valuesById[4] = "SINGLE_IMAGE"] = 4;
|
62039
|
+
values[valuesById[5] = "CAROUSEL"] = 5;
|
62040
|
+
return values;
|
62041
|
+
})();
|
61181
62042
|
return LinkPreviewMetadata;
|
61182
62043
|
})();
|
61183
62044
|
Message.ListMessage = (function() {
|
@@ -69188,6 +70049,7 @@ case 5:
|
|
69188
70049
|
case 6:
|
69189
70050
|
case 7:
|
69190
70051
|
case 8:
|
70052
|
+
case 9:
|
69191
70053
|
break;
|
69192
70054
|
}
|
69193
70055
|
}
|
@@ -69299,6 +70161,10 @@ case "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY":
|
|
69299
70161
|
case 8:
|
69300
70162
|
message.peerDataOperationRequestType = 8;
|
69301
70163
|
break;
|
70164
|
+
case "COMPANION_CANONICAL_USER_NONCE_FETCH":
|
70165
|
+
case 9:
|
70166
|
+
message.peerDataOperationRequestType = 9;
|
70167
|
+
break;
|
69302
70168
|
}
|
69303
70169
|
if (object.requestStickerReupload) {
|
69304
70170
|
if (!Array.isArray(object.requestStickerReupload))
|
@@ -71183,6 +72049,7 @@ case 5:
|
|
71183
72049
|
case 6:
|
71184
72050
|
case 7:
|
71185
72051
|
case 8:
|
72052
|
+
case 9:
|
71186
72053
|
break;
|
71187
72054
|
}
|
71188
72055
|
}
|
@@ -71257,6 +72124,10 @@ case "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY":
|
|
71257
72124
|
case 8:
|
71258
72125
|
message.peerDataOperationRequestType = 8;
|
71259
72126
|
break;
|
72127
|
+
case "COMPANION_CANONICAL_USER_NONCE_FETCH":
|
72128
|
+
case 9:
|
72129
|
+
message.peerDataOperationRequestType = 9;
|
72130
|
+
break;
|
71260
72131
|
}
|
71261
72132
|
if (object.stanzaId != null)
|
71262
72133
|
message.stanzaId = String(object.stanzaId);
|
@@ -71341,6 +72212,7 @@ PeerDataOperationRequestResponseMessage.PeerDataOperationResult = (function() {
|
|
71341
72212
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFullHistorySyncOnDemandRequestResponse|null} [fullHistorySyncOnDemandRequestResponse] PeerDataOperationResult fullHistorySyncOnDemandRequestResponse
|
71342
72213
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionMetaNonceFetchResponse|null} [companionMetaNonceFetchRequestResponse] PeerDataOperationResult companionMetaNonceFetchRequestResponse
|
71343
72214
|
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ISyncDSnapshotFatalRecoveryResponse|null} [syncdSnapshotFatalRecoveryResponse] PeerDataOperationResult syncdSnapshotFatalRecoveryResponse
|
72215
|
+
* @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null} [companionCanonicalUserNonceFetchRequestResponse] PeerDataOperationResult companionCanonicalUserNonceFetchRequestResponse
|
71344
72216
|
*/
|
71345
72217
|
/**
|
71346
72218
|
* Constructs a new PeerDataOperationResult.
|
@@ -71412,6 +72284,13 @@ PeerDataOperationResult.prototype.companionMetaNonceFetchRequestResponse = null;
|
|
71412
72284
|
* @instance
|
71413
72285
|
*/
|
71414
72286
|
PeerDataOperationResult.prototype.syncdSnapshotFatalRecoveryResponse = null;
|
72287
|
+
/**
|
72288
|
+
* PeerDataOperationResult companionCanonicalUserNonceFetchRequestResponse.
|
72289
|
+
* @member {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null|undefined} companionCanonicalUserNonceFetchRequestResponse
|
72290
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
72291
|
+
* @instance
|
72292
|
+
*/
|
72293
|
+
PeerDataOperationResult.prototype.companionCanonicalUserNonceFetchRequestResponse = null;
|
71415
72294
|
// OneOf field names bound to virtual getters and setters
|
71416
72295
|
var $oneOfFields;
|
71417
72296
|
/**
|
@@ -71495,6 +72374,16 @@ get: $util.oneOfGetter($oneOfFields = ["syncdSnapshotFatalRecoveryResponse"]),
|
|
71495
72374
|
set: $util.oneOfSetter($oneOfFields)
|
71496
72375
|
});
|
71497
72376
|
/**
|
72377
|
+
* PeerDataOperationResult _companionCanonicalUserNonceFetchRequestResponse.
|
72378
|
+
* @member {"companionCanonicalUserNonceFetchRequestResponse"|undefined} _companionCanonicalUserNonceFetchRequestResponse
|
72379
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
72380
|
+
* @instance
|
72381
|
+
*/
|
72382
|
+
Object.defineProperty(PeerDataOperationResult.prototype, "_companionCanonicalUserNonceFetchRequestResponse", {
|
72383
|
+
get: $util.oneOfGetter($oneOfFields = ["companionCanonicalUserNonceFetchRequestResponse"]),
|
72384
|
+
set: $util.oneOfSetter($oneOfFields)
|
72385
|
+
});
|
72386
|
+
/**
|
71498
72387
|
* Creates a new PeerDataOperationResult instance using the specified properties.
|
71499
72388
|
* @function create
|
71500
72389
|
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
@@ -71533,6 +72422,8 @@ if (message.companionMetaNonceFetchRequestResponse != null && Object.hasOwnPrope
|
|
71533
72422
|
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionMetaNonceFetchResponse.encode(message.companionMetaNonceFetchRequestResponse, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
71534
72423
|
if (message.syncdSnapshotFatalRecoveryResponse != null && Object.hasOwnProperty.call(message, "syncdSnapshotFatalRecoveryResponse"))
|
71535
72424
|
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.encode(message.syncdSnapshotFatalRecoveryResponse, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
72425
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && Object.hasOwnProperty.call(message, "companionCanonicalUserNonceFetchRequestResponse"))
|
72426
|
+
$root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.encode(message.companionCanonicalUserNonceFetchRequestResponse, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
71536
72427
|
return writer;
|
71537
72428
|
};
|
71538
72429
|
/**
|
@@ -71599,6 +72490,10 @@ case 8: {
|
|
71599
72490
|
message.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.decode(reader, reader.uint32());
|
71600
72491
|
break;
|
71601
72492
|
}
|
72493
|
+
case 9: {
|
72494
|
+
message.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.decode(reader, reader.uint32());
|
72495
|
+
break;
|
72496
|
+
}
|
71602
72497
|
default:
|
71603
72498
|
reader.skipType(tag & 7);
|
71604
72499
|
break;
|
@@ -71701,6 +72596,14 @@ if (error)
|
|
71701
72596
|
return "syncdSnapshotFatalRecoveryResponse." + error;
|
71702
72597
|
}
|
71703
72598
|
}
|
72599
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && message.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) {
|
72600
|
+
properties._companionCanonicalUserNonceFetchRequestResponse = 1;
|
72601
|
+
{
|
72602
|
+
var error = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify(message.companionCanonicalUserNonceFetchRequestResponse);
|
72603
|
+
if (error)
|
72604
|
+
return "companionCanonicalUserNonceFetchRequestResponse." + error;
|
72605
|
+
}
|
72606
|
+
}
|
71704
72607
|
return null;
|
71705
72608
|
};
|
71706
72609
|
/**
|
@@ -71774,6 +72677,11 @@ if (typeof object.syncdSnapshotFatalRecoveryResponse !== "object")
|
|
71774
72677
|
throw TypeError(".E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.syncdSnapshotFatalRecoveryResponse: object expected");
|
71775
72678
|
message.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.fromObject(object.syncdSnapshotFatalRecoveryResponse);
|
71776
72679
|
}
|
72680
|
+
if (object.companionCanonicalUserNonceFetchRequestResponse != null) {
|
72681
|
+
if (typeof object.companionCanonicalUserNonceFetchRequestResponse !== "object")
|
72682
|
+
throw TypeError(".E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.companionCanonicalUserNonceFetchRequestResponse: object expected");
|
72683
|
+
message.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.fromObject(object.companionCanonicalUserNonceFetchRequestResponse);
|
72684
|
+
}
|
71777
72685
|
return message;
|
71778
72686
|
};
|
71779
72687
|
/**
|
@@ -71829,6 +72737,11 @@ object.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationR
|
|
71829
72737
|
if (options.oneofs)
|
71830
72738
|
object._syncdSnapshotFatalRecoveryResponse = "syncdSnapshotFatalRecoveryResponse";
|
71831
72739
|
}
|
72740
|
+
if (message.companionCanonicalUserNonceFetchRequestResponse != null && message.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) {
|
72741
|
+
object.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.toObject(message.companionCanonicalUserNonceFetchRequestResponse, options);
|
72742
|
+
if (options.oneofs)
|
72743
|
+
object._companionCanonicalUserNonceFetchRequestResponse = "companionCanonicalUserNonceFetchRequestResponse";
|
72744
|
+
}
|
71832
72745
|
return object;
|
71833
72746
|
};
|
71834
72747
|
/**
|
@@ -71855,6 +72768,212 @@ typeUrlPrefix = "type.googleapis.com";
|
|
71855
72768
|
}
|
71856
72769
|
return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult";
|
71857
72770
|
};
|
72771
|
+
PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse = (function() {
|
72772
|
+
/**
|
72773
|
+
* Properties of a CompanionCanonicalUserNonceFetchResponse.
|
72774
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
72775
|
+
* @interface ICompanionCanonicalUserNonceFetchResponse
|
72776
|
+
* @property {string|null} [nonce] CompanionCanonicalUserNonceFetchResponse nonce
|
72777
|
+
*/
|
72778
|
+
/**
|
72779
|
+
* Constructs a new CompanionCanonicalUserNonceFetchResponse.
|
72780
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
72781
|
+
* @classdesc Represents a CompanionCanonicalUserNonceFetchResponse.
|
72782
|
+
* @implements ICompanionCanonicalUserNonceFetchResponse
|
72783
|
+
* @constructor
|
72784
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse=} [properties] Properties to set
|
72785
|
+
*/
|
72786
|
+
function CompanionCanonicalUserNonceFetchResponse(properties) {
|
72787
|
+
if (properties)
|
72788
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
72789
|
+
if (properties[keys[i]] != null)
|
72790
|
+
this[keys[i]] = properties[keys[i]];
|
72791
|
+
}
|
72792
|
+
/**
|
72793
|
+
* CompanionCanonicalUserNonceFetchResponse nonce.
|
72794
|
+
* @member {string|null|undefined} nonce
|
72795
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72796
|
+
* @instance
|
72797
|
+
*/
|
72798
|
+
CompanionCanonicalUserNonceFetchResponse.prototype.nonce = null;
|
72799
|
+
// OneOf field names bound to virtual getters and setters
|
72800
|
+
var $oneOfFields;
|
72801
|
+
/**
|
72802
|
+
* CompanionCanonicalUserNonceFetchResponse _nonce.
|
72803
|
+
* @member {"nonce"|undefined} _nonce
|
72804
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72805
|
+
* @instance
|
72806
|
+
*/
|
72807
|
+
Object.defineProperty(CompanionCanonicalUserNonceFetchResponse.prototype, "_nonce", {
|
72808
|
+
get: $util.oneOfGetter($oneOfFields = ["nonce"]),
|
72809
|
+
set: $util.oneOfSetter($oneOfFields)
|
72810
|
+
});
|
72811
|
+
/**
|
72812
|
+
* Creates a new CompanionCanonicalUserNonceFetchResponse instance using the specified properties.
|
72813
|
+
* @function create
|
72814
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72815
|
+
* @static
|
72816
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse=} [properties] Properties to set
|
72817
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse instance
|
72818
|
+
*/
|
72819
|
+
CompanionCanonicalUserNonceFetchResponse.create = function create(properties) {
|
72820
|
+
return new CompanionCanonicalUserNonceFetchResponse(properties);
|
72821
|
+
};
|
72822
|
+
/**
|
72823
|
+
* Encodes the specified CompanionCanonicalUserNonceFetchResponse message. Does not implicitly {@link E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify|verify} messages.
|
72824
|
+
* @function encode
|
72825
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72826
|
+
* @static
|
72827
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse message or plain object to encode
|
72828
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
72829
|
+
* @returns {$protobuf.Writer} Writer
|
72830
|
+
*/
|
72831
|
+
CompanionCanonicalUserNonceFetchResponse.encode = function encode(message, writer) {
|
72832
|
+
if (!writer)
|
72833
|
+
writer = $Writer.create();
|
72834
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
72835
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.nonce);
|
72836
|
+
return writer;
|
72837
|
+
};
|
72838
|
+
/**
|
72839
|
+
* Encodes the specified CompanionCanonicalUserNonceFetchResponse message, length delimited. Does not implicitly {@link E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify|verify} messages.
|
72840
|
+
* @function encodeDelimited
|
72841
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72842
|
+
* @static
|
72843
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse message or plain object to encode
|
72844
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
72845
|
+
* @returns {$protobuf.Writer} Writer
|
72846
|
+
*/
|
72847
|
+
CompanionCanonicalUserNonceFetchResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
72848
|
+
return this.encode(message, writer).ldelim();
|
72849
|
+
};
|
72850
|
+
/**
|
72851
|
+
* Decodes a CompanionCanonicalUserNonceFetchResponse message from the specified reader or buffer.
|
72852
|
+
* @function decode
|
72853
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72854
|
+
* @static
|
72855
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
72856
|
+
* @param {number} [length] Message length if known beforehand
|
72857
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
72858
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
72859
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
72860
|
+
*/
|
72861
|
+
CompanionCanonicalUserNonceFetchResponse.decode = function decode(reader, length, error) {
|
72862
|
+
if (!(reader instanceof $Reader))
|
72863
|
+
reader = $Reader.create(reader);
|
72864
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
|
72865
|
+
while (reader.pos < end) {
|
72866
|
+
var tag = reader.uint32();
|
72867
|
+
if (tag === error)
|
72868
|
+
break;
|
72869
|
+
switch (tag >>> 3) {
|
72870
|
+
case 1: {
|
72871
|
+
message.nonce = reader.string();
|
72872
|
+
break;
|
72873
|
+
}
|
72874
|
+
default:
|
72875
|
+
reader.skipType(tag & 7);
|
72876
|
+
break;
|
72877
|
+
}
|
72878
|
+
}
|
72879
|
+
return message;
|
72880
|
+
};
|
72881
|
+
/**
|
72882
|
+
* Decodes a CompanionCanonicalUserNonceFetchResponse message from the specified reader or buffer, length delimited.
|
72883
|
+
* @function decodeDelimited
|
72884
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72885
|
+
* @static
|
72886
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
72887
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
72888
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
72889
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
72890
|
+
*/
|
72891
|
+
CompanionCanonicalUserNonceFetchResponse.decodeDelimited = function decodeDelimited(reader) {
|
72892
|
+
if (!(reader instanceof $Reader))
|
72893
|
+
reader = new $Reader(reader);
|
72894
|
+
return this.decode(reader, reader.uint32());
|
72895
|
+
};
|
72896
|
+
/**
|
72897
|
+
* Verifies a CompanionCanonicalUserNonceFetchResponse message.
|
72898
|
+
* @function verify
|
72899
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72900
|
+
* @static
|
72901
|
+
* @param {Object.<string,*>} message Plain object to verify
|
72902
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
72903
|
+
*/
|
72904
|
+
CompanionCanonicalUserNonceFetchResponse.verify = function verify(message) {
|
72905
|
+
if (typeof message !== "object" || message === null)
|
72906
|
+
return "object expected";
|
72907
|
+
var properties = {};
|
72908
|
+
if (message.nonce != null && message.hasOwnProperty("nonce")) {
|
72909
|
+
properties._nonce = 1;
|
72910
|
+
if (!$util.isString(message.nonce))
|
72911
|
+
return "nonce: string expected";
|
72912
|
+
}
|
72913
|
+
return null;
|
72914
|
+
};
|
72915
|
+
/**
|
72916
|
+
* Creates a CompanionCanonicalUserNonceFetchResponse message from a plain object. Also converts values to their respective internal types.
|
72917
|
+
* @function fromObject
|
72918
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72919
|
+
* @static
|
72920
|
+
* @param {Object.<string,*>} object Plain object
|
72921
|
+
* @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
|
72922
|
+
*/
|
72923
|
+
CompanionCanonicalUserNonceFetchResponse.fromObject = function fromObject(object) {
|
72924
|
+
if (object instanceof $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse)
|
72925
|
+
return object;
|
72926
|
+
var message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
|
72927
|
+
if (object.nonce != null)
|
72928
|
+
message.nonce = String(object.nonce);
|
72929
|
+
return message;
|
72930
|
+
};
|
72931
|
+
/**
|
72932
|
+
* Creates a plain object from a CompanionCanonicalUserNonceFetchResponse message. Also converts values to other types if specified.
|
72933
|
+
* @function toObject
|
72934
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72935
|
+
* @static
|
72936
|
+
* @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse
|
72937
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
72938
|
+
* @returns {Object.<string,*>} Plain object
|
72939
|
+
*/
|
72940
|
+
CompanionCanonicalUserNonceFetchResponse.toObject = function toObject(message, options) {
|
72941
|
+
if (!options)
|
72942
|
+
options = {};
|
72943
|
+
var object = {};
|
72944
|
+
if (message.nonce != null && message.hasOwnProperty("nonce")) {
|
72945
|
+
object.nonce = message.nonce;
|
72946
|
+
if (options.oneofs)
|
72947
|
+
object._nonce = "nonce";
|
72948
|
+
}
|
72949
|
+
return object;
|
72950
|
+
};
|
72951
|
+
/**
|
72952
|
+
* Converts this CompanionCanonicalUserNonceFetchResponse to JSON.
|
72953
|
+
* @function toJSON
|
72954
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72955
|
+
* @instance
|
72956
|
+
* @returns {Object.<string,*>} JSON object
|
72957
|
+
*/
|
72958
|
+
CompanionCanonicalUserNonceFetchResponse.prototype.toJSON = function toJSON() {
|
72959
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
72960
|
+
};
|
72961
|
+
/**
|
72962
|
+
* Gets the default type url for CompanionCanonicalUserNonceFetchResponse
|
72963
|
+
* @function getTypeUrl
|
72964
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
72965
|
+
* @static
|
72966
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
72967
|
+
* @returns {string} The default type url
|
72968
|
+
*/
|
72969
|
+
CompanionCanonicalUserNonceFetchResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
72970
|
+
if (typeUrlPrefix === undefined) {
|
72971
|
+
typeUrlPrefix = "type.googleapis.com";
|
72972
|
+
}
|
72973
|
+
return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse";
|
72974
|
+
};
|
72975
|
+
return CompanionCanonicalUserNonceFetchResponse;
|
72976
|
+
})();
|
71858
72977
|
PeerDataOperationResult.CompanionMetaNonceFetchResponse = (function() {
|
71859
72978
|
/**
|
71860
72979
|
* Properties of a CompanionMetaNonceFetchResponse.
|
@@ -73955,6 +75074,7 @@ return PeerDataOperationRequestResponseMessage;
|
|
73955
75074
|
* @property {number} FULL_HISTORY_SYNC_ON_DEMAND=6 FULL_HISTORY_SYNC_ON_DEMAND value
|
73956
75075
|
* @property {number} COMPANION_META_NONCE_FETCH=7 COMPANION_META_NONCE_FETCH value
|
73957
75076
|
* @property {number} COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8 COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY value
|
75077
|
+
* @property {number} COMPANION_CANONICAL_USER_NONCE_FETCH=9 COMPANION_CANONICAL_USER_NONCE_FETCH value
|
73958
75078
|
*/
|
73959
75079
|
Message.PeerDataOperationRequestType = (function() {
|
73960
75080
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -73967,6 +75087,7 @@ values[valuesById[5] = "WAFFLE_LINKING_NONCE_FETCH"] = 5;
|
|
73967
75087
|
values[valuesById[6] = "FULL_HISTORY_SYNC_ON_DEMAND"] = 6;
|
73968
75088
|
values[valuesById[7] = "COMPANION_META_NONCE_FETCH"] = 7;
|
73969
75089
|
values[valuesById[8] = "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY"] = 8;
|
75090
|
+
values[valuesById[9] = "COMPANION_CANONICAL_USER_NONCE_FETCH"] = 9;
|
73970
75091
|
return values;
|
73971
75092
|
})();
|
73972
75093
|
Message.PinInChatMessage = (function() {
|
@@ -91200,6 +92321,7 @@ StatusAttributions.StatusAttribution = (function() {
|
|
91200
92321
|
* @property {StatusAttributions.StatusAttribution.IStatusReshare|null} [statusReshare] StatusAttribution statusReshare
|
91201
92322
|
* @property {StatusAttributions.StatusAttribution.IExternalShare|null} [externalShare] StatusAttribution externalShare
|
91202
92323
|
* @property {StatusAttributions.StatusAttribution.IMusic|null} [music] StatusAttribution music
|
92324
|
+
* @property {StatusAttributions.StatusAttribution.IGroupStatus|null} [groupStatus] StatusAttribution groupStatus
|
91203
92325
|
*/
|
91204
92326
|
/**
|
91205
92327
|
* Constructs a new StatusAttribution.
|
@@ -91250,6 +92372,13 @@ StatusAttribution.prototype.externalShare = null;
|
|
91250
92372
|
* @instance
|
91251
92373
|
*/
|
91252
92374
|
StatusAttribution.prototype.music = null;
|
92375
|
+
/**
|
92376
|
+
* StatusAttribution groupStatus.
|
92377
|
+
* @member {StatusAttributions.StatusAttribution.IGroupStatus|null|undefined} groupStatus
|
92378
|
+
* @memberof StatusAttributions.StatusAttribution
|
92379
|
+
* @instance
|
92380
|
+
*/
|
92381
|
+
StatusAttribution.prototype.groupStatus = null;
|
91253
92382
|
// OneOf field names bound to virtual getters and setters
|
91254
92383
|
var $oneOfFields;
|
91255
92384
|
/**
|
@@ -91274,12 +92403,12 @@ set: $util.oneOfSetter($oneOfFields)
|
|
91274
92403
|
});
|
91275
92404
|
/**
|
91276
92405
|
* StatusAttribution attributionData.
|
91277
|
-
* @member {"statusReshare"|"externalShare"|"music"|undefined} attributionData
|
92406
|
+
* @member {"statusReshare"|"externalShare"|"music"|"groupStatus"|undefined} attributionData
|
91278
92407
|
* @memberof StatusAttributions.StatusAttribution
|
91279
92408
|
* @instance
|
91280
92409
|
*/
|
91281
92410
|
Object.defineProperty(StatusAttribution.prototype, "attributionData", {
|
91282
|
-
get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music"]),
|
92411
|
+
get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music", "groupStatus"]),
|
91283
92412
|
set: $util.oneOfSetter($oneOfFields)
|
91284
92413
|
});
|
91285
92414
|
/**
|
@@ -91315,6 +92444,8 @@ if (message.externalShare != null && Object.hasOwnProperty.call(message, "extern
|
|
91315
92444
|
$root.StatusAttributions.StatusAttribution.ExternalShare.encode(message.externalShare, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
91316
92445
|
if (message.music != null && Object.hasOwnProperty.call(message, "music"))
|
91317
92446
|
$root.StatusAttributions.StatusAttribution.Music.encode(message.music, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
92447
|
+
if (message.groupStatus != null && Object.hasOwnProperty.call(message, "groupStatus"))
|
92448
|
+
$root.StatusAttributions.StatusAttribution.GroupStatus.encode(message.groupStatus, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
91318
92449
|
return writer;
|
91319
92450
|
};
|
91320
92451
|
/**
|
@@ -91369,6 +92500,10 @@ case 5: {
|
|
91369
92500
|
message.music = $root.StatusAttributions.StatusAttribution.Music.decode(reader, reader.uint32());
|
91370
92501
|
break;
|
91371
92502
|
}
|
92503
|
+
case 6: {
|
92504
|
+
message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.decode(reader, reader.uint32());
|
92505
|
+
break;
|
92506
|
+
}
|
91372
92507
|
default:
|
91373
92508
|
reader.skipType(tag & 7);
|
91374
92509
|
break;
|
@@ -91411,6 +92546,8 @@ return "type: enum value expected";
|
|
91411
92546
|
case 0:
|
91412
92547
|
case 1:
|
91413
92548
|
case 2:
|
92549
|
+
case 3:
|
92550
|
+
case 4:
|
91414
92551
|
break;
|
91415
92552
|
}
|
91416
92553
|
}
|
@@ -91447,6 +92584,16 @@ if (error)
|
|
91447
92584
|
return "music." + error;
|
91448
92585
|
}
|
91449
92586
|
}
|
92587
|
+
if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
|
92588
|
+
if (properties.attributionData === 1)
|
92589
|
+
return "attributionData: multiple values";
|
92590
|
+
properties.attributionData = 1;
|
92591
|
+
{
|
92592
|
+
var error = $root.StatusAttributions.StatusAttribution.GroupStatus.verify(message.groupStatus);
|
92593
|
+
if (error)
|
92594
|
+
return "groupStatus." + error;
|
92595
|
+
}
|
92596
|
+
}
|
91450
92597
|
return null;
|
91451
92598
|
};
|
91452
92599
|
/**
|
@@ -91480,6 +92627,14 @@ case "MUSIC":
|
|
91480
92627
|
case 2:
|
91481
92628
|
message.type = 2;
|
91482
92629
|
break;
|
92630
|
+
case "STATUS_MENTION":
|
92631
|
+
case 3:
|
92632
|
+
message.type = 3;
|
92633
|
+
break;
|
92634
|
+
case "GROUP_STATUS":
|
92635
|
+
case 4:
|
92636
|
+
message.type = 4;
|
92637
|
+
break;
|
91483
92638
|
}
|
91484
92639
|
if (object.actionUrl != null)
|
91485
92640
|
message.actionUrl = String(object.actionUrl);
|
@@ -91498,6 +92653,11 @@ if (typeof object.music !== "object")
|
|
91498
92653
|
throw TypeError(".StatusAttributions.StatusAttribution.music: object expected");
|
91499
92654
|
message.music = $root.StatusAttributions.StatusAttribution.Music.fromObject(object.music);
|
91500
92655
|
}
|
92656
|
+
if (object.groupStatus != null) {
|
92657
|
+
if (typeof object.groupStatus !== "object")
|
92658
|
+
throw TypeError(".StatusAttributions.StatusAttribution.groupStatus: object expected");
|
92659
|
+
message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.fromObject(object.groupStatus);
|
92660
|
+
}
|
91501
92661
|
return message;
|
91502
92662
|
};
|
91503
92663
|
/**
|
@@ -91538,6 +92698,11 @@ object.music = $root.StatusAttributions.StatusAttribution.Music.toObject(message
|
|
91538
92698
|
if (options.oneofs)
|
91539
92699
|
object.attributionData = "music";
|
91540
92700
|
}
|
92701
|
+
if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
|
92702
|
+
object.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.toObject(message.groupStatus, options);
|
92703
|
+
if (options.oneofs)
|
92704
|
+
object.attributionData = "groupStatus";
|
92705
|
+
}
|
91541
92706
|
return object;
|
91542
92707
|
};
|
91543
92708
|
/**
|
@@ -91788,6 +92953,8 @@ case 1:
|
|
91788
92953
|
case 2:
|
91789
92954
|
case 3:
|
91790
92955
|
case 4:
|
92956
|
+
case 5:
|
92957
|
+
case 6:
|
91791
92958
|
break;
|
91792
92959
|
}
|
91793
92960
|
}
|
@@ -91844,6 +93011,14 @@ case "SPOTIFY":
|
|
91844
93011
|
case 4:
|
91845
93012
|
message.source = 4;
|
91846
93013
|
break;
|
93014
|
+
case "YOUTUBE":
|
93015
|
+
case 5:
|
93016
|
+
message.source = 5;
|
93017
|
+
break;
|
93018
|
+
case "PINTEREST":
|
93019
|
+
case 6:
|
93020
|
+
message.source = 6;
|
93021
|
+
break;
|
91847
93022
|
}
|
91848
93023
|
if (object.duration != null)
|
91849
93024
|
message.duration = object.duration | 0;
|
@@ -91919,6 +93094,8 @@ return typeUrlPrefix + "/StatusAttributions.StatusAttribution.ExternalShare";
|
|
91919
93094
|
* @property {number} FACEBOOK=2 FACEBOOK value
|
91920
93095
|
* @property {number} MESSENGER=3 MESSENGER value
|
91921
93096
|
* @property {number} SPOTIFY=4 SPOTIFY value
|
93097
|
+
* @property {number} YOUTUBE=5 YOUTUBE value
|
93098
|
+
* @property {number} PINTEREST=6 PINTEREST value
|
91922
93099
|
*/
|
91923
93100
|
ExternalShare.Source = (function() {
|
91924
93101
|
var valuesById = {}, values = Object.create(valuesById);
|
@@ -91927,10 +93104,218 @@ values[valuesById[1] = "INSTAGRAM"] = 1;
|
|
91927
93104
|
values[valuesById[2] = "FACEBOOK"] = 2;
|
91928
93105
|
values[valuesById[3] = "MESSENGER"] = 3;
|
91929
93106
|
values[valuesById[4] = "SPOTIFY"] = 4;
|
93107
|
+
values[valuesById[5] = "YOUTUBE"] = 5;
|
93108
|
+
values[valuesById[6] = "PINTEREST"] = 6;
|
91930
93109
|
return values;
|
91931
93110
|
})();
|
91932
93111
|
return ExternalShare;
|
91933
93112
|
})();
|
93113
|
+
StatusAttribution.GroupStatus = (function() {
|
93114
|
+
/**
|
93115
|
+
* Properties of a GroupStatus.
|
93116
|
+
* @memberof StatusAttributions.StatusAttribution
|
93117
|
+
* @interface IGroupStatus
|
93118
|
+
* @property {string|null} [authorJid] GroupStatus authorJid
|
93119
|
+
*/
|
93120
|
+
/**
|
93121
|
+
* Constructs a new GroupStatus.
|
93122
|
+
* @memberof StatusAttributions.StatusAttribution
|
93123
|
+
* @classdesc Represents a GroupStatus.
|
93124
|
+
* @implements IGroupStatus
|
93125
|
+
* @constructor
|
93126
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
|
93127
|
+
*/
|
93128
|
+
function GroupStatus(properties) {
|
93129
|
+
if (properties)
|
93130
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
93131
|
+
if (properties[keys[i]] != null)
|
93132
|
+
this[keys[i]] = properties[keys[i]];
|
93133
|
+
}
|
93134
|
+
/**
|
93135
|
+
* GroupStatus authorJid.
|
93136
|
+
* @member {string|null|undefined} authorJid
|
93137
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93138
|
+
* @instance
|
93139
|
+
*/
|
93140
|
+
GroupStatus.prototype.authorJid = null;
|
93141
|
+
// OneOf field names bound to virtual getters and setters
|
93142
|
+
var $oneOfFields;
|
93143
|
+
/**
|
93144
|
+
* GroupStatus _authorJid.
|
93145
|
+
* @member {"authorJid"|undefined} _authorJid
|
93146
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93147
|
+
* @instance
|
93148
|
+
*/
|
93149
|
+
Object.defineProperty(GroupStatus.prototype, "_authorJid", {
|
93150
|
+
get: $util.oneOfGetter($oneOfFields = ["authorJid"]),
|
93151
|
+
set: $util.oneOfSetter($oneOfFields)
|
93152
|
+
});
|
93153
|
+
/**
|
93154
|
+
* Creates a new GroupStatus instance using the specified properties.
|
93155
|
+
* @function create
|
93156
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93157
|
+
* @static
|
93158
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
|
93159
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus instance
|
93160
|
+
*/
|
93161
|
+
GroupStatus.create = function create(properties) {
|
93162
|
+
return new GroupStatus(properties);
|
93163
|
+
};
|
93164
|
+
/**
|
93165
|
+
* Encodes the specified GroupStatus message. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
|
93166
|
+
* @function encode
|
93167
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93168
|
+
* @static
|
93169
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
|
93170
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
93171
|
+
* @returns {$protobuf.Writer} Writer
|
93172
|
+
*/
|
93173
|
+
GroupStatus.encode = function encode(message, writer) {
|
93174
|
+
if (!writer)
|
93175
|
+
writer = $Writer.create();
|
93176
|
+
if (message.authorJid != null && Object.hasOwnProperty.call(message, "authorJid"))
|
93177
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.authorJid);
|
93178
|
+
return writer;
|
93179
|
+
};
|
93180
|
+
/**
|
93181
|
+
* Encodes the specified GroupStatus message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
|
93182
|
+
* @function encodeDelimited
|
93183
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93184
|
+
* @static
|
93185
|
+
* @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
|
93186
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
93187
|
+
* @returns {$protobuf.Writer} Writer
|
93188
|
+
*/
|
93189
|
+
GroupStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
93190
|
+
return this.encode(message, writer).ldelim();
|
93191
|
+
};
|
93192
|
+
/**
|
93193
|
+
* Decodes a GroupStatus message from the specified reader or buffer.
|
93194
|
+
* @function decode
|
93195
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93196
|
+
* @static
|
93197
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
93198
|
+
* @param {number} [length] Message length if known beforehand
|
93199
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
93200
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
93201
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
93202
|
+
*/
|
93203
|
+
GroupStatus.decode = function decode(reader, length, error) {
|
93204
|
+
if (!(reader instanceof $Reader))
|
93205
|
+
reader = $Reader.create(reader);
|
93206
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
|
93207
|
+
while (reader.pos < end) {
|
93208
|
+
var tag = reader.uint32();
|
93209
|
+
if (tag === error)
|
93210
|
+
break;
|
93211
|
+
switch (tag >>> 3) {
|
93212
|
+
case 1: {
|
93213
|
+
message.authorJid = reader.string();
|
93214
|
+
break;
|
93215
|
+
}
|
93216
|
+
default:
|
93217
|
+
reader.skipType(tag & 7);
|
93218
|
+
break;
|
93219
|
+
}
|
93220
|
+
}
|
93221
|
+
return message;
|
93222
|
+
};
|
93223
|
+
/**
|
93224
|
+
* Decodes a GroupStatus message from the specified reader or buffer, length delimited.
|
93225
|
+
* @function decodeDelimited
|
93226
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93227
|
+
* @static
|
93228
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
93229
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
93230
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
93231
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
93232
|
+
*/
|
93233
|
+
GroupStatus.decodeDelimited = function decodeDelimited(reader) {
|
93234
|
+
if (!(reader instanceof $Reader))
|
93235
|
+
reader = new $Reader(reader);
|
93236
|
+
return this.decode(reader, reader.uint32());
|
93237
|
+
};
|
93238
|
+
/**
|
93239
|
+
* Verifies a GroupStatus message.
|
93240
|
+
* @function verify
|
93241
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93242
|
+
* @static
|
93243
|
+
* @param {Object.<string,*>} message Plain object to verify
|
93244
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
93245
|
+
*/
|
93246
|
+
GroupStatus.verify = function verify(message) {
|
93247
|
+
if (typeof message !== "object" || message === null)
|
93248
|
+
return "object expected";
|
93249
|
+
var properties = {};
|
93250
|
+
if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
|
93251
|
+
properties._authorJid = 1;
|
93252
|
+
if (!$util.isString(message.authorJid))
|
93253
|
+
return "authorJid: string expected";
|
93254
|
+
}
|
93255
|
+
return null;
|
93256
|
+
};
|
93257
|
+
/**
|
93258
|
+
* Creates a GroupStatus message from a plain object. Also converts values to their respective internal types.
|
93259
|
+
* @function fromObject
|
93260
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93261
|
+
* @static
|
93262
|
+
* @param {Object.<string,*>} object Plain object
|
93263
|
+
* @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
|
93264
|
+
*/
|
93265
|
+
GroupStatus.fromObject = function fromObject(object) {
|
93266
|
+
if (object instanceof $root.StatusAttributions.StatusAttribution.GroupStatus)
|
93267
|
+
return object;
|
93268
|
+
var message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
|
93269
|
+
if (object.authorJid != null)
|
93270
|
+
message.authorJid = String(object.authorJid);
|
93271
|
+
return message;
|
93272
|
+
};
|
93273
|
+
/**
|
93274
|
+
* Creates a plain object from a GroupStatus message. Also converts values to other types if specified.
|
93275
|
+
* @function toObject
|
93276
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93277
|
+
* @static
|
93278
|
+
* @param {StatusAttributions.StatusAttribution.GroupStatus} message GroupStatus
|
93279
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
93280
|
+
* @returns {Object.<string,*>} Plain object
|
93281
|
+
*/
|
93282
|
+
GroupStatus.toObject = function toObject(message, options) {
|
93283
|
+
if (!options)
|
93284
|
+
options = {};
|
93285
|
+
var object = {};
|
93286
|
+
if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
|
93287
|
+
object.authorJid = message.authorJid;
|
93288
|
+
if (options.oneofs)
|
93289
|
+
object._authorJid = "authorJid";
|
93290
|
+
}
|
93291
|
+
return object;
|
93292
|
+
};
|
93293
|
+
/**
|
93294
|
+
* Converts this GroupStatus to JSON.
|
93295
|
+
* @function toJSON
|
93296
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93297
|
+
* @instance
|
93298
|
+
* @returns {Object.<string,*>} JSON object
|
93299
|
+
*/
|
93300
|
+
GroupStatus.prototype.toJSON = function toJSON() {
|
93301
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
93302
|
+
};
|
93303
|
+
/**
|
93304
|
+
* Gets the default type url for GroupStatus
|
93305
|
+
* @function getTypeUrl
|
93306
|
+
* @memberof StatusAttributions.StatusAttribution.GroupStatus
|
93307
|
+
* @static
|
93308
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
93309
|
+
* @returns {string} The default type url
|
93310
|
+
*/
|
93311
|
+
GroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
93312
|
+
if (typeUrlPrefix === undefined) {
|
93313
|
+
typeUrlPrefix = "type.googleapis.com";
|
93314
|
+
}
|
93315
|
+
return typeUrlPrefix + "/StatusAttributions.StatusAttribution.GroupStatus";
|
93316
|
+
};
|
93317
|
+
return GroupStatus;
|
93318
|
+
})();
|
91934
93319
|
StatusAttribution.Music = (function() {
|
91935
93320
|
/**
|
91936
93321
|
* Properties of a Music.
|
@@ -92932,12 +94317,16 @@ return StatusReshare;
|
|
92932
94317
|
* @property {number} RESHARE=0 RESHARE value
|
92933
94318
|
* @property {number} EXTERNAL_SHARE=1 EXTERNAL_SHARE value
|
92934
94319
|
* @property {number} MUSIC=2 MUSIC value
|
94320
|
+
* @property {number} STATUS_MENTION=3 STATUS_MENTION value
|
94321
|
+
* @property {number} GROUP_STATUS=4 GROUP_STATUS value
|
92935
94322
|
*/
|
92936
94323
|
StatusAttribution.Type = (function() {
|
92937
94324
|
var valuesById = {}, values = Object.create(valuesById);
|
92938
94325
|
values[valuesById[0] = "RESHARE"] = 0;
|
92939
94326
|
values[valuesById[1] = "EXTERNAL_SHARE"] = 1;
|
92940
94327
|
values[valuesById[2] = "MUSIC"] = 2;
|
94328
|
+
values[valuesById[3] = "STATUS_MENTION"] = 3;
|
94329
|
+
values[valuesById[4] = "GROUP_STATUS"] = 4;
|
92941
94330
|
return values;
|
92942
94331
|
})();
|
92943
94332
|
return StatusAttribution;
|
@@ -92958,6 +94347,7 @@ CompanionReg.ClientPairingProps = (function() {
|
|
92958
94347
|
* @interface IClientPairingProps
|
92959
94348
|
* @property {boolean|null} [isChatDbLidMigrated] ClientPairingProps isChatDbLidMigrated
|
92960
94349
|
* @property {boolean|null} [isSyncdPureLidSession] ClientPairingProps isSyncdPureLidSession
|
94350
|
+
* @property {boolean|null} [isSyncdSnapshotRecoveryEnabled] ClientPairingProps isSyncdSnapshotRecoveryEnabled
|
92961
94351
|
*/
|
92962
94352
|
/**
|
92963
94353
|
* Constructs a new ClientPairingProps.
|
@@ -92987,6 +94377,13 @@ ClientPairingProps.prototype.isChatDbLidMigrated = null;
|
|
92987
94377
|
* @instance
|
92988
94378
|
*/
|
92989
94379
|
ClientPairingProps.prototype.isSyncdPureLidSession = null;
|
94380
|
+
/**
|
94381
|
+
* ClientPairingProps isSyncdSnapshotRecoveryEnabled.
|
94382
|
+
* @member {boolean|null|undefined} isSyncdSnapshotRecoveryEnabled
|
94383
|
+
* @memberof CompanionReg.ClientPairingProps
|
94384
|
+
* @instance
|
94385
|
+
*/
|
94386
|
+
ClientPairingProps.prototype.isSyncdSnapshotRecoveryEnabled = null;
|
92990
94387
|
// OneOf field names bound to virtual getters and setters
|
92991
94388
|
var $oneOfFields;
|
92992
94389
|
/**
|
@@ -93010,6 +94407,16 @@ get: $util.oneOfGetter($oneOfFields = ["isSyncdPureLidSession"]),
|
|
93010
94407
|
set: $util.oneOfSetter($oneOfFields)
|
93011
94408
|
});
|
93012
94409
|
/**
|
94410
|
+
* ClientPairingProps _isSyncdSnapshotRecoveryEnabled.
|
94411
|
+
* @member {"isSyncdSnapshotRecoveryEnabled"|undefined} _isSyncdSnapshotRecoveryEnabled
|
94412
|
+
* @memberof CompanionReg.ClientPairingProps
|
94413
|
+
* @instance
|
94414
|
+
*/
|
94415
|
+
Object.defineProperty(ClientPairingProps.prototype, "_isSyncdSnapshotRecoveryEnabled", {
|
94416
|
+
get: $util.oneOfGetter($oneOfFields = ["isSyncdSnapshotRecoveryEnabled"]),
|
94417
|
+
set: $util.oneOfSetter($oneOfFields)
|
94418
|
+
});
|
94419
|
+
/**
|
93013
94420
|
* Creates a new ClientPairingProps instance using the specified properties.
|
93014
94421
|
* @function create
|
93015
94422
|
* @memberof CompanionReg.ClientPairingProps
|
@@ -93036,6 +94443,8 @@ if (message.isChatDbLidMigrated != null && Object.hasOwnProperty.call(message, "
|
|
93036
94443
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isChatDbLidMigrated);
|
93037
94444
|
if (message.isSyncdPureLidSession != null && Object.hasOwnProperty.call(message, "isSyncdPureLidSession"))
|
93038
94445
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSyncdPureLidSession);
|
94446
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && Object.hasOwnProperty.call(message, "isSyncdSnapshotRecoveryEnabled"))
|
94447
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSyncdSnapshotRecoveryEnabled);
|
93039
94448
|
return writer;
|
93040
94449
|
};
|
93041
94450
|
/**
|
@@ -93078,6 +94487,10 @@ case 2: {
|
|
93078
94487
|
message.isSyncdPureLidSession = reader.bool();
|
93079
94488
|
break;
|
93080
94489
|
}
|
94490
|
+
case 3: {
|
94491
|
+
message.isSyncdSnapshotRecoveryEnabled = reader.bool();
|
94492
|
+
break;
|
94493
|
+
}
|
93081
94494
|
default:
|
93082
94495
|
reader.skipType(tag & 7);
|
93083
94496
|
break;
|
@@ -93122,6 +94535,11 @@ properties._isSyncdPureLidSession = 1;
|
|
93122
94535
|
if (typeof message.isSyncdPureLidSession !== "boolean")
|
93123
94536
|
return "isSyncdPureLidSession: boolean expected";
|
93124
94537
|
}
|
94538
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
|
94539
|
+
properties._isSyncdSnapshotRecoveryEnabled = 1;
|
94540
|
+
if (typeof message.isSyncdSnapshotRecoveryEnabled !== "boolean")
|
94541
|
+
return "isSyncdSnapshotRecoveryEnabled: boolean expected";
|
94542
|
+
}
|
93125
94543
|
return null;
|
93126
94544
|
};
|
93127
94545
|
/**
|
@@ -93140,6 +94558,8 @@ if (object.isChatDbLidMigrated != null)
|
|
93140
94558
|
message.isChatDbLidMigrated = Boolean(object.isChatDbLidMigrated);
|
93141
94559
|
if (object.isSyncdPureLidSession != null)
|
93142
94560
|
message.isSyncdPureLidSession = Boolean(object.isSyncdPureLidSession);
|
94561
|
+
if (object.isSyncdSnapshotRecoveryEnabled != null)
|
94562
|
+
message.isSyncdSnapshotRecoveryEnabled = Boolean(object.isSyncdSnapshotRecoveryEnabled);
|
93143
94563
|
return message;
|
93144
94564
|
};
|
93145
94565
|
/**
|
@@ -93165,6 +94585,11 @@ object.isSyncdPureLidSession = message.isSyncdPureLidSession;
|
|
93165
94585
|
if (options.oneofs)
|
93166
94586
|
object._isSyncdPureLidSession = "isSyncdPureLidSession";
|
93167
94587
|
}
|
94588
|
+
if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
|
94589
|
+
object.isSyncdSnapshotRecoveryEnabled = message.isSyncdSnapshotRecoveryEnabled;
|
94590
|
+
if (options.oneofs)
|
94591
|
+
object._isSyncdSnapshotRecoveryEnabled = "isSyncdSnapshotRecoveryEnabled";
|
94592
|
+
}
|
93168
94593
|
return object;
|
93169
94594
|
};
|
93170
94595
|
/**
|