@wppconnect/wa-proto 1.1.2 → 1.1.4
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/CHANGELOG.md +8 -0
- package/WAProto.proto +97 -2
- package/dist/index.d.ts +854 -9
- package/dist/index.js +2575 -35
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -4324,9 +4324,20 @@ $root.waproto = (function() {
|
|
|
4324
4324
|
case 2:
|
|
4325
4325
|
case 3:
|
|
4326
4326
|
case 4:
|
|
4327
|
+
case 5:
|
|
4328
|
+
case 6:
|
|
4329
|
+
case 7:
|
|
4327
4330
|
case 10:
|
|
4328
4331
|
case 11:
|
|
4329
4332
|
case 12:
|
|
4333
|
+
case 13:
|
|
4334
|
+
case 14:
|
|
4335
|
+
case 15:
|
|
4336
|
+
case 16:
|
|
4337
|
+
case 17:
|
|
4338
|
+
case 18:
|
|
4339
|
+
case 19:
|
|
4340
|
+
case 20:
|
|
4330
4341
|
break;
|
|
4331
4342
|
}
|
|
4332
4343
|
}
|
|
@@ -4372,6 +4383,18 @@ $root.waproto = (function() {
|
|
|
4372
4383
|
case 4:
|
|
4373
4384
|
message.capabilities[i] = 4;
|
|
4374
4385
|
break;
|
|
4386
|
+
case "RICH_RESPONSE_THREAD_SURFING":
|
|
4387
|
+
case 5:
|
|
4388
|
+
message.capabilities[i] = 5;
|
|
4389
|
+
break;
|
|
4390
|
+
case "RICH_RESPONSE_TABLE":
|
|
4391
|
+
case 6:
|
|
4392
|
+
message.capabilities[i] = 6;
|
|
4393
|
+
break;
|
|
4394
|
+
case "RICH_RESPONSE_CODE":
|
|
4395
|
+
case 7:
|
|
4396
|
+
message.capabilities[i] = 7;
|
|
4397
|
+
break;
|
|
4375
4398
|
case "WA_IG_1P_PLUGIN_RANKING_CONTROL":
|
|
4376
4399
|
case 10:
|
|
4377
4400
|
message.capabilities[i] = 10;
|
|
@@ -4384,6 +4407,38 @@ $root.waproto = (function() {
|
|
|
4384
4407
|
case 12:
|
|
4385
4408
|
message.capabilities[i] = 12;
|
|
4386
4409
|
break;
|
|
4410
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_3":
|
|
4411
|
+
case 13:
|
|
4412
|
+
message.capabilities[i] = 13;
|
|
4413
|
+
break;
|
|
4414
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_4":
|
|
4415
|
+
case 14:
|
|
4416
|
+
message.capabilities[i] = 14;
|
|
4417
|
+
break;
|
|
4418
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_5":
|
|
4419
|
+
case 15:
|
|
4420
|
+
message.capabilities[i] = 15;
|
|
4421
|
+
break;
|
|
4422
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_6":
|
|
4423
|
+
case 16:
|
|
4424
|
+
message.capabilities[i] = 16;
|
|
4425
|
+
break;
|
|
4426
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_7":
|
|
4427
|
+
case 17:
|
|
4428
|
+
message.capabilities[i] = 17;
|
|
4429
|
+
break;
|
|
4430
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_8":
|
|
4431
|
+
case 18:
|
|
4432
|
+
message.capabilities[i] = 18;
|
|
4433
|
+
break;
|
|
4434
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_9":
|
|
4435
|
+
case 19:
|
|
4436
|
+
message.capabilities[i] = 19;
|
|
4437
|
+
break;
|
|
4438
|
+
case "WA_IG_1P_PLUGIN_RANKING_UPDATE_10":
|
|
4439
|
+
case 20:
|
|
4440
|
+
message.capabilities[i] = 20;
|
|
4441
|
+
break;
|
|
4387
4442
|
}
|
|
4388
4443
|
}
|
|
4389
4444
|
return message;
|
|
@@ -4446,9 +4501,20 @@ $root.waproto = (function() {
|
|
|
4446
4501
|
* @property {number} RICH_RESPONSE_HEADING=2 RICH_RESPONSE_HEADING value
|
|
4447
4502
|
* @property {number} RICH_RESPONSE_NESTED_LIST=3 RICH_RESPONSE_NESTED_LIST value
|
|
4448
4503
|
* @property {number} AI_MEMORY=4 AI_MEMORY value
|
|
4504
|
+
* @property {number} RICH_RESPONSE_THREAD_SURFING=5 RICH_RESPONSE_THREAD_SURFING value
|
|
4505
|
+
* @property {number} RICH_RESPONSE_TABLE=6 RICH_RESPONSE_TABLE value
|
|
4506
|
+
* @property {number} RICH_RESPONSE_CODE=7 RICH_RESPONSE_CODE value
|
|
4449
4507
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_CONTROL=10 WA_IG_1P_PLUGIN_RANKING_CONTROL value
|
|
4450
4508
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11 WA_IG_1P_PLUGIN_RANKING_UPDATE_1 value
|
|
4451
4509
|
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12 WA_IG_1P_PLUGIN_RANKING_UPDATE_2 value
|
|
4510
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_3=13 WA_IG_1P_PLUGIN_RANKING_UPDATE_3 value
|
|
4511
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_4=14 WA_IG_1P_PLUGIN_RANKING_UPDATE_4 value
|
|
4512
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_5=15 WA_IG_1P_PLUGIN_RANKING_UPDATE_5 value
|
|
4513
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_6=16 WA_IG_1P_PLUGIN_RANKING_UPDATE_6 value
|
|
4514
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_7=17 WA_IG_1P_PLUGIN_RANKING_UPDATE_7 value
|
|
4515
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18 WA_IG_1P_PLUGIN_RANKING_UPDATE_8 value
|
|
4516
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19 WA_IG_1P_PLUGIN_RANKING_UPDATE_9 value
|
|
4517
|
+
* @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20 WA_IG_1P_PLUGIN_RANKING_UPDATE_10 value
|
|
4452
4518
|
*/
|
|
4453
4519
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
|
4454
4520
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -4456,9 +4522,20 @@ $root.waproto = (function() {
|
|
|
4456
4522
|
values[valuesById[2] = "RICH_RESPONSE_HEADING"] = 2;
|
|
4457
4523
|
values[valuesById[3] = "RICH_RESPONSE_NESTED_LIST"] = 3;
|
|
4458
4524
|
values[valuesById[4] = "AI_MEMORY"] = 4;
|
|
4525
|
+
values[valuesById[5] = "RICH_RESPONSE_THREAD_SURFING"] = 5;
|
|
4526
|
+
values[valuesById[6] = "RICH_RESPONSE_TABLE"] = 6;
|
|
4527
|
+
values[valuesById[7] = "RICH_RESPONSE_CODE"] = 7;
|
|
4459
4528
|
values[valuesById[10] = "WA_IG_1P_PLUGIN_RANKING_CONTROL"] = 10;
|
|
4460
4529
|
values[valuesById[11] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_1"] = 11;
|
|
4461
4530
|
values[valuesById[12] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_2"] = 12;
|
|
4531
|
+
values[valuesById[13] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_3"] = 13;
|
|
4532
|
+
values[valuesById[14] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_4"] = 14;
|
|
4533
|
+
values[valuesById[15] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_5"] = 15;
|
|
4534
|
+
values[valuesById[16] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_6"] = 16;
|
|
4535
|
+
values[valuesById[17] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_7"] = 17;
|
|
4536
|
+
values[valuesById[18] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_8"] = 18;
|
|
4537
|
+
values[valuesById[19] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_9"] = 19;
|
|
4538
|
+
values[valuesById[20] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_10"] = 20;
|
|
4462
4539
|
return values;
|
|
4463
4540
|
})();
|
|
4464
4541
|
|
|
@@ -5999,6 +6076,8 @@ $root.waproto = (function() {
|
|
|
5999
6076
|
* @property {waproto.IBotCapabilityMetadata|null} [capabilityMetadata] BotMetadata capabilityMetadata
|
|
6000
6077
|
* @property {waproto.IBotImagineMetadata|null} [imagineMetadata] BotMetadata imagineMetadata
|
|
6001
6078
|
* @property {waproto.IBotMemoryMetadata|null} [memoryMetadata] BotMetadata memoryMetadata
|
|
6079
|
+
* @property {waproto.IBotRenderingMetadata|null} [renderingMetadata] BotMetadata renderingMetadata
|
|
6080
|
+
* @property {waproto.IBotMetricsMetadata|null} [botMetricsMetadata] BotMetadata botMetricsMetadata
|
|
6002
6081
|
*/
|
|
6003
6082
|
|
|
6004
6083
|
/**
|
|
@@ -6136,6 +6215,22 @@ $root.waproto = (function() {
|
|
|
6136
6215
|
*/
|
|
6137
6216
|
BotMetadata.prototype.memoryMetadata = null;
|
|
6138
6217
|
|
|
6218
|
+
/**
|
|
6219
|
+
* BotMetadata renderingMetadata.
|
|
6220
|
+
* @member {waproto.IBotRenderingMetadata|null|undefined} renderingMetadata
|
|
6221
|
+
* @memberof waproto.BotMetadata
|
|
6222
|
+
* @instance
|
|
6223
|
+
*/
|
|
6224
|
+
BotMetadata.prototype.renderingMetadata = null;
|
|
6225
|
+
|
|
6226
|
+
/**
|
|
6227
|
+
* BotMetadata botMetricsMetadata.
|
|
6228
|
+
* @member {waproto.IBotMetricsMetadata|null|undefined} botMetricsMetadata
|
|
6229
|
+
* @memberof waproto.BotMetadata
|
|
6230
|
+
* @instance
|
|
6231
|
+
*/
|
|
6232
|
+
BotMetadata.prototype.botMetricsMetadata = null;
|
|
6233
|
+
|
|
6139
6234
|
// OneOf field names bound to virtual getters and setters
|
|
6140
6235
|
var $oneOfFields;
|
|
6141
6236
|
|
|
@@ -6229,6 +6324,18 @@ $root.waproto = (function() {
|
|
|
6229
6324
|
set: $util.oneOfSetter($oneOfFields)
|
|
6230
6325
|
});
|
|
6231
6326
|
|
|
6327
|
+
// Virtual OneOf for proto3 optional field
|
|
6328
|
+
Object.defineProperty(BotMetadata.prototype, "_renderingMetadata", {
|
|
6329
|
+
get: $util.oneOfGetter($oneOfFields = ["renderingMetadata"]),
|
|
6330
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6331
|
+
});
|
|
6332
|
+
|
|
6333
|
+
// Virtual OneOf for proto3 optional field
|
|
6334
|
+
Object.defineProperty(BotMetadata.prototype, "_botMetricsMetadata", {
|
|
6335
|
+
get: $util.oneOfGetter($oneOfFields = ["botMetricsMetadata"]),
|
|
6336
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6337
|
+
});
|
|
6338
|
+
|
|
6232
6339
|
/**
|
|
6233
6340
|
* Creates a new BotMetadata instance using the specified properties.
|
|
6234
6341
|
* @function create
|
|
@@ -6283,6 +6390,10 @@ $root.waproto = (function() {
|
|
|
6283
6390
|
$root.waproto.BotImagineMetadata.encode(message.imagineMetadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
6284
6391
|
if (message.memoryMetadata != null && Object.hasOwnProperty.call(message, "memoryMetadata"))
|
|
6285
6392
|
$root.waproto.BotMemoryMetadata.encode(message.memoryMetadata, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
6393
|
+
if (message.renderingMetadata != null && Object.hasOwnProperty.call(message, "renderingMetadata"))
|
|
6394
|
+
$root.waproto.BotRenderingMetadata.encode(message.renderingMetadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
6395
|
+
if (message.botMetricsMetadata != null && Object.hasOwnProperty.call(message, "botMetricsMetadata"))
|
|
6396
|
+
$root.waproto.BotMetricsMetadata.encode(message.botMetricsMetadata, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
6286
6397
|
return writer;
|
|
6287
6398
|
};
|
|
6288
6399
|
|
|
@@ -6377,6 +6488,14 @@ $root.waproto = (function() {
|
|
|
6377
6488
|
message.memoryMetadata = $root.waproto.BotMemoryMetadata.decode(reader, reader.uint32());
|
|
6378
6489
|
break;
|
|
6379
6490
|
}
|
|
6491
|
+
case 16: {
|
|
6492
|
+
message.renderingMetadata = $root.waproto.BotRenderingMetadata.decode(reader, reader.uint32());
|
|
6493
|
+
break;
|
|
6494
|
+
}
|
|
6495
|
+
case 17: {
|
|
6496
|
+
message.botMetricsMetadata = $root.waproto.BotMetricsMetadata.decode(reader, reader.uint32());
|
|
6497
|
+
break;
|
|
6498
|
+
}
|
|
6380
6499
|
default:
|
|
6381
6500
|
reader.skipType(tag & 7);
|
|
6382
6501
|
break;
|
|
@@ -6521,6 +6640,22 @@ $root.waproto = (function() {
|
|
|
6521
6640
|
return "memoryMetadata." + error;
|
|
6522
6641
|
}
|
|
6523
6642
|
}
|
|
6643
|
+
if (message.renderingMetadata != null && message.hasOwnProperty("renderingMetadata")) {
|
|
6644
|
+
properties._renderingMetadata = 1;
|
|
6645
|
+
{
|
|
6646
|
+
var error = $root.waproto.BotRenderingMetadata.verify(message.renderingMetadata);
|
|
6647
|
+
if (error)
|
|
6648
|
+
return "renderingMetadata." + error;
|
|
6649
|
+
}
|
|
6650
|
+
}
|
|
6651
|
+
if (message.botMetricsMetadata != null && message.hasOwnProperty("botMetricsMetadata")) {
|
|
6652
|
+
properties._botMetricsMetadata = 1;
|
|
6653
|
+
{
|
|
6654
|
+
var error = $root.waproto.BotMetricsMetadata.verify(message.botMetricsMetadata);
|
|
6655
|
+
if (error)
|
|
6656
|
+
return "botMetricsMetadata." + error;
|
|
6657
|
+
}
|
|
6658
|
+
}
|
|
6524
6659
|
return null;
|
|
6525
6660
|
};
|
|
6526
6661
|
|
|
@@ -6599,6 +6734,16 @@ $root.waproto = (function() {
|
|
|
6599
6734
|
throw TypeError(".waproto.BotMetadata.memoryMetadata: object expected");
|
|
6600
6735
|
message.memoryMetadata = $root.waproto.BotMemoryMetadata.fromObject(object.memoryMetadata);
|
|
6601
6736
|
}
|
|
6737
|
+
if (object.renderingMetadata != null) {
|
|
6738
|
+
if (typeof object.renderingMetadata !== "object")
|
|
6739
|
+
throw TypeError(".waproto.BotMetadata.renderingMetadata: object expected");
|
|
6740
|
+
message.renderingMetadata = $root.waproto.BotRenderingMetadata.fromObject(object.renderingMetadata);
|
|
6741
|
+
}
|
|
6742
|
+
if (object.botMetricsMetadata != null) {
|
|
6743
|
+
if (typeof object.botMetricsMetadata !== "object")
|
|
6744
|
+
throw TypeError(".waproto.BotMetadata.botMetricsMetadata: object expected");
|
|
6745
|
+
message.botMetricsMetadata = $root.waproto.BotMetricsMetadata.fromObject(object.botMetricsMetadata);
|
|
6746
|
+
}
|
|
6602
6747
|
return message;
|
|
6603
6748
|
};
|
|
6604
6749
|
|
|
@@ -6690,6 +6835,16 @@ $root.waproto = (function() {
|
|
|
6690
6835
|
if (options.oneofs)
|
|
6691
6836
|
object._memoryMetadata = "memoryMetadata";
|
|
6692
6837
|
}
|
|
6838
|
+
if (message.renderingMetadata != null && message.hasOwnProperty("renderingMetadata")) {
|
|
6839
|
+
object.renderingMetadata = $root.waproto.BotRenderingMetadata.toObject(message.renderingMetadata, options);
|
|
6840
|
+
if (options.oneofs)
|
|
6841
|
+
object._renderingMetadata = "renderingMetadata";
|
|
6842
|
+
}
|
|
6843
|
+
if (message.botMetricsMetadata != null && message.hasOwnProperty("botMetricsMetadata")) {
|
|
6844
|
+
object.botMetricsMetadata = $root.waproto.BotMetricsMetadata.toObject(message.botMetricsMetadata, options);
|
|
6845
|
+
if (options.oneofs)
|
|
6846
|
+
object._botMetricsMetadata = "botMetricsMetadata";
|
|
6847
|
+
}
|
|
6693
6848
|
return object;
|
|
6694
6849
|
};
|
|
6695
6850
|
|
|
@@ -6722,6 +6877,386 @@ $root.waproto = (function() {
|
|
|
6722
6877
|
return BotMetadata;
|
|
6723
6878
|
})();
|
|
6724
6879
|
|
|
6880
|
+
/**
|
|
6881
|
+
* BotMetricsEntryPoint enum.
|
|
6882
|
+
* @name waproto.BotMetricsEntryPoint
|
|
6883
|
+
* @enum {number}
|
|
6884
|
+
* @property {number} FAVICON=1 FAVICON value
|
|
6885
|
+
* @property {number} CHATLIST=2 CHATLIST value
|
|
6886
|
+
* @property {number} AISEARCH_NULL_STATE_PAPER_PLANE=3 AISEARCH_NULL_STATE_PAPER_PLANE value
|
|
6887
|
+
* @property {number} AISEARCH_NULL_STATE_SUGGESTION=4 AISEARCH_NULL_STATE_SUGGESTION value
|
|
6888
|
+
* @property {number} AISEARCH_TYPE_AHEAD_SUGGESTION=5 AISEARCH_TYPE_AHEAD_SUGGESTION value
|
|
6889
|
+
* @property {number} AISEARCH_TYPE_AHEAD_PAPER_PLANE=6 AISEARCH_TYPE_AHEAD_PAPER_PLANE value
|
|
6890
|
+
* @property {number} AISEARCH_TYPE_AHEAD_RESULT_CHATLIST=7 AISEARCH_TYPE_AHEAD_RESULT_CHATLIST value
|
|
6891
|
+
* @property {number} AISEARCH_TYPE_AHEAD_RESULT_MESSAGES=8 AISEARCH_TYPE_AHEAD_RESULT_MESSAGES value
|
|
6892
|
+
* @property {number} AIVOICE_SEARCH_BAR=9 AIVOICE_SEARCH_BAR value
|
|
6893
|
+
* @property {number} AIVOICE_FAVICON=10 AIVOICE_FAVICON value
|
|
6894
|
+
* @property {number} AISTUDIO=11 AISTUDIO value
|
|
6895
|
+
* @property {number} DEEPLINK=12 DEEPLINK value
|
|
6896
|
+
* @property {number} NOTIFICATION=13 NOTIFICATION value
|
|
6897
|
+
* @property {number} PROFILE_MESSAGE_BUTTON=14 PROFILE_MESSAGE_BUTTON value
|
|
6898
|
+
* @property {number} FORWARD=15 FORWARD value
|
|
6899
|
+
* @property {number} APP_SHORTCUT=16 APP_SHORTCUT value
|
|
6900
|
+
*/
|
|
6901
|
+
waproto.BotMetricsEntryPoint = (function() {
|
|
6902
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
6903
|
+
values[valuesById[1] = "FAVICON"] = 1;
|
|
6904
|
+
values[valuesById[2] = "CHATLIST"] = 2;
|
|
6905
|
+
values[valuesById[3] = "AISEARCH_NULL_STATE_PAPER_PLANE"] = 3;
|
|
6906
|
+
values[valuesById[4] = "AISEARCH_NULL_STATE_SUGGESTION"] = 4;
|
|
6907
|
+
values[valuesById[5] = "AISEARCH_TYPE_AHEAD_SUGGESTION"] = 5;
|
|
6908
|
+
values[valuesById[6] = "AISEARCH_TYPE_AHEAD_PAPER_PLANE"] = 6;
|
|
6909
|
+
values[valuesById[7] = "AISEARCH_TYPE_AHEAD_RESULT_CHATLIST"] = 7;
|
|
6910
|
+
values[valuesById[8] = "AISEARCH_TYPE_AHEAD_RESULT_MESSAGES"] = 8;
|
|
6911
|
+
values[valuesById[9] = "AIVOICE_SEARCH_BAR"] = 9;
|
|
6912
|
+
values[valuesById[10] = "AIVOICE_FAVICON"] = 10;
|
|
6913
|
+
values[valuesById[11] = "AISTUDIO"] = 11;
|
|
6914
|
+
values[valuesById[12] = "DEEPLINK"] = 12;
|
|
6915
|
+
values[valuesById[13] = "NOTIFICATION"] = 13;
|
|
6916
|
+
values[valuesById[14] = "PROFILE_MESSAGE_BUTTON"] = 14;
|
|
6917
|
+
values[valuesById[15] = "FORWARD"] = 15;
|
|
6918
|
+
values[valuesById[16] = "APP_SHORTCUT"] = 16;
|
|
6919
|
+
return values;
|
|
6920
|
+
})();
|
|
6921
|
+
|
|
6922
|
+
waproto.BotMetricsMetadata = (function() {
|
|
6923
|
+
|
|
6924
|
+
/**
|
|
6925
|
+
* Properties of a BotMetricsMetadata.
|
|
6926
|
+
* @memberof waproto
|
|
6927
|
+
* @interface IBotMetricsMetadata
|
|
6928
|
+
* @property {string|null} [destinationId] BotMetricsMetadata destinationId
|
|
6929
|
+
* @property {waproto.BotMetricsEntryPoint|null} [destinationEntryPoint] BotMetricsMetadata destinationEntryPoint
|
|
6930
|
+
*/
|
|
6931
|
+
|
|
6932
|
+
/**
|
|
6933
|
+
* Constructs a new BotMetricsMetadata.
|
|
6934
|
+
* @memberof waproto
|
|
6935
|
+
* @classdesc Represents a BotMetricsMetadata.
|
|
6936
|
+
* @implements IBotMetricsMetadata
|
|
6937
|
+
* @constructor
|
|
6938
|
+
* @param {waproto.IBotMetricsMetadata=} [properties] Properties to set
|
|
6939
|
+
*/
|
|
6940
|
+
function BotMetricsMetadata(properties) {
|
|
6941
|
+
if (properties)
|
|
6942
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6943
|
+
if (properties[keys[i]] != null)
|
|
6944
|
+
this[keys[i]] = properties[keys[i]];
|
|
6945
|
+
}
|
|
6946
|
+
|
|
6947
|
+
/**
|
|
6948
|
+
* BotMetricsMetadata destinationId.
|
|
6949
|
+
* @member {string|null|undefined} destinationId
|
|
6950
|
+
* @memberof waproto.BotMetricsMetadata
|
|
6951
|
+
* @instance
|
|
6952
|
+
*/
|
|
6953
|
+
BotMetricsMetadata.prototype.destinationId = null;
|
|
6954
|
+
|
|
6955
|
+
/**
|
|
6956
|
+
* BotMetricsMetadata destinationEntryPoint.
|
|
6957
|
+
* @member {waproto.BotMetricsEntryPoint|null|undefined} destinationEntryPoint
|
|
6958
|
+
* @memberof waproto.BotMetricsMetadata
|
|
6959
|
+
* @instance
|
|
6960
|
+
*/
|
|
6961
|
+
BotMetricsMetadata.prototype.destinationEntryPoint = null;
|
|
6962
|
+
|
|
6963
|
+
// OneOf field names bound to virtual getters and setters
|
|
6964
|
+
var $oneOfFields;
|
|
6965
|
+
|
|
6966
|
+
// Virtual OneOf for proto3 optional field
|
|
6967
|
+
Object.defineProperty(BotMetricsMetadata.prototype, "_destinationId", {
|
|
6968
|
+
get: $util.oneOfGetter($oneOfFields = ["destinationId"]),
|
|
6969
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6970
|
+
});
|
|
6971
|
+
|
|
6972
|
+
// Virtual OneOf for proto3 optional field
|
|
6973
|
+
Object.defineProperty(BotMetricsMetadata.prototype, "_destinationEntryPoint", {
|
|
6974
|
+
get: $util.oneOfGetter($oneOfFields = ["destinationEntryPoint"]),
|
|
6975
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
6976
|
+
});
|
|
6977
|
+
|
|
6978
|
+
/**
|
|
6979
|
+
* Creates a new BotMetricsMetadata instance using the specified properties.
|
|
6980
|
+
* @function create
|
|
6981
|
+
* @memberof waproto.BotMetricsMetadata
|
|
6982
|
+
* @static
|
|
6983
|
+
* @param {waproto.IBotMetricsMetadata=} [properties] Properties to set
|
|
6984
|
+
* @returns {waproto.BotMetricsMetadata} BotMetricsMetadata instance
|
|
6985
|
+
*/
|
|
6986
|
+
BotMetricsMetadata.create = function create(properties) {
|
|
6987
|
+
return new BotMetricsMetadata(properties);
|
|
6988
|
+
};
|
|
6989
|
+
|
|
6990
|
+
/**
|
|
6991
|
+
* Encodes the specified BotMetricsMetadata message. Does not implicitly {@link waproto.BotMetricsMetadata.verify|verify} messages.
|
|
6992
|
+
* @function encode
|
|
6993
|
+
* @memberof waproto.BotMetricsMetadata
|
|
6994
|
+
* @static
|
|
6995
|
+
* @param {waproto.IBotMetricsMetadata} message BotMetricsMetadata message or plain object to encode
|
|
6996
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6997
|
+
* @returns {$protobuf.Writer} Writer
|
|
6998
|
+
*/
|
|
6999
|
+
BotMetricsMetadata.encode = function encode(message, writer) {
|
|
7000
|
+
if (!writer)
|
|
7001
|
+
writer = $Writer.create();
|
|
7002
|
+
if (message.destinationId != null && Object.hasOwnProperty.call(message, "destinationId"))
|
|
7003
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.destinationId);
|
|
7004
|
+
if (message.destinationEntryPoint != null && Object.hasOwnProperty.call(message, "destinationEntryPoint"))
|
|
7005
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.destinationEntryPoint);
|
|
7006
|
+
return writer;
|
|
7007
|
+
};
|
|
7008
|
+
|
|
7009
|
+
/**
|
|
7010
|
+
* Encodes the specified BotMetricsMetadata message, length delimited. Does not implicitly {@link waproto.BotMetricsMetadata.verify|verify} messages.
|
|
7011
|
+
* @function encodeDelimited
|
|
7012
|
+
* @memberof waproto.BotMetricsMetadata
|
|
7013
|
+
* @static
|
|
7014
|
+
* @param {waproto.IBotMetricsMetadata} message BotMetricsMetadata message or plain object to encode
|
|
7015
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7016
|
+
* @returns {$protobuf.Writer} Writer
|
|
7017
|
+
*/
|
|
7018
|
+
BotMetricsMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7019
|
+
return this.encode(message, writer).ldelim();
|
|
7020
|
+
};
|
|
7021
|
+
|
|
7022
|
+
/**
|
|
7023
|
+
* Decodes a BotMetricsMetadata message from the specified reader or buffer.
|
|
7024
|
+
* @function decode
|
|
7025
|
+
* @memberof waproto.BotMetricsMetadata
|
|
7026
|
+
* @static
|
|
7027
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7028
|
+
* @param {number} [length] Message length if known beforehand
|
|
7029
|
+
* @returns {waproto.BotMetricsMetadata} BotMetricsMetadata
|
|
7030
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7031
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7032
|
+
*/
|
|
7033
|
+
BotMetricsMetadata.decode = function decode(reader, length) {
|
|
7034
|
+
if (!(reader instanceof $Reader))
|
|
7035
|
+
reader = $Reader.create(reader);
|
|
7036
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotMetricsMetadata();
|
|
7037
|
+
while (reader.pos < end) {
|
|
7038
|
+
var tag = reader.uint32();
|
|
7039
|
+
switch (tag >>> 3) {
|
|
7040
|
+
case 1: {
|
|
7041
|
+
message.destinationId = reader.string();
|
|
7042
|
+
break;
|
|
7043
|
+
}
|
|
7044
|
+
case 2: {
|
|
7045
|
+
message.destinationEntryPoint = reader.int32();
|
|
7046
|
+
break;
|
|
7047
|
+
}
|
|
7048
|
+
default:
|
|
7049
|
+
reader.skipType(tag & 7);
|
|
7050
|
+
break;
|
|
7051
|
+
}
|
|
7052
|
+
}
|
|
7053
|
+
return message;
|
|
7054
|
+
};
|
|
7055
|
+
|
|
7056
|
+
/**
|
|
7057
|
+
* Decodes a BotMetricsMetadata message from the specified reader or buffer, length delimited.
|
|
7058
|
+
* @function decodeDelimited
|
|
7059
|
+
* @memberof waproto.BotMetricsMetadata
|
|
7060
|
+
* @static
|
|
7061
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7062
|
+
* @returns {waproto.BotMetricsMetadata} BotMetricsMetadata
|
|
7063
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7064
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7065
|
+
*/
|
|
7066
|
+
BotMetricsMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
7067
|
+
if (!(reader instanceof $Reader))
|
|
7068
|
+
reader = new $Reader(reader);
|
|
7069
|
+
return this.decode(reader, reader.uint32());
|
|
7070
|
+
};
|
|
7071
|
+
|
|
7072
|
+
/**
|
|
7073
|
+
* Verifies a BotMetricsMetadata message.
|
|
7074
|
+
* @function verify
|
|
7075
|
+
* @memberof waproto.BotMetricsMetadata
|
|
7076
|
+
* @static
|
|
7077
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7078
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7079
|
+
*/
|
|
7080
|
+
BotMetricsMetadata.verify = function verify(message) {
|
|
7081
|
+
if (typeof message !== "object" || message === null)
|
|
7082
|
+
return "object expected";
|
|
7083
|
+
var properties = {};
|
|
7084
|
+
if (message.destinationId != null && message.hasOwnProperty("destinationId")) {
|
|
7085
|
+
properties._destinationId = 1;
|
|
7086
|
+
if (!$util.isString(message.destinationId))
|
|
7087
|
+
return "destinationId: string expected";
|
|
7088
|
+
}
|
|
7089
|
+
if (message.destinationEntryPoint != null && message.hasOwnProperty("destinationEntryPoint")) {
|
|
7090
|
+
properties._destinationEntryPoint = 1;
|
|
7091
|
+
switch (message.destinationEntryPoint) {
|
|
7092
|
+
default:
|
|
7093
|
+
return "destinationEntryPoint: enum value expected";
|
|
7094
|
+
case 1:
|
|
7095
|
+
case 2:
|
|
7096
|
+
case 3:
|
|
7097
|
+
case 4:
|
|
7098
|
+
case 5:
|
|
7099
|
+
case 6:
|
|
7100
|
+
case 7:
|
|
7101
|
+
case 8:
|
|
7102
|
+
case 9:
|
|
7103
|
+
case 10:
|
|
7104
|
+
case 11:
|
|
7105
|
+
case 12:
|
|
7106
|
+
case 13:
|
|
7107
|
+
case 14:
|
|
7108
|
+
case 15:
|
|
7109
|
+
case 16:
|
|
7110
|
+
break;
|
|
7111
|
+
}
|
|
7112
|
+
}
|
|
7113
|
+
return null;
|
|
7114
|
+
};
|
|
7115
|
+
|
|
7116
|
+
/**
|
|
7117
|
+
* Creates a BotMetricsMetadata message from a plain object. Also converts values to their respective internal types.
|
|
7118
|
+
* @function fromObject
|
|
7119
|
+
* @memberof waproto.BotMetricsMetadata
|
|
7120
|
+
* @static
|
|
7121
|
+
* @param {Object.<string,*>} object Plain object
|
|
7122
|
+
* @returns {waproto.BotMetricsMetadata} BotMetricsMetadata
|
|
7123
|
+
*/
|
|
7124
|
+
BotMetricsMetadata.fromObject = function fromObject(object) {
|
|
7125
|
+
if (object instanceof $root.waproto.BotMetricsMetadata)
|
|
7126
|
+
return object;
|
|
7127
|
+
var message = new $root.waproto.BotMetricsMetadata();
|
|
7128
|
+
if (object.destinationId != null)
|
|
7129
|
+
message.destinationId = String(object.destinationId);
|
|
7130
|
+
switch (object.destinationEntryPoint) {
|
|
7131
|
+
default:
|
|
7132
|
+
if (typeof object.destinationEntryPoint === "number") {
|
|
7133
|
+
message.destinationEntryPoint = object.destinationEntryPoint;
|
|
7134
|
+
break;
|
|
7135
|
+
}
|
|
7136
|
+
break;
|
|
7137
|
+
case "FAVICON":
|
|
7138
|
+
case 1:
|
|
7139
|
+
message.destinationEntryPoint = 1;
|
|
7140
|
+
break;
|
|
7141
|
+
case "CHATLIST":
|
|
7142
|
+
case 2:
|
|
7143
|
+
message.destinationEntryPoint = 2;
|
|
7144
|
+
break;
|
|
7145
|
+
case "AISEARCH_NULL_STATE_PAPER_PLANE":
|
|
7146
|
+
case 3:
|
|
7147
|
+
message.destinationEntryPoint = 3;
|
|
7148
|
+
break;
|
|
7149
|
+
case "AISEARCH_NULL_STATE_SUGGESTION":
|
|
7150
|
+
case 4:
|
|
7151
|
+
message.destinationEntryPoint = 4;
|
|
7152
|
+
break;
|
|
7153
|
+
case "AISEARCH_TYPE_AHEAD_SUGGESTION":
|
|
7154
|
+
case 5:
|
|
7155
|
+
message.destinationEntryPoint = 5;
|
|
7156
|
+
break;
|
|
7157
|
+
case "AISEARCH_TYPE_AHEAD_PAPER_PLANE":
|
|
7158
|
+
case 6:
|
|
7159
|
+
message.destinationEntryPoint = 6;
|
|
7160
|
+
break;
|
|
7161
|
+
case "AISEARCH_TYPE_AHEAD_RESULT_CHATLIST":
|
|
7162
|
+
case 7:
|
|
7163
|
+
message.destinationEntryPoint = 7;
|
|
7164
|
+
break;
|
|
7165
|
+
case "AISEARCH_TYPE_AHEAD_RESULT_MESSAGES":
|
|
7166
|
+
case 8:
|
|
7167
|
+
message.destinationEntryPoint = 8;
|
|
7168
|
+
break;
|
|
7169
|
+
case "AIVOICE_SEARCH_BAR":
|
|
7170
|
+
case 9:
|
|
7171
|
+
message.destinationEntryPoint = 9;
|
|
7172
|
+
break;
|
|
7173
|
+
case "AIVOICE_FAVICON":
|
|
7174
|
+
case 10:
|
|
7175
|
+
message.destinationEntryPoint = 10;
|
|
7176
|
+
break;
|
|
7177
|
+
case "AISTUDIO":
|
|
7178
|
+
case 11:
|
|
7179
|
+
message.destinationEntryPoint = 11;
|
|
7180
|
+
break;
|
|
7181
|
+
case "DEEPLINK":
|
|
7182
|
+
case 12:
|
|
7183
|
+
message.destinationEntryPoint = 12;
|
|
7184
|
+
break;
|
|
7185
|
+
case "NOTIFICATION":
|
|
7186
|
+
case 13:
|
|
7187
|
+
message.destinationEntryPoint = 13;
|
|
7188
|
+
break;
|
|
7189
|
+
case "PROFILE_MESSAGE_BUTTON":
|
|
7190
|
+
case 14:
|
|
7191
|
+
message.destinationEntryPoint = 14;
|
|
7192
|
+
break;
|
|
7193
|
+
case "FORWARD":
|
|
7194
|
+
case 15:
|
|
7195
|
+
message.destinationEntryPoint = 15;
|
|
7196
|
+
break;
|
|
7197
|
+
case "APP_SHORTCUT":
|
|
7198
|
+
case 16:
|
|
7199
|
+
message.destinationEntryPoint = 16;
|
|
7200
|
+
break;
|
|
7201
|
+
}
|
|
7202
|
+
return message;
|
|
7203
|
+
};
|
|
7204
|
+
|
|
7205
|
+
/**
|
|
7206
|
+
* Creates a plain object from a BotMetricsMetadata message. Also converts values to other types if specified.
|
|
7207
|
+
* @function toObject
|
|
7208
|
+
* @memberof waproto.BotMetricsMetadata
|
|
7209
|
+
* @static
|
|
7210
|
+
* @param {waproto.BotMetricsMetadata} message BotMetricsMetadata
|
|
7211
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7212
|
+
* @returns {Object.<string,*>} Plain object
|
|
7213
|
+
*/
|
|
7214
|
+
BotMetricsMetadata.toObject = function toObject(message, options) {
|
|
7215
|
+
if (!options)
|
|
7216
|
+
options = {};
|
|
7217
|
+
var object = {};
|
|
7218
|
+
if (message.destinationId != null && message.hasOwnProperty("destinationId")) {
|
|
7219
|
+
object.destinationId = message.destinationId;
|
|
7220
|
+
if (options.oneofs)
|
|
7221
|
+
object._destinationId = "destinationId";
|
|
7222
|
+
}
|
|
7223
|
+
if (message.destinationEntryPoint != null && message.hasOwnProperty("destinationEntryPoint")) {
|
|
7224
|
+
object.destinationEntryPoint = options.enums === String ? $root.waproto.BotMetricsEntryPoint[message.destinationEntryPoint] === undefined ? message.destinationEntryPoint : $root.waproto.BotMetricsEntryPoint[message.destinationEntryPoint] : message.destinationEntryPoint;
|
|
7225
|
+
if (options.oneofs)
|
|
7226
|
+
object._destinationEntryPoint = "destinationEntryPoint";
|
|
7227
|
+
}
|
|
7228
|
+
return object;
|
|
7229
|
+
};
|
|
7230
|
+
|
|
7231
|
+
/**
|
|
7232
|
+
* Converts this BotMetricsMetadata to JSON.
|
|
7233
|
+
* @function toJSON
|
|
7234
|
+
* @memberof waproto.BotMetricsMetadata
|
|
7235
|
+
* @instance
|
|
7236
|
+
* @returns {Object.<string,*>} JSON object
|
|
7237
|
+
*/
|
|
7238
|
+
BotMetricsMetadata.prototype.toJSON = function toJSON() {
|
|
7239
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7240
|
+
};
|
|
7241
|
+
|
|
7242
|
+
/**
|
|
7243
|
+
* Gets the default type url for BotMetricsMetadata
|
|
7244
|
+
* @function getTypeUrl
|
|
7245
|
+
* @memberof waproto.BotMetricsMetadata
|
|
7246
|
+
* @static
|
|
7247
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7248
|
+
* @returns {string} The default type url
|
|
7249
|
+
*/
|
|
7250
|
+
BotMetricsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7251
|
+
if (typeUrlPrefix === undefined) {
|
|
7252
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7253
|
+
}
|
|
7254
|
+
return typeUrlPrefix + "/waproto.BotMetricsMetadata";
|
|
7255
|
+
};
|
|
7256
|
+
|
|
7257
|
+
return BotMetricsMetadata;
|
|
7258
|
+
})();
|
|
7259
|
+
|
|
6725
7260
|
waproto.BotModelMetadata = (function() {
|
|
6726
7261
|
|
|
6727
7262
|
/**
|
|
@@ -6889,6 +7424,7 @@ $root.waproto = (function() {
|
|
|
6889
7424
|
switch (message.modelType) {
|
|
6890
7425
|
default:
|
|
6891
7426
|
return "modelType: enum value expected";
|
|
7427
|
+
case 0:
|
|
6892
7428
|
case 1:
|
|
6893
7429
|
case 2:
|
|
6894
7430
|
break;
|
|
@@ -6899,6 +7435,7 @@ $root.waproto = (function() {
|
|
|
6899
7435
|
switch (message.premiumModelStatus) {
|
|
6900
7436
|
default:
|
|
6901
7437
|
return "premiumModelStatus: enum value expected";
|
|
7438
|
+
case 0:
|
|
6902
7439
|
case 1:
|
|
6903
7440
|
case 2:
|
|
6904
7441
|
break;
|
|
@@ -6926,6 +7463,10 @@ $root.waproto = (function() {
|
|
|
6926
7463
|
break;
|
|
6927
7464
|
}
|
|
6928
7465
|
break;
|
|
7466
|
+
case "UNKNOWN_TYPE":
|
|
7467
|
+
case 0:
|
|
7468
|
+
message.modelType = 0;
|
|
7469
|
+
break;
|
|
6929
7470
|
case "LLAMA_PROD":
|
|
6930
7471
|
case 1:
|
|
6931
7472
|
message.modelType = 1;
|
|
@@ -6942,6 +7483,10 @@ $root.waproto = (function() {
|
|
|
6942
7483
|
break;
|
|
6943
7484
|
}
|
|
6944
7485
|
break;
|
|
7486
|
+
case "UNKNOWN_STATUS":
|
|
7487
|
+
case 0:
|
|
7488
|
+
message.premiumModelStatus = 0;
|
|
7489
|
+
break;
|
|
6945
7490
|
case "AVAILABLE":
|
|
6946
7491
|
case 1:
|
|
6947
7492
|
message.premiumModelStatus = 1;
|
|
@@ -7010,11 +7555,13 @@ $root.waproto = (function() {
|
|
|
7010
7555
|
* ModelType enum.
|
|
7011
7556
|
* @name waproto.BotModelMetadata.ModelType
|
|
7012
7557
|
* @enum {number}
|
|
7558
|
+
* @property {number} UNKNOWN_TYPE=0 UNKNOWN_TYPE value
|
|
7013
7559
|
* @property {number} LLAMA_PROD=1 LLAMA_PROD value
|
|
7014
7560
|
* @property {number} LLAMA_PROD_PREMIUM=2 LLAMA_PROD_PREMIUM value
|
|
7015
7561
|
*/
|
|
7016
7562
|
BotModelMetadata.ModelType = (function() {
|
|
7017
7563
|
var valuesById = {}, values = Object.create(valuesById);
|
|
7564
|
+
values[valuesById[0] = "UNKNOWN_TYPE"] = 0;
|
|
7018
7565
|
values[valuesById[1] = "LLAMA_PROD"] = 1;
|
|
7019
7566
|
values[valuesById[2] = "LLAMA_PROD_PREMIUM"] = 2;
|
|
7020
7567
|
return values;
|
|
@@ -7024,11 +7571,13 @@ $root.waproto = (function() {
|
|
|
7024
7571
|
* PremiumModelStatus enum.
|
|
7025
7572
|
* @name waproto.BotModelMetadata.PremiumModelStatus
|
|
7026
7573
|
* @enum {number}
|
|
7574
|
+
* @property {number} UNKNOWN_STATUS=0 UNKNOWN_STATUS value
|
|
7027
7575
|
* @property {number} AVAILABLE=1 AVAILABLE value
|
|
7028
7576
|
* @property {number} QUOTA_EXCEED_LIMIT=2 QUOTA_EXCEED_LIMIT value
|
|
7029
7577
|
*/
|
|
7030
7578
|
BotModelMetadata.PremiumModelStatus = (function() {
|
|
7031
7579
|
var valuesById = {}, values = Object.create(valuesById);
|
|
7580
|
+
values[valuesById[0] = "UNKNOWN_STATUS"] = 0;
|
|
7032
7581
|
values[valuesById[1] = "AVAILABLE"] = 1;
|
|
7033
7582
|
values[valuesById[2] = "QUOTA_EXCEED_LIMIT"] = 2;
|
|
7034
7583
|
return values;
|
|
@@ -7414,6 +7963,7 @@ $root.waproto = (function() {
|
|
|
7414
7963
|
switch (message.provider) {
|
|
7415
7964
|
default:
|
|
7416
7965
|
return "provider: enum value expected";
|
|
7966
|
+
case 0:
|
|
7417
7967
|
case 1:
|
|
7418
7968
|
case 2:
|
|
7419
7969
|
case 3:
|
|
@@ -7425,6 +7975,7 @@ $root.waproto = (function() {
|
|
|
7425
7975
|
switch (message.pluginType) {
|
|
7426
7976
|
default:
|
|
7427
7977
|
return "pluginType: enum value expected";
|
|
7978
|
+
case 0:
|
|
7428
7979
|
case 1:
|
|
7429
7980
|
case 2:
|
|
7430
7981
|
break;
|
|
@@ -7473,6 +8024,7 @@ $root.waproto = (function() {
|
|
|
7473
8024
|
switch (message.deprecatedField) {
|
|
7474
8025
|
default:
|
|
7475
8026
|
return "deprecatedField: enum value expected";
|
|
8027
|
+
case 0:
|
|
7476
8028
|
case 1:
|
|
7477
8029
|
case 2:
|
|
7478
8030
|
break;
|
|
@@ -7483,6 +8035,7 @@ $root.waproto = (function() {
|
|
|
7483
8035
|
switch (message.parentPluginType) {
|
|
7484
8036
|
default:
|
|
7485
8037
|
return "parentPluginType: enum value expected";
|
|
8038
|
+
case 0:
|
|
7486
8039
|
case 1:
|
|
7487
8040
|
case 2:
|
|
7488
8041
|
break;
|
|
@@ -7515,6 +8068,10 @@ $root.waproto = (function() {
|
|
|
7515
8068
|
break;
|
|
7516
8069
|
}
|
|
7517
8070
|
break;
|
|
8071
|
+
case "UNKNOWN":
|
|
8072
|
+
case 0:
|
|
8073
|
+
message.provider = 0;
|
|
8074
|
+
break;
|
|
7518
8075
|
case "BING":
|
|
7519
8076
|
case 1:
|
|
7520
8077
|
message.provider = 1;
|
|
@@ -7535,6 +8092,10 @@ $root.waproto = (function() {
|
|
|
7535
8092
|
break;
|
|
7536
8093
|
}
|
|
7537
8094
|
break;
|
|
8095
|
+
case "UNKNOWN_PLUGIN":
|
|
8096
|
+
case 0:
|
|
8097
|
+
message.pluginType = 0;
|
|
8098
|
+
break;
|
|
7538
8099
|
case "REELS":
|
|
7539
8100
|
case 1:
|
|
7540
8101
|
message.pluginType = 1;
|
|
@@ -7568,6 +8129,10 @@ $root.waproto = (function() {
|
|
|
7568
8129
|
break;
|
|
7569
8130
|
}
|
|
7570
8131
|
break;
|
|
8132
|
+
case "UNKNOWN_PLUGIN":
|
|
8133
|
+
case 0:
|
|
8134
|
+
message.deprecatedField = 0;
|
|
8135
|
+
break;
|
|
7571
8136
|
case "REELS":
|
|
7572
8137
|
case 1:
|
|
7573
8138
|
message.deprecatedField = 1;
|
|
@@ -7584,6 +8149,10 @@ $root.waproto = (function() {
|
|
|
7584
8149
|
break;
|
|
7585
8150
|
}
|
|
7586
8151
|
break;
|
|
8152
|
+
case "UNKNOWN_PLUGIN":
|
|
8153
|
+
case 0:
|
|
8154
|
+
message.parentPluginType = 0;
|
|
8155
|
+
break;
|
|
7587
8156
|
case "REELS":
|
|
7588
8157
|
case 1:
|
|
7589
8158
|
message.parentPluginType = 1;
|
|
@@ -7704,11 +8273,13 @@ $root.waproto = (function() {
|
|
|
7704
8273
|
* PluginType enum.
|
|
7705
8274
|
* @name waproto.BotPluginMetadata.PluginType
|
|
7706
8275
|
* @enum {number}
|
|
8276
|
+
* @property {number} UNKNOWN_PLUGIN=0 UNKNOWN_PLUGIN value
|
|
7707
8277
|
* @property {number} REELS=1 REELS value
|
|
7708
8278
|
* @property {number} SEARCH=2 SEARCH value
|
|
7709
8279
|
*/
|
|
7710
8280
|
BotPluginMetadata.PluginType = (function() {
|
|
7711
8281
|
var valuesById = {}, values = Object.create(valuesById);
|
|
8282
|
+
values[valuesById[0] = "UNKNOWN_PLUGIN"] = 0;
|
|
7712
8283
|
values[valuesById[1] = "REELS"] = 1;
|
|
7713
8284
|
values[valuesById[2] = "SEARCH"] = 2;
|
|
7714
8285
|
return values;
|
|
@@ -7718,12 +8289,14 @@ $root.waproto = (function() {
|
|
|
7718
8289
|
* SearchProvider enum.
|
|
7719
8290
|
* @name waproto.BotPluginMetadata.SearchProvider
|
|
7720
8291
|
* @enum {number}
|
|
8292
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
7721
8293
|
* @property {number} BING=1 BING value
|
|
7722
8294
|
* @property {number} GOOGLE=2 GOOGLE value
|
|
7723
8295
|
* @property {number} SUPPORT=3 SUPPORT value
|
|
7724
8296
|
*/
|
|
7725
8297
|
BotPluginMetadata.SearchProvider = (function() {
|
|
7726
8298
|
var valuesById = {}, values = Object.create(valuesById);
|
|
8299
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
7727
8300
|
values[valuesById[1] = "BING"] = 1;
|
|
7728
8301
|
values[valuesById[2] = "GOOGLE"] = 2;
|
|
7729
8302
|
values[valuesById[3] = "SUPPORT"] = 3;
|
|
@@ -8887,6 +9460,486 @@ $root.waproto = (function() {
|
|
|
8887
9460
|
return BotReminderMetadata;
|
|
8888
9461
|
})();
|
|
8889
9462
|
|
|
9463
|
+
waproto.BotRenderingMetadata = (function() {
|
|
9464
|
+
|
|
9465
|
+
/**
|
|
9466
|
+
* Properties of a BotRenderingMetadata.
|
|
9467
|
+
* @memberof waproto
|
|
9468
|
+
* @interface IBotRenderingMetadata
|
|
9469
|
+
* @property {Array.<waproto.BotRenderingMetadata.IKeyword>|null} [keywords] BotRenderingMetadata keywords
|
|
9470
|
+
*/
|
|
9471
|
+
|
|
9472
|
+
/**
|
|
9473
|
+
* Constructs a new BotRenderingMetadata.
|
|
9474
|
+
* @memberof waproto
|
|
9475
|
+
* @classdesc Represents a BotRenderingMetadata.
|
|
9476
|
+
* @implements IBotRenderingMetadata
|
|
9477
|
+
* @constructor
|
|
9478
|
+
* @param {waproto.IBotRenderingMetadata=} [properties] Properties to set
|
|
9479
|
+
*/
|
|
9480
|
+
function BotRenderingMetadata(properties) {
|
|
9481
|
+
this.keywords = [];
|
|
9482
|
+
if (properties)
|
|
9483
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9484
|
+
if (properties[keys[i]] != null)
|
|
9485
|
+
this[keys[i]] = properties[keys[i]];
|
|
9486
|
+
}
|
|
9487
|
+
|
|
9488
|
+
/**
|
|
9489
|
+
* BotRenderingMetadata keywords.
|
|
9490
|
+
* @member {Array.<waproto.BotRenderingMetadata.IKeyword>} keywords
|
|
9491
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9492
|
+
* @instance
|
|
9493
|
+
*/
|
|
9494
|
+
BotRenderingMetadata.prototype.keywords = $util.emptyArray;
|
|
9495
|
+
|
|
9496
|
+
/**
|
|
9497
|
+
* Creates a new BotRenderingMetadata instance using the specified properties.
|
|
9498
|
+
* @function create
|
|
9499
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9500
|
+
* @static
|
|
9501
|
+
* @param {waproto.IBotRenderingMetadata=} [properties] Properties to set
|
|
9502
|
+
* @returns {waproto.BotRenderingMetadata} BotRenderingMetadata instance
|
|
9503
|
+
*/
|
|
9504
|
+
BotRenderingMetadata.create = function create(properties) {
|
|
9505
|
+
return new BotRenderingMetadata(properties);
|
|
9506
|
+
};
|
|
9507
|
+
|
|
9508
|
+
/**
|
|
9509
|
+
* Encodes the specified BotRenderingMetadata message. Does not implicitly {@link waproto.BotRenderingMetadata.verify|verify} messages.
|
|
9510
|
+
* @function encode
|
|
9511
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9512
|
+
* @static
|
|
9513
|
+
* @param {waproto.IBotRenderingMetadata} message BotRenderingMetadata message or plain object to encode
|
|
9514
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9515
|
+
* @returns {$protobuf.Writer} Writer
|
|
9516
|
+
*/
|
|
9517
|
+
BotRenderingMetadata.encode = function encode(message, writer) {
|
|
9518
|
+
if (!writer)
|
|
9519
|
+
writer = $Writer.create();
|
|
9520
|
+
if (message.keywords != null && message.keywords.length)
|
|
9521
|
+
for (var i = 0; i < message.keywords.length; ++i)
|
|
9522
|
+
$root.waproto.BotRenderingMetadata.Keyword.encode(message.keywords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
9523
|
+
return writer;
|
|
9524
|
+
};
|
|
9525
|
+
|
|
9526
|
+
/**
|
|
9527
|
+
* Encodes the specified BotRenderingMetadata message, length delimited. Does not implicitly {@link waproto.BotRenderingMetadata.verify|verify} messages.
|
|
9528
|
+
* @function encodeDelimited
|
|
9529
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9530
|
+
* @static
|
|
9531
|
+
* @param {waproto.IBotRenderingMetadata} message BotRenderingMetadata message or plain object to encode
|
|
9532
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9533
|
+
* @returns {$protobuf.Writer} Writer
|
|
9534
|
+
*/
|
|
9535
|
+
BotRenderingMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9536
|
+
return this.encode(message, writer).ldelim();
|
|
9537
|
+
};
|
|
9538
|
+
|
|
9539
|
+
/**
|
|
9540
|
+
* Decodes a BotRenderingMetadata message from the specified reader or buffer.
|
|
9541
|
+
* @function decode
|
|
9542
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9543
|
+
* @static
|
|
9544
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9545
|
+
* @param {number} [length] Message length if known beforehand
|
|
9546
|
+
* @returns {waproto.BotRenderingMetadata} BotRenderingMetadata
|
|
9547
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9548
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9549
|
+
*/
|
|
9550
|
+
BotRenderingMetadata.decode = function decode(reader, length) {
|
|
9551
|
+
if (!(reader instanceof $Reader))
|
|
9552
|
+
reader = $Reader.create(reader);
|
|
9553
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotRenderingMetadata();
|
|
9554
|
+
while (reader.pos < end) {
|
|
9555
|
+
var tag = reader.uint32();
|
|
9556
|
+
switch (tag >>> 3) {
|
|
9557
|
+
case 1: {
|
|
9558
|
+
if (!(message.keywords && message.keywords.length))
|
|
9559
|
+
message.keywords = [];
|
|
9560
|
+
message.keywords.push($root.waproto.BotRenderingMetadata.Keyword.decode(reader, reader.uint32()));
|
|
9561
|
+
break;
|
|
9562
|
+
}
|
|
9563
|
+
default:
|
|
9564
|
+
reader.skipType(tag & 7);
|
|
9565
|
+
break;
|
|
9566
|
+
}
|
|
9567
|
+
}
|
|
9568
|
+
return message;
|
|
9569
|
+
};
|
|
9570
|
+
|
|
9571
|
+
/**
|
|
9572
|
+
* Decodes a BotRenderingMetadata message from the specified reader or buffer, length delimited.
|
|
9573
|
+
* @function decodeDelimited
|
|
9574
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9575
|
+
* @static
|
|
9576
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9577
|
+
* @returns {waproto.BotRenderingMetadata} BotRenderingMetadata
|
|
9578
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9579
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9580
|
+
*/
|
|
9581
|
+
BotRenderingMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
9582
|
+
if (!(reader instanceof $Reader))
|
|
9583
|
+
reader = new $Reader(reader);
|
|
9584
|
+
return this.decode(reader, reader.uint32());
|
|
9585
|
+
};
|
|
9586
|
+
|
|
9587
|
+
/**
|
|
9588
|
+
* Verifies a BotRenderingMetadata message.
|
|
9589
|
+
* @function verify
|
|
9590
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9591
|
+
* @static
|
|
9592
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9593
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9594
|
+
*/
|
|
9595
|
+
BotRenderingMetadata.verify = function verify(message) {
|
|
9596
|
+
if (typeof message !== "object" || message === null)
|
|
9597
|
+
return "object expected";
|
|
9598
|
+
if (message.keywords != null && message.hasOwnProperty("keywords")) {
|
|
9599
|
+
if (!Array.isArray(message.keywords))
|
|
9600
|
+
return "keywords: array expected";
|
|
9601
|
+
for (var i = 0; i < message.keywords.length; ++i) {
|
|
9602
|
+
var error = $root.waproto.BotRenderingMetadata.Keyword.verify(message.keywords[i]);
|
|
9603
|
+
if (error)
|
|
9604
|
+
return "keywords." + error;
|
|
9605
|
+
}
|
|
9606
|
+
}
|
|
9607
|
+
return null;
|
|
9608
|
+
};
|
|
9609
|
+
|
|
9610
|
+
/**
|
|
9611
|
+
* Creates a BotRenderingMetadata message from a plain object. Also converts values to their respective internal types.
|
|
9612
|
+
* @function fromObject
|
|
9613
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9614
|
+
* @static
|
|
9615
|
+
* @param {Object.<string,*>} object Plain object
|
|
9616
|
+
* @returns {waproto.BotRenderingMetadata} BotRenderingMetadata
|
|
9617
|
+
*/
|
|
9618
|
+
BotRenderingMetadata.fromObject = function fromObject(object) {
|
|
9619
|
+
if (object instanceof $root.waproto.BotRenderingMetadata)
|
|
9620
|
+
return object;
|
|
9621
|
+
var message = new $root.waproto.BotRenderingMetadata();
|
|
9622
|
+
if (object.keywords) {
|
|
9623
|
+
if (!Array.isArray(object.keywords))
|
|
9624
|
+
throw TypeError(".waproto.BotRenderingMetadata.keywords: array expected");
|
|
9625
|
+
message.keywords = [];
|
|
9626
|
+
for (var i = 0; i < object.keywords.length; ++i) {
|
|
9627
|
+
if (typeof object.keywords[i] !== "object")
|
|
9628
|
+
throw TypeError(".waproto.BotRenderingMetadata.keywords: object expected");
|
|
9629
|
+
message.keywords[i] = $root.waproto.BotRenderingMetadata.Keyword.fromObject(object.keywords[i]);
|
|
9630
|
+
}
|
|
9631
|
+
}
|
|
9632
|
+
return message;
|
|
9633
|
+
};
|
|
9634
|
+
|
|
9635
|
+
/**
|
|
9636
|
+
* Creates a plain object from a BotRenderingMetadata message. Also converts values to other types if specified.
|
|
9637
|
+
* @function toObject
|
|
9638
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9639
|
+
* @static
|
|
9640
|
+
* @param {waproto.BotRenderingMetadata} message BotRenderingMetadata
|
|
9641
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9642
|
+
* @returns {Object.<string,*>} Plain object
|
|
9643
|
+
*/
|
|
9644
|
+
BotRenderingMetadata.toObject = function toObject(message, options) {
|
|
9645
|
+
if (!options)
|
|
9646
|
+
options = {};
|
|
9647
|
+
var object = {};
|
|
9648
|
+
if (options.arrays || options.defaults)
|
|
9649
|
+
object.keywords = [];
|
|
9650
|
+
if (message.keywords && message.keywords.length) {
|
|
9651
|
+
object.keywords = [];
|
|
9652
|
+
for (var j = 0; j < message.keywords.length; ++j)
|
|
9653
|
+
object.keywords[j] = $root.waproto.BotRenderingMetadata.Keyword.toObject(message.keywords[j], options);
|
|
9654
|
+
}
|
|
9655
|
+
return object;
|
|
9656
|
+
};
|
|
9657
|
+
|
|
9658
|
+
/**
|
|
9659
|
+
* Converts this BotRenderingMetadata to JSON.
|
|
9660
|
+
* @function toJSON
|
|
9661
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9662
|
+
* @instance
|
|
9663
|
+
* @returns {Object.<string,*>} JSON object
|
|
9664
|
+
*/
|
|
9665
|
+
BotRenderingMetadata.prototype.toJSON = function toJSON() {
|
|
9666
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9667
|
+
};
|
|
9668
|
+
|
|
9669
|
+
/**
|
|
9670
|
+
* Gets the default type url for BotRenderingMetadata
|
|
9671
|
+
* @function getTypeUrl
|
|
9672
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9673
|
+
* @static
|
|
9674
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9675
|
+
* @returns {string} The default type url
|
|
9676
|
+
*/
|
|
9677
|
+
BotRenderingMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
9678
|
+
if (typeUrlPrefix === undefined) {
|
|
9679
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
9680
|
+
}
|
|
9681
|
+
return typeUrlPrefix + "/waproto.BotRenderingMetadata";
|
|
9682
|
+
};
|
|
9683
|
+
|
|
9684
|
+
BotRenderingMetadata.Keyword = (function() {
|
|
9685
|
+
|
|
9686
|
+
/**
|
|
9687
|
+
* Properties of a Keyword.
|
|
9688
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9689
|
+
* @interface IKeyword
|
|
9690
|
+
* @property {string|null} [value] Keyword value
|
|
9691
|
+
* @property {Array.<string>|null} [associatedPrompts] Keyword associatedPrompts
|
|
9692
|
+
*/
|
|
9693
|
+
|
|
9694
|
+
/**
|
|
9695
|
+
* Constructs a new Keyword.
|
|
9696
|
+
* @memberof waproto.BotRenderingMetadata
|
|
9697
|
+
* @classdesc Represents a Keyword.
|
|
9698
|
+
* @implements IKeyword
|
|
9699
|
+
* @constructor
|
|
9700
|
+
* @param {waproto.BotRenderingMetadata.IKeyword=} [properties] Properties to set
|
|
9701
|
+
*/
|
|
9702
|
+
function Keyword(properties) {
|
|
9703
|
+
this.associatedPrompts = [];
|
|
9704
|
+
if (properties)
|
|
9705
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9706
|
+
if (properties[keys[i]] != null)
|
|
9707
|
+
this[keys[i]] = properties[keys[i]];
|
|
9708
|
+
}
|
|
9709
|
+
|
|
9710
|
+
/**
|
|
9711
|
+
* Keyword value.
|
|
9712
|
+
* @member {string|null|undefined} value
|
|
9713
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9714
|
+
* @instance
|
|
9715
|
+
*/
|
|
9716
|
+
Keyword.prototype.value = null;
|
|
9717
|
+
|
|
9718
|
+
/**
|
|
9719
|
+
* Keyword associatedPrompts.
|
|
9720
|
+
* @member {Array.<string>} associatedPrompts
|
|
9721
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9722
|
+
* @instance
|
|
9723
|
+
*/
|
|
9724
|
+
Keyword.prototype.associatedPrompts = $util.emptyArray;
|
|
9725
|
+
|
|
9726
|
+
// OneOf field names bound to virtual getters and setters
|
|
9727
|
+
var $oneOfFields;
|
|
9728
|
+
|
|
9729
|
+
// Virtual OneOf for proto3 optional field
|
|
9730
|
+
Object.defineProperty(Keyword.prototype, "_value", {
|
|
9731
|
+
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
9732
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
9733
|
+
});
|
|
9734
|
+
|
|
9735
|
+
/**
|
|
9736
|
+
* Creates a new Keyword instance using the specified properties.
|
|
9737
|
+
* @function create
|
|
9738
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9739
|
+
* @static
|
|
9740
|
+
* @param {waproto.BotRenderingMetadata.IKeyword=} [properties] Properties to set
|
|
9741
|
+
* @returns {waproto.BotRenderingMetadata.Keyword} Keyword instance
|
|
9742
|
+
*/
|
|
9743
|
+
Keyword.create = function create(properties) {
|
|
9744
|
+
return new Keyword(properties);
|
|
9745
|
+
};
|
|
9746
|
+
|
|
9747
|
+
/**
|
|
9748
|
+
* Encodes the specified Keyword message. Does not implicitly {@link waproto.BotRenderingMetadata.Keyword.verify|verify} messages.
|
|
9749
|
+
* @function encode
|
|
9750
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9751
|
+
* @static
|
|
9752
|
+
* @param {waproto.BotRenderingMetadata.IKeyword} message Keyword message or plain object to encode
|
|
9753
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9754
|
+
* @returns {$protobuf.Writer} Writer
|
|
9755
|
+
*/
|
|
9756
|
+
Keyword.encode = function encode(message, writer) {
|
|
9757
|
+
if (!writer)
|
|
9758
|
+
writer = $Writer.create();
|
|
9759
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
9760
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.value);
|
|
9761
|
+
if (message.associatedPrompts != null && message.associatedPrompts.length)
|
|
9762
|
+
for (var i = 0; i < message.associatedPrompts.length; ++i)
|
|
9763
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.associatedPrompts[i]);
|
|
9764
|
+
return writer;
|
|
9765
|
+
};
|
|
9766
|
+
|
|
9767
|
+
/**
|
|
9768
|
+
* Encodes the specified Keyword message, length delimited. Does not implicitly {@link waproto.BotRenderingMetadata.Keyword.verify|verify} messages.
|
|
9769
|
+
* @function encodeDelimited
|
|
9770
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9771
|
+
* @static
|
|
9772
|
+
* @param {waproto.BotRenderingMetadata.IKeyword} message Keyword message or plain object to encode
|
|
9773
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9774
|
+
* @returns {$protobuf.Writer} Writer
|
|
9775
|
+
*/
|
|
9776
|
+
Keyword.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9777
|
+
return this.encode(message, writer).ldelim();
|
|
9778
|
+
};
|
|
9779
|
+
|
|
9780
|
+
/**
|
|
9781
|
+
* Decodes a Keyword message from the specified reader or buffer.
|
|
9782
|
+
* @function decode
|
|
9783
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9784
|
+
* @static
|
|
9785
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9786
|
+
* @param {number} [length] Message length if known beforehand
|
|
9787
|
+
* @returns {waproto.BotRenderingMetadata.Keyword} Keyword
|
|
9788
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9789
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9790
|
+
*/
|
|
9791
|
+
Keyword.decode = function decode(reader, length) {
|
|
9792
|
+
if (!(reader instanceof $Reader))
|
|
9793
|
+
reader = $Reader.create(reader);
|
|
9794
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotRenderingMetadata.Keyword();
|
|
9795
|
+
while (reader.pos < end) {
|
|
9796
|
+
var tag = reader.uint32();
|
|
9797
|
+
switch (tag >>> 3) {
|
|
9798
|
+
case 1: {
|
|
9799
|
+
message.value = reader.string();
|
|
9800
|
+
break;
|
|
9801
|
+
}
|
|
9802
|
+
case 2: {
|
|
9803
|
+
if (!(message.associatedPrompts && message.associatedPrompts.length))
|
|
9804
|
+
message.associatedPrompts = [];
|
|
9805
|
+
message.associatedPrompts.push(reader.string());
|
|
9806
|
+
break;
|
|
9807
|
+
}
|
|
9808
|
+
default:
|
|
9809
|
+
reader.skipType(tag & 7);
|
|
9810
|
+
break;
|
|
9811
|
+
}
|
|
9812
|
+
}
|
|
9813
|
+
return message;
|
|
9814
|
+
};
|
|
9815
|
+
|
|
9816
|
+
/**
|
|
9817
|
+
* Decodes a Keyword message from the specified reader or buffer, length delimited.
|
|
9818
|
+
* @function decodeDelimited
|
|
9819
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9820
|
+
* @static
|
|
9821
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9822
|
+
* @returns {waproto.BotRenderingMetadata.Keyword} Keyword
|
|
9823
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9824
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9825
|
+
*/
|
|
9826
|
+
Keyword.decodeDelimited = function decodeDelimited(reader) {
|
|
9827
|
+
if (!(reader instanceof $Reader))
|
|
9828
|
+
reader = new $Reader(reader);
|
|
9829
|
+
return this.decode(reader, reader.uint32());
|
|
9830
|
+
};
|
|
9831
|
+
|
|
9832
|
+
/**
|
|
9833
|
+
* Verifies a Keyword message.
|
|
9834
|
+
* @function verify
|
|
9835
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9836
|
+
* @static
|
|
9837
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9838
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9839
|
+
*/
|
|
9840
|
+
Keyword.verify = function verify(message) {
|
|
9841
|
+
if (typeof message !== "object" || message === null)
|
|
9842
|
+
return "object expected";
|
|
9843
|
+
var properties = {};
|
|
9844
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
9845
|
+
properties._value = 1;
|
|
9846
|
+
if (!$util.isString(message.value))
|
|
9847
|
+
return "value: string expected";
|
|
9848
|
+
}
|
|
9849
|
+
if (message.associatedPrompts != null && message.hasOwnProperty("associatedPrompts")) {
|
|
9850
|
+
if (!Array.isArray(message.associatedPrompts))
|
|
9851
|
+
return "associatedPrompts: array expected";
|
|
9852
|
+
for (var i = 0; i < message.associatedPrompts.length; ++i)
|
|
9853
|
+
if (!$util.isString(message.associatedPrompts[i]))
|
|
9854
|
+
return "associatedPrompts: string[] expected";
|
|
9855
|
+
}
|
|
9856
|
+
return null;
|
|
9857
|
+
};
|
|
9858
|
+
|
|
9859
|
+
/**
|
|
9860
|
+
* Creates a Keyword message from a plain object. Also converts values to their respective internal types.
|
|
9861
|
+
* @function fromObject
|
|
9862
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9863
|
+
* @static
|
|
9864
|
+
* @param {Object.<string,*>} object Plain object
|
|
9865
|
+
* @returns {waproto.BotRenderingMetadata.Keyword} Keyword
|
|
9866
|
+
*/
|
|
9867
|
+
Keyword.fromObject = function fromObject(object) {
|
|
9868
|
+
if (object instanceof $root.waproto.BotRenderingMetadata.Keyword)
|
|
9869
|
+
return object;
|
|
9870
|
+
var message = new $root.waproto.BotRenderingMetadata.Keyword();
|
|
9871
|
+
if (object.value != null)
|
|
9872
|
+
message.value = String(object.value);
|
|
9873
|
+
if (object.associatedPrompts) {
|
|
9874
|
+
if (!Array.isArray(object.associatedPrompts))
|
|
9875
|
+
throw TypeError(".waproto.BotRenderingMetadata.Keyword.associatedPrompts: array expected");
|
|
9876
|
+
message.associatedPrompts = [];
|
|
9877
|
+
for (var i = 0; i < object.associatedPrompts.length; ++i)
|
|
9878
|
+
message.associatedPrompts[i] = String(object.associatedPrompts[i]);
|
|
9879
|
+
}
|
|
9880
|
+
return message;
|
|
9881
|
+
};
|
|
9882
|
+
|
|
9883
|
+
/**
|
|
9884
|
+
* Creates a plain object from a Keyword message. Also converts values to other types if specified.
|
|
9885
|
+
* @function toObject
|
|
9886
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9887
|
+
* @static
|
|
9888
|
+
* @param {waproto.BotRenderingMetadata.Keyword} message Keyword
|
|
9889
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9890
|
+
* @returns {Object.<string,*>} Plain object
|
|
9891
|
+
*/
|
|
9892
|
+
Keyword.toObject = function toObject(message, options) {
|
|
9893
|
+
if (!options)
|
|
9894
|
+
options = {};
|
|
9895
|
+
var object = {};
|
|
9896
|
+
if (options.arrays || options.defaults)
|
|
9897
|
+
object.associatedPrompts = [];
|
|
9898
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
9899
|
+
object.value = message.value;
|
|
9900
|
+
if (options.oneofs)
|
|
9901
|
+
object._value = "value";
|
|
9902
|
+
}
|
|
9903
|
+
if (message.associatedPrompts && message.associatedPrompts.length) {
|
|
9904
|
+
object.associatedPrompts = [];
|
|
9905
|
+
for (var j = 0; j < message.associatedPrompts.length; ++j)
|
|
9906
|
+
object.associatedPrompts[j] = message.associatedPrompts[j];
|
|
9907
|
+
}
|
|
9908
|
+
return object;
|
|
9909
|
+
};
|
|
9910
|
+
|
|
9911
|
+
/**
|
|
9912
|
+
* Converts this Keyword to JSON.
|
|
9913
|
+
* @function toJSON
|
|
9914
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9915
|
+
* @instance
|
|
9916
|
+
* @returns {Object.<string,*>} JSON object
|
|
9917
|
+
*/
|
|
9918
|
+
Keyword.prototype.toJSON = function toJSON() {
|
|
9919
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9920
|
+
};
|
|
9921
|
+
|
|
9922
|
+
/**
|
|
9923
|
+
* Gets the default type url for Keyword
|
|
9924
|
+
* @function getTypeUrl
|
|
9925
|
+
* @memberof waproto.BotRenderingMetadata.Keyword
|
|
9926
|
+
* @static
|
|
9927
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9928
|
+
* @returns {string} The default type url
|
|
9929
|
+
*/
|
|
9930
|
+
Keyword.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
9931
|
+
if (typeUrlPrefix === undefined) {
|
|
9932
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
9933
|
+
}
|
|
9934
|
+
return typeUrlPrefix + "/waproto.BotRenderingMetadata.Keyword";
|
|
9935
|
+
};
|
|
9936
|
+
|
|
9937
|
+
return Keyword;
|
|
9938
|
+
})();
|
|
9939
|
+
|
|
9940
|
+
return BotRenderingMetadata;
|
|
9941
|
+
})();
|
|
9942
|
+
|
|
8890
9943
|
waproto.BotSessionMetadata = (function() {
|
|
8891
9944
|
|
|
8892
9945
|
/**
|
|
@@ -18799,6 +19852,225 @@ $root.waproto = (function() {
|
|
|
18799
19852
|
return CommentMetadata;
|
|
18800
19853
|
})();
|
|
18801
19854
|
|
|
19855
|
+
waproto.CompanionCommitment = (function() {
|
|
19856
|
+
|
|
19857
|
+
/**
|
|
19858
|
+
* Properties of a CompanionCommitment.
|
|
19859
|
+
* @memberof waproto
|
|
19860
|
+
* @interface ICompanionCommitment
|
|
19861
|
+
* @property {Uint8Array|null} [hash] CompanionCommitment hash
|
|
19862
|
+
*/
|
|
19863
|
+
|
|
19864
|
+
/**
|
|
19865
|
+
* Constructs a new CompanionCommitment.
|
|
19866
|
+
* @memberof waproto
|
|
19867
|
+
* @classdesc Represents a CompanionCommitment.
|
|
19868
|
+
* @implements ICompanionCommitment
|
|
19869
|
+
* @constructor
|
|
19870
|
+
* @param {waproto.ICompanionCommitment=} [properties] Properties to set
|
|
19871
|
+
*/
|
|
19872
|
+
function CompanionCommitment(properties) {
|
|
19873
|
+
if (properties)
|
|
19874
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19875
|
+
if (properties[keys[i]] != null)
|
|
19876
|
+
this[keys[i]] = properties[keys[i]];
|
|
19877
|
+
}
|
|
19878
|
+
|
|
19879
|
+
/**
|
|
19880
|
+
* CompanionCommitment hash.
|
|
19881
|
+
* @member {Uint8Array|null|undefined} hash
|
|
19882
|
+
* @memberof waproto.CompanionCommitment
|
|
19883
|
+
* @instance
|
|
19884
|
+
*/
|
|
19885
|
+
CompanionCommitment.prototype.hash = null;
|
|
19886
|
+
|
|
19887
|
+
// OneOf field names bound to virtual getters and setters
|
|
19888
|
+
var $oneOfFields;
|
|
19889
|
+
|
|
19890
|
+
// Virtual OneOf for proto3 optional field
|
|
19891
|
+
Object.defineProperty(CompanionCommitment.prototype, "_hash", {
|
|
19892
|
+
get: $util.oneOfGetter($oneOfFields = ["hash"]),
|
|
19893
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19894
|
+
});
|
|
19895
|
+
|
|
19896
|
+
/**
|
|
19897
|
+
* Creates a new CompanionCommitment instance using the specified properties.
|
|
19898
|
+
* @function create
|
|
19899
|
+
* @memberof waproto.CompanionCommitment
|
|
19900
|
+
* @static
|
|
19901
|
+
* @param {waproto.ICompanionCommitment=} [properties] Properties to set
|
|
19902
|
+
* @returns {waproto.CompanionCommitment} CompanionCommitment instance
|
|
19903
|
+
*/
|
|
19904
|
+
CompanionCommitment.create = function create(properties) {
|
|
19905
|
+
return new CompanionCommitment(properties);
|
|
19906
|
+
};
|
|
19907
|
+
|
|
19908
|
+
/**
|
|
19909
|
+
* Encodes the specified CompanionCommitment message. Does not implicitly {@link waproto.CompanionCommitment.verify|verify} messages.
|
|
19910
|
+
* @function encode
|
|
19911
|
+
* @memberof waproto.CompanionCommitment
|
|
19912
|
+
* @static
|
|
19913
|
+
* @param {waproto.ICompanionCommitment} message CompanionCommitment message or plain object to encode
|
|
19914
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19915
|
+
* @returns {$protobuf.Writer} Writer
|
|
19916
|
+
*/
|
|
19917
|
+
CompanionCommitment.encode = function encode(message, writer) {
|
|
19918
|
+
if (!writer)
|
|
19919
|
+
writer = $Writer.create();
|
|
19920
|
+
if (message.hash != null && Object.hasOwnProperty.call(message, "hash"))
|
|
19921
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash);
|
|
19922
|
+
return writer;
|
|
19923
|
+
};
|
|
19924
|
+
|
|
19925
|
+
/**
|
|
19926
|
+
* Encodes the specified CompanionCommitment message, length delimited. Does not implicitly {@link waproto.CompanionCommitment.verify|verify} messages.
|
|
19927
|
+
* @function encodeDelimited
|
|
19928
|
+
* @memberof waproto.CompanionCommitment
|
|
19929
|
+
* @static
|
|
19930
|
+
* @param {waproto.ICompanionCommitment} message CompanionCommitment message or plain object to encode
|
|
19931
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19932
|
+
* @returns {$protobuf.Writer} Writer
|
|
19933
|
+
*/
|
|
19934
|
+
CompanionCommitment.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19935
|
+
return this.encode(message, writer).ldelim();
|
|
19936
|
+
};
|
|
19937
|
+
|
|
19938
|
+
/**
|
|
19939
|
+
* Decodes a CompanionCommitment message from the specified reader or buffer.
|
|
19940
|
+
* @function decode
|
|
19941
|
+
* @memberof waproto.CompanionCommitment
|
|
19942
|
+
* @static
|
|
19943
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19944
|
+
* @param {number} [length] Message length if known beforehand
|
|
19945
|
+
* @returns {waproto.CompanionCommitment} CompanionCommitment
|
|
19946
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19947
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19948
|
+
*/
|
|
19949
|
+
CompanionCommitment.decode = function decode(reader, length) {
|
|
19950
|
+
if (!(reader instanceof $Reader))
|
|
19951
|
+
reader = $Reader.create(reader);
|
|
19952
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.CompanionCommitment();
|
|
19953
|
+
while (reader.pos < end) {
|
|
19954
|
+
var tag = reader.uint32();
|
|
19955
|
+
switch (tag >>> 3) {
|
|
19956
|
+
case 1: {
|
|
19957
|
+
message.hash = reader.bytes();
|
|
19958
|
+
break;
|
|
19959
|
+
}
|
|
19960
|
+
default:
|
|
19961
|
+
reader.skipType(tag & 7);
|
|
19962
|
+
break;
|
|
19963
|
+
}
|
|
19964
|
+
}
|
|
19965
|
+
return message;
|
|
19966
|
+
};
|
|
19967
|
+
|
|
19968
|
+
/**
|
|
19969
|
+
* Decodes a CompanionCommitment message from the specified reader or buffer, length delimited.
|
|
19970
|
+
* @function decodeDelimited
|
|
19971
|
+
* @memberof waproto.CompanionCommitment
|
|
19972
|
+
* @static
|
|
19973
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19974
|
+
* @returns {waproto.CompanionCommitment} CompanionCommitment
|
|
19975
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19976
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19977
|
+
*/
|
|
19978
|
+
CompanionCommitment.decodeDelimited = function decodeDelimited(reader) {
|
|
19979
|
+
if (!(reader instanceof $Reader))
|
|
19980
|
+
reader = new $Reader(reader);
|
|
19981
|
+
return this.decode(reader, reader.uint32());
|
|
19982
|
+
};
|
|
19983
|
+
|
|
19984
|
+
/**
|
|
19985
|
+
* Verifies a CompanionCommitment message.
|
|
19986
|
+
* @function verify
|
|
19987
|
+
* @memberof waproto.CompanionCommitment
|
|
19988
|
+
* @static
|
|
19989
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19990
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19991
|
+
*/
|
|
19992
|
+
CompanionCommitment.verify = function verify(message) {
|
|
19993
|
+
if (typeof message !== "object" || message === null)
|
|
19994
|
+
return "object expected";
|
|
19995
|
+
var properties = {};
|
|
19996
|
+
if (message.hash != null && message.hasOwnProperty("hash")) {
|
|
19997
|
+
properties._hash = 1;
|
|
19998
|
+
if (!(message.hash && typeof message.hash.length === "number" || $util.isString(message.hash)))
|
|
19999
|
+
return "hash: buffer expected";
|
|
20000
|
+
}
|
|
20001
|
+
return null;
|
|
20002
|
+
};
|
|
20003
|
+
|
|
20004
|
+
/**
|
|
20005
|
+
* Creates a CompanionCommitment message from a plain object. Also converts values to their respective internal types.
|
|
20006
|
+
* @function fromObject
|
|
20007
|
+
* @memberof waproto.CompanionCommitment
|
|
20008
|
+
* @static
|
|
20009
|
+
* @param {Object.<string,*>} object Plain object
|
|
20010
|
+
* @returns {waproto.CompanionCommitment} CompanionCommitment
|
|
20011
|
+
*/
|
|
20012
|
+
CompanionCommitment.fromObject = function fromObject(object) {
|
|
20013
|
+
if (object instanceof $root.waproto.CompanionCommitment)
|
|
20014
|
+
return object;
|
|
20015
|
+
var message = new $root.waproto.CompanionCommitment();
|
|
20016
|
+
if (object.hash != null)
|
|
20017
|
+
if (typeof object.hash === "string")
|
|
20018
|
+
$util.base64.decode(object.hash, message.hash = $util.newBuffer($util.base64.length(object.hash)), 0);
|
|
20019
|
+
else if (object.hash.length >= 0)
|
|
20020
|
+
message.hash = object.hash;
|
|
20021
|
+
return message;
|
|
20022
|
+
};
|
|
20023
|
+
|
|
20024
|
+
/**
|
|
20025
|
+
* Creates a plain object from a CompanionCommitment message. Also converts values to other types if specified.
|
|
20026
|
+
* @function toObject
|
|
20027
|
+
* @memberof waproto.CompanionCommitment
|
|
20028
|
+
* @static
|
|
20029
|
+
* @param {waproto.CompanionCommitment} message CompanionCommitment
|
|
20030
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20031
|
+
* @returns {Object.<string,*>} Plain object
|
|
20032
|
+
*/
|
|
20033
|
+
CompanionCommitment.toObject = function toObject(message, options) {
|
|
20034
|
+
if (!options)
|
|
20035
|
+
options = {};
|
|
20036
|
+
var object = {};
|
|
20037
|
+
if (message.hash != null && message.hasOwnProperty("hash")) {
|
|
20038
|
+
object.hash = options.bytes === String ? $util.base64.encode(message.hash, 0, message.hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash) : message.hash;
|
|
20039
|
+
if (options.oneofs)
|
|
20040
|
+
object._hash = "hash";
|
|
20041
|
+
}
|
|
20042
|
+
return object;
|
|
20043
|
+
};
|
|
20044
|
+
|
|
20045
|
+
/**
|
|
20046
|
+
* Converts this CompanionCommitment to JSON.
|
|
20047
|
+
* @function toJSON
|
|
20048
|
+
* @memberof waproto.CompanionCommitment
|
|
20049
|
+
* @instance
|
|
20050
|
+
* @returns {Object.<string,*>} JSON object
|
|
20051
|
+
*/
|
|
20052
|
+
CompanionCommitment.prototype.toJSON = function toJSON() {
|
|
20053
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20054
|
+
};
|
|
20055
|
+
|
|
20056
|
+
/**
|
|
20057
|
+
* Gets the default type url for CompanionCommitment
|
|
20058
|
+
* @function getTypeUrl
|
|
20059
|
+
* @memberof waproto.CompanionCommitment
|
|
20060
|
+
* @static
|
|
20061
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
20062
|
+
* @returns {string} The default type url
|
|
20063
|
+
*/
|
|
20064
|
+
CompanionCommitment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20065
|
+
if (typeUrlPrefix === undefined) {
|
|
20066
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
20067
|
+
}
|
|
20068
|
+
return typeUrlPrefix + "/waproto.CompanionCommitment";
|
|
20069
|
+
};
|
|
20070
|
+
|
|
20071
|
+
return CompanionCommitment;
|
|
20072
|
+
})();
|
|
20073
|
+
|
|
18802
20074
|
waproto.CompanionEphemeralIdentity = (function() {
|
|
18803
20075
|
|
|
18804
20076
|
/**
|
|
@@ -19550,6 +20822,7 @@ $root.waproto = (function() {
|
|
|
19550
20822
|
* @property {string|null} [ctwaSignals] ContextInfo ctwaSignals
|
|
19551
20823
|
* @property {Uint8Array|null} [ctwaPayload] ContextInfo ctwaPayload
|
|
19552
20824
|
* @property {waproto.ContextInfo.IForwardedAIBotMessageInfo|null} [forwardedAiBotMessageInfo] ContextInfo forwardedAiBotMessageInfo
|
|
20825
|
+
* @property {waproto.ContextInfo.StatusAttributionType|null} [statusAttributionType] ContextInfo statusAttributionType
|
|
19553
20826
|
*/
|
|
19554
20827
|
|
|
19555
20828
|
/**
|
|
@@ -19889,6 +21162,14 @@ $root.waproto = (function() {
|
|
|
19889
21162
|
*/
|
|
19890
21163
|
ContextInfo.prototype.forwardedAiBotMessageInfo = null;
|
|
19891
21164
|
|
|
21165
|
+
/**
|
|
21166
|
+
* ContextInfo statusAttributionType.
|
|
21167
|
+
* @member {waproto.ContextInfo.StatusAttributionType|null|undefined} statusAttributionType
|
|
21168
|
+
* @memberof waproto.ContextInfo
|
|
21169
|
+
* @instance
|
|
21170
|
+
*/
|
|
21171
|
+
ContextInfo.prototype.statusAttributionType = null;
|
|
21172
|
+
|
|
19892
21173
|
// OneOf field names bound to virtual getters and setters
|
|
19893
21174
|
var $oneOfFields;
|
|
19894
21175
|
|
|
@@ -20120,6 +21401,12 @@ $root.waproto = (function() {
|
|
|
20120
21401
|
set: $util.oneOfSetter($oneOfFields)
|
|
20121
21402
|
});
|
|
20122
21403
|
|
|
21404
|
+
// Virtual OneOf for proto3 optional field
|
|
21405
|
+
Object.defineProperty(ContextInfo.prototype, "_statusAttributionType", {
|
|
21406
|
+
get: $util.oneOfGetter($oneOfFields = ["statusAttributionType"]),
|
|
21407
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21408
|
+
});
|
|
21409
|
+
|
|
20123
21410
|
/**
|
|
20124
21411
|
* Creates a new ContextInfo instance using the specified properties.
|
|
20125
21412
|
* @function create
|
|
@@ -20226,6 +21513,8 @@ $root.waproto = (function() {
|
|
|
20226
21513
|
writer.uint32(/* id 55, wireType 2 =*/442).bytes(message.ctwaPayload);
|
|
20227
21514
|
if (message.forwardedAiBotMessageInfo != null && Object.hasOwnProperty.call(message, "forwardedAiBotMessageInfo"))
|
|
20228
21515
|
$root.waproto.ContextInfo.ForwardedAIBotMessageInfo.encode(message.forwardedAiBotMessageInfo, writer.uint32(/* id 56, wireType 2 =*/450).fork()).ldelim();
|
|
21516
|
+
if (message.statusAttributionType != null && Object.hasOwnProperty.call(message, "statusAttributionType"))
|
|
21517
|
+
writer.uint32(/* id 57, wireType 0 =*/456).int32(message.statusAttributionType);
|
|
20229
21518
|
return writer;
|
|
20230
21519
|
};
|
|
20231
21520
|
|
|
@@ -20424,6 +21713,10 @@ $root.waproto = (function() {
|
|
|
20424
21713
|
message.forwardedAiBotMessageInfo = $root.waproto.ContextInfo.ForwardedAIBotMessageInfo.decode(reader, reader.uint32());
|
|
20425
21714
|
break;
|
|
20426
21715
|
}
|
|
21716
|
+
case 57: {
|
|
21717
|
+
message.statusAttributionType = reader.int32();
|
|
21718
|
+
break;
|
|
21719
|
+
}
|
|
20427
21720
|
default:
|
|
20428
21721
|
reader.skipType(tag & 7);
|
|
20429
21722
|
break;
|
|
@@ -20702,6 +21995,16 @@ $root.waproto = (function() {
|
|
|
20702
21995
|
return "forwardedAiBotMessageInfo." + error;
|
|
20703
21996
|
}
|
|
20704
21997
|
}
|
|
21998
|
+
if (message.statusAttributionType != null && message.hasOwnProperty("statusAttributionType")) {
|
|
21999
|
+
properties._statusAttributionType = 1;
|
|
22000
|
+
switch (message.statusAttributionType) {
|
|
22001
|
+
default:
|
|
22002
|
+
return "statusAttributionType: enum value expected";
|
|
22003
|
+
case 0:
|
|
22004
|
+
case 1:
|
|
22005
|
+
break;
|
|
22006
|
+
}
|
|
22007
|
+
}
|
|
20705
22008
|
return null;
|
|
20706
22009
|
};
|
|
20707
22010
|
|
|
@@ -20862,6 +22165,22 @@ $root.waproto = (function() {
|
|
|
20862
22165
|
throw TypeError(".waproto.ContextInfo.forwardedAiBotMessageInfo: object expected");
|
|
20863
22166
|
message.forwardedAiBotMessageInfo = $root.waproto.ContextInfo.ForwardedAIBotMessageInfo.fromObject(object.forwardedAiBotMessageInfo);
|
|
20864
22167
|
}
|
|
22168
|
+
switch (object.statusAttributionType) {
|
|
22169
|
+
default:
|
|
22170
|
+
if (typeof object.statusAttributionType === "number") {
|
|
22171
|
+
message.statusAttributionType = object.statusAttributionType;
|
|
22172
|
+
break;
|
|
22173
|
+
}
|
|
22174
|
+
break;
|
|
22175
|
+
case "NONE":
|
|
22176
|
+
case 0:
|
|
22177
|
+
message.statusAttributionType = 0;
|
|
22178
|
+
break;
|
|
22179
|
+
case "RESHARED_FROM_MENTION":
|
|
22180
|
+
case 1:
|
|
22181
|
+
message.statusAttributionType = 1;
|
|
22182
|
+
break;
|
|
22183
|
+
}
|
|
20865
22184
|
return message;
|
|
20866
22185
|
};
|
|
20867
22186
|
|
|
@@ -21085,6 +22404,11 @@ $root.waproto = (function() {
|
|
|
21085
22404
|
if (options.oneofs)
|
|
21086
22405
|
object._forwardedAiBotMessageInfo = "forwardedAiBotMessageInfo";
|
|
21087
22406
|
}
|
|
22407
|
+
if (message.statusAttributionType != null && message.hasOwnProperty("statusAttributionType")) {
|
|
22408
|
+
object.statusAttributionType = options.enums === String ? $root.waproto.ContextInfo.StatusAttributionType[message.statusAttributionType] === undefined ? message.statusAttributionType : $root.waproto.ContextInfo.StatusAttributionType[message.statusAttributionType] : message.statusAttributionType;
|
|
22409
|
+
if (options.oneofs)
|
|
22410
|
+
object._statusAttributionType = "statusAttributionType";
|
|
22411
|
+
}
|
|
21088
22412
|
return object;
|
|
21089
22413
|
};
|
|
21090
22414
|
|
|
@@ -24250,6 +25574,20 @@ $root.waproto = (function() {
|
|
|
24250
25574
|
return ForwardedNewsletterMessageInfo;
|
|
24251
25575
|
})();
|
|
24252
25576
|
|
|
25577
|
+
/**
|
|
25578
|
+
* StatusAttributionType enum.
|
|
25579
|
+
* @name waproto.ContextInfo.StatusAttributionType
|
|
25580
|
+
* @enum {number}
|
|
25581
|
+
* @property {number} NONE=0 NONE value
|
|
25582
|
+
* @property {number} RESHARED_FROM_MENTION=1 RESHARED_FROM_MENTION value
|
|
25583
|
+
*/
|
|
25584
|
+
ContextInfo.StatusAttributionType = (function() {
|
|
25585
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
25586
|
+
values[valuesById[0] = "NONE"] = 0;
|
|
25587
|
+
values[valuesById[1] = "RESHARED_FROM_MENTION"] = 1;
|
|
25588
|
+
return values;
|
|
25589
|
+
})();
|
|
25590
|
+
|
|
24253
25591
|
ContextInfo.UTMInfo = (function() {
|
|
24254
25592
|
|
|
24255
25593
|
/**
|
|
@@ -24556,6 +25894,7 @@ $root.waproto = (function() {
|
|
|
24556
25894
|
* @property {boolean|null} [locked] Conversation locked
|
|
24557
25895
|
* @property {waproto.PrivacySystemMessage|null} [systemMessageToInsert] Conversation systemMessageToInsert
|
|
24558
25896
|
* @property {boolean|null} [capiCreatedGroup] Conversation capiCreatedGroup
|
|
25897
|
+
* @property {string|null} [accountLid] Conversation accountLid
|
|
24559
25898
|
*/
|
|
24560
25899
|
|
|
24561
25900
|
/**
|
|
@@ -24959,6 +26298,14 @@ $root.waproto = (function() {
|
|
|
24959
26298
|
*/
|
|
24960
26299
|
Conversation.prototype.capiCreatedGroup = null;
|
|
24961
26300
|
|
|
26301
|
+
/**
|
|
26302
|
+
* Conversation accountLid.
|
|
26303
|
+
* @member {string|null|undefined} accountLid
|
|
26304
|
+
* @memberof waproto.Conversation
|
|
26305
|
+
* @instance
|
|
26306
|
+
*/
|
|
26307
|
+
Conversation.prototype.accountLid = null;
|
|
26308
|
+
|
|
24962
26309
|
// OneOf field names bound to virtual getters and setters
|
|
24963
26310
|
var $oneOfFields;
|
|
24964
26311
|
|
|
@@ -25232,6 +26579,12 @@ $root.waproto = (function() {
|
|
|
25232
26579
|
set: $util.oneOfSetter($oneOfFields)
|
|
25233
26580
|
});
|
|
25234
26581
|
|
|
26582
|
+
// Virtual OneOf for proto3 optional field
|
|
26583
|
+
Object.defineProperty(Conversation.prototype, "_accountLid", {
|
|
26584
|
+
get: $util.oneOfGetter($oneOfFields = ["accountLid"]),
|
|
26585
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
26586
|
+
});
|
|
26587
|
+
|
|
25235
26588
|
/**
|
|
25236
26589
|
* Creates a new Conversation instance using the specified properties.
|
|
25237
26590
|
* @function create
|
|
@@ -25353,6 +26706,8 @@ $root.waproto = (function() {
|
|
|
25353
26706
|
writer.uint32(/* id 47, wireType 0 =*/376).int32(message.systemMessageToInsert);
|
|
25354
26707
|
if (message.capiCreatedGroup != null && Object.hasOwnProperty.call(message, "capiCreatedGroup"))
|
|
25355
26708
|
writer.uint32(/* id 48, wireType 0 =*/384).bool(message.capiCreatedGroup);
|
|
26709
|
+
if (message.accountLid != null && Object.hasOwnProperty.call(message, "accountLid"))
|
|
26710
|
+
writer.uint32(/* id 49, wireType 2 =*/394).string(message.accountLid);
|
|
25356
26711
|
return writer;
|
|
25357
26712
|
};
|
|
25358
26713
|
|
|
@@ -25583,6 +26938,10 @@ $root.waproto = (function() {
|
|
|
25583
26938
|
message.capiCreatedGroup = reader.bool();
|
|
25584
26939
|
break;
|
|
25585
26940
|
}
|
|
26941
|
+
case 49: {
|
|
26942
|
+
message.accountLid = reader.string();
|
|
26943
|
+
break;
|
|
26944
|
+
}
|
|
25586
26945
|
default:
|
|
25587
26946
|
reader.skipType(tag & 7);
|
|
25588
26947
|
break;
|
|
@@ -25890,6 +27249,11 @@ $root.waproto = (function() {
|
|
|
25890
27249
|
if (typeof message.capiCreatedGroup !== "boolean")
|
|
25891
27250
|
return "capiCreatedGroup: boolean expected";
|
|
25892
27251
|
}
|
|
27252
|
+
if (message.accountLid != null && message.hasOwnProperty("accountLid")) {
|
|
27253
|
+
properties._accountLid = 1;
|
|
27254
|
+
if (!$util.isString(message.accountLid))
|
|
27255
|
+
return "accountLid: string expected";
|
|
27256
|
+
}
|
|
25893
27257
|
return null;
|
|
25894
27258
|
};
|
|
25895
27259
|
|
|
@@ -26132,6 +27496,8 @@ $root.waproto = (function() {
|
|
|
26132
27496
|
}
|
|
26133
27497
|
if (object.capiCreatedGroup != null)
|
|
26134
27498
|
message.capiCreatedGroup = Boolean(object.capiCreatedGroup);
|
|
27499
|
+
if (object.accountLid != null)
|
|
27500
|
+
message.accountLid = String(object.accountLid);
|
|
26135
27501
|
return message;
|
|
26136
27502
|
};
|
|
26137
27503
|
|
|
@@ -26412,6 +27778,11 @@ $root.waproto = (function() {
|
|
|
26412
27778
|
if (options.oneofs)
|
|
26413
27779
|
object._capiCreatedGroup = "capiCreatedGroup";
|
|
26414
27780
|
}
|
|
27781
|
+
if (message.accountLid != null && message.hasOwnProperty("accountLid")) {
|
|
27782
|
+
object.accountLid = message.accountLid;
|
|
27783
|
+
if (options.oneofs)
|
|
27784
|
+
object._accountLid = "accountLid";
|
|
27785
|
+
}
|
|
26415
27786
|
return object;
|
|
26416
27787
|
};
|
|
26417
27788
|
|
|
@@ -41320,9 +42691,12 @@ $root.waproto = (function() {
|
|
|
41320
42691
|
* @property {waproto.Message.IStickerPackMessage|null} [stickerPackMessage] Message stickerPackMessage
|
|
41321
42692
|
* @property {waproto.Message.IFutureProofMessage|null} [statusMentionMessage] Message statusMentionMessage
|
|
41322
42693
|
* @property {waproto.Message.IPollResultSnapshotMessage|null} [pollResultSnapshotMessage] Message pollResultSnapshotMessage
|
|
41323
|
-
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
|
|
41324
42694
|
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationOptionImageMessage] Message pollCreationOptionImageMessage
|
|
41325
42695
|
* @property {waproto.Message.IFutureProofMessage|null} [associatedChildMessage] Message associatedChildMessage
|
|
42696
|
+
* @property {waproto.Message.IFutureProofMessage|null} [groupStatusMentionMessage] Message groupStatusMentionMessage
|
|
42697
|
+
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
|
|
42698
|
+
* @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV5] Message pollCreationMessageV5
|
|
42699
|
+
* @property {waproto.Message.IFutureProofMessage|null} [statusAddYours] Message statusAddYours
|
|
41326
42700
|
*/
|
|
41327
42701
|
|
|
41328
42702
|
/**
|
|
@@ -41924,6 +43298,30 @@ $root.waproto = (function() {
|
|
|
41924
43298
|
*/
|
|
41925
43299
|
Message.prototype.pollResultSnapshotMessage = null;
|
|
41926
43300
|
|
|
43301
|
+
/**
|
|
43302
|
+
* Message pollCreationOptionImageMessage.
|
|
43303
|
+
* @member {waproto.Message.IFutureProofMessage|null|undefined} pollCreationOptionImageMessage
|
|
43304
|
+
* @memberof waproto.Message
|
|
43305
|
+
* @instance
|
|
43306
|
+
*/
|
|
43307
|
+
Message.prototype.pollCreationOptionImageMessage = null;
|
|
43308
|
+
|
|
43309
|
+
/**
|
|
43310
|
+
* Message associatedChildMessage.
|
|
43311
|
+
* @member {waproto.Message.IFutureProofMessage|null|undefined} associatedChildMessage
|
|
43312
|
+
* @memberof waproto.Message
|
|
43313
|
+
* @instance
|
|
43314
|
+
*/
|
|
43315
|
+
Message.prototype.associatedChildMessage = null;
|
|
43316
|
+
|
|
43317
|
+
/**
|
|
43318
|
+
* Message groupStatusMentionMessage.
|
|
43319
|
+
* @member {waproto.Message.IFutureProofMessage|null|undefined} groupStatusMentionMessage
|
|
43320
|
+
* @memberof waproto.Message
|
|
43321
|
+
* @instance
|
|
43322
|
+
*/
|
|
43323
|
+
Message.prototype.groupStatusMentionMessage = null;
|
|
43324
|
+
|
|
41927
43325
|
/**
|
|
41928
43326
|
* Message pollCreationMessageV4.
|
|
41929
43327
|
* @member {waproto.Message.IFutureProofMessage|null|undefined} pollCreationMessageV4
|
|
@@ -41933,20 +43331,20 @@ $root.waproto = (function() {
|
|
|
41933
43331
|
Message.prototype.pollCreationMessageV4 = null;
|
|
41934
43332
|
|
|
41935
43333
|
/**
|
|
41936
|
-
* Message
|
|
41937
|
-
* @member {waproto.Message.IFutureProofMessage|null|undefined}
|
|
43334
|
+
* Message pollCreationMessageV5.
|
|
43335
|
+
* @member {waproto.Message.IFutureProofMessage|null|undefined} pollCreationMessageV5
|
|
41938
43336
|
* @memberof waproto.Message
|
|
41939
43337
|
* @instance
|
|
41940
43338
|
*/
|
|
41941
|
-
Message.prototype.
|
|
43339
|
+
Message.prototype.pollCreationMessageV5 = null;
|
|
41942
43340
|
|
|
41943
43341
|
/**
|
|
41944
|
-
* Message
|
|
41945
|
-
* @member {waproto.Message.IFutureProofMessage|null|undefined}
|
|
43342
|
+
* Message statusAddYours.
|
|
43343
|
+
* @member {waproto.Message.IFutureProofMessage|null|undefined} statusAddYours
|
|
41946
43344
|
* @memberof waproto.Message
|
|
41947
43345
|
* @instance
|
|
41948
43346
|
*/
|
|
41949
|
-
Message.prototype.
|
|
43347
|
+
Message.prototype.statusAddYours = null;
|
|
41950
43348
|
|
|
41951
43349
|
// OneOf field names bound to virtual getters and setters
|
|
41952
43350
|
var $oneOfFields;
|
|
@@ -42389,6 +43787,24 @@ $root.waproto = (function() {
|
|
|
42389
43787
|
set: $util.oneOfSetter($oneOfFields)
|
|
42390
43788
|
});
|
|
42391
43789
|
|
|
43790
|
+
// Virtual OneOf for proto3 optional field
|
|
43791
|
+
Object.defineProperty(Message.prototype, "_pollCreationOptionImageMessage", {
|
|
43792
|
+
get: $util.oneOfGetter($oneOfFields = ["pollCreationOptionImageMessage"]),
|
|
43793
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
43794
|
+
});
|
|
43795
|
+
|
|
43796
|
+
// Virtual OneOf for proto3 optional field
|
|
43797
|
+
Object.defineProperty(Message.prototype, "_associatedChildMessage", {
|
|
43798
|
+
get: $util.oneOfGetter($oneOfFields = ["associatedChildMessage"]),
|
|
43799
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
43800
|
+
});
|
|
43801
|
+
|
|
43802
|
+
// Virtual OneOf for proto3 optional field
|
|
43803
|
+
Object.defineProperty(Message.prototype, "_groupStatusMentionMessage", {
|
|
43804
|
+
get: $util.oneOfGetter($oneOfFields = ["groupStatusMentionMessage"]),
|
|
43805
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
43806
|
+
});
|
|
43807
|
+
|
|
42392
43808
|
// Virtual OneOf for proto3 optional field
|
|
42393
43809
|
Object.defineProperty(Message.prototype, "_pollCreationMessageV4", {
|
|
42394
43810
|
get: $util.oneOfGetter($oneOfFields = ["pollCreationMessageV4"]),
|
|
@@ -42396,14 +43812,14 @@ $root.waproto = (function() {
|
|
|
42396
43812
|
});
|
|
42397
43813
|
|
|
42398
43814
|
// Virtual OneOf for proto3 optional field
|
|
42399
|
-
Object.defineProperty(Message.prototype, "
|
|
42400
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
43815
|
+
Object.defineProperty(Message.prototype, "_pollCreationMessageV5", {
|
|
43816
|
+
get: $util.oneOfGetter($oneOfFields = ["pollCreationMessageV5"]),
|
|
42401
43817
|
set: $util.oneOfSetter($oneOfFields)
|
|
42402
43818
|
});
|
|
42403
43819
|
|
|
42404
43820
|
// Virtual OneOf for proto3 optional field
|
|
42405
|
-
Object.defineProperty(Message.prototype, "
|
|
42406
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
43821
|
+
Object.defineProperty(Message.prototype, "_statusAddYours", {
|
|
43822
|
+
get: $util.oneOfGetter($oneOfFields = ["statusAddYours"]),
|
|
42407
43823
|
set: $util.oneOfSetter($oneOfFields)
|
|
42408
43824
|
});
|
|
42409
43825
|
|
|
@@ -42577,12 +43993,18 @@ $root.waproto = (function() {
|
|
|
42577
43993
|
$root.waproto.Message.FutureProofMessage.encode(message.statusMentionMessage, writer.uint32(/* id 87, wireType 2 =*/698).fork()).ldelim();
|
|
42578
43994
|
if (message.pollResultSnapshotMessage != null && Object.hasOwnProperty.call(message, "pollResultSnapshotMessage"))
|
|
42579
43995
|
$root.waproto.Message.PollResultSnapshotMessage.encode(message.pollResultSnapshotMessage, writer.uint32(/* id 88, wireType 2 =*/706).fork()).ldelim();
|
|
42580
|
-
if (message.pollCreationMessageV4 != null && Object.hasOwnProperty.call(message, "pollCreationMessageV4"))
|
|
42581
|
-
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationMessageV4, writer.uint32(/* id 89, wireType 2 =*/714).fork()).ldelim();
|
|
42582
43996
|
if (message.pollCreationOptionImageMessage != null && Object.hasOwnProperty.call(message, "pollCreationOptionImageMessage"))
|
|
42583
43997
|
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationOptionImageMessage, writer.uint32(/* id 90, wireType 2 =*/722).fork()).ldelim();
|
|
42584
43998
|
if (message.associatedChildMessage != null && Object.hasOwnProperty.call(message, "associatedChildMessage"))
|
|
42585
43999
|
$root.waproto.Message.FutureProofMessage.encode(message.associatedChildMessage, writer.uint32(/* id 91, wireType 2 =*/730).fork()).ldelim();
|
|
44000
|
+
if (message.groupStatusMentionMessage != null && Object.hasOwnProperty.call(message, "groupStatusMentionMessage"))
|
|
44001
|
+
$root.waproto.Message.FutureProofMessage.encode(message.groupStatusMentionMessage, writer.uint32(/* id 92, wireType 2 =*/738).fork()).ldelim();
|
|
44002
|
+
if (message.pollCreationMessageV4 != null && Object.hasOwnProperty.call(message, "pollCreationMessageV4"))
|
|
44003
|
+
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationMessageV4, writer.uint32(/* id 93, wireType 2 =*/746).fork()).ldelim();
|
|
44004
|
+
if (message.pollCreationMessageV5 != null && Object.hasOwnProperty.call(message, "pollCreationMessageV5"))
|
|
44005
|
+
$root.waproto.Message.FutureProofMessage.encode(message.pollCreationMessageV5, writer.uint32(/* id 94, wireType 2 =*/754).fork()).ldelim();
|
|
44006
|
+
if (message.statusAddYours != null && Object.hasOwnProperty.call(message, "statusAddYours"))
|
|
44007
|
+
$root.waproto.Message.FutureProofMessage.encode(message.statusAddYours, writer.uint32(/* id 95, wireType 2 =*/762).fork()).ldelim();
|
|
42586
44008
|
return writer;
|
|
42587
44009
|
};
|
|
42588
44010
|
|
|
@@ -42909,10 +44331,6 @@ $root.waproto = (function() {
|
|
|
42909
44331
|
message.pollResultSnapshotMessage = $root.waproto.Message.PollResultSnapshotMessage.decode(reader, reader.uint32());
|
|
42910
44332
|
break;
|
|
42911
44333
|
}
|
|
42912
|
-
case 89: {
|
|
42913
|
-
message.pollCreationMessageV4 = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
42914
|
-
break;
|
|
42915
|
-
}
|
|
42916
44334
|
case 90: {
|
|
42917
44335
|
message.pollCreationOptionImageMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
42918
44336
|
break;
|
|
@@ -42921,6 +44339,22 @@ $root.waproto = (function() {
|
|
|
42921
44339
|
message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
42922
44340
|
break;
|
|
42923
44341
|
}
|
|
44342
|
+
case 92: {
|
|
44343
|
+
message.groupStatusMentionMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
44344
|
+
break;
|
|
44345
|
+
}
|
|
44346
|
+
case 93: {
|
|
44347
|
+
message.pollCreationMessageV4 = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
44348
|
+
break;
|
|
44349
|
+
}
|
|
44350
|
+
case 94: {
|
|
44351
|
+
message.pollCreationMessageV5 = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
44352
|
+
break;
|
|
44353
|
+
}
|
|
44354
|
+
case 95: {
|
|
44355
|
+
message.statusAddYours = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
44356
|
+
break;
|
|
44357
|
+
}
|
|
42924
44358
|
default:
|
|
42925
44359
|
reader.skipType(tag & 7);
|
|
42926
44360
|
break;
|
|
@@ -43538,14 +44972,6 @@ $root.waproto = (function() {
|
|
|
43538
44972
|
return "pollResultSnapshotMessage." + error;
|
|
43539
44973
|
}
|
|
43540
44974
|
}
|
|
43541
|
-
if (message.pollCreationMessageV4 != null && message.hasOwnProperty("pollCreationMessageV4")) {
|
|
43542
|
-
properties._pollCreationMessageV4 = 1;
|
|
43543
|
-
{
|
|
43544
|
-
var error = $root.waproto.Message.FutureProofMessage.verify(message.pollCreationMessageV4);
|
|
43545
|
-
if (error)
|
|
43546
|
-
return "pollCreationMessageV4." + error;
|
|
43547
|
-
}
|
|
43548
|
-
}
|
|
43549
44975
|
if (message.pollCreationOptionImageMessage != null && message.hasOwnProperty("pollCreationOptionImageMessage")) {
|
|
43550
44976
|
properties._pollCreationOptionImageMessage = 1;
|
|
43551
44977
|
{
|
|
@@ -43562,6 +44988,38 @@ $root.waproto = (function() {
|
|
|
43562
44988
|
return "associatedChildMessage." + error;
|
|
43563
44989
|
}
|
|
43564
44990
|
}
|
|
44991
|
+
if (message.groupStatusMentionMessage != null && message.hasOwnProperty("groupStatusMentionMessage")) {
|
|
44992
|
+
properties._groupStatusMentionMessage = 1;
|
|
44993
|
+
{
|
|
44994
|
+
var error = $root.waproto.Message.FutureProofMessage.verify(message.groupStatusMentionMessage);
|
|
44995
|
+
if (error)
|
|
44996
|
+
return "groupStatusMentionMessage." + error;
|
|
44997
|
+
}
|
|
44998
|
+
}
|
|
44999
|
+
if (message.pollCreationMessageV4 != null && message.hasOwnProperty("pollCreationMessageV4")) {
|
|
45000
|
+
properties._pollCreationMessageV4 = 1;
|
|
45001
|
+
{
|
|
45002
|
+
var error = $root.waproto.Message.FutureProofMessage.verify(message.pollCreationMessageV4);
|
|
45003
|
+
if (error)
|
|
45004
|
+
return "pollCreationMessageV4." + error;
|
|
45005
|
+
}
|
|
45006
|
+
}
|
|
45007
|
+
if (message.pollCreationMessageV5 != null && message.hasOwnProperty("pollCreationMessageV5")) {
|
|
45008
|
+
properties._pollCreationMessageV5 = 1;
|
|
45009
|
+
{
|
|
45010
|
+
var error = $root.waproto.Message.FutureProofMessage.verify(message.pollCreationMessageV5);
|
|
45011
|
+
if (error)
|
|
45012
|
+
return "pollCreationMessageV5." + error;
|
|
45013
|
+
}
|
|
45014
|
+
}
|
|
45015
|
+
if (message.statusAddYours != null && message.hasOwnProperty("statusAddYours")) {
|
|
45016
|
+
properties._statusAddYours = 1;
|
|
45017
|
+
{
|
|
45018
|
+
var error = $root.waproto.Message.FutureProofMessage.verify(message.statusAddYours);
|
|
45019
|
+
if (error)
|
|
45020
|
+
return "statusAddYours." + error;
|
|
45021
|
+
}
|
|
45022
|
+
}
|
|
43565
45023
|
return null;
|
|
43566
45024
|
};
|
|
43567
45025
|
|
|
@@ -43939,11 +45397,6 @@ $root.waproto = (function() {
|
|
|
43939
45397
|
throw TypeError(".waproto.Message.pollResultSnapshotMessage: object expected");
|
|
43940
45398
|
message.pollResultSnapshotMessage = $root.waproto.Message.PollResultSnapshotMessage.fromObject(object.pollResultSnapshotMessage);
|
|
43941
45399
|
}
|
|
43942
|
-
if (object.pollCreationMessageV4 != null) {
|
|
43943
|
-
if (typeof object.pollCreationMessageV4 !== "object")
|
|
43944
|
-
throw TypeError(".waproto.Message.pollCreationMessageV4: object expected");
|
|
43945
|
-
message.pollCreationMessageV4 = $root.waproto.Message.FutureProofMessage.fromObject(object.pollCreationMessageV4);
|
|
43946
|
-
}
|
|
43947
45400
|
if (object.pollCreationOptionImageMessage != null) {
|
|
43948
45401
|
if (typeof object.pollCreationOptionImageMessage !== "object")
|
|
43949
45402
|
throw TypeError(".waproto.Message.pollCreationOptionImageMessage: object expected");
|
|
@@ -43954,6 +45407,26 @@ $root.waproto = (function() {
|
|
|
43954
45407
|
throw TypeError(".waproto.Message.associatedChildMessage: object expected");
|
|
43955
45408
|
message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.associatedChildMessage);
|
|
43956
45409
|
}
|
|
45410
|
+
if (object.groupStatusMentionMessage != null) {
|
|
45411
|
+
if (typeof object.groupStatusMentionMessage !== "object")
|
|
45412
|
+
throw TypeError(".waproto.Message.groupStatusMentionMessage: object expected");
|
|
45413
|
+
message.groupStatusMentionMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.groupStatusMentionMessage);
|
|
45414
|
+
}
|
|
45415
|
+
if (object.pollCreationMessageV4 != null) {
|
|
45416
|
+
if (typeof object.pollCreationMessageV4 !== "object")
|
|
45417
|
+
throw TypeError(".waproto.Message.pollCreationMessageV4: object expected");
|
|
45418
|
+
message.pollCreationMessageV4 = $root.waproto.Message.FutureProofMessage.fromObject(object.pollCreationMessageV4);
|
|
45419
|
+
}
|
|
45420
|
+
if (object.pollCreationMessageV5 != null) {
|
|
45421
|
+
if (typeof object.pollCreationMessageV5 !== "object")
|
|
45422
|
+
throw TypeError(".waproto.Message.pollCreationMessageV5: object expected");
|
|
45423
|
+
message.pollCreationMessageV5 = $root.waproto.Message.FutureProofMessage.fromObject(object.pollCreationMessageV5);
|
|
45424
|
+
}
|
|
45425
|
+
if (object.statusAddYours != null) {
|
|
45426
|
+
if (typeof object.statusAddYours !== "object")
|
|
45427
|
+
throw TypeError(".waproto.Message.statusAddYours: object expected");
|
|
45428
|
+
message.statusAddYours = $root.waproto.Message.FutureProofMessage.fromObject(object.statusAddYours);
|
|
45429
|
+
}
|
|
43957
45430
|
return message;
|
|
43958
45431
|
};
|
|
43959
45432
|
|
|
@@ -44335,11 +45808,6 @@ $root.waproto = (function() {
|
|
|
44335
45808
|
if (options.oneofs)
|
|
44336
45809
|
object._pollResultSnapshotMessage = "pollResultSnapshotMessage";
|
|
44337
45810
|
}
|
|
44338
|
-
if (message.pollCreationMessageV4 != null && message.hasOwnProperty("pollCreationMessageV4")) {
|
|
44339
|
-
object.pollCreationMessageV4 = $root.waproto.Message.FutureProofMessage.toObject(message.pollCreationMessageV4, options);
|
|
44340
|
-
if (options.oneofs)
|
|
44341
|
-
object._pollCreationMessageV4 = "pollCreationMessageV4";
|
|
44342
|
-
}
|
|
44343
45811
|
if (message.pollCreationOptionImageMessage != null && message.hasOwnProperty("pollCreationOptionImageMessage")) {
|
|
44344
45812
|
object.pollCreationOptionImageMessage = $root.waproto.Message.FutureProofMessage.toObject(message.pollCreationOptionImageMessage, options);
|
|
44345
45813
|
if (options.oneofs)
|
|
@@ -44350,6 +45818,26 @@ $root.waproto = (function() {
|
|
|
44350
45818
|
if (options.oneofs)
|
|
44351
45819
|
object._associatedChildMessage = "associatedChildMessage";
|
|
44352
45820
|
}
|
|
45821
|
+
if (message.groupStatusMentionMessage != null && message.hasOwnProperty("groupStatusMentionMessage")) {
|
|
45822
|
+
object.groupStatusMentionMessage = $root.waproto.Message.FutureProofMessage.toObject(message.groupStatusMentionMessage, options);
|
|
45823
|
+
if (options.oneofs)
|
|
45824
|
+
object._groupStatusMentionMessage = "groupStatusMentionMessage";
|
|
45825
|
+
}
|
|
45826
|
+
if (message.pollCreationMessageV4 != null && message.hasOwnProperty("pollCreationMessageV4")) {
|
|
45827
|
+
object.pollCreationMessageV4 = $root.waproto.Message.FutureProofMessage.toObject(message.pollCreationMessageV4, options);
|
|
45828
|
+
if (options.oneofs)
|
|
45829
|
+
object._pollCreationMessageV4 = "pollCreationMessageV4";
|
|
45830
|
+
}
|
|
45831
|
+
if (message.pollCreationMessageV5 != null && message.hasOwnProperty("pollCreationMessageV5")) {
|
|
45832
|
+
object.pollCreationMessageV5 = $root.waproto.Message.FutureProofMessage.toObject(message.pollCreationMessageV5, options);
|
|
45833
|
+
if (options.oneofs)
|
|
45834
|
+
object._pollCreationMessageV5 = "pollCreationMessageV5";
|
|
45835
|
+
}
|
|
45836
|
+
if (message.statusAddYours != null && message.hasOwnProperty("statusAddYours")) {
|
|
45837
|
+
object.statusAddYours = $root.waproto.Message.FutureProofMessage.toObject(message.statusAddYours, options);
|
|
45838
|
+
if (options.oneofs)
|
|
45839
|
+
object._statusAddYours = "statusAddYours";
|
|
45840
|
+
}
|
|
44353
45841
|
return object;
|
|
44354
45842
|
};
|
|
44355
45843
|
|
|
@@ -78429,6 +79917,8 @@ $root.waproto = (function() {
|
|
|
78429
79917
|
* @property {number|null} [selectableOptionsCount] PollCreationMessage selectableOptionsCount
|
|
78430
79918
|
* @property {waproto.IContextInfo|null} [contextInfo] PollCreationMessage contextInfo
|
|
78431
79919
|
* @property {waproto.Message.PollMediaType|null} [pollMediaType] PollCreationMessage pollMediaType
|
|
79920
|
+
* @property {waproto.Message.PollCreationMessage.PollType|null} [pollType] PollCreationMessage pollType
|
|
79921
|
+
* @property {waproto.Message.PollCreationMessage.IOption|null} [correctAnswer] PollCreationMessage correctAnswer
|
|
78432
79922
|
*/
|
|
78433
79923
|
|
|
78434
79924
|
/**
|
|
@@ -78495,6 +79985,22 @@ $root.waproto = (function() {
|
|
|
78495
79985
|
*/
|
|
78496
79986
|
PollCreationMessage.prototype.pollMediaType = null;
|
|
78497
79987
|
|
|
79988
|
+
/**
|
|
79989
|
+
* PollCreationMessage pollType.
|
|
79990
|
+
* @member {waproto.Message.PollCreationMessage.PollType|null|undefined} pollType
|
|
79991
|
+
* @memberof waproto.Message.PollCreationMessage
|
|
79992
|
+
* @instance
|
|
79993
|
+
*/
|
|
79994
|
+
PollCreationMessage.prototype.pollType = null;
|
|
79995
|
+
|
|
79996
|
+
/**
|
|
79997
|
+
* PollCreationMessage correctAnswer.
|
|
79998
|
+
* @member {waproto.Message.PollCreationMessage.IOption|null|undefined} correctAnswer
|
|
79999
|
+
* @memberof waproto.Message.PollCreationMessage
|
|
80000
|
+
* @instance
|
|
80001
|
+
*/
|
|
80002
|
+
PollCreationMessage.prototype.correctAnswer = null;
|
|
80003
|
+
|
|
78498
80004
|
// OneOf field names bound to virtual getters and setters
|
|
78499
80005
|
var $oneOfFields;
|
|
78500
80006
|
|
|
@@ -78528,6 +80034,18 @@ $root.waproto = (function() {
|
|
|
78528
80034
|
set: $util.oneOfSetter($oneOfFields)
|
|
78529
80035
|
});
|
|
78530
80036
|
|
|
80037
|
+
// Virtual OneOf for proto3 optional field
|
|
80038
|
+
Object.defineProperty(PollCreationMessage.prototype, "_pollType", {
|
|
80039
|
+
get: $util.oneOfGetter($oneOfFields = ["pollType"]),
|
|
80040
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
80041
|
+
});
|
|
80042
|
+
|
|
80043
|
+
// Virtual OneOf for proto3 optional field
|
|
80044
|
+
Object.defineProperty(PollCreationMessage.prototype, "_correctAnswer", {
|
|
80045
|
+
get: $util.oneOfGetter($oneOfFields = ["correctAnswer"]),
|
|
80046
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
80047
|
+
});
|
|
80048
|
+
|
|
78531
80049
|
/**
|
|
78532
80050
|
* Creates a new PollCreationMessage instance using the specified properties.
|
|
78533
80051
|
* @function create
|
|
@@ -78565,6 +80083,10 @@ $root.waproto = (function() {
|
|
|
78565
80083
|
$root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
78566
80084
|
if (message.pollMediaType != null && Object.hasOwnProperty.call(message, "pollMediaType"))
|
|
78567
80085
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pollMediaType);
|
|
80086
|
+
if (message.pollType != null && Object.hasOwnProperty.call(message, "pollType"))
|
|
80087
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.pollType);
|
|
80088
|
+
if (message.correctAnswer != null && Object.hasOwnProperty.call(message, "correctAnswer"))
|
|
80089
|
+
$root.waproto.Message.PollCreationMessage.Option.encode(message.correctAnswer, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
78568
80090
|
return writer;
|
|
78569
80091
|
};
|
|
78570
80092
|
|
|
@@ -78625,6 +80147,14 @@ $root.waproto = (function() {
|
|
|
78625
80147
|
message.pollMediaType = reader.int32();
|
|
78626
80148
|
break;
|
|
78627
80149
|
}
|
|
80150
|
+
case 7: {
|
|
80151
|
+
message.pollType = reader.int32();
|
|
80152
|
+
break;
|
|
80153
|
+
}
|
|
80154
|
+
case 8: {
|
|
80155
|
+
message.correctAnswer = $root.waproto.Message.PollCreationMessage.Option.decode(reader, reader.uint32());
|
|
80156
|
+
break;
|
|
80157
|
+
}
|
|
78628
80158
|
default:
|
|
78629
80159
|
reader.skipType(tag & 7);
|
|
78630
80160
|
break;
|
|
@@ -78703,6 +80233,24 @@ $root.waproto = (function() {
|
|
|
78703
80233
|
break;
|
|
78704
80234
|
}
|
|
78705
80235
|
}
|
|
80236
|
+
if (message.pollType != null && message.hasOwnProperty("pollType")) {
|
|
80237
|
+
properties._pollType = 1;
|
|
80238
|
+
switch (message.pollType) {
|
|
80239
|
+
default:
|
|
80240
|
+
return "pollType: enum value expected";
|
|
80241
|
+
case 0:
|
|
80242
|
+
case 1:
|
|
80243
|
+
break;
|
|
80244
|
+
}
|
|
80245
|
+
}
|
|
80246
|
+
if (message.correctAnswer != null && message.hasOwnProperty("correctAnswer")) {
|
|
80247
|
+
properties._correctAnswer = 1;
|
|
80248
|
+
{
|
|
80249
|
+
var error = $root.waproto.Message.PollCreationMessage.Option.verify(message.correctAnswer);
|
|
80250
|
+
if (error)
|
|
80251
|
+
return "correctAnswer." + error;
|
|
80252
|
+
}
|
|
80253
|
+
}
|
|
78706
80254
|
return null;
|
|
78707
80255
|
};
|
|
78708
80256
|
|
|
@@ -78758,6 +80306,27 @@ $root.waproto = (function() {
|
|
|
78758
80306
|
message.pollMediaType = 2;
|
|
78759
80307
|
break;
|
|
78760
80308
|
}
|
|
80309
|
+
switch (object.pollType) {
|
|
80310
|
+
default:
|
|
80311
|
+
if (typeof object.pollType === "number") {
|
|
80312
|
+
message.pollType = object.pollType;
|
|
80313
|
+
break;
|
|
80314
|
+
}
|
|
80315
|
+
break;
|
|
80316
|
+
case "POLL":
|
|
80317
|
+
case 0:
|
|
80318
|
+
message.pollType = 0;
|
|
80319
|
+
break;
|
|
80320
|
+
case "QUIZ":
|
|
80321
|
+
case 1:
|
|
80322
|
+
message.pollType = 1;
|
|
80323
|
+
break;
|
|
80324
|
+
}
|
|
80325
|
+
if (object.correctAnswer != null) {
|
|
80326
|
+
if (typeof object.correctAnswer !== "object")
|
|
80327
|
+
throw TypeError(".waproto.Message.PollCreationMessage.correctAnswer: object expected");
|
|
80328
|
+
message.correctAnswer = $root.waproto.Message.PollCreationMessage.Option.fromObject(object.correctAnswer);
|
|
80329
|
+
}
|
|
78761
80330
|
return message;
|
|
78762
80331
|
};
|
|
78763
80332
|
|
|
@@ -78806,6 +80375,16 @@ $root.waproto = (function() {
|
|
|
78806
80375
|
if (options.oneofs)
|
|
78807
80376
|
object._pollMediaType = "pollMediaType";
|
|
78808
80377
|
}
|
|
80378
|
+
if (message.pollType != null && message.hasOwnProperty("pollType")) {
|
|
80379
|
+
object.pollType = options.enums === String ? $root.waproto.Message.PollCreationMessage.PollType[message.pollType] === undefined ? message.pollType : $root.waproto.Message.PollCreationMessage.PollType[message.pollType] : message.pollType;
|
|
80380
|
+
if (options.oneofs)
|
|
80381
|
+
object._pollType = "pollType";
|
|
80382
|
+
}
|
|
80383
|
+
if (message.correctAnswer != null && message.hasOwnProperty("correctAnswer")) {
|
|
80384
|
+
object.correctAnswer = $root.waproto.Message.PollCreationMessage.Option.toObject(message.correctAnswer, options);
|
|
80385
|
+
if (options.oneofs)
|
|
80386
|
+
object._correctAnswer = "correctAnswer";
|
|
80387
|
+
}
|
|
78809
80388
|
return object;
|
|
78810
80389
|
};
|
|
78811
80390
|
|
|
@@ -79084,6 +80663,20 @@ $root.waproto = (function() {
|
|
|
79084
80663
|
return Option;
|
|
79085
80664
|
})();
|
|
79086
80665
|
|
|
80666
|
+
/**
|
|
80667
|
+
* PollType enum.
|
|
80668
|
+
* @name waproto.Message.PollCreationMessage.PollType
|
|
80669
|
+
* @enum {number}
|
|
80670
|
+
* @property {number} POLL=0 POLL value
|
|
80671
|
+
* @property {number} QUIZ=1 QUIZ value
|
|
80672
|
+
*/
|
|
80673
|
+
PollCreationMessage.PollType = (function() {
|
|
80674
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
80675
|
+
values[valuesById[0] = "POLL"] = 0;
|
|
80676
|
+
values[valuesById[1] = "QUIZ"] = 1;
|
|
80677
|
+
return values;
|
|
80678
|
+
})();
|
|
80679
|
+
|
|
79087
80680
|
return PollCreationMessage;
|
|
79088
80681
|
})();
|
|
79089
80682
|
|
|
@@ -92449,6 +94042,7 @@ $root.waproto = (function() {
|
|
|
92449
94042
|
case 5:
|
|
92450
94043
|
case 6:
|
|
92451
94044
|
case 7:
|
|
94045
|
+
case 8:
|
|
92452
94046
|
break;
|
|
92453
94047
|
}
|
|
92454
94048
|
}
|
|
@@ -92519,6 +94113,10 @@ $root.waproto = (function() {
|
|
|
92519
94113
|
case 7:
|
|
92520
94114
|
message.associationType = 7;
|
|
92521
94115
|
break;
|
|
94116
|
+
case "STATUS_ADD_YOURS":
|
|
94117
|
+
case 8:
|
|
94118
|
+
message.associationType = 8;
|
|
94119
|
+
break;
|
|
92522
94120
|
}
|
|
92523
94121
|
if (object.parentMessageKey != null) {
|
|
92524
94122
|
if (typeof object.parentMessageKey !== "object")
|
|
@@ -92599,6 +94197,7 @@ $root.waproto = (function() {
|
|
|
92599
94197
|
* @property {number} HD_VIDEO_DUAL_UPLOAD=5 HD_VIDEO_DUAL_UPLOAD value
|
|
92600
94198
|
* @property {number} STATUS_TAPPABLE_MESSAGE=6 STATUS_TAPPABLE_MESSAGE value
|
|
92601
94199
|
* @property {number} MEDIA_POLL=7 MEDIA_POLL value
|
|
94200
|
+
* @property {number} STATUS_ADD_YOURS=8 STATUS_ADD_YOURS value
|
|
92602
94201
|
*/
|
|
92603
94202
|
MessageAssociation.AssociationType = (function() {
|
|
92604
94203
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -92610,6 +94209,7 @@ $root.waproto = (function() {
|
|
|
92610
94209
|
values[valuesById[5] = "HD_VIDEO_DUAL_UPLOAD"] = 5;
|
|
92611
94210
|
values[valuesById[6] = "STATUS_TAPPABLE_MESSAGE"] = 6;
|
|
92612
94211
|
values[valuesById[7] = "MEDIA_POLL"] = 7;
|
|
94212
|
+
values[valuesById[8] = "STATUS_ADD_YOURS"] = 8;
|
|
92613
94213
|
return values;
|
|
92614
94214
|
})();
|
|
92615
94215
|
|
|
@@ -98309,6 +99909,297 @@ $root.waproto = (function() {
|
|
|
98309
99909
|
return NotificationSettings;
|
|
98310
99910
|
})();
|
|
98311
99911
|
|
|
99912
|
+
waproto.PairingRequest = (function() {
|
|
99913
|
+
|
|
99914
|
+
/**
|
|
99915
|
+
* Properties of a PairingRequest.
|
|
99916
|
+
* @memberof waproto
|
|
99917
|
+
* @interface IPairingRequest
|
|
99918
|
+
* @property {Uint8Array|null} [companionPublicKey] PairingRequest companionPublicKey
|
|
99919
|
+
* @property {Uint8Array|null} [companionIdentityKey] PairingRequest companionIdentityKey
|
|
99920
|
+
* @property {Uint8Array|null} [advSecret] PairingRequest advSecret
|
|
99921
|
+
*/
|
|
99922
|
+
|
|
99923
|
+
/**
|
|
99924
|
+
* Constructs a new PairingRequest.
|
|
99925
|
+
* @memberof waproto
|
|
99926
|
+
* @classdesc Represents a PairingRequest.
|
|
99927
|
+
* @implements IPairingRequest
|
|
99928
|
+
* @constructor
|
|
99929
|
+
* @param {waproto.IPairingRequest=} [properties] Properties to set
|
|
99930
|
+
*/
|
|
99931
|
+
function PairingRequest(properties) {
|
|
99932
|
+
if (properties)
|
|
99933
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
99934
|
+
if (properties[keys[i]] != null)
|
|
99935
|
+
this[keys[i]] = properties[keys[i]];
|
|
99936
|
+
}
|
|
99937
|
+
|
|
99938
|
+
/**
|
|
99939
|
+
* PairingRequest companionPublicKey.
|
|
99940
|
+
* @member {Uint8Array|null|undefined} companionPublicKey
|
|
99941
|
+
* @memberof waproto.PairingRequest
|
|
99942
|
+
* @instance
|
|
99943
|
+
*/
|
|
99944
|
+
PairingRequest.prototype.companionPublicKey = null;
|
|
99945
|
+
|
|
99946
|
+
/**
|
|
99947
|
+
* PairingRequest companionIdentityKey.
|
|
99948
|
+
* @member {Uint8Array|null|undefined} companionIdentityKey
|
|
99949
|
+
* @memberof waproto.PairingRequest
|
|
99950
|
+
* @instance
|
|
99951
|
+
*/
|
|
99952
|
+
PairingRequest.prototype.companionIdentityKey = null;
|
|
99953
|
+
|
|
99954
|
+
/**
|
|
99955
|
+
* PairingRequest advSecret.
|
|
99956
|
+
* @member {Uint8Array|null|undefined} advSecret
|
|
99957
|
+
* @memberof waproto.PairingRequest
|
|
99958
|
+
* @instance
|
|
99959
|
+
*/
|
|
99960
|
+
PairingRequest.prototype.advSecret = null;
|
|
99961
|
+
|
|
99962
|
+
// OneOf field names bound to virtual getters and setters
|
|
99963
|
+
var $oneOfFields;
|
|
99964
|
+
|
|
99965
|
+
// Virtual OneOf for proto3 optional field
|
|
99966
|
+
Object.defineProperty(PairingRequest.prototype, "_companionPublicKey", {
|
|
99967
|
+
get: $util.oneOfGetter($oneOfFields = ["companionPublicKey"]),
|
|
99968
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
99969
|
+
});
|
|
99970
|
+
|
|
99971
|
+
// Virtual OneOf for proto3 optional field
|
|
99972
|
+
Object.defineProperty(PairingRequest.prototype, "_companionIdentityKey", {
|
|
99973
|
+
get: $util.oneOfGetter($oneOfFields = ["companionIdentityKey"]),
|
|
99974
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
99975
|
+
});
|
|
99976
|
+
|
|
99977
|
+
// Virtual OneOf for proto3 optional field
|
|
99978
|
+
Object.defineProperty(PairingRequest.prototype, "_advSecret", {
|
|
99979
|
+
get: $util.oneOfGetter($oneOfFields = ["advSecret"]),
|
|
99980
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
99981
|
+
});
|
|
99982
|
+
|
|
99983
|
+
/**
|
|
99984
|
+
* Creates a new PairingRequest instance using the specified properties.
|
|
99985
|
+
* @function create
|
|
99986
|
+
* @memberof waproto.PairingRequest
|
|
99987
|
+
* @static
|
|
99988
|
+
* @param {waproto.IPairingRequest=} [properties] Properties to set
|
|
99989
|
+
* @returns {waproto.PairingRequest} PairingRequest instance
|
|
99990
|
+
*/
|
|
99991
|
+
PairingRequest.create = function create(properties) {
|
|
99992
|
+
return new PairingRequest(properties);
|
|
99993
|
+
};
|
|
99994
|
+
|
|
99995
|
+
/**
|
|
99996
|
+
* Encodes the specified PairingRequest message. Does not implicitly {@link waproto.PairingRequest.verify|verify} messages.
|
|
99997
|
+
* @function encode
|
|
99998
|
+
* @memberof waproto.PairingRequest
|
|
99999
|
+
* @static
|
|
100000
|
+
* @param {waproto.IPairingRequest} message PairingRequest message or plain object to encode
|
|
100001
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
100002
|
+
* @returns {$protobuf.Writer} Writer
|
|
100003
|
+
*/
|
|
100004
|
+
PairingRequest.encode = function encode(message, writer) {
|
|
100005
|
+
if (!writer)
|
|
100006
|
+
writer = $Writer.create();
|
|
100007
|
+
if (message.companionPublicKey != null && Object.hasOwnProperty.call(message, "companionPublicKey"))
|
|
100008
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.companionPublicKey);
|
|
100009
|
+
if (message.companionIdentityKey != null && Object.hasOwnProperty.call(message, "companionIdentityKey"))
|
|
100010
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.companionIdentityKey);
|
|
100011
|
+
if (message.advSecret != null && Object.hasOwnProperty.call(message, "advSecret"))
|
|
100012
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.advSecret);
|
|
100013
|
+
return writer;
|
|
100014
|
+
};
|
|
100015
|
+
|
|
100016
|
+
/**
|
|
100017
|
+
* Encodes the specified PairingRequest message, length delimited. Does not implicitly {@link waproto.PairingRequest.verify|verify} messages.
|
|
100018
|
+
* @function encodeDelimited
|
|
100019
|
+
* @memberof waproto.PairingRequest
|
|
100020
|
+
* @static
|
|
100021
|
+
* @param {waproto.IPairingRequest} message PairingRequest message or plain object to encode
|
|
100022
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
100023
|
+
* @returns {$protobuf.Writer} Writer
|
|
100024
|
+
*/
|
|
100025
|
+
PairingRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
100026
|
+
return this.encode(message, writer).ldelim();
|
|
100027
|
+
};
|
|
100028
|
+
|
|
100029
|
+
/**
|
|
100030
|
+
* Decodes a PairingRequest message from the specified reader or buffer.
|
|
100031
|
+
* @function decode
|
|
100032
|
+
* @memberof waproto.PairingRequest
|
|
100033
|
+
* @static
|
|
100034
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
100035
|
+
* @param {number} [length] Message length if known beforehand
|
|
100036
|
+
* @returns {waproto.PairingRequest} PairingRequest
|
|
100037
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
100038
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
100039
|
+
*/
|
|
100040
|
+
PairingRequest.decode = function decode(reader, length) {
|
|
100041
|
+
if (!(reader instanceof $Reader))
|
|
100042
|
+
reader = $Reader.create(reader);
|
|
100043
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.PairingRequest();
|
|
100044
|
+
while (reader.pos < end) {
|
|
100045
|
+
var tag = reader.uint32();
|
|
100046
|
+
switch (tag >>> 3) {
|
|
100047
|
+
case 1: {
|
|
100048
|
+
message.companionPublicKey = reader.bytes();
|
|
100049
|
+
break;
|
|
100050
|
+
}
|
|
100051
|
+
case 2: {
|
|
100052
|
+
message.companionIdentityKey = reader.bytes();
|
|
100053
|
+
break;
|
|
100054
|
+
}
|
|
100055
|
+
case 3: {
|
|
100056
|
+
message.advSecret = reader.bytes();
|
|
100057
|
+
break;
|
|
100058
|
+
}
|
|
100059
|
+
default:
|
|
100060
|
+
reader.skipType(tag & 7);
|
|
100061
|
+
break;
|
|
100062
|
+
}
|
|
100063
|
+
}
|
|
100064
|
+
return message;
|
|
100065
|
+
};
|
|
100066
|
+
|
|
100067
|
+
/**
|
|
100068
|
+
* Decodes a PairingRequest message from the specified reader or buffer, length delimited.
|
|
100069
|
+
* @function decodeDelimited
|
|
100070
|
+
* @memberof waproto.PairingRequest
|
|
100071
|
+
* @static
|
|
100072
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
100073
|
+
* @returns {waproto.PairingRequest} PairingRequest
|
|
100074
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
100075
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
100076
|
+
*/
|
|
100077
|
+
PairingRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
100078
|
+
if (!(reader instanceof $Reader))
|
|
100079
|
+
reader = new $Reader(reader);
|
|
100080
|
+
return this.decode(reader, reader.uint32());
|
|
100081
|
+
};
|
|
100082
|
+
|
|
100083
|
+
/**
|
|
100084
|
+
* Verifies a PairingRequest message.
|
|
100085
|
+
* @function verify
|
|
100086
|
+
* @memberof waproto.PairingRequest
|
|
100087
|
+
* @static
|
|
100088
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
100089
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
100090
|
+
*/
|
|
100091
|
+
PairingRequest.verify = function verify(message) {
|
|
100092
|
+
if (typeof message !== "object" || message === null)
|
|
100093
|
+
return "object expected";
|
|
100094
|
+
var properties = {};
|
|
100095
|
+
if (message.companionPublicKey != null && message.hasOwnProperty("companionPublicKey")) {
|
|
100096
|
+
properties._companionPublicKey = 1;
|
|
100097
|
+
if (!(message.companionPublicKey && typeof message.companionPublicKey.length === "number" || $util.isString(message.companionPublicKey)))
|
|
100098
|
+
return "companionPublicKey: buffer expected";
|
|
100099
|
+
}
|
|
100100
|
+
if (message.companionIdentityKey != null && message.hasOwnProperty("companionIdentityKey")) {
|
|
100101
|
+
properties._companionIdentityKey = 1;
|
|
100102
|
+
if (!(message.companionIdentityKey && typeof message.companionIdentityKey.length === "number" || $util.isString(message.companionIdentityKey)))
|
|
100103
|
+
return "companionIdentityKey: buffer expected";
|
|
100104
|
+
}
|
|
100105
|
+
if (message.advSecret != null && message.hasOwnProperty("advSecret")) {
|
|
100106
|
+
properties._advSecret = 1;
|
|
100107
|
+
if (!(message.advSecret && typeof message.advSecret.length === "number" || $util.isString(message.advSecret)))
|
|
100108
|
+
return "advSecret: buffer expected";
|
|
100109
|
+
}
|
|
100110
|
+
return null;
|
|
100111
|
+
};
|
|
100112
|
+
|
|
100113
|
+
/**
|
|
100114
|
+
* Creates a PairingRequest message from a plain object. Also converts values to their respective internal types.
|
|
100115
|
+
* @function fromObject
|
|
100116
|
+
* @memberof waproto.PairingRequest
|
|
100117
|
+
* @static
|
|
100118
|
+
* @param {Object.<string,*>} object Plain object
|
|
100119
|
+
* @returns {waproto.PairingRequest} PairingRequest
|
|
100120
|
+
*/
|
|
100121
|
+
PairingRequest.fromObject = function fromObject(object) {
|
|
100122
|
+
if (object instanceof $root.waproto.PairingRequest)
|
|
100123
|
+
return object;
|
|
100124
|
+
var message = new $root.waproto.PairingRequest();
|
|
100125
|
+
if (object.companionPublicKey != null)
|
|
100126
|
+
if (typeof object.companionPublicKey === "string")
|
|
100127
|
+
$util.base64.decode(object.companionPublicKey, message.companionPublicKey = $util.newBuffer($util.base64.length(object.companionPublicKey)), 0);
|
|
100128
|
+
else if (object.companionPublicKey.length >= 0)
|
|
100129
|
+
message.companionPublicKey = object.companionPublicKey;
|
|
100130
|
+
if (object.companionIdentityKey != null)
|
|
100131
|
+
if (typeof object.companionIdentityKey === "string")
|
|
100132
|
+
$util.base64.decode(object.companionIdentityKey, message.companionIdentityKey = $util.newBuffer($util.base64.length(object.companionIdentityKey)), 0);
|
|
100133
|
+
else if (object.companionIdentityKey.length >= 0)
|
|
100134
|
+
message.companionIdentityKey = object.companionIdentityKey;
|
|
100135
|
+
if (object.advSecret != null)
|
|
100136
|
+
if (typeof object.advSecret === "string")
|
|
100137
|
+
$util.base64.decode(object.advSecret, message.advSecret = $util.newBuffer($util.base64.length(object.advSecret)), 0);
|
|
100138
|
+
else if (object.advSecret.length >= 0)
|
|
100139
|
+
message.advSecret = object.advSecret;
|
|
100140
|
+
return message;
|
|
100141
|
+
};
|
|
100142
|
+
|
|
100143
|
+
/**
|
|
100144
|
+
* Creates a plain object from a PairingRequest message. Also converts values to other types if specified.
|
|
100145
|
+
* @function toObject
|
|
100146
|
+
* @memberof waproto.PairingRequest
|
|
100147
|
+
* @static
|
|
100148
|
+
* @param {waproto.PairingRequest} message PairingRequest
|
|
100149
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
100150
|
+
* @returns {Object.<string,*>} Plain object
|
|
100151
|
+
*/
|
|
100152
|
+
PairingRequest.toObject = function toObject(message, options) {
|
|
100153
|
+
if (!options)
|
|
100154
|
+
options = {};
|
|
100155
|
+
var object = {};
|
|
100156
|
+
if (message.companionPublicKey != null && message.hasOwnProperty("companionPublicKey")) {
|
|
100157
|
+
object.companionPublicKey = options.bytes === String ? $util.base64.encode(message.companionPublicKey, 0, message.companionPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.companionPublicKey) : message.companionPublicKey;
|
|
100158
|
+
if (options.oneofs)
|
|
100159
|
+
object._companionPublicKey = "companionPublicKey";
|
|
100160
|
+
}
|
|
100161
|
+
if (message.companionIdentityKey != null && message.hasOwnProperty("companionIdentityKey")) {
|
|
100162
|
+
object.companionIdentityKey = options.bytes === String ? $util.base64.encode(message.companionIdentityKey, 0, message.companionIdentityKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.companionIdentityKey) : message.companionIdentityKey;
|
|
100163
|
+
if (options.oneofs)
|
|
100164
|
+
object._companionIdentityKey = "companionIdentityKey";
|
|
100165
|
+
}
|
|
100166
|
+
if (message.advSecret != null && message.hasOwnProperty("advSecret")) {
|
|
100167
|
+
object.advSecret = options.bytes === String ? $util.base64.encode(message.advSecret, 0, message.advSecret.length) : options.bytes === Array ? Array.prototype.slice.call(message.advSecret) : message.advSecret;
|
|
100168
|
+
if (options.oneofs)
|
|
100169
|
+
object._advSecret = "advSecret";
|
|
100170
|
+
}
|
|
100171
|
+
return object;
|
|
100172
|
+
};
|
|
100173
|
+
|
|
100174
|
+
/**
|
|
100175
|
+
* Converts this PairingRequest to JSON.
|
|
100176
|
+
* @function toJSON
|
|
100177
|
+
* @memberof waproto.PairingRequest
|
|
100178
|
+
* @instance
|
|
100179
|
+
* @returns {Object.<string,*>} JSON object
|
|
100180
|
+
*/
|
|
100181
|
+
PairingRequest.prototype.toJSON = function toJSON() {
|
|
100182
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
100183
|
+
};
|
|
100184
|
+
|
|
100185
|
+
/**
|
|
100186
|
+
* Gets the default type url for PairingRequest
|
|
100187
|
+
* @function getTypeUrl
|
|
100188
|
+
* @memberof waproto.PairingRequest
|
|
100189
|
+
* @static
|
|
100190
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
100191
|
+
* @returns {string} The default type url
|
|
100192
|
+
*/
|
|
100193
|
+
PairingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
100194
|
+
if (typeUrlPrefix === undefined) {
|
|
100195
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
100196
|
+
}
|
|
100197
|
+
return typeUrlPrefix + "/waproto.PairingRequest";
|
|
100198
|
+
};
|
|
100199
|
+
|
|
100200
|
+
return PairingRequest;
|
|
100201
|
+
})();
|
|
100202
|
+
|
|
98312
100203
|
waproto.PastParticipant = (function() {
|
|
98313
100204
|
|
|
98314
100205
|
/**
|
|
@@ -99303,6 +101194,8 @@ $root.waproto = (function() {
|
|
|
99303
101194
|
case 4:
|
|
99304
101195
|
case 5:
|
|
99305
101196
|
case 6:
|
|
101197
|
+
case 7:
|
|
101198
|
+
case 8:
|
|
99306
101199
|
break;
|
|
99307
101200
|
}
|
|
99308
101201
|
}
|
|
@@ -99397,6 +101290,14 @@ $root.waproto = (function() {
|
|
|
99397
101290
|
case 6:
|
|
99398
101291
|
message.senderPlatform = 6;
|
|
99399
101292
|
break;
|
|
101293
|
+
case "IPAD":
|
|
101294
|
+
case 7:
|
|
101295
|
+
message.senderPlatform = 7;
|
|
101296
|
+
break;
|
|
101297
|
+
case "WEAROS":
|
|
101298
|
+
case 8:
|
|
101299
|
+
message.senderPlatform = 8;
|
|
101300
|
+
break;
|
|
99400
101301
|
}
|
|
99401
101302
|
if (object.isSenderPrimary != null)
|
|
99402
101303
|
message.isSenderPrimary = Boolean(object.isSenderPrimary);
|
|
@@ -99511,6 +101412,8 @@ $root.waproto = (function() {
|
|
|
99511
101412
|
* @property {number} WEB=4 WEB value
|
|
99512
101413
|
* @property {number} UWP=5 UWP value
|
|
99513
101414
|
* @property {number} DARWIN=6 DARWIN value
|
|
101415
|
+
* @property {number} IPAD=7 IPAD value
|
|
101416
|
+
* @property {number} WEAROS=8 WEAROS value
|
|
99514
101417
|
*/
|
|
99515
101418
|
PatchDebugData.Platform = (function() {
|
|
99516
101419
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -99521,6 +101424,8 @@ $root.waproto = (function() {
|
|
|
99521
101424
|
values[valuesById[4] = "WEB"] = 4;
|
|
99522
101425
|
values[valuesById[5] = "UWP"] = 5;
|
|
99523
101426
|
values[valuesById[6] = "DARWIN"] = 6;
|
|
101427
|
+
values[valuesById[7] = "IPAD"] = 7;
|
|
101428
|
+
values[valuesById[8] = "WEAROS"] = 8;
|
|
99524
101429
|
return values;
|
|
99525
101430
|
})();
|
|
99526
101431
|
|
|
@@ -104519,6 +106424,7 @@ $root.waproto = (function() {
|
|
|
104519
106424
|
* @memberof waproto
|
|
104520
106425
|
* @interface IPrimaryEphemeralIdentity
|
|
104521
106426
|
* @property {Uint8Array|null} [publicKey] PrimaryEphemeralIdentity publicKey
|
|
106427
|
+
* @property {Uint8Array|null} [nonce] PrimaryEphemeralIdentity nonce
|
|
104522
106428
|
*/
|
|
104523
106429
|
|
|
104524
106430
|
/**
|
|
@@ -104544,6 +106450,14 @@ $root.waproto = (function() {
|
|
|
104544
106450
|
*/
|
|
104545
106451
|
PrimaryEphemeralIdentity.prototype.publicKey = null;
|
|
104546
106452
|
|
|
106453
|
+
/**
|
|
106454
|
+
* PrimaryEphemeralIdentity nonce.
|
|
106455
|
+
* @member {Uint8Array|null|undefined} nonce
|
|
106456
|
+
* @memberof waproto.PrimaryEphemeralIdentity
|
|
106457
|
+
* @instance
|
|
106458
|
+
*/
|
|
106459
|
+
PrimaryEphemeralIdentity.prototype.nonce = null;
|
|
106460
|
+
|
|
104547
106461
|
// OneOf field names bound to virtual getters and setters
|
|
104548
106462
|
var $oneOfFields;
|
|
104549
106463
|
|
|
@@ -104553,6 +106467,12 @@ $root.waproto = (function() {
|
|
|
104553
106467
|
set: $util.oneOfSetter($oneOfFields)
|
|
104554
106468
|
});
|
|
104555
106469
|
|
|
106470
|
+
// Virtual OneOf for proto3 optional field
|
|
106471
|
+
Object.defineProperty(PrimaryEphemeralIdentity.prototype, "_nonce", {
|
|
106472
|
+
get: $util.oneOfGetter($oneOfFields = ["nonce"]),
|
|
106473
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
106474
|
+
});
|
|
106475
|
+
|
|
104556
106476
|
/**
|
|
104557
106477
|
* Creates a new PrimaryEphemeralIdentity instance using the specified properties.
|
|
104558
106478
|
* @function create
|
|
@@ -104579,6 +106499,8 @@ $root.waproto = (function() {
|
|
|
104579
106499
|
writer = $Writer.create();
|
|
104580
106500
|
if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey"))
|
|
104581
106501
|
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.publicKey);
|
|
106502
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
106503
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.nonce);
|
|
104582
106504
|
return writer;
|
|
104583
106505
|
};
|
|
104584
106506
|
|
|
@@ -104617,6 +106539,10 @@ $root.waproto = (function() {
|
|
|
104617
106539
|
message.publicKey = reader.bytes();
|
|
104618
106540
|
break;
|
|
104619
106541
|
}
|
|
106542
|
+
case 2: {
|
|
106543
|
+
message.nonce = reader.bytes();
|
|
106544
|
+
break;
|
|
106545
|
+
}
|
|
104620
106546
|
default:
|
|
104621
106547
|
reader.skipType(tag & 7);
|
|
104622
106548
|
break;
|
|
@@ -104658,6 +106584,11 @@ $root.waproto = (function() {
|
|
|
104658
106584
|
if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey)))
|
|
104659
106585
|
return "publicKey: buffer expected";
|
|
104660
106586
|
}
|
|
106587
|
+
if (message.nonce != null && message.hasOwnProperty("nonce")) {
|
|
106588
|
+
properties._nonce = 1;
|
|
106589
|
+
if (!(message.nonce && typeof message.nonce.length === "number" || $util.isString(message.nonce)))
|
|
106590
|
+
return "nonce: buffer expected";
|
|
106591
|
+
}
|
|
104661
106592
|
return null;
|
|
104662
106593
|
};
|
|
104663
106594
|
|
|
@@ -104678,6 +106609,11 @@ $root.waproto = (function() {
|
|
|
104678
106609
|
$util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0);
|
|
104679
106610
|
else if (object.publicKey.length >= 0)
|
|
104680
106611
|
message.publicKey = object.publicKey;
|
|
106612
|
+
if (object.nonce != null)
|
|
106613
|
+
if (typeof object.nonce === "string")
|
|
106614
|
+
$util.base64.decode(object.nonce, message.nonce = $util.newBuffer($util.base64.length(object.nonce)), 0);
|
|
106615
|
+
else if (object.nonce.length >= 0)
|
|
106616
|
+
message.nonce = object.nonce;
|
|
104681
106617
|
return message;
|
|
104682
106618
|
};
|
|
104683
106619
|
|
|
@@ -104699,6 +106635,11 @@ $root.waproto = (function() {
|
|
|
104699
106635
|
if (options.oneofs)
|
|
104700
106636
|
object._publicKey = "publicKey";
|
|
104701
106637
|
}
|
|
106638
|
+
if (message.nonce != null && message.hasOwnProperty("nonce")) {
|
|
106639
|
+
object.nonce = options.bytes === String ? $util.base64.encode(message.nonce, 0, message.nonce.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonce) : message.nonce;
|
|
106640
|
+
if (options.oneofs)
|
|
106641
|
+
object._nonce = "nonce";
|
|
106642
|
+
}
|
|
104702
106643
|
return object;
|
|
104703
106644
|
};
|
|
104704
106645
|
|
|
@@ -105261,6 +107202,264 @@ $root.waproto = (function() {
|
|
|
105261
107202
|
return ProcessedVideo;
|
|
105262
107203
|
})();
|
|
105263
107204
|
|
|
107205
|
+
waproto.ProloguePayload = (function() {
|
|
107206
|
+
|
|
107207
|
+
/**
|
|
107208
|
+
* Properties of a ProloguePayload.
|
|
107209
|
+
* @memberof waproto
|
|
107210
|
+
* @interface IProloguePayload
|
|
107211
|
+
* @property {Uint8Array|null} [companionEphemeralIdentity] ProloguePayload companionEphemeralIdentity
|
|
107212
|
+
* @property {waproto.ICompanionCommitment|null} [commitment] ProloguePayload commitment
|
|
107213
|
+
*/
|
|
107214
|
+
|
|
107215
|
+
/**
|
|
107216
|
+
* Constructs a new ProloguePayload.
|
|
107217
|
+
* @memberof waproto
|
|
107218
|
+
* @classdesc Represents a ProloguePayload.
|
|
107219
|
+
* @implements IProloguePayload
|
|
107220
|
+
* @constructor
|
|
107221
|
+
* @param {waproto.IProloguePayload=} [properties] Properties to set
|
|
107222
|
+
*/
|
|
107223
|
+
function ProloguePayload(properties) {
|
|
107224
|
+
if (properties)
|
|
107225
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
107226
|
+
if (properties[keys[i]] != null)
|
|
107227
|
+
this[keys[i]] = properties[keys[i]];
|
|
107228
|
+
}
|
|
107229
|
+
|
|
107230
|
+
/**
|
|
107231
|
+
* ProloguePayload companionEphemeralIdentity.
|
|
107232
|
+
* @member {Uint8Array|null|undefined} companionEphemeralIdentity
|
|
107233
|
+
* @memberof waproto.ProloguePayload
|
|
107234
|
+
* @instance
|
|
107235
|
+
*/
|
|
107236
|
+
ProloguePayload.prototype.companionEphemeralIdentity = null;
|
|
107237
|
+
|
|
107238
|
+
/**
|
|
107239
|
+
* ProloguePayload commitment.
|
|
107240
|
+
* @member {waproto.ICompanionCommitment|null|undefined} commitment
|
|
107241
|
+
* @memberof waproto.ProloguePayload
|
|
107242
|
+
* @instance
|
|
107243
|
+
*/
|
|
107244
|
+
ProloguePayload.prototype.commitment = null;
|
|
107245
|
+
|
|
107246
|
+
// OneOf field names bound to virtual getters and setters
|
|
107247
|
+
var $oneOfFields;
|
|
107248
|
+
|
|
107249
|
+
// Virtual OneOf for proto3 optional field
|
|
107250
|
+
Object.defineProperty(ProloguePayload.prototype, "_companionEphemeralIdentity", {
|
|
107251
|
+
get: $util.oneOfGetter($oneOfFields = ["companionEphemeralIdentity"]),
|
|
107252
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
107253
|
+
});
|
|
107254
|
+
|
|
107255
|
+
// Virtual OneOf for proto3 optional field
|
|
107256
|
+
Object.defineProperty(ProloguePayload.prototype, "_commitment", {
|
|
107257
|
+
get: $util.oneOfGetter($oneOfFields = ["commitment"]),
|
|
107258
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
107259
|
+
});
|
|
107260
|
+
|
|
107261
|
+
/**
|
|
107262
|
+
* Creates a new ProloguePayload instance using the specified properties.
|
|
107263
|
+
* @function create
|
|
107264
|
+
* @memberof waproto.ProloguePayload
|
|
107265
|
+
* @static
|
|
107266
|
+
* @param {waproto.IProloguePayload=} [properties] Properties to set
|
|
107267
|
+
* @returns {waproto.ProloguePayload} ProloguePayload instance
|
|
107268
|
+
*/
|
|
107269
|
+
ProloguePayload.create = function create(properties) {
|
|
107270
|
+
return new ProloguePayload(properties);
|
|
107271
|
+
};
|
|
107272
|
+
|
|
107273
|
+
/**
|
|
107274
|
+
* Encodes the specified ProloguePayload message. Does not implicitly {@link waproto.ProloguePayload.verify|verify} messages.
|
|
107275
|
+
* @function encode
|
|
107276
|
+
* @memberof waproto.ProloguePayload
|
|
107277
|
+
* @static
|
|
107278
|
+
* @param {waproto.IProloguePayload} message ProloguePayload message or plain object to encode
|
|
107279
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
107280
|
+
* @returns {$protobuf.Writer} Writer
|
|
107281
|
+
*/
|
|
107282
|
+
ProloguePayload.encode = function encode(message, writer) {
|
|
107283
|
+
if (!writer)
|
|
107284
|
+
writer = $Writer.create();
|
|
107285
|
+
if (message.companionEphemeralIdentity != null && Object.hasOwnProperty.call(message, "companionEphemeralIdentity"))
|
|
107286
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.companionEphemeralIdentity);
|
|
107287
|
+
if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment"))
|
|
107288
|
+
$root.waproto.CompanionCommitment.encode(message.commitment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
107289
|
+
return writer;
|
|
107290
|
+
};
|
|
107291
|
+
|
|
107292
|
+
/**
|
|
107293
|
+
* Encodes the specified ProloguePayload message, length delimited. Does not implicitly {@link waproto.ProloguePayload.verify|verify} messages.
|
|
107294
|
+
* @function encodeDelimited
|
|
107295
|
+
* @memberof waproto.ProloguePayload
|
|
107296
|
+
* @static
|
|
107297
|
+
* @param {waproto.IProloguePayload} message ProloguePayload message or plain object to encode
|
|
107298
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
107299
|
+
* @returns {$protobuf.Writer} Writer
|
|
107300
|
+
*/
|
|
107301
|
+
ProloguePayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
107302
|
+
return this.encode(message, writer).ldelim();
|
|
107303
|
+
};
|
|
107304
|
+
|
|
107305
|
+
/**
|
|
107306
|
+
* Decodes a ProloguePayload message from the specified reader or buffer.
|
|
107307
|
+
* @function decode
|
|
107308
|
+
* @memberof waproto.ProloguePayload
|
|
107309
|
+
* @static
|
|
107310
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
107311
|
+
* @param {number} [length] Message length if known beforehand
|
|
107312
|
+
* @returns {waproto.ProloguePayload} ProloguePayload
|
|
107313
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
107314
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
107315
|
+
*/
|
|
107316
|
+
ProloguePayload.decode = function decode(reader, length) {
|
|
107317
|
+
if (!(reader instanceof $Reader))
|
|
107318
|
+
reader = $Reader.create(reader);
|
|
107319
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.ProloguePayload();
|
|
107320
|
+
while (reader.pos < end) {
|
|
107321
|
+
var tag = reader.uint32();
|
|
107322
|
+
switch (tag >>> 3) {
|
|
107323
|
+
case 1: {
|
|
107324
|
+
message.companionEphemeralIdentity = reader.bytes();
|
|
107325
|
+
break;
|
|
107326
|
+
}
|
|
107327
|
+
case 2: {
|
|
107328
|
+
message.commitment = $root.waproto.CompanionCommitment.decode(reader, reader.uint32());
|
|
107329
|
+
break;
|
|
107330
|
+
}
|
|
107331
|
+
default:
|
|
107332
|
+
reader.skipType(tag & 7);
|
|
107333
|
+
break;
|
|
107334
|
+
}
|
|
107335
|
+
}
|
|
107336
|
+
return message;
|
|
107337
|
+
};
|
|
107338
|
+
|
|
107339
|
+
/**
|
|
107340
|
+
* Decodes a ProloguePayload message from the specified reader or buffer, length delimited.
|
|
107341
|
+
* @function decodeDelimited
|
|
107342
|
+
* @memberof waproto.ProloguePayload
|
|
107343
|
+
* @static
|
|
107344
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
107345
|
+
* @returns {waproto.ProloguePayload} ProloguePayload
|
|
107346
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
107347
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
107348
|
+
*/
|
|
107349
|
+
ProloguePayload.decodeDelimited = function decodeDelimited(reader) {
|
|
107350
|
+
if (!(reader instanceof $Reader))
|
|
107351
|
+
reader = new $Reader(reader);
|
|
107352
|
+
return this.decode(reader, reader.uint32());
|
|
107353
|
+
};
|
|
107354
|
+
|
|
107355
|
+
/**
|
|
107356
|
+
* Verifies a ProloguePayload message.
|
|
107357
|
+
* @function verify
|
|
107358
|
+
* @memberof waproto.ProloguePayload
|
|
107359
|
+
* @static
|
|
107360
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
107361
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
107362
|
+
*/
|
|
107363
|
+
ProloguePayload.verify = function verify(message) {
|
|
107364
|
+
if (typeof message !== "object" || message === null)
|
|
107365
|
+
return "object expected";
|
|
107366
|
+
var properties = {};
|
|
107367
|
+
if (message.companionEphemeralIdentity != null && message.hasOwnProperty("companionEphemeralIdentity")) {
|
|
107368
|
+
properties._companionEphemeralIdentity = 1;
|
|
107369
|
+
if (!(message.companionEphemeralIdentity && typeof message.companionEphemeralIdentity.length === "number" || $util.isString(message.companionEphemeralIdentity)))
|
|
107370
|
+
return "companionEphemeralIdentity: buffer expected";
|
|
107371
|
+
}
|
|
107372
|
+
if (message.commitment != null && message.hasOwnProperty("commitment")) {
|
|
107373
|
+
properties._commitment = 1;
|
|
107374
|
+
{
|
|
107375
|
+
var error = $root.waproto.CompanionCommitment.verify(message.commitment);
|
|
107376
|
+
if (error)
|
|
107377
|
+
return "commitment." + error;
|
|
107378
|
+
}
|
|
107379
|
+
}
|
|
107380
|
+
return null;
|
|
107381
|
+
};
|
|
107382
|
+
|
|
107383
|
+
/**
|
|
107384
|
+
* Creates a ProloguePayload message from a plain object. Also converts values to their respective internal types.
|
|
107385
|
+
* @function fromObject
|
|
107386
|
+
* @memberof waproto.ProloguePayload
|
|
107387
|
+
* @static
|
|
107388
|
+
* @param {Object.<string,*>} object Plain object
|
|
107389
|
+
* @returns {waproto.ProloguePayload} ProloguePayload
|
|
107390
|
+
*/
|
|
107391
|
+
ProloguePayload.fromObject = function fromObject(object) {
|
|
107392
|
+
if (object instanceof $root.waproto.ProloguePayload)
|
|
107393
|
+
return object;
|
|
107394
|
+
var message = new $root.waproto.ProloguePayload();
|
|
107395
|
+
if (object.companionEphemeralIdentity != null)
|
|
107396
|
+
if (typeof object.companionEphemeralIdentity === "string")
|
|
107397
|
+
$util.base64.decode(object.companionEphemeralIdentity, message.companionEphemeralIdentity = $util.newBuffer($util.base64.length(object.companionEphemeralIdentity)), 0);
|
|
107398
|
+
else if (object.companionEphemeralIdentity.length >= 0)
|
|
107399
|
+
message.companionEphemeralIdentity = object.companionEphemeralIdentity;
|
|
107400
|
+
if (object.commitment != null) {
|
|
107401
|
+
if (typeof object.commitment !== "object")
|
|
107402
|
+
throw TypeError(".waproto.ProloguePayload.commitment: object expected");
|
|
107403
|
+
message.commitment = $root.waproto.CompanionCommitment.fromObject(object.commitment);
|
|
107404
|
+
}
|
|
107405
|
+
return message;
|
|
107406
|
+
};
|
|
107407
|
+
|
|
107408
|
+
/**
|
|
107409
|
+
* Creates a plain object from a ProloguePayload message. Also converts values to other types if specified.
|
|
107410
|
+
* @function toObject
|
|
107411
|
+
* @memberof waproto.ProloguePayload
|
|
107412
|
+
* @static
|
|
107413
|
+
* @param {waproto.ProloguePayload} message ProloguePayload
|
|
107414
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
107415
|
+
* @returns {Object.<string,*>} Plain object
|
|
107416
|
+
*/
|
|
107417
|
+
ProloguePayload.toObject = function toObject(message, options) {
|
|
107418
|
+
if (!options)
|
|
107419
|
+
options = {};
|
|
107420
|
+
var object = {};
|
|
107421
|
+
if (message.companionEphemeralIdentity != null && message.hasOwnProperty("companionEphemeralIdentity")) {
|
|
107422
|
+
object.companionEphemeralIdentity = options.bytes === String ? $util.base64.encode(message.companionEphemeralIdentity, 0, message.companionEphemeralIdentity.length) : options.bytes === Array ? Array.prototype.slice.call(message.companionEphemeralIdentity) : message.companionEphemeralIdentity;
|
|
107423
|
+
if (options.oneofs)
|
|
107424
|
+
object._companionEphemeralIdentity = "companionEphemeralIdentity";
|
|
107425
|
+
}
|
|
107426
|
+
if (message.commitment != null && message.hasOwnProperty("commitment")) {
|
|
107427
|
+
object.commitment = $root.waproto.CompanionCommitment.toObject(message.commitment, options);
|
|
107428
|
+
if (options.oneofs)
|
|
107429
|
+
object._commitment = "commitment";
|
|
107430
|
+
}
|
|
107431
|
+
return object;
|
|
107432
|
+
};
|
|
107433
|
+
|
|
107434
|
+
/**
|
|
107435
|
+
* Converts this ProloguePayload to JSON.
|
|
107436
|
+
* @function toJSON
|
|
107437
|
+
* @memberof waproto.ProloguePayload
|
|
107438
|
+
* @instance
|
|
107439
|
+
* @returns {Object.<string,*>} JSON object
|
|
107440
|
+
*/
|
|
107441
|
+
ProloguePayload.prototype.toJSON = function toJSON() {
|
|
107442
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
107443
|
+
};
|
|
107444
|
+
|
|
107445
|
+
/**
|
|
107446
|
+
* Gets the default type url for ProloguePayload
|
|
107447
|
+
* @function getTypeUrl
|
|
107448
|
+
* @memberof waproto.ProloguePayload
|
|
107449
|
+
* @static
|
|
107450
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
107451
|
+
* @returns {string} The default type url
|
|
107452
|
+
*/
|
|
107453
|
+
ProloguePayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
107454
|
+
if (typeUrlPrefix === undefined) {
|
|
107455
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
107456
|
+
}
|
|
107457
|
+
return typeUrlPrefix + "/waproto.ProloguePayload";
|
|
107458
|
+
};
|
|
107459
|
+
|
|
107460
|
+
return ProloguePayload;
|
|
107461
|
+
})();
|
|
107462
|
+
|
|
105264
107463
|
waproto.Pushname = (function() {
|
|
105265
107464
|
|
|
105266
107465
|
/**
|
|
@@ -113522,6 +115721,7 @@ $root.waproto = (function() {
|
|
|
113522
115721
|
* @property {waproto.SyncActionValue.IMerchantPaymentPartnerAction|null} [merchantPaymentPartnerAction] SyncActionValue merchantPaymentPartnerAction
|
|
113523
115722
|
* @property {waproto.SyncActionValue.IWaffleAccountLinkStateAction|null} [waffleAccountLinkStateAction] SyncActionValue waffleAccountLinkStateAction
|
|
113524
115723
|
* @property {waproto.SyncActionValue.IUsernameChatStartModeAction|null} [usernameChatStartMode] SyncActionValue usernameChatStartMode
|
|
115724
|
+
* @property {waproto.SyncActionValue.INotificationActivitySettingAction|null} [notificationActivitySettingAction] SyncActionValue notificationActivitySettingAction
|
|
113525
115725
|
*/
|
|
113526
115726
|
|
|
113527
115727
|
/**
|
|
@@ -113963,6 +116163,14 @@ $root.waproto = (function() {
|
|
|
113963
116163
|
*/
|
|
113964
116164
|
SyncActionValue.prototype.usernameChatStartMode = null;
|
|
113965
116165
|
|
|
116166
|
+
/**
|
|
116167
|
+
* SyncActionValue notificationActivitySettingAction.
|
|
116168
|
+
* @member {waproto.SyncActionValue.INotificationActivitySettingAction|null|undefined} notificationActivitySettingAction
|
|
116169
|
+
* @memberof waproto.SyncActionValue
|
|
116170
|
+
* @instance
|
|
116171
|
+
*/
|
|
116172
|
+
SyncActionValue.prototype.notificationActivitySettingAction = null;
|
|
116173
|
+
|
|
113966
116174
|
// OneOf field names bound to virtual getters and setters
|
|
113967
116175
|
var $oneOfFields;
|
|
113968
116176
|
|
|
@@ -114284,6 +116492,12 @@ $root.waproto = (function() {
|
|
|
114284
116492
|
set: $util.oneOfSetter($oneOfFields)
|
|
114285
116493
|
});
|
|
114286
116494
|
|
|
116495
|
+
// Virtual OneOf for proto3 optional field
|
|
116496
|
+
Object.defineProperty(SyncActionValue.prototype, "_notificationActivitySettingAction", {
|
|
116497
|
+
get: $util.oneOfGetter($oneOfFields = ["notificationActivitySettingAction"]),
|
|
116498
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
116499
|
+
});
|
|
116500
|
+
|
|
114287
116501
|
/**
|
|
114288
116502
|
* Creates a new SyncActionValue instance using the specified properties.
|
|
114289
116503
|
* @function create
|
|
@@ -114414,6 +116628,8 @@ $root.waproto = (function() {
|
|
|
114414
116628
|
$root.waproto.SyncActionValue.WaffleAccountLinkStateAction.encode(message.waffleAccountLinkStateAction, writer.uint32(/* id 58, wireType 2 =*/466).fork()).ldelim();
|
|
114415
116629
|
if (message.usernameChatStartMode != null && Object.hasOwnProperty.call(message, "usernameChatStartMode"))
|
|
114416
116630
|
$root.waproto.SyncActionValue.UsernameChatStartModeAction.encode(message.usernameChatStartMode, writer.uint32(/* id 59, wireType 2 =*/474).fork()).ldelim();
|
|
116631
|
+
if (message.notificationActivitySettingAction != null && Object.hasOwnProperty.call(message, "notificationActivitySettingAction"))
|
|
116632
|
+
$root.waproto.SyncActionValue.NotificationActivitySettingAction.encode(message.notificationActivitySettingAction, writer.uint32(/* id 60, wireType 2 =*/482).fork()).ldelim();
|
|
114417
116633
|
return writer;
|
|
114418
116634
|
};
|
|
114419
116635
|
|
|
@@ -114660,6 +116876,10 @@ $root.waproto = (function() {
|
|
|
114660
116876
|
message.usernameChatStartMode = $root.waproto.SyncActionValue.UsernameChatStartModeAction.decode(reader, reader.uint32());
|
|
114661
116877
|
break;
|
|
114662
116878
|
}
|
|
116879
|
+
case 60: {
|
|
116880
|
+
message.notificationActivitySettingAction = $root.waproto.SyncActionValue.NotificationActivitySettingAction.decode(reader, reader.uint32());
|
|
116881
|
+
break;
|
|
116882
|
+
}
|
|
114663
116883
|
default:
|
|
114664
116884
|
reader.skipType(tag & 7);
|
|
114665
116885
|
break;
|
|
@@ -115117,6 +117337,14 @@ $root.waproto = (function() {
|
|
|
115117
117337
|
return "usernameChatStartMode." + error;
|
|
115118
117338
|
}
|
|
115119
117339
|
}
|
|
117340
|
+
if (message.notificationActivitySettingAction != null && message.hasOwnProperty("notificationActivitySettingAction")) {
|
|
117341
|
+
properties._notificationActivitySettingAction = 1;
|
|
117342
|
+
{
|
|
117343
|
+
var error = $root.waproto.SyncActionValue.NotificationActivitySettingAction.verify(message.notificationActivitySettingAction);
|
|
117344
|
+
if (error)
|
|
117345
|
+
return "notificationActivitySettingAction." + error;
|
|
117346
|
+
}
|
|
117347
|
+
}
|
|
115120
117348
|
return null;
|
|
115121
117349
|
};
|
|
115122
117350
|
|
|
@@ -115401,6 +117629,11 @@ $root.waproto = (function() {
|
|
|
115401
117629
|
throw TypeError(".waproto.SyncActionValue.usernameChatStartMode: object expected");
|
|
115402
117630
|
message.usernameChatStartMode = $root.waproto.SyncActionValue.UsernameChatStartModeAction.fromObject(object.usernameChatStartMode);
|
|
115403
117631
|
}
|
|
117632
|
+
if (object.notificationActivitySettingAction != null) {
|
|
117633
|
+
if (typeof object.notificationActivitySettingAction !== "object")
|
|
117634
|
+
throw TypeError(".waproto.SyncActionValue.notificationActivitySettingAction: object expected");
|
|
117635
|
+
message.notificationActivitySettingAction = $root.waproto.SyncActionValue.NotificationActivitySettingAction.fromObject(object.notificationActivitySettingAction);
|
|
117636
|
+
}
|
|
115404
117637
|
return message;
|
|
115405
117638
|
};
|
|
115406
117639
|
|
|
@@ -115685,6 +117918,11 @@ $root.waproto = (function() {
|
|
|
115685
117918
|
if (options.oneofs)
|
|
115686
117919
|
object._usernameChatStartMode = "usernameChatStartMode";
|
|
115687
117920
|
}
|
|
117921
|
+
if (message.notificationActivitySettingAction != null && message.hasOwnProperty("notificationActivitySettingAction")) {
|
|
117922
|
+
object.notificationActivitySettingAction = $root.waproto.SyncActionValue.NotificationActivitySettingAction.toObject(message.notificationActivitySettingAction, options);
|
|
117923
|
+
if (options.oneofs)
|
|
117924
|
+
object._notificationActivitySettingAction = "notificationActivitySettingAction";
|
|
117925
|
+
}
|
|
115688
117926
|
return object;
|
|
115689
117927
|
};
|
|
115690
117928
|
|
|
@@ -123516,6 +125754,269 @@ $root.waproto = (function() {
|
|
|
123516
125754
|
return NoteEditAction;
|
|
123517
125755
|
})();
|
|
123518
125756
|
|
|
125757
|
+
SyncActionValue.NotificationActivitySettingAction = (function() {
|
|
125758
|
+
|
|
125759
|
+
/**
|
|
125760
|
+
* Properties of a NotificationActivitySettingAction.
|
|
125761
|
+
* @memberof waproto.SyncActionValue
|
|
125762
|
+
* @interface INotificationActivitySettingAction
|
|
125763
|
+
* @property {waproto.SyncActionValue.NotificationActivitySettingAction.NotificationActivitySetting|null} [notificationActivitySetting] NotificationActivitySettingAction notificationActivitySetting
|
|
125764
|
+
*/
|
|
125765
|
+
|
|
125766
|
+
/**
|
|
125767
|
+
* Constructs a new NotificationActivitySettingAction.
|
|
125768
|
+
* @memberof waproto.SyncActionValue
|
|
125769
|
+
* @classdesc Represents a NotificationActivitySettingAction.
|
|
125770
|
+
* @implements INotificationActivitySettingAction
|
|
125771
|
+
* @constructor
|
|
125772
|
+
* @param {waproto.SyncActionValue.INotificationActivitySettingAction=} [properties] Properties to set
|
|
125773
|
+
*/
|
|
125774
|
+
function NotificationActivitySettingAction(properties) {
|
|
125775
|
+
if (properties)
|
|
125776
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
125777
|
+
if (properties[keys[i]] != null)
|
|
125778
|
+
this[keys[i]] = properties[keys[i]];
|
|
125779
|
+
}
|
|
125780
|
+
|
|
125781
|
+
/**
|
|
125782
|
+
* NotificationActivitySettingAction notificationActivitySetting.
|
|
125783
|
+
* @member {waproto.SyncActionValue.NotificationActivitySettingAction.NotificationActivitySetting|null|undefined} notificationActivitySetting
|
|
125784
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125785
|
+
* @instance
|
|
125786
|
+
*/
|
|
125787
|
+
NotificationActivitySettingAction.prototype.notificationActivitySetting = null;
|
|
125788
|
+
|
|
125789
|
+
// OneOf field names bound to virtual getters and setters
|
|
125790
|
+
var $oneOfFields;
|
|
125791
|
+
|
|
125792
|
+
// Virtual OneOf for proto3 optional field
|
|
125793
|
+
Object.defineProperty(NotificationActivitySettingAction.prototype, "_notificationActivitySetting", {
|
|
125794
|
+
get: $util.oneOfGetter($oneOfFields = ["notificationActivitySetting"]),
|
|
125795
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
125796
|
+
});
|
|
125797
|
+
|
|
125798
|
+
/**
|
|
125799
|
+
* Creates a new NotificationActivitySettingAction instance using the specified properties.
|
|
125800
|
+
* @function create
|
|
125801
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125802
|
+
* @static
|
|
125803
|
+
* @param {waproto.SyncActionValue.INotificationActivitySettingAction=} [properties] Properties to set
|
|
125804
|
+
* @returns {waproto.SyncActionValue.NotificationActivitySettingAction} NotificationActivitySettingAction instance
|
|
125805
|
+
*/
|
|
125806
|
+
NotificationActivitySettingAction.create = function create(properties) {
|
|
125807
|
+
return new NotificationActivitySettingAction(properties);
|
|
125808
|
+
};
|
|
125809
|
+
|
|
125810
|
+
/**
|
|
125811
|
+
* Encodes the specified NotificationActivitySettingAction message. Does not implicitly {@link waproto.SyncActionValue.NotificationActivitySettingAction.verify|verify} messages.
|
|
125812
|
+
* @function encode
|
|
125813
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125814
|
+
* @static
|
|
125815
|
+
* @param {waproto.SyncActionValue.INotificationActivitySettingAction} message NotificationActivitySettingAction message or plain object to encode
|
|
125816
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125817
|
+
* @returns {$protobuf.Writer} Writer
|
|
125818
|
+
*/
|
|
125819
|
+
NotificationActivitySettingAction.encode = function encode(message, writer) {
|
|
125820
|
+
if (!writer)
|
|
125821
|
+
writer = $Writer.create();
|
|
125822
|
+
if (message.notificationActivitySetting != null && Object.hasOwnProperty.call(message, "notificationActivitySetting"))
|
|
125823
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.notificationActivitySetting);
|
|
125824
|
+
return writer;
|
|
125825
|
+
};
|
|
125826
|
+
|
|
125827
|
+
/**
|
|
125828
|
+
* Encodes the specified NotificationActivitySettingAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.NotificationActivitySettingAction.verify|verify} messages.
|
|
125829
|
+
* @function encodeDelimited
|
|
125830
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125831
|
+
* @static
|
|
125832
|
+
* @param {waproto.SyncActionValue.INotificationActivitySettingAction} message NotificationActivitySettingAction message or plain object to encode
|
|
125833
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125834
|
+
* @returns {$protobuf.Writer} Writer
|
|
125835
|
+
*/
|
|
125836
|
+
NotificationActivitySettingAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
125837
|
+
return this.encode(message, writer).ldelim();
|
|
125838
|
+
};
|
|
125839
|
+
|
|
125840
|
+
/**
|
|
125841
|
+
* Decodes a NotificationActivitySettingAction message from the specified reader or buffer.
|
|
125842
|
+
* @function decode
|
|
125843
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125844
|
+
* @static
|
|
125845
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125846
|
+
* @param {number} [length] Message length if known beforehand
|
|
125847
|
+
* @returns {waproto.SyncActionValue.NotificationActivitySettingAction} NotificationActivitySettingAction
|
|
125848
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125849
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125850
|
+
*/
|
|
125851
|
+
NotificationActivitySettingAction.decode = function decode(reader, length) {
|
|
125852
|
+
if (!(reader instanceof $Reader))
|
|
125853
|
+
reader = $Reader.create(reader);
|
|
125854
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.SyncActionValue.NotificationActivitySettingAction();
|
|
125855
|
+
while (reader.pos < end) {
|
|
125856
|
+
var tag = reader.uint32();
|
|
125857
|
+
switch (tag >>> 3) {
|
|
125858
|
+
case 1: {
|
|
125859
|
+
message.notificationActivitySetting = reader.int32();
|
|
125860
|
+
break;
|
|
125861
|
+
}
|
|
125862
|
+
default:
|
|
125863
|
+
reader.skipType(tag & 7);
|
|
125864
|
+
break;
|
|
125865
|
+
}
|
|
125866
|
+
}
|
|
125867
|
+
return message;
|
|
125868
|
+
};
|
|
125869
|
+
|
|
125870
|
+
/**
|
|
125871
|
+
* Decodes a NotificationActivitySettingAction message from the specified reader or buffer, length delimited.
|
|
125872
|
+
* @function decodeDelimited
|
|
125873
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125874
|
+
* @static
|
|
125875
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125876
|
+
* @returns {waproto.SyncActionValue.NotificationActivitySettingAction} NotificationActivitySettingAction
|
|
125877
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125878
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125879
|
+
*/
|
|
125880
|
+
NotificationActivitySettingAction.decodeDelimited = function decodeDelimited(reader) {
|
|
125881
|
+
if (!(reader instanceof $Reader))
|
|
125882
|
+
reader = new $Reader(reader);
|
|
125883
|
+
return this.decode(reader, reader.uint32());
|
|
125884
|
+
};
|
|
125885
|
+
|
|
125886
|
+
/**
|
|
125887
|
+
* Verifies a NotificationActivitySettingAction message.
|
|
125888
|
+
* @function verify
|
|
125889
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125890
|
+
* @static
|
|
125891
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
125892
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
125893
|
+
*/
|
|
125894
|
+
NotificationActivitySettingAction.verify = function verify(message) {
|
|
125895
|
+
if (typeof message !== "object" || message === null)
|
|
125896
|
+
return "object expected";
|
|
125897
|
+
var properties = {};
|
|
125898
|
+
if (message.notificationActivitySetting != null && message.hasOwnProperty("notificationActivitySetting")) {
|
|
125899
|
+
properties._notificationActivitySetting = 1;
|
|
125900
|
+
switch (message.notificationActivitySetting) {
|
|
125901
|
+
default:
|
|
125902
|
+
return "notificationActivitySetting: enum value expected";
|
|
125903
|
+
case 0:
|
|
125904
|
+
case 1:
|
|
125905
|
+
case 2:
|
|
125906
|
+
case 3:
|
|
125907
|
+
break;
|
|
125908
|
+
}
|
|
125909
|
+
}
|
|
125910
|
+
return null;
|
|
125911
|
+
};
|
|
125912
|
+
|
|
125913
|
+
/**
|
|
125914
|
+
* Creates a NotificationActivitySettingAction message from a plain object. Also converts values to their respective internal types.
|
|
125915
|
+
* @function fromObject
|
|
125916
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125917
|
+
* @static
|
|
125918
|
+
* @param {Object.<string,*>} object Plain object
|
|
125919
|
+
* @returns {waproto.SyncActionValue.NotificationActivitySettingAction} NotificationActivitySettingAction
|
|
125920
|
+
*/
|
|
125921
|
+
NotificationActivitySettingAction.fromObject = function fromObject(object) {
|
|
125922
|
+
if (object instanceof $root.waproto.SyncActionValue.NotificationActivitySettingAction)
|
|
125923
|
+
return object;
|
|
125924
|
+
var message = new $root.waproto.SyncActionValue.NotificationActivitySettingAction();
|
|
125925
|
+
switch (object.notificationActivitySetting) {
|
|
125926
|
+
default:
|
|
125927
|
+
if (typeof object.notificationActivitySetting === "number") {
|
|
125928
|
+
message.notificationActivitySetting = object.notificationActivitySetting;
|
|
125929
|
+
break;
|
|
125930
|
+
}
|
|
125931
|
+
break;
|
|
125932
|
+
case "DEFAULT_ALL_MESSAGES":
|
|
125933
|
+
case 0:
|
|
125934
|
+
message.notificationActivitySetting = 0;
|
|
125935
|
+
break;
|
|
125936
|
+
case "ALL_MESSAGES":
|
|
125937
|
+
case 1:
|
|
125938
|
+
message.notificationActivitySetting = 1;
|
|
125939
|
+
break;
|
|
125940
|
+
case "HIGHLIGHTS":
|
|
125941
|
+
case 2:
|
|
125942
|
+
message.notificationActivitySetting = 2;
|
|
125943
|
+
break;
|
|
125944
|
+
case "DEFAULT_HIGHLIGHTS":
|
|
125945
|
+
case 3:
|
|
125946
|
+
message.notificationActivitySetting = 3;
|
|
125947
|
+
break;
|
|
125948
|
+
}
|
|
125949
|
+
return message;
|
|
125950
|
+
};
|
|
125951
|
+
|
|
125952
|
+
/**
|
|
125953
|
+
* Creates a plain object from a NotificationActivitySettingAction message. Also converts values to other types if specified.
|
|
125954
|
+
* @function toObject
|
|
125955
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125956
|
+
* @static
|
|
125957
|
+
* @param {waproto.SyncActionValue.NotificationActivitySettingAction} message NotificationActivitySettingAction
|
|
125958
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
125959
|
+
* @returns {Object.<string,*>} Plain object
|
|
125960
|
+
*/
|
|
125961
|
+
NotificationActivitySettingAction.toObject = function toObject(message, options) {
|
|
125962
|
+
if (!options)
|
|
125963
|
+
options = {};
|
|
125964
|
+
var object = {};
|
|
125965
|
+
if (message.notificationActivitySetting != null && message.hasOwnProperty("notificationActivitySetting")) {
|
|
125966
|
+
object.notificationActivitySetting = options.enums === String ? $root.waproto.SyncActionValue.NotificationActivitySettingAction.NotificationActivitySetting[message.notificationActivitySetting] === undefined ? message.notificationActivitySetting : $root.waproto.SyncActionValue.NotificationActivitySettingAction.NotificationActivitySetting[message.notificationActivitySetting] : message.notificationActivitySetting;
|
|
125967
|
+
if (options.oneofs)
|
|
125968
|
+
object._notificationActivitySetting = "notificationActivitySetting";
|
|
125969
|
+
}
|
|
125970
|
+
return object;
|
|
125971
|
+
};
|
|
125972
|
+
|
|
125973
|
+
/**
|
|
125974
|
+
* Converts this NotificationActivitySettingAction to JSON.
|
|
125975
|
+
* @function toJSON
|
|
125976
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125977
|
+
* @instance
|
|
125978
|
+
* @returns {Object.<string,*>} JSON object
|
|
125979
|
+
*/
|
|
125980
|
+
NotificationActivitySettingAction.prototype.toJSON = function toJSON() {
|
|
125981
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
125982
|
+
};
|
|
125983
|
+
|
|
125984
|
+
/**
|
|
125985
|
+
* Gets the default type url for NotificationActivitySettingAction
|
|
125986
|
+
* @function getTypeUrl
|
|
125987
|
+
* @memberof waproto.SyncActionValue.NotificationActivitySettingAction
|
|
125988
|
+
* @static
|
|
125989
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
125990
|
+
* @returns {string} The default type url
|
|
125991
|
+
*/
|
|
125992
|
+
NotificationActivitySettingAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
125993
|
+
if (typeUrlPrefix === undefined) {
|
|
125994
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
125995
|
+
}
|
|
125996
|
+
return typeUrlPrefix + "/waproto.SyncActionValue.NotificationActivitySettingAction";
|
|
125997
|
+
};
|
|
125998
|
+
|
|
125999
|
+
/**
|
|
126000
|
+
* NotificationActivitySetting enum.
|
|
126001
|
+
* @name waproto.SyncActionValue.NotificationActivitySettingAction.NotificationActivitySetting
|
|
126002
|
+
* @enum {number}
|
|
126003
|
+
* @property {number} DEFAULT_ALL_MESSAGES=0 DEFAULT_ALL_MESSAGES value
|
|
126004
|
+
* @property {number} ALL_MESSAGES=1 ALL_MESSAGES value
|
|
126005
|
+
* @property {number} HIGHLIGHTS=2 HIGHLIGHTS value
|
|
126006
|
+
* @property {number} DEFAULT_HIGHLIGHTS=3 DEFAULT_HIGHLIGHTS value
|
|
126007
|
+
*/
|
|
126008
|
+
NotificationActivitySettingAction.NotificationActivitySetting = (function() {
|
|
126009
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
126010
|
+
values[valuesById[0] = "DEFAULT_ALL_MESSAGES"] = 0;
|
|
126011
|
+
values[valuesById[1] = "ALL_MESSAGES"] = 1;
|
|
126012
|
+
values[valuesById[2] = "HIGHLIGHTS"] = 2;
|
|
126013
|
+
values[valuesById[3] = "DEFAULT_HIGHLIGHTS"] = 3;
|
|
126014
|
+
return values;
|
|
126015
|
+
})();
|
|
126016
|
+
|
|
126017
|
+
return NotificationActivitySettingAction;
|
|
126018
|
+
})();
|
|
126019
|
+
|
|
123519
126020
|
SyncActionValue.NuxAction = (function() {
|
|
123520
126021
|
|
|
123521
126022
|
/**
|
|
@@ -138789,6 +141290,7 @@ $root.waproto = (function() {
|
|
|
138789
141290
|
* @property {Array.<waproto.IMessageAddOn>|null} [messageAddOns] WebMessageInfo messageAddOns
|
|
138790
141291
|
* @property {waproto.IStatusMentionMessage|null} [statusMentionMessageInfo] WebMessageInfo statusMentionMessageInfo
|
|
138791
141292
|
* @property {boolean|null} [isSupportAiMessage] WebMessageInfo isSupportAiMessage
|
|
141293
|
+
* @property {Array.<string>|null} [statusMentionSources] WebMessageInfo statusMentionSources
|
|
138792
141294
|
*/
|
|
138793
141295
|
|
|
138794
141296
|
/**
|
|
@@ -138808,6 +141310,7 @@ $root.waproto = (function() {
|
|
|
138808
141310
|
this.eventResponses = [];
|
|
138809
141311
|
this.statusMentions = [];
|
|
138810
141312
|
this.messageAddOns = [];
|
|
141313
|
+
this.statusMentionSources = [];
|
|
138811
141314
|
if (properties)
|
|
138812
141315
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
138813
141316
|
if (properties[keys[i]] != null)
|
|
@@ -139286,6 +141789,14 @@ $root.waproto = (function() {
|
|
|
139286
141789
|
*/
|
|
139287
141790
|
WebMessageInfo.prototype.isSupportAiMessage = null;
|
|
139288
141791
|
|
|
141792
|
+
/**
|
|
141793
|
+
* WebMessageInfo statusMentionSources.
|
|
141794
|
+
* @member {Array.<string>} statusMentionSources
|
|
141795
|
+
* @memberof waproto.WebMessageInfo
|
|
141796
|
+
* @instance
|
|
141797
|
+
*/
|
|
141798
|
+
WebMessageInfo.prototype.statusMentionSources = $util.emptyArray;
|
|
141799
|
+
|
|
139289
141800
|
// OneOf field names bound to virtual getters and setters
|
|
139290
141801
|
var $oneOfFields;
|
|
139291
141802
|
|
|
@@ -139738,6 +142249,9 @@ $root.waproto = (function() {
|
|
|
139738
142249
|
$root.waproto.StatusMentionMessage.encode(message.statusMentionMessageInfo, writer.uint32(/* id 69, wireType 2 =*/554).fork()).ldelim();
|
|
139739
142250
|
if (message.isSupportAiMessage != null && Object.hasOwnProperty.call(message, "isSupportAiMessage"))
|
|
139740
142251
|
writer.uint32(/* id 70, wireType 0 =*/560).bool(message.isSupportAiMessage);
|
|
142252
|
+
if (message.statusMentionSources != null && message.statusMentionSources.length)
|
|
142253
|
+
for (var i = 0; i < message.statusMentionSources.length; ++i)
|
|
142254
|
+
writer.uint32(/* id 71, wireType 2 =*/570).string(message.statusMentionSources[i]);
|
|
139741
142255
|
return writer;
|
|
139742
142256
|
};
|
|
139743
142257
|
|
|
@@ -140024,6 +142538,12 @@ $root.waproto = (function() {
|
|
|
140024
142538
|
message.isSupportAiMessage = reader.bool();
|
|
140025
142539
|
break;
|
|
140026
142540
|
}
|
|
142541
|
+
case 71: {
|
|
142542
|
+
if (!(message.statusMentionSources && message.statusMentionSources.length))
|
|
142543
|
+
message.statusMentionSources = [];
|
|
142544
|
+
message.statusMentionSources.push(reader.string());
|
|
142545
|
+
break;
|
|
142546
|
+
}
|
|
140027
142547
|
default:
|
|
140028
142548
|
reader.skipType(tag & 7);
|
|
140029
142549
|
break;
|
|
@@ -140665,6 +143185,13 @@ $root.waproto = (function() {
|
|
|
140665
143185
|
if (typeof message.isSupportAiMessage !== "boolean")
|
|
140666
143186
|
return "isSupportAiMessage: boolean expected";
|
|
140667
143187
|
}
|
|
143188
|
+
if (message.statusMentionSources != null && message.hasOwnProperty("statusMentionSources")) {
|
|
143189
|
+
if (!Array.isArray(message.statusMentionSources))
|
|
143190
|
+
return "statusMentionSources: array expected";
|
|
143191
|
+
for (var i = 0; i < message.statusMentionSources.length; ++i)
|
|
143192
|
+
if (!$util.isString(message.statusMentionSources[i]))
|
|
143193
|
+
return "statusMentionSources: string[] expected";
|
|
143194
|
+
}
|
|
140668
143195
|
return null;
|
|
140669
143196
|
};
|
|
140670
143197
|
|
|
@@ -141857,6 +144384,13 @@ $root.waproto = (function() {
|
|
|
141857
144384
|
}
|
|
141858
144385
|
if (object.isSupportAiMessage != null)
|
|
141859
144386
|
message.isSupportAiMessage = Boolean(object.isSupportAiMessage);
|
|
144387
|
+
if (object.statusMentionSources) {
|
|
144388
|
+
if (!Array.isArray(object.statusMentionSources))
|
|
144389
|
+
throw TypeError(".waproto.WebMessageInfo.statusMentionSources: array expected");
|
|
144390
|
+
message.statusMentionSources = [];
|
|
144391
|
+
for (var i = 0; i < object.statusMentionSources.length; ++i)
|
|
144392
|
+
message.statusMentionSources[i] = String(object.statusMentionSources[i]);
|
|
144393
|
+
}
|
|
141860
144394
|
return message;
|
|
141861
144395
|
};
|
|
141862
144396
|
|
|
@@ -141882,6 +144416,7 @@ $root.waproto = (function() {
|
|
|
141882
144416
|
object.eventResponses = [];
|
|
141883
144417
|
object.statusMentions = [];
|
|
141884
144418
|
object.messageAddOns = [];
|
|
144419
|
+
object.statusMentionSources = [];
|
|
141885
144420
|
}
|
|
141886
144421
|
if (options.defaults)
|
|
141887
144422
|
object.key = null;
|
|
@@ -142192,6 +144727,11 @@ $root.waproto = (function() {
|
|
|
142192
144727
|
if (options.oneofs)
|
|
142193
144728
|
object._isSupportAiMessage = "isSupportAiMessage";
|
|
142194
144729
|
}
|
|
144730
|
+
if (message.statusMentionSources && message.statusMentionSources.length) {
|
|
144731
|
+
object.statusMentionSources = [];
|
|
144732
|
+
for (var j = 0; j < message.statusMentionSources.length; ++j)
|
|
144733
|
+
object.statusMentionSources[j] = message.statusMentionSources[j];
|
|
144734
|
+
}
|
|
142195
144735
|
return object;
|
|
142196
144736
|
};
|
|
142197
144737
|
|