@d0v3riz/baileys 6.3.1 → 6.4.0
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/WAProto.proto +58 -24
- package/WAProto/index.d.ts +649 -410
- package/WAProto/index.js +1632 -985
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.js +1 -1
- package/lib/Socket/Client/abstract-socket-client.d.ts +1 -0
- package/lib/Socket/business.d.ts +4 -3
- package/lib/Socket/chats.d.ts +6 -5
- package/lib/Socket/groups.d.ts +3 -2
- package/lib/Socket/index.d.ts +9 -8
- package/lib/Socket/messages-recv.d.ts +5 -3
- package/lib/Socket/messages-recv.js +75 -2
- package/lib/Socket/messages-send.d.ts +3 -2
- package/lib/Socket/messages-send.js +13 -8
- package/lib/Socket/registration.d.ts +5 -4
- package/lib/Socket/socket.d.ts +4 -3
- package/lib/Socket/socket.js +69 -9
- package/lib/Store/make-in-memory-store.d.ts +2 -2
- package/lib/Types/Auth.d.ts +19 -17
- package/lib/Types/Call.d.ts +2 -2
- package/lib/Types/Chat.d.ts +13 -13
- package/lib/Types/Events.d.ts +3 -3
- package/lib/Types/GroupMetadata.d.ts +2 -2
- package/lib/Types/LabelAssociation.d.ts +2 -2
- package/lib/Types/Message.d.ts +57 -45
- package/lib/Types/Product.d.ts +14 -14
- package/lib/Types/Signal.d.ts +10 -10
- package/lib/Types/Socket.d.ts +5 -4
- package/lib/Types/State.d.ts +2 -2
- package/lib/Types/index.d.ts +5 -5
- package/lib/Utils/auth-utils.js +3 -1
- package/lib/Utils/chat-utils.d.ts +4 -4
- package/lib/Utils/crypto.d.ts +3 -0
- package/lib/Utils/crypto.js +15 -1
- package/lib/Utils/event-buffer.d.ts +2 -2
- package/lib/Utils/event-buffer.js +3 -3
- package/lib/Utils/generics.d.ts +7 -6
- package/lib/Utils/generics.js +25 -27
- package/lib/Utils/link-preview.d.ts +1 -1
- package/lib/Utils/link-preview.js +1 -24
- package/lib/Utils/make-mutex.d.ts +1 -1
- package/lib/Utils/messages-media.d.ts +9 -3
- package/lib/Utils/messages-media.js +54 -6
- package/lib/Utils/messages.d.ts +6 -5
- package/lib/Utils/messages.js +35 -1
- package/lib/Utils/process-message.d.ts +2 -2
- package/lib/Utils/validate-connection.js +1 -2
- package/lib/WABinary/jid-utils.d.ts +4 -4
- package/lib/WABinary/types.d.ts +4 -4
- package/lib/index.d.ts +1 -1
- package/package.json +6 -5
package/WAProto/index.js
CHANGED
|
@@ -3141,7 +3141,7 @@ $root.proto = (function() {
|
|
|
3141
3141
|
* @memberof proto
|
|
3142
3142
|
* @interface IBotAvatarMetadata
|
|
3143
3143
|
* @property {number|null} [sentiment] BotAvatarMetadata sentiment
|
|
3144
|
-
* @property {
|
|
3144
|
+
* @property {string|null} [behaviorGraph] BotAvatarMetadata behaviorGraph
|
|
3145
3145
|
*/
|
|
3146
3146
|
|
|
3147
3147
|
/**
|
|
@@ -3153,7 +3153,6 @@ $root.proto = (function() {
|
|
|
3153
3153
|
* @param {proto.IBotAvatarMetadata=} [properties] Properties to set
|
|
3154
3154
|
*/
|
|
3155
3155
|
function BotAvatarMetadata(properties) {
|
|
3156
|
-
this.dynamicVideoList = [];
|
|
3157
3156
|
if (properties)
|
|
3158
3157
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3159
3158
|
if (properties[keys[i]] != null)
|
|
@@ -3169,12 +3168,12 @@ $root.proto = (function() {
|
|
|
3169
3168
|
BotAvatarMetadata.prototype.sentiment = 0;
|
|
3170
3169
|
|
|
3171
3170
|
/**
|
|
3172
|
-
* BotAvatarMetadata
|
|
3173
|
-
* @member {
|
|
3171
|
+
* BotAvatarMetadata behaviorGraph.
|
|
3172
|
+
* @member {string} behaviorGraph
|
|
3174
3173
|
* @memberof proto.BotAvatarMetadata
|
|
3175
3174
|
* @instance
|
|
3176
3175
|
*/
|
|
3177
|
-
BotAvatarMetadata.prototype.
|
|
3176
|
+
BotAvatarMetadata.prototype.behaviorGraph = "";
|
|
3178
3177
|
|
|
3179
3178
|
/**
|
|
3180
3179
|
* Creates a new BotAvatarMetadata instance using the specified properties.
|
|
@@ -3202,9 +3201,8 @@ $root.proto = (function() {
|
|
|
3202
3201
|
writer = $Writer.create();
|
|
3203
3202
|
if (message.sentiment != null && Object.hasOwnProperty.call(message, "sentiment"))
|
|
3204
3203
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sentiment);
|
|
3205
|
-
if (message.
|
|
3206
|
-
|
|
3207
|
-
$root.proto.BotAvatarMetadata.PlaybackMetadata.encode(message.dynamicVideoList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
3204
|
+
if (message.behaviorGraph != null && Object.hasOwnProperty.call(message, "behaviorGraph"))
|
|
3205
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.behaviorGraph);
|
|
3208
3206
|
return writer;
|
|
3209
3207
|
};
|
|
3210
3208
|
|
|
@@ -3243,9 +3241,7 @@ $root.proto = (function() {
|
|
|
3243
3241
|
message.sentiment = reader.uint32();
|
|
3244
3242
|
break;
|
|
3245
3243
|
case 2:
|
|
3246
|
-
|
|
3247
|
-
message.dynamicVideoList = [];
|
|
3248
|
-
message.dynamicVideoList.push($root.proto.BotAvatarMetadata.PlaybackMetadata.decode(reader, reader.uint32()));
|
|
3244
|
+
message.behaviorGraph = reader.string();
|
|
3249
3245
|
break;
|
|
3250
3246
|
default:
|
|
3251
3247
|
reader.skipType(tag & 7);
|
|
@@ -3285,15 +3281,9 @@ $root.proto = (function() {
|
|
|
3285
3281
|
if (message.sentiment != null && message.hasOwnProperty("sentiment"))
|
|
3286
3282
|
if (!$util.isInteger(message.sentiment))
|
|
3287
3283
|
return "sentiment: integer expected";
|
|
3288
|
-
if (message.
|
|
3289
|
-
if (
|
|
3290
|
-
return "
|
|
3291
|
-
for (var i = 0; i < message.dynamicVideoList.length; ++i) {
|
|
3292
|
-
var error = $root.proto.BotAvatarMetadata.PlaybackMetadata.verify(message.dynamicVideoList[i]);
|
|
3293
|
-
if (error)
|
|
3294
|
-
return "dynamicVideoList." + error;
|
|
3295
|
-
}
|
|
3296
|
-
}
|
|
3284
|
+
if (message.behaviorGraph != null && message.hasOwnProperty("behaviorGraph"))
|
|
3285
|
+
if (!$util.isString(message.behaviorGraph))
|
|
3286
|
+
return "behaviorGraph: string expected";
|
|
3297
3287
|
return null;
|
|
3298
3288
|
};
|
|
3299
3289
|
|
|
@@ -3311,16 +3301,8 @@ $root.proto = (function() {
|
|
|
3311
3301
|
var message = new $root.proto.BotAvatarMetadata();
|
|
3312
3302
|
if (object.sentiment != null)
|
|
3313
3303
|
message.sentiment = object.sentiment >>> 0;
|
|
3314
|
-
if (object.
|
|
3315
|
-
|
|
3316
|
-
throw TypeError(".proto.BotAvatarMetadata.dynamicVideoList: array expected");
|
|
3317
|
-
message.dynamicVideoList = [];
|
|
3318
|
-
for (var i = 0; i < object.dynamicVideoList.length; ++i) {
|
|
3319
|
-
if (typeof object.dynamicVideoList[i] !== "object")
|
|
3320
|
-
throw TypeError(".proto.BotAvatarMetadata.dynamicVideoList: object expected");
|
|
3321
|
-
message.dynamicVideoList[i] = $root.proto.BotAvatarMetadata.PlaybackMetadata.fromObject(object.dynamicVideoList[i]);
|
|
3322
|
-
}
|
|
3323
|
-
}
|
|
3304
|
+
if (object.behaviorGraph != null)
|
|
3305
|
+
message.behaviorGraph = String(object.behaviorGraph);
|
|
3324
3306
|
return message;
|
|
3325
3307
|
};
|
|
3326
3308
|
|
|
@@ -3337,17 +3319,14 @@ $root.proto = (function() {
|
|
|
3337
3319
|
if (!options)
|
|
3338
3320
|
options = {};
|
|
3339
3321
|
var object = {};
|
|
3340
|
-
if (options.
|
|
3341
|
-
object.dynamicVideoList = [];
|
|
3342
|
-
if (options.defaults)
|
|
3322
|
+
if (options.defaults) {
|
|
3343
3323
|
object.sentiment = 0;
|
|
3324
|
+
object.behaviorGraph = "";
|
|
3325
|
+
}
|
|
3344
3326
|
if (message.sentiment != null && message.hasOwnProperty("sentiment"))
|
|
3345
3327
|
object.sentiment = message.sentiment;
|
|
3346
|
-
if (message.
|
|
3347
|
-
object.
|
|
3348
|
-
for (var j = 0; j < message.dynamicVideoList.length; ++j)
|
|
3349
|
-
object.dynamicVideoList[j] = $root.proto.BotAvatarMetadata.PlaybackMetadata.toObject(message.dynamicVideoList[j], options);
|
|
3350
|
-
}
|
|
3328
|
+
if (message.behaviorGraph != null && message.hasOwnProperty("behaviorGraph"))
|
|
3329
|
+
object.behaviorGraph = message.behaviorGraph;
|
|
3351
3330
|
return object;
|
|
3352
3331
|
};
|
|
3353
3332
|
|
|
@@ -3362,514 +3341,9 @@ $root.proto = (function() {
|
|
|
3362
3341
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3363
3342
|
};
|
|
3364
3343
|
|
|
3365
|
-
BotAvatarMetadata.PlaybackMetadata = (function() {
|
|
3366
|
-
|
|
3367
|
-
/**
|
|
3368
|
-
* Properties of a PlaybackMetadata.
|
|
3369
|
-
* @memberof proto.BotAvatarMetadata
|
|
3370
|
-
* @interface IPlaybackMetadata
|
|
3371
|
-
* @property {string|null} [sdProgressiveUrl] PlaybackMetadata sdProgressiveUrl
|
|
3372
|
-
* @property {string|null} [hdProgressiveUrl] PlaybackMetadata hdProgressiveUrl
|
|
3373
|
-
* @property {string|null} [dashManifest] PlaybackMetadata dashManifest
|
|
3374
|
-
* @property {number|null} [sentiment] PlaybackMetadata sentiment
|
|
3375
|
-
* @property {number|null} [durationMs] PlaybackMetadata durationMs
|
|
3376
|
-
* @property {number|Long|null} [videoID] PlaybackMetadata videoID
|
|
3377
|
-
*/
|
|
3378
|
-
|
|
3379
|
-
/**
|
|
3380
|
-
* Constructs a new PlaybackMetadata.
|
|
3381
|
-
* @memberof proto.BotAvatarMetadata
|
|
3382
|
-
* @classdesc Represents a PlaybackMetadata.
|
|
3383
|
-
* @implements IPlaybackMetadata
|
|
3384
|
-
* @constructor
|
|
3385
|
-
* @param {proto.BotAvatarMetadata.IPlaybackMetadata=} [properties] Properties to set
|
|
3386
|
-
*/
|
|
3387
|
-
function PlaybackMetadata(properties) {
|
|
3388
|
-
if (properties)
|
|
3389
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3390
|
-
if (properties[keys[i]] != null)
|
|
3391
|
-
this[keys[i]] = properties[keys[i]];
|
|
3392
|
-
}
|
|
3393
|
-
|
|
3394
|
-
/**
|
|
3395
|
-
* PlaybackMetadata sdProgressiveUrl.
|
|
3396
|
-
* @member {string} sdProgressiveUrl
|
|
3397
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3398
|
-
* @instance
|
|
3399
|
-
*/
|
|
3400
|
-
PlaybackMetadata.prototype.sdProgressiveUrl = "";
|
|
3401
|
-
|
|
3402
|
-
/**
|
|
3403
|
-
* PlaybackMetadata hdProgressiveUrl.
|
|
3404
|
-
* @member {string} hdProgressiveUrl
|
|
3405
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3406
|
-
* @instance
|
|
3407
|
-
*/
|
|
3408
|
-
PlaybackMetadata.prototype.hdProgressiveUrl = "";
|
|
3409
|
-
|
|
3410
|
-
/**
|
|
3411
|
-
* PlaybackMetadata dashManifest.
|
|
3412
|
-
* @member {string} dashManifest
|
|
3413
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3414
|
-
* @instance
|
|
3415
|
-
*/
|
|
3416
|
-
PlaybackMetadata.prototype.dashManifest = "";
|
|
3417
|
-
|
|
3418
|
-
/**
|
|
3419
|
-
* PlaybackMetadata sentiment.
|
|
3420
|
-
* @member {number} sentiment
|
|
3421
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3422
|
-
* @instance
|
|
3423
|
-
*/
|
|
3424
|
-
PlaybackMetadata.prototype.sentiment = 0;
|
|
3425
|
-
|
|
3426
|
-
/**
|
|
3427
|
-
* PlaybackMetadata durationMs.
|
|
3428
|
-
* @member {number} durationMs
|
|
3429
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3430
|
-
* @instance
|
|
3431
|
-
*/
|
|
3432
|
-
PlaybackMetadata.prototype.durationMs = 0;
|
|
3433
|
-
|
|
3434
|
-
/**
|
|
3435
|
-
* PlaybackMetadata videoID.
|
|
3436
|
-
* @member {number|Long} videoID
|
|
3437
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3438
|
-
* @instance
|
|
3439
|
-
*/
|
|
3440
|
-
PlaybackMetadata.prototype.videoID = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
3441
|
-
|
|
3442
|
-
/**
|
|
3443
|
-
* Creates a new PlaybackMetadata instance using the specified properties.
|
|
3444
|
-
* @function create
|
|
3445
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3446
|
-
* @static
|
|
3447
|
-
* @param {proto.BotAvatarMetadata.IPlaybackMetadata=} [properties] Properties to set
|
|
3448
|
-
* @returns {proto.BotAvatarMetadata.PlaybackMetadata} PlaybackMetadata instance
|
|
3449
|
-
*/
|
|
3450
|
-
PlaybackMetadata.create = function create(properties) {
|
|
3451
|
-
return new PlaybackMetadata(properties);
|
|
3452
|
-
};
|
|
3453
|
-
|
|
3454
|
-
/**
|
|
3455
|
-
* Encodes the specified PlaybackMetadata message. Does not implicitly {@link proto.BotAvatarMetadata.PlaybackMetadata.verify|verify} messages.
|
|
3456
|
-
* @function encode
|
|
3457
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3458
|
-
* @static
|
|
3459
|
-
* @param {proto.BotAvatarMetadata.IPlaybackMetadata} message PlaybackMetadata message or plain object to encode
|
|
3460
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3461
|
-
* @returns {$protobuf.Writer} Writer
|
|
3462
|
-
*/
|
|
3463
|
-
PlaybackMetadata.encode = function encode(message, writer) {
|
|
3464
|
-
if (!writer)
|
|
3465
|
-
writer = $Writer.create();
|
|
3466
|
-
if (message.sdProgressiveUrl != null && Object.hasOwnProperty.call(message, "sdProgressiveUrl"))
|
|
3467
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.sdProgressiveUrl);
|
|
3468
|
-
if (message.hdProgressiveUrl != null && Object.hasOwnProperty.call(message, "hdProgressiveUrl"))
|
|
3469
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hdProgressiveUrl);
|
|
3470
|
-
if (message.dashManifest != null && Object.hasOwnProperty.call(message, "dashManifest"))
|
|
3471
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.dashManifest);
|
|
3472
|
-
if (message.sentiment != null && Object.hasOwnProperty.call(message, "sentiment"))
|
|
3473
|
-
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.sentiment);
|
|
3474
|
-
if (message.durationMs != null && Object.hasOwnProperty.call(message, "durationMs"))
|
|
3475
|
-
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.durationMs);
|
|
3476
|
-
if (message.videoID != null && Object.hasOwnProperty.call(message, "videoID"))
|
|
3477
|
-
writer.uint32(/* id 6, wireType 0 =*/48).int64(message.videoID);
|
|
3478
|
-
return writer;
|
|
3479
|
-
};
|
|
3480
|
-
|
|
3481
|
-
/**
|
|
3482
|
-
* Encodes the specified PlaybackMetadata message, length delimited. Does not implicitly {@link proto.BotAvatarMetadata.PlaybackMetadata.verify|verify} messages.
|
|
3483
|
-
* @function encodeDelimited
|
|
3484
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3485
|
-
* @static
|
|
3486
|
-
* @param {proto.BotAvatarMetadata.IPlaybackMetadata} message PlaybackMetadata message or plain object to encode
|
|
3487
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3488
|
-
* @returns {$protobuf.Writer} Writer
|
|
3489
|
-
*/
|
|
3490
|
-
PlaybackMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3491
|
-
return this.encode(message, writer).ldelim();
|
|
3492
|
-
};
|
|
3493
|
-
|
|
3494
|
-
/**
|
|
3495
|
-
* Decodes a PlaybackMetadata message from the specified reader or buffer.
|
|
3496
|
-
* @function decode
|
|
3497
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3498
|
-
* @static
|
|
3499
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3500
|
-
* @param {number} [length] Message length if known beforehand
|
|
3501
|
-
* @returns {proto.BotAvatarMetadata.PlaybackMetadata} PlaybackMetadata
|
|
3502
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3503
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3504
|
-
*/
|
|
3505
|
-
PlaybackMetadata.decode = function decode(reader, length) {
|
|
3506
|
-
if (!(reader instanceof $Reader))
|
|
3507
|
-
reader = $Reader.create(reader);
|
|
3508
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.BotAvatarMetadata.PlaybackMetadata();
|
|
3509
|
-
while (reader.pos < end) {
|
|
3510
|
-
var tag = reader.uint32();
|
|
3511
|
-
switch (tag >>> 3) {
|
|
3512
|
-
case 1:
|
|
3513
|
-
message.sdProgressiveUrl = reader.string();
|
|
3514
|
-
break;
|
|
3515
|
-
case 2:
|
|
3516
|
-
message.hdProgressiveUrl = reader.string();
|
|
3517
|
-
break;
|
|
3518
|
-
case 3:
|
|
3519
|
-
message.dashManifest = reader.string();
|
|
3520
|
-
break;
|
|
3521
|
-
case 4:
|
|
3522
|
-
message.sentiment = reader.uint32();
|
|
3523
|
-
break;
|
|
3524
|
-
case 5:
|
|
3525
|
-
message.durationMs = reader.uint32();
|
|
3526
|
-
break;
|
|
3527
|
-
case 6:
|
|
3528
|
-
message.videoID = reader.int64();
|
|
3529
|
-
break;
|
|
3530
|
-
default:
|
|
3531
|
-
reader.skipType(tag & 7);
|
|
3532
|
-
break;
|
|
3533
|
-
}
|
|
3534
|
-
}
|
|
3535
|
-
return message;
|
|
3536
|
-
};
|
|
3537
|
-
|
|
3538
|
-
/**
|
|
3539
|
-
* Decodes a PlaybackMetadata message from the specified reader or buffer, length delimited.
|
|
3540
|
-
* @function decodeDelimited
|
|
3541
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3542
|
-
* @static
|
|
3543
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3544
|
-
* @returns {proto.BotAvatarMetadata.PlaybackMetadata} PlaybackMetadata
|
|
3545
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3546
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3547
|
-
*/
|
|
3548
|
-
PlaybackMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
3549
|
-
if (!(reader instanceof $Reader))
|
|
3550
|
-
reader = new $Reader(reader);
|
|
3551
|
-
return this.decode(reader, reader.uint32());
|
|
3552
|
-
};
|
|
3553
|
-
|
|
3554
|
-
/**
|
|
3555
|
-
* Verifies a PlaybackMetadata message.
|
|
3556
|
-
* @function verify
|
|
3557
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3558
|
-
* @static
|
|
3559
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
3560
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3561
|
-
*/
|
|
3562
|
-
PlaybackMetadata.verify = function verify(message) {
|
|
3563
|
-
if (typeof message !== "object" || message === null)
|
|
3564
|
-
return "object expected";
|
|
3565
|
-
if (message.sdProgressiveUrl != null && message.hasOwnProperty("sdProgressiveUrl"))
|
|
3566
|
-
if (!$util.isString(message.sdProgressiveUrl))
|
|
3567
|
-
return "sdProgressiveUrl: string expected";
|
|
3568
|
-
if (message.hdProgressiveUrl != null && message.hasOwnProperty("hdProgressiveUrl"))
|
|
3569
|
-
if (!$util.isString(message.hdProgressiveUrl))
|
|
3570
|
-
return "hdProgressiveUrl: string expected";
|
|
3571
|
-
if (message.dashManifest != null && message.hasOwnProperty("dashManifest"))
|
|
3572
|
-
if (!$util.isString(message.dashManifest))
|
|
3573
|
-
return "dashManifest: string expected";
|
|
3574
|
-
if (message.sentiment != null && message.hasOwnProperty("sentiment"))
|
|
3575
|
-
if (!$util.isInteger(message.sentiment))
|
|
3576
|
-
return "sentiment: integer expected";
|
|
3577
|
-
if (message.durationMs != null && message.hasOwnProperty("durationMs"))
|
|
3578
|
-
if (!$util.isInteger(message.durationMs))
|
|
3579
|
-
return "durationMs: integer expected";
|
|
3580
|
-
if (message.videoID != null && message.hasOwnProperty("videoID"))
|
|
3581
|
-
if (!$util.isInteger(message.videoID) && !(message.videoID && $util.isInteger(message.videoID.low) && $util.isInteger(message.videoID.high)))
|
|
3582
|
-
return "videoID: integer|Long expected";
|
|
3583
|
-
return null;
|
|
3584
|
-
};
|
|
3585
|
-
|
|
3586
|
-
/**
|
|
3587
|
-
* Creates a PlaybackMetadata message from a plain object. Also converts values to their respective internal types.
|
|
3588
|
-
* @function fromObject
|
|
3589
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3590
|
-
* @static
|
|
3591
|
-
* @param {Object.<string,*>} object Plain object
|
|
3592
|
-
* @returns {proto.BotAvatarMetadata.PlaybackMetadata} PlaybackMetadata
|
|
3593
|
-
*/
|
|
3594
|
-
PlaybackMetadata.fromObject = function fromObject(object) {
|
|
3595
|
-
if (object instanceof $root.proto.BotAvatarMetadata.PlaybackMetadata)
|
|
3596
|
-
return object;
|
|
3597
|
-
var message = new $root.proto.BotAvatarMetadata.PlaybackMetadata();
|
|
3598
|
-
if (object.sdProgressiveUrl != null)
|
|
3599
|
-
message.sdProgressiveUrl = String(object.sdProgressiveUrl);
|
|
3600
|
-
if (object.hdProgressiveUrl != null)
|
|
3601
|
-
message.hdProgressiveUrl = String(object.hdProgressiveUrl);
|
|
3602
|
-
if (object.dashManifest != null)
|
|
3603
|
-
message.dashManifest = String(object.dashManifest);
|
|
3604
|
-
if (object.sentiment != null)
|
|
3605
|
-
message.sentiment = object.sentiment >>> 0;
|
|
3606
|
-
if (object.durationMs != null)
|
|
3607
|
-
message.durationMs = object.durationMs >>> 0;
|
|
3608
|
-
if (object.videoID != null)
|
|
3609
|
-
if ($util.Long)
|
|
3610
|
-
(message.videoID = $util.Long.fromValue(object.videoID)).unsigned = false;
|
|
3611
|
-
else if (typeof object.videoID === "string")
|
|
3612
|
-
message.videoID = parseInt(object.videoID, 10);
|
|
3613
|
-
else if (typeof object.videoID === "number")
|
|
3614
|
-
message.videoID = object.videoID;
|
|
3615
|
-
else if (typeof object.videoID === "object")
|
|
3616
|
-
message.videoID = new $util.LongBits(object.videoID.low >>> 0, object.videoID.high >>> 0).toNumber();
|
|
3617
|
-
return message;
|
|
3618
|
-
};
|
|
3619
|
-
|
|
3620
|
-
/**
|
|
3621
|
-
* Creates a plain object from a PlaybackMetadata message. Also converts values to other types if specified.
|
|
3622
|
-
* @function toObject
|
|
3623
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3624
|
-
* @static
|
|
3625
|
-
* @param {proto.BotAvatarMetadata.PlaybackMetadata} message PlaybackMetadata
|
|
3626
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3627
|
-
* @returns {Object.<string,*>} Plain object
|
|
3628
|
-
*/
|
|
3629
|
-
PlaybackMetadata.toObject = function toObject(message, options) {
|
|
3630
|
-
if (!options)
|
|
3631
|
-
options = {};
|
|
3632
|
-
var object = {};
|
|
3633
|
-
if (options.defaults) {
|
|
3634
|
-
object.sdProgressiveUrl = "";
|
|
3635
|
-
object.hdProgressiveUrl = "";
|
|
3636
|
-
object.dashManifest = "";
|
|
3637
|
-
object.sentiment = 0;
|
|
3638
|
-
object.durationMs = 0;
|
|
3639
|
-
if ($util.Long) {
|
|
3640
|
-
var long = new $util.Long(0, 0, false);
|
|
3641
|
-
object.videoID = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
3642
|
-
} else
|
|
3643
|
-
object.videoID = options.longs === String ? "0" : 0;
|
|
3644
|
-
}
|
|
3645
|
-
if (message.sdProgressiveUrl != null && message.hasOwnProperty("sdProgressiveUrl"))
|
|
3646
|
-
object.sdProgressiveUrl = message.sdProgressiveUrl;
|
|
3647
|
-
if (message.hdProgressiveUrl != null && message.hasOwnProperty("hdProgressiveUrl"))
|
|
3648
|
-
object.hdProgressiveUrl = message.hdProgressiveUrl;
|
|
3649
|
-
if (message.dashManifest != null && message.hasOwnProperty("dashManifest"))
|
|
3650
|
-
object.dashManifest = message.dashManifest;
|
|
3651
|
-
if (message.sentiment != null && message.hasOwnProperty("sentiment"))
|
|
3652
|
-
object.sentiment = message.sentiment;
|
|
3653
|
-
if (message.durationMs != null && message.hasOwnProperty("durationMs"))
|
|
3654
|
-
object.durationMs = message.durationMs;
|
|
3655
|
-
if (message.videoID != null && message.hasOwnProperty("videoID"))
|
|
3656
|
-
if (typeof message.videoID === "number")
|
|
3657
|
-
object.videoID = options.longs === String ? String(message.videoID) : message.videoID;
|
|
3658
|
-
else
|
|
3659
|
-
object.videoID = options.longs === String ? $util.Long.prototype.toString.call(message.videoID) : options.longs === Number ? new $util.LongBits(message.videoID.low >>> 0, message.videoID.high >>> 0).toNumber() : message.videoID;
|
|
3660
|
-
return object;
|
|
3661
|
-
};
|
|
3662
|
-
|
|
3663
|
-
/**
|
|
3664
|
-
* Converts this PlaybackMetadata to JSON.
|
|
3665
|
-
* @function toJSON
|
|
3666
|
-
* @memberof proto.BotAvatarMetadata.PlaybackMetadata
|
|
3667
|
-
* @instance
|
|
3668
|
-
* @returns {Object.<string,*>} JSON object
|
|
3669
|
-
*/
|
|
3670
|
-
PlaybackMetadata.prototype.toJSON = function toJSON() {
|
|
3671
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3672
|
-
};
|
|
3673
|
-
|
|
3674
|
-
return PlaybackMetadata;
|
|
3675
|
-
})();
|
|
3676
|
-
|
|
3677
3344
|
return BotAvatarMetadata;
|
|
3678
3345
|
})();
|
|
3679
3346
|
|
|
3680
|
-
proto.BotData = (function() {
|
|
3681
|
-
|
|
3682
|
-
/**
|
|
3683
|
-
* Properties of a BotData.
|
|
3684
|
-
* @memberof proto
|
|
3685
|
-
* @interface IBotData
|
|
3686
|
-
* @property {proto.IMessageKey} targetMessageKey BotData targetMessageKey
|
|
3687
|
-
*/
|
|
3688
|
-
|
|
3689
|
-
/**
|
|
3690
|
-
* Constructs a new BotData.
|
|
3691
|
-
* @memberof proto
|
|
3692
|
-
* @classdesc Represents a BotData.
|
|
3693
|
-
* @implements IBotData
|
|
3694
|
-
* @constructor
|
|
3695
|
-
* @param {proto.IBotData=} [properties] Properties to set
|
|
3696
|
-
*/
|
|
3697
|
-
function BotData(properties) {
|
|
3698
|
-
if (properties)
|
|
3699
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3700
|
-
if (properties[keys[i]] != null)
|
|
3701
|
-
this[keys[i]] = properties[keys[i]];
|
|
3702
|
-
}
|
|
3703
|
-
|
|
3704
|
-
/**
|
|
3705
|
-
* BotData targetMessageKey.
|
|
3706
|
-
* @member {proto.IMessageKey} targetMessageKey
|
|
3707
|
-
* @memberof proto.BotData
|
|
3708
|
-
* @instance
|
|
3709
|
-
*/
|
|
3710
|
-
BotData.prototype.targetMessageKey = null;
|
|
3711
|
-
|
|
3712
|
-
/**
|
|
3713
|
-
* Creates a new BotData instance using the specified properties.
|
|
3714
|
-
* @function create
|
|
3715
|
-
* @memberof proto.BotData
|
|
3716
|
-
* @static
|
|
3717
|
-
* @param {proto.IBotData=} [properties] Properties to set
|
|
3718
|
-
* @returns {proto.BotData} BotData instance
|
|
3719
|
-
*/
|
|
3720
|
-
BotData.create = function create(properties) {
|
|
3721
|
-
return new BotData(properties);
|
|
3722
|
-
};
|
|
3723
|
-
|
|
3724
|
-
/**
|
|
3725
|
-
* Encodes the specified BotData message. Does not implicitly {@link proto.BotData.verify|verify} messages.
|
|
3726
|
-
* @function encode
|
|
3727
|
-
* @memberof proto.BotData
|
|
3728
|
-
* @static
|
|
3729
|
-
* @param {proto.IBotData} message BotData message or plain object to encode
|
|
3730
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3731
|
-
* @returns {$protobuf.Writer} Writer
|
|
3732
|
-
*/
|
|
3733
|
-
BotData.encode = function encode(message, writer) {
|
|
3734
|
-
if (!writer)
|
|
3735
|
-
writer = $Writer.create();
|
|
3736
|
-
$root.proto.MessageKey.encode(message.targetMessageKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
3737
|
-
return writer;
|
|
3738
|
-
};
|
|
3739
|
-
|
|
3740
|
-
/**
|
|
3741
|
-
* Encodes the specified BotData message, length delimited. Does not implicitly {@link proto.BotData.verify|verify} messages.
|
|
3742
|
-
* @function encodeDelimited
|
|
3743
|
-
* @memberof proto.BotData
|
|
3744
|
-
* @static
|
|
3745
|
-
* @param {proto.IBotData} message BotData message or plain object to encode
|
|
3746
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3747
|
-
* @returns {$protobuf.Writer} Writer
|
|
3748
|
-
*/
|
|
3749
|
-
BotData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3750
|
-
return this.encode(message, writer).ldelim();
|
|
3751
|
-
};
|
|
3752
|
-
|
|
3753
|
-
/**
|
|
3754
|
-
* Decodes a BotData message from the specified reader or buffer.
|
|
3755
|
-
* @function decode
|
|
3756
|
-
* @memberof proto.BotData
|
|
3757
|
-
* @static
|
|
3758
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3759
|
-
* @param {number} [length] Message length if known beforehand
|
|
3760
|
-
* @returns {proto.BotData} BotData
|
|
3761
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3762
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3763
|
-
*/
|
|
3764
|
-
BotData.decode = function decode(reader, length) {
|
|
3765
|
-
if (!(reader instanceof $Reader))
|
|
3766
|
-
reader = $Reader.create(reader);
|
|
3767
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.BotData();
|
|
3768
|
-
while (reader.pos < end) {
|
|
3769
|
-
var tag = reader.uint32();
|
|
3770
|
-
switch (tag >>> 3) {
|
|
3771
|
-
case 1:
|
|
3772
|
-
message.targetMessageKey = $root.proto.MessageKey.decode(reader, reader.uint32());
|
|
3773
|
-
break;
|
|
3774
|
-
default:
|
|
3775
|
-
reader.skipType(tag & 7);
|
|
3776
|
-
break;
|
|
3777
|
-
}
|
|
3778
|
-
}
|
|
3779
|
-
if (!message.hasOwnProperty("targetMessageKey"))
|
|
3780
|
-
throw $util.ProtocolError("missing required 'targetMessageKey'", { instance: message });
|
|
3781
|
-
return message;
|
|
3782
|
-
};
|
|
3783
|
-
|
|
3784
|
-
/**
|
|
3785
|
-
* Decodes a BotData message from the specified reader or buffer, length delimited.
|
|
3786
|
-
* @function decodeDelimited
|
|
3787
|
-
* @memberof proto.BotData
|
|
3788
|
-
* @static
|
|
3789
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3790
|
-
* @returns {proto.BotData} BotData
|
|
3791
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3792
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3793
|
-
*/
|
|
3794
|
-
BotData.decodeDelimited = function decodeDelimited(reader) {
|
|
3795
|
-
if (!(reader instanceof $Reader))
|
|
3796
|
-
reader = new $Reader(reader);
|
|
3797
|
-
return this.decode(reader, reader.uint32());
|
|
3798
|
-
};
|
|
3799
|
-
|
|
3800
|
-
/**
|
|
3801
|
-
* Verifies a BotData message.
|
|
3802
|
-
* @function verify
|
|
3803
|
-
* @memberof proto.BotData
|
|
3804
|
-
* @static
|
|
3805
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
3806
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3807
|
-
*/
|
|
3808
|
-
BotData.verify = function verify(message) {
|
|
3809
|
-
if (typeof message !== "object" || message === null)
|
|
3810
|
-
return "object expected";
|
|
3811
|
-
{
|
|
3812
|
-
var error = $root.proto.MessageKey.verify(message.targetMessageKey);
|
|
3813
|
-
if (error)
|
|
3814
|
-
return "targetMessageKey." + error;
|
|
3815
|
-
}
|
|
3816
|
-
return null;
|
|
3817
|
-
};
|
|
3818
|
-
|
|
3819
|
-
/**
|
|
3820
|
-
* Creates a BotData message from a plain object. Also converts values to their respective internal types.
|
|
3821
|
-
* @function fromObject
|
|
3822
|
-
* @memberof proto.BotData
|
|
3823
|
-
* @static
|
|
3824
|
-
* @param {Object.<string,*>} object Plain object
|
|
3825
|
-
* @returns {proto.BotData} BotData
|
|
3826
|
-
*/
|
|
3827
|
-
BotData.fromObject = function fromObject(object) {
|
|
3828
|
-
if (object instanceof $root.proto.BotData)
|
|
3829
|
-
return object;
|
|
3830
|
-
var message = new $root.proto.BotData();
|
|
3831
|
-
if (object.targetMessageKey != null) {
|
|
3832
|
-
if (typeof object.targetMessageKey !== "object")
|
|
3833
|
-
throw TypeError(".proto.BotData.targetMessageKey: object expected");
|
|
3834
|
-
message.targetMessageKey = $root.proto.MessageKey.fromObject(object.targetMessageKey);
|
|
3835
|
-
}
|
|
3836
|
-
return message;
|
|
3837
|
-
};
|
|
3838
|
-
|
|
3839
|
-
/**
|
|
3840
|
-
* Creates a plain object from a BotData message. Also converts values to other types if specified.
|
|
3841
|
-
* @function toObject
|
|
3842
|
-
* @memberof proto.BotData
|
|
3843
|
-
* @static
|
|
3844
|
-
* @param {proto.BotData} message BotData
|
|
3845
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3846
|
-
* @returns {Object.<string,*>} Plain object
|
|
3847
|
-
*/
|
|
3848
|
-
BotData.toObject = function toObject(message, options) {
|
|
3849
|
-
if (!options)
|
|
3850
|
-
options = {};
|
|
3851
|
-
var object = {};
|
|
3852
|
-
if (options.defaults)
|
|
3853
|
-
object.targetMessageKey = null;
|
|
3854
|
-
if (message.targetMessageKey != null && message.hasOwnProperty("targetMessageKey"))
|
|
3855
|
-
object.targetMessageKey = $root.proto.MessageKey.toObject(message.targetMessageKey, options);
|
|
3856
|
-
return object;
|
|
3857
|
-
};
|
|
3858
|
-
|
|
3859
|
-
/**
|
|
3860
|
-
* Converts this BotData to JSON.
|
|
3861
|
-
* @function toJSON
|
|
3862
|
-
* @memberof proto.BotData
|
|
3863
|
-
* @instance
|
|
3864
|
-
* @returns {Object.<string,*>} JSON object
|
|
3865
|
-
*/
|
|
3866
|
-
BotData.prototype.toJSON = function toJSON() {
|
|
3867
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3868
|
-
};
|
|
3869
|
-
|
|
3870
|
-
return BotData;
|
|
3871
|
-
})();
|
|
3872
|
-
|
|
3873
3347
|
proto.BotMetadata = (function() {
|
|
3874
3348
|
|
|
3875
3349
|
/**
|
|
@@ -9963,6 +9437,8 @@ $root.proto = (function() {
|
|
|
9963
9437
|
* @property {boolean|null} [isSampled] ContextInfo isSampled
|
|
9964
9438
|
* @property {Array.<proto.IGroupMention>|null} [groupMentions] ContextInfo groupMentions
|
|
9965
9439
|
* @property {proto.ContextInfo.IUTMInfo|null} [utm] ContextInfo utm
|
|
9440
|
+
* @property {proto.ContextInfo.IForwardedNewsletterMessageInfo|null} [forwardedNewsletterMessageInfo] ContextInfo forwardedNewsletterMessageInfo
|
|
9441
|
+
* @property {proto.ContextInfo.IBusinessMessageForwardInfo|null} [businessMessageForwardInfo] ContextInfo businessMessageForwardInfo
|
|
9966
9442
|
*/
|
|
9967
9443
|
|
|
9968
9444
|
/**
|
|
@@ -10206,6 +9682,22 @@ $root.proto = (function() {
|
|
|
10206
9682
|
*/
|
|
10207
9683
|
ContextInfo.prototype.utm = null;
|
|
10208
9684
|
|
|
9685
|
+
/**
|
|
9686
|
+
* ContextInfo forwardedNewsletterMessageInfo.
|
|
9687
|
+
* @member {proto.ContextInfo.IForwardedNewsletterMessageInfo|null|undefined} forwardedNewsletterMessageInfo
|
|
9688
|
+
* @memberof proto.ContextInfo
|
|
9689
|
+
* @instance
|
|
9690
|
+
*/
|
|
9691
|
+
ContextInfo.prototype.forwardedNewsletterMessageInfo = null;
|
|
9692
|
+
|
|
9693
|
+
/**
|
|
9694
|
+
* ContextInfo businessMessageForwardInfo.
|
|
9695
|
+
* @member {proto.ContextInfo.IBusinessMessageForwardInfo|null|undefined} businessMessageForwardInfo
|
|
9696
|
+
* @memberof proto.ContextInfo
|
|
9697
|
+
* @instance
|
|
9698
|
+
*/
|
|
9699
|
+
ContextInfo.prototype.businessMessageForwardInfo = null;
|
|
9700
|
+
|
|
10209
9701
|
/**
|
|
10210
9702
|
* Creates a new ContextInfo instance using the specified properties.
|
|
10211
9703
|
* @function create
|
|
@@ -10288,6 +9780,10 @@ $root.proto = (function() {
|
|
|
10288
9780
|
$root.proto.GroupMention.encode(message.groupMentions[i], writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim();
|
|
10289
9781
|
if (message.utm != null && Object.hasOwnProperty.call(message, "utm"))
|
|
10290
9782
|
$root.proto.ContextInfo.UTMInfo.encode(message.utm, writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim();
|
|
9783
|
+
if (message.forwardedNewsletterMessageInfo != null && Object.hasOwnProperty.call(message, "forwardedNewsletterMessageInfo"))
|
|
9784
|
+
$root.proto.ContextInfo.ForwardedNewsletterMessageInfo.encode(message.forwardedNewsletterMessageInfo, writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim();
|
|
9785
|
+
if (message.businessMessageForwardInfo != null && Object.hasOwnProperty.call(message, "businessMessageForwardInfo"))
|
|
9786
|
+
$root.proto.ContextInfo.BusinessMessageForwardInfo.encode(message.businessMessageForwardInfo, writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim();
|
|
10291
9787
|
return writer;
|
|
10292
9788
|
};
|
|
10293
9789
|
|
|
@@ -10410,6 +9906,12 @@ $root.proto = (function() {
|
|
|
10410
9906
|
case 41:
|
|
10411
9907
|
message.utm = $root.proto.ContextInfo.UTMInfo.decode(reader, reader.uint32());
|
|
10412
9908
|
break;
|
|
9909
|
+
case 43:
|
|
9910
|
+
message.forwardedNewsletterMessageInfo = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.decode(reader, reader.uint32());
|
|
9911
|
+
break;
|
|
9912
|
+
case 44:
|
|
9913
|
+
message.businessMessageForwardInfo = $root.proto.ContextInfo.BusinessMessageForwardInfo.decode(reader, reader.uint32());
|
|
9914
|
+
break;
|
|
10413
9915
|
default:
|
|
10414
9916
|
reader.skipType(tag & 7);
|
|
10415
9917
|
break;
|
|
@@ -10553,6 +10055,16 @@ $root.proto = (function() {
|
|
|
10553
10055
|
if (error)
|
|
10554
10056
|
return "utm." + error;
|
|
10555
10057
|
}
|
|
10058
|
+
if (message.forwardedNewsletterMessageInfo != null && message.hasOwnProperty("forwardedNewsletterMessageInfo")) {
|
|
10059
|
+
var error = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.verify(message.forwardedNewsletterMessageInfo);
|
|
10060
|
+
if (error)
|
|
10061
|
+
return "forwardedNewsletterMessageInfo." + error;
|
|
10062
|
+
}
|
|
10063
|
+
if (message.businessMessageForwardInfo != null && message.hasOwnProperty("businessMessageForwardInfo")) {
|
|
10064
|
+
var error = $root.proto.ContextInfo.BusinessMessageForwardInfo.verify(message.businessMessageForwardInfo);
|
|
10065
|
+
if (error)
|
|
10066
|
+
return "businessMessageForwardInfo." + error;
|
|
10067
|
+
}
|
|
10556
10068
|
return null;
|
|
10557
10069
|
};
|
|
10558
10070
|
|
|
@@ -10671,6 +10183,16 @@ $root.proto = (function() {
|
|
|
10671
10183
|
throw TypeError(".proto.ContextInfo.utm: object expected");
|
|
10672
10184
|
message.utm = $root.proto.ContextInfo.UTMInfo.fromObject(object.utm);
|
|
10673
10185
|
}
|
|
10186
|
+
if (object.forwardedNewsletterMessageInfo != null) {
|
|
10187
|
+
if (typeof object.forwardedNewsletterMessageInfo !== "object")
|
|
10188
|
+
throw TypeError(".proto.ContextInfo.forwardedNewsletterMessageInfo: object expected");
|
|
10189
|
+
message.forwardedNewsletterMessageInfo = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.fromObject(object.forwardedNewsletterMessageInfo);
|
|
10190
|
+
}
|
|
10191
|
+
if (object.businessMessageForwardInfo != null) {
|
|
10192
|
+
if (typeof object.businessMessageForwardInfo !== "object")
|
|
10193
|
+
throw TypeError(".proto.ContextInfo.businessMessageForwardInfo: object expected");
|
|
10194
|
+
message.businessMessageForwardInfo = $root.proto.ContextInfo.BusinessMessageForwardInfo.fromObject(object.businessMessageForwardInfo);
|
|
10195
|
+
}
|
|
10674
10196
|
return message;
|
|
10675
10197
|
};
|
|
10676
10198
|
|
|
@@ -10734,6 +10256,8 @@ $root.proto = (function() {
|
|
|
10734
10256
|
object.trustBannerAction = 0;
|
|
10735
10257
|
object.isSampled = false;
|
|
10736
10258
|
object.utm = null;
|
|
10259
|
+
object.forwardedNewsletterMessageInfo = null;
|
|
10260
|
+
object.businessMessageForwardInfo = null;
|
|
10737
10261
|
}
|
|
10738
10262
|
if (message.stanzaId != null && message.hasOwnProperty("stanzaId"))
|
|
10739
10263
|
object.stanzaId = message.stanzaId;
|
|
@@ -10800,6 +10324,10 @@ $root.proto = (function() {
|
|
|
10800
10324
|
}
|
|
10801
10325
|
if (message.utm != null && message.hasOwnProperty("utm"))
|
|
10802
10326
|
object.utm = $root.proto.ContextInfo.UTMInfo.toObject(message.utm, options);
|
|
10327
|
+
if (message.forwardedNewsletterMessageInfo != null && message.hasOwnProperty("forwardedNewsletterMessageInfo"))
|
|
10328
|
+
object.forwardedNewsletterMessageInfo = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.toObject(message.forwardedNewsletterMessageInfo, options);
|
|
10329
|
+
if (message.businessMessageForwardInfo != null && message.hasOwnProperty("businessMessageForwardInfo"))
|
|
10330
|
+
object.businessMessageForwardInfo = $root.proto.ContextInfo.BusinessMessageForwardInfo.toObject(message.businessMessageForwardInfo, options);
|
|
10803
10331
|
return object;
|
|
10804
10332
|
};
|
|
10805
10333
|
|
|
@@ -11111,6 +10639,193 @@ $root.proto = (function() {
|
|
|
11111
10639
|
return AdReplyInfo;
|
|
11112
10640
|
})();
|
|
11113
10641
|
|
|
10642
|
+
ContextInfo.BusinessMessageForwardInfo = (function() {
|
|
10643
|
+
|
|
10644
|
+
/**
|
|
10645
|
+
* Properties of a BusinessMessageForwardInfo.
|
|
10646
|
+
* @memberof proto.ContextInfo
|
|
10647
|
+
* @interface IBusinessMessageForwardInfo
|
|
10648
|
+
* @property {string|null} [businessOwnerJid] BusinessMessageForwardInfo businessOwnerJid
|
|
10649
|
+
*/
|
|
10650
|
+
|
|
10651
|
+
/**
|
|
10652
|
+
* Constructs a new BusinessMessageForwardInfo.
|
|
10653
|
+
* @memberof proto.ContextInfo
|
|
10654
|
+
* @classdesc Represents a BusinessMessageForwardInfo.
|
|
10655
|
+
* @implements IBusinessMessageForwardInfo
|
|
10656
|
+
* @constructor
|
|
10657
|
+
* @param {proto.ContextInfo.IBusinessMessageForwardInfo=} [properties] Properties to set
|
|
10658
|
+
*/
|
|
10659
|
+
function BusinessMessageForwardInfo(properties) {
|
|
10660
|
+
if (properties)
|
|
10661
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10662
|
+
if (properties[keys[i]] != null)
|
|
10663
|
+
this[keys[i]] = properties[keys[i]];
|
|
10664
|
+
}
|
|
10665
|
+
|
|
10666
|
+
/**
|
|
10667
|
+
* BusinessMessageForwardInfo businessOwnerJid.
|
|
10668
|
+
* @member {string} businessOwnerJid
|
|
10669
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10670
|
+
* @instance
|
|
10671
|
+
*/
|
|
10672
|
+
BusinessMessageForwardInfo.prototype.businessOwnerJid = "";
|
|
10673
|
+
|
|
10674
|
+
/**
|
|
10675
|
+
* Creates a new BusinessMessageForwardInfo instance using the specified properties.
|
|
10676
|
+
* @function create
|
|
10677
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10678
|
+
* @static
|
|
10679
|
+
* @param {proto.ContextInfo.IBusinessMessageForwardInfo=} [properties] Properties to set
|
|
10680
|
+
* @returns {proto.ContextInfo.BusinessMessageForwardInfo} BusinessMessageForwardInfo instance
|
|
10681
|
+
*/
|
|
10682
|
+
BusinessMessageForwardInfo.create = function create(properties) {
|
|
10683
|
+
return new BusinessMessageForwardInfo(properties);
|
|
10684
|
+
};
|
|
10685
|
+
|
|
10686
|
+
/**
|
|
10687
|
+
* Encodes the specified BusinessMessageForwardInfo message. Does not implicitly {@link proto.ContextInfo.BusinessMessageForwardInfo.verify|verify} messages.
|
|
10688
|
+
* @function encode
|
|
10689
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10690
|
+
* @static
|
|
10691
|
+
* @param {proto.ContextInfo.IBusinessMessageForwardInfo} message BusinessMessageForwardInfo message or plain object to encode
|
|
10692
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10693
|
+
* @returns {$protobuf.Writer} Writer
|
|
10694
|
+
*/
|
|
10695
|
+
BusinessMessageForwardInfo.encode = function encode(message, writer) {
|
|
10696
|
+
if (!writer)
|
|
10697
|
+
writer = $Writer.create();
|
|
10698
|
+
if (message.businessOwnerJid != null && Object.hasOwnProperty.call(message, "businessOwnerJid"))
|
|
10699
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.businessOwnerJid);
|
|
10700
|
+
return writer;
|
|
10701
|
+
};
|
|
10702
|
+
|
|
10703
|
+
/**
|
|
10704
|
+
* Encodes the specified BusinessMessageForwardInfo message, length delimited. Does not implicitly {@link proto.ContextInfo.BusinessMessageForwardInfo.verify|verify} messages.
|
|
10705
|
+
* @function encodeDelimited
|
|
10706
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10707
|
+
* @static
|
|
10708
|
+
* @param {proto.ContextInfo.IBusinessMessageForwardInfo} message BusinessMessageForwardInfo message or plain object to encode
|
|
10709
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10710
|
+
* @returns {$protobuf.Writer} Writer
|
|
10711
|
+
*/
|
|
10712
|
+
BusinessMessageForwardInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10713
|
+
return this.encode(message, writer).ldelim();
|
|
10714
|
+
};
|
|
10715
|
+
|
|
10716
|
+
/**
|
|
10717
|
+
* Decodes a BusinessMessageForwardInfo message from the specified reader or buffer.
|
|
10718
|
+
* @function decode
|
|
10719
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10720
|
+
* @static
|
|
10721
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10722
|
+
* @param {number} [length] Message length if known beforehand
|
|
10723
|
+
* @returns {proto.ContextInfo.BusinessMessageForwardInfo} BusinessMessageForwardInfo
|
|
10724
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10725
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10726
|
+
*/
|
|
10727
|
+
BusinessMessageForwardInfo.decode = function decode(reader, length) {
|
|
10728
|
+
if (!(reader instanceof $Reader))
|
|
10729
|
+
reader = $Reader.create(reader);
|
|
10730
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.ContextInfo.BusinessMessageForwardInfo();
|
|
10731
|
+
while (reader.pos < end) {
|
|
10732
|
+
var tag = reader.uint32();
|
|
10733
|
+
switch (tag >>> 3) {
|
|
10734
|
+
case 1:
|
|
10735
|
+
message.businessOwnerJid = reader.string();
|
|
10736
|
+
break;
|
|
10737
|
+
default:
|
|
10738
|
+
reader.skipType(tag & 7);
|
|
10739
|
+
break;
|
|
10740
|
+
}
|
|
10741
|
+
}
|
|
10742
|
+
return message;
|
|
10743
|
+
};
|
|
10744
|
+
|
|
10745
|
+
/**
|
|
10746
|
+
* Decodes a BusinessMessageForwardInfo message from the specified reader or buffer, length delimited.
|
|
10747
|
+
* @function decodeDelimited
|
|
10748
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10749
|
+
* @static
|
|
10750
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10751
|
+
* @returns {proto.ContextInfo.BusinessMessageForwardInfo} BusinessMessageForwardInfo
|
|
10752
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10753
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10754
|
+
*/
|
|
10755
|
+
BusinessMessageForwardInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
10756
|
+
if (!(reader instanceof $Reader))
|
|
10757
|
+
reader = new $Reader(reader);
|
|
10758
|
+
return this.decode(reader, reader.uint32());
|
|
10759
|
+
};
|
|
10760
|
+
|
|
10761
|
+
/**
|
|
10762
|
+
* Verifies a BusinessMessageForwardInfo message.
|
|
10763
|
+
* @function verify
|
|
10764
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10765
|
+
* @static
|
|
10766
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10767
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10768
|
+
*/
|
|
10769
|
+
BusinessMessageForwardInfo.verify = function verify(message) {
|
|
10770
|
+
if (typeof message !== "object" || message === null)
|
|
10771
|
+
return "object expected";
|
|
10772
|
+
if (message.businessOwnerJid != null && message.hasOwnProperty("businessOwnerJid"))
|
|
10773
|
+
if (!$util.isString(message.businessOwnerJid))
|
|
10774
|
+
return "businessOwnerJid: string expected";
|
|
10775
|
+
return null;
|
|
10776
|
+
};
|
|
10777
|
+
|
|
10778
|
+
/**
|
|
10779
|
+
* Creates a BusinessMessageForwardInfo message from a plain object. Also converts values to their respective internal types.
|
|
10780
|
+
* @function fromObject
|
|
10781
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10782
|
+
* @static
|
|
10783
|
+
* @param {Object.<string,*>} object Plain object
|
|
10784
|
+
* @returns {proto.ContextInfo.BusinessMessageForwardInfo} BusinessMessageForwardInfo
|
|
10785
|
+
*/
|
|
10786
|
+
BusinessMessageForwardInfo.fromObject = function fromObject(object) {
|
|
10787
|
+
if (object instanceof $root.proto.ContextInfo.BusinessMessageForwardInfo)
|
|
10788
|
+
return object;
|
|
10789
|
+
var message = new $root.proto.ContextInfo.BusinessMessageForwardInfo();
|
|
10790
|
+
if (object.businessOwnerJid != null)
|
|
10791
|
+
message.businessOwnerJid = String(object.businessOwnerJid);
|
|
10792
|
+
return message;
|
|
10793
|
+
};
|
|
10794
|
+
|
|
10795
|
+
/**
|
|
10796
|
+
* Creates a plain object from a BusinessMessageForwardInfo message. Also converts values to other types if specified.
|
|
10797
|
+
* @function toObject
|
|
10798
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10799
|
+
* @static
|
|
10800
|
+
* @param {proto.ContextInfo.BusinessMessageForwardInfo} message BusinessMessageForwardInfo
|
|
10801
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10802
|
+
* @returns {Object.<string,*>} Plain object
|
|
10803
|
+
*/
|
|
10804
|
+
BusinessMessageForwardInfo.toObject = function toObject(message, options) {
|
|
10805
|
+
if (!options)
|
|
10806
|
+
options = {};
|
|
10807
|
+
var object = {};
|
|
10808
|
+
if (options.defaults)
|
|
10809
|
+
object.businessOwnerJid = "";
|
|
10810
|
+
if (message.businessOwnerJid != null && message.hasOwnProperty("businessOwnerJid"))
|
|
10811
|
+
object.businessOwnerJid = message.businessOwnerJid;
|
|
10812
|
+
return object;
|
|
10813
|
+
};
|
|
10814
|
+
|
|
10815
|
+
/**
|
|
10816
|
+
* Converts this BusinessMessageForwardInfo to JSON.
|
|
10817
|
+
* @function toJSON
|
|
10818
|
+
* @memberof proto.ContextInfo.BusinessMessageForwardInfo
|
|
10819
|
+
* @instance
|
|
10820
|
+
* @returns {Object.<string,*>} JSON object
|
|
10821
|
+
*/
|
|
10822
|
+
BusinessMessageForwardInfo.prototype.toJSON = function toJSON() {
|
|
10823
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10824
|
+
};
|
|
10825
|
+
|
|
10826
|
+
return BusinessMessageForwardInfo;
|
|
10827
|
+
})();
|
|
10828
|
+
|
|
11114
10829
|
ContextInfo.ExternalAdReplyInfo = (function() {
|
|
11115
10830
|
|
|
11116
10831
|
/**
|
|
@@ -11628,6 +11343,216 @@ $root.proto = (function() {
|
|
|
11628
11343
|
return ExternalAdReplyInfo;
|
|
11629
11344
|
})();
|
|
11630
11345
|
|
|
11346
|
+
ContextInfo.ForwardedNewsletterMessageInfo = (function() {
|
|
11347
|
+
|
|
11348
|
+
/**
|
|
11349
|
+
* Properties of a ForwardedNewsletterMessageInfo.
|
|
11350
|
+
* @memberof proto.ContextInfo
|
|
11351
|
+
* @interface IForwardedNewsletterMessageInfo
|
|
11352
|
+
* @property {string|null} [newsletterJid] ForwardedNewsletterMessageInfo newsletterJid
|
|
11353
|
+
* @property {number|null} [serverMessageId] ForwardedNewsletterMessageInfo serverMessageId
|
|
11354
|
+
*/
|
|
11355
|
+
|
|
11356
|
+
/**
|
|
11357
|
+
* Constructs a new ForwardedNewsletterMessageInfo.
|
|
11358
|
+
* @memberof proto.ContextInfo
|
|
11359
|
+
* @classdesc Represents a ForwardedNewsletterMessageInfo.
|
|
11360
|
+
* @implements IForwardedNewsletterMessageInfo
|
|
11361
|
+
* @constructor
|
|
11362
|
+
* @param {proto.ContextInfo.IForwardedNewsletterMessageInfo=} [properties] Properties to set
|
|
11363
|
+
*/
|
|
11364
|
+
function ForwardedNewsletterMessageInfo(properties) {
|
|
11365
|
+
if (properties)
|
|
11366
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11367
|
+
if (properties[keys[i]] != null)
|
|
11368
|
+
this[keys[i]] = properties[keys[i]];
|
|
11369
|
+
}
|
|
11370
|
+
|
|
11371
|
+
/**
|
|
11372
|
+
* ForwardedNewsletterMessageInfo newsletterJid.
|
|
11373
|
+
* @member {string} newsletterJid
|
|
11374
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11375
|
+
* @instance
|
|
11376
|
+
*/
|
|
11377
|
+
ForwardedNewsletterMessageInfo.prototype.newsletterJid = "";
|
|
11378
|
+
|
|
11379
|
+
/**
|
|
11380
|
+
* ForwardedNewsletterMessageInfo serverMessageId.
|
|
11381
|
+
* @member {number} serverMessageId
|
|
11382
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11383
|
+
* @instance
|
|
11384
|
+
*/
|
|
11385
|
+
ForwardedNewsletterMessageInfo.prototype.serverMessageId = 0;
|
|
11386
|
+
|
|
11387
|
+
/**
|
|
11388
|
+
* Creates a new ForwardedNewsletterMessageInfo instance using the specified properties.
|
|
11389
|
+
* @function create
|
|
11390
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11391
|
+
* @static
|
|
11392
|
+
* @param {proto.ContextInfo.IForwardedNewsletterMessageInfo=} [properties] Properties to set
|
|
11393
|
+
* @returns {proto.ContextInfo.ForwardedNewsletterMessageInfo} ForwardedNewsletterMessageInfo instance
|
|
11394
|
+
*/
|
|
11395
|
+
ForwardedNewsletterMessageInfo.create = function create(properties) {
|
|
11396
|
+
return new ForwardedNewsletterMessageInfo(properties);
|
|
11397
|
+
};
|
|
11398
|
+
|
|
11399
|
+
/**
|
|
11400
|
+
* Encodes the specified ForwardedNewsletterMessageInfo message. Does not implicitly {@link proto.ContextInfo.ForwardedNewsletterMessageInfo.verify|verify} messages.
|
|
11401
|
+
* @function encode
|
|
11402
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11403
|
+
* @static
|
|
11404
|
+
* @param {proto.ContextInfo.IForwardedNewsletterMessageInfo} message ForwardedNewsletterMessageInfo message or plain object to encode
|
|
11405
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11406
|
+
* @returns {$protobuf.Writer} Writer
|
|
11407
|
+
*/
|
|
11408
|
+
ForwardedNewsletterMessageInfo.encode = function encode(message, writer) {
|
|
11409
|
+
if (!writer)
|
|
11410
|
+
writer = $Writer.create();
|
|
11411
|
+
if (message.newsletterJid != null && Object.hasOwnProperty.call(message, "newsletterJid"))
|
|
11412
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.newsletterJid);
|
|
11413
|
+
if (message.serverMessageId != null && Object.hasOwnProperty.call(message, "serverMessageId"))
|
|
11414
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serverMessageId);
|
|
11415
|
+
return writer;
|
|
11416
|
+
};
|
|
11417
|
+
|
|
11418
|
+
/**
|
|
11419
|
+
* Encodes the specified ForwardedNewsletterMessageInfo message, length delimited. Does not implicitly {@link proto.ContextInfo.ForwardedNewsletterMessageInfo.verify|verify} messages.
|
|
11420
|
+
* @function encodeDelimited
|
|
11421
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11422
|
+
* @static
|
|
11423
|
+
* @param {proto.ContextInfo.IForwardedNewsletterMessageInfo} message ForwardedNewsletterMessageInfo message or plain object to encode
|
|
11424
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11425
|
+
* @returns {$protobuf.Writer} Writer
|
|
11426
|
+
*/
|
|
11427
|
+
ForwardedNewsletterMessageInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11428
|
+
return this.encode(message, writer).ldelim();
|
|
11429
|
+
};
|
|
11430
|
+
|
|
11431
|
+
/**
|
|
11432
|
+
* Decodes a ForwardedNewsletterMessageInfo message from the specified reader or buffer.
|
|
11433
|
+
* @function decode
|
|
11434
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11435
|
+
* @static
|
|
11436
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11437
|
+
* @param {number} [length] Message length if known beforehand
|
|
11438
|
+
* @returns {proto.ContextInfo.ForwardedNewsletterMessageInfo} ForwardedNewsletterMessageInfo
|
|
11439
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11440
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11441
|
+
*/
|
|
11442
|
+
ForwardedNewsletterMessageInfo.decode = function decode(reader, length) {
|
|
11443
|
+
if (!(reader instanceof $Reader))
|
|
11444
|
+
reader = $Reader.create(reader);
|
|
11445
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.ContextInfo.ForwardedNewsletterMessageInfo();
|
|
11446
|
+
while (reader.pos < end) {
|
|
11447
|
+
var tag = reader.uint32();
|
|
11448
|
+
switch (tag >>> 3) {
|
|
11449
|
+
case 1:
|
|
11450
|
+
message.newsletterJid = reader.string();
|
|
11451
|
+
break;
|
|
11452
|
+
case 2:
|
|
11453
|
+
message.serverMessageId = reader.int32();
|
|
11454
|
+
break;
|
|
11455
|
+
default:
|
|
11456
|
+
reader.skipType(tag & 7);
|
|
11457
|
+
break;
|
|
11458
|
+
}
|
|
11459
|
+
}
|
|
11460
|
+
return message;
|
|
11461
|
+
};
|
|
11462
|
+
|
|
11463
|
+
/**
|
|
11464
|
+
* Decodes a ForwardedNewsletterMessageInfo message from the specified reader or buffer, length delimited.
|
|
11465
|
+
* @function decodeDelimited
|
|
11466
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11467
|
+
* @static
|
|
11468
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11469
|
+
* @returns {proto.ContextInfo.ForwardedNewsletterMessageInfo} ForwardedNewsletterMessageInfo
|
|
11470
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11471
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11472
|
+
*/
|
|
11473
|
+
ForwardedNewsletterMessageInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
11474
|
+
if (!(reader instanceof $Reader))
|
|
11475
|
+
reader = new $Reader(reader);
|
|
11476
|
+
return this.decode(reader, reader.uint32());
|
|
11477
|
+
};
|
|
11478
|
+
|
|
11479
|
+
/**
|
|
11480
|
+
* Verifies a ForwardedNewsletterMessageInfo message.
|
|
11481
|
+
* @function verify
|
|
11482
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11483
|
+
* @static
|
|
11484
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11485
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11486
|
+
*/
|
|
11487
|
+
ForwardedNewsletterMessageInfo.verify = function verify(message) {
|
|
11488
|
+
if (typeof message !== "object" || message === null)
|
|
11489
|
+
return "object expected";
|
|
11490
|
+
if (message.newsletterJid != null && message.hasOwnProperty("newsletterJid"))
|
|
11491
|
+
if (!$util.isString(message.newsletterJid))
|
|
11492
|
+
return "newsletterJid: string expected";
|
|
11493
|
+
if (message.serverMessageId != null && message.hasOwnProperty("serverMessageId"))
|
|
11494
|
+
if (!$util.isInteger(message.serverMessageId))
|
|
11495
|
+
return "serverMessageId: integer expected";
|
|
11496
|
+
return null;
|
|
11497
|
+
};
|
|
11498
|
+
|
|
11499
|
+
/**
|
|
11500
|
+
* Creates a ForwardedNewsletterMessageInfo message from a plain object. Also converts values to their respective internal types.
|
|
11501
|
+
* @function fromObject
|
|
11502
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11503
|
+
* @static
|
|
11504
|
+
* @param {Object.<string,*>} object Plain object
|
|
11505
|
+
* @returns {proto.ContextInfo.ForwardedNewsletterMessageInfo} ForwardedNewsletterMessageInfo
|
|
11506
|
+
*/
|
|
11507
|
+
ForwardedNewsletterMessageInfo.fromObject = function fromObject(object) {
|
|
11508
|
+
if (object instanceof $root.proto.ContextInfo.ForwardedNewsletterMessageInfo)
|
|
11509
|
+
return object;
|
|
11510
|
+
var message = new $root.proto.ContextInfo.ForwardedNewsletterMessageInfo();
|
|
11511
|
+
if (object.newsletterJid != null)
|
|
11512
|
+
message.newsletterJid = String(object.newsletterJid);
|
|
11513
|
+
if (object.serverMessageId != null)
|
|
11514
|
+
message.serverMessageId = object.serverMessageId | 0;
|
|
11515
|
+
return message;
|
|
11516
|
+
};
|
|
11517
|
+
|
|
11518
|
+
/**
|
|
11519
|
+
* Creates a plain object from a ForwardedNewsletterMessageInfo message. Also converts values to other types if specified.
|
|
11520
|
+
* @function toObject
|
|
11521
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11522
|
+
* @static
|
|
11523
|
+
* @param {proto.ContextInfo.ForwardedNewsletterMessageInfo} message ForwardedNewsletterMessageInfo
|
|
11524
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11525
|
+
* @returns {Object.<string,*>} Plain object
|
|
11526
|
+
*/
|
|
11527
|
+
ForwardedNewsletterMessageInfo.toObject = function toObject(message, options) {
|
|
11528
|
+
if (!options)
|
|
11529
|
+
options = {};
|
|
11530
|
+
var object = {};
|
|
11531
|
+
if (options.defaults) {
|
|
11532
|
+
object.newsletterJid = "";
|
|
11533
|
+
object.serverMessageId = 0;
|
|
11534
|
+
}
|
|
11535
|
+
if (message.newsletterJid != null && message.hasOwnProperty("newsletterJid"))
|
|
11536
|
+
object.newsletterJid = message.newsletterJid;
|
|
11537
|
+
if (message.serverMessageId != null && message.hasOwnProperty("serverMessageId"))
|
|
11538
|
+
object.serverMessageId = message.serverMessageId;
|
|
11539
|
+
return object;
|
|
11540
|
+
};
|
|
11541
|
+
|
|
11542
|
+
/**
|
|
11543
|
+
* Converts this ForwardedNewsletterMessageInfo to JSON.
|
|
11544
|
+
* @function toJSON
|
|
11545
|
+
* @memberof proto.ContextInfo.ForwardedNewsletterMessageInfo
|
|
11546
|
+
* @instance
|
|
11547
|
+
* @returns {Object.<string,*>} JSON object
|
|
11548
|
+
*/
|
|
11549
|
+
ForwardedNewsletterMessageInfo.prototype.toJSON = function toJSON() {
|
|
11550
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11551
|
+
};
|
|
11552
|
+
|
|
11553
|
+
return ForwardedNewsletterMessageInfo;
|
|
11554
|
+
})();
|
|
11555
|
+
|
|
11631
11556
|
ContextInfo.UTMInfo = (function() {
|
|
11632
11557
|
|
|
11633
11558
|
/**
|
|
@@ -13986,6 +13911,7 @@ $root.proto = (function() {
|
|
|
13986
13911
|
case 19:
|
|
13987
13912
|
case 20:
|
|
13988
13913
|
case 21:
|
|
13914
|
+
case 22:
|
|
13989
13915
|
break;
|
|
13990
13916
|
}
|
|
13991
13917
|
if (message.requireFullSync != null && message.hasOwnProperty("requireFullSync"))
|
|
@@ -14107,6 +14033,10 @@ $root.proto = (function() {
|
|
|
14107
14033
|
case 21:
|
|
14108
14034
|
message.platformType = 21;
|
|
14109
14035
|
break;
|
|
14036
|
+
case "VR":
|
|
14037
|
+
case 22:
|
|
14038
|
+
message.platformType = 22;
|
|
14039
|
+
break;
|
|
14110
14040
|
}
|
|
14111
14041
|
if (object.requireFullSync != null)
|
|
14112
14042
|
message.requireFullSync = Boolean(object.requireFullSync);
|
|
@@ -14740,6 +14670,7 @@ $root.proto = (function() {
|
|
|
14740
14670
|
* @property {number} AR_WRIST=19 AR_WRIST value
|
|
14741
14671
|
* @property {number} AR_DEVICE=20 AR_DEVICE value
|
|
14742
14672
|
* @property {number} UWP=21 UWP value
|
|
14673
|
+
* @property {number} VR=22 VR value
|
|
14743
14674
|
*/
|
|
14744
14675
|
DeviceProps.PlatformType = (function() {
|
|
14745
14676
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -14765,6 +14696,7 @@ $root.proto = (function() {
|
|
|
14765
14696
|
values[valuesById[19] = "AR_WRIST"] = 19;
|
|
14766
14697
|
values[valuesById[20] = "AR_DEVICE"] = 20;
|
|
14767
14698
|
values[valuesById[21] = "UWP"] = 21;
|
|
14699
|
+
values[valuesById[22] = "VR"] = 22;
|
|
14768
14700
|
return values;
|
|
14769
14701
|
})();
|
|
14770
14702
|
|
|
@@ -14778,6 +14710,8 @@ $root.proto = (function() {
|
|
|
14778
14710
|
* @memberof proto
|
|
14779
14711
|
* @interface IDisappearingMode
|
|
14780
14712
|
* @property {proto.DisappearingMode.Initiator|null} [initiator] DisappearingMode initiator
|
|
14713
|
+
* @property {proto.DisappearingMode.Trigger|null} [trigger] DisappearingMode trigger
|
|
14714
|
+
* @property {string|null} [initiatorDeviceJid] DisappearingMode initiatorDeviceJid
|
|
14781
14715
|
*/
|
|
14782
14716
|
|
|
14783
14717
|
/**
|
|
@@ -14803,6 +14737,22 @@ $root.proto = (function() {
|
|
|
14803
14737
|
*/
|
|
14804
14738
|
DisappearingMode.prototype.initiator = 0;
|
|
14805
14739
|
|
|
14740
|
+
/**
|
|
14741
|
+
* DisappearingMode trigger.
|
|
14742
|
+
* @member {proto.DisappearingMode.Trigger} trigger
|
|
14743
|
+
* @memberof proto.DisappearingMode
|
|
14744
|
+
* @instance
|
|
14745
|
+
*/
|
|
14746
|
+
DisappearingMode.prototype.trigger = 0;
|
|
14747
|
+
|
|
14748
|
+
/**
|
|
14749
|
+
* DisappearingMode initiatorDeviceJid.
|
|
14750
|
+
* @member {string} initiatorDeviceJid
|
|
14751
|
+
* @memberof proto.DisappearingMode
|
|
14752
|
+
* @instance
|
|
14753
|
+
*/
|
|
14754
|
+
DisappearingMode.prototype.initiatorDeviceJid = "";
|
|
14755
|
+
|
|
14806
14756
|
/**
|
|
14807
14757
|
* Creates a new DisappearingMode instance using the specified properties.
|
|
14808
14758
|
* @function create
|
|
@@ -14829,6 +14779,10 @@ $root.proto = (function() {
|
|
|
14829
14779
|
writer = $Writer.create();
|
|
14830
14780
|
if (message.initiator != null && Object.hasOwnProperty.call(message, "initiator"))
|
|
14831
14781
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.initiator);
|
|
14782
|
+
if (message.trigger != null && Object.hasOwnProperty.call(message, "trigger"))
|
|
14783
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trigger);
|
|
14784
|
+
if (message.initiatorDeviceJid != null && Object.hasOwnProperty.call(message, "initiatorDeviceJid"))
|
|
14785
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.initiatorDeviceJid);
|
|
14832
14786
|
return writer;
|
|
14833
14787
|
};
|
|
14834
14788
|
|
|
@@ -14866,6 +14820,12 @@ $root.proto = (function() {
|
|
|
14866
14820
|
case 1:
|
|
14867
14821
|
message.initiator = reader.int32();
|
|
14868
14822
|
break;
|
|
14823
|
+
case 2:
|
|
14824
|
+
message.trigger = reader.int32();
|
|
14825
|
+
break;
|
|
14826
|
+
case 3:
|
|
14827
|
+
message.initiatorDeviceJid = reader.string();
|
|
14828
|
+
break;
|
|
14869
14829
|
default:
|
|
14870
14830
|
reader.skipType(tag & 7);
|
|
14871
14831
|
break;
|
|
@@ -14910,6 +14870,19 @@ $root.proto = (function() {
|
|
|
14910
14870
|
case 2:
|
|
14911
14871
|
break;
|
|
14912
14872
|
}
|
|
14873
|
+
if (message.trigger != null && message.hasOwnProperty("trigger"))
|
|
14874
|
+
switch (message.trigger) {
|
|
14875
|
+
default:
|
|
14876
|
+
return "trigger: enum value expected";
|
|
14877
|
+
case 0:
|
|
14878
|
+
case 1:
|
|
14879
|
+
case 2:
|
|
14880
|
+
case 3:
|
|
14881
|
+
break;
|
|
14882
|
+
}
|
|
14883
|
+
if (message.initiatorDeviceJid != null && message.hasOwnProperty("initiatorDeviceJid"))
|
|
14884
|
+
if (!$util.isString(message.initiatorDeviceJid))
|
|
14885
|
+
return "initiatorDeviceJid: string expected";
|
|
14913
14886
|
return null;
|
|
14914
14887
|
};
|
|
14915
14888
|
|
|
@@ -14939,6 +14912,26 @@ $root.proto = (function() {
|
|
|
14939
14912
|
message.initiator = 2;
|
|
14940
14913
|
break;
|
|
14941
14914
|
}
|
|
14915
|
+
switch (object.trigger) {
|
|
14916
|
+
case "UNKNOWN":
|
|
14917
|
+
case 0:
|
|
14918
|
+
message.trigger = 0;
|
|
14919
|
+
break;
|
|
14920
|
+
case "CHAT_SETTING":
|
|
14921
|
+
case 1:
|
|
14922
|
+
message.trigger = 1;
|
|
14923
|
+
break;
|
|
14924
|
+
case "ACCOUNT_SETTING":
|
|
14925
|
+
case 2:
|
|
14926
|
+
message.trigger = 2;
|
|
14927
|
+
break;
|
|
14928
|
+
case "BULK_CHANGE":
|
|
14929
|
+
case 3:
|
|
14930
|
+
message.trigger = 3;
|
|
14931
|
+
break;
|
|
14932
|
+
}
|
|
14933
|
+
if (object.initiatorDeviceJid != null)
|
|
14934
|
+
message.initiatorDeviceJid = String(object.initiatorDeviceJid);
|
|
14942
14935
|
return message;
|
|
14943
14936
|
};
|
|
14944
14937
|
|
|
@@ -14955,10 +14948,17 @@ $root.proto = (function() {
|
|
|
14955
14948
|
if (!options)
|
|
14956
14949
|
options = {};
|
|
14957
14950
|
var object = {};
|
|
14958
|
-
if (options.defaults)
|
|
14951
|
+
if (options.defaults) {
|
|
14959
14952
|
object.initiator = options.enums === String ? "CHANGED_IN_CHAT" : 0;
|
|
14953
|
+
object.trigger = options.enums === String ? "UNKNOWN" : 0;
|
|
14954
|
+
object.initiatorDeviceJid = "";
|
|
14955
|
+
}
|
|
14960
14956
|
if (message.initiator != null && message.hasOwnProperty("initiator"))
|
|
14961
14957
|
object.initiator = options.enums === String ? $root.proto.DisappearingMode.Initiator[message.initiator] : message.initiator;
|
|
14958
|
+
if (message.trigger != null && message.hasOwnProperty("trigger"))
|
|
14959
|
+
object.trigger = options.enums === String ? $root.proto.DisappearingMode.Trigger[message.trigger] : message.trigger;
|
|
14960
|
+
if (message.initiatorDeviceJid != null && message.hasOwnProperty("initiatorDeviceJid"))
|
|
14961
|
+
object.initiatorDeviceJid = message.initiatorDeviceJid;
|
|
14962
14962
|
return object;
|
|
14963
14963
|
};
|
|
14964
14964
|
|
|
@@ -14989,6 +14989,24 @@ $root.proto = (function() {
|
|
|
14989
14989
|
return values;
|
|
14990
14990
|
})();
|
|
14991
14991
|
|
|
14992
|
+
/**
|
|
14993
|
+
* Trigger enum.
|
|
14994
|
+
* @name proto.DisappearingMode.Trigger
|
|
14995
|
+
* @enum {number}
|
|
14996
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
14997
|
+
* @property {number} CHAT_SETTING=1 CHAT_SETTING value
|
|
14998
|
+
* @property {number} ACCOUNT_SETTING=2 ACCOUNT_SETTING value
|
|
14999
|
+
* @property {number} BULK_CHANGE=3 BULK_CHANGE value
|
|
15000
|
+
*/
|
|
15001
|
+
DisappearingMode.Trigger = (function() {
|
|
15002
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
15003
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
15004
|
+
values[valuesById[1] = "CHAT_SETTING"] = 1;
|
|
15005
|
+
values[valuesById[2] = "ACCOUNT_SETTING"] = 2;
|
|
15006
|
+
values[valuesById[3] = "BULK_CHANGE"] = 3;
|
|
15007
|
+
return values;
|
|
15008
|
+
})();
|
|
15009
|
+
|
|
14992
15010
|
return DisappearingMode;
|
|
14993
15011
|
})();
|
|
14994
15012
|
|
|
@@ -15779,420 +15797,6 @@ $root.proto = (function() {
|
|
|
15779
15797
|
return ExternalBlobReference;
|
|
15780
15798
|
})();
|
|
15781
15799
|
|
|
15782
|
-
proto.FutureMessageData = (function() {
|
|
15783
|
-
|
|
15784
|
-
/**
|
|
15785
|
-
* Properties of a FutureMessageData.
|
|
15786
|
-
* @memberof proto
|
|
15787
|
-
* @interface IFutureMessageData
|
|
15788
|
-
* @property {proto.IBotData|null} [botData] FutureMessageData botData
|
|
15789
|
-
*/
|
|
15790
|
-
|
|
15791
|
-
/**
|
|
15792
|
-
* Constructs a new FutureMessageData.
|
|
15793
|
-
* @memberof proto
|
|
15794
|
-
* @classdesc Represents a FutureMessageData.
|
|
15795
|
-
* @implements IFutureMessageData
|
|
15796
|
-
* @constructor
|
|
15797
|
-
* @param {proto.IFutureMessageData=} [properties] Properties to set
|
|
15798
|
-
*/
|
|
15799
|
-
function FutureMessageData(properties) {
|
|
15800
|
-
if (properties)
|
|
15801
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15802
|
-
if (properties[keys[i]] != null)
|
|
15803
|
-
this[keys[i]] = properties[keys[i]];
|
|
15804
|
-
}
|
|
15805
|
-
|
|
15806
|
-
/**
|
|
15807
|
-
* FutureMessageData botData.
|
|
15808
|
-
* @member {proto.IBotData|null|undefined} botData
|
|
15809
|
-
* @memberof proto.FutureMessageData
|
|
15810
|
-
* @instance
|
|
15811
|
-
*/
|
|
15812
|
-
FutureMessageData.prototype.botData = null;
|
|
15813
|
-
|
|
15814
|
-
/**
|
|
15815
|
-
* Creates a new FutureMessageData instance using the specified properties.
|
|
15816
|
-
* @function create
|
|
15817
|
-
* @memberof proto.FutureMessageData
|
|
15818
|
-
* @static
|
|
15819
|
-
* @param {proto.IFutureMessageData=} [properties] Properties to set
|
|
15820
|
-
* @returns {proto.FutureMessageData} FutureMessageData instance
|
|
15821
|
-
*/
|
|
15822
|
-
FutureMessageData.create = function create(properties) {
|
|
15823
|
-
return new FutureMessageData(properties);
|
|
15824
|
-
};
|
|
15825
|
-
|
|
15826
|
-
/**
|
|
15827
|
-
* Encodes the specified FutureMessageData message. Does not implicitly {@link proto.FutureMessageData.verify|verify} messages.
|
|
15828
|
-
* @function encode
|
|
15829
|
-
* @memberof proto.FutureMessageData
|
|
15830
|
-
* @static
|
|
15831
|
-
* @param {proto.IFutureMessageData} message FutureMessageData message or plain object to encode
|
|
15832
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15833
|
-
* @returns {$protobuf.Writer} Writer
|
|
15834
|
-
*/
|
|
15835
|
-
FutureMessageData.encode = function encode(message, writer) {
|
|
15836
|
-
if (!writer)
|
|
15837
|
-
writer = $Writer.create();
|
|
15838
|
-
if (message.botData != null && Object.hasOwnProperty.call(message, "botData"))
|
|
15839
|
-
$root.proto.BotData.encode(message.botData, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15840
|
-
return writer;
|
|
15841
|
-
};
|
|
15842
|
-
|
|
15843
|
-
/**
|
|
15844
|
-
* Encodes the specified FutureMessageData message, length delimited. Does not implicitly {@link proto.FutureMessageData.verify|verify} messages.
|
|
15845
|
-
* @function encodeDelimited
|
|
15846
|
-
* @memberof proto.FutureMessageData
|
|
15847
|
-
* @static
|
|
15848
|
-
* @param {proto.IFutureMessageData} message FutureMessageData message or plain object to encode
|
|
15849
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15850
|
-
* @returns {$protobuf.Writer} Writer
|
|
15851
|
-
*/
|
|
15852
|
-
FutureMessageData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15853
|
-
return this.encode(message, writer).ldelim();
|
|
15854
|
-
};
|
|
15855
|
-
|
|
15856
|
-
/**
|
|
15857
|
-
* Decodes a FutureMessageData message from the specified reader or buffer.
|
|
15858
|
-
* @function decode
|
|
15859
|
-
* @memberof proto.FutureMessageData
|
|
15860
|
-
* @static
|
|
15861
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15862
|
-
* @param {number} [length] Message length if known beforehand
|
|
15863
|
-
* @returns {proto.FutureMessageData} FutureMessageData
|
|
15864
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15865
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15866
|
-
*/
|
|
15867
|
-
FutureMessageData.decode = function decode(reader, length) {
|
|
15868
|
-
if (!(reader instanceof $Reader))
|
|
15869
|
-
reader = $Reader.create(reader);
|
|
15870
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.FutureMessageData();
|
|
15871
|
-
while (reader.pos < end) {
|
|
15872
|
-
var tag = reader.uint32();
|
|
15873
|
-
switch (tag >>> 3) {
|
|
15874
|
-
case 1:
|
|
15875
|
-
message.botData = $root.proto.BotData.decode(reader, reader.uint32());
|
|
15876
|
-
break;
|
|
15877
|
-
default:
|
|
15878
|
-
reader.skipType(tag & 7);
|
|
15879
|
-
break;
|
|
15880
|
-
}
|
|
15881
|
-
}
|
|
15882
|
-
return message;
|
|
15883
|
-
};
|
|
15884
|
-
|
|
15885
|
-
/**
|
|
15886
|
-
* Decodes a FutureMessageData message from the specified reader or buffer, length delimited.
|
|
15887
|
-
* @function decodeDelimited
|
|
15888
|
-
* @memberof proto.FutureMessageData
|
|
15889
|
-
* @static
|
|
15890
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15891
|
-
* @returns {proto.FutureMessageData} FutureMessageData
|
|
15892
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15893
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15894
|
-
*/
|
|
15895
|
-
FutureMessageData.decodeDelimited = function decodeDelimited(reader) {
|
|
15896
|
-
if (!(reader instanceof $Reader))
|
|
15897
|
-
reader = new $Reader(reader);
|
|
15898
|
-
return this.decode(reader, reader.uint32());
|
|
15899
|
-
};
|
|
15900
|
-
|
|
15901
|
-
/**
|
|
15902
|
-
* Verifies a FutureMessageData message.
|
|
15903
|
-
* @function verify
|
|
15904
|
-
* @memberof proto.FutureMessageData
|
|
15905
|
-
* @static
|
|
15906
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
15907
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15908
|
-
*/
|
|
15909
|
-
FutureMessageData.verify = function verify(message) {
|
|
15910
|
-
if (typeof message !== "object" || message === null)
|
|
15911
|
-
return "object expected";
|
|
15912
|
-
if (message.botData != null && message.hasOwnProperty("botData")) {
|
|
15913
|
-
var error = $root.proto.BotData.verify(message.botData);
|
|
15914
|
-
if (error)
|
|
15915
|
-
return "botData." + error;
|
|
15916
|
-
}
|
|
15917
|
-
return null;
|
|
15918
|
-
};
|
|
15919
|
-
|
|
15920
|
-
/**
|
|
15921
|
-
* Creates a FutureMessageData message from a plain object. Also converts values to their respective internal types.
|
|
15922
|
-
* @function fromObject
|
|
15923
|
-
* @memberof proto.FutureMessageData
|
|
15924
|
-
* @static
|
|
15925
|
-
* @param {Object.<string,*>} object Plain object
|
|
15926
|
-
* @returns {proto.FutureMessageData} FutureMessageData
|
|
15927
|
-
*/
|
|
15928
|
-
FutureMessageData.fromObject = function fromObject(object) {
|
|
15929
|
-
if (object instanceof $root.proto.FutureMessageData)
|
|
15930
|
-
return object;
|
|
15931
|
-
var message = new $root.proto.FutureMessageData();
|
|
15932
|
-
if (object.botData != null) {
|
|
15933
|
-
if (typeof object.botData !== "object")
|
|
15934
|
-
throw TypeError(".proto.FutureMessageData.botData: object expected");
|
|
15935
|
-
message.botData = $root.proto.BotData.fromObject(object.botData);
|
|
15936
|
-
}
|
|
15937
|
-
return message;
|
|
15938
|
-
};
|
|
15939
|
-
|
|
15940
|
-
/**
|
|
15941
|
-
* Creates a plain object from a FutureMessageData message. Also converts values to other types if specified.
|
|
15942
|
-
* @function toObject
|
|
15943
|
-
* @memberof proto.FutureMessageData
|
|
15944
|
-
* @static
|
|
15945
|
-
* @param {proto.FutureMessageData} message FutureMessageData
|
|
15946
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15947
|
-
* @returns {Object.<string,*>} Plain object
|
|
15948
|
-
*/
|
|
15949
|
-
FutureMessageData.toObject = function toObject(message, options) {
|
|
15950
|
-
if (!options)
|
|
15951
|
-
options = {};
|
|
15952
|
-
var object = {};
|
|
15953
|
-
if (options.defaults)
|
|
15954
|
-
object.botData = null;
|
|
15955
|
-
if (message.botData != null && message.hasOwnProperty("botData"))
|
|
15956
|
-
object.botData = $root.proto.BotData.toObject(message.botData, options);
|
|
15957
|
-
return object;
|
|
15958
|
-
};
|
|
15959
|
-
|
|
15960
|
-
/**
|
|
15961
|
-
* Converts this FutureMessageData to JSON.
|
|
15962
|
-
* @function toJSON
|
|
15963
|
-
* @memberof proto.FutureMessageData
|
|
15964
|
-
* @instance
|
|
15965
|
-
* @returns {Object.<string,*>} JSON object
|
|
15966
|
-
*/
|
|
15967
|
-
FutureMessageData.prototype.toJSON = function toJSON() {
|
|
15968
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15969
|
-
};
|
|
15970
|
-
|
|
15971
|
-
return FutureMessageData;
|
|
15972
|
-
})();
|
|
15973
|
-
|
|
15974
|
-
proto.FutureproofMessageSecretMessage = (function() {
|
|
15975
|
-
|
|
15976
|
-
/**
|
|
15977
|
-
* Properties of a FutureproofMessageSecretMessage.
|
|
15978
|
-
* @memberof proto
|
|
15979
|
-
* @interface IFutureproofMessageSecretMessage
|
|
15980
|
-
* @property {proto.IMessageSecretMessage} messageSecretMessage FutureproofMessageSecretMessage messageSecretMessage
|
|
15981
|
-
* @property {proto.IFutureMessageData} futureMessageData FutureproofMessageSecretMessage futureMessageData
|
|
15982
|
-
*/
|
|
15983
|
-
|
|
15984
|
-
/**
|
|
15985
|
-
* Constructs a new FutureproofMessageSecretMessage.
|
|
15986
|
-
* @memberof proto
|
|
15987
|
-
* @classdesc Represents a FutureproofMessageSecretMessage.
|
|
15988
|
-
* @implements IFutureproofMessageSecretMessage
|
|
15989
|
-
* @constructor
|
|
15990
|
-
* @param {proto.IFutureproofMessageSecretMessage=} [properties] Properties to set
|
|
15991
|
-
*/
|
|
15992
|
-
function FutureproofMessageSecretMessage(properties) {
|
|
15993
|
-
if (properties)
|
|
15994
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15995
|
-
if (properties[keys[i]] != null)
|
|
15996
|
-
this[keys[i]] = properties[keys[i]];
|
|
15997
|
-
}
|
|
15998
|
-
|
|
15999
|
-
/**
|
|
16000
|
-
* FutureproofMessageSecretMessage messageSecretMessage.
|
|
16001
|
-
* @member {proto.IMessageSecretMessage} messageSecretMessage
|
|
16002
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16003
|
-
* @instance
|
|
16004
|
-
*/
|
|
16005
|
-
FutureproofMessageSecretMessage.prototype.messageSecretMessage = null;
|
|
16006
|
-
|
|
16007
|
-
/**
|
|
16008
|
-
* FutureproofMessageSecretMessage futureMessageData.
|
|
16009
|
-
* @member {proto.IFutureMessageData} futureMessageData
|
|
16010
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16011
|
-
* @instance
|
|
16012
|
-
*/
|
|
16013
|
-
FutureproofMessageSecretMessage.prototype.futureMessageData = null;
|
|
16014
|
-
|
|
16015
|
-
/**
|
|
16016
|
-
* Creates a new FutureproofMessageSecretMessage instance using the specified properties.
|
|
16017
|
-
* @function create
|
|
16018
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16019
|
-
* @static
|
|
16020
|
-
* @param {proto.IFutureproofMessageSecretMessage=} [properties] Properties to set
|
|
16021
|
-
* @returns {proto.FutureproofMessageSecretMessage} FutureproofMessageSecretMessage instance
|
|
16022
|
-
*/
|
|
16023
|
-
FutureproofMessageSecretMessage.create = function create(properties) {
|
|
16024
|
-
return new FutureproofMessageSecretMessage(properties);
|
|
16025
|
-
};
|
|
16026
|
-
|
|
16027
|
-
/**
|
|
16028
|
-
* Encodes the specified FutureproofMessageSecretMessage message. Does not implicitly {@link proto.FutureproofMessageSecretMessage.verify|verify} messages.
|
|
16029
|
-
* @function encode
|
|
16030
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16031
|
-
* @static
|
|
16032
|
-
* @param {proto.IFutureproofMessageSecretMessage} message FutureproofMessageSecretMessage message or plain object to encode
|
|
16033
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16034
|
-
* @returns {$protobuf.Writer} Writer
|
|
16035
|
-
*/
|
|
16036
|
-
FutureproofMessageSecretMessage.encode = function encode(message, writer) {
|
|
16037
|
-
if (!writer)
|
|
16038
|
-
writer = $Writer.create();
|
|
16039
|
-
$root.proto.MessageSecretMessage.encode(message.messageSecretMessage, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
16040
|
-
$root.proto.FutureMessageData.encode(message.futureMessageData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
16041
|
-
return writer;
|
|
16042
|
-
};
|
|
16043
|
-
|
|
16044
|
-
/**
|
|
16045
|
-
* Encodes the specified FutureproofMessageSecretMessage message, length delimited. Does not implicitly {@link proto.FutureproofMessageSecretMessage.verify|verify} messages.
|
|
16046
|
-
* @function encodeDelimited
|
|
16047
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16048
|
-
* @static
|
|
16049
|
-
* @param {proto.IFutureproofMessageSecretMessage} message FutureproofMessageSecretMessage message or plain object to encode
|
|
16050
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16051
|
-
* @returns {$protobuf.Writer} Writer
|
|
16052
|
-
*/
|
|
16053
|
-
FutureproofMessageSecretMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16054
|
-
return this.encode(message, writer).ldelim();
|
|
16055
|
-
};
|
|
16056
|
-
|
|
16057
|
-
/**
|
|
16058
|
-
* Decodes a FutureproofMessageSecretMessage message from the specified reader or buffer.
|
|
16059
|
-
* @function decode
|
|
16060
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16061
|
-
* @static
|
|
16062
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16063
|
-
* @param {number} [length] Message length if known beforehand
|
|
16064
|
-
* @returns {proto.FutureproofMessageSecretMessage} FutureproofMessageSecretMessage
|
|
16065
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16066
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16067
|
-
*/
|
|
16068
|
-
FutureproofMessageSecretMessage.decode = function decode(reader, length) {
|
|
16069
|
-
if (!(reader instanceof $Reader))
|
|
16070
|
-
reader = $Reader.create(reader);
|
|
16071
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.FutureproofMessageSecretMessage();
|
|
16072
|
-
while (reader.pos < end) {
|
|
16073
|
-
var tag = reader.uint32();
|
|
16074
|
-
switch (tag >>> 3) {
|
|
16075
|
-
case 1:
|
|
16076
|
-
message.messageSecretMessage = $root.proto.MessageSecretMessage.decode(reader, reader.uint32());
|
|
16077
|
-
break;
|
|
16078
|
-
case 2:
|
|
16079
|
-
message.futureMessageData = $root.proto.FutureMessageData.decode(reader, reader.uint32());
|
|
16080
|
-
break;
|
|
16081
|
-
default:
|
|
16082
|
-
reader.skipType(tag & 7);
|
|
16083
|
-
break;
|
|
16084
|
-
}
|
|
16085
|
-
}
|
|
16086
|
-
if (!message.hasOwnProperty("messageSecretMessage"))
|
|
16087
|
-
throw $util.ProtocolError("missing required 'messageSecretMessage'", { instance: message });
|
|
16088
|
-
if (!message.hasOwnProperty("futureMessageData"))
|
|
16089
|
-
throw $util.ProtocolError("missing required 'futureMessageData'", { instance: message });
|
|
16090
|
-
return message;
|
|
16091
|
-
};
|
|
16092
|
-
|
|
16093
|
-
/**
|
|
16094
|
-
* Decodes a FutureproofMessageSecretMessage message from the specified reader or buffer, length delimited.
|
|
16095
|
-
* @function decodeDelimited
|
|
16096
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16097
|
-
* @static
|
|
16098
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16099
|
-
* @returns {proto.FutureproofMessageSecretMessage} FutureproofMessageSecretMessage
|
|
16100
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16101
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16102
|
-
*/
|
|
16103
|
-
FutureproofMessageSecretMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
16104
|
-
if (!(reader instanceof $Reader))
|
|
16105
|
-
reader = new $Reader(reader);
|
|
16106
|
-
return this.decode(reader, reader.uint32());
|
|
16107
|
-
};
|
|
16108
|
-
|
|
16109
|
-
/**
|
|
16110
|
-
* Verifies a FutureproofMessageSecretMessage message.
|
|
16111
|
-
* @function verify
|
|
16112
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16113
|
-
* @static
|
|
16114
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
16115
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16116
|
-
*/
|
|
16117
|
-
FutureproofMessageSecretMessage.verify = function verify(message) {
|
|
16118
|
-
if (typeof message !== "object" || message === null)
|
|
16119
|
-
return "object expected";
|
|
16120
|
-
{
|
|
16121
|
-
var error = $root.proto.MessageSecretMessage.verify(message.messageSecretMessage);
|
|
16122
|
-
if (error)
|
|
16123
|
-
return "messageSecretMessage." + error;
|
|
16124
|
-
}
|
|
16125
|
-
{
|
|
16126
|
-
var error = $root.proto.FutureMessageData.verify(message.futureMessageData);
|
|
16127
|
-
if (error)
|
|
16128
|
-
return "futureMessageData." + error;
|
|
16129
|
-
}
|
|
16130
|
-
return null;
|
|
16131
|
-
};
|
|
16132
|
-
|
|
16133
|
-
/**
|
|
16134
|
-
* Creates a FutureproofMessageSecretMessage message from a plain object. Also converts values to their respective internal types.
|
|
16135
|
-
* @function fromObject
|
|
16136
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16137
|
-
* @static
|
|
16138
|
-
* @param {Object.<string,*>} object Plain object
|
|
16139
|
-
* @returns {proto.FutureproofMessageSecretMessage} FutureproofMessageSecretMessage
|
|
16140
|
-
*/
|
|
16141
|
-
FutureproofMessageSecretMessage.fromObject = function fromObject(object) {
|
|
16142
|
-
if (object instanceof $root.proto.FutureproofMessageSecretMessage)
|
|
16143
|
-
return object;
|
|
16144
|
-
var message = new $root.proto.FutureproofMessageSecretMessage();
|
|
16145
|
-
if (object.messageSecretMessage != null) {
|
|
16146
|
-
if (typeof object.messageSecretMessage !== "object")
|
|
16147
|
-
throw TypeError(".proto.FutureproofMessageSecretMessage.messageSecretMessage: object expected");
|
|
16148
|
-
message.messageSecretMessage = $root.proto.MessageSecretMessage.fromObject(object.messageSecretMessage);
|
|
16149
|
-
}
|
|
16150
|
-
if (object.futureMessageData != null) {
|
|
16151
|
-
if (typeof object.futureMessageData !== "object")
|
|
16152
|
-
throw TypeError(".proto.FutureproofMessageSecretMessage.futureMessageData: object expected");
|
|
16153
|
-
message.futureMessageData = $root.proto.FutureMessageData.fromObject(object.futureMessageData);
|
|
16154
|
-
}
|
|
16155
|
-
return message;
|
|
16156
|
-
};
|
|
16157
|
-
|
|
16158
|
-
/**
|
|
16159
|
-
* Creates a plain object from a FutureproofMessageSecretMessage message. Also converts values to other types if specified.
|
|
16160
|
-
* @function toObject
|
|
16161
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16162
|
-
* @static
|
|
16163
|
-
* @param {proto.FutureproofMessageSecretMessage} message FutureproofMessageSecretMessage
|
|
16164
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16165
|
-
* @returns {Object.<string,*>} Plain object
|
|
16166
|
-
*/
|
|
16167
|
-
FutureproofMessageSecretMessage.toObject = function toObject(message, options) {
|
|
16168
|
-
if (!options)
|
|
16169
|
-
options = {};
|
|
16170
|
-
var object = {};
|
|
16171
|
-
if (options.defaults) {
|
|
16172
|
-
object.messageSecretMessage = null;
|
|
16173
|
-
object.futureMessageData = null;
|
|
16174
|
-
}
|
|
16175
|
-
if (message.messageSecretMessage != null && message.hasOwnProperty("messageSecretMessage"))
|
|
16176
|
-
object.messageSecretMessage = $root.proto.MessageSecretMessage.toObject(message.messageSecretMessage, options);
|
|
16177
|
-
if (message.futureMessageData != null && message.hasOwnProperty("futureMessageData"))
|
|
16178
|
-
object.futureMessageData = $root.proto.FutureMessageData.toObject(message.futureMessageData, options);
|
|
16179
|
-
return object;
|
|
16180
|
-
};
|
|
16181
|
-
|
|
16182
|
-
/**
|
|
16183
|
-
* Converts this FutureproofMessageSecretMessage to JSON.
|
|
16184
|
-
* @function toJSON
|
|
16185
|
-
* @memberof proto.FutureproofMessageSecretMessage
|
|
16186
|
-
* @instance
|
|
16187
|
-
* @returns {Object.<string,*>} JSON object
|
|
16188
|
-
*/
|
|
16189
|
-
FutureproofMessageSecretMessage.prototype.toJSON = function toJSON() {
|
|
16190
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16191
|
-
};
|
|
16192
|
-
|
|
16193
|
-
return FutureproofMessageSecretMessage;
|
|
16194
|
-
})();
|
|
16195
|
-
|
|
16196
15800
|
proto.GlobalSettings = (function() {
|
|
16197
15801
|
|
|
16198
15802
|
/**
|
|
@@ -36129,6 +35733,7 @@ $root.proto = (function() {
|
|
|
36129
35733
|
* @memberof proto.Message.InteractiveMessage
|
|
36130
35734
|
* @interface ICarouselMessage
|
|
36131
35735
|
* @property {Array.<proto.Message.IInteractiveMessage>|null} [cards] CarouselMessage cards
|
|
35736
|
+
* @property {number|null} [messageVersion] CarouselMessage messageVersion
|
|
36132
35737
|
*/
|
|
36133
35738
|
|
|
36134
35739
|
/**
|
|
@@ -36155,6 +35760,14 @@ $root.proto = (function() {
|
|
|
36155
35760
|
*/
|
|
36156
35761
|
CarouselMessage.prototype.cards = $util.emptyArray;
|
|
36157
35762
|
|
|
35763
|
+
/**
|
|
35764
|
+
* CarouselMessage messageVersion.
|
|
35765
|
+
* @member {number} messageVersion
|
|
35766
|
+
* @memberof proto.Message.InteractiveMessage.CarouselMessage
|
|
35767
|
+
* @instance
|
|
35768
|
+
*/
|
|
35769
|
+
CarouselMessage.prototype.messageVersion = 0;
|
|
35770
|
+
|
|
36158
35771
|
/**
|
|
36159
35772
|
* Creates a new CarouselMessage instance using the specified properties.
|
|
36160
35773
|
* @function create
|
|
@@ -36182,6 +35795,8 @@ $root.proto = (function() {
|
|
|
36182
35795
|
if (message.cards != null && message.cards.length)
|
|
36183
35796
|
for (var i = 0; i < message.cards.length; ++i)
|
|
36184
35797
|
$root.proto.Message.InteractiveMessage.encode(message.cards[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
35798
|
+
if (message.messageVersion != null && Object.hasOwnProperty.call(message, "messageVersion"))
|
|
35799
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.messageVersion);
|
|
36185
35800
|
return writer;
|
|
36186
35801
|
};
|
|
36187
35802
|
|
|
@@ -36221,6 +35836,9 @@ $root.proto = (function() {
|
|
|
36221
35836
|
message.cards = [];
|
|
36222
35837
|
message.cards.push($root.proto.Message.InteractiveMessage.decode(reader, reader.uint32()));
|
|
36223
35838
|
break;
|
|
35839
|
+
case 2:
|
|
35840
|
+
message.messageVersion = reader.int32();
|
|
35841
|
+
break;
|
|
36224
35842
|
default:
|
|
36225
35843
|
reader.skipType(tag & 7);
|
|
36226
35844
|
break;
|
|
@@ -36265,6 +35883,9 @@ $root.proto = (function() {
|
|
|
36265
35883
|
return "cards." + error;
|
|
36266
35884
|
}
|
|
36267
35885
|
}
|
|
35886
|
+
if (message.messageVersion != null && message.hasOwnProperty("messageVersion"))
|
|
35887
|
+
if (!$util.isInteger(message.messageVersion))
|
|
35888
|
+
return "messageVersion: integer expected";
|
|
36268
35889
|
return null;
|
|
36269
35890
|
};
|
|
36270
35891
|
|
|
@@ -36290,6 +35911,8 @@ $root.proto = (function() {
|
|
|
36290
35911
|
message.cards[i] = $root.proto.Message.InteractiveMessage.fromObject(object.cards[i]);
|
|
36291
35912
|
}
|
|
36292
35913
|
}
|
|
35914
|
+
if (object.messageVersion != null)
|
|
35915
|
+
message.messageVersion = object.messageVersion | 0;
|
|
36293
35916
|
return message;
|
|
36294
35917
|
};
|
|
36295
35918
|
|
|
@@ -36308,11 +35931,15 @@ $root.proto = (function() {
|
|
|
36308
35931
|
var object = {};
|
|
36309
35932
|
if (options.arrays || options.defaults)
|
|
36310
35933
|
object.cards = [];
|
|
35934
|
+
if (options.defaults)
|
|
35935
|
+
object.messageVersion = 0;
|
|
36311
35936
|
if (message.cards && message.cards.length) {
|
|
36312
35937
|
object.cards = [];
|
|
36313
35938
|
for (var j = 0; j < message.cards.length; ++j)
|
|
36314
35939
|
object.cards[j] = $root.proto.Message.InteractiveMessage.toObject(message.cards[j], options);
|
|
36315
35940
|
}
|
|
35941
|
+
if (message.messageVersion != null && message.hasOwnProperty("messageVersion"))
|
|
35942
|
+
object.messageVersion = message.messageVersion;
|
|
36316
35943
|
return object;
|
|
36317
35944
|
};
|
|
36318
35945
|
|
|
@@ -55728,6 +55355,7 @@ $root.proto = (function() {
|
|
|
55728
55355
|
* @property {string|null} [encReactionTargetMessageKey] MsgOpaqueData encReactionTargetMessageKey
|
|
55729
55356
|
* @property {Uint8Array|null} [encReactionEncPayload] MsgOpaqueData encReactionEncPayload
|
|
55730
55357
|
* @property {Uint8Array|null} [encReactionEncIv] MsgOpaqueData encReactionEncIv
|
|
55358
|
+
* @property {Uint8Array|null} [botMessageSecret] MsgOpaqueData botMessageSecret
|
|
55731
55359
|
*/
|
|
55732
55360
|
|
|
55733
55361
|
/**
|
|
@@ -55954,6 +55582,14 @@ $root.proto = (function() {
|
|
|
55954
55582
|
*/
|
|
55955
55583
|
MsgOpaqueData.prototype.encReactionEncIv = $util.newBuffer([]);
|
|
55956
55584
|
|
|
55585
|
+
/**
|
|
55586
|
+
* MsgOpaqueData botMessageSecret.
|
|
55587
|
+
* @member {Uint8Array} botMessageSecret
|
|
55588
|
+
* @memberof proto.MsgOpaqueData
|
|
55589
|
+
* @instance
|
|
55590
|
+
*/
|
|
55591
|
+
MsgOpaqueData.prototype.botMessageSecret = $util.newBuffer([]);
|
|
55592
|
+
|
|
55957
55593
|
/**
|
|
55958
55594
|
* Creates a new MsgOpaqueData instance using the specified properties.
|
|
55959
55595
|
* @function create
|
|
@@ -56029,6 +55665,8 @@ $root.proto = (function() {
|
|
|
56029
55665
|
writer.uint32(/* id 27, wireType 2 =*/218).bytes(message.encReactionEncIv);
|
|
56030
55666
|
if (message.isSentCagPollCreation != null && Object.hasOwnProperty.call(message, "isSentCagPollCreation"))
|
|
56031
55667
|
writer.uint32(/* id 28, wireType 0 =*/224).bool(message.isSentCagPollCreation);
|
|
55668
|
+
if (message.botMessageSecret != null && Object.hasOwnProperty.call(message, "botMessageSecret"))
|
|
55669
|
+
writer.uint32(/* id 29, wireType 2 =*/234).bytes(message.botMessageSecret);
|
|
56032
55670
|
if (message.originalSelfAuthor != null && Object.hasOwnProperty.call(message, "originalSelfAuthor"))
|
|
56033
55671
|
writer.uint32(/* id 51, wireType 2 =*/410).string(message.originalSelfAuthor);
|
|
56034
55672
|
return writer;
|
|
@@ -56145,6 +55783,9 @@ $root.proto = (function() {
|
|
|
56145
55783
|
case 27:
|
|
56146
55784
|
message.encReactionEncIv = reader.bytes();
|
|
56147
55785
|
break;
|
|
55786
|
+
case 29:
|
|
55787
|
+
message.botMessageSecret = reader.bytes();
|
|
55788
|
+
break;
|
|
56148
55789
|
default:
|
|
56149
55790
|
reader.skipType(tag & 7);
|
|
56150
55791
|
break;
|
|
@@ -56266,6 +55907,9 @@ $root.proto = (function() {
|
|
|
56266
55907
|
if (message.encReactionEncIv != null && message.hasOwnProperty("encReactionEncIv"))
|
|
56267
55908
|
if (!(message.encReactionEncIv && typeof message.encReactionEncIv.length === "number" || $util.isString(message.encReactionEncIv)))
|
|
56268
55909
|
return "encReactionEncIv: buffer expected";
|
|
55910
|
+
if (message.botMessageSecret != null && message.hasOwnProperty("botMessageSecret"))
|
|
55911
|
+
if (!(message.botMessageSecret && typeof message.botMessageSecret.length === "number" || $util.isString(message.botMessageSecret)))
|
|
55912
|
+
return "botMessageSecret: buffer expected";
|
|
56269
55913
|
return null;
|
|
56270
55914
|
};
|
|
56271
55915
|
|
|
@@ -56363,6 +56007,11 @@ $root.proto = (function() {
|
|
|
56363
56007
|
$util.base64.decode(object.encReactionEncIv, message.encReactionEncIv = $util.newBuffer($util.base64.length(object.encReactionEncIv)), 0);
|
|
56364
56008
|
else if (object.encReactionEncIv.length)
|
|
56365
56009
|
message.encReactionEncIv = object.encReactionEncIv;
|
|
56010
|
+
if (object.botMessageSecret != null)
|
|
56011
|
+
if (typeof object.botMessageSecret === "string")
|
|
56012
|
+
$util.base64.decode(object.botMessageSecret, message.botMessageSecret = $util.newBuffer($util.base64.length(object.botMessageSecret)), 0);
|
|
56013
|
+
else if (object.botMessageSecret.length)
|
|
56014
|
+
message.botMessageSecret = object.botMessageSecret;
|
|
56366
56015
|
return message;
|
|
56367
56016
|
};
|
|
56368
56017
|
|
|
@@ -56434,6 +56083,13 @@ $root.proto = (function() {
|
|
|
56434
56083
|
object.encReactionEncIv = $util.newBuffer(object.encReactionEncIv);
|
|
56435
56084
|
}
|
|
56436
56085
|
object.isSentCagPollCreation = false;
|
|
56086
|
+
if (options.bytes === String)
|
|
56087
|
+
object.botMessageSecret = "";
|
|
56088
|
+
else {
|
|
56089
|
+
object.botMessageSecret = [];
|
|
56090
|
+
if (options.bytes !== Array)
|
|
56091
|
+
object.botMessageSecret = $util.newBuffer(object.botMessageSecret);
|
|
56092
|
+
}
|
|
56437
56093
|
object.originalSelfAuthor = "";
|
|
56438
56094
|
}
|
|
56439
56095
|
if (message.body != null && message.hasOwnProperty("body"))
|
|
@@ -56492,6 +56148,8 @@ $root.proto = (function() {
|
|
|
56492
56148
|
object.encReactionEncIv = options.bytes === String ? $util.base64.encode(message.encReactionEncIv, 0, message.encReactionEncIv.length) : options.bytes === Array ? Array.prototype.slice.call(message.encReactionEncIv) : message.encReactionEncIv;
|
|
56493
56149
|
if (message.isSentCagPollCreation != null && message.hasOwnProperty("isSentCagPollCreation"))
|
|
56494
56150
|
object.isSentCagPollCreation = message.isSentCagPollCreation;
|
|
56151
|
+
if (message.botMessageSecret != null && message.hasOwnProperty("botMessageSecret"))
|
|
56152
|
+
object.botMessageSecret = options.bytes === String ? $util.base64.encode(message.botMessageSecret, 0, message.botMessageSecret.length) : options.bytes === Array ? Array.prototype.slice.call(message.botMessageSecret) : message.botMessageSecret;
|
|
56495
56153
|
if (message.originalSelfAuthor != null && message.hasOwnProperty("originalSelfAuthor"))
|
|
56496
56154
|
object.originalSelfAuthor = message.originalSelfAuthor;
|
|
56497
56155
|
return object;
|
|
@@ -62510,6 +62168,1022 @@ $root.proto = (function() {
|
|
|
62510
62168
|
return Pushname;
|
|
62511
62169
|
})();
|
|
62512
62170
|
|
|
62171
|
+
proto.QP = (function() {
|
|
62172
|
+
|
|
62173
|
+
/**
|
|
62174
|
+
* Properties of a QP.
|
|
62175
|
+
* @memberof proto
|
|
62176
|
+
* @interface IQP
|
|
62177
|
+
*/
|
|
62178
|
+
|
|
62179
|
+
/**
|
|
62180
|
+
* Constructs a new QP.
|
|
62181
|
+
* @memberof proto
|
|
62182
|
+
* @classdesc Represents a QP.
|
|
62183
|
+
* @implements IQP
|
|
62184
|
+
* @constructor
|
|
62185
|
+
* @param {proto.IQP=} [properties] Properties to set
|
|
62186
|
+
*/
|
|
62187
|
+
function QP(properties) {
|
|
62188
|
+
if (properties)
|
|
62189
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62190
|
+
if (properties[keys[i]] != null)
|
|
62191
|
+
this[keys[i]] = properties[keys[i]];
|
|
62192
|
+
}
|
|
62193
|
+
|
|
62194
|
+
/**
|
|
62195
|
+
* Creates a new QP instance using the specified properties.
|
|
62196
|
+
* @function create
|
|
62197
|
+
* @memberof proto.QP
|
|
62198
|
+
* @static
|
|
62199
|
+
* @param {proto.IQP=} [properties] Properties to set
|
|
62200
|
+
* @returns {proto.QP} QP instance
|
|
62201
|
+
*/
|
|
62202
|
+
QP.create = function create(properties) {
|
|
62203
|
+
return new QP(properties);
|
|
62204
|
+
};
|
|
62205
|
+
|
|
62206
|
+
/**
|
|
62207
|
+
* Encodes the specified QP message. Does not implicitly {@link proto.QP.verify|verify} messages.
|
|
62208
|
+
* @function encode
|
|
62209
|
+
* @memberof proto.QP
|
|
62210
|
+
* @static
|
|
62211
|
+
* @param {proto.IQP} message QP message or plain object to encode
|
|
62212
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62213
|
+
* @returns {$protobuf.Writer} Writer
|
|
62214
|
+
*/
|
|
62215
|
+
QP.encode = function encode(message, writer) {
|
|
62216
|
+
if (!writer)
|
|
62217
|
+
writer = $Writer.create();
|
|
62218
|
+
return writer;
|
|
62219
|
+
};
|
|
62220
|
+
|
|
62221
|
+
/**
|
|
62222
|
+
* Encodes the specified QP message, length delimited. Does not implicitly {@link proto.QP.verify|verify} messages.
|
|
62223
|
+
* @function encodeDelimited
|
|
62224
|
+
* @memberof proto.QP
|
|
62225
|
+
* @static
|
|
62226
|
+
* @param {proto.IQP} message QP message or plain object to encode
|
|
62227
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62228
|
+
* @returns {$protobuf.Writer} Writer
|
|
62229
|
+
*/
|
|
62230
|
+
QP.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62231
|
+
return this.encode(message, writer).ldelim();
|
|
62232
|
+
};
|
|
62233
|
+
|
|
62234
|
+
/**
|
|
62235
|
+
* Decodes a QP message from the specified reader or buffer.
|
|
62236
|
+
* @function decode
|
|
62237
|
+
* @memberof proto.QP
|
|
62238
|
+
* @static
|
|
62239
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62240
|
+
* @param {number} [length] Message length if known beforehand
|
|
62241
|
+
* @returns {proto.QP} QP
|
|
62242
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62243
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62244
|
+
*/
|
|
62245
|
+
QP.decode = function decode(reader, length) {
|
|
62246
|
+
if (!(reader instanceof $Reader))
|
|
62247
|
+
reader = $Reader.create(reader);
|
|
62248
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.QP();
|
|
62249
|
+
while (reader.pos < end) {
|
|
62250
|
+
var tag = reader.uint32();
|
|
62251
|
+
switch (tag >>> 3) {
|
|
62252
|
+
default:
|
|
62253
|
+
reader.skipType(tag & 7);
|
|
62254
|
+
break;
|
|
62255
|
+
}
|
|
62256
|
+
}
|
|
62257
|
+
return message;
|
|
62258
|
+
};
|
|
62259
|
+
|
|
62260
|
+
/**
|
|
62261
|
+
* Decodes a QP message from the specified reader or buffer, length delimited.
|
|
62262
|
+
* @function decodeDelimited
|
|
62263
|
+
* @memberof proto.QP
|
|
62264
|
+
* @static
|
|
62265
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62266
|
+
* @returns {proto.QP} QP
|
|
62267
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62268
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62269
|
+
*/
|
|
62270
|
+
QP.decodeDelimited = function decodeDelimited(reader) {
|
|
62271
|
+
if (!(reader instanceof $Reader))
|
|
62272
|
+
reader = new $Reader(reader);
|
|
62273
|
+
return this.decode(reader, reader.uint32());
|
|
62274
|
+
};
|
|
62275
|
+
|
|
62276
|
+
/**
|
|
62277
|
+
* Verifies a QP message.
|
|
62278
|
+
* @function verify
|
|
62279
|
+
* @memberof proto.QP
|
|
62280
|
+
* @static
|
|
62281
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62282
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62283
|
+
*/
|
|
62284
|
+
QP.verify = function verify(message) {
|
|
62285
|
+
if (typeof message !== "object" || message === null)
|
|
62286
|
+
return "object expected";
|
|
62287
|
+
return null;
|
|
62288
|
+
};
|
|
62289
|
+
|
|
62290
|
+
/**
|
|
62291
|
+
* Creates a QP message from a plain object. Also converts values to their respective internal types.
|
|
62292
|
+
* @function fromObject
|
|
62293
|
+
* @memberof proto.QP
|
|
62294
|
+
* @static
|
|
62295
|
+
* @param {Object.<string,*>} object Plain object
|
|
62296
|
+
* @returns {proto.QP} QP
|
|
62297
|
+
*/
|
|
62298
|
+
QP.fromObject = function fromObject(object) {
|
|
62299
|
+
if (object instanceof $root.proto.QP)
|
|
62300
|
+
return object;
|
|
62301
|
+
return new $root.proto.QP();
|
|
62302
|
+
};
|
|
62303
|
+
|
|
62304
|
+
/**
|
|
62305
|
+
* Creates a plain object from a QP message. Also converts values to other types if specified.
|
|
62306
|
+
* @function toObject
|
|
62307
|
+
* @memberof proto.QP
|
|
62308
|
+
* @static
|
|
62309
|
+
* @param {proto.QP} message QP
|
|
62310
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62311
|
+
* @returns {Object.<string,*>} Plain object
|
|
62312
|
+
*/
|
|
62313
|
+
QP.toObject = function toObject() {
|
|
62314
|
+
return {};
|
|
62315
|
+
};
|
|
62316
|
+
|
|
62317
|
+
/**
|
|
62318
|
+
* Converts this QP to JSON.
|
|
62319
|
+
* @function toJSON
|
|
62320
|
+
* @memberof proto.QP
|
|
62321
|
+
* @instance
|
|
62322
|
+
* @returns {Object.<string,*>} JSON object
|
|
62323
|
+
*/
|
|
62324
|
+
QP.prototype.toJSON = function toJSON() {
|
|
62325
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62326
|
+
};
|
|
62327
|
+
|
|
62328
|
+
/**
|
|
62329
|
+
* ClauseType enum.
|
|
62330
|
+
* @name proto.QP.ClauseType
|
|
62331
|
+
* @enum {number}
|
|
62332
|
+
* @property {number} AND=1 AND value
|
|
62333
|
+
* @property {number} OR=2 OR value
|
|
62334
|
+
* @property {number} NOR=3 NOR value
|
|
62335
|
+
*/
|
|
62336
|
+
QP.ClauseType = (function() {
|
|
62337
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
62338
|
+
values[valuesById[1] = "AND"] = 1;
|
|
62339
|
+
values[valuesById[2] = "OR"] = 2;
|
|
62340
|
+
values[valuesById[3] = "NOR"] = 3;
|
|
62341
|
+
return values;
|
|
62342
|
+
})();
|
|
62343
|
+
|
|
62344
|
+
QP.Filter = (function() {
|
|
62345
|
+
|
|
62346
|
+
/**
|
|
62347
|
+
* Properties of a Filter.
|
|
62348
|
+
* @memberof proto.QP
|
|
62349
|
+
* @interface IFilter
|
|
62350
|
+
* @property {string} filterName Filter filterName
|
|
62351
|
+
* @property {Array.<proto.QP.IFilterParameters>|null} [parameters] Filter parameters
|
|
62352
|
+
* @property {proto.QP.FilterResult|null} [filterResult] Filter filterResult
|
|
62353
|
+
* @property {proto.QP.FilterClientNotSupportedConfig} clientNotSupportedConfig Filter clientNotSupportedConfig
|
|
62354
|
+
*/
|
|
62355
|
+
|
|
62356
|
+
/**
|
|
62357
|
+
* Constructs a new Filter.
|
|
62358
|
+
* @memberof proto.QP
|
|
62359
|
+
* @classdesc Represents a Filter.
|
|
62360
|
+
* @implements IFilter
|
|
62361
|
+
* @constructor
|
|
62362
|
+
* @param {proto.QP.IFilter=} [properties] Properties to set
|
|
62363
|
+
*/
|
|
62364
|
+
function Filter(properties) {
|
|
62365
|
+
this.parameters = [];
|
|
62366
|
+
if (properties)
|
|
62367
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62368
|
+
if (properties[keys[i]] != null)
|
|
62369
|
+
this[keys[i]] = properties[keys[i]];
|
|
62370
|
+
}
|
|
62371
|
+
|
|
62372
|
+
/**
|
|
62373
|
+
* Filter filterName.
|
|
62374
|
+
* @member {string} filterName
|
|
62375
|
+
* @memberof proto.QP.Filter
|
|
62376
|
+
* @instance
|
|
62377
|
+
*/
|
|
62378
|
+
Filter.prototype.filterName = "";
|
|
62379
|
+
|
|
62380
|
+
/**
|
|
62381
|
+
* Filter parameters.
|
|
62382
|
+
* @member {Array.<proto.QP.IFilterParameters>} parameters
|
|
62383
|
+
* @memberof proto.QP.Filter
|
|
62384
|
+
* @instance
|
|
62385
|
+
*/
|
|
62386
|
+
Filter.prototype.parameters = $util.emptyArray;
|
|
62387
|
+
|
|
62388
|
+
/**
|
|
62389
|
+
* Filter filterResult.
|
|
62390
|
+
* @member {proto.QP.FilterResult} filterResult
|
|
62391
|
+
* @memberof proto.QP.Filter
|
|
62392
|
+
* @instance
|
|
62393
|
+
*/
|
|
62394
|
+
Filter.prototype.filterResult = 1;
|
|
62395
|
+
|
|
62396
|
+
/**
|
|
62397
|
+
* Filter clientNotSupportedConfig.
|
|
62398
|
+
* @member {proto.QP.FilterClientNotSupportedConfig} clientNotSupportedConfig
|
|
62399
|
+
* @memberof proto.QP.Filter
|
|
62400
|
+
* @instance
|
|
62401
|
+
*/
|
|
62402
|
+
Filter.prototype.clientNotSupportedConfig = 1;
|
|
62403
|
+
|
|
62404
|
+
/**
|
|
62405
|
+
* Creates a new Filter instance using the specified properties.
|
|
62406
|
+
* @function create
|
|
62407
|
+
* @memberof proto.QP.Filter
|
|
62408
|
+
* @static
|
|
62409
|
+
* @param {proto.QP.IFilter=} [properties] Properties to set
|
|
62410
|
+
* @returns {proto.QP.Filter} Filter instance
|
|
62411
|
+
*/
|
|
62412
|
+
Filter.create = function create(properties) {
|
|
62413
|
+
return new Filter(properties);
|
|
62414
|
+
};
|
|
62415
|
+
|
|
62416
|
+
/**
|
|
62417
|
+
* Encodes the specified Filter message. Does not implicitly {@link proto.QP.Filter.verify|verify} messages.
|
|
62418
|
+
* @function encode
|
|
62419
|
+
* @memberof proto.QP.Filter
|
|
62420
|
+
* @static
|
|
62421
|
+
* @param {proto.QP.IFilter} message Filter message or plain object to encode
|
|
62422
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62423
|
+
* @returns {$protobuf.Writer} Writer
|
|
62424
|
+
*/
|
|
62425
|
+
Filter.encode = function encode(message, writer) {
|
|
62426
|
+
if (!writer)
|
|
62427
|
+
writer = $Writer.create();
|
|
62428
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.filterName);
|
|
62429
|
+
if (message.parameters != null && message.parameters.length)
|
|
62430
|
+
for (var i = 0; i < message.parameters.length; ++i)
|
|
62431
|
+
$root.proto.QP.FilterParameters.encode(message.parameters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
62432
|
+
if (message.filterResult != null && Object.hasOwnProperty.call(message, "filterResult"))
|
|
62433
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.filterResult);
|
|
62434
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.clientNotSupportedConfig);
|
|
62435
|
+
return writer;
|
|
62436
|
+
};
|
|
62437
|
+
|
|
62438
|
+
/**
|
|
62439
|
+
* Encodes the specified Filter message, length delimited. Does not implicitly {@link proto.QP.Filter.verify|verify} messages.
|
|
62440
|
+
* @function encodeDelimited
|
|
62441
|
+
* @memberof proto.QP.Filter
|
|
62442
|
+
* @static
|
|
62443
|
+
* @param {proto.QP.IFilter} message Filter message or plain object to encode
|
|
62444
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62445
|
+
* @returns {$protobuf.Writer} Writer
|
|
62446
|
+
*/
|
|
62447
|
+
Filter.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62448
|
+
return this.encode(message, writer).ldelim();
|
|
62449
|
+
};
|
|
62450
|
+
|
|
62451
|
+
/**
|
|
62452
|
+
* Decodes a Filter message from the specified reader or buffer.
|
|
62453
|
+
* @function decode
|
|
62454
|
+
* @memberof proto.QP.Filter
|
|
62455
|
+
* @static
|
|
62456
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62457
|
+
* @param {number} [length] Message length if known beforehand
|
|
62458
|
+
* @returns {proto.QP.Filter} Filter
|
|
62459
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62460
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62461
|
+
*/
|
|
62462
|
+
Filter.decode = function decode(reader, length) {
|
|
62463
|
+
if (!(reader instanceof $Reader))
|
|
62464
|
+
reader = $Reader.create(reader);
|
|
62465
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.QP.Filter();
|
|
62466
|
+
while (reader.pos < end) {
|
|
62467
|
+
var tag = reader.uint32();
|
|
62468
|
+
switch (tag >>> 3) {
|
|
62469
|
+
case 1:
|
|
62470
|
+
message.filterName = reader.string();
|
|
62471
|
+
break;
|
|
62472
|
+
case 2:
|
|
62473
|
+
if (!(message.parameters && message.parameters.length))
|
|
62474
|
+
message.parameters = [];
|
|
62475
|
+
message.parameters.push($root.proto.QP.FilterParameters.decode(reader, reader.uint32()));
|
|
62476
|
+
break;
|
|
62477
|
+
case 3:
|
|
62478
|
+
message.filterResult = reader.int32();
|
|
62479
|
+
break;
|
|
62480
|
+
case 4:
|
|
62481
|
+
message.clientNotSupportedConfig = reader.int32();
|
|
62482
|
+
break;
|
|
62483
|
+
default:
|
|
62484
|
+
reader.skipType(tag & 7);
|
|
62485
|
+
break;
|
|
62486
|
+
}
|
|
62487
|
+
}
|
|
62488
|
+
if (!message.hasOwnProperty("filterName"))
|
|
62489
|
+
throw $util.ProtocolError("missing required 'filterName'", { instance: message });
|
|
62490
|
+
if (!message.hasOwnProperty("clientNotSupportedConfig"))
|
|
62491
|
+
throw $util.ProtocolError("missing required 'clientNotSupportedConfig'", { instance: message });
|
|
62492
|
+
return message;
|
|
62493
|
+
};
|
|
62494
|
+
|
|
62495
|
+
/**
|
|
62496
|
+
* Decodes a Filter message from the specified reader or buffer, length delimited.
|
|
62497
|
+
* @function decodeDelimited
|
|
62498
|
+
* @memberof proto.QP.Filter
|
|
62499
|
+
* @static
|
|
62500
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62501
|
+
* @returns {proto.QP.Filter} Filter
|
|
62502
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62503
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62504
|
+
*/
|
|
62505
|
+
Filter.decodeDelimited = function decodeDelimited(reader) {
|
|
62506
|
+
if (!(reader instanceof $Reader))
|
|
62507
|
+
reader = new $Reader(reader);
|
|
62508
|
+
return this.decode(reader, reader.uint32());
|
|
62509
|
+
};
|
|
62510
|
+
|
|
62511
|
+
/**
|
|
62512
|
+
* Verifies a Filter message.
|
|
62513
|
+
* @function verify
|
|
62514
|
+
* @memberof proto.QP.Filter
|
|
62515
|
+
* @static
|
|
62516
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62517
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62518
|
+
*/
|
|
62519
|
+
Filter.verify = function verify(message) {
|
|
62520
|
+
if (typeof message !== "object" || message === null)
|
|
62521
|
+
return "object expected";
|
|
62522
|
+
if (!$util.isString(message.filterName))
|
|
62523
|
+
return "filterName: string expected";
|
|
62524
|
+
if (message.parameters != null && message.hasOwnProperty("parameters")) {
|
|
62525
|
+
if (!Array.isArray(message.parameters))
|
|
62526
|
+
return "parameters: array expected";
|
|
62527
|
+
for (var i = 0; i < message.parameters.length; ++i) {
|
|
62528
|
+
var error = $root.proto.QP.FilterParameters.verify(message.parameters[i]);
|
|
62529
|
+
if (error)
|
|
62530
|
+
return "parameters." + error;
|
|
62531
|
+
}
|
|
62532
|
+
}
|
|
62533
|
+
if (message.filterResult != null && message.hasOwnProperty("filterResult"))
|
|
62534
|
+
switch (message.filterResult) {
|
|
62535
|
+
default:
|
|
62536
|
+
return "filterResult: enum value expected";
|
|
62537
|
+
case 1:
|
|
62538
|
+
case 2:
|
|
62539
|
+
case 3:
|
|
62540
|
+
break;
|
|
62541
|
+
}
|
|
62542
|
+
switch (message.clientNotSupportedConfig) {
|
|
62543
|
+
default:
|
|
62544
|
+
return "clientNotSupportedConfig: enum value expected";
|
|
62545
|
+
case 1:
|
|
62546
|
+
case 2:
|
|
62547
|
+
break;
|
|
62548
|
+
}
|
|
62549
|
+
return null;
|
|
62550
|
+
};
|
|
62551
|
+
|
|
62552
|
+
/**
|
|
62553
|
+
* Creates a Filter message from a plain object. Also converts values to their respective internal types.
|
|
62554
|
+
* @function fromObject
|
|
62555
|
+
* @memberof proto.QP.Filter
|
|
62556
|
+
* @static
|
|
62557
|
+
* @param {Object.<string,*>} object Plain object
|
|
62558
|
+
* @returns {proto.QP.Filter} Filter
|
|
62559
|
+
*/
|
|
62560
|
+
Filter.fromObject = function fromObject(object) {
|
|
62561
|
+
if (object instanceof $root.proto.QP.Filter)
|
|
62562
|
+
return object;
|
|
62563
|
+
var message = new $root.proto.QP.Filter();
|
|
62564
|
+
if (object.filterName != null)
|
|
62565
|
+
message.filterName = String(object.filterName);
|
|
62566
|
+
if (object.parameters) {
|
|
62567
|
+
if (!Array.isArray(object.parameters))
|
|
62568
|
+
throw TypeError(".proto.QP.Filter.parameters: array expected");
|
|
62569
|
+
message.parameters = [];
|
|
62570
|
+
for (var i = 0; i < object.parameters.length; ++i) {
|
|
62571
|
+
if (typeof object.parameters[i] !== "object")
|
|
62572
|
+
throw TypeError(".proto.QP.Filter.parameters: object expected");
|
|
62573
|
+
message.parameters[i] = $root.proto.QP.FilterParameters.fromObject(object.parameters[i]);
|
|
62574
|
+
}
|
|
62575
|
+
}
|
|
62576
|
+
switch (object.filterResult) {
|
|
62577
|
+
case "TRUE":
|
|
62578
|
+
case 1:
|
|
62579
|
+
message.filterResult = 1;
|
|
62580
|
+
break;
|
|
62581
|
+
case "FALSE":
|
|
62582
|
+
case 2:
|
|
62583
|
+
message.filterResult = 2;
|
|
62584
|
+
break;
|
|
62585
|
+
case "UNKNOWN":
|
|
62586
|
+
case 3:
|
|
62587
|
+
message.filterResult = 3;
|
|
62588
|
+
break;
|
|
62589
|
+
}
|
|
62590
|
+
switch (object.clientNotSupportedConfig) {
|
|
62591
|
+
case "PASS_BY_DEFAULT":
|
|
62592
|
+
case 1:
|
|
62593
|
+
message.clientNotSupportedConfig = 1;
|
|
62594
|
+
break;
|
|
62595
|
+
case "FAIL_BY_DEFAULT":
|
|
62596
|
+
case 2:
|
|
62597
|
+
message.clientNotSupportedConfig = 2;
|
|
62598
|
+
break;
|
|
62599
|
+
}
|
|
62600
|
+
return message;
|
|
62601
|
+
};
|
|
62602
|
+
|
|
62603
|
+
/**
|
|
62604
|
+
* Creates a plain object from a Filter message. Also converts values to other types if specified.
|
|
62605
|
+
* @function toObject
|
|
62606
|
+
* @memberof proto.QP.Filter
|
|
62607
|
+
* @static
|
|
62608
|
+
* @param {proto.QP.Filter} message Filter
|
|
62609
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62610
|
+
* @returns {Object.<string,*>} Plain object
|
|
62611
|
+
*/
|
|
62612
|
+
Filter.toObject = function toObject(message, options) {
|
|
62613
|
+
if (!options)
|
|
62614
|
+
options = {};
|
|
62615
|
+
var object = {};
|
|
62616
|
+
if (options.arrays || options.defaults)
|
|
62617
|
+
object.parameters = [];
|
|
62618
|
+
if (options.defaults) {
|
|
62619
|
+
object.filterName = "";
|
|
62620
|
+
object.filterResult = options.enums === String ? "TRUE" : 1;
|
|
62621
|
+
object.clientNotSupportedConfig = options.enums === String ? "PASS_BY_DEFAULT" : 1;
|
|
62622
|
+
}
|
|
62623
|
+
if (message.filterName != null && message.hasOwnProperty("filterName"))
|
|
62624
|
+
object.filterName = message.filterName;
|
|
62625
|
+
if (message.parameters && message.parameters.length) {
|
|
62626
|
+
object.parameters = [];
|
|
62627
|
+
for (var j = 0; j < message.parameters.length; ++j)
|
|
62628
|
+
object.parameters[j] = $root.proto.QP.FilterParameters.toObject(message.parameters[j], options);
|
|
62629
|
+
}
|
|
62630
|
+
if (message.filterResult != null && message.hasOwnProperty("filterResult"))
|
|
62631
|
+
object.filterResult = options.enums === String ? $root.proto.QP.FilterResult[message.filterResult] : message.filterResult;
|
|
62632
|
+
if (message.clientNotSupportedConfig != null && message.hasOwnProperty("clientNotSupportedConfig"))
|
|
62633
|
+
object.clientNotSupportedConfig = options.enums === String ? $root.proto.QP.FilterClientNotSupportedConfig[message.clientNotSupportedConfig] : message.clientNotSupportedConfig;
|
|
62634
|
+
return object;
|
|
62635
|
+
};
|
|
62636
|
+
|
|
62637
|
+
/**
|
|
62638
|
+
* Converts this Filter to JSON.
|
|
62639
|
+
* @function toJSON
|
|
62640
|
+
* @memberof proto.QP.Filter
|
|
62641
|
+
* @instance
|
|
62642
|
+
* @returns {Object.<string,*>} JSON object
|
|
62643
|
+
*/
|
|
62644
|
+
Filter.prototype.toJSON = function toJSON() {
|
|
62645
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62646
|
+
};
|
|
62647
|
+
|
|
62648
|
+
return Filter;
|
|
62649
|
+
})();
|
|
62650
|
+
|
|
62651
|
+
QP.FilterClause = (function() {
|
|
62652
|
+
|
|
62653
|
+
/**
|
|
62654
|
+
* Properties of a FilterClause.
|
|
62655
|
+
* @memberof proto.QP
|
|
62656
|
+
* @interface IFilterClause
|
|
62657
|
+
* @property {proto.QP.ClauseType} clauseType FilterClause clauseType
|
|
62658
|
+
* @property {Array.<proto.QP.IFilterClause>|null} [clauses] FilterClause clauses
|
|
62659
|
+
* @property {Array.<proto.QP.IFilter>|null} [filters] FilterClause filters
|
|
62660
|
+
*/
|
|
62661
|
+
|
|
62662
|
+
/**
|
|
62663
|
+
* Constructs a new FilterClause.
|
|
62664
|
+
* @memberof proto.QP
|
|
62665
|
+
* @classdesc Represents a FilterClause.
|
|
62666
|
+
* @implements IFilterClause
|
|
62667
|
+
* @constructor
|
|
62668
|
+
* @param {proto.QP.IFilterClause=} [properties] Properties to set
|
|
62669
|
+
*/
|
|
62670
|
+
function FilterClause(properties) {
|
|
62671
|
+
this.clauses = [];
|
|
62672
|
+
this.filters = [];
|
|
62673
|
+
if (properties)
|
|
62674
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62675
|
+
if (properties[keys[i]] != null)
|
|
62676
|
+
this[keys[i]] = properties[keys[i]];
|
|
62677
|
+
}
|
|
62678
|
+
|
|
62679
|
+
/**
|
|
62680
|
+
* FilterClause clauseType.
|
|
62681
|
+
* @member {proto.QP.ClauseType} clauseType
|
|
62682
|
+
* @memberof proto.QP.FilterClause
|
|
62683
|
+
* @instance
|
|
62684
|
+
*/
|
|
62685
|
+
FilterClause.prototype.clauseType = 1;
|
|
62686
|
+
|
|
62687
|
+
/**
|
|
62688
|
+
* FilterClause clauses.
|
|
62689
|
+
* @member {Array.<proto.QP.IFilterClause>} clauses
|
|
62690
|
+
* @memberof proto.QP.FilterClause
|
|
62691
|
+
* @instance
|
|
62692
|
+
*/
|
|
62693
|
+
FilterClause.prototype.clauses = $util.emptyArray;
|
|
62694
|
+
|
|
62695
|
+
/**
|
|
62696
|
+
* FilterClause filters.
|
|
62697
|
+
* @member {Array.<proto.QP.IFilter>} filters
|
|
62698
|
+
* @memberof proto.QP.FilterClause
|
|
62699
|
+
* @instance
|
|
62700
|
+
*/
|
|
62701
|
+
FilterClause.prototype.filters = $util.emptyArray;
|
|
62702
|
+
|
|
62703
|
+
/**
|
|
62704
|
+
* Creates a new FilterClause instance using the specified properties.
|
|
62705
|
+
* @function create
|
|
62706
|
+
* @memberof proto.QP.FilterClause
|
|
62707
|
+
* @static
|
|
62708
|
+
* @param {proto.QP.IFilterClause=} [properties] Properties to set
|
|
62709
|
+
* @returns {proto.QP.FilterClause} FilterClause instance
|
|
62710
|
+
*/
|
|
62711
|
+
FilterClause.create = function create(properties) {
|
|
62712
|
+
return new FilterClause(properties);
|
|
62713
|
+
};
|
|
62714
|
+
|
|
62715
|
+
/**
|
|
62716
|
+
* Encodes the specified FilterClause message. Does not implicitly {@link proto.QP.FilterClause.verify|verify} messages.
|
|
62717
|
+
* @function encode
|
|
62718
|
+
* @memberof proto.QP.FilterClause
|
|
62719
|
+
* @static
|
|
62720
|
+
* @param {proto.QP.IFilterClause} message FilterClause message or plain object to encode
|
|
62721
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62722
|
+
* @returns {$protobuf.Writer} Writer
|
|
62723
|
+
*/
|
|
62724
|
+
FilterClause.encode = function encode(message, writer) {
|
|
62725
|
+
if (!writer)
|
|
62726
|
+
writer = $Writer.create();
|
|
62727
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clauseType);
|
|
62728
|
+
if (message.clauses != null && message.clauses.length)
|
|
62729
|
+
for (var i = 0; i < message.clauses.length; ++i)
|
|
62730
|
+
$root.proto.QP.FilterClause.encode(message.clauses[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
62731
|
+
if (message.filters != null && message.filters.length)
|
|
62732
|
+
for (var i = 0; i < message.filters.length; ++i)
|
|
62733
|
+
$root.proto.QP.Filter.encode(message.filters[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
62734
|
+
return writer;
|
|
62735
|
+
};
|
|
62736
|
+
|
|
62737
|
+
/**
|
|
62738
|
+
* Encodes the specified FilterClause message, length delimited. Does not implicitly {@link proto.QP.FilterClause.verify|verify} messages.
|
|
62739
|
+
* @function encodeDelimited
|
|
62740
|
+
* @memberof proto.QP.FilterClause
|
|
62741
|
+
* @static
|
|
62742
|
+
* @param {proto.QP.IFilterClause} message FilterClause message or plain object to encode
|
|
62743
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62744
|
+
* @returns {$protobuf.Writer} Writer
|
|
62745
|
+
*/
|
|
62746
|
+
FilterClause.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62747
|
+
return this.encode(message, writer).ldelim();
|
|
62748
|
+
};
|
|
62749
|
+
|
|
62750
|
+
/**
|
|
62751
|
+
* Decodes a FilterClause message from the specified reader or buffer.
|
|
62752
|
+
* @function decode
|
|
62753
|
+
* @memberof proto.QP.FilterClause
|
|
62754
|
+
* @static
|
|
62755
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62756
|
+
* @param {number} [length] Message length if known beforehand
|
|
62757
|
+
* @returns {proto.QP.FilterClause} FilterClause
|
|
62758
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62759
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62760
|
+
*/
|
|
62761
|
+
FilterClause.decode = function decode(reader, length) {
|
|
62762
|
+
if (!(reader instanceof $Reader))
|
|
62763
|
+
reader = $Reader.create(reader);
|
|
62764
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.QP.FilterClause();
|
|
62765
|
+
while (reader.pos < end) {
|
|
62766
|
+
var tag = reader.uint32();
|
|
62767
|
+
switch (tag >>> 3) {
|
|
62768
|
+
case 1:
|
|
62769
|
+
message.clauseType = reader.int32();
|
|
62770
|
+
break;
|
|
62771
|
+
case 2:
|
|
62772
|
+
if (!(message.clauses && message.clauses.length))
|
|
62773
|
+
message.clauses = [];
|
|
62774
|
+
message.clauses.push($root.proto.QP.FilterClause.decode(reader, reader.uint32()));
|
|
62775
|
+
break;
|
|
62776
|
+
case 3:
|
|
62777
|
+
if (!(message.filters && message.filters.length))
|
|
62778
|
+
message.filters = [];
|
|
62779
|
+
message.filters.push($root.proto.QP.Filter.decode(reader, reader.uint32()));
|
|
62780
|
+
break;
|
|
62781
|
+
default:
|
|
62782
|
+
reader.skipType(tag & 7);
|
|
62783
|
+
break;
|
|
62784
|
+
}
|
|
62785
|
+
}
|
|
62786
|
+
if (!message.hasOwnProperty("clauseType"))
|
|
62787
|
+
throw $util.ProtocolError("missing required 'clauseType'", { instance: message });
|
|
62788
|
+
return message;
|
|
62789
|
+
};
|
|
62790
|
+
|
|
62791
|
+
/**
|
|
62792
|
+
* Decodes a FilterClause message from the specified reader or buffer, length delimited.
|
|
62793
|
+
* @function decodeDelimited
|
|
62794
|
+
* @memberof proto.QP.FilterClause
|
|
62795
|
+
* @static
|
|
62796
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62797
|
+
* @returns {proto.QP.FilterClause} FilterClause
|
|
62798
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62799
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62800
|
+
*/
|
|
62801
|
+
FilterClause.decodeDelimited = function decodeDelimited(reader) {
|
|
62802
|
+
if (!(reader instanceof $Reader))
|
|
62803
|
+
reader = new $Reader(reader);
|
|
62804
|
+
return this.decode(reader, reader.uint32());
|
|
62805
|
+
};
|
|
62806
|
+
|
|
62807
|
+
/**
|
|
62808
|
+
* Verifies a FilterClause message.
|
|
62809
|
+
* @function verify
|
|
62810
|
+
* @memberof proto.QP.FilterClause
|
|
62811
|
+
* @static
|
|
62812
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62813
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62814
|
+
*/
|
|
62815
|
+
FilterClause.verify = function verify(message) {
|
|
62816
|
+
if (typeof message !== "object" || message === null)
|
|
62817
|
+
return "object expected";
|
|
62818
|
+
switch (message.clauseType) {
|
|
62819
|
+
default:
|
|
62820
|
+
return "clauseType: enum value expected";
|
|
62821
|
+
case 1:
|
|
62822
|
+
case 2:
|
|
62823
|
+
case 3:
|
|
62824
|
+
break;
|
|
62825
|
+
}
|
|
62826
|
+
if (message.clauses != null && message.hasOwnProperty("clauses")) {
|
|
62827
|
+
if (!Array.isArray(message.clauses))
|
|
62828
|
+
return "clauses: array expected";
|
|
62829
|
+
for (var i = 0; i < message.clauses.length; ++i) {
|
|
62830
|
+
var error = $root.proto.QP.FilterClause.verify(message.clauses[i]);
|
|
62831
|
+
if (error)
|
|
62832
|
+
return "clauses." + error;
|
|
62833
|
+
}
|
|
62834
|
+
}
|
|
62835
|
+
if (message.filters != null && message.hasOwnProperty("filters")) {
|
|
62836
|
+
if (!Array.isArray(message.filters))
|
|
62837
|
+
return "filters: array expected";
|
|
62838
|
+
for (var i = 0; i < message.filters.length; ++i) {
|
|
62839
|
+
var error = $root.proto.QP.Filter.verify(message.filters[i]);
|
|
62840
|
+
if (error)
|
|
62841
|
+
return "filters." + error;
|
|
62842
|
+
}
|
|
62843
|
+
}
|
|
62844
|
+
return null;
|
|
62845
|
+
};
|
|
62846
|
+
|
|
62847
|
+
/**
|
|
62848
|
+
* Creates a FilterClause message from a plain object. Also converts values to their respective internal types.
|
|
62849
|
+
* @function fromObject
|
|
62850
|
+
* @memberof proto.QP.FilterClause
|
|
62851
|
+
* @static
|
|
62852
|
+
* @param {Object.<string,*>} object Plain object
|
|
62853
|
+
* @returns {proto.QP.FilterClause} FilterClause
|
|
62854
|
+
*/
|
|
62855
|
+
FilterClause.fromObject = function fromObject(object) {
|
|
62856
|
+
if (object instanceof $root.proto.QP.FilterClause)
|
|
62857
|
+
return object;
|
|
62858
|
+
var message = new $root.proto.QP.FilterClause();
|
|
62859
|
+
switch (object.clauseType) {
|
|
62860
|
+
case "AND":
|
|
62861
|
+
case 1:
|
|
62862
|
+
message.clauseType = 1;
|
|
62863
|
+
break;
|
|
62864
|
+
case "OR":
|
|
62865
|
+
case 2:
|
|
62866
|
+
message.clauseType = 2;
|
|
62867
|
+
break;
|
|
62868
|
+
case "NOR":
|
|
62869
|
+
case 3:
|
|
62870
|
+
message.clauseType = 3;
|
|
62871
|
+
break;
|
|
62872
|
+
}
|
|
62873
|
+
if (object.clauses) {
|
|
62874
|
+
if (!Array.isArray(object.clauses))
|
|
62875
|
+
throw TypeError(".proto.QP.FilterClause.clauses: array expected");
|
|
62876
|
+
message.clauses = [];
|
|
62877
|
+
for (var i = 0; i < object.clauses.length; ++i) {
|
|
62878
|
+
if (typeof object.clauses[i] !== "object")
|
|
62879
|
+
throw TypeError(".proto.QP.FilterClause.clauses: object expected");
|
|
62880
|
+
message.clauses[i] = $root.proto.QP.FilterClause.fromObject(object.clauses[i]);
|
|
62881
|
+
}
|
|
62882
|
+
}
|
|
62883
|
+
if (object.filters) {
|
|
62884
|
+
if (!Array.isArray(object.filters))
|
|
62885
|
+
throw TypeError(".proto.QP.FilterClause.filters: array expected");
|
|
62886
|
+
message.filters = [];
|
|
62887
|
+
for (var i = 0; i < object.filters.length; ++i) {
|
|
62888
|
+
if (typeof object.filters[i] !== "object")
|
|
62889
|
+
throw TypeError(".proto.QP.FilterClause.filters: object expected");
|
|
62890
|
+
message.filters[i] = $root.proto.QP.Filter.fromObject(object.filters[i]);
|
|
62891
|
+
}
|
|
62892
|
+
}
|
|
62893
|
+
return message;
|
|
62894
|
+
};
|
|
62895
|
+
|
|
62896
|
+
/**
|
|
62897
|
+
* Creates a plain object from a FilterClause message. Also converts values to other types if specified.
|
|
62898
|
+
* @function toObject
|
|
62899
|
+
* @memberof proto.QP.FilterClause
|
|
62900
|
+
* @static
|
|
62901
|
+
* @param {proto.QP.FilterClause} message FilterClause
|
|
62902
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62903
|
+
* @returns {Object.<string,*>} Plain object
|
|
62904
|
+
*/
|
|
62905
|
+
FilterClause.toObject = function toObject(message, options) {
|
|
62906
|
+
if (!options)
|
|
62907
|
+
options = {};
|
|
62908
|
+
var object = {};
|
|
62909
|
+
if (options.arrays || options.defaults) {
|
|
62910
|
+
object.clauses = [];
|
|
62911
|
+
object.filters = [];
|
|
62912
|
+
}
|
|
62913
|
+
if (options.defaults)
|
|
62914
|
+
object.clauseType = options.enums === String ? "AND" : 1;
|
|
62915
|
+
if (message.clauseType != null && message.hasOwnProperty("clauseType"))
|
|
62916
|
+
object.clauseType = options.enums === String ? $root.proto.QP.ClauseType[message.clauseType] : message.clauseType;
|
|
62917
|
+
if (message.clauses && message.clauses.length) {
|
|
62918
|
+
object.clauses = [];
|
|
62919
|
+
for (var j = 0; j < message.clauses.length; ++j)
|
|
62920
|
+
object.clauses[j] = $root.proto.QP.FilterClause.toObject(message.clauses[j], options);
|
|
62921
|
+
}
|
|
62922
|
+
if (message.filters && message.filters.length) {
|
|
62923
|
+
object.filters = [];
|
|
62924
|
+
for (var j = 0; j < message.filters.length; ++j)
|
|
62925
|
+
object.filters[j] = $root.proto.QP.Filter.toObject(message.filters[j], options);
|
|
62926
|
+
}
|
|
62927
|
+
return object;
|
|
62928
|
+
};
|
|
62929
|
+
|
|
62930
|
+
/**
|
|
62931
|
+
* Converts this FilterClause to JSON.
|
|
62932
|
+
* @function toJSON
|
|
62933
|
+
* @memberof proto.QP.FilterClause
|
|
62934
|
+
* @instance
|
|
62935
|
+
* @returns {Object.<string,*>} JSON object
|
|
62936
|
+
*/
|
|
62937
|
+
FilterClause.prototype.toJSON = function toJSON() {
|
|
62938
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62939
|
+
};
|
|
62940
|
+
|
|
62941
|
+
return FilterClause;
|
|
62942
|
+
})();
|
|
62943
|
+
|
|
62944
|
+
/**
|
|
62945
|
+
* FilterClientNotSupportedConfig enum.
|
|
62946
|
+
* @name proto.QP.FilterClientNotSupportedConfig
|
|
62947
|
+
* @enum {number}
|
|
62948
|
+
* @property {number} PASS_BY_DEFAULT=1 PASS_BY_DEFAULT value
|
|
62949
|
+
* @property {number} FAIL_BY_DEFAULT=2 FAIL_BY_DEFAULT value
|
|
62950
|
+
*/
|
|
62951
|
+
QP.FilterClientNotSupportedConfig = (function() {
|
|
62952
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
62953
|
+
values[valuesById[1] = "PASS_BY_DEFAULT"] = 1;
|
|
62954
|
+
values[valuesById[2] = "FAIL_BY_DEFAULT"] = 2;
|
|
62955
|
+
return values;
|
|
62956
|
+
})();
|
|
62957
|
+
|
|
62958
|
+
QP.FilterParameters = (function() {
|
|
62959
|
+
|
|
62960
|
+
/**
|
|
62961
|
+
* Properties of a FilterParameters.
|
|
62962
|
+
* @memberof proto.QP
|
|
62963
|
+
* @interface IFilterParameters
|
|
62964
|
+
* @property {string|null} [key] FilterParameters key
|
|
62965
|
+
* @property {string|null} [value] FilterParameters value
|
|
62966
|
+
*/
|
|
62967
|
+
|
|
62968
|
+
/**
|
|
62969
|
+
* Constructs a new FilterParameters.
|
|
62970
|
+
* @memberof proto.QP
|
|
62971
|
+
* @classdesc Represents a FilterParameters.
|
|
62972
|
+
* @implements IFilterParameters
|
|
62973
|
+
* @constructor
|
|
62974
|
+
* @param {proto.QP.IFilterParameters=} [properties] Properties to set
|
|
62975
|
+
*/
|
|
62976
|
+
function FilterParameters(properties) {
|
|
62977
|
+
if (properties)
|
|
62978
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62979
|
+
if (properties[keys[i]] != null)
|
|
62980
|
+
this[keys[i]] = properties[keys[i]];
|
|
62981
|
+
}
|
|
62982
|
+
|
|
62983
|
+
/**
|
|
62984
|
+
* FilterParameters key.
|
|
62985
|
+
* @member {string} key
|
|
62986
|
+
* @memberof proto.QP.FilterParameters
|
|
62987
|
+
* @instance
|
|
62988
|
+
*/
|
|
62989
|
+
FilterParameters.prototype.key = "";
|
|
62990
|
+
|
|
62991
|
+
/**
|
|
62992
|
+
* FilterParameters value.
|
|
62993
|
+
* @member {string} value
|
|
62994
|
+
* @memberof proto.QP.FilterParameters
|
|
62995
|
+
* @instance
|
|
62996
|
+
*/
|
|
62997
|
+
FilterParameters.prototype.value = "";
|
|
62998
|
+
|
|
62999
|
+
/**
|
|
63000
|
+
* Creates a new FilterParameters instance using the specified properties.
|
|
63001
|
+
* @function create
|
|
63002
|
+
* @memberof proto.QP.FilterParameters
|
|
63003
|
+
* @static
|
|
63004
|
+
* @param {proto.QP.IFilterParameters=} [properties] Properties to set
|
|
63005
|
+
* @returns {proto.QP.FilterParameters} FilterParameters instance
|
|
63006
|
+
*/
|
|
63007
|
+
FilterParameters.create = function create(properties) {
|
|
63008
|
+
return new FilterParameters(properties);
|
|
63009
|
+
};
|
|
63010
|
+
|
|
63011
|
+
/**
|
|
63012
|
+
* Encodes the specified FilterParameters message. Does not implicitly {@link proto.QP.FilterParameters.verify|verify} messages.
|
|
63013
|
+
* @function encode
|
|
63014
|
+
* @memberof proto.QP.FilterParameters
|
|
63015
|
+
* @static
|
|
63016
|
+
* @param {proto.QP.IFilterParameters} message FilterParameters message or plain object to encode
|
|
63017
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
63018
|
+
* @returns {$protobuf.Writer} Writer
|
|
63019
|
+
*/
|
|
63020
|
+
FilterParameters.encode = function encode(message, writer) {
|
|
63021
|
+
if (!writer)
|
|
63022
|
+
writer = $Writer.create();
|
|
63023
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
63024
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
|
|
63025
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
63026
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
|
|
63027
|
+
return writer;
|
|
63028
|
+
};
|
|
63029
|
+
|
|
63030
|
+
/**
|
|
63031
|
+
* Encodes the specified FilterParameters message, length delimited. Does not implicitly {@link proto.QP.FilterParameters.verify|verify} messages.
|
|
63032
|
+
* @function encodeDelimited
|
|
63033
|
+
* @memberof proto.QP.FilterParameters
|
|
63034
|
+
* @static
|
|
63035
|
+
* @param {proto.QP.IFilterParameters} message FilterParameters message or plain object to encode
|
|
63036
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
63037
|
+
* @returns {$protobuf.Writer} Writer
|
|
63038
|
+
*/
|
|
63039
|
+
FilterParameters.encodeDelimited = function encodeDelimited(message, writer) {
|
|
63040
|
+
return this.encode(message, writer).ldelim();
|
|
63041
|
+
};
|
|
63042
|
+
|
|
63043
|
+
/**
|
|
63044
|
+
* Decodes a FilterParameters message from the specified reader or buffer.
|
|
63045
|
+
* @function decode
|
|
63046
|
+
* @memberof proto.QP.FilterParameters
|
|
63047
|
+
* @static
|
|
63048
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
63049
|
+
* @param {number} [length] Message length if known beforehand
|
|
63050
|
+
* @returns {proto.QP.FilterParameters} FilterParameters
|
|
63051
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63052
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
63053
|
+
*/
|
|
63054
|
+
FilterParameters.decode = function decode(reader, length) {
|
|
63055
|
+
if (!(reader instanceof $Reader))
|
|
63056
|
+
reader = $Reader.create(reader);
|
|
63057
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.QP.FilterParameters();
|
|
63058
|
+
while (reader.pos < end) {
|
|
63059
|
+
var tag = reader.uint32();
|
|
63060
|
+
switch (tag >>> 3) {
|
|
63061
|
+
case 1:
|
|
63062
|
+
message.key = reader.string();
|
|
63063
|
+
break;
|
|
63064
|
+
case 2:
|
|
63065
|
+
message.value = reader.string();
|
|
63066
|
+
break;
|
|
63067
|
+
default:
|
|
63068
|
+
reader.skipType(tag & 7);
|
|
63069
|
+
break;
|
|
63070
|
+
}
|
|
63071
|
+
}
|
|
63072
|
+
return message;
|
|
63073
|
+
};
|
|
63074
|
+
|
|
63075
|
+
/**
|
|
63076
|
+
* Decodes a FilterParameters message from the specified reader or buffer, length delimited.
|
|
63077
|
+
* @function decodeDelimited
|
|
63078
|
+
* @memberof proto.QP.FilterParameters
|
|
63079
|
+
* @static
|
|
63080
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
63081
|
+
* @returns {proto.QP.FilterParameters} FilterParameters
|
|
63082
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63083
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
63084
|
+
*/
|
|
63085
|
+
FilterParameters.decodeDelimited = function decodeDelimited(reader) {
|
|
63086
|
+
if (!(reader instanceof $Reader))
|
|
63087
|
+
reader = new $Reader(reader);
|
|
63088
|
+
return this.decode(reader, reader.uint32());
|
|
63089
|
+
};
|
|
63090
|
+
|
|
63091
|
+
/**
|
|
63092
|
+
* Verifies a FilterParameters message.
|
|
63093
|
+
* @function verify
|
|
63094
|
+
* @memberof proto.QP.FilterParameters
|
|
63095
|
+
* @static
|
|
63096
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
63097
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
63098
|
+
*/
|
|
63099
|
+
FilterParameters.verify = function verify(message) {
|
|
63100
|
+
if (typeof message !== "object" || message === null)
|
|
63101
|
+
return "object expected";
|
|
63102
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
63103
|
+
if (!$util.isString(message.key))
|
|
63104
|
+
return "key: string expected";
|
|
63105
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
63106
|
+
if (!$util.isString(message.value))
|
|
63107
|
+
return "value: string expected";
|
|
63108
|
+
return null;
|
|
63109
|
+
};
|
|
63110
|
+
|
|
63111
|
+
/**
|
|
63112
|
+
* Creates a FilterParameters message from a plain object. Also converts values to their respective internal types.
|
|
63113
|
+
* @function fromObject
|
|
63114
|
+
* @memberof proto.QP.FilterParameters
|
|
63115
|
+
* @static
|
|
63116
|
+
* @param {Object.<string,*>} object Plain object
|
|
63117
|
+
* @returns {proto.QP.FilterParameters} FilterParameters
|
|
63118
|
+
*/
|
|
63119
|
+
FilterParameters.fromObject = function fromObject(object) {
|
|
63120
|
+
if (object instanceof $root.proto.QP.FilterParameters)
|
|
63121
|
+
return object;
|
|
63122
|
+
var message = new $root.proto.QP.FilterParameters();
|
|
63123
|
+
if (object.key != null)
|
|
63124
|
+
message.key = String(object.key);
|
|
63125
|
+
if (object.value != null)
|
|
63126
|
+
message.value = String(object.value);
|
|
63127
|
+
return message;
|
|
63128
|
+
};
|
|
63129
|
+
|
|
63130
|
+
/**
|
|
63131
|
+
* Creates a plain object from a FilterParameters message. Also converts values to other types if specified.
|
|
63132
|
+
* @function toObject
|
|
63133
|
+
* @memberof proto.QP.FilterParameters
|
|
63134
|
+
* @static
|
|
63135
|
+
* @param {proto.QP.FilterParameters} message FilterParameters
|
|
63136
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
63137
|
+
* @returns {Object.<string,*>} Plain object
|
|
63138
|
+
*/
|
|
63139
|
+
FilterParameters.toObject = function toObject(message, options) {
|
|
63140
|
+
if (!options)
|
|
63141
|
+
options = {};
|
|
63142
|
+
var object = {};
|
|
63143
|
+
if (options.defaults) {
|
|
63144
|
+
object.key = "";
|
|
63145
|
+
object.value = "";
|
|
63146
|
+
}
|
|
63147
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
63148
|
+
object.key = message.key;
|
|
63149
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
63150
|
+
object.value = message.value;
|
|
63151
|
+
return object;
|
|
63152
|
+
};
|
|
63153
|
+
|
|
63154
|
+
/**
|
|
63155
|
+
* Converts this FilterParameters to JSON.
|
|
63156
|
+
* @function toJSON
|
|
63157
|
+
* @memberof proto.QP.FilterParameters
|
|
63158
|
+
* @instance
|
|
63159
|
+
* @returns {Object.<string,*>} JSON object
|
|
63160
|
+
*/
|
|
63161
|
+
FilterParameters.prototype.toJSON = function toJSON() {
|
|
63162
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
63163
|
+
};
|
|
63164
|
+
|
|
63165
|
+
return FilterParameters;
|
|
63166
|
+
})();
|
|
63167
|
+
|
|
63168
|
+
/**
|
|
63169
|
+
* FilterResult enum.
|
|
63170
|
+
* @name proto.QP.FilterResult
|
|
63171
|
+
* @enum {number}
|
|
63172
|
+
* @property {number} TRUE=1 TRUE value
|
|
63173
|
+
* @property {number} FALSE=2 FALSE value
|
|
63174
|
+
* @property {number} UNKNOWN=3 UNKNOWN value
|
|
63175
|
+
*/
|
|
63176
|
+
QP.FilterResult = (function() {
|
|
63177
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
63178
|
+
values[valuesById[1] = "TRUE"] = 1;
|
|
63179
|
+
values[valuesById[2] = "FALSE"] = 2;
|
|
63180
|
+
values[valuesById[3] = "UNKNOWN"] = 3;
|
|
63181
|
+
return values;
|
|
63182
|
+
})();
|
|
63183
|
+
|
|
63184
|
+
return QP;
|
|
63185
|
+
})();
|
|
63186
|
+
|
|
62513
63187
|
proto.Reaction = (function() {
|
|
62514
63188
|
|
|
62515
63189
|
/**
|
|
@@ -84139,7 +84813,6 @@ $root.proto = (function() {
|
|
|
84139
84813
|
* @property {string|null} [originalSelfAuthorUserJidString] WebMessageInfo originalSelfAuthorUserJidString
|
|
84140
84814
|
* @property {number|Long|null} [revokeMessageTimestamp] WebMessageInfo revokeMessageTimestamp
|
|
84141
84815
|
* @property {proto.IPinInChat|null} [pinInChat] WebMessageInfo pinInChat
|
|
84142
|
-
* @property {proto.IFutureproofMessageSecretMessage|null} [futureproofMessageSecretMessage] WebMessageInfo futureproofMessageSecretMessage
|
|
84143
84816
|
*/
|
|
84144
84817
|
|
|
84145
84818
|
/**
|
|
@@ -84514,14 +85187,6 @@ $root.proto = (function() {
|
|
|
84514
85187
|
*/
|
|
84515
85188
|
WebMessageInfo.prototype.pinInChat = null;
|
|
84516
85189
|
|
|
84517
|
-
/**
|
|
84518
|
-
* WebMessageInfo futureproofMessageSecretMessage.
|
|
84519
|
-
* @member {proto.IFutureproofMessageSecretMessage|null|undefined} futureproofMessageSecretMessage
|
|
84520
|
-
* @memberof proto.WebMessageInfo
|
|
84521
|
-
* @instance
|
|
84522
|
-
*/
|
|
84523
|
-
WebMessageInfo.prototype.futureproofMessageSecretMessage = null;
|
|
84524
|
-
|
|
84525
85190
|
/**
|
|
84526
85191
|
* Creates a new WebMessageInfo instance using the specified properties.
|
|
84527
85192
|
* @function create
|
|
@@ -84638,8 +85303,6 @@ $root.proto = (function() {
|
|
|
84638
85303
|
writer.uint32(/* id 52, wireType 0 =*/416).uint64(message.revokeMessageTimestamp);
|
|
84639
85304
|
if (message.pinInChat != null && Object.hasOwnProperty.call(message, "pinInChat"))
|
|
84640
85305
|
$root.proto.PinInChat.encode(message.pinInChat, writer.uint32(/* id 54, wireType 2 =*/434).fork()).ldelim();
|
|
84641
|
-
if (message.futureproofMessageSecretMessage != null && Object.hasOwnProperty.call(message, "futureproofMessageSecretMessage"))
|
|
84642
|
-
$root.proto.FutureproofMessageSecretMessage.encode(message.futureproofMessageSecretMessage, writer.uint32(/* id 55, wireType 2 =*/442).fork()).ldelim();
|
|
84643
85306
|
return writer;
|
|
84644
85307
|
};
|
|
84645
85308
|
|
|
@@ -84816,9 +85479,6 @@ $root.proto = (function() {
|
|
|
84816
85479
|
case 54:
|
|
84817
85480
|
message.pinInChat = $root.proto.PinInChat.decode(reader, reader.uint32());
|
|
84818
85481
|
break;
|
|
84819
|
-
case 55:
|
|
84820
|
-
message.futureproofMessageSecretMessage = $root.proto.FutureproofMessageSecretMessage.decode(reader, reader.uint32());
|
|
84821
|
-
break;
|
|
84822
85482
|
default:
|
|
84823
85483
|
reader.skipType(tag & 7);
|
|
84824
85484
|
break;
|
|
@@ -85241,11 +85901,6 @@ $root.proto = (function() {
|
|
|
85241
85901
|
if (error)
|
|
85242
85902
|
return "pinInChat." + error;
|
|
85243
85903
|
}
|
|
85244
|
-
if (message.futureproofMessageSecretMessage != null && message.hasOwnProperty("futureproofMessageSecretMessage")) {
|
|
85245
|
-
var error = $root.proto.FutureproofMessageSecretMessage.verify(message.futureproofMessageSecretMessage);
|
|
85246
|
-
if (error)
|
|
85247
|
-
return "futureproofMessageSecretMessage." + error;
|
|
85248
|
-
}
|
|
85249
85904
|
return null;
|
|
85250
85905
|
};
|
|
85251
85906
|
|
|
@@ -86232,11 +86887,6 @@ $root.proto = (function() {
|
|
|
86232
86887
|
throw TypeError(".proto.WebMessageInfo.pinInChat: object expected");
|
|
86233
86888
|
message.pinInChat = $root.proto.PinInChat.fromObject(object.pinInChat);
|
|
86234
86889
|
}
|
|
86235
|
-
if (object.futureproofMessageSecretMessage != null) {
|
|
86236
|
-
if (typeof object.futureproofMessageSecretMessage !== "object")
|
|
86237
|
-
throw TypeError(".proto.WebMessageInfo.futureproofMessageSecretMessage: object expected");
|
|
86238
|
-
message.futureproofMessageSecretMessage = $root.proto.FutureproofMessageSecretMessage.fromObject(object.futureproofMessageSecretMessage);
|
|
86239
|
-
}
|
|
86240
86890
|
return message;
|
|
86241
86891
|
};
|
|
86242
86892
|
|
|
@@ -86334,7 +86984,6 @@ $root.proto = (function() {
|
|
|
86334
86984
|
} else
|
|
86335
86985
|
object.revokeMessageTimestamp = options.longs === String ? "0" : 0;
|
|
86336
86986
|
object.pinInChat = null;
|
|
86337
|
-
object.futureproofMessageSecretMessage = null;
|
|
86338
86987
|
}
|
|
86339
86988
|
if (message.key != null && message.hasOwnProperty("key"))
|
|
86340
86989
|
object.key = $root.proto.MessageKey.toObject(message.key, options);
|
|
@@ -86451,8 +87100,6 @@ $root.proto = (function() {
|
|
|
86451
87100
|
object.revokeMessageTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.revokeMessageTimestamp) : options.longs === Number ? new $util.LongBits(message.revokeMessageTimestamp.low >>> 0, message.revokeMessageTimestamp.high >>> 0).toNumber(true) : message.revokeMessageTimestamp;
|
|
86452
87101
|
if (message.pinInChat != null && message.hasOwnProperty("pinInChat"))
|
|
86453
87102
|
object.pinInChat = $root.proto.PinInChat.toObject(message.pinInChat, options);
|
|
86454
|
-
if (message.futureproofMessageSecretMessage != null && message.hasOwnProperty("futureproofMessageSecretMessage"))
|
|
86455
|
-
object.futureproofMessageSecretMessage = $root.proto.FutureproofMessageSecretMessage.toObject(message.futureproofMessageSecretMessage, options);
|
|
86456
87103
|
return object;
|
|
86457
87104
|
};
|
|
86458
87105
|
|